Door lock control method and device, door lock and storage medium
By detecting indoor users and outputting unlocking prompts in the smart door lock, the waiting problem caused by consecutive failed unlocking attempts is solved, thus improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- MIDEA INTELLIGENT LIGHTING & CONTROLS TECHNOLOGY CO LTD
- Filing Date
- 2024-12-03
- Publication Date
- 2026-06-05
AI Technical Summary
Smart door locks enter an invalid input state after multiple failed unlocking attempts, resulting in excessively long waiting times and negatively impacting user experience.
After a user fails to unlock the door a preset number of times, the system checks if there are other users inside. If so, it outputs an unlocking prompt message so that the user inside can open the door for the user outside, reducing waiting time.
By notifying indoor users to unlock the door, the waiting time for authorized outdoor users is reduced, thus improving the user experience.
Smart Images

Figure CN122157393A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of smart door lock technology, and in particular to door lock control methods, devices, door locks and storage media. Background Technology
[0002] Currently, to improve security, when a user unlocks the door incorrectly multiple times in a row, the smart lock will automatically enter an invalid input state, which generally lasts for at least 90 seconds.
[0003] However, due to issues such as insensitive fingerprint recognition and elderly users easily forgetting passwords, some users frequently encounter multiple consecutive unlocking errors when using smart locks. This forces users to wait at least 90 seconds before attempting to unlock again, a lengthy process that negatively impacts the user experience. Summary of the Invention
[0004] To address the aforementioned technical problems, this disclosure provides a door lock control method, device, door lock, and storage medium.
[0005] In a first aspect, this disclosure provides a door lock control method, including:
[0006] If the first user waiting to enter is an authorized user and the number of times the first user fails to unlock using the unlock information to be verified reaches a first preset number, the door lock is controlled to enter a locked state. In the locked state, the first user cannot continue to unlock using the unlock information to be verified.
[0007] Detect whether a second user is present in the room;
[0008] If the presence of the second user is detected indoors, an unlocking prompt message is output so that the second user can unlock the door for the first user.
[0009] Secondly, this disclosure also provides a door lock control device, comprising:
[0010] The first control module controls the door lock to enter a locked state if the first user to enter is an authorized user and the number of times the first user fails to unlock using the unlock information to be verified reaches a first preset number. In the locked state, the first user cannot continue to unlock using the unlock information to be verified.
[0011] The first detection module is used to detect whether a second user is present indoors;
[0012] The first output module is used to output an unlocking prompt message if the presence of the second user is detected indoors, so that the second user can unlock the door for the first user.
[0013] Thirdly, this disclosure also provides a door lock, including:
[0014] processor;
[0015] Memory, used to store executable instructions;
[0016] The processor is used to read executable instructions from memory and execute the executable instructions to implement the door lock control method of the first aspect mentioned above.
[0017] Fourthly, this disclosure also provides a computer-readable storage medium storing a computer program that, when executed by a processor, causes the processor to implement the door lock control method of the first aspect described above.
[0018] The technical solution provided in this disclosure has the following advantages compared with the prior art:
[0019] The door lock control method, device, door lock, and storage medium disclosed herein can open the door for an authorized user outside the door by notifying a second user inside the door to unlock it after the first user attempting to enter fails to unlock the door. This reduces the waiting time for the authorized user outside the door and improves the user experience. Attached Figure Description
[0020] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0021] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0022] Figure 1 A schematic flowchart of a door lock control method provided in an embodiment of this disclosure;
[0023] Figure 2 This is a schematic diagram of the structure of a door lock control device provided in an embodiment of the present disclosure;
[0024] Figure 3 This is a schematic diagram of the structure of a door lock provided in an embodiment of this disclosure. Detailed Implementation
[0025] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.
[0026] It should be understood that the steps described in the method embodiments of this disclosure may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.
[0027] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below.
[0028] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are used only to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.
[0029] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".
[0030] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
[0031] Figure 1 This is a flowchart illustrating a door lock control method provided in an embodiment of the present disclosure.
[0032] In some embodiments of this disclosure, Figure 1 The method shown can be applied to door locks. For example... Figure 1 As shown, the door lock control method may include the following steps.
[0033] S110. If the first user waiting to enter is an authorized user and the number of times the first user fails to unlock using the unlock information to be verified reaches a first preset number, control the door lock to enter the locked state. In the locked state, the first user cannot continue to unlock using the unlock information to be verified.
[0034] Specifically, for a door lock, an authorized user refers to someone who is authorized to use the door lock. For example, authorized users may include the owner of the door lock and / or authorized visitors, but are not limited to these.
[0035] Specifically, the first user is the user waiting to enter the door from outside.
[0036] Specifically, the unlock information to be verified refers to the information used to verify the user's identity to determine whether to unlock the door. The specific form of the unlock information to be verified may include passwords, fingerprints, facial information, card information (RFID cards or NFC cards), etc., but is not limited to these.
[0037] Specifically, the specific value of the first preset number of times can be set by those skilled in the art according to the actual situation, and is not limited here. For example, the first preset number of times is 1, 3 or 5, but is not limited to this.
[0038] Specifically, when the door lock is locked, users are prohibited from using the information to be verified for unlocking.
[0039] It should be noted that the duration for which the door lock remains locked can be set by those skilled in the art according to actual circumstances, and is not limited here. For example, the duration for which the door lock remains locked is greater than or equal to 90 seconds, but is not limited to this.
[0040] In some embodiments, S110 includes: S111, obtaining the unlock information to be verified provided by the first user.
[0041] S112. Determine the confidence level of the unlock information to be verified, wherein the confidence level is used to characterize the degree of matching between the unlock information to be verified and the qualified unlock information.
[0042] S113. If the confidence level is less than the first threshold, prompt the first user to provide the unlock information to be verified again, and return to the step of obtaining the unlock information to be verified provided by the first user who is about to start, until the number of times the first user provides the unlock information to be verified is equal to the first set number and the confidence level of the unlock information to be verified provided each time is less than the first threshold, or the confidence level of the unlock information to be verified provided by the first user is greater than or equal to the first threshold.
[0043] Specifically, the specific value of the first threshold can be set by those skilled in the art according to the actual situation, and is not limited here. For example, the first threshold is 90% or 95%, etc., but is not limited to this.
[0044] Specifically, there are various implementation methods for prompting the first user to provide the unlock information to be verified again. Typical examples are described below, but these do not constitute a limitation of this disclosure. For example, a prompt message is output, whereby the prompt message is used to remind the first user to provide the unlock information to be verified again.
[0045] As a further example, the output providing the prompt message again includes: the display device controlling the door lock displays the prompt message again;
[0046] And / or, obtain the current time period to which the current time belongs. If the current time period is a rest period, the sound device controlling the door lock outputs the prompt information again according to the first set volume. If the current time period is not a rest period, the sound device controlling the door lock outputs the prompt information again according to the second set volume. The first set volume is less than the second set volume. In this way, it can avoid disturbing the rest of family members and neighbors due to the prompt sound being too loud during the rest period.
[0047] And / or, the lighting device controlling the door lock (such as the button device in the button area) is turned on according to a first preset lighting mode, wherein the first preset lighting mode is matched with the prompt information being provided again.
[0048] Specifically, the door lock can acquire or calibrate its time by connecting to the internet, receiving timing radio waves, or other means.
[0049] Specifically, users can pre-set rest periods (e.g., lights from 10:00 PM to 6:00 AM the next day, but are not limited to this) and non-rest periods on the door lock. In some examples, users can also set a low-volume alert sound during rest periods (i.e., a first set volume) and a low-volume alert sound during non-rest periods (i.e., a second set volume). Of course, in other examples, users can also pre-set the second set volume, and the first set volume can be automatically generated based on the second set volume to reduce the user's setting operations.
[0050] Specifically, the specific value of the first set number of times can be set by those skilled in the art according to the actual situation, and is not limited here. For example, the first set number of times is 3 times, but it is not limited to this.
[0051] Specifically, if the confidence level of the unlocking information provided by the first user in a certain instance is greater than or equal to the first threshold, the unlocking information is determined to be qualified, and the door lock is unlocked.
[0052] S114. If the number of times the first user provides unlock information to be verified is equal to the first set number and the confidence level of each provided unlock information to be verified is less than the first threshold, detect whether the first user is an authorized user.
[0053] S115. If the first user is an authorized user, control the door lock to enter the locked state;
[0054] Alternatively, if the first user is an authorized user, prompt the first user to enter the unlock information to be verified again, and return to the step of obtaining the unlock information to be verified entered by the first user who is about to start, until the number of times the first user enters the unlock information to be verified is equal to the second set number and the confidence level of each entered unlock information to be verified is less than the first threshold.
[0055] If the number of times the first user enters the unlock information to be verified is equal to the second set number and the confidence level of each entered unlock information is less than the first threshold, the door lock is controlled to enter the locked state.
[0056] Specifically, in some embodiments, if the first user waiting to enter provides unlocking information to be verified a first set number of times, and the confidence level of each provided unlocking information is less than a first threshold, and the first user is an authorized user, the door lock is controlled to enter a locked state. In this case, the first set number of times is a first preset number of times. In this way, the door can enter a locked state as soon as possible, thereby notifying the indoor user to open the door for the first user outside as soon as possible.
[0057] Specifically, in some embodiments, if the first user seeking entry provides unlocking information a first set number of times, and the confidence level of each provided unlocking information is less than a first threshold, and the first user is an authorized user, the first user is prompted to provide unlocking information again, and the unlocking information provided by the first user is retrieved again, and the confidence level of the unlocking information is determined again, until the first user inputs unlocking information a second set number of times, and the confidence level of each input is less than the first threshold, the door lock is controlled to enter a locked state. At this time, the second set number of times is the same as the first preset number of times. In this way, the first user is given more unlocking opportunities, increasing the probability of the first user successfully unlocking.
[0058] S120, Detect whether there is a second user in the room.
[0059] Specifically, the second user is the user who has already entered the room.
[0060] In some embodiments, detecting whether a second user exists indoors includes: identifying the user entering the room and recording the user's entry information when the user unlocks the door, and identifying the user leaving the room and recording the user's exit information when the user unlocks the door and exits the room.
[0061] Based on user entry and exit information, detect whether a second user is present indoors;
[0062] Alternatively, it can receive monitoring information sent by an indoor monitoring system and determine whether a second user exists indoors based on the monitoring information, wherein the monitoring information is used to characterize whether a second user exists indoors.
[0063] Specifically, user entry information can include the entry time and the user's identity information, while user exit information can include the exit time and the user's identity information, which facilitates subsequent statistics on whether a second user exists indoors.
[0064] Specifically, there are various implementation methods for identifying and recording entry and exit information of users entering and leaving the door. Typical examples are described below, but these do not constitute a limitation of this disclosure. For instance, a door lock is equipped with an image recognition device. When a user unlocks the door to enter, the image recognition device can identify the user and record their entry information; when a user unlocks the door to leave, the image recognition device can identify the user and record their exit information.
[0065] Understandably, by using user entry and exit information, it is possible to clearly know who entered the room, when, and when they left, thus reducing the possibility of misjudgment.
[0066] Specifically, an indoor monitoring system can capture indoor footage in real time and then detect the presence of a second user inside the room based on the footage. In other examples, the indoor monitoring system can also determine the exact location of a second user inside the room.
[0067] Understandably, using an indoor monitoring system to detect the presence of a second user indoors can save computing resources on door locks, reduce their burden, and optimize resource allocation.
[0068] S130. If a second user is detected indoors, an unlocking prompt message is output so that the second user can unlock the door for the first user.
[0069] In this embodiment of the disclosure, when the door lock is in a locked state, it is detected whether there is a second user inside the room. If there is a second user inside the room, an unlocking prompt message is output so that the second user inside the room can unlock the door for the first user.
[0070] Specifically, the unlocking prompt message is used to prompt the second user inside the door to unlock the door for the authorized user outside the door. In this way, the authorized user outside the door can enter the door as soon as possible without having to wait for the lock to end and then try to unlock it again.
[0071] The door lock control method, device, door lock, and storage medium disclosed herein can open the door for an authorized user outside the door by notifying a second user inside the door to unlock it after the first user attempting to enter fails to unlock the door. This reduces the waiting time for the authorized user outside the door and improves the user experience.
[0072] In other embodiments of this disclosure, the method further includes: obtaining target unlock information, wherein the first user provides multiple unlock information to be verified during the first preset number of unlocking processes, and the target unlock information is one or more of the multiple unlock information to be verified;
[0073] Based on the target unlock information, determine whether the first user is an authorized user.
[0074] Specifically, the understanding of "multiple unlock information to be verified" is as follows: if the number of times the first user provides unlock information to be verified is equal to the first preset number of times, then the first user provides a total of the first preset number of unlock information to be verified, that is, multiple unlock information to be verified.
[0075] Understandably, by setting the system to determine whether the first user is an authorized user based on the target unlock information, the process of determining whether the first user is an authorized user does not require the first user to provide any additional information, which improves convenience.
[0076] In some embodiments, determining whether a first user is an authorized user based on target unlock information includes: inputting the target unlock information into a pre-trained neural network model and obtaining the recognition result of the neural network model regarding whether the first user is an authorized user.
[0077] In other embodiments, determining whether a first user is an authorized user based on the target unlock information includes: determining whether a first user is an authorized user based on the confidence level of the target unlock information, wherein the confidence level is used to characterize the degree of matching between the unlock information to be verified and the qualified unlock information.
[0078] Specifically, qualified unlocking information refers to information that the door lock believes can be used to unlock the door; in other words, it is an unlocking credential that the door lock considers legitimate and correct.
[0079] Specifically, there are various ways to calculate confidence levels. Typical examples are described below, but these do not constitute a limitation of this disclosure. For instance, in password unlocking, confidence can be determined by comparing the similarity between the user-input password and the correct password; in fingerprint recognition, confidence can be determined by comparing the position and orientation of feature points such as ridges, endpoints, and branch points of the user-input fingerprint and the correct fingerprint; in facial recognition, confidence can be determined by comparing features such as facial contours, eye spacing, and nose shape, but these methods are not limited to these.
[0080] Understandably, confidence level can accurately characterize the degree of matching between target unlock information and qualified unlock information. Therefore, determining whether the first user is an authorized user based on the confidence level of the target unlock information can improve the accuracy of identifying whether the first user is an authorized user.
[0081] In some examples, the target unlock information is the unlock information with the highest confidence among multiple unlock information to be verified; wherein, determining whether the first user is an authorized user based on the confidence of the target unlock information includes:
[0082] Determine the difference between the confidence level of the target unlock information and the first threshold;
[0083] If the absolute value of the difference is less than or equal to the second threshold, the first user is determined to be an authorized user.
[0084] If the absolute value of the difference is greater than the second threshold, the first user is determined to be an unauthorized user.
[0085] Specifically, the specific value of the second threshold can be set by those skilled in the art according to the actual situation, and is not limited here. For example, the second threshold is 30% or 50%, but is not limited to this.
[0086] Understandably, due to factors such as the insensitivity of fingerprint recognition and the elderly's tendency to forget passwords, the confidence level of the unlocking information entered by an authorized user may not reach the first threshold. However, in most cases, while it may not reach the first threshold, the difference is not significant. Therefore, the confidence level can be used to distinguish between authorized users and unauthorized users attempting to guess or forge unlocking information. This makes the method of detecting whether the first user is an authorized user simpler, more convenient, and more accurate.
[0087] In other examples, each piece of unlock information to be verified provided by the first user during the first preset number of unlock attempts is a target unlock information. Optionally, determining whether the first user is an authorized user based on the target unlock information includes: calculating the average confidence level of the multiple pieces of unlock information to be verified provided by the first user during the first preset number of unlock attempts; if the average value is greater than a third threshold, determining that the first user is an authorized user; if the average value is less than or equal to the third threshold, determining that the first user is an unauthorized user.
[0088] In some embodiments of this disclosure, if the first user is an unauthorized user, a removal prompt message is output.
[0089] Optionally, the system outputs a eviction warning message, including displaying the eviction warning message on the display device controlling the door lock.
[0090] And / or, obtain the current time period to which the current time belongs. If the current time period is a rest period, output the eviction prompt message according to the first set volume. If the current time period is not a rest period, output the eviction prompt message according to the second set volume. The first set volume is lower than the second set volume. In this way, the loud prompt sound can be avoided to disturb the rest of family members and neighbors during the rest period.
[0091] And / or, the lighting device controlling the door lock (such as the button device in the button area) is turned on according to the second preset lighting mode, wherein the second preset lighting mode is matched with the expulsion prompt information.
[0092] Understandably, once it is determined that the first user to enter is an unauthorized user, removing the unauthorized user by displaying a removal prompt can effectively get the unauthorized user out of the door lock area, thereby improving security.
[0093] In some embodiments of this disclosure, if a second user is detected indoors, an unlocking prompt message is output, including:
[0094] S131. Detect whether there is a second user within a preset range of the door lock.
[0095] Specifically, the specific range covered by the preset range can be set by those skilled in the art according to the actual situation, and is not limited here. For example, the preset range is the range of indoor distance from the door lock that is less than a preset distance, where the preset distance can be 1 meter, 2 meters or 3 meters, etc., but is not limited to this.
[0096] Specifically, there are various implementation methods for detecting the presence of a second user within a preset range of a door lock. Typical examples are described below. In one example, the door lock is equipped with an infrared sensor that detects infrared radiation emitted by the human body. When someone enters its detection range, a signal is triggered. In another example, the location information of indoor users sent by an indoor monitoring system is received, and the presence of a second user within a preset range of the door lock is detected based on the location of the indoor users. However, these are not the only methods.
[0097] S132. If there is a second user within the preset range of the door lock, the display device controlling the door lock will display an unlocking prompt message.
[0098] And / or, obtain the current time period to which the current time belongs. If the current time period is a rest period, output the unlocking prompt message according to the first set volume. If the current time period is not a rest period, output the unlocking prompt message according to the second set volume. The first set volume is lower than the second set volume. In this way, the prompt sound can be avoided from disturbing the rest of family members and neighbors due to being too loud during the rest period.
[0099] And / or, the lighting device controlling the door lock (such as the button device in the button area) is turned on according to the third preset lighting mode, wherein the third preset lighting mode is matched with the unlocking prompt information.
[0100] Understandably, when there is someone within the preset range, it indicates that the user inside is very close to the door lock. In this case, the door lock outputs an unlocking prompt message through sound and light, so that the user inside can promptly notice the unlocking prompt message and unlock the door for the first user outside as quickly and conveniently as possible.
[0101] Optionally, if a second user is detected indoors, the unlocking prompt message is output, which also includes: if there is no second user within a preset range of the door lock, the unlocking prompt message is sent to the second user's terminal device in a set manner.
[0102] Specifically, the setting method may include sending an unlocking prompt message to the indoor user's terminal device in the form of an SMS or APP message, or dialing the second user's terminal device by making a phone call or video call and outputting the unlocking prompt message after the second user answers.
[0103] It is understandable that if there is no second user within the preset range, it means that the second user inside is far from the door lock. Sending an unlocking prompt message to the second user's terminal device in the form of text or telephone can increase the probability that the second user inside knows that help is needed to unlock the door, thereby helping the first user outside to open the door as soon as possible.
[0104] In other embodiments of this disclosure, the first set volume is determined based on the ambient noise of the environment where the door lock is located, and the first set volume is positively correlated with the ambient noise;
[0105] And / or, the second set volume is determined based on ambient noise, and the second set volume is positively correlated with the ambient noise.
[0106] In one example, detect the current ambient noise;
[0107] The step of outputting a eviction prompt message according to a first set volume includes: increasing the first set volume according to the current ambient noise to obtain a final first set volume, so that the final first set volume is positively correlated with the ambient noise; and outputting a eviction prompt message according to the final first set volume.
[0108] The process of outputting an unlocking prompt message according to a first preset volume includes: increasing the first preset volume according to the current ambient noise to obtain a final first preset volume, so that the final first preset volume is positively correlated with the ambient noise; and outputting an unlocking prompt message according to the final first preset volume.
[0109] The step of outputting a eviction prompt message according to a second set volume includes: increasing the second set volume according to the current ambient noise to obtain a final second set volume, so that the final second set volume is positively correlated with the ambient noise; and outputting a eviction prompt message according to the final second set volume.
[0110] The process of outputting an unlocking prompt message according to a second set volume includes: increasing the second set volume according to the current ambient noise to obtain a final second set volume, so that the final second set volume is positively correlated with the ambient noise; and outputting an unlocking prompt message according to the final second set volume.
[0111] Specifically, the detected ambient noise can be converted into a correction factor greater than 1, or a volume compensation value. This correction factor or volume compensation value can then be used to compensate for the first set volume, resulting in the final first set volume. Similarly, the second set volume can be increased based on the current ambient noise to obtain the final second set volume; this will not be elaborated further here.
[0112] It is understandable that by setting the final first preset volume (final second preset volume) to be positively correlated with the ambient noise, the prompts emitted by the door lock can be prevented from being drowned out by the ambient noise, thus increasing the probability that the user can successfully receive the prompts.
[0113] The door lock control method provided in this disclosure will be described in detail below with reference to a specific example.
[0114] Step 1: Collect the unlock information to be verified provided by the first user waiting to enter the door, and compare the unlock information to be verified with the pre-stored qualified unlock information to obtain the confidence level used to characterize the degree of matching between the unlock information to be verified and the qualified unlock information;
[0115] Step 2: If the obtained confidence level is lower than the first threshold (e.g., 90%, 95%, etc.), prompt the first user to provide the unlock information to be verified again, and return to re-execute steps 1 to 2;
[0116] Step 3: After the number of times Step 1 is executed reaches the first set number (e.g., three times, i.e., the first user has entered the unlock information to be verified three times), obtain multiple confidence levels obtained through Step 1, and determine whether the absolute value of the difference between the maximum value of the multiple confidence levels and the first threshold is greater than the second threshold (e.g., 30%, 35%, etc.).
[0117] Step 4: If the absolute value of the above difference is determined to be greater than the second threshold, proceed to step 5; if the absolute value of the above difference is determined to be less than or equal to the second threshold, proceed to step 6.
[0118] Step 5: If the absolute value of the above difference is determined to be greater than the second threshold, then the first user is considered to be an unauthorized user, and the door lock is controlled to perform an alarm and expulsion procedure. In the alarm and expulsion procedure, the current time period is first obtained. If the current time period is a rest period (e.g., 22:00 to 6:00 the next morning), then an expulsion prompt message is issued according to the first set volume, and the light can also be flashed simultaneously. If the current time period is not a rest period, then an expulsion prompt message is issued according to the second set volume, and the light can also be flashed simultaneously. The first set volume is lower than the second set volume. The first set volume can be customized by the user or automatically set according to the second set volume.
[0119] Step 6: If the absolute value of the above difference is determined to be less than or equal to the second threshold, then the first user is considered an authorized user. The first user can be prompted to enter the unlock information to be verified again, and steps 1 to 2 can be executed again until the number of times step 1 is executed reaches the second set number (e.g., five times, i.e., the first user has entered the unlock information to be verified five times). Then, the door lock is controlled to proceed to step 7. Alternatively, if the absolute value of the above difference is determined to be less than or equal to the second threshold, then the first user is considered an authorized user. Then, the first user is no longer prompted to enter the unlock information to be verified again, and the door lock is directly controlled to proceed to step 7.
[0120] Step 7: Control the door lock to enter the invalid input state (the duration of the invalid input state can be set to 90s), thereby preventing the first user from continuing to unlock using the unverified unlock information;
[0121] Step 8: During the process of the door lock entering the invalid input state, detect whether there is a second user inside the house. Specifically, an image recognition unit can be set on the door lock to identify the user and record the user's entry or exit information when the user unlocks the door to enter or exit, thereby detecting whether there is a second user inside the door. Alternatively, it can be linked with the monitoring system inside the user's house to determine whether there is a second user inside the house.
[0122] Step 9: If a second user is detected in the room, proceed to step 10; if no one is detected in the room, proceed to step 13.
[0123] Step 10: If a second user is detected in the house, then check if there is a second user in the house within a preset range of the door lock. If a second user is detected within a preset range of the door lock, proceed to step 11. If no one is detected within a preset range of the door lock, proceed to step 12.
[0124] Step 11: If a second user is detected within the preset range, it means that the user inside the house can easily open the door at this time; if the current time period is a rest period, the doorbell configured on the door lock will emit a prompt voice at the first preset volume to prompt the user inside the house to open the door for the first user; if the current time period is not a rest period, the doorbell configured on the door lock will emit a prompt voice at the second preset volume.
[0125] Step 12: If a second user is detected inside the house and no one is detected within the preset range of the door lock (this means that the user inside the house is unlikely to hear the doorbell when it rings), then the door lock can be controlled to send a text message to the user inside the house or connect to the user's mobile phone, so that the user inside the house knows that they need help unlocking the door.
[0126] Step 13: If no one is detected inside the room, a prompt message is sent to the first user. The prompt message is to remind the user that they need to wait for the door lock to exit the invalid input state before they can continue to enter the unlocking information to be verified.
[0127] In addition, when controlling the alarm to output a eviction warning message or controlling the doorbell to emit a warning voice, environmental noise can also be considered. If environmental noise is detected, the detected environmental noise is converted into a correction coefficient greater than 1 or a volume compensation value, so as to compensate the output volume using the correction coefficient or volume compensation value.
[0128] This embodiment of the invention can reduce the waiting time for authorized users by notifying the users inside the house to open the door after an authorized user fails to unlock the door. Furthermore, after verifying that the user waiting to enter is an unauthorized user, it can drive away the unauthorized user through an intelligent alarm program.
[0129] Figure 2 This is a schematic diagram of a door lock control device provided in an embodiment of the present disclosure.
[0130] In some embodiments of this disclosure, Figure 2 The device shown can be applied to door locks, but is not limited to them. For example... Figure 2 As shown, the door lock control device may include:
[0131] The first control module 210 is configured to control the door lock to enter a locked state if the first user to enter the door is an authorized user and the number of times the first user fails to unlock using the unlock information to be verified reaches a first preset number. In the locked state, the first user cannot continue to unlock using the unlock information to be verified.
[0132] The first detection module 220 is used to detect whether there is a second user indoors;
[0133] The first output module 230 is used to output an unlocking prompt message if the presence of the second user is detected indoors, so that the second user can unlock the door for the first user.
[0134] Optionally, the device further includes: a first acquisition module, configured to acquire target unlock information, wherein the first user provides multiple unlock information to be verified during the first preset number of unlock attempts, and the target unlock information is one or more of the multiple unlock information to be verified;
[0135] The first determining module is used to determine whether the first user is the authorized user based on the target unlock information.
[0136] Optionally, the first determining module includes a first determining submodule, which is used to determine whether the first user is the authorized user based on the confidence level of the target unlock information, wherein the confidence level is used to characterize the degree of matching between the unlock information to be verified and the qualified unlock information.
[0137] Optionally, the target unlock information is the unlock information with the highest confidence among the plurality of unlock information to be verified; wherein, the first determining submodule is specifically used to determine the difference between the confidence of the target unlock information and a first threshold.
[0138] If the absolute value of the difference is less than or equal to the second threshold, the first user is determined to be the authorized user.
[0139] If the absolute value of the difference is greater than the second threshold, the first user is determined to be an unauthorized user.
[0140] Optionally, the device further includes: a second acquisition module, configured to acquire the current time period to which the current time belongs if the first user is an unauthorized user;
[0141] The second output module is used to output a drive-away prompt message at a first set volume if the current time period is a rest period.
[0142] If the current time period is not a rest period, the expulsion prompt message is output according to the second set volume, wherein the first set volume is less than the second set volume.
[0143] The first output module 230 is specifically used to detect whether the second user exists within a preset range of the door lock;
[0144] If the second user exists within a preset range of the door lock, obtain the current time period to which the current moment belongs;
[0145] If the current time period is a rest period, the unlocking prompt message is output at the first set volume.
[0146] If the current time period is not a rest period, the unlocking prompt information is output according to the second set volume, wherein the first set volume is less than the second set volume.
[0147] Optionally, the first output module 230 is further configured to send the unlocking prompt information to the second user's terminal device in a set manner if there is no second user within a preset range of the door lock.
[0148] Optionally, the first set volume is determined based on the ambient noise of the environment where the door lock is located, and the first set volume is positively correlated with the ambient noise;
[0149] And / or, the second set volume is determined based on the ambient noise, and the second set volume is positively correlated with the ambient noise.
[0150] It should be noted that, Figure 2 The door lock control device 200 shown can execute the steps in any of the above method embodiments and achieve the processes and effects in any of the above method embodiments, which will not be elaborated here.
[0151] Figure 3 This is a schematic diagram of a door lock provided in an embodiment of this disclosure. Figure 3 As shown, the door lock may include a processor 301 and a memory 302 storing computer program instructions.
[0152] Specifically, the processor 301 may include a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of this application.
[0153] Memory 302 may include a large-capacity storage for information or instructions. For example, and not limitingly, memory 302 may include a hard disk drive (HDD), a floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or a Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, memory 302 may include removable or non-removable (or fixed) media. Where appropriate, memory 302 may be internal or external to the integrated gateway device. In a particular embodiment, memory 302 is a non-volatile solid-state memory. In a particular embodiment, memory 302 includes read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (Electrically Programmable ROM, EPROM), an electrically erasable programmable PROM (EEPROM), an electrically alterable ROM (EAROM), or flash memory, or a combination of two or more of these.
[0154] The processor 301 can perform the steps in any of the above method embodiments by reading and executing the computer program instructions stored in the memory 302.
[0155] In one example, the door lock may also include a transceiver 303 and a bus 304. Wherein, as... Figure 3 As shown, the processor 301, memory 302 and transceiver 303 are connected via bus 304 and communicate with each other.
[0156] Bus 304 may include hardware, software, or both. For example, and not limitingly, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industrial Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a MicroChannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable buses, or a combination of two or more of these. Where appropriate, bus 304 may include one or more buses. Although specific buses are described and illustrated in the embodiments of this application, this application considers any suitable bus or interconnection.
[0157] This disclosure also provides a computer-readable storage medium that can store a computer program, which, when executed by a processor, enables the processor to implement the door lock control method provided in this disclosure.
[0158] The aforementioned storage medium may include, for example, a memory 302 containing computer program instructions, which can be executed by the lock's processor 301 to complete the lock control method provided in this embodiment. Optionally, the storage medium may be a non-transitory computer-readable storage medium, such as a ROM, random access memory (RAM), compact disc-only memory (CD-ROM), magnetic tape, floppy disk, and optical data storage device.
[0159] The above description is merely a specific embodiment of this disclosure, enabling those skilled in the art to understand or implement it. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this disclosure. Therefore, this disclosure is not to be limited to the embodiments described herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A door lock control method, characterized in that, include: If the first user waiting to enter is an authorized user and the number of times the first user fails to unlock using the unlock information to be verified reaches a first preset number, the door lock is controlled to enter a locked state. In the locked state, the first user cannot continue to unlock using the unlock information to be verified. Detect whether a second user is present in the room; If the presence of the second user is detected indoors, an unlocking prompt message is output so that the second user can unlock the door for the first user.
2. The method according to claim 1, characterized in that, Also includes: Obtain target unlock information, wherein the first user provides multiple unlock information to be verified during the first preset number of unlock attempts, and the target unlock information is one or more of the multiple unlock information to be verified. Based on the target unlock information, determine whether the first user is the authorized user.
3. The method according to claim 2, characterized in that, Determining whether the first user is the authorized user based on the target unlock information includes: Based on the confidence level of the target unlock information, it is determined whether the first user is the authorized user, wherein the confidence level is used to characterize the degree of matching between the unlock information to be verified and the qualified unlock information.
4. The method according to claim 3, characterized in that, The target unlocking information is the unlocking information with the highest confidence among the plurality of unlocking information to be verified; The step of determining whether the first user is the authorized user based on the confidence level of the target unlock information includes: Determine the difference between the confidence level of the target unlock information and the first threshold; If the absolute value of the difference is less than or equal to the second threshold, the first user is determined to be the authorized user. If the absolute value of the difference is greater than the second threshold, the first user is determined to be an unauthorized user.
5. The method according to claim 1, characterized in that, Also includes: If the first user is an unauthorized user, obtain the current time period to which the current moment belongs; If the current time period is a rest period, output a drive-away prompt message at the first set volume. If the current time period is not a rest period, the expulsion prompt message is output according to the second set volume, wherein the first set volume is less than the second set volume.
6. The method according to claim 1, characterized in that, If a second user is detected indoors, an unlocking prompt message is output, including: Detect whether the second user exists within a preset range of the door lock; If the second user exists within a preset range of the door lock, obtain the current time period to which the current moment belongs; If the current time period is a rest period, the unlocking prompt message is output at the first set volume. If the current time period is not a rest period, the unlocking prompt information is output according to the second set volume, wherein the first set volume is less than the second set volume.
7. The method according to claim 6, characterized in that, The step of outputting an unlocking prompt message if a second user is detected indoors also includes: If the second user is not within the preset range of the door lock, the unlocking prompt message is sent to the second user's terminal device according to the set method.
8. The method according to claim 4 or 6, characterized in that, The first set volume is determined based on the ambient noise of the environment where the door lock is located, and the first set volume is positively correlated with the ambient noise. And / or, the second set volume is determined based on the ambient noise, and the second set volume is positively correlated with the ambient noise.
9. A door lock control device, characterized in that, include: The first control module controls the door lock to enter a locked state if the first user to enter is an authorized user and the number of times the first user fails to unlock using the unlock information to be verified reaches a first preset number. In the locked state, the first user cannot continue to unlock using the unlock information to be verified. The first detection module is used to detect whether a second user is present indoors; The first output module is used to output an unlocking prompt message if the presence of the second user is detected indoors, so that the second user can unlock the door for the first user.
10. A door lock, characterized in that, include: processor; Memory, used to store executable instructions; The processor is configured to read the executable instructions from the memory and execute the executable instructions to implement the door lock control method according to any one of claims 1-8.
11. A computer-readable storage medium, characterized in that, The storage medium stores a computer program that, when executed by a processor, causes the processor to implement the door lock control method according to any one of claims 1-8.