Root/tools/atrf-proxy/PROTOCOL

Source at commit 2961482cac72ca292ad95a4e6bf53500014279b4 created 8 years 11 months ago.
By Werner Almesberger, tools: atrf-id option -s to retrieve driver spec, with necessary infrastructure
1Protocol specification
2======================
3
4Messages
5--------
6
7<open TCP session>
8+[greeting]
9-message
10
11SPEC
12+driver_spec
13-message
14
15RESET
16+[comment]
17-message
18
19RESET_RF
20+[comment]
21-message
22
23TEST
24+[comment]
25-message
26
27SLP_TR 0|1
28+[comment]
29-message
30
31CLKM freq_mhz
32+[comment]
33-message
34
35SET register value
36+[comment]
37-message
38
39GET register
40+value
41-message
42
43WRITE length raw-data
44+[comment]
45-message
46
47READ
48+length raw-data
49-message
50
51POLL
52+0|1
53-message
54
55WAIT
56+0|1
57-message
58
59
60Message format
61--------------
62
63Commands are not case-sensitive. Messages and comments consist of printable
64ASCII characters and spaces.
65
66Whitespace separating words is always exactly one space character.
67Lines end with a * single newline, without trailing whitespace.
68Numeric values are in C notation, i.e., 64, 0100, and 0x40 would all
69represent the same value.
70
71"raw-data" is a string of binary data of the indicated length. The other
72formatting conventions remain valid after this string, i.e., it must be
73followed by a single newline.
74
75The device is implicitly opened when establishing a TCP session. The
76device is implicitly closed when closing the TCP session.
77
78
79Asynchrous interrupt notification (not implemented yet)
80---------------------------------
81
82The WAIT command is not answered until an interrupt or another command is
83received. WAIT returns the interrupt status, just like POLL.
84

Archive Download this file



interactive