-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathprotocol.txt
142 lines (105 loc) · 7.66 KB
/
protocol.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
Serial Communication
@ 38400 Baud, 8 Data bits, No Parity, 1 Stop Bit
To begin a read/write transaction
Host > Radio : 0x50, 0x56, 0x4F, 0x4A, 0x48, 0x5C, 0x14
Radio > Host : 0x06 (Ack)
Host > Radio : 0x02 (ID Req?)
Radio > Host : [8 Bytes] (unimportant)
Host > Radio : 0x06 (Ack)
Radio > Host : 0x06 (Ack)
data is read and written in 32 byte blocks at 32 byte boundaries
To read data
Host > Radio : 0x52 AD1 AD0 0x20
Radio > Host : 0x57 AD1 AD0 0x20 CKS [32 bytes]
To write data
Host > Radio : 0x57 AD1 AD0 0x20 [32 bytes] CKS
Radio > Host : 0x06 (Ack)
To end the transaction
Host > Radio : 0x45
Radio > Host : 0x06 (Ack)
Host > Radio : 0x02 (ID Req?)
Radio > Host : [8 Bytes]
AD0 = Least significant byte of address
AD1 = Most significant byte of address
(Note: AD0 mod 0x20 = 0)
CKS = Regular additive checksum of the 32 data bytes
ComSnooper Outputs COM13=Host COM24=Radio
-----------------------------------------
Transaction Start Sequence
+--------------------------------------------------------------------+
| COM13 -> COM24 (Length:7) |
+--------------------------------------------------------------------+
| 50 56 4F 4A 48 5C 14 | PVOJH\· |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| COM24 -> COM13 (Length:1) |
+--------------------------------------------------------------------+
| 06 | · |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| COM13 -> COM24 (Length:1) |
+--------------------------------------------------------------------+
| 02 | · |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| COM24 -> COM13 (Length:7) |
+--------------------------------------------------------------------+
| 50 33 31 31 38 35 FF FF | P31185·· |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| COM13 -> COM24 (Length:1) |
+--------------------------------------------------------------------+
| 06 | · |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| COM24 -> COM13 (Length:1) |
+--------------------------------------------------------------------+
| 06 | · |
+--------------------------------------------------------------------+
Data Read
+--------------------------------------------------------------------+
| COM13 -> COM24 (Length:4) |
+--------------------------------------------------------------------+
| 52 1B 40 20 | R·@ |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| COM24 -> COM13 (Length:37) |
+--------------------------------------------------------------------+
| 57 1B 40 20 00 00 00 00 00 00 00 00 00 00 00 00 | ·@ ············· |
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ··············· |
| 00 00 00 00 00 | ····· |
+--------------------------------------------------------------------+
Data Write
+--------------------------------------------------------------------+
| COM13 -> COM24 (Length:37) |
+--------------------------------------------------------------------+
| 57 06 40 20 FF FF FF FF FF FF FF FF FF FF FF FF | W·@ ············ |
| FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ················ |
| FF FF FF FF E0 | ····· |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| COM24 -> COM13 (Length:1) |
+--------------------------------------------------------------------+
| 06 | · |
+--------------------------------------------------------------------+
Transaction End Sequence
+--------------------------------------------------------------------+
| COM13 -> COM24 (Length:1) |
+--------------------------------------------------------------------+
| 45 | E |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| COM24 -> COM13 (Length:1) |
+--------------------------------------------------------------------+
| 06 | · |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| COM13 -> COM24 (Length:1) |
+--------------------------------------------------------------------+
| 02 | · |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| COM24 -> COM13 (Length:7) |
+--------------------------------------------------------------------+
| 50 33 31 31 38 35 FF FF | P31185·· |
+--------------------------------------------------------------------+