DigiProtocol¶
DigiProtocol is Library designed for Communication with DigiSpark over USB. It’s based on DigiUSB library but adds protocol-frame. Frame keeps CRC value for error detection but currently error correction is up to you. For example You can send specific message when error is detected.
My main problem with DigiUSB and libusb version 1.0 were random data when trying to read message. This protocol solves the above problem.
Below you can see what protocol-frame looks like:
| start byte | size of transmission | data | CRC0 | CRC1 |
|---|---|---|---|---|
| 0xAA | 6 | HELLO! | 225 | 40 |