Nothing Special   »   [go: up one dir, main page]

CN114495326B - Control circuit and control method of fingerprint module and intelligent lock - Google Patents

Control circuit and control method of fingerprint module and intelligent lock Download PDF

Info

Publication number
CN114495326B
CN114495326B CN202011262840.7A CN202011262840A CN114495326B CN 114495326 B CN114495326 B CN 114495326B CN 202011262840 A CN202011262840 A CN 202011262840A CN 114495326 B CN114495326 B CN 114495326B
Authority
CN
China
Prior art keywords
fingerprint
control chip
main control
dsp
algorithm dsp
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011262840.7A
Other languages
Chinese (zh)
Other versions
CN114495326A (en
Inventor
李振刚
黄臣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BYD Semiconductor Co Ltd
Original Assignee
BYD Semiconductor Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BYD Semiconductor Co Ltd filed Critical BYD Semiconductor Co Ltd
Priority to CN202011262840.7A priority Critical patent/CN114495326B/en
Publication of CN114495326A publication Critical patent/CN114495326A/en
Application granted granted Critical
Publication of CN114495326B publication Critical patent/CN114495326B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00563Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys using personal physical data of the operator, e.g. finger prints, retinal images, voicepatterns
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C2009/00634Power supply for the lock
    • G07C2009/00642Power supply for the lock by battery

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Image Input (AREA)
  • Collating Specific Patterns (AREA)
  • Lock And Its Accessories (AREA)

Abstract

The application discloses control circuit, control method and intelligent lock of fingerprint module, this control circuit includes: a fingerprint algorithm DSP and a fingerprint sensor; the fingerprint algorithm DSP and the fingerprint sensor are connected with the power supply without interruption; the fingerprint sensor is used for detecting a touch signal, and when the fingerprint sensor detects the touch signal, the fingerprint sensor sends an interrupt signal to the fingerprint algorithm DSP and the main control chip; and the fingerprint algorithm DSP is used for executing fingerprint comparison after receiving the interrupt signal and sending the comparison result to the main control chip. According to the technical scheme, the fingerprint algorithm DSP is connected with the power supply without interruption, so that power is not required to be turned off, a switch circuit and a discharge resistor RL are not required, the cost can be reduced, the complexity of a fingerprint module control circuit is reduced, and meanwhile, the power consumption and the heating degree during working can be reduced.

Description

Control circuit and control method of fingerprint module and intelligent lock
Technical Field
The invention relates to the technical field of electronics, in particular to a control circuit and a control method of a fingerprint module and an intelligent lock.
Background
Fingerprint identification technology has begun to enter various fields in life, and has been more explosive in the smart lock market for two years. The fingerprint module is an important component of the fingerprint intelligent lock and is responsible for relevant work such as fingerprint comparison, input, template management and the like.
The fingerprint module comprises a fingerprint algorithm Digital signal processor (Digital SignalProcessing, DSP) and a fingerprint sensor, and is connected to a main control chip of the main board through an interface. The power line of the fingerprint algorithm DSP is controlled by the main control chip through a switch, and when the intelligent lock is in standby, the main control chip turns off the switch and does not supply power to the fingerprint algorithm DSP so as to reduce the power consumption during dormancy.
The master control chip needs to control the fingerprint algorithm DSP through a switch, and the switch circuit increases extra cost.
When the fingerprint sensor detects a touch signal, the interrupt signal (because the fingerprint algorithm DSP is powered off) can only be sent to the main control chip, and after the main control chip is awakened by the interrupt signal, the interrupt signal sent by the fingerprint sensor is detected, and the switch is controlled to be turned on to power up the fingerprint algorithm DSP. After the fingerprint algorithm DSP is powered on, as the interrupt signal sent by the fingerprint sensor is not received, the main control chip sends the inquiry command to the main control chip, and after the main control chip sends the fingerprint comparison command to the fingerprint algorithm DSP, the fingerprint algorithm DSP starts to communicate with the fingerprint sensor to obtain a fingerprint image, performs fingerprint comparison and sends the fingerprint comparison result to the main control chip. And after the main control chip receives the result, performing corresponding operation, and powering off the fingerprint algorithm DSP.
In the whole process, the main control chip is awakened and is controlled to turn on the switch to power on the fingerprint algorithm DSP, the fingerprint algorithm DSP is communicated with the main control chip after the fingerprint algorithm DSP is powered on, the fingerprint algorithm DSP obtains fingerprint comparison commands and then compares fingerprints, each step needs time, the whole process is complex, the time consumption is long, and the customer experience is affected.
Disclosure of Invention
In view of the foregoing drawbacks or shortcomings in the prior art, it is desirable to provide a control circuit, a control method and an intelligent lock for a fingerprint module.
In a first aspect, the present invention provides a control circuit of a fingerprint module, including: a fingerprint algorithm DSP and a fingerprint sensor; the fingerprint algorithm DSP and the fingerprint sensor are connected with the power supply without interruption;
the fingerprint sensor is used for detecting a touch signal, and when the fingerprint sensor detects the touch signal, the fingerprint sensor sends an interrupt signal to the fingerprint algorithm DSP and the main control chip;
and the fingerprint algorithm DSP is used for executing fingerprint comparison after receiving the interrupt signal and sending the comparison result to the main control chip.
In one embodiment, the fingerprint algorithm DSP and the fingerprint sensor share a single power line.
In one embodiment, the fingerprint algorithm DSP is further configured to detect whether an abnormal fluctuation exists in the common power line; when abnormal fluctuation of the common power line is detected, an interrupt signal is generated to wake up the fingerprint sensor, and the fingerprint sensor is reconfigured to work normally.
In one embodiment, the fingerprint algorithm DSP is further configured to be connected to the main control chip through a signal line, where the signal line is configured to transmit an interrupt request signal, so as to implement a bidirectional wake-up request between the fingerprint algorithm DSP and the main control chip.
In a second aspect, an embodiment of the present application provides a control method of a fingerprint module, where a control circuit of the fingerprint module includes: a fingerprint algorithm DSP and a fingerprint sensor; the fingerprint algorithm DSP and the fingerprint sensor are connected with the power supply without interruption; the method comprises the following steps:
when the fingerprint sensor detects a touch signal, the fingerprint sensor sends an interrupt signal to the fingerprint algorithm DSP and the main control chip;
after the fingerprint algorithm DSP receives the interrupt signal, the fingerprint algorithm DSP performs fingerprint comparison and sends the comparison result to the main control chip.
In one embodiment, the fingerprint algorithm DSP performs fingerprint comparison, comprising:
the fingerprint algorithm DSP sends a fingerprint acquisition instruction to the fingerprint sensor;
the fingerprint sensor collects fingerprint images according to the fingerprint collection instruction and sends the collected fingerprint images to the fingerprint algorithm DSP;
the fingerprint algorithm DSP compares the received fingerprint image with a fingerprint image template pre-stored in the fingerprint algorithm DSP, and sends the comparison result to the main control chip so that the main control chip determines whether to unlock according to the comparison result.
In one embodiment, when the fingerprint algorithm DSP and the fingerprint sensor share one power line, the method further includes:
when the fingerprint algorithm DSP detects that the common power line has abnormal fluctuation, the fingerprint algorithm DSP wakes up the fingerprint algorithm DSP and reconfigures the fingerprint sensor so that the fingerprint sensor works normally.
In one embodiment, when the fingerprint algorithm DSP detects that the common power line has abnormal fluctuation, the fingerprint algorithm DSP transmits the abnormal fluctuation to the main control chip, and the main control chip transmits an alarm signal.
In one embodiment, an interrupt request signal is transmitted between the fingerprint algorithm DSP and the main control chip to realize a bidirectional wake-up request of the fingerprint algorithm DSP and the main control chip.
In a third aspect, an embodiment of the present application provides an intelligent lock, including a control circuit of the fingerprint module of the first aspect.
According to the control circuit, the control method and the intelligent lock of the fingerprint module, the fingerprint algorithm DSP is connected with the power supply without interruption, and power is not required to be turned off, so that a switch circuit and a discharge resistor RL are not required, the cost can be reduced, the complexity of the fingerprint module control circuit is reduced, and meanwhile, the power consumption and the heating degree during working can be reduced.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the detailed description of non-limiting embodiments, made with reference to the following drawings, in which:
FIG. 1 is a schematic diagram of a control circuit of a fingerprint module in the prior art;
fig. 2 is a schematic structural diagram of a control circuit of a fingerprint module according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a control circuit of a fingerprint module according to an embodiment of the invention;
fig. 4 is a flowchart illustrating a control method of a fingerprint module according to an embodiment of the invention.
Detailed Description
The present application is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be noted that, for convenience of description, only the portions related to the invention are shown in the drawings.
It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other. The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
As shown in fig. 1, in the related art, a control circuit of a fingerprint module includes a fingerprint algorithm DSP and a fingerprint sensor. The fingerprint module is connected to the main control chip of the main board through an interface. The interface comprises 6 wires, namely a fingerprint sensor power supply wire V-sensor, a fingerprint algorithm DSP power supply wire V-DSP, a GND ground wire, an interrupt signal INT wire and serial port communication wires UART-TX and UART-RX. The power line V-DSP of the fingerprint algorithm DSP is controlled by a main control chip through a switch. When the fingerprint module is standby, the main control chip controls the switch to be turned off, and does not supply power to the fingerprint algorithm DSP, so that the power consumption of the fingerprint module in dormancy can be reduced. The main control chip needs to control the power supply and the power failure of the fingerprint algorithm DSP, and then a switch circuit needs to be added, so that the additional cost of the fingerprint module is increased. In use, the fingerprinting algorithm DSP is frequently powered up and powered down due to the control of the switching circuit. In the power-down process, if the voltage is half, the power is immediately turned on again, and the fingerprint algorithm DSP may work abnormally. In order to solve this problem, in the fingerprint module, a RL resistor for discharging is also required to be specially designed for the V-DSP power line of the fingerprint algorithm DSP. The common leakage current of the RL resistor is 10mA, which causes the fingerprint module to additionally increase 10mA power consumption in the working state. When the fingerprint module is frequently used, the power consumption is increased, and the fingerprint module is caused to generate heat, so that the customer experience is influenced, and even the service life of the module is influenced.
Therefore, the application provides a control circuit of a fingerprint module to solve the above problems. The fingerprint module does not need a switch circuit or a discharge resistor RL, so that the cost and complexity of the fingerprint module can be effectively reduced, and the power consumption of the fingerprint module during operation can be reduced without the discharge resistor RL, and the heating degree of the fingerprint module during operation can be reduced.
Referring to fig. 2, a schematic diagram of a control circuit of a fingerprint module according to one embodiment of the present application is shown. As shown in fig. 2, the control circuit of the fingerprint module may include:
a fingerprint algorithm DSP110 and a fingerprint sensor 120; the control circuit of the fingerprint module may further include a main control chip 130.
The fingerprint algorithm DSP110, the fingerprint sensor 120 and the main control chip 130 are connected with a power supply without interruption, and the power supply provides continuous electric energy for the fingerprint algorithm DSP110, the fingerprint sensor 120 and the main control chip 130; the fingerprint algorithm DSP110, the fingerprint sensor 120 and the main control chip 130 are connected with the power supply without interruption, which may be that the fingerprint algorithm DSP110, the fingerprint sensor 120 and the main control chip 130 are directly connected with the power supply, that is, the fingerprint algorithm DSP110, the fingerprint sensor 120 and the main control chip 130 are connected with the power supply through wires (as shown in fig. 2), or may be that the fingerprint algorithm DSP110, the fingerprint sensor 120 and the main control chip 130 are connected with the power supply, for example: the resistor and the like do not interrupt the power supply to provide power for the fingerprint algorithm DSP110, the fingerprint sensor 120 and the main control chip 130.
The fingerprint sensor 120 is configured to detect a touch signal, and when the fingerprint sensor 120 detects the touch signal, the fingerprint sensor 120 sends an interrupt signal to the fingerprint algorithm DSP110 and the main control chip 130;
the fingerprint algorithm DSP110 is configured to perform fingerprint comparison after receiving the interrupt signal, and send the comparison result to the main control chip.
For example, the fingerprint sensor 120 is connected to the main control chip 130 and the fingerprint algorithm DSP110 through interrupt signal lines, respectively. For example, the fingerprint sensor 120 may transmit an interrupt signal to the main control chip 130 through the interrupt signal line INT1 and transmit an interrupt signal to the fingerprint algorithm DSP110 through the interrupt signal line INT 2. Alternatively, the fingerprint sensor 120 may transmit an interrupt signal to the main control chip 130 through the interrupt signal line INT2 and transmit an interrupt signal to the fingerprint algorithm DSP110 through the interrupt signal line INT 1. Alternatively, the fingerprint sensor 120 may simultaneously transmit the interrupt signal to the main control chip 130 and the fingerprint algorithm DSP110 through the interrupt signal line INT1, or the fingerprint sensor 120 may simultaneously transmit the interrupt signal to the main control chip 130 and the fingerprint algorithm DSP110 through the interrupt signal line INT 2. The fingerprint sensor 120 sends interrupt signals to the fingerprint algorithm DSP110 and the main control chip 130, and the fingerprint sensor 120 may adopt a connection between one pin of the fingerprint sensor 120 and a pin corresponding to the main control chip 130 through the interrupt signal line INT1, and another pin of the fingerprint sensor 120 is connected with a pin corresponding to a DSP module in the fingerprint algorithm DSP110 through the interrupt signal line INT 2. Alternatively, the fingerprint sensor 120 may adopt that one pin of the fingerprint sensor 120 is connected with a pin corresponding to the main control chip 130 through an interrupt signal line INT2, and the other pin of the fingerprint sensor 120 is connected with a pin corresponding to a DSP module in the fingerprint algorithm DSP110 through an interrupt signal line INT 1. The fingerprint sensor 120 may also transmit an interrupt signal by connecting one pin of the fingerprint sensor 120 with a pin corresponding to the DSP module in the fingerprint algorithm DSP110 and the main control chip 130 through the interrupt signal line INT1, or the fingerprint sensor 120 may transmit an interrupt signal by connecting one pin of the fingerprint sensor 120 with a pin corresponding to the DSP module in the fingerprint algorithm DSP110 and the main control chip 130 through the interrupt signal line INT 2. In fig. 2, one pin of the fingerprint sensor 120 is connected to a pin corresponding to a DSP module (not shown in the figure) in the fingerprint algorithm DSP110 through an interrupt signal line INT2, and the other pin of the fingerprint sensor 120 is connected to a pin corresponding to the main control chip 130 through an interrupt signal line INT 1.
Alternatively, the fingerprint algorithm DSP110 and the fingerprint SENSOR 120 are connected to the power supply without interruption, respectively, and it is also possible that the fingerprint algorithm DSP110 and the fingerprint SENSOR 120 are connected to the same power supply line (i.e., the fingerprint algorithm DSP and the fingerprint SENSOR share one power supply line, such as the power supply line V-SENSOR).
For example, a fingerprint sensor 120, for detecting whether there is a finger touch (i.e., a touch signal). When a finger touch is detected, the fingerprint sensor 120 is used to send an interrupt signal to the fingerprint algorithm DSP110 and the main control chip 130. It will be appreciated that the interrupt signal may be a level signal, and a high level signal of the level signal is used to inform the fingerprint algorithm DSP110 and the main control chip 130 that an object touch has been detected, and that processing is required.
Fingerprinting algorithm DSP110 may include a DSP module. The DSP module determines whether the interrupt signal is an interrupt signal generated by the fingerprint sensor 120 receiving the touch signal according to the received interrupt signal. If so, the DSP module performs fingerprint comparison. It will be appreciated that the fingerprint comparison result may include fingerprint matching and fingerprint non-matching.
The main control chip 130 is configured to receive the fingerprint comparison result sent by the fingerprint algorithm DSP110, and perform corresponding operations according to the received fingerprint comparison result. For example, if the fingerprint comparison result received by the main control chip 130 is fingerprint matching, the main control chip 130 controls unlocking; if the fingerprint is not matched as a result of the comparison, the main control chip 130 controls not to unlock and controls the loudspeaker to send a prompt of 'fingerprint matching failure, please slightly exert force or stay slightly', etc.
Optionally, the DSP module performs fingerprint comparison, which may include:
the DSP module sends a fingerprint collection instruction to the fingerprint sensor 120, the fingerprint sensor 120 collects a fingerprint image after receiving the fingerprint collection instruction, and sends the collected fingerprint image to the DSP module in the middle of sending, after receiving the fingerprint image, the DSP module compares the received fingerprint image with a fingerprint image pre-stored in the DSP module, and sends the comparison result to the main control chip 130.
In this embodiment, the fingerprint algorithm DSP is connected with the power supply without interruption, so that no switching circuit and no discharge resistor RL are required, which can reduce cost, reduce complexity of the fingerprint module control circuit, and reduce power consumption and heating degree during operation.
The control circuit of the fingerprint module can be applied to an intelligent lock, and the control circuit of the fingerprint module can be applied to an intelligent door lock. Referring to fig. 3, a schematic diagram of a control circuit of a fingerprint module according to one embodiment of the present application is shown.
As shown in fig. 3, the control circuit of the fingerprint module may include:
fingerprint algorithm DSP110, fingerprint sensor 120 and main control chip 130; the fingerprint algorithm DSP110, the fingerprint SENSOR 120 and the main control chip 130 are all connected with the power supply without interruption, wherein the fingerprint algorithm DSP110 and the fingerprint SENSOR 120 share a power supply line V-SENSOR. If the fingerprint algorithm DSP and the fingerprint sensor are connected to different power supplies respectively, the following common situations are: if the power line connected with the fingerprint sensor is disconnected in a short time due to overlarge oscillation when the door is closed, the fingerprint sensor is reset after being powered on again, the fingerprint algorithm DSP and the fingerprint sensor are respectively connected with different power supplies, the fingerprint algorithm DSP does not detect the short-time disconnection of the power line connected with the fingerprint sensor and also does not receive an interrupt signal, and then the fingerprint algorithm DSP is always in a dormant state, so that the fingerprint sensor cannot be restored to a normal state. The fingerprint sensor is found to be invalid when the client uses next time, and the door lock must be opened through other ways such as passwords. And resetting the system and then recovering the fingerprint module. The other condition is that the power supply connected with the fingerprint sensor is too large in fluctuation due to external influence (such as the work of a motor, a loudspeaker and other high-power devices), so that the normal work of the fingerprint sensor is influenced, the fingerprint algorithm DSP does not detect the too large fluctuation of the power supply connected with the fingerprint sensor, does not receive an interrupt signal, and is in a dormant state all the time. The reliability of the scheme fingerprint is reduced, and the use experience of the client is affected.
The embodiment of the application proposes to share a power line V-sensor with the fingerprint algorithm DSP110 and the fingerprint sensor 120 for solving. As shown in fig. 3, the fingerprint algorithm DSP110 and the fingerprint SENSOR 120 are connected to a power supply terminal through a power line V-SENSOR.
Based on the above embodiment, the fingerprint algorithm DSP110 may also be used to detect whether there is an abnormal fluctuation in the common power line, i.e. whether the voltage of the power line V-SENSOR is lower than the voltage threshold. It will be appreciated that the occurrence of abnormal fluctuations in the common power supply line may be transient fluctuations.
Specifically, the fingerprint algorithm DSP110 further includes a low voltage detection module (not shown in the figure), where the low voltage detection module is configured to monitor the voltage of the power line V-SENSOR, and if the voltage of the power line V-SENSOR is lower than the voltage threshold, the low voltage detection module sends an interrupt signal to a DSP module (not shown in the figure) of the fingerprint algorithm DSP, and when the DSP module is in a sleep state, the DSP module is woken up to be turned into a working state after receiving the interrupt signal. The voltage threshold may be set according to actual requirements, and exemplary, the voltage threshold may be set to 0.6V.
When the DSP module receives the interrupt signal, it sends a reconfiguration signal to the fingerprint sensor 120 to allow the fingerprint sensor 120 to operate normally.
Specifically, after the DSP module is awakened, it is detected that the low voltage detection module is awakened, that is, it is determined that the power line V-SENSOR has abnormal fluctuation, and at this time, whether the fingerprint SENSOR 120 is normal or not, the fingerprint algorithm DSP110 configures all registers of the fingerprint SENSOR 120, so that the fingerprint SENSOR 120 is restored to a normal working state. It will be appreciated that sending the reconfiguration signal includes, but is not limited to, sending a read-write signal to a register built into the fingerprint sensor 120 through an SPI port between the fingerprint algorithm DSP110 and the fingerprint sensor 120.
The fingerprint algorithm DSP110 can also feed back abnormal fluctuation of the power line V-SENSOR to the main control chip 130. The abnormal fluctuation information may be transferred through a signal line between the fingerprinting DSP110 and the main control chip 130, for example. Such as an interrupt request signal line.
The main control chip 130 may be further configured to receive feedback information of abnormal fluctuation of the power line V-SENSOR sent by the fingerprint algorithm DSP110, and when the main control chip 130 detects that the user uses the intelligent lock after receiving the feedback information of abnormal fluctuation of the power line V-SENSOR, the main control chip reminds the user that the power line is loose or that the battery power is low, and the battery needs to be replaced.
For example, when the battery power of the smart lock is low, the voltage of the power line V-SENSOR is detected to be lower than the voltage threshold, and the user is reminded of 'low battery and need to replace the battery' through a loudspeaker. Because the battery case of intelligent lock and the connecting wire between the fingerprint module pass through the connector connection, when the dynamics of opening or closing the door is bigger for example, the moment of opening the door or closing the door shakes and makes the connector loosen in the twinkling of an eye, shakes after ending, the connector resumes the original state again. However, when the fingerprint sensor 120 is instantaneously loosened, the fingerprint sensor 120 is disabled, and in this case, the main control chip 130 reminds the user of "loosening the power line" or "closing the door, excessively increasing the door opening force" through the speaker, etc.
The fingerprint algorithm DSP110 feeds back the abnormal fluctuation of the power line V-SENSOR to the main control chip 130, and the main control chip 130 reminds a user of paying attention, so that the intelligent lock fault can be prevented in advance, the potential safety hazard existing in the intelligent lock can be timely processed, and unnecessary troubles are avoided.
In the embodiment, the fingerprint algorithm DSP and the fingerprint sensor share the power line, when the fingerprint sensor fails to work due to abnormal fluctuation of the power supply, the fingerprint algorithm DSP can detect the abnormal fluctuation of the power supply and reset the fingerprint sensor, so that the abnormal condition of the fingerprint sensor is reduced, and the reliability of the fingerprint module is improved.
In the above embodiment, the fingerprint algorithm DSP is in the sleep state when not working, and at this time, if the main control chip sends a message to the fingerprint algorithm DSP, the fingerprint algorithm DSP cannot receive the message, so that the fingerprint algorithm DSP needs to be awakened from the sleep state to the working state. However, at this time, it is not necessary that the user wakes up the fingerprint algorithm DSP by the fingerprint sensor at the smart lock. Therefore, the fingerprint algorithm needs to be capable of transmitting interrupt signals between the DSP and the main control chip so as to enable one party to wake up the other party.
In one embodiment, the first IO port of the fingerprint algorithm DSP is connected with the second IO port of the main control chip through a signal line, and the signal line is used for transmitting an interrupt request signal so as to realize a bidirectional wake-up request of the fingerprint algorithm DSP and the main control chip.
Specifically, the first IO port of the fingerprint algorithm DSP110 is any one of the IO ports on the DSP module, and the second IO port of the main control chip 130 is any one of the IO ports on the main control chip 130. When the fingerprint algorithm DSP110 and the main control chip 130 are both in the sleep state, the first IO port and the second IO port have pull-up resistors, the first IO port and the second IO port are both input and are both in high level, when one of the fingerprint algorithm DSP110 and the main control chip 130 needs to interrupt the other, the level of one of the two IO ports is pulled down, the other receives a low level signal (i.e. a request signal), and the other is interrupted and awakened.
For example, when the intelligent lock is not in operation, the fingerprint algorithm DSP and the main control chip are in a dormant state, when the power line V-SENSOR abnormally fluctuates, the fingerprint algorithm DSP wakes up itself, at this time, the main control chip is still in the dormant state, when the fingerprint algorithm DSP sends the power line V-SENSOR abnormally fluctuates to the main control chip to feed back, the main control chip cannot receive information, the fingerprint algorithm DSP needs to firstly send an IRQ (interrupt request signal) to the main control chip to wake up the main control chip to a working state, and the main control chip can only receive the information.
For another example, when the mobile phone terminal or the like queries a pre-stored fingerprint image template stored in the fingerprint algorithm DSP through the main control chip, the fingerprint algorithm DSP is in a dormant state, and cannot receive the query information sent by the main control chip, the main control chip needs to send an IRQ (interrupt request signal) to the fingerprint algorithm DSP to wake up the fingerprint algorithm DSP to a working state, and the fingerprint DSP can only receive the query information sent by the main control chip.
In this embodiment, the first IO port of the fingerprint algorithm DSP is connected to the second IO port of the main control chip through a signal line, and the signal line transmits an interrupt signal request, so that a bidirectional wake-up request between the fingerprint algorithm DSP and the main control chip can be realized.
The embodiment of the application also provides an intelligent lock, which comprises the control circuit of the fingerprint module provided by the embodiment. The intelligent lock can be an intelligent door lock and the like.
If the control method of the fingerprint module is implemented by the fingerprint module control circuit shown in fig. 1, when the fingerprint sensor is touched by a finger to unlock the fingerprint, the fingerprint sensor can only send an interrupt signal to the main control chip after detecting the finger touch (because the fingerprint algorithm DSP is powered off), and the main control chip can only turn on the switch to power up the fingerprint algorithm DSP after detecting the interrupt signal sent by the fingerprint sensor after being awakened by the interrupt. After the fingerprint algorithm DSP is powered on, because the interrupt signal sent by the fingerprint sensor is not received, the fingerprint algorithm DSP sends an inquiry signal to the main control chip through the serial communication lines UART-TX and UART-RX so as to obtain an instruction sent by the main control chip. After a fingerprint comparison command of the main control chip is obtained, the fingerprint algorithm DSP is communicated with the fingerprint sensor, fingerprint images are collected, fingerprint comparison is carried out, and fingerprint comparison results are sent to the main control chip. And the main control chip receives the comparison result, performs corresponding operation, and cuts off the power of the fingerprint algorithm DSP.
In the whole comparison process, the main control chip wakes up, the switch is turned on, the fingerprint algorithm DSP is powered on, and then the fingerprint algorithm DSP is communicated with the main control chip to obtain a command, then the fingerprint comparison needs time, the whole process is complex and takes too long, the wake-up time of the main control chip and the fingerprint algorithm DSP is long, each chip is close to 50ms, namely, the method is adopted to wake up sequentially, and the time is wasted by 50ms at least. And additional time is required for communicating the comparison command with each other. The overall waste is about 70 ms. Affecting the customer experience.
Therefore, a fingerprint module control method with less time consumption needs to be proposed.
Referring to fig. 4, a flow chart of a control method of a fingerprint module according to an embodiment of the present application is shown.
As shown in fig. 4, the control method of the fingerprint module is executed by the control circuit of the fingerprint module shown in fig. 2 and 3, and the control circuit of the fingerprint module in fig. 2 and 3 includes: the fingerprint algorithm DSP, the fingerprint sensor and the main control chip are connected with the power supply without interruption. The control method of the fingerprint module can comprise the following steps:
s410, when the fingerprint sensor receives a touch signal, the fingerprint sensor sends an interrupt signal to the fingerprint algorithm DSP and the main control chip;
and S420, after the fingerprint algorithm DSP receives the interrupt signal, the fingerprint algorithm DSP performs fingerprint comparison and sends the comparison result to the main control chip.
Specifically, since the fingerprint algorithm DSP and the fingerprint sensor in the control circuit of the fingerprint module are connected with the power line without interruption, namely, when the intelligent lock is in standby, the fingerprint algorithm DSP and the main control chip are in a low-power-consumption dormant state, and the fingerprint sensor is in a low-power-consumption finger touch detection state. When the fingerprint sensor is touched by a hand, the fingerprint sensor detects that the hand touches, the fingerprint sensor is converted into a working state from a dormant state, then an interrupt signal is sent to the fingerprint algorithm DSP and the main control chip, the fingerprint algorithm DSP and the main control chip are awakened from the dormant state to the working state, fingerprint comparison is carried out after the fingerprint algorithm DSP is awakened, and a comparison result is sent to the main control chip.
In this embodiment, after the fingerprint sensor receives the touch signal, the fingerprint sensor has two paths of interrupt signal outputs. When a finger touches the fingerprint sensor, the fingerprint sensor sends an interrupt signal to the main control chip and also sends the interrupt signal to the fingerprint algorithm DSP after detecting the finger touch, and wakes up the main control chip and the fingerprint algorithm DSP. After the fingerprint algorithm DSP is awakened, the fingerprint comparison can be directly executed without inquiring the command of the main control chip, and the comparison result is sent to the main control chip. Therefore, a large number of complex flow operations can be omitted, time is saved, and the use feeling of customers is improved.
In one embodiment, the fingerprinting algorithm DSP performs a fingerprinting comparison comprising:
the fingerprint algorithm DSP sends a fingerprint acquisition instruction to the fingerprint sensor;
the fingerprint sensor collects fingerprint images according to the fingerprint collection instruction and sends the collected fingerprint images to the fingerprint algorithm DSP;
the fingerprint algorithm DSP compares the received fingerprint image with a fingerprint image template pre-stored in the fingerprint algorithm DSP, and sends the comparison result to the main control chip so that the main control chip determines whether to unlock according to the comparison result.
Specifically, the fingerprint algorithm DSP can pre-store one or more than one pre-stored fingerprint image templates, and the number of the pre-stored fingerprint image templates can be set according to actual requirements. The manufacturer settings for different numbers of templates of the largest pre-stored fingerprint images may be different.
The pre-stored fingerprint image template pre-stored in the fingerprint algorithm DSP can be pre-stored by scanning the fingerprint of the hand through an application program (APP) in a terminal such as a mobile phone, or can be pre-stored by scanning the fingerprint of the hand through a fingerprint sensor, and the method is not limited.
When the fingerprint sensor receives a fingerprint acquisition instruction sent by the fingerprint algorithm DSP, the fingerprint algorithm DSP controls the fingerprint sensor to switch from a fingerprint detection state to a fingerprint scanning state, the fingerprint sensor scans fingerprints, the fingerprint sensor sends scanned fingerprint images to the fingerprint algorithm DSP, and after the fingerprint algorithm DSP receives the fingerprint images, the fingerprint sensor is controlled to switch from the fingerprint scanning state to the fingerprint detection state.
The fingerprint algorithm DSP compares the received fingerprint image with a pre-stored fingerprint image template, if any one of the received fingerprint image and the pre-stored fingerprint image template is matched, namely the matching is successful, the fingerprint algorithm DSP sends a result of the successful matching to the main control chip, and the main control chip controls unlocking. If the received fingerprint image and the pre-stored fingerprint image template cannot be matched, namely the matching is failed, the fingerprint algorithm DSP can send a fingerprint acquisition instruction to the fingerprint sensor again, and send the result of the matching failure to the main control chip, the main control chip controls not to unlock, and controls the loudspeaker to send out alarm to remind information such as 'password error, please slightly exert force or stay properly'. If the number of times of the matching failure exceeds the preset number of times, the main control chip controls the buzzer to send out alarm sounds to draw surrounding attention, and sends the number of times of the matching failure exceeding the preset number of times to the terminals such as the user mobile phone and the like, and the number of times of the matching failure can be sent to the terminals such as the user mobile phone and the like in a manner of sending a short message or dialing a telephone number. The preset times can be set according to different requirements. After the number of matching failures exceeds the preset number, unlocking can be performed in a password mode, fingerprint or password unlocking and the like can also be performed on the APP of the terminal such as a mobile phone and the like, and the method is not limited.
In one embodiment, the fingerprint algorithm DSP and the fingerprint sensor share a power supply, and the control method of the fingerprint module further includes:
when the fingerprint algorithm DSP detects that the common power line has abnormal fluctuation, the fingerprint algorithm DSP wakes up the fingerprint algorithm DSP and reconfigures the fingerprint sensor so that the fingerprint sensor works normally.
Specifically, the abnormal power supply fluctuation may be instantaneous fluctuation or long-time fluctuation, and this is not a limitation.
The fingerprint algorithm DSP wakes itself up no matter what kind of abnormal fluctuation the power supply is detected, and then reconfigures the fingerprint sensor.
The fingerprint algorithm DSP can wake up itself by sending an interrupt signal through its own low voltage detection module. The fingerprint algorithm DSP can read and write the register of the fingerprint sensor through the SPI port to reconfigure the fingerprint sensor.
On the basis of the embodiment, when the fingerprint algorithm DSP detects that the common power line has abnormal fluctuation, the fingerprint algorithm DSP sends the abnormal fluctuation to the main control chip, and the main control chip sends an alarm signal.
Specifically, after receiving the feedback signal of abnormal fluctuation of the common power supply sent by the fingerprint algorithm DSP, the main control chip sends an alarm signal to a user, and when the user uses the intelligent lock, the audio such as ' power line looseness ' or ' low battery power and the like is played through a loudspeaker so as to remind the user.
In the embodiment, the fingerprint algorithm DSP is always powered on, can detect abnormal fluctuation on the common power supply V-sensor, automatically wakes up the fingerprint algorithm DSP, and then reconfigures the fingerprint sensor to enable the fingerprint sensor to work normally. And this condition can be fed back to the main control chip, and the main control chip can remind the customer to pay attention to or replace the battery when the customer uses. Thus, the abnormal condition of the fingerprint sensor is reduced, and the reliability of the fingerprint module is improved.
In one embodiment, an interrupt request signal is transmitted between the fingerprint algorithm DSP and the main control chip to realize a bidirectional wake-up request of the fingerprint algorithm DSP and the main control chip.
In this embodiment, since the interrupt signal is transmitted between the fingerprint algorithm DSP and the main control chip, a bidirectional wake-up request of the fingerprint algorithm DSP and the main control chip can be realized, and the defect that the user can wake up the fingerprint algorithm DSP and the main control chip only through the fingerprint sensor can be avoided.
The foregoing description is only of the preferred embodiments of the present application and is presented as a description of the principles of the technology being utilized. It will be appreciated by persons skilled in the art that the scope of the invention referred to in this application is not limited to the specific combinations of features described above, but it is intended to cover other embodiments in which any combination of features described above or equivalents thereof is possible without departing from the spirit of the invention. Such as the above-described features and technical features having similar functions (but not limited to) disclosed in the present application are replaced with each other.

Claims (6)

1. The utility model provides a control circuit of fingerprint module, its characterized in that includes: a fingerprint algorithm DSP and a fingerprint sensor; the fingerprint algorithm DSP and the fingerprint sensor are connected with a power supply without interruption;
the fingerprint sensor is used for detecting a touch signal, and when the fingerprint sensor detects the touch signal, the fingerprint sensor simultaneously sends an interrupt signal to the fingerprint algorithm DSP and the main control chip;
the fingerprint algorithm DSP is used for executing fingerprint comparison after receiving the interrupt signal and sending the comparison result to the main control chip;
the first IO port of the fingerprint algorithm DSP is connected with the second IO port of the main control chip through a signal line, and after the level corresponding to one of the first IO port and the second IO port is pulled down, the signal line is used for transmitting an interrupt request signal to the other of the first IO port and the second IO port so as to realize a bidirectional wake-up request of the fingerprint algorithm DSP and the main control chip;
when the intelligent lock does not work, the fingerprint algorithm DSP and the main control chip are in a dormant state, when the power line abnormally fluctuates, the fingerprint algorithm DSP wakes up the intelligent lock and reconfigures the fingerprint sensor so that the fingerprint sensor works normally, and the fingerprint algorithm DSP sends an interrupt request signal to the main control chip to wake up the main control chip to a working state.
2. The control circuit of a fingerprint module according to claim 1, wherein the fingerprint algorithm DSP and the fingerprint sensor share a power line.
3. The control method of the fingerprint module is characterized by comprising a control circuit of the fingerprint module, wherein the control circuit of the fingerprint module comprises the following components: a fingerprint algorithm DSP and a fingerprint sensor; the fingerprint algorithm DSP and the fingerprint sensor are connected with a power supply without interruption; the method comprises the following steps:
when the fingerprint sensor detects a touch signal, the fingerprint sensor simultaneously sends an interrupt signal to a fingerprint algorithm DSP and a main control chip;
after the fingerprint algorithm DSP receives the interrupt signal, the fingerprint algorithm DSP performs fingerprint comparison and sends a comparison result to the main control chip;
the first IO port of the fingerprint algorithm DSP is connected with the second IO port of the main control chip through a signal line, and after the level corresponding to one of the first IO port and the second IO port is pulled down, the signal line is used for transmitting an interrupt request signal to the other of the first IO port and the second IO port so as to realize a bidirectional wake-up request of the fingerprint algorithm DSP and the main control chip;
when the intelligent lock does not work, the fingerprint algorithm DSP and the main control chip are in a dormant state, when the power line abnormally fluctuates, the fingerprint algorithm DSP wakes up the intelligent lock and reconfigures the fingerprint sensor so that the fingerprint sensor works normally, and the fingerprint algorithm DSP sends an interrupt request signal to the main control chip to wake up the main control chip to a working state.
4. A control method according to claim 3, wherein the fingerprint algorithm DSP performs fingerprint comparison, comprising:
the fingerprint algorithm DSP sends a fingerprint acquisition instruction to the fingerprint sensor;
the fingerprint sensor collects fingerprint images according to the fingerprint collection instruction and sends the collected fingerprint images to the fingerprint algorithm DSP;
and the fingerprint algorithm DSP compares the received fingerprint image with a fingerprint image template pre-stored in the fingerprint algorithm DSP and sends a comparison result to the main control chip so that the main control chip determines whether to unlock according to the comparison result.
5. The control method according to claim 3, wherein when the fingerprint algorithm DSP detects that the power line has abnormal fluctuation, the master control chip receives an interrupt request signal and wakes up to a working state, and the fingerprint algorithm DSP feeds back the abnormal fluctuation to the master control chip, and the master control chip sends an alarm signal.
6. An intelligent lock, comprising a control circuit of a fingerprint module according to any one of claims 1-2.
CN202011262840.7A 2020-11-12 2020-11-12 Control circuit and control method of fingerprint module and intelligent lock Active CN114495326B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011262840.7A CN114495326B (en) 2020-11-12 2020-11-12 Control circuit and control method of fingerprint module and intelligent lock

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011262840.7A CN114495326B (en) 2020-11-12 2020-11-12 Control circuit and control method of fingerprint module and intelligent lock

Publications (2)

Publication Number Publication Date
CN114495326A CN114495326A (en) 2022-05-13
CN114495326B true CN114495326B (en) 2024-02-20

Family

ID=81489759

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011262840.7A Active CN114495326B (en) 2020-11-12 2020-11-12 Control circuit and control method of fingerprint module and intelligent lock

Country Status (1)

Country Link
CN (1) CN114495326B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201633691U (en) * 2009-12-30 2010-11-17 池长溪 Automobile fingerprint anti-theft device and control circuit
CN203910007U (en) * 2014-06-19 2014-10-29 上海真兰仪表科技股份有限公司 GSM and GPRS public network transmission date-based gas meter
CN105844130A (en) * 2016-03-17 2016-08-10 上海与德通讯技术有限公司 Fingerprint unlocking method under standby state
CN106127140A (en) * 2016-06-21 2016-11-16 上海与德科技有限公司 A kind of fingerprint identification device and electronic equipment
CN107121645A (en) * 2017-03-23 2017-09-01 国家电网公司 A kind of high-tension switch gear and electrical power monitoring device
CN207752550U (en) * 2018-01-26 2018-08-21 林树群 A low-power standby circuit for smart locks
CN109684975A (en) * 2018-12-18 2019-04-26 深圳贝特莱电子科技股份有限公司 A kind of fingerprint identification device and method without becket and touch detection chip
CN110119651A (en) * 2018-02-06 2019-08-13 比亚迪股份有限公司 A kind of electronic equipment, finger print detection device and method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201633691U (en) * 2009-12-30 2010-11-17 池长溪 Automobile fingerprint anti-theft device and control circuit
CN203910007U (en) * 2014-06-19 2014-10-29 上海真兰仪表科技股份有限公司 GSM and GPRS public network transmission date-based gas meter
CN105844130A (en) * 2016-03-17 2016-08-10 上海与德通讯技术有限公司 Fingerprint unlocking method under standby state
CN106127140A (en) * 2016-06-21 2016-11-16 上海与德科技有限公司 A kind of fingerprint identification device and electronic equipment
CN107121645A (en) * 2017-03-23 2017-09-01 国家电网公司 A kind of high-tension switch gear and electrical power monitoring device
CN207752550U (en) * 2018-01-26 2018-08-21 林树群 A low-power standby circuit for smart locks
CN110119651A (en) * 2018-02-06 2019-08-13 比亚迪股份有限公司 A kind of electronic equipment, finger print detection device and method
CN109684975A (en) * 2018-12-18 2019-04-26 深圳贝特莱电子科技股份有限公司 A kind of fingerprint identification device and method without becket and touch detection chip

Also Published As

Publication number Publication date
CN114495326A (en) 2022-05-13

Similar Documents

Publication Publication Date Title
US9565293B2 (en) Method and device for operating mobile terminal based on sensor, and mobile terminal
US20040073827A1 (en) Method and apparatus for real time monitoring of user presence to prolong a portable computer battery operation time
KR100498340B1 (en) Data reception method for mobile communication device
US20100185884A1 (en) Standby power saving system and computer power-on and power-off method thereof
CN114320029B (en) Low-power-consumption anti-interference intelligent door lock and awakening method
CN107977606A (en) The embedded fingerprint identification device and method of a kind of super-low standby power consumption
TW200419331A (en) Power shutdown method of wireless peripheral device
CN103914123A (en) Computer device and power management method thereof
US6477602B1 (en) Method and circuit for detecting the presence of a connector in a socket
CN110502882A (en) A kind of control method and electronic equipment
CN102592095A (en) Password boot device
CN114495326B (en) Control circuit and control method of fingerprint module and intelligent lock
CN110764398B (en) Intelligent watch and mode switching method thereof
US20010053707A1 (en) Portable phone
CN207352637U (en) A kind of embedded fingerprint identification device of super-low standby power consumption
US20020099965A1 (en) Energy-saving control interface and method for power-on identification
JP3063838U (en) PC card with automatic power saving sleep function
CN115220557A (en) Power-on system, power-on method, readable storage medium, and electronic device
CN101261534B (en) Power Saving Method for Two-way Wireless Peripheral Devices
JPH09319475A (en) Power source control system-integrated computer
CN113687711B (en) Terminal wake-up circuit and wake-up method
CN116226701A (en) Identification module, identification method and intelligent door lock
CN113724421B (en) Fingerprint module, fingerprint identification system, control method and intelligent lock
CN114924639A (en) Electronic device and method for waking up micro control unit
CN216083752U (en) Fingerprint identification module, smart machine and vehicle

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant