Fingerprint Module Product User Manual - V1.8

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 90

The right chip for your great idea!

Fingerprint Module Products


User Manual




Version 1.8, January, 2019

杭州长河智信科技有限公司
指纹模组产品用户手册

Statement

The following documents contain Hangzhou chang he zhi xin technology co., LTD. (hereinafter referred
to as chang he) of private information, in the absence of chang he formal permission, a third party shall not use
or leaked, any without authorization, special conditions, restrictions or inform in the case of the information
copy and modification is infringement.

At any time, chang he has the right to change, add, delete, improve and any other changes to its products
and services without informing any party. chang he shall not bear any responsibility or obligation in the use of

the Company's products; and a third party shall not infringe any patent or other intellectual property rights in the

use.
The sale of all products is subject to the terms and conditions of sale of the Company in the purchase
admission. The company uses testing, tools, quality control and other technical means to support the relevant
performance of the product to meet the required specifications. There is no need to perform all parameter tests for
each product, except for explicit written government requirements. If the product is damaged or unable to use

normally due to the improper use, the customer shall bear the responsibility himself.

Except for chang he's logo design, all other trademarks or registered trademarks belong to their respective

owners.
Hangzhou chang he Security Technology Co., Ltd. 20052020 © copyright. Copyright, the

infringement must be prosecuted.


I J-JY-指纹模组产品用户手册
指纹模组产品用户手册

Contact Way

杭州长河智信科技有限公司

Site:1006-2, Building 6, Lierda Internet of Things Technology Park, No. 1324 Wenyi West Road,

Yuhang District, Hangzhou City

Postcode:311121

Switchboard:+86 17367084650

Email:Summer@hzchanghe.com.cn

URL:杭州长河智信科技有限公司 (www.hzchanghe.com.cn)





指纹模组产品用户手册

II J-JY-指纹模组产品用户手册





指纹模组产品用户手册

Version History

Versio Revise Content


Date
n Chapter Revised Content
1.0 2017-08-16 All qianp The initial version
Enrich security functions, parameter tables and other contents;
1.1 2017-10-16 All qianp、Lzz
change declaration and modify format content.
Enrich the content of the parameter table, and add the
1.2 2017-10-28 All qianp、Lzz
breathing light instructions.

1.3 2017-11-28 All qianp Enrich the contents of the parameter tables.
Increase obtaining image information and search for current
fingerprint instructions; enrich the general instruction process;
1.4 2017-12-12 All qianp
and enrich the general registration and automatic registration
process.

1.5 2018-01-12 3.5.7 qianp Modify the breathing light instructions.


Correct the length of the security search fingerprint instruction

package; modify the description of features and templates, and
3.3.3.5,4.2,4 increase the accurate alignment example process; increase the
1.6 2018-03-05 qianp
.5,3.5.7
dormant wake-up example process; and modify the LED lamp

instruction.

1.7 2018-03-05 3.5.7 qianp Modify the description of the LED lamp instruction time bits.

Add serial port delay, anti-false mode and sensor parameters in


parameter table; delete fingerprint template form; add
2.1,2.2,3.2,3

1.8 2019-01-09 qianp confirmation code 34H; modify table 3-34 "Bytes"; add
.3.1.13,4.5,5
supplementary instructions for dormancy process; and add 5
supplementary instructions.

III J-JY-指纹模组产品用户手册
指纹模组产品用户手册

Catalogue

Statement ............................................................................................................................................................................. I
Contact Way ....................................................................................................................................................................... II
Version History ................................................................................................................................................................. III
Catalogue........................................................................................................................................................................... IV
Catalog of attached drawings.......................................................................................................................................... VI
Table directory ............................................................................................................................................................... VII
Abbreviations And Terms ................................................................................................................................................. X
1 Hardware Interface Description .................................................................................................................................... 1
2 Software Instructions ...................................................................................................................................................... 2
2.1 Parameter Table ................................................................................................................................................... 2
2.2 Number of registrations and the fingerprint template size .............................................................................. 9
2.3 Power shake hands signal.................................................................................................................................... 9
3 Instructions format detailed explanation...................................................................................................................... 10
3.1 Instruction package / packet format ................................................................................................................. 10

3.2 Directive response ............................................................................................................................................. 11
3.3 Business class instruction set ........................................................................................................................... 13
3.3.1 Universal instruction set ........................................................................................................................ 13

3.3.2 Module instruction set ........................................................................................................................... 31
3.3.3 Security instruction set .......................................................................................................................... 37

3.4 Maintenance class instruction set .....................................................................................................................45


3.4.1 Upload images PS_UpImage ................................................................................................................ 45
3.4.2 Download images PS_DownImage ..................................................................................................... 46

3.4.3 Obtain the chip unique serial number PS_GetChipSN ....................................................................... 47


3.4.4 Handshake instructions PS_HandShake .............................................................................................. 47
3.4.5 Check the sensor PS_CheckSensor ...................................................................................................... 48
3.4.6 Restore factory setting PS_RestSetting................................................................................................ 49
3.5 Custom class instruction set ............................................................................................................................. 50
3.5.1 Set the password PS_SetPwd................................................................................................................ 50
3.5.2 Verify the password PS_VfyPwd.......................................................................................................... 50
3. 5 .3 Sampling random number PS_ GetRandomCode ............................................................................... 51
3.5.4 Set upDevice addressPS_ SetChipAddr ............................................................................................... 52
3.5.5 Write a notepad PS_WriteNotepad....................................................................................................... 53
3.5.6 Read the notepad PS_ReadNotepad...................................................................................................... 53
3.5.7 The LED control light instruction PS_ControlBLN ........................................................................... 54
3.5.8 Obtain the image information instructions PS_GetImageInfo ........................................................... 56
3.5.9 Search for the current fingerprint instructions PS_SearchNow ........................................................ 57
4 Example of functional implementation .......................................................................................................................59
4.1 Basic communication process .......................................................................................................................... 59
4.1.1 Processing of the UART and USB command packages ..................................................................... 59
4.1.2 Sending process of UART packets ....................................................................................................... 60

IV J-JY-指纹模组产品用户手册
指纹模组产品用户手册
4.1.3 Receiving process of UART packets ................................................................................................... 61
4.1.4 Sending and receiving process of USB data packets .......................................................................... 62
4.2 General instruction communication process ................................................................................................... 64
4.2.1 General instruction Pour book fingerprint process ............................................................................. 64
4.2.2 General instructions to verify the fingerprint process ........................................................................ 65
4.2.3 The fingerprint is taken from the sensor and the features are uploaded to the master ..................... 66
4.2.4 Read a specified template upload from the flash fingerprint library ................................................. 67
4.2.5 The master control downloads a fingerprint feature and searches for the fingerprint library with
that feature ....................................................................................................................................................... 68
4.2.6 The master downloads two fingerprint features or templates for accurate alignment ..................... 69
4.2.7 The master downloads a fingerprint feature or template for accurate alignment ............................. 70
4.3 Module instruction communication process ................................................................................................... 71
4.3.1 Automated Pour Book Template Process .............................................................................................71
4.3.2 Automatic verify fingerprint process ................................................................................................... 72
4.4 Security instruction communication process .................................................................................................. 73
4.4.1 Security instruction Pour book fingerprint process ............................................................................ 73
4.4.2 Security instructions to verify the fingerprint process ........................................................................ 74
4.5 Sleep wake up process ...................................................................................................................................... 75
4.5.1 Self-triggering process .......................................................................................................................... 75

4.5.2 External trigger process ......................................................................................................................... 76
5 Additional Remarks....................................................................................................................................................... 77

5.1.1 Relationship between software version and antiresistance .................................................................77

V J-JY-指纹模组产品用户手册
指纹模组产品用户手册

Catalog of attached drawings

FIG.4 - 1 Functional Example 1: Processing of the UART and USB command packets ............................... 59
FIG. 4 -2 . Example 2: UART packet sending process ......................................................................................... 61
FIG.4 -3 Functional Implementation Example 3: A UART packet receiving process .................................... 62
FIG. 4 -4 Function Example 4: USB packet sending process .......................................................................... 63
FIG.4 -5 Function Example 5: USB packet receiving process ......................................................................... 63
FIG.4 -6 Function implementation Example 6: General instruction Pour book process ................................ 64
FIG.4 -7 Function implementation Example 7: General instruction verification process ............................. 65
FIG. 4 -8 Functional implementation Example 8: Getting the fingerprint from the sensor and generating the
feature is uploaded to the master ............................................................................................................................ 66
FIG.4 -9 Example 9: Read a specified template upload from the flash fingerprint library ........................... 67
FIG. 4 - 10 Function implementation example 10 : Master downloads a fingerprint feature and searches the
fingerprint library with the feature ......................................................................................................................... 68
FIG. 4 - 11 Function implementation example 11: Master downloads two fingerprint features or templates
for accurate comparison .......................................................................................................................................... 69
FIG. 4 - 12

Function implementation example 12: Master downloads a fingerprint feature or template for
accurate comparison ................................................................................................................................................ 70
FIG.4 - 13 Example 13: Automatic Pour book template process ...................................................................... 71

FIG.4 - 14 Function implementation Example 14: Automatic verification of the fingerprint process ...........72
FIG.4 - 15 Function implementation example 15: Security instruction Pour book fingerprint process .........73

FIG. 4 - 16 Function implementation example 16: security instruction verification fingerprint process .......74
FIG.4 - 17 Example 17: Self-triggering process ................................................................................................. 75
FIG.. 4 - 18 Example 18: External trigger process .......................................................................................... 76

VI J-JY-指纹模组产品用户手册
指纹模组产品用户手册

Table directory

Table 2- 1 System Parameter Table.........................................................................................................................2


Table 3 -1 Command Package Format......................................................................................................... 10
Table 3 -2 Data Package Format ......................................................................................................................... 10
Table 3 -3 Ends the package format .................................................................................................................... 11
Table 3 -4 Response package format ................................................................................................................... 11
Table 3 -5 Input the image instruction package format ..................................................................................... 14
Table 3 -6 Input the image instruction answer package format ........................................................................ 14
Table 3 -7 generates the characteristic instruction package format .................................................................. 14
Table 3 -8 generates the characteristic instruction response package format .................................................. 14
Table 3 -9 Accurate alignment of two fingerprint feature instruction package formats .................................. 15
Table 3 - 10 accurately compares the two fingerprint feature instructions, Answer package format ............. 16
Table 3 - 11 searches for the fingerprint Directive package format .................................................................. 16
Table 3 - 12 searches for the fingerprint instruction response package format ................................................ 16
Table 3 - 13 Combined features (generate template) Directive package format .............................................. 17
Table 3 - 14

Merge feature (generate template) instruction response package format .................................... 17
Table 3 - 15 Store the Template Directive package format ............................................................................... 18
Table 3 - 16 stores the template instruction reply package format .................................................................... 18

Table 3 - 17 reads out the template Directive package format .......................................................................... 19
Table 3 - 18 reads out the template instruction response package format ........................................................ 19

Table 3 - 19 Upload template Directive package format ................................................................................... 20


Table 3 -20 Upload feature or template instruction response package format ................................................ 20
Table 3 -21 UART upload features or template package format ...................................................................... 20

Table 3 -22 Download Template Directive package format ............................................................................. 21


Table 3 -23 Download the template instruction response package format ...................................................... 21
Table 3 -24 UART download features or template package format ................................................................. 21
Table 3 -25 Delete the template Directive package format .............................................................................. 22
Table 3 -26 Delete the template instruction reply package format ...................................................................22
Table 3 -27 Empty the fingerprint library, Directive package format .............................................................. 23
Table 3 -28 Empty the fingerprint library instruction answering package format .......................................... 23
Table 3 -29 writes about the system register Directive package format ...........................................................23
Table 3 -30 writes the system register instruction Answer package format .................................................... 23
Table 3 -31 Register configuration table ............................................................................................................ 24
Table 3 -32 Read the System Basic Parameter Directive package format ...................................................... 25
Table 3 -33 Read the system basic Parameter instruction Answer package format ........................................... 25
Table 3 -34 System Basic Parameter list ............................................................................................................ 26
Table 3 -35 Read the flash information page Directive package format .......................................................... 26
Table 3 -36 Read the flash information page instruction Answer package format ......................................... 27
Table 3 -37 UART Upload information page package format .......................................................................... 27
Table 3 -38 : FLASHDirective package format in the burning tablet ................................................................. 27
Table 3 -39 : FLASH instruction Answer package format in the burner .............................................................28

VII J-JY-指纹模组产品用户手册
指纹模组产品用户手册
Table 3 -40 Read the number of valid templates, Directive package format .................................................. 28
Table 3 -41 Read the number of valid template instruction Answer package format ..................................... 28
Table 3 -42 Read the Index Table Directive package format ............................................................................ 29
Table 3 -43 Read the index table instructions Answer package format ............................................................29
表 Table 3 -44 : Entry of the image, Directive package format ........................................................................... 30
Table 3 -45 Input the image instruction Answer package format ..................................................................... 30
Table 3 -46 Read the Index Table Directive package format ............................................................................ 30
Table 3 -47 Read the index table instructions Answer package format ............................................................30
Table 3 -48 Read the Index Table Directive package format ............................................................................ 31
Table 3 -49 Read the index table instructions Answer package format ............................................................31
Table 3 -50 Automatic Pour Book Template Directive package format ...........................................................32
Table 3 -51 Automatic Pour book template instruction normal process Answer package format ................. 32
Table 3 -52 Automatic Pour Book template response package interpretation table.........................................33
Table 3 -53 Automatic verified fingerprint Directive package format ............................................................. 35
Table 3 -54 Automatic verify fingerprint instruction Answer package format ............................................... 35
Table 3 -55 Automatic verification of fingerprint response package Paraphrase ............................................ 36
Table 3 -56 Get the secret key pair of Directive package format ..................................................................... 37
Table 3 -57 obtains the secret key pair instruction Answer package format ................................................... 37
Table 3 -58 Get the secret key pair packet format ............................................................................................. 38
Table 3 -59

Lock the secret key to the Directive package format .................................................................... 39
Table 3 -60 Lock the secret key pair instruction Answer package format .......................................................... 39

Table 3 -61 obtains the ciphertext random number Directive package format ............................................... 40
Table 3 -62 obtains the ciphertext random number instruction Answer package format ................................40
Table 3 -63 obtains the ciphertext random number packet format ................................................................... 40

Table 3 -64 Safe Storage Template Directive package format ......................................................................... 41


Table 3 -65 Secure Storage Template Instructions Answer package format ................................................... 42

Table 3 -6 6 Security search for fingerprint Directive package format ............................................................. 43


Table 3 -67 Security search for fingerprint instructions Answer package format ........................................... 43
Table 3 -68 Secure search for fingerprint instruction packet format ................................................................ 44
Table 3 -69 Uploaded image for Directive package format .............................................................................. 45
Table 3 -70 Upload image instruction Answer package format ....................................................................... 45
Table 3 -71 UART Upload image package format ............................................................................................ 45
Table 3 -72 Downloads the image for the Directive package format ...............................................................46
Table 3 -73 Download Image Instruction Answer package format .................................................................. 46
Table 3 -74 UART download image package format ........................................................................................ 46
Table 3 -75 obtains the chip unique serial number Directive package format ................................................ 47
Table 3 -76 obtains the chip unique serial number instruction Answer package format .................................47
Table 3 -77 Handshake with Directive package format .....................................................................................48
Table 3 -78 Handshake instructions for Answer package format ..................................................................... 48
Table 3 -79 Check the sensor Directive package format .................................................................................. 48
Table 3 -80 Verify the sensor instruction Answer package format ................................................................... 48
Table 3 -81 Delete the secret key pair of Directive package format ................................................................ 49
Table 3 -82 Delete the secret key pair instruction Answer package format .................................................... 49
Table 3 -83 Set the password Directive package format .................................................................................. 50

VIII J-JY-指纹模组产品用户手册
指纹模组产品用户手册
Table 3 -84 Set the password command Answer package format .................................................................... 50
Table 3 -85 Verify the password Directive package format .............................................................................. 51
Table 3 -86 verifies the command instruction Answer package format ........................................................... 51
Table 3 -87 The sampled random numbers are Directive package format ...................................................... 51
Table 3 -88 Sampling random number instruction response package format...................................... 52
Table 3 - 89 Setting up the Device addressDirective package format...................................................... 52
Table 3 - 90 install Device address order Answer package format ...................................................................... 52
Table 3 -91 Write Notepad Directive package format ....................................................................................... 53
Table 3 -92 Write the notepad instruction Answer package format ..................................................................53
Table 3 -93 Read Notepad Directive package format ........................................................................................54
Table 3 -94 Read the Notepad instruction, Answer package format ................................................................ 54
Table 3 -95 . General indicator lamp Directive package format .......................................................................... 54
Table 3 -96 Colorful Programming Breath Light Directive package format .................................................. 55
Table 3 -97 Color control position schematic table ........................................................................................... 56
Table 3 -98 Breathing light Instructions Answer package format .................................................................... 56
Table 3 -99 obtains the image information, Directive package format ............................................................ 57
Table 3 - 100 acquires the image information instruction Answer package format ......................................... 57
Table 3 - 101 searches for the current fingerprint Directive package format ................................................... 57
Table 3 - 102 searches for the current fingerprint instructions, Answer package format .................................58

Table 5 - 1 Table of software version and anti-false mode................................................................................. 77


IX J-JY-指纹模组产品用户手册
指纹模组产品用户手册

Abbreviations And Terms

USB :Universal Serial Bus ,通用串行总线

UART : Universal Asynchronous Receiver/Transmitter,通用 异步收发 器

JTAG :Joint Test Action Group ,边界测试扫描接口




X J-JY-指纹模组产品用户手册
指纹模组产品用户手册

1 Hardware Interface Description

1) UART
a) The UART default port rate is 57.6Kbps, with the data format: 8-bit data bits, 2-bit stop bits, and
no check bits;

b) The UART wave rate can be set by instructions, ranging from 9600 to 115200;

c) If the master is MCU(3.3V), connect directly to UART_TD and UART_RD; if the master is PC,
the RS232 level conversion device is required.

2) USB
a) Standard USB interface, embedded USB communication protocol;

b) Compatible with USB2.0, working in Full Speed;

c) Default VID=0x2109; default PID=0x7638;

3) The UART works in conjunction with the USB



a) The master control can communicate with the fingerprint module through the UART or USB;
b) Two interfaces can only work separately, and do not support simultaneous work;

c) Both interfaces execute the same protocol and commands;

d) Two interfaces share the same data buffer;



1 J-JY-指纹模组产品用户手册
指纹模组产品用户手册

2 Software Instructions

2.1 Parameter Table

 The content of the parameter table is the basic parameters of the protocol and the
algorithm operation. All the work of the module will use the content of the parameter table,
so understanding and properly set the parameter table is crucial for how to correctly use
the fingerprint module product;

 The structure of the table of parameters is shown in Table 2- 1:


Table 2-1 System Parameter Table

Serial Length Content and


Type Chinese name English name Annotation
Number (Bytes) default values

1 Number of registrations EnrollTimes 2


2 Fingerprint template size TempSize 2
PART1

Automatically
3 Fingerprint library size DataBaseSize 2 discrimination
by FLASH type

It is divided into five


4 Score grade ScoreLevel 2 3
grades

It can be set by the


5 Device address DeviceAddress 4 0xffffffff
instructions

6 Database size CFG_PktSize 2 2


7 Porter rate coefficient CFG_BaudRate 2 6
8 Anti-false finger mold ResSpitefulImg 2 1
These 8 registers
9 Sensor parameter FPSensorPara 2
are a system
10 Secret grade SecurLevel 2 0 configuration table
11 Registration logic EnrollLogic 2 0
12 Image format ImageFormat 2 1
PART2
13 String time delay DelayTime 2 0
14 Product model ProductSN 8 ASCII 码
SoftwareVersio
15 Software version number 8 ASCII 码
n Device descriptors
16 Manufacturer name Manufacturer 8 ASCII 码
17 Sensor name SensorName 8 ASCII 码
18 Password PassWord 4 00000000H
19 Jtag Lock the logo JtagLockFlag 4 00000000H
20 Reserve 2
21 Reserve 2
22 Reserve 54

2 J-JY-指纹模组产品用户手册
指纹模组产品用户手册
Serial Length Content and
Type Chinese name English name Annotation
Number (Bytes) default values

PART3 23 Parameter table valid flag ParaTableFlag 2 0x1234

 Detailed explanation of parameter table:

1) Number of registrations EnrollTimes

Reset Value: According to FLASH


Length: 2 bytes

Property: Read / write

Purpose: When registering, set the number of entry indication

Read the instructions: PS_ReadSysPara,See instructions for details

Set instructions: PS_WriteReg,See instructions for details

2) Fingerprint template size TempSize

Reset Value: According to FLASH


Length: 2 bytes

Property: Read- only



Purpose: Fingerprint template size indicator

Read the instructions: PS_ReadSysPara ,See instructions for details

3) Fingerprint library size DataBaseSize


Reset Value: According to FLASH


Length: 2 bytes

Property: Read- only

Purpose: Fingerprint library capacity indication

Read the instructions: PS_ReadSysPara ,See instructions for details

4) Score grade ScoreLevel

Reset Value: 0x0003


Length: 2 bytes

Property: Read write

Purpose: The score level indicates; the system sets the alignment valve according to
this value
Read the instructions: PS_ReadSysPara See instructions for details

Set instructions: PS_WriteReg See instructions for details

Five levels:

1:Level 1 Lowest

2:Level 2

3 J-JY-指纹模组产品用户手册
指纹模组产品用户手册

3:Level 3

4:Level 4

5:Level 5 Highest

5) Device address DeviceAddress

Reset Value: 0 xffffffff

Length: 4 bytes

Property: Read / write

Purpose: The system only receives instruction packets / packets with matching
addresses

Read the instructions: PS_ReadSysPara ,See instructions for details


Set instructions: PS_SetChipAddr,See instructions for details

6) Database size CFG_PktSize

Reset Value: 0x0002

Length: 2 bytes 信
Property: Read / write

Purpose: When sending the data, the system sets the length of an individual packet

according to the value

Read the instructions: PS_ReadSysPara ,See instructions for details


Set instructions: PS_WriteReg ,See instructions for details

7) Porter rate coefficient CFG_BaudRate


Reset Value: 0x0006


Length: 2 bytes

Property: Read / write

Purpose: Determine the uart port rate = this value * 9600

Read the instructions: PS_ReadSysPara ,See instructions for details

Set instructions: PS_ WriteReg , See instructions for details

8) Anti-false finger mold ResSpitefulImg

Reset Value: 1
Length: 2 bytes

Property: Read / write

Purpose: Used to eliminate the phenomenon of false finger mold fusion into the
fingerprint template

Read the instructions: PS_ReadSysPara ,See instructions for details

4 J-JY-指纹模组产品用户手册
Set instructions: PS_ WriteReg , See instructions for details

Set the way:

Bit0: 0-Turn off residue and 1-Turn on residue (default state).

Bit1: 0-Turn off the fingerprint membrane recognition algorithm, 1-Open the
fingerprint membrane recognition algorithm (default state).

Bit2: 0- Turn off learning function, 1- Turn on learning function (default state).

Bit3~ Bit15: Retention (the default is 0).

pay attention to : The software version format is the Vx.y .z. The n, where some versions do
not display the n bits. If z> =5, set the configuration parameters as above,
otherwise refer to the 5.1.1 settings.

9) Sensor parameter FPSensorPara

Reset Value: According to FLASH


Length: 2 bytes

Property: Read / write

Purpose: Set the relevant parameters for the communication between the master

chip and the sensor

Read the instructions: PS_ReadSysPara ,See instructions for details

Set instructions: PS_ WriteReg , See instructions for details


Set the way:

Bit0~ Bit3: SPI speed。


Bit4~ Bit6: GPIO feet (chip selection, reset)。

Bit7: SPI mouth。

Bit8~ Bit15: Keep back。

pay attention to : Do not set up at will。

10) Secret grade SecurLevel

Reset Value: 0

Length: 2 bytes
Property: Read / write

Purpose: Set the module encryption level, not allowed after setting
Read the instructions: PS_ReadINFpage ,See instructions for details

Set instructions: PS_ WriteReg , See instructions for details

Secret grade :

0:Level 0 Default state. Support for all instructions except for the security
instruction set。

5 J-JY-指纹模组产品用户手册
指纹模组产品用户手册

1:Level 1 No security algorithm, no support for security instruction sets, upload


templates, download templates, and download images.

2:Level 2 SM4 (ECB), does not support the upload of templates, download
templates, download images, accurate alignment, fingerprint search,
storage templates, automatic registration, automatic verification and
cancellation of instructions, support the security instruction set.

3:Level 3 AES (128bits, ECB), does not support the upload of templates, download
templates, download images, accurate alignment, search for fingerprint,
storage templates, automatic registration, automatic verification and
cancellation of instructions, support the security instruction set.

4:Level 4 3DES (16bytes, ECB), does not support to upload templates, download
templates, download images, accurate alignment, search for fingerprint,
storage templates, automatic registration, automatic verification and
cancellation instructions, support the security instruction set.

5~19 keep back。

RSA (1024bits), does not support the upload of templates, download


20:Level 20

templates, download images, accurate alignment, search for fingerprint,
storage templates, automatic registration, automatic verification and

cancellation of instructions, support the security instruction set.

21:Level 21 ECC (256bits), does not support to upload templates, download templates,

download images, accurate alignment, search for fingerprint, storage


templates, automatic registration, automatic verification and cancellation

instructions, support the security instruction set.

22~65535 keep back。

11) Registration logic EnrollLogic

Reset Value: 0

Length: 2 bytes
Property: Read / write

Purpose: Logic of entering the finger when registering

Read the instructions: PS_ReadINFpage ,See instructions for details


Set instructions: PS_WriteReg ,See instructions for details

Logical way:

0:Mode 0 Default state, illogical。

1:Mode 1 There was no association between the fingers required to be entered。

2:Mode 2 There are associations between the requested input fingers。

6 J-JY-指纹模组产品用户手册
指纹模组产品用户手册

12) Image format ImageFormat

Reset Value: 1

Length: 2 bytes
Property: Read / write

Purpose: Image format setting during image acquisition

Read the instructions: PS_ReadINFpage ,See instructions for details

Set instructions: PS_ WriteReg , See instructions for details

Format type:
0:Format 0 The original figure。

1:Format 1 Default state, pre-processed image。

13) String time delay DelayTime

Reset Value: 0

Length: 2 bytes
Property: Read / write

Purpose: When serial ports transfer packets, you set the time interval between
packets

Read the instructions: PS_ReadINFpage ,See instructions for details

Set instructions: PS_ WriteReg , See instructions for details


Timeframe : 0 ~ 255ms

14) Product model ProductSN


Reset Value: First-time power-up initialization value

Length: 8bytes
Property: read- only

Purpose: Indicate product model

Read the instructions: PS_ReadINFpage ,See instructions for details

15) Software version number SoftwareVersion


Reset Value: First-time power-up initialization value

Length: 8bytes
Property: read- only

Purpose: Indicates the software version number

Read the instructions: PS_ReadINFpage ,See instructions for details

16) Manufacturer name Manufacturer


Reset Value: First-time power-up initialization value

7 J-JY-指纹模组产品用户手册
指纹模组产品用户手册
Length: 8 bytes

Property: read- only

Purpose: Indicate the manufacturer's name

Read the instructions: PS_ReadINFpage , See instructions for details

17) Sensor name SensorName


Reset Value: First-time power-up initialization value

Length: 8 bytes

Property: read- only

Purpose: Indicates the sensor name

Read the instructions: PS_ReadINFpage ,See instructions for details

18) PassWord PassWord

Reset Value: 0x00000000


Length: 4 byte

Property: Read / write



Purpose: Handshake the password, password through the system
Read the instructions: PS_ReadINFpage ,See instructions for details

Set instructions: PS_ SetPwd , See instructions for details

19) The JTAG lock-up sign JtagLockFlag


Reset Value: 0x00000000


Length: 4 bytes

Property: read- only

Purpose: Writing a specific value the first time closes the JTAG port
Read the instructions: PS_ReadINFpage ,See instructions for details

20) Parameter table valid flag ParaTableFlag

Reset Value: 0x1234


Length: 2 byte

Property: read- only

Purpose: If the value of the domain is 0x1234, then the parameter table is
initialized; if the value of the domain is 0x0204 means that the
system initializes only the PART1 part of the parameter table; if the domain
is otherwise, the system will initialize the parameter table.
Read the instructions: PS_ReadINFpage ,See instructions for details

8 J-JY-指纹模组产品用户手册
指纹模组产品用户手册

2.2 Number of registrations and the fingerprint template size

Between the fingerprint module products, the registration times and the fingerprint template size differ, as
shown in Table 2 1, the relevant information can be read through the PS_ReadSysPara instruction.

2.3 Power shake hands signal

The fingerprint module product sends a 0x55 signal through Uart. When the host waits for the fingerprint
module initialization, it can enter the working state in advance by receiving the handshake signal.




9 J-JY-指纹模组产品用户手册
指纹模组产品用户手册

3 Instructions format detailed explanation

The fingerprint module is always in a subordinate position, and the master control needs to get the module to
complete various functions through different instructions. The master instructions, module responses, and data
exchange are all data packets in the specified format. The master control must encapsulate the instructions or data
to be sent in the following format, and must also resolve the received packets in the following format.

3.1 Instruction package / packet format

Instruction / packets are divided into three categories:

Package ID =01: Command Package.


Package ID =02: Package, with subsequent packages.

Package ID =08: The last packet, the end packet.

All data packets should be wrapped with a header: 0xEF01.



 01Command Pack Format:

Table 3-1 Command Package Format
Head of
Device Package Packet Parameter Parameter
Name contracted Instruct … Checksum

address logo length 1 N


labour
Byte 2 bytes 4 bytes 1 byte 2 bytes 1 byte 2 bytes

number
Substance 0xEF01 xxxx 01 N=

 02Database format:
Table 3-2 Data Package Format
Head of
Device Package Packet
Name contracted Data Checksum
address logo length
labour
Byte
2bytes 4bytes 1 byte 2 bytes N bytes 2 bytes
number
Substance 0xEF01 xxxx 02
21

10 J-JY-指纹模组产品用户手册
指纹模组产品用户手册
 08End package format:
Table 3-3 Ends the package format

Head of
Device Package Packet
Name contracted Data Checksum
address logo length
labour
Byte
2bytes 4bytes 1 byte 2 bytes N bytes 2 bytes
number
Substance 0xEF01 xxxx 08

The packet cannot enter the execution process alone and must be followed by the
instruction package or the answer packet。

Failed or uploaded packets are in the same format。

Package length = the total number of bytes from the packet length to the checksum
(instruction, parameter, or data), containing the checksum, but not the number of bytes for
the packet length itself。

Checksum is the sum of all bytes from package identity to checksum, contains package
identity that does not contain checksum and ignores carry beyond 2 bytes。

The device address is the default 0xffffffff before being generated. Once the master control
generates the device address through the command, all data packets must be sent and

received according to the generated address。

For multibytes of high byte in front of low byte in back (like 00 06 of 2bytes means 00 06

instead of 0600)。

3.2 Directive response

The answer is to report the command execution and results to the master control, which contains parameters
and can follow the subsequent data package. The master control can only confirm the packet receipt situation and
the instruction execution situation after receiving the answer package.

 Answer package format:


Table 3-4 Response package format

Head of Return the


Device Package Packet Confirm
Name contracted parameter Checksum
address logo length code
labour
Byte N bytes
2bytes 4bytes 1 byte 2 bytes 1 byte 2 bytes
number
Substance 0xEF01 07

Confirm code definition:

00H:Either the instruction is executed or the OK is completed;


01H :Indicates a packet receiving error;

11 J-JY-指纹模组产品用户手册
指纹模组产品用户手册
02H:It means that there is no finger on the sensor;

03 H : Faof fingerprint image input;

04H :It means that the fingerprint image is too dry and too light to feature;

05H:It means that the fingerprint is too wet and too muddy to feature;

06H :It means that the fingerprint image is too messy to feature;

07H:It means that the fingerprint image is normal, but has too few feature points (or too small area) to
produce features;

08 H :Represents a fingerprint mismatch;

09H:It means that no fingerprint was found;

0aH:A feature merge has failed;

0 bH: Indicates that the address number is outside the fingerprint library;

0 cH: Indicates that reading the template from a fingerprint library is wrong or invalid;
0 dH: Indicates that the upload feature has failed;

0eH:Indicates that the module cannot receive subsequent packets;



0 fH: Indicates that uploading the image has failed;

10H:Indicates a template deletion failure;



11H:Indicates a failure to empty the fingerprint library;

12H:Innot enter low power state;


13H:The password is incorrect;

14H:Indicates that the system reset has failed;


15H:It indicates that there is no valid original image in the buffer;

16H:Indicates that the online upgrade has failed;

17H :Indicates a residual fingerprint or no finger movement between the two collections;
18H:Indicates a read-write FLASH error;

19H :Random number generation failed;

1 aH:Invalid register number;

1 bH: The Register sets the content error number;

1 cH: The Notepad page number specifies an error;

1dH:Port operation failed;

1eH:Automatic registration (enroll) failed;

1fH:Fingerprint library full;

20H:Device address error;

21H:Password is wrong;

12 J-JY-指纹模组产品用户手册
指纹模组产品用户手册
22 H:Fingerprint template is not empty;

23 H:The fingerprint template is empty;

24 H:The fingerprint library is empty;

25 H:Entry times are set incorrect;

26 H: overtime ;

27 H:The fingerprint already exists;

28 H:Fingerprint features are associated;

29 H:Sensor operation has failed;

2 AH: Module information is not empty;

2 BH: The module information is empty;

2 CH: The OTP operation has failed;

2 DH: The secret key generation failed;

2EH:The secret key does not exist;

2 FH: Security algorithm execution failed;



3 0 H : The security algorithm encryption and decryption results are wrong;

31 H :The functionality does not match the encryption level



32H:The secret key is locked

33H:The image area is small


34H :Images are not available

35H:Illegal data

36H—efH:Reserved。

3.3 Business class instruction set

3.3.1 Universal instruction set

3.3.1.1 Verify with the acquired image PS_GetImage

 Function declaration : When verifying the fingerprint, detect the finger, detect, and
then input the fingerprint image in the image buffer. Return confirmation code
indicates: successful input, no fingers, etc。

 Input parameter : none

 Return the parameter: Confirmation of the word

 Instruction code : 01H

13 J-JY-指纹模组产品用户手册
指纹模组产品用户手册
 Directive package format:
Table 3-5 Input the image instruction package format

Head of
Device Package Packet Instruction
contracted Checksum
address logo length code
labour
2bytes 4bytes 1 byte 2 bytes 1 byte 2 bytes
0xEF01 xxxx 01H 0003H 01H 0005H

 Answer package format:


Table 3-6 Input the image instruction answer package format
Head of
Device Package Packet Instruction
contracted Checksum
address logo length code
labour
2bytes 4bytes 1 byte 2 bytes 1 byte 2 bytes
0xEF01 xxxx 07H 0003H xxH sum

Pour: Confirm code= 0 0 HThe image acquisition was successful;

Confirm code=0 1 HIt means there is a mistake in receiving the package;

Confirm code=0 2 HIndicates no finger on the sensor;



Sum Refers to check and。

3.3.1.2 Generate features PS_GenChar


 Function declaration : Store the raw image generation fingerprint feature files in the
image buffer in the template buffer。

 Input parameter : BufferID(positive integer)

 Return the parameter: Confirmation of the word

 Instruction code : 02H

 Directive package format:


Table 3-7 generates the characteristic instruction package format
Head of
Device Package Packet Instruction Buffer area
contracted Checksum
address logo length code number
labour
2 bytes 4bytes 1 byte 2 bytes 1 byte 1 byte 2 bytes
0xEF01 xxxx 01H 0004H 02H BufferID sum

Pour:As part of the registration process, BufferID indicates the location where the extracted feature is
stored in the buffer; in other cases, BufferID has a corresponding default value。

 Answer package format:


Table 3-8 generates the characteristic instruction response package format

14 J-JY-指纹模组产品用户手册
指纹模组产品用户手册
Head of
Device Package Packet Confirm
contracted Checksum
address logo length code
labour
2bytes 4bytes 1 byte 2 bytes 1 byte 2 bytes
0xEF01 xxxx 07H 0003H xxH sum

Pour: Confirmation code = 0 0 H indicates generating feature success;

Confirmation code =0 1 H indicates a packet receiving error;

Confirmation code =06H indicates that the fingerprint image is too messy to be
uncharacteristic;

Confirmation code =07H indicates that the fingerprint image is normal, but has too few
feature points to produce no features;

Confirmation code =08H indicates no association between the current fingerprint feature and
the previous feature; (this feature is turned off by default)

Confirmation code =0 aH indicates a merge failure;

Confirmation code =1 5 H indicates no valid raw image in the image buffer;

Confirmation code =28H indicates an association between the current fingerprint feature and

the previous feature; (this feature is turned off by default)

The sum is a checksum。


3.3.1.3 Accurate alignment of the PS_Match


 Function declaration: Accurate alignment of the feature files or templates in the


template buffer. This feature is supported if the encryption level is set to 0 or


1 in Table 2 1。

 Input parameter : none

 Return the parameter: Confirmation word, score

 Instruction code : 03H

 Directive package format:


Table 3-9 Accurate alignment of two fingerprint feature instruction package formats
Head of
Device Package Packet Instruction
contracted Checksum
address logo length code
labour
2bytes 4bytes 1 byte 2 bytes 1 byte 2 bytes
0xEF01 xxxx 01H 0003H 03H 0007H

 Answer package format:

15 J-JY-指纹模组产品用户手册
指纹模组产品用户手册
Table 3-10 accurately compares the two fingerprint feature instructions, Answer package format

Head of
Device Package Packet Confirm
contracted Score Checksum
address logo length code
labour
2bytes 4bytes 1 byte 2 bytes 1 byte 2 bytes 2 bytes
0xEF01 xxxx 07H 0005H xxH xxH sum

Pour: Confirmation code =0 0 H indicates a fingerprint match;

Confirmation code =0 1 H indicates a packet receiving error;

Confirmation code = 0 8 H indicates a fingerprint mismatch;

Confirmation code =31 H indicates that the function does not match the encryption level;
The sum refers to the Checksum。

3.3.1.4 Search for fingerprints PS_Search

 Function declaration : 以 The feature files in the template buffer search for the whole
or part of the fingerprint library. Page number if searched. This feature is

supported if the encryption level is set to 0 or 1 in Table 2- 1。

 Input parameter : BufferID(Default is 1) ,StartPage( home page) ,PageNum



(paginal number)

 Return the parameter : Confirm word, page number (matching fingerprint template),

score

 Instruction code : 04H


 Directive package format:


Table 3-11 searches for the fingerprint Directive package format

Head of Buffer
Device Package Packet Instruction
contracted area Parameter Parameter Checksum
address logo length code
labour number
2 bytes 4bytes 1 byte 2 bytes 1 byte 1 byte 2 bytes 2 bytes 2 bytes
0xEF01 xxxx 01H 0008H 04H BufferID StartPage PageNum sum

Pour:BufferID defaults to 1, searching entire or partial fingerprint libraries with fingerprint templates in
the template buffer。

 Answer package format:


Table 3-12 searches for the fingerprint instruction response package format
Head of
Device Package Packet Confirm Page
contracted Score Checksum
address logo length code number
labour
2 bytes 4bytes 1 byte 2 bytes 1 byte 2 bytes 2 bytes 2 bytes
0xEF01 xxxx 07H 07H xxH PageID MatchScore sum

16 J-JY-指纹模组产品用户手册
指纹模组产品用户手册

Pour: Confirm code=0 0 H indicates the search to;

Confirm code=01 H indicates that the packet is wrong;

Confirm code=09 H indicates no search; the page number and score are 0;

Confirm code=17H indicates a residual fingerprint or no finger movement between the two
collections;

Confirm code=1 8 H indicates an error in writing the FLASH;

Confirm code= The 31 H indicates that the functionality does not match the encryption level;
Confirm code= The 35 H indicates the illegal data;

The sum refers to the Checksum。

3.3.1.5 Merge features (generate template) PS_RegModel

 Function declaration : The feature files are fused to generate a template, and the
results are saved in the template buffer。

 Input parameter : none



 Return the parameter : Confirmation of the word

 Instruction code : 05H


 Directive package format:


Table 3-13 Combined features (generate template) Directive package format

Head of
Device Package Packet Instruction
contracted Checksum
address logo length code

labour
2 bytes 4bytes 1 byte 2 bytes 1 byte 2 bytes
0xEF01 xxxx 01H 0003H 05H 0009H

 Answer package format:


Table 3-14 Merge feature (generate template) instruction response package format
Head of
Device Package Packet Confirm
contracted Checksum
address logo length code
labour
2 bytes 4bytes 1 byte 2 bytes 1 byte 2 bytes
0xEF01 xxxx 07H 0003H xxH sum

Pour: Confirm code=0 0 H Indicates a merger success;

Confirm code=01 H Indicates that the packet is wrong;

Confirm code=0 aH Indicates a merger failure;

The sum refers to the Checksum。

17 J-JY-指纹模组产品用户手册
指纹模组产品用户手册

3.3.1.6 Storage template PS_StoreChar

 Function declaration : Save the template file in the template buffer to the PageID
number flash database location 。This feature is supported if the encryption
level is set to 0 or 1 in Table 2 1。

 Input parameter : BufferID(Default is 1),PageID(Fingerprint library position number)

 Return the parameter : Confirmation of the word

 Instruction code : 06H

 Directive package format:


Table 3-15 Store the Template Directive package format
Head of Buffer
Device Package Packet Instruction Position
contracted area Checksum
address logo length code number
labour number
2 bytes 4bytes 1 byte 2 bytes 1 byte 1 byte 2 bytes 2 bytes
0xEF01 xxxx 01H 0006H 06H BufferID PageID sum

Pour:The BufferID defaults to 1。



 Answer package format:
Table 3-16 stores the template instruction reply package format

Head of
Device Package Packet Confirm
contracted Checksum
address logo length code

labour
2 bytes 4bytes 1 byte 2 bytes 1 byte 2 bytes

0xEF01 xxxx 07H 0003H xxH sum

Pour: Confirm code= 0 0 H Indicates the success of storage;

Confirm code=01 H It means there is a mistake in receiving the package;

Confirm code=0bH Indicates that the PageID is outside the fingerprint library range;
Confirm code=1 8 H Indicates an error in writing the FLASH;

Confirm code=31H Indicates that the functionality does not match the encryption level;

Confirm code=3 5 H Indicate illegal data;

The sum refers to the Checksum。

3.3.1.7 Read the template PS_LoadChar

 Function declaration : Read the fingerprint template with the specified ID number in
the flash database into the template buffer。

 Input parameter : BufferID (Default is 2 ) , PageID (Fingerprint library template


number)

18 J-JY-指纹模组产品用户手册
指纹模组产品用户手册

 Return the parameter : Confirmation of the word

 Instruction code : 07H

 Directive package format:


Table 3-17 reads out the template Directive package format

Head of Buffer
Device Package Packet Instruction Page
contracted area Checksum
address logo length code number
labour number
2 bytes 4bytes 1 byte 2 bytes 1 byte 1 byte 2 bytes 2 bytes
0xEF01 xxxx 01H 0006H 07H BufferID PageID sum

Pour:The BufferID defaults to 2。

 Answer package format:


Table 3-18 reads out the template instruction response package format
Head of
Device Package Packet Confirm
contracted Checksum
address logo length code
labour
2 bytes 4bytes 1 byte 2 bytes 1 byte 2 bytes
0xEF01 xxxx 07H 0003H xxH sum

Pour: Confirm code=0 0 H It means reading success;

Confirm code=01 H It means there is a mistake in receiving the package;


Confirm code=0cH Inwrong readout or invalid template;


Confirm code=0bH Indicates that the PageID is outside the fingerprint library range;
Confirm code=1 8 H Indicates an error in writing the FLASH;

Confirm code=3 5 H Indicate illegal data;

The sum refers to the Checksum。

3.3.1.8 Upload template PS_UpChar

 Function declaration : Pass the template file saved in the template buffer to the
master. This feature is supported with the encryption level set to 0 in Table 2
1。

 Input parameter : BufferID(Windows default )

 Return the parameter : Confirmation of the word

 Instruction code : 08H

 Directive package format:

19 J-JY-指纹模组产品用户手册
指纹模组产品用户手册
Table 3-19 Upload template Directive package format

Head of
Device Package Packet Instruction Buffer area
contracted Checksum
address logo length code number
labour
2 bytes 4bytes 1 byte 2 bytes 1 byte 1 byte 2 bytes
0xEF01 xxxx 01H 0004H 08H BufferID sum

Pour :Templates collected and generated from the sensor, BufferID is 1 on upload; templates loaded
from Flash are 2 on upload。

 Answer package format:


Table 3-20 Upload feature or template instruction response package format
Head of
Device Package Packet Confirm
contracted Checksum
address logo length code
labour
2 bytes 4bytes 1 byte 2 bytes 1 byte 2 bytes
0xEF01 xxxx 07H 0003H xxH sum

Pour: Confirm code= 0 0 H Indicates the subsequent packet delivery;

Confirm code=01 H It means there is a mistake in receiving the package;



Confirm code=0dH Indicates that the instruction execution has failed;

Confirm code=3 1 H Indicates that the functionality does not match the encryption level;

The sum refers to the Checksum。

Send subsequent packets after answering。



Table 3-21 UART upload features or template package format

Head of

Device Package Packet


contracted Data Checksum
address logo length
labour
2 bytes 4bytes 1 byte 2 bytes N byte 2 bytes
0xEF01 xxxx xxH xxH xxH sum

Pour: Package logo=0 2 : Data packages, and with subsequent packages。

Package logo=08 :The last data packet, namely, the end packet。

UART When uploading features or template packets, subcontract them at a pre-set length。

USB When uploading features or template packets, send the whole package data directly ,not
have Head of contracted labour 、 Device address 、 Package logo 、 Packet length 和 Checksum。

3.3.1.9 Download template PS_DownChar

 Function declaration : Master download template to a template buffer. This feature is


supported with the encryption level set to 0 in Table 2 1。

 Input parameter : BufferID(Default is 1)

20 J-JY-指纹模组产品用户手册
指纹模组产品用户手册

 Return the parameter : Confirmation of the word

 Instruction code : 09H

 Directive package format:


Table 3-22 Download Template Directive package format

Head of
Device Package Packet Instruction Buffer area
contracted Checksum
address logo length code number
labour
2 bytes 4bytes 1 byte 2 bytes 1 byte 1 byte 2 bytes
0xEF01 xxxx 01H 0004H 09H BufferID sum

Pour:The BufferID defaults to 1。

 Answer package format:


Table 3-23 Download the template instruction response package format
Head of
Device Package Packet Confirm
contracted Checksum
address logo length code
labour
2 bytes 4bytes 1 byte 2 bytes 1 byte 2 bytes
0xEF01 xxxx 07H 0003H xxH sum

Pour: Confirm code=0 0 H Indicates that subsequent data packets can be received;
Confirm code=01 H It means there is a mistake in receiving the package;

Confirm code=0eH Indicates that subsequent packets cannot be received;


Confirm code=3 1 H Indicates that the functionality does not match the encryption level;
The sum refers to the Checksum。

 Subsequent data packets are received after answering。


Table 3-24 UART download features or template package format

Head of
Device Package Packet
contracted Data Checksum
address logo length
labour
2 bytes 4bytes 1 byte 2 bytes N byte 2 bytes
0xEF01 xxxx xxH xxH xxH sum

Pour: Package logo=0 2 : Data packages, and with subsequent packages。

Package logo=08 :The last data packet, namely, the end packet。

UART When downloading feature or template packets, subcontract the receipt at a pre-set
length。

USB When dropping feature or template packets, receive the whole packet data directly ,not
have Head of contracted labour 、 Device address 、 Package logo 、 Packet length 和 Checksum。

21 J-JY-指纹模组产品用户手册
指纹模组产品用户手册

3.3.1.10 Remove the template PS_DeletChar

 Function declaration : Remove the N fingerprint templates in the flash database that
specify the ID number to start。

 Input parameter : PageID (Fingerprint library template number ) , N (Number of


templates deleted) 。

 Return the parameter : Confirmation of the word

 Instruction code : 0cH

 Directive package format:


Table 3-25 Delete the template Directive package format
Head of Delete
Device Package Packet Instruction Page
contracted the Checksum
address logo length code number
labour number
2 bytes 4bytes 1 byte 2 bytes 1 byte 2 bytes 2bytes 2 bytes
0xEF01 xxxx 01H 0007H 0cH PageID N sum

 Answer package format:



Table 3-26 Delete the template instruction reply package format
Head of
Device Packet Confirm

Package
contracted Checksum
address logo length code
labour

2 bytes 4bytes 1 byte 2 bytes 1 byte 2 bytes


0xEF01 xxxx 07H 0003H xxH sum

Pour: Confirm code= 0 0 H Successfully deleted the template;


Confirm code=01 H It means there is a mistake in receiving the package;


Confirm code=1 0 H Indicates a template deletion failure;

The sum refers to the Checksum。

3.3.1.11 Empty the fingerprint library PS_Empty

 Function declaration : Remove all fingerprint templates in the flash database。

 Input parameter : none

 Return the parameter : Confirmation of the word

 Instruction code : 0dH

 Directive package format:

22 J-JY-指纹模组产品用户手册
指纹模组产品用户手册
Table 3-27 Empty the fingerprint library, Directive package format

Head of
Device Package Packet Instruction
contracted Checksum
address logo length code
labour
2 bytes 4bytes 1 byte 2 bytes 1 byte 2 bytes
0xEF01 xxxx 01H 0003H 0dH 0011H

 Answer package format:


Table 3-28 Empty the fingerprint library instruction answering package format
Head of
Device Package Packet Confirm
contracted Checksum
address logo length code
labour
2 bytes 4bytes 1 byte 2 bytes 1 byte 2 bytes
0xEF01 xxxx 07H 0003H xxH sum

Pour: Confirm code= 0 0 H Indicates the success of emptying;

Confirm code=01 H It means there is a mistake in receiving the package;


Confirm code=11 H Indicates the failure to empty;

The sum refers to the Checksum。



3.3.1.12 Write system register PS_WriteReg

 Function declaration : Write module registers。


 Input parameter : Register serial number, contents

 Return the parameter : Confirmation of the word


 Instruction code : 0eH

 Directive package format:


Table 3-29 writes about the system register Directive package format
Head of Register
Device Package Packet Instruction
contracted serial Content Checksum
address logo length code
labour number
2 bytes 4bytes 1 byte 2 bytes 1 byte 1byte 1byte 2 bytes
0xEF01 xxxx 01H 0005H 0eH xxH xxH sum

 Answer package format:


Table 3-30 writes the system register instruction Answer package format

Head of
Device Package Packet Confirm
contracted Checksum
address logo length code
labour
2 bytes 4bytes 1 byte 2 bytes 1 byte 2 bytes
0xEF01 xxxx 07H 0003H xxH sum

Pour1 : Confirm code=00 H Representation OK;

23 J-JY-指纹模组产品用户手册
指纹模组产品用户手册

Confirm code=01 H It means there is a mistake in receiving the package;


Confirm code=1 8 H Indicates a read-write FLASH error;

Confirm code=1aH Incorrect representation for the Register serial number;

Confirm code=1 bH Indicates that the register has set the Content error number;
The sum refers to the Checksum。

Pour2: When writing the system register (PS_WriteReg) instruction, answer the reply according
to the original configuration, modify the system setting, and record the configuration in FLASH。
Table 3-31 Register configuration table
Register
Register name The Content description
number
0 String time delay 0 ~ 255ms
1 Number of the Pour Books EnrollTimes
0:format 0
2 Image format register
1:format 1
0:mode 0
3 The Pour Book Logic Register
信 1:mode 1
2:mode 2
4 Baud rate control register Multiples of the 9,600'sN(0<N<13)
1:level 1

2:level 2
5 Alignment threshold register 3:level 3

4:level 4
5:level 5
0:32 bytes

1:64 bytes
6 Package size register
2:128 bytes
3:256 bytes
0:level 0
1:level 1
2:level 2
3:level 3
7 Encryption level register 4:level 4
5~19:keep back
20:level 20
21:level 21
22~255:keep back
bit0:Resistance resistance (on by
default)。
8 Anti-die register Bit1:Fingerprint identification
algorithm (open by default)
Bit2:Learning function (turned on by

24 J-JY-指纹模组产品用户手册
指纹模组产品用户手册
Register
Register name The Content description
number
default)
Bit3~ Bit7:keep back(Default is 0)
Pour means: the software version
format is Vx.y.z. The n, where some
versions do not display the n bits. If z>
=5, configure Parameter with the
settings above, otherwise refer to the
5.1.1 settings.

Bit0~ Bit3: SPI speed。


Bit4~ Bit6: GPIO feet (chip selection,
9 SensorParameter reset)。
Bit7: SPI mouth。
Pour 意:Do not set up at will。

3.3.1.13 Read the module basic Parameter PS_ReadSysPara

 Function declaration :

Read the basic Parameter of the module (wave rate, packet
size, etc.). The first 16 bytes of the Parameter table store the basic

communication and configuration information of the module, called the basic
Parameter of the module 。

 Input parameter : none

 Return the parameter : Confirmation of the word ,Basic Parameter (16bytes)


 Instruction code : 0fH

 Directive package format:


Table 3-32 Read the System Basic Parameter Directive package format
Head of
Device Package Packet Instruction
contracted Checksum
address logo length code
labour
2 bytes 4bytes 1 byte 2 bytes 1 byte 2 bytes
0xEF01 xxxx 01H 0003H 0fH 0013H

 Answer package format:


Table 3-33 Read the system basic Parameter instruction Answer package format

Head of
Device Package Packet Confirm The Basic
contracted Checksum
address logo length code Parameter List
labour
2 bytes 4bytes 1 byte 2 bytes 1 byte 16 bytes 2 bytes
Structure is
0xEF01 xxxx 07H 13H xxH sum
shown in Table 3

25 J-JY-指纹模组产品用户手册
指纹模组产品用户手册
Head of
Device Package Packet Confirm The Basic
contracted Checksum
address logo length code Parameter List
labour
34

Pour: Confirm code= 0 0 H representation OK;

Confirm code=01 H It means there is a mistake in receiving the package;

The sum refers to the Checksum。


Table 3-34 System Basic Parameter list

Offset Amount
Name Content description Size (Bytes)
(Bytes)
Number of the Pour Books Pour book, the number of times 0 2
Fingerprint template size Fingerprint template size 2 2
Fingerprint library size Fingerprint library capacity 4 2
Score grade Score Level Code (1 / 2 / 3 / 4 / 5) 6 2
Device address 32 Positions Device address 8 4
Package size code:
0:32bytes
Database size 1:62bytes
信 12 2
2:128bytes
3:256bytes

Porter rate setting N(baud rate was 9,600 * N bps) 14 2

3.3.1.14 Read Parameter PS_ReadINFpage


 Function declaration : Read the Parameter page where the FLASH Information Page
is located(512bytes)。

 Input parameter : none

 Return the parameter : Confirmation of the word

 Instruction code : 16H

 Directive package format:


Table 3-35 Read the flash information page Directive package format
Head of
Device Package Packet Instruction
contracted Checksum
address logo length code
labour
2 bytes 4 bytes 1 byte 2 bytes 1 byte 2 bytes
0xEF01 xxxx 01H 0003H 16H 001aH

 Answer package format:

26 J-JY-指纹模组产品用户手册
指纹模组产品用户手册
Table 3-36 Read the flash information page instruction Answer package format

Head of
Device Package Packet Confirm
contracted Checksum
address logo length code
labour
2 bytes 4 byte 1 byte 2 bytes 1 byte 2 bytes
0xEF01 xxxx 07H 0003H xxH sum

Pour: Confirm code= 0 0 H Indicates the subsequent packet delivery;

Confirm code=01H It means there is a mistake in receiving the package;


Confirm code=0 dH Indicates that the instruction execution has failed;
The sum refers to the Checksum。

 Send subsequent packets after answering。


Table 3-37 UART Upload information page package format
Head of
Device Package Packet
contracted Data Checksum
address logo length
labour
2 bytes 4bytes 1 byte 2 bytes N byte 2 bytes
0xEF01 xxxx xxH xxH xxH sum

Pour: Package logo=0 2 : Data packages, and with subsequent packages。

Package logo=08 :The last data packet, namely, the end packet。

When UART uploads Parameter packets, it subcontracts them at a preset length。


When the USB uploads a Parameter packet, it sends the whole packet data directly,not have
Head of contracted labour、 Device address、 Package logo 、 Packet length 和 Checksum。

3.3.1.15 Erase the code PS_BurnCode

 Function declaration : The master sends the erase code instruction, and the module
responds enters the upgrade mode。

 Input parameter : Upgrade mode(Default is 1)

 Return the parameter : Confirmation of the word

 Instruction code : 1aH

 Directive package format:


Table 3-38 : FLASHDirective package format in the burning tablet
Head of
Device Package Packet Instruction Upgrade
contracted Checksum
address logo length code mode
labour
2 bytes 4bytes 1 byte 2 bytes 1 byte 1 bytes 2 bytes
0xEF01 xxxx 01H 0004H 1aH sum

Pour:Upgrade mode:Default is 1;

27 J-JY-指纹模组产品用户手册
指纹模组产品用户手册
 Answer package format:
Table 3-39 : FLASH instruction Answer package format in the burner

Head of
Device Package Packet Confirm
contracted Checksum
address logo length code
labour
2 bytes 4bytes 1 byte 2 bytes 1 byte 2 bytes
0xEF01 xxxx 07H 0003H xxH sum

Pour: Confirm code=0 0 H Indicates that subsequent data packets can be received;
Confirm code=01 H It means there is a mistake in receiving the package;

Confirm code=0 eH Indicates that subsequent packets cannot be received;


The sum refers to the Checksum。

3.3.1.16 Number of valid templates to be read PS_ValidTempleteNum

 Function declaration : Number of valid templates to be read。

 Input parameter : none



 Return the parameter : Confirmation of the word ,ValidN(Number of valid templates)

 Instruction code : 1dH


 Directive package format:


Table 3-40 Read the number of valid templates, Directive package format

Head of
Device Package Packet Instruction
contracted Checksum
address logo length code

labour
2 bytes 4bytes 1 byte 2 bytes 1 byte 2 bytes
0xEF01 xxxx 01H 0003H 1dH 0021H

 Answer package format:


Table 3-41 Read the number of valid template instruction Answer package format
Head of Number of
Device Package Packet Confirm
contracted valid Checksum
address logo length code
labour templates
2 bytes 4bytes 1 byte 2 bytes 1 byte 2 bytes 2 bytes
0xEF01 xxxx 07H 05H xxH ValidN sum

Pour: Confirm code= 0 0 H Indicates the success of reading;

Confirm code=01 H It means there is a mistake in receiving the package;

The sum refers to the Checksum。

28 J-JY-指纹模组产品用户手册
指纹模组产品用户手册

3.3.1.17 Read the index table PS_ReadIndexTable

 Function declaration : Read the index table of the input template。

 Input parameter : Index tables Page number, Page number0,1,2,3..., respectively, for
indexes corresponding to templates from
0-256,256-512,512-768,768-1024..., each 1 bit represents a template, 1
means the template of the corresponding storage area has been entered
and 0 indicates none。

 Return the parameter : Confirmation of the word ,Index table information

 Instruction code : 1fH

 Directive package format:


Table 3-42 Read the Index Table Directive package format
Head of
Device Package Packet Instruction Page
contracted Checksum
address logo length code number
labour
2 bytes 4bytes 1 byte 2bytes 1 byte 1 byte 2bytes

0xEF01 xxxx 01H 0004H 1fH xxH xxxxH

 Answer package format:



Table 3-43 Read the index table instructions Answer package format
Head of
Device Package Packet Confirm Index

contracted Checksum
address logo length code information
labour
2 bytes

4bytes 1byte 2bytes 1byte 32bytes 2bytes


0xEF01 xxxx 07H 0023H xxH Index sum

Pour: Confirm code= 0 0 H representation OK;

Confirm code=01 H It means there is a mistake in receiving the package;

Confirm code=0bH Inmeans that the address number of the fingerprint library exceeds the scope of
the fingerprint library;

The sum refers to the Checksum。

3.3.1.18 Pour Book acquired images PS_GetEnrollImage

 Function declaration : When Pour fingerprint, detect finger, input fingerprint image in
the image buffer. Return to Confirm code indicates: successful entry, no
fingers, etc。

 Input parameter : none

 Return the parameter : Confirmation of the word

29 J-JY-指纹模组产品用户手册
指纹模组产品用户手册

 Instruction code : 29H

 Directive package format:


Table 3-44 : Entry of the image, Directive package format

Head of
Device Package Packet Instruction
contracted Checksum
address logo length code
labour
2bytes 4bytes 1 byte 2 bytes 1 byte 2 bytes
0xEF01 xxxx 01H 0003H 29H 002DH

 Answer package format:


Table 3-45 Input the image instruction Answer package format
Head of
Device Package Packet Confirm
contracted Checksum
address logo length code
labour
2bytes 4bytes 1 byte 2 bytes 1 byte 2 bytes
0xEF01 xxxx 07H 0003H xxH sum

Pour: Confirm code= 0 0 H The image acquisition was successful;

Confirm code=01 H It means there is a mistake in receiving the package;



Confirm code=0 2 H Indicates no finger on the sensor;

The sum refers to the Checksum。

3.3.1.19 Sleep instruction PS_Sleep


 Function declaration : Set the sensor to go into hibernation mode


 Input parameter : 无

 Return the parameter : Confirmation of the word

 Instruction code : 33H

 Directive package format:


Table 3-46 Read the Index Table Directive package format
Head of
Device Package Packet Instruction
contracted Checksum
address logo length code
labour
2 bytes 4bytes 1 byte 2bytes 1 byte 2bytes
0xEF01 xxxx 01H 0003H 33H 0037H

 Answer package format:


Table 3-47 Read the index table instructions Answer package format

Head of
Device Package Packet Confirm
contracted Checksum
address logo length code
labour

30 J-JY-指纹模组产品用户手册
指纹模组产品用户手册
Head of
Device Package Packet Confirm
contracted Checksum
address logo length code
labour
2 bytes 4bytes 1byte 2bytes 1byte 2bytes
0xEF01 xxxx 07H 03 xxH sum

Pour: Confirm code= 0 0 H The hibernation setting is successful。

Confirm code=01 H It means there is a mistake in receiving the package。

Confirm code=2 9 H Indicates that the sensor operation has failed。

The sum refers to the Checksum。

3.3.2 Module instruction set

