Description of message formats for a remote access to the EV3 brick.
Also see "source/ev3/ev3_link/README".
Host application command
Bytes | Content |
---|---|
0 .. 1 | EV3_WRITE_FILE |
2 .. 3 | Message counter (id) |
4 .. 5 | Filename size (f_sz) |
6 .. 7 | Data size (d_sz) |
8 .. 8 + f_sz - 1 | Filename |
8 + f_sz .. 8 + f_sz + d_sz - 1 | Data |
Brick server reply
Bytes | Content |
---|---|
0 .. 1 | EV3_RESULT_WRITE |
2 .. 3 | id |
4 .. 5 | 0 |
6 .. 7 | Count of written bytes |
Host application command
Bytes | Content |
---|---|
0 .. 1 | EV3_WRITE_FILE |
2 .. 3 | Message counter (id) |
4 .. 5 | Filename size (f_sz) |
6 .. 7 | Data size (d_sz) |
8 | Sequence number 1 |
9 | SN 2 |
10 | SN 3 |
11 | SN 4 |
12 .. 13 | Position of SN in template |
14 .. 14 + f_sz - 1 | Filename (template) |
14 + f_sz .. 14 + f_sz + d_sz - 1 | Data |
Brick server reply
Bytes | Content |
---|---|
0 .. 1 | EV3_RESULT_WRITE |
2 .. 3 | id |
4 .. 5 | 0 |
6 .. 7 | Count of written bytes |
Host application command
Bytes | Content |
---|---|
0 .. 1 | EV3_READ_FILE |
2 .. 3 | Message counter (id) |
4 .. 5 | Filename size (f_sz) |
6 .. 7 | Max data size |
8 .. 8 + f_sz - 1 | Filename |
Brick server reply
Bytes | Content |
---|---|
0 .. 1 | EV3_DATA_READ |
2 .. 3 | id |
4 .. 5 | 0 |
6 .. 7 | Count of read bytes (d_sz) |
8 .. 8 + d_sz - 1 | Data |
Host application command
Bytes | Content |
---|---|
0 .. 1 | EV3_LIST_DIR |
2 .. 3 | Message counter (id) |
4 .. 5 | Directory name size (f_sz) |
6 .. 7 | Max files list size |
8 .. 8 + f_sz - 1 | Directory name |
Brick server reply
Bytes | Content |
---|---|
0 .. 1 | EV3_DIRECTORY |
2 .. 3 | id |
4 .. 5 | 0 |
6 .. 7 | Files list size (d_sz) |
8 .. 8 + d_sz - 1 | Files list |
Host application command
Bytes | Content |
---|---|
0 .. 1 | EV3_POWEROFF |
2 .. 3 | Message counter (id) |
4 .. 5 | 0x5555 |
6 .. 7 | 0xAAAA |
Brick server reply
Bytes | Content |
---|---|
0 .. 1 | EV3_COMPLETION |
2 .. 3 | id |
4 .. 5 | 0 |
6 .. 7 | 0 |
Brick server beacon
Bytes | Content |
---|---|
0 .. 1 | EV3_WELCOME |
2 .. 3 | 0 |
4 .. 5 | 0 |
6 .. 7 | 0 |