90
4-12 UPGRADE
Description: the command demands the scanner to upgrade its firmware.
Packet Format
Length
Opcode
Status
Data
Checksum
0x07
0x55
(‘U’)
Field Descriptions
Table 4-14 Field Descriptions
Field Name
Format
Size
Description
Length
Length of message (not
including checksum).
1 Byte
Length Field
Opcode
0x55
1 Byte
Identifies this opcode type.
Status
Bit0:Retransmit
Bit7: Command source
1 Byte
Bit 0: Identifies the transmission status.
Bit 7:
1: Command is from the host.
Data
The data supported:
1)0xAAAA5555
2)0x12345678
3)0x87654321
4 Bytes
The scanner receives 3 commands continually,
which contain the content of data 1), data 2),
data 3), then the scanner starts to upgrade its
LOADER or APPLICATION by the upgrade
software.
Checksum
2's complement sum of
message contents
excluding checksum.
2 Bytes Checksum of message.
For example: the scanner gets into upgraded state by receiving the data packets as following orderly:
NO.
Length
Opcode
Status
Data
Checksum
1
0x07
0x55
0x80
0xAA 0xAA 0x55 0x55
0xFD 0x26
2
0x07
0x55
0x80
0x12 0x34 0x56 0x78
0xFE 0x10
3
0x07
0x55
0x80
0x87 0x65 0x43 0x21
0xFD 0xD4
Host Requirements
The host sends 3 commands to the scanner orderly, which contains the content required, the scanner is
demanded to upgrade its firmware.
Scanner Requirements
If ACK/NAK handshaking is enabled, the scanner responds with ACK or NAK when a command received.
while the scanner receives the command orderly (1->2->3), it upgrades its firmware.