10/31/12
Google Translate
12/28
translate.google.com/translate?hl=en&sl=zh-‐‑CN&u=http://www.adafruit.com/datasheets/DY001fingerpr…
12 of 28
22. 0x21: must verify the password;
23: System reserved.
Page 14
Hangzhou refers Security Technology Co., Ltd.
Chapter VI module instruction system
ZFM-20 Series modules total of 21 instructions.
Application through different combinations of the command, to achieve a variety of fingerprint identification function.
All command / data transmission are in the form of packets delivered. Packet format and definition see 5.1 packet format.
6.1
system class instruction
1) Verify the password VfyPwd
Function Description: handshake password (see 4.6 module password) authentication module.
Input parameters: PassWord
Return parameters: confirmation code
Instruction code: 0x13
The instruction packet format:
2 bytes
4 bytes
1 byte
2 bytes
1 byte
4 bytes
2 bytes
Baotou
Module address Packet identification
Packet length Instruction code Password
Checksum
0xef01
XXXX
0x01
0x0007
0x13
PassWord
Sum
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
0xef01
XXXX
0x07
0x0003
X
Sum
Note: confirmation code = 0x00 indicates the correct password authentication;
Confirmation code = 0x01 received packets wrong;
Confirmation code = 0x13 indicating that the password is incorrect;
command packet checksum (2 bytes) = packet identification (1 byte) + packet length (2 bytes) + script (1 byte) + password (4 bytes);
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".
2) Set the password SetPwd
Function Description: set modules handshake password (see 4.6 module password).
Input parameters: PassWord
Return parameter: confirm the word
Instruction code: 0x12
The instruction packet format:
2 bytes
4 bytes
1 byte
2 bytes
1 byte
4 byte
2 bytes