This repository has been archived by the owner on Nov 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
29c091b
commit 53a53b1
Showing
1 changed file
with
9 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
# Serial Token Ring Network | ||
|
||
## Protocol | ||
Clients should be connected via UART at 115200 baud in a token-ring topology. | ||
|
||
### Packets | ||
Packets should consist of at least 3 bytes. | ||
Clients should be connected via UART at 115200 baud in a token-ring topology. Packets should consist of at least 3 bytes: | ||
``` | ||
| 0xAA | SRC | <DST> | SIZE | ---MSG--- | CHK | | ||
``` | ||
``` | ||
### 0xAA | ||
Mesage begin header; all packets must begin with 0xAA. | ||
|
||
This is to minimize the impact of packets with misplaced SIZE values; if a previous packet dropped two bytes, without a message begin byte to check, the size byte would be interpreted as the source, and the first byte of the message would be interpreted as the SIZE value. If the message began with 0xFF or another large number, this could cause cascades of dropped packets. | ||
|
||
### SRC | ||
Source |