Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to separate a serial data into two string indicators?

Status
Not open for further replies.

handsprince

Member level 2
Joined
Feb 7, 2006
Messages
43
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,583
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...
 

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.
 

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 ..... :D
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top