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)BytesField / definitionExample at field startSource
0Packet!B41Packet!Q7
type of content (0x01-DATA)
01Packet!B7
1Packet!C42Packet!Q8
packet data length (length DATA)
14Packet!C8
3Packet!E44Packet!Q9
unixtime 0x506BF1E3= 1349251555(unix time) = Wed, 03 Oct 2012 08:05:55 GMT
E3Packet!E9
N=20Packet!I4NPacket!Q10
TAGs (DATA)
03298B5E4204CBD514420500191000080400FF02Packet!I10
7+NPacket!M41Packet!Q11
0x1B - checksum is calculated for all fields except the type and length of the packet.
1BPacket!M11
Complete source example / byte row
OffsetLiteral valueSource
001Packet!B5
114Packet!C5
200Packet!D5
3E3Packet!E5
4F1Packet!F5
56BPacket!G5
650Packet!H5
N=2003298B5E4204CBD514420500191000080400FF02Packet!I5
7+N1BPacket!M5

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)BytesField / definitionExample at field startSource
0Packet!B191Packet!Q22
type of content (0x03 - TEXT)
03Packet!B22
1Packet!C192Packet!Q23
packet data length (length TEXT)
14Packet!C23
3Packet!E194Packet!Q24
unixtime 0x506BF1E3= 1349251555(unix time) = Wed, 03 Oct 2012 08:05:55 GMT
E3Packet!E24
N=4Packet!I19NPacket!Q25
TEXT
textPacket!I25
7+NPacket!M191Packet!Q26
0xC8 - checksum it is sum of all bytes except the fields of type and length of the packet
C8Packet!M26
Complete source example / byte row

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)BytesField / definitionExample at field startSource
0Packet!B321.0Packet!V35
type of content (0x04 - FILE)
04Packet!B35
1Packet!C322.0Packet!V36
packet data length (length DATA)
14Packet!C36
3Packet!E324.0Packet!V37
unixtime 0x506BF1E3= 1349251555(unix time) = Wed, 03 Oct 2012 08:05:55 GMT
E3Packet!E37
7Packet!I324.0Packet!V38
The offset from the beginning of the file
00Packet!I38
NPacket!M32NPacket!V39
FILE DATA
34FA76EBB2AB434BABACE9015 ... .4034Packet!M39
7+NPacket!R321.0Packet!V40
0xC8 - checksum it is sum of all bytes except the fields of type and length of the packet
C8Packet!R40
Complete source example / byte row
OffsetLiteral valueSource
004Packet!B33
114Packet!C33
200Packet!D33
3E3Packet!E33
4F1Packet!F33
56BPacket!G33
650Packet!H33
700Packet!I33
802Packet!J33
900Packet!K33
1000Packet!L33
N34FA76EBB2AB434BABACE9015 ... .4034Packet!M33
7+NC8Packet!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)BytesField / definitionExample at field startSource
——
Size of file in bytes
0.0Packet!B54
——
The length of the file name
04Packet!F55
tPacket!G51—
The file name to ASCII
74Packet!G56
——
The length of the file extension
03Packet!K57
dPacket!L51—
The file extension to ASCII
64Packet!L58
Complete source example / byte row

DATA_BINARY · 0x06

Byte offset (source)BytesField / definitionExample at field startSource
0Packet!B621Packet!Q65
type of content (0x06 - DATA_BINARY)
06Packet!B65
1Packet!C622Packet!Q66
packet data length (length DATA)
20Packet!C66
3Packet!E624Packet!Q67
unixtime 0x506BF1E3= 1349251555(unix time) = Wed, 03 Oct 2012 08:05:55 GMT
E3Packet!E67
N=32Packet!I62NPacket!Q68
DATA_BINARY
03298B5E4204CBD514420500191000080400FF02Packet!I68
7+NPacket!M621Packet!Q69
0xC8 - checksum it is sum of all bytes except the fields of type and length of the packet
C8Packet!M69
Complete source example / byte row
OffsetLiteral valueSource
006Packet!B63
120Packet!C63
200Packet!D63
3E3Packet!E63
4F1Packet!F63
56BPacket!G63
650Packet!H63
N=3203298B5E4204CBD514420500191000080400FF02Packet!I63
7+NC8Packet!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)BytesField / definitionExample at field startSource
0Packet!B751Packet!Q78
type of content (0x08 - CONFIRM_THE_COMMAND)
08Packet!B78
1Packet!C752Packet!Q79
packet data length (length DATA)
20Packet!C79
3Packet!E754Packet!Q80
unixtime 0x506BF1E3= 1349251555(unix time) = Wed, 03 Oct 2012 08:05:55 GMT
E3Packet!E80
N=32Packet!I75NPacket!Q81
error code: 0 - no error
00Packet!I81
——
confirmed command
—Packet!J82
7+NPacket!M751Packet!Q83
0xC8 - checksum it is sum of all bytes except the fields of type and length of the packet
C8Packet!M83
Complete source example / byte row

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)BytesField / definitionExample at field startSource
0Packet!B881Packet!Q91
type of content (0x09 - CONFIRM_THE_COMMAND BY TOKEN)
09Packet!B91
1Packet!C882Packet!Q92
packet data length (length DATA)
05Packet!C92
3Packet!E884Packet!Q93
unixtime 0x506BF1E3= 1349251555(unix time) = Wed, 03 Oct 2012 08:05:55 GMT
E3Packet!E93
7Packet!I881Packet!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
00Packet!I94
8 9 10 11Packet!J884Packet!Q95
0x44332211 - token of confirmed command
11 22 33 44Packet!J95
12Packet!M881Packet!Q96
0xC8 - checksum it is sum of all bytes except the fields of type and length of the packet
1BPacket!M96
Complete source example / byte row
OffsetLiteral valueSource
009Packet!B89
105Packet!C89
200Packet!D89
3E3Packet!E89
4F1Packet!F89
56BPacket!G89
650Packet!H89
700Packet!I89
8 9 10 1111 22 33 44Packet!J89
121BPacket!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)BytesField / definitionExample at field startSource
0Packet!B1021Packet!Q105
type of content (0x13 - SERVICE TEXT)
13Packet!B105
1Packet!C1022Packet!Q106
packet data length (length TEXT)
14Packet!C106
3Packet!E1024Packet!Q107
unixtime 0x506BF1E3= 1349251555(unix time) = Wed, 03 Oct 2012 08:05:55 GMT
E3Packet!E107
7Packet!I1024Packet!Q108
ID session time of the first PACKAGE
E3Packet!I108
11Packet!M1022Packet!Q109
PACKAGE number
1BPacket!M109
13Packet!O102NPacket!Q110
SERVICE TEXT
SERVICE TEXTPacket!O110
Complete source example / byte row

Total size in source: 14 + N · Packet!Q103