Method, device and equipment for controlling door lock and storage medium
By acquiring user movement status and the number of people, the sleep state of the smart lock module is controlled, solving the problem of high power consumption in smart locks and achieving a longer battery life.
Patent Information
- Application Number
- CN202310560954.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-17
- Publication Date
- 2026-02-03
- Estimated Expiration
- 2043-05-17
AI Technical Summary
Existing smart locks consume a lot of power and have a shortened battery life because they are constantly working in recognition mode.
By acquiring the movement status of the target user, it determines whether the user is home or away, and controls the door lock modules to enter a sleep state based on the number of target users indoors and outdoors. This includes the sleep or normal operation states of the internal acquisition module, external acquisition module, internal lock body module, and external lock body module.
This reduces the power consumption of smart locks and improves their battery life.
Smart Images

Figure CN116704649B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of intelligent door lock, in particular to a door lock control method, device, equipment and storage medium. BACKGROUND
[0002] In the field of smart home security, intelligent door locks gradually enter the homes of consumers and become consumer home security products due to their safety, identification and management convenience. However, most of the intelligent door locks on the market today are powered by batteries, and the door lock needs to be intelligently identified and continuously works in an identification state in the working state. Due to the need to continuously work in the identification state, the power consumption of the intelligent door lock is high, thereby shortening the endurance time of the intelligent door lock. SUMMARY
[0003] To solve the above problems, the present application 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, which can reduce the power consumption of the intelligent door lock and improve the endurance of the door lock.
[0004] The present application provides a door lock control method, which includes:
[0005] Obtaining the motion state of a target user when unlocking;
[0006] Determining whether the target user is in a home state or an away state based on the motion state;
[0007] Determining the number of target users indoors and / or outdoors based on whether the target user is in a home state or an away state;
[0008] Controlling the target module of the door lock to enter a sleep state based on at least the number of target users indoors and / or outdoors.
[0009] In some embodiments, the modules of the door lock include an indoor collection module, an outdoor collection module, an indoor lock body module and an outdoor lock body module. The indoor lock body module is used for indoor unlocking, the outdoor lock body module is used for outdoor unlocking, the indoor collection module is used for collecting the motion state of an indoor user, the outdoor collection module is used for collecting the motion state of an outdoor user, and the control of the target module of the door lock to enter a sleep state based on at least the number of target users includes:
[0010] In a case where the number of target users indoors is 0 and / or the number of target users outdoors is equal to a preset number of indoor users, the indoor collection module and the indoor lock body module are controlled to enter a sleep state;
[0011] If the number of target users indoors is the preset number and / or the number of target users outdoors is 0, determine whether the target users indoors are active.
[0012] When the target user inside the room is not active, the internal acquisition module, the external acquisition module, the internal lock body module, and the external lock body module are controlled to enter a sleep state.
[0013] When the target user inside the room is active, the external lock module and the external acquisition module are put into a sleep state.
[0014] In some embodiments, determining whether the user in the room is active includes:
[0015] Obtain the indoor light intensity;
[0016] The determination of whether the target user in the room is active is based on the light intensity, wherein if the light intensity is greater than a light intensity threshold, the target user in the room is determined to be active, and if the light intensity is less than the light intensity threshold, the target user in the room is determined to be inactive.
[0017] In some embodiments, the door lock module further includes: a photosensor, the photosensor being used to detect indoor light intensity, wherein acquiring indoor light intensity includes:
[0018] The light intensity in the room is obtained through the photosensitive sensor.
[0019] In some embodiments, the internal acquisition module includes a first 3D structured light module, and the external acquisition module includes a second 3D structured light module. Determining whether the user is in a homecoming or away state based on the motion state includes:
[0020] The first motion state of the target user is obtained based on the first 3D structured light module;
[0021] The second motion state of the target user is obtained based on the second 3D structured light module;
[0022] Based on the first and second motion states, it is determined whether the target user is in a homecoming or awaycoming state.
[0023] In some embodiments, the method further includes:
[0024] Obtain preset trigger information;
[0025] The target module is activated based on the trigger information to exit the sleep mode.
[0026] This application provides a door lock control device, including:
[0027] The acquisition module is used to acquire the movement state of the target user when unlocking the door;
[0028] The first determining module is used to determine whether the target user is in a homecoming or awaycoming state based on the motion state.
[0029] The second determining module is used to determine the number of target users indoors and / or outdoors based on whether the target user is at home or away from home.
[0030] A control module is used to control the target module of the door lock to enter a sleep state based at least on the number of target users indoors and / or outdoors.
[0031] This application provides an electronic device, including a memory and a processor. The memory stores a computer program, which, when executed by the processor, performs the door lock control method as described in any of the above embodiments.
[0032] This application provides a door lock, including: the electronic device, the internal acquisition module, the external acquisition module, the internal lock body module, and the external lock body module described above, wherein the electronic device is communicatively connected to the internal acquisition module, the external acquisition module, the internal lock body module, and the external lock body module.
[0033] This application provides a computer-readable storage medium storing a computer program that can be executed by one or more processors and can be used to implement the door lock control method described above.
[0034] This application provides a door lock control method, device, equipment, and storage medium. By acquiring the movement state of a target user when unlocking the door; determining whether the target user is home or away based on the movement state; determining the number of target users indoors and / or outdoors based on whether the target user is home or away; and controlling the target module of the door lock to enter a sleep state based at least on the number of target users indoors and / or outdoors, the power consumption of the smart door lock can be reduced, thereby improving the door lock's battery life. Attached Figure Description
[0035] The present application will be described in more detail below based on embodiments and with reference to the accompanying drawings.
[0036] Figure 1 A schematic diagram illustrating the implementation flow of a door lock control method provided in an embodiment of this application;
[0037] Figure 2 A schematic diagram illustrating the implementation flow of a door lock control method provided in an embodiment of this application;
[0038] Figure 3 This is a schematic diagram of the composition structure of the electronic device provided in the embodiments of this application.
[0039] In the accompanying drawings, the same parts are referred to by the same reference numerals, and the drawings are not drawn to scale. Detailed Implementation
[0040] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limitations on this application. All other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0041] In the following description, references are made to “some embodiments,” which describe a subset of all possible embodiments. However, it is 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.
[0042] If the application documents contain similar descriptions such as "first, second, third", the following explanation shall be added: In the following description, the terms "first, second, third" are used only to distinguish similar objects and do not represent a specific order of objects. It is understood that "first, second, third" may be interchanged in a specific order or sequence where permitted, so that the embodiments of this application described herein can be implemented in an order other than that illustrated or described herein.
[0043] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.
[0044] Based on the problems existing in related technologies, this application provides a door lock control method. The method is applied to electronic devices, such as computers and mobile terminals. The mobile terminal may include mobile phones, tablets, etc. In some embodiments, the electronic device may be a door lock controller. 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 used for unlocking from the inside, and the external lock body module is used for unlocking from the outside. The internal acquisition module is used to acquire the movement status of the user inside, and the external acquisition module is used to acquire the movement status of the user outside. The door lock control method provided in this application can be applied to home scenarios. The functions implemented by the door lock control method provided in this application can be achieved by the processor of the electronic device calling program code, wherein the program code can be stored in a computer storage medium.
[0045] This application provides a door lock control method. Figure 1 This is a schematic diagram illustrating the implementation flow of a door lock control method provided in an embodiment of this application, as shown below. Figure 1 As shown, it includes:
[0046] Step S101: Obtain the movement state of the target user when unlocking the door.
[0047] In this embodiment, the electronic device can be communicatively connected to a data acquisition module to acquire image information of the target user unlocking the door. Based on the image information, the movement state of the target user when unlocking the door is determined. The data acquisition module can be a camera, a 3D structured light module, etc. In some embodiments, the data acquisition module can acquire the user's movement information to obtain the movement state. Through the movement information, it can be determined whether the user is walking from inside the door to outside or from outside to inside. In some embodiments, the user's movement state can be determined based on the order in which multiple data acquisition modules acquire information. For example, the data acquisition module can include a first data acquisition module and a second data acquisition module. The first and second data acquisition modules can be set at different positions on the door lock. The movement state of the target user when unlocking the door can be determined by the order in which the signals acquired by the first and second data acquisition modules are acquired. For example, the first data acquisition module is set near the interior, while the second data acquisition module is set near the exterior. If the first data acquisition module receives the signal first, and the second data acquisition module receives the signal later, it can be determined that the user is walking from inside the door to outside. If the second data acquisition module receives the signal first, and the first data acquisition module receives the signal later, it can be determined that the target user's movement state is walking from outside to inside.
[0048] In some embodiments, the first acquisition module can be considered an internal acquisition module, and the second acquisition module can be considered 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.
[0049] In this embodiment, when a user unlocks the door, the data acquisition module is triggered to enter normal operation. When the door is not unlocked, it can enter standby mode to save power. In this embodiment, standby mode can also be considered a low-power operation mode. In this embodiment, the target user can be any user set within the room.
[0050] Step S102: Determine whether the target user is in a homecoming or awaycoming state based on the motion state.
[0051] In this embodiment of the application, the movement state of walking from outdoors to indoors can be considered as returning home, and the movement state of walking from inside the door to outside the door can be considered as leaving home.
[0052] Continuing with the example above, 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 used to acquire the motion state of indoor users, and the external acquisition module is used to acquire the motion state of outdoor users. Then, based on the first 3D structured light module, the first motion state of the target user is obtained; based on the second 3D structured light module, the second motion state of the target user is obtained; and based on the first and second motion states, it is determined whether the target user is in a homecoming or awaycoming state.
[0053] Step S103: Determine the number of target users indoors and / or outdoors based on whether the target user is at home or away.
[0054] In this embodiment of the application, the number of target users indoors and / or outdoors can be determined based on whether each target user is at home or away from home.
[0055] For example, the number of people indoors can be set to 2. If two target users are identified as being away from home and no target user is identified as being home, then the number of target users indoors can be determined to be 0, and the number of target users outdoors can be determined to be 2. If two target users are identified as being away from home and one target user is identified as being home, then the number of target users indoors can be determined to be 1, and the number of target users outdoors can also be determined to be 1. If two target users are identified as being away from home and two target users are identified as being home, then the number of target users indoors can be determined to be 2, and the number of target users outdoors can be determined to be 0.
[0056] In this embodiment of the application, only the number of target users indoors can 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 can be determined at the same time as the number of target users indoors.
[0057] In this embodiment of the application, only the number of target users outdoors can 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 can be determined at the same time as the number of target users outdoors.
[0058] Step S104: Control the target module of the door lock to enter a sleep state based at least on the number of target users indoors and / or outdoors.
[0059] In this embodiment of the application, the target module may include one or more of an inner acquisition module, an inner lock body, an outer lock body, and an outer acquisition module. In some embodiments, the door lock is also provided with a sensor, which is a photosensitive sensor. The photosensitive sensor is used to collect the indoor light intensity. When the photosensitive sensor is not in use, it can also be controlled to enter a sleep state.
[0060] In this embodiment, the target module may include at least two states: a normal operating state and a sleep state. The power consumption in the normal operating state is greater than the power consumption in the sleep state. In the sleep state, the target module cannot be used normally. In this embodiment, the target module's inability to be used normally includes: incomplete functionality or inability to use certain functions.
[0061] In this embodiment, when the number of target users indoors is determined to be 0 and / or the number of target users outdoors is equal to the preset number indoors, the internal acquisition module and the internal lock body module are controlled to enter a sleep state. In this embodiment, 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 this embodiment, when the number of target users indoors is determined to be 0 and / or the number of target users outdoors is the preset number, 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 sleep state. This reduces the energy consumption of the smart lock without affecting the outdoor user's door-opening experience.
[0062] In this embodiment, if the number of target users indoors is not zero, and the number of target users outdoors is also not zero, it is possible that both indoor and outdoor users open the door. In this case, the internal data acquisition module, external data acquisition module, internal lock body module, and external lock body module will not enter a sleep state. Alternatively, the electronic device can determine the target user's possible return and departure times based on historical data of the user's arrival and departure. Only when the user's return or departure time is approaching will the internal data acquisition module, external data acquisition module, internal lock body module, and external lock body module be controlled to enter normal working state. At other times, the internal data acquisition module, external data acquisition module, internal lock body module, and external lock body module can be controlled to enter a sleep state.
[0063] In this embodiment, if the number of people indoors is the preset number, and the number of target users outdoors is 0, then the external lock module and the external data acquisition module can be controlled to enter a sleep state. Since the target users are all indoors and may not open the door from the outside, the external lock module and the external data acquisition module are controlled to enter a sleep state.
[0064] In this embodiment, the preset number of people can be configured. Users can set the preset number of people; for example, it can be set to any one of 2, 3, or 4 people. Of course, users can also set it based on the total number of people in their household; the preset number of people can be set to the total number of people in a family.
[0065] In some embodiments, the electronic device can determine the preset number of people based on historical data. For example, if the electronic device detects that the number of people in a user's home has been 3 for a long time, it can determine that the preset number of people is 3.
[0066] This application provides a door lock control method that acquires the movement state of a target user when unlocking the door; determines whether the target user is home or away based on the movement state; determines the number of target users indoors and / or outdoors based on whether the target user is home or away; and controls the target module of the door lock to enter a sleep state based at least on the number of target users indoors and / or outdoors, thereby reducing the power consumption of the smart door lock and improving its battery life.
[0067] In some embodiments, step S104 may include:
[0068] Step S1041: If the number of target users indoors is 0 and / or the number of target users outdoors is a preset number, control the internal acquisition module and the internal lock body module to enter a sleep state.
[0069] Step S1042: If the number of target users indoors is the preset number and / or the number of target users outdoors is 0, determine whether the target users indoors are active.
[0070] In this embodiment, the activity of a target user can be determined 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 the result indicating whether the user is active.
[0071] In some embodiments, indoor light intensity can be collected to determine whether a user is active. In this 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.
[0072] In this embodiment, determining whether a user is active by light intensity is simpler and avoids the need to deploy neural network models.
[0073] In this embodiment, a photosensitive sensor can be installed inside the door lock to obtain the indoor light intensity.
[0074] In some embodiments, the photosensor will only enter normal working state when it is determined that all users are indoors, and will remain in sleep state when it is determined that at least one user is not indoors.
[0075] In this embodiment of the application, when it is determined that all users are indoors, the photosensor can be periodically turned on for detection, so as to further reduce the power consumption of the photosensor.
[0076] In this embodiment, if the target user is not in an active state, it can be assumed that the target user is resting. For example, if all the lights in a house are turned off at night, the light intensity is low. If the light intensity is less than the light intensity threshold, it is determined that the target user is not in an active state, i.e., the target user is resting. During the day, if a user wants to take a nap, they will close the curtains, and the light intensity is also low, so it can be determined that the target user is not in an active state at this time. In this embodiment, the light intensity threshold can be configured.
[0077] Step S1043: When the target user inside the room is not active, control the internal acquisition module, the external acquisition module, the internal lock body module and the external lock body module to enter a sleep state.
[0078] In this embodiment of the application, 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 sleep state.
[0079] In this embodiment of the application, when the target users are all 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 sleep state, which can reduce the power consumption of the smart door lock and thus improve the door lock's battery life.
[0080] Step S1044: When the target user inside the room is active, control the external lock module and the external acquisition module to enter a sleep state.
[0081] In this embodiment, if the target user is active, and there is no target user outdoors, the only way to unlock the door is from the inside. Therefore, the outer lock body module and the outer acquisition module can be put into a sleep state, while the inner acquisition module and the inner lock body module work normally.
[0082] In this embodiment, by controlling the external lock module and the external acquisition module to enter a sleep state when the target user inside is active, the power consumption of the smart lock can be reduced while ensuring the user's unlocking experience inside, thereby improving the lock's battery life.
[0083] In some embodiments, after step S104, the method further includes:
[0084] Step S105: Obtain preset trigger information.
[0085] In this embodiment, 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 user contact with the door lock handle is detected, it is determined that the user intends to unlock the door, and preset trigger information is obtained. In some embodiments, a wake-up operation for the door lock may include: a fixed action, gesture, etc. When a wake-up operation for the door lock is detected, preset trigger information is obtained.
[0086] Step S106: Activate the target module based on the trigger information to exit the sleep mode.
[0087] In this embodiment of the application, if the preset trigger information is obtained, the target modules are activated, exit the hibernation mode, and enter the normal working mode.
[0088] Continuing with the example above, if the inner locking module and the inner acquisition module enter sleep mode and then receive trigger information, they will be woken up. Alternatively, if all target modules enter sleep mode, they will all be woken up upon receiving trigger information.
[0089] By setting trigger information to wake up the target module in sleep mode, energy consumption can be further reduced, thereby further improving the door lock's battery life.
[0090] Based on the foregoing embodiments, this application further provides a door lock control method. In this embodiment, the acquisition module is illustrated using a 3D structured light module as an example. Figure 2 This is a schematic diagram illustrating the implementation flow of a smart door lock control method provided in an embodiment of this application, as shown below. Figure 2 As shown, the method includes:
[0091] S01, the door lock itself has a built-in / external 3D structured light module, as well as a photosensitive sensor. When the user uses the door lock, the number of people living together can be manually set (same as the preset number in the above embodiment). The door lock can be manually woken up externally in a low-power state.
[0092] In this embodiment of the application, the user can access the door lock settings page through the management ID and set the number of cohabiting persons on the settings page.
[0093] S02, when the door lock senses someone unlocking or waking it (as per the preset trigger information in the above embodiment), both the built-in and external 3D structured light modules will activate and record the user's movement state through feature scanning. Based on the different movement states detected by the 3D structured light modules at different locations, it will determine whether the user is going out or returning home. The built-in photosensor 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 activated when the door is opened.
[0094] In this embodiment, the built-in 3D structured light module is used to collect the motion state of indoor users, while the external 3D structured light module is used to collect the motion state of outdoor users.
[0095] In this embodiment, the light intensity is higher when a sensitive light source is present, and lower when no sensitive light source is present. The intensity of the light can be used to determine whether the user is in a resting or active state.
[0096] S03 intelligently identifies the number of people indoors based on the number of people living together set by the user and the user's status when the door is opened. Combined with the intelligent identification of the environment and user activity status by the photosensitive sensor, it realizes the intelligent judgment of whether the door lock is in a low power consumption state.
[0097] In this embodiment, when 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 sleep state; when 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 active; when the target users indoors are not active, the internal acquisition module, the external acquisition module, the internal lock body module, and the external lock body module are controlled to enter a sleep state; when the target users indoors are active, the external lock body module and the external acquisition module are controlled to enter a sleep state.
[0098] S04. The built-in photosensitive sensor assists in the judgment. When the photosensitive sensor detects that the indoor light source is bright (the light intensity is greater than the light intensity threshold in the above embodiment), it intelligently determines that the indoor environment is in a state of human activity. When the photosensitive sensor detects that the indoor light source is dim, the 3D structured light module judges the number of people in the room. If the number of people in the room matches the number of people living together, it is determined that the indoor environment is in a state of no human activity, and the door lock enters a low-power operation state.
[0099] 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 "unoccupied". At this time, the outer lock body is in normal working recognition state, while the inner lock body module and the inner acquisition module enter sleep state.
[0100] When a user sets the number of people living together to 2, the smart lock determines that the room is occupied when it detects the following states. At this time, the outer lock body is in a low-power operation mode, and the external 3D structured light module enters sleep mode. It will only enter working state when it detects that the door is open or is passively woken up. In this embodiment, the smart lock determines the occupancy status of the target user in the room as follows: one "out" state, two "out" states followed by one "home" state, or the sum of the "out" and "home" states is 2 and the difference between the "out" and "home" states is 0.
[0101] Based on the foregoing embodiments, this application provides a door lock control device. The various modules and units included in the device can be implemented by a processor in a computer device; of course, they can also be implemented by specific logic circuits. In the implementation process, the processor can be a central processing unit (CPU), a microprocessor unit (MPU), a digital signal processor (DSP), or a field programmable gate array (FPGA), etc.
[0102] This application provides a door lock control device, including:
[0103] The acquisition module is used to acquire the movement state of the target user when unlocking the door;
[0104] The first determining module is used to determine whether the target user is in a homecoming or awaycoming state based on the motion state.
[0105] The second determining module is used to determine the number of target users indoors and / or outdoors based on whether the target user is at home or away from home.
[0106] A control module is used to control the target module of the door lock to enter a sleep state based at least on the number of target users indoors and / or outdoors.
[0107] 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 used for unlocking from the inside, and the external lock body module is used for unlocking from the outside. The internal acquisition module is used to acquire the movement status of indoor users, and the external acquisition module is used to acquire the movement status of outdoor users. Controlling the target module of the door lock to enter a sleep state based at least on the number of target users includes:
[0108] When the number of target users indoors is determined to be 0 and / or the number of target users outdoors is the preset number, the internal acquisition module and the internal lock body module are controlled to enter a sleep state.
[0109] If the number of target users indoors is the preset number and / or the number of target users outdoors is 0, determine whether the target users indoors are active.
[0110] When the target user inside the room is not active, the internal acquisition module, the external acquisition module, the internal lock body module, and the external lock body module are controlled to enter a sleep state.
[0111] When the target user inside the room is active, the external lock module and the external acquisition module are put into a sleep state.
[0112] In some embodiments, determining whether the user in the room is active includes:
[0113] Obtain the indoor light intensity;
[0114] The determination of whether the target user in the room is active is based on the light intensity, wherein if the light intensity is greater than a light intensity threshold, the target user in the room is determined to be active, and if the light intensity is less than the light intensity threshold, the target user in the room is determined to be inactive.
[0115] In some embodiments, the door lock module further includes: a photosensor, the photosensor being used to detect indoor light intensity, wherein acquiring indoor light intensity includes:
[0116] The light intensity in the room is obtained through the photosensitive sensor.
[0117] In some embodiments, the internal acquisition module includes a first 3D structured light module, and the external acquisition module includes a second 3D structured light module. Determining whether the user is in a homecoming or away state based on the motion state includes:
[0118] The first motion state of the target user is obtained based on the first 3D structured light module;
[0119] The second motion state of the target user is obtained based on the second 3D structured light module;
[0120] Based on the first and second motion states, it is determined whether the target user is in a homecoming or awaycoming state.
[0121] In some embodiments, the method further includes:
[0122] Obtain preset trigger information;
[0123] The target module is activated based on the trigger information to exit the sleep mode.
[0124] It should be noted that, in the embodiments of this application, if the above-described door lock control method is implemented as 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 embodiments of this application, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), magnetic disks, or optical disks. Thus, the embodiments of this application are not limited to any specific hardware and software combination.
[0125] Accordingly, embodiments of this application provide a computer-readable storage medium storing a computer program thereon, characterized in that, when executed by a processor, the computer program implements the steps of the door lock control method provided in the above embodiments, wherein a door lock control method includes:
[0126] Obtain the movement state of the target user when unlocking the door;
[0127] Based on the movement status, determine whether the target user is in a homecoming or awaycoming state;
[0128] The number of target users indoors and / or outdoors is determined based on whether the target user is at home or away.
[0129] The target module of the door lock is controlled to enter a sleep state based at least on the number of target users indoors and / or outdoors.
[0130] 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 used for unlocking from the inside, and the external lock body module is used for unlocking from the outside. The internal acquisition module is used to acquire the movement status of indoor users, and the external acquisition module is used to acquire the movement status of outdoor users. Controlling the target module of the door lock to enter a sleep state based at least on the number of target users includes:
[0131] When the number of target users indoors is determined to be 0 and / or the number of target users outdoors is the preset number, the internal acquisition module and the internal lock body module are controlled to enter a sleep state.
[0132] If the number of target users indoors is the preset number and / or the number of target users outdoors is 0, determine whether the target users indoors are active.
[0133] When the target user inside the room is not active, the internal acquisition module, the external acquisition module, the internal lock body module, and the external lock body module are controlled to enter a sleep state.
[0134] When the target user inside the room is active, the external lock module and the external acquisition module are put into a sleep state.
[0135] In some embodiments, determining whether the user in the room is active includes:
[0136] Obtain the indoor light intensity;
[0137] The determination of whether the target user in the room is active is based on the light intensity, wherein if the light intensity is greater than a light intensity threshold, the target user in the room is determined to be active, and if the light intensity is less than the light intensity threshold, the target user in the room is determined to be inactive.
[0138] In some embodiments, the door lock module further includes: a photosensor, the photosensor being used to detect indoor light intensity, wherein acquiring indoor light intensity includes:
[0139] The light intensity in the room is obtained through the photosensitive sensor.
[0140] In some embodiments, the internal acquisition module includes a first 3D structured light module, and the external acquisition module includes a second 3D structured light module. Determining whether the user is in a homecoming or away state based on the motion state includes:
[0141] The first motion state of the target user is obtained based on the first 3D structured light module;
[0142] The second motion state of the target user is obtained based on the second 3D structured light module;
[0143] Based on the first and second motion states, it is determined whether the target user is in a homecoming or awaycoming state.
[0144] In some embodiments, the method further includes:
[0145] Obtain preset trigger information;
[0146] The target module is activated based on the trigger information to exit the sleep mode.
[0147] This application provides an electronic device; Figure 3 This is a schematic diagram of the composition structure of the electronic device provided in the embodiments of this application, such as... Figure 3 As shown, 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 enable communication between these components. The user interface 503 may include a control panel, and the external communication interface 504 may include standard wired and wireless interfaces. The processor 501 is configured to execute a program stored in the memory for a door lock control method to implement the steps in the door lock control method provided in the above embodiment, wherein a door lock control method includes:
[0148] Obtain the movement state of the target user when unlocking the door;
[0149] Based on the movement status, determine whether the target user is in a homecoming or awaycoming state;
[0150] The number of target users indoors and / or outdoors is determined based on whether the target user is at home or away.
[0151] The target module of the door lock is controlled to enter a sleep state based at least on the number of target users indoors and / or outdoors.
[0152] 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 used for unlocking from the inside, and the external lock body module is used for unlocking from the outside. The internal acquisition module is used to acquire the movement status of indoor users, and the external acquisition module is used to acquire the movement status of outdoor users. Controlling the target module of the door lock to enter a sleep state based at least on the number of target users includes:
[0153] If the number of target users indoors is determined to be 0 and / or 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 sleep state.
[0154] If the number of target users indoors is the preset number and / or the number of target users outdoors is 0, determine whether the target users indoors are active.
[0155] When the target user inside the room is not active, the internal acquisition module, the external acquisition module, the internal lock body module, and the external lock body module are controlled to enter a sleep state.
[0156] When the target user inside the room is active, the external lock module and the external acquisition module are put into a sleep state.
[0157] In some embodiments, determining whether the user in the room is active includes:
[0158] Obtain the indoor light intensity;
[0159] The determination of whether the target user in the room is active is based on the light intensity, wherein if the light intensity is greater than a light intensity threshold, the target user in the room is determined to be active, and if the light intensity is less than the light intensity threshold, the target user in the room is determined to be inactive.
[0160] In some embodiments, the door lock module further includes: a photosensor, the photosensor being used to detect indoor light intensity, wherein acquiring indoor light intensity includes:
[0161] The light intensity in the room is obtained through the photosensitive sensor.
[0162] In some embodiments, the internal acquisition module includes a first 3D structured light module, and the external acquisition module includes a second 3D structured light module. Determining whether the user is in a homecoming or away state based on the motion state includes:
[0163] The first motion state of the target user is obtained based on the first 3D structured light module;
[0164] The second motion state of the target user is obtained based on the second 3D structured light module;
[0165] Based on the first and second motion states, it is determined whether the target user is in a homecoming or awaycoming state.
[0166] In some embodiments, the method further includes:
[0167] Obtain preset trigger information;
[0168] The target module is activated based on the trigger information to exit the sleep mode.
[0169] The descriptions of the above embodiments of the electronic devices and storage media are similar to those of the above method embodiments, and have similar beneficial effects. For technical details not disclosed in the embodiments of the computer devices and storage media of this application, please refer to the descriptions of the method embodiments of this application for understanding.
[0170] Based on the foregoing embodiments, this application provides a door lock, including: the aforementioned electronic device, internal acquisition module, external acquisition module, internal lock body module, and external lock body module, wherein the electronic device is communicatively connected to the internal acquisition module, external acquisition module, internal lock body module, and external lock body module.
[0171] It should be noted that the descriptions of the storage medium and device embodiments above are similar to the descriptions of the method embodiments above, and have similar beneficial effects. For technical details not disclosed in the storage medium and device embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.
[0172] It should be understood that the phrase "one embodiment" or "an embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It should be understood that in the various embodiments of this application, the sequence numbers of the above-described processes do not imply a sequential 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 this application. The sequence numbers of the above-described embodiments are merely descriptive and do not represent the superiority or inferiority of the embodiments.
[0173] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0174] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple units or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the controlled or discussed components can be through some interfaces, and the indirect coupling or communication connection between devices or units can be electrical, mechanical, or other forms.
[0175] The units described above as separate components may or may not be physically separate. 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 to achieve the purpose of this embodiment according to actual needs.
[0176] In addition, each functional unit in the various embodiments of this application can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the integrated unit can be implemented in hardware or in the form of hardware plus software functional units.
[0177] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media that can store program code, such as mobile storage devices, read-only memory (ROM), magnetic disks, or optical disks.
[0178] Alternatively, if the integrated units described above are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, or the parts that contribute to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a controller to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROMs, magnetic disks, or optical disks.
[0179] The above description is merely an embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method for controlling a door lock, characterized in that, include: Obtain the movement state of the target user when unlocking the door; Based on the movement status, determine whether the target user is in a homecoming or awaycoming state; The number of target users indoors and / or outdoors is determined based on whether the target user is at home or away. The target module of the door lock is controlled to enter a sleep state based at least on the number of target users indoors and / or outdoors; The door lock module includes an internal acquisition module and an external acquisition module. The internal acquisition module is used to acquire the movement status of indoor users, and the external acquisition module is used to acquire the movement status of outdoor users. The internal acquisition module includes a first 3D structured light module, and the external acquisition module includes a second 3D structured light module. Determining whether a user is home or away based on their motion state includes: acquiring a first motion state of the target user based on the first 3D structured light module; acquiring a second motion state of the target user based on the second 3D structured light module; and determining whether the target user is home or away based on the first and second motion states. The door lock module further includes an inner lock body module and an outer lock body module. The target module of the door lock is controlled to enter a sleep state based at least on the number of target users, including: controlling the inner acquisition module and the inner lock body module to enter a sleep state when the number of target users indoors is 0 and / or the number of target users outdoors is equal to a preset number indoors; determining whether the target users indoors are active when the number of target users indoors is the preset number and / or the number of target users outdoors is 0; controlling the inner acquisition module, the outer acquisition module, the inner lock body module, and the outer lock body module to enter a sleep state when the target users indoors are active; and controlling the outer lock body module and the outer acquisition module to enter a sleep state when the target users indoors are active.
2. The method according to claim 1, characterized in that, Determining whether the user in the room is active includes: Obtain the indoor light intensity; The determination of whether the target user in the room is active is based on the light intensity, wherein if the light intensity is greater than a light intensity threshold, the target user in the room is determined to be active, and if the light intensity is less than the light intensity threshold, the target user in the room is determined to be inactive.
3. The method according to claim 2, characterized in that, The door lock module further includes: a photosensor, which is used to detect the indoor light intensity, and the acquisition of the indoor light intensity includes: The light intensity in the room is obtained through the photosensitive sensor.
4. The method according to claim 1, characterized in that, The method further includes: Obtain preset trigger information; The target module is activated based on the trigger information to exit the sleep mode.
5. A door lock control device, characterized in that, include: The acquisition module is used to acquire the movement state of the target user when unlocking the door; The first determining module is used to determine whether the target user is in a homecoming or awaycoming state based on the motion state. The second determining module is used to determine the number of target users indoors and / or outdoors based on whether the target user is at home or away from home. A control module is used to control the target module of the door lock to enter a sleep state based at least on the number of target users indoors and / or outdoors; wherein the module of the door lock includes: an internal acquisition module and an external acquisition module, the internal acquisition module is used to acquire the movement state of indoor users, and the external acquisition module is used to acquire the movement state of outdoor users; the internal acquisition module includes: a first 3D structured light module, and the external acquisition module includes: a second 3D structured light module; determining whether a user is in a homecoming or awaycoming state based on the movement state includes: acquiring a first movement state of the target user based on the first 3D structured light module; acquiring a second movement state of the target user based on the second 3D structured light module; determining whether the target user is in a homecoming or awaycoming state based on the first and second movement states; the module of the door lock also includes The inner and outer lock modules control the target module of the door lock to enter a sleep state based at least on the number of target users, including: controlling the inner acquisition module and the inner lock module to enter a sleep state 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 indoor users; determining whether the target users indoors are active when it is determined that the number of target users indoors is equal to the preset number and / or the number of target users outdoors is 0; controlling the inner acquisition module, the outer acquisition module, the inner lock module, and the outer lock module to enter a sleep state when the target users indoors are not active; and controlling the outer lock module and the outer acquisition module to enter a sleep state when the target users indoors are active.
6. An electronic device, characterized in that, It includes a memory and a processor, wherein the memory stores a computer program that, when executed by the processor, performs the door lock control method as described in any one of claims 1 to 4.
7. A door lock, characterized in that, include: The electronic device, internal acquisition module, external acquisition module, internal lock body module, and external lock body module as described in claim 6, wherein the electronic device is communicatively connected to the internal acquisition module, external acquisition module, internal lock body module, and external lock body module.
8. A storage medium, characterized in that, The 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 described in any one of claims 1 to 4.
Citation Information
Patent Citations
Air conditioner and method for controlling same to operate in energy-saving manner
CN101995069A
Door lock control method and device, storage medium, control equipment and door lock
CN115661980A
Intelligent lock and automatic door
CN214042397U
Room entering / leaving controlling device
JP1993035952A