Unlocking methods, systems, electronic devices and storage media

Through the communication with the camera and the camera, the image data is used as the opening key, which solves the problem of the existing smart lock passwords that are easily simulated, and achieve higher security and simplified unlocking process.

CN114999030BActive Publication Date: 2025-01-28HANGZHOU EZVIZ SOFTWARE CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202210577411.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-25
Publication Date
2025-01-28
Estimated Expiration
2042-05-25

AI Technical Summary

Technical Problem

Among the existing smart lock unlocking methods, the password is easily simulated and has low security.

Method used

Through the communication between the smart lock and the camera, the image data within the preset period of the camera is used as the opening key. The client sends a key request to the smart lock and receives the lock -up key, combined with the terminal information for the unlocking operation.

Benefits of technology

The real -time and non -fixedness of the unlocking key is realized, the security of the key is improved, the password is avoided by the problem of simulation and loss of the password, and the interlocking process of the visitor is simplified.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114999030B_ABST
    Figure CN114999030B_ABST
Patent Text Reader

Abstract

The present application discloses an unlocking method, system, electronic device and storage medium, the method comprising: sending a key request to a smart lock, the smart lock is connected to a camera for communication, the camera is integrated in the smart lock or is independent of the smart lock and is located in the same physical space as the smart lock, the key request is used to indicate the acquisition of an unlocking key for unlocking the smart lock; receiving an unlocking key sent by the smart lock based on the key request, wherein the unlocking key includes image data captured by the camera within a preset time period; in response to an unlocking operation input by a user, sending an unlocking signaling to the smart lock, wherein the unlocking signaling includes an unlocking key and terminal information corresponding to a client; receiving a first response message sent by the smart lock after unlocking based on the unlocking key and the terminal information, and the unlocking is successful, the first response message is used to indicate that the smart lock is successfully unlocked. This embodiment solves the problem that the unlocking password in the existing unlocking method is easy to be simulated and has low security.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of smart locks, and specifically relates to an unlocking method, system, electronic device and storage medium. Background Art

[0002] With the development of technology, more and more users are currently using smart locks. Smart locks can be unlocked through biometric features and can be connected to a network platform through the Internet. Biometric features include fingerprint information and facial information.

[0003] However, in the process of unlocking the door with a smart lock, the unlocking password is fixed. For example, the homeowner sets a 6-digit password. Temporary visitors at the door need to ask for the 6-digit password and then enter it into the smart lock to unlock the door. This makes the unlocking password easy to be simulated, which is high-risk and low-security. Summary of the invention

[0004] The embodiments of the present application provide an unlocking method, system, electronic device and storage medium to solve the problem that passwords in existing unlocking methods are easily simulated and have low security.

[0005] In a first aspect, an embodiment of the present application provides an unlocking method, which is applied to a client and includes:

[0006] Sending a key request to a smart lock, the smart lock being communicatively connected to a camera, the camera being integrated into the smart lock or being independent of the smart lock and being located in the same physical space as the smart lock, the key request being used to instruct obtaining an unlocking key for unlocking the smart lock;

[0007] Receiving the unlocking key sent by the smart lock based on the key request, wherein the unlocking key includes image data captured by the camera within a preset time period;

[0008] In response to an unlocking operation input by a user, an unlocking signaling is sent to the smart lock, wherein the unlocking signaling includes the unlocking key and terminal information corresponding to the client;

[0009] Receive the first response information sent by the smart lock after unlocking based on the unlocking key and the terminal information and the unlocking is successful, where the first response information is used to indicate that the smart lock is unlocked successfully.

[0010] In a second aspect, the embodiment of the present application further provides an unlocking method, which is applied to a smart lock, comprising:

[0011] Receiving a key request sent by a client, the smart lock is communicatively connected with a camera, the camera is integrated in the smart lock or is independent of the smart lock and is located in the same physical space as the smart lock, the key request is used to indicate obtaining an unlocking key for unlocking the smart lock;

[0012] Sending the unlocking key to the client based on the key request, wherein the unlocking key includes image data captured by the camera within a preset time period;

[0013] receiving an unlocking signaling sent by the client in response to an unlocking operation input by a user, wherein the unlocking signaling includes the unlocking key and terminal information corresponding to the client;

[0014] Unlocking is performed based on the unlocking key and the terminal information, and a first response message is sent to the client after the unlocking is successful, wherein the first response message is used to indicate that the smart lock is unlocked successfully.

[0015] In a third aspect, an embodiment of the present application further provides an unlocking system, the unlocking system comprising a terminal with a client installed, a server, a smart lock and a camera, the smart lock is communicatively connected with the camera, the camera is integrated on the smart lock or is independent of the smart lock and is located in the same physical space as the smart lock;

[0016] The client sends a key request to the smart lock, where the key request is used to instruct to obtain an unlocking key for unlocking the smart lock;

[0017] The smart lock receives the key request sent by the client, and sends the unlocking key to the client based on the key request, wherein the unlocking key includes image data captured by the camera within a preset time period;

[0018] The client sends an unlocking request to the server in response to an unlocking operation input by the user, wherein the server is synchronized with a terminal list corresponding to the smart lock, the terminal list includes terminal binding codes of terminals bound to the smart lock, and the unlocking request includes the unlocking key, terminal information corresponding to the client, and device information of the smart lock, the terminal information corresponding to the client and the terminal list are used to verify whether the terminal corresponding to the client is a terminal bound to the smart lock, and the device information of the smart lock is used to determine the communication address of the smart lock;

[0019] When verifying that the terminal corresponding to the client is the terminal bound to the smart lock based on the unlock request, sending an unlock signaling to the smart lock based on the device information, wherein the unlock signaling includes the unlock key and the terminal information corresponding to the client;

[0020] Unlocking is performed based on the unlocking key and the terminal information, and a first response message is sent to the client after the unlocking is successful, wherein the first response message is used to indicate that the smart lock is unlocked successfully.

[0021] In a fourth aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect or the second aspect.

[0022] In a fifth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect or the second aspect are implemented.

[0023] The client provided in the embodiment of the present application sends a key request to the smart lock, and the smart lock is communicatively connected with a camera, the camera is integrated on the smart lock or independent of the smart lock and is located in the same physical space as the smart lock, and the key request is used to indicate the acquisition of an unlocking key for unlocking the smart lock; the unlocking key sent by the smart lock based on the key request is received, wherein the unlocking key includes image data captured by the camera within a preset time period; in response to an unlocking operation input by a user, an unlocking signaling is sent to the smart lock, wherein the unlocking signaling includes the unlocking key and terminal information corresponding to the client; and the first response information sent by the smart lock after unlocking based on the unlocking key and the terminal information and successful unlocking is received, wherein the first response information is used to indicate that the smart lock is successfully unlocked. The unlocking key is generated by the smart lock, and the picture in front of the smart lock is the unlocking key. The user can fully see the unlocking scene during the entire unlocking process, which is real-time and non-fixed, so that the unlocking key is not easy to be simulated or lost, thereby ensuring the security of the unlocking key, and does not require visitors to enter the unlocking key, simplifying the visitor's unlocking process; in addition, since the unlocking key is generated by the smart lock, it does not need to be set by the user, omitting the user's key setting process and avoiding the user from remembering the key set by himself, simplifying the user's unlocking operation and providing convenience for the user to unlock. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 It is a flowchart of an unlocking method applied to a client in an embodiment of the present application;

[0025] Figure 2 It is a flowchart of an unlocking method applied to a smart lock in an embodiment of the present application;

[0026] Figure 3 is a flowchart of another unlocking method in an embodiment of the present application;

[0027] Figure 4 It is a schematic diagram of the structure of the unlocking system in the embodiment of the present application;

[0028] Figure 5 is a schematic diagram of a module of an unlocking device applied to a client in an embodiment of the present application;

[0029] Figure 6 It is a schematic diagram of a module of an unlocking device applied to a smart lock in an embodiment of the present application;

[0030] Figure 7 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0031] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0032] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0033] The distributed modeling system and method provided in the embodiments of the present application are described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0034] Figure 1 An unlocking method applied to a client provided by an embodiment of the present invention is shown, and the unlocking method includes:

[0035] Step 101: Send a key request to the smart lock.

[0036] The smart lock is communicatively connected to the camera, and the camera is integrated on the smart lock, is independent of the smart lock, and is located in the same physical space as the smart lock.

[0037] Specifically, a smart lock refers to an electronic lock that can be unlocked through biometrics and can communicate with other network devices through the network.

[0038] The camera can be integrated into the smart lock, or the camera is independent of the smart lock and is located in the same physical space as the smart lock, so that the camera can capture image data within a certain range of the smart lock. In addition, the camera is connected to the smart lock in communication, so that the camera can transmit the captured image data to the smart lock, so that the smart lock can transmit the image data to other network devices connected in communication, such as clients, servers, etc., so that the user can view the image in front of the smart lock in real time through the image data captured by the camera, ensuring the safety of the user's unlocking operation.

[0039] The key request is used to indicate obtaining an unlocking key for unlocking the smart lock. In addition, the key request can be sent to the smart lock through a process such as device direct connection, peer to peer (p2p), and streaming media forwarding.

[0040] Of course, when the client sends a key request to the smart lock, the key request can carry the terminal information corresponding to the client, so that the smart lock can verify through the terminal information whether the terminal corresponding to the client is the terminal pre-bound to the smart lock. If so, the next step can be performed. If not, the unlocking process is terminated to improve the security of unlocking.

[0041] Step 102: Receive the unlocking key sent by the smart lock based on the key request.

[0042] The unlocking key includes image data captured by the camera within a preset time period, which enables the client to display the image corresponding to the image data. Since the camera is integrated in the smart lock, it is independent of the smart lock and is located in the same physical space as the smart lock, that is, the image data captured by the camera is the image within a certain range of the smart lock, which realizes the real-time nature of the unlocking key. This enables the user to see the picture scene of the unlocking during the entire unlocking process through the image data.

[0043] Specifically, the preset time period can be within the first N seconds of the current time, and the value of N can be set according to actual conditions, for example, it can be 1s or 2s, etc., which means that the unlocking key is not fixed, but changes in real time with time. Of course, the smaller the value of N, the higher the real-time performance of the unlocking key.

[0044] In this way, when the smart lock executes the unlock signaling, an unlock key is required. In the related art, the unlock key is generally set by the user and includes fingerprint information, face information, 6-digit key, etc. These unlock keys are set and fixed by the user, which makes them easy to lose or simulate, and the security is low. In this embodiment, the unlock key includes the image data captured by the camera within a preset time period, so that the unlock key is generated by the smart lock, and the image in front of the smart lock is the unlock key, which is real-time and non-fixed, so that the unlock key is not easy to be simulated and will not be lost, ensuring the security of the unlock key; in addition, since the unlock key is generated by the smart lock, it does not need to be set by the user, omitting the user's key setting process, and avoiding the user from remembering the key set by himself, simplifying the user's unlocking operation and providing convenience for the user to unlock.

[0045] In addition, specifically, the unlocking key may also include an authentication identifier (token) to further improve the security of the unlocking key.

[0046] Step 103: In response to the unlocking operation input by the user, an unlocking signaling is sent to the smart lock.

[0047] Specifically, after obtaining the unlocking key, if the client receives an unlocking operation input by the user, it can send an unlocking signaling to the smart lock in response to the unlocking operation input by the user.

[0048] The unlock signaling includes the unlock key and the terminal information corresponding to the client. The terminal information is used by the smart lock to verify whether the terminal corresponding to the client is the terminal pre-bound to the smart lock.

[0049] The process of binding a terminal to a smart lock is the process of storing the terminal information of the terminal in the security verification device list of the smart lock. The security verification device list can be a terminal list maintained by the smart lock. The terminal information in the terminal list is the terminal information of the terminal that has been bound to the smart lock.

[0050] Specifically, the terminal information can be the terminal's mobile phone number, user identification information, etc., and of course, it can also be a string consisting of the terminal's hardware feature code and user identification information. For example, the hardware feature code can be a 32-bit universally unique identifier (uuid) generated by the client, and the length of the string consisting of the hardware feature code and user identification information can be no more than 64 bits, ensuring that the terminal information is unique and non-repetitive.

[0051] Step 104: receiving the first response information sent by the smart lock after unlocking based on the unlocking key and the terminal information and successfully unlocking.

[0052] The first response information is used to indicate that the smart lock is unlocked successfully.

[0053] Among them, the smart lock is unlocked based on the unlocking key and the terminal information. In this process, the smart lock can verify whether the terminal corresponding to the client is the terminal bound to the smart lock through the terminal information and the terminal binding code of the terminal pre-stored in the smart lock. If it is determined that the terminal corresponding to the client is the terminal bound to the smart lock, it verifies whether the unlocking key is correct. If it is determined that the unlocking key is correct, it performs the unlocking operation and sends the first response information indicating the successful unlocking to the client after the unlocking is successful. At this time, the user can determine the unlocking result through the first response information received by the client.

[0054] In this way, the client in this embodiment sends a key request to the smart lock, and the smart lock is communicatively connected with the camera. The camera is integrated on the smart lock or independent of the smart lock and is located in the same physical space as the smart lock, and the key request is used to indicate the acquisition of an unlocking key for unlocking the smart lock; the unlocking key sent by the smart lock based on the key request is received, wherein the unlocking key includes image data captured by the camera within a preset time period; an unlocking signaling is sent to the smart lock in response to an unlocking operation input by the user, wherein the unlocking signaling includes the unlocking key and the terminal information corresponding to the client; and the first response information sent by the smart lock after unlocking based on the unlocking key and the terminal information and successful unlocking is received, and the first response information is used to indicate that the smart lock is successfully unlocked. The unlocking key is generated by the smart lock, and the picture in front of the smart lock is the unlocking key, which is real-time and non-fixed, so that the unlocking key is not easily simulated or lost, thereby ensuring the security of the unlocking key and does not require visitors to input the unlocking key, thereby simplifying the visitor's unlocking process; in addition, since the unlocking key is generated by the smart lock, it does not need to be set by the user, omitting the user's key setting process and avoiding the user from remembering the key set by himself, thereby simplifying the user's unlocking operation and providing convenience for the user to unlock.

[0055] In one implementation, before sending a key request to the smart lock, the client may also receive identity information input by the user; after verifying that the user is a legitimate user through the identity information, the step of sending a key request to the smart lock is entered.

[0056] The user's identity information can be biometric information such as the user's fingerprint, face, etc., or can be information such as a password pre-set by the user. By verifying whether the user is a legitimate user, it is ensured that the user initiates the unlocking operation under his own authorization, preventing others from remotely unlocking the door when the terminal corresponding to the client is lost, thereby ensuring the security of unlocking.

[0057] In addition, in one implementation, after receiving the smart lock to unlock based on the unlocking key and the terminal information, it also includes:

[0058] Receiving a second response message sent after the smart lock fails to unlock, wherein the second response message is used to indicate that the reason for the failure to unlock the smart lock is that the terminal corresponding to the client is not bound to the smart lock;

[0059] Based on the second response information, sending a binding signaling to the smart lock through the server, wherein the binding signaling includes the terminal information corresponding to the client and is used to instruct the smart lock to perform a binding operation between the terminal and the smart lock;

[0060] Receive a third response message sent by the smart lock through the server, where the third response message is used to indicate that the smart lock is successfully bound based on the binding signaling.

[0061] Specifically, the smart lock needs to be bound to the terminal before a valid key can be generated. If the smart lock fails to unlock based on the unlocking key and the terminal information, the reason for the unlocking failure can be determined, which may be that the terminal corresponding to the client is not bound to the smart lock, or that the unlocking key is abnormal.

[0062] If the reason for the failure of the smart lock to unlock is that the unlocking key is abnormal, the smart lock can send a key abnormality message to the client. At this time, the client can resend a key request to the smart lock based on the key abnormality message.

[0063] If the reason why the smart lock fails to unlock is that the terminal corresponding to the client is not bound to the smart lock, the smart lock can send a second response message to the client indicating that the reason why the smart lock fails to unlock is that the terminal corresponding to the client is not bound to the smart lock; at this time, the client can send a binding signaling to the server based on the second response message, and then the server sends the binding signaling to the smart lock, the binding signaling includes the terminal information corresponding to the client, and is used to instruct the smart lock to perform the binding operation of the terminal and the smart lock; then the smart lock performs the binding operation of the terminal and the smart lock, that is, stores the terminal information in the terminal list corresponding to the smart lock, and after the binding is successful, sends a third response message to the server indicating that the smart lock is successfully bound. At this time, the server sends the third response message to the client and stores the updated terminal list of the smart lock, which includes the terminal binding codes of the terminals that have been bound to the smart lock; after the client receives the third response message, the user can re-send the unlocking signaling to the smart lock to continue the unlocking operation.

[0064] In this way, after the unlocking fails, the binding process between the client and the smart lock enables the unlocking operation to continue through the client.

[0065] In addition, in one implementation, sending an unlock signaling to the smart lock includes:

[0066] An unlocking request is sent to a server, and the server verifies, based on the unlocking request, that the terminal corresponding to the client is the terminal bound to the smart lock, and sends the unlocking signaling to the smart lock; wherein the server synchronizes a terminal list corresponding to the smart lock, the terminal list includes the terminal binding code of the terminal bound to the smart lock, the unlocking request includes the unlocking key, the terminal information of the client and the device information of the smart lock, the terminal information of the client and the terminal list are used to verify whether the client is the terminal bound to the smart lock, and the device information of the smart lock is used to determine the communication address of the smart lock.

[0067] Specifically, when the client sends an unlock signaling to the smart lock, it can first send an unlock request to the server, which includes the unlock key, the terminal information of the client, and the device information of the smart lock, and the server synchronizes the terminal list corresponding to the smart lock, and the terminal list includes the terminal binding code of the terminal bound to the smart lock; at this time, the server can judge whether there is a terminal binding code consistent with the terminal information corresponding to the client in the terminal binding code of the terminal bound to the smart lock based on the terminal list. If there is, it means that the terminal bound to the smart lock contains the terminal corresponding to the client, and then the unlock signaling can be sent to the smart lock based on the device information of the smart lock. In this way, the server realizes the verification process of the terminal corresponding to the client, and further ensures the security of unlocking.

[0068] Optionally, after the client sends an unlock request to the server, the following steps may also be included:

[0069] receiving indication information sent by the server, the indication information being used to indicate that the number of terminal binding codes stored in the terminal list has reached a preset value;

[0070] Sending a deletion instruction to the smart lock through the server based on the indication information, wherein the deletion instruction is used to instruct the smart lock to delete at least one of the terminal binding codes stored in the terminal list;

[0071] Receive a fourth response message sent by the smart lock through the server, wherein the fourth response message is used to indicate that at least one terminal binding code is deleted successfully, wherein the server and the smart lock synchronize an updated terminal list.

[0072] Specifically, if the server determines based on the terminal list that there is no terminal binding code consistent with the terminal information corresponding to the client in the terminal binding code of the terminal bound to the smart lock, that is, the terminal corresponding to the client is not included in the terminal list, and the number of terminal binding codes included in the terminal list has reached a preset value, then an indication information for indicating that the number of terminal binding codes stored in the terminal list has reached a preset value can be sent to the client; at this time, the client can send a deletion instruction for instructing the smart lock to delete at least one of the terminal binding codes stored in the terminal list based on the indication information to the server, and the server forwards the deletion instruction to the smart lock; after receiving the deletion instruction, the smart lock can delete at least one of the terminal binding codes stored in the terminal list. Specifically, the smart lock can perform the deletion operation according to the binding time sequence of the terminal binding code and the time sorting from far to near, and after the deletion is successful, send a fourth response information to the server for indicating that the at least one terminal binding code is successfully deleted; the server can forward the fourth response information to the client, and synchronize the terminal list updated by the smart lock itself; after receiving the fourth response information, the client can send a binding signaling to the smart lock through the server to perform the binding process between the terminal corresponding to the client and the smart lock, thereby ensuring the smooth unlocking process of the smart lock.

[0073] In this way, the above embodiment realizes that the unlocking key is generated by the smart lock, and the picture in front of the smart lock is the unlocking key, which is real-time and non-fixed, so that the unlocking key is not easy to be simulated or lost, thereby ensuring the security of the unlocking key; in addition, since the unlocking key is generated by the smart lock, it does not need to be set by the user, the user's key setting process is omitted, and the user is prevented from remembering the key set by himself, which simplifies the user's unlocking operation and provides convenience for the user to unlock.

[0074] like Figure 2 As shown in the figure, it is a flowchart of the steps of the unlocking method applied to the smart lock in the embodiment of the present application, and the method includes the following steps:

[0075] Step 201: Receive a key request sent by a client.

[0076] The smart lock receives a key request sent by the client, wherein the key request is used to instruct to obtain an unlocking key for unlocking the smart lock.

[0077] The smart lock is communicatively connected to a camera, and the camera is integrated on the smart lock or is independent of the smart lock and is located in the same physical space as the smart lock.

[0078] Step 202: Send the unlocking key to the client based on the key request.

[0079] The unlocking key includes image data captured by the camera within a preset time period.

[0080] It should be noted that the specific content of the unlocking key can be found in the relevant content of the client-side embodiment, which will not be repeated here.

[0081] Step 203: receiving an unlocking signaling sent by the client in response to an unlocking operation input by the user.

[0082] In this step, the smart lock receives the unlocking signaling sent by the client, wherein the unlocking signaling includes the unlocking key and the terminal information corresponding to the client.

[0083] It should be noted that the specific content of the unlocking signaling can be found in the relevant content of the client side embodiment, which will not be described in detail here.

[0084] Step 204: Unlock the device based on the unlocking key and the terminal information, and send a first response message to the client after the unlocking is successful.

[0085] The first response information is used to indicate that the smart lock is unlocked successfully.

[0086] The smart lock can be unlocked based on the unlocking key and the terminal information, and after the unlocking is successful, it sends a first response message to the client, where the first response message is used to indicate that the smart lock is unlocked successfully.

[0087] In this way, this embodiment receives a key request sent by the client, the smart lock is communicatively connected with the camera, the camera is integrated on the smart lock or independent of the smart lock and is located in the same physical space as the smart lock, and the key request is used to indicate the acquisition of an unlocking key for unlocking the smart lock; based on the key request, the unlocking key is sent to the client, wherein the unlocking key includes image data captured by the camera within a preset time period; the unlocking signaling sent by the client is received, and the unlocking signaling includes the unlocking key and the terminal information corresponding to the client; the lock is unlocked based on the unlocking key and the terminal information, and a first response message is sent to the client after the unlocking is successful, and the first response message is used to indicate that the smart lock is successfully unlocked. The unlocking key is generated by the smart lock, is real-time and non-fixed, and the picture in front of the smart lock is the unlocking key, so that the user can see the live scene in front of the smart lock during the whole unlocking process, so that the unlocking key is not easy to be simulated and will not be lost, thereby ensuring the security of the unlocking key, and does not require visitors to obtain the key to unlock, simplifying the visitor's unlocking process; in addition, since the unlocking key is generated by the smart lock, it does not need to be set by the user, omitting the user's key setting process and avoiding the user from remembering the key set by himself, simplifying the user's unlocking operation and providing convenience for the user to unlock.

[0088] In one implementation, the unlocking based on the unlocking key and the terminal information includes:

[0089] Based on the terminal information and the terminal binding code of the terminal pre-stored in the smart lock and pre-bound to the smart lock, verify whether the terminal corresponding to the client is the terminal bound to the smart lock;

[0090] If it is determined that the terminal corresponding to the client is the terminal bound to the smart lock, verify whether the unlocking key is correct;

[0091] If it is determined that the unlocking key is correct, an unlocking operation is performed and it is determined that the unlocking is successful.

[0092] Specifically, the smart lock is pre-set with a terminal list, which includes the terminal binding codes of the terminals that are pre-bound to the smart lock. When the smart lock verifies whether the terminal corresponding to the client is the terminal bound to the smart lock, it can determine whether there is a terminal binding code consistent with the terminal information corresponding to the client in the terminal binding code of the terminal bound to the smart lock. If so, it is determined that the terminal corresponding to the client is the terminal bound to the smart lock. Then, if it is determined that the unlocking key is correct, the lock is unlocked and unlocked successfully.

[0093] In this way, the unlocking process is verified by the terminal information and the unlocking key, which prevents the terminal that is not bound to the smart lock from successfully unlocking the lock remotely when the unlocking key is obtained, thereby ensuring the security of unlocking.

[0094] In one implementation, after unlocking based on the unlocking key and the terminal information, the following steps are further included:

[0095] If the unlocking fails, a second response message is sent to the client, wherein the second response message is used to indicate that the reason why the smart lock fails to unlock is that the terminal corresponding to the client is not bound to the smart lock;

[0096] Receiving a binding signaling sent by the server, wherein the binding signaling is sent by the client based on the second response information, and the binding signaling includes terminal information corresponding to the client, and is used to instruct the smart lock to perform a binding operation between the terminal and the smart lock;

[0097] The binding operation between the terminal and the smart lock is performed based on the binding signaling, and after the binding is successful, a third response message is sent to the client through the server, and the third response message is used to indicate that the smart lock is successfully bound.

[0098] Specifically, if the reason why the smart lock fails to unlock is that the terminal corresponding to the client is not bound to the smart lock, the smart lock can send a second response message to the client indicating that the reason why the smart lock fails to unlock is that the terminal corresponding to the client is not bound to the smart lock; at this time, the client can send a binding signaling to the server based on the second response message, and then the server sends the binding signaling to the smart lock, the binding signaling includes the terminal information of the client, and is used to instruct the smart lock to perform the binding operation of the terminal and the smart lock; then the smart lock performs the binding operation of the terminal and the smart lock, that is, stores the terminal information as a terminal binding code in the terminal list corresponding to the smart lock, and after the binding is successful, sends a third response message to the server indicating that the smart lock is successfully bound. At this time, the server sends the third response message to the client and stores the updated terminal list of the smart lock, which includes the terminal binding codes of the terminals that have been bound to the smart lock; after the client receives the third response message, the user can re-send the unlocking signaling to the smart lock to continue the unlocking operation.

[0099] In one implementation, the receiving the unlocking signaling sent by the client in response to the unlocking operation input by the user includes:

[0100] Receive an unlocking signaling sent by the client through a server, wherein the unlocking signaling is sent when the server receives an unlocking request sent by the client and verifies based on the unlocking request that the terminal corresponding to the client is the terminal bound to the smart lock; wherein the server synchronizes a terminal list corresponding to the smart lock, the terminal list includes terminal binding codes of terminals bound to the smart lock, the unlocking request includes the unlocking key, the terminal information corresponding to the client and the device information of the smart lock, the terminal information of the client and the terminal list are used to verify whether the terminal corresponding to the client is the terminal bound to the smart lock, and the device information of the smart lock is used to determine the communication address of the smart lock.

[0101] It should be noted that the process can refer to the relevant content of the client-side embodiment, and will not be described in detail here.

[0102] In one implementation, before receiving the unlocking signaling sent by the client through the server, the method further includes:

[0103] receiving a deletion instruction sent by the client through the server, the deletion instruction being used to instruct the smart lock to delete at least one of the terminal binding codes stored in the terminal list, and the deletion instruction being sent after the client receives the indication information sent by the server, the indication information being used to indicate that the number of terminal binding codes of the terminals stored in the terminal list has reached a preset value;

[0104] deleting at least one of the terminal binding codes stored in the terminal list based on the deletion instruction, and synchronizing the updated terminal list to the server;

[0105] The server sends fourth response information to the client, where the fourth response information is used to indicate that at least one terminal binding code is successfully deleted.

[0106] It should be noted that the process can refer to the relevant content of the client-side embodiment, and will not be described in detail here.

[0107] Below through Figure 3 A specific embodiment of the present application is described. Specifically, the embodiment includes the following steps:

[0108] Step 1: The client sends a key request to the smart lock.

[0109] The client can be an application APP corresponding to the smart lock, which is used to unlock the smart lock. Of course, the client can also be a terminal with the application installed. Here, the client is taken as an APP corresponding to the smart lock as an example.

[0110] The smart lock is communicatively connected to the camera, and the camera is integrated on the smart lock or independent of the smart lock and located in the same physical space as the smart lock, so that the camera can capture image data within a certain range of the smart lock and transmit the captured image data to the smart lock.

[0111] In this step, the key request can be a stream acquisition request (i.e., a request for acquiring a video stream). The stream acquisition method may include device direct connection, p2p, streaming media forwarding, etc. Of course, the key request may also carry the terminal information corresponding to the client, so that the smart lock can verify whether the terminal corresponding to the client is the terminal pre-bound by the smart lock through the terminal information.

[0112] Step 2: The smart lock sends the unlocking key to the client.

[0113] Specifically, if the smart lock supports remote unlocking, the unlocking key can be sent to the smart lock. At this time, the camera transmits the image data captured within a preset time period to the smart lock, such as the video frame data of the first N seconds of the current time, and the smart lock uses the image data as the unlocking key and sends the unlocking key to the client.

[0114] Of course, the unlocking key may also include an unlocking token, etc.

[0115] In addition, the key request can also carry the terminal information corresponding to the client. Specifically, the smart lock needs to be bound to the terminal to generate a valid key, so the smart lock can determine whether there is a valid remote unlocking operation based on the terminal information carried in the key request. If it is confirmed that there is, the unlocking key can be sent. If it is confirmed that there is no unlocking key, it will not be sent.

[0116] Step 3: The client's local system verifies the user's legitimacy.

[0117] During this process, the client can receive the identity information entered by the user and verify the legitimacy of the user through the identity information.

[0118] Identity information may include biometric features such as fingerprints and faces, and may also include set passwords.

[0119] This step is to ensure that the user only initiates the unlocking operation under his own authorization, to prevent the lock from being remotely unlocked by others when the client is lost.

[0120] Step 4: After the client passes the verification, it sends an unlock request to the server. The unlock request includes the terminal information corresponding to the client, the unlocking key, and the device information of the smart lock.

[0121] Step 5: The server makes a terminal binding determination.

[0122] In this process, the server synchronizes a terminal list corresponding to the smart lock, and the terminal list includes the terminal binding codes of the terminals bound to the smart lock, and the terminal binding codes correspond to the terminals one by one. Based on the terminal list, the server determines whether there is a terminal binding code consistent with the terminal information corresponding to the client among the terminal binding codes of the terminals bound to the smart lock; if there is, it means that the terminals bound to the smart lock include the terminal corresponding to the client, and then proceed to step 6; if there is no terminal binding code and the number of terminal binding codes included in the terminal list has reached the preset value, then proceed to step 14.

[0123] Step 6: The server sends an unlock signaling to the smart lock, which includes an unlock key and the terminal information corresponding to the client.

[0124] Step 7: The smart lock detects whether the unlocking process is legal.

[0125] During this process, the smart lock can verify whether the terminal corresponding to the client is the terminal bound to the smart lock through the terminal information and the terminal binding code of the terminal pre-bound to the smart lock stored in the smart lock. If it is determined that the terminal corresponding to the client is the terminal bound to the smart lock, it verifies whether the unlocking key is correct. If it is determined that the unlocking key is correct, it determines that the unlocking process is legal, and then performs the unlocking operation.

[0126] Step 8: After the smart lock determines that the unlocking process is legal and performs the unlocking operation, it sends a response message of successful unlocking to the client.

[0127] Step 9: If the smart lock fails to unlock, and the reason for the unlocking failure is that the terminal corresponding to the client is not bound to the smart lock, a response message indicating that the unlocking failed and the terminal is not bound is sent to the client.

[0128] Of course, if the reason for the unlocking failure is that the unlocking key is abnormal, you can re-enter step 3, that is, restart the unlocking process.

[0129] Step 10: The client sends a binding signaling to the server, where the binding signaling includes terminal information corresponding to the client.

[0130] Step 11: The server forwards the binding signaling to the smart lock.

[0131] Step 12: After the terminal is successfully bound, the smart lock refreshes the terminal list, synchronizes the updated terminal list with the server, and sends a response message indicating successful binding to the server.

[0132] Step 13: The server updates the terminal list and sends a response message indicating successful binding to the client.

[0133] Step 14: The server sends an indication message to the client indicating that the number of terminal binding codes has reached a preset value, that is, the terminal list is full.

[0134] Step 15: The client sends a deletion instruction to the server to instruct the deletion of the terminal binding code.

[0135] Step 16: The server forwards the deletion instruction to the smart lock.

[0136] Step 17: After the smart lock successfully deletes the bound terminal, it refreshes the terminal list, synchronizes the updated terminal list with the server, and sends a response message indicating successful deletion to the server;

[0137] Step 18: The server forwards a response message indicating successful deletion to the client.

[0138] Through the above process, the entire process of client remote unlocking is realized.

[0139] In this way, the above embodiment allows the entire unlocking process to be fully visible, and does not require the visitor to input an unlocking key, which simplifies the visitor's unlocking process while ensuring the user's real-time security.

[0140] Figure 4 An unlocking system provided by an embodiment of the present invention is shown, the unlocking system includes a terminal 41 with a client installed, a server 42, a smart lock 43 and a camera 44, the smart lock 43 is in communication connection with the camera 44, the camera 44 is integrated on the smart lock 43 or is independent of the smart lock 43 and is located in the same physical space as the smart lock 43; wherein,

[0141] The client sends a key request to the smart lock, where the key request is used to instruct to obtain an unlocking key for unlocking the smart lock;

[0142] The smart lock receives the key request sent by the client, and sends the unlocking key to the client based on the key request, wherein the unlocking key includes image data captured by the camera within a preset time period;

[0143] The client sends an unlocking request to the server in response to an unlocking operation input by the user, wherein the server is synchronized with a terminal list corresponding to the smart lock, the terminal list includes terminal binding codes of terminals bound to the smart lock, and the unlocking request includes the unlocking key, terminal information corresponding to the client, and device information of the smart lock, the terminal information corresponding to the client and the terminal list are used to verify whether the terminal corresponding to the client is a terminal bound to the smart lock, and the device information of the smart lock is used to determine the communication address of the smart lock;

[0144] When verifying that the terminal corresponding to the client is the terminal bound to the smart lock based on the unlock request, sending an unlock signaling to the smart lock based on the device information, wherein the unlock signaling includes the unlock key and the terminal information corresponding to the client;

[0145] Unlock the device based on the unlocking key and the terminal information, and send a first response message to the client after the unlocking is successful, wherein the first response message is used to indicate that the smart lock is unlocked successfully.

[0146] The unlocking system provided in the embodiment of the present application can achieve Figure 1-Figure 3 To avoid repetition, the various processes implemented in the embodiments are not described here.

[0147] Figure 5 An unlocking device applied to a client provided by an embodiment of the present invention is shown, and the device includes:

[0148] A first sending module 501 is used to send a key request to a smart lock, the smart lock is in communication with a camera, the camera is integrated in the smart lock or is independent of the smart lock and is located in the same physical space as the smart lock, and the key request is used to indicate obtaining an unlocking key for unlocking the smart lock;

[0149] A first receiving module 502 is used to receive the unlocking key sent by the smart lock based on the key request, wherein the unlocking key includes image data captured by the camera within a preset time period;

[0150] A second sending module 503, configured to send an unlocking signaling to the smart lock in response to an unlocking operation input by the user, wherein the unlocking signaling includes the unlocking key and terminal information corresponding to the client;

[0151] The second receiving module 504 is used to receive the first response information sent by the smart lock after unlocking based on the unlocking key and the terminal information and successfully unlocking, and the first response information is used to indicate that the smart lock is successfully unlocked.

[0152] The unlocking device provided in the embodiment of the present application can achieve Figure 1 and Figure 3 To avoid repetition, the various processes implemented in the embodiments are not described here.

[0153] Figure 6 An unlocking device for a smart lock provided by an embodiment of the present invention is shown, and the device includes:

[0154] A first receiving module 601 is used to receive a key request sent by a client, the smart lock is in communication with a camera, the camera is integrated in the smart lock or is independent of the smart lock and is located in the same physical space as the smart lock, and the key request is used to indicate obtaining an unlocking key for unlocking the smart lock;

[0155] A first sending module 602 is configured to send the unlocking key to the client based on the key request, wherein the unlocking key includes image data captured by the camera within a preset time period;

[0156] The second receiving module 603 is used to receive an unlocking signaling sent by the client in response to an unlocking operation input by the user, wherein the unlocking signaling includes the unlocking key and terminal information corresponding to the client;

[0157] The second sending module 604 is used to unlock the lock based on the unlocking key and the terminal information, and send a first response message to the client after the unlocking is successful, wherein the first response message is used to indicate that the smart lock is unlocked successfully.

[0158] The unlocking device provided in the embodiment of the present application can achieve Figure 2-Figure 3 To avoid repetition, the various processes implemented in the embodiments are not described here.

[0159] It should be noted that the embodiments of the unlocking device in this specification and the embodiments of the unlocking method in this specification are based on the same inventive concept. Therefore, for the specific implementation of the unlocking device embodiments, reference can be made to the aforementioned corresponding implementation of the unlocking method embodiments, and the repeated parts will not be repeated.

[0160] The unlocking device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. For example, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0161] The unlocking device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0162] Based on the same technical concept, an embodiment of the present application further provides an electronic device, which is used to execute the above-mentioned distributed modeling method. Figure 7 A schematic diagram of the structure of an electronic device for implementing various embodiments of the present application. Electronic devices may have relatively large differences due to different configurations or performances, and may include a processor (processor) 710, a communication interface (Communications Interface) 720, a memory (memory) 730 and a communication bus 740, wherein the processor 710, the communication interface 720, and the memory 730 communicate with each other through the communication bus 740. The processor 710 can call a computer program stored in the memory 730 and can be run on the processor 710 to perform the following steps: sending a key request to a smart lock, the smart lock is communicatively connected to a camera, the camera is integrated in the smart lock or is independent of the smart lock and is located in the same physical space as the smart lock, and the key request is used to indicate the acquisition of an unlocking key for unlocking the smart lock;

[0163] Receiving the unlocking key sent by the smart lock based on the key request, wherein the unlocking key includes image data captured by the camera within a preset time period;

[0164] In response to an unlocking operation input by a user, an unlocking signaling is sent to the smart lock, wherein the unlocking signaling includes the unlocking key and terminal information corresponding to the client;

[0165] Receive the first response information sent by the smart lock after unlocking based on the unlocking key and the terminal information and the unlocking is successful, where the first response information is used to indicate that the smart lock is unlocked successfully.

[0166] Or do the following:

[0167] Receiving a key request sent by a client, the smart lock is communicatively connected with a camera, the camera is integrated in the smart lock or is independent of the smart lock and is located in the same physical space as the smart lock, the key request is used to indicate obtaining an unlocking key for unlocking the smart lock;

[0168] Sending the unlocking key to the client based on the key request, wherein the unlocking key includes image data captured by the camera within a preset time period;

[0169] receiving an unlocking signaling sent by the client in response to an unlocking operation input by a user, wherein the unlocking signaling includes the unlocking key and terminal information corresponding to the client;

[0170] Unlocking is performed based on the unlocking key and the terminal information, and a first response message is sent to the client after the unlocking is successful, wherein the first response message is used to indicate that the smart lock is unlocked successfully.

[0171] The specific execution steps can refer to the various steps of the above-mentioned unlocking method embodiment, and can achieve the same technical effect. To avoid repetition, they will not be repeated here.

[0172] It should be noted that the electronic devices in the embodiments of the present application include: servers, terminals, or other devices except terminals.

[0173] The above electronic device structure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. For example, the input unit may include a graphics processing unit (GPU) and a microphone, and the display unit may be configured with a display panel in the form of a liquid crystal display, an organic light-emitting diode, etc. The user input unit includes a touch panel and at least one of other input devices. The touch panel is also called a touch screen. Other input devices may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0174] The memory can be used to store software programs and various data. The memory may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory may include a volatile memory or a non-volatile memory, or the memory may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct memory bus random access memory (DRRAM).

[0175] The processor may include one or more processing units; optionally, the processor integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to the operating system, user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor.

[0176] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned unlocking method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0177] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0178] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0179] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0180] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0181] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0182] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. An unlocking method, applied to a client, characterized in that: include: Sending a key request to a smart lock, the smart lock is communicatively connected to a camera, the camera is integrated in the smart lock or is independent of the smart lock and is located in the same physical space as the smart lock, the key request is used to indicate obtaining an unlocking key for unlocking the smart lock, and the key request includes terminal information corresponding to the client; Receiving the unlocking key sent by the smart lock based on the key request, wherein the unlocking key includes image data captured by the camera within a preset time period, and the image data is video frame data; In response to an unlocking operation input by a user based on the image data, an unlocking signaling is sent to the smart lock so as to unlock the lock without requiring the visitor to input an unlocking key, wherein the unlocking signaling includes the unlocking key and terminal information corresponding to the client; Receive the first response information sent by the smart lock after unlocking based on the unlocking key and the terminal information and the unlocking is successful, where the first response information is used to indicate that the smart lock is unlocked successfully.

2. The unlocking method according to claim 1, characterized in that: Before sending the key request to the smart lock, the method further includes: Receiving identity information input by the user; After verifying that the user is a legitimate user through the identity information, the step of sending a key request to the smart lock is entered.

3. The unlocking method according to claim 1, characterized in that: After receiving the smart lock to unlock based on the unlocking key and the terminal information, the method further includes: Receiving a second response message sent after the smart lock fails to unlock, wherein the second response message is used to indicate that the reason for the failure to unlock the smart lock is that the terminal corresponding to the client is not bound to the smart lock; Based on the second response information, sending a binding signaling to the smart lock through the server, wherein the binding signaling includes the terminal information corresponding to the client and is used to instruct the smart lock to perform a binding operation between the terminal and the smart lock; Receive a third response message sent by the smart lock through the server, where the third response message is used to indicate that the smart lock is successfully bound based on the binding signaling.

4. The unlocking method according to claim 1, characterized in that: The sending of an unlocking signaling to the smart lock comprises: An unlocking request is sent to a server, and the server verifies, based on the unlocking request, that the terminal corresponding to the client is the terminal bound to the smart lock, and sends the unlocking signaling to the smart lock; wherein the server synchronizes a terminal list corresponding to the smart lock, and the terminal list includes terminal binding codes of terminals bound to the smart lock, and the unlocking request includes the unlocking key, the terminal information corresponding to the client, and the device information of the smart lock, the terminal information corresponding to the client and the terminal list are used to verify whether the terminal corresponding to the client is the terminal bound to the smart lock, and the device information of the smart lock is used to determine the communication address of the smart lock.

5. The unlocking method according to claim 4, characterized in that: After sending the unlock request to the server, the method further includes: receiving indication information sent by the server, the indication information being used to indicate that the number of terminal binding codes stored in the terminal list has reached a preset value; Sending a deletion instruction to the smart lock through the server based on the indication information, wherein the deletion instruction is used to instruct the smart lock to delete at least one of the terminal binding codes stored in the terminal list; Receive a fourth response message sent by the smart lock through the server, wherein the fourth response message is used to indicate that at least one terminal binding code is deleted successfully, wherein the server and the smart lock synchronize an updated terminal list.

6. An unlocking method, applied to a smart lock, characterized in that: include: Receiving a key request sent by a client, the smart lock is communicatively connected with a camera, the camera is integrated in the smart lock or is independent of the smart lock and is located in the same physical space as the smart lock, the key request is used to indicate obtaining an unlocking key for unlocking the smart lock, and the key request includes terminal information corresponding to the client; Sending the unlocking key to the client based on the key request, wherein the unlocking key includes image data captured by the camera within a preset time period, and the image data is video frame data; receiving an unlocking signaling sent by the client in response to an unlocking operation input by a user based on the image data, so as to unlock the door without requiring the visitor to input an unlocking key, wherein the unlocking signaling includes the unlocking key and terminal information corresponding to the client; Unlocking is performed based on the unlocking key and the terminal information, and a first response message is sent to the client after the unlocking is successful, wherein the first response message is used to indicate that the smart lock is unlocked successfully.

7. The unlocking method according to claim 6, characterized in that: The unlocking based on the unlocking key and the terminal information includes: Based on the terminal information and the terminal binding code of the terminal pre-stored in the smart lock and pre-bound to the smart lock, verify whether the terminal corresponding to the client is the terminal bound to the smart lock; If it is determined that the terminal corresponding to the client is the terminal bound to the smart lock, verify whether the unlocking key is correct; If it is determined that the unlocking key is correct, an unlocking operation is performed and it is determined that the unlocking is successful.

8. The unlocking method according to claim 6 or 7, characterized in that: After unlocking based on the unlocking key and the terminal information, the method further includes: If the unlocking fails, a second response message is sent to the client, wherein the second response message is used to indicate that the reason why the smart lock fails to unlock is that the terminal corresponding to the client is not bound to the smart lock; Receiving a binding signaling sent by the server, wherein the binding signaling is sent by the client based on the second response information, and the binding signaling includes terminal information corresponding to the client, and is used to instruct the smart lock to perform a binding operation between the terminal and the smart lock; The binding operation between the terminal and the smart lock is performed based on the binding signaling, and after the binding is successful, a third response message is sent to the client through the server, and the third response message is used to indicate that the smart lock is successfully bound.

9. The unlocking method according to claim 6, characterized in that: The receiving the unlocking signaling sent by the client in response to the unlocking operation input by the user includes: Receive an unlocking signaling sent by the client through a server, wherein the unlocking signaling is sent when the server receives an unlocking request sent by the client and verifies based on the unlocking request that the terminal corresponding to the client is the terminal bound to the smart lock; wherein the server synchronizes a terminal list corresponding to the smart lock, the terminal list includes terminal binding codes of terminals bound to the smart lock, the unlocking request includes the unlocking key, the terminal information corresponding to the client and the device information of the smart lock, the terminal information of the client and the terminal list are used to verify whether the terminal corresponding to the client is the terminal bound to the smart lock, and the device information of the smart lock is used to determine the communication address of the smart lock.

10. The unlocking method according to claim 9, characterized in that: Before receiving the unlocking signaling sent by the client through the server, the method further includes: receiving a deletion instruction sent by the client through the server, the deletion instruction being used to instruct the smart lock to delete at least one of the terminal binding codes stored in the terminal list, and the deletion instruction being sent after the client receives the indication information sent by the server, the indication information being used to indicate that the number of terminal binding codes of the terminals stored in the terminal list has reached a preset value; deleting at least one of the terminal binding codes stored in the terminal list based on the deletion instruction, and synchronizing the updated terminal list to the server; The server sends fourth response information to the client, where the fourth response information is used to indicate that at least one terminal binding code is successfully deleted.

11. An unlocking system, characterized in that: The unlocking system includes a terminal with a client installed, a server, a smart lock and a camera, the smart lock is in communication with the camera, the camera is integrated on the smart lock or is independent of the smart lock and is located in the same physical space as the smart lock; wherein, The client sends a key request to the smart lock, where the key request is used to instruct to obtain an unlocking key for unlocking the smart lock, and the key request includes terminal information corresponding to the client; The smart lock receives the key request sent by the client, and sends the unlocking key to the client based on the key request, wherein the unlocking key includes image data captured by the camera within a preset time period, and the image data is video frame data; The client sends an unlocking request to the server in response to an unlocking operation input by the user based on the image data, so as to unlock the door without the visitor inputting an unlocking key, wherein the server is synchronized with a terminal list corresponding to the smart lock, the terminal list includes terminal binding codes of terminals that have been bound to the smart lock, the unlocking request includes the unlocking key, terminal information corresponding to the client and device information of the smart lock, the terminal information corresponding to the client and the terminal list are used to verify whether the terminal corresponding to the client is a terminal bound to the smart lock, and the device information of the smart lock is used to determine the communication address of the smart lock; When verifying that the terminal corresponding to the client is the terminal bound to the smart lock based on the unlock request, sending an unlock signaling to the smart lock based on the device information, wherein the unlock signaling includes the unlock key and the terminal information corresponding to the client; Unlocking is performed based on the unlocking key and the terminal information, and a first response message is sent to the client after the unlocking is successful, wherein the first response message is used to indicate that the smart lock is unlocked successfully.

12. An electronic device, characterized in that: The method comprises a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the unlocking method as claimed in any one of claims 1 to 5, or implements the steps of the unlocking method as claimed in any one of claims 6 to 10.

13. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the unlocking method according to any one of claims 1 to 5 are implemented, or the steps of the unlocking method according to any one of claims 6 to 10 are implemented.

Citation Information

Patent Citations

  • Method and device for unlocking shared house

    CN108447149A

  • Unlocking method and system, and computer readable storage medium

    CN109389727A

  • Long -range unlock system of video monitoring

    CN208225160U

  • Unlocking method for an electronic lock

    US11138820B1