Waveshare UART Fingerprint Sensor User Manual

Fingerprint sensor module

Advertisement

Quick Links

UART Fingerprint Sensor (C)
CONTENT
Overview .............................................................................................................................................. 2
Features ........................................................................................................................................ 2
Specification ................................................................................................................................. 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 eigenvalue ................................................................................. 15
User guides ......................................................................................................................................... 16
Connect to PC ............................................................................................................................. 16
Hardware connection .......................................................................................................... 16
Testing ................................................................................................................................ 17
Connect to XNUCLEO-F103RB ..................................................................................................... 18
Connect to Raspberry Pi .............................................................................................................. 18
V1.0
UART Fingerprint Sensor (C)
www.waveshare.com
User Manual
1 / 18

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the UART Fingerprint Sensor and is the answer not in the manual?

Questions and answers

Summary of Contents for Waveshare UART Fingerprint Sensor

  • Page 1: Table Of Contents

    UART Fingerprint Sensor (C) UART Fingerprint Sensor (C) User Manual CONTENT Overview .............................. 2 Features ............................2 Specification ..........................2 Hardware ............................. 4 Dimension............................. 4 Interface ............................4 Commands ............................5 Commands format ........................5 Commands Types: ......................... 6 Communication process ......................13 Add fingerprint ........................
  • Page 2: Overview

    Based on a high-performance Cortex processor, combined with high-security commercial fingerprinting algorithm, the UART Fingerprint Sensor (C) features functionalities like fingerprint enrolling, image acquisition, feature finding, template generating and storing, fingerprint matching, and so on. Without any knowledge about the complicate fingerprinting algorithm, all you need to do is just sending some UART commands, to quickly integrate it into fingerprint verification applications which require small size and high precision.
  • Page 3 UART Fingerprint Sensor (C) ⚫ 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 condensation) ⚫ Life: 1 million times V1.0 www.waveshare.com 3 / 18...
  • Page 4: Hardware

    UART Fingerprint Sensor (C) HARDWARE DIMENSION INTERFACE Note: The color of actual wires may be different with the image. According to the PIN when connecting but not the color. ⚫ VIN: 3.3V ⚫ GND: Ground ⚫ RX: Serial data input (TTL) ⚫...
  • Page 5: Commands

    UART Fingerprint Sensor (C) COMMANDS COMMANDS FORMAT This module works as slaver device, and you should control Master device to send commands to control it. Communicating interface is UART: 19200 8N1. The format commands and responses should be: 1) =8 bytes...
  • Page 6: Commands Types

    UART Fingerprint Sensor (C) 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...
  • Page 7 UART Fingerprint Sensor (C) 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) Second Byte User ID User ID Permission 0xF5 0x02 0xF5 (1/2/3) (High 8Bit ) (Low 8Bit ) ACK_SUCCESS 0xF5 0x02...
  • Page 8 UART Fingerprint Sensor (C) Notes: Length of Eigenvalues(Len-) is 193Byte Data packet is sent when fifth byte of ACK data is ACK_SUCCESS 7. Delete user(CMD/ACK both 8 Byte) Byte User ID User ID 0xF5 0x04 (High 0xF5 (Low 8Bit )
  • Page 9 UART Fingerprint Sensor (C) Byte User User 0xF5 0x0A ID(High 0xF5 ID(Low8Bit ) 8Bit ) Permission 0xF5 0x0A (1/2/3) 0xF5 ACK_NOUSER 13. Set/Query comparison level(CMD/ACK both 8 Byte) Byte Byte5=0: New Level 0:Set Level 0xF5 0x28 0xF5 Byte5=1: 0 1:Query Level...
  • Page 10 UART Fingerprint Sensor (C) Byte ACK_SUCCUSS 0xF5 0x23 Hi(Len) Low(Len) ACK_FAIL 0xF5 ACK_TIMEOUT 2)Data packet Byte 5---Len+1 Len+2 Len+3 0xF5 Eigenvalues 0xF5 Notes: Length of Eigenvalues (Len -3) is 193 bytes. 16. Download eigenvalues and compare with fingerprint acquired(CMD >8 Byte/ACK=8 Byte)...
  • Page 11 UART Fingerprint Sensor (C) 2)Data packet Byte 5---Len+1 Len+2 Len+2 0xF5 Eigenvalues 0xF5 Notes:Length of Eigenvalues (Len -3) is 193 bytes. ACK Format: Byte Permission User ID User ID (1/2/3) 0xF5 0x43 0xF5 (High 8 Bit) (Low 8 Bit ) ACK_NOUSER 19.
  • Page 12 UART Fingerprint Sensor (C) Byte 0xF5 0x2B 0xF5 ACK Format: 1)Data head: Byte ACK_SUCCUSS 0xF5 0x2B Hi(Len) Low(Len) 0xF5 ACK_FAIL 2)Data packet Byte 4---Len+1 Len+2 Len+3 User ID User ID User information (User 0xF5 0xF5 (High 8 Bit) (Low 8 Bit) ID and permission)...
  • Page 13: Communication Process

    UART Fingerprint Sensor (C) COMMUNICATION PROCESS ADD FINGERPRINT Begin Send CMD=0x01 command Response Q3=ACK_FULL If database is full? timeout, response Q3=ACK_TIMEOUT Acquire fingerprint eigenvalue is less , response Process image Q3=ACK_FAIL Response Q3=ACK_SUCCESS Send CMD=0x02 command timeout, response Q3=ACK_TIMEOUT Acquire fingerprint...
  • Page 14: Delete User

    UART Fingerprint Sensor (C) DELETE USER Begin Send CMD=0x04 Delete user whose ID is P1/P2 Delete failed, response Q3=ACL_FAIL Response Q3=ACK_SUCCESS DELETE ALL USERS Begin Send CMD=0x05 Delete all users Delete failed, response Q3=ACL_FAIL Response Q3=ACK_SUCCESS V1.0 www.waveshare.com 14 / 18...
  • Page 15: Acquire Image And Upload Eigenvalue

    UART Fingerprint Sensor (C) ACQUIRE IMAGE AND UPL OAD EIGENVALUE Begin Send CMD=0x23 Acquire fingerprint Timeout, response Q3=ACK_TIMEOUT Process image Eigenvalue is less, response Q3=ACK_FAIL Return eigenvalue data packet , response Q3=ACK_SUCCESS V1.0 www.waveshare.com 15 / 18...
  • Page 16: User Guides

    UART Fingerprint Sensor (C) USER GUIDES If you want to connect the fingerprint module to PC, you need to buy one UART to USB module. We recommend you use Waveshare FT232 USB UART Board (micro) module. If you want to connect the fingerprint module 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.
  • Page 17: Testing

    UART Fingerprint Sensor (C) TESTING ⚫ Download UART Fingerprint Sensor test software from wiki ⚫ Open software and choose the correct COM port.(The software can only support COM1~COM8, if the COM port in your PC is out of this range, please modify it) ⚫...
  • Page 18: Connect To Xnucleo-F103Rb

    Note: About the pins, please refer to Interface above 1. Connect UART Fingerprint Sensor (C) to XNUCLEO_F103RB, and connect programmer 2. Open project (demo code) by keil5 software 3. Check if programmer and device are recognized normally 4. Compile and download 5.

Table of Contents