Rules | Recent posts | topic RSS | Search | Register  | Log in

Multiple serial data

 
Post new topic  Reply to topic    EDAboard.com Forum Index -> PC Programming and Interfacing
Author Message
handsprince



Joined: 07 Feb 2006
Posts: 45


Post30 Mar 2008 17:13   Multiple serial data

how can i seperate a serial data into two string indicator? for an example first serial data display on string indicator 1 and second data display on string indicator 2...thanks...
Back to top
davidgrm



Joined: 08 Apr 2006
Posts: 159
Helped: 10


Post09 Apr 2008 0:03   Re: Multiple serial data

You need to create data packets. This will allow you to separate the data into strings. For example you choose characters that you wont ever send in your strings. Use them as start and end of packet.. like this ~ = start; ^ = end. Now your packet can look like this: ~First String^ next packet: ~Second String^. Now you program can find the begin and end of each string easily.
Back to top
saubhik



Joined: 27 Apr 2007
Posts: 108
Helped: 3
Location: Mumbai


Post05 May 2008 6:42   Re: Multiple serial data

You can do it by atleast two ways ....... as follows -

1. you can go for adding Header and footer as told by Mr.davidgrm,
and for Reliability and accuracy you can go for addition of CRC or Checksum.

2. you can limit your input buffer useing time limitation or character limitation



But I think it will be better to go for the first one , because in 2 nd one character loosing probability is higher than First one .



OK ..... best of luck and Good Bye ..... Very Happy
Back to top
Post new topic  Reply to topic    EDAboard.com Forum Index -> PC Programming and Interfacing
Page 1 of 1 All times are GMT + 2 Hours


Abuse
Administrator
Moderators
topic RSS 
sitemap