Door lock control method and apparatus, and device and storage medium
By controlling the smart door lock module to enter the sleep state based on the user's movement status and number of people, the problem of high power consumption of smart door locks is solved and its battery life is extended.
Patent Information
- Application Number
- PCT/CN2023/141658
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-05-17
- Filing Date
- 2023-12-25
- Publication Date
- 2024-11-21
AI Technical Summary
The smart door lock continues to work in the identification state, resulting in high power consumption and shortened battery life.
By obtaining the target user's movement status, determining the return or leaving home status, and controlling the door lock module to enter the dormant state based on the number of people indoors and outdoors to reduce power consumption.
Improves the battery life of smart door locks and extends the use time.
Smart Images

Figure CN2023141658_21112024_PF_FP_ABST
Abstract
Description
Door lock control method, device, equipment and storage medium
[0001] This disclosure claims priority to a Chinese patent application filed with the Patent Office of China on May 17, 2023, with application number 202310560954.7 and invention name “Door lock control method, device, equipment and storage medium”, the entire contents of which are incorporated by reference into this disclosure. Technical Field
[0002] The present disclosure relates to the technical field of smart door locks, and in particular to a control method, device, equipment and storage medium for a door lock. Background Art
[0003] In the field of smart home security, smart door locks are gradually entering consumers' homes due to their security, identification, and convenient management. They have become a protective product for consumers' home safety. However, most smart door locks on the market today are battery-powered. Because they require intelligent identification, the locks must continuously operate in the identification state. This constant operation results in high power consumption, which in turn shortens the battery life of smart door locks.
[0004] Summary of the Invention
[0005] In response to the above problems, the present disclosure provides a door lock control method, device, equipment and storage medium. By determining the number of target users indoors and / or outdoors, the target module of the door lock is controlled to enter a sleep state based on the number of target users indoors and / or outdoors, thereby reducing the power consumption of the smart door lock and improving the battery life of the door lock.
[0006] The present disclosure provides a method for controlling a door lock, including:
[0007] Get the target user's motion status when unlocking the door;
[0008] Determining whether the target user is in a returning home state or a leaving home state based on the motion state;
[0009] determining the number of target users indoors and / or outdoors based on whether the target users are in a home state or a away state;
[0010] The target module of the door lock is controlled to enter a dormant state based at least on the number of target users indoors and / or outdoors.
[0011] In some embodiments, the door lock module includes: an internal acquisition module, an external acquisition module, an internal lock body module, and an external lock body module. The internal lock body module is configured to unlock indoors, and the external lock body module is configured to unlock outdoors. The internal acquisition module is configured to collect the motion status of indoor users, and the external acquisition module is configured to collect the motion status of outdoor users. The control of the target module of the door lock into a dormant state based at least on the number of target users includes:
[0012] When it is determined that the number of target users indoors is 0 and / or the number of target users outdoors is equal to the preset number of people indoors, controlling the internal acquisition module and the internal lock body module to enter a dormant state;
[0013] When it is determined that the number of target users indoors is the preset number and / or the number of target users outdoors is 0, determining whether the target users indoors are in an active state;
[0014] When the target user in the room is not in an active state, controlling the inner acquisition module, the outer acquisition module, the inner lock body module and the outer lock body module to enter a dormant state;
[0015] When the target user in the room is in an active state, the outer lock body module and the outer acquisition module are controlled to enter a dormant state.
[0016] In some embodiments, determining whether the user in the room is in an active state includes:
[0017] Obtaining the light intensity in the room;
[0018] Based on the light intensity, it is determined whether the target user in the room is in an active state, wherein when the light intensity is greater than a light intensity threshold, the target user in the room is determined to be in an active state; when the light intensity is less than the light intensity threshold, the target user in the room is determined to be in an inactive state.
[0019] In some embodiments, the door lock module further includes: a light sensor configured to detect indoor light intensity, and obtaining the indoor light intensity includes:
[0020] The light intensity in the room is obtained by the light sensor.
[0021] In some embodiments, the internal acquisition module includes: a first 3D structured light module, the external acquisition module includes: a second 3D structured light module, and the determining whether the user is in the home state or the away state based on the motion state includes:
[0022] Acquire a first motion state of a target user based on the first 3D structured light module;
[0023] Acquiring a second motion state of the target user based on the second 3D structured light module;
[0024] Based on the first motion state and the second motion state, it is determined whether the target user is in the returning home state or the leaving home state.
[0025] In some embodiments, the method further comprises:
[0026] Get the preset trigger information;
[0027] The target module is activated based on the trigger information to exit the sleep mode.
[0028] An embodiment of the present disclosure provides a door lock control device, comprising:
[0029] An acquisition module is configured to acquire the motion state of a target user when unlocking the door;
[0030] A first determining module is configured to determine whether the target user is in a returning home state or a leaving home state based on the motion state;
[0031] A second determining module is configured to determine the number of target users indoors and / or outdoors based on whether the target users are in a home state or a away state;
[0032] The control module is configured to control the target module of the door lock to enter a dormant state based on at least the number of target users indoors and / or outdoors.
[0033] An embodiment of the present disclosure provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the door lock control method as described in any one of the above items is executed.
[0034] An embodiment of the present disclosure provides a door lock, comprising: the electronic device, the internal acquisition module, the external acquisition module, the internal lock body module and the external lock body module as described above, wherein the electronic device is communicatively connected with the internal acquisition module, the external acquisition module, the internal lock body module and the external lock body module.
[0035] An embodiment of the present disclosure provides a computer-readable storage medium, which stores a computer program that can be executed by one or more processors and can be used to implement the above-mentioned door lock control method.
[0036] The present disclosure provides a door lock control method, device, equipment and storage medium, which can reduce the power consumption of the smart door lock and thus improve the battery life of the door lock by obtaining the motion state of the target user when unlocking the door; determining whether the target user is in the home state or the away state based on the motion state; determining the number of target users indoors and / or outdoors based on whether the target user is in the home state or the away state; and controlling the target module of the door lock to enter a dormant state based on at least the number of target users indoors and / or outdoors. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Hereinafter, the present disclosure will be described in more detail based on embodiments with reference to the accompanying drawings.
[0038] FIG1 is a schematic diagram of an implementation flow of a door lock control method provided by an embodiment of the present disclosure;
[0039] FIG2 is a schematic diagram of an implementation flow of a door lock control method provided by an embodiment of the present disclosure;
[0040] FIG3 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure.
[0041] In the drawings, like components are given like reference numerals, and the drawings are not drawn to scale. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solutions and advantages of the present disclosure clearer, the present disclosure will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limiting the present disclosure. All other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present disclosure.
[0043] In the following description, reference is made to “some embodiments”, which describes a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0044] If similar descriptions of "first\second\third" appear in the application documents, the following explanation is added. In the following description, the terms "first\second\third" are only used to distinguish similar objects and do not represent a specific order for the objects. It can be understood that "first\second\third" can be interchanged with the specific order or sequence where permitted, so that the embodiments of the present disclosure described herein can be implemented in an order other than that illustrated or described herein.
[0045] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art in the art of the present disclosure. The terms used herein are only for the purpose of describing the embodiments of the present disclosure and are not intended to limit the present disclosure.
[0046] Based on the problems existing in the related art, an embodiment of the present disclosure provides a method for controlling a door lock. The method is applied to an electronic device, such as a computer, a mobile terminal, etc. The mobile terminal may include a mobile phone, a tablet computer, etc. In some embodiments, the electronic device may be a controller of the door lock. The door lock may include: an internal acquisition module, an external acquisition module, an internal lock body module, and an external lock body module. The internal lock body module is configured to unlock indoors, the external lock body module is configured to unlock outdoors, the internal acquisition module is configured to acquire the motion status of an indoor user, and the external acquisition module is configured to acquire the motion status of an outdoor user. The method for controlling a door lock provided by an embodiment of the present disclosure can be applied in home scenarios. The functions implemented by the method for controlling a door lock provided by an embodiment of the present disclosure can be implemented by a processor of the electronic device calling program code, wherein the program code can be stored in a computer storage medium.
[0047] An embodiment of the present disclosure provides a method for controlling a door lock. FIG1 is a schematic diagram of an implementation flow of a method for controlling a door lock provided by an embodiment of the present disclosure. As shown in FIG1 , the method includes:
[0048] Step S101: Acquire the motion state of the target user when unlocking the door.
[0049] In embodiments of the present disclosure, an electronic device can be in communication with a capture module. The capture module can capture image information of a target user unlocking the door, and the target user's motion state at the time of unlocking can be determined based on the image information. The capture module can be a camera, a 3D structured light module, or the like. In some embodiments, the capture module can capture the user's movement information to determine the motion state. Based on the movement information, it can be determined whether the user is walking from inside to outside or from outside to inside. In some embodiments, the user's motion state can be determined based on the order in which the multiple capture modules acquire information. Exemplarily, the capture module can include a first capture module and a second capture module. The first and second capture modules can be located at different positions on the door lock. The target user's motion state at the time of unlocking can be determined based on the order in which the signals collected by the first and second capture modules are collected. Exemplarily, the first capture module is located closer to the room, while the second capture module is located closer to the outside. If the first capture module receives a signal first and the second capture module receives a signal later, it can be determined that the user is walking from inside to outside. If the second capture module receives a signal first and the first capture module receives a signal later, it can be determined that the target user is walking from outside to inside.
[0050] In some embodiments, the first acquisition module can be considered as an internal acquisition module, and the second acquisition module can be considered as an external acquisition module, the internal acquisition module includes: a first 3D structured light module, and the external acquisition module includes: a second 3D structured light module. The image information can be a 3D image.
[0051] In the disclosed embodiment, when the user unlocks the door, the acquisition module can be triggered to enter normal working state. When the door is not unlocked, the acquisition module can enter standby mode to save power. In the disclosed embodiment, the standby mode can also be considered a low-power operation mode. In the disclosed embodiment, the target user can be all users in the room set by the user.
[0052] Step S102: determining whether the target user is in a returning home state or a leaving home state based on the motion state.
[0053] In the embodiment of the present disclosure, if the movement state is walking from outside to inside, it can be considered as the returning home state, and if the movement state is walking from inside the door to outside the door, it can be considered as the leaving home state.
[0054] Continuing with the above example, when the internal acquisition module includes: a first 3D structured light module, and the external acquisition module includes: a second 3D structured light module, the internal acquisition module is set to collect the motion state of indoor users, and the external acquisition module is set to collect the motion state of outdoor users, then the first motion state of the target user is obtained based on the first 3D structured light module; the second motion state of the target user is obtained based on the second 3D structured light module; and based on the first motion state and the second motion state, it is determined whether the target user is in the home state or the away state.
[0055] Step S103 : determining the number of target users indoors and / or outdoors based on whether the target users are in the home state or the away state.
[0056] In the embodiment of the present disclosure, the number of target users indoors and / or outdoors may be determined based on whether each target user is in a home state or a away state.
[0057] For example, the number of people indoors can be set to 2. When two target users are identified as being away from home and no target user is home, the number of target users indoors can be determined to be 0, and the number of target users outdoor can be determined to be 2. When two target users are identified as being away from home and one target user is home, the number of target users indoors can be determined to be 1, and the number of target users outdoor can also be determined to be 1. When two target users are identified as being away from home and two target users are home, the number of people indoors can be determined to be 2, and the number of target users outdoor can be determined to be 0.
[0058] In the embodiment of the present disclosure, only the number of target users indoors may be determined. Since the number of target users outdoors is equal to the preset number minus the number of target users indoors, the number of target users outdoors may be determined simultaneously with the number of target users indoors.
[0059] In the embodiment of the present disclosure, only the number of target users outdoors may be determined. Since the number of target users indoors is equal to the preset number minus the number of target users outdoors, the number of target users indoors may also be determined while the number of target users outdoors is determined.
[0060] Step S104 : controlling the target module of the door lock to enter a dormant state based at least on the number of target users indoors and / or outdoors.
[0061] In the embodiment of the present disclosure, the target module may include one or more of an internal acquisition module, an internal lock body, an external lock body, and an external acquisition module. In some embodiments, the door lock is also provided with a sensor, which is a photosensitive sensor. The photosensitive sensor is configured to collect the light intensity in the room. When the photosensitive sensor is not in use, the photosensitive sensor can also be controlled to enter a sleep state.
[0062] In the embodiments of the present disclosure, the target module can have at least two states: a normal operating state and a dormant state. The normal operating state consumes more power than the dormant state. In the dormant state, the target module cannot function normally. In the embodiments of the present disclosure, the target module cannot function normally, including, for example, incomplete functions or unusable functions.
[0063] In the embodiment of the present disclosure, when it is determined that the number of target users indoors is 0 and / or the number of target users outdoors is equal to a preset number of people indoors, the internal acquisition module and the internal lock body module are controlled to enter a dormant state. In the embodiment of the present disclosure, the external acquisition module and the external lock body module can function normally, and the lock body module may include one or more of a facial recognition module, a fingerprint module, and an NFC module. In the embodiment of the present disclosure, when it is determined that the number of target users indoors is 0 and / or the number of target users outdoors is equal to a preset number of people, the external acquisition module and the external lock body module can function normally, while the internal lock body module and the internal acquisition module enter a dormant state. This can reduce the energy consumption of the smart door lock without affecting the door opening experience of outdoor users.
[0064] In the disclosed embodiment, if the number of target users indoors is not zero and the number of target users outdoors is not zero, it is possible that both indoor and outdoor users have opened the door. In this case, the internal acquisition module, external acquisition module, internal lock module, and external lock module will not enter a dormant state. Of course, the electronic device can determine the target user's likely homecoming and departure times based on the user's historical homecoming and departure data. When the target user's homecoming and departure times are approaching, the internal acquisition module, external acquisition module, internal lock module, and external lock module will be controlled to enter a normal operating state. At other times, the internal acquisition module, external acquisition module, internal lock module, and external lock module can be controlled to enter a dormant state.
[0065] In the embodiment of the present disclosure, if the number of people indoors is the preset number and the number of target users outdoors is 0, the outer lock module and the outer acquisition module can be controlled to enter a dormant state. Because the target users are all indoors and may not open the door from the outside, the outer lock module and the outer acquisition module are controlled to enter a dormant state.
[0066] In the disclosed embodiment, the preset number of people can be configured, and the user can set the preset number of people. For example, the preset number of people can be set to any one of 2, 3, and 4. Of course, when setting, the user can set it according to the total number of people in the user's home, and the preset number of people can be set to the total number of people in a family.
[0067] In some embodiments, the electronic device may determine the preset number of people based on historical data. For example, if the electronic device recognizes that there are always 3 people in the user's home, it may determine that the preset number of people is 3.
[0068] The present disclosure provides a door lock control method, which can reduce the power consumption of the smart door lock and thus improve the battery life of the door lock by obtaining the motion state of the target user when unlocking the door; determining whether the target user is in the home state or the away state based on the motion state; determining the number of target users indoors and / or outdoors based on whether the target user is in the home state or the away state; and controlling the target module of the door lock to enter a dormant state based on at least the number of target users indoors and / or outdoors.
[0069] In some embodiments, step S104 may include:
[0070] Step S1041 : When it is determined that the number of target users indoors is 0 and / or the number of target users outdoors is a preset number, the internal acquisition module and the internal lock body module are controlled to enter a dormant state.
[0071] Step S1042: When it is determined that the number of target users indoors is the preset number and / or the number of target users outdoors is 0, it is determined whether the target users indoors are in an active state.
[0072] In the disclosed embodiment, it is possible to determine whether a target user is in an active state by collecting indoor image information. For example, the image information can be used to determine whether the user is walking, reading, cooking, etc. The image information can be input into a neural network model to output a result indicating whether the user is in an active state.
[0073] In some embodiments, the light intensity in the room can be collected to determine whether the user is active. In the disclosed embodiment, if the light intensity is greater than a light intensity threshold, the target user in the room is determined to be active; if the light intensity is less than the light intensity threshold, the target user in the room is determined to be inactive.
[0074] In the disclosed embodiment, determining whether the user is active by light intensity can be simpler and avoids deploying a neural network model.
[0075] In the disclosed embodiment, a photosensor may be provided in the door lock to obtain the light intensity in the room.
[0076] In some embodiments, the light sensor will enter a normal working state only when it is determined that all users are indoors, and will enter a dormant state when it is determined that at least one user is not indoors.
[0077] In the embodiment of the present disclosure, when it is determined that all users are indoors, the light sensor may be periodically turned on for detection to further reduce the power consumption of the light sensor.
[0078] In the disclosed embodiments, if the target user is not active, the target user can be considered to be resting. For example, at night, when all lights in the house are turned off, the light intensity is low. At this time, the light intensity is less than the light intensity threshold, and the target user is determined to be inactive, that is, the target user is considered to be resting. During the day, when the user wants to take a nap, they will close the curtains. At this time, the light intensity is also low, and the target user can be determined to be inactive. In the disclosed embodiments, the light intensity threshold is configurable.
[0079] Step S1043 : When the target user in the room is not in an active state, controlling the inner acquisition module, the outer acquisition module, the inner lock body module, and the outer lock body module to enter a dormant state.
[0080] In the embodiment of the present disclosure, if all target users are at home and resting, they should not unlock the door. Therefore, at this time, the internal acquisition module, the external acquisition module, the internal lock body module and the external lock body module can be controlled to enter a dormant state.
[0081] In the embodiment of the present disclosure, when the target users are at home and resting, the internal acquisition module, the external acquisition module, the internal lock body module and the external lock body module can be controlled to enter a dormant state, which can reduce the power consumption of the smart door lock and thus improve the endurance of the door lock.
[0082] Step S1044: When the target user in the room is in an active state, the external lock body module and the external acquisition module are controlled to enter a dormant state.
[0083] In the embodiment of the present disclosure, if the target user is active, since there is no target user outdoors, the lock may only be unlocked from the inside. Therefore, at this time, the outer lock body module and the outer acquisition module can be controlled to be in a dormant state, while the inner acquisition module and the inner lock body module both work normally.
[0084] In the embodiment of the present disclosure, by controlling the external lock body module and the external acquisition module to enter a dormant state when the target user in the room is active, the power consumption of the smart door lock can be reduced while ensuring the user's unlocking experience when inside, thereby improving the endurance of the door lock.
[0085] In some embodiments, after step S104, the method further includes:
[0086] Step S105: Obtain preset trigger information.
[0087] In the disclosed embodiments, the trigger information may be a user's intention to unlock the door or a wake-up operation for the door lock. For example, if a user is detected touching the door lock handle, it is determined that the user intends to unlock the door, and the preset trigger information is obtained. In some embodiments, the wake-up operation for the door lock may include fixed actions, gestures, etc. When an operation to wake up the door lock is detected, the preset trigger information is obtained.
[0088] Step S106: activating the target module based on the trigger information to exit the sleep mode.
[0089] In the embodiment of the present disclosure, if the preset trigger information is obtained, all target modules are activated, exit the sleep mode, and enter the normal working mode.
[0090] Continuing with the above example, if the internal lock module and the internal acquisition module enter sleep mode and receive trigger information, they will wake up. For another example, if all target modules enter sleep mode, they will all wake up after receiving trigger information.
[0091] By setting trigger information to wake up the target module in sleep mode, energy consumption can be further reduced, thereby further improving the endurance of the door lock.
[0092] Based on the aforementioned embodiments, the present disclosure further provides a method for controlling a door lock. In the present disclosure, the acquisition module is illustrated by taking a 3D structured light module as an example. FIG2 is a schematic diagram of an implementation flow of a method for controlling a smart door lock provided by the present disclosure. As shown in FIG2 , the method includes:
[0093] S01, the door lock itself has a built-in / external 3D structured light module and a light sensor. When the user uses the door lock, the number of people living together can be manually set (the same as the preset number in the above embodiment). The door lock can be manually awakened from the outside in the low power state.
[0094] In the embodiment of the present disclosure, the user can enter the door lock setting page through the management ID and set the number of people living together in the setting page.
[0095] S02: When the door lock senses someone unlocking or waking up the door lock (the same as the preset trigger information in the above embodiment), the built-in / external 3D structured light module will be activated and record the user's motion status at this time through feature scanning. The different motion states recognized by the 3D structured light module at different positions are used to determine whether the user is going out or returning home. The built-in light sensor will intelligently determine whether the user is resting or active when it detects a sensitive light source. The inner lock body and the corresponding built-in 3D structured light module will only be awakened when it recognizes the door opening.
[0096] In the embodiment of the present disclosure, the built-in 3D structured light module is configured to collect the motion state of the user inside the room, while the external 3D structured light module is configured to collect the motion state of the user outside the room.
[0097] In the embodiment of the present disclosure, when a sensitive light source is present, the light intensity is relatively high, and if no sensitive light source is present, the light intensity is relatively low. The light intensity can be used to determine whether the user is in a resting state or an active state.
[0098] S03, based on the number of people living together set by the user and the user status when the door is opened, the number of people in the room is intelligently identified, and combined with the intelligent identification of the environment and user activity status by the light sensor, an intelligent judgment is made as to whether the door lock is in a low-power state.
[0099] In the embodiment of the present disclosure, when it is determined that the number of target users indoors is 0 and / or the number of target users outdoors is a preset number, the inner acquisition module and the inner lock body module are controlled to enter a dormant state; when it is determined that the number of target users indoors is the preset number and / or the number of target users outdoors is 0, it is determined whether the target users indoors are in an active state; when the target users indoors are not in an active state, the inner acquisition module, the outer acquisition module, the inner lock body module and the outer lock body module are controlled to enter a dormant state; when the target users indoors are in an active state, the outer lock body module and the outer acquisition module are controlled to enter a dormant state.
[0100] S04, auxiliary judgment is performed through the built-in photosensor. When the photosensor recognizes that the indoor light source is in a bright state (the light intensity is greater than the light intensity threshold in the above embodiment), it is intelligently judged that the indoor environment is in a state of human activity; when the photosensor recognizes that the indoor light source is in a dim state, based on the judgment of the number of people indoors by the 3D structured light module, if the number of people indoors matches the number of people living together, it is judged that the indoor environment is in a state of no activity, and the door lock enters a low-power operation state.
[0101] For example, when the user sets the number of people living together to 2, after the door lock intelligently recognizes two consecutive "out" states, it intelligently determines that the room is in an "unmanned" state. At this time, the outer lock body is in a normal working and recognition state, while the inner lock body module and the inner acquisition module enter a dormant state.
[0102] When the user sets the number of people living together to 2, when the door lock intelligently recognizes the following states, it intelligently determines that the room is in the "someone" state. At this time, the external lock body is in low-power operation mode, and the external 3D structured light module enters sleep mode. It will not enter the working state until it recognizes the door opening or is passively awakened. In the embodiment of the present disclosure, the smart door lock determines that the target user's indoor occupancy state includes: one "out" state, two "out" states, and then one "home" state, or the sum of the "out" state or "home" state is 2 and the subtraction of the "out" state and the "home" state is 0.
[0103] Based on the foregoing embodiments, the embodiments of the present disclosure provide a door lock control device, wherein the modules included in the device and the units included in each module can be implemented by a processor in a computer device; of course, they can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or a field programmable gate array (FPGA), etc.
[0104] An embodiment of the present disclosure provides a door lock control device, comprising:
[0105] An acquisition module is configured to acquire the motion state of a target user when unlocking the door;
[0106] A first determining module is configured to determine whether the target user is in a returning home state or a leaving home state based on the motion state;
[0107] A second determining module is configured to determine the number of target users indoors and / or outdoors based on whether the target users are in a home state or a away state;
[0108] The control module is configured to control the target module of the door lock to enter a dormant state based on at least the number of target users indoors and / or outdoors.
[0109] In some embodiments, the door lock module includes: an internal acquisition module, an external acquisition module, an internal lock body module, and an external lock body module. The internal lock body module is configured to unlock indoors, and the external lock body module is configured to unlock outdoors. The internal acquisition module is configured to collect the motion status of indoor users, and the external acquisition module is configured to collect the motion status of outdoor users. The control of the target module of the door lock into a dormant state based at least on the number of target users includes:
[0110] When it is determined that the number of target users indoors is 0 and / or the number of target users outdoors is a preset number, controlling the internal acquisition module and the internal lock body module to enter a dormant state;
[0111] When it is determined that the number of target users indoors is the preset number and / or the number of target users outdoors is 0, determining whether the target users indoors are in an active state;
[0112] When the target user in the room is not in an active state, controlling the inner acquisition module, the outer acquisition module, the inner lock body module and the outer lock body module to enter a dormant state;
[0113] When the target user in the room is in an active state, the outer lock body module and the outer acquisition module are controlled to enter a dormant state.
[0114] In some embodiments, determining whether the user in the room is in an active state includes:
[0115] Obtaining the light intensity in the room;
[0116] Based on the light intensity, it is determined whether the target user in the room is in an active state, wherein when the light intensity is greater than a light intensity threshold, the target user in the room is determined to be in an active state; when the light intensity is less than the light intensity threshold, the target user in the room is determined to be in an inactive state.
[0117] In some embodiments, the door lock module further includes: a light sensor configured to detect indoor light intensity, and obtaining the indoor light intensity includes:
[0118] The light intensity in the room is obtained by the light sensor.
[0119] In some embodiments, the internal acquisition module includes: a first 3D structured light module, the external acquisition module includes: a second 3D structured light module, and the determining whether the user is in the home state or the away state based on the motion state includes:
[0120] Acquire a first motion state of a target user based on the first 3D structured light module;
[0121] Acquiring a second motion state of the target user based on the second 3D structured light module;
[0122] Based on the first motion state and the second motion state, it is determined whether the target user is in the returning home state or the leaving home state.
[0123] In some embodiments, the method further comprises:
[0124] Get the preset trigger information;
[0125] The target module is activated based on the trigger information to exit the sleep mode.
[0126] It should be noted that, in the embodiments of the present disclosure, if the above-mentioned door lock control method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiments of the present disclosure, or the part that contributes to the relevant technology, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the methods described in each embodiment of the present disclosure. The aforementioned storage medium includes various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk. In this way, the embodiments of the present disclosure are not limited to any specific combination of hardware and software.
[0127] Accordingly, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of the door lock control method provided in the above embodiment are implemented, wherein a door lock control method includes:
[0128] Get the target user's motion status when unlocking the door;
[0129] Determining whether the target user is in a returning home state or a leaving home state based on the motion state;
[0130] determining the number of target users indoors and / or outdoors based on whether the target users are in a home state or a away state;
[0131] The target module of the door lock is controlled to enter a dormant state based at least on the number of target users indoors and / or outdoors.
[0132] In some embodiments, the door lock module includes: an internal acquisition module, an external acquisition module, an internal lock body module, and an external lock body module. The internal lock body module is configured to unlock indoors, and the external lock body module is configured to unlock outdoors. The internal acquisition module is configured to collect the motion status of indoor users, and the external acquisition module is configured to collect the motion status of outdoor users. The control of the target module of the door lock into a dormant state based at least on the number of target users includes:
[0133] When it is determined that the number of target users indoors is 0 and / or the number of target users outdoors is a preset number, controlling the internal acquisition module and the internal lock body module to enter a dormant state;
[0134] When it is determined that the number of target users indoors is the preset number and / or the number of target users outdoors is 0, determining whether the target users indoors are in an active state;
[0135] When the target user in the room is not in an active state, controlling the inner acquisition module, the outer acquisition module, the inner lock body module and the outer lock body module to enter a dormant state;
[0136] When the target user in the room is in an active state, the outer lock body module and the outer acquisition module are controlled to enter a dormant state.
[0137] In some embodiments, determining whether the user in the room is in an active state includes:
[0138] Obtaining the light intensity in the room;
[0139] Based on the light intensity, it is determined whether the target user in the room is in an active state, wherein when the light intensity is greater than a light intensity threshold, the target user in the room is determined to be in an active state; when the light intensity is less than the light intensity threshold, the target user in the room is determined to be in an inactive state.
[0140] In some embodiments, the door lock module further includes: a light sensor configured to detect indoor light intensity, and obtaining the indoor light intensity includes:
[0141] The light intensity in the room is obtained by the light sensor.
[0142] In some embodiments, the internal acquisition module includes: a first 3D structured light module, the external acquisition module includes: a second 3D structured light module, and the determining whether the user is in the home state or the away state based on the motion state includes:
[0143] Acquire a first motion state of a target user based on the first 3D structured light module;
[0144] Acquiring a second motion state of the target user based on the second 3D structured light module;
[0145] Based on the first motion state and the second motion state, it is determined whether the target user is in the returning home state or the leaving home state.
[0146] In some embodiments, the method further comprises:
[0147] Get the preset trigger information;
[0148] The target module is activated based on the trigger information to exit the sleep mode.
[0149] An embodiment of the present disclosure provides an electronic device; FIG3 is a schematic diagram of the composition structure of the electronic device provided by the embodiment of the present disclosure. As shown in FIG3 , the electronic device 500 includes: a processor 501, at least one communication bus 502, a user interface 503, at least one external communication interface 504, and a memory 505. The communication bus 502 is configured to implement connection and communication between these components. The user interface 503 may include a control screen, and the external communication interface 504 may include a standard wired interface and a wireless interface. The processor 501 is configured to execute a program of a door lock control method stored in a memory to implement the steps in the door lock control method provided by the above embodiment, wherein a door lock control method includes:
[0150] Get the target user's motion status when unlocking the door;
[0151] Determining whether the target user is in a returning home state or a leaving home state based on the motion state;
[0152] determining the number of target users indoors and / or outdoors based on whether the target users are in a home state or a away state;
[0153] The target module of the door lock is controlled to enter a dormant state based at least on the number of target users indoors and / or outdoors.
[0154] In some embodiments, the door lock module includes: an internal acquisition module, an external acquisition module, an internal lock body module, and an external lock body module. The internal lock body module is configured to unlock indoors, and the external lock body module is configured to unlock outdoors. The internal acquisition module is configured to collect the motion status of indoor users, and the external acquisition module is configured to collect the motion status of outdoor users. The control of the target module of the door lock into a dormant state based at least on the number of target users includes:
[0155] When it is determined that the number of target users indoors is 0 and / or the number of target users outdoors is equal to the preset number of people indoors, controlling the internal acquisition module and the internal lock body module to enter a dormant state;
[0156] When it is determined that the number of target users indoors is the preset number and / or the number of target users outdoors is 0, determining whether the target users indoors are in an active state;
[0157] When the target user in the room is not in an active state, controlling the inner acquisition module, the outer acquisition module, the inner lock body module and the outer lock body module to enter a dormant state;
[0158] When the target user in the room is in an active state, the outer lock body module and the outer acquisition module are controlled to enter a dormant state.
[0159] In some embodiments, determining whether the user in the room is in an active state includes:
[0160] Obtaining the light intensity in the room;
[0161] Based on the light intensity, it is determined whether the target user in the room is in an active state, wherein when the light intensity is greater than a light intensity threshold, the target user in the room is determined to be in an active state; when the light intensity is less than the light intensity threshold, the target user in the room is determined to be in an inactive state.
[0162] In some embodiments, the door lock module further includes: a light sensor configured to detect indoor light intensity, and obtaining the indoor light intensity includes:
[0163] The light intensity in the room is obtained by the light sensor.
[0164] In some embodiments, the internal acquisition module includes: a first 3D structured light module, the external acquisition module includes: a second 3D structured light module, and the determining whether the user is in the home state or the away state based on the motion state includes:
[0165] Acquire a first motion state of a target user based on the first 3D structured light module;
[0166] Acquiring a second motion state of the target user based on the second 3D structured light module;
[0167] Based on the first motion state and the second motion state, it is determined whether the target user is in the returning home state or the leaving home state.
[0168] In some embodiments, the method further comprises:
[0169] Get the preset trigger information;
[0170] The target module is activated based on the trigger information to exit the sleep mode.
[0171] The description of the above electronic device and storage medium embodiments is similar to the description of the above method embodiments and has similar beneficial effects as the method embodiments. For technical details not disclosed in the computer device and storage medium embodiments of the present disclosure, please refer to the description of the method embodiments of the present disclosure for understanding.
[0172] Based on the aforementioned embodiments, an embodiment of the present disclosure provides a door lock, comprising: the electronic device, internal acquisition module, external acquisition module, internal lock body module and external lock body module described above, wherein the electronic device is communicatively connected with the internal acquisition module, external acquisition module, internal lock body module and external lock body module.
[0173] It should be noted that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium and device embodiments of the present disclosure, please refer to the description of the method embodiments of the present disclosure for understanding.
[0174] It should be understood that “one embodiment” or “an embodiment” mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present disclosure. Therefore, “in one embodiment” or “in an embodiment” appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in the various embodiments of the present disclosure, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present disclosure. The serial numbers of the embodiments of the present disclosure are for description only and do not represent the advantages and disadvantages of the embodiments.
[0175] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or apparatus comprising the element.
[0176] In the several embodiments provided in the present disclosure, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components controlled or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0177] The units described above as separate components may or may not be physically separated, and the components controlled by the units may or may not be physical units; they may be located in one place or distributed across multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the scheme of this embodiment.
[0178] In addition, all functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0179] Those skilled in the art will understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above-mentioned method embodiments; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROMs), magnetic disks, optical disks, and other media that can store program codes.
[0180] Alternatively, if the above-mentioned integrated unit of the present disclosure is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present disclosure, or the part that contributes to the relevant technology, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a number of instructions for enabling a controller to execute all or part of the methods described in each embodiment of the present disclosure. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks or optical disks.
[0181] The above description is merely an embodiment of the present disclosure, but the scope of protection of the present disclosure is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this disclosure should be included in the scope of protection of the present disclosure. Therefore, the scope of protection of the present disclosure should be based on the scope of protection of the claims.
Claims
1. A door lock control method, comprising: Get the target user's motion status when unlocking the door; Determining whether the target user is in a returning home state or a leaving home state based on the motion state; Determine the number of target users indoors and / or outdoors based on whether the target users are in a returning home state or a leaving home state; The target module of the door lock is controlled to enter a dormant state based at least on the number of target users indoors and / or outdoors.
2. The method according to claim 1, wherein: The door lock module includes: an internal acquisition module, an external acquisition module, an internal lock body module and an external lock body module, the internal lock body module is configured to unlock indoors, the external lock body module is configured to unlock outdoors, the internal acquisition module is configured to acquire the motion state of indoor users, the external acquisition module is configured to acquire the motion state of outdoor users, and the target module of the door lock is controlled to enter a dormant state at least based on the number of target users, including: When it is determined that the number of target users in the room is 0, the internal acquisition module and the internal lock body module are controlled to enter a dormant state.
3. The method according to claim 1, wherein: The door lock module includes: an internal acquisition module, an external acquisition module, an internal lock body module and an external lock body module, the internal lock body module is configured to unlock indoors, the external lock body module is configured to unlock outdoors, the internal acquisition module is configured to acquire the motion state of indoor users, the external acquisition module is configured to acquire the motion state of outdoor users, and the target module of the door lock is controlled to enter a dormant state at least based on the number of target users, including: When it is determined that the number of target users indoors is 0 and the number of target users outdoors is equal to the preset number of people indoors, the internal acquisition module and the internal lock body module are controlled to enter a dormant state.
4. The method according to claim 1, wherein: The door lock module includes: an internal acquisition module, an external acquisition module, an internal lock body module and an external lock body module, the internal lock body module is configured to unlock indoors, the external lock body module is configured to unlock outdoors, the internal acquisition module is configured to acquire the motion state of indoor users, the external acquisition module is configured to acquire the motion state of outdoor users, and the target module of the door lock is controlled to enter a dormant state at least based on the number of target users, including: When it is determined that the number of target users outdoors is equal to the preset number of users indoors, the internal acquisition module and the internal lock body module are controlled to enter a dormant state.
5. The method according to claim 1, wherein: The door lock module includes: an internal acquisition module, an external acquisition module, an internal lock body module and an external lock body module, the internal lock body module is configured to unlock indoors, the external lock body module is configured to unlock outdoors, the internal acquisition module is configured to acquire the motion state of indoor users, the external acquisition module is configured to acquire the motion state of outdoor users, and the target module of the door lock is controlled to enter a dormant state at least based on the number of target users, including: When it is determined that the number of target users in the room is the preset number, determining whether the target users in the room are in an active state; When the target user in the room is not in an active state, controlling the inner acquisition module, the outer acquisition module, the inner lock body module and the outer lock body module to enter a dormant state; When the target user in the room is in an active state, the outer lock body module and the outer acquisition module are controlled to enter a dormant state.
6. The method according to claim 1, wherein: The door lock module includes: an internal acquisition module, an external acquisition module, an internal lock body module and an external lock body module, the internal lock body module is configured to unlock indoors, the external lock body module is configured to unlock outdoors, the internal acquisition module is configured to acquire the motion state of indoor users, the external acquisition module is configured to acquire the motion state of outdoor users, and the target module of the door lock is controlled to enter a dormant state at least based on the number of target users, including: When it is determined that the number of outdoor target users is 0, determining whether the indoor target users are in an active state; When the target user in the room is not in an active state, controlling the inner acquisition module, the outer acquisition module, the inner lock body module and the outer lock body module to enter a dormant state; When the target user in the room is in an active state, the outer lock body module and the outer acquisition module are controlled to enter a dormant state.
7. The method according to claim 1, wherein: The door lock module includes: an internal acquisition module, an external acquisition module, an internal lock body module and an external lock body module, the internal lock body module is configured to unlock indoors, the external lock body module is configured to unlock outdoors, the internal acquisition module is configured to acquire the motion state of indoor users, the external acquisition module is configured to acquire the motion state of outdoor users, and the target module of the door lock is controlled to enter a dormant state at least based on the number of target users, including: When it is determined that the number of indoor target users is the preset number and the number of outdoor target users is 0, determining whether the indoor target users are in an active state; When the target user in the room is not in an active state, controlling the inner acquisition module, the outer acquisition module, the inner lock body module and the outer lock body module to enter a dormant state; When the target user in the room is in an active state, the outer lock body module and the outer acquisition module are controlled to enter a dormant state.
8. The method according to any one of claims 5 to 7, wherein: The determining whether the indoor user is in an active state comprises: Obtaining the light intensity in the room; Based on the light intensity, it is determined whether the target user in the room is in an active state, wherein when the light intensity is greater than a light intensity threshold, the target user in the room is determined to be in an active state, and when the light intensity is less than the light intensity threshold, the target user in the room is determined to be in an inactive state.
9. The method according to claim 8, wherein: The door lock module further includes: a photosensitive sensor, wherein the photosensitive sensor is configured to detect the light intensity in the room, and obtaining the light intensity in the room includes: The light intensity in the room is obtained by the photosensor.
10. The method according to any one of claims 5 to 7, wherein: The internal acquisition module includes: a first 3D structured light module, the external acquisition module includes: a second 3D structured light module, and the determining whether the user is in a homecoming state or a leaving state based on the motion state includes: Acquire a first motion state of a target user based on the first 3D structured light module; Acquire a second motion state of the target user based on the second 3D structured light module; Based on the first motion state and the second motion state, it is determined whether the target user is in the returning home state or the leaving home state.
11. The method according to claim 1, wherein: The method further comprises: Get the preset trigger information; The target module is activated based on the trigger information to exit the sleep mode.
12. A door lock control device, comprising: An acquisition module is configured to acquire the motion state of a target user when unlocking the lock; A first determination module is configured to determine whether the target user is in a returning home state or a leaving home state based on the motion state; A second determination module is configured to determine the number of target users indoors and / or outdoors based on whether the target users are in a home state or a away state; The control module is configured to control the target module of the door lock to enter a dormant state based at least on the number of target users indoors and / or outdoors.
13. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the door lock control method according to any one of claims 1 to 11 is executed.
14. A door lock, comprising: The electronic device, internal acquisition module, external acquisition module, internal lock body module and external lock body module as described in claim 13, wherein the electronic device is communicatively connected with the internal acquisition module, external acquisition module, internal lock body module and external lock body module.
15. A storage medium, wherein a computer program stored in the storage medium can be executed by one or more processors and can be used to implement the door lock control method as claimed in any one of claims 1 to 11.
Citation Information
Patent Citations
Linkage method and system for dual-camera cloud lock and furniture electrical appliance
CN108614437A
Door lock control method and device, storage medium, control equipment and door lock
CN115661980A
Door lock control method, device and equipment and storage medium
CN116704649A
Intelligentized energy-saving entrance guard control system
CN201757916U
Doorphone unit
JP2007104379A
