
- 18 -
www.hzgrow.com
Command (or instruction) package format:
2 bytes
4bytes
1 byte
2 bytes
1 byte
2 bytes
Header
Module
address
Package
identifier
Package
length
Instruction
code
Checksum
0xEF01
xxxx
01H
03H
05H
09H
Acknowledge package format:
2 bytes
4bytes
1 byte
2 bytes
1 byte
2 bytes
Header
Module
address
Package
identifier
Package
length
Confirmation
code
Checksum
0xEF01
xxxx
07H
03H
xxH
sum
Note: Confirmation code=00H: operation success;
Confirmation code=01H: error when receiving package;
Confirmation code=0aH: fail to combine the character files. That’s, the character files
don’t belong to one finger.
To upload template
UpChar
Description: Upload the data in the template buffer ModelBuffer to the upper computer.
Input Parameter: CharBufferID
Return Parameter: Confirmation code (1 byte)
Instruction code: 08H
Command (or instruction) package format:
2 bytes
4bytes
1 byte
2 bytes
1 byte
1 byte
2 bytes
Header
Module
address
Package
identifier
Package
length
Instruction
code
Buffer
number
Checksum
0xEF01
xxxx
01H
04H
08H
CharBuffer
ID
sum
Note: This command don’t need to use the CharBufferID, so the CharBufferID can be
any value between 1 and 6.
Acknowledge package format:
2 bytes
4bytes
1 byte
2 bytes
1 byte
2 bytes
Header
Module
address
Package
identifier
Package
length
Confirmation
code
Checksum
0xEF01
xxxx
07H
03H
xxH
sum
Note 1: Confirmation code=00H: ready to transfer the following data packet;
Confirmation code=01H: error when receiving package;
Confirmation code=0dH: error when uploading template;
Confirmation code=0fH: can not receive the following data packet
4. The upper computer sends the command packet, the module sends the acknowledge
packet first, and then sends several data packet.
5. Packet Bytes N is determined by Packet Length. The value is 128 Bytes before
delivery.
6: The instruction doesn’t affect buffer contents.
Data package format:
2 bytes
4bytes
1 byte
2 bytes
N byte
2 bytes
Header
Module
Package identifier
Package
Package
Checksum