10/31/12
Google Translate
16/28
translate.google.com/translate?hl=en&sl=zh-‐‑CN&u=http://www.adafruit.com/datasheets/DY001fingerpr…
17 of 28
2 bytes
4 bytes
1 byte
2 bytes
1 byte
2 bytes
Baotou
Module address Packet identification
Packet length Instruction codeChecksum
0xef01
XXXX
0x01
0x0003
0x1d
0x0021
Reply packet format:
2 bytes
4 bytes
1 byte
2 bytes
1 byte
2 bytes
2 bytes
Baotou
Module address Packet identification
Packet length Confirmation code
Template numberChecksum
0xef01
XXXX
0x07
0x0005
X
N
Sum
Note: confirmation code = 0x00 read successfully;
Confirmation code = 0x01 received packets wrong;
command packet checksum (2 bytes) = packet identification (1 byte) + packet length (2 bytes) + script (1 byte);
response packet checksum (2 bytes) = packet identification (1 byte) + packet length (2 bytes) + confirmation code (1 byte) + template number (2 bytes);
checksum bytes added to carry more than 2 bytes ignored, big endian transfer;
default module address "0xffffffff"; default password is "0x00000000".
The 6.2
fingerprint processing class instruction
8) recorded the fingerprint image GenImg
Function Description: probing fingers, detect input fingerprint images stored in ImageBuffer, and return the entry successfully identified
Code. If undetected finger directly returned no finger confirmation code.
Input parameters: none
Return parameter: confirm the word
Instruction code: 0x01
The instruction packet format:
2 bytes
4 bytes
1 byte
2 bytes
1 byte
2 bytes
Baotou
Module address Packet identification
Packet length Instruction codeChecksum
0xef01
XXXX
0x01
0x0003
0x01
0x0005
Reply packet format:
2 bytes
4 bytes
1 byte
2 bytes
1 byte
2 bytes
Baotou
Module address Packet identification
Packet length Confirmation code
Checksum
Page 19
Hangzhou refers Security Technology Co., Ltd.
0xef01
XXXX
0x07
0x0003
X
Sum
Note: confirmation code = 0x00 entry success;
Confirmation code = 0x01 received packets wrong;
The confirmation code = 0x02 expressed no finger on the sensor;
Confirmation code = 0x03 Entry unsuccessful;
command packet checksum (2 bytes) = packet identification (1 byte) + packet length (2 bytes) + script (1 byte);
response packet checksum (2 bytes) = packet identification (1 byte) + packet length (2 bytes) + confirmation code (1 byte);
checksum bytes added to carry more than 2 bytes ignored, big endian transfer;
default module address "0xffffffff"; default password is "0x00000000".
9) Upload image UpImage
Function Description: the the module image buffer ImageBuffer in data upload uploaded to the host computer to the host computer (see
1.1.1 image buffer).
Input parameters: none
Return parameter: confirm the word
Instruction code: 0x0a
The instruction packet format:
2 bytes
4 bytes
1 byte
2 bytes
1 byte
2 bytes
Baotou
Module address Packet identification
Packet length Instruction codeChecksum