Home

Chapter 1 DESIGN BACKGROUND AND INTRODUCTION

image

Contents

1. Maximum Ratings and Electrical Characteristics 25 unless otherwise specified Single phase half wave 60Hz resistive or inductive load For capacitive load derate current by 20 Characteristic Symbol 1 4001 1N4002 144003 1N4004 144005 1N4006 1N4007 Peak Repetitive Reverse Voltage VRRM Working Peak Reverse Voltage 1000 DC Blocking Voltage RMS Reverse Voltage er RMS 169 280 s2 seo 700 Average Rectified Output Current Note 1 TA 75 ee B single half sine wave superimposed on rated load IFSM 30 Forward Voltage IF 1 0A mE Peak Reverse Current TA 25 5 at Rated DC Blocking Voltage 100 50 Re Junction Capacitance moe 2 100 150 Operating and Storage Temperature Range TJ TSTG 65 to 150 C Notes 1 Leads maintained at ambient temperature at a distance of 9 5mm from the case 2 Measured at 1 0 MHz and applied reverse voltage of 4 0V DC 3 EU Directive 2002 95 EC RoHS All applicable RoHS exemptions applied see EU Directive 2002 95 EC Annex Notes DS28002 Rev 8 2 1 of 3 1N4001 1N4007 Diodes Incorporated www diodes com 224 P AT EU V A T LLI 2 oc C oc lt N 0 6 LLI N oc oc T 0 4 f LLI Q 0 2 2 5 02 Pulse idth Boous se lt 0
2. vas Von Y Y RENT miu 4 28 TT T ee YOD __ 8 57m I RENEHANT BEVAR ANS 1 7 RAD ANO _ RB 3 RBS RAMAMMVREF 5 RAA TOCKMCTORUT H6 RBZ RABANAISSICZOUT REI REO ROVANS ba REDIT RE VARIANG lt Von 2 10 Vas r RDTPSPT 1 ROSFSFE OSCIICUM 113 RDSPERE OSCIXXKO Hiu _ ROWPSP4 RCT1OBONTI 15 e ROCTIRXIDT RCITIOBMOCP2 a D 18 RCBITXCK i 1 17 RONSDO ER REN KDL 18 ROADS A ag RDOPSPO _ 19 _ RDMPSP3 E 2 RDIPSP 20 ROWPSP2 ir m 2 EE iE Fm HELT HH m minien miss DELT gnr RASANAISSICTQUT T BR REQRIVANS a71 RE a ue pomum KR woo E VE Ves Hl NFT RONPSFT OS VEL 14 p Ei PR OBC2ICLKO 15 RONTIOSOTICE 46 e ROMPFSPA L m gcn ma mar ps RC NOUDT i n niri pn id Cw 4 Fook ehh AA HIHHIR HER p mim EEEE EEE Z DL 44 NHU E 1 1 1 1 11 IHHHHHHHHHE PSG RR AR ROT ROT tri 1 2 wma RDSP3PS
3. i _____ d tn Check Sum 15 the low word of value listed below 6 n CKS WORD offset 0 offset 1 offset 6 n 1 Before send Command Data packet Host first send Command packet which set the length of next command data packet in Data Field 3 3 5 Response Data Packet A T a OFFSET FIELD SIZE DESCRYPTION LEE PREFIX WORD 2byte Packet Identify code RCM WORD 2byte Response Code LEN WORD 2byte n n lt 512 Length of result data RET DATA WORD 2byte Result code 0 success I fail Check Sum is the low word of value listed below 6 n CKS WORD 2byte offset 0 offset 1 offset 6 n I 4 Packet Command Detail Description 4 1 Structure of Fingerprint Template Data is follow Template Data 496Bytes CheckSum 2Bytes 498Bytes Template Data CheckSum 496 bytes Template Data 2 byte Check Sum is the low word of value listed below DO D1 D495 D0 D 1 D495 4 2 Command List Function Command Response n n T 1 Verify 0x0101 2 Template No 0 0101 4 0 1 TemplateNo Error Code 216 2 Identify 0x0102 0x0102 4 Template No 3 Enroll 0x0103 Template No 0x0103 Template No IEEE ill Da sim Duplicaion ID 4 Enroll One Time 0x0104 Template No 0x0104 Template No Pr r Template No 0x0105 Template No 0x0106 Cleared TemplateCount Error Code 0x0107 Template No Error C
4. BC LL84 BC LL71 F1_000404 equ IN MITFPGUN BAS ELSE F1 000406 equ IN MITFPGUN BAS PRINT 2 1 SAMPLING ERROR i moviw 128 movwf BPFH movlw 192 f call LCD CRS moviw high STR LB27 movwf GEN4H moviw low STR LB27 f call C STROUT 1 000407 equ IN MITFPGUN BAS GOTO SJ FPC COMPLETE F JUMP sj FPC Complete F1 000409 equ IN MITFPGUN BAS ENDIF 84 F1 000411 equ IN MITFPGUN BAS SERIN PORTD 5 84 WAIT AA STR SREPLYV23 moviw PORTD movwf GEN moviw 32 movwf GENH clrf PP5H movlw 84 movwf PP5 PB OLB86 f call SERIN sublw 170 set page PB LB86 btfss STATUS 2 goto PB LB86 PBPZVAR2 PB LB89 f call SERIN movf PBP VAR2 W movwf GEN4H moviw 119 movwf GEN4 movf PP1 W f call PUT ARRAY 119 PBP VAR2 F movf PBPZVAR2 W sublw 23 set page PB LB89 btfss STATUS 2 goto PB LB89 F1_000413 equ IN MITFPGUN BAS WEND F JUMP BC LL68 BC LL69 BC LL49 BC LL64 F1 000417 equ IN MITFPGUN BAS CASE 2 moviw 2 subwf FPC W set page 90 btfss STATUS 2 goto BC LL90 F1 000419 equ IN MITFPGUN BAS SDATA 0 55 moviw 85 movwf sData 0 F1 000420 equ IN MITFPGUN BAS SDATA 1 AA moviw 170 movwf sData 1 Fi 000421 equ IN MITFPGUN BAS SDATA 2 05 moviw 5 movwf sDataz 2 F1_000422 eau IN MITFPGUN BAS SDATA 3 01 movlw 1 movwf sData 3 F1 000423 equ IN MITFPGUN BAS SDATA 4 02 moviw 2 movwf sData 4 F1 000424 equ MITFP
5. THEN movf sReply 8 W movwf PBPZVARO incf PBPZVARO W set page 73 btfss STATUS 2 goto 73 F1 000370 equ 5 IN MITFPGUN BAS SELECT CASE SREPLY 7 movf sReply 7 W 115 movwf PBPZVARO F1 000372 equ IN MITFPGUN BAS CASE F1 F2 F3 moviw 241 subwf PBPZVARO W set page 76 btfsc STATUS 2 goto BC LL76 moviw 242 subwf PBPZVARO W set page BC LL 6 btfsc STATUS 2 goto BC LL76 moviw 243 subwf PBP VARO W set page BC LL 5 btfss STATUS 2 goto BC LL75 BC LL76 F1 000374 equ IN MITFPGUN BAS PRINT AT 2 1 TAKING SAMPLE DEC GCTR moviw 128 movwf BPFH moviw 192 f call LCD CRS movlw high STR LB23 movwf GEN4H moviw low STR LB23 f call C STROUT bsf STATUS 5 ram_bank 1 movf gCtr W bcf STATUS 5 ram_bank 0 f call OUT DECB moviw 32 f call PRINT f call PRINT f call PRINT f call PRINT F1_000376 equ IN MITFPGUN BAS IF GCTR lt 4 THEN moviw 4 bsf STATUS 5 ram_bank 1 subwf gCtr W 116 set page 78 bcf STATUS 5 ram bank 0 btfsc STATUS O goto BC LL78 F1 000378 equ MITFPGUN BAS INC GCTR bsf STATUS 5 ram bank 1 incf gCtr F bcf STATUS 5 ram bank 0 F JUMP BC LL79 BC LL78 F1 000380 equ IN MITFPGUN BAS ELSE F1 000382 equ IN MITFPGUN BAS GOTO SJ FPC COMPLETE F JUMP sj FPC Complete F1 000384 equ IN MITFPGUN BAS ENDIF BC LL79 F JUMP BC LL74 BC LL75 F1_000386 equ IN MITFPGUN BAS CASE F4 movlw 244 su
6. Benefits The Biometric Analysis for Firearm Identification with Real Time Detection for Ballistic Projectile via SMS comes with features that would improve the safety of using firearms APL Security Services Corporation can improve their weapons through this device The design would reduce the likelihood of unintentional injuries to children teenage suicides and homicides and limit the violent acts committed by criminals using stolen guns It can also protect law enforcement officers from criminals who may grab the firearms during a struggle Definition of Terms Biometrics consists of methods for uniquely recognizing humans based upon one or more intrinsic physical or behavioral traits It is used as a form of identity access management and access control It is also used to identify individuals in groups that are under surveillance Fingerprint an impression left by the friction ridges of a human finger It is the trace of an impression from the friction ridges of any part of a human hand PIC Microcontroller The name PIC initially referred to Peripheral Interface Controller PIC are popular with both industrial developers and hobbyists alike due to their low cost wide availability large user base extensive collection of application notes availability of low cost or free development tools and series programming and reprogramming with flash memory capability Solenoid In Engineering the term solenoid ma
7. C1 3 LUNA aoe ROTIFSFT LIn5 PIC 16F B7 4A HHA Ves 5 7 5 9 mu CI RET CTT mla E d HIL UTD HII iii T O00 e REWRDVAN5 HOO RA4TOCKVWCAQUT 229
8. lt 40 60 80 100 120 160 180 0 010 6 0 8 12 1 6 Ta AMBIENT TEMPERATURE INSTANTANEOUS FORWARD VOLTAGE Fig 1 Forward Current Derating Curve V 25 2 Forward Characteristics 3 L pen D LL O LLI I cc 2 D lt E CN lt c lt LLI o gt NUMBER OF CYCLES 60 Hz Fig 3 Max Non Repetitive Peak Fwd Surge Current VR REVERSE VOLTAGE Fig 4 Typical Junction Capacitance DS28002 Rev 8 2 2 of 3 1N4001 1N4007 O Diodes Incorporated www diodes com 225 C os H A T E D Ordering Information note 4 Device Packaging Shipping 1N4007 T DO 41 Plastic oK Tape amp Reel 13 inch Notes 4 For packaging details visit our website at http www diodes com datasheets ap02008 pdf IMPORTANT NOTICE Diodes Incorporated and its subsidiaries reserve the right to make modifications enhancements improvements corrections or other changes without further notice to any product herein Diodes Incorporated does not assume any liability arising out of the application or use of any product described herein neither does it convey any license under its patent rights nor the rights of others The user of products in such applications shall assume all risks of such use and will agree to hold Diodes Incorporated and all the companies whose products are represented on our website harmless against all damages LIFE SUPPORT Diodes Incorporated produc
9. ERROR SENDING MESSAGE Figure 3 5 GSM Module System Flow 28 The figures 3 3 3 4 and 3 5 are the flow charts of the prototype Figure 3 3 shows the process of the whole system of the Biometric Analysis for Firearm Identification with Real Time Detection for Ballistic Projectile via SMS The system starts up when the device is turned on and immediately initializes the GSM Module to acquire signal from the network The system would wait for the user to press the sign to send a signal to the device that the user is about to enter a fingerprint for verification The fingerprint reader would then identify if the scanned fingerprint is enrolled or not If the fingerprint entered is not enrolled the system would start an error count that signifies that the fingerprint entered is not enrolled in the system When the system counts three errors the system would send a SMS message that will inform that an unauthorized fingerprint if trying to access the gun If the fingerprint is enrolled the system will unlock the gun and allows the user to use the gun The system will count the number of shots fired by the gun Once the sign is pressed again it will lock the gun and send the total number of shots fired the time and date when the gun was used Figure 3 4 presents the two modes of the fingerprint reader the administrator and the user modes In the user mode when the entered fingerprint is verified as user fingerprint the system will automatica
10. 0 movwf PP1 sublw 2 set page LE LB10 btfss STATUS O goto LE LB10 bcf STATUS 0 rif PP1 W addwf PP1 F f call L LB12 movwf PPO incf PP1 F f call L LB12 movwf PPOH incf PP1 F f call L LB12 f call L KL 132 movf PPO W bsf STATUS 5 ram bank 1 movwf keytemp bcf STATUS 5 ram bank 0 FOJUMP LE LB10 LOLB12 movlw LK LB11 gt gt 8 amp 255 movwf PCLATH movf PP1 W if gt gt 8 9 gt gt 8 goto SOQLB135 org 255 amp 65280 SOQLB135 endif addwf PCL F LKOLB11 dt 42 amp 255 42 gt gt 8 amp 255 0 dt 48 amp 255 48 gt gt 8 amp 255 0 dt 35 amp 255 35 gt gt 8 amp 255 0 LE LB10 F1_000558 equ IN MITFPGUN BAS GOTO SJ KPR END F JUMP sj_kpr_end F1_000560 equ IN MITFPGUN BAS ENDIF BC LL132 BC LL119 CT LB112 F1 000563 equ IN MITFPGUN BAS NEXT moviw 1 bsf STATUS 5 ram_bank 1 addwf kpCtr F set page FR LB110 bcf STATUS 5 ram_bank 0 btfss STATUS 0 goto FR LB110 NX LB111 1 000566 equ IN MITFPGUN BAS WEND FOJUMP BC LL107 BC LL108 sj kpr end Fi 000571 equ IN MITFPGUN BAS RETURN 133 return subs FPError F1 000575 equ IN MITFPGUN BAS SELECT CASE FPECODE F1 000577 equ IN MITFPGUN BAS CASE 00 STR FPEMSG COMMAND SUCCESFUL 0 movf FPECode F set page BCOLL137 btfss STATUS 2 goto BC LL137 ram bank 0 movlw 67 movwf FPEMsg 0 movlw 79 movwf FPEMsg 1 movlw 77 movwf FPEMsg Z2 movwf FPEMsg 3 m
11. Behavioural characteristics include signature signature dynamics voice lip movement keystroke analysis and gait Physical characteristics include hand geometry retina iris facial characteristics and fingerprints Dilum Bandara 2008 Fingerprint Hand Retina geometry Signature Voice Figure 2 1 Various Biometrics Technologies Fingerprint Recognition Fingerprint recognition or authentication refers to the automated method of verifying a match between two human fingerprints Fingerprints are one of many forms of biometrics used to identify individuals and verify their identity The analysis of fingerprints for matching purpose generally requires the comparison of several features of the print pattern These include patterns which are aggregate characteristics of ridges and minutia points which are unique features found within the patterns It is also necessary to know the structure and properties of human skin in order to successfully employ some of the imaging technologies The three patterns of fingerprint ridges are the arch loop and whorl In arch the ridges enter from one side of the finger rise in the center forming an arc and then exit the other side of the finger In loop the ridges enter from one side of a finger form a curve and then exit on that same side Finally in whorl ridges form circularly around a central point of the finger 10 Figure 2 2 Arch Loop and Whorl Pattern Minutia Features Th
12. PCFGO 0 EEPGD 7 PP_EEPGD 7 WRERR 3 PP_WRERR 3 WREN 2 PP_WREN 2 WR 1 PP_WR 1 RD 0 PP_RD 0 __ OX1FF __BADRAM OX8F 0X90 0 95 0 97 OX9A OX9B __BADRAM 0X105 0 107 0 109 _ BADRAM 0X185 0X187 0X189 0X18E OX18F CP ALL equ OX1FFF CP OFF equ OX3FFF DEBUG OFF equ OX3FFF DEBUG ON equ 0X37FF WRT 1FOURTH equ OX3BFF CPD OFF equ OX3FFF CPD ON equ OX3EFF LVP ON equ OX3FFF LVP OFF equ BODEN ON equ OX3FFF BODEN OFF equ PWRTE OFF equ OX3FFF PWRTE ON equ OX3FF7 WDT ON equ OX3FFF OFF equ RC OSC equ OX3FFF HS OSC equ OX3FFE XT OSC equ OX3FFD LP OSC equ OX3FFC BOREN OFF equ OX3FBF BOREN ON equ OX3FFF CP ON equ OX1FFF FOSC EXTRC equ OX3FFF FOSC HS equ OX3FFE FOSC LP equ OX3FFC FOSC XT equ OX3FFD WDTE OFF equ WDTE ON equ OX3FFF WRT 1FOURTH equ OX3BFF 62 WRT 256 equ OX3DFF HALF 0X39FF WRT OFF equ OX3FFF define 16 877 1 z define XTAL 20 define CORE 14 define MAXRAM 368 define RAM END 0X0170 define MAXMEM 8192 define ADC 8 define ADC RES 10 define EEPROM 256 define PAGES 4 define BANKS 3 define RAM BANKS 4 define USART 1 define USB 0 define FLASH 1 define CWRITE BLOCK 8 define BANKO START 0X20 define BANKO END OX7F BANK1 START 0 00 0 define BANKI END OXOOEF define BANK2 START 0 0110 define BANK2 END 0 016 define BANK3 START 0 0190 define BANK3 END OXO
13. movwf GEN4H moviw low STR LB17 105 f call C STROUT 1 000233 equ IN MITFPGUN BAS WHILE 1 1 BC LL37 1 000235 equ IN MITFPGUN BAS PRINT 4 8 DEC3 SHOTCTR moviw 128 movwf BPFH moviw 219 f call LCD CRS moviw 3 movwf GEN4H bsf STATUS 5 ram_bank 1 movf shotCtr W bcf STATUS 5 ram bank 0 f call OUT DECC F1_000237 equ IN MITFPGUN BAS KPCOL1 1 bsf PORTB 4 Fi 000238 equ IN MITFPGUN BAS KPCOL2 1 bsf PORTB 5 Fi 000239 equ IN MITFPGUN BAS KPCOL3 0 bcf PORTB 6 Fi 000241 equ IN MITFPGUN BAS IF KPROW4 0 THEN set page 40 btfsc PORTB 3 goto BC LL40 F1 000243 equ IN MITFPGUN BAS DELAYMS 50 movlw 50 f call DL MS Fi 000245 equ IN MITFPGUN BAS WHILE KPROW1 0 WEND BC LL41 set page BC LL42 btfsc PORTB O goto BC LL42 ram_bank 0 FOJUMP BC LL41 BC LL42 1 000247 equ IN MITFPGUN BAS DELAYMS 50 movlw 50 f call DL MS F1_000249 equ IN MITFPGUN BAS PRINT AT 3 1 GUN IS LOCKED i movlw 128 movwf BPFH movlw 148 106 f call LCD CRS movlw high STR LB18 movwf GEN4H moviw low STR LB18 f call C STROUT Fi 000251 equ IN MITFPGUN BAS GOSUB SUBS SENDDATA f call subs SendData F1 000253 equ IN MITFPGUN BAS GOTO MAINCODE F JUMP mainCode FOJUMP BC LL39 Fi 000255 equ IN MITFPGUN BAS ELSEIF TRIGTS 0 THEN BC LL40 set page BC LL43 btfsc PORTD 6 goto BC LL43 F1 000257 equ IN MITFPGUN BAS DELAYMS 50 moviw 50 f call DL M
14. 1 subwf logRetry W set page BC LL13 bcf STATUS 5 ram_bank 0 btfsc STATUS O goto BC LL13 F1_000123 equ IN MITFPGUN BAS INC LOGRETRY bsf STATUS 5 ram_bank 1 incf logRetry F 1 000124 equ IN MITFPGUN BAS DELAYMS 2000 movlw 7 bcf STATUS 5 ram_bank 0 movwf PP1H moviw 208 f call DLY W F1 000125 equ IN MITFPGUN BAS GOTO JMP MCSTART F JUMP jmp mcStart F JUMP BC LL14 BC LL13 F1 000127 equ IN MITFPGUN BAS ELSE F1 000129 equ IN MITFPGUN BAS ENDIF 14 FOJUMP 9 BC LL10 F1 000131 equ IN MITFPGUN BAS CASE 1 bsf STATUS 5 ram_bank 1 decf userID W iorwf userIDH W set page 16 bcf STATUS 5 ram bank 0 btfss STATUS 2 98 goto 16 jmp AdminStart F1 000137 equ IN MITFPGUN BAS CLS f call LCD CLS F1_000138 equ IN MITFPGUN BAS PRINT AT 1 1 1 CHANGE FINGERPRINT moviw 128 movwf BPFH f call LCD CRS movlw high STR LB6 movwf GEN4H moviw low STR LB6 f call C STROUT F1 000139 equ IN MITFPGUN BAS PRINT 2 1 2 CHANGE SMS NUMBER moviw 128 movwf BPFH moviw 192 f call LCD CRS moviw high STR LB7 movwf GEN4H moviw low STR LB7 f call C STROUT F1_000140 equ IN MITFPGUN BAS PRINT AT 3 1 3 UNLOCK GUN moviw 128 movwf BPFH moviw 148 f call LCD CRS movlw high STR LB8 movwf GEN4H moviw low STR LB8 f call C STROUT F1 000141 equ IN MITFPGUN BAS PRINT AT 4 1 4 EXIT moviw 128 movwf BPFH moviw 212 LCD CRS movlw hi
15. IN MITFPGUN BAS TMPVAL 2 O clrf tmpVal 2 F1_000831 equ IN MITFPGUN BAS VAL TMPVAL DEC moviw 218 bcf STATUS 5 ram_bank 0 f call VALDEC 32 bsf STATUS 5 ram_bank 1 movwf hr F1_000833 equ IN MITFPGUN BAS TMPVAL 0 TIMESTAMPS 12 movf timeStamps 12 W bcf STATUS 5 ram_bank 0 movwf PBP VARO movf PBPZVARO W bsf STATUS 5 ram_bank 1 movwf tmpVal 0 F1_000834 equ IN MITFPGUN BAS TMPVAL 1 TIMESTAMPS 13 movf timeStamps 13 W bcf STATUS 5 ram_bank 0 movwf PBP VARO movf PBP VARO W bsf STATUS 5 ram_bank 1 movwf tmpVal 1 F1 000835 equ IN MITFPGUN BAS 2 0 clrf tmpVal 2 F1 000837 equ IN MITFPGUN BAS MN VAL TMPVAL DEC moviw 218 bcf STATUS 5 ram_bank 0 f call VALDEC 32 bsf STATUS 5 ram_bank 1 movwf mn F1_000839 equ IN MITFPGUN BAS TMPVAL 0 TIMESTAMPS 15 181 timeStamps 15 W bcf STATUS 5 ram bank 0 movwf PBPZVARO movf PBPZVARO W bsf STATUS 5 ram bank 1 movwf tmpValz Fi 000840 IN MITFPGUN BAS TMPVAL 1 TIMESTAMPS 16 timeStamps 16 W bcf STATUS 5 ram bank 0 movwf PBPZVARO movf PBPZVARO W bsf STATUS 5 ram bank 1 movwf tmpVal 1 F1 000841 equ MITFPGUN BAS 2 O clrf tmpValz 2 F1 000843 equ IN MITFPGUN BAS SC VAL TMPVAL DEC moviw 218 bcf STATUS 5 ram bank 0 VALDEC 32 bsf STATUS 5 ram bank 1 movwf sc Fi 000845 equ IN MITFPGUN BAS IF HR 0 THEN movf
16. MITFPGUN BAS CLS f call LCD CLS F1_000315 egu IN MITFPGUN BAS PRINT AT 1 1 VERIFYING moviw 128 movwf BPFH f call LCD CRS movlw high STR LB19 110 movwf GEN4H moviw low STR LB19 f call C STROUT F1 000316 equ IN MITFPGUN BAS PRINT 2 1 FINGERPRINT moviw 128 movwf BPFH moviw 192 f call LCD CRS movlw high STR LB20 movwf GEN4H moviw low STR LB20 f call C STROUT F1 000318 equ IN MITFPGUN BAS GOSUB SUBS FPSENDRQ f call subs FPSendRQ 1 000320 equ MITFPGUN BAS USERID O bsf STATUS 5 ram bank 1 clrf userIDH clrf userID 1 000322 equ MITFPGUN BAS IF SREPLY 8 FF AND SREPLY 7 F4 THEN bcf STATUS 5 ram bank 0 movf sReply 8 W movwf PBPZVARO incf PBPZVARO W moviw 1 btfss STATUS 2 moviw 0 movwf SP P9 movf sReply 7 W movwf PBP VARO moviw 244 subwf PBP VARO W moviw 1 btfss STATUS 2 moviw 0 andwf SP P9 F set page BC LL56 btfsc STATUS 2 goto BC LL56 F1 000324 equ IN MITFPGUN BAS SERIN PORTD 5 84 WAIT SAA STR SREPLYV23 moviw PORTD movwf GEN moviw 32 111 movwf GENH clrf PP5H movlw 84 movwf PP5 PBOLB58 f call SERIN sublw 170 set page PB LB58 btfss STATUS 2 goto PB LB58 clrf PBP VARO PB LB61 f call SERIN movf PBP VARO W movwf GEN4H movlw 119 movwf GEN4 movf PP1 W f call PUT ARRAY incf PBP VARO F movf PBP VARO W sublw 23 set page PB LB61 btfss STATUS 2 goto PB LB61 F1_000326 equ IN MITFPGUN BAS IF SREPLY 5 00 THEN movf sRe
17. MITFPGUN BAS SELECT CASE KEYTEMP 1 000165 IN MITFPGUN BAS CASE 1 2 movlw 49 bsf STATUS 5 ram bank 1 subwf keytemp W set page 26 bcf STATUS 5 ram bank 0 btfsc STATUS 2 goto BC LL26 moviw 50 bsf STATUS 5 ram bank 1 subwf keytemp W set page BC LL25 bcf STATUS 5 ram_bank 0 btfss STATUS 2 goto BC LL25 BC LL26 F1 000167 IN MITFPGUN BAS CLS f call LCD CLS F1_000168 egu IN MITFPGUN BAS PRINT AT 1 1 DELETING FP moviw 128 movwf BPFH f call LCD CRS movlw high STR LB13 movwf GEN4H moviw low STR LB13 f call C STROUT F1_000169 equ IN MITFPGUN BAS PRINT 2 1 PLEASE WAIT moviw 128 movwf BPFH 101 moviw 192 LCD CRS moviw high STR LB14 movwf GEN4H moviw low STR LB14 f call C STROUT Fi 000172 egu IN MITFPGUN BAS USERID KEYTEMP 30 moviw 208 bsf STATUS 5 ram_bank 1 addwf keytemp W movwf userID moviw 255 btfsc STATUS O addlw 1 movwf userIDH Fi 000173 equ IN MITFPGUN BAS FPC 2 moviw 2 bcf STATUS 5 ram bank 0 movwf FPC Fi 000174 equ IN MITFPGUN BAS GOSUB SUBS FPCOMMAND subs FPCommand Fi 000176 IN MITFPGUN BAS DELAYMS 1000 moviw 3 movwf PP1H moviw 232 f call DLY W 1 000178 IN MITFPGUN BAS USERID KEYTEMP 30 moviw 208 bsf STATUS 5 ram_bank 1 addwf keytemp W movwf userID moviw 255 btfsc STATUS 0 addlw 1 movwf userIDH Fi 000179 equ IN MITFPGUN BAS FPC 1 movi
18. Pind Vin Pin3 GND Ping gt Ro Lt 2 e 15em Je a HE uel ud 4 n a E E TA Pin3 GND AS m gt Ping o 5 c Pinl Tx nm 4 gt Fig2 1 Shape of ADST11SD300 amp 310 Table2 1 Connector Signal description i 4 DC Input Range of voltage is 3 3V 5V 210 2 2 Dimension of ADST11SD300 a HOC CPU SAB SAKE RER RE E SAR ed t 20 65 Fig2 2 Dimension of ADST11SD300 20 2 3 Dimension of ADST11SD310 Fig 2 3 Dimension of ADST11SD310 211 3 Communication Protocol The module is used as a slave device The Master device sends relative commands to control it The CMD sent by the master and the ACK signal returned by the module Command interface UART Universal Asynchronous Receiver Transmitter Default Setting is 115200BPS 1 start bit 1 stop bit check bit 3 1 The process of communication HOST TARGET ADST115D300 amp 310 Begin Wait Command Command Packet Receive Command Send Command Data Packet HEENEEEEEEEE Enn HE Process Command Response Packet Receive Result Data Packet Send Result End 212 Fig3 1 Process of Communication Notice Host do not send next command until receive result except send FP Cancel 3 2 Classify of communication p
19. btfsc PORTB O goto BC LL120 F1 000514 equ IN MITFPGUN BAS DELAYMS 50 moviw 50 f call DL MS F1 000516 equ IN MITFPGUN BAS WHILE KPROW1 O WEND BCQLL121 set page BC LL122 btfsc PORTB O goto BC LL122 ram_bank 0 F JUMP BC LL121 BC LL122 F1 000518 equ IN MITFPGUN BAS DELAYMS 50 moviw 50 f call DL MS 127 F1 000520 equ IN MITFPGUN BAS LOOKUPL KPCTR 1 2 3 bsf STATUS 5 ram bank 1 movf kpCtr W bcf STATUS 5 ram bank 0 movwf PP1 sublw 2 set page LE LB1 btfss STATUS 0 goto LE LB1 STATUS O rif PP1 W addwf PP1 F f call L LB3 movwf PPO incf PP1 F f call L LB3 movwf PPOH incf PP1 F f call L LB3 f call L KL movf PPO W bsf STATUS 5 ram bank 1 movwf keytemp bcf STATUS 5 ram bank 0 F JUMP LE LB1 L LB3 movlw LK LB2 gt gt 8 amp 255 movwf PCLATH movf PP1 W if gt gt 8 9 gt gt 8 goto SO LB123 org 255 amp 65280 SO LB123 endif addwf PCL F LK LB2 dt 49 amp 255 49 gt gt 8 amp 255 0 dt 50 amp 255 50 gt gt 8 amp 255 0 dt 51 amp 255 51 gt gt 8 amp 255 0 LE LB1 128 F1 000522 equ IN MITFPGUN BAS GOTO SJ KPR END F JUMP sj kpr end F JUMP 119 F1 000524 equ IN MITFPGUN BAS ELSEIF KPROW2 0 THEN BC LL120 set page BC LL124 btfsc PORTB 1 goto BC LL124 F1 000526 equ IN MITFPGUN BAS DELAYMS 50 moviw 50 f call DL MS F1 000528 equ IN MITFPGUN BAS WHILE KPROW2 0 W
20. btfss STATUS 2 goto BC LL95 F1_000443 equ IN MITFPGUN BAS PRINT AT 2 1 USER DELETED 7 moviw 128 movwf BPFH moviw 192 LCD CRS movlw high STR LB29 movwf GEN4H moviw low STR LB29 f call C STROUT F JUMP BC LL96 BC LL95 F1 000445 equ IN MITFPGUN BAS ELSE 1 000447 equ IN MITFPGUN BAS PRINT AT 2 1 OPERATION ERROR moviw 128 movwf BPFH moviw 192 f call LCD CRS movlw high STR LB30 movwf GEN4H moviw low STR LB30 f call C STROUT F1 000448 equ IN MITFPGUN BAS GOTO SJ FPC COMPLETE F JUMP sj FPC Complete F1 000450 equ IN MITFPGUN BAS ENDIF 122 96 Fi 000453 equ IN MITFPGUN BAS END SELECT BCOLL90 BC LL49 sj FPC Complete Fi 000461 MITFPGUN BAS RETURN return subs FPSendRQ sj FPSRQ F1 000467 MITFPGUN BAS FOR GCTR 0 TO 23 bsf STATUS 5 ram bank 1 clrf gCtr FR LB98 bcf STATUS 5 ram_bank 0 moviw 24 bsf STATUS 5 ram_bank 1 subwf gCtr W set page NX LB99 bcf STATUS 5 ram_bank 0 btfsc STATUS 0 goto NX LB99 F1_000469 equ IN MITFPGUN BAS SREPLY GCTR 00 bsf STATUS 5 ram_bank 1 movf gCtr W bcf STATUS 5 ram_bank 0 movwf GEN4H moviw 119 movwf GEN4 moviw 0 f call PUT ARRAY CT LB100 F1 000471 equ IN MITFPGUN BAS NEXT GCTR moviw 1 bsf STATUS 5 ram bank 1 addwf gCtr F set page FR LB98 bcf STATUS 5 123 ram bank 0 btfss STATUS O goto FR LB98 NX LB99 F1 000473 equ IN MITFPGUN BAS FOR G
21. de 73 78 73 84 73 65 76 73 90 73 78 71 0 STRQLB39 de 71 83 77 32 77 79 68 85 76 69 46 46 46 46 0 STR LB40 de 65 84 43 67 73 85 82 67 61 48 0 STR LB41 de 65 84 43 67 78 77 73 61 51 44 49 44 48 44 48 44 48 0 STR LB42 de 65 84 43 67 70 85 78 61 49 0 STR LB43 de 65 84 43 67 77 71 70 61 49 0 STR LB44 de 65 84 43 67 77 69 69 61 48 0 STR LB45 de 65 84 43 67 83 68 72 61 48 0 STR LB46 de 83 84 65 82 84 73 78 71 32 73 78 32 0 STROLB47 de 65 84 43 67 80 66 70 61 0 STR LB48 de 65 84 43 67 67 76 75 63 0 STR LB49 de 83 89 83 84 69 77 32 69 82 82 79 82 58 0 STR LB50 de 71 83 77 32 77 79 68 85 76 69 32 73 83 32 78 79 84 0 STR LB51 de 82 69 83 80 79 78 68 73 78 71 46 32 0 STR LB52 de 69 78 84 69 82 32 49 49 45 68 73 71 73 84 0 STR LB53 de 68 69 83 84 73 78 65 84 73 79 78 32 78 85 77 66 69 82 58 0 STR LB54 de 35 32 45 32 79 75 32 124 32 42 32 45 32 67 65 78 67 69 76 0 STR LB55 de 83 65 86 73 78 71 32 83 77 83 0 STR LB56 de 68 69 83 84 73 78 65 84 73 79 78 32 78 85 77 66 69 82 0 STR LB58 de 65 84 43 67 80 66 87 61 49 48 49 44 0 STR LB59 STR LB61 de 83 77 83 32 68 69 83 84 73 78 65 84 73 79 78 32 0 STR LB60 204 de 78 85 77 66 69 82 32 83 65 86 69 68 46 0 STR LB62 de 78 85 77 66 69 82 32 82 69 71 73 83 84 82 65 84 73 79 78 0 STR LB63 de 67 65 78 67 69 76 76 69 68 46 0 STR LB64 de 83 69 78 68 73 78 71 32 68 65 84 65 44 0 STR LB65 de 80 76 69 65 83 69 32 87 65 73 84 0 STR LB66 de 65 84 43 67 77 71 83 61 0 STR LB6 de
22. goto subs SMS InitFailed sublw 75 set page PB LB198 btfss STATUS 2 goto PB LB198 F1_000765 equ IN MITFPGUN BAS DELAYMS 100 moviw 100 f call DL MS F1 000767 equ IN MITFPGUN BAS PRINT AT 3 1 STARTING moviw 128 movwf BPFH moviw 148 LCD CRS movlw high STR LB46 movwf GEN4H movlw low STR LB46 COSTROUT 170 F1 000769 equ MITFPGUN BAS FOR GCTR 10 1 STEP 1 moviw 10 bsf STATUS 5 ram bank 1 movwf gCtr FR LB199 bcf STATUS 5 ram_bank 0 bsf STATUS 5 ram_bank 1 movf gCtr F set page NX LB200 bcf STATUS 5 ram_bank 0 btfsc STATUS 2 goto NX LB200 F1 000771 equ IN MITFPGUN BAS PRINT AT 3 13 DEC2 GCTR SEC moviw 128 movwf BPFH moviw 160 f call LCD CRS moviw 2 movwf GEN4H bsf STATUS 5 ram_bank 1 movf gCtr W bcf STATUS 5 ram_bank 0 f call OUT DECC moviw 32 f call PRINT movlw 83 f call PRINT moviw 69 f call PRINT moviw 67 f call PRINT 1 000772 equ IN MITFPGUN BAS DELAYMS 1000 movlw 3 movwf PP1H movlw 232 f call DLY W CT LB201 F1 000774 equ IN MITFPGUN BAS NEXT GCTR 171 moviw 1 bsf STATUS 5 ram bank 1 subwf gCtr F set page FR LB199 bcf STATUS 5 ram_bank 0 btfsc STATUS O goto FR LB199 NX LB200 1 000776 equ IN MITFPGUN BAS FOR GCTR 0 TO 10 bsf STATUS 5 ram_bank 1 clrf gCtr FR LB202 bcf STATUS 5 ram_bank 0 moviw 11 bsf STATUS 5 ram_bank 1 subwf gCtr W set page NX
23. guns are more secured because only the rightful owner has access to this device with its built in fingerprint scanner that would determine if the user is the registered print or not Also passing and sharing of guns will not be possible because for every person there is a unique finger print and only the registered owner can pull the trigger It can also affect the social relation of the agency to its clients ensuring the safety of their customers and having a more advanced weapon that is more secured than the conventional gun Differentiation This design project is unique since the only people who can access the firearm will be the administrator and the user compared to the firearms today which is can be used by anyone In the Biometric Analysis for Firearm Identification with Real Time Detection for Ballistic Projectile via SMS the trigger can only be accessed by the registered user of the gun It sends an alerts message through the SMS once an invalid fingerprint has been identified It is capable of transmitting the total number of shots the time and date once the firearm is disabled The fingerprint scanner allows the user to unlock the gun whenever he wants to use it Lastly it can help in the investigation of crimes While in the Fingerprint Gun Lock Safe Gun Vault the device only serves as storage of the gun that can only be accessed by a valid fingerprint Thus anyone can still use the firearm once the Gun Vault is unlocked
24. movwf FPEMsg 16 movlw 73 movwf FPEMsg 17 movlw 68 movwf FPEMsg 18 movlw 46 movwf FPEMsg7 19 FPEMSg420 151 F JUMP 136 BC LL170 F1 000594 equ IN MITFPGUN BAS CASE 62 STR FPEMSG TIMEOUT VAL INVALID 0 moviw 98 subwf FPECode W set page BC LL172 btfss STATUS 2 goto BC LL172 ram bank 0 movlw 84 movwf FPEMsg 0 movlw 73 movwf FPEMsg 1 movlw 77 movwf FPEMsg Z2 movlw 69 movwf FPEMsg 3 movlw 79 movwf FPEMsg 44 movlw 85 movwf FPEMsg 5 movlw 84 movwf FPEMsg 6 movlw 32 movwf FPEMsg Z7 moviw 86 movwf FPEMsg 8 movlw 65 movwf FPEMsg 9 movlw 76 movwf FPEMsg 10 movlw 32 movwf FPEMsg 11 movlw 73 movwf FPEMsg 12 movlw 78 movwf FPEMsg 13 moviw 86 movwf FPEMsg 14 movlw 65 movwf FPEMsg 15 movlw 76 movwf FPEMsg 16 152 movlw 73 movwf FPEMsg 17 movlw 68 movwf FPEMsg 18 movlw 46 movwf FPEMsg7 19 cirf FPEMSg420 F JUMP 136 BC LL172 F1 000595 equ IN MITFPGUN BAS CASE 63 STR FPEMSG BAUD RATE INVALID O movlw 99 subwf FPECode W set page BC LL174 btfss STATUS 2 goto BC LL174 ram_bank 0 movlw 66 movwf FPEMsg 0 movlw 65 movwf FPEMsg 1 movlw 85 movwf FPEMsg Z2 movlw 68 movwf FPEMsg 3 movlw 32 movwf FPEMsg 4 movlw 82 movwf FPEMsg 5 movlw 65 movwf FPEMsg 6 movlw 84 movwf FPEMsg Z7 movlw 69 movwf FPEMsg 8 movlw 32 movwf FPEMsg 9 movlw 73 movwf FPEMsg 10 movlw 78 movwf FPEMsg 11 moviw 86 movwf FPEMsg 12 movlw 65 153 movwf FPEMsg 13 mov
25. skpnz subwf 62 W goto 6 bsf 3 7 17 moviw 32 addwf 62 F skpnc incf 63 F moviw 1 subwf 63 W moviw 112 skpnz subwf 62 W goto FA EXT moviw 32 addwf 62 F FA EXT movf 62 W movwf 4 return LCD CLS moviw 128 movwf 33 CLS moviw 254 call CH SND moviw 1 call CH SND moviw 117 movwf 48 moviw 48 goto DLUS W LCD CUR clrf 33 bsf 33 7 CURSOR movwf 60 tstf 60 Skpz decf 60 F movlw 254 call CH SND tstf 35 skpnz goto 3 decfsz 35 W goto 3 78 movlw 128 goto 18 movf 35 W xorlw 2 Skpz goto 3 movlw 192 goto 4 12 movf 35 W xorlw 3 Skpz goto 3 movlw 148 goto 6 movf 35 W xorlw 4 Skpz goto 3 movlw 212 movwf 35 movf 60 W addwf 35 W goto CH SND LCD CRS 33 bsf 33 7 CURS movwf 60 movlw 254 call CHOSND movf 60 W goto CH SND IN DEC32 53 clrf 54 clrf 55 56 bcf 43 5 IN DECB32 call CH RCV return addlw 211 skpnz 79 bsf 43 5 addlw 45 addiw 198 skpnc goto IN DECB32 addlw 10 goto IN DECB32 IN DCL132 movwf 51 clrf 50 clrf 49 clrf 48 movlw 10 movwf 47 call AL MUL movf 51 W addwf 47 W movwf 53 movf 48 W movwf 54 clrw skpnc movlw 1 addwf 54 F movf 49 W movwf 55 clrw skpnc movlw 1 addwf 55 F movf 50 W movwf 56 clrw skpnc movlw 1 addwf 56 F decf 41 F skpnz goto IN BNF32 call CH RCV return add
26. 8 movlw 69 movwf FPEMsg 9 movlw 82 140 movwf FPEMsg 10 movlw 69 movwf FPEMsg 11 movlw 68 movwf FPEMsg 12 movlw 32 movwf FPEMsg 13 movlw 85 movwf FPEMsg 14 83 movwf FPEMsg 15 movlw 69 movwf FPEMsg 16 movlw 82 movwf FPEMsg 17 83 movwf FPEMsg 18 movlw 46 movwf FPEMsg 19 cirf FPEMSg420 F JUMP BC LL136 BC LL150 F1 000584 equ IN MITFPGUN BAS CASE 19 STR FPEMSG ALREADY REGISTERED 0 movlw 25 subwf FPECode W set page BC LL152 btfss STATUS 2 goto BC LL152 ram bank 0 movlw 65 movwf FPEMsg Z0 movlw 76 movwf FPEMsg 1 movlw 82 movwf FPEMsg 2 movlw 69 movwf FPEMsg 3 movlw 65 movwf FPEMsg 44 movlw 68 movwf FPEMsg 5 movlw 89 movwf FPEMsg 6 141 movlw 32 movwf FPEMsg Z7 movlw 82 movwf FPEMsg 8 movlw 69 movwf FPEMsg 9 movlw 71 movwf FPEMsg 10 movlw 73 movwf FPEMsg 11 83 movwf FPEMsg 12 movlw 84 movwf FPEMsg 13 movlw 69 movwf FPEMsgZ 14 movlw 82 movwf FPEMsg 15 movlw 69 movwf FPEMsg 16 movlw 68 movwf FPEMsg 7 17 movlw 46 movwf FPEMsg 18 movlw 32 movwf FPEMsg 19 cirf FPEMSg420 F JUMP BC LL136 BC LL152 F1 000585 equ IN MITFPGUN BAS CASE 21 STR FPEMSG BAD IMAGE 0 moviw 33 subwf FPECode W set page BC LL154 btfss STATUS 2 goto BC LL154 ram_bank 0 moviw 66 movwf FPEMsg 0 movlw 65 movwf FPEMsg 1 movlw 68 movwf FPEMsg Z2 movlw 32 movwf FPEMsg 3 142 movlw 73 movwf FPEMsg 4 movlw 77 movwf FPEMsg 5 movlw 65 movwf FPEMsg 6 movlw
27. APL Security Services Corporation APL Security Services Corps is a corporate entity registered under the Securities and Exchange Commission SEC on March 2007 The agency was put up by individuals who are experienced and knowledgeable in the field of security management The agency is capable of providing security and safety to its corporate as well as individual clients The ability to protect life and the ability to prevent loss in any given situation is the corporation s primary concern Need The APL Security Services Corporation needs a device that would prevent misuse of guns and avoid any accidents As it can seen in the news today there are several cases of misuse of guns or accidentally pulling the trigger To prevent events like these to happen again the agency decided to adopt the present design that would improve the safety not only of their clients but also of the weapons that their guards are using Solution With the need to prevent events like these and as requested by the APL Security Services Corporation the researchers came up with a solution of replacing the safety locks of the firearms with biometrics which uses the fingerprint The proposed system will replace the existing system with an innovative system that will lessen accidents caused by accidentally pulling the trigger This will ensure the security of the people Objective The main objective of the project is to create a standalone device that is attached
28. BAS CLS f call LCD CLS F1 000873 IN MITFPGUN BAS PRINT AT 1 1 SYSTEM ERROR moviw 128 movwf BPFH LCD CRS movlw high STR LB49 movwf GEN4H moviw low STR LB49 f call C STROUT F1 000874 equ IN MITFPGUN BAS PRINT 2 1 GSM MODULE IS NOT moviw 128 movwf BPFH moviw 192 f call LCD CRS movlw high STR LB50 movwf GEN4H moviw low STR LB50 f call C STROUT F1 000875 equ IN MITFPGUN BAS PRINT 3 1 RESPONDING moviw 128 movwf BPFH moviw 148 f call LCD CRS moviw high STR LB51 movwf GEN4H moviw low STR LB51 f call C STROUT 184 F1 000877 equ IN MITFPGUN BAS GOSUB SUBS LOCKGUN f call subs LockGun Fi 000879 equ MITFPGUN BAS WHILE 1 1 BC LL220 F1 000881 equ IN MITFPGUN BAS MYBUZZER MYBUZZER moviw 16 xorwf PORTC F F1 000882 equ IN MITFPGUN BAS DELAYMS 500 moviw 1 movwf PP1H moviw 244 f call DLY W F1 000885 equ IN MITFPGUN BAS WEND FOJUMP BC LL220 BC LL221 1 000888 equ IN MITFPGUN BAS RETURN return subs SMS RegisterUser sjumps SRUStart F1 000895 equ MITFPGUN BAS FOR GCTR 0 TO 10 bsf STATUS 5 ram bank 1 gCtr FR LB223 bcf STATUS 5 ram_bank 0 moviw 11 bsf STATUS 5 ram_bank 1 subwf gCtr W set page NX LB224 bcf STATUS 5 ram_bank 0 btfsc STATUS O goto NX LB224 F1 000897 equ IN MITFPGUN BAS UNUM1 GCTR O bsf STATUS 5 ram_bank 1 movf gCtr W addlw uNum1 movwf FSR moviw 48 movwf INDF CT
29. GD TEMPLATE EMPTY The appointed Template Data are null 5 2 Flow of Enroll and Verify and Identify process 5 2 1 Enroll 221 Waiting for finger CaptureSuccess Yes Increasing Counter No No Generalize Success Yes Result Success Result Fail Fig 5 1 Flow of Enroll 222 5 2 2 Verify amp Identify Waiting for finger x ge No No Result Timeout No CaptureSuccess Ves Verify or Identify Result Fail e n Yes Result Accept Result Reject Fig 5 2 Flow of Verify and Identify 223 C os H A T E D 1N4001 1N400 Please click here to visit our online spice models database Features Diffused Junction High Current Capability and Low Forward Voltage Drop Surge Overload Rating to 30A Peak A B Low Reverse Leakage Current d Lead Free Finish RoHS Compliant Note 3 Mechanical Data Fa Case DO 41 D Case Material Molded Plastic UL Flammability Classification Rating 94V 0 Moisture Sensitivity Level 1 per J STD 020D Terminals Finish Bright Tin Plated Leads Solderable per MIL STD 202 Method 208 Polarity Cathode Band Mounting Position Any Ordering Information See Page 2 Marking Type Number Weight 0 30 grams approximate DO 41 Plastic Min 2540 B 406 521 D 200 272 All Dimensions in mm
30. GSM Module has successfully initialized If no restart the system an wait for the GSM Module to initialize properly 53 4 2 If the GSM Module fails to send the data reload the SIM card so that the GSM Module can send message again 5 ERROR DEFINITIONS 5 1 GSM Module initializing error the GSM Module fails to acquire network 5 2 GSM Module error sending message the system fails to send the message of the total number of shots and the data and time B PICTURES OF PROTOTYPE 54 SCHAHGE EP MANGE FINGERPRINT MB 3 P USER FF FANGE CMS NUMBER l NER A DCHHCEL SUKHLOCK RS sEAIT en eg 1 46 pm SMART GUN 06 5 2012 1 45 pm SMART 5 PRESS TU LU SHOTS SMART GUN PRESS 4 TO WHLOCK ull EX ETT amp SMART GUN SMART GUN 06 Sep 2012 1 38 pm 06 Sep 2012 1 41 pm RT GUN DATA _ GUN DATA USER LOGGED ADMIN ER OGGED UA 09 06 2012 TIME 01 36 PM 55 C PROGRAM LISTING Code Produced by the Proton Compiler Ver 3 5 2 5 Copyright Rosetta Technologies Crownhill Associates Ltd Written by Les Johnson September 2011 r r LIST P 16F877A F INHX8M W 2 X ON R DEC MM ON N 0 C 255 INDF equ 0X0000 TMRO equ 0X0001 PCL equ 0X0002 STATUS equ 0X0003 FSR equ 0X0004 PORTA equ 0X0005 PORTB equ 0X0006 PORTC equ 0X
31. LB203 bcf STATUS 5 ram_bank 0 btfsc STATUS O goto NX LB203 F1 000778 equ IN MITFPGUN BAS UNUM1 GCTR O bsf STATUS 5 ram_bank 1 movf gCtr W addlw uNum1 movwf FSR moviw 48 movwf INDF CT LB204 bcf STATUS 5 ram_bank 0 F1_000780 equ IN MITFPGUN BAS NEXT GCTR moviw 1 bsf STATUS 5 ram_bank 1 addwf gCtr F set page FR LB202 bcf STATUS 5 172 ram bank 0 btfss STATUS O goto FR LB202 NX LB203 1 000782 equ IN MITFPGUN BAS UNUM1 11 O bsf STATUS 5 ram_bank 1 uNum1 411 F1 000786 equ MITFPGUN BAS HSEROUT AT CPBF 34 ADMIN 34 13 moviw 4 bcf STATUS 5 ram bank 0 movwf BPFH movlw STR LB47 gt gt 8 4 255 movwf GEN4H movlw STR LB47 255 C STROUT moviw 34 f call HRSOUT moviw 65 f call HRSOUT moviw 68 f call HRSOUT moviw 77 f call HRSOUT moviw 73 f call HRSOUT moviw 78 f call HRSOUT moviw 34 f call HRSOUT moviw 13 f call HRSOUT F1 000787 equ IN MITFPGUN BAS HSERIN 3500 SUBS_SMS_INITFAILED WAIT CPBF WAIT 34 STR UNUM1 11 WAIT OK moviw 13 movwf GENH moviw 172 movwf GEN PB LB205 f call HRSIN2 set page subs SMS InitFailed btfss STATUS O goto subs_SMS_InitFailed 173 sublw 43 set page PB LB205 btfss STATUS 2 goto PB LB205 f call HRSIN2 set page subs SMS InitFailed btfss STATUS O goto subs_SMS_InitFailed sublw 67 set page PB LB205 btfss STATUS 2 goto PB LB205 f call HRSIN2 set page subs SMS InitFailed btfss ST
32. LB225 185 bcf STATUS 5 ram bank 0 F1 000899 equ IN MITFPGUN BAS NEXT GCTR moviw 1 bsf STATUS 5 ram bank 1 addwf gCtr F set page FR LB223 bcf STATUS 5 ram_bank 0 btfss STATUS O goto FR LB223 NX LB224 F1 000901 equ IN MITFPGUN BAS UNUM1 11 0 bsf STATUS 5 ram_bank 1 uNum1 411 1 000902 equ IN MITFPGUN BAS GCTR 0 clrf gCtr sjumps_SRU_encodeNum bcf STATUS 5 ram_bank 0 F1_000906 equ IN MITFPGUN BAS CLS f call LCD CLS F1_000907 equ IN MITFPGUN BAS PRINT 1 1 ENTER 11 DIGIT moviw 128 movwf BPFH f call LCD CRS moviw high STR LB52 movwf GEN4H moviw low STR LB52 f call C STROUT F1_000908 equ IN MITFPGUN BAS PRINT AT 2 1 DESTINATION NUMBER moviw 128 movwf BPFH moviw 192 LCD CRS movlw high STR LB53 movwf GEN4H moviw low STR LB53 f call C STROUT F1 000909 equ IN MITFPGUN BAS PRINT 3 1 STR UNUM1 11 moviw 128 movwf BPFH 186 moviw 148 f call LCD CRS moviw 126 f call PRINT moviw 32 f call PRINT moviw 11 movwf GEN4 clrf PP2H moviw 185 SB STROUT F1 000911 equ IN MITFPGUN BAS PRINT FE 0F moviw 254 f call PRINT moviw 15 f call PRINT F1 000914 egu IN MITFPGUN BAS WHILE 1 1 BC LL227 F1 000916 equ IN MITFPGUN BAS PRINT AT 3 GCTR 3 moviw 128 movwf BPFH moviw 3 movwf GEN moviw 3 bsf STATUS 5 ram_bank 1 addwf gCtr W bcf STATUS 5 ram_bank 0 f call CURSOR F1_000918 equ IN MITFPGU
33. PRINT AT 3 1 7 movlw 128 movwf BPFH movlw 148 f call LCD CRS movlw 55 f call PRINT 168 F1 000757 equ IN MITFPGUN BAS HSEROUT AT CSDH 0 13 movlw 4 movwf BPFH movlw STR LB45 gt gt 8 4 255 movwf GEN4H moviw STR LB45 4 255 COSTROUT movlw 13 HRSOUT F1 000758 MITFPGUN BAS HSERIN 1500 SUBS SMS INITFAILED WAIT OK movlw 5 movwf GENH movlw 220 movwf GEN PBOLB197 f call HRSIN2 set page subs SMS InitFailed btfss STATUS O goto subs SMS InitFailed sublw 79 set page 8197 btfss STATUS 2 goto PB LB197 f call HRSIN2 set page subs SMS InitFailed btfss STATUS O goto subs SMS InitFailed sublw 75 set page PB LB197 btfss STATUS 2 goto PB LB197 F1_000759 equ IN MITFPGUN BAS DELAYMS 100 movlw 100 f call DL MS 1 000761 IN MITFPGUN BAS PRINT AT 3 1 8 movlw 128 movwf BPFH movlw 148 f call LCD CRS movlw 56 f call PRINT F1 000763 equ IN MITFPGUN BAS HSEROUT ATE1 13 movlw 65 169 HRSOUT movlw 84 HRSOUT movlw 69 f call HRSOUT movlw 49 HRSOUT moviw 13 HRSOUT 1 000764 MITFPGUN BAS HSERIN 1500 SUBS SMS INITFAILED WAIT OK moviw 5 movwf GENH movlw 220 movwf GEN PB LB198 f call HRSIN2 set page subs SMS InitFailed btfss STATUS O goto subs SMS InitFailed sublw 79 set page PB LB198 btfss STATUS 2 goto PB LB198 f call HRSIN2 set page subs SMS InitFailed btfss STATUS O
34. STR LB37 f call C STROUT 1 000649 equ IN MITFPGUN BAS WHILE 1 1 BCOLL185 F1 000651 MITFPGUN BAS 0 bsf STATUS 5 ram bank 1 clrf keytemp 1 000652 equ IN MITFPGUN BAS GOSUB SUBS KP3X416FR bcf STATUS 5 ram bank 0 f call subs KP3x416FR 1 000653 IN MITFPGUN BAS IF lt gt AND KEYTEMP lt gt AND KEYTEMP 0 THEN movlw 42 bsf STATUS 5 ram bank 1 subwf keytemp W btfss STATUS 2 moviw 1 bcf STATUS 5 ram bank 0 movwf SP P9 moviw 35 bsf STATUS 5 ram bank 1 subwf keytemp W btfss STATUS 2 moviw 1 bcf STATUS 5 ram bank 0 andwf SP P9 F moviw 0 bsf STATUS 5 ram bank 1 movf keytemp F btfss STATUS 2 moviw 1 bcf STATUS 5 ram bank 0 andwf SPZPO F set page 188 159 btfsc STATUS 2 goto 188 F1 000656 equ MITFPGUN BAS USERID KEYTEMP 30 moviw 208 bsf STATUS 5 ram bank 1 addwf keytemp W movwf userID moviw 255 btfsc STATUS O addlw 1 movwf userIDH F1 000657 IN MITFPGUN BAS GOSUB SUBS FPCOMMAND bcf STATUS 5 ram bank 0 subs FPCommand 1 000659 equ IN MITFPGUN BAS DELAYMS 3000 moviw 11 movwf PP1H moviw 184 f call DLY W F1 000661 equ IN MITFPGUN BAS GOTO SJ HWDSTART F JUMP sj hwdsStart F1 000663 equ IN MITFPGUN BAS ENDIF BC LL188 F1 000665 equ IN MITFPGUN BAS WEND F JUMP 185 BC LL186 FOJUMP BC LL179 F1 000667 equ IN MITFPGU
35. STR LB65 f call C STROUT F1_001018 equ IN MITFPGUN BAS GOSUB SUBS_SMS_SYNCTIME f call subs SMS SyncTime F1 001020 equ MITFPGUN BAS HSEROUT AT CMGS 34 STR UNUM1 11 34 13 195 moviw 4 movwf BPFH movlw STR LB66 gt gt 8 amp 255 movwf GEN4H movlw STR LB66 255 f call C STROUT moviw 34 f call HRSOUT moviw 11 movwf GEN4 clrf PP2H moviw 185 SB STROUT moviw 34 f call HRSOUT moviw 13 f call HRSOUT Fi 001021 equ IN MITFPGUN BAS HSERIN 3500 SUBS_SMS_INITFAILED WAIT gt moviw 13 movwf GENH moviw 172 movwf GEN PB LB249 f call HRSIN2 set page subs SMS InitFailed btfss STATUS O goto subs SMS InitFailed sublw 62 set page PB LB249 btfss STATUS 2 goto PB LB249 F1_001022 equ IN MITFPGUN BAS DELAYMS 100 moviw 100 f call DL MS F1 001023 equ MITFPGUN BAS HSEROUT SMART GUN DATA REPORT 13 moviw 4 movwf BPFH movlw STR LB67 gt gt 8 amp 255 movwf GEN4H movlw STR LB67 amp 255 f call C STROUT moviw 13 f call HRSOUT 196 Fi 001024 equ IN MITFPGUN BAS HSEROUT USER LOGGED moviw 4 movwf BPFH movlw STR LB68 gt gt 8 amp 255 movwf GEN4H movlw STR LB68 255 COSTROUT 1 001026 equ IN MITFPGUN BAS SELECT CASE USERID F1 001028 equ IN MITFPGUN BAS CASE 1 bsf STATUS 5 ram bank 1 decf userID W iorwf userIDH W set page 250 bcf STATUS 5 ram bank 0 btfss STATUS 2 goto BC LL250 F1 001030 equ MITFPGUN
36. W bcf STATUS 5 ram_bank 0 movwf PP2H bsf STATUS 5 ram_bank 1 movf userID W bcf STATUS 5 ram_bank 0 movwf PP2 f call OUT DEC FOJUMP BC LL183 BC LL182 F1_000631 equ IN MITFPGUN BAS ELSE F1 000633 equ IN MITFPGUN BAS CLS f call LCD CLS F1 000634 IN MITFPGUN BAS PRINT AT 1 1 INVALID USER moviw 128 movwf BPFH f call LCD CRS movlw high STR LB36 movwf GEN4H moviw low STR LB36 f call C STROUT F1 000636 equ IN MITFPGUN BAS ENDIF BC LL183 F1_000638 equ IN MITFPGUN BAS DELAYMS 3000 moviw 11 movwf PP1H 157 moviw 184 f call DLY W F1_000640 equ IN MITFPGUN BAS GOTO SJ HWDSTART F JUMP sj_hwdStart FOJUMP 179 1 000642 equ MITFPGUN BAS ELSEIF 2 OR 3 THEN 180 moviw 50 bsf STATUS 5 ram bank 1 subwf keytemp W movlw 1 btfss STATUS 2 movlw 0 bcf STATUS 5 ram bank 0 movwf SP P9 moviw 51 bsf STATUS 5 ram bank 1 subwf keytemp W moviw 1 btfss STATUS 2 moviw 0 bcf STATUS 5 ram_bank 0 iorwf SP P9 F set page BC LL184 btfsc STATUS 2 goto BC LL184 F1 000644 equ MITFPGUN BAS FPC KEYTEMP 31 moviw 49 bsf STATUS 5 ram_bank 1 subwf keytemp W bcf STATUS 5 ram_bank 0 movwf FPC F1 000646 equ IN MITFPGUN BAS CLS f call LCD CLS 1 000647 egu IN MITFPGUN BAS PRINT 1 1 USER ID gt moviw 128 movwf BPFH f call LCD CRS 158 moviw high STR LB37 movwf GEN4H moviw low
37. btfss STATUS 2 goto BC LL34 F1 000204 equ IN MITFPGUN BAS GOTO MAINCODE F JUMP mainCode F1_000206 equ IN MITFPGUN BAS ENDSELECT BC LL34 BC LL19 F1_000208 equ IN MITFPGUN BAS WEND F JUMP BC LL17 BC LL18 F JUMP 9 BC LL16 F1_000210 equ IN MITFPGUN BAS CASE 2 bsf STATUS 5 ram_bank 1 movf userID W xorlw 2 iorwf userIDH W set page 36 bcf STATUS 5 ram bank 0 btfss STATUS 2 goto BC LL36 F1 000214 equ IN MITFPGUN BAS JMPFIRINGMODE F JUMP jmpFiringMode 104 1 000216 egu IN MITFPGUN BAS ENDSELECT BC LL36 BC LL9 F1 000219 egu IN MITFPGUN BAS ENDIF BC LL8 F1 000221 equ IN MITFPGUN BAS WEND FOJUMP BC LL5 BC LL6 jmpFiringMode F1_000225 equ IN MITFPGUN BAS GOSUB SUBS UNLOCKGUN f call subs UnLockGun Fi 000226 egu IN MITFPGUN BAS SHOTCTR 0 bsf STATUS 5 ram bank 1 clrf shotCtr Fi 000228 equ IN MITFPGUN BAS CLS bcf STATUS 5 ram bank 0 f call LCD CLS F1 000229 equ IN MITFPGUN BAS PRINT 1 1 SMART GUN moviw 128 movwf BPFH f call LCD CRS movlw high STR LB15 movwf GEN4H moviw low STR LB15 f call C STROUT F1_000230 equ IN MITFPGUN BAS PRINT AT 2 1 PRESS TO LOCK moviw 128 movwf BPFH moviw 192 f call LCD CRS movlw high STR LB16 movwf GEN4H moviw low STR LB16 f call C STROUT F1 000231 equ IN MITFPGUN BAS PRINT AT 4 1 SHOTS moviw 128 movwf BPFH moviw 212 f call LCD CRS moviw high STR LB17
38. endif if DEST_ADDR gt 0 1800 amp amp DEST ADDR lt 0X2000 PDESTINATION PAGE 3 endif if DEST_ADDR gt 0 1000 amp amp DEST ADDR lt 0X1800 PDESTINATION PAGE 2 endif if DEST_ADDR gt 0 0800 amp amp DEST ADDR lt 0X1000 PDESTINATION PAGE 1 endif if DEST_ADDR gt 0 4 DEST ADDR lt 0X0800 PDESTINATION PAGE 0 endif endm NUM_FSR macro pNumIn num_byte pNumIn FSR if pNumIn gt gt 8 amp 255 1 73 bsf STATUS 7 else bcf STATUS 7 endif endm label word macro pLabelIn pWordOut moviw low pLabelIn S b pWordOut movwf pWordOut movlw high pLabelIn S b pWordOut movwf pWordOut 1 rab endm BPF 32 BPFH 33 CSTRZCT 34 GEN 35 GEN2 36 GEN2H 37 GEN3 38 GEN3H 39 GEN4 40 GEN4H 41 GENH 42 GPR 43 PBPZVARO 44 PBPZVAR1 45 PBPZVAR2 46 PPO 47 PPOH 48 PPOHH 49 PPOHHH 50 1 51 PP1H 52 PP2 53 PP2H 54 PP2HH 55 PP2HHH 56 PP3 57 PP3H 58 PP4 59 PP5 60 PP5H 61 74 PP6 62 PP6H 63 PP7 64 PP7H 65 PPZ 66 PPZH 67 PPZHH 68 PPZHHH 69 RPFH 70 SP P9 71 FPC 72 FPECode 73 FPEMsg 74 variable FPEMsg 0 74 FPEMsg 1 75 FPEMsg 2 76 FPEMsg 3 77 variable FPEMsg 4 78 FPEMsg 5 79 FPEMsg 6 80 FPEMsg 7 81 variable FPEMsg 8 82 FPEMsg 9 83 FPEMsg 10 284 FPEMsg 7 11 85 variable FPEMsg 12 86 FPEMsg 13 87 FPEMsg 14 88 FPEMsg 715 89 variable FP
39. macro pNumIn movlw pNumIn amp 255 endm num byte macro pNumIn pByteOut S b pByteOut if oNumIn 0 clrf pByteOut else movlw pNumIn amp 255 movwf pByteOut endif rab endm num bit macro pNumIn pVarOut pBitout S b pVarOut if pNumIn 1 1 bsf pVarOut pBitout else bcf pVarOut pBitout endif rab endm num word macro pNumIn pWordOut 68 amp 255 0 S b pWordOut pWordOut else S b pWordOut movlw low pNumIn movwf pWordOut endif if pNumIn gt gt 8 amp 255 0 S b pWordOut 1 cirf pWordOut 1 else S b pWordOut 1 moviw high pNumIn movwf pWordOut 1 endif r b endm num_dword macro pNumIn pDwordOut if pNumIn gt gt 24 amp 255 0 S b pDwordOut 3 clrf pDwordOut 3 else S b pDwordOut 3 movlw pNumIn gt gt 24 amp 255 movwf pDwordOut 3 endif gt gt 16 amp 255 0 S b pDwordOut 2 clrf pDwordOut 2 else S b pDwordOut 2 movlw pNumIn gt gt 16 amp 255 movwf pDwordOut 2 endif pNumIn gt gt 8 amp 255 0 S b pDwordOut 1 cirf pDwordOut 1 else S b pDwordOut 1 moviw high pNumIn movwf pDwordOut 1 endif 4 255 0 69 S b pDwordOut clrf pDwordOut else S b pDwordOut movlw low pNumIn movwf pDwordOut endif r b endm bit_wreg macro pVarin pBitIn S b pVarin clrw btfsc pVarin pBitIn movlw 1 rab endm bit byte macro pVarin pBitIn pByteOut S b pVarin clrw btfsc pVarin pBitIn mov
40. minutiae The system adopts the enrollment using multiple fingerprint images as shown in Figure 2 5 Gil Ahn Pan Yongwha 2003 14 Figure 2 5 User Authentication system that adopts the enrollment using plural fingerprint images Fingerprint Recognition Based Access Controlling System for Automobiles Traditional identifying system of automobiles includes key system door controlling system Ultra High Frequency UHF sending receiving system alarm system and many more The paper presented an embedded application system access control system based on fingerprint recognition for automobiles which is a kind of Automatic 15 Fingerprint Identification System AFIS is introduced Biometric technologies have great potential in various technical fields such as network security public security and financial industry system Biometrics has grown into an independent industry whose standardization is making rapid progress with a large number of standards These standards have focused on various aspects of biometric industrialization including data formats application program interfaces security issues system profiles and evaluation methodologies Access control system based on fingerprint recognition for automobiles is an AFIS Once the unauthorized key is used to open the door of the automobile it can alarm through buzzers and it also makes its lamps flash constantly The technique presented is very convenient to open the au
41. to a gun that asks first for the fingerprint of the registered user before the gun can actually be used The gun s lock would not be released unless a correct finger print pattern is used The device will send an alert message once an invalid finger print had been entered The design is capable of getting the time when the gun is shot counts its shots and sends it to the database once the firearm is disabled The time is then sent to a database where they could see whose gun is being used and what time it was b used Constraints In using biometrics fingerprint technology there are studies showing that among the different biometrics fingerprint authentication is one of the top if not the top choice to be used for identification systems of devices Although these studies showed the benefits and competencies in using different kinds of biometrics the limiting factor for this design project in using biometrics fingerprint technology is the acceptance of the society with fingerprint authentication Also the design can only accept two users one for the administrator and other one for the user The said design will limited only to a loaded gun Furthemore the design is not yet proven to be shock proof and can sustain the heat of the real gun Impact The design would have a great effect on the safety of the people and stop the abuse and misuse of guns for crime and this will prevent any other accidents that are gun related With this innovation
42. 0 bcf 10 4 else bsf 10 4 endif endm S b macro pVarin if pVarin 384 0 bank 1 bcf 3 5 endif bank 2 bcf 3 6 endif bank 3 bcf 3 5 bcf 3 6 endif ram bank 0 endif if pVarin 4 384 128 bank 0 bsf 3 5 endif bank 2 bsf 3 5 bcf 3 6 endif bank 3 bcf 3 6 endif ram bank 1 endif if pVarin 4 384 256 bank 0 bsf 3 6 endif bank 1 bcf 3 5 bsf 3 6 endif bank 3 bcf 3 5 endif 66 ram bank 2 endif if pVarin amp 384 384 bank 0 bsf 3 5 bsf 3 6 endif bank 1 bsf 3 6 endif bank 2 bsf 3 5 endif ram bank 3 endif endm r b macro if ram_bank amp 1 0 bcf 3 5 endif if ram_bank amp 2 0 bcf 3 6 endif ram_bank 0 endm jump macro PLABEL goto PLABEL endm wreg_byte macro pByteOut S b pByteOut movwf pByteOut r b endm wreg bit macro pVarOut pBitout S b pVarOut 1 btfsc STATUS 2 bcf pVarOut pBitout btfss STATUS 2 bsf pVarOut pBitout rab endm wreg word macro pWordOut S b pWordOut 67 movwf pWordOut S b pWordOut 1 pWordOut 1 rab endm wreg dword macro pDwordOut S b pDwordOut 3 clrf pDwordOut 3 S b pDwordOut 2 clrf pDwordOut 2 S b pDwordOut 1 clrf pDwordOut 1 S b pDwordOut movwf pDwordOut r b endm byte wreg macro pByteln s b pByteIn movf pByteIn W rab endm num wreg
43. 0007 PORTD equ 0X0008 PORTE equ 0X0009 PCLATH equ 0X000A INTCON equ 0X000B PIR1 equ 0X000C PIR2 equ 0X000D TMR1L equ 0X000E TMR1LH equ 0X000F TMR1H equ 0X000F T1CON equ 0X0010 TMR2 equ 0X0011 T2CON equ 0X0012 SSPBUF equ 0X0013 SSPCON equ 0X0014 CCPR1L equ 0X0015 CCPR1LH equ 0X0016 CCPR1H equ 0X0016 CCP1CON equ 0X0017 RCSTA equ 0X0018 TXREG equ 0X0019 RCREG equ 0X001A CCPR2L equ 0X001B CCPR2LH equ 0X001C CCPR2H equ 0X001C CCP2CON equ 0X001D ADRESLH equ 0X001E ADRESH equ 0X001E 56 ADCONO equ 0 001 OPTION REG equ 0X0081 TRISA equ 0X0085 TRISB equ 0X0086 TRISC equ 0X0087 TRISD equ 0X0088 TRISE equ 0X0089 PIE1 equ 0 008 PIE2 equ 0X008D PCON equ 0 008 SSPCON2 equ 0X0091 PR2 equ 0X0092 SSPADD equ 0X0093 SSPSTAT equ 0X0094 TXSTA equ 0X0098 SPBRG equ 0X0099 CMCON equ 0 009 CVRCON equ 0X009D ADRESL equ 0 009 ADCON1 equ 0X009F EEDATL equ 0 010 EEDATA equ 0X010C EEDAT equ 0X010C EEADR equ 0X010D EEDATLH equ 1 EEDATH equ 0 010 EEADRH equ 0X010F EECON1 egu 0X018C EECON2 equ 0X018D _12 SCL PORT TRISC _I2C SCL PIN 3 _I2C SDA PORT TRISC _I2C SDA PIN 4 IRP 7 RP1 6 5 NOT TO 4 NOT PD 3 Z 2 DC 1 0 GIE 7 PEIE 6 TOIE 5 57 TMROIE 5 INTE 4 RBIE 3 TOIF 2 TMROIF 2 INTF 1 RBIF 0 PSPIF 7 ADIF 6 RCIF 5 PP_RCIF 5 TXIF 4 PP TXIF 4 SSPIF 3 2 TMR2IF 1 TMR1IF 0 CMIF 6 EEIF 4 BCLIF 3 2 0 T1CKPS1 5 50 4 T1OSCEN 3 NOT T1SYNC
44. 1EF define SYSTEM VARIABLE COUNT 40 ram bank 0 CURRENT PAGE 0 DEST PAGE 0 define LCD DTPORT PORTC define LCD DTPIN 0 define LCD RSPORT PORTD define LCD RSPIN 0 define LCD ENPORT PORTD define LCDZENPIN 1 define LCDZINTERFACE 4 define LCDZLINES 4 define LCD TYPE 0 f call macro PDEST if PDEST lt 1 if PDEST amp 2048 0 bcf 10 3 63 else bsf 10 3 endif if PDEST amp 4096 0 bcf 10 4 else bsf 10 4 endif else if PDEST gt if PDEST 4 2048 0 bcf 10 3 else bsf 10 3 endif if PDEST 4 4096 0 bcf 10 4 else bsf 10 4 endif else if PDEST amp 6144 0 clrf 10 else if PDEST 4 2048 0 bcf 10 3 else bsf 10 3 endif if PDEST 4 4096 0 bcf 10 4 else bsf 10 4 endif endif endif endif call PDEST endm F JUMP macro PDEST if PDEST 1 if PDEST 4 2048 0 bcf 10 3 else 64 bsf 10 3 endif if PDEST 4 4096 0 bcf 10 4 else bsf 10 4 endif else if PDEST if PDEST 4 2048 0 bcf 10 3 else bsf 10 3 endif if PDEST 4 4096 0 bcf 10 4 else bsf 10 4 endif else if PDEST amp 6144 0 clrf 10 else if PDEST 4 2048 0 bcf 10 3 else bsf 10 3 endif if PDEST 4 4096 0 bcf 10 4 else bsf 10 4 endif endif endif endif goto PDEST endm set page macro PDEST if PDEST 4 2048 0 bcf 10 3 else bsf 10 3 endif 65 if PDEST amp 4096
45. 2 TLINSYNC 2 15 2 TMR1CS 1 0 TOUTPS3 6 TOUTPS2 5 TOUTPS1 4 TOUTPSO 3 TMR2ON 2 2 2 T2CKPS1 1 PP 2 51 1 2 50 0 2 50 0 WCOL 7 SSPOV 6 SSPEN 5 4 SSPM3 3 58 SSPM2 2 SSPM1 1 SSPM0 0 1 5 CCP1Y 4 CCP1M3 3 CCP1M2 2 CCP1M1 1 CCP1M0 0 SPEN 7 RX9 6 RC9 6 NOT RC8 6 RC8 9 6 SREN 5 CREN 4 PP CREN 4 ADDEN 3 FERR 2 OERR 1 PP OERR 1 RX9D 0 RCD8 0 CCP2X 5 CCP2Y 4 CCP2M3 3 CCP2M2 2 CCP2M1 1 CCP2M0 0 ADCS1 7 50 6 CHS2 5 CHS1 4 50 3 GO 2 NOT DONE 2 GO DONE 2 PP GO DONE 2 ADON 0 NOT RBPU 7 INTEDG 6 TOCS 5 TOSE 4 PSA 3 59 52 2 PS1 1 50 0 IBF 7 OBF 6 IBOV 5 PSPMODE 4 TRISE2 2 TRISE1 1 TRISEO 0 PSPIE 7 ADIE 6 RCIE 5 TXIE 4 SSPIE 3 CCP1IE 2 TMR2IE 1 TMR1IE O CMIE 6 EEIE 4 BCLIE 3 CCP2TE 0 NOT_POR 1 NOT_BO 0 NOT_BOR 0 GCEN 7 ACKSTAT 6 PP_ACKSTAT 6 ACKDT 5 PP_ACKDT 5 ACKEN 4 PP_ACKEN 4 RCEN 3 PP_RCEN 3 PEN 2 PP_PEN 2 RSEN 1 PP_RSEN 1 SEN 0 PP_SEN 0 SMP 7 CKE 6 I2C DATA 5 NOT A 5 NOT ADDRESS 5 D A 5 DATA ADDRESS 5 I2C STOP 4 I2C START 3 I2C 2 NOT W 2 NOT WRITE 2 R W 2 PP R W 2 READ WRITE 2 UA 1 BF 0 PP BF 0 CSRC 7 TX9 6 NOT TX8 6 TX8 9 6 TXEN 5 SYNC 4 BRGH 2 TRMT 1 TX9D 0 TXD8 0 2 C10UT 6 C2INV 5 C1INV 4 CIS 3 CM2 2 CM1 1 0 0 CVREN 7 CVROE 6 CVRR 5 CVR3 3 CVR2 2 CVR1 1 CVRO 0 ADFM 7 ADCS2 6 PCFG3 3 PCFG2 2 PCFG1 1 61
46. 22 5 ep e a ve 2 pes ve To mowerm ax me xs ae 9 o Yes Ym Yes m 2 2 PIC16F87XA Pin Diagrams 28 Pin POF SOIC LJ RAMANI L RAZ ANGA ER BAM AM ep m RAA TOC DO L L e ko 10 RCOTIOSO TICKI 11 RCiTIOSMOCP2 112 j 44 Pin OFN ROT 1 we 2 RDSPSPS 3 5 ET 4 B ETT 129 PICIGFBTAA von 7 PIC16F877A von 8 RENT 9 RET m i RBi PGM 127 ya 341 x 111111111111 28 Pin QFN RAZIANZREF ICVREF 1 RAN AN MUERE sr y z RAA TOZ M TOUT r RAS I Vas I OSC2CLEO 17 RANAN FLADIANU MCLR VPrP wa EBZFGD FES 11 RESFOM 201 2 7 24 23 22 2 F y RH PIC16F8T3A l r REIT PIC 16 FE76A 174 Voo l g Vas 154 ROT ARGOT ROS ED0 s 113 14 REIACEIAMT RE RANE R EOFN RAS ANAU ES CIO UT RAAITOC KMCHOUT 228 k ROIUCCFE 3 810 iil RG VT 10S GCF a 8 PIC16F87XA Pin Diagrams Continued 40 Pin PDIP
47. 4 13 moviw 4 movwf BPFH movlw STR LB58 gt gt 8 amp 255 movwf GEN4H movlw STR LB58 amp 255 f call C STROUT moviw 34 f call HRSOUT moviw 11 movwf GEN4 clrf PP2H moviw 185 SB STROUT moviw 34 f call HRSOUT moviw 44 f call HRSOUT moviw 49 f call HRSOUT moviw 50 f call HRSOUT moviw 57 f call HRSOUT 192 movlw 44 HRSOUT movlw 34 HRSOUT movlw 65 HRSOUT movlw 68 HRSOUT movlw 77 HRSOUT movlw 73 HRSOUT movlw 78 HRSOUT movlw 34 HRSOUT movlw 13 HRSOUT F1 000986 equ 5 IN MITFPGUN BAS HSERIN 3000 SUBS SMS INITFAILED WAIT OK movlw 11 movwf GENH movlw 184 movwf GEN PBOLB246 HRSIN2 set page subs SMS InitFailed btfss STATUS 0 goto subs SMS InitFailed sublw 79 set page PB LB246 btfss STATUS 2 goto PB LB246 f call HRSIN2 set page subs SMS InitFailed btfss STATUS O goto subs_SMS_InitFailed sublw 75 set page PB LB246 btfss STATUS 2 goto PB LB246 F1 000988 equ IN MITFPGUN BAS DELAYMS 3000 movlw 11 movwf PP1H 193 moviw 184 DLY W F1 000990 equ 5 IN MITFPGUN BAS CLS f call LCD CLS F1_000991 equ IN MITFPGUN BAS PRINT AT 1 1 SMS DESTINATION moviw 128 movwf BPFH f call LCD CRS movlw high STR LB59 movwf GEN4H moviw low STR LB59 f call C STROUT F1 000992 equ IN MITFPGUN BAS PRINT AT 2 1 NUMBER SAVED moviw 128 movwf BPFH moviw 192 LCD C
48. 41 IN MITFPGUN BAS ELSE F1_000943 equ IN MITFPGUN BAS UNUM1 GCTR KEYTEMP bsf STATUS 5 ram_bank 1 movf gCtr W addlw uNum1 movwf FSR movf keytemp W movwf INDF F1 000945 equ IN MITFPGUN BAS ENDIF BC LL237 bcf STATUS 5 ram_bank 0 BC LL229 1 000947 equ IN MITFPGUN BAS PRINT AT 3 GCTR 3 UNUM1 GCTR moviw 128 movwf BPFH moviw 3 movwf GEN moviw 3 bsf STATUS 5 ram_bank 1 addwf gCtr W bcf STATUS 5 ram_bank 0 f call CURSOR bsf STATUS 5 ram_bank 1 movf gCtr W addlw uNum1 189 movwf FSR movf INDF W bcf STATUS 5 ram bank 0 f call PRINT Fi 000950 equ MITFPGUN BAS WEND FOJUMP BC LL227 BC LL228 sjumps_SRU_confirmNum 1 000954 egu IN MITFPGUN BAS PRINT FE 0C moviw 254 f call PRINT moviw 12 f call PRINT F1_000955 equ IN MITFPGUN BAS PRINT AT 3 20 127 moviw 128 movwf BPFH moviw 167 f call LCD CRS moviw 127 f call PRINT F1 000957 equ IN MITFPGUN BAS PRINT 4 1 OK CANCEL moviw 128 movwf BPFH moviw 212 LCD CRS moviw high STR LB54 movwf GEN4H moviw low STR LB54 f call C STROUT F1_000959 equ IN MITFPGUN BAS WHILE 1 1 BC LL238 F1_000961 equ IN MITFPGUN BAS KEYTEMP 0 bsf STATUS 5 ram_bank 1 clrf Keytemp 1 000962 IN MITFPGUN BAS GOSUB SUBS KP3X416FR bcf STATUS 5 ram bank 0 subs KP3x416FR F1 000964 equ MITFPGUN BAS IF KEYTEMP THEN moviw 35 bsf STATUS 5 ra
49. 68 W goto DL MS clrf 52 DLY W movwf 51 DLY P movlw 255 addwf 51 F addwf 52 F Skpc goto I NT movlw 3 movwf 48 movlw 230 call DLUS W goto DLY P DLOUS 48 DLUSQW addlw 252 movwf 47 comf 48 F goto 5 7 movlw 255 addwf 47 F skpnc goto 3 addwf 47 F nop incfsz 48 F goto 8 return L KL iorlw O skpnz goto 22 movwf 59 movf 47 W movwf 4 90 btfsc 48 0 bsf 3 7 clrf 48 clrf 47 btfsc 59 7 goto 9 movf 0 W movwf 47 btfss 59 1 goto 9 incf 4 F movf 0 W movwf 48 goto 5 call C BT Skpz incf 47 F goto C BT movlw C TBL gt gt 8 movwf 10 movf 59 W andlw 7 addwf 2 F C TBL retlw 1 retlw 2 retlw 4 retiw 8 16 retlw 32 retlw 64 128 D VD 54 clrf 53 D VD2 movlw 16 movwf 57 rif 48 W rif 53 F rif 54 F movf 51 W 91 subwf 53 F movf 52 W incfsz 52 W subwf 54 F skpnc goto 8 movf 51 W addwf 53 F movf 52 W skpnc incfsz 52 W addwf 54 F bcf 3 0 rif 47 F rif 48 F decfsz 57 F goto 21 movf 47 W return AL MUL movlw 32 movwf 57 66 clrf 67 68 69 MLT32 LP btfss 47 0 goto MLT32 BR movf 53 W addwf 66 F movf 54 W skpnc incfsz 54 W addwf 67 F movf 55 W skpnc incfsz 55 W addwf 68 F movf 56 skpnc incfsz 56 W addwf 69 F MLT32 BR rrf 69 F rrf 68 F rrf 67 F rrf 66 F rrf 50 F rrf 49 F
50. 71 movwf FPEMsg Z7 movlw 69 movwf FPEMsg 8 movlw 46 movwf FPEMsg 9 movlw 32 movwf FPEMsg 10 movwf FPEMsg 11 movwf FPEMsg 12 movwf FPEMsg 13 movwf FPEMsg 14 movwf FPEMsg 15 movwf FPEMsg 16 movwf FPEMsg 17 movwf FPEMsg 18 movwf FPEMsg 19 clrf FPEMSg420 F JUMP BC LL136 BC LL154 F1 000586 equ IN MITFPGUN BAS CASE 23 STR FPEMSG TIMED OUT 0 movlw 35 subwf FPECode W set page 156 btfss STATUS 2 goto BC LL156 ram bank 0 movlw 84 movwf FPEMsg Z0 movlw 73 movwf FPEMsg 1 movlw 77 movwf FPEMsg Z2 movlw 69 movwf FPEMsg 3 moviw 68 movwf FPEMsg 4 movlw 32 143 movwf FPEMsg 5 movlw 79 movwf FPEMsg 6 movlw 85 movwf FPEMsg Z7 movlw 84 movwf FPEMsg 8 movlw 46 movwf FPEMsg 9 movlw 32 movwf FPEMsg 10 movwf FPEMsg 11 movwf FPEMsg 12 movwf FPEMsg 13 movwf FPEMsgZ 14 movwf FPEMsg 15 movwf FPEMsg 16 movwf FPEMsg 17 movwf FPEMsg 18 movwf FPEMsg 19 cirf FPEMsg 20 F JUMP BC LL136 BC LL156 F1 000587 equ IN MITFPGUN BAS CASE 24 STR FPEMSG UNAUTHORIZED 0 moviw 36 subwf FPECode W set page BC LL158 btfss STATUS 2 goto BC LL158 ram_bank 0 movlw 85 movwf FPEMsg Z0 movlw 78 movwf FPEMsg 1 movlw 65 movwf FPEMsg Z2 movlw 85 movwf FPEMsg 3 movlw 84 movwf FPEMsg 4 movlw 72 movwf FPEMsg 5 moviw 79 144 movwf FPEMsg 6 movlw 82 movwf FPEMsg Z7 movlw 73 movwf FPEMsg 8 movlw 90 movwf FPEMsg 9 movlw 69 movwf FPEMsg 10 movlw 68 movwf FPEMsg 11 movlw 46 movwf FPEMsg 12 mov
51. 78 71 69 32 65 68 77 73 78 32 70 80 0 STROLB11 de 50 46 67 72 65 78 71 69 32 85 83 69 82 32 70 80 0 STR LB12 de 51 46 67 65 78 67 69 76 0 STR LB13 de 68 69 76 69 84 73 78 71 32 70 80 0 STR LB14 STR LB57 202 de 80 76 69 65 83 69 32 87 65 73 84 46 46 0 STR LB16 de 32 32 80 82 69 83 83 32 35 32 84 79 32 76 79 67 75 0 STR LB17 de 83 72 79 84 83 58 32 0 STR LB18 de 71 85 78 32 73 83 32 76 79 67 75 69 68 46 32 32 32 32 32 32 0 STR LB19 de 86 69 82 73 70 89 73 78 71 0 STR LB20 de 70 73 78 71 69 82 80 82 73 78 84 0 STR LB21 de 69 78 82 79 76 76 73 78 71 32 70 80 0 STR LB22 de 84 65 75 73 78 71 32 83 65 77 80 76 69 35 32 49 0 STR LB23 de 84 65 75 73 78 71 32 83 65 77 80 76 69 35 32 0 STR LB24 de 76 73 70 84 32 70 73 78 71 69 82 32 32 32 32 32 32 32 32 32 0 STR LB25 STR LB27 de 83 65 77 80 76 73 78 71 32 69 82 82 79 82 32 32 32 32 32 32 0 STR LB26 de 83 65 77 80 76 73 78 71 32 67 79 77 80 76 69 84 69 32 32 32 0 STR LB28 de 68 69 76 69 84 73 78 71 46 46 0 STR LB29 de 85 83 69 82 32 68 69 76 69 84 69 68 46 32 32 32 32 32 32 32 0 STR LB30 de 79 80 69 82 65 84 73 79 78 32 69 82 82 79 82 32 32 32 32 32 0 STR LB31 de 49 46 86 69 82 73 70 89 0 STR LB32 de 50 46 69 78 82 79 76 76 0 STR LB33 de 51 46 69 82 65 83 69 0 STR LB34 de 52 46 76 79 67 75 47 85 78 76 79 67 75 0 STRQLB35 de 85 83 69 82 58 32 0 STR LB36 de 73 78 86 65 76 73 68 32 85 83 69 82 0 STR LB37 de 85 83 69 82 32 73 68 32 45 62 32 0 203 STR LB38
52. 83 77 65 82 84 32 71 85 78 32 68 65 84 65 32 82 69 80 79 82 84 0 STR LB68 de 85 83 69 82 32 76 79 71 71 69 68 58 0 STR LB69 de 68 65 84 69 58 32 0 STR LB70 de 84 73 77 69 58 32 0 STROLB71 de 83 72 79 84 83 32 70 73 82 69 68 58 0 EOF config HS OSC 8 OFF amp PWRTE ON amp BODEN OFF amp LVP OFF 8 CP OFF amp CPD OFF amp DEBUG OFF End 205 D DATASHEETS ADST11SD300 amp 310 Fingerprint Identification Module User s Guide Ver 4 0 IDSystemTechnologyCo Ltd http www szadst com Tel 86 755 33160920 Fax 86 755 86039586 206 SUMMARY GN 207 NN 207 L2 APPLICATION EXAMPLES NAN 208 LI 5 208 JA DEFAUDF SETTING Co aveva 209 2 CONFIGRATION AND CONNECTOR sun 210 2 MOUNT AND CONNECTOR ia 210 2 2 DIMENSION OFE ADS LIISD INNS 211 2 3DIMENSIONOFADSTIISD lu 211 3 COMMUNICATION PROTOCOI 212 JA THE PROCESS OF COMMUNICATION s 212 3 4 CLASSIFY OF COMMUNICATION PACKEIT 213 ETR tM e ERE MCI Dd A HY FR NO FI 213 RT AN AS 213 LINDPERE 213 3 PACKET STRUCTURE ND 213 252 PaACkel Identity COGO svar 213 3 3 2 DUUC
53. AS RETURN return subs SMS SyncTime sjumps RetryGetClock F1 000800 equ IN MITFPGUN BAS TIMESTAMPS 20 O bsf STATUS 5 ram bank 1 timeStamps 20 F1 000802 equ IN MITFPGUN BAS DELAYMS 500 moviw 1 bcf STATUS 5 ram bank 0 movwf PP1H moviw 244 f call DLY W F1_000803 equ IN MITFPGUN BAS HSEROUT AT CCLK 13 moviw 4 movwf BPFH movlw STR LB48 gt gt 8 amp 255 movwf GEN4H movlw STR LB48 amp 255 f call C STROUT moviw 13 f call HRSOUT 1 000804 equ IN MITFPGUN BAS HSERIN 3000 SJUMPS_RETRYGETCLOCK WAIT CCLK WAIT 34 STR TIMESTAMPS 20 moviw 11 movwf GENH moviw 184 movwf GEN PB LB211 f call HRSIN2 set page sjumps_RetryGetClock btfss STATUS O goto sjumps_RetryGetClock sublw 43 set page PB LB211 btfss STATUS 2 goto PB LB211 176 f call HRSIN2 set page sjumps RetryGetClock btfss STATUS 0 goto sjumps RetryGetClock sublw 67 set page PB LB211 btfss STATUS 2 goto PB LB211 f call HRSIN2 set page sjumps_RetryGetClock btfss STATUS O goto sjumps_RetryGetClock sublw 67 set page PB LB211 btfss STATUS 2 goto PB LB211 f call HRSIN2 set page sjumps_RetryGetClock btfss STATUS O goto sjumps_RetryGetClock sublw 76 set page PB LB211 btfss STATUS 2 goto PB LB211 f call HRSIN2 set page sjumps_RetryGetClock btfss STATUS O goto sjumps_RetryGetClock sublw 75 set page PB LB211 btfss STATUS 2 goto PB LB211 PB LB212 f call HRSIN2 set page sjumps_RetryGetClock btfss STATUS O goto sjumps_
54. ATUS O goto subs_SMS_InitFailed sublw 80 set page PB LB205 btfss STATUS 2 goto PB LB205 f call HRSIN2 set page subs SMS InitFailed btfss STATUS O goto subs SMS InitFailed sublw 66 set page PB LB205 btfss STATUS 2 goto PB LB205 f call HRSIN2 set page subs SMS InitFailed btfss STATUS O goto subs SMS InitFailed sublw 70 set page PB LB205 btfss STATUS 2 goto PB LB205 f call HRSIN2 set page subs SMS InitFailed btfss STATUS O goto subs SMS InitFailed sublw 58 set page PB LB205 btfss STATUS 2 goto PB LB205 174 PB LB206 f call HRSIN2 set page subs SMS InitFailed btfss STATUS 0 goto subs_SMS_InitFailed sublw 34 set page PB LB206 btfss STATUS 2 goto PB LB206 clrf PBP VARO PB LB209 bsf STATUS 0 f call HRSIN2 set page subs SMS InitFailed btfss STATUS O goto subs SMS InitFailed movf PBPZVARO W addlw uNum1 movwf FSR movf RCREG W movwf INDF PBPHVARO F movf PBPZVARO W sublw 11 set page PB LB209 btfss STATUS 2 goto PB LB209 PB LB210 f call HRSIN2 set page subs SMS InitFailed btfss STATUS O goto subs_SMS_InitFailed sublw 79 set page PB LB210 btfss STATUS 2 goto PB LB210 f call HRSIN2 set page subs SMS InitFailed btfss STATUS O goto subs SMS InitFailed sublw 75 set page PB LB210 btfss STATUS 2 goto PB LB210 175 F1 000788 MITFPGUN BAS DELAYMS 1000 movlw 3 movwf PP1H moviw 232 f call DLY W F1_000794 equ IN MITFPGUN B
55. BAS HSEROUT ADMIN 13 moviw 65 f call HRSOUT moviw 68 f call HRSOUT moviw 77 f call HRSOUT moviw 73 f call HRSOUT moviw 78 f call HRSOUT moviw 13 f call HRSOUT FOJUMP BC LL249 BC LL250 F1_001032 equ IN MITFPGUN BAS CASE 2 bsf STATUS 5 ram_bank 1 movf userID W xorlw 2 iorwf userIDH W set page 253 bcf STATUS 5 ram bank 0 btfss STATUS 2 goto 253 197 F1 001034 equ IN MITFPGUN BAS HSEROUT USER 131 movlw 85 f call HRSOUT moviw 83 f call HRSOUT moviw 69 f call HRSOUT moviw 82 f call HRSOUT moviw 13 f call HRSOUT 1 001036 equ IN MITFPGUN BAS ENDSELECT BC LL253 BC LL249 Fi 001038 equ IN MITFPGUN BAS HSEROUT DATE DEC2 MONTHS DEC2 DAYS DEC4 YEARS 13 moviw 4 movwf BPFH movlw STR LB69 gt gt 8 amp 255 movwf GEN4H movlw STR LB69 amp 255 f call C STROUT moviw 2 movwf GEN4H bsf STATUS 5 ram_bank 1 movf months W bcf STATUS 5 ram_bank 0 f call OUT DECC moviw 47 f call HRSOUT moviw 2 movwf GEN4H bsf STATUS 5 ram_bank 1 movf days W bcf STATUS 5 ram_bank 0 f call OUT DECC moviw 47 f call HRSOUT moviw 4 movwf GEN4H 198 bsf STATUS 5 ram bank 1 movf yearsH W bcf STATUS 5 ram bank 0 movwf PP2H bsf STATUS 5 ram bank 1 movf years W bcf STATUS 5 ram bank 0 movwf PP2 f call OUT DEC moviw 13 f call HRSOUT F1_001039 equ IN MITFPGUN BAS HSEROUT TIME DEC2 HR DEC2 MN 32 AMPM M 13 moviw 4 movwf BPFH movl
56. CTR 0 TO 23 bsf STATUS 5 ram_bank 1 clrf gCtr FR LB101 bcf STATUS 5 ram_bank 0 moviw 24 bsf STATUS 5 ram_bank 1 subwf gCtr W set page NX LB102 bcf STATUS 5 ram_bank 0 btfsc STATUS 0 goto 8102 F1 000475 MITFPGUN BAS SEROUT PORTD 4 84 SDATA GCTR moviw PORTD movwf GEN moviw 16 movwf GENH clrf PP5H moviw 84 movwf PP5 GEN3H clrf GEN3 moviw 32 movwf BPFH bsf STATUS 5 ram bank 1 movf gCtr W addlw sData movwf FSR movf INDF W bcf STATUS 5 ram bank 0 f call SEROUT CT LB103 F1_000477 equ IN MITFPGUN BAS NEXT GCTR moviw 1 124 bsf STATUS 5 ram bank 1 addwf gCtr F set page FR LB101 bcf STATUS 5 ram_bank 0 btfss STATUS 0 goto FR LB101 NX LB102 1 000479 equ IN MITFPGUN BAS SERIN PORTD 5 84 WAIT AA STR SREPLYV23 moviw PORTD movwf GEN moviw 32 movwf GENH clrf PP5H moviw 84 movwf PP5 PB LB104 f call SERIN sublw 170 set page PB LB104 btfss STATUS 2 goto PB LB104 clrf PBP VARO PB LB107 f call SERIN movf PBP VARO W movwf GEN4H moviw 119 movwf GEN4 movf PP1 W f call PUT ARRAY incf PBP VARO F movf PBPZVARO W sublw 23 set page PB LB107 btfss STATUS 2 goto PB LB107 1 000482 equ IN MITFPGUN BAS RETURN return subs KP3x416FR 1 000486 equ IN MITFPGUN BAS WHILE 1 1 BC LL107 F1 000488 equ IN MITFPGUN BAS FOR 0 2 125 bsf STATUS 5 ram bank 1 clrf kpCtr FROLB110 bcf STATU
57. Chapter 1 DESIGN BACKGROUND AND INTRODUCTION Introduction Technology is developed by people to help improve the quality of human lives and all are using technological advancements in many different ways and one of the ways is security system When it comes to security systems biometrics is one of the top choices which have brought significant changes with regard to how people gain access to rooms or establishments The use of biometrics has changed the security system from what people conventionally use such as passwords door keys or body parts such as retinal patterns fingerprints or voice recognition Fingerprint recognition is one of the most popular and successful methods used for person identification which takes advantage of the fact that the fingerprint has some unique characteristics called minutiae These are points where a curve track finishes intersect with other track or branches off Aguilar et al 2007 In this design project the safety mechanism of the gun will be replaced with fingerprint authentication which can only be accessed by the administrator and registered user The fingerprint module that is used in the design is responsible for giving an access to a specific user provided that all allowed fingerprints are stored in the system The system will then keep a track of all the user s gunshots and record them specifically with the date and time and is sent via short messaging service SMS 1 Customer
58. DL MS 130 F1 000544 egu IN MITFPGUN BAS LOOKUPL KPCTR 7 8 9 bsf STATUS 5 ram bank 1 movf kpCtr W bcf STATUS 5 ram bank 0 movwf PP1 sublw 2 set page LE LB btfss STATUS O goto LE LB7 STATUS O rif PP1 W addwf PP1 F L LB9 movwf PPO incf PP1 F L LB9 movwf PPOH incf PP1 F L LB9 f call L KL movf PPO W bsf STATUS 5 ram bank 1 movwf keytemp bcf STATUS 5 ram bank 0 F JUMP LE LB7 L LB9 movlw LK LB8 gt gt 8 amp 255 movwf PCLATH movf PP1 W if gt gt 8 9 gt gt 8 goto SO LB131 org 255 amp 65280 SO LB131 endif addwf PCL F LK LB8 dt 55 amp 255 55 gt gt 8 amp 255 0 dt 56 amp 255 56 gt gt 8 amp 255 0 dt 57 amp 255 57 gt gt 8 amp 255 0 LE LB7 131 1 000546 equ IN MITFPGUN BAS GOTO SJ KPR END F JUMP sj kpr end F JUMP 119 F1 000548 equ IN MITFPGUN BAS ELSEIF KPROW4 0 THEN BC LL128 set page BC LL132 btfsc PORTB 3 goto BC LL132 F1_000550 equ IN MITFPGUN BAS DELAYMS 50 moviw 50 f call DL MS 1 000552 equ IN MITFPGUN BAS WHILE KPROW4 0 WEND BC LL133 set page BC LL134 btfsc PORTB 3 goto BC LL134 ram_bank 0 F JUMP BC LL133 BC LL134 F1 000554 equ IN MITFPGUN BAS DELAYMS 50 moviw 50 f call DL MS F1 000556 equ IN MITFPGUN BAS KEYTEMP LOOKUPL KPCTR 0 bsf STATUS 5 ram_bank 1 kpCtr W bcf STATUS 5 ram bank
59. EMsg 16 90 FPEMsg4 17 91 FPEMsg418 92 FPEMsg419 93 variable FPEMsg 20 94 sData 95 variable sData 0 95 sData 1 96 sData 2 97 sData 3 98 variable sData 4 99 sData 5 100 sData 6 101 sData 7 102 variable sData 8 103 sData 9 104 sData 10 105 sData 11 106 variable sData 12 107 sData 13 108 sData 14 109 sData 15 110 variable sData 16 111 sData 17 112 sData 18 113 sData 19 114 variable sData 20 115 sData 21 116 sData 22 117 sData 23 118 SReply 119 variable sReply 0 119 sReply 1 120 sReply 2 121 sReply 3 122 variable sReply 4 123 sReply 5 124 sReply 6 125 sReply 7 126 variable sReply 8 127 sReply 9 160 sReply 10 161 sReply 11 162 variable sReply 12 163 sReply 13 164 sReply 14 165 sReply 15 166 variable sReply 16 167 sReply 1 7 168 sReply 18 169 sReply 19 170 variable sReply 20 171 sReply 21 172 sReply 22 173 sReply 23 174 chkID 175 chkTmp 176 chkTmpH 177 userID 178 userIDH 179 kpCtr 180 keytemp 181 gCtr 182 logRetry 183 shotCtr 184 185 75 variable uUNum1 0 185 uNum1 1 186 uNum1 2 187 uNum1 3 188 variable uNum1 4 189 uNum1 5 190 uNum1 6 191 uNum1 7 192 variable uUNum1 8 193 uNum1 9 194 uNum1 10 195 uNum1 11 196 timeStamps 197 variable timeStamps 0 197 timeStamps 1 198 timeStamps 2 199 timeStamps 3 200 variable timeStamps 4 201 timeStamps 5 202 timeStamps 6 203 timeStamps 7 204 variable timeStamps 8 205 timeStamps 9 206 timeStamps 10 207 timeStamps 11 208 variable timeStamps 12 209 time
60. END BC LL125 set page BC LL126 btfsc PORTB 1 goto BC LL126 ram_bank 0 F JUMP BC LL125 BC LL126 F1_000530 equ IN MITFPGUN BAS DELAYMS 50 moviw 50 f call DL MS F1 000532 equ IN MITFPGUN BAS KEYTEMP LOOKUPL KPCTR 4 5 6 bsf STATUS 5 ram_bank 1 kpCtr W bcf STATUS 5 ram bank 0 movwf PP1 sublw 2 set page LE LB4 btfss STATUS 0 goto LE LB4 bcf STATUS O rif PP1 W addwf PP1 F f call L LB6 movwf PPO incf PP1 F f call L LB6 movwf PPOH incf PP1 F f call L LB6 f call L KL 129 movf PPO W bsf STATUS 5 ram bank 1 movwf keytemp bcf STATUS 5 ram bank 0 F JUMP LE LB4 L LB6 movlw LK LB5 gt gt 8 amp 255 movwf PCLATH movf PP1 W if gt gt 8 9 gt gt 8 goto SO LB127 org 255 amp 65280 SOQLB127 endif addwf PCL F LK LB5 dt 52 amp 255 52 gt gt 8 amp 255 0 dt 53 amp 255 53 gt gt 8 amp 255 0 dt 54 amp 255 54 gt gt 8 amp 255 0 LE LB4 1 000534 equ IN MITFPGUN BAS GOTO SJ END F JUMP sj_kpr_end F JUMP BC LL119 F1_000536 equ IN MITFPGUN BAS ELSEIF KPROW3 0 THEN BC LL124 set page BC LL128 btfsc PORTB 2 goto BC LL128 F1 000538 equ IN MITFPGUN BAS DELAYMS 50 movlw 50 f call DL MS F1_000540 equ IN MITFPGUN BAS WHILE KPROW3 0 WEND BC LL129 set page BC LL130 btfsc PORTB 2 goto BC LL130 ram_bank 0 F JUMP BC LL129 BC LL130 F1 000542 equ MITFPGUN BAS DELAYMS 50 movlw 50 f call
61. GUN BAS SDATA 5 00 sData 5 F1 000425 equ IN MITFPGUN BAS SDATA 6 UIDL bsf STATUS 5 ram bank 1 movf userID W bcf STATUS 5 ram bank 0 movwf sData 6 1 000426 equ IN MITFPGUN BAS SDATA 7 UIDH bsf STATUS 5 ram bank 1 120 movf userIDH W bcf STATUS 5 ram bank 0 movwf sData 7 F1 000428 equ MITFPGUN BAS FOR 8 TO 21 moviw 8 bsf STATUS 5 ram bank 1 movwf gCtr FR LB92 bcf STATUS 5 ram_bank 0 moviw 22 bsf STATUS 5 ram_bank 1 subwf gCtr W set page NX LB93 bcf STATUS 5 ram_bank 0 btfsc STATUS 0 goto NX LB93 F1 000430 equ IN MITFPGUN BAS SDATA GCTR 00 bsf STATUS 5 ram bank 1 movf gCtr W addlw sData movwf FSR moviw 0 movwf INDF CT LB94 bcf STATUS 5 ram_bank 0 F1_000432 equ IN MITFPGUN BAS NEXT GCTR moviw 1 bsf STATUS 5 ram_bank 1 addwf gCtr F set page FR LB92 bcf STATUS 5 ram_bank 0 btfss STATUS O goto FR LB92 NX LB93 Fi 000434 egu MITFPGUN BAS GOSUB SUBS FPCHKSUM 121 f call subs FPChkSum F1 000436 equ IN MITFPGUN BAS CLS f call LCD CLS F1 000437 equ IN MITFPGUN BAS PRINT AT 1 1 DELETING moviw 128 movwf BPFH f call LCD CRS movlw high STR LB28 movwf GEN4H moviw low STR LB28 f call C STROUT F1 000439 equ IN MITFPGUN BAS GOSUB SUBS FPSENDRQ f call subs FPSendRQ F1 000441 equ IN MITFPGUN BAS IF SREPLY 5 00 THEN movf sReply 5 W movwf PBPZVAR2 movf PBP VAR2 F set page BC LL95
62. IUES OL Command PACKEL 213 talons 214 3294 iata PAC urene dre RO WE MINA MAKANI Cd eu cd pere ZA AA 215 3o Response Da Fack 215 4 PACKET COMMAND DETAIL DESCRIPTIONN 216 4 1 STRUCTURE OF FINGERPRINT TEMPLATE DATA IS FOLLOW 216 42 COMMAND LIST NNN 216 S APPENDIX NNN 219 SJ RESPONSE AND ERROR C ODE 219 5 2 FLOW OF ENROLL AND VERIFY AND IDENTIFY PROCESS 221 EE EE MIU 221 VM NN TN 223 1 Summary Functions and Characteristic ADSTIISD3xx serial is All in one Optic sensor CMOS image sensor CPU Flash memory embeddedstand alone fingerprint identification module it is convenient for second development Extremely easy to integrate minimizing time to market 1 1 Main functions Optic sensor is reliable and Low cost High ESD Protection 1 N Identification One to Many 207 1 1 Verification One to One High speed fingerprint identification algorithm engine Self study function Fingerprint template data read from write to FLASH memory function Get Feature Data of Ca
63. Module and sends the signal to lock and unlock the solenoid It is also used to count the number of shots fired by the gun and allows the GSM Module to send the data gathered Figure 3 9 Solenoid The solenoid is used to lock or unlock the gun in the system It is considered as a output and waits for the signal from the microcontroller 32 Figure 3 10 Resistors The resistors are used in order to balance the flow of current in the circuit The resistors are used basically for pull up in order to produce proper input going through the device Figure 3 11 Connecting Wires 33 The connecting wires are used to enhance the range of the components like the solenoid GSM Module and the Biometric Module Stranded wires are being used in the circuit since it is more flexible GSM Module 1800 00 1800 00 twr ww o 2 Pins Connector 10 00 10 00 Vi w Keypad 120 00 120 00 e T Mee GA NL NL Table 3 1 Component Price Listing 34 Chapter 4 TESTING PRESENTATION AND INTERPRETATION OF DATA Functionality Test The system can verify whether the scanned fingerprint is registered or not It also has add and delete fingerprint functions for registered fingerprints and can send text messages with information as regards number of gun shots The researchers tested the features of the Biometric Analysis for Firearm Identificatio
64. N BAS O bsf STATUS 5 ram_bank 1 clrf Keytemp F1_000919 egu IN MITFPGUN BAS GOSUB SUBS KP3X416FR bcf STATUS 5 ram_bank 0 f call subs_KP3x416FR F1_000921 equ MITFPGUN BAS IF 4 THEN movlw 35 bsf STATUS 5 ram bank 1 subwf keytemp W set page 230 187 bcf STATUS 5 ram bank 0 btfss STATUS 2 goto BC LL230 F1 000923 equ 5 IN MITFPGUN BAS GCTR lt 10 THEN movlw 10 bsf STATUS 5 ram bank 1 subwf gCtr W set page BC LL232 bcf STATUS 5 ram_bank 0 btfsc STATUS 0 goto BC LL232 F1 000925 equ IN MITFPGUN BAS INC GCTR bsf STATUS 5 ram bank 1 incf gCtr F bcf STATUS 5 ram bank 0 F JUMP BC LL233 BC LL232 F1 000927 equ IN MITFPGUN BAS ELSE F1 000929 equ IN MITFPGUN BAS BREAK F JUMP BC LL228 F1 000931 IN MITFPGUN BAS ENDIF BC LL233 F JUMP BC LL229 F1_000933 equ IN MITFPGUN BAS ELSEIF KEYTEMP THEN BC LL230 movlw 42 bsf STATUS 5 ram_bank 1 subwf keytemp W set page BC LL234 bcf STATUS 5 ram_bank 0 btfss STATUS 2 goto BC LL234 F1_000935 equ IN MITFPGUN BAS IF GCTR gt 0 THEN bsf STATUS 5 ram_bank 1 movf gCtr F set page BC LL236 188 bcf STATUS 5 ram bank 0 btfsc STATUS 2 goto 236 Fi 000937 equ MITFPGUN BAS DEC GCTR bsf STATUS 5 ram bank 1 decf gCtr F F1 000939 equ IN MITFPGUN BAS ENDIF BC LL236 bcf STATUS 5 ram_bank 0 FOJUMP BC LL237 BC LL234 F1_0009
65. N BAS ELSEIF KEYTEMP 4 THEN BC LL184 moviw 52 bsf STATUS 5 ram_bank 1 subwf keytemp W set page BC LL189 bcf STATUS 5 ram_bank 0 btfss STATUS 2 goto BC LL189 F1 000669 equ IN MITFPGUN BAS GLOCK GLOCK moviw 8 xorwf PORTD F F1_000670 equ IN MITFPGUN BAS GUNLOCK GLOCK 160 clrw btfss PORTD 3 addiw 1 btfsc STATUS 2 bcf PORTD 2 btfss STATUS 2 bsf PORTD 2 F1 000672 equ IN MITFPGUN BAS ENDIF BC LL189 BC LL179 F1 000674 equ IN MITFPGUN BAS WEND FOJUMP BC LL177 BC LL178 1 000678 equ IN MITFPGUN BAS RETURN return subs LockGun Fi 000682 equ MITFPGUN BAS GLOCK 1 bsf PORTD 3 F1 000683 IN MITFPGUN BAS GUNLOCK 0 bcf PORTD 2 F1 000684 equ MITFPGUN BAS DELAYMS 1000 moviw 3 movwf PP1H moviw 232 f call DLY W F1_000685 egu IN MITFPGUN BAS GLOCK 0 bcf PORTD 3 F1_000686 equ IN MITFPGUN BAS GUNLOCK 0 bcf PORTD 2 F1_000687 equ IN MITFPGUN BAS DELAYMS 500 moviw 1 movwf PP1H moviw 244 f call DLY W F1_000689 equ IN MITFPGUN BAS RETURN return subs UnLockGun Fi 000693 equ IN MITFPGUN BAS GLOCK 0 bcf PORTD 3 F1 000694 equ IN MITFPGUN BAS GUNLOCK 1 bsf PORTD 2 1 000695 equ IN MITFPGUN BAS DELAYMS 1000 moviw 3 movwf PP1H 161 movlw 232 f call DLY W F1_000696 equ IN MITFPGUN BAS GLOCK 0 bcf PORTD 3 F1_000697 equ IN MITFPGUN BAS GUNLOCK 0 bcf PORTD 2 F1_000698 eq
66. RS movlw high STR LB60 movwf GEN4H moviw low STR LB60 f call C STROUT F1 000994 equ IN MITFPGUN BAS DELAYMS 3000 moviw 11 movwf PP1H moviw 184 f call DLY W 1 000996 equ IN MITFPGUN BAS GOTO SJUMPS SRU END F JUMP sjumps SRU End sjumps SRU Fail F1 001000 equ IN MITFPGUN BAS CLS f call LCD CLS F1_001001 equ IN MITFPGUN BAS PRINT AT 1 1 SMS DESTINATION moviw 128 movwf BPFH f call LCD CRS moviw high STR LB61 movwf GEN4H moviw low STR LB61 f call C STROUT F1_001002 equ IN MITFPGUN BAS PRINT AT 2 1 NUMBER REGISTRATION moviw 128 movwf BPFH moviw 192 LCD CRS 194 moviw high STR LB62 movwf GEN4H moviw low STR LB62 f call C STROUT F1_001003 equ IN MITFPGUN BAS PRINT 3 1 moviw 128 movwf BPFH moviw 148 f call LCD CRS movlw high STR LB63 movwf GEN4H moviw low STR LB63 f call C STROUT Fi 001005 equ IN MITFPGUN BAS DELAYMS 3000 moviw 11 movwf PP1H moviw 184 f call DLY W sjumps SRU End F1 001009 equ IN MITFPGUN BAS RETURN return subs SendData F1 001013 equ IN MITFPGUN BAS CLS f call LCD CLS F1 001014 equ IN MITFPGUN BAS PRINT AT 1 1 SENDING DATA moviw 128 movwf BPFH f call LCD CRS moviw high STR LB64 movwf GEN4H moviw low STR LB64 f call C STROUT Fi 001015 equ IN MITFPGUN BAS PRINT 2 1 PLEASE WAIT moviw 128 movwf BPFH moviw 192 f call LCD CRS movlw high STR LB65 movwf GEN4H moviw low
67. RetryGetClock sublw 34 set page PB LB212 btfss STATUS 2 goto PB LB212 clrf PBPZVARO PB LB215 bsf STATUS 0 177 f call HRSIN2 set page sjumps RetryGetClock btfss STATUS 0 goto sjumps RetryGetClock movf PBPZVARO W addlw timeStamps movwf FSR movf RCREG W movwf INDF incf PBPZVARO F movf PBPZVARO W sublw 20 set page PB LB215 btfss STATUS 2 goto PB LB215 F1 000805 equ IN MITFPGUN BAS DELAYMS 500 moviw 1 movwf PP1H moviw 244 f call DLY W F1_000808 equ IN MITFPGUN BAS TMPVAL 0 TIMESTAMPS 0 bsf STATUS 5 ram_bank 1 timeStamps 0 W bcf STATUS 5 ram_bank 0 movwf PBP VARO movf PBP VARO W bsf STATUS 5 ram_bank 1 movwf tmpVal 0 F1 000809 equ IN MITFPGUN BAS 1 TIMESTAMPSJ 1 movf timeStamps 1 W bcf STATUS 5 ram_bank 0 movwf PBP VARO movf PBP VARO W bsf STATUS 5 ram_bank 1 movwf tmpVal 1 F1 000810 equ IN MITFPGUN BAS TMPVAL 2 O clrf tmpVal 2 F1 000812 equ IN MITFPGUN BAS YEARS VAL TMPVAL DEC moviw 218 178 bcf STATUS 5 ram bank 0 VALDEC 32 bsf STATUS 5 ram bank 1 movwf years bcf STATUS 5 ram bank 0 movf PP2H W bsf STATUS 5 ram bank 1 movwf yearsH 1 000813 IN MITFPGUN BAS YEARS YEARS 2000 moviw 208 addwf years F movlw 7 btfsc STATUS O addlw 1 addwf yearsH F 1 000815 IN MITFPGUN BAS TMPVAL 0 TIMESTAMPS 3 timeStamps 3 W bcf STATUS 5 ram bank 0 movwf PBPZVARO movf PBPZVARO W b
68. S F1 000259 equ IN MITFPGUN BAS WHILE TRIGTS 0 WEND BC LL44 set page BC LL45 btfsc PORTD 6 goto BC LL45 ram_bank 0 FOJUMP BC LL44 BC LL45 F1 000261 equ IN MITFPGUN BAS DELAYMS 50 moviw 50 f call DL MS F1_000263 equ 5 IN MITFPGUN BAS INC SHOTCTR bsf STATUS 5 ram_bank 1 incf shotCtr F 1 000266 equ IN MITFPGUN BAS ENDIF BC LL43 bcf STATUS 5 ram_bank 0 BC LL39 F1 000268 equ IN MITFPGUN BAS WEND FOJUMP BC LL37 BC LL38 Fi 000276 equ IN MITFPGUN BAS GOTO MAINCODE F JUMP mainCode subs FPChkSum 107 F1 000281 equ IN MITFPGUN BAS CHKTMP 0 bsf STATUS 5 ram bank 1 clrf chkTmpH cirf chkTmp F1 000283 egu IN MITFPGUN BAS FOR GCTR 0 TO 21 clrf gCtr FR LB47 bcf STATUS 5 ram_bank 0 moviw 22 bsf STATUS 5 ram_bank 1 subwf gCtr W set page NX LB48 bcf STATUS 5 ram_bank 0 btfsc STATUS 0 goto NX LB48 F1 000285 IN MITFPGUN BAS CHKTMP SDATA GCTR bsf STATUS 5 ram_bank 1 movf gCtr W addlw sData movwf FSR movf INDF W bcf STATUS 5 ram_bank 0 movwf PBP VARO movf PBP VARO W bsf STATUS 5 ram_bank 1 addwf chkTmp F btfsc STATUS O incf chkTmpH F CT LB49 bcf STATUS 5 ram_bank 0 F1_000287 equ IN MITFPGUN BAS NEXT GCTR moviw 1 bsf STATUS 5 ram_bank 1 addwf gCtr F set page FR LB4 108 bcf STATUS 5 ram bank 0 btfss STATUS 0 goto FR LB47 NX LB48 F1 000289 equ IN MITFPGUN BAS SDATA 22 CHKSLOW bsf STATUS 5 r
69. S 5 ram bank 0 movlw 3 bsf STATUS 5 ram bank 1 subwf kpCtr W set page NX LB111 bcf STATUS 5 ram_bank 0 btfsc STATUS 0 goto NX LB111 F1_000490 equ IN MITFPGUN BAS SELECT CASE KPCTR F1 000492 equ IN MITFPGUN BAS CASE 0 bsf STATUS 5 ram_bank 1 movf kpCtr F set page BC LL113 bcf STATUS 5 ram_bank 0 btfss STATUS 2 goto BC LL113 1 000494 equ IN MITFPGUN BAS KPCOL1 0 bcf PORTB 4 1 000495 equ IN MITFPGUN BAS KPCOL2 1 bsf PORTB 5 1 000496 equ IN MITFPGUN BAS KPCOL3 1 bsf PORTB 6 F JUMP BC LL112 BC LL113 F1 000498 equ IN MITFPGUN BAS CASE 1 movlw 1 bsf STATUS 5 ram bank 1 subwf kpCtr W set page 116 bcf STATUS 5 ram bank 0 btfss STATUS 2 goto 116 F1 000500 equ IN MITFPGUN BAS KPCOL1 1 126 bsf PORTB 4 Fi 000501 MITFPGUN BAS KPCOL2 0 bcf PORTB 5 F1 000502 equ IN MITFPGUN BAS KPCOL3 1 bsf PORTB 6 F JUMP 1 112 BC LL116 F1_000504 equ IN MITFPGUN BAS CASE 2 movlw 2 bsf STATUS 5 ram_bank 1 subwf kpCtr W set page 118 bcf STATUS 5 ram bank 0 btfss STATUS 2 goto BC LL118 1 000506 equ IN MITFPGUN BAS KPCOL1 1 bsf PORTB 4 Fi 000507 equ IN MITFPGUN BAS KPCOL2 1 bsf PORTB 5 Fi 000508 IN MITFPGUN BAS KPCOL3 0 bcf PORTB 6 F1 000510 equ IN MITFPGUN BAS ENDSELECT BC LL118 BC LL112 F1 000512 equ IN MITFPGUN BAS IF KPROW1 0 THEN set page BC LL120
70. STROUT F1 000613 equ IN MITFPGUN BAS PRINT AT 3 1 3 ERASE moviw 128 movwf BPFH moviw 148 f call LCD CRS movlw high STR LB33 155 movwf GEN4H moviw low STR LB33 f call C STROUT F1 000614 equ IN MITFPGUN BAS PRINT 4 1 4 LOCK UNLOCK moviw 128 movwf BPFH moviw 212 f call LCD CRS moviw high STR LB34 movwf GEN4H movlw low STR LB34 f call C STROUT F1_000616 egu IN MITFPGUN BAS WHILE 1 1 BC LL177 F1_000618 equ IN MITFPGUN BAS KEYTEMP 0 bsf STATUS 5 ram_bank 1 clrf keytemp 1 000619 equ IN MITFPGUN BAS GOSUB SUBS_KP3X416FR bcf STATUS 5 ram_bank 0 subs KP3x416FR F1 000621 egu IN MITFPGUN BAS IF KEYTEMP 1 THEN moviw 49 bsf STATUS 5 ram_bank 1 subwf keytemp W set page BC LL180 bcf STATUS 5 ram_bank 0 btfss STATUS 2 goto BC LL180 F1 000623 equ IN MITFPGUN BAS FPC 0 clrf FPC F1 000624 egu IN MITFPGUN BAS GOSUB SUBS FPCOMMAND subs FPCommand F1 000626 equ IN MITFPGUN BAS USERID lt gt 0 THEN bsf STATUS 5 ram bank 1 movf userIDH W iorwf userID W set page BC LL182 bcf STATUS 5 ram_bank 0 156 btfsc STATUS 2 goto 182 F1 000628 equ IN MITFPGUN BAS CLS f call LCD CLS F1_000629 egu IN MITFPGUN BAS PRINT AT 1 1 USER DEC USERID moviw 128 movwf BPFH f call LCD CRS movlw high STR LB35 movwf GEN4H moviw low STR LB35 f call C STROUT clrf GEN4H bsf STATUS 5 ram_bank 1 movf userIDH
71. Stamps 13 210 timeStamps 14 211 timeStamps 15 212 variable timeStamps 16 213 timeStamps 17 214 timeStamps 18 215 timeStamps 19 216 variable timeStamps 20 217 tmpVal 218 variable tmpVal 0 218 tmpVal 1 219 tmpVal 2 220 years 221 yearsH 222 months 223 days 224 hr 225 mn 226 sc 227 ampm 228 define LCD DTPORT PORTC define LCD RSPORT PORTD define LCD ENPORT PORTD define kpRow1 0 define kpRow2 PORTB 1 z define kpRow3 2 z define kpRow4 PORTB 3 z define kpCol1 PORTB 4 define kpCol2 PORTB 5 z define kpCol3 PORTB 6 define gUnlock PORTD 2 z define gLock PORTD 3 z define myBuzzer PORTC 4 z define gsmPW 5 z define trigTS PORTD 6 define chkSLow chkTmp define chkSHi chkTmpH define uIDL userID define uIDH userIDH define XTAL 20 define HSERIAL_BAUD 9600 76 define HSERIAL RCSTA 144 define HSERIAL TXSTA 36 define LCD DTPIN 0 define LCD RSPIN 0 define LCD ENPIN 1 define LCD LINES 4 define LCD INTERFACE 4 HSERIAL SPBRG 129 HSERIAL TXSTA 36 HSERIAL RCSTA 144 HSERIAL BAUD 9600 proton start org 0 nop movlw high protonz mainz start movwf 10 goto proton main start org 4 FIND ADDRESS bcf 3 7 movwf 62 63 rlf 63 F movlw 0 subwf 63 W movlw 128 skpnz subwf 62 W Skpc goto 7 btfsc 58 7 goto 5 moviw 32 addwf 62 F skpnc incf 63 F moviw 0 subwf 63 W moviw 240
72. T SCI with 9 bit address detection Parallel Slave Port PSP B bits wide with extemal RD WR and CS controls 40 44 pin only Brown out detection arauitry for Brown out Reset BOR Analog Features 10 bit up to B channel Analog to Digital Converter A D Brownout Reset BOR Analog Comparator module with Two analog comparators Programmable on chip voltage reference VREF module Programmable input multiplexing from device inputs and internal voltage reference outputs are extemally accessible Special Microcontroller Features 100 000 erase write cycle Enhanced Flash program memory typical 1 000 000 erase write Data EEPROM memory typical Data EEPROM Retention gt 40 years Self reprogrammable under software control In Circuit Serial Programming ICS PT via two pins Single supply SV In Circuit Serial Programming Watchdog Timer WDT with its cwn on chip RC oscillator for reliable operaton Programmable code protecton Power saving Sleep mode Select ble oscil anr options In Circuit Debug ICD via two pins CMOS Technology Low power high speed Flash EEPROM technology Fully static design Wide operating voltage range 2 0 to 55V Commercial and Industrial temperature ranges Love power consumption 2 ws ves 2 PICTOFBT AA JE m PICIGFB7GA 143 892 256
73. UN BAS KPCOL3 0 bcf PORTB 6 1 000075 equ IN MITFPGUN BAS GOSUB SUBS LOCKGUN f call subs LockGun Fi 000077 equ IN MITFPGUN BAS KPROW4 0 THEN set page BC LL2 btfsc PORTB 3 goto BC LL2 F1 000079 equ IN MITFPGUN BAS GOSUB SUBS HWDIAGNOSTICS f call subs HWDiagnostics F1 000081 equ IN MITFPGUN BAS ENDIF BC LL2 F1 000083 equ IN MITFPGUN BAS GOSUB SUBS SMS INIT f call subs SMS Init mainCode 1 000087 equ MITFPGUN BAS LOGRETRY 0 bsf STATUS 5 ram bank 1 cirf logRetry jmp mcStart bcf STATUS 5 ram bank 0 F1 000091 equ IN MITFPGUN BAS GOSUB SUBS LOCKGUN f call subs LockGun F1 000093 equ IN MITFPGUN BAS CLS f call LCD CLS F1_000094 equ IN MITFPGUN BAS PRINT AT 1 1 SMART GUN moviw 128 movwf BPFH f call LCD CRS moviw high STR LB1 movwf GEN4H moviw low STR LB1 f call C STROUT 95 F1 000095 equ IN MITFPGUN BAS PRINT AT 2 1 PRESS TO UNLOCK moviw 128 movwf BPFH moviw 192 f call LCD CRS moviw high STR LB2 movwf GEN4H moviw low STR LB2 f call C STROUT F1 000097 equ IN MITFPGUN BAS IF LOGRETRY gt 0 THEN bsf STATUS 5 ram_bank 1 movf logRetry F set page BC LL4 bcf STATUS 5 ram_bank 0 btfsc STATUS 2 goto BC LL4 F1_000099 equ IN MITFPGUN BAS PRINT AT 4 1 LOGIN ATTEMPTS DEC LOGRETRY 3 moviw 128 movwf BPFH moviw 212 f call LCD CRS movlw high STR LB3 movwf GEN4H moviw low STR LB3 f call C STROUT bsf STATUS 5 r
74. Z 14 movlw 32 movwf FPEMsg 15 movwf FPEMsg 16 movwf FPEMsg 17 movwf FPEMsg 18 movwf FPEMsg 19 cirf FPEMsg 20 F JUMP BC LL136 BC LL162 F1 000590 equ IN MITFPGUN BAS CASE 51 STR FPEMSG MEMORY ERROR 0 movlw 81 subwf FPECode W set page BC LL164 btfss STATUS 2 goto BC LL164 ram_bank 0 movlw 77 movwf FPEMsg 0 movlw 69 movwf FPEMsg 1 movlw 77 movwf FPEMsg Z2 147 movlw 79 movwf FPEMsg 3 movlw 82 movwf FPEMsg 4 movlw 89 movwf FPEMsg 5 movlw 32 movwf FPEMsg 6 movlw 69 movwf FPEMsg Z7 movlw 82 movwf FPEMsg 8 movwf FPEMsg 9 movlw 79 movwf FPEMsg 10 movlw 82 movwf FPEMsg 11 movlw 46 movwf FPEMsg 12 movlw 32 movwf FPEMsg 13 movwf FPEMsg 14 movwf FPEMsg 15 movwf FPEMsg 16 movwf FPEMsg 17 movwf FPEMsg 18 movwf FPEMsg 19 cirf FPEMsg 20 F JUMP BC LL136 BC LL164 F1 000591 equ IN MITFPGUN BAS CASE 52 STR FPEMSG FIRMWARE ERROR 0 movlw 82 subwf FPECode W set page BC LL166 btfss STATUS 2 goto BC LL166 ram_bank 0 movlw 70 movwf FPEMsg 0 movlw 73 movwf FPEMsg 1 movlw 82 movwf FPEMsg 2 148 movlw 77 movwf FPEMsg 3 movlw 87 movwf FPEMsg 4 movlw 65 movwf FPEMsg 5 movlw 82 movwf FPEMsg 6 movlw 69 movwf FPEMsg Z7 movlw 32 movwf FPEMsg 8 movlw 69 movwf FPEMsg 9 movlw 82 movwf FPEMsg 10 movwf FPEMsg 11 movlw 79 movwf FPEMsg 12 movlw 82 movwf FPEMsg 13 movlw 46 movwf FPEMsg 14 movlw 32 movwf FPEMsg 15 movwf 16 movwf FPEMsg 7 17 movwf FPEMsg7 18
75. acket 3 2 1 Command packet Command Packet is the instruction from Host to Target ADST11SD3xx Total length of the command packet is 24 Bytes 3 2 2 Response packet Response packet is result of execute command packet from Target ADST11SD3xx to Host Total length of the command packet is 24 Bytes 3 2 3 Data Packet When length of Command Parameter or Data 15 larger than 16 Bytes Utilize Data Packet to transmit block Data the maximum length of Data Packet 16 512Bytes 3 3 Packet Structure 3 3 1 Packet Identify Code Section of start 2byte prefix define type of packet Command packet OxAA55 Response packet OxSSAA Command Data Packet 0xA55A Response Data Packet 5 5 3 3 2 Structure of Command Packet PREFIX CMD LEN DATA CKS EREET PET 213 EPPPPPULF FEE OFFSET FIELD TYPE SIZE DESCRYPTION NN PREFIX WORD 2byte Packet Identify code WORD 2byte Command Code WORD 2byte lt 17 Length of Command Parameter Check Sum 15 the low word of value listed below WORD offset 0 offset 1 roffset 21 3 3 3 Response pae PE FRERE ETT a a OFFSET FIELD TYPE SIZE DESCRYPTION PREFIX WORD 2byte Packet Identify code WORD 2byte Response Code WORD 2byte n n lt 17 RET and DATA Result Code 214 listed below offset 0 offset 1 offset 2 1 3 3 4 Command Data GN P Tr LU o o
76. age and also guarantee the reliability of each fingerprint image Figure 2 4 presents a fingerprint verification system which consists of two phases enrollment and verification In the offline enrollment phase at first the fingerprint image of an enrollee is acquired and pre processed Then the minutiae are extracted from the raw image and stored as enrolled template And in the online verification phase it reads the fingerprint from a claimer and detects the minutiae information through the same procedure as in the enrollment phase Then it estimates the similarity between the enrolled minutiae and the input minutiae 13 F E MATCH fee Mintia Figure 2 4 User authentication system using fingerprint As automatic fingerprint identification and authentication systems rely on representing the two most prominent minutiae a reliable minutiae extraction algorithm is critical to the performance of the system However although minutiae are detected through not only extraction process but also false minutiae removal process it is still possible to detect false minutiae and miss true one These faults can cause matching failure In particular if they occur during enrollment phase and are stored as enrolled template it will be serious problem because they will affect the matching phase continuously The suggested plural fingerprint images on the enrollment phase to discard the false minutiae and compensate the missed
77. am_bank 0 moviw 22 bsf STATUS 5 ram_bank 1 subwf gCtr W set page NX OLB6 bcf STATUS 5 ram_bank 0 btfsc STATUS 0 goto NX LB6 F1 000348 equ IN MITFPGUN BAS SDATA GCTR 00 bsf STATUS 5 ram_bank 1 movf gCtr W addlw sData movwf FSR moviw 0 movwf INDF CT LB68 bcf STATUS 5 ram_bank 0 F1_000350 equ IN MITFPGUN BAS NEXT GCTR moviw 1 bsf STATUS 5 ram_bank 1 addwf gCtr F set page FR LB66 bcf STATUS 5 ram_bank 0 btfss STATUS 0 goto FR LB66 NX LB67 F1_000352 MITFPGUN BAS GOSUB SUBS FPCHKSUM f call subs FPChkSum F1 000354 egu IN MITFPGUN BAS CLS f call LCD CLS 114 F1 000355 IN MITFPGUN BAS PRINT AT 1 1 ENROLLING FP moviw 128 movwf BPFH f call LCD CRS moviw high STR LB21 movwf GEN4H moviw low STR LB21 f call C STROUT F1 000356 equ IN MITFPGUN BAS PRINT AT 2 1 TAKING SAMPLE 1 moviw 128 movwf BPFH moviw 192 f call LCD CRS moviw high STR LB22 movwf GEN4H moviw low STR LB22 f call C STROUT F1 000358 equ IN MITFPGUN BAS GOSUB SUBS FPSENDRQ f call subs FPSendRQ F1 000360 equ IN MITFPGUN BAS GCTR 1 moviw 1 bsf STATUS 5 ram bank 1 movwf gCtr F1 000363 egu IN MITFPGUN BAS WHILE 1 1 BC LL68 bcf STATUS 5 ram_bank 0 F1 000366 equ IN MITFPGUN BAS IF SREPLY 5 00 THEN movf sReply 5 W movwf PBP VARO movf PBP VARO F set page BC LL 1 btfss STATUS 2 goto BC LL 1 F1 000368 equ IN MITFPGUN BAS IF SREPLY 8
78. am_bank 1 movf chkTmp W bcf STATUS 5 ram_bank 0 movwf sData 22 F1 000290 equ IN MITFPGUN BAS SDATA 23 CHKSHI bsf STATUS 5 ram_bank 1 movf chkTmpH W bcf STATUS 5 ram bank 0 movwf sData 23 F1 000292 equ IN MITFPGUN BAS RETURN return subs FPCommand F1 000296 equ IN MITFPGUN BAS SELECT CASE FPC F1 000299 equ IN MITFPGUN BAS CASE 0 movf FPC F set page 50 btfss STATUS 2 goto BC LL50 Fi 000301 equ IN MITFPGUN BAS SDATA 0 55 moviw 85 movwf sData 0 Fi 000302 equ IN MITFPGUN BAS SDATA 1 AA moviw 170 movwf sData 1 F1 000303 equ IN MITFPGUN BAS SDATA 2 02 moviw 2 movwf sDataz 2 F1_000304 eau IN MITFPGUN BAS SDATA 3 01 movlw 1 movwf sData 3 F1_000306 equ IN MITFPGUN BAS FOR GCTR 4 TO 21 movlw 4 bsf STATUS 5 ram bank 1 109 movwf gCtr FR LB53 bcf STATUS 5 ram_bank 0 moviw 22 bsf STATUS 5 ram_bank 1 subwf gCtr W set page NX LB54 bcf STATUS 5 ram_bank 0 btfsc STATUS O goto NX LB54 F1_000308 equ IN MITFPGUN BAS SDATA GCTR 00 bsf STATUS 5 ram_bank 1 movf gCtr W addlw sData movwf FSR moviw 0 movwf INDF CT LB55 bcf STATUS 5 ram_bank 0 F1_000310 equ IN MITFPGUN BAS NEXT GCTR moviw 1 bsf STATUS 5 ram_bank 1 addwf gCtr F set page FR LB53 bcf STATUS 5 ram_bank 0 btfss STATUS O goto FR LB53 NX LB54 F1_000312 egu MITFPGUN BAS GOSUB SUBS FPCHKSUM f call subs FPChkSum F1 000314 IN
79. am_bank 1 movf logRetry W bcf STATUS 5 ram_bank 0 f call OUT DECB moviw 47 f call PRINT moviw 51 f call PRINT F1_000101 equ IN MITFPGUN BAS ENDIF BC LL4 F1_000103 equ IN MITFPGUN BAS WHILE 1 1 BC LL5 F1_000105 equ IN MITFPGUN BAS KEYTEMP 0 bsf STATUS 5 96 ram bank 1 clrf keytemp Fi 000106 IN MITFPGUN BAS GOSUB SUBS KP3X416FR bcf STATUS 5 ram bank 0 subs KP3x416FR F1 000108 equ IN MITFPGUN BAS IF KEYTEMP 4 THEN moviw 35 bsf STATUS 5 ram bank 1 subwf keytemp W set page 8 bcf STATUS 5 ram bank 0 btfss STATUS 2 goto BC LL8 F1 000110 equ 5 IN MITFPGUN BAS PRINT 3 1 VERIFYING FPRINT moviw 128 movwf BPFH moviw 148 f call LCD CRS moviw high STR LB4 movwf GEN4H moviw low STR LB4 f call C STROUT F1_000112 equ 5 IN MITFPGUN BAS FPC 0 clrf FPC F1 000113 equ IN MITFPGUN BAS GOSUB SUBS FPCOMMAND f call subs FPCommand F1_000115 equ 5 IN MITFPGUN BAS SELECT CASE USERID F1_000117 equ IN MITFPGUN BAS CASE 0 bsf STATUS 5 ram_bank 1 movf userIDH W iorwf userID W set page BC LL10 bcf STATUS 5 ram_bank 0 btfss STATUS 2 goto BC LL10 F1 000119 IN MITFPGUN BAS PRINT AT 3 1 ACCESS DENIED moviw 128 movwf BPFH moviw 148 97 f call LCD CRS movlw high STR LB5 movwf GEN4H moviw low STR LB5 f call C STROUT F1 000121 equ IN MITFPGUN BAS IF LOGRETRY lt 3 THEN movlw 3 bsf STATUS 5 ram_bank
80. bwf PBP VARO W set page BC LL81 btfss STATUS 2 goto BC LL81 F1 000388 equ IN MITFPGUN BAS PRINT 2 1 LIFT FINGER movlw 128 movwf BPFH movlw 192 f call LCD CRS moviw high STR LB24 movwf GEN4H moviw low STR LB24 f call C STROUT 1 000391 egu IN MITFPGUN BAS ENDSELECT BC LL81 BC LL74 F JUMP BC LL72 F1 000393 equ IN MITFPGUN BAS ELSEIF SREPLY 7 21 AND SREPLY 8 00 THEN BC LL73 movf sReply 7 W movwf PBPZVAR1 117 movlw 33 subwf PBPZVAR1 W movlw 1 btfss STATUS 2 movlw 0 movwf SP P9 movf sReply 8 W movwf PBPZVAR1 movlw 1 PBP VAR1 F btfss STATUS 2 movlw 0 andwf SP P9 F set page 82 btfsc STATUS 2 goto BC LL82 F1 000395 IN MITFPGUN BAS PRINT AT 2 1 SAMPLING ERROR movlw 128 movwf BPFH movlw 192 LCD CRS movlw high STR LB25 movwf GEN4H moviw low STR LB25 f call C STROUT F JUMP BC LL72 F1_000397 equ IN MITFPGUN BAS ELSEIF SREPLY 3 06 THEN BC LL82 movf sReply 3 W movwf PBPZVAR1 movlw 6 subwf PBPZVAR1 W set page BC LL83 btfss STATUS 2 goto BC LL83 F1_000399 equ IN MITFPGUN BAS PRINT AT 2 1 SAMPLING COMPLETE movlw 128 movwf BPFH movlw 192 LCD CRS movlw high STR LB26 movwf GEN4H moviw low STR LB26 f call C STROUT 118 F1 000400 equ IN MITFPGUN BAS GOTO SJ FPC COMPLETE F JUMP sj FPC Complete F1 000402 equ IN MITFPGUN BAS ENDIF 83 BC LL72
81. call bsf 32 1 movf 58 W goto PRT 1 bsf 32 0 PRT 1 movwf 57 btfss 32 0 goto PRIT SKP bcf PORTD O sublw 3 goto PRT S call PRT S movlw 7 movwf 48 moviw 208 call DLUS W bsf 3 0 return PRIT SKP bsf 32 0 sublw 254 skpnz goto PR EX bsf PORTD O PRTOS swapf 57 F btfss 32 0 PROLP bcf 32 0 bsf PORTD 1 moviw 240 andwf PORTC F movf 57 W andlw 15 iorwf PORTC F nop bcf PORTD 1 swapf 57 F nop 84 btfsc 32 0 goto PROLP movlw 50 call DL US PR EX movf 58 W goto SERIN call SRIN B skpnc goto SERIN SRIN S call SRIN SD clrf 59 movlw 8 movwf 52 call SRINGD call SRIN B skpnc incf 59 F btfss 61 5 clrf 59 rrf 51 F decfsz 52 F goto 8 btfsc 61 5 bcf 51 7 call SRINGD movf 51 W return SRINGB movf 35 W movwf 4 movf 42 W bsf 4 7 iorwf O F bcf 4 7 andwf btfsc 61 6 xorwf 42 W addlw 255 return SEROUT movwf 57 85 SRO X movf 35 W movwf 4 clrf 43 movlw 240 andwf 43 F movlw 8 movwf 58 bcf 3 0 skpnc incf 43 F call SRO B rrf 57 F decfsz 58 F goto 5 nop btfsc 61 5 rrf 43 W call SRO B goto 1 bsf 3 0 call SRO B movf 39 W movwf 52 movf 38 W call DLY W goto SRO B bcf 4 7 btfss 61 7 goto 13 movf 0 W iorwf 42 W btfss 61 6 xorwf 42 W movwf 0 bsf 4 7 movf 0 W iorwf 42 Skpc xorwf 42 W movwf 0 goto SRIN D movf 0 W 86 iorwf 42 W Skpc xorwf 42 W btfsc 61 6 xorwf 42 W movwf 0 bsf 4 7 comf 42 W an
82. cle presented a biometric based applications that guarantee resolving numerous security hazards As a method of preserving privacy and the security of sensitive information biometrics has been studied and used for the past few decades Fingerprint is one of the most widely used biometrics A number of fingerprint verification approaches have been proposed until now However fingerprint images acquired using current fingerprint input devices that have small field of view are from just very limited areas of whole fingertips Therefore essential information required to distinguish fingerprints could be missed or extracted falsely The limited and somewhat 12 distorted information are detection from them which might reduce the accuracy of fingerprint verification systems In the system that verifies the identity of two fingerprints using fingerprint features it is critical to extract the correct feature information In order to deal with these problems compensation of imperfect information can be performed using multiple impressions of enrollee s fingerprints Additional three fingerprint images are used in enrollment phase of fingerprint verification system Traditionally verified users have gained access to their property or service via dozens of PIN password smart cards and so on However these knowledge from plural fingerprint images on enrollment stage The proposed enrollment uses multiple fingerprint images to extend enrolled fingerprint im
83. cord Record Size Data Error Code of Captured FP 2 or 4 218 Verify Downloaded 0 011 Template Template 4 ws Code Record Size Record Data Feature with Captured FP Identify Downloaded 0x011C Template Index 0 011 4 Code Record Size Template Feature with Captured Pe J DD FP Get Device Name 0x0121 0x0121 SIO20 OEM Error Code Sensor LED Control 0x0124 oS MN 0x0124 Identify Free 0x0125 0x0125 NUN No Error Code 32 Set Device Password 126 0 01 m Error Code Verify Device s cain uu Error Password Get Enroll Count 0x0128 0x0128 Enroll Count Error Code FP Cancel 0x0130 0x0130 2 M mr PL Table4 2 Command List 5 Appendix 5 1 Response and Error Code Response and Error Code Description ERR SUCCESS Successful for command execute all eds pum ll perenne TIN ere ____ 220 0x70 Parameter 15 invalid ERR INVALID PARAM ul 21 ERR NO RELEASE 0 71 In process of IdentifyFree command EE al Finger 1s not release 30 GD NEED SECOND SWEEP 0xFFF2 Waiting input fingerprint for the second time GD NEED THIRD SWEEP OxFFF3 Waiting input fingerprint for the third time GD NEED RELEASE FINGER OxFFF4 Luft finger GD DETECT FINGER There 15 an finger on sensor GD NO DETECT FINGER There 15 no finger on sensor GD TEMPLATE NOT EMPTY The appointed Template Data are not null
84. d time it was used 47 Impact Analysis The design would have a great effect on the safety of the people and stop the abuse and misuse of guns for crime This will also prevent any other accidents that are gun related With this innovation guns are more secured because only the rightful owner has access to this device with its built in fingerprint scanner that would determine if the user owns the registered fingerprint or not Also passing and sharing of guns will not be possible because for every person there is a unique finger print and only the registered owner has the access to pull the trigger It can also affect the social relation of the agency to its clients ensuring the safety of their customers and having a more advanced weapon that is more secured than the conventional gun 48 CHAPTER 5 CONCLUSION AND RECOMMENDATION Conclusion In conclusion the Biometric analysis for firearm identification with real time detection for ballistic projectile via SMS can be useful for keeping the safety of the gun users and avoiding the misuse of it This paper achieved its objective to create a standalone device that is attached to a gun that asks first for the fingerprint of the registered user before the gun can actually be used Also the gun lock would not be released unless a correct fingerprint pattern is used With the use of the GSM technology the device can send a message once an invalid fingerprint is used Furthermore the system k
85. dwf O F goto SRIN D SRIN SD bsf 43 6 SRIN D movf 61 W andlw 31 0 movwf 48 movf 60 W addlw 14 skpnc incf 48 F btfss 43 6 goto DLUS W bcf 43 6 movwf 47 movlw 2 call R SH goto DLUS W HRSIN2 btfsc 24 PP OERR bcf 24 PP CREN bsf 24 PP CREN movf 35 W movwf 47 movf 42 W movwf 48 clrf 51 clrf 52 goto 1 goto 1 HRSIN LPT nop btfsc 12 PP_RCIF goto H RSIN 87 movlw 255 addwf 51 F addwf 52 F addwf 47 F addwf 48 F goto incfsz 51 goto 5 16 incfsz 52 W goto 17 movlw 250 movwf 51 clrf 52 goto HRSIN LPT HRSIN btfsc 24 OERR bcf 24 CREN bsf 24 CREN btfss 12 RCIF goto 1 H RSIN movf 26 W bsf 3 0 goto HRSOUT btfss 12 PP_TXIF goto 1 movwf 25 bsf 3 0 goto I NT CH SND btfsc 33 7 goto PRINT btfsc 33 5 goto SEROUT btfsc 33 2 goto HRSOUT return CH RCV movf 70 F 88 skpnz goto HRSIN2 decf 70 W skpnz goto HRSIN movf 70 W xorlw 5 skpnz goto SERIN bsf 3 0 btfss 70 7 return movf 0 W incf 4 F return C STROUT movwf 40 C STROUTW clrf 34 C STROUTLP movf 40 W bsf 3 6 movwf 269 bcf 3 6 movf 41 W bsf 3 6 movwf 271 call C READ skpnz goto call CHOSND incf 40 F skpnz incf 41 F incfsz 34 F goto COSTROUTLP goto C READ bsf 3 5 bsf 3 6 bsf 396 PP_EEPGD bsf 396 PP_RD nop nop 89 bcf 3 5 movf 2
86. e 4 7 Fingerprint Enrollment Sample 3 43 Based on the collected data for registering new fingerprint into the system new fingerprints can be registered given that the system is in Administrator Mode where the testing results for the validating admin s fingerprint is shown in Table 4 1 TJENT _ o el 44 SUCCESS UNLOCKED SUCCESS UNLOCKED SUCCESS UNLOCKED SUCCESS UNLOCKED SUCCESS UNLOCKED Table 4 3 Validating User s Fingerprint Figure 4 8 Firearm is Unlocked Based on the gathered data the system validates the user s fingerprint accurately resulting in unlocking the solenoid lock in the firearm s trigger This proves that the design can secure firearms where it will be installed with 100 accuracy in verifying untrusted 55 TRIAL NUMBER OF TRIGGER PULLED STATUS 46 PT JE TT n 100 MESSAGE WAS SENT Table 4 4 Testing for monitoring of number of Shots Time Date Based on the collected data after pulling the trigger of the said firearms and locking it a text message was sent to the registered phone number on the system having the number of times the trigger was pulled with its time and date This proves that the design can monitor how many shots were made during its unlocked state me 1 41pm SMART GUN ep 2012 1 41 pm SMART GUN DATA DATE 09 06 2012 SHOTS FIRED w Figure 4 9 total number of shots fired date an
87. e major minutia features of fingerprint ridges are ridge ending bifurcation and short ridge or dot The ridge ending is the point at which a ridge terminates Bifurcations are points at which a single ridge splits into two ridges Short ridges or dots are ridges which are significantly shorter than the average ridge length on the fingerprint Minutia and patterns are very important in the analysis of fingerprints since no two fingers have been shown to be identical Figure 2 3 Ridge ending Bifurcation Short Ridge Dot Pattern 11 Fingerprint Sensors A fingerprint sensor is an electronic device used to capture a digital image of the fingerprint pattern The captured image is called a live scan This live scan is digitally processed to create a biometric template a collection of extracted features which is stored and used for matching Fingerprint is one of the most common biometrics used in the field of security which still faces challenges that present acceptance These challenges include threat of identity theft which has been validated as a realistic vulnerability in the study by Palka and Hamilton 2009 in the Fingerprint Readers Vulnerabilities to Front and Back end Attacks the researchers stated that the technology used for sensors and fingerprint processing has matured but vulnerabilities still persist as described in their paper Access Control System with High Level Security Using Fingerprints The arti
88. e one responsible for collecting users fingerprints It is regulated by a 5V output voltage An oscillator of 20 mega Hertz is connected to one of the microcontroller s pins for the purpose of timing frequency A 100 micro faradcapacitor is connected to the output voltage of the regulator and the ground to filter out the noise coming from the regulator The GSM Module is the one responsible in transferring the data gathered by the microcontroller It is regulated by a 5V output voltage and 100 micro farad capacitor is connected to the output voltage of the regulator and the ground to filter out the noise coming from the regulator The relay circuit is connected to the 12V battery that is required to trigger the push pull solenoid lock 25 SOFTWARE DEVELOPMENT PROGRAM FLOW CHART INITIALIZE GSM MODULE UNLOCK GUN PRESS TO UNLOCK GUN PEDER SHOTS FIRED No PRESS LOCK GUN Yes No SCAN FINGERPRINT Yes LOCK GUN SEND SMS INFORMATION FINGER PRINT MATCH Yes Mo COUNT 1 Comp gt Yes SEND SMS ALERT MESSAGE 26 Figure 3 3 System Flow Figure 3 4 CHANGE FINGERPRINT SCAN G FINGERPRINT m UNLOCK 25 GUN aW No Yes CELLPHONE UNLOCK GUN Yes No EXIT INITIALIZE GSM MODULE COUNT THE NUMBER OF SHOTS FIRED LOCK GUN SEND SMS INFORMATION SEND ACTUAL DATE AND TIME SEND TOTAL NUMBER OF SHOTS FIRED
89. eeps a record of the gun shots and sends them together with real time and date after the gun is disarmed The design proves that the use of the fingerprint technology can prevent any unwanted accidents in using firearms It can also track the activity of the gun shots with the use of the GSM Module Finally the whole system would help in providing security in both the users and civilians 49 Recommendation Even though the design accomplished all the objectives that had been stated in this paper there are still several limitations and improvements that can be addressed to make the design more functional This design proves that it can secure the firearms from unauthorized individuals but not 100 accurate To make it use its full potential in terms of security the researchers suggest that the solenoid lock is programmed to automatically lock when its power source is less than 5 When the switch is in unlocked state but its power source runs out the device will remain unlocked Furthermore the researchers also suggest to have the said design sustain the heat and aftershock of every shot that is made by the gun Future studies relating to this paper can also include hand print scan instead of just a finger print for the user This can eliminate the time in which the user puts his her finger on the scanner first while having a hand print scan which can possibly attach to the grip of the firearm 50 Bibliography Jain L C e
90. gh STR LB9 movwf GEN4H moviw low STR LB9 f call C STROUT F1_000143 equ IN MITFPGUN BAS WHILE 1 1 BC LL17 1 000145 equ IN MITFPGUN BAS KEYTEMP 0 bsf STATUS 5 ram_bank 1 99 clrf keytemp F1 000146 equ MITFPGUN BAS GOSUB SUBS KP3X416FR bcf STATUS 5 ram bank 0 f call subs KP3x416FR F1 000148 equ IN MITFPGUN BAS SELECT CASE KEYTEMP Fi 000150 IN MITFPGUN BAS CASE 1 movlw 49 bsf STATUS 5 ram bank 1 subwf keytemp W set page 20 bcf STATUS 5 ram bank 0 btfss STATUS 2 goto BC LL20 F1 000152 equ IN MITFPGUN BAS CLS f call LCD CLS F1 000153 equ IN MITFPGUN BAS PRINT 1 1 1 CHANGE ADMIN FP moviw 128 movwf BPFH LCD CRS movlw high STR LB10 movwf GEN4H moviw low STR LB10 f call C STROUT F1 000154 equ IN MITFPGUN BAS PRINT AT 2 1 2 CHANGE USER moviw 128 movwf BPFH moviw 192 f call LCD CRS moviw high STR LB11 movwf GEN4H moviw low STR LB11 f call C STROUT F1 000155 equ IN MITFPGUN BAS PRINT 3 1 3 CANCEL moviw 128 movwf BPFH moviw 148 f call LCD CRS moviw high STR LB12 movwf GEN4H moviw low STR LB12 f call C STROUT 100 F1 000157 equ IN MITFPGUN BAS WHILE 1 1 22 F1 000159 egu IN MITFPGUN BAS KEYTEMP 0 bsf STATUS 5 ram bank 1 clrf keytemp 1 000161 IN MITFPGUN BAS GOSUB SUBS KP3X416FR bcf STATUS 5 ram bank 0 f call subs KP3x416FR F1 000163 equ
91. he enrollment biometric information from an individual is captured and stored In subsequent uses biometric information is detected and compared with the information stored at the time of enrollment The first block sensor is the interface between the real world and the system it has to acquire all the necessary data Most of the times it is an image acquisition system but it can change according to the characteristic desired The second block performs all the necessary pre processing it has to remove artifacts from the sensor to enhance the input to use some kind of normalization etc In the third block necessary features are extracted If enrollment is being performed the template is simply stored somewhere If a matching phase is being performed the obtained template is passed to a matcher that compares it with other existing templates estimating the distance between them using any algorithm The matching program will analyze the template with the input This will then be output for any specified use or purpose In the article entitled Biometrics Biometrics was defined as an open minded set of technologies based on the measurement of some unique physical characteristics of an individual for the purpose of identifying an individual or verifying identity which cannot be borrowed stolen or forgotten This technology measures the individual s unique physical or behavioural characteristics to recognize or authenticate their identity
92. hr F set page 216 bcf STATUS 5 ram bank 0 btfss STATUS 2 goto BC LL216 Fi 000847 equ IN MITFPGUN BAS 12 moviw 12 bsf STATUS 5 ram bank 1 movwf hr F1 000848 equ IN MITFPGUN BAS AMPM moviw 65 movwf ampm bcf STATUS 5 ram bank 0 182 FOJUMP BC LL215 Fi 000850 equ IN MITFPGUN BAS ELSEIF HR 12 THEN BC LL216 moviw 12 bsf STATUS 5 ram_bank 1 subwf hr W set page BCOLL217 bcf STATUS 5 ram_bank 0 btfss STATUS 2 goto BC LL217 1 000852 IN MITFPGUN BAS HR 12 moviw 12 bsf STATUS 5 ram_bank 1 movwf hr 1 000853 equ IN MITFPGUN BAS AMPM moviw 80 movwf ampm bcf STATUS 5 ram_bank 0 FOJUMP BC LL215 F1_000855 IN MITFPGUN BAS ELSEIF HR gt 12 THEN BC LL217 moviw 13 bsf STATUS 5 ram_bank 1 subwf hr W set page 218 bcf STATUS 5 ram bank 0 btfss STATUS 0 goto BC LL218 F1 000857 equ IN MITFPGUN BAS HR HR 12 moviw 12 bsf STATUS 5 ram bank 1 subwf hr F 1 000858 equ IN MITFPGUN BAS AMPM P moviw 80 movwf ampm bcf STATUS 5 ram bank 0 183 219 218 F1_000860 equ IN MITFPGUN BAS ELSE F1 000862 equ IN MITFPGUN BAS AMPM A moviw 65 bsf STATUS 5 ram_bank 1 movwf ampm F1 000865 equ IN MITFPGUN BAS ENDIF BC LL219 bcf STATUS 5 ram_bank 0 BC LL215 F1_000868 equ IN MITFPGUN BAS RETURN return subs SMS InitFailed F1 000872 equ IN MITFPGUN
93. iw 198 80 skpnc goto IN BNF32 addlw 10 skpnc goto IN DCL132 IN BNF32 btfss 43 5 goto 12 comf 53 F comf 54 F comf 55 F comf 56 F incf 53 F skpnz incf 54 F skpnz incf 55 F skpnz incf 56 F movf 53 W Setc goto I NT OUT DECB cirf 41 OUTQDECC movwf 53 cirf 54 OUT DEC bcf 32 3 movf 41 W skpnz bsf 32 3 movlw 5 movwf 40 moviw 39 movwf 52 moviw 16 call D DIG movlw 3 movwf 52 moviw 232 call D DIG clrf 52 movlw 100 81 call D DIG clrf 52 movlw 10 call D DIG movf 53 goto SEND IT D DIG movwf 51 movf 54 W movwf 48 movf 53 W movwf 47 call D VD movf 47 W SEND IT movwf 47 decf 40 F skpnz bcf 32 3 movf 41 W skpnz goto 4 subwf 40 W skpnc goto EX SEND IT movf 47 W Skpz bcf 32 3 btfsc 32 3 goto EX SEND IT addlw 48 goto CH SND EKOSENDOIT return SB STROUT movwf 53 SB STROUTLP movf 40 W skpnz goto btfsc 54 0 bsf 3 7 movf 53 movwf 4 82 movf 0 W bcf 3 7 skpnz goto I NT call CH SND incf 53 F decf 40 F goto SB STROUTLP PRINT movwf 58 bcf PORTD 1 bcf PORTD O bsf 3 5 bcf PORTD 1 bcf PORTD O moviw 240 PORTC F bcf 3 5 movf 58 W btfsc 32 1 goto PRT 1 moviw 62 movwf 48 moviw 128 call DLUS W moviw 51 movwf 57 call PR LP moviw 19 movwf 48 moviw 136 call DLUS W call PROLP moviw 100 call DL US call PR LP moviw 100 call DL US moviw 34 movwf 57 call PROLP moviw 40 call moviw 12 83 call movlw 6
94. l files by hardware encryption With the Puppy Linux customization HLSPS provides the users a high level security portable work environment Li amp Chen 2010 21 CHAPTER 3 DESIGN PROCEDURES This chapter gives a detailed discussion on how the step by step procedure will be used on the design in order to give the readers the idea on how the prototype has been created This also helps the readers to easily understand how the group contributed to be able to theorize the development of the design With the help of the idea and data that were gathered in Chapter 2 the group came up the idea on how the design will be implemented as shown in Figure 3 1 In this design project the safety mechanism of the gun will be replaced with fingerprint authentication which can only be accessed by the administrator and registered user The fingerprint module that is used in the design is responsible for giving an access to a specific user provided that all allowed fingerprints are stored in the system The system will then keep a track of all the user s gunshots and record them specifically with the date and time and is sent via short messaging service SMS 22 HARDWARE DEVELOPMENT BLOCK DIAGRAM FINGERPRINT READER KEYPAD MICROCONTROLLER SOLENOID LOCK Figure 3 1 Block Diagram of the Design Figure 3 1 shows the block diagram of the design To access the fingerprint reader the pound sign must be pressed on the keypad to tu
95. lly unlock the gun While in the administrator mode the system will display a menu of the functions that the administrator is capable of carrying out The administrator is allowed to change the user s fingerprint and also his own fingerprint It can also change the cellphone number where the message would be sent Lastly the administrator mode can also unlock the gun or choose to exit the menu to be able to scan another fingerprint Figure 3 5 presents the GSM Module system flow when 29 the gun is locked the system will send an SMS message containing the total number of shots fired by the gun together with its real time and date of its use to the cellphone number that is registered in the system When the system fails to send the message it will display a message informing that the system failed to send the message PROTOTYPE DEVELOPMENT Figure 3 6 GSM Module The GSM Module is a specialized type of modem which accepts a SIM card and operates over a subscription to a mobile operator The GSM modem is integrated to the microcontroller that allows the device to communicate to the mobile network and used for sending SMS messages 30 Figure 3 7 Biometric Module The Biometric Module serves as the primary device for the verification of the fingerprints It is also used to determine the mode of the user of the gun Figure 3 8 Microcontroller 31 The microcontroller unit is in charge of receiving data from the Biometric
96. lw STR LB43 gt gt 8 4 255 movwf GEN4H moviw STR LB43 4 255 COSTROUT movlw 13 f call HRSOUT F1 000746 equ MITFPGUN BAS HSERIN 1500 SUBS SMS INITFAILED WAIT OK movlw 5 movwf GENH movlw 220 movwf GEN PB LB195 f call HRSIN2 set page subs SMS InitFailed btfss STATUS O goto subs SMS InitFailed sublw 79 set page PB LB195 btfss STATUS 2 goto PB LB195 f call HRSIN2 set page subs SMS InitFailed btfss STATUS O goto subs SMS InitFailed sublw 75 set page PB LB195 btfss STATUS 2 goto PB LB195 F1 000747 equ IN MITFPGUN BAS DELAYMS 100 movlw 100 f call DL MS F1 000749 equ IN MITFPGUN BAS PRINT AT 3 1 6 movlw 128 movwf BPFH movlw 148 f call LCD CRS 167 movlw 54 f call PRINT Fi 000751 equ IN MITFPGUN BAS HSEROUT AT CMEE 0 13 movlw 4 movwf BPFH movlw STR LB44 gt gt 8 4 255 movwf GEN4H moviw STR LB44 amp 255 COSTROUT movlw 13 f call HRSOUT Fi 000752 equ IN MITFPGUN BAS HSERIN 1500 SUBS SMS INITFAILED WAIT OK movlw 5 movwf GENH movlw 220 movwf GEN PB LB196 f call HRSIN2 set page subs SMS InitFailed btfss STATUS O goto subs SMS InitFailed sublw 79 set page PB LB196 btfss STATUS 2 goto PB LB196 f call HRSIN2 set page subs SMS InitFailed btfss STATUS O goto subs SMS InitFailed sublw 75 set page PB LB196 btfss STATUS 2 goto PB LB196 F1 000753 equ IN MITFPGUN BAS DELAYMS 100 movlw 100 f call DL MS 1 000755 IN MITFPGUN BAS
97. lw 1 S b pByteOut movwf pByteOut rab endm bit bit macro pVarin pBitIn pVarOut pBitout if pVarin amp 65408 pVarOut amp 65408 S b pVarOut btfsc pVarin pBitIn bsf pVarOut pBitout btfss pVarin pBitIn bcf pVarOut pBitout else S b pVarin clrdc btfsc pVarin pBitIn setdc S b pVarOut skpndc bsf pVarOut pBitout skpdc bcf pVarOut pBitout endif endm 70 bit word macro pVarin pBitIn pWordOut S b pWordOut 1 pWordOut 1 bit byte pVarin pBitIn pWordOut endm bit dword macro pVarin pBitIn pDwordOut S b pDwordOut 3 clrf pDwordOut 3 S b pDwordOut 2 clrf pDwordOut 2 S b pDwordOut 1 clrf pDwordOut 1 bit byte pVarin pBitIn pDwordOut endm word wreg macro pWordIn byte wreg pWordIn endm word byte macro pWordIn pByteOut byte byte pWordIn pByteOut endm word bit macro pWordIn pVarOut pBitout byte bit pWordIn pVarOut pBitout endm word word macro pWordIn pWordOut S b pWordIn 1 movf pWordIn 1 W S b pWordOut 1 movwf pWordOut 1 byte byte pWordIn pWordOut endm word dword macro pWordIn pDwordOut S b pDwordOut 3 clrf pDwordOut 3 S b pDwordOut 2 clrf pDwordOut 2 byte_byte pWordIn 1 oDwordOut 1 byte byte pWordIn pDwordOut endm byte byte macro pByteIn pByteOut s b pByteIn pByteln W S b pByteOut movwf pByteOut rab 71 endm byte word macro pByteIn pWordOut S b pWordOut 1 cirf pWordOut 1 byte byte pByteIn pWordOut endm byte dword macro pByteIn pDwordOut S b pDwordOut 3 clrf pDwordOut 3 S b pDwordO
98. lw 32 movwf FPEMsg 13 movwf FPEMsg 14 movwf FPEMsg 15 movwf 16 movwf FPEMsg 17 movwf FPEMsg 18 movwf FPEMsg7 19 cirf FPEMSg420 F JUMP 136 BC LL158 F1 000588 equ IN MITFPGUN BAS CASE 41 STR FPEMSG COMMAND CANCELLED 0 movlw 65 subwf FPECode W seta page 160 btfss STATUS 2 goto 160 ram bank 0 movlw 67 movwf FPEMsg Z0 movlw 79 movwf FPEMsg 7 1 movlw 77 movwf FPEMsg Z2 movwf FPEMsg 3 movlw 65 movwf FPEMsg 4 movlw 78 movwf FPEMsg 5 moviw 68 145 movwf FPEMsg 6 movlw 32 movwf FPEMsg Z7 movlw 67 movwf FPEMsg 8 movlw 65 movwf FPEMsg Z9 movlw 78 movwf FPEMsg 10 movlw 67 movwf FPEMsg 11 movlw 69 movwf FPEMsg 12 movlw 76 movwf FPEMsg 13 movwf FPEMsg 14 movlw 69 movwf FPEMsg 15 movlw 68 movwf FPEMsg 16 movlw 46 movwf FPEMsg 7 17 movlw 32 movwf FPEMsg7 18 movwf FPEMsg 19 cirf FPEMSg420 F JUMP BC LL136 BC LL160 F1 000589 equ IN MITFPGUN BAS CASE 50 STR FPEMSG INTERNAL ERROR 0 movlw 80 subwf FPECode W set page BC LL162 btfss STATUS 2 goto BC LL162 ram_bank 0 movlw 73 movwf FPEMsg Z0 movlw 78 movwf FPEMsg 1 movlw 84 movwf FPEMsg Z2 movlw 69 movwf FPEMsg 3 146 movlw 82 movwf FPEMsg 4 movlw 78 movwf FPEMsg 5 movlw 65 movwf FPEMsg 6 movlw 76 movwf FPEMsg Z7 movlw 32 movwf FPEMsg 8 movlw 69 movwf FPEMsg 9 movlw 82 movwf FPEMsg 10 movwf FPEMsg 11 movlw 79 movwf FPEMsg 12 movlw 82 movwf FPEMsg 13 movlw 46 movwf FPEMsg
99. lw 76 movwf FPEMsg 14 movlw 73 movwf FPEMsg 15 movlw 68 movwf FPEMsg 16 movlw 46 movwf FPEMsg 7 17 movlw 32 movwf FPEMsg 18 movwf FPEMsg7 19 cirf FPEMSg420 F1 000596 equ IN MITFPGUN BAS CASE ELSE F JUMP BC LL176 BC LL174 F1 000597 equ IN MITFPGUN BAS STR FPEMSG UNKNOWN ERROR 0 movlw 85 movwf FPEMsg Z0 movlw 78 movwf FPEMsg 1 movlw 75 movwf FPEMsg 2 movlw 78 movwf FPEMsg 3 movlw 79 movwf FPEMsg 4 movlw 87 movwf FPEMsg 5 movlw 78 movwf FPEMsg 6 movlw 32 movwf FPEMsg Z7 movlw 69 movwf FPEMsg 8 movlw 82 movwf FPEMsg 9 movwf FPEMsg 10 movlw 79 movwf FPEMsg 11 movlw 82 movwf FPEMsg 12 movlw 46 movwf FPEMsg 13 154 movlw 32 movwf FPEMsgZ 14 movwf FPEMsg 15 movwf FPEMsg 16 movwf FPEMsg 17 movwf FPEMsg 18 movwf FPEMsg7 19 cirf FPEMSg420 F1 000599 equ IN MITFPGUN BAS ENDSELECT 176 BC LL136 F1 000601 equ IN MITFPGUN BAS RETURN return subs HWDiagnostics F1 000605 equ IN MITFPGUN BAS GLOCK 0 bcf PORTD 3 F1 000606 equ IN MITFPGUN BAS GUNLOCK 0 bcf PORTD 2 sj hwaStart F1 000610 equ IN MITFPGUN BAS CLS f call LCD CLS F1 000611 equ IN MITFPGUN BAS PRINT AT 1 1 1 VERIFY moviw 128 movwf BPFH f call LCD CRS moviw high STR LB31 movwf GEN4H moviw low STR LB31 f call C STROUT F1 000612 equ 5 IN MITFPGUN BAS PRINT AT 2 1 2 ENROLL moviw 128 movwf BPFH moviw 192 f call LCD CRS moviw high STR LB32 movwf GEN4H moviw low STR LB32 f call C
100. lw 77 set page PB LB255 btfss STATUS 2 goto PB LB255 f call HRSIN2 set page subs SMS InitFailed btfss STATUS 0 goto subs SMS InitFailed sublw 71 set page PB LB255 btfss STATUS 2 goto PB LB255 f call HRSIN2 set page subs SMS InitFailed btfss STATUS 0 goto subs SMS InitFailed sublw 83 set page PB LB255 btfss STATUS 2 goto PB LB255 PB LB256 f call HRSIN2 set page subs SMS InitFailed btfss STATUS O goto subs_SMS_InitFailed sublw 79 set page PB LB256 btfss STATUS 2 goto PB LB256 f call HRSIN2 set page subs SMS InitFailed 201 btfss STATUS O goto subs SMS InitFailed sublw 75 set page PB LB256 btfss STATUS 2 goto PB LB256 F1_001045 equ IN MITFPGUN BAS RETURN return F1 001050 equ IN MITFPGUN BAS END PB LB257 SLEEP F JUMP PB LB257 F1 EOF equ MITFPGUN BAS PB LB258 F JUMP PB LB258 STR LB1 STR LB15 de 32 32 32 32 32 83 77 65 82 84 32 71 85 78 0 STR LB2 de 32 80 82 69 83 83 32 35 32 84 79 32 85 78 76 79 67 75 0 STR LB3 de 76 79 71 73 78 32 65 84 84 69 77 80 84 83 58 32 0 STR LB4 de 86 69 82 73 70 89 73 78 71 32 70 80 82 73 78 84 32 32 32 32 0 STROLB5 de 65 67 67 69 83 83 32 68 69 78 73 69 68 32 32 32 32 32 32 32 0 STR LB6 de 49 46 67 72 65 78 71 69 32 70 73 78 71 69 82 80 82 73 78 84 0 STR LB7 de 50 46 67 72 65 78 71 69 32 83 77 83 32 78 85 77 66 69 82 0 STR LB8 de 51 46 85 78 76 79 67 75 32 71 85 78 0 STR LB9 de 52 46 69 88 73 84 0 STR LB10 de 49 46 67 72 65
101. m bank 1 190 subwf keytemp W set page 241 bcf STATUS 5 ram bank 0 btfss STATUS 2 goto BC LL241 F1 000966 equ MITFPGUN BAS BREAK F JUMP 239 F JUMP 240 F1 000968 equ 5 IN MITFPGUN BAS ELSEIF KEYTEMP THEN BC LL241 movlw 42 bsf STATUS 5 ram bank 1 subwf keytemp W set page BC LL242 bcf STATUS 5 ram_bank 0 btfss STATUS 2 goto BC LL242 F1_000970 equ IN MITFPGUN BAS GCTR 10 movlw 10 bsf STATUS 5 ram bank 1 movwf gCtr Fi 000971 MITFPGUN BAS GOTO SJUMPS SRU ENCODENUM bcf STATUS 5 ram bank 0 F JUMP sjumps SRU encodeNum F1 000974 IN MITFPGUN BAS ENDIF BC LL242 BC LL240 1 000976 equ IN MITFPGUN BAS WEND F JUMP BC LL238 BC LL239 F1 000980 equ IN MITFPGUN BAS CLS f call LCD CLS F1_000981 equ IN MITFPGUN BAS PRINT AT 1 1 SAVING SMS movlw 128 movwf BPFH LCD CRS movlw high STR LB55 movwf GEN4H moviw low STR LB55 191 f call C STROUT F1 000982 equ IN MITFPGUN BAS PRINT 2 1 DESTINATION NUMBER moviw 128 movwf BPFH moviw 192 f call LCD CRS movlw high STR LB56 movwf GEN4H moviw low STR LB56 f call C STROUT F1 000983 equ IN MITFPGUN BAS PRINT AT 3 1 PLEASE WAIT moviw 128 movwf BPFH moviw 148 f call LCD CRS moviw high STR LB57 movwf GEN4H moviw low STR LB57 f call C STROUT F1_000985 equ IN MITFPGUN BAS HSEROUT AT CPBW 101 34 STR UNUM1 11 34 129 34 ADMIN 3
102. mine the identity of an individual The fingerprint images of poor quality need to be enhanced before the feature extraction and feature matching The article presents an automated approach for fingerprint matching which involves three steps First is to enhance the image to remove noise Second is to extract required feature that is necessary for matching and remove unwanted feature The final step is matching by using adjacent feature vector technique The advantage of adjacent feature vector technique is that it shows a good performance to differentiate matching and non matching minutiae pairs AFV Adjacent Feature Vector also reduce the computation cost and matching error The researchers used standard fingerprint image database FVC2004 Fingerprint Verification Competition Image Enhancement is used to enhance the image and then features are extracted because they want exact matching so they eliminate unnecessary feature and extract required feature and after this extracted features are matched This system provides the capable correct and error free results Fingerprint is the surface that is present on the top of human fingertip Every person has unique and unchallengeable fingerprint and due to this fingerprint authentication has been useful in many areas Fingerprint identification is the process of automatically matching one or more fingerprint images against a 18 database Computerized fingerprint identification system is mostly used f
103. movwf FPEMsg7 19 cirf FPEMSg420 F JUMP BC LL136 BC LL166 F1 000592 equ IN MITFPGUN BAS CASE 60 STR FPEMSG TEMPLATE ID INVALID 0 movlw 96 subwf FPECode W set page 168 btfss STATUS 2 goto 168 _ 0 movlw 84 movwf FPEMsg Z0 movlw 69 movwf FPEMsg 1 149 movlw 77 movwf FPEMsg Z2 movlw 80 movwf FPEMsg 3 movlw 76 movwf FPEMsg 4 movlw 65 movwf FPEMsg 5 movlw 84 movwf FPEMsg 6 movlw 69 movwf FPEMsg Z7 movlw 32 movwf FPEMsg 8 movlw 73 movwf FPEMsg 9 moviw 68 movwf FPEMsg 10 movlw 32 movwf FPEMsg 11 movlw 73 movwf FPEMsg 12 movlw 78 movwf FPEMsg 13 moviw 86 movwf FPEMsg 14 movlw 65 movwf FPEMsg 15 movlw 76 movwf FPEMsg 16 movlw 73 movwf FPEMsg 17 moviw 68 movwf FPEMsg 18 movlw 46 movwf FPEMsg7 19 FPEMSg420 F JUMP BC LL136 BC LL168 F1 000593 equ IN MITFPGUN BAS CASE 61 STR FPEMSG SECURITY LVL INVALID 0 movlw 97 subwf FPECode W set page 170 150 btfss STATUS 2 goto BC LL170 ram bank 0 83 movwf FPEMsg Z0 movlw 69 movwf FPEMsg 1 movlw 67 movwf FPEMsg 2 movlw 85 movwf FPEMsg 3 movlw 82 movwf FPEMsg 4 movlw 73 movwf FPEMsg 5 movlw 89 movwf FPEMsg 6 movlw 32 movwf FPEMsg Z7 movlw 76 movwf FPEMsg 8 moviw 86 movwf FPEMsg 9 movlw 76 movwf FPEMsg 10 movlw 32 movwf FPEMsg 11 movlw 73 movwf FPEMsg 12 movlw 78 movwf FPEMsg 13 moviw 86 movwf FPEMsg 14 movlw 65 movwf FPEMsg 15 movlw 76
104. n with Real Time detection for Ballistic projectile via SMS Verify Add fingerprints and Real Time Detection via SMS Procedure for Verification Feature 1 First turn on the switch located at the back part of the firearm 2 Click the button 3 Once the scanner lights up scan the fingerprint 4 If the fingerprint scanned is from the admin the status will be admin if it is from a user its status will be user if not nothing will happen After three tries a text message will be sent to the registered phone number on the system notifying the admin that there is someone unauthorized who used the firearm 35 Procedure for the adding feature Only the administrator has the rights to add a new user to the said firearm 1 First turn on the switch located at the back part of the firearm 2 Click the button 3 Once the scanner lights up scan the fingerprint 4 Once logged in there will be four choices for the admin 1 for add a user 2 change the registered phone number 3 unlock gun and 4 exit Since the device is adding a user Press 1 5 Wait for the scanner to light up 6 Scan the new user s fingerprint three times and wait for the light to turn off TRIAL VERIFICATION STATUS UN un 36 o TA o ___ SUCCESS ADMIN 14 SUCCESS ADMIN 15 SUCCESS USER 16 SUCCESS USER 37 Table 4 1 Registered Fingerprint Testing Based on
105. nctive measurable characteristics used to label and describe individuals Biometric identifiers are often categorized as physiological versus behavioral characteristics Many different aspects of human physiology chemistry or behavior can be used for biometric authentication The selection of particular biometric for use in a specific application involves a weighing of several factors Universality means that every person using a system should possess the trait Uniqueness means that trail should be sufficiently different for individuals in the relevant population such that they can be distinguished from one another Permanence relates to the manner in which a trait varies over time More specifically a trait with good permanence will be reasonably invariant over time with respect to the specific matching algorithm Measurability relates to the ease of acquisition or measurement of the trait In addition acquired data should be in a form that permits subsequent processing and extraction of the relevant feature sets Performance relates to the accuracy speed and robustness of technology used Acceptability relates to how well individuals in the relevant population accept the technology such that they are willing to have their biometric trait captured and assessed Circumvention relates to the ease with which a trait might be imitated using an artifact or substitute Biometric system can operate in two modes In verification mode the system perfo
106. nd the device can send messages if there is a load in it 2 INSTALLATION PROCEDURE The following procedures must be followed to ensure the system works properly Turning on the Firearm locking system 1 Turn on the device 2 Make sure the LCD displays no error Inserting the fingerprint reading device 1 Make sure there is a battery connected into the device 2 Push the button to start up the device 3 Wait until the fingerprint scanner lights up Sending a message to the database 1 Make sure there is a load on the SIM card of the GSM module 52 Push the button to start up the device Wait until the fingerprint scanner lights up Place the fingerprint properly into the scanning glass Finish the verification and check if the firearm unlocks Pull the trigger After pulling the trigger press the button to lock it again and wait for the message to be received by the database 3 USER S MANUAL 3 1 3 2 3 3 34 3 5 3 6 Turn on the Device Make sure the LCD displays no error Push the button to start up the device Wait until the fingerprint scanner lights up Place the fingerprint properly into the scanning glass Finish the verification and check if the firearm unlocks 4 TROUBLESHOOTING GUIDES AND PROCEDURES 4 1 After turning on the Biometric analysis for firearm identification with real time detection for ballistic projectile via SMS check if the LCD would display if the
107. ode Template No 0x0108 Template Status Error Code 0x0109 Broken Template Count First Broken Template No Error Code Template No 0x010A Template Template No Record Size Template Record 4 or 4 Data Error Code Template No 0x010B Template No Template Record Data Error Code Security Level 0x010C Security Level Value Value Error Code Clear Template 0x0105 Clear All Template 0x0106 7 Get Empty ID 0x0107 8 Get Template Status 0x0108 Get Broken Template 0x0109 Read Template 0x010A 0 010 Template Write Template Record Size 2 Set Security Level 0x010C l 217 Get Security Level 0x010D 0 010 4 Security Level Value Set Finger Time Out 0 010 2 Time Out Ox010E 4 TimeOut Value Value Error Code Get Finger Time Out ee m e Value Get Device ID ui 11 0 0111 ne ID Error Code Get F W Version pun 12 SEEN LS 12 AN ss Set BaudRate 0x0114 2 BaudRate 0 0114 4 0 1 BaudRate Index Index Error Code Set Duplication Check 0x0115 Duplication 0x0115 4 0 1 Duplication Check Option 1 0 Check Option Error Code Get Duplication Check 0x0116 0x0116 4 Duplication Check Option 23 Enter Stadby Mode nd 17 IE 0x0117 Enroll And Store in 0x01 0x0118 A MEE ErrorCode RAM Get Enroll Data 0x0119 0x0119 Template Template Record Record Size Data Error Code 2 or 4 Get Feature Data OxO1 LA Ox011A Template Template Re
108. onment on the USB flash controlled by the USB Key This software environment can be customized according to the user s demand and the authentication process is at the computer boot stage implemented under the USB mass storage protocol with the SCSI RBC command The high level security portable system is designed to be a plug and play USB 2 0 device and can communicate with the host OS which supports the USB device USB flash Host agent Syslinux Puppy linux USB Kev USB Windows XP i hardware Host computer Fingerprint 1 scanner NHLSPS device Figure 2 8 High Level Security Portable System Architecture In the device the private files such as the private encryption key and fingerprint features value are stored on the on chip flash The entire authentication operations carry out instead the device without the help of host computer The security environment syslinux and Puppy Linux is installed on the USB flash partition After finishing the enrollment the device can be used with any computer that supports the 20 USB 2 0 with the BIOS support of booting from removable disks The article presents a new security integrated system that enables users to work at a movable security environment with good protection of confidential information The High Level Security Portable System carries out the authentication while system booting and protects the confidentia
109. or security purposes Batool amp Tariq 2011 A New High Level Security Portable System Based on USB Key with Fingerprint With the help of the USB Key and fingerprint people have developed different kinds of authentication solutions to protect the confidential information against unauthorized access The article presents the above solutions to these problems One is that the sensitive information is not encrypted and the other one is that the environment is insecure A new high level security portable system is used to solve these problems The system is a combination of hardware and software Based on the USB Key and fingerprint scanner the plug and play USB 2 0 device was integrated without the driver installation By rebuilding the syslinux boot loader and customizing the Puppy Linux a fingerprint based authentication security portable custom built software environment inside the device was developed With the help of the system the users can work at a movable security environment freely as well as the high level protection of confidential information The high level security portable system is designed for extremely high demands on security and confidentiality of electronic information industry market with the biometric security technology system It is also an on chip authentication system all the authentications are run inside the USB Key without the host OS s help At the same time they installed the entire software 19 envir
110. ovlw 32 movwf FPEMsg 5 movlw 78 movwf FPEMsg 6 movlw 79 movwf FPEMsg Z7 movlw 84 movwf FPEMsg 8 movlw 32 movwf FPEMsg 9 movlw 70 movwf FPEMsg 10 movlw 79 movwf FPEMsg 11 movlw 85 movwf FPEMsg 12 movlw 78 movwf FPEMsg 13 136 movlw 68 movwf FPEMsgZ 14 movlw 46 movwf FPEMsg 15 movlw 32 movwf FPEMsg 16 movwf FPEMsg 17 movwf FPEMsg 18 movwf FPEMsg 19 FPEMSg420 F JUMP BC LL136 BC LL142 F1 000580 equ IN MITFPGUN BAS CASE 12 STR FPEMSG ID NOT FOUND 0 moviw 18 subwf FPECode W set page BC LL144 btfss STATUS 2 goto BC LL144 ram_bank 0 movlw 73 movwf FPEMsg Z0 movlw 68 movwf FPEMsg 1 movlw 32 movwf FPEMsg Z2 movlw 78 movwf FPEMsg 3 movlw 79 movwf FPEMsg 44 movlw 84 movwf FPEMsg 5 movlw 32 movwf FPEMsg 6 movlw 70 movwf FPEMsg Z7 movlw 79 movwf FPEMsg 8 movlw 85 movwf FPEMsg 9 movlw 78 movwf FPEMsg 10 movlw 68 movwf FPEMsg 11 137 movlw 46 movwf FPEMsg 12 movlw 32 movwf FPEMsg 13 movwf FPEMsg 14 movwf FPEMsg 15 movwf 16 movwf FPEMsg 17 movwf FPEMsg 18 movwf FPEMsg 19 cirf FPEMsg 20 F JUMP BC LL136 BC LL144 F1 000581 equ IN MITFPGUN BAS CASE 13 STR FPEMSG ID IS NULL movlw 19 subwf FPECode W set page 146 btfss STATUS 2 goto BC LL146 ram bank 0 movlw 73 movwf FPEMsg Z0 movlw 68 movwf FPEMsg 1 movlw 32 movwf FPEMsg Z2 movlw 73 movwf FPEMsg 3 83 movwf FPEMsg 4 movlw 32 movwf FPEMsg 5 movlw 78 movwf FPEMsg 6 movl
111. ovlw 5 movwf GENH movlw 220 movwf GEN PB LB193 f call HRSIN2 set page subs SMS InitFailed btfss STATUS O goto subs SMS InitFailed sublw 79 set page PB LB193 btfss STATUS 2 goto PB LB193 f call HRSIN2 set page subs SMS InitFailed btfss STATUS O goto subs SMS InitFailed sublw 75 set page PB LB193 btfss STATUS 2 goto PB LB193 F1_000735 equ IN MITFPGUN BAS DELAYMS 100 movlw 100 f call DL MS F1_000737 equ IN MITFPGUN BAS PRINT AT 3 1 4 165 movlw 128 movwf BPFH movlw 148 LCD CRS movlw 52 f call PRINT 1 000739 equ IN MITFPGUN BAS HSEROUT AT CFUN 1 13 movlw 4 movwf BPFH movlw STR LB42 gt gt 8 4 255 movwf GEN4H moviw STR LB42 amp 255 f call C STROUT movlw 13 HRSOUT F1 000740 equ MITFPGUN BAS HSERIN 1500 SUBS SMS INITFAILED WAIT OK movlw 5 movwf GENH movlw 220 movwf GEN PBOLB194 HRSIN2 set page subs SMS InitFailed btfss STATUS O goto subs SMS InitFailed sublw 79 set page PB LB194 btfss STATUS 2 goto PB LB194 f call HRSIN2 set page subs SMS InitFailed btfss STATUS 0 goto subs_SMS_InitFailed sublw 75 set page PB LB194 btfss STATUS 2 goto PB LB194 F1 000741 equ IN MITFPGUN BAS DELAYMS 100 movlw 100 f call DL MS 1 000743 equ IN MITFPGUN BAS PRINT 3 1 5 movlw 128 movwf BPFH 166 movlw 148 LCD CRS movlw 53 f call PRINT Fi 000745 egu IN MITFPGUN BAS HSEROUT AT CMGF 1 13 movlw 4 movwf BPFH mov
112. ovlw 65 movwf FPEMsg 44 movlw 78 movwf FPEMsg 5 movlw 68 movwf FPEMsg 6 movlw 32 movwf FPEMsg Z7 83 movwf FPEMsg 8 movlw 85 movwf FPEMsg 9 movlw 67 movwf FPEMsg7 10 movwf FPEMsg 11 movlw 69 movwf FPEMsg7 12 movlw 83 movwf FPEMsg 13 movlw 70 movwf FPEMsg 14 movlw 85 movwf FPEMsg 15 movlw 76 movwf 16 movlw 46 movwf FPEMsg 17 134 movlw 32 movwf FPEMsg 18 movwf FPEMsg 19 cirf FPEMSg420 F JUMP 136 137 F1 000578 equ IN MITFPGUN BAS CASE 501 STR FPEMSG COMMAND FAILED O movlw 1 subwf FPECode W set page BC LL140 btfss STATUS 2 goto BC LL140 ram_bank 0 movlw 67 movwf FPEMsg 0 movlw 79 movwf FPEMsg 1 movlw 77 movwf FPEMsg 2 movwf FPEMsg 3 movlw 65 movwf FPEMsg 4 movlw 78 movwf FPEMsg 5 movlw 68 movwf FPEMsg 6 movlw 32 movwf FPEMsg Z7 movlw 70 movwf FPEMsg 8 movlw 65 movwf FPEMsg 9 movlw 73 movwf FPEMsg 10 movlw 76 movwf FPEMsg 11 movlw 69 movwf FPEMsg 12 movlw 68 movwf FPEMsg 13 movlw 46 movwf FPEMsgZ 14 movlw 32 135 movwf FPEMsg 15 movwf FPEMsg 16 movwf FPEMsg 17 movwf FPEMsg 18 movwf FPEMsg 19 FPEMsg 20 F JUMP BC LL136 BC LL140 F1 000579 equ IN MITFPGUN BAS CASE 11 STR FPEMSG MATCH NOT FOUND O movlw 17 subwf FPECode W set page BC LL142 btfss STATUS 2 goto BC LL142 ram_bank 0 movlw 77 movwf FPEMsg 0 movlw 65 movwf FPEMsg 1 movlw 84 movwf FPEMsg Z2 movlw 67 movwf FPEMsg 3 movlw 72 movwf FPEMsg 4 m
113. ply 5 W movwf PBP VARO movf PBP VARO F set page BC LL62 btfss STATUS 2 goto BC LL62 F1 000328 equ IN MITFPGUN BAS UIDL SREPLY 7 movf sReply 7 W bsf STATUS 5 ram_bank 1 movwf userID F1 000329 equ IN MITFPGUN BAS UIDH SREPLY 8 bcf STATUS 5 ram_bank 0 movf sReply 8 W bsf STATUS 5 ram_bank 1 movwf userIDH 112 F1 000331 equ IN MITFPGUN BAS ENDIF BC LL62 bcf STATUS 5 ram_bank 0 F1 000333 equ IN MITFPGUN BAS ENDIF BC LL56 BC LL49 BC LL50 F1_000335 equ IN MITFPGUN BAS CASE 1 moviw 1 subwf FPC W set page BC LL64 btfss STATUS 2 goto BC LL64 F1_000337 equ IN MITFPGUN BAS SDATA 0 55 moviw 85 movwf sData 0 F1 000338 equ IN MITFPGUN BAS SDATA 1 AA moviw 170 movwf sData 1 F1_000339 equ IN MITFPGUN BAS SDATA 2 03 moviw 3 movwf sData 2 F1_000340 equ IN MITFPGUN BAS SDATA 3 01 moviw 1 movwf sData 3 F1 000341 equ IN MITFPGUN BAS SDATA 4 02 moviw 2 movwf sData 4 F1 000342 equ IN MITFPGUN BAS SDATA 5 00 sData 5 F1 000343 equ IN MITFPGUN BAS SDATA 6 UIDL bsf STATUS 5 ram_bank 1 movf userID W bcf STATUS 5 ram_bank 0 movwf sData 6 F1_000344 equ IN MITFPGUN BAS SDATA 7 UIDH bsf STATUS 5 ram_bank 1 movf userIDH W bcf STATUS 5 ram_bank 0 113 movwf sData 7 F1 000346 equ MITFPGUN BAS FOR GCTR 8 TO 21 moviw 8 bsf STATUS 5 ram bank 1 movwf gCtr FR LB66 bcf STATUS 5 r
114. ptured fingerprint Verify Downloaded Feature with Captured fingerprint Identify Downloaded Feature with Captured fingerprint Security Level setting Standby mode Communication interface UART 1 2 Application examples Access control systems Time amp Attendance Locks safes POS terminals 1 3 Technology Parameter Core 120Mhz IM bit Flash Memory 128K SRAM Fingerprint capacity 500 5000 can be enlarge Default setting is 3000 fingerprints Match Mode 1 N identification and 1 1 verification Fingerprint Data size 496 Byte Security level Level I to Level 5 can be set default setting is Level 3 Time of Response Fingerprint pretreatment lt 0 45 208 0 1 Security Level is 3 PU lt 0 001 Security Level is 3 RR 1 N matching 3000 fingerprints lt Is UART Parity NONE Stop 1 Flow Control NONE Communication Baud rate is 9600 19200 38400 57600 115200 BPS Default setting 115200bps Working Voltage DC 3 3V 5V Working Current Max 100mA Standby Mode less than 5mA Working Temperature 10 C to 60 C Working Environment Relative humidity 20 80 Storage temperature 20 to 80C Storage Environment Storage humidity lt 90 1 4 Default Setting BaudRate 9600 19200 38400 57600 115200 BPS 115200 BPS Fingerprint Duplication Check ON OFF 209 2 Configration and Connector 2 1 Mount and Connector RLE 4642 RETA Connect Plug dPIN Pitch 2 0
115. rms a one to one comparison of a captured biometric with a specific template stored in a biometric database in order to verify if the individual is the person they claim to be There are three steps involved in person verification In the first step reference models for all the users are generated and stored in the model database In the second step some samples are matched with reference models to generate the genuine and impostor scores and calculate the threshold The third step is the testing step This process may use a smart card username or ID number to indicate which template should be used for comparison Positive recognition is a common use of verification mode where the aim is to prevent multiple people from using same identity In identification mode the system performs a one to many comparison against a biometric database in attempt to establish the identity of an unknown individual The system will succeed in identifying the individual if the comparison of the biometric sample to a template in the database falls within a previously set threshold Identification mode can be used either for positive or negative recognition of the person where the system establishes whether the person is who he she denies to be The latter function can only be achieved through biometrics since other methods of personal recognition such as passwords PINs or keys are ineffective The first time an individual uses a biometric system is called enrollment During t
116. rn the fingerprint reader on It will then validate the fingerprint if it has an access or not The fingerprint reader only accepts two valid fingerprints the administrator and user s fingerprint The microcontroller configures which mode would be given based on the fingerprint that was scanned more recently In the administrator mode the user has all the capabilities on doing anything on the system While in the user mode once the system detects that the fingerprint entered is for a user the system would then automatically unlock the solenoid lock Finally the system records the activity of the users that are using the 23 gun It counts the total number of shots the gun fired the time and date when the gun was used and it is sent through the GSM module HEGE sj lt es RAZ RE 4 me ELI RAS RB3 RB2 RAS RB1 REO REO RE1 VDD RE VSS VOD VES RDS OSC1 RD5 OSC2 RD4 RCD RC RCI RCS RC2 RCS RC3 RDO RD3 RD1 RD2 Figure 3 2 Schematic Diagram Figure 3 2 presents the schematic diagram of the Biometric Analysis for Firearm Identification with Real Time Detection for Ballistic Projectile via SMS The schematic diagram is divided into several parts the Biometric Module GSM Module and 24 the Solenoid lock that is attached to the firearm The fingerprint reader is the main system of the design that is required to activate the firearm The fingerprint reader is th
117. rrf 48 F rrf 47 F decfsz 57 F goto MLT32 LP return bcf 3 0 rrf 48 F rrf 47 F R SH addlw 255 skpnc goto 5 movf 47 W goto I NT bcf 3 7 I NT2 bcf 3 5 bcf 3 6 return PUT ARRAY movwf 57 PUT ARRAYW movf 40 W movwf 58 41 W call FIND ADDRESS movf 57 W movwf 0 goto GET ARRAY movwf 57 GET ARRAYW movf 39 W movwf 58 movf 57 W 93 addwf 39 W call FIND ADDRESS movf 0 W goto VALDEC 032 movwf 4 clrf 41 movlw 128 movwf 70 goto IN DEC32 proton mainz start clrf 3 bsf 3 5 moviw 129 movwf 153 movlw 36 movwf 152 bcf 3 5 moviw 144 movwf 24 32 F2 SOF equ MITFPGUN PRP F2 EOF equ MITFPGUN PRP F1 SOF equ MITFPGUN BAS F1 000006 equ IN MITFPGUN BAS DECLARE ALL DIGITAL TRUE movlw 7 bsf STATUS 5 ram bank 1 movwf CMCON movwf ADCON1 F1 000033 equ IN MITFPGUN BAS TRISA FF moviw 255 movwf TRISA F1 000034 equ IN MITFPGUN BAS TRISB 0F moviw 15 movwf TRISB F1 000035 equ IN MITFPGUN BAS TRISC 90 moviw 144 movwf TRISC F1 000036 equ IN MITFPGUN BAS TRISD E0 moviw 224 movwf TRISD F1 000037 equ IN MITFPGUN BAS TRISE 07 moviw 7 94 movwf TRISE F1 000068 equ IN MITFPGUN BAS DELAYMS 50 moviw 50 bcf STATUS 5 ram bank 0 f call DL MS Fi 000071 equ IN MITFPGUN BAS KPCOL1 0 bcf PORTB 4 F1_000072 equ IN MITFPGUN BAS KPCOL2 1 bsf PORTB 5 1 000073 equ IN MITFPG
118. sf STATUS 5 ram bank 1 movwf tmpVal 0 Fi 000816 equ IN MITFPGUN BAS TMPVAL 1 TIMESTAMPS 4 timeStamps 4 W bcf STATUS 5 ram bank 0 movwf PBPZVARO movf PBPZVARO W bsf STATUS 5 ram bank 1 movwf tmpVal 1 1 000817 equ IN MITFPGUN BAS 2 O clrf tmpVal 2 F1 000819 equ IN MITFPGUN BAS MONTHS VAL TMPVAL DEC moviw 218 bcf STATUS 5 ram_bank 0 f call VALDEC 32 179 bsf STATUS 5 ram bank 1 movwf months F1 000821 equ IN MITFPGUN BAS TMPVAL 0 TIMESTAMPS 6 timeStamps 6 W bcf STATUS 5 ram bank 0 movwf PBPZVARO movf PBPZVARO W bsf STATUS 5 ram bank 1 movwf tmpValz F1 000822 equ IN MITFPGUN BAS TMPVAL 1 TIMESTAMPS 7 timeStamps 7 W bcf STATUS 5 ram bank 0 movwf PBPZVARO movf PBPZVARO W bsf STATUS 5 ram bank 1 movwf tmpVal 1 F1 000823 equ IN MITFPGUN BAS TMPVAL 2 O clrf 2 F1 000825 equ MITFPGUN BAS DAYS VAL TMPVAL DEC moviw 218 bcf STATUS 5 ram bank 0 VALDEC 32 bsf STATUS 5 ram bank 1 movwf days F1 000827 equ IN MITFPGUN BAS TMPVAL 0 TIMESTAMPS 9 timeStamps 9 W bcf STATUS 5 ram bank 0 movwf PBPZVARO movf PBPZVARO W bsf STATUS 5 ram bank 1 movwf tmpVal 0 F1 000828 egu IN MITFPGUN BAS TMPVAL 1 TIMESTAMPS 10 movf timeStamps 10 W bcf STATUS 5 ram bank 0 180 movwf PBPZVARO movf PBPZVARO W bsf STATUS 5 ram bank 1 movwf tmpVal 1 F1 000829
119. t al Eds 1999 Intelligent Biometric Techniques in Fingerprint and Face Recognition Langenburg Glenn January 24 2005 Are one s fingerprints similar to those of his or her parents in any discernable way Thornton John May 9 2000 Latent Fingerprints Setting Standards In The Comparison and Identification Diaz Raul 2007 Biometrics Security Vs Convenienc Meghdadi Majid Jalilzadeh Saeed 29 October 2005 Validity and Acceptability of Results in Fingerprint Scanner Setlak Dale Advances in Biometric Fingerprint Technology are Driving Rapid Adoption in Consumer Marketplace Mazumdar Subhra Dhulipala Venkata 2008 Biometric Security Using Finger Print Recognition Guodong Li Hu Chen 2010 A New High Level Security Potable System based on USB Key with Fingerprint H M N Dilum Bandara 2008 Biometrics Younhee Gil Dosung Ahn Sungbum Pan Yongwha Chung 2011 Access Control System with High Level Security Using Fingerprints Zhaoxia Zhu Fulong Chen 2011 Fingerprint Recognition Based Access Controlling System for Automobiles Anum Batool Anam Tariq 2011 Computerized System for Fingerprint Identification for Biometric Security 51 APPENDIX A OPERATOR S MANUAL 1 SYSTEM REQUIREMENTS The Biometric analysis for firearm identification with real time detection for ballistic projectile via SMS only works if the Firearm locking system and the fingerprint reading device is turned on a
120. the testing results on table 4 1 the Biometric analysis for firearm identification with real time detection for ballistic projectile via SMS design prototype precisely validates if the scanned fingerprint is registered or not in its database There were some occurrences that the results failed since the registration of fingerprints depends on how the particular finger was scanned in the Biometric analysis of Firearms as the fingerprint reading gathers three samples of fingerprint template for precision The researchers consider the misplacement of the specific finger to the fingerprint scanner as the cause of this problem Furthermore having three login failures will result in sending of SMS to the cellphone Further testing about this occurrence will be shown on to the succeeding testings 38 T GUM 5 TO UNLOCK od oo Figure 4 1 Fingerprint Scanner Start up E y ABC DEF E E ONUS 4 a GHI JKL HEGE FIHGERFRIMT m E THE SMS HUMBER HLOCK PRS 7 Figure 4 2 Fingerprint Administrator Mode 39 I PEINGERF RINT Figure 4 4 Fingerprint Access Denied 40 JE www K TJEN JE wn K Table 4 2 Adding of User 16 17 19 20 21 22 23 24 25 26 27 28 0 42 ABC e lt loz c Figur
121. tomobile s door with the fingerprint encryption key system The paper introduces an embedded application system access control system based on fingerprint recognition for automobiles which is a kind of Automatic Fingerprint Identification System AFIS A D Converter Sample and Figure 2 6 Architecture of Embedded System 16 ATMEL invents fingerprint sensors which can capture slices of the fingerprint when a finger slides over these sensors and put them together to obtain a complete fingerprint image with very low power consumption wide operating temperature range and full speed It includes two Key Systems KSs and a Door Controlling System DCS One KS built on the door of the automobile is composed of a finger chip and a circuit connected with DCS and the other one taken by the driver is constitutive of a finger chip and an Ultra High Frequency UHF sender capsulated in plastic Zhu amp Chen 2011 Door controllin Du md UHF Sender Fingerprint Input Taken by driver Figure 2 7 Access control system for automobiles 17 Computerized System for Fingerprint Identification for Biometric Security AFIS Automated Fingerprint Identification System is used for identification of fingerprint images AFIS is a type of biometric system which uses digital imaging methodology to capture analyze and store fingerprint data This fingerprint data can be compared with the database to deter
122. ts are not authorized for use as critical components in life support devices or systems without the expressed written approval of the President of Diodes Incorporated 0528002 Rev 8 2 3 of 3 1N4001 1N4007 i O Diodes Incorporated www diodes com 226 MICROCHIP PIC16F87XA 28 40 44 Pin Enhanced Flash Microcontrollers Devices Included in this Data Sheet PIC16F873A PIC16F876A PIC16FB74A PICTGFBT7A High Performance RISC CPU Only 35 single word instructons to single cycle instructions except for program branches which are two cycle Operating speed DC 20 MHz clock input DC 200 na instruction cycle Up to BK x 14 words of Flash Program Memory Up ta 368 x 8 bytes of Data Memory RAM Up to 258 x 8 bytes of EEPROM Data Memory Pinout compatible to other 28 pin or 40 44 pin PIC18CX XX and PIC 18FXXX microcontrollers Peripheral Features Timerd 8 bit timer counter with B bit prescaler Timer1 16 bit Gmer counter with prescaler can incremented during Sleep via external erystaliciock Timer2 8 bit timer counter with 8 bit period register prescaler and postscaler Two Capture Compare PYM modules Capture is 16 bit max resolutonis 12 5 ns Compare is 16 bit max nesolubon is 200 ns PWM max resolution is 10 bit Synchronous Serial Part SSP with SPI Master mode and w Masten Slave Universal Synchronous Asyndhronous Receiver Transmitter USAR
123. u IN MITFPGUN BAS DELAYMS 500 moviw 1 movwf PP1H moviw 244 f call DLY W F1_000700 equ IN MITFPGUN BAS RETURN return subs SMS Init F1 000704 equ IN MITFPGUN BAS CLS f call LCD CLS F1 000705 equ IN MITFPGUN BAS PRINT AT 1 1 INITIALIZING moviw 128 movwf BPFH f call LCD CRS movlw high STR LB38 movwf GEN4H moviw low STR LB38 f call C STROUT F1_000706 equ IN MITFPGUN BAS PRINT AT 2 1 GSM MODULE moviw 128 movwf BPFH moviw 192 LCD CRS movlw high STR LB39 movwf GEN4H moviw low STR LB39 f call C STROUT F1_000709 equ IN MITFPGUN BAS GSMPW 1 bsf PORTC 5 F1 000710 equ IN MITFPGUN BAS DELAYMS 2500 moviw 9 movwf PP1H moviw 196 f call DLY W F1 000711 equ IN MITFPGUN BAS GSMPW 0 bcf PORTC 5 Fi 000712 egu IN MITFPGUN BAS DELAYMS 5000 movlw 19 162 movwf PP1H moviw 136 f call DLY W F1_000714 equ IN MITFPGUN BAS HSEROUT AT 13 moviw 65 f call HRSOUT moviw 84 f call HRSOUT moviw 13 f call HRSOUT 1 000715 equ IN MITFPGUN BAS DELAYMS 2000 moviw 7 movwf PP1H moviw 208 f call DLY W F1 000717 equ IN MITFPGUN BAS PRINT AT 3 1 1 moviw 128 movwf BPFH moviw 148 f call LCD CRS moviw 49 f call PRINT F1 000722 equ IN MITFPGUN BAS HSERIN WAIT DST PB LB191 f call HRSIN sublw 68 set page PB LB191 btfss STATUS 2 goto PB LB191 f call HRSIN sublw 83 set page PB LB191 btfss STATUS 2 goto PB LB191 f call HRSIN subl
124. ut 2 clrf pDwordOut 2 S b pDwordOut 1 clrf pDwordOut 1 byte byte pByteIn pDwordOut endm byte bit macro pByteIn pVarOut pBitout if pByteIn amp 65408 pVarOut amp 65408 sib pByteIn btfsc pByteIn O bsf pVarOut pBitout btfss pByteIn O bcf pVarOut pBitout else sb pByteIn rrf pByteIn W S b pVarOut skpnc bsf pVarOut pBitout bcf pVarOut pBitout endif rab endm dword wreg macro pDwordIn byte wreg pDwordIn endm dword byte macro pDwordIn pByteOut byte byte pDwordIn pByteOut endm dword word macro pDwordIn pWordOut S b pDwordIn 1 pDwordIn 1 W S b pWordOut 1 movwf pWordOut 1 72 byte byte pDwordIn pWordOut endm dword dword macro pDwordIn pDwordOut byte byte pDwordIn 3 pDwordOut 3 byte byte pDwordIn 2 pDwordOut 2 byte byte pDwordIn 1 pDwordOut 1 byte byte pDwordIn pDwordOut endm dword bit macro pDwordIn pVarOut pBitout byte bit pDwordIn pVarOut pBitout endm variable 0 variable PDESTINATION PAGE 0 FIND PAGE macro pLabelIn local CURRENT ADDR local DEST ADDR pLabelIn if CURRENT_ADDR gt 0X1800 amp amp CURRENT ADDR lt 0X2000 CURRENT QPAGE 3 endif ADDR gt 0X1000 amp amp CURRENT ADDR lt 0X1800 CURRENT GPAGE 2 endif ADDR gt 0X0800 amp amp CURRENT ADDR lt 0X1000 CURRENT GPAGE 1 endif if CURRENT_ADDR gt 0 amp amp CURRENT ADDR lt 0X0800 CURRENT GPAGE O
125. w STR LB70 gt gt 8 amp 255 movwf GEN4H movlw STRQLB70 255 f call COSTROUT moviw 2 movwf GEN4H bsf STATUS 5 ram bank 1 movf hr W bcf STATUS 5 ram bank 0 f call OUT DECC moviw 58 f call HRSOUT moviw 2 movwf GEN4H bsf STATUS 5 ram_bank 1 movf mn W bcf STATUS 5 ram_bank 0 f call OUT DECC moviw 32 f call HRSOUT bsf STATUS 5 199 ram bank 1 ampm W bcf STATUS 5 ram bank 0 f call HRSOUT moviw 77 f call HRSOUT moviw 13 f call HRSOUT F1_001040 equ IN MITFPGUN BAS HSEROUT SHOTS FIRED DEC3 SHOTCTR moviw 4 movwf BPFH movlw STR LB71 gt gt 8 amp 255 movwf GEN4H movlw STRQLB71 255 f call C STROUT moviw 3 movwf GEN4H bsf STATUS 5 ram_bank 1 movf shotCtr W bcf STATUS 5 ram bank 0 f call OUT DECC F1_001041 equ IN MITFPGUN BAS DELAYMS 100 moviw 100 f call DL MS F1 001042 equ IN MITFPGUN BAS HSEROUT 26 moviw 26 f call HRSOUT F1_001043 equ IN MITFPGUN BAS HSERIN 15000 SUBS_SMS_INITFAILED WAIT CMGS WAIT OK moviw 58 movwf GENH moviw 152 movwf GEN PB LB255 f call HRSIN2 set page subs SMS InitFailed btfss STATUS O goto subs_SMS_InitFailed sublw 43 set page PB LB255 btfss STATUS 2 200 goto PB LB255 f call HRSIN2 set page subs SMS InitFailed btfss STATUS O goto subs SMS InitFailed sublw 67 set page PB LB255 btfss STATUS 2 goto PB LB255 f call HRSIN2 set page subs SMS InitFailed btfss STATUS O goto subs SMS InitFailed sub
126. w 1 bcf STATUS 5 ram bank 0 movwf FPC Fi 000180 equ IN MITFPGUN BAS GOSUB SUBS FPCOMMAND 102 subs FPCommand Fi 000182 IN MITFPGUN BAS GOTO JMP ADMINSTART F JUMP jmp AdminStart FOJUMP BCQLL24 BC LL25 F1_000184 equ IN MITFPGUN BAS CASE 3 moviw 51 bsf STATUS 5 ram_bank 1 subwf keytemp W set page BC LL28 bcf STATUS 5 ram_bank 0 btfss STATUS 2 goto BC LL28 Fi 000186 equ IN MITFPGUN BAS GOTO JMP ADMINSTART F JUMP jmp_AdminStart F1_000188 equ IN MITFPGUN BAS ENDSELECT BC LL28 BC LL24 F1 000190 equ IN MITFPGUN BAS WEND BC LL22 BC LL23 FOJUMP BC LL19 BC LL20 F1_000193 equ IN MITFPGUN BAS CASE 2 moviw 50 bsf STATUS 5 ram_bank 1 subwf keytemp W set page BC LL30 bcf STATUS 5 ram_bank 0 btfss STATUS 2 goto BC LL30 F1_000195 equ IN MITFPGUN BAS GOSUB SUBS_SMS_REGISTERUSER f call subs SMS RegisterUser 1 000196 IN MITFPGUN BAS GOTO JMP ADMINSTART F JUMP jmp AdminStart F JUMP 19 BC LL30 F1_000198 equ IN MITFPGUN BAS CASE 3 moviw 51 bsf STATUS 5 103 ram bank 1 subwf keytemp W set page 32 bcf STATUS 5 ram bank 0 btfss STATUS 2 goto BC LL32 F1 000200 equ IN MITFPGUN BAS JMPFIRINGMODE F JUMP jmpFiringMode F JUMP 19 BC LL32 F1_000202 equ IN MITFPGUN BAS CASE 4 movlw 52 bsf STATUS 5 ram_bank 1 subwf keytemp W set page BC LL34 bcf STATUS 5 ram_bank 0
127. w 84 set page PB LB191 btfss STATUS 2 goto PB LB191 f call HRSIN sublw 58 set page PB LB191 btfss STATUS 2 goto PB LB191 163 F1 000723 equ IN MITFPGUN BAS DELAYMS 100 movlw 100 DL MS Fi 000725 IN MITFPGUN BAS PRINT AT 3 1 2 movlw 128 movwf BPFH movlw 148 LCD CRS movlw 50 f call PRINT Fi 000727 equ IN MITFPGUN BAS HSEROUT AT CIURC 0 13 movlw 4 movwf BPFH movlw STR LB40 gt gt 8 4 255 movwf GEN4H moviw STR LB40 4 255 COSTROUT movlw 13 HRSOUT F1 000728 MITFPGUN BAS HSERIN 1500 SUBS SMS INITFAILED WAIT OK movlw 5 movwf GENH movlw 220 movwf GEN PB LB192 f call HRSIN2 set page subs SMS InitFailed btfss STATUS O goto subs SMS InitFailed sublw 79 set page PB LB192 btfss STATUS 2 goto PB LB192 f call HRSIN2 set page subs SMS InitFailed btfss STATUS O goto subs_SMS_InitFailed sublw 75 set page PB LB192 btfss STATUS 2 goto PB LB192 F1 000729 equ IN MITFPGUN BAS DELAYMS 100 movlw 100 164 DL MS Fi 000731 MITFPGUN BAS PRINT AT 3 1 3 movlw 128 movwf BPFH movlw 148 LCD CRS movlw 51 f call PRINT F1 000733 equ IN MITFPGUN BAS HSEROUT AT CNMI 3 1 0 0 0 13 movlw 4 movwf BPFH movlw STR LB41 gt gt 8 amp 255 movwf GEN4H moviw STR LB41 4 255 f call C STROUT movlw 13 f call HRSOUT F1 000734 equ IN MITFPGUN BAS HSERIN 1500 SUBS SMS INITFAILED WAIT OK m
128. w 85 movwf FPEMsg Z7 movlw 76 movwf FPEMsg 8 movwf FPEMsg 9 movlw 32 movwf FPEMsg 10 movwf FPEMsg 11 movlw 46 movwf FPEMsg 12 138 0 movlw 32 movwf FPEMsg 13 movwf FPEMsg 14 movwf FPEMsg 15 movwf 16 movwf FPEMsg 7 17 movwf FPEMsg 18 movwf FPEMsg 7 19 cirf FPEMSg420 F JUMP 136 BC LL146 F1 000582 equ IN MITFPGUN BAS CASE 14 STR FPEMSG ID ALREADY USED 0 movlw 20 subwf FPECode W set page BC LL148 btfss STATUS 2 goto BC LL148 ram_bank 0 movlw 73 movwf FPEMsg 0 moviw 68 movwf FPEMsg 1 movlw 32 movwf FPEMsg 2 movlw 65 movwf FPEMsg 3 movlw 76 movwf FPEMsg 44 movlw 82 movwf FPEMsg 5 movlw 69 movwf FPEMsg 6 movlw 65 movwf FPEMsg Z7 movlw 68 movwf FPEMsg 8 movlw 89 movwf FPEMsg 9 movlw 32 movwf FPEMsg 10 movlw 85 movwf FPEMsg 11 moviw 83 139 movwf FPEMsg 12 movlw 69 movwf FPEMsg 13 movlw 68 movwf FPEMsg 14 movlw 46 movwf FPEMsg 15 movlw 32 movwf 16 movwf FPEMsg 17 movwf FPEMsg 18 movwf FPEMsg7 19 FPEMSg4 20 F JUMP BC LL136 BC LL148 F1 000583 equ IN MITFPGUN BAS CASE 15 STR FPEMSG NO REGISTERED USERS 0 movlw 21 subwf FPECode W set page 150 btfss STATUS 2 goto BC LL150 ram bank 0 movlw 78 movwf FPEMsg Z0 movlw 79 movwf FPEMsg 1 movlw 32 movwf FPEMsg 2 movlw 82 movwf FPEMsg 3 movlw 69 movwf FPEMsg 4 movlw 71 movwf FPEMsg 5 movlw 73 movwf FPEMsg 6 83 movwf FPEMsg Z7 movlw 84 movwf FPEMsg
129. y also refer to a variety of transducer devices that converts energy into linear motion The term is also used to refer to a solenoid valve which is an integrated device containing an electromechanical solenoid which actuates either a pneumatic or hydraulic valve or a solenoid switch which is a specific type of relay that internally uses an electromechanical solenoid to operate an electrical switch GSM GPRS Module it is used to establish communication between a computer and a GSM GPRS system Global System for Mobile Communication GSM is an architecture used for mobile communication in most of the countries Global Packet Radio Service GPRS is an extension of GSM that enables higher data transmission rate GSM GPRS module consists of a GSM GPRS modem assembled together with power supply circuit and communication interfaces for computer GSM GPRS Modem is a class of modem device that is designed for communication of a computer with the GSM and GPRS network It requires a Subscriber Identity Module SIM card just like mobile phones to activate communication with the network Chapter 2 REVIEW OF RELATED LITERATURES AND STUDIES Biometrics Biometric authentication refers to the identification of humans by their characteristics or traits Biometrics is used in computer science as a form of identification and access control It is also used to identify individuals in groups that are under surveillance Biometrics identifiers are the disti

Download Pdf Manuals

image

Related Search

Related Contents

m2% Installation manual Model: VOLKSWAGEN T4 Skid plate for    はじめに  Chief XPAUB  詳細取扱説明書 - エプソンパートナーズネット  Philips Clock radio for iPod/ iPhone AJ3275D  

Copyright © All rights reserved.
Failed to retrieve file