Hi Matt,

> I would actually
> like to see a reliable way to sync and error check larger serial data
> for transmission over wireless.
Framing can be done in two ways:
First one is to use some sync char and give the length of a (datafield
of a) message prior to the message, so you won't mistake a databyte
with the same value as sync as a real sync. This will work if you
generally do not loose sync,  so on reliable links where the receiver
remains online most of the time.
Other way is to reserve the sync char and use an escape sequence when
you intend to send a databyte with the sync value. More overhead for
some values in the datastream, but an effective way to keep sync and
quickly recover when sync is lost. SLIP is an example of this.

And for error checking: checksums (and xor) of data give some
assurance, but I would not call them reliable. CRC of 16 bits or more
are much better. There are many examples on the of CRC16-CITT and
others on the net.

Joep

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en.

Reply via email to