background image

UART Fingerprint Sensor (C) 

   

 

V1.0 

www.waveshare.com

 

 

7

  / 

18

 

ACK_FULL 

ACK_USER_OCCUPIED 

ACK_FINGER_OCCUPIED 

ACK_TIMEOUT 

Notes

 

User ID: 1~0xFFF;   

User Permission: 1,2,3

(you can define the permission yourself) 

b)

 

Second 

Byte 

CMD 

0xF5 

0x02 

User ID 

(High 8Bit ) 

User ID 

(Low 8Bit ) 

Permission

1/2/3

 

CHK 

0xF5 

ACK 

0xF5 

0x02 

ACK_SUCCESS 

ACK_FAIL 

ACK_TIMEOUT 

CHK 

0xF5 

c)

 

third 

Byte 

CMD 

0xF5 

0x03 

User ID 

(High 8Bit ) 

User ID 

(Low 8Bit ) 

Permission

1/2/3

 

CHK 

0xF5 

ACK 

0xF5 

0x03 

ACK_SUCCESS 

ACK_FAIL 

ACK_TIMEOUT 

CHK 

0xF5 

 

Notes

  User ID and Permission in three commands. 

6.

 

Add users and upload eigenvalues

CMD =8Byte/ACK > 8 Byte

 

T

his commands are similar to “5. add fingerprint”, you should add triple times as well. 

 

a)

 

First 

Same as the First of 

5. add fingerprint

 

b)

 

Second 

S

ame as the Second of ”

5. add fingerprint

 

c)

 

Third 

CMD Format

 

Byte 

CMD 

0xF5 

0x06 

CHK 

0xF5 

 

ACK Format

 

 

1

Data head

 

Byte 

ACK 

0xF5 

0x06 

Hi(Len) 

Low(Len) 

ACK_SUCCESS 

ACK_FAIL 

ACK_TIMEOUT 

CHK 

0xF5 

 

2

Data packet

 

Byte 

5---Len+1 

Len+2 

Len+3 

ACK 

0xF5 

Eigenvalues 

CHK 

0xF5 

Содержание UART Fingerprint Sensor

Страница 1: ...cation 2 Hardware 4 Dimension 4 Interface 4 Commands 5 Commands format 5 Commands Types 6 Communication process 13 Add fingerprint 13 Delete user 14 Delete all users 14 Acquire image and upload eigenv...

Страница 2: ...u don t have to know any fingerprint technology or the module inter structure Commercial fingerprinting algorithm stable performance fast verification supports fingerprint enrolling fingerprint matchi...

Страница 3: ...C V1 0 www waveshare com 3 18 Baudrate 19200 bps Operating environment Temperature 20 C 70 C Humidity 40 RH 85 RH no condensation Storage environment Temperature 40 C 85 C Humidity 85 RH no condensati...

Страница 4: ...different with the image According to the PIN when connecting but not the color VIN 3 3V GND Ground RX Serial data input TTL TX Serial data output TTL RST Power enable disable Pin HIGH Power enable L...

Страница 5: ...eration it should be define ACK_SUCCESS 0x00 define ACK_FAIL 0x01 define ACK_FULL 0x04 define ACK_NOUSER 0x05 define ACK_USER_OCCUPIED 0x06 define ACK_FINGER_OCCUPIED 0x07 define ACK_TIMEOUT 0x08 CHK...

Страница 6: ...CK 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 s...

Страница 7: ...Permission 1 2 3 0 CHK 0xF5 ACK 0xF5 0x03 0 0 ACK_SUCCESS ACK_FAIL ACK_TIMEOUT 0 CHK 0xF5 Notes User ID and Permission in three commands 6 Add users and upload eigenvalues CMD 8Byte ACK 8 Byte This co...

Страница 8: ...K 0xF5 0x05 0 0 ACK_SUCCESS ACK_FAIL 0 CHK 0xF5 9 Query count of users CMD ACK both 8 Byte Byte 1 2 3 4 5 6 7 8 CMD 0xF5 0x09 0 0 0 Query Count 0xFF Query Amount 0 CHK 0xF5 ACK 0xF5 0x09 Count Amount...

Страница 9: ...7 8 ACK 0xF5 0x24 Hi Len Low Len ACK_SUCCUSS ACK_FAIL ACK_TIMEOUT 0 CHK 0xF5 2 Data packet Byte 1 2 Len 1 Len 2 Len 3 ACK 0xF5 Image data CHK 0xF5 Notes In DSP module the pixels of fingerprint image a...

Страница 10: ...Eigenvalues CHK 0xF5 Notes Length of Eigenvalues Len 3 is 193 bytes ACK Format Byte 1 2 3 4 5 6 7 8 ACK 0xF5 0x44 0 0 ACK_SUCCUSS ACK_FAIL ACK_TIMEOUT 0 CHK 0xF5 17 Download eigenvalues and compariso...

Страница 11: ...CK_FAIL ACK_NOUSER 0 CHK 0xF5 2 Data packet Byte 1 2 3 4 5 Len 1 Len 2 Len 3 ACK 0xF5 User ID High 8 Bit User ID Low 8 Bit Permission 1 2 3 Eigenvalues CHK 0xF5 Notes Length of Eigenvalues Len 3 is 19...

Страница 12: ...D1 Low 8 Bit User 1 Permission 1 2 3 User ID2 High 8 Bit User ID2 Low 8 Bit User 2 Permission 1 2 3 22 Set Query fingerprint capture timeout CMD ACK both 8 Byte Byte 1 2 3 4 5 6 7 8 CMD 0xF5 0x2E 0 By...

Страница 13: ...ss Only do in disable duplication mode Add fingerprint to database Response Q3 ACK_SUCCESS End Fingerprint has existed response Q3 ACK_USER_EXIST eigenvalue is less response Q3 ACK_FAIL timeout respon...

Страница 14: ...14 18 DELETE USER DELETE ALL USERS Begin Send CMD 0x04 Delete user whose ID is P1 P2 Response Q3 ACK_SUCCESS Delete failed response Q3 ACL_FAIL End Begin Send CMD 0x05 Delete all users Response Q3 AC...

Страница 15: ...veshare com 15 18 ACQUIRE IMAGE AND UPLOAD EIGENVALUE Begin End Send CMD 0x23 Acquire fingerprint Process image Return eigenvalue data packet response Q3 ACK_SUCCESS Eigenvalue is less response Q3 ACK...

Страница 16: ...le to development board like Raspberry Pi if the working level of your board is 3 3V you can directly connect it to UART and GPIO pins of your board If it is 5V please add level convert module circuit...

Страница 17: ...returned and display in Information Response interface 2 Add User Choose Add User check Acquire Twice and Auto ID 1 type the ID P1 and P2 and permission P3 then click Send Finally touch sensor to acq...

Страница 18: ...ands to test module according to information returned CONNECT TO RASPBERRY PI We provide python example for Raspberry Pi you can download it from wiki Before you use the example you should enable seri...

Отзывы: