Documentation sections
EDVADO / Developers
Packet
Archived documentation. Technical definitions follow the protocol specification. Incomplete definitions and conflicting examples are marked for clarification.
DATA · 0x01
| Byte offset (source) | Bytes | Field / definition | Example at field start | Source |
|---|---|---|---|---|
| 0Packet!B4 | 1Packet!Q7 | type of content (0x01-DATA) | 01 | Packet!B7 |
| 1Packet!C4 | 2Packet!Q8 | packet data length (length DATA) | 14 | Packet!C8 |
| 3Packet!E4 | 4Packet!Q9 | unixtime 0x506BF1E3= 1349251555(unix time) = Wed, 03 Oct 2012 08:05:55 GMT | E3 | Packet!E9 |
| N=20Packet!I4 | NPacket!Q10 | TAGs (DATA) | 03298B5E4204CBD514420500191000080400FF02 | Packet!I10 |
| 7+NPacket!M4 | 1Packet!Q11 | 0x1B - checksum is calculated for all fields except the type and length of the packet. | 1B | Packet!M11 |
Complete source example / byte row
Total size in source: 8 + N · Packet!Q5
PACKET DATA is a set of tags (Tags) (one or more) having the same time Packet!B13
TEXT · 0x03
| Byte offset (source) | Bytes | Field / definition | Example at field start | Source |
|---|---|---|---|---|
| 0Packet!B19 | 1Packet!Q22 | type of content (0x03 - TEXT) | 03 | Packet!B22 |
| 1Packet!C19 | 2Packet!Q23 | packet data length (length TEXT) | 14 | Packet!C23 |
| 3Packet!E19 | 4Packet!Q24 | unixtime 0x506BF1E3= 1349251555(unix time) = Wed, 03 Oct 2012 08:05:55 GMT | E3 | Packet!E24 |
| N=4Packet!I19 | NPacket!Q25 | TEXT | text | Packet!I25 |
| 7+NPacket!M19 | 1Packet!Q26 | 0xC8 - checksum it is sum of all bytes except the fields of type and length of the packet | C8 | Packet!M26 |
Complete source example / byte row
| Offset | Literal value | Source |
|---|---|---|
| 0 | 03 | Packet!B20 |
| 1 | 14 | Packet!C20 |
| 2 | 00 | Packet!D20 |
| 3 | E3 | Packet!E20 |
| 4 | F1 | Packet!F20 |
| 5 | 6B | Packet!G20 |
| 6 | 50 | Packet!H20 |
| N=4 | text | Packet!I20 |
| 7+N | C8 | Packet!M20 |
Total size in source: 8 + N · Packet!Q20
PACKET TEXT is a text message, like answer to text command (message to driver) Packet!B28
FILE · 0x04
| Byte offset (source) | Bytes | Field / definition | Example at field start | Source |
|---|---|---|---|---|
| 0Packet!B32 | 1.0Packet!V35 | type of content (0x04 - FILE) | 04 | Packet!B35 |
| 1Packet!C32 | 2.0Packet!V36 | packet data length (length DATA) | 14 | Packet!C36 |
| 3Packet!E32 | 4.0Packet!V37 | unixtime 0x506BF1E3= 1349251555(unix time) = Wed, 03 Oct 2012 08:05:55 GMT | E3 | Packet!E37 |
| 7Packet!I32 | 4.0Packet!V38 | The offset from the beginning of the file | 00 | Packet!I38 |
| NPacket!M32 | NPacket!V39 | FILE DATA | 34FA76EBB2AB434BABACE9015 ... .4034 | Packet!M39 |
| 7+NPacket!R32 | 1.0Packet!V40 | 0xC8 - checksum it is sum of all bytes except the fields of type and length of the packet | C8 | Packet!R40 |
Complete source example / byte row
| Offset | Literal value | Source |
|---|---|---|
| 0 | 04 | Packet!B33 |
| 1 | 14 | Packet!C33 |
| 2 | 00 | Packet!D33 |
| 3 | E3 | Packet!E33 |
| 4 | F1 | Packet!F33 |
| 5 | 6B | Packet!G33 |
| 6 | 50 | Packet!H33 |
| 7 | 00 | Packet!I33 |
| 8 | 02 | Packet!J33 |
| 9 | 00 | Packet!K33 |
| 10 | 00 | Packet!L33 |
| N | 34FA76EBB2AB434BABACE9015 ... .4034 | Packet!M33 |
| 7+N | C8 | Packet!R33 |
Total size in source: 12 + N · Packet!V33
If the offset = 0xFFFFFFFF, then the field FILE DATA contains the attributes of the file size, name and extension (type). Transfer of each new file starts at offset 0xFFFFFFFF Packet!B42
If the offset! = 0xFFFFFFFF, the FILE DATA field contains data to be written to the file at offset obtained in this variable Packet!B43
All packages FILE, belonging to the same file have the same time of the formation (unixtime) Packet!B44
FILE DATA field structure of the transmission attributes of a file: Packet!B45
FILE attributes
| Position marker (source) | Bytes | Field / definition | Example at field start | Source |
|---|---|---|---|---|
| — | — | Size of file in bytes | 0.0 | Packet!B54 |
| — | — | The length of the file name | 04 | Packet!F55 |
| tPacket!G51 | — | The file name to ASCII | 74 | Packet!G56 |
| — | — | The length of the file extension | 03 | Packet!K57 |
| dPacket!L51 | — | The file extension to ASCII | 64 | Packet!L58 |
Complete source example / byte row
| Offset | Literal value | Source |
|---|---|---|
| — | 0.0 | Packet!B52 |
| — | 7A | Packet!C52 |
| — | 0.0 | Packet!D52 |
| — | 0.0 | Packet!E52 |
| — | 04 | Packet!F52 |
| t | 74 | Packet!G52 |
| is | 65 | Packet!H52 |
| s | 73 | Packet!I52 |
| t | 74 | Packet!J52 |
| — | 03 | Packet!K52 |
| d | 64 | Packet!L52 |
| d | 64 | Packet!M52 |
| d | 64 | Packet!N52 |
DATA_BINARY · 0x06
| Byte offset (source) | Bytes | Field / definition | Example at field start | Source |
|---|---|---|---|---|
| 0Packet!B62 | 1Packet!Q65 | type of content (0x06 - DATA_BINARY) | 06 | Packet!B65 |
| 1Packet!C62 | 2Packet!Q66 | packet data length (length DATA) | 20 | Packet!C66 |
| 3Packet!E62 | 4Packet!Q67 | unixtime 0x506BF1E3= 1349251555(unix time) = Wed, 03 Oct 2012 08:05:55 GMT | E3 | Packet!E67 |
| N=32Packet!I62 | NPacket!Q68 | DATA_BINARY | 03298B5E4204CBD514420500191000080400FF02 | Packet!I68 |
| 7+NPacket!M62 | 1Packet!Q69 | 0xC8 - checksum it is sum of all bytes except the fields of type and length of the packet | C8 | Packet!M69 |
Complete source example / byte row
| Offset | Literal value | Source |
|---|---|---|
| 0 | 06 | Packet!B63 |
| 1 | 20 | Packet!C63 |
| 2 | 00 | Packet!D63 |
| 3 | E3 | Packet!E63 |
| 4 | F1 | Packet!F63 |
| 5 | 6B | Packet!G63 |
| 6 | 50 | Packet!H63 |
| N=32 | 03298B5E4204CBD514420500191000080400FF02 | Packet!I63 |
| 7+N | C8 | Packet!M63 |
Total size in source: 8 + N · Packet!Q63
PACKET DATA_BINARY is a binary data to be transmitted to server Packet!B71
CONFIRM_THE_COMMAND · 0x08
| Byte offset (source) | Bytes | Field / definition | Example at field start | Source |
|---|---|---|---|---|
| 0Packet!B75 | 1Packet!Q78 | type of content (0x08 - CONFIRM_THE_COMMAND) | 08 | Packet!B78 |
| 1Packet!C75 | 2Packet!Q79 | packet data length (length DATA) | 20 | Packet!C79 |
| 3Packet!E75 | 4Packet!Q80 | unixtime 0x506BF1E3= 1349251555(unix time) = Wed, 03 Oct 2012 08:05:55 GMT | E3 | Packet!E80 |
| N=32Packet!I75 | NPacket!Q81 | error code: 0 - no error | 00 | Packet!I81 |
| — | — | confirmed command | — | Packet!J82 |
| 7+NPacket!M75 | 1Packet!Q83 | 0xC8 - checksum it is sum of all bytes except the fields of type and length of the packet | C8 | Packet!M83 |
Complete source example / byte row
| Offset | Literal value | Source |
|---|---|---|
| 0 | 08 | Packet!B76 |
| 1 | 20 | Packet!C76 |
| 2 | 00 | Packet!D76 |
| 3 | E3 | Packet!E76 |
| 4 | F1 | Packet!F76 |
| 5 | 6B | Packet!G76 |
| 6 | 50 | Packet!H76 |
| N=32 | 00 | Packet!I76 |
| 7+N | C8 | Packet!M76 |
Total size in source: 8 + N · Packet!Q76
CONFIRM_THE_COMMAND2 is used to inform server the command is received by device Packet!B85
CONFIRM BY TOKEN · 0x09
| Byte offset (source) | Bytes | Field / definition | Example at field start | Source |
|---|---|---|---|---|
| 0Packet!B88 | 1Packet!Q91 | type of content (0x09 - CONFIRM_THE_COMMAND BY TOKEN) | 09 | Packet!B91 |
| 1Packet!C88 | 2Packet!Q92 | packet data length (length DATA) | 05 | Packet!C92 |
| 3Packet!E88 | 4Packet!Q93 | unixtime 0x506BF1E3= 1349251555(unix time) = Wed, 03 Oct 2012 08:05:55 GMT | E3 | Packet!E93 |
| 7Packet!I88 | 1Packet!Q94 | error code:
0 - no error
1 - unknown command
2 - too few arguments
3 - too many arguments
4 - invalid argument value
5 - command execution error
6 - command accepted but need time to execute (ACK)
7 - command queue overflow
8 - slave device not available
9 - slave device not responded after all trys | 00 | Packet!I94 |
| 8 9 10 11Packet!J88 | 4Packet!Q95 | 0x44332211 - token of confirmed command | 11 22 33 44 | Packet!J95 |
| 12Packet!M88 | 1Packet!Q96 | 0xC8 - checksum it is sum of all bytes except the fields of type and length of the packet | 1B | Packet!M96 |
Complete source example / byte row
| Offset | Literal value | Source |
|---|---|---|
| 0 | 09 | Packet!B89 |
| 1 | 05 | Packet!C89 |
| 2 | 00 | Packet!D89 |
| 3 | E3 | Packet!E89 |
| 4 | F1 | Packet!F89 |
| 5 | 6B | Packet!G89 |
| 6 | 50 | Packet!H89 |
| 7 | 00 | Packet!I89 |
| 8 9 10 11 | 11 22 33 44 | Packet!J89 |
| 12 | 1B | Packet!M89 |
Total size in source: 13 · Packet!Q89
CONFIRM_THE_COMMAND is used to inform server the command is received by device Packet!B98
SERVICE TEXT · 0x13
| Byte offset (source) | Bytes | Field / definition | Example at field start | Source |
|---|---|---|---|---|
| 0Packet!B102 | 1Packet!Q105 | type of content (0x13 - SERVICE TEXT) | 13 | Packet!B105 |
| 1Packet!C102 | 2Packet!Q106 | packet data length (length TEXT) | 14 | Packet!C106 |
| 3Packet!E102 | 4Packet!Q107 | unixtime 0x506BF1E3= 1349251555(unix time) = Wed, 03 Oct 2012 08:05:55 GMT | E3 | Packet!E107 |
| 7Packet!I102 | 4Packet!Q108 | ID session
time of the first PACKAGE | E3 | Packet!I108 |
| 11Packet!M102 | 2Packet!Q109 | PACKAGE number | 1B | Packet!M109 |
| 13Packet!O102 | NPacket!Q110 | SERVICE TEXT | SERVICE TEXT | Packet!O110 |
Complete source example / byte row
| Offset | Literal value | Source |
|---|---|---|
| 0 | 13 | Packet!B103 |
| 1 | 14 | Packet!C103 |
| 2 | 00 | Packet!D103 |
| 3 | E3 | Packet!E103 |
| 4 | F1 | Packet!F103 |
| 5 | 6B | Packet!G103 |
| 6 | 50 | Packet!H103 |
| 7 | E3 | Packet!I103 |
| 8 | F1 | Packet!J103 |
| 9 | 6B | Packet!K103 |
| 10 | 50 | Packet!L103 |
| 11 | 1B | Packet!M103 |
| 12 | 00 | Packet!N103 |
| 13 | SERVICE TEXT | Packet!O103 |
| 14 | 1B | Packet!P103 |
Total size in source: 14 + N · Packet!Q103