Intelligent lock, intelligent lock anti-interference system and method
By adding a power control module during the unlocking process of the motor through the MCU module of the smart lock, the motor current is controlled to be turned on and off, and the problem of the smart lock being opened by Tesla and walkie-talkie is solved, and the system's anti-interference ability and user safety are improved. .
Patent Information
- Application Number
- CN202010461208.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-05-27
- Publication Date
- 2024-12-10
- Estimated Expiration
- 2040-05-27
AI Technical Summary
The smart lock has a safety hazard that is activated by interference from Tesla coil signals and high-power intercoms, and cannot effectively prevent illegal unlocking.
The power control module is added during the unlocking process of the MCU module of the smart lock, and the current of the motor control module is controlled through the power control module to ensure that the power supply is provided and the unlocking command is executed only under the verification and passed unlocking command, thereby improving the system's Anti-interference ability.
Effectively prevent automatic lock unlocking caused by signal interference between Tesla and walkie-talkie, improve user security during use, and ensure the safety and stability of smart locks.
Smart Images

Figure CN111653007B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of smart locks, and in particular to an anti-interference method for smart locks. Background Art
[0002] Many household locks currently available on the market are smart locks. Smart door locks are different from traditional mechanical locks. They are a composite lock with security, convenience and advanced technology. However, the electronic control system of smart locks has the technical risk of being opened by interference from Tesla coil signals, high-power intercoms, etc., which poses a safety hazard. Therefore, it is necessary to design a smart lock with wide versatility, high safety factor, and protection against interference signals such as Tesla. Summary of the invention
[0003] 1. Technical problem to be solved by the invention
[0004] In view of the technical problem in the prior art that smart locks may be opened by interference from Tesla, intercom signals, etc., which poses a safety hazard, the present invention provides an anti-interference method for smart locks. By adding a power control unit of the motor, the anti-interference ability of the smart lock can be improved, and the smart lock will not be automatically unlocked due to interference, thereby avoiding the safety hazard of the smart lock.
[0005] 2. Technical solution
[0006] To solve the above problems, the technical solution provided by the present invention is:
[0007] A smart lock anti-interference method comprises the following steps:
[0008] Step 1: After receiving the unlock command, the MCU module of the smart lock verifies the correctness of the unlock command;
[0009] Step 2: If the verification is successful, a power supply instruction is issued to the power control module; if the verification is different, the process ends.
[0010] Step 3: The power control module receives the power supply instruction and supplies power to the motor control module;
[0011] Step 4: The MCU module sends an unlocking command to the motor control module;
[0012] Step 5: After receiving the unlocking command, the motor control module controls the motor to drive the lock body to unlock.
[0013] Normal unlocking of smart locks requires three steps: inputting a password, authenticating a password, and executing unlocking. After many tests, Tesla or intercoms cracked smart locks without entering passwords and authenticating passwords, which would interfere with the unlocking process. A power control module is added to the middle process of the smart lock MCU (Microcontroller Unit) module controlling the motor control module to unlock. To increase the anti-interference of the unlocking process. The power control module controls the on-off of the motor control module circuit. Before the MCU module sends an unlocking command to the motor control module, it first sends a power supply command to the power control module. After receiving the power supply command, the power control module turns on the power switch, the motor control module circuit is connected, and the MCU module sends an unlocking command to the motor control module. After receiving the unlocking command, the motor control module drives the lock body to unlock. By adding a power control module to the motor control module, the power of the motor control module is first turned on when executing the unlocking command, and then the motor control module executes the unlocking command, which can improve the anti-interference ability of the system, ensure that it is not automatically unlocked due to interference from Tesla and intercom signals, and improve the safety of users during use.
[0014] Optionally, the MCU module in step one is provided with a correct unlocking instruction. After receiving the unlocking instruction, the MCU module determines whether it is the same as the correct unlocking instruction. If it is determined that the unlocking instruction received by the MCU module is the same as the correct unlocking instruction, the verification succeeds; if it is determined that the unlocking instruction received by the MCU module is different from the correct unlocking instruction, the verification fails and the execution ends.
[0015] Optionally, it is characterized in that the anti-interference system includes an MCU module, a motor control module and a power control module, the MCU module is electrically connected to the motor control module and the power control module respectively, and the power control module and the motor control module are connected through switch control.
[0016] Optionally, the smart lock includes a key scanning module, a fingerprint module and a face recognition module which are electrically connected to the MCU module respectively.
[0017] Optionally, the power control module includes a power supply VIN, a first resistor R1, a second resistor R2, a third resistor R3, a fourth resistor R4, a first capacitor C1, a second capacitor C2, a first switch Q1, a second switch Q2, an ESD tube E1, a motor power supply VCC_MOTOR and a motor power supply control terminal POW_MOTOR, the power supply VIN is respectively electrically connected to one end of the first capacitor C1, one end of the first resistor R1 and the third end of the first switch Q1, the second end of the first switch Q1 is respectively connected to one end of the second capacitor C2 and the motor power supply VCC_MOTOR OR is electrically connected, a first end of the first switch Q1 is electrically connected to the other end of the first resistor R1 and one end of the second resistor R2 respectively, a first end of the second switch Q2 is electrically connected to the other end of the second resistor R2, a third end of the second switch Q2 is electrically connected to one end of the third resistor R3, one end of the ESD tube E1 and one end of the fourth resistor R4 respectively, the other end of the fourth resistor R4 is electrically connected to the motor power control end POW_MOTOR, the other end of the first capacitor C1, the second end of the second switch Q2, the other end of the third resistor R3 and the other end of the ESD tube E1 are all grounded.
[0018] Optionally, the key scanning module includes a touch screen and a key recognition module which are electrically connected in sequence.
[0019] Optionally, the fingerprint module includes a fingerprint collection module and a fingerprint recognition module, and the fingerprint collection module is electrically connected to the fingerprint recognition module.
[0020] Optionally, the face recognition module includes a camera and a face contour recognition module electrically connected in sequence.
[0021] Optionally, the MCU module is a single chip microcomputer.
[0022] Optionally, the motor control module is a DC motor.
[0023] 3. Beneficial effects
[0024] Compared with the prior art, the technical solution provided by the present invention has the following beneficial effects:
[0025] (1) In the embodiment of the present invention, a power control module is added during the unlocking process of the motor control module controlled by the MCU module to control the on and off of the current of the motor control module, thereby improving the anti-interference ability of the system, ensuring that the automatic unlocking is not caused by interference from Tesla or walkie-talkies, and improving the safety of users during use.
[0026] (2) In the embodiment of the present invention, a PMOS tube and an NPN transistor are used in combination in the power control module to control the on and off of the current of the motor control module, which is simple, effective and easy to implement. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1A schematic diagram of the logical structure of an intelligent lock anti-interference method proposed in an embodiment of the present invention;
[0028] Figure 2 A flowchart of unlocking a smart lock anti-interference method proposed in an embodiment of the present invention;
[0029] Figure 3 A circuit diagram of a power control module for an intelligent lock anti-interference method proposed in an embodiment of the present invention; DETAILED DESCRIPTION
[0030] To further understand the content of the present invention, Figure 1-3 The present invention is described in detail with reference to the accompanying drawings and embodiments.
[0031] Example 1
[0032] Combined with Figure 1-3 , a smart lock anti-interference method of this embodiment includes the following steps:
[0033] Step 1: After receiving the unlock command, the MCU module of the smart lock verifies the correctness of the unlock command;
[0034] Step 2: If the verification is successful, a power supply instruction is issued to the power control module; if the verification is different, the process ends.
[0035] Step 3: The power control module receives the power supply instruction and supplies power to the motor control module;
[0036] Step 4: The MCU module sends an unlocking command to the motor control module;
[0037] Step 5: After receiving the unlocking command, the motor control module controls the motor to drive the lock body to unlock.
[0038] Normal unlocking of smart locks requires three steps: inputting a password, authenticating a password, and executing unlocking. After many tests, Tesla or intercoms cracked smart locks without entering passwords and authenticating passwords, which would interfere with the unlocking process. A power control module is added to the middle process of the smart lock MCU (Microcontroller Unit) module controlling the motor control module to unlock. To increase the anti-interference of the unlocking process. The power control module controls the on-off of the motor control module circuit. Before the MCU module sends an unlocking command to the motor control module, it first sends a power supply command to the power control module. After receiving the power supply command, the power control module turns on the power switch, the motor control module circuit is connected, and the MCU module sends an unlocking command to the motor control module. After receiving the unlocking command, the motor control module drives the lock body to unlock. By adding a power control module to the motor control module, the power of the motor control module is first turned on when executing the unlocking command, and then the motor control module executes the unlocking command, which can improve the anti-interference ability of the system, ensure that it is not automatically unlocked due to interference from Tesla and intercom signals, and improve the safety of users during use.
[0039] Example 2
[0040] Combined with Figure 1-3 , a smart lock anti-interference method of this embodiment, compared with the technical solution of embodiment 1, the MCU module of step 1 is provided with a correct unlocking instruction. After receiving the unlocking instruction, the MCU module determines whether it is the same as the correct unlocking instruction. If it is determined that the unlocking instruction received by the MCU module is the same as the correct unlocking instruction, the verification is passed. If it is determined that the unlocking instruction received by the MCU module is different from the correct unlocking instruction, the verification fails and the execution ends. The MCU module will send a power supply instruction to the power control module to power the motor control module only after the instruction is verified. Then, the motor control module is controlled to unlock, so that the smart lock is safe to use.
[0041] Example 3
[0042] Combined with Figure 1-3 , a smart lock anti-interference system in this embodiment, compared with the technical solutions in embodiment 1 or 2, the anti-interference system includes an MCU module, a motor control module and a power control module, the MCU module is electrically connected to the motor control module and the power control module respectively, and the power control module and the motor control module are connected through switch control.
[0043] When unlocking, the user enters the password, fingerprint verification or face recognition through the key scanning module, fingerprint module or face recognition module. If the MCU module receives the unlocking command from the key scanning module, fingerprint module or face recognition module, the MCU module will verify the correctness of the unlocking command, and after successfully verifying the unlocking command, it will send a power supply command to the power control module. If the MCU module fails to verify the unlocking command, it will not send a power supply command to the power control module. After receiving the power supply command, the power control module turns on the power switch, and the motor control module circuit is connected. The MCU module then sends an unlocking command to the motor control module, and the motor control module drives the lock body to unlock after receiving the unlocking command. Before unlocking, controlling the on and off of the current of the motor control module through the power control module can effectively prevent interference from Tesla and intercom signals and ensure the safety of the smart lock.
[0044] Example 4
[0045] Combined with Figure 1-3 , a smart lock of this embodiment, compared with any one of the technical solutions of embodiments 1-3, the smart lock includes a key scanning module, a fingerprint module and a face recognition module electrically connected to the MCU module respectively. When unlocking, the user enters a password, fingerprint verification or face recognition through the key scanning module, fingerprint module or face recognition module. If the MCU module receives an unlocking instruction from the key scanning module, fingerprint module or face recognition module, the MCU module will verify the correctness of the unlocking instruction, and after verifying that the unlocking instruction is successful, it will send a power supply instruction to the power control module. If the MCU module fails to verify the unlocking instruction, it will not send a power supply instruction to the power control module.
[0046] Example 5
[0047] Combined with Figure 1-3, a smart lock of this embodiment, compared with any one of the technical solutions of embodiments 1-4, the power control module includes a power supply VIN, a first resistor R1, a second resistor R2, a third resistor R3, a fourth resistor R4, a first capacitor C1, a second capacitor C2, a first switch Q1, a second switch Q2, an ESD tube E1, a motor power supply VCC_MOTOR and a motor power supply control terminal POW_MOTOR, the power supply VIN is respectively electrically connected to one end of the first capacitor C1, one end of the first resistor R1 and the third end of the first switch Q1, the second end of the first switch Q1 is respectively electrically connected to one end of the second capacitor C2 The first end of the first switch Q1 is electrically connected to the other end of the first resistor R1 and one end of the second resistor R2, the first end of the second switch Q2 is electrically connected to the other end of the second resistor R2, the third end of the second switch Q2 is electrically connected to one end of the third resistor R3, one end of the ESD tube E1 and one end of the fourth resistor R4, the other end of the fourth resistor R4 is electrically connected to the motor power supply control terminal POW_MOTOR, the other end of the first capacitor C1, the second end of the second switch Q2, the other end of the third resistor R3 and the other end of the ESD tube E1 are all grounded.
[0048] The first capacitor C1 and the second capacitor C2 are energy storage capacitors, the first switch Q1 is a PMOS tube, and the second switch Q2 is an NPN transistor. The first end of the first switch Q1 is the G pole of the PMOS tube, and the third end of the first switch Q1 is the S pole of the PMOS tube. The first end of the second switch Q2 is the collector, the second end of the second switch Q2 is the emitter, and the third end of the second switch Q2 is the base. The turn-on voltage of the first switch Q1 is Vth, and Vth is a negative value. When the difference between the G pole voltage and the S pole voltage of the PMOS tube is Vg-Vs≤Vth, the first switch Q1 will be turned on. Under normal circumstances, the motor power control terminal POW_MOTOR maintains a low level. At this time, the transistor works in the cut-off area, the collector current of the transistor is 0, and the emitter and the collector are like a disconnected switch, and the second switch Q2 is not turned on. At this time, the G pole voltage of the PMOS tube is equal to the power supply VIN, and the S pole voltage of the PMOS tube is the power supply VIN voltage, Vg-Vs=0>Vth, and the first switch Q1 is not turned on. When there is an unlock command, the MCU module controls the motor power control terminal POW_MOTOR to become a high-level output, the transistor works in the saturation region, and the second switch Q2 is turned on. At this time, the G-pole voltage of the PMOS tube is the voltage divided by the power supply VIN voltage of the first resistor R1 and the second resistor R2, and the S-pole voltage of the PMOS tube is the power supply VIN voltage, Vg-Vs≤Vth, and the Vth turn-on voltage is satisfied, and the first switch Q1 is turned on. The power supply VIN can normally provide electrical energy to the motor power supply VCC_MOTOR. Then the MCU module will send an unlock command to the motor control module, and the motor control module will drive the lock body to unlock after receiving the unlock command.
[0049] Example 6
[0050] Combined with Figure 1-3 , a smart lock of this embodiment, compared with any one of the technical solutions of embodiments 1-5, the key scanning module includes a touch screen and a key recognition module electrically connected in sequence. The key recognition module is an electrically connected RC control circuit and a password recognition module, and the key scanning module uses the capacitance voltage change of the RC control circuit to sense the touch action and perform password recognition. The RC (Resistor Capacitance circuit) control circuit is connected to the touch screen. When a hand approaches the touch screen, it will form a capacitor with the electrode sheet under the touch screen, and sense the touch action by detecting the change in capacitance. The password recognition module compares the password input through the touch screen and the RC control circuit with the correct password stored in the database. If the password comparison is successful, the password recognition module sends an unlocking instruction to the MCU module, and the MCU module receives the unlocking instruction. After the MCU module verifies that the unlocking instruction is successful, it will send a power supply instruction to the power control module. If the MCU module fails to verify the unlocking instruction, it will not send a power supply instruction to the power control module. After receiving the power supply instruction, the power control module turns on the power switch, and the motor control module circuit is connected. The MCU module then sends an unlocking instruction to the motor control module, and the motor control module drives the lock body to unlock after receiving the unlocking instruction. Unlocking by key password input is simple, safe and reliable.
[0051] Example 7
[0052] Combined with Figure 1-3, a smart lock of this embodiment, compared with any one of the technical solutions of embodiments 1-6, the fingerprint module includes a fingerprint collection module and a fingerprint recognition module, and the fingerprint collection module is electrically connected to the fingerprint recognition module. The fingerprint collection module collects fingerprints using the principle of refraction and reflection of light. The light is emitted to the fingerprint through a prism, and the angle of refraction on the uneven lines of the fingerprint and the light reflected back are different in brightness, so that the optical device collects image information of different brightness levels to complete the collection of fingerprints. The fingerprint recognition module analyzes the fingerprint collected by the fingerprint collection module, extracts features from it, separates specific feature points to replace different fingerprint patterns, and then compares the collected fingerprint features with the fingerprint features stored in the database of the fingerprint recognition module one by one to determine whether they belong to the same fingerprint. If the fingerprint comparison is successful, the fingerprint recognition module sends an unlocking instruction to the MCU module, and the MCU module receives the unlocking instruction. After the MCU module verifies that the unlocking instruction is successful, it will send a power supply instruction to the power control module. If the MCU module fails to verify the unlocking instruction, it will not send a power supply instruction to the power control module. After receiving the power supply instruction, the power control module turns on the power switch, and the motor control module circuit is connected. The MCU module then sends an unlock command to the motor control module, which drives the lock body to unlock after receiving the unlock command. Unlocking by fingerprint input is simple, safe and reliable.
[0053] Example 8
[0054] Combined with Figure 1-3 , a smart lock of this embodiment, compared with any one of the technical solutions of embodiments 1-7, the face recognition module includes a camera and a face contour recognition module electrically connected in sequence. The camera collects images of the face, and the face recognition module uses the face contour recognition algorithm built into the face contour recognition module to recognize the image. First, the face contour recognition algorithm grays the face image collected by the camera; second, by analyzing the brightness of the image, it is converted into a simple contour expression form, and a certain number of measurement values are generated through the contour expression form; finally, these measurement values are compared with the measurement values stored in the database. If the measurement values are similar, the face recognition module sends an unlocking instruction to the MCU module, and the MCU module receives the unlocking instruction. After the MCU module verifies that the unlocking instruction is successful, it will send a power supply instruction to the power control module. If the MCU module verifies that the unlocking instruction fails, it will not send a power supply instruction to the power control module. After receiving the power supply instruction, the power control module turns on the power switch, and the motor control module circuit is connected. The MCU module then sends an unlocking instruction to the motor control module, and the motor control module drives the lock body to unlock after receiving the unlocking instruction. Using facial recognition to unlock the door is simple, safe and reliable.
[0055] Example 9
[0056] Combined with Figure 1-3, a smart lock of this embodiment, compared with any one of the technical solutions of embodiments 1-8, the MCU module is a single chip microcomputer. The single chip microcomputer includes a central processing unit, a read-only memory and a random access memory. The read-only memory of the single chip microcomputer has a pre-set correct unlocking instruction code. Before unlocking, the key scanning module, the fingerprint module or the face recognition module sends an unlocking instruction to the single chip microcomputer. The random access memory of the single chip microcomputer receives the unlocking instruction sent, and the random access memory transmits the received unlocking instruction to the central processing unit. The central processing unit receives the unlocking instruction, and then reads the pre-set correct unlocking instruction code, and compares it with the temporarily received unlocking instruction. If the central processing unit verifies that the received unlocking instruction is correct, the central processing unit will send a power supply instruction to the power control module. After receiving the power supply instruction, the power control module turns on the power switch, and the motor control module circuit is connected. The central processing unit then sends an unlocking instruction to the motor control module, and the motor control module drives the lock body to unlock after receiving the unlocking instruction.
[0057] Example 10
[0058] Combined with Figure 1-3 In the smart lock of this embodiment, compared with any one of the technical solutions of embodiments 1-9, the motor control module is a DC motor. The DC motor is an open-loop control motor that converts a level signal into an angular displacement or a linear displacement. The main control module drives the DC motor to rotate a fixed angle in a set direction, and the DC motor drives the unlocking component of the smart lock to unlock the lock, thereby achieving the purpose of accurate unlocking.
[0059] The present invention and its embodiments are described schematically above, and the description is not restrictive. The drawings show only one embodiment of the present invention, and the actual structure is not limited thereto. Therefore, if a person skilled in the art is inspired by it and designs a structural method and an embodiment similar to the technical solution without creativity without departing from the purpose of the invention, they shall all fall within the protection scope of the present invention.
Claims
1. A smart lock anti-interference method, characterized in that: The following steps are involved: Step 1: After receiving the unlock command, the MCU module of the smart lock verifies the correctness of the unlock command; Step 2: If the verification is successful, a power supply instruction is issued to the power control module; if the verification is different, the process ends; Step 3: The power control module receives the power supply instruction and supplies power to the motor control module; Step 4: The MCU module sends an unlocking command to the motor control module; Step 5: After receiving the unlocking command, the motor control module controls the motor to drive the lock body to unlock; The smart lock anti-interference method includes a smart lock; The smart lock includes a key scanning module, a fingerprint module, a face recognition module and a power control module which are electrically connected to the MCU module respectively; The power control module includes a power supply VIN, a first resistor R1, a second resistor R2, a third resistor R3, a fourth resistor R4, a first capacitor C1, a second capacitor C2, a first switch Q1, a second switch Q2, an ESD tube E1, a motor power supply VCC_MOTOR and a motor power supply control terminal POW_MOTOR. The power supply VIN is electrically connected to one end of the first capacitor C1, one end of the first resistor R1 and the third end of the first switch Q1 respectively. The second end of the first switch Q1 is electrically connected to one end of the second capacitor C2 and the motor power supply VCC_MOTOR respectively. The first end of the first switch Q1 is electrically connected to the other end of the first resistor R1 and one end of the second resistor R2, respectively; the first end of the second switch Q2 is electrically connected to the other end of the second resistor R2; the third end of the second switch Q2 is electrically connected to one end of the third resistor R3, one end of the ESD tube E1 and one end of the fourth resistor R4, respectively; the other end of the fourth resistor R4 is electrically connected to the motor power control end POW_MOTOR; the other end of the first capacitor C1, the second end of the second switch Q2, the other end of the third resistor R3 and the other end of the ESD tube E1 are all grounded.
2. According to claim 1, a smart lock anti-interference method is characterized in that: The MCU module in step one is provided with a correct unlocking instruction. After receiving the unlocking instruction, the MCU module determines whether it is the same as the correct unlocking instruction. If it is determined that the unlocking instruction received by the MCU module is the same as the correct unlocking instruction, the verification succeeds; if it is determined that the unlocking instruction received by the MCU module is different from the correct unlocking instruction, the verification fails and the execution ends.
3. The anti-interference method of a smart lock according to claim 1, characterized in that: The key scanning module includes a touch screen and a key recognition module which are electrically connected in sequence.
4. The anti-interference method of a smart lock according to claim 1, characterized in that: The fingerprint module includes a fingerprint collection module and a fingerprint identification module, and the fingerprint collection module is electrically connected to the fingerprint identification module.
5. The anti-interference method for smart locks according to claim 1, characterized in that: The face recognition module includes a camera and a face contour recognition module which are electrically connected in sequence.
6. The anti-interference method for smart locks according to claim 1, characterized in that: The MCU module is a single chip microcomputer.
7. The anti-interference method for smart locks according to claim 1, characterized in that: The motor control module is a DC motor.
8. A smart lock anti-interference system, characterized in that: According to the anti-interference method for a smart lock according to any one of claims 3-7, the anti-interference system includes an MCU module, a motor control module and a power control module, the MCU module is electrically connected to the motor control module and the power control module, respectively, and the power control module and the motor control module are connected through a switch control.