3.3.2.1 Cancelling command kill order PS_Cancel

 Function declaration : Cancel the automatic Pour book template and the automatic
fingerprint verification. This feature is supported if the encryption level is set
to 0 or 1 in Table 2 1。

 Input parameter : 无

 Return the parameter : Confirmation of the word

 Instruction code : 30H


 Directive package format:


Table 3-48 Read the Index Table Directive package format

Head of
Device Package Packet Instruction
contracted Checksum
address logo length code
labour
2 bytes 4bytes 1 byte 2bytes 1 byte 2bytes
0xEF01 xxxx 01H 0003H 30H xxxxH

 Answer package format:


Table 3-49 Read the index table instructions Answer package format
Head of
Device Package Packet Confirm
contracted Checksum
address logo length code
labour
2 bytes 4bytes 1byte 2bytes 1byte 2bytes
0xEF01 xxxx 07H 03 xxH sum

Pour: Confirm code= 0 0 H Indicates that the cancellation setting was successful。
Confirm code=0 1 H Indicates that the cancellation setting has failed。

Confirm code=3 1 H Indicates that the functionality does not match the encryption level;
The sum refers to the Checksum。

31 J-JY-指纹模组产品用户手册
指纹模组产品用户手册

3.3.2.2 Automatic Pour Book Templates PS_AutoEnroll

 Function declaration : One-stop Pour book fingerprint, including fingerprint collection,


generating features, combination template, storage template and other
functions. This feature is supported if the encryption level is set to 0 or 1 in
Table 2 1。

 Input parameter : ID number, entry times ,Parameter

 Return the parameter : Confirmation of the word ,Parameter

 Instruction code : 31H

 Directive package format:


Table 3-50 Automatic Pour Book Template Directive package format
Head of Number of Parameter
Device Package Packet Instruction
contracted ID number entries Checksum
address logo length code
labour
2 bytes 4bytes 1 byte 2 bytes 1byte 2 byte 1byte 2byte 2 bytes
0xEF01 xxxx 01H 0008H 31H xxxxH xxH xxH SUM

 Auxiliary instructions:

ID number: high byte before, low byte after. For example, to input the fingerprint number 1, it is

0001H.

Input times: 1byte, with 2 times of input, it is 02H, and with 4 times of input, it is 04H

Parameter :The lowest bit is the bit0。

1) bit0:Drawing backlight control position, 0- LED long bright, 1- LED image acquisition

successfully extinguished;

2) bit1:Map acquisition preprocessing control bit, 0- off preprocessing, 1- on preprocessing;

3) bit2:In the Pour book process, whether the module is required in the critical step, return
to the current state, 0-require a return, 1-require no return;

4) bit3:Whether allowed coverage ID number, 0- not allowed, 1-allowed;

5) bit4:Allow fingerprints to repeat Pour book control bits, 0- allowed, 1- not allowed;

6) bit5:In the Pour book, whether the finger is required to leave to enter the next fingerprint
acquisition during the fingerprint image acquisition process, 0-It is required to leave; 1-It
is not required to leave;

7) bit6~bit15: obligate 。

 Answer package format:


Table 3-51 Automatic Pour book template instruction normal process Answer package format
Head of Device Package Packet Confirm Parameter 2 byte Checksum 备 Pour

32 J-JY-指纹模组产品用户手册
指纹模组产品用户手册
Parameter Parameter
1 2
2 bytes 4bytes 1 byte 2 bytes 1 byte 1 byte 1 byte 2 bytes
Order legality
0xEF01 xxxx 07H 5 xxH 0H 0H sum detection:
legal /..
Drawing results:
0xEF01 xxxx 07H 5 xxH 01H 1 sum Success /
timeout
1 Generate the
0xEF01 xxxx 07H 5 xxH 02H sum feature results:
Success / failure
Finger leave,
The first entry
0xEF01 xxxx 07H 5 xxH 03H 1 sum was successful:
Success /
timeout

Drawing results:

0xEF01 xxxx 07H 5 xxH 01H n sum Success /
timeout

n Generate the
0xEF01 xxxx 07H 5 xxH 02H sum feature results:
Success / failure

0xEF01 xxxx 07H 5 xxH 04H F0H sum Merge template


The Pour book

0xEF01 xxxx 07H 5 xxH 05H F1H sum was tested

Template
0xEF01 xxxx 07H 5 xxH 06H F2H sum
storage results

 Confirm code 、Parameter 1 和 Parameter 2 The return value of


Table 3-52 Automatic Pour Book template response package interpretation table

Confirm Paramet Paramet


Paraphrase Paraphrase Paraphrase
code er 1 er 2

Fingerprint legality
00H Succeed 00H Fingerprint legality detection 00H
detection
01H Lose 01H Get the image F0H Merge template
Check that the finger
Failed to generate
07H 02H Production characteristics F1H has been placed in the
features
Pour book

Failed to merge
0aH 03H Judge the finger to leave F2H Storage template
template
0bH ID number out of range 04H Merge template n Current entry number

33 J-JY-指纹模组产品用户手册
指纹模组产品用户手册

Confirm Paramet Paramet


Paraphrase Paraphrase Paraphrase
code er 1 er 2

n
Error in reading and
18H 05H Pour Book Inspection
writing the FLASH
The fingerprint library
1fH 06H Storage template
is full
Fingerprint template is
22H
not empty
Entry times are set
25H
incorrect
26H overtime
The fingerprint already
27H
exists
The function does not
31H match with the
encryption level;
35H Illegal data

 Instructions:
1) If the specified ID number is invalid, Confirm code, Parameter 1, and Parameter 2 return

(described directly as return): 0b 00 00H. Legitimate detection:

 Return: 0b 00 00H if the specified ID number is invalid。


 25 00 00H. Without fingerprint, 1f 00 00H if the fingerprint library is full;


 Returns 22 00 00 H if the template of the specified ID number already exists。

 If the command legality is detected successfully, 00 00 00 H is returned and the first


fingerprint entry is entered。

2) Wait for the color map to succeed (return to 00 01 0nH)。

3) Wait for the generated feature to succeed (00 02 0nH), and if it fails (07 02 0nH), wait for the
color map to succeed again。

4) Wait for the finger to leave, the first entry is successful (00 03 0nH), after the finger leaves,
jump to step 2, and enter the next cycle, until n sets the number of entries. Pour: If the finger
does not need to leave during the input process, then return to the first input success directly,
and jump to step 2; if the last fingerprint is collected, the answer without the finger leaving the
input successfully。

5) Synthetic the template, combined the previously acquired finger features into a finger
template, successfully returned 00 04 F0H and failed 0A 04 F0H。

6) Fingerprint repeat check means the matching check between the newly entered finger and the
stored finger (by setting Parameter bit4 on or off), returns 27 05 F1H with the same fingerprint,

34 J-JY-指纹模组产品用户手册
指纹模组产品用户手册
and returns 00 05 F1H without the same fingerprint。

7) Register the template data, store the failure to return 01 06 F2H, and end the process; and
successfully return 00 06 F2H。

8) If the PS_Cancel instruction is received, it is terminated and returned。

3. 3. 2 .3 Automatic verification of fingerprints PS_ AutoIdentify

 Function declaration : Automatic fingerprint acquisition includes image acquisition,


feature generation, fingerprint search and other functions. This feature is
supported if the encryption level is set to 0 or 1 in Table 2 1。

 Input parameter : Score grade ,ID number

 Return the parameter : Confirmation of the word , Page number (Match fingerprint
template)

 Instruction code : 32H

 Directive package format: 信


Table 3-53 Automatic verified fingerprint Directive package format
Head of
Device Package Packet Instruction Score
contracted ID number Parameter Checksum

address logo length code grade
labour
2 bytes 4bytes 1 byte 2 bytes 1 byte 1 byte 2 byte 2 byte 2 bytes

0xEF01 xxxx 01H 0008H 32H xxH xxxxH xxxxH xxxxH

 Auxiliary instructions:

ID number:2byte, big end mode. For example, input the fingerprint 1,it is 0001 H. The ID number
is 0xFFFF, then do 1: N search; no 1:1 match

Parameter :The lowest bit is the bit0。

1) bit0:Drawing backlight control position, 0- LED long bright, 1- LED image acquisition
successfully extinguished;

2) bit1:Map acquisition preprocessing control bit, 0- off preprocessing, 1- on preprocessing;

3) bit2:In the Pour book process, whether the module is required in the critical step, return to the
current state, 0-require a return, 1-require no return;

4) bit3~bit15: obligate 。

 Answer package format:


Table 3-54 Automatic verify fingerprint instruction Answer package format
Head of
Device Package Packet Confirm ID
contracted Parameter Score Checksum 备 Pour
address logo length code number
labour
2 bytes 4bytes 1 byte 2 bytes 1 byte 1 byte 2 bytes 2 bytes 2 bytes

35 J-JY-指纹模组产品用户手册
指纹模组产品用户手册
Head of
Device Package Packet Confirm ID
contracted Parameter Score Checksum 备 Pour
address logo length code number
labour
Order legality
0xEF01 xxxx 07H 0008H xxH 00H xxxxH xxxxH sum detection:
legal /..
Drawing results:
0xEF01 xxxx 07H 0008H xxH 01H xxxxH xxxxH sum Success /
timeout
search result:
0xEF01 xxxx 07H 0008H xxH 05H xxxxH xxxxH sum Success /
failure

 Confirm code 、Parameter 1 和 Parameter 2 的 returned value


Table 3-55 Automatic verification of fingerprint response package Paraphrase
Confirm
Paraphrase Parameter Paraphrase
code
00H Success 00H Fingerprint legality detection
01H Lose 01H Get the image
信 A Pour book fingerprint comparison is
07H Generate the feature Lose 05H
already made

09H No fingerprints were searched
0bH ID number out of range
17H Residual fingerprint

18H Error in reading and writing the FLASH


23H The fingerprint template is empty

24H The fingerprint library is empty


26H overtime
27H Indicates that the fingerprint already exists
The functionality does not match the
31H
encryption level;
35H Illegal data

 Instructions:
1) If the fingerprint library is empty, Confirm code and Parameter return (described directly as
return): 24 00H. Return of 0b 00H if the specified ID number is invalid. Return of 23 00H if
the registered Template does not exist。

2) Command legitimacy detects Success, returns 00 00H, and enters the fingerprint input。
3) If a complete fingerprint input is not completed, 26 00 H is returned to end the process。

4) Check the correctness of the input fingerprint image. If not correct, wait for the next image
acquisition。

5) If the input fingerprint is correct, return to 00 01H, namely input fingerprint acquisition image

36 J-JY-指纹模组产品用户手册
指纹模组产品用户手册

Success。
6) If the production feature Lose, 09 05 H returns to end the process。

7) After the feature Success is generated, the currently collected fingerprint template is compared
to the registered fingerprint template, and the results are returned. For Lose, 09 05H ends the
process, for Success, 00 05H and the correct ID number and Score。

8) If the PS_Cancel instruction is received, it is terminated and returned。

3.3.3 Security instruction set

Some security chip-based fingerprint module products support secure Pour book and verification
functions。

3.3.3.1 Get secret key pairs PS_GetKeyt

 Function declaration : The module receives the internal data (if already entered) and
generates a set of key pairs. This feature is not supported if the encryption

level is set to 0 and 1 in Table 2 1。

 Input parameter :

 Return the parameter : Confirmation of the word

 Instruction code : E0H


 Directive package format:


Table 3-56 Get the secret key pair of Directive package format

Head of
Device Package Packet Instruction
contracted Checksum
address logo length code
labour
2 bytes 4bytes 1 byte 2 bytes 1 byte 2 bytes
0xEF01 xxxx 01H 0003H E0H sum

 Answer package format:


Table 3-57 obtains the secret key pair instruction Answer package format
Head of
Device Package Packet Confirm
contracted Checksum
address logo length code
labour
2 bytes 4bytes 1 byte 2 bytes 1 byte 2 bytes
0xEF01 xxxx 07H 0003H xxH sum

Pour: Confirm code= 0 0 H Send subsequent packets next;

Confirm code=01 H It means there is a mistake in receiving the package;


Confirm code=1 8 H Indicates the Flash operating on Lose;

37 J-JY-指纹模组产品用户手册
指纹模组产品用户手册

Confirm code=19 H Represents the random number operation, the Lose;


Confirm code=2 EH Indicates that the secret key does not exist;

Confirm code=0fH Indicates that subsequent packets cannot be sent;

Confirm code=3 1 H Indicates that the functionality does not match the encryption level;
Confirm code=32 H The secret key is locked;

The sum refers to the Checksum。

 Send subsequent packets after answering。


Table 3-58 Get the secret key pair packet format

Head of
Device Package Packet
contracted Data Checksum
address logo length
labour
2 bytes 4bytes 1 byte 2 bytes N byte 2 bytes
0xEF01 xxxx xxH xxH sum
Pour: Package logo=0 2 : Data packages, and with subsequent packages。

Package logo=08 :The last data packet, namely, the end packet。

When UART uploads packets, it subcontracts them at a pre-set length。

When the USB uploads the packet, it sends the whole packet data directly ,not have Head of

contracted labour 、 Device address、 Package logo 、 Packet length 和 Checksum。
 Auxiliary instructions:

When encryption level 2, after the module receives the command, clear the internal data (if there is
input information) , generate 3 2 bytes random number ( 1 6 byte key A, 1 6 byte key B) and save in the

module, then send two pairs of secret key data, the master control receives to save A, B to the internal.
Two pairs of secret key data are 32 bytes long;

When encryption level 3, after the module receives the command, clear the internal data (if there is
input information) , generate 3 2 bytes random number ( 1 6 byte key A, 1 6 byte key B) and save in the
module, then send two pairs of secret key data, the master control received to save A, B to the internal.
Two pairs of secret key data are 32 bytes long;

When encryption level 4, the module receives the command to empty the internal data (if there is
input information), generate 32 bytes random number (1 6 byte key A, 16 byte key B) to save in the
module, then send two pairs of secret key data, after the master control to save A, B to the internal. Two
pairs of secret key data are 32 bytes long;

When the encryption level is 20, the module receives the command and empthe internal data (if
there is input information), generates the RSA key pair (1024 bit generation key pair 2 times / miao,
private key 75 times / second) and saves it in the module, and then the public key and module are sent,
and saves to the internal after the main control receives. The public key and module length are (4 + 128)
bytes。

38 J-JY-指纹模组产品用户手册
指纹模组产品用户手册
When the encryption level is 21, the module receives the command and empthe internal data (if
there is input information), generates the ECC key pair (256 bit generation key pair 100 times /
wonderful, private key 80 times / second) and saves it in the module, Then the private key data is sent,
and the private key is saved after the master receives it. The private key data length is 32 bytes。

Pour:Pour security is required when interacting secret key. First, during the product process, the
external environment is safe; then, after the product is repaired or upgraded, the main control needs to
verify whether the encryption level matches for the first time, and then it is automatically called。

3.3.3.2 Lock the secret key pair PS_LockKeyt

 Function declaration : After the module receives the command, the master control is
no longer supported to obtain a new key pair. This feature is not supported if
the encryption level is set to 0 and 1 in Table 2- 1。

 Input parameter :

 Return the parameter : Confirmation of the word

 Instruction code : E1H



 Directive package format:
Table 3-59 Lock the secret key to the Directive package format

Head of
Device Package Packet Instruction
contracted Checksum
address logo length code

labour
2 bytes 4bytes 1 byte 2 bytes 1 byte 2 bytes

0xEF01 xxxx 01H 0003H E1H sum

 Answer package format:


Table 3-60 Lock the secret key pair instruction Answer package format
Head of
Device Package Packet Confirm
contracted Checksum
address logo length code
labour
2 bytes 4bytes 1 byte 2 bytes 1 byte 2 bytes
0xEF01 xxxx 07H 0003H xxH sum

Pour: Confirm code= 0 0 H Send subsequent packets next;

Confirm code=01 H It means there is a mistake in receiving the package;


Confirm code=1 8 H Indicates the Flash operating on Lose;

Confirm code=2 EH Indicates that the secret key does not exist;

Confirm code=3 1 H Indicates that the functionality does not match the encryption level;
Confirm code=32 H The secret key is locked;

The sum refers to the Checksum。

39 J-JY-指纹模组产品用户手册
指纹模组产品用户手册

3.3.3.3 Get the ciphertext random numbers PS_GetCiphertext

 Function declaration : Get ciphertext or random numbers from the module end. This
feature is not supported if the encryption level is set to 0 and 1 in Table 2- 1。

 Input parameter :

 Return the parameter : Confirmation of the word

 Instruction code : E2H

 Directive package format:


Table 3-61 obtains the ciphertext random number Directive package format
Head of
Device Package Packet Instruction
contracted Checksum
address logo length code
labour
2 bytes 4bytes 1 byte 2 bytes 1 byte 2 bytes
0xEF01 xxxx 01H 0003H E2H sum

 Answer package format:


Table 3-62 obtains the ciphertext random number instruction Answer package format

Head of
Device Package Packet Confirm
contracted Checksum
address logo length code

labour
2 bytes 4bytes 1 byte 2 bytes 1 byte 2 bytes

0xEF01 xxxx 07H 0003H xxH sum

Pour: Confirm code= 0 0 H Send subsequent packets next;


Confirm code=01 H It means there is a mistake in receiving the package;


Confirm code=1 8 H Indicates the Flash operating on Lose;

Confirm code=19 H Represents the random number operation, the Lose;


Confirm code=2 EH Indicates that the secret key does not exist;

Confirm code=2FH Represents the security algorithm performing Lose

Confirm code=3 1 H Indicates that the functionality does not match the encryption level;
The sum refers to the Checksum。

 Send subsequent packets after answering。


Table 3-63 obtains the ciphertext random number packet format
Head of
Device Package Packet
contracted Data Checksum
address logo length
labour
2 bytes 4bytes 1 byte 2 bytes N byte 2 bytes
0xEF01 xxxx xxH xxH sum

Pour: Package logo=0 2 : Data packages, and with subsequent packages。

40 J-JY-指纹模组产品用户手册
指纹模组产品用户手册
Package logo=08 :The last data packet, namely, the end packet。

When UART uploads packets, it subcontracts them at a pre-set length。

When the USB uploads the packet, it sends the whole packet data directly ,not have Head of
contracted labour 、 Device address、 Package logo 、 Packet length 和 Checksum。
 Auxiliary instructions:

When the encryption level is 2, the master control sends the instructions, and the module generates
16 bytes of random number R after receiving the command, and uses the key A to encrypt R for Q and
returns it to the master control. Diphertext data length is 16 bytes。

When the encryption level is 3, the main control sends the command, and the module receives 16
bytes of random number R after receiving the command, and encrypts R with the key A to obtain Q and
returns it to the main controller. Diphertext data length is 16 bytes。

When the encryption level is 4, the master control sends the command, and the module receives 16
bytes of random number R after receiving the command, and uses the key A to encrypt R for Q and
returns it to the master control. Diphertext data length is 16 bytes。

When the encryption level is 20, the master control sends the instruction, and after the module

receives the command, it generates 16 bytes of random number R, and uses the private key to encrypt R
for Q, and returns it to the master control. Diphertext data length is 128 bytes。

When the encryption level is 21, the master control sends the instructions. After the command is
received by the module, the module generates 16 bytes of random number R, and returns them to the

master control. Diphertext data length is 16 bytes。

3. 3. 3 .4 Secure storage template PS_ SecurityStoreChar


 Function declaration : Save the template file in the template buffer to the PageID
number flash database location. This feature is not supported if the
encryption level is set to 0 and 1 in Table 2 1。

 Input parameter : BufferID(Default is 1),PageID(fingerprint library Position number)

 Return the parameter : Confirmation of the word

 Instruction code : E3H

 Directive package format:


Table 3-64 Safe Storage Template Directive package format

Head of Buffer
Device Package Packet Instruction Position Handshake
contracted area Checksum
address logo length code number signal
labour number
2 bytes 4bytes 1 byte 2 bytes 1 byte 1 byte 2 bytes xx byte 2 bytes
0xEF01 xxxx 01H xxH E3H BufferID PageID sum

Pour:The BufferID defaults to 1。

41 J-JY-指纹模组产品用户手册
指纹模组产品用户手册
 Answer package format:
Table 3-65 Secure Storage Template Instructions Answer package format

Head of
Device Package Packet Confirm
contracted Checksum
address logo length code
labour
2 bytes 4bytes 1 byte 2 bytes 1 byte 2 bytes
0xEF01 xxxx 07H 0003H xxH sum

Pour: Confirm code=0 0 H Represents a storage of Success;

Confirm code=01 H It means there is a mistake in receiving the package;

Confirm code=0bH Indicates that the PageID is outside the fingerprint library range;
Confirm code=1 8 H Indicates the Flash operating on Lose;

Confirm code=19 H Represents the random number operation, the Lose;


Confirm code=2 EH Indicates that the secret key does not exist;

Confirm code=2FH Represents the security algorithm performing Lose

Confirm code=30H It means that the security algorithm is wrong



Confirm code=3 1 H Indicates that the functionality does not match the encryption level;
The sum refers to the Checksum。

 Auxiliary instructions:

At the encryption level 2, the master control will then use A decryption to get R 'after receiving Q,

and then uses the key B to encrypt R' to get M. The master sends M to the module, the module uses key
B decryption M to get R '', compare R==R '' execution template storage is not execute otherwise. The

handshake signal data length is 16 bytes。

At the encryption level 3, the master control uses A decryption to get R 'after receiving Q, and then
uses the key B to encrypt R' to get M. The master sends M to the module, the module uses key B
decryption M to get R '', compare R==R '' execution template storage is not execute otherwise. The
handshake signal data length is 16 bytes。

At the encryption level 4, the master control will then use A decryption to get R 'after receiving Q,
and then uses the key B to encrypt R' to get M. The master sends M to the module, the module uses key
B decryption M to get R '', compare R==R '' execution template storage is not execute otherwise. The
handshake signal data length is 16 bytes。

When the encryption level is 20, the master control uses the public key decryption to obtain R '.
The master sends R 'to the module, module comparison R==R''execution template storage otherwise not
executed. The handshake signal data length is 16 bytes。

At encryption level 21, the master control uses the private key signature R to receive Q. The master
control sends Q to the module, which uses the public key to check Q. Checchecking is stored by
execution template otherwise not executed. The handshake signal data length is 64 bytes。

42 J-JY-指纹模组产品用户手册
指纹模组产品用户手册

3.3 .3.5 Secure search for fingerprints PS_SecuritySearch

 Function declaration : Search the entire or part of the fingerprint library with feature
files in the template buffer. Page number if searched. This feature is not
supported if the encryption level is set to 0 and 1 in Table 2 1。

 Input parameter : BufferID(Default is 1) ,StartPage( home page) ,PageNum


(paginal number ), rand( random number )

 Return the parameter : Confirmation of the word , Page number (Match fingerprint
template), Score

 Instruction code : E4H

 Directive package format:


Table 3-66 Security search for fingerprint Directive package format
Head of Buffer Parameter
Device Package Packet Instruction
contracted area Parameter Parameter Checksum
address logo length code
labour number
2 16bytes
2 bytes 4bytes 1 byte 1 byte
信 1 byte 2 bytes 2 bytes 2 bytes
bytes
0xEF01 xxxx 01H 0018H E4H BufferID StartPage PageNum sum

Pour:BufferID defaults to 1, searching entire or partial fingerprint libraries with fingerprint templates in
the template buffer。

 Answer package format:


Table 3-67 Security search for fingerprint instructions Answer package format

Head of
Device Package Packet Confirm
contracted Checksum
address logo length code
labour
2 bytes 4bytes 1 byte 2 bytes 1 byte 2 bytes
0xEF01 xxxx 07H 03H xxH sum

Pour:Confirm code=00 H denotes the search to;

Confirm code=01 H It means there is a mistake in receiving the package;

Confirm code=1 8 H Indicates the Flash operating on Lose;

Confirm code=1 9 H Represents the random number operation, the Lose;

Confirm code=2 EH Indicates that the secret key does not exist;

Confirm code=2FH Represents the security algorithm performing Lose

Confirm code=3 1 H Indicates that the functionality does not match the encryption level;
The sum refers to the Checksum。

 Send subsequent packets after answering。

43 J-JY-指纹模组产品用户手册
指纹模组产品用户手册
Table 3-68 Secure search for fingerprint instruction packet format

Head of
Device Package Packet
contracted Data Checksum
address logo length
labour
2 bytes 4bytes 1 byte 2 bytes N byte 2 bytes
0xEF01 xxxx xxH xxH sum

 Auxiliary instructions:

When the encryption level is 2, the master control generates 16 bytes of random numbers as R,
which uses the key A to encrypt R as Q and sends it to the module. The module receives the command
using the key A decryption Q to get R'and performs the search. Search results for T, search ID as I,
search Score for S, P= T (1 byte) | I (2 bytes) | S (2 bytes) | R'(low 11 bytes), use the key B encryption P
M, sent to the master, master use key B decryption M X, compare X (low 11 bytes) ==R (low 11 bytes)
take X high 5 bytes valid data. The response data length is 16 bytes。

When the encryption level is 3, the master control generates 16 bytes of random numbers as R,
which uses the key A to encrypt R as Q and sends it to the module. The module receives the command
using the key A decryption Q to get R'and performs the search. Search results for T, search ID as I,
search Score for S, P= T (1 byte) | I (2 bytes) | S (2 bytes) | R'(low 11 bytes), use the key B encryption P

M, sent to the master, master use key B decryption M X, compare X (low 11 bytes) ==R (low 11 bytes)
take X high 5 bytes valid data. The response data length is 16 bytes。

When the encryption level is 4, the master control generates 16 bytes of random numbers as R,
which uses the key A to encrypt R as Q and sends it to the module. The module receives the command

using the key A decryption Q to get R'and performs the search. Search results for T, search ID as I,
search Score for S, P= T (1 byte) | I (2 bytes) | S (2 bytes) | R'(low 11 bytes), use the key B encryption P

M, sent to the master, master use key B decryption M X, compare X (low 11 bytes) ==R (low 11 bytes)
take X high 5 bytes valid data. The response data length is 16 bytes。

When the encryption level is 20, the master control generates 16 bytes of random numbers as R and
sends them to the module. Modulreceived command execution search, search results as T, search ID I,
search Score as S, P= T (1 byte) | I (2 bytes) | S (2 bytes) | R (low 11 bytes), use private key encryption P
get Q, send to the master, master use public key decrypt Q X, compare X (low 11 bytes) ==R (low 11
bytes) take X high 5 bytes valid data. The answer data length is 128 bytes。

When the encryption level is 21, the master generates 16 bytes of random numbers as R and sent to
the module. Modulreceived the command to execute the search results as T, search ID as I, search Score
as S, P= T (1 byte) | I (2 bytes) | S (2 bytes) | R (low 11 bytes), using public key encryption P get Q, send
to the master, master using private key decrypt QX, compare X (low 11 bytes) ==R (low 11 bytes) take
X high 5 bytes valid data. The answer data length is 128 bytes。

44 J-JY-指纹模组产品用户手册
指纹模组产品用户手册

3.4 Maintenance class instruction set

3.4.1 Upload images PS_UpImage

 Function declaration : Upload the data in the image buffer to the master。

 Input parameter : none

 Return the parameter : Confirmation of the word

 Instruction code : 0aH

 Directive package format:


Table 3-69 Uploaded image for Directive package format

Head of
Device Package Packet Instruction
contracted Checksum
address logo length code
labour
2 bytes 4bytes 1 byte 2 bytes 1 byte 2 bytes
0xEF01 xxxx 01H 信 0003H 0aH 000eH

 Answer package format:


Table 3-70 Upload image instruction Answer package format

Head of
Device Package Packet Confirm
contracted Checksum
address logo length code
labour

2 bytes 4bytes 1 byte 2 bytes 1 byte 2 bytes


0xEF01 xxxx 07H 0003H xxH sum

Pour: Confirm code= 0 0 H Send subsequent packets next;

Confirm code=01 H It means there is a mistake in receiving the package;


Confirm code=0fH Indicates that subsequent packets cannot be sent;

The sum refers to the Checksum。

 Send subsequent packets after answering。


Table 3-71 UART Upload image package format
Head of
Device Package Packet
contracted Data Checksum
address logo length
labour
2 bytes 4bytes 1 byte 2 bytes N byte 2 bytes
0xEF01 xxxx xxH xxH xxH sum

Pour: Package logo=0 2 : Data packages, and with subsequent packages。

Package logo=08 The last data packet, namely, the end packet。

When UART uploads image packets, it subcontracts them at a preset length。

When the USB uploads the image packet, it sends the whole packet data directly ,not have

45 J-JY-指纹模组产品用户手册
指纹模组产品用户手册

Head of contracted labour、 Device address、 Package logo 、 Packet length 和 Checksum。

 A byte contains two pixels, each occupying 4bits。

3.4.2 Download images PS_DownImage

 Function declaration : Master control to download the image data to the module. This
feature is supported with the encryption level set to 0 in Table 2- 1。

 Input parameter : none

 Return the parameter : Confirmation of the word

 Instruction code : 0bH

 Directive package format:


Table 3-72 Downloads the image for the Directive package format

Head of
Device Package Packet Instruction
contracted Checksum
address logo length code
labour
2 bytes 4bytes 1 byte 2 bytes 1 byte 2 bytes

0xEF01 xxxx 01H 0003H 0bH 000fH

Pour:After the pre-processing function is enabled, the collected images can be uploaded, but it does not

support the download function, let alone the subsequent fingerprint algorithm function.

 Answer package format:


Table 3-73 Download Image Instruction Answer package format


Head of
Device Package Packet Confirm

contracted Checksum
address logo length code
labour
2 bytes 4bytes 1 byte 2 bytes 1 byte 2 bytes
0xEF01 xxxx 07H 0003H xxH sum

Pour: Confirm code=0 0 H Indicates that subsequent data packets can be received;
Confirm code=01 H It means there is a mistake in receiving the package;

Confirm code=0eH Indicates that subsequent packets cannot be received;

Confirm code=3 1 H Indicates that the functionality does not match the encryption level;
The sum refers to the Checksum。

 Subsequent packets are received after answering。


Table 3-74 UART download image package format
Head of
Device Package Packet
contracted Data Checksum
address logo length
labour
2 bytes 4bytes 1 byte 2 bytes N byte 2 bytes
0xEF01 xxxx xxH xxH xxH sum

46 J-JY-指纹模组产品用户手册
指纹模组产品用户手册
Pour: Package logo=0 2 : Data packages, and with subsequent packages。

Package logo=08 :The last data packet, namely, the end packet。

When UART downloads image packets, it subcontracts the receipt at a preset length。

When the USB downloads the image data package, it receives the whole-packet data directly ,
not have Head of contracted labour、 Device address 、 Package logo 、 Packet length 和 Checksum。

 A byte contains two pixels, each occupying 4bits。

3.4.3 Obtain the chip unique serial number PS_GetChipSN

 Function declaration :Obtain the chip unique serial number。

 Input parameter : obligate 。

 Return the parameter :Confirmation of the word ,Unique serial number

 Instruction code :34H

 Directive package format:


Table 3-75 obtains the chip unique serial number Directive package format

Head of

Device Package Packet Instruction
contracted Parameter Checksum
address logo length code

labour
2 bytes 4bytes 1 byte 2bytes 1 byte 1 byte 2bytes
0xEF01 xxxx 01H 0004H 34H 0 0039H

 Answer package format:


Table 3-76 obtains the chip unique serial number instruction Answer package format

Head of Unique
Device Package Packet Confirm
contracted serial Checksum
address logo length code
labour number
2 bytes 4bytes 1byte 2bytes 1byte 32bytes 2bytes
0xEF01 xxxx 07H 0023H xxH SN sum

Pour: Confirm code= 0 0 H representation OK;

Confirm code=01 H It means there is a mistake in receiving the package;

The sum refers to the Checksum。

3.4.4 Handshake instructions PS_HandShake

 Function declaration :Check whether the module is working properly。

 Input parameter :none。

 Return the parameter :Confirmation of the word

 Instruction code :35H

47 J-JY-指纹模组产品用户手册
指纹模组产品用户手册
 Directive package format:
Table 3-77 Handshake with Directive package format

Head of
Device Package Packet Instruction
contracted Checksum
address logo length code
labour
2 bytes 4bytes 1 byte 2bytes 1 byte 2bytes
0xEF01 xxxx 01H 0003H 35H 0039H

 Answer package format:


Table 3-78 Handshake instructions for Answer package format
Head of
Device Package Packet Confirm
contracted Checksum
address logo length code
labour
2 bytes 4bytes 1byte 2bytes 1byte 2bytes
0xEF01 xxxx 07H 0003H xxH sum

Pour: Confirm code= 0 0 H representation OK;

Confirm code=01 H It means there is a mistake in receiving the package;

The sum refers to the Checksum。



3.4.5 Check the sensor PS_CheckSensor

 Function declaration :Verify that the sensor is working correctly。


 Input parameter :none。

 Return the parameter :Confirmation of the word


 Instruction code :36H

 Directive package format:


Table 3-79 Check the sensor Directive package format
Head of
Device Package Packet Instruction
contracted Checksum
address logo length code
labour
2 bytes 4bytes 1 byte 2bytes 1 byte 2bytes
0xEF01 xxxx 01H 0003H 36H 003AH

 Answer package format:


Table 3-80 Verify the sensor instruction Answer package format

Head of
Device Package Packet Confirm
contracted Checksum
address logo length code
labour
2 bytes 4bytes 1byte 2bytes 1byte 2bytes
0xEF01 xxxx 07H 0003H xxH sum

Pour: Confirm code= 0 0 H representation OK;

48 J-JY-指纹模组产品用户手册
指纹模组产品用户手册
Confirm code=01 H It means there is a mistake in receiving the package;

Confirm code=2 9 H Indicates that the sensor operates on the Lose;

The sum refers to the Checksum。

3.4.6 Restore factory setting PS_RestSetting

 Function declaration : After the module receives the command, emptying the internal
data (if already entered), and removes the internal key pair, the master can
retrieve the secret key pair. This feature is not supported if the encryption
level is set to 0 and 1 in Table 2- 1。

 Input parameter :

 Return the parameter : Confirmation of the word

 Instruction code : 3BH

 Directive package format:


Table 3-81 Delete the secret key pair of Directive package format

Head of
Device Package Packet Instruction
contracted Checksum
address logo length code
labour

2 bytes 4bytes 1 byte 2 bytes 1 byte 2 bytes
0xEF01 xxxx 01H 0003H 3BH sum

 Answer package format:


Table 3-82 Delete the secret key pair instruction Answer package format

Head of
Device Package Packet Confirm
contracted Checksum
address logo length code
labour
2 bytes 4bytes 1 byte 2 bytes 1 byte 2 bytes
0xEF01 xxxx 07H 0003H xxH sum

Pour: Confirm code= 0 0 H Send subsequent packets next;

Confirm code=01 H It means there is a mistake in receiving the package;


Confirm code=1 8 H Indicates the Flash operating on Lose;

Confirm code=2 EH Indicates that the secret key does not exist;

The sum refers to the Checksum。

49 J-JY-指纹模组产品用户手册
指纹模组产品用户手册

3.5 Custom class instruction set

3.5.1 Set the password PS_SetPwd

 Function declaration : Set the module handshake password. The default password of
the fingerprint module system is 0. If the default password is not modified,
the system does not require the verification password during the
communication, and the master control can communicate directly with the
module. If the password is modified, the first command of the master control
and the device module must verify the password. And the module receives
other commands only after the password verification is passed。

 Input parameter : PassWord

 Return the parameter : Confirmation of the word

 Instruction code : 12H

 Directive package format:



Table 3-83 Set the password Directive package format

Head of
Device Package Packet Instruction

contracted command Checksum
address logo length code
labour
2 bytes 4bytes 1 byte 2 bytes 1 byte 4 byte 2 bytes

0xEF01 xxxx 01H 0007H 12H PassWord sum

 Answer package format:


Table 3-84 Set the password command Answer package format

Head of
Device Package Packet Confirm
contracted Checksum
address logo length code
labour
2 bytes 4 byte 1 byte 2 bytes 1 byte 2 bytes
0xEF01 xxxx 07H 0003H xxH sum

Pour: Confirm code= 0 0 H representation OK;

Confirm code=01H It means there is a mistake in receiving the package;


The sum refers to the Checksum。

3.5.2 Verify the password PS_VfyPwd

 Function declaration : Verify the module password。

 Input parameter : PassWord

 Return the parameter : Confirmation of the word

50 J-JY-指纹模组产品用户手册
指纹模组产品用户手册

 Instruction code : 13H

 Directive package format:


Table 3-85 Verify the password Directive package format

Head of
Device Package Packet Instruction
contracted command Checksum
address logo length code
labour
2 bytes 4bytes 1 byte 2 bytes 1 byte 4 byte 2 bytes
0xEF01 xxxx 01H 0007H 13H PassWord sum

 Answer package format:


Table 3-86 verifies the command instruction Answer package format
Head of
Device Package Packet Confirm
contracted Checksum
address logo length code
labour
2 bytes 4 byte 1 byte 2 bytes 1 byte 2 bytes
0xEF01 xxxx 07H 0003H xxH sum

Pour: Confirm code= 0 0 H Indicates that the command is verified correctly;


Confirm code=01 H It means there is a mistake in receiving the package;

Confirm code=1 3 H The command is incorrect;

The sum refers to the Checksum。

3.5.3 Sampling random number PS_GetRandomCode


 Function declaration : The order module generates a random number and returns it to

the master。

 Input parameter : none

 Return the parameter : Confirmation of the word ,random number

 Instruction code : 14H

 Directive package format:


Table 3-87 The sampled random numbers are Directive package format
Head of
Device Package Packet Instruction
contracted Checksum
address logo length code
labour
2 bytes 4bytes 1 byte 2 bytes 1 byte 2 bytes
0xEF01 xxxx 01H 0003H 14H 0018H

 Answer package format:

51 J-JY-指纹模组产品用户手册
指纹模组产品用户手册
Table 3-88 Sampling random number instruction response package format

Head of
Device Package Packet Confirm random
contracted Checksum
address logo length code number
labour
2 bytes 4bytes 1 byte 2 bytes 1 byte 4 bytes 2 bytes
0xEF01 xxxx 07H 0007H xxH xxxx sum

Pour: Confirm code= 0 0 H Indicates the generation success;

Confirm code=01 H It means there is a mistake in receiving the package;

Confirm code= 1 9 H Indicates a random number generation failure;

The sum refers to the Checksum。

3.5.4 Set upDevice addressPS_SetChipAddr

 Function declaration : The default address of the module is 0xffffffff, which can be
modified by this instruction. The address domain of the command packet /
packet must match the address before it can be received by the fingerprint
module。

 Input parameter : Device address

 Return the parameter : Confirmation of the word

 Instruction code : 15H


 Directive package format:


Table 3- 89 Setting up the Device addressDirective package format

Head of
Device Package Packet Instruction Device
contracted Checksum
address logo length code address
labour
2 bytes 4bytes 1 byte 2 bytes 1 byte 4 bytes 2 bytes
0xEF01 xxxx 01H 0007H 15H xxxx sum

 Answer package format:


Table 3- 90 install Device address order Answer package format
Head of
Device Package Packet Confirm
contracted Checksum
address logo length code
labour
2 bytes 4 byte 1 byte 2 bytes 1 byte 2 bytes
0xEF01 xxxx 07H 0007H xxH sum

Pour: Confirm code= 0 0 H Represents the generated address, the Success;

Confirm code=01H It means there is a mistake in receiving the package;


The sum refers to the Checksum。

 The module address is the current address, and the address domain of the answer packet

52 J-JY-指纹模组产品用户手册
指纹模组产品用户手册
will use the newly generated address。

 After this instruction is executed, the Device address is immediately fixed and remains
unchanged. The Device address can only be changed again after the reset。

 After this instruction is executed, all packets have to use the generated address。

3.5.5 Write a notepad PS_WriteNotepad

 Function declaration : The module has a 512bytes FLASH space for storing user data,
which is called the user notepad, which is logically divided into 16 pages,
and the write notepad command is used to write the user's 32bytes data to
the specified notepad page. When Pour writes about a certain page of a
notepad, the 32 bytes of Content on that page are written overall, and the
original Content is overwritten。

 Input parameter : Page number, userinfo

 Return the parameter : Confirmation of the word

Instruction code : 18H




 Directive package format:
Table 3-91 Write Notepad Directive package format

Head of
Device Package Packet Instruction Page
contracted Userinfo Checksum

address logo length code number


labour
2 bytes 4bytes 1 byte 2 bytes 1 byte 1byte 32 bytes 2 bytes

0xEF01 xxxx 01H 24H 18H 0~15 User content sum

 Answer package format:


Table 3-92 Write the notepad instruction Answer package format
Head of
Device Package Packet Confirm
contracted Checksum
address logo length code
labour
2 bytes 4 byte 1 byte 2 bytes 1 byte 2 bytes
0xEF01 xxxx 07H 0003H xxH sum

Pour: Confirm code= 0 0 H representation OK;

Confirm code=01 H It means there is a mistake in receiving the package;

Confirm code=1cH The Notepad Page number has specified an error;

The sum refers to the Checksum。

3.5.6 Read the notepad PS_ReadNotepad

 Function declaration : Read the data from Notepad。

53 J-JY-指纹模组产品用户手册
指纹模组产品用户手册
 Input parameter : Page number

 Return the parameter : Confirmation of the word ,Userinfo

 Instruction code : 19H

 Directive package format:


Table 3-93 Read Notepad Directive package format

Head of
Device Package Packet Instruction Page
contracted Checksum
address logo length code number
labour
2 bytes 4 bytes 1 byte 2 bytes 1 byte 1byte 2 bytes
0xEF01 xxxx 01H 0004H 19H 0~15 xxxxH

 Answer package format:


Table 3-94 Read the Notepad instruction, Answer package format
Head of
Device Package Packet Confirm
contracted Userinfo Checksum
address logo length code
labour
2 bytes 4bytes 1 byte 2 bytes 1 byte 32bytes 2 bytes
0xEF01 xxxx 07H 23H xxH User content sum

Pour: Confirm code= 0 0 H representation OK;

Confirm code=01 H It means there is a mistake in receiving the package;


Confirm code=1cH The Notepad Page number has specified an error;


The sum refers to the Checksum。

3.5.7 The LED control light instruction PS_ControlBLN


 Function declaration : Control light instructions are mainly divided into two categories:
general indicator light and colorful programming breathing
light。

 Input parameter : Function code, start color, end color, number of cycles

 Return the parameter : Confirmation of the word

 Instruction code : 3CH

 Directive package format:


Table 3-95 . General indicator lamp Directive package format
Head of function Cycle
Chip Package Packet Instruction Start End the
contracted code index Checksum
address logo length code color color
labour
2 bytes 4bytes 1 byte 2 bytes 1 byte 1 byte 1bytes 1bytes 1bytes 2 bytes
0xEF01 xxxx 01H 0007H 3CH xx xx xx xx sum

 辅助说明

54 J-JY-指纹模组产品用户手册
指纹模组产品用户手册

function code :LED lamp mode control bit, 1-Common breathing light, 2-flashing, 3-normally on,
4-normally switch on, 5-fade on, 6-fade off, other function code not applicable
to this Directive package format;

Start color: When set to the ordinary breathing light, the color from out to light is limited to the
ordinary breathing light (function code 01) function, and the other functions are
consistent with the End the color. Where, bit0 is a blue light control bit, bit1 is a
green light control bit, and bit2 is a red light control bit. Put 1 light on, put 0 light
out. For example, 0x01_ blue light, 0x02_ green light, 0x04_ red light, 0x06_ traffic
light, 0x05_ red blue light, 0x03_ green blue light, 0x07_ red green blue light,

0x00_ all out;

End the color:When set to ordinary breathing light, the color from light to out is limited to
ordinary breathing light (function code 0x01), and other functions are
consistent with Start color. Set up in the same way as the Start color;

Cycle index :Indicates the number of breathing or flashing lights. When set to 0,indicates infinite
cycles and a limited number of breaths when set to other values. Cycle index is
suitable for breathing, flashing function, and is invalid in other functions, such

as in normally open, normally closed, gradually open, and gradually closed;
Table 3-96 Colorful Programming Breath Light Directive package format

Head of function Time Color Color Color Color Color Cycle
Chip Package Packet Instruction
contracted code position code code code code code index Checksum
address logo length code

labour 1 2 3 4 5
2 1 byte 1byte 1byte 1byte 1byte
2 bytes 4bytes 1 byte 1 byte 1 byte 1byte 1byte 2 bytes
bytes

0xEF01 xxxx 01H 000BH 3CH xx xx xx xx xx xx xx xx sum

 Auxiliary instructions

function code :7-Colorful programming breathing lamp, other function code is not applicable to
this Directive package format;

Time position: used to control the time of the light breathing once, that is, from extinguish to light,
and then to extinguish time. The time range of a single breath is about 0. 1 s~ 1 0 .0 s , which is represented
by a number between 1 and 100, and the numbers beyond this range are invalid. That is, time bit set to 1
corresponds to 0.1s and time bit set to 100 corresponds to 10.0s. The recommended time bit is set to 36,
and the breathing time is the same as the ordinary breathing lamp (function code 0x01), or about 3.6s 。

Color code: a total of 5 bytes, as shown in the following table below, each byte color code is
divided into 2 units, each unit has 4 bits, from the high level is divided into an effective bit, and 3 color
control bits. Each unit controls the process of a certain color light from out to on to out. Further, the
programmed breathing light 1 cycle lighting starts from the unit 1 of color 1, then the unit 2 of color 1,
followed by the unit 1 of color 2, and so on。

55 J-JY-指纹模组产品用户手册
指纹模组产品用户手册
Table 3-97 Color control position schematic table

Colour(1byte)

cell 1 unit 2

significance Red significanc Red


Green light Blue lamp position Green light Blue lamp position
digit light e digit light

Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0

significance digit:0- This unit and all units after this member are invalid. 1- This unit is valid;
Red light:0-Red light out, 1-Red light on;

Green light:0-Green light out, 1-green light on;

Blue lamp position:0-Blue light out, 1-Blue light on;

Cycle index : Represents the number of breathing lights. When set to 0, infinite cycles and a
limited number of breaths。

Answer package format:


Table 3-98 Breathing light Instructions Answer package format
Head of
Chip

Package Packet Confirm
contracted Checksum
address logo length code
labour

2 bytes 4 byte 1 byte 2 bytes 1 byte 2 bytes
0xEF01 xxxx 07H 0003H xxH sum

Pour: Confirm code= 0 0 H Represents the generated address, the Success;

Confirm code=01H It means there is a mistake in receiving the package;


The sum refers to the Checksum。

3.5.8 Obtain the image information instructions PS_GetImageInfo

 Function declaration : After being detected, input the fingerprint image is stored in the
image buffer and return the image information。

 Input parameter : 无

 Return the parameter : Confirmation of the word 、 Image area (percentage) 、 Image
quality (0: qualified; Other: unqualified)

 Instruction code : 3DH

 Directive package format:

56 J-JY-指纹模组产品用户手册
指纹模组产品用户手册
Table 3-99 obtains the image information, Directive package format

Head of
Device Package Packet Instruction
contracted Checksum
address logo length code
labour
2 bytes 4bytes 1 byte 2bytes 1 byte 2bytes
0xEF01 xxxx 01H 0003H 3DH 0041H

 Answer package format:


Table 3-100 acquires the image information instruction Answer package format
Head of
Device Package Packet Confirm Image
contracted Image area Checksum
address logo length code quality
labour
2 bytes 4bytes 1byte 2bytes 1byte 1byte 1byte 2bytes
0xEF01 xxxx 07H 05 xxH xxH xxH sum

Pour: Confirm code= 0 0 H Represents the acquired image Success;

Confirm code=01 H It means there is a mistake in receiving the package;


Confirm code=0 2 H Indicates no finger on the sensor;

Confirm code=06 H It means that the image is too messy to produce a feature;

Confirm code=33 H It means that the Image area is small;

The sum refers to the Checksum。

3.5.9 Search for the current fingerprint instructions PS_SearchNow


 Function declaration : Search the entire or partial fingerprint library with the most

recently extracted feature file in the template buffer. Page number if


searched. This feature is supported if the encryption level is set to 0 or 1 in
Table 2- 1。

 Input parameter : StartPage( home page), PageNum( home page)

 Return the parameter : Confirmation of the word , Page number (Match fingerprint
template), Score

 Instruction code : 3EH

 Directive package format:


Table 3-101 searches for the current fingerprint Directive package format
Head of
Device Package Packet Instruction
contracted Parameter Parameter Checksum
address logo length code
labour
2 bytes 4bytes 1 byte 2 bytes 1 byte 2 bytes 2 bytes 2 bytes
0xEF01 xxxx 01H 0007H 3EH StartPage PageNum sum

 Answer package format:

57 J-JY-指纹模组产品用户手册
指纹模组产品用户手册
Table 3-102 searches for the current fingerprint instructions, Answer package format

Head of
Device Package Packet Confirm Page
contracted Score Checksum
address logo length code number
labour
2 bytes 4bytes 1 byte 2 bytes 1 byte 2 bytes 2 bytes 2 bytes
0xEF01 xxxx 07H 07H xxH PageID MatchScore sum

Pour:Confirm code=00 H denotes the search to;

Confirm code=01 H It means there is a mistake in receiving the package;

Confirm code=09 H Indicates; not found; Page number and Score are 0;

Confirm code=17H Indicates a residual fingerprint or no finger movement between the two
collections;

Confirm code=3 1 H Indicates that the functionality does not match the encryption level;
The sum refers to the Checksum。




58 J-JY-指纹模组产品用户手册
指纹模组产品用户手册

4 Example of functional implementation

4.1 Basic communication process

4.1.1 Processing of the UART and USB command packages




FIG.4-1 Functional Example 1: Processing of the UART and USB command packets

59 J-JY-指纹模组产品用户手册
指纹模组产品用户手册

4.1.2 Sending process of UART packets

Before the UART transmits the packet, it should first receive the command packet to transmit the packet,
prepare for the transmission and then send the Success answer packet, and finally start transmitting the
packet. Data packages mainly include: Head of contracted labour, Device address, Package logo, Packet
length, data, and Checksum。

There are two main types of Package logo for data packages: 02H and 08H.02H: Package, with
subsequent packages.08H: The last data packet, namely, the end packet. The data length is preset, mainly
divided into: 32,64,128, and 256 four kinds,。

For example, if the data length to transfer is 1K bytes and the pre-set data length in the packet is 128
bytes, then the 1K bytes data should be divided into eight packet transfers. Each package includes: 2
bytesHead of contracted labour, 4 bytesDevice address, 1 bytesPackage logo, 2 bytesPacket length, 128 bytes

data, and 2 bytesChecksum, with each data Packet length of 139 bytes. In addition, among the 8 packets, the
first 7 packets are labeled as 02H, and the last end packet reporting identification is 08H. The last thing that

Pour requires is that the end package will not otherwise expand to 139 bytes if the actual length does not
reach 139 bytes。

60 J-JY-指纹模组产品用户手册
指纹模组产品用户手册


FIG. 4-2 . Example 2: UART packet sending process



4.1.3 Receiving process of UART packets

Before the UART transmits the packet, it should first receive the command packet to transmit the packet,
prepare for the transmission and then send the Success answer packet, and finally start transmitting the
packet. Data packages mainly include: Head of contracted labour, Device address, Package logo, Packet
length, data, and Checksum。

There are two main types of Package logo for data packages: 02H and 08H.02H: Package, with
subsequent packages.08H: The last data packet, namely, the end packet. The data length is pre-set, mainly
divided into: 32,64,128, and 256 four kinds。

For example, if the data length to transfer is 1K bytes and the pre-set data length in the packet is 128
bytes, then the 1K bytes data should be divided into eight packet transfers. Each package includes: 2
bytesHead of contracted labour, 4 bytesDevice address, 1 bytesPackage logo, 2 bytesPacket length, 128 bytes
data, and 2 bytesChecksum, with each data Packet length of 139 bytes. In addition, among the 8 packets, the

61 J-JY-指纹模组产品用户手册
指纹模组产品用户手册
first 7 packets are labeled as 02H, and the last end packet reporting identification is 08H. The last thing that
Pour requires is that the end package will not otherwise expand to 139 bytes if the actual length does not
reach 139 bytes。




FIG.4-3 Functional Implementation Example 3: A UART packet receiving process

4.1.4 Sending and receiving process of USB data packets

Before the USB transmits the packet, it should first receive the command packet to transmit the packet,
prepare for the transmission and then send the Success answer packet, and finally start transmitting the
packet. The USB packets have only data, no Head of contracted labour, Device address, Package logo,

62 J-JY-指纹模组产品用户手册
指纹模组产品用户手册
Packet length, and Checksum, and unlike the UART subcontractor transmission, the USB is a whole-packet
transmission。


FIG. 4-4 Function Example 4: USB packet sending process


FIG.4-5 Function Example 5: USB packet receiving process

63 J-JY-指纹模组产品用户手册
指纹模组产品用户手册

4.2 General instruction communication process

4.2.1 General instruction Pour book fingerprint process

General instruction Pour book fingerprint process mainly includes: Pour book to obtain images, generate
features, merge features and storage templates. For example, AM11 0 , AM22 0 and other products, N = 4
times。




FIG.4-6 Function implementation Example 6: General instruction Pour book process

As shown in Table 2- 1, the Pour book logic is set to 1 when the Pour book fingerprint. If the currently
included fingerprint is similar to the previously included fingerprint, the Confirm code in the response
package generating the feature command will not display Success, but returns 28H, indicating the association
between the current fingerprint feature and the previous feature. What Pour means that the mutual
comparison correlation is only limited to the fingerprints included in the Pour book, and will not be
compared with the fingerprints in the fingerprint library。

As shown in Table 2- 1, Pour book logic is set to Pour book fingerprint at 2. If the currently included
fingerprint is not similar to the previously included fingerprint, the Confirm code in the response package
generating the feature command will not display Success, but returns 08H, indicating no association between

64 J-JY-指纹模组产品用户手册
指纹模组产品用户手册
the current fingerprint feature and the previous feature. What Pour means that the mutual comparison
correlation is only limited to the fingerprints included in the Pour book, and will not be compared with the
fingerprints in the fingerprint library。

No matter returning 28H or 08H, the current fingerprint feature has been extracted from Success. You
can recover images and generate features without changing BufferID, and you can also skip this round of
BufferID to include the next round of fingerprint。

4.2.2 General instructions to verify the fingerprint process

The general instruction verification fingerprint process mainly includes: verification with image
acquisition, feature generation and fingerprint search. When sending generated features and searching for
fingerprints, BufferID is set to the default value of 1。



FIG.4-7 Function implementation Example 7: General instruction verification process

65 J-JY-指纹模组产品用户手册
指纹模组产品用户手册

4.2.3 The fingerprint is taken from the sensor and the features are uploaded to the

master

The whole process mainly includes: obtaining images, generating features, and uploading templates.
When you send the generated features and upload the template, the BufferID is set to the default value of 1.
This feature is supported with the encryption level set to 0 in Table 2 1.

Pour means that it is a feature file, not a template。




FIG. 4-8 Functional implementation Example 8: Getting the fingerprint from the sensor and generating the feature is
uploaded to the master

66 J-JY-指纹模组产品用户手册
指纹模组产品用户手册

4.2.4 Read a specified template upload from the flash fingerprint library

The whole process mainly includes: reading out templates and uploading templates. When sending the
readout template and the upload feature, the BufferID is set to the default value of 2. This feature is
supported with the encryption level set to 0 in Table 2- 1。

Pour is uploading a template, not a feature file。




FIG.4-9 Example 9: Read a specified template upload from the flash fingerprint library

67 J-JY-指纹模组产品用户手册
指纹模组产品用户手册

4.2.5 The master control downloads a fingerprint feature and searches for the

fingerprint library with that feature

The whole process mainly includes: downloading templates and searching for fingerprints. When
downloading the template and searching for the fingerprint, the default BufferID is set to 1. This feature is
supported with the encryption level set to 0 in Table 2 1。

For Pour, you must download a feature file, not a template。




FIG. 4-10 Function implementation example 10: Master downloads a fingerprint feature and searches the fingerprint
library with the feature

68 J-JY-指纹模组产品用户手册
指纹模组产品用户手册

4.2.6 The master downloads two fingerprint features or templates for accurate

alignment

The whole process mainly includes: downloading templates and accurate alignment. When two of them
download the template, BufferID needs to set differently. This feature is supported with the encryption level
set to 0 in Table 2 1。

For Pour, when exact alignment objects are two feature files or two templates. If the exact alignment
object is a feature file and a template, the BufferID is set to 1 when downloading the feature file, and the
BufferID is set to 2 when downloading the template。




FIG. 4-11 Function implementation example 11: Master downloads two fingerprint features or templates for accurate
comparison

69 J-JY-指纹模组产品用户手册
指纹模组产品用户手册

4.2.7 The master downloads a fingerprint feature or template for accurate alignment

The whole process mainly includes: downloading templates, reading out templates, and accurate
alignment. When downloading a template, BufferID is set to 1, and when reading out the template, BufferID
is set to 2. This feature is supported with the encryption level set to 0 in Table 2- 1。




FIG. 4-12 Function implementation example 12: Master downloads a fingerprint feature or template for accurate
comparison

70 J-JY-指纹模组产品用户手册
指纹模组产品用户手册

4.3 Module instruction communication process

4.3.1 Automated Pour Book Template Process




FIG.4-13 Example 13: Automatic Pour book template process

71 J-JY-指纹模组产品用户手册
指纹模组产品用户手册
As shown in Table 2- 1, the Pour book logic is set to 1 when the Pour book fingerprint. If the currently
included fingerprint is similar to the previously included fingerprint, the Confirm code in the response
package generating the feature command will not display Success, but returns 28H, indicating the association
between the current fingerprint feature and the previous feature. What Pour means that the mutual
comparison correlation is only limited to the fingerprints included in the Pour book, and will not be
compared with the fingerprints in the fingerprint library. In addition, Pour meaning is also needed. Different
from the general instruction Pour book fingerprint process, the number of correlation comparisons of the
automatic Pour book template process is limited. After the number limit is exceeded, the current fingerprint
characteristics will not be compared with the previous features。

As shown in Table 2- 1, Pour book logic is set to Pour book fingerprint at 2. If the currently included
fingerprint is not similar to the previously included fingerprint, the Confirm code in the response package
generating the feature command will not display Success, but returns 08H, indicating no association between
the current fingerprint feature and the previous feature. What Pour means that the mutual comparison
correlation is only limited to the fingerprints included in the Pour book, and will not be compared with the
fingerprints in the fingerprint library. In addition, the Pour meaning is also required. Unlike the automatic
Pour book template process, when the Pour book logic is set to 1, the number of association comparisons is

not limited。

4.3.2 Automatic verify fingerprint process




FIG.4-14 Function implementation Example 14: Automatic verification of the fingerprint process

72 J-JY-指纹模组产品用户手册
指纹模组产品用户手册

4.4 Security instruction communication process

4.4.1 Security instruction Pour book fingerprint process

Before calling the security instruction set Pour book, you need to call the write system register
PS_WriteReg command, set the encryption level, and then call the obtain the secret key pair PS_GetKeyt
command to obtain and store the secret key。




FIG.4-15 Function implementation example 15: Security instruction Pour book fingerprint process

73 J-JY-指纹模组产品用户手册
指纹模组产品用户手册

4.4.2 Security instructions to verify the fingerprint process

Before calling the security instruction set verification, you need to call the write system register
PS_WriteReg command, set the encryption level, and then call the obtain the secret key pair PS_GetKeyt
command to obtain and store the secret key。




FIG. 4-16 Function implementation example 16: security instruction verification fingerprint process

74 J-JY-指纹模组产品用户手册
指纹模组产品用户手册

4.5 Sleep wake up process

For Pour purposes, the touch-feedback foot signal of the fingerprint module is only valid after the
Success enters the dormant process。

4.5.1 Self-triggering process

Here is an example process for self-trigger products without a touch chip。

Pour means that if you want to let the self-trigger type into the low power consumption, you should first
send the hibernation instructions to the module, and cut off the module fingerprint chip power supply after
receiving the Success response。




FIG.4-17 Example 17: Self-triggering process

75 J-JY-指纹模组产品用户手册
指纹模组产品用户手册

4.5.2 External trigger process

Here is an example process for an external trigger product with a touch chip。

Need to Pour meaning is, if you want to let the external trigger type into the low power consumption,
directly cut off the module fingerprint chip power supply can be。




FIG.. 4-18 Example 18: External trigger process

76 J-JY-指纹模组产品用户手册
指纹模组产品用户手册

5 Additional Remarks

5.1.1 Relationship between software version and antiresistance

Software version format is Vx.y.z. The n, where some versions do not display the n bits. Different software
versions need to set the anti-fake finger mode function according to different configuration modes, that is, to set
the instructions in chapter 3.3.3.1.12. The setting mode is mainly divided into the following three situations:

1 、Bit0: 0-Turn off resistance, 1-turn on resistance (default)。

Bit1: 0-Close fingerprint identification algorithm, 1-Open fingerprint identification algorithm (default
state)。

Bit2: 0-Turn off learning, 1-Turn on learning function (default)。

Bit3~ Bit7:keep back(Default is 0)。

2 、Bit0: 0-Turn off resistance, 1-turn on resistance (default)。



Bit1 : 0-Turn off fingerprint film recognition algorithm (default state), 1-Open the fingerprint film
recognition algorithm。

Bit2~ Bit7:keep back(Default is 0)。

3 、Bit0 : 0-Turn off fingerprint film recognition algorithm (default state), 1-Open the fingerprint film

recognition algorithm。

Bit1~ Bit7:keep back(Default is 0)。


Please select the above setting mode according to the software version number in the following table:
Table 5- 1 Table of software version and anti-false mode

The x The y Thez The n Set the


position position position position way
y <= 3 — — Do not set
z <= 2 — Do not set
z == 3 —
y == 4 3
z == 4
z >= 5 1
z <= 2 Do not set
x == 1
z == 3
y == 5 3
z == 4
z >= 5 1
n <= 2 3
z == 4
y == 6 n == 4 2
z >= 5 — 1

77 J-JY-指纹模组产品用户手册
指纹模组产品用户手册
The x The y Thez The n Set the
position position position position way
y == 7 z == 4 — Do not set
z <= 2 — Do not set
x == 2 —
z == 3 3
y <= 3 Do not set
z <= 2 Do not set
z == 3 3
y == 4
z == 4 2
z >= 5 1
z <= 2 — Do not set
x == 3
z == 3 —
y == 5 3
z == 4 —
z >= 5 — 1
z == 4 2
y == 6
z >= 5 1
y == 8 z == 4 2



78 J-JY-指纹模组产品用户手册

You might also like