Skip to content

Commit 90905b4

Browse files
committed
rtxlink: changed the frame CRC to the CCITT 16-bit, changed description of protocol ID 0x03
1 parent a04de9c commit 90905b4

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

rtxlink.md

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,21 @@ the frame length up to the double of the original length, this needs to be taken
2424

2525
The frames format is the following:
2626

27-
| 0 | 1 | ... | N-1 | N |
28-
|:---:|:-------:|:----:|:----:|:---:|
29-
| END | ProtoID | Data | CRC8 | END |
27+
| 0 | 1 | ... | N-2 | N-1 | N |
28+
|:---:|:-------:|:----:|:----:|:----:|:---:|
29+
| END | ProtoID | Data | CRCL | CRCH | END |
3030

31-
After the star of frame marker, the first byte of each frame is a protocol identifier describing the frame content. The last byte of the frame, following the content and preceding the frame end
32-
marker contains the CRC-8 of the protocol identifier and data fields. The CRC is computed using the polynomial 0xA6 and ensures a minimum hamming distance of two for data blocks composed by more
33-
than 2048 bytes.
31+
After the star of frame marker, the first byte of each frame is a protocol identifier describing the frame content. After the payload data and preceding the frame end marker, the frame contains the
32+
CRC-16 of the protocol identifier and data fields: the CRC is computed using the CCITT polynomial 0x1021 (CCITT CRC-16 polynomial) and transmittend in little-endian format.
3433

3534
The recognized protocol IDs are the following:
3635

37-
| ID | Frame content |
38-
|:----:|:--------------------:|
39-
| 0x00 | stdio redirection |
40-
| 0x01 | CAT command/response |
41-
| 0x02 | FMP command/response |
42-
| 0x03 | XMODEM command/frame |
36+
| ID | Frame content |
37+
|:----:|:----------------------:|
38+
| 0x00 | stdio redirection |
39+
| 0x01 | CAT command/response |
40+
| 0x02 | FMP command/response |
41+
| 0x03 | data transfer protocol |
4342

4443
## Application Layer
4544

0 commit comments

Comments
 (0)