]> git.mxchange.org Git - flightgear.git/commit
Add protocol wrappers to the generic protocol
authorTorsten Dreyer <Torsten@t3r.de>
Mon, 21 Oct 2013 18:43:22 +0000 (20:43 +0200)
committerTorsten Dreyer <Torsten@t3r.de>
Mon, 21 Oct 2013 18:43:22 +0000 (20:43 +0200)
commitbaebc9b64c8f7e77b2246809820c3a09e58351d7
tree83c27e2bf9daf3e6c610b5b61a40d3fd2a27898b
parentb30408b862ae0a300ff32ef90b20cdde9efdd499
Add protocol wrappers to the generic protocol

This adds two wrappers to the generic protocol to help interfacing
small microcontrollers (arduino et. al.)
When receiving binary data over a sequential link, it's hard to tell where a packet
starts and where it ends. Two existing solutions gets implemented with this patch:
KISS (http://www.ka9q.net/papers/kiss.html) originally developed for ham radio
packet radio devices and STX/ETX byte stuffing.
This adds only the OUT direction, IN will be implemented over the next weeks.

For implementation details on the client (microcontroller's) side, check out
http://gitorious.org/flightgear-pmpt/cmpt/

This implementation is used in the c172fg project to be presented at FSweekend 2013.
src/Network/generic.cxx
src/Network/generic.hxx