https://github.com/skyzh/serialpb
Reliable packet transmission over serial interface
https://github.com/skyzh/serialpb
cmake cpp gtest serial
Last synced: 8 months ago
JSON representation
Reliable packet transmission over serial interface
- Host: GitHub
- URL: https://github.com/skyzh/serialpb
- Owner: skyzh
- License: mit
- Created: 2019-11-16T09:15:09.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-27T03:58:41.000Z (over 6 years ago)
- Last Synced: 2025-02-26T04:44:30.521Z (over 1 year ago)
- Topics: cmake, cpp, gtest, serial
- Language: C++
- Homepage:
- Size: 18.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# serialpb
A protocol made for reliable serial packet transmission.
## Layout
Most significant bit indicates mode. Control mode = 1, Transmission mode = 0.
### Control Mode (1xxxxxxx)
`0xFF` = new transaction
### Transmission Mode (0xxxxxxx)
Most significant bit is 0. Other 7 bits transmit data. Every 8 bits received
will be concatenated into a byte. When entering control mode, extra bits
will be ignored.
## Todo
- [ ] add tests for serial not available