Unlocking method and device of intelligent door lock, storage medium and electronic equipment
By integrating the camera into the smart door lock and sending video to the screened device, users can check the status in front of the door before remote unlocking, solving the problem of low security in remote unlocking of the smart door lock and achieving higher security.
Patent Information
- Application Number
- CN202311407057.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-26
- Publication Date
- 2025-04-29
AI Technical Summary
In the remote unlocking mode of smart door lock, users cannot view the status in front of the door, resulting in low security.
The video is acquired in real time through the camera of the smart door lock and sent to a pre-set screened device. Users can view the status in front of the door through the screened device and decide whether to open the smart door lock based on the video content.
Improves the security of smart door locks, allowing users to confirm the identity of visitors in front of the door before unlocking remotely, thereby enhancing the security of door locks.
Smart Images

Figure CN119904935A_ABST
Abstract
Description
Technical Field
[0001] The technical solution disclosed herein relates to the field of computer technology, and in particular to a method and device for unlocking a smart door lock, a storage medium, and an electronic device. Background Art
[0002] With the advancement of technology, the application of the Internet of Things continues to grow and develop, and smart door locks connected to the Internet of Things are gradually becoming popular. At the same time, in order to adapt to people's pursuit of convenient life, in related technologies, users can remotely control the unlocking of smart door locks through voice assistants.
[0003] Specifically, when someone knocks on the door, the user can remotely control the smart door lock to unlock through the voice assistant without approaching the smart door lock to perform the unlocking operation. However, in this remote unlocking method, the user cannot check the status in front of the door, which is less secure. Summary of the invention
[0004] In view of this, the embodiments of the present disclosure provide a method and device for unlocking a smart door lock, a storage medium, and an electronic device.
[0005] According to a first aspect of the present disclosure, a method for unlocking a smart door lock is proposed, the method comprising:
[0006] When the wireless fidelity WiFi function of the smart door lock is turned on, based on the WiFi function, a video acquired in real time by the camera of the smart door lock is sent to at least one pre-set screen device; the video includes a picture in front of the door where the smart door lock is installed;
[0007] After receiving an unlocking instruction sent by a target screen device among the at least one screen device based on the received video, the smart door lock is opened based on the unlocking instruction.
[0008] In combination with any embodiment provided by the present disclosure, the video acquired in real time by the camera of the smart door lock based on the WiFi function is sent to at least one pre-set screen device, including:
[0009] Based on the WiFi function, a notification message is sent to the at least one device with a screen; the notification message is used to indicate that a target object exists in front of the smart door lock;
[0010] After receiving a response message returned by a target screen device among the at least one screen device based on the notification message, the video acquired in real time by the camera of the smart door lock is sent to the target screen device.
[0011] In combination with any embodiment provided in the present disclosure, the method further includes:
[0012] When the following conditions are met, the WiFi function is enabled:
[0013] The doorbell is detected to be pressed;
[0014] It is detected that the target object stays in front of the smart door lock for a preset time.
[0015] In combination with any of the embodiments provided in the present disclosure, when the unlocking instruction is present in a data packet after an encryption operation and / or a compression operation is performed;
[0016] After receiving the unlocking instruction sent by the target device with a screen among the at least one device with a screen based on the received video, opening the smart door lock based on the unlocking instruction includes:
[0017] After receiving the data packet sent by the target device with a screen based on the received video, performing a decryption operation and / or a decompression operation on the data packet to obtain the unlocking instruction;
[0018] Based on the unlocking instruction, the smart door lock is opened.
[0019] According to a second aspect of the present disclosure, a method for unlocking a smart door lock is proposed, the method comprising:
[0020] Displaying the received video sent by the smart door lock on the screen of the target device with a screen; the video includes a picture in front of the door where the smart door lock is installed;
[0021] Outputting an unlock inquiry prompt; the unlock inquiry prompt is used to ask the user whether to open the smart door lock;
[0022] In response to the received user's selection message for the unlocking inquiry prompt to unlock the smart door lock, an unlocking instruction is sent to the smart door lock, so that the smart door lock opens the smart door lock based on the unlocking instruction.
[0023] In combination with any embodiment provided in the present disclosure, before displaying the received video sent by the smart door lock on the screen of the target screen device, the method further includes:
[0024] Displaying the received notification message sent by the smart door lock on the screen of the target device with a screen; the notification message is used to indicate that there is a target object in front of the smart door lock;
[0025] After detecting the user's touch operation on the notification message, a response message corresponding to the touch operation is sent to the smart door lock, so that the smart door lock sends the video acquired in real time by the camera of the smart door lock to the target screen device based on the response message.
[0026] In combination with any embodiment provided in the present disclosure, sending an unlocking instruction to the smart door lock so that the smart door lock opens the smart door lock based on the unlocking instruction includes:
[0027] Performing an encryption operation and / or a compression operation on a data packet containing the unlocking instruction;
[0028] The data packet obtained after the encryption operation and / or compression operation is sent to the smart door lock, so that the smart door lock opens the smart door lock based on the unlocking instruction contained in the data packet.
[0029] According to a third aspect of the present disclosure, a smart door lock unlocking device is provided, the device comprising:
[0030] A video sending module, used for sending the video acquired in real time by the camera of the smart door lock to at least one pre-set screen device based on the wireless fidelity WiFi function when the wireless fidelity WiFi function of the smart door lock is turned on; the video includes a picture in front of the door where the smart door lock is installed;
[0031] The door lock opening module is used to open the smart door lock based on the unlocking instruction after receiving the unlocking instruction sent by the target screen device among the at least one screen device based on the received video.
[0032] According to a fourth aspect of the present disclosure, a smart door lock unlocking device is provided, the device comprising:
[0033] A video display module, used to display the received video sent by the smart door lock on the screen of the target device with a screen; the video includes the picture in front of the door where the smart door lock is installed;
[0034] A prompt output module, used to output an unlock inquiry prompt; the unlock inquiry prompt is used to ask the user whether to open the smart door lock;
[0035] The instruction sending module is used to send an unlocking instruction to the smart door lock in response to the user's selection message for the unlocking inquiry prompt to unlock the smart door lock, so that the smart door lock opens the smart door lock based on the unlocking instruction.
[0036] According to a fifth aspect of the present disclosure, a computer-readable storage medium is provided, wherein the machine-readable storage medium stores machine-readable instructions, and when the machine-readable instructions are called and executed by a processor, the processor is prompted to implement the unlocking method of the smart door lock of any embodiment of the present disclosure.
[0037] According to a sixth aspect of the present disclosure, there is provided an electronic device, comprising:
[0038] processor;
[0039] a memory for storing processor-executable instructions;
[0040] Wherein, the processor is configured to execute the unlocking method of the smart door lock of any embodiment of the present disclosure.
[0041] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0042] In the unlocking method and device, storage medium and electronic device of the smart door lock provided by the embodiments of the present disclosure, the smart door lock can, when detecting that its own WiFi (Wireless Fidelity) function is in an on state, send the video acquired in real time by the camera of the smart door lock to at least one pre-set screen device based on the WiFi function. Then, after receiving the unlocking instruction sent by the target screen device among the at least one screen device based on the received video, the smart door lock is opened based on the unlocking instruction. Through the unlocking method of the smart door lock provided by the embodiments of the present disclosure, the user can receive the video sent by the smart door lock through the screen device, check the identity of the visitor in front of the door where the smart door lock is installed through the video, and then determine whether to open the smart door lock, which has high security.
[0043] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0045] Figure 1 is a flow chart of a method for unlocking a smart door lock according to an exemplary embodiment of the present disclosure;
[0046] Figure 2 is a flow chart of another method for unlocking a smart door lock according to an exemplary embodiment of the present disclosure;
[0047] Figure 3 is a flow chart of another method for unlocking a smart door lock according to an exemplary embodiment of the present disclosure;
[0048] Figure 4 is a flow chart of another method for unlocking a smart door lock according to an exemplary embodiment of the present disclosure;
[0049] Figure 5 is a structural schematic diagram of an unlocking device of a smart door lock according to an exemplary embodiment of the present disclosure;
[0050] Figure 6 is a schematic structural diagram of another unlocking device of a smart door lock according to an exemplary embodiment of the present disclosure;
[0051] Figure 7 It is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0052] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0053] The terms used in this disclosure are for the purpose of describing specific embodiments only and are not intended to limit the disclosure. The singular forms of "a", "said" and "the" used in this disclosure and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0054] It should be understood that although the terms first, second, third, etc. may be used in the present disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present disclosure, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0055] With the advancement of technology, the application of the Internet of Things continues to grow and develop, and smart door locks connected to the Internet of Things are gradually becoming popular. At the same time, in order to adapt to people's pursuit of convenient life, in related technologies, users can remotely control the unlocking of smart door locks through voice assistants.
[0056] Specifically, when someone knocks on the door, the user can remotely control the smart door lock to unlock through the voice assistant without approaching the smart door lock to perform the unlocking operation. However, in this remote unlocking method, the user cannot check the status in front of the door, which is less secure.
[0057] In view of this, the present disclosure provides a method for unlocking a smart door lock. In this method, the smart door lock can send a video acquired by a camera to a device with a screen, and the video includes a picture in front of the door where the smart door lock is installed. Then, the user checks the state in front of the door based on the video received by the device with a screen, thereby determining whether to open the smart door lock, which is highly secure.
[0058] The unlocking method of the smart door lock of the embodiment of the present disclosure is described in detail below in conjunction with the accompanying drawings.
[0059] Figure 1 FIG. 1 is a flow chart of a method for unlocking a smart door lock according to an exemplary embodiment of the present disclosure. The method can be executed by a smart door lock, such as Figure 1 As shown, the exemplary embodiment method may include the following steps:
[0060] In step 101, when the WiFi function of the smart door lock is turned on, based on the WiFi function, the video acquired in real time by the camera of the smart door lock is sent to at least one pre-set screen device.
[0061] The video includes a scene in front of the door where the smart door lock is installed.
[0062] The user can pre-set at least one device with a screen on the smart door lock. For example, the user can set his or her mobile phone, tablet computer, smart speaker with a screen, TV, etc. as the at least one device with a screen.
[0063] Since the power consumption of the smart door lock will increase after the WiFi function is turned on, in this example, the WiFi function can be turned on when the smart door lock determines that there is someone in front of the door. At the same time, the smart door lock can control the camera to turn on, obtain a video containing the current scene in front of the door through the camera, and send the obtained video to the at least one screen device mentioned above in real time.
[0064] The video is composed of continuous image frames, each of which is a still image in the video. When sending the video, the smart door lock can package the 5 continuous image frames into a data packet after obtaining a certain number of continuous image frames, such as 5 frames, and transmit the data packet to the aforementioned at least one screen device through the network, thereby achieving real-time transmission.
[0065] It should be noted that the network used by the aforementioned smart door lock to communicate with the device with a screen can be either a local area network or a wide area network. Take the device with a screen as an example, a mobile phone:
[0066] LAN scenario: In the user's home, the smart door lock and the mobile phone are connected to the same WiFi network. At this time, the smart door lock and the mobile phone can directly obtain each other's IP (Internet Protocol) address. In this scenario, the smart door lock can directly send the acquired video to the mobile phone based on the IP address of the mobile phone.
[0067] WAN scenario: The smart door lock is connected to the WiFi network at home. The user takes the mobile phone to another city and uses the 4G (the 4Generation mobile communication technology) network. At this time, after turning on the WiFi function, the smart door lock needs to connect to the corresponding router, and then connect to the server, and establish a p2p (Peer-to-Peer) network path between the server and the mobile phone. Then, through the established p2p network path, the acquired video is sent to the mobile phone. The process of establishing a p2p network path based on the server can be found in the introduction of the relevant technical solution, which will not be repeated here.
[0068] In summary, in the LAN scenario, the smart door lock and the mobile phone can communicate directly based on each other's IP address. In the WAN scenario, the smart door lock and the mobile phone need to establish a p2p network path with the help of a server, and then conduct subsequent communications through the established p2p network path. In other words, the unlocking method of the smart door lock disclosed in the present invention does not limit the distance between the smart door lock and the device with a screen. For the convenience of description, the LAN scenario and the WAN scenario are no longer distinguished in the subsequent embodiments.
[0069] In step 102, after receiving an unlocking instruction sent by a target screen device among the at least one screen device based on the received video, the smart door lock is opened based on the unlocking instruction.
[0070] After the smart door lock sends the acquired video to the aforementioned at least one screen device, the user can view the video through the aforementioned at least one screen device and understand the identity of the visitor in front of the door through the video. When it is determined to open the smart door lock, the at least one screen device sends an unlocking instruction to the smart door lock. In this example, the screen device that sends the unlocking instruction can be determined as the target screen device.
[0071] After receiving the unlocking instruction sent by the aforementioned target screen device, the smart door lock can open the smart door lock based on the unlocking instruction.
[0072] In the unlocking method of the smart door lock provided by the embodiment of the present disclosure, the smart door lock can send the video acquired in real time by the camera of the smart door lock to at least one pre-set screen device based on the WiFi function when it detects that its own WiFi function is in the turned-on state. Then, after receiving the unlocking instruction sent by the target screen device among the at least one screen device based on the received video, the smart door lock is opened based on the unlocking instruction. Through the unlocking method of the smart door lock provided by the embodiment of the present disclosure, the user can receive the video sent by the smart door lock through the screen device, check the identity of the visitor in front of the door where the smart door lock is installed through the video, and then determine whether to open the smart door lock, which has high security.
[0073] Figure 2 FIG. 1 is a flowchart of another method for unlocking a smart door lock according to an exemplary embodiment of the present disclosure, and the method is also executed by the smart door lock. In this embodiment, the same steps as those in the previous embodiment will be briefly described and will not be described in detail. For details, please refer to any of the previous embodiments. Figure 2 As shown, the exemplary embodiment method may include the following steps:
[0074] In step 201, when it is detected that the doorbell is pressed, and / or it is detected that the target object stays in front of the smart door lock for a preset time, the WiFi function is turned on.
[0075] In an optional example, when the smart door lock detects that the doorbell is pressed, the WiFi function can be turned on.
[0076] The doorbell may be a doorbell of the smart door lock itself, in which case the smart door lock can automatically detect whether the doorbell is pressed. Alternatively, the doorbell may be a separate doorbell, in which case the separate doorbell needs to be connected to the smart door lock via WiFi or Bluetooth. When the doorbell is pressed, a message indicating that the doorbell is pressed may be sent to the smart door lock via WiFi or Bluetooth.
[0077] In another optional example, when the smart door lock detects that the target object stays in front of the smart door lock for a preset time, the WiFi function can be turned on.
[0078] The smart door lock can carry an infrared human body sensor. When the infrared human body sensor detects a change in temperature or heat source, it determines that there is a target object in front of the smart door lock, and the target object can be, for example, a person. Then, when the infrared human body sensor detects that the target object stays in front of the smart door lock for a preset time, such as 10 seconds, the smart door lock can turn on the WiFi function.
[0079] To avoid misjudgment, when the infrared human body sensor detects a change in temperature or heat source, the smart door lock can also control the camera to turn on and obtain a picture containing the scene outside the door. Then, the picture is subjected to portrait detection to determine whether there is someone outside the door at this time. When the portrait detection result shows that there is someone outside the door and the length of stay reaches the preset time, the smart door lock can turn on the WiFi function.
[0080] In another optional example, in order to further reduce the probability of misjudgment, the smart door lock can turn on the WiFi function after detecting that the target object has stayed in front of the smart door lock for a preset time and the doorbell has been pressed.
[0081] In step 202, a notification message is sent to at least one device with a screen based on the WiFi function.
[0082] The notification message is used to indicate that a target object exists in front of the smart door lock. The at least one device with a screen may include, for example, a mobile phone or a tablet computer.
[0083] Optionally, the notification message may be a Push message, which is a notification message that delivers information to a user in real time through a push service of a device.
[0084] In this example, the smart door lock can send a Push message to a mobile phone or tablet computer based on the WiFi function. After receiving the Push message sent by the smart door lock, the mobile phone or tablet computer can display the specific content of the Push message on the notification bar or lock screen interface, for example: There is someone in front of the door lock!
[0085] In step 203, after receiving a response message returned by the target screen device among the at least one screen device based on the notification message, the video acquired in real time by the camera of the smart door lock is sent to the target screen device.
[0086] As can be seen above, mobile phones and tablet computers can display the specific content of Push messages on the notification bar or lock screen interface.
[0087] When the user clicks on the notification message on the mobile phone, it means that the user is currently using the mobile phone. At this time, the mobile phone is the target screen device and can send a response message to the smart door lock. After receiving the response message sent by the mobile phone, the smart door lock only sends the video acquired through the camera to the mobile phone, without sending it to the tablet computer at the same time, thereby reducing network load and resource consumption.
[0088] Similarly, when the user clicks on the notification message on the tablet, the tablet is the target screen device and can send a response message to the smart door lock. After receiving the response message sent by the tablet, the smart door lock only sends the video acquired through the camera to the tablet without sending it to the mobile phone at the same time.
[0089] In step 204, after receiving the data packet containing the unlocking instruction sent by the target screen device based on the received video, the data packet is decrypted and / or decompressed to obtain the unlocking instruction.
[0090] Taking the target screen device as the aforementioned mobile phone as an example, after the smart door lock sends the acquired video to the mobile phone, the user can check the identity of the visitor in front of the door through the video on the mobile phone, and when deciding to open the smart door lock, send an unlocking command to the smart door lock through the mobile phone.
[0091] For example, while displaying the aforementioned video, the mobile phone may output an unlock inquiry prompt for asking the user whether to unlock the smart door lock, and provide two options of yes and no. When the user is sure to unlock the smart door lock, the user may click the option yes. When the mobile phone receives the user's selection message for the unlock inquiry prompt as yes, the data packet containing the unlock instruction may be encrypted and / or compressed. The data packet obtained after the encryption and / or compression operation is sent to the smart door lock.
[0092] After receiving the aforementioned data packet obtained through encryption and / or compression operation, the smart door lock can perform corresponding decryption and / or decompression operation on the data packet to obtain an unlocking instruction.
[0093] In step 205, the smart door lock is unlocked based on the unlocking instruction.
[0094] In the unlocking method of the smart door lock provided by the embodiment of the present disclosure, the smart door lock can turn on the WiFi function when it detects that the doorbell is pressed and / or detects that the target object stays in front of the smart door lock for a preset time, thereby avoiding unnecessary power consumption. Furthermore, in this embodiment, after turning on the WiFi function, the smart door lock can first send a notification message to at least one device with a screen, and after receiving a response message returned by the target device with a screen among at least one device with a screen based on the notification message, only send the video acquired by the camera to the target device with a screen. Compared with sending the video to each pre-set device with a screen, this method can reduce network load and resource consumption.
[0095] Figure 3FIG. 1 is a flowchart of another method for unlocking a smart door lock according to an exemplary embodiment of the present disclosure. The method can be executed by a target device with a screen, such as Figure 3 As shown, the exemplary embodiment method may include the following steps:
[0096] In step 301, the received video sent by the smart door lock is displayed on the screen of the target screen device.
[0097] The video includes a scene in front of the door where the smart door lock is installed.
[0098] In step 302, an unlocking inquiry prompt is output.
[0099] The unlock inquiry prompt is used to ask the user whether to unlock the smart door lock.
[0100] Optionally, the target device with a screen can display the received video on the screen and display a pop-up window to ask for unlocking. For example, a pop-up window can be displayed: Do you want to start smart door lock? and two options of yes and no can be given for the user to choose.
[0101] Alternatively, the target device with a screen can output the unlock inquiry prompt by voice while displaying the received video on the screen. For example, the voice output can be: Do you want to open the smart door lock? And two options of yes and no can be given on the screen for the user to choose. Alternatively, after the target device with a screen outputs the unlock inquiry prompt by voice, the microphone can be turned on to receive the user's response message to the unlock inquiry prompt output by voice.
[0102] Alternatively, the target screen device can display an unlock icon on the screen while displaying the received video.
[0103] In step 303, in response to the received user's selection message for the unlocking inquiry prompt to unlock the smart door lock, an unlocking instruction is sent to the smart door lock, so that the smart door lock opens the smart door lock based on the unlocking instruction.
[0104] When the user selects yes in response to the two options of yes and no, or when it is determined that the user's voice input received based on the microphone is yes, or after receiving the user's touch operation on the displayed unlock icon, the target screen device sends an unlock instruction to the smart door lock, so that the smart door lock opens the smart door lock based on the received unlock instruction.
[0105] In the unlocking method of the smart door lock provided by the embodiment of the present disclosure, after receiving the video sent by the smart door lock, the target screen device can display the video on the screen of the target screen device for the user to view. When the user checks the identity of the visitor in front of the door based on the video and determines to open the smart door lock, the target screen device can send an unlocking instruction to the smart door lock to achieve remote unlocking. In addition, since the unlocking instruction is sent after the user determines the identity of the visitor in front of the door, it is more secure.
[0106] Figure 4 FIG. 1 is a flowchart of another method for unlocking a smart door lock according to an exemplary embodiment of the present disclosure, and the method is also executed by the target device with a screen. Figure 4 As shown, the exemplary embodiment method may include the following steps:
[0107] In step 401, the received notification message sent by the smart door lock is displayed on the screen of the target screen device.
[0108] The notification message is used to indicate that a target object exists in front of the smart door lock.
[0109] As mentioned above, the notification message may be a Push message. After receiving the Push message sent by the smart door lock, the target device with a screen may display the specific content of the Push message on the notification bar or lock screen interface, for example, it may be: There is someone in front of the door lock!
[0110] In step 402, after detecting the user's touch operation on the notification message, a response message corresponding to the touch operation is sent to the smart door lock, so that the smart door lock sends the video acquired in real time by the camera of the smart door lock to the target screen device based on the response message.
[0111] When the user clicks on the above Push message, the target screen device can detect the user's touch operation on the Push message. At this time, the target screen device can send a response message to the smart door lock, so that the smart door lock can send the video acquired in real time by the camera of the smart door lock to the target screen device based on the received response message.
[0112] In step 403, the received video sent by the smart door lock is displayed on the screen of the target screen device.
[0113] The video includes a scene in front of the door where the smart door lock is installed.
[0114] In step 404, an unlocking inquiry prompt is output.
[0115] The unlock inquiry prompt is used to ask the user whether to unlock the smart door lock.
[0116] In step 405, in response to the user's selection message for the unlocking inquiry prompt being received to unlock the smart door lock, an encryption operation and / or compression operation is performed on the data packet containing the unlocking instruction.
[0117] In an optional example, the target screen-equipped device may place the unlocking instruction in a data packet and use a preset door lock key to encrypt and / or compress the data packet.
[0118] In another optional example, the target device with a screen may place the unlocking instruction, the current timestamp, and the identification information of the target device with a screen in one data packet, and perform encryption and / or compression operations on the data packet using a preset door lock key.
[0119] In step 406, the data packet obtained after the encryption operation and / or compression operation is sent to the smart door lock, so that the smart door lock opens the smart door lock based on the unlocking instruction contained in the data packet.
[0120] When the smart door lock determines that the data packet only contains the unlocking instruction after performing a decryption operation and / or a decompression operation on the received data packet using the preset door lock key, the smart door lock can start the smart door lock based on the unlocking instruction.
[0121] When the smart door lock determines after using the preset door lock key to decrypt and / or decompress the received data packet that the data packet contains unlocking instructions, timestamp, and identification information of the device with a screen, the smart door lock can perform further verification based on the timestamp and identification information of the device with a screen, thereby further improving security.
[0122] For example, for timestamps, the smart door lock can verify the time difference between the timestamp in the data packet and the current timestamp. When the time difference is within a certain time range, such as within 5 seconds, it is considered to have passed the verification. For the identification information of the device with a screen, the smart door lock can verify whether the device with a screen corresponding to the identification information of the device with a screen in the data packet is one of the at least one device with a screen pre-set by the user on the smart door lock. If so, it is considered to have passed the verification. At this point, the smart door lock can start the smart door lock based on the unlocking instruction in the data packet.
[0123] It should be noted that the present disclosure does not limit how the door lock key is synchronized to the target screen device.
[0124] In a possible implementation, the user can use the mobile phone to perform the first binding configuration on the smart door lock. During the binding configuration process, the mobile phone and the smart door lock can negotiate a door lock key based on the ECDH (Elliptic Curve Diffie-Hellmankey Exchange) algorithm and save it separately.
[0125] Then, the user can connect the mobile phone to other devices with screens respectively. After the connection, the mobile phone can authorize the negotiated door lock key to each device with screen respectively, so that the device with screen can obtain the door lock key.
[0126] In the unlocking method of the smart door lock provided by the embodiment of the present disclosure, when the user sends an unlocking instruction to the smart door lock through the target device with a screen, the target device with a screen can perform encryption and / or compression operations on the data packet containing the unlocking instruction based on the preset door lock key, and then send the encrypted and / or compressed data packet to the smart door lock. This further improves the security of sending the unlocking instruction, reduces the amount of data transmission, and increases the transmission speed.
[0127] For the aforementioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should know that the present disclosure is not limited by the described order of actions, because according to the present disclosure, certain steps can be performed in other orders or simultaneously.
[0128] Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present disclosure.
[0129] Corresponding to the aforementioned application function implementation method embodiment, the present disclosure also provides an application function implementation device and a corresponding terminal embodiment.
[0130] Figure 5 FIG. 1 is a schematic diagram of a structure of an unlocking device of a smart door lock according to an exemplary embodiment of the present disclosure. Figure 5 As shown, the unlocking device of the smart door lock may include:
[0131] The video sending module 51 is used to send the video acquired in real time by the camera of the smart door lock to at least one pre-set screen device based on the WiFi function when the wireless fidelity WiFi function of the smart door lock is turned on; the video includes the picture in front of the door where the smart door lock is installed.
[0132] The door lock opening module 52 is used to open the smart door lock based on the unlocking instruction after receiving the unlocking instruction sent by the target screen device among the at least one screen device based on the received video.
[0133] Optionally, the video sending module 51, when used to send the video acquired in real time by the camera of the smart door lock to at least one pre-set screen device based on the WiFi function, includes:
[0134] Based on the WiFi function, a notification message is sent to the at least one device with a screen; the notification message is used to indicate that a target object exists in front of the smart door lock.
[0135] After receiving a response message returned by a target screen device among the at least one screen device based on the notification message, the video acquired in real time by the camera of the smart door lock is sent to the target screen device.
[0136] Optional, in Figure 5 Based on the modules shown, the unlocking device of the smart door lock may further include:
[0137] The WiFi activation module is used to activate the WiFi function when the following conditions are met:
[0138] The doorbell is detected.
[0139] It is detected that the target object stays in front of the smart door lock for a preset time.
[0140] Optionally, when the unlocking instruction exists in a data packet after an encryption operation and / or a compression operation is performed;
[0141] The door lock opening module 52 is used to open the smart door lock based on the unlocking instruction sent by the target screen device among the at least one screen device based on the received video after receiving the unlocking instruction, including:
[0142] After receiving the data packet sent by the target device with a screen based on the received video, a decryption operation and / or a decompression operation is performed on the data packet to obtain the unlocking instruction.
[0143] Based on the unlocking instruction, the smart door lock is opened.
[0144] Figure 6 FIG. 1 is a schematic diagram of a structure of another unlocking device of a smart door lock according to an exemplary embodiment of the present disclosure. Figure 6 As shown, the unlocking device of the smart door lock may include:
[0145] The video display module 61 is used to display the received video sent by the smart door lock on the screen of the target screen device; the video includes the picture in front of the door where the smart door lock is installed.
[0146] The prompt output module 62 is used to output an unlock inquiry prompt; the unlock inquiry prompt is used to ask the user whether to open the smart door lock.
[0147] The instruction sending module 63 is used to send an unlocking instruction to the smart door lock in response to the user's selection message for the unlocking inquiry prompt to unlock the smart door lock, so that the smart door lock opens the smart door lock based on the unlocking instruction.
[0148] Optional, in Figure 6 Based on the modules shown, the unlocking device of the smart door lock may also include:
[0149] A notification message display module is used to display the received notification message sent by the smart door lock on the screen of the target screen device; the notification message is used to indicate that there is a target object in front of the smart door lock.
[0150] A response message sending module is used to send a response message corresponding to the touch operation to the smart door lock after detecting the user's touch operation on the notification message, so that the smart door lock can send the video acquired in real time by the camera of the smart door lock to the target screen device based on the response message.
[0151] Optionally, the instruction sending module 63, when used to send an unlocking instruction to the smart door lock so that the smart door lock opens the smart door lock based on the unlocking instruction, includes:
[0152] An encryption operation and / or a compression operation is performed on the data packet containing the unlocking instruction.
[0153] The data packet obtained after the encryption operation and / or compression operation is sent to the smart door lock, so that the smart door lock opens the smart door lock based on the unlocking instruction contained in the data packet.
[0154] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can refer to the partial description of the method embodiments. The device embodiments described above are only schematic, wherein the units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the disclosed solution. A person of ordinary skill in the art may understand and implement it without creative work.
[0155] Figure 7 1 is a schematic diagram of the structure of an electronic device 700 according to an exemplary embodiment of the present disclosure. For example, the electronic device 700 may be a smart door lock or a device with a screen. Specifically, the device with a screen may be a mobile phone, a computer, a smart speaker with a screen, a tablet device, etc.
[0156] Reference Figure 7 , the electronic device 700 may include one or more of the following components: a processing component 702 , a memory 704 , a power component 706 , a multimedia component 708 , an audio component 710 , an input / output (I / O) interface 712 , a sensor component 714 , and a communication component 716 .
[0157] The processing component 702 generally controls the overall operation of the electronic device 700, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 702 may include one or more processors 720 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 702 may include one or more modules to facilitate the interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate the interaction between the multimedia component 708 and the processing component 702.
[0158] The memory 704 is configured to store various types of data to support operations on the device 700. Examples of such data include instructions for any application or method operating on the electronic device 700, contact data, phone book data, messages, pictures, videos, etc. The memory 704 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0159] The power supply component 706 provides power to the various components of the electronic device 700. The power supply component 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 700.
[0160] The multimedia component 708 includes a screen that provides an output interface between the electronic device 700 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 708 includes a front camera and / or a rear camera. When the electronic device 700 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0161] The audio component 710 is configured to output and / or input audio signals. For example, the audio component 710 includes a microphone (MIC), and when the electronic device 700 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 704 or sent via the communication component 716. In some embodiments, the audio component 710 also includes a speaker for outputting audio signals.
[0162] I / O interface 712 provides an interface between processing component 702 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0163] The sensor assembly 714 includes one or more sensors for providing various aspects of status assessment for the electronic device 700. For example, the sensor assembly 714 can detect the open / closed state of the electronic device 700, the relative positioning of the components, such as the display and keypad of the electronic device 700, and the sensor assembly 714 can also detect the position change of the electronic device 700 or a component of the electronic device 700, the presence or absence of contact between the user and the electronic device 700, the orientation or acceleration / deceleration of the electronic device 700, and the temperature change of the electronic device 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 714 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0164] The communication component 716 is configured to facilitate wired or wireless communication between the electronic device 700 and other devices. The electronic device 700 can access a wireless network based on a communication standard, such as WiFi, 4G or 5G, 4G LTE, 5G NR or a combination thereof. In an exemplary embodiment, the communication component 716 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 716 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0165] In an exemplary embodiment, the electronic device 700 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.
[0166] In an exemplary embodiment, a non-temporary computer-readable storage medium is also provided, such as a memory 704 including instructions. When the instructions in the storage medium are executed by a processor 720 of an electronic device 700, the electronic device 700 is enabled to execute the unlocking method of the smart door lock of any embodiment of the present disclosure.
[0167] The non-transitory computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
[0168] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0169] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A method for unlocking a smart door lock, characterized in that: The method comprises: When the wireless fidelity WiFi function of the smart door lock is turned on, based on the WiFi function, a video acquired in real time by the camera of the smart door lock is sent to at least one pre-set screen device; the video includes a picture in front of the door where the smart door lock is installed; After receiving an unlocking instruction sent by a target screen device among the at least one screen device based on the received video, the smart door lock is opened based on the unlocking instruction.
2. The method according to claim 1, characterized in that The method of sending the video acquired in real time by the camera of the smart door lock to at least one pre-set screen device based on the WiFi function includes: Based on the WiFi function, a notification message is sent to the at least one device with a screen; the notification message is used to indicate that a target object exists in front of the smart door lock; After receiving a response message returned by a target screen device among the at least one screen device based on the notification message, the video acquired in real time by the camera of the smart door lock is sent to the target screen device.
3. The method according to claim 1 or 2, characterized in that: The method further comprises: When the following conditions are met, the WiFi function is enabled: The doorbell is detected to be pressed; It is detected that the target object stays in front of the smart door lock for a preset time.
4. The method according to claim 1, characterized in that: When the unlocking instruction exists in a data packet after an encryption operation and / or a compression operation is performed; After receiving the unlocking instruction sent by the target device with a screen among the at least one device with a screen based on the received video, opening the smart door lock based on the unlocking instruction includes: After receiving the data packet sent by the target device with a screen based on the received video, performing a decryption operation and / or a decompression operation on the data packet to obtain the unlocking instruction; Based on the unlocking instruction, the smart door lock is opened.
5. A method for unlocking a smart door lock, characterized in that: The method comprises: Displaying the received video sent by the smart door lock on the screen of the target device with a screen; the video includes a picture in front of the door where the smart door lock is installed; Outputting an unlock inquiry prompt; the unlock inquiry prompt is used to ask the user whether to open the smart door lock; In response to the received user's selection message for the unlocking inquiry prompt to unlock the smart door lock, an unlocking instruction is sent to the smart door lock, so that the smart door lock opens the smart door lock based on the unlocking instruction.
6. The method according to claim 5, characterized in that Before displaying the received video sent by the smart door lock on the screen of the target screen device, the method further includes: Displaying the received notification message sent by the smart door lock on the screen of the target device with a screen; the notification message is used to indicate that there is a target object in front of the smart door lock; After detecting the user's touch operation on the notification message, a response message corresponding to the touch operation is sent to the smart door lock, so that the smart door lock sends the video acquired in real time by the camera of the smart door lock to the target screen device based on the response message.
7. The method according to claim 5, characterized in that The sending of an unlocking instruction to the smart door lock so that the smart door lock opens the smart door lock based on the unlocking instruction includes: Performing an encryption operation and / or a compression operation on a data packet containing the unlocking instruction; The data packet obtained after the encryption operation and / or compression operation is sent to the smart door lock, so that the smart door lock opens the smart door lock based on the unlocking instruction contained in the data packet.
8. An unlocking device for a smart door lock, characterized in that: The device comprises: A video sending module, used for sending the video acquired in real time by the camera of the smart door lock to at least one pre-set screen device based on the wireless fidelity WiFi function when the wireless fidelity WiFi function of the smart door lock is turned on; the video includes a picture in front of the door where the smart door lock is installed; The door lock opening module is used to open the smart door lock based on the unlocking instruction after receiving the unlocking instruction sent by the target screen device among the at least one screen device based on the received video.
9. An unlocking device for a smart door lock, characterized in that: The device comprises: A video display module, used to display the received video sent by the smart door lock on the screen of the target device with a screen; the video includes the picture in front of the door where the smart door lock is installed; A prompt output module, used to output an unlock inquiry prompt; the unlock inquiry prompt is used to ask the user whether to open the smart door lock; The instruction sending module is used to send an unlocking instruction to the smart door lock in response to the user's selection message for the unlocking inquiry prompt to unlock the smart door lock, so that the smart door lock opens the smart door lock based on the unlocking instruction.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method described in any one of claims 1 to 4 or claims 5 to 7 are implemented.
11. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to execute the steps of any one of the methods of claims 1-4 or claims 5-7.