10/31/12
Google Translate
23/28
translate.google.com/translate?hl=en&sl=zh-‐‑CN&u=http://www.adafruit.com/datasheets/DY001fingerpr…
25, a total of 28
The instruction packet format:
2 bytes 4 bytes 1 byte 2 bytes
1 byte
1 byte
2 bytes 2 bytes 2 bytes
Baotou Module address packet IDPacket lengthScript buffer number
Start Page
Pages
Checksum
0xef01
XXXX
0x01
0x0008
0x04
BufferID StartPage PageNum
Sum
Note: buffer CharBuffer1, CharBuffer2's BufferID is 0x01 and 0x02, respectively
Reply packet format:
2 bytes
4 bytes
1 byte
2 bytes
1 byte
2 bytes
2 bytes
2 bytes
Baotou
Module addressPacket identification
Packet lengthConfirmation code
Page number Score
Checksum
0xef01
XXXX
0x07
0x007
X
PageID MatchScore
Sum
Note: 1, confirmation code = 0x00 searched;
Confirmation code = 0x01 received packets wrong;
Confirmation code = 0x09 did not search;
2, after the instruction is executed, the contents of the feature buffer unchanged.
command packet checksum (2 bytes) = packet marking (1 byte) + packet length (2 bytes) + script (1 byte) + buffer number (1 bytes)
+ Start Page (2 bytes) + pages (2 bytes);
response packet checksum (2 bytes) = packet marking (1 byte) + packet length (2 bytes) + confirmation code (1 byte) + Page (2 bytes)
+ Score (2 bytes);
checksum bytes added to carry more than 2 bytes ignored, big endian transfer;
default module address "0xffffffff"; default password is "0x00000000".
Page 27
Hangzhou refers Security Technology Co., Ltd.
6.3
Other instructions
21) sampled random number GetRandomCode
Function Description: the module chip generates a random number and returns it to the host computer (see section 4.8 of the random number generator).
Input parameters: none
Return parameter: confirm the word
Instruction code: 0x14
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
0x14
0x0018
Reply packet format:
2 bytes
4 bytes
1 byte
2 bytes
1 byte
4 bytes
2 bytes
Baotou
Module address Packet identification
Packet length Confirmation code
Random number
Checksum
0xef01
XXXX
0x07
0x0007
X
XXXX
Sum
Note: confirmation code = 0x00 generate success;
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) + random number (4 bytes);
checksum bytes added to carry more than 2 bytes ignored, big endian transfer;
default module address "0xffffffff"; default password is "0x00000000".