UART Fingerprint Sensor (C)
V1.0
6
/
18
Len: numbers of Data bytes
CHK: Checksum, it is XOR result of bytes from Byte 2 to Byte Len+1
data packet following data head.
COMMANDS TYPES:
1.
Modify SN number of module
(
CMD/ACK both 8 Byte
)
Byte
1
2
3
4
5
6
7
8
CMD
0xF5
0x08
New SN
(Bit 23-16)
New SN
(Bit 15-8)
New
SN(Bit 7-0)
0
CHK
0xF5
ACK
0xF5
0x08
old SN
(Bit 23-16)
old SN
(Bit 15-8)
old SN
(Bit 7-0)
0
CHK
0xF5
Notes: SN numbers is 24 bits constant.
2.
Query Model SN
(
CMD/ACK both 8 Byte
)
Byte
1
2
3
4
5
6
7
8
CMD
0xF5
0x2A
0
0
0
0
CHK
0xF5
ACK
0xF5
0x2A
SN
(Bit 23-16)
SN
(Bit 15-8)
SN
(Bit 7-0)
0
CHK
0xF5
3.
Sleep Mode
(
CMD/ACK both 8 Byte
)
Byte
1
2
3
4
5
6
7
8
CMD
0xF5
0x2C
0
0
0
0
CHK
0xF5
ACK
0xF5
0x2C
0
0
0
0
CHK
0xF5
4.
Set/Read fingerprint adding mode
(
CMD/ACK both 8 Byte
)
There are two mode: enable duplication mode and disable duplication mode. When module is in
disable duplication mod: same fingerprint could only added as one ID. If you want to add another
ID with the same fingerprint, DSP response failed information. Module is in disable mode after
powering on.
Byte
1
2
3
4
5
6
7
8
CMD
0xF5
0x2D
0
Byte5=0:
0:Enable
1:Disbale
Byte5=1
:
0
0: new mode
1
:
read
current mode
0
CHK
0xF5
ACK
0xF5
0x2D
0
Current mode
ACK_SUCCUSS
ACK_FAIL
0
CHK
0xF5
5.
Add fingerprint
(
CMD/ACK both 8 Byte
)
Master device should send commands triple times to module and add fingerprint triple times,
make sure the fingerprint added is valid.
a)
First
Byte
1
2
3
4
5
6
7
8
CMD
0xF
5
0x0
1
User ID
(High 8Bit )
User ID
(Low 8Bit )
Permission
(
1/2/3
)
0
CHK
0xF5
ACK
0xF
5
0x0
1
0
0
ACK_SUCCESS
ACK_FAIL
0
CHK
0xF5