-1-FingerprintIdentification Module [626220]

-1-FingerprintIdentification Module
UserManual

-2-I Introduction
OperationPrinciple
Fingerprintprocessingincludestwoparts:fingerprintenrollmentandfingerprintmatching(the
matchingcanbe1:1or1:N).
Whenenrolling,userneedstoenterthefingertwotimes.Thesystemwillprocessthetwotime
fingerimages,generateatemplateofthefingerbasedonprocessingresultsandstorethetemplate.
Whenmatching,userentersthefingerthroughopticalsensorandsystemwillgenerateatemplateofthe
fingerandcompareitwithtemplatesofthefingerlibrary.For1:1matching,systemwillcomparethe
livefingerwithspecifictemplatedesignatedintheModule;for1:Nmatching,orsearching,systemwill
searchthewholefingerlibraryforthematchingfinger.Inbothcircumstances,systemwillreturnthe
matchingresult,successorfailure.

-3-Power DC3.6V-6.0V Interface UART(TTLlogicallevel)
Workingcurrent Typical:100mA
Peak:150mAMatchingMode1:1and1:N
Baudrate (9600*N)bps,
N=1~12(defaultN=6)Characterfilesize256 bytes
Imageacquiringtime<1s Templatesize 512 bytes
Storagecapacity 120/375/880 Securitylevel 5(1, 2, 3,4, 5(highest))
FAR <0.001% FRR <0.1%
Averagesearchingtime<1s(1:880) Windowdimension14mm*18mm
WorkingenvironmentTemp:-10℃-+40℃StorageenvironmentTemp:-40℃-+85℃
RH:40%-85% RH:<85%
OutlineDimention Splittype Module:42*25*8.5mm
(installdimension:31.5*19mm)
Sensor:56*20*21.5mm
Integraltype 56*20*21.5mmIIMainParameters

-4-III HardwareInterface
3.1Conne ctingwithuppe rcomputer(J1onboard )
WhethertheinterfaceisUARTor USB(hardwaresettingisdifferentwhenoutoffactory,pleasedon't
misuse),onPCBboardtheconnectorisuniform.Forsplittype,5-pinconnector(J1)with 2.0mm space
between;forintegraltype, 4-pinconnector(J1)with1.27mmspacebetween.
Unlessrequiredspeciallybyuser,theconnectingcablewith uppercomputeris 150mm.
3.1.1SerialCommunication
WhentheFPmodulecommunicateswithuserdevice,definitionofJ1isasfollows:
PinNmuberNameType FunctionDescription
1 Vin inPowerinput(cablecolor:red)
2 TD outDataoutput. TTLlogicallevel(cablecolor:green)
3 RD inDatainput. TTLlogicallevel(cablecolor:white)
4 GND -Signalground.Connectedtopowerground(cablecolor:black)
5 NC -Notconnect.(doesn'texistwithintegraltype)
3.1.1.1Hardwareconnection
Viaserialinterface,theModulemaycommunicatewithMCUof3.3Vor5Vpower:TD(pin2of
J1)connectswithRXD(receivingpinofMCU),RD(pin3ofJ1)connectswithTXD(transferringpin
ofMCU).
Shouldtheuppercomputer(PC)beinRS-232mode,pleaseaddlevelconvertingcircuit,like
MAX232, betweentheModuleandPC.
3.1.1.2Serialcommunication protocol
Themodeissemiduplex synchronism serialcommunication.Andthedefaultbaudrateis 57600bps.
Usermaysetthebaudratein9600~115200bps。
Transferringframeformatis10bit:thelow-levelstartingbit,8-bitdatawiththeLSBfirst,andan
endingbit. Thereisnocheckbit.
起始位 停止位
1 0 D0 D1 D2 D3 D4 D5 D6 D7 1
10位帧格式
3.1.1.3Resettime
Atpoweron,ittakesabout500msforinitialization.Duringthisperiod,theModulecan'taccept
commandsforuppercomputer.

-5-3.1.1.4Electricalparameter(AllelectricalleveltakesGNDasreference)
1.Powersupply
ItemParameterUnit NoteMinTypMax
PowerVoltage(Vin)3.6 6.0 VNormalworkingvalue.
MaximumVoltage
(Vinmax)-0.3 7.0 VExceedingtheMaximumrating
maycausepermantharmtothe
Module.
OperationCurrent
(Icc)90100110mA
PeakCurrent(Ipeak) 150mA
2.TD(output,TTLlogiclevel)
ItemCondition Parameter Unit Note
Min Typ Max
VOLIOL=-4mA 0.4 VLogic0
VOHIOH=4mA 2.4 3.3 VLogic1
3.RD(input,TTLlogiclevel)
ItemCondition Parameter Unit Note
MinTypMax
VIL 0.6V Loigc0
VIH 2.4 V Logic1
IIHVIH=5V 1 mA
VIH=3.3V 30 uA
VImax -0.3 5.5V Maximuminputvoltage

-6-3.2Conne ctingwithsensor(J2onboard)
15-pinsingle-rowconnector(J2)(connectinga15-wireflatcable)with1.25mmspacebetween,
servesastheconnectorbetweenthemainboardandtheopticalsensor.Unlessasspeciallyrequiredby
user,thedefaultcablelengthis150mm。
Forintegraltype,userneedn'ttoworry,it'sconnectedinternally.

-7-IVSystemResources
use.Toaddressdemandsofdifferentcustomer,Modulesystemprovidesabundantresourcesatusers
4.1Notepad
Thesystemsetsasidea512-bytesmemory(16pages*32bytes)foruser'snotepad,wheredata
requiringpower-offprotectioncan bestored.Thehostcanaccessthepagebyinstructionsof
PS_WriteNotepadandPS_ReadNotepad.
Note:whenwriteononepageofthepad,theentire32byteswillbewritteninwhollycoveringthe
originalcontents.
4.2Buffer
Thereareanimagebufferandtwo 512-byte-character-filebufferwithintheRAMspaceofthe
module.Userscanread&writeany ofthebuffers byinstructions.
Note:Contents oftheabovebufferswillbelostatpower-off.
4.2.1Imagebuffer
ImageBufferservesforimagestorageandtheimageformatis 256*288pixels.
WhentransferringthroughUART,toquicken speed,onlytheupper4bitsofthepixelistransferred
(thatis16greydegrees).Andtwoadjacentpixelsofthesamerowwillformabytebeforethe
transferring.WhenuploadedtoPC,the16-grey-degreeimagewillbeextendedto 256-grey-degree
format.That's 8-bitBMPformat.
4.2.2Characterfilebuffer
Characterfilebuffer,CharBuffer1,CharBuffer2,canbeusedtostorebothcharacterfileand
templatefile.
4.3Fingerpr intLibrary
System setsasideacertainspacewithinFlashforfingerprinttemplatestorage,that'sfingerprint
library.Contentsofthelibraryremainatpoweroff.
CapacityofthelibrarychangeswiththecapacityofFlash,systemwillrecognizethelatter
automatically.Fingerprinttemplate'sstorageinFlashisin sequentialorder.Assumethefingerprint
capacityN,thentheserialnumberoftemplateinlibraryis0,1,2,3……N-2,N-1.Usercanonlyaccess
library bytemplatenumber.
4.4SystemConfigurationParameter
Tofacilitateusersdeveloping,Module openspartsystemparametersforuse.Andthebasic
instructionsareSetSysPara&ReadSysPara.BothinstructionstakeParameterNumberasparameter.

-8-Whenuppercomputersendscommandtomodifyparameter,Modulefirstresponseswithoriginal
configurations,then performstheparametermodificationandwritesconfigurationrecordintoFlash.At
thenextstartup, systemwillrunwiththenewconfigurations.
4.4.1Baudratecontrol(ParameterNumber:4)
TheParametercontrolstheUARTcommunicationspeedoftheModule.ItsvalueisanintegerN,
N=[1,12].Correspondingbaudrateis9600*Nbps.
4.4.2SecurityLevel(ParameterNumber:5)
TheParametercontrolsthematchingthresholdvalueoffingerprintsearchingandmatching.
Securitylevelisdividedinto 5grades,andcorrespondingvalueis1,2,3,4and 5.Atlevel1,FARisthe
highestandFRRisthelowest;howeveratlevel5,FARisthelowestandFRRisthehighest.
4.4.3Datapackagelength(ParameterNumber:6)
Theparameterdecidesthemaxlengthofthetransferringdatapackagewhencommunicatingwith
uppercomputer.Itsvalueis0,1,2,3,correspondingto 32bytes,64bytes,128bytes,256bytes
respectively.
4.5Systemstatusregister
Systemstatusregisterindicatesthecurrentoperation statusoftheModule.Itslengthis1word,and
canbereadviainstructionReadSysPara.Definitionoftheregisterisasfollows:
BitNum 154 3 210
Description ReservedImgBufStatPWDPassBusy
Note:
Busy:1 bit. 1:systemisexecutingcommands;0:systemisfree;
Pass:1 bit. 1:findthematchingfinger;0:wrongfinger;
PWD:1 bit. 1:Verifieddeviceshandshakingpassword.
ImgBufStat:1 bit. 1:imagebuffercontainsvalidimage.
4.6Moduleaddre ss
Eachmodulehasanidentifyingaddress.Whencommunicatingwithuppercomputer,each
instruction/dataistransferredindatapackageform,whichcontainstheaddressitem.Modulesystem
onlyrespondstodatapackagewhoseaddressitemvalueisthesamewithitsidentifyingaddress.
Theaddresslengthis4bytes,anditsdefaultfactoryvalueis0xFFFFFFFF.Usermaymodifythe
addressviainstructionSetAdder.Thenewmodifiedaddressremainsatpoweroff.
4.7Rando mnumbergenera tor
Moduleintegratesahardware32-bitrandom numbergenerator(RNG)(withoutseed).Via
instructionGetRandomCode, systemwillgeneratearandomnumberanduploadit.

-9-VCommunicationProtocol
5.1Datapackageformat
Whencommunicating,thetransferringandreceivingofcommand/data/resultareall
wrappedindatapackageformat.
Datapackageformat
Header AdderPackage
identifierPackage
lengthPackagecontent
(instruction/data/Parameter)Checksum
DefinitionofDatapackage
NameSymbolLength Description
HeaderSTART 2 bytesFixedvalueofEF01H;Highbytetransferredfirst.
AdderADDR4 bytesDefaultvalueis0xFFFFFFFF,whichcanbemodifiedby
command.Highbytetransferredfirstandatwrongadder
value,modulewillrejecttotransfer.
Package
identifierPID 1 byte01H Commandpacket;
02HDatapacket;Datapacketshallnotappear
aloneinexecutingprocess,mustfollow
commandpacketoracknowledgepacket.
07H Acknowledgepacket;
08H End ofDatapacket.
Package
lengthLENGTH2 bytesReferstothelengthofpackagecontent(commandpackets
anddatapackets)plusthelengthofChecksum(2bytes).
Unitis byte. Maxlengthis 256 bytes.Andhighbyteis
transferredfirst.
Package
contentsDATA -Itcanbecommands ,data,command 'sparameters,
acknowledge result, etc. (fingerprint character value,
template are all deemed as data);
Checksum SUM2 bytesThearithmeticsumofpackageidentifier,packagelength
andallpackagecontents.Overflowing bitsareomitted.High
byteistransferredfirst.
5.2Checkandacknowledgementofdatapackage
Note:CommandsshallonlybesentfromuppercomputertotheModule,andtheModule

-10-acknowledgesthecommands.
Uponreceiptofcommands,Modulewillreportthecommandsexecution statusandresultstoupper
computerthrough acknowledge packet.Acknowledgepackethasparameters andmayalso have
followingdatapacket.Uppercomputercan'tascertainModule'spackagereceivingstatusorcommand
executionresultsunlessthroughacknowledgepacketsentfromModule.Acknowledgepacketincludes1
byteconfirmationcodeandmaybealsothereturnedparameter.
Confirmationcodedefinitionis:
1.00h:commandexecutioncomplete;
2.01h:errorwhenreceivingdatapackage;
3.02h:nofingeronthesensor;
4.03h:failtoenrollthefinger;
5.06h:failtogeneratecharacterfileduetotheover-disorderlyfingerprintimage;
6.07h:failtogeneratecharacterfileduetoweakness ofcharacterpointorover-smallnessof
fingerprintimage
7.08h:fingerdoesn'tmatch;
8.09h:failtofindthematchingfinger;
9.0Ah:failtocombinethecharacterfiles;
10.0Bh:addressingPageID is beyondthefingerlibrary;
11.0Ch:errorwhenreadingtemplatefromlibraryorthetemplateisinvalid;
12.0Dh:errorwhen uploadingtemplate;
13.0Eh:Modulecan'treceivethefollowingdatapackages.
14.0Fh:errorwhen uploadingimage;
15.10h:failtodeletethetemplate;
16.11h:failtoclearfingerlibrary;
17.15h:failtogeneratetheimagefortheweakness ofvalidprimaryimage;
18.18h:errorwhenwritingflash;
19.19h:Nodefinitionerror;
20.1Ah:invalidregisternumber;
21.1Bh:incorrectconfigurationofregister;
22.1Ch:wrongnotepadpagenumber;
23.1Dh:failtooperatethecommunicationport;
24.Others:systemreserved;

-11-VIModule InstructionSystem
6.1System-relatedinstructions
6.1.1Communicatelink:handshake
Description:
Confirmthatcommunicateisconnectbetweenmoduleanduppermonitor
InputParameter:controlcode0
ReturnParameter:confirmationcode;
Instructioncode:17H
Command(orinstruction)packageformat:
2 bytes4bytes1 byte2bytes1 byte1byte2 bytes
HeaderChip
addressPackage
identifierPackage
lengthInstruction
codeControl
codeChecksum
EF01H xxxx 01H 0004H 17H 0001CH
Acknowledgepackageformat:
2 bytes4bytes1 byte2 bytes1 byte 2 bytes
HeaderChip
addressPackage
identifierPackage
lengthConfirmation
codeChecksum
EF01H xxxx 07H 0003H xxH sum
Note:Confirmationcode=00H:Portoperationcomplete;
Confirmationcode=01H:errorwhenreceivingpackage;
Confirmationcode=1dH:failtooperatethecommunication
port;
6.1.2SetModuleaddress:SetAdder
Description:SetModuleaddress.
InputParameter:None;
ReturnParameter:Confirmationcode(1 byte)
Instructioncode:15H
Command(orinstruction)packageformat:
2 bytes 4bytes 1 byte2 bytes 1 byte 4 bytes 2 bytes
Header Original
ModuleaddressPackage
identifierPackage
lengthInstruction
codeNewModule
addressChecksum
EF01H xxxx 01H 0007H 15H xxxx sum
Acknowledgepackageformat:
2 bytes 4bytes 1 byte2 bytes 1 byte 2 bytes
Header NewModule
addressPackage
identifierPackage
lengthConfirmation
codeChecksum
EF01H xxxx 0007H 07H xxH Sum

-12-2 bytes4bytes 1 byte2 bytes1 byte 16 bytes 2 bytes
HeaderModule
addressPackage
identifierPackage
lengthConfirmation
codeBasicparameter
listChecksum
EF01H xxxx 07H 0013H xxH Seefollowing
tablesumNote:Confirmationcode=00H:address settingcomplete;
Confirmationcode=01H:errorwhenreceivingpackage;
6.1.3Setmodulesystem’sbasicparameter:SetSysPara
Description:Operationparametersettings.(Referto4.4formoreinformation)Input
Parameter:Parameternumber;
ReturnParameter:Confirmationcode(1 byte)
Instructioncode:0eH
Command(orinstruction)packageformat:
2 bytes4bytes1 byte2 bytes1 byte 1byte 1byte2 bytes
HeaderModule
addressPackage
identifierPackage
lengthInstruction
codeParameter
numberContentsChecksum
EF01Hxxxx 01H 0005H 0eH 4/5/6 xx sum
Acknowledgepackageformat:
2 bytes 4bytes 1 byte 2 bytes 1 byte 2 bytes
Header Module
addressPackage
identifierPackage
lengthConfirmation
codeChecksum
EF01H xxxx 0007H 03H xxH Sum
Note:Confirmationcode=00H:parametersettingcomplete;
Confirmationcode=01H:errorwhenreceivingpackage;
Confirmationcode=1aH:wrongregisternumber;
6.1.4ReadsystemParameter:ReadSysPara
Description:ReadModule’sstatusregisterandsystembasicconfigurationparameters(;
Refer to 4.4 forsystemconfigurationparameterand4.5forsystemstatusregister).
InputParameter:none
ReturnParameter:Confirmationcode(1 byte)+basicparameter(16bytes)
Instructioncode:0fH
Command(orinstruction)packageformat:
Acknowledge package format:
Note:Confirmationcode=00H:readcomplete;
Confirmationcode=01H:errorwhenreceivingpackage;
Name Description Offset(word)Size(word)
StatusregisterContents ofsystemstatusregister 0 1
SystemidentifiercodeFixedvalue:0x0009 1 12 bytes 4bytes 1 byte 2 bytes 1byte 2 bytes
HeaderModule
addressPackage
identifierPackagelengthInstruction
codeChecksum
EF01H xxxx 01H 0003H 0fH 0013H

-13-FingerlibrarysizeFingerlibrarysize 2 1
SecuritylevelSecuritylevel(1, 2, 3, 4, 5) 3 1
Deviceaddress32-bitdeviceaddress 4 2
DatapacketsizeSizecode(0, 1, 2, 3) 6 1
BaudsettingsN(baud=9600*Nbps) 7 1
6.1.5Readvalidtemplatenumber:TempleteNum
Description:readthecurrentvalidtemplatenumberoftheModule
InputParameter:none
ReturnParameter:Confirmationcode(1 byte),templatenumberN
Instructioncode:1dH
Command(orinstruction)packageformat:
2 bytes 4bytes 1 byte 2 bytes 1 byte 2 bytes
Header ModuleaddressPackage
identifierPackage
lengthInstruction
codeChecksum
EF01H xxxx 01H 0003H 1DH 0021H
Acknowledgepackageformat:
2 bytes4bytes1 byte2 bytes 1 byte 2 bytes 2 bytes
HeaderModule
addressPackage
identifierPackage
lengthConfirmation
codeTemplate
numberChecksum
EF01H xxxx 07H 5 xxH N sum
Note:Confirmationcode=00H:readcomplete;
Confirmationcode=01H:errorwhenreceivingpackage;
6.2Fingerpr int-processinginstructions
6.2.1Tocollectfingerimage:GenImg
Description:detectingfingerand storethedetectedfingerimageinImageBufferwhile
returningsuccessfulconfirmationcode;Ifthereisnofinger,returnedconfirmation
codewouldbe”can’tdetectfinger”.
InputParameter:none
ReturnParameter:Confirmationcode(1 byte)
Instructioncode:01H
Command(orinstruction)packageformat:
2 bytes 4bytes 1 byte 2 bytes 1 byte 2 bytes
Header Module
addressPackage
identifierPackagelengthInstruction
codeChecksum
EF01H xxxx 01H 0003H 01H 0005H
Acknowledgepackageformat:
2 bytes 4bytes 1 byte 2 bytes 1 byte 2 bytes
Header Module
addressPackage
identifierPackage
lengthConfirmation
codeChecksum
EF01H xxxx 07H 0003H xxH Sum

-14-Note:Confirmationcode=00H:fingercollectionsuccess;
Confirmationcode=01H:errorwhenreceivingpackage;
Confirmationcode=02H:can’tdetectfinger;
Confirmationcode=03H:failtocollectfinger;
6.2.2Uploadimage:UpImage
Description:touploadtheimageinImg_Buffertouppercomputer.
InputParameter:none
ReturnParameter:Confirmationcode(1 byte)
Instructioncode:0aH
Command(orinstruction)packageformat:
2 bytes 4bytes 1 byte 2 bytes 1 byte 2 bytes
HeaderModuleaddressPackage
identifierPackagelengthInstructioncodeChecksum
EF01H xxxx 01H 0003H 0AH 000EH
Acknowledgepackageformat:
2 bytes 4bytes 1 byte 2 bytes 1 byte 2 bytes
Header Module
addressPackage
identifierPackage
lengthConfirmation
codeChecksum
EF01H xxxx 07H 0003H xxH sum
Note1:Confirmationcode=00H:readytotransferthefollowingdatapacket;
Confirmationcode=01H:errorwhenreceivingpackage;
Confirmationcode=0fH:failtotransferthefollowingdatapacket;
2:Moduleshalltransferthefollowingdatapacketafterrespondingtotheupper
computer.
6.2.3Downloadtheimage:DownImage
Description:todownloadimagefromuppercomputertoImg_Buffer.
InputParameter:none
ReturnParameter:Confirmationcode(1 byte)
Instructioncode:0bH
Command(orinstruction)packageformat:
2 bytes 4bytes 1 byte 2 bytes 1 byte 2 bytes
HeaderModuleaddress Package
identifierPackage
lengthInstruction
codeChecksum
EF01H xxxx 01H 0003H 0bH 000FH
Acknowledgepackageformat:
2 bytes 4bytes 1 byte 2 bytes 1 byte 2 bytes
Header Module
addressPackage
identifierPackage
lengthConfirmation
codeChecksum
EF01H xxxx 07H 0003H xxH sum
Note:1:Confirmationcode=00H:readytotransferthefollowingdatapacket;

-15-Confirmationcode=01H:errorwhenreceivingpackage;
Confirmationcode=0eH:failtotransferthefollowingdatapacket;
2:Moduleshalltransferthefollowingdatapacketafterrespondingtotheuppercomputer.
Datapackagelengthmustbe64, 128,or256。
6.2.4Togeneratecharacterfilefromimage:Img2Tz
Description:togeneratecharacterfilefromtheoriginalfingerimageinImageBufferand store
thefileinCharBuffer1orCharBuffer2.
InputParameter:BufferID(characterfilebuffernumber)
ReturnParameter:Confirmationcode(1 byte)
Instructioncode:02H
Command(orinstruction)packageformat:
2 bytes 4bytes1 byte 2 bytes 1 byte 1 byte2 bytes
Header Module
addressPackage
identifierPackage
lengthInstruction
codeBuffer
numberChecksum
EF01H xxxx 01H 0004H 02H BufferID sum
Note:BufferIDofCharBuffer1andCharBuffer2are1hand2hrespectively.Othervalues
(except1h,2h)wouldbeprocessedasCharBuffer2.
Acknowledgepackageformat:
2 bytes 4bytes 1 byte 2 bytes 1 byte 2 bytes
Header Module
addressPackage
identifierPackagelengthConfirmation
codeChecksum
EF01H xxxx 07H 0003H xxH sum
Note:Confirmationcode=00H:generatecharacterfilecomplete;
Confirmationcode=01H:errorwhenreceivingpackage;
Confirmationcode=06H:failtogeneratecharacterfileduetotheover-disorderly
fingerprintimage;
Confirmationcode=07H:failtogeneratecharacterfileduetolacknessofcharacter point
orover-smallnessoffingerprintimage;
Confirmationcode=15H:failtogeneratetheimageforthelacknessofvalidprimary
image;
6.2.5Togeneratetemplate:RegModel
Description:TocombineinformationofcharacterfilesfromCharBuffer1andCharBuffer2and
generateatemplatewhichisstoredbackinbothCharBuffer1andCharBuffer2.
InputParameter:none
ReturnParameter:Confirmationcode(1 byte)
Instructioncode:05H
Command(orinstruction)packageformat:
2 bytes4bytes1 byte 2 bytes 1 byte2 bytes
HeaderModule
addressPackage
identifierPackage
lengthInstruction
codeChecksum
EF01H xxxx 01H 0003H 05H 09H

-16-Acknowledgepackageformat:
2 bytes 4bytes1 byte2 bytes1 byte2 bytes
Header Module
addressPackage
identifierPackage
lengthConfirmation
codeChecksum
EF01H xxxx 07H 0003H xxH sum
Note:Confirmationcode=00H:operationsuccess;
Confirmationcode=01H:errorwhenreceivingpackage;
Confirmationcode=0aH:failtocombinethecharacterfiles.That’s,thecharacterfiles
don’tbelongto onefinger.
6.2.6Touploadcharacterortemplate:UpChar
Description:touploadthecharacterfileortemplateofCharBuffer1/CharBuffer2toupper
computer;
InputParameter:BufferID(Buffernumber)
ReturnParameter:Confirmationcode(1 byte)
Instructioncode:08H
Command(orinstruction)packageformat:
2 bytes4bytes1 byte2 bytes1 byte1 byte2 bytes
HeaderModule
addressPackage
identifierPackage
lengthInstruction
codeBuffer
numberChecksum
EF01H xxxx 01H 0004H 08H BufferIDsum
Note:BufferIDofCharBuffer1andCharBuffer2are1hand2hrespectively.Othervalues
(except1h,2h)wouldbeprocessedasCharBuffer2.
Acknowledgepackageformat:
2 bytes 4bytes1 byte2 bytes1 byte 2 bytes
Header Module
addressPackage
identifierPackage
lengthConfirmation
codeChecksum
EF01H xxxx 07H 0003H xxH sum
Note1:Confirmationcode=00H:readytotransferthefollowingdatapacket;
Confirmationcode=01H:errorwhenreceivingpackage;
Confirmationcode=0dH:errorwhen uploadingtemplate;
2:Moduleshalltransferfollowingdatapacketafterrespondingtotheuppercomputer.;
3:Theinstruction doesn’taffectbuffercontents.
6.2.7Todownloadcharacterfileortemplate:DownChar
Description:todownloadcharacterfileortemplatefromuppercomputertothespecifiedbufferof
Module;
InputParameter:BufferID(buffernumber)
ReturnParameter:Confirmationcode(1 byte)
Instructioncode:09H
Command(orinstruction)packageformat:
2 bytes4bytes1 byte2 bytes1 byte1 byte2 bytes
HeaderModule
addressPackage
identifierPackage
lengthInstruction
codebuffer
numberChecksum

-17-EF01H xxxx 01H 0004H 09H BufferIDsum
Note:BufferIDofCharBuffer1andCharBuffer2are1hand2hrespectively.Othervalues(except
1h, 2h)wouldbeprocessedasCharBuffer2.
Acknowledgepackageformat:
2 bytes 4bytes1 byte2 bytes1 byte 2 bytes
Header Module
addressPackage
identifierPackage
lengthConfirmation
codeChecksum
EF01H xxxx 07H 0003H xxH sum
Note1:Confirmationcode=00H:readytotransferthefollowingdatapacket;
Confirmationcode=01H:errorwhenreceivingpackage;
Confirmationcode=0eH:failtoreceivethefollowingdatapackages.
2:Moduleshalltransferthefollowing datapacketafterresponding totheupper
computer.
6.2.8Tostoretemplate:Store
Description:to storethetemplateofspecified buffer(Buffer1/Buffer2)atthedesignatedlocationof
Flashlibrary.
InputParameter:BufferID(buffernumber),PageID(Flashlocationofthetemplate,twobyteswith
highbytefrontandlowbytebehind)
ReturnParameter:Confirmationcode(1 byte)
Instructioncode:06H
Command(orinstruction)packageformat:
2 bytes4bytes1 byte2 bytes1 byte1 byte2 bytes2 bytes
HeaderModule
addressPackage
identifierPackage
lengthInstruction
codebuffer
numberLocation
numberChecksum
EF01H xxxx 01H 06H 0006H BufferIDPageIDsum
Note:BufferIDofCharBuffer1andCharBuffer2are1hand2hrespectively.Othervalues
(except1h,2h)wouldbeprocessedasCharBuffer2.
Acknowledgepackageformat:
2 bytes 4bytes 1 byte2 bytes1 byte 2 bytes
Header Module
addressPackage
identifierPackage
lengthConfirmation
codeChecksum
EF01H xxxx 07H 0003H xxH sum
Note:Confirmationcode=00H:storagesuccess;
Confirmationcode=01H:errorwhenreceivingpackage;
Confirmationcode=0bH:addressingPageIDis beyondthefingerlibrary;
Confirmationcode=18H:errorwhenwritingFlash.
6.2.9ToreadtemplatefromFlashlibrary:LoadChar
Description:toloadtemplateatthespecifiedlocation(PageID)ofFlashlibrarytotemplatebuffer
CharBuffer1/CharBuffer2
InputParameter:BufferID(buffernumber),PageID(Flashlocationofthetemplate,twobyteswith
highbytefrontandlowbytebehind)。
ReturnParameter:Confirmationcode(1 byte)

-18-Instructioncode:07H
Command(orinstruction)packageformat:
2 bytes4bytes1 byte2 bytes1 byte 1 byte2 bytes2 bytes
HeaderModule
addressPackage
identifierPackage
lengthInstruction
codebuffer
numberPage
numberChecksum
EF01H xxxx 01H 0006H 07H BufferIDPageIDsum
Note:BufferIDofCharBuffer1andCharBuffer2are1hand2hrespectively.Othervalues(except
1h, 2h)wouldbeprocessedasCharBuffer2.
Acknowledgepackageformat:
2 bytes 4bytes 1byte 2 bytes 1 byte 2 bytes
HeaderModuleaddressPackage
identifierPackage
lengthConfirmation
codeChecksum
EF01H xxxx 07H 0003H xxH sum
Note:Confirmationcode=00H:loadsuccess;
Confirmationcode=01H:errorwhenreceivingpackage;
Confirmationcode=0cH:errorwhenreadingtemplatefromlibraryorthereadouttemplateis
invalid;
Confirmationcode=0BH:addressingPageIDis beyondthefingerlibrary;
6.2.10Todeletetemplate:DeletChar
Description:todeleteasegment(N)oftemplatesofFlashlibrarystartedfromthespecified
location(orPageID);
InputParameter:PageID(templatenumberinFlash), N(numberoftemplatestobedeleted)
ReturnParameter:Confirmationcode(1 byte)
Instructioncode:0cH
Command(orinstruction)packageformat:
2 bytes4bytes1 byte2 bytes1 byte2 bytes2bytes2 bytes
HeaderModule
addressPackage
identifierPackage
lengthInstruction
codePage
numbernumberof
templatesto
bedeletedChecksum
EF01H xxxx 01H 0007H 0cHPageID N sum
Acknowledgepackageformat:
2 bytes 4bytes 1 byte 2 bytes 1 byte 2 bytes
Header Module
addressPackageidentifierPackage
lengthConfirmation
codeChecksum
EF01H xxxx 07H 0003H xxH sum
Note:Confirmationcode=00H:deletesuccess;
Confirmationcode=01H:errorwhenreceivingpackage;
Confirmationcode=10H:failedtodeletetemplates;
6.2.11Toemptyfingerlibrary:Empty
Description:todeleteallthetemplatesintheFlashlibrary
InputParameter:none
ReturnParameter:Confirmationcode(1 byte)

-19-Instructioncode:0dH
Command(orinstruction)packageformat:
2 bytes 4bytes1 byte 2 bytes 1 byte2 bytes
Header Module
addressPackage
identifierPackage
lengthInstruction
codeChecksum
EF01H xxxx 01H 0003H 0dH 0011H
Acknowledgepackageformat:
2 bytes 4bytes1 byte2 bytes1 byte 2 bytes
Header Module
addressPackage
identifierPackage
lengthConfirmation
codeChecksum
EF01H xxxx 07H 0003H xxH sum
Note:Confirmationcode=00H:emptysuccess;
Confirmationcode=01H:errorwhenreceiving
package;
Confirmationcode=11H:failtoclearfinger
library;
6.2.12Tocarryoutprecisematchingoftwofingertemplates:Match
Description:tocarryoutprecisematchingoftemplatesfromCharBuffer1and
CharBuffer2,providingmatchingresults.
InputParameter:none
ReturnParameter:Confirmationcode(1byte),matching
score.
Instructioncode:03H
Command(orinstruction)packageformat:
2 bytes4bytes 1 byte 2 bytes 1 byte 2 bytes
HeaderModule
addressPackage
identifierPackagelengthInstructioncodeChecksum
EF01Hxxxx 01H 0003H 0
3
H0007H
Acknowledgepackageformat:
2 bytes4bytes1 byte2 bytes1 byte 2 bytes 2 bytes
HeaderModule
addressPackage
identifierPackage
lengthConfirmation
codeMatching
scoreChecksum
EF01Hxxxx 07H 0005H xxH xxH sum
Note1:Confirmationcode=00H:templatesofthetwobuffersarematching;
Confirmationcode=01H:errorwhenreceivingpackage;
Confirmationcode=08H:templatesofthetwobuffersaren’tmatching;
2:Theinstruction doesn’taffectthecontentsofthebuffers.
6.2.13Tosearch finger library: Search
Description:to searchthewholefingerlibraryforthetemplatethatmatchestheonein
CharBuffer1orCharBuffer2.Whenfound,PageIDwillbereturned.
InputParameter:BufferID,StartPage(searchingstartaddress),PageNum(searchingnumbers)
ReturnParameter:Confirmationcode(1 byte),PageID(matchingtemplateslocation)
Instructioncode:04H
Command(orinstruction)packageformat:
2 bytes4bytes1 byte2 bytes1 byte1 byte2 bytes2 bytes2 bytes

-20-HeaderModule
addressPackage
identifie
rPackage
lengthInstructio
ncodebuffer
numberParameterParameterChecksum
EF01H xxxx 01H 0008H 04H BufferIDStartPagePageNumsum
Note:BufferIDofCharBuffer1andCharBuffer2are1hand2hrespectively.
Othervalues(except1h,2h)wouldbeprocessedasCharBuffer2.
Acknowledgepackageformat:
2 bytes4bytes1 byte2 bytes1 byte2 bytes2 bytes2 bytes
HeaderModule
addressPackage
identifierPackage
lengthConfirmation
codePageScore Checksum
EF01H xxxx 07H 0007H xxH PageIDMatchScoresum
Note1:Confirmationcode=00H:foundthematchingfiner;
Confirmationcode=01H:errorwhenreceiving
package;
Confirmationcode=09H:Nomatching inthelibrary(boththePageIDand
matchingscoreare0);
2:Theinstructiondoesn’taffectthecontentsofthebuffers.
6.3Other instructions
6.3.1Togeneratearandomcode:GetRandomCode
Description:tocommandtheModuletogeneratearandomnumberandreturnitto
uppercomputer;
InputParameter:none
ReturnParameter:Confirmationcode(1byte)
Instructioncode:14H
Command(orinstruction)packageformat:
2 bytes 4bytes 1 byte 2 bytes 1 byte 2 bytes
Header Module
addressPackage
identifierPackagelengthInstruction
codeChecksum
EF01H xxxx 01H 0003H 14H 0018H
Acknowledgepackageformat:
2 bytes 4bytes 1 byte 2 bytes 1 byte 4 bytes2 bytes
Header Module
addressPackage
identifierPackage
lengthConfirmation
codeRandom
numberChecksum
EF01H xxxx 07H 0007H xxH xxxx sum
Note:Confirmationcode=00H:generationsuccess;
Confirmationcode=01H:errorwhenreceiving
package;
6.3.2Towritenotepad:WriteNotepad
Description:foruppercomputertowritedatatothespecifiedFlashpage;
InputParameter:NotePageNum,usercontent(ordata
content)
ReturnParameter:Confirmationcode(1 byte)

-21-Instructioncode:18H
Command(orinstruction)packageformat:
2 bytes4bytes1 byte2 bytes 1 byte1byte32 bytes2 bytes
HeaderModule
addressPackage
identifierPackage
lengthInstruction
codePage
numberData
contentChecksum
EF01H xxxx 01H 4+32(0024H)18H 0~15contentsum
Acknowledgepackageformat:
2 bytes 4bytes 1 byte 2 bytes 1 byte 2 bytes
HeaderModuleaddressPackage
identifierPackage
lengthConfirmationcodeChecksum
EF01H xxxx 07H 0003H xxH sum
Note:Confirmationcode=00H:writesuccess;
Confirmationcode=01H:errorwhenreceivingpackage;
6.3.3Toreadnotepad:ReadNotepad
Description:toreadthespecifiedpage’sdatacontent;.
InputParameter:none
ReturnParameter:Confirmationcode(1 byte)+datacontent
Instructioncode:19H
Command(orinstruction)packageformat:
2 bytes4bytes 1 byte 2 bytes 1 byte 1byte2 bytes
HeaderModule
addressPackage
identifierPackage
lengthInstruction
codePage
numberChecksum
EF01H xxxx 01H 0004H 19H 0~15 xxH
Acknowledgepackageformat:
2 bytes4bytes1 byte2 bytes 1 byte 32bytes 2 bytes
HeaderModule
addressPackage
identifierPackage
lengthConfirmation
codeUsercontentChecksum
EF01H xxxx 07H 3+32(0023H)xxH Usercontent sum
Note:Confirmationcode=00H:readsuccess;
Confirmationcode=01H:errorwhenreceivingpackage;

-22-6.4 Instruction Table
6.4.1 Classified by functions
typenumcode description typenumcode description
117HCommunicate link 1209HTo download template
215HTo set device address 1306HTo store template
30EHTo set system
Parameter1407Hto read/load template
40FHTo read system
Parameter150CHto delete tempates
51DHTo read finger template
numbers160DHto empty the library
601HCollect finger image 1703HCarry out precise matching
of two templates
70AHTo upload image 1804HSearch the finger library
80BHTo download image 1914Hto get random code
902HTo generate character
file from image2018Hto write note p ad
1005HTo combine character
files and generate
template2119HTo read note pad
1108Hto upload template
6.4.2 Classified by instruction code
code identifier Description code identifier Description
01HGenImg Collect finger image 0CHDeletChar to delete tempates
02HImg2Tz To generate character
file from image0DHEmpty to empty the library
03HMatch Carry out precise
matching of two
templates;0EHSetSysPara To set system
Parameter
04HSerach Search the finger library 0FHReadSysP ara To read system
Parameter
05HRegModel To combine character
files and generate
template14HGetRandomCode to get random code
06HStore To store template; 15HSetAdder To set device address
07HLoadChar to read/load template 17Hhandshake Communicat e link
08HUpChar to upload template 18HWriteNotepad to write note pad
09HDownChr to download template 19HReadNotepad To read note pad
0AHUpImage To upload image 1DHTempleteNum To read finger
template
numbers
0BHDownImage To download image
FinerprintprocessingOthers
Finerprintprocessing
System-related

-23-Dimentions
F1.1DimentionsofintegraltypeModule

Similar Posts