greghaynes / afproto Goto Github PK
View Code? Open in Web Editor NEWSerial data framing protocol
License: Other
Serial data framing protocol
License: Other
Hi greghaynes,
Convention in ESCAPE and DELIMITER characters are not consistent in READMD and source code.
READMD.md
ESCAPE: 0x7D
DELIMITER: 0x7E
Source Code
ESCAPE: 0x7E
DELIMITER: 0x7D
This may confuse new readers.
Thanks,
Zihan
Hi greg,
Just bringing to your attention that the Wiki home page seems to contain outdated and contradictory information.
On the README.md (last edited three years ago):
A depiction of a frame:
| Start Byte | Escaped Data | Escaped CRC16 | End Byte |
(I read through the source code and can confirm this is correct)
Whereas on the wiki (last edited 2011):
Each packet is in the following format
| Header Byte | Length (1 byte) | CRC (1 byte) | Escaped Message (N bytes) | End Byte |
For large messages there is a special case where length is set to 0x00.
| Header Byte | 0x00 (1 byte) | Length (2 byte) | CRC (1 byte) | Escaped Message (N bytes) | End Byte |
Which seems to not currently be correct
Thanks!
Eli
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.