Door lock control method and door lock
By keeping the sensing module constantly powered in the smart lock, while the control unit and biometric module are powered off when the lock is engaged and are activated for biometric identification when a human body approaches, the problem of battery energy consumption is solved, resulting in improved battery life and enhanced user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHENZHEN SUNWINON ELECTRONICS CO LTD
- Filing Date
- 2026-01-27
- Publication Date
- 2026-06-02
AI Technical Summary
The existing smart door lock modules are in a constant-power state, causing continuous battery energy consumption, which affects battery life and ease of use.
The sensing module is in a constant power state, while the control unit and biometric module are in a power-off state when the door lock is locked. They are woken up at preset time intervals to obtain human body recognition results, and are only powered on to perform biometric recognition when a human body approaches, thus realizing the energy-saving design of the module.
Significantly improves battery life, reduces battery wear, enhances user experience, and strengthens safety and system stability.
Smart Images

Figure CN122135461A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of smart lock technology, specifically to a door lock control method and a door lock. Background Technology
[0002] Smart door locks have become core devices for home security and convenient living. Their functions are constantly being upgraded, and biometric and visual functions such as peephole monitoring, facial recognition, and palm vein recognition have become the mainstream choice in the market, greatly improving the user experience and door lock security. However, the technical solutions of existing smart door locks have key defects. Most products adopt a fully modular power-on design logic, that is, core components such as radar sensors, biometric modules, and peepholes are always powered on and ready to go. This leads to continuous consumption of battery energy, which severely restricts the battery life of smart door locks, seriously affects the convenience of use, and increases the long-term use cost for users. Summary of the Invention
[0003] This invention provides a door lock control method and a door lock to solve the problem of continuous battery energy consumption caused by the door lock module being in a constant power state.
[0004] In a first aspect, the present invention provides a door lock control method applied to a control unit in a door lock. The door lock further includes a sensing module and a biometric module. The sensing module is in a constant-power state, and the control unit and the biometric module are in a power-off state when the door lock is locked. The method includes: powering on and waking up in response to a preset time interval, and acquiring the human body recognition result fed back by the sensing module after waking up; determining whether a human body is approaching the door lock based on the human body recognition result; controlling the biometric module to power on when it is determined that a human body is approaching the door lock to acquire user biometric information; verifying the user biometric information, and controlling the door lock to open after successful verification.
[0005] The door lock control method provided by this invention features a sensor module that is always powered on, while the control unit and biometric module are powered off when the door lock is locked, minimizing power consumption. The control unit responds by powering on and waking up at a preset time interval, and then acquires the human body recognition result fed back by the sensor module. Based on the human body recognition result, it determines whether a human body is approaching the door lock. When a human body is confirmed to be approaching the door lock, it controls the biometric module to power on to acquire the user's biometric information, verifies the user's biometric information, and controls the door lock to open upon successful verification. This achieves a power-on mode for the biometric module and other modules that is only triggered when a human body is approaching the door lock, effectively improving battery life and reducing battery wear, thereby enhancing user experience and reducing costs.
[0006] In one optional implementation, the sensing module is a time-of-flight ultrasonic distance sensor, used to emit ultrasonic waves based on a preset frequency, receive echoes, and filter echoes that meet the characteristic information corresponding to a human body as valid echoes. The human body recognition result includes the reception time of the valid echo and the ultrasonic wave emission time corresponding to the valid echo. Determining whether a human body is approaching the door lock based on the human body recognition result includes: starting a timer for a first preset duration; within the first preset duration, determining whether the ultrasonic wave emission times in the human body recognition result are a continuous time series, wherein a continuous time series means that within the first preset duration, the ultrasonic wave emission times appear continuously at intervals corresponding to the preset frequency in the time series; if the ultrasonic wave emission times are a continuous time series, obtaining the time difference between each emitted ultrasonic wave and the valid echo to form a time difference set; determining whether the time difference change sequence in the time difference set meets the time difference change requirement corresponding to human body approach; if the time difference change requirement corresponding to human body approach is met, determining that a human body is approaching the door lock.
[0007] This invention employs a time-of-flight ultrasonic distance sensor to perform human proximity detection logic. It can filter valid echoes to eliminate interference from environmental clutter, accurately identify human proximity behavior, and perform human proximity verification through continuous time series. This can eliminate invalid triggers caused by single false detections, ensuring the stability of detection results. Furthermore, it can accurately distinguish human proximity from other behaviors by judging through the time difference change sequence.
[0008] In an optional implementation, the method further includes: if the ultrasonic wave emission times in the human body recognition result are not a continuous time series within a first time period, entering a sleep power-off mode.
[0009] When the present invention determines that the user is not near the door lock, it can quickly cut off the unnecessary power supply to the control unit and other modules, and directly enter the sleep power-off mode to avoid energy waste and extend the door lock's battery life.
[0010] In an optional implementation, the method further includes: if the time difference change sequence in the time difference set does not meet the time difference change requirement corresponding to the human body approaching, or if the user's biometric information verification fails, controlling the biometric module to power on, capturing a video containing a human body in front of the door and storing it.
[0011] In scenarios where it is determined that someone is continuously in front of the door but has not approached, this invention significantly improves the security protection capability, scenario adaptability, and user experience of the door lock through the design of evidence preservation and security response.
[0012] In one optional implementation, before obtaining the human body recognition result output by the sensing module, the method further includes: sending a self-test function command to all modules integrated in the door lock to enable each module to perform a function self-test operation; and obtaining the human body recognition result output by the sensing module after receiving the self-test pass information from each module and the control unit passing the self-test.
[0013] This invention avoids accidental unlocking caused by module failure through pre-module self-testing, ensuring that the door lock only operates when the entire system is normal, guaranteeing system stability, and reducing sudden failures during operation.
[0014] In an optional implementation, the method further includes: powering on and waking up in response to receiving battery installation completion information, and obtaining the current capacity and voltage of the battery after waking up; determining whether the current capacity and voltage of the battery are within the normal range; and if the battery capacity and voltage are within the normal range, sending a self-test function command to all modules integrated into the door lock.
[0015] This invention employs a pre-verification logic that checks the battery's status after installation and only initiates the module's self-test if it passes the test. This establishes battery reliability as the baseline for power safety throughout the entire operation of the smart lock, thus avoiding safety risks caused by battery malfunctions.
[0016] In an optional implementation, the method further includes: after sending a self-test function command to all modules integrated with the door lock, starting a timer; if a module fails to provide feedback on its self-test pass within a second time period, issuing a module malfunction notification to the user.
[0017] Secondly, the present invention provides a door lock, the door lock including a control unit, a sensing module and a biometric module, the sensing module being in a constant power state, the control unit and the biometric module being in a power-off state when the door lock is in a locked state, the control unit including a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, the processor executing the computer instructions to perform the door lock control method of the first aspect or any corresponding embodiment described above.
[0018] In one optional implementation, the door lock further includes an output and display module and a power management module, wherein the output and display module is used to send prompt information to the user, and the power management module is used to convert the battery voltage into a voltage suitable for the operation of each module.
[0019] In one optional implementation, the sensing module is a time-of-flight ultrasonic distance sensor, used to emit ultrasonic waves, receive echoes, and filter echoes that meet the characteristic information corresponding to the human body as valid echoes. Attached Figure Description
[0020] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0021] Figure 1 This is a schematic flowchart of a first type of door lock control method according to an embodiment of the present invention;
[0022] Figure 2 This is a flowchart illustrating a door lock control method according to an embodiment of the present invention; Figure 3 This is a schematic diagram of a second process for a door lock control method according to an embodiment of the present invention; Figure 4 This is a schematic diagram of an ultrasonic sensor according to an embodiment of the present invention; Figure 5 This is a structural block diagram of a door lock according to an embodiment of the present invention; Figure 6 This is a schematic diagram of the hardware structure of the control unit in an embodiment of the present invention. Detailed Implementation
[0023] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0024] The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this invention, "a plurality of" means two or more, unless otherwise explicitly specified.
[0025] According to an embodiment of the present invention, a door lock control method embodiment is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0026] This embodiment provides a door lock control method applied to a control unit in a door lock. The door lock also includes a sensing module and a biometric module. The sensing module is in a constant-power state, while the control unit and biometric module are in a power-off state when the door lock is locked. Specifically, the control unit uses the NSS30LOCK1-STB main control chip as the main control core of the door lock. This unit is responsible for coordinating and controlling the collaborative work of various modules, and integrates basic supporting circuits such as system clock circuit, reset circuit, and debugging interface to ensure the stable operation of the door lock system. The biometric module can integrate multiple recognition functions, including but not limited to face recognition, 2K high-definition peephole function, and palm vein recognition, which can meet the identity verification needs in different scenarios. When the sensing module is in constant-power mode and the door lock is locked, both the control unit and the biometric module remain in a power-off state to minimize power consumption. The door lock also includes an output and display module and a power management module. The output and display module is equipped with a 1.8-inch TFT screen. The LCD display screen is used to intuitively display the door lock's open / close status, battery level, and other information. It has a built-in motor drive circuit that controls the lock's opening and closing actions, and it also has a voice broadcast circuit that issues prompts or alarm voices in special situations such as abnormal unlocking or low battery. In addition, it has status indicator lights that use different colors of light to distinguish the door lock's working status.
[0027] Figure 1 This is a flowchart of a door lock control method according to an embodiment of the present invention, such as... Figure 2 As shown, the process includes the following steps: Step S101: Power-on wake-up is performed in response to a preset time interval, and the human body recognition result fed back by the sensing module is obtained after wake-up.
[0028] like Figure 2As shown, the following door lock control method is executed when the door lock is locked. If the door lock is unlocked, the biometric module remains powered on. In this embodiment of the invention, the wake-up time interval of the main control unit can be preset to automatically trigger power-on wake-up. The specific time interval is not limited and can be set based on power consumption and security requirements. Taking 600ms as an example, the control unit responds to the time interval to power-on wake-up, and after wake-up, it can perform active human body detection within a specified range through the sensing module within a certain period of time, and can obtain the human body recognition results fed back by the sensing module within a certain period of time. Among them, the sensing module integrates the transmission... The type of sensor is not limited. For example, an infrared sensor determines the sensing distance by transmitting and receiving angles, or a radar sensor detects targets by transmitting electromagnetic waves and receiving their echoes. Because the sensing module is based on transmitting waves at a certain frequency, the human body recognition result fed back within a certain time period must include the sensing distance corresponding to each transmission wave time series. If the sensing module does not detect a human body within the specified range, it does not need to feed back the human body recognition result to the control unit. If the control unit does not receive the human body recognition result within a certain time period, it means that no human body is approaching, and it can automatically enter a sleep power-off state to reduce energy consumption. This is just an example.
[0029] In one alternative implementation, the sensing module is in a constant power state, which can detect whether a human body is approaching in real time (for example, the distance sensed by the radar sensor is getting smaller and smaller), and outputs a wake-up signal (such as an interrupt signal or a level signal) to the control unit when a human body is detected approaching the door lock. After the control unit responds to the wake-up signal, it can wake up from the power-off mode, and then the control unit wakes up the biometric module for identity verification. This is just an example.
[0030] Step S202: Determine whether a human body is approaching the door lock based on the human body recognition result.
[0031] The control unit in this embodiment of the invention can make logical judgments based on human body recognition results, such as judging whether the corresponding sensing distance is getting closer based on the time sequence of each emitted wave, which is only an example.
[0032] Step S203: When it is determined that a human body is approaching the door lock, the biometric module is powered on to obtain the user's biometric information.
[0033] In this embodiment of the invention, if it is determined that the corresponding sensing distance is getting closer and closer, indicating that a human body is approaching the door lock, the control unit can send a power-on command to the biometric module to activate the biometric module and put it into working state, such as enabling the peephole recording function, fingerprint recognition, etc., to collect biometric information, such as the user pressing the fingerprint sensor or pointing it at the face recognition camera, etc., which are just examples.
[0034] Step S204: Verify the user's biometric information and control the door lock to open after successful verification.
[0035] The control unit in this embodiment of the invention can compare and verify the collected biometric information with the user biometric information database pre-stored in the door lock. Upon successful verification, it can send a command to the output and display module, driving the motor to push the clutch pin, and in conjunction with the mechanical structure, complete the door opening action. If the identity verification fails, the output and display module will issue a reminder through voice broadcast and indicator light flashing. Simultaneously, the control unit and biometric module will fall back to a low-power, power-off state, awaiting the next wake-up trigger. Through this solution, the battery life of the smart lock is significantly improved. When equipped with an 8000mAh lithium battery, the battery life is extended from the traditional 5 days of continuous power supply to an optimized 7 months, reducing the frequency of battery removal and charging, decreasing the number of charge-discharge cycles, and slowing down battery wear. Figure 2 As shown, when the unlocking operation is completed and no one is present within the specified range, the control unit and biometric module can automatically enter power-off mode.
[0036] The door lock control method provided by this invention features a sensor module that is always powered on, while the control unit and biometric module are powered off when the door lock is locked, minimizing power consumption. The control unit responds by powering on and waking up at a preset time interval, and then acquires the human body recognition result fed back by the sensor module. Based on the human body recognition result, it determines whether a human body is approaching the door lock. When a human body is confirmed to be approaching the door lock, it controls the biometric module to power on to acquire the user's biometric information, verifies the user's biometric information, and controls the door lock to open upon successful verification. This achieves a power-on mode for the biometric module and other modules that is only triggered when a human body is approaching the door lock, effectively improving battery life and reducing battery wear, thereby enhancing user experience and reducing costs.
[0037] This embodiment provides a door lock control method, which can be used in the control unit of a door lock. Figure 3 This is a flowchart of a door lock control method according to an embodiment of the present invention, such as... Figure 3 As shown, the process includes the following steps: Step S301: In response to a preset time interval, power-on wake-up is performed, and the human body recognition result fed back by the sensing module is obtained after wake-up. For details, please refer to [link to relevant documentation]. Figure 1 Step S101 of the illustrated embodiment will not be described again here.
[0038] Specifically, the sensing module is a time-of-flight ultrasonic distance sensor, used to emit ultrasonic waves based on a preset frequency, receive echoes, and filter echoes that meet the characteristic information corresponding to the human body as valid echoes. The human body recognition result includes the reception time of the valid echo and the ultrasonic wave emission time corresponding to the valid echo. The above step S301 includes: Step S3011: Start timing for the first preset duration. Within the first preset duration, determine whether the ultrasonic wave emission time in the human body recognition result is a continuous time series.
[0039] The continuous time series means that within the first preset time period, the ultrasonic emission moments appear continuously at intervals corresponding to preset frequencies in the time series.
[0040] Step S3012: If the ultrasonic wave emission time is a continuous time series, obtain the time difference between each emitted ultrasonic wave and the effective echo, and form a time difference set.
[0041] Step S3013: Determine whether the time difference change sequence in the time difference set meets the time difference change requirement for the human body to approach the corresponding time difference.
[0042] Step S3014: If the time difference change requirement corresponding to the human body approaching is met, determine that the human body is approaching the door lock.
[0043] The sensing module designed in this embodiment of the invention is equipped with the TDK ICU-20201 ultrasonic detector chip, which is a time-of-flight ultrasonic distance sensor. Figure 4 The diagram shows the principle of an ultrasonic sensor used in smart door locks. It consumes minimal energy and can simultaneously detect the distance to multiple objects. For example, if two or three people are within range, the ultrasonic sensor can calculate the distance to each individually. Its core capability lies in intelligently distinguishing between real targets and rain interference by analyzing the differences in the characteristics of ultrasonic waves reflected from targets (such as reflection intensity, signal stability, and motion characteristics). This enables automatic rain avoidance, solving the problem of frequent false triggering when the door lock is within detection range of rainwater on rainy days, causing the smart lock to frequently enter working mode, accelerating battery consumption, and requiring more frequent replacement or charging. Furthermore, it can accurately detect rain. The rangefinder can measure distances from 5 meters to as close as 20 centimeters, even detecting transparent materials like glass and plastic. Its accuracy remains unaffected by bright sunlight or complete darkness, and it is unaffected by the object's color. The sensing module emits ultrasonic waves at a preset frequency, receives the echoes, and filters out echoes that match the characteristics of a human body as valid echoes. The receiving time of the valid echo, along with the corresponding ultrasonic wave emission time, forms the human body recognition result, which is then fed back to the control unit. If the sensing module receives the echo and, after filtering based on the characteristic information, determines that no echo represents a human body, it does not need to send a human body recognition result to the control unit.
[0044] After the control unit of this embodiment of the invention is powered on and woken up, it can start a timer for a first preset duration, taking 20 seconds as an example. Within the first preset duration, it can obtain the human body recognition results fed back by the sensing module and form a human body recognition result set. Then, it can determine whether the ultrasonic wave emission time in the human body recognition result is a continuous time series, that is, whether the ultrasonic wave emission time appears continuously in the time series at intervals corresponding to the emission frequency of the sensing module within the first preset duration, and whether the total duration of the ultrasonic wave emission time is consistent with the first preset duration. If the ultrasonic wave emission time is a continuous time series, it means that there is always a user within the specified range. Then, it can obtain the time difference between each emitted ultrasonic wave and the effective echo and form a time difference set. It can also determine whether the time difference change sequence in the time difference set meets the time difference change requirement corresponding to the human body approaching. For example, if the time difference is getting smaller and smaller, it means that the distance between the human body and the door lock is getting closer and closer. This is just an example. The control unit can also capture the reflected signal through the receiving end of the sensing module, analyze the frequency difference between the emitted signal and the received signal in real time, and combine the built-in algorithm to determine the distance between the human body and the door lock. This is not limited.
[0045] This invention employs a time-of-flight ultrasonic distance sensor to perform human proximity detection logic. It can filter valid echoes to eliminate interference from environmental clutter, accurately identify human proximity behavior, and perform human proximity verification through continuous time series. This can eliminate invalid triggers caused by single false detections, ensuring the stability of detection results. Furthermore, it can accurately distinguish human proximity from other behaviors by judging through the time difference change sequence.
[0046] In one alternative implementation, if the ultrasonic wave emission times in the human body recognition results are not a continuous time series within the first time period, the system enters a sleep power-off mode.
[0047] If the control unit of this embodiment determines that the ultrasonic emission time in the human body recognition result is not a continuous time sequence, for example, within 20 seconds, only the human body recognition result of the first 10 seconds is received, and no human body recognition result is received from the sensing module in the last 10 seconds, or at the middle moment, the user leaves the detection range of the sensing module, and determines that the user may have appeared in front of the door by chance, the control unit will automatically enter the sleep power-off mode, and the biometric recognition module will maintain the power-off mode. In this state, the power consumption of the door lock is only 20μA, and the energy consumption is at an extremely low level.
[0048] When the present invention determines that the user is not near the door lock, it can quickly cut off the unnecessary power supply to the control unit and other modules, and directly enter the sleep power-off mode to avoid energy waste and extend the door lock's battery life.
[0049] In one optional implementation, if the time difference change sequence in the time difference set does not meet the time difference change requirement for the human body approaching, the biometric module is powered on, and a video containing a human body in front of the door is captured and stored.
[0050] In this embodiment of the invention, if the ultrasonic emission time is determined to be a continuous time sequence, it indicates that a user is continuously standing in front of the door. However, if the time difference change sequence in the time difference set does not meet the time difference change requirement corresponding to the approach of a human body, it is determined that a user is in front of the door but is lingering without directly approaching. At this time, the control unit can activate the peephole recording function to take pictures in front of the door and determine how long the person has stayed within the specified distance range, and whether they are facing the door or with their back to the door. If the user is facing the door, the peephole can be controlled to capture video of the person in front of the door as evidence of staying at the door, and an alarm function can be activated to notify the homeowner. If the user is with their back to the door and has stayed for a long time, an alarm function can be activated to prompt the user to leave the area. A graded response mechanism is adopted. For example, high risk (facing the door): directly trigger "video evidence + homeowner notification + alarm" to ensure that the homeowner is aware of the situation and retains key evidence immediately; medium risk (with their back to the door + (Long-term stay): First, trigger the "alarm prompt to leave" to alert abnormal personnel while avoiding excessive intervention in temporary stays (such as waiting for others or briefly tidying up items). This ensures the protection of high-risk scenarios while taking into account the flexibility of daily use and avoids frequent false alarms that may cause user annoyance. This is just an example.
[0051] In scenarios where it is determined that someone is continuously in front of the door but has not approached, this invention significantly improves the security protection capability, scenario adaptability, and user experience of the door lock through the design of evidence preservation and security response.
[0052] In one optional implementation, after the control unit is powered on and woken up, it can first send a self-test function command to all modules integrated in the door lock so that each module can perform a function self-test operation; only after receiving the self-test pass information from each module and the control unit passing the self-test can it obtain the human body recognition result output by the sensing module.
[0053] After the control unit of this embodiment of the invention is powered on and woken up, it can first send the corresponding detection code (i.e., self-test function command) according to the interface definition of each module integrated in the door lock. After each module receives the exclusive detection code, it can first send a response signal to the control unit to avoid the security risk of command failure or mis-execution caused by communication failure. Then, it starts its own function test. When all modules send feedback to the control unit that the self-test is qualified and its own self-test is also qualified, it can start the first preset time period and obtain the human body recognition result output by the sensing module, and execute the subsequent door lock control method.
[0054] This invention avoids accidental unlocking caused by module failure through pre-module self-testing, ensuring that the door lock only operates when the entire system is normal, guaranteeing system stability, and reducing sudden failures during operation.
[0055] In one optional implementation, in response to receiving information that the battery installation is complete, a power-on wake-up is performed, and after wake-up, the current capacity and voltage of the battery are obtained; it is determined whether the current capacity and voltage of the battery are within the normal range; if the capacity and voltage of the battery are within the normal range, a self-test function command is sent to all modules integrated into the door lock.
[0056] The door lock designed in this embodiment of the invention also includes a power management module, which comprises a charging management circuit, a 3.7V lithium battery, a DC-DC step-down circuit, and a power path switching circuit. The charging management circuit is responsible for charging the lithium battery, which provides the core power to the door lock; the DC-DC step-down circuit converts the battery voltage to a voltage suitable for the operation of each module; and the power path switching circuit enables automatic switching between USB power supply and battery power supply, ensuring continuous power supply.
[0057] The power management module provides stable and continuous power support for the smart lock. After the door lock product is equipped with an 8000mAh -3.7V battery, the control unit can be powered on and woken up. After waking up, it can obtain the current capacity and voltage of the battery and determine whether the current capacity and voltage of the battery are within the normal range. If the capacity and voltage of the battery are both within the normal range, the control unit can automatically start the self-test process of various functions, including sending self-test function commands to all modules integrated into the door lock. All tests must be completed within a specified time. If the self-test is not completed within the specified time, the function is determined to be faulty, and the product needs to be repaired, tested, or the parts replaced.
[0058] This invention employs a pre-verification logic that checks the battery's status after installation and only initiates the module's self-test if it passes the test. This establishes battery reliability as the baseline for power safety throughout the entire operation of the smart lock, thus avoiding safety risks caused by battery malfunctions.
[0059] Furthermore, after sending a self-test function command to all modules integrated into the door lock, a timer begins; if any module fails to provide feedback on passing the self-test within the second time period, a module error message is sent to the user.
[0060] After sending a self-test function command to all modules integrated in the door lock, the control unit of this embodiment can start timing and receive self-test pass information from each module. If the time reaches the second time limit, taking 10 seconds as an example, and there are still modules that have not returned self-test pass information, a module abnormality prompt message can be sent to the user.
[0061] This invention employs a design logic that, after a self-test command is sent, a timer is established, and if no feedback is received within the timer period, an exception is indicated. This design logic solves the problem of process blockage caused by the lack of feedback from modules, ensuring the smooth operation of the system.
[0062] Step S302: Determine whether a person is approaching the door lock based on the human body recognition result. For details, please refer to [link to details]. Figure 1 Step S102 of the illustrated embodiment will not be described again here.
[0063] Step S303: When a human body is detected approaching the door lock, the biometric module is powered on to obtain the user's biometric information. For details, please refer to [link to details]. Figure 1 Step S103 of the illustrated embodiment will not be described again here.
[0064] Step S304: Verify the user's biometric information, and unlock the door upon successful verification. For details, please refer to [link to relevant documentation]. Figure 1 Step S104 of the illustrated embodiment will not be described again here.
[0065] Specifically, if the user's biometric information verification fails, the biometric module is powered on, and a video containing a human body is captured and stored in front of the door.
[0066] If the control unit of this embodiment fails to verify the biometric information, it can control the biometric module to power on, capture and store a video of a human body in front of the door for future evidence.
[0067] This embodiment also provides a door lock, such as Figure 5 As shown, the door lock includes a control unit 51, a sensing module 52, and a biometric module 53. The sensing module 52 is in a constant power state. The control unit 51 and the biometric module 53 are in a power-off state when the door lock is locked. The control unit 51 includes a memory and a processor. The memory and the processor are interconnected. The memory stores computer instructions. The processor executes the computer instructions to perform the aforementioned door lock control method.
[0068] In an alternative implementation, the door lock further includes an output and display module 54 and a power management module 55, wherein the output and display module 54 is used to send prompt information to the user, and the power management module 55 is used to convert the battery voltage to a voltage suitable for the operation of each module.
[0069] Specifically, the sensing module 52 is a time-of-flight ultrasonic distance sensor, used to emit ultrasonic waves, receive echoes, and filter echoes that meet the characteristic information corresponding to the human body as valid echoes. For detailed explanation, please refer to the above embodiment, which will not be repeated here.
[0070] Figure 6This is a schematic diagram of the structure of a control unit in a door lock, provided in an embodiment of the present invention.
[0071] The following is a detailed reference. Figure 6 The diagram illustrates a structural schematic suitable for implementing a control unit in an embodiment of the present invention. The control unit may include a processor (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 602 or a program loaded from memory 608 into random access memory (RAM) 603. The RAM 603 also stores various programs and data required for the operation of the control unit. The processor 601, ROM 602, and RAM 603 are interconnected via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0072] Typically, the following devices can be connected to I / O interface 605: input devices 606 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 607 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; memory devices 608 including, for example, magnetic tapes, hard disks, etc.; and communication devices 609. Communication device 609 allows the control unit to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 6 A control unit with various devices is shown, but it should be understood that it is not required to implement or have all of the devices shown, and more or fewer devices may be implemented or have instead.
[0073] In particular, according to embodiments of the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present invention include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 609, or installed from a memory 608, or installed from a ROM 602. When the computer program is executed by the processor 601, it performs the functions defined in the door lock control method of the embodiments of the present invention.
[0074] Figure 6 The control unit shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments of the present invention.
[0075] This invention also provides a computer-readable storage medium. The methods described above according to embodiments of the invention can be implemented in hardware or firmware, or implemented as computer code that can be recorded on a storage medium, or implemented as computer code downloaded via a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and then stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code. When the software or computer code is accessed and executed by the computer, processor, or hardware, the door lock control method shown in the above embodiments is implemented.
[0076] A portion of this invention can be applied as a computer program product, such as computer program instructions, which, when executed by a computer, can invoke or provide the methods and / or technical solutions according to the invention through the operation of the computer. Those skilled in the art will understand that the forms in which computer program instructions exist in a computer-readable medium include, but are not limited to, source files, executable files, installation package files, etc. Correspondingly, the ways in which computer program instructions are executed by a computer include, but are not limited to: the computer directly executing the instructions, or the computer compiling the instructions and then executing the corresponding compiled program, or the computer reading and executing the instructions, or the computer reading and installing the instructions and then executing the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to a computer.
[0077] Although embodiments of the invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations all fall within the scope defined by the appended claims.
Claims
1. A door lock control method, characterized in that, A control unit applied in a door lock, the door lock further including a sensing module and a biometric module, the sensing module being in a constant-power state, and the control unit and biometric module being in a power-off state when the door lock is in the locked state, the method comprising: The system responds to power-on wake-up at a preset time interval and acquires the human body recognition result fed back by the sensing module after wake-up; Based on the human body recognition results, determine whether a human body is approaching the door lock; When a human body is detected approaching the door lock, the biometric module is powered on to obtain the user's biometric information. The user's biometric information is verified, and the door lock is opened upon successful verification.
2. The method according to claim 1, characterized in that, The sensing module is a time-of-flight ultrasonic distance sensor, used to emit ultrasonic waves at a preset frequency, receive echoes, and filter echoes that meet the characteristic information corresponding to a human body as valid echoes. The human body recognition result includes the reception time of the valid echo and the ultrasonic wave emission time corresponding to the valid echo. Based on the human body recognition result, it is determined whether a human body is approaching the door lock, including: Start the timer for the first preset duration; Within a first preset time period, it is determined whether the ultrasonic emission time in the human body recognition result is a continuous time series, wherein a continuous time series means that within the first preset time period, the ultrasonic emission time appears continuously in the time series at intervals corresponding to the preset frequency. If the ultrasonic wave emission times are a continuous time series, the time difference between each emitted ultrasonic wave and the effective echo is obtained to form a time difference set. Determine whether the time difference change sequence in the time difference set meets the time difference change requirement for the human body to approach the corresponding time difference; If the time difference requirement for a person to approach the door lock is met, it is determined that a person is approaching the door lock.
3. The method according to claim 2, characterized in that, The method further includes: If the ultrasonic wave emission times in the human body recognition results are not a continuous time sequence within the first time period, the system enters a sleep / power-off mode.
4. The method according to claim 2, characterized in that, The method further includes: If the time difference change sequence in the time difference set does not meet the time difference change requirement for the human body approaching, or if the user's biometric information verification fails, the biometric module is powered on to capture and store a video of the human body in front of the door.
5. The method according to claim 1, characterized in that, Before obtaining the human recognition result output by the sensing module, the method further includes: Send self-test function commands to all modules integrated into the door lock so that each module performs a function self-test operation; After receiving the self-test pass information from each module and the control unit passing the self-test, the human body recognition result output by the sensing module is obtained.
6. The method according to claim 1, characterized in that, The method further includes: Upon receiving a battery installation completion message, the device initiates a power-on wake-up and acquires the battery's current capacity and voltage after wake-up. Determine whether the current capacity and voltage of the battery are within the normal range; If the battery capacity and voltage are within the normal range, a self-test function command is sent to all modules integrated into the door lock.
7. The method according to claim 5 or 6, characterized in that, The method further includes: After sending a self-test function command to all modules integrated into the door lock, the timer starts; If a module fails to provide feedback on its self-test passing status within the second time period, a module error message will be sent to the user.
8. A door lock, characterized in that, The door lock includes a control unit, a sensing module, and a biometric module. The sensing module is in a constant-power state. The control unit and the biometric module are in a power-off state when the door lock is locked. The control unit includes a memory and a processor. The memory and the processor are interconnected. The memory stores computer instructions. The processor executes the computer instructions to perform the door lock control method according to any one of claims 1 to 7.
9. The door lock according to claim 8, characterized in that, The door lock also includes an output and display module and a power management module. The output and display module is used to send prompt information to the user, and the power management module is used to convert the battery voltage to a voltage suitable for the operation of each module.
10. The door lock according to claim 8, characterized in that, The sensing module is a time-of-flight ultrasonic distance sensor, used to emit ultrasonic waves, receive echoes, and filter echoes that meet the corresponding characteristic information of the human body as valid echoes.