Root/tools/atrf-proxy/PROTOCOL

Source at commit f4ca3aed63ef282f418093ba649fa39e193252db created 9 years 16 days ago.
By Werner Almesberger, tools/atrf-proxy/: make WAIT 0 wait forever
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 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
51SETRAM addr value
52+[comment]
53-message
54
55GETRAM addr
56+value
57-message
58
59WAIT timeout_ms
60+value
61-message
62
63
64Message format
65--------------
66
67Commands are not case-sensitive. Messages and comments consist of printable
68ASCII characters and spaces.
69
70Whitespace separating words is always exactly one space character.
71Lines end with a * single newline, without trailing whitespace.
72Numeric values are in C notation, i.e., 64, 0100, and 0x40 would all
73represent the same value.
74
75"raw-data" is a string of binary data of the indicated length. The other
76formatting conventions remain valid after this string, i.e., it must be
77followed by a single newline.
78
79The device is implicitly opened when establishing a TCP session. The
80device is implicitly closed when closing the TCP session.
81
82
83Asynchrous interrupt notification
84---------------------------------
85
86The WAIT command is not answered until an interrupt or until a timeout.
87A timeout value of 0 means infinite. WAIT returns the value of the
88IRQ_STATUS register. If WAIT times out before receiving an interrupt,
89it returns 0.
90

Archive Download this file



interactive