aboutsummaryrefslogtreecommitdiffstats
path: root/doc/protocol
blob: 2273f40b4a451457223dd7c5ea517fe35689e7af (plain) (blame)
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
<command> ::= <opcode> " " <args> "\n"
<response> ::= <retval> "\n"

Echo:
<opcode> ::= "e"
<args> :: <bytes>
<retval> :: <args>

Write EEPROM:
<opcode> ::= "w"
<args> ::= <addr> <bytes>{:pagesize}
<retval> ::= ""

Read EEPROM:
<opcode> ::= "r"
<args> ::= <addr> <size>
<retval> ::= <bytes>{size}

<addr> ::= "0"--"2047"
<bytes> ::= <byte> <bytetail> | ""
<bytetail> ::= " " <byte> <bytetail> | ""
<byte> ::= "0"--"FF"
<size> ::= "0"--"2048"

pagesize := 16