Page 12 of 18
Get version of this application
Command: 02 09 00 00 00 01 34 bf 03
Response: Error status [NULL-terminated version string]
Add/Update application
Command: 02 length 02 sequence (little endian, 4 bytes) path mode data CRC 03
<length>: The length must be less than 1200 bytes.
<sequence>: The range is 0x000000 -0x00100000.
The first package’s sequence must be 0x00000000, the next package’s sequence is the
current package’s sequence plus 1. The last package’s sequence must be large than
0x00100000.
<path>: A NULL-terminated string which defines the absolutely path of the file. The
length of the path must be less than 200 bytes.
<mode>: Defines the mode of the file.
Bit0: 1 means can be executed, 0 means not.
Bit1: 1 means can be written, 0 means not.
Bit2: 1 means can be read, 0 means not.
Response: Error status
Note:
This command will overwrite the existed file.
To update OS, use the path “OS”.
Remove application
Command: 02 length 03 path CRC 03
<length>: The length must be less than 200 bytes.
<path>: A NULL-terminated string which defines the absolutely path of the file. The
length of the path must be less than 200 bytes.
Response: Error status
Get application mode
Command: 02 length 05 path CRC 03
<length>: The length must be less than 200 bytes.
<path>: A NULL-terminated string which defines the absolutely path of the file. The
length of the path must be less than 200 bytes.
Response: Error-status {mode}.
Set application mode
Command: 02 length 06 path mode CRC 03
<length>: The length must be less than 200 bytes.
<path>: A NULL-terminated string which defines the absolutely path of the file. The
length of the path must be less than 200 bytes.
<mode>: Defines the mode of the file.
Bit0: 1 means can be executed, 0 means not.
Bit1: 1 means can be written, 0 means not.
Bit2: 1 means can be read, 0 means not.
Response: Error status