Grow R304 Fingerprint User Manual

Grow R304 Fingerprint User Manual

GROW R304 Fingerprint Logo

R304 Fingerprint Module
User Manual

GROW R304 Fingerprint Cover

Hangzhou Grow Technology Co., Ltd
Feb 2019 Ver: 1.01

Preface & Declaration

Thank you for your selection of the R304 Fingerprint Identification Module (Module) of GROW.
The Manual is targeted for hardware & software developing engineers, covering hardware interface, system resource, instruction system, installment information, etc. To ensure the developing process goes smoothly, it is highly recommended the Manual is read through carefully.
We will try our best to assure you of the correctness of the Manual. However, should you find any problem or error with it, feel free to contact us or the sales representative of us. We would be very grateful.
Holding the principle of constantly improving and perfecting products, so both the module and contents of the Manual might be subject to changes. Sorry for the separate notice. You may visit our website or call us for the latest information.
The Manual contains proprietary information of GROW, which shall not be used by or disclosed to third parties without the permission of GROW, nor for any reproduction and alteration of information without any associated warranties, conditions, limitations, or notices.
No responsibility or liability is assumed by GROW for the application or use, nor for any infringements of patents or other intellectual property rights of third parties that may result from its use.
All products are sold subject to GROW’s terms and conditions of sale supplied at the time of order acknowledgment. Testing, tool, and other quality control techniques are used to the extent GROW considers necessary to support the warranty of relevant performance of its products to the specifications, except as expressly agreed to in writing by government requirements, testing of all parameters of each product is not necessarily performed.
www.hzgrow.com

Introduction

PowerDC 4.2V-6.0VInterfaceUART(TTL logical
level)/ USB 2.0
Working currentTypical: 50mAMatching Mode1:1 and 1:N
Baud rate(9600*N)bps,
N=1-12 (default N=6)
Character file size256 bytes
Image acquiring time<0.5sTemplate size512 bytes
Storage capacity1000Security level5 (1, 2, 3, 4,
5(highest))
FAR<0.0001%FREE<0.1%
Average searching time< Is (1:1000)Window dimension11 mm*1 5mm
Working environmentTemp: -20°C- +55°CStorage environmentTemp: -30°C- +80°C
RH: 10%-85%RH: <90%
Outline DimensionSplit typeSensor:33.4*20.4*3.79 mm
Sensing Array192*256 pixels

Operation Principle

Fingerprint processing includes two parts: fingerprint enrollment and fingerprint matching (the matching can be 1:1 or 1:N).
When enrolling, the user needs to enter the finger two times. The system will process the two-time finger images, generate a template of the finger based on processing results and store the template. When matching, the user enters the finger through the optical sensor, and the system will generate a template of the finger and compare it with templates of the finger library. For 1:1 matching, the system will compare the live finger with a specific template designated in the Module; for 1:N matching, or searching, the system will search the whole finger library for the matching finger. In both circumstances, the system will return the matching result, success or failure.

Main Parameters

Hardware Interface

Exterior Interface
GROW R304 Fingerprint Exterior Interface

2.0*22.2mm

Serial Communication

When the FP module communicates with the user device, the definition of J1 is as follows:

Pin Number

Name

Ty pe

Function Description

1

Vin

in

Power input

2

GND

Signal ground. Connected to power ground

3

TD

out

Data output. TTL logical level

4

RD

in

Data input. TTL logical level

Hardware connection

Via the serial interface, the Module may communicate with MCU of 3.3V or 5V power: TD (pin 3 of P1) connects with RDX (receiving pin of MCU), RD (pin 4 of P1) connects with TXD (transferring pin of MCU). Should the upper computer (PC) be in RS-232 mode, please add a level converting circuit, like MAX232, between the Module and PC.

USB Communication

Pin NumberNameTypeFunction Description
8VininPower input
7D-inUSB data input.
6D+outUSB data output.
5GNDSignal ground.

Serial communication protocol
The mode is semiduplex asynchronism serial communication. And the default baud rate is 57600bps. Users may set the baud rate in 9600~115200bps.
Transferring frame format is 10 bit: the low-level starting bit, 8-bit data with the LSB first, and an ending bit. There is no check bit.
GROW R304 Fingerprint Serial communication protocolReset time
At power-on, it takes about 200ms for initialization. During this period, the Module can’t accept commands for the upper computer.
Electrical parameter (All electrical level takes GND as reference)

Power supply

ItemParameterUnitNote
MinTypMax
Power Voltage (Vin)3.66.0VNormal working value.
Maximum Voltage (Vininax)-0.37.0VExceeding the Maximum rating
may cause permanent harm to the Module.
Operation Current (Ice)90100110mA
Peak Current (Speak)150mA

TD(output, TTL logic level)

ItemConditionParameterUnitNote
MinTypMax
VOLIoL=-4mA0.4VLogic 0
VEOHI0H— 4mA2.3.VLogic 1

RD input, TTL logic level)

ItemConditionParameterUnitNote
MinTypMax
VII.0.6VLogic 0
VIA2.VLogic 1
LEIVIC =5V1mA
VIA =3.3V30uA
Vi max—0.36.VMaximum input voltage

System Resources

To address the demands of different customers, the Module system provides abundant resources for the user’s use.
Notepad
512-byte memory is set aside in flash for the User’s notepad. The notepad is divided into 16 pages logically, 32 bytes per page. The host can access any page by instruction GR_WriteNotepad or GR_ReadNotepad. Note: when written, the whole page is taken as a whole and its former contents will be replaced.

Buffer
There are an image buffer and two 512-byte-character-file buffer within the RAM space of the module. Users can read & write any of the buffers by instructions. Note: Contents of the above buffers will be lost at power-off.

Image buffer
ImageBuffer serves for image storage and the image format is 208*288 pixels. When transferring through UART, to quicken speed, only the upper 4 bits of the pixel is transferred (that is 16 grey degrees). And two adjacent pixels of the same row will form a byte before transferring. When uploaded to PC, the 16-grey-degree image will be extended to 256-grey-degree format.
That’s 8-bit BMP format. When transferring through USB, the image is an 8-bit pixel, that’s 256 grey degrees.

Character file buffer
Character file buffer, CharBuffer1, CharBuffer2, can be used to store both character files and template files.

Fingerprint Library
The system sets aside a certain space within Flash for fingerprint template storage, that’s fingerprint library. Contents of the library remain at power off. The capacity of the library changes with the capacity of Flash, the system will recognize the latter automatically. Fingerprint template storage in Flash is in sequential order. Assume the fingerprint capacity N, then the serial number of template in the library is 0, 1, 2, 3 … N. User can only access the library by template number.

System Confiuration Parameter
To facilitate user’s development, the Module opens part system parameters for use. And the basic instructions are SetSysPara & ReadSysPara. Both instructions take Parameter Number as a parameter.
When an upper computer sends a command to modify the parameter, the Module first responds with original configurations, then performs the parameter modification and writes the configuration record into Flash. At the next startup, the system will run with the new configurations.

Baud rate control (Parameter Number: 4)
The Parameter controls the UART communication speed of the Modul. Its value is an integer N, N= [1, 12]. The corresponding baud rate is 9600*N bps.

Security Level (Parameter Number: 5)
The Parameter controls the matching threshold value of fingerprint searching and matching. The security level is divided into 5 grades, and the corresponding value is 1, 2, 3, 4, 5. At level 1, FAR is the highest and FRR is the lowest; however at level 5, FAR is the lowest and FRR is the highest.

Data package length (Parameter Number: 6)
The parameter decides the max length of the transferring data package when communicating with the upper computer. Its value is 0, 1, 2, 3, corresponding to 32 bytes, 64 bytes, 128 bytes, 256 bytes respectively.

System status register
The system status register indicates the current operation status of the Module. Its length is 1 word and can be read via instruction ReadSysPara. Definition of the register is as follows:

Bit Num15 43210
DescriptionReservedImgBufStatPWDPassBusy

Note:
Busy: 1 bit. 1: system is executing commands; 0: the system is free;
Pass: 1 bit. 1: find the matching finger; 0: wrong finger;
PWD: 1 bit. 1: Verified device’s handshaking password.
ImgBufStat: 1 bit. 1: image buffer contains the valid images.

Module password
At power-on reset, the system first checks whether the handshaking password has been modified. If not, the system deems the upper computer has no requirement of verifying passwords and will enter into normal operation mode. That’s, when the Module password remains the default, verifying process can be jumped. The password length is 4 bytes, and its default factory value is 0FFH, 0FFH, 0FFH, 0FFH. Should the password have been modified, refer to instruction SetPwd, then Module (or device) handshaking password must be verified before the system enters into normal operation mode. Or else, the system will refuse to execute and command.
The new modified password is stored in Flash and remains at power off.

Module address
Each module has an identifying address. When communicating with an upper computer, each instruction/data is transferred in data package form, which contains the address item. Module system only responds to data packages whose address item value is the same as its identifying address.
The address length is 4 bytes, and its default factory value is 0xFFFFFFFF. Users may modify the address via the instruction SetAdder. The new modified address remains at power off.

