-
Notifications
You must be signed in to change notification settings - Fork 2
/
packet_format.txt
18 lines (15 loc) · 2.57 KB
/
packet_format.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1 2 2 2 3 3 4 4 4 5 5 6 6 6 7 7 8 8 8 9 9 0 0 0 1 1 2 2 2 3 3 4 4 4 5 5 6 6 6 7 7 8
0 4 8 2 6 0 4 8 2 6 0 4 8 2 6 0 4 8 2 6 0 4 8 2 6 0 4 8 2 6 0 4 8 2 6 0 4 8 2 6 0 4 8 2 6 0
| PREAMBLE(3B) || SYNC (4B) ||4b||L (1B)|| Data (7B) || CRC (2B) | DECODED
0101010101…1 0x258B147A 1010 0x07 0xB0 0xF2 0xEA 0x76 0x10 0x01 0x8A 0x22 0xC5
01010101010101010101010101011110001010001101000110100100101011100000000011010100111101010111 RECONSTRUCTED
1010101010101010101111000101000110100011010010010101110000000001101010011110101011101101110000010001000000001010001010001001010001111111111111000000000000000000000000000000 RECEIVED
001001010111010100000000001010111010111100001110000000000001000000000001101100001111101000001110 RECEIVED ARDUINO
101001001010111000000000111010101111010101110000000000000000100010000000000011010101111101110000 MIRRORED ARDUINO
^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^
|P (1B)|| BASE (4B) ||P (1B)||S0(1B)||S1(12b) || Data (9B) … ENHANCED SHOCKBURST
0x147aaaaa 0x8b 0x25 0x75 ENCODED
|P (1B)|| BASE (4B) ||P (1B)|| Data (12B) … ENHANCED SHOCKBURST alt
|P (1B)|| BASE (4B) ||P (1B)|| Data (11B) … ENHANCED SHOCKBURST simpl
0x8b147aaa 0x25 0x75 …