blob: 59e807df164c6e42a1cae32c1f4647891ccb3f8a (
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>|"nack") "\n"
Echo:
<opcode> ::= "e"
<args> :: <bytes>
<retval> :: <args>
Write EEPROM:
<opcode> ::= "w"
<args> ::= <addr> " " <size> " " <bytes>
<retval> ::= "ok"
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"
Messages must not contain NUL ('\0').
|