Random number generator
The module integrates hardware 32-bit random number generator (RNG) (without seed). Via instruction GetRandomCode, the system will generate a random number and upload it.

Communication Protocol

The protocol defines the data exchanging format when the R30X series communicates with the upper computer. The protocol and instruction set apples for both UART and USB communication modes. For PC, a USB interface is strongly recommended to improve the exchanging speed, especially in the fingerprint scanning device.

Data package format

When communicating, the transferring and receiving of command/data/result are all wrapped in data package format.

Data package format

Header

AdderPackage identifierPackage lengthPackage content
(instruction/data/Parameter)

Checksum

Definition of Data package

NameSymbolLengthDescription
I leaderStart2 bytesFixed value of OxEFO 1; High byte transferred first.
AdderADDER4 bytesThe default value is OxFFFFFFFF, which can be modified by command. High byte transferred first and at wrong adder value, the module will reject to transfer.
Package
identifier
P11)1 byte01 HCommand packet;
211Data packet; Data packet shall not appear alone in executing process, must follow command packet or acknowledge packet.
711Acknowledge packet;
811End of Data packet.
Package
length
LENGTH2 bytesRefers o the length of package content (command packets and data packets) plus the length of Checksum( 2 bytes). Unit is a byte. Max length is 256 bytes. And the high byte is transferred first.
Package
contents
DATAIt can be commands, data, command’s parameters, acknowledge result, etc. (fingerprint character value, template are all deemed as data);
ChecksumSUN2 bytesThe arithmetic sum of package identifier, package length, and all package contents. Overflowing bits are omitted. the high byte is transferred first.

Check and acknowledge of data package
Note: Commands shall only be sent from the upper computer to the Module, and the Module acknowledges the commands.
Upon receipt of commands, the Module will report the commands execution status and results to the upper computer through acknowledge packet. Acknowledge packet has parameters and may also have the following data packet. An upper computer can’t ascertain Module’s package receiving status or command execution results unless through acknowledging packet sent from Module. Acknowledge packet includes a 1-byte confirmation code and maybe also the returned parameter.
Confirmation code’s definition is :
00h: command execution complete;
01h: error when receiving data package;
02h: no finger on the sensor;
03h: fail to enroll the finger;
06h: fail to generate character file due to the over-disorderly fingerprint image;
07h: fail to generate character file due to blackness of character point or over-smallness of fingerprint image
08h: finger doesn’t match;
09h: fail to find the matching finger;
0Ah: fail to combine the character files;
0Bh: addressing PageID is beyond the finger library;
0Ch: error when reading template from library or the template is invalid;
0Dh: error when uploading template;
0Eh: Module can’t receive the following data packages.
0Fh: error when uploading image;
10h: fail to delete the template;
11h: fail to clear finger library;
13h: wrong password!
15h: fail to generate the image for the slackness of valid primary image;
18h: error when writing flash;
19h: No definition error;
1Ah: invalid register number;
1Bh: incorrect configuration of the register;
1Ch: wrong notepad page number;
1Dh: fail to operate the communication port; others: system reserved;

Module Instruction System

R30X series provide 23 instructions. Through a combination of different instructions, the application program may realize multi-finger authentication functions. All commands/data are transferred in package format. Refer to 5.1 for the detailed information on the package.

System-related instructions

Verify password VfyPwd
Description: Verify Module’s handshaking password. (Refer to 4.6 for details)
Input Parameter: PassWord (4 bytes)
Return Parameter: Confirmation code (1 byte)
Instruction code: 13H
Command (or instruction) package format:

2 bytes

4bytes1 byte2 bytes1 byte4 byte

2 bytes

HeaderModulePackageInstructionPassword

Checksum

 

xEF01XXXX07H07Hxx

Sum

Acknowledge package format:

2 bytes4bytes1 byte2 bytes1 byte2 bytes
HeaderModule addressPackage
identifier
Package
Length
Confirmation
code
Checksum
Oxfam 1XXXX07H03Hxxsum

Note: Confirmation code=00H: password setting complete;
Confirmation code=01H: error when receiving package;
Confirmation code = 13H: Wrong password;

Set password SetPwd

Description: Set Module’s handshaking password. (Refer to 4.6 for details)
Input Parameter: PassWord (4 bytes)
Return Parameter: Confirmation code (1 byte)
Instruction code: 12H
Command (or instruction) package format:

2 bytes

4bytes1 byte2 bytes1 byte4 byte2 bytes

Header

Module
address

Package identifier

Package
length

Instruction
code

Password

Checksum

0xEF01XXXX0111071112HPassWord

sum

Acknowledge package format:

2 bytes

4 byte2 bytes1 byte2 bytes

Header

Module address

Package length

Confirmation
code

Checksum
0\EF01XXXX03Hxx

Sum

Note: Confirmation code=00H: password setting complete;
Confirmation code=01H: error when receiving package;

Set Module address SetAdder

Description: Set Module address. (Refer to 4.7 for address information)
Input Parameter: None;
Return Parameter: Confirmation code (1 byte)
Instruction code: 15H
Command (or instruction) package format:

2 bytes

4bytesbyte2 bytes1 byte1byte1byte2 bytes
HeaderModule

address

Package

identifier

Package

length

Instruction

code

Parameter

number

Contents

Checksum

0xEF01XXXX01H05H0eH4/5/6xx

sum

Acknowledge package format:

2 bytes4bytes1 byte2 bytes1 byte2 bytes
HeaderModule addressPackage identifierPackage lengthConfirmation codeChecksum
0xEF01XXXX07H03HxxSum

Note: Confirmation code=00H: address setting complete;
Confirmation code=01H: error when receiving package;

Set module system’s basic parameter SetSysPara
Description: Operation parameter settings. (Refer to 4.4 for more information)
Input Parameter: Parameter number;
Return Parameter: Confirmation code (1 byte)
Instruction code: 0eH
Command (or instruction) package format:

2 bytes4bytes1 byte2 bytes1 byte1byte1byte2 bytes
HeaderModule
address
Package identifierPackage
length
Instruction
code
Parameter
number
ContentsChecksum
OxEF01XXXX01H05HOeH4/5/6VCsum

Acknowledge package format:

2 bytes4bytes1 byte2 bytes1 byte2 bytes
HeaderModule addressPackage identifierPackage lengthConfirmation codeChecksum
Oxfam IXXXX07H03HxxHSum

Note: Confirmation code=00H: parameter setting complete;
Confirmation code=01H: error when receiving the package;
Confirmation code=1aH: wrong register number;

Port Control Control
Description:
For UART protocol, it controls the “on/off” of the USB port;
For USB protocol, it controls the “on/off” of the UART port;
Input Parameter: control code
Control code ”0” means turns off the port;
Control code ”1” means turns on the port;
Return Parameter: confirmation code;
Instruction code: 17H
Command (or instruction) package format:

2 bytes4bytes1 byte2 bytes1 byte1byte2 bytes
HeaderChip addressPackage identifierPackage lengthInstruction codeControl codeChecksum
0xEF01XXXX01H04H17H0/1sum

Acknowledge package format:

2 bytes4bytes1 byte2 bytes1 byte2 bytes
HeaderChip addressPackage identifierPackage lengthConfirmation codeChecksum
0xEF01XXXX07H03HxxHSum

Note: Confirmation code=00H: Port operation complete;
Confirmation code=01H: error when receiving package;
Confirmation code=1dH: fail to operate the communication port;

Read system Parameter ReadSysPara
Description: Read Module’s status register and system basic configuration parameters;(Refer to 4.4 for system configuration parameter and 4.5 for system status register.
Input Parameter: none
Return Parameter:Confirmation code (1 byte) + basic parameter(16bytes)
Instruction code: 0fH
Command (or instruction) package format:

2 bytes4bytes1 byte2 bytes1 byte2 bytes
HeaderModule
address
Package
identifier
Package lengthInstruction
code
Checksum
OxEF01XXXX01H03HOffsum

Acknowledge package format:

2 bytes4bytes1 byte2 bytes1 byte16 bytes2 bytes
HeaderModule
address
Package
identifier
Package
length
Confirmation
code
Basic parameter
list
Checksum
OxEF01XXXX07H3+16xxSee the following tablesum

Note: Confirmation code=00H: read complete;
Confirmation code=01H: error when receiving the package;

NameDescriptionOffset (word)Size (word)
Status registerContents of system status register0I
System identifier codeFixed value: 0x000911
Finger library sizeFinger library size21
Security levelSecurity level (I, 2, 3, 4, 5)3I
Device address32-bit device address42
Data packet sizeSize code (0, I, 2, 3)61
Baud settingsN (baud = 960rN bps)71

Read valid template number  TempleteNum

Description: read the current valid template number of the Module Input Parameter: none
Return Parameter: Confirmation code (I byte), template number
Instruction code: Ida
Command (or instruction) package format:

2 bytes4bytesI byte2 bytes1 byte2 bytes
HeaderModule addressPackage
identifier
Package
length
Instruction
code
Checksum
Oxfam IXXXX01H0003HIda0021H

Acknowledge package format:

2 bytes4bytes1 byte2 bytes1 byte2 bytes2 bytes
HeaderModulePackagePackageConfirmationTemplateChecksum

 

addressidentifierlengthcodenumb
0xEF01XXXX07H5xxNsum

Fingerprint-processing instructions

To collect finger image GenImg

Description: detecting the finger and store the detected finger image in ImageBuffer while returning the successful confirmation code; If there is no finger, returned confirmation code would be “can’t detect finger”.
Input Parameter: none
Return Parameter: Confirmation code (1 byte)
Instruction code: 01H
Command (or instruction) package format:

2 bytes4bytes1 byte2 bytes1 byte
HeaderModule addressPackage identifierPackage lengthInstruction code
OxEF01XXXXO1H03HO1H

Acknowledge package format:

02 bytes4bytes1 byte2 bytes1 byte2 bytes
HeaderModule addressPackage identifierPackage lengthconfirmation codeChecksum
0xEF01XXXX07H03HxxSum

Note: Confirmation code=00H: finger collection successs;
Confirmation code=01H: error when receiving package;
Confirmation code=02H: can’t detect finger;
Confirmation code=03H: fail to collect finger;

Upload image UpImage

Description: to upload the image in Img_Buffer to the upper computer. Refer to 1.1.1 for more about image buffer.
Input Parameter: none
Return Parameter: Confirmation code (1 byte)
Instruction code: 0aH
Command (or instruction) package format:

02 bytes4bytes1 byte2 bytes1 byte2 bytes
HeaderModule addressPackage identifierPackage lengthConfirmation codeChecksum
0xEF01XXXX01H03H0aH000eH

Acknowledge package format:

02 bytes4bytes1 byte2 bytes1 byte2 bytes
HeaderModule addressPackage identifierPackage lengthConfirmation codeChecksum
0xEF01XXXX07H03HX Xsum

Note 1: Confirmation code=00H: ready to transfer the following data packet;
Confirmation code=01H: error when receiving the package;
Confirmation code=0fH: fail to transfer the following data packet;
2: Module shall transfer the following data packet after responding to the upper
computer.

Download the image DownImage
Description: to download an image from the upper computer to Img_Buffer. Refer to 1.1.1 for more about
the image buffer.
Input Parameter: none
Return Parameter: Confirmation code (1 byte)
Instruction code: 0bH
Command (or instruction) package format:

02 bytes4bytes1 byte2 bytes1 byte2 bytes
HeaderModule addressPackage identifierPackage lengthConfirmation codeChecksum
0xEF01XXXX01H03H0bH000fH

Acknowledge package format:

02 bytes4bytes1 byte2 bytes1 byte2 bytes
HeaderModule addressPackage identifierPackage lengthConfirmation codeChecksum
0xEF01XXXX07H03HxxHsum

Note 1:Confirmation code=00H: ready to transfer the following data packet;
Confirmation code=01H: error when receiving the package;
Confirmation code=0eH: fail to transfer the following data packet;
2:Module shall transfer the following data packet after responding to the upper computer.
Data package length must be 64, 128, or 256。

To generate character file from image Img2Tz

Description: to generate a character file from the original finger image in ImageBuffer and store the file in CharBuffer1 or CharBuffer2.
Input Parameter: BufferID (character file buffer number)
Return Parameter: Confirmation code (1 byte)
Instruction code: 02H
Command (or instruction) package format:

2 bytes4bytes1 byte2 bytes1 byte1 byte2 bytes
HeaderModule addressPackage identifierPackage lengthConfirmation codeBuffer numberChecksum
OxEF01XXXX01H04H02HBufferIDsum

Note: BufferID of CharBuffer1 and CharBuffer2 is 1h and 2h respectively. Other values
(except 1h, 2h) would be processed as CharBuffer2.
Acknowledge package format:

02 bytes4bytes1 byte2 bytes1 byte2 bytes
HeaderModule addressPackage identifierPackage lengthConfirmation codeChecksum
0xEF01XXXX07H03HxxHsum

Note: Confirmation code=00H: generate character file complete;
Confrmation code=01H: error when receiving package;
Confirmation code=06H: fail to generate file due to the over-disorderly fingerprint image;
Confirmation code=07H: fail to generate character file due to lackness of character point or over-smallness of fingerprint image’
Confirmation code=15H: fail to generate the image for the lackness of valid primary image;

To generate template RegModel

Description: To combine information of character files from CharBuffer1 and CharBuffer2 and generate a template that is stored back in both CharBuffer1 and CharBuffer2.
Input Parameter: none
Return Parameter: Confirmation code (1 byte)
Instruction code: 05H
Command (or instruction) package format:

02 bytes4bytes1 byte2 bytes1 byte2 bytes
HeaderModule addressPackage identifierPackage lengthConfirmation codeChecksum
0xEF01XXXX01H03H05H09H

Acknowledge package format:

02 bytes4bytes1 byte2 bytes1 byte2 bytes
HeaderModule addressPackage identifierPackage lengthConfirmation codeChecksum
0xEF01XXXX07H03HxxHsum

Note: Confirmation code=00H: operation success;
Confirmation code=01H: error when receiving the package;
Confirmation code=0aH: fail to combine the character files. That’s, the character files don’t belong to one finger.

To upload character or template UpChar
Description: to upload the character file or template of CharBuffer1/CharBuffer2 to the upper computer;
Input Parameter: BufferID (Buffer number)
Return Parameter: Confirmation code (1 byte)
Instruction code: 08H
Command (or instruction) package format:

2 bytes4bytes1 byte2 bytes1 byte2 bytes2 bytes
HeaderModulePackagePackageInstructionBufferChecksum
addressidentifierlengthcodenumber
0xEF01XXXX01H04HxxBufferIDsum

Note: BufferID of CharBuffer1 and CharBuffer2 is 1h and 2h respectively. Other values (except 1h, 2h) would be processed as CharBuffer2.
Acknowledge package format:

02 bytes4bytes1 byte2 bytes1 byte2 bytes
HeaderModule addressPackage identifierPackage lengthConfirmation codeChecksum
0xEF01XXXX07H03Hxxsum

Note 1: Confirmation code=00H: ready to transfer the following data packet;
Confirmation code=01H: error when receiving the package;
Confirmation code=0dH: error when uploading template;
2: Module shall transfer following data packet after responding to the upper computer.;
3: The instruction doesn’t affect buffer contents.

To download character file or template DownChar
Description: to download character file or template from upper computer to the specified buffer of Module;
Input Parameter: BufferID (buffer number)
Return Parameter: Confirmation code (1 byte)
Instruction code: 09H
Command (or instruction) package format:

2 bytes4bytes1 byte2 bytes1 byte1 byte2 bytes
HeaderModule addressPackage identifierPackage lengthConfirmation codeBuffer numberChecksum
OxEF01XXXX01H04H09HBufferIDsum

Note: BufferID of CharBuffer1 and CharBuffer2 is 1h and 2h respectively. Other values (except 1h, 2h) would be processed as CharBuffer2.
Acknowledge package format:

02 bytes4bytes1 byte2 bytes1 byte2 bytes
HeaderModule addressPackage identifierPackage lengthConfirmation codeChecksum
0xEF01XXXX07H03HxxHsum

Note 1: Confirmation code=00H: ready to transfer the following data packet;
Confirmation code=01H: error when receiving the package;
Confirmation code=0eH: fail to receive the following data packages.
2: Module shall transfer the following data packet after responding to the upper computer.

To store template Store

Description: to store the template of specified buffer (Buffer1/Buffer2) at the designated location of Flash library.
Input Parameter: BufferID(buffer number), PageID(Flash location of the template, two bytes with high byte front and low byte behind)
Return Parameter: Confirmation code (1 byte)
Instruction code: 06H
Command (or instruction) package format:

02 bytes4bytes1 byte2 bytes1 byte1 byte2 bytes2 bytes
HeaderModule addressPackage identifierPackage lengthInstruction codeBuffer numberLocation NumberChecksum
0xEF01Xxxx01H06H06HBuffer IDPage IDsum

Note: BufferID of CharBuffer1 and CharBuffer2 are 1h and 2h respectively. Other values (except 1h, 2h) would be processed as CharBuffer2.

Acknowledge package format:

02 bytes4bytes1 byte2 bytes1 byte2 bytes
HeaderModule addressPackage identifierPackage lengthConfirmation codeChecksum
0xEF01XXXX07H03Hxxsum

Note: Confirmation code=00H: storage success;
Confirmation code=01H: error when receiving package;
Confirmation code=0bH: addressing PageID is beyond the finger library;
Confirmation code=18H: error when writing Flash.

To read the template from Flash library LoadChar

Description: to load template at the specified location (PageID) of Flash library to template buffer
CharBuffer1/CharBuffer2
Input Parameter: BufferID(buffer number), PageID (Flash location of the template, two bytes with
high byte front and low byte behind)。
Return Parameter: Confirmation code (1 byte)
Instruction code: 07H
Command (or instruction) package format:

02 bytes4bytes1 byte2 bytes1 byte1 byte2 bytes2 bytes
HeaderModule addressPackage identifierPackage lengthInstruction codeBuffer numberLocation NumberChecksum
0xEF01Xxxx01H06H07HBuffer IDPage IDsum

Note: BufferID of CharBuffer1 and CharBuffer2 is 1h and 2h respectively. Other values (except 1h, 2h) would be processed as CharBuffer2.

Acknowledge package format:

02 bytes4bytes1 byte2 bytes1 byte2 bytes
HeaderModule addressPackage identifierPackage lengthConfirmation codeChecksum
0xEF01XXXX07H03HxxHsum

Note: Confirmation code=00H: load success;
Confirmation code=01H: error when receiving the package;
Confirmation code=0cH: error when reading template from library or the readout template is invalid;
Confirmation code=0BH: addressing PageID is beyond the finger library;

To delete template DeletChar

Description: to delete a segment (N) of templates of Flash library started from the specified location (or PageID);
Input Parameter: PageID (template number in Flash), N (number of templates to be deleted)
Return Parameter: Confirmation code (1 byte)
Instruction code: 0cH
Command (or instruction) package format:

02 bytes4bytes1 byte2 bytes1 byte1 byte2 bytes2 bytes
HeaderModule addressPackage identifierPackage lengthInstruction codeBuffer numberLocation NumberChecksum
0xEF01XXXX01H07H0cHPage IDNsum

Acknowledge package format:

02 bytes4bytes1 byte2 bytes1 byte2 bytes
HeaderModule addressPackage identifierPackage lengthConfirmation codeChecksum
0xEF01XXXX07H03HxxHsum

Note: Confirmation code=00H: delete success;
Confirmation code=01H: error when receiving the package;
Confirmation code=10H: failed to delete templates;

To empty finger library Empty

Description: to delete all the templates in the Flash librarInput Parameter: none
Return Parameter: Confirmation code (1 byte)
Instuction code: 0dH
Command (or instruction) package format:

02 bytes4bytes1 byte2 bytes1 byte2 bytes
HeaderModule addressPackage identifierPackage lengthConfirmation codeChecksum
0xEF01XXXX01H03H00dH0011H

Acknowledge package format:

02 bytes4bytes1 byte2 bytes1 byte2 bytes
HeaderModule addressPackage identifierPackage lengthConfirmation codeChecksum
0xEF01XXXX07H03HxxHsum

Note: Confirmation code=00H: empty success;
Confirmation code=01H: error when receiving the package;
Confirmation code=11H: fail to clear finger library;

To carry out precise matching of two-finger templates Match

Description: to carry out precise matching of templates from CharBuffer1 and CharBuffer2, providing matching results.

Input Parameter: none
Return Parameter: Confirmation code (1 byte),matching score.
Instruction code: 03H
Command (or instruction) package format:

02 bytes4bytes1 byte2 bytes1 byte2 bytes
HeaderModule addressPackage identifierPackage lengthConfirmation codeChecksum
0xEF01XXXX01H03H03H07H

Acknowledge package format:

02 bytes4bytes1 byte2 bytes1 byte2 bytes2 bytes
HeaderModule addressPackage identifierPackage lengthConfirmation codeMatching scoreChecksum
0xFF01Xxxx07H05HXxHXxHsum

Note 1: Confirmation code=00H: templates of the two buffers are matching!
Confirmation code=01H: error when receiving package;
Confirmation code=08H: templates of the two buffers aren’t matching;
2: The instruction doesn’t affect the contents of the buffers.

To search finger library Search

Description: to search the whole finger library for the template that matches the one in CharBuffer1 or CharBuffer2. When found, PageID will be returned.
Input Parameter: BufferID, StartPage (searching start address), PageNum(searching numbers)
Return Parameter: Confirmation code (1 byte), PageID (matching templates location)
Instruction code: 04H
Command (or instruction) package format:

2 bytes4bytesI byte2 bytesI byteI byte2 bytes2 bytes2 bytes
HeaderModule addressPackage
identified r
Package
length
Instructions
n code
buffer numberParameterParameterChecks

11111

OxE1:01xxxx01H08H04HBuffalo)StartpagePageNumsum

Note: BufferID of CharBuffer1 and CharBuffer2 are 1h and 2h respectively. Other values (except 1h, 2h) would be processed as CharBuffer2.

Acknowledge package format:

02 bytes4bytes1 byte2 bytes1 byte1 byte2 bytes2 bytes
HeaderModule addressPackage identifierPackage lengthConfirmation
code
Checksum
0xEF01Xxxx07H7xxH Page IDMatchScoresum

Note 1: Confirmation code=00H: found the matching finer;
Confirmation code=01H: error when receiving the package;
Confirmation code=09H: No matching in the library (both the PageID and matching score are 0);
2: The instruction doesn’t affect the contents of the buffers.

Other instructions

To generate a random code GetRandomCode

Description: to command the Module to generate a random number and return it to upper computer; Refer to 4.8 for more about Random Number Generator;
Input Parameter: none
Return Parameter: Confirmation code (1 byte)
Instruction code: 14H
Command (or instruction) package format:

2 bytes4bytes1 byte2 bytes1 byte2 bytes
HeaderModule addressPackage identifierPackage lengthInstruction codeChecksum
OxEF01XXXX01H03H14H0018H

Acknowledge package format:

02 bytes4bytes1 byte2 bytes1 byte2 bytes2 bytes
HeaderModule addressPackage identifierPackage lengthConfirmation codeRandom
number
Checksum
0xFF01Xxxx07H07HXxHXxxsum

Note: Confirmation code=00H: generation success;
Confirmation code=01H: error when receiving the package;

To write note pad WriteNotepad

Description: for the upper computer to write data to the specified Flash page (refer to 4.1 for more about Note pad). Also, see ReadNotepad;
Input Parameter: NotePageNum, user content (or data content)
Return Parameter: Confirmation code (1 byte)
Instuction code: 18H
Command (or instruction) package format:

02 bytes4bytes1 byte2 bytes1 byte1 byte32 bytes2 bytes
HeaderModule addressPackage identifierPackage lengthInstruction codePage
number
Data
content
Checksum
0xEF01Xxxx01H36H18H0~15contentsum

Acknowledge package format:

02 bytes4bytes1 byte2 bytes1 byte2 bytes
HeaderModule addressPackage identifierPackage lengthConfirmation codeChecksum
0xEF01XXXX07H03HxxHsum

Note Confirmation code=00H: write success;
Confirmation code=01H: error when receiving the package;

To read note pad ReadNotepad

Description: To read the specified page’s data content; Refer to 4.1 for more about the user note pad.
Also, see WriteNotepad.
Input Parameter: none
Return Parameter: Confirmation code (1 byte) + data content
Instruction code: 19H
Command (or instruction) package format:

02 bytes4bytes1 byte2 bytes1 byte1 byte2 bytes
HeaderModule addressPackage identifierPackage lengthInstruction codePage numberChecksum
0xEF01XXXX01H04H19H0~15xxH

Acknowledge package format:

02 bytes4bytes1 byte2 bytes1 byte32 bytes2 bytes
HeaderModule addressPackage identifierPackage lengthInstruction codeUser contentChecksum
0xEF01XXXX07H3+32xxUser contentsum

Note Confirmation code=00H: read success;
Confirmation code=01H: error when receiving the package;

Instruction Table

Classified by functions

typenumcodedescriptionTypenumCodedescription
System-related113HTo verify passwordFingerprint processing1308Hto upload template
212HTo set password1409HTo download template
315HTo set device address1506HTo store template;
4OEHTo set system Parameter1607Hto read/load template
517HPort control17OCHto delete tempates
6OFHTo read system Parameter18ODHto empty the library
71 DHTo read finger template numbers1903HCarry out precise
matching of two
templates;
Finerprint processing801HCollect finger image2004HSearch the finger library
9OAHTo upload image
10OBHTo download imageothers2114Hto get random code
1102HTo generate character file from image221 8Hto write note pad
1205HTo combine character files and generate template23I 911To read note pad

Classified by instruction code

codeidentifierDescriptionCodeIdentifierDescription
01HGenlmgCollect finger imageODIIEmptyto empty the library
02HImg2TzTo generate character file from imageOEHSetSysParaTo set system Parameter
03HMatchCarry out precise matching of twotemplates;0FHReadSysParaTo read system
Parameter
04HSearchSearch the finger library12HSetPwdTo set password
05HRegModelTo combine character files and generate a template13HVfyPwdTo verify password
06HStoreTo store template;14HGetRandomCodeto get random code
07HLoadCharto read/load template15HSetAdderTo set device address
08HUpCharto upload template17HControlPort control
09HDownChrto download template18HWriteNotepadto write a note pad
0AHUpImageTo upload image19HReadNotepadTo read note pad
0BHDownlmageTo download image1BHHiSpeedSearchSearch the library fastly
0CHDeletCharto delete templates1DHTempleteNumTo read finger template numbers

References

Documents / Resouces

Download manual
Here you can download full pdf version of manual, it may contain additional safety instructions, warranty information, FCC rules, etc.


Related Manuals