Skip to content

Commit

Permalink
protocol note on LRC computations
Browse files Browse the repository at this point in the history
  • Loading branch information
doegox committed Sep 10, 2023
1 parent 930d9f5 commit 00a0019
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/protocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ The communication with the application is not the easiest but is structured as f

The total length of the packet is `LEN + 10` Bytes. For receiving, it is the exact same format.

Note: LRC2 and LRC3 can be computed equally as covering either the frame from its first byte or from the byte following the previous LRC, because previous LRC nullifies previous bytes LRC computation.
E.g. LRC3(DATA) == LRC3(whole frame)

## Packet payloads

Each command and response have their own payload formats.
Expand Down

0 comments on commit 00a0019

Please sign in to comment.