An unlocking method, an intelligent door lock and a storage medium
By using one execution end and lock state verification in the smart door lock, the problems of complex structure and large size are solved, and the security and applicability are improved.
Patent Information
- Application Number
- CN202310559520.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-17
- Publication Date
- 2025-07-18
- Estimated Expiration
- 2043-05-17
AI Technical Summary
The existing smart door locks need to integrate both ordinary locking structures and anti-locking structures, resulting in complex structures and large sizes.
An execution end controls the lock tongue insertion or exit pin hole, combining lock state verification and permission management, determines the lock state by verifying the password and generates unlocking instructions, limits the reception of unlocking instructions, and only receives unlocking instructions when there is no locking state.
The structure of smart door locks is simplified, the volume is reduced, and the security and applicability are improved through permission management.
Smart Images

Figure CN116543482B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of electronic lock technology, and in particular to an unlocking method, a smart door lock and a storage medium. Background Art
[0002] Electronic locks, also known as smart door locks, are gradually replacing traditional mechanical locks due to their advantages of no need to carry keys, high security performance, and ease of use. In order to protect the privacy of users, smart door locks currently on the market are all equipped with a reverse lock structure, which is superimposed on the ordinary lock, so that the door cannot be opened from the outside using the password or key that unlocks the ordinary lock. The reverse lock structure of the smart door lock has the same principle as the reverse lock structure of the traditional mechanical lock.
[0003] The smart door lock in the related art includes a common locking structure and an anti-locking structure. The common locking structure and the anti-locking structure of the smart door lock each include a lock tongue and an execution end for driving the corresponding lock tongue to enter or exit the pin hole, wherein the execution end may use a driving motor. In other words, the smart door lock in the related art includes at least two execution ends for controlling the smart door lock to enter or exit the physical locking state.
[0004] The inventor believes that the smart door lock in the related art needs to integrate both the ordinary locking structure and the mechanical anti-locking structure, and is provided with two corresponding execution ends. The structure is relatively complex, which results in a larger size of the smart door lock. Summary of the invention
[0005] In order to simplify the structure of a smart door lock and reduce the size of the smart door lock, the present application provides an unlocking method, a smart door lock and a storage medium.
[0006] In the first aspect, the present application provides a method for unlocking a lock, which adopts the following technical solution:
[0007] A method for unlocking a door, wherein the smart door lock includes an execution end, wherein the execution end can drive a lock tongue to insert into a pin hole to achieve physical locking or drive the lock tongue to exit the pin hole to release the physical locking, and the method includes:
[0008] Receive a verification password for verification to determine a first verification result, wherein the first verification result represents the current lock state of the smart door lock, wherein the lock state is one of a common lock state, an anti-lock lock state, and an unlock state, and a verification password with corresponding authority can unlock the corresponding lock state and change the lock state to an unlock state, and a verification password with authority to unlock the anti-lock lock state also has authority to unlock the common lock state;
[0009] If the first verification result is an unlocked state, receiving unlock instruction information, in the common locked state or the reverse locked state, the smart door lock cannot receive the unlock instruction information;
[0010] An unlock instruction is generated based on the unlock indication information, and the unlock instruction is used to control the execution end to drive the lock tongue to exit the pin hole to release the physical locking state of the smart door lock.
[0011] By adopting the above technical solution, the smart door lock controls the smart door lock to enter or exit the physical lock state through an execution end, and limits the reception of unlock instruction information through the lock state, thereby limiting whether the unlock instruction input by the user can be received. If the verification password input by the user makes the first verification result determined as the ordinary lock state or the reverse lock state, then even if the user enters the unlock instruction, the smart door lock cannot exit the physical lock state. Only when the verification password input by the user makes the first verification result determined as the unlocked state, the unlock instruction triggered by the user can be received by the smart door lock, thereby making the smart door lock exit the physical lock state. That is, the reverse lock state and the ordinary lock state are used as logical conditions to limit whether the processor can receive the unlock instruction information input by the user, so that the smart door lock can use fewer execution ends, thereby reducing the size of the smart door lock.
[0012] In a possible implementation, receiving a verification password for verification to determine a first verification result includes:
[0013] Determine the locking logic of the smart door lock, the locking logic is a common locking logic or a reverse locking logic, the common locking logic corresponds to a common locking state, and the reverse locking logic corresponds to a reverse locking state;
[0014] Verifying the authenticity of the verification password and determining a second verification result;
[0015] If the second verification result is true, determining that the verification password is a valid password;
[0016] Determine the authority level of the valid password, the authority level indicates whether the corresponding valid password has the authority to release the anti-locking logic, and any valid password corresponding to the authority level has the authority to release the ordinary locking logic;
[0017] determining a first verification result based on the permission level of the valid password and the locking logic;
[0018] If the second verification result is false, the first verification result is determined to be a locking state corresponding to the locking logic.
[0019] By adopting the above technical solution, the first verification result, that is, the lock state of the smart door lock, is determined according to the lock logic of the smart door lock and the authority level of the valid password. Therefore, valid passwords corresponding to different authority levels can release different lock logics, so that the smart door lock enters an unlocked state, that is, after the smart door lock enters the anti-lock logic, only a password with a specific authority level can be released, without the need to use a complex mechanical structure or multiple execution terminals, thereby reducing the size of the smart door lock; at the same time, during use, valid passwords of different authority levels can be assigned to different users according to actual conditions, thereby improving the security performance of the smart door lock.
[0020] In a possible implementation, the performing authenticity verification on the verification password and determining a second verification result includes:
[0021] Comparing the verification password with the obtained check password, and if there is a check password matching the verification password, determining that the second verification result is true;
[0022] If there is no verification password matching the verification password, it is determined that the second verification result is false.
[0023] By adopting the above technical solution, the verification password entered by the user is compared with the verification password when unlocking, and it is determined whether there is a verification password that matches the verification password, so as to determine the authenticity of the second verification result, that is, to determine whether the verification password has the authority to release a certain locking logic. In this way, valid passwords can be assigned according to different types of personnel and different scenarios, which can protect the privacy and security of users and have stronger applicability.
[0024] In one possible implementation, determining the permission level of the valid password includes:
[0025] Obtain a mapping relationship table, wherein the mapping relationship table includes each verification password and the permission level corresponding to each verification password;
[0026] The authority level of the verification password matching the valid password is determined based on the mapping relationship table.
[0027] By adopting the above technical solution, the corresponding relationship between each verification password and its permission level exists in the mapping relationship table, so that when the password to be verified is determined to be a valid password, the permission level of the valid password can be correspondingly judged, which is convenient for users to confirm the permission level of the valid password.
[0028] In one possible implementation, determining the locking logic of the smart door lock includes:
[0029] Confirm whether there is anti-lock information, and the anti-lock information is used to indicate that the smart door lock is in anti-lock logic;
[0030] If the anti-lock information exists, determining that the smart door lock is in the anti-lock logic;
[0031] If the anti-lock information does not exist, it is determined that the smart door lock is in the normal locking logic.
[0032] By adopting the above technical solution, if there is anti-lock information in the smart door lock, it means that the user has sent an anti-lock command to the smart door lock, and the smart door lock is in the anti-lock logic; if there is no anti-lock information in the smart door lock, it means that the user has not sent an anti-lock command to the smart door lock, and the smart door lock is in the normal lock logic; thus, by determining the anti-lock information, it can be determined whether the smart door lock is in the normal lock logic or the anti-lock logic.
[0033] In one possible implementation, the method further includes:
[0034] If a preset number of verification passwords are received within a preset period, and the second verification results of the verification passwords are all false, an emergency instruction is output to make the smart door lock enter the emergency anti-locking logic;
[0035] Generate a valid password to release the emergency anti-lock logic based on the verification password received a preset number of times.
[0036] By adopting the above technical solution, if the smart door lock receives a preset number of passwords to be verified within a preset period and the verification results are all false, it means that a stranger may be trying to unlock the lock. To ensure safety, the smart door lock enters the emergency anti-lock logic. At the same time, the smart door lock generates a valid password to release the emergency anti-lock logic. The valid password for releasing the emergency anti-lock logic is generated in real time based on the user's incorrect verification passwords entered several times. Therefore, each time the smart door lock enters the emergency anti-lock logic, the generated valid password is different, which can further ensure privacy and security.
[0037] In a second aspect, the present application provides an unlocking device, which adopts the following technical solution:
[0038] An unlocking device, comprising:
[0039] A verification password receiving and verification module is used to receive the verification password for verification to determine a first verification result, wherein the first verification result represents the current locking state of the smart door lock, wherein the locking state is one of a common locking state, an anti-locking locking state, and an unlocking state, and a verification password with corresponding authority can unlock the corresponding locking state and make the locking state become an unlocking state, and a verification password with authority to unlock the anti-locking locking state also has authority to unlock the common locking state;
[0040] An unlock instruction information receiving module, used for receiving unlock instruction information when the first verification result is an unlocked state, and the smart door lock cannot receive the unlock instruction information in the common locked state or the reverse locked state;
[0041] An unlock instruction generation execution module is used to generate an unlock instruction based on the unlock indication information, and the unlock instruction is used to control the execution end to drive the lock tongue to exit the pin hole to release the physical locking state of the smart door lock.
[0042] By adopting the above technical solution, the smart door lock controls the smart door lock to enter or exit the physical lock state through an execution end, and limits the reception of unlock instruction information through the lock state, thereby limiting whether the unlock instruction input by the user can be received. If the verification password input by the user makes the first verification result determined as the ordinary lock state or the reverse lock state, then even if the user enters the unlock instruction, the smart door lock cannot exit the physical lock state. Only when the verification password input by the user makes the first verification result determined as the unlocked state, the unlock instruction triggered by the user can be received by the smart door lock, thereby making the smart door lock exit the physical lock state. That is, the reverse lock state and the ordinary lock state are used as logical conditions to limit whether the processor can receive the unlock instruction information input by the user, so that the smart door lock can use fewer execution ends, thereby reducing the size of the smart door lock.
[0043] In one possible implementation, the verification password receiving verification module is specifically used to:
[0044] Determine the locking logic of the smart door lock, the locking logic is a common locking logic or a reverse locking logic, the common locking logic corresponds to a common locking state, and the reverse locking logic corresponds to a reverse locking state;
[0045] Verifying the authenticity of the verification password and determining a second verification result;
[0046] If the second verification result is true, determining that the verification password is a valid password;
[0047] Determine the authority level of the valid password, the authority level indicates whether the corresponding valid password has the authority to release the anti-locking logic, and any valid password corresponding to the authority level has the authority to release the ordinary locking logic;
[0048] determining a first verification result based on the permission level of the valid password and the locking logic;
[0049] If the second verification result is false, the first verification result is determined to be a locking state corresponding to the locking logic.
[0050] In a possible implementation, when the verification password verification receiving module verifies the authenticity of the verification password, it is specifically used to:
[0051] Comparing the verification password with the obtained check password, and if there is a check password matching the verification password, determining that the second verification result is true;
[0052] If there is no verification password matching the verification password, it is determined that the second verification result is false.
[0053] In a possible implementation, when determining the permission level of the valid password, the verification password receiving module is specifically used to:
[0054] Obtain a mapping relationship table, wherein the mapping relationship table includes each verification password and the permission level corresponding to each verification password;
[0055] The authority level of the verification password matching the valid password is determined based on the mapping relationship table.
[0056] In one possible implementation, the verification password verification receiving module determines the locking logic of the smart door lock, specifically for:
[0057] Confirm whether there is anti-lock information, and the anti-lock information is used to indicate that the smart door lock is in anti-lock logic;
[0058] If the anti-lock information exists, determining that the smart door lock is in the anti-lock logic;
[0059] If the anti-lock information does not exist, it is determined that the smart door lock is in a normal locking logic. In a possible implementation, the device further includes:
[0060] The emergency anti-locking logic determination module receives a preset number of verification passwords within a preset period, and the second verification results of the verification passwords are all false, and then outputs an emergency instruction to make the smart door lock enter the emergency anti-locking logic;
[0061] The emergency anti-lock password generation module generates a valid password for releasing the emergency anti-lock logic based on the verification passwords received a preset number of times.
[0062] In a third aspect, the present application provides a smart door lock, which adopts the following technical solution:
[0063] A smart door lock, comprising:
[0064] An execution end, which can drive the lock tongue to insert into the pin hole to achieve physical locking or drive the lock tongue to exit the pin hole to release the physical locking;
[0065] An input unit that inputs a verification password to be received by a processor;
[0066] At least one processor;
[0067] A memory;
[0068] At least one application program, wherein the at least one application program is stored in the memory and configured to be executed by at least one processor, and the at least one application program is configured to: execute the above unlocking method.
[0069] In a possible implementation manner, the intelligent door lock further includes:
[0070] An electromagnetic clutch, wherein the front handle is fixedly connected to a rotating end of the electromagnetic clutch, and the rear handle is fixedly connected to another rotating end of the electromagnetic clutch; when the electromagnetic clutch is powered on, the two rotating ends rotate synchronously, and when the electromagnetic clutch is not powered on, the two rotating ends rotate independently;
[0071] Wherein, in the normal locked state and the anti-lock locked state, the electromagnetic clutch is not powered on, and in the non-locked state, the electromagnetic clutch is powered on;
[0072] It further includes an unlocking indication information trigger, which can detect the rotation angle of the rear handle and trigger unlocking indication information to be received by the processor when the rotation angle is greater than or equal to a preset angle.
[0073] In a fourth aspect, the present application provides a computer-readable storage medium, adopting the following technical solution:
[0074] A computer-readable storage medium, including: a computer program stored that can be loaded and executed by a processor to execute the above unlocking method.
[0075] In summary, the present application includes at least one of the following beneficial technical effects:
[0076] 1. The intelligent door lock controls the intelligent door lock to enter or exit the physical locked state through an execution end, and restricts the reception of unlocking indication information through the locked state, thereby restricting whether the unlocking instruction input by the user can be received. If the verification password input by the user makes the first verification result determined to be the normal locked state or the anti-lock locked state, even if the user inputs an unlocking instruction, the intelligent door lock cannot exit the physical locked state. Only when the verification password input by the user makes the first verification result determined to be the non-locked state, the unlocking instruction triggered by the user can be received by the intelligent door lock at this time, thereby enabling the intelligent door lock to exit the physical locked state. That is, the anti-lock locked state and the normal locked state are used as logical conditions to restrict whether the processor can receive the unlocking indication information input by the user, so that the intelligent door lock can adopt fewer execution ends, and thus the volume of the intelligent door lock can be reduced. Description of the Drawings
[0077] Figure 1 is a schematic flowchart of an unlocking method in an embodiment of the present application;
[0078] Figure 2 is a schematic structural diagram of the front handle and the rear handle connected by an electromagnetic clutch in Embodiment 1 of the present application;
[0079] Figure 3 is a schematic structural diagram of the forward power supply of the execution end in Embodiment 2 of the present application;
[0080] Figure 4 is a schematic block diagram of an unlocking device in an embodiment of the present application;
[0081] Figure 5 is a schematic structural diagram of an intelligent door lock in an embodiment of the present application.
[0082] Description of the reference numerals: 1. Execution end; 2. Front handle; 3. Rear handle; 4. Electromagnetic clutch. Detailed Embodiment
[0083] The following is a further detailed description of the present application with reference to the attached Figure 1 - attached Figure 5 drawings.
[0084] After reading this specification, those skilled in the art can make modifications to this embodiment without creative contributions as needed, but as long as they are within the scope of the claims of the present application, they are protected by the Patent Law.
[0085] To make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Apparently, the described embodiments are some, but not all, of the embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts fall within the scope of protection of the present application.
[0086] In addition, the term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in this article generally represents an "or" relationship between the associated objects before and after, unless otherwise specified.
[0087] An embodiment of the present application provides an unlocking method, which is executed by a processor. Referring to Figure 1 , the method includes steps S01 - S03, where:
[0088] Step S01, receive the verification password for verification to determine the first verification result, the first verification result represents the current locking state of the smart door lock, the locking state is one of the ordinary locking state, the anti-locking locking state and the unlocked state, the verification password with the corresponding authority can release the corresponding locking state and make the locking state become the unlocked state, and the verification password with the authority to release the anti-locking locking state also has the authority to release the ordinary locking state.
[0089] For the embodiment of the present application, the verification password can be in various forms such as voice, numbers, characters or vital signs information. In the embodiment of the present application, the verification password input is numbers and characters as an example for explanation.
[0090] The verification password is input by the user; the user can input the verification password through the input unit, such as entering the verification password through a touch screen to be collected by a matrix scanning circuit, entering it through a physical keyboard, entering it through a corresponding body part to have the input unit collect vital sign information, or holding a corresponding tag to be recognized by the input unit. The user can also establish communication with the processor through a corresponding terminal device so that the processor can receive the verification password.
[0091] The verification password with corresponding authority can unlock the corresponding lock state and make the smart door lock unlocked, among which the verification password with authority to unlock the ordinary lock state can only unlock the ordinary lock state; the verification password with authority to unlock the reverse lock state also has authority to unlock the ordinary lock state. If the verification password entered by the user does not have authority to unlock the ordinary lock state and / or the reverse lock state, the lock state of the smart door lock represented by the first verification result remains the lock state before receiving the verification password.
[0092] Step S02: if the first verification result is an unlocked state, then receiving unlock instruction information; in a normal locked state or a reverse locked state, the smart door lock cannot receive unlock instruction information;
[0093] Step S03: Generate an unlock instruction based on the unlock indication information, where the unlock instruction is used to control the execution end to drive the lock tongue out of the pin hole to release the physical locking state of the smart door lock.
[0094] For the embodiment of the present application, the unlock instruction information is input by the user. In order to facilitate the user to determine the current first verification result of the smart door lock, that is, to determine the lock state of the smart door lock after the verification password is input, the smart door lock also includes a prompt unit. When the first verification result is an unlocked state, a normal locked state, and an anti-locked locked state, a prompt instruction corresponding to each state is generated, and the prompt instruction controls the prompt unit to perform a corresponding prompt. For example, in the unlocked state, the prompt instruction is information that the green light is on, and in the normal locked state and the anti-locked locked state, the prompt instruction is information that the red light is on.
[0095] For the embodiment of the present application, in one possible implementation method, in the normal lock state or the reverse lock state, the smart door lock cannot receive unlock instruction information, which can be implemented by either method one or method two.
[0096] Method 1: Reference Figure 2 , the smart door lock may also include an electromagnetic clutch 4, one rotating end of the electromagnetic clutch 4 is fixedly connected to the front handle 2, and the other rotating end of the electromagnetic clutch 4 is fixedly connected to the rear handle 3. When the electromagnetic clutch 4 is powered, the two rotating ends of the electromagnetic clutch 4 rotate synchronously, that is, the rotation of either the front handle 2 or the rear handle 3 can drive the other to rotate synchronously; when the electromagnetic clutch 4 is not powered, the two rotating ends of the electromagnetic clutch 4 rotate independently, that is, the front handle 2 and the rear handle 3 rotate independently and do not affect each other. In the actual installation of the smart door lock, the front handle 2 is outside the door, and the rear handle 3 is set inside the door.
[0097] The smart door lock also includes an unlock indication information trigger, which can detect the rotation angle of the rear handle 3 and trigger the unlock indication information to be received by the processor when the rotation angle is greater than or equal to a preset angle. The unlock indication information trigger can be an angle sensor or a Hall sensor. In the embodiment of the present application, a Hall sensor is used as an example for explanation.
[0098] When the smart door lock is in the unlocked state, the electromagnetic clutch 4 is energized, and the unlocking indication information is the change in the induced voltage of the Hall sensor. For example, a magnet may be provided inside the rear handle 3, and the rotation of the front handle 2 drives the rear handle 3 to rotate. The Hall sensor detects the rotation angle of the rear handle 3 through the magnitude of the induced voltage generated by the magnet and the Hall sensor. When the Hall sensor detects that the rotation angle of the rear handle 3 exceeds the preset angle, that is, the induced voltage generated by the Hall sensor exceeds the preset value, the unlocking indication information is triggered. When the smart door lock is in the reverse locking state or the normal locking state, the electromagnetic clutch 4 is not energized. The user turns the front handle 2 outside the door, but the front handle 2 cannot drive the rear handle 3 to rotate, and thus cannot trigger the Hall sensor, and thus cannot trigger the unlocking indication information to be received by the processor.
[0099] Method 2: Reference Figure 3 When the execution end rotates forward, that is, when the output shaft of the driving motor rotates forward, the driving lock tongue exits the pin hole to release the physical lock. Among them, in the control circuit that drives the execution end to rotate forward, there are two normally open switches in series, namely the KM1 switch and the KM2 switch. Among them, when the first verification result is a normal locking state and / or a reverse locking state, the KM1 switch is always disconnected, and the unlocking instruction information input by the user cannot be received by the processor, the forward power supply circuit of the execution end cannot be closed, and the lock tongue is always inserted in the pin hole, and it is impossible to unlock to release the physical lock.
[0100] When the first verification result is in the unlocked state, the KM1 switch closes, and the unlocking instruction information input by the user can be received by the processor. The processor receives the unlocking instruction information input by the user and outputs an unlocking instruction to control the KM2 to close, thereby enabling the forward power supply circuit of the execution end to conduct, and the execution end is powered on to rotate forward to drive the lock tongue out of the pin hole.
[0101] In the related art, since at least one execution end is required for both anti-lock and normal locking, it causes problems of complex structure and large volume. In the solution of this application, only one execution end is used, and the execution end is used to control the intelligent door lock to enter or exit the physical locking state. And whether the processor can receive the unlocking instruction input by the user is restricted by the locking state. If the verification password input by the user makes the first verification result determined to be in the normal locking state or the anti-lock state, even if the user inputs the unlocking instruction, the intelligent door lock cannot exit the physical locking state; only when the verification password input by the user makes the first verification result determined to be in the unlocked state, the unlocking instruction triggered by the user can be received by the processor at this time, and then the intelligent door lock exits the physical locking state. That is to say, in the related art, both anti-lock and normal locking are physical locking states, while in the solution of this application, the anti-lock state and the normal locking state are used as logical conditions to restrict whether the processor can receive the unlocking instruction information input by the user. Therefore, compared with the solution of the related art, the solution of this application uses fewer execution ends, so the volume of the intelligent door lock can be reduced.
[0102] Further, step S01 includes steps S101 (not shown in the figure)-step S106 (not shown in the figure), where:
[0103] Step S101, determine the locking logic of the intelligent door lock, the locking logic is the normal locking logic or the anti-lock logic, the normal locking logic corresponds to the normal locking state, and the anti-lock logic corresponds to the anti-lock state.
[0104] Specifically, determining the locking logic of the intelligent door lock includes confirming whether there is anti-lock information, and the anti-lock information is used to represent that the intelligent door lock is in the anti-lock logic; if there is anti-lock information, it is determined that the intelligent door lock is in the anti-lock logic; if there is no anti-lock information, it is determined that the intelligent door lock is in the normal locking logic.
[0105] For the embodiment of the present application, the smart door lock is in the normal locking logic when it is in the normal locking state, and in the reverse locking logic when it is in the reverse locking state. The reverse locking logic of the smart door lock is superimposed on the normal locking logic, that is, the smart door lock is first in the normal locking logic, and then it can enter the reverse locking logic after receiving the reverse locking instruction. The user interacts with the smart door lock through the terminal device so that the smart door lock can receive the reverse locking instruction input by the user, thereby causing the smart door lock to enter the reverse locking logic. Furthermore, the reverse locking instruction can also be triggered by a switch device preset on the smart door lock.
[0106] Step S102: verify the authenticity of the verification password and determine a second verification result;
[0107] Step S103: If the second verification result is true, determine that the verification password is a valid password.
[0108] For the embodiment of the present application, after receiving the verification password, the authenticity of the verification password is verified, for example, the verification password can be compared with the obtained verification password, and if there is a verification password that matches the verification password, the second verification result is determined to be true. The verification password includes at least one of a locally stored password, a password obtained in real time, and a locally generated password.
[0109] Step S104, determining the authority level of the valid password, the authority level indicates whether the corresponding valid password has the authority to release the anti-locking logic, and a valid password corresponding to any authority level has the authority to release the common locking logic.
[0110] For the embodiment of the present application, the permission level of the valid password represents which locking logic the valid password can unlock. It should be noted that although different valid passwords correspond to different permission levels, the valid passwords corresponding to each permission level have the permission to unlock the general locking logic, that is, any valid password can unlock the general locking logic of the smart door lock. However, only the valid password with the permission to unlock the anti-lock logic can unlock the anti-lock logic. At the same time, the valid password with the permission to unlock the anti-lock logic can also unlock the general locking logic when unlocking the anti-lock logic.
[0111] Step S105: Determine a first verification result based on the permission level of the valid password and the locking logic.
[0112] For the embodiment of the present application, after determining the permission level of the valid password and the locking logic of the smart door lock, the first verification result is further determined, and the first verification result represents the locking state of the smart door lock after the user enters the verification password. If the smart door lock is an anti-lock logic, and the valid password has the authority to release the anti-lock logic, the anti-lock logic is released and the ordinary locking logic can also be released, then the first verification result is determined to be that the smart door lock is in an unlocked state. If the smart door lock is an anti-lock logic, and the valid password does not have the authority to release the anti-lock logic, then the anti-lock logic and the ordinary locking logic cannot be released, then the first verification result is determined to be that the smart door lock is in an anti-lock locked state. If the smart door lock is an ordinary locking logic, and the valid password has the authority to release the ordinary locking logic, then the first verification result is determined to be that the smart door lock is in an unlocked state.
[0113] Step S106: If the second verification result is false, determine that the first verification result is a locked state corresponding to the locking logic.
[0114] For the embodiment of the present application, if there is no verification password that matches the verification password, the second verification result is determined to be false, which means that the second verification password cannot unlock any locking logic of the smart door lock, so the first verification result is determined to be the locking state corresponding to the initial locking logic of the smart door lock.
[0115] Further, step S102 includes step S2001 (not shown in the figure) and step S2002 (not shown in the figure), wherein:
[0116] Step S2001, comparing the verification password with the obtained verification password, if there is a verification password that matches the verification password, determining that the second verification result is true;
[0117] Step S2002: If there is no verification password matching the verification password, determine that the second verification result is false.
[0118] For the embodiment of the present application, a verification password is obtained, and the verification password includes at least one of a locally stored password, a password obtained in real time, and a locally generated password. Among them, the locally stored password can be stored locally and can be modified by the administrator according to the actual situation. The password obtained in real time can be obtained from a server or a related electronic device, and the related electronic device can be a user's mobile phone, tablet, gateway, and router. The locally generated password can be a password stored in a programmable storage device of a smart door lock. After the password is used, the programmable storage device can release the memory and become a blank memory, so that the password needs to be reset when it is used again, that is, the locally generated password can be a one-time password. Similarly, the authority level of the locally generated password can also be set by the administrator.
[0119] In actual use, different types of people may enter the user's home, such as the owner of the house, the nanny, or temporary visitors. For privacy and security reasons, the owner, or administrator, can assign unlocking passwords with different permission levels to different types of people. For example, the permission level of the unlocking password assigned to the nanny and visitor can only unlock the normal locking logic; while the permission level of the unlocking password owned by the administrator has the authority to unlock the anti-locking logic and the normal locking logic.
[0120] When unlocking, the verification password entered by the user is compared with the verification password to determine whether there is a verification password that matches the verification password, thereby determining whether the verification password has the authority to unlock a certain locking logic. If there is a verification password that matches the verification password, it means that the verification password has the authority to unlock a certain locking logic, and the second verification result is determined to be true; if there is no verification password that matches the verification password, it means that the verification password does not have the authority to unlock any locking logic, so the second verification result is determined to be false.
[0121] Further, step S104 includes step S4001 (not shown in the figure) and step S4002 (not shown in the figure), wherein:
[0122] Step S4001: Obtain a mapping relationship table, which includes each verification password and the permission level corresponding to each verification password;
[0123] Step S4002: Determine the authority level of the verification password that matches the valid password based on the mapping relationship table.
[0124] For the embodiments of the present application, different types of verification passwords correspond to different authority levels, and a one-to-one mapping relationship table is formed between each verification password and the different authority levels. When the second verification result of the verification password is determined to be true, the authority level of the verification password can be determined according to the mapping relationship table. For example, the password of the authority level corresponding to the administrator may have the authority to unlock the anti-lock logic and the ordinary locking logic, while the passwords of the authority levels corresponding to other users may only have the authority to unlock the ordinary locking logic.
[0125] For the embodiments of the present application, the mapping relationship between the verification password and the permission level can be corresponded through the storage location of the verification password in the smart door lock, or it can be preset by the user when setting the unlocking password.
[0126] Further, step S101 includes step S1001, step S1002 (not shown in the figure) and step S1003 (not shown in the figure), wherein:
[0127] Step S1001, confirm whether there is anti-lock information, the anti-lock information is used to indicate that the smart door lock is in anti-lock logic;
[0128] Step S1002: If there is anti-lock information, determine that the smart door lock is in anti-lock logic;
[0129] Step S1003: If there is no anti-lock information, it is determined that the smart door lock is in the normal locking logic.
[0130] If there is anti-lock information in the smart door lock, it means that the user interacts with the smart door lock through the terminal device, so that the smart door lock receives the anti-lock instruction input by the user. For example, the anti-lock instruction may be issued through relevant electronic equipment, so that the smart door lock enters the anti-lock logic and generates anti-lock information at the same time; or the anti-lock instruction is triggered by a switch device preset on the smart door lock. For example, the user triggers the anti-lock instruction by pressing the anti-lock button inside the door, so that the smart door lock enters the anti-lock logic and generates anti-lock information at the same time; if there is no anti-lock information in the smart door lock, it means that the user has not sent an anti-lock instruction to the smart door lock or has not triggered the anti-lock instruction, and the smart door lock is in normal locking logic.
[0131] Furthermore, an unlocking method further includes step A (not shown in the figure) and step B (not shown in the figure), wherein:
[0132] Step A: If the verification password is received a preset number of times within a preset period, and the second verification results of the verification password are all false, an emergency instruction is output to make the door lock enter the emergency anti-lock logic.
[0133] For the embodiment of the present application, if the smart door lock receives a preset number of verification passwords within a preset period, for example, receives five verification passwords within one minute, and there is no verification password matching the verification password in the smart door lock, that is, the second verification result of the verification password is false, it means that a stranger may be trying to unlock the door. To ensure safety, the smart door lock outputs an emergency command and enters the emergency anti-lock logic. It should be noted that the unlocking password of any authority level cannot release the emergency anti-lock logic.
[0134] Step B: Generate a valid password for releasing the emergency anti-locking logic based on the verification passwords received a preset number of times.
[0135] For the embodiment of the present application, when the smart door lock enters the emergency anti-locking logic, the smart door lock generates a valid password that can release the emergency anti-locking logic. That is, the valid password for releasing the emergency anti-locking logic is generated in real time based on the user's multiple incorrect verification password inputs. Therefore, each time the smart door lock enters the emergency anti-locking logic, the generated valid password is different.
[0136] For the embodiment of the present application, the valid password for releasing the emergency anti-locking logic can be stored in the programmable memory of the smart door lock, and the user can obtain the generated valid password for releasing the emergency anti-locking logic through relevant electronic devices, which can be the user's mobile phone and tablet, etc.
[0137] In the embodiment of the present application, taking method 1 as an example, when the smart door lock is in the reverse locked state, the user can respectively unlock the physical lock of the smart door lock from outside and inside the door:
[0138] When the user is outside the door: the user enters the verification password, confirms that the verification password is a valid password, and the valid password has the authority to release the anti-lock logic, then the lock state of the smart door lock is converted from the anti-lock lock state to the unlock state. The user turns the front handle, and the electromagnetic clutch is energized. The rotation of the front handle drives the rear handle to rotate synchronously. When the rotation angle is greater than the preset angle, the unlock indication information is triggered. The unlock indication information is received by the processor to generate an unlock instruction. The smart door lock executes the unlock instruction. The execution end executes the unlock instruction to drive the lock tongue out of the pin hole, and then the smart door lock exits the physical lock.
[0139] When the user is inside the door: no matter what locking state the smart door lock is in, the user can turn the rear handle to a preset angle, thereby triggering the unlocking instruction information to generate an unlocking command. The execution end executes the unlocking command to drive the lock tongue out of the pin hole, and then the smart door lock exits the physical lock.
[0140] The above embodiment introduces an unlocking method from the perspective of a method flow, and the following embodiment introduces an unlocking device from the perspective of a virtual module or a virtual unit. Please refer to the following embodiment for details.
[0141] The present application embodiment provides a lock opening device, such as Figure 4 As shown, the unlocking device may specifically include: a verification password receiving module 401, an unlocking instruction information receiving module 401, and an unlocking instruction generating and executing module 403, wherein:
[0142] The verification password receiving and verification module 401 is used to receive the verification password for verification to determine the first verification result. The first verification result represents the current locking state of the smart door lock. The locking state is one of the common locking state, the reverse locking state and the unlocked state. The verification password with the corresponding authority can unlock the corresponding locking state and make the locking state become the unlocked state, and the verification password with the authority to unlock the reverse locking state also has the authority to unlock the common locking state.
[0143] The unlock indication information receiving module 402 is used to receive the unlock indication information when the first verification result is an unlocked state. In the normal locked state or the reverse locked state, the smart door lock cannot receive the unlock indication information;
[0144] The unlock instruction generation execution module 403 is used to generate an unlock instruction based on the unlock indication information, and the unlock instruction is used to control the execution end to drive the lock tongue to exit the pin hole to release the physical locking state of the smart door lock.
[0145] In a possible implementation, the verification password receiving verification module 401 is specifically used to:
[0146] Determine the locking logic of the smart door lock, the locking logic is the normal locking logic or the reverse locking logic, the normal locking logic corresponds to the normal locking state, and the reverse locking logic corresponds to the reverse locking state;
[0147] Verifying the authenticity of the verification password and determining a second verification result;
[0148] If the second verification result is true, then the verification password is determined to be a valid password;
[0149] Determine the authority level of the valid password. The authority level indicates whether the corresponding valid password has the authority to unlock the anti-lock logic. A valid password corresponding to any authority level has the authority to unlock the general locking logic.
[0150] Determining a first verification result based on the permission level of the valid password and the locking logic;
[0151] If the second verification result is false, the first verification result is determined to be a locked state corresponding to the locking logic.
[0152] In a possible implementation, when verifying the authenticity of the verification password, the verification password verification receiving module 401 is specifically used to:
[0153] The verification password is compared with the obtained verification password, and if there is a verification password that matches the verification password, then the second verification result is determined to be true;
[0154] If there is no verification password matching the verification password, the second verification result is determined to be false.
[0155] In one possible implementation, when determining the permission level of a valid password, the password verification receiving module 401 is specifically used to:
[0156] Obtain a mapping relationship table, which includes each verification password and the permission level corresponding to each verification password;
[0157] The permission level of the verification password that matches the valid password is determined based on the mapping relationship table.
[0158] In one possible implementation, the verification password verification receiving module 401 determines the locking logic of the smart door lock, specifically for:
[0159] Confirm whether there is anti-lock information, which is used to indicate that the smart door lock is in anti-lock logic;
[0160] If there is anti-lock information, it is determined that the smart door lock is in anti-lock logic;
[0161] If there is no anti-lock information, it is determined that the smart door lock is in a normal locking logic. In one possible implementation, the device also includes:
[0162] The emergency anti-lock logic determination module receives a preset number of verification passwords within a preset period, and the second verification results of the verification passwords are all false, then outputs an emergency instruction to make the smart door lock enter the emergency anti-lock logic;
[0163] The emergency anti-lock password generation module generates a valid password for releasing the emergency anti-lock logic based on the verification passwords received a preset number of times.
[0164] The present application embodiment provides a smart door lock, such as Figure 5 As shown, Figure 5 The smart door lock 500 shown includes: a processor 501 and a memory 503. The processor 501 and the memory 503 are connected, such as through a bus 502. Optionally, the smart door lock 500 may also include a transceiver 504, an input unit 505, and a prompt unit 506, wherein the input unit 505 and the prompt unit 506 are connected to the processor 501 through the bus 502. It should be noted that in actual applications, the transceiver 504 is not limited to one, and the structure of the smart door lock 500 does not constitute a limitation on the embodiments of the present application.
[0165] Processor 501 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. Processor 501 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0166] The bus 502 may include a path for transmitting information between the above components. The bus 502 can be a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus 502 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 it is only represented by a thick line in Figure 5 , but it does not mean that there is only one bus or one type of bus.
[0167] The memory 503 can be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or it can also be an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory), or other optical disc storage, optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media, or other magnetic storage devices, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but not limited to this.
[0168] The memory 503 is used to store the application program code for executing the solution of this application, and is controlled and executed by the processor 501. The processor 501 is used to execute the application program code stored in the memory 503 to implement the content shown in the foregoing method embodiments.
[0169] The transceiver 504 can be at least one of a WiFi module, a Bluetooth communication module, or a radio frequency communication module. The transceiver 504 can interact with the processor 501, and the user can also establish a connection with the transceiver 504 through a corresponding terminal device to input corresponding instructions and / or receive corresponding information to the transceiver 504.
[0170] The input unit 505 can be at least one of a touch screen, a physical keyboard, a radio frequency identification module, and a physical sign collection module. The input unit 505 can be used to collect the verification password input by the user, and can send the collected verification password to the processor to be received by the processor.
[0171] The prompting unit 506 may be at least one of components that can emit sound and light prompts, such as a speaker, an LED lamp, etc. The prompting unit 506 can emit different prompts according to different locking states of the intelligent door lock to remind the user of the type of the current locking state of the intelligent door lock, so that the user can perform the next operation.
[0172] Referring to Figure 2 , in a possible implementation manner, the intelligent door lock may further include an actuator 1. The actuator 1 can respond to a locking instruction to drive the locking tongue to insert into the pin hole of the door frame so that the intelligent door lock enters the physical locking state, or respond to an unlocking instruction to drive the locking tongue to withdraw from the pin hole of the door frame so that the intelligent door lock exits the physical locking state. The actuator 1 includes a main body and a transmission structure matching the main body. The main body may be any one of a motor, a cylinder, and an electromagnet. The output end of the actuator 1 is connected to the transmission structure, and the transmission structure is connected to the locking tongue; the transmission structure is adapted to the main body. In the embodiments of the present application, the type of the main body and the specific structure of the transmission structure are not specifically limited, as long as it can satisfy that the main body can drive the locking tongue to enter or exit the pin hole through the transmission structure.
[0173] The intelligent door lock has a normal locking state, an anti-lock locking state, and a non-locking state. In the normal locking state and the anti-lock locking state, the locking tongue is located in the pin hole to achieve the physical locking of the intelligent door lock.
[0174] In a possible implementation manner, the intelligent door lock further includes an electromagnetic clutch 4. The front handle 2 is fixedly connected to a rotating end of the electromagnetic clutch 4, and the rear handle 3 is fixedly connected to another rotating end of the electromagnetic clutch 4; when the electromagnetic clutch 4 is energized, the two rotating ends rotate synchronously, and when the electromagnetic clutch 4 is not energized, the two rotating ends rotate independently; wherein, in the normal locking state and the anti-lock locking state, the electromagnetic clutch 4 is not energized; in the non-locking state, the electromagnetic clutch 4 is energized.
[0175] The intelligent door lock further includes an unlocking indication information trigger. The unlocking indication information trigger can detect the rotation angle of the rear handle 3 and trigger the unlocking indication information to be received by the processor when the rotation angle is greater than or equal to a preset angle.
[0176] Figure 5 The illustrated intelligent door lock is only an example and should not impose any limitations on the functions and usage scopes of the embodiments of the present disclosure.
[0177] The embodiments of the present application provide a computer-readable storage medium on which a computer program is stored. When it runs on a computer, it enables the computer to execute the corresponding content in the foregoing method embodiments.
[0178] It should be understood that although the steps in the flowchart of the accompanying drawings are shown sequentially according to the indication of the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless there is a clear indication in this text, there is no strict order restriction for the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed alternately or in turn with at least a part of other steps or sub-steps or stages of other steps.
[0179] The above are only some embodiments of the present application. It should be noted that for those of ordinary skill in the art, without departing from the principle of the present application, several improvements and refinements can be made, and these improvements and refinements should also be regarded as the protection scope of the present application.
Claims
1. An unlocking method, characterized in that, The smart door lock includes an execution end, which can drive the lock tongue to insert into the pin hole to achieve physical locking or drive the lock tongue to exit the pin hole to release the physical locking. The method includes: Receive a verification password for verification to determine a first verification result, wherein the first verification result represents the current lock state of the smart door lock, wherein the lock state is one of a common lock state, an anti-lock lock state, and an unlock state, and a verification password with corresponding authority can unlock the corresponding lock state and change the lock state to an unlock state, and a verification password with authority to unlock the anti-lock lock state also has authority to unlock the common lock state; If the first verification result is an unlocked state, receiving unlock instruction information, in the common locked state or the reverse locked state, the smart door lock cannot receive the unlock instruction information; Generate an unlock instruction based on the unlock instruction information, wherein the unlock instruction is used to control the execution end to drive the lock tongue to exit the pin hole to release the physical locking state of the smart door lock; The receiving the verification password for verification to determine the first verification result includes: Determine the locking logic of the smart door lock, the locking logic is a common locking logic or a reverse locking logic, the common locking logic corresponds to a common locking state, and the reverse locking logic corresponds to a reverse locking state; Verifying the authenticity of the verification password and determining a second verification result; If the second verification result is true, determining that the verification password is a valid password; Determine the authority level of the valid password, the authority level indicates whether the corresponding valid password has the authority to release the anti-locking logic, and any valid password corresponding to the authority level has the authority to release the ordinary locking logic; determining a first verification result based on the permission level of the valid password and the locking logic; If the second verification result is false, the first verification result is determined to be a locking state corresponding to the locking logic.
2. The unlocking method according to claim 1, characterized in that, The verifying the authenticity of the verification password and determining a second verification result includes: Comparing the verification password with the obtained check password, and if there is a check password matching the verification password, determining that the second verification result is true; If there is no verification password matching the verification password, it is determined that the second verification result is false.
3. The unlocking method according to claim 1, wherein The determining the permission level of the valid password includes: Obtain a mapping relationship table, wherein the mapping relationship table includes each verification password and the permission level corresponding to each verification password; The authority level of the verification password matching the valid password is determined based on the mapping relationship table.
4. The unlocking method according to claim 1, wherein The step of determining the locking logic of the smart door lock includes: Confirm whether there is anti-lock information, and the anti-lock information is used to indicate that the smart door lock is in anti-lock logic; If the anti-lock information exists, determining that the smart door lock is in the anti-lock logic; If the anti-lock information does not exist, it is determined that the smart door lock is in the normal locking logic.
5. The unlocking method according to claim 1, wherein Also includes: If a preset number of verification passwords are received within a preset period, and the second verification results of the verification passwords are all false, an emergency instruction is output to make the smart door lock enter the emergency anti-locking logic; Generate a valid password to release the emergency anti-lock logic based on the verification password received a preset number of times.
6. An unlocking device, characterized in that, include: A verification password receiving and verification module is used to receive the verification password for verification to determine a first verification result, wherein the first verification result represents the current locking state of the smart door lock, wherein the locking state is one of a common locking state, an anti-locking locking state, and an unlocking state, and a verification password with corresponding authority can unlock the corresponding locking state and make the locking state become an unlocking state, and a verification password with authority to unlock the anti-locking locking state also has authority to unlock the common locking state; An unlock instruction information receiving module, used for receiving unlock instruction information when the first verification result is an unlocked state, and the smart door lock cannot receive the unlock instruction information in the common locked state or the reverse locked state; An unlock instruction generation execution module, used to generate an unlock instruction based on the unlock instruction information, wherein the unlock instruction is used to control the execution end to drive the lock tongue to exit the pin hole to release the physical locking state of the smart door lock; The verification password receiving verification module is specifically used for: Determine the locking logic of the smart door lock, the locking logic is the normal locking logic or the reverse locking logic, the normal locking logic corresponds to the normal locking state, and the reverse locking logic corresponds to the reverse locking state; Verifying the authenticity of the verification password and determining a second verification result; If the second verification result is true, then the verification password is determined to be a valid password; Determine the authority level of the valid password. The authority level indicates whether the corresponding valid password has the authority to unlock the anti-lock logic. A valid password corresponding to any authority level has the authority to unlock the general locking logic. Determining a first verification result based on the permission level of the valid password and the locking logic; If the second verification result is false, the first verification result is determined to be a locked state corresponding to the locking logic.
7. An intelligent door lock, characterized in that, The smart door lock includes: An execution end, which can drive the lock tongue to insert into the pin hole to achieve physical locking or drive the lock tongue to exit the pin hole to release the physical locking; an input unit for inputting a verification password to be received by the processor; at least one processor; Memory; At least one application, wherein the at least one application is stored in a memory and configured to be executed by at least one processor, and the at least one application is configured to: execute the unlocking method according to any one of claims 1-5.
8. The intelligent door lock according to claim 7, wherein The smart door lock further includes a front handle and a rear handle, and is characterized in that the smart door lock further includes: Electromagnetic clutch, the front handle is fixedly connected to one rotating end of the electromagnetic clutch, and the rear handle is fixedly connected to the other rotating end of the electromagnetic clutch; when the electromagnetic clutch is powered, the two rotating ends rotate synchronously, and when the electromagnetic clutch is not powered, the two rotating ends rotate independently; Wherein, in the normal locking state and the reverse locking state, the electromagnetic clutch is not energized, and in the unlocked state, the electromagnetic clutch is energized; It also includes an unlocking indication information trigger, which can detect the rotation angle of the rear handle and trigger the unlocking indication information to be received by the processor when the rotation angle is greater than or equal to a preset angle.
9. A computer-readable storage medium, characterized in that, include: A computer program is stored that can be loaded and executed by a processor to perform the unlocking method according to any one of claims 1-5.
Citation Information
Patent Citations
Door lock management method, device, electronic equipment and storage medium
CN110322599A