Go Down

Topic: Wireless xfer headers and trailers (Read 448 times) previous topic - next topic

CrossRoads

Then do something to force the  starting header to move over until you get in sync.
If a packet comes in and fails the checksum, ignore that packet, ignore the  next byte to come in, try the next set:

- - AA x1 y1 CC,  AA  fails checksum, ignore it
skip a byte (AA), then process:
x1 y1 CC,  AA AA  fails checksum, ignore it
skip a byte (x1), then process:
y1 CC,  AA AA x1   fails checksum, ignore it
skip a byte (y1), then process:
CC,  AA AA x1 y1   fails checksum, ignore it
skip a byte (CC), then process:
AA AA x1 y1 CC  - back in sync




Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.


Go Up