Reader Communication Protocol Developer's Guide
Write Flash
 
Write the content of the onboard flash memory, used to Update the firmware of reader.

Command Attribute

Command Code Bootloader Command App Firmware Command
0x01 Yes No

Host to Reader

Format of Data Field
Field Byte Length Description
FINFLAG 1 byte 0 means that there is still burning data to be written to Flash. 0XFF means the last writing to Flash.
WRITEADDR 4 bytes The initial address of burning is 0x00104000. After each successful writing, the next writing address will be WRITEADDR+ WRITELEN*4.
WRITELEN 1 byte Defines the length of the WRITEDATA. The length of the following WRITEDATA is WRITELEN*4 bytes.The value of WRITELEN is fixed to 32; the actual number of bytes to be written is divided by 4 only when the data length of the last writing to Flash is less than 128 bytes.
WRITEDATA N bytes Data to be written to Flash, the number of bytes is a multiple of 4.