Professional Documents
Culture Documents
NG OP-67 Fingerprint Module User Manual V1.1 Low Power Consumption Sleep/awake control interface makes NG OP-67 suitable for occasions that require low power consumption. Different Security Levels User can set different security level according to different application environment.
Default baud rate 9600bps, could change to other standard baud rate, refer to the parameter in this document Outer Interface Standard
UART Interface
Outer interface 6 chip FPC (Under wire), pins details as below:
NG OP-67 Fingerprint Module User Manual V1.1 Pins 1 2 3 4 5 6 Name VIN VIN TD RD GND GND Define Power Power Data transfer Data receive GND GND Type P P O I P P Function DC:3.6V-7V DC:3.6V-7V Open-drain output TTL3.3V or 5V GND GND
6--------1
USBInterface
Communicate with PC by USB. Capturing images, input template, searching, and interface defines as below:
GND
USB_DP
USB_DN
Power
Data packs can not ingress into executive flow alone, it has to follow behind the command pack or respond pack. Upload or upload data pack are the same format. Pack length = the total bytes of pack length to check sum (command, parameter or data) including check sum, but excludes the bytes of pack length itself. Check sum includes all the bytes of the pack mark to check sum, in excess of 2-byte binary are ignored. Chip address are default as 0xFFFFFFFF before created, once the host computer through the command to generate the chip address, all packets must be generated in accordance with the address to send and receive. Chip will refuse to address the wrong packet.
Command response
Response is to report for the implementation of the orders and results execution. Response includes all the parameter and the follow-up data packets, PC only confirm by receiving the SOC response and order execution.
Response packet format: 2bytes 0xEF01 4bytes Chip add. 1 byte Pack mark 07 2 bytes Pack length 1 byte Confirm code N bytes Return parameter 2 bytes Check sum
Confirm code define: 1. 00hCommand execution over or OK; 2. 01hError in receiving data pack; 3. 02hNo fingerprint on sensor; 4. 03hFail in capturing fingerprint image; 5. 04hFingerprint images are too dry or too weak to generate the features; 6. 05hFingerprint images are too wet or unclear to generate the features; 7. 06hFingerprint images are too mess to generate the features; 8. 07hFingerprint images are normal but with few size to generate the features; 9. 08hFingerprint not match; 10. 09hNo fingerprints were found; 11. 0ahFail in matching fingerprint features; 12. 0bhThe address serial number on visiting the fingerprint database out of the range; 13. 0chReading template from fingerprint database fail or invalid; 14. 0dhUpload features failed; 15. 0ehModule can not accept follow-up data pack; 16. 0fhUpload image failed; 17. 10hDelete template failed; 18. 11hEmpty fingerprint data failed; 19. 12hCan no enter low consumption state; 20. 13hCommand incorrect; 21. 14hSystem reposition failed; 22. 15HCan not generate image due to invalid original image in buffer; 23. 16HOn line upgrade failed; 24. 17HRemnant fingerprint or No movement on second scan; 25. 18HReading FLASH error; 26. 0xf0Having follow-up data pack command, respond with 0xf0 after receiving; 27. 0xf1Having follow-up data pack command, respond with 0xf1; 28. 0xf2Check sum error on writing inner FLASH; 29. 0xf3Pack mark error on writing inner FLASH; 30. 0xf4Pack length error on writing inner FLASH; 31. 0xf5Code length too long on writing inner FLASH;
NG OP-67 Fingerprint Module User Manual V1.1 32. 0xf6Failed on writing inner FLASH; 33. 0x19Not define error; 34. 0x1aInvalid register number; 35. 0x1bRegister enactment error number; 36. 0x1cWordPad page define error; 37. 0x1dTerminal operation failed; 38. 0x1eEnroll failed; 39. 0x1fFingerprint data full; 40. 0x200xefhReserved Command could only download from PC to module, module responds to PC. When system electrify reposition, first to check if the default equipment handshake command has been modified, if not, system thinks the PC doesnt have demand to verify the command, SOC begins to work. If it has been modified, first have to verify equipment handshake command, when the command passed, SOC begins to work.
Commands
1. PS_GetImage Command code01H FunctionCapture fingerprint image from sensor and save on image buffer. 2. PS_GenChar Command code02H FunctionGenerate fingerprint features according to original image and save on CharBuffer1 or
NG OP-67 Fingerprint Module User Manual V1.1 CharBuffer2 3. PS_Match Command code03H FunctionAccurately matching features in CharBuffer1 and CharBuffer2 4. PS_Search Command code04H FunctionSearching features in CharBuffer1 or CharBuffer2 in fingerprint data 5. PS_RegModel Command code05H FunctionCombine features in CharBuffer1 and CharBuffer2, generate template and save in CharBuffer2 6. PS_StoreChar Command code06H FunctionSave documents to flash 7. PS_LoadChar Command code07H FunctionReading template to feature buffer from 8. PS_UpChar Command code08H FunctionUpload document to PC from feature buffer 9. PS_DownChar Command code09H FunctionDownload feature document from PC to feature buffer 10. PS_UpImage Command code0AH FunctionUpload origin image 11. PS_DownImage Command code0BH FunctionDownload origin image 12. PS_DeletChar Command code0CH FunctionDelete feature document from flash 13. PS_Empty Command code0DH FunctionEmpty flash 14. PS_WriteReg Command code0EH Function Writing SOC 15. PS_ReadSysPara Command code0FH FunctionReading system parameter 16. PS_Enroll Command code10H FunctionEnrolling template
NG OP-67 Fingerprint Module User Manual V1.1 17. PS_ Identify Command code11H FunctionIdentifying fingerprint 18. PS_SetPwd Command code12H FunctionSet up password 19. PS_VfyPwd Command code13H FunctionValidate equipment hand-shake command 20. PS_GetRandomCode Command code14H FunctionSampling Random Number 21. PS_SetChipAddr Command code15H FunctionSet up chip address 22. PS_ReadINFpage Command code16H FunctionReading FLASH Information Page 23. PS_Port_Control Command code17H FunctionCommunication portUART/USBon / off control 24. PS_WriteNotepad Command code18H Function Writing notepad 25. PS_ReadNotepad Command code19H FunctionReading notepad 26. PS_BurnCodePS1802 SOC burning FLASH code Command code1AH FunctionProgramming FLASH 27. PS_HighSpeedSearch Command code1BH FunctionHigh speed search FLASH 28. PS_GenBinImage Command code1CH FunctionGenerate Binarization fingerprint image 29. PS_ValidTempleteNum Command code1dH FunctionReading Valid template numbers
User Notepad
Theres a 512 byte memory as user notepad in FLASH, total 16 pages and 32 byte on every page, PC could visit any page with PS_WriteNotepad and PS_ReadNotepad command.
NG OP-67 Fingerprint Module User Manual V1.1 Note: when writing one of the pages, the 32 byte concept would be fully writing in to cover the original concept.
Respond format 2 bytes 4bytes Pack head 0xEF01 Chip address xxxx
Remark confirm code=00H means input success Confirm code=01H means receive error Confirm code=02H means no finger on sensor Confirm code=03H means input not success sum check sum
NG OP-67 Fingerprint Module User Manual V1.1 Command pack format 2 bytes 4bytes Pack head 0xEF01 Chip address xxxx
Note: CharBuffer1, CharBuffer2s BufferID are 1h and 2h, if appointing to other value, dealing following CharBuffer2. Respond format 2 bytes 4bytes 1 byte 2 bytes 1 byte 2 bytes Pack head 0xEF01 Chip address xxxx Pack mark 07H Pack length 03H Confirm code xxH Check sum sum
NoteConfirm code=00H means generate feature success; Confirm code=01H means receiving error: Confirm code=06H means fingerprint image are too mess to generate feature; Confirm code=07H means fingerprint image normal but having very little characteristics to generate feature Confirm code=15H means no valid original image in buffer to generate image; sum means check sum
Responding format 2 bytes 4bytes Pack head 0xEF01 Chip address xxxx
NoteConfirm code=00H means fingerprint match Confirm code=01H means receiving error Confirm code=08H means fingerprint not match sum means check sum
Note CharBuffer1CharBuffer2 and BufferID are 1h and 2h Respond format 2 bytes Pack head 0xEF01 4bytes Chip address xxxx 1 byte Pack mark 07H 2 bytes Pack length 07H 1 byte Confirm code xxH 2 byte Page PageID 2 byte score MatchScore 2 bytes Check sum sum
NoteConfirm code=00H mean searching out Confirm code=01H means receiving error Confirm code=09H means no searching outpage score 0 sum means check sum
Respond format 2 bytes 4bytes Pack head 0xEF01 Chip address xxxx
NG OP-67 Fingerprint Module User Manual V1.1 NoteConfirm code=00H means combine success Confirm code=01H means receiving error Confirm code=0aH means combine failed ( the 2 fingerprint are not for the same finger) sum means check sum
Note CharBuffer1, CharBuffer2 and BufferID are 1h and 2h Respond format 2 bytes 4bytes Pack head 0xEF01 Chip address xxxx
NoteConfirm code=00H means store success Confirm code=01H means receiving error Confirm code=0bH means PageID not in database Confirm code=18H means FLASH error sum means check sum
NG OP-67 Fingerprint Module User Manual V1.1 2 bytes Pack head 0xEF01 4bytes Chip address xxxx 1 byte Pack mark 07H 2 bytes Pack length 03H 1 byte Confirm code xxH 2 bytes Check sum sum
NoteConfirm code=00H means reading success Confirm code=01H means receiving error Confirm code=0cH means reading error or invalid template Confirm code=0BH means PageID not in data sum means check sum
NoteCharBuffer1CharBuffer2 s BufferID are 1h and 2h Respond format 2 bytes 4bytes 1 byte 2 bytes 1 byte Pack head 0xEF01 Chip address xxxx Pack mark 07H Pack length 03H Confirm code xxH
NoteConfirm code=00H means following pack Confirm code=01H receiving error Confirm code=0dH executive command failed sum means check sum sending following data pack after respond
NG OP-67 Fingerprint Module User Manual V1.1 2 bytes Pack head 0xEF01 4bytes Chip address xxxx 1 byte Pack mark 01H 2 bytes Pack length 04H 1 byte Command code 09H 1 byte buffer BufferID 2 bytes Check sum sum
Note CharBuffer1CharBuffer2s BufferID are 1h and 2h Respond pack format 2 bytes 4bytes 1 byte 2 bytes 1 byte Pack head 0xEF01 Chip address xxxx Pack mark 07H Pack length 03H Confirm code xxH
NoteConfirm code=00H means could accept following data pack Confirm code=01H receiving error Confirm code=0eH means can not accept following data pack Sum means check sum Receiving following data pack after respond
Image PS_UpImage
FunctionUpload buffer image to PC Input parameterNone
Return parameterConfirm Command code0aH command pack format 2 bytes 4bytes Chip address xxxx 4bytes Chip address xxxx
NoteConfirm code=00H means following data pack Confirm code=01H means receiving error. Confirm code=0fH means can not send following data pack sum means check sum Sending following data pack after respond 1 byte with 2 Pixels, every Pixel with 4bits
NoteConfirm code=00H means could receive following data pack Confirm code=01H means receiving error Confirm code=0eH means can not receive following data pack sum means check sum receiving following data pack after respond, data pack length 64128 or 256
Respond pack format 2 bytes Pack head 0xEF01 4bytes Chip address xxxx 1 byte Pack mark 07H 2 bytes Pack length 03H 1 byte Confirm code xxH 2 bytes Check sum sum
NG OP-67 Fingerprint Module User Manual V1.1 Confirm code=01H means receiving error; Confirm code=10H means delete template fail; sum means check sum
Respond pack format 2 bytes 4bytes Pack head 0xEF01 Chip address xxxx
NoteConfirm code=00H means empty success; Confirm code =01H means receive error; Confirm code=11H means empty fail; sum means check sum
Respond pack format 2 bytes 4bytes Pack head 0xEF01 Chip address xxxx
NG OP-67 Fingerprint Module User Manual V1.1 Register number 4 5 Register name Baud rate controls register Matching threshold register details 9600 s multiple N 1level1 2level2 3level3 4level4 5level5 032bytes 164bytes 2128bytes 3256bytes
Note 1 : Confirm code=00H means OK Confirm code=01H means receiving pack error Confirm code=1aH means register series number error sum means check sum Note 2Writing system registerPS_WriteReg executing command, respond with original configure, modify system setup after respond and configure record in FLASH, when system being restarted, it will work with new configure.
Input parameterNone Return parameterconfirm code + basic parameter16bytes Command code0fH Command pack format
2 bytes Pack head 0xEF01 4bytes Chip address xxxx 1 byte Pack mark 07H 1 byte Pack mark 01H 2 bytes Pack length 3+16 2 bytes Pack length 03H 1 byte Confirm code xxH 1 byte Command code 0fH 16 bytes Basic parameter list Configure as below 2 bytes Check sum 0013H 2 bytes Check sum sum
Respond pack format 2 bytes 4bytes Pack head 0xEF01 Chip address xxxx
NoteConfirm code=00H means OK Confirm code=01H means receiving pack error sum means check sum Name Description Offset (Byte) Size Byte
NG OP-67 Fingerprint Module User Manual V1.1 Status Register Sensor type System Concepts of the Status Register Sensor type code 0fpc1011c 2c500 3s500 strip 7strip 9User-defined sensor Othersreserved Fingerprint data capacity Security level code (1/2/3/4/5) 32 byte equipment address Data pack size code 032bytes 162bytes 2128bytes 3256bytes N (baud rate 9600*N bps) 0 1 1 1
Fingerprint data size Security level Equipment address Data pack size
2 3 4 6
1 1 2 1
Respond pack format 2 bytes 4bytes Pack head 0xEF01 Chip address xxxx
NoteConfirm code=00H means register success Confirm code=01H means receiving error Confirm code=1eH means register fail. sum means check sum
NoteConfirm code=00H means searching out Confirm code=01H means receiving pack error Confirm code=09H means no searching result, page and score 0 sum means check sum
Respond pack format 2 bytes Pack head 4 byte Chip address 2 bytes Pack length 1 byte Confirm code 2 bytes Check sum
NG OP-67 Fingerprint Module User Manual V1.1 0xEF01 xxxx 03H xxH sum
NoteConfirm code=00H means OK Confirm code=01H means receiving pack error sum means check sum
Respond pack format 2 bytes 4bytes Pack head 0xEF01 Chip address xxxx
NoteConfirm code=00H means password correct; Confirm code=01H means receiving pack error Confirm code=13H means password incorrect sum means check sum
1 byte Confirm
4 bytes Random
NG OP-67 Fingerprint Module User Manual V1.1 address 0xEF01 xxxx 07H 07H code xxH number xxxx sum
NoteConfirm code=00H means generate success Confirm code=01H means receiving pack error sum means check sum
NoteConfirm code=00H means generate address success Confirm code=01H means receiving pack error sum means check sum Using default address when PC sending command pack0xffffffff, responding pack address using new generated address. Chip address stays unchanged by executing the command. To change the chip address only with emptying FLASH.
NG OP-67 Fingerprint Module User Manual V1.1 0xEF01 xxxx 07H 03H xxH sum
NoteConfirm code=00H means sending data pack by following Confirm code=01H means receiving pack error Confirm code=0dH means executing command fail sum means check sum Sending following data pack after respond
Responding pack format 2 bytes 4bytes Pack head 0xEF01 Chip address xxxx
NoteConfirm code=00H means port operation success Confirm code=01H means receiving pack error Confirm code=1dH means port operation fail Sum means check sum
Input parameterNotePageNum,user content Return parameterconfirm Command code18H Command pack format
2 bytes Pack 4bytes Chip 1 byte Pack 2 bytes Pack 1 byte Command 1byte Page 32 bytes User info. 2 bytes Check
NG OP-67 Fingerprint Module User Manual V1.1 head 0xEF01 address xxxx mark 01H length 36 1 byte Pack mark 07H code 18H 2 bytes Pack length 03H 0~15 content 1 byte Confirm code xxH sum sum 2 bytes Check sum sum
Respond pack format 2 bytes 4bytes Pack head 0xEF01 Chip address xxxx
NoteConfirm code=00H means OK Confirm code=01H means receiving pack error sum means check sum
Respond pack format 2 bytes Pack head 0xEF01 4bytes Chip address xxxx 1 byte Pack mark 07H 2 bytes Pack length 35 1 byte Confirm code xxH 32 bytes User info. User content 2 bytes Check sum sum
NoteConfirm code=00H means OK Confirm code=01H means receiving pack error sum means check sum
NG OP-67 Fingerprint Module User Manual V1.1 Chip address xxxx Command code 1AH Upgrade mode 0/1
Upgrade mode 0only upgrade info. pages Upgrade mode 1fully upgrade Othererror Respond pack format 2 bytes Pack head 0xEF01 4bytes Chip address xxxx 1 byte Pack mark 07H 2 bytes Pack length 03H 1 byte Confirm code xxH 2 bytes Check sum sum
NoteConfirm code=00H means could accept follow-by data pack Confirm code=01H means receiving pack error Confirm code=0eH means can not accept following data pack sum means check sum Accepting following data pack after respond, data pack length 64, 128 or 256
NoteBuffer CharBuffer1CharBuffer2s BufferID are 1h and 2h Respond pack format 2 bytes 4bytes 1 byte 2 bytes 1 byte 2 bytes Pack head 0xEF01 Chip address xxxx Pack mark 07H Pack length 7 Confirm code xxH Page PageID
NoteConfirm code=00H means searching out Confirm code=01H means receiving pack error Confirm code=09H means no searching result; page and score 0
NG OP-67 Fingerprint Module User Manual V1.1 sum means check sum
Respond pack format 2 bytes 4bytes Pack head 0xEF01 Chip address xxxx
NoteConfirm code=01H means receiving pack error Confirm code=15H means invalid fingerprint image Confirm code= 07 H means no enough characteristic info. Confirm code=06 H means image in poor quality sum means check sum
NG OP-67 Fingerprint Module User Manual V1.1 2 bytes Pack head 0xEF01 4bytes Chip address xxxx 1 byte Pack mark 07H 2 bytes Pack length 5 1 byte Confirm code xxH 2 bytes Valid template number ValidN 2 bytes Check sum sum
Noteconfirm code=00H means reading success Confirm code=01H means receiving pack error sum means check sum
Start
command: PS_GetImage
Over
Reading image
Waiting respond OK OK OK Green light flash (Optional, depend on PC) Green light flash
Waiting respond
Start
Waiting respond
OK
Waiting respond
Waiting respond