Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/26/09 10:02
Read: times


 
Msg Score: +1
 +1 Good Answer/Helpful
#171189 - Framing + counting
Responding to: ???'s previous message
Why do you rely on your binary received values to be non-zero. Why not allow 1+2+0+5 as valid input? Isn't it easier to use a counter variable to keep track of the number of received values?

Another thing here is that you may get synchronization problem. If you close the PC application after sending only one byte and then restarting the PC application, then you will get a result after only 3 values has been sent since the microcontroller will remember the initial value.

It is normally nice to frame information in a way that the receiver will know exactly where it is in the sequence.

List of 4 messages in thread
TopicAuthorDate
String of characters serially            01/01/70 00:00      
   Some more info needed and some tips            01/01/70 00:00      
      Thanks Kiran            01/01/70 00:00      
         Framing + counting            01/01/70 00:00      

Back to Subject List