Skip to content
This repository has been archived by the owner on Nov 23, 2024. It is now read-only.

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
thetianshuhuang committed Mar 28, 2018
1 parent 29c091b commit 53a53b1
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions README.md
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

0 comments on commit 53a53b1

Please sign in to comment.