Unlocking method and system of intelligent door lock, terminal and storage medium
By combining the Internet of Things, near-field communication and intelligent sensing technology, smart door locks can be automatically unlocked when users are approaching, solving the problems of low unlocking efficiency and safety hazards in the existing technology, and improving convenience and security.
Patent Information
- Application Number
- CN202510076642.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-17
- Publication Date
- 2025-05-13
AI Technical Summary
The existing smart door lock unlocking method cannot provide sufficient flexibility and convenience, resulting in low efficiency of successful unlocking and security risks such as password leakage, fingerprint forgery or door card loss.
By combining IoT technology, near-field communication technology and intelligent sensing technology, users can automatically unlock when they are close to the door lock without manual operation. The method includes detecting the user's arrival in the preset range, waking up the smart door lock, performing device scanning, generating authentication requests, receiving authorization information, and sending unlocking instructions based on the authorization information.
Improve the efficiency and convenience of unlocking, allowing users to unlock without manual operation, enhance security and avoid the security risks of traditional unlocking methods.
Smart Images

Figure CN119992693A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of induction unlocking technology, and in particular to an unlocking method, system, terminal and computer-readable storage medium for a smart door lock. Background Art
[0002] With the development of Internet of Things technology and the popularization of smart home devices, smart door locks have been widely used as devices to improve home security and convenience. At present, smart door lock products usually use a variety of unlocking methods, mainly including password unlocking, fingerprint unlocking, door card unlocking, face recognition unlocking, and traditional mechanical key unlocking.
[0003] Although the existing unlocking methods have their own advantages in different usage scenarios and can meet the needs of most users, they are still inconvenient to use and have potential safety hazards in certain situations. In particular, when it is inconvenient for users to operate manually or when they need to enter quickly, the existing unlocking methods cannot provide sufficient flexibility and convenience, resulting in a low efficiency of successful unlocking. In addition, the existing unlocking methods also have potential safety hazards such as password leakage, fingerprint forgery or door card loss.
[0004] Therefore, the prior art still needs to be improved and developed. Summary of the invention
[0005] The main purpose of the present invention is to provide an unlocking method, system, terminal and storage medium for a smart door lock, aiming to solve the problem that the unlocking method of the prior art cannot provide sufficient flexibility and convenience, resulting in low efficiency of successful unlocking and low security of the unlocking method.
[0006] To achieve the above object, the present invention provides a method for unlocking a smart door lock, the method comprising the following steps:
[0007] When it is detected that the user has arrived at the preset range, the target smart door lock is awakened, and the target smart door lock is scanned to obtain the scanning result;
[0008] Generate a user authentication request according to the scanning result, send the user authentication request to the target smart door lock, and if it is detected that the authentication of the target smart door lock is successful, receive the authorization information sent by the target smart door lock;
[0009] According to the authorization information, the corresponding target unlocking instruction is sent to the target smart door lock to control the target smart door lock to unlock according to the target unlocking instruction, and receive the operation feedback information sent by the target smart door lock.
[0010] Optionally, the unlocking method of the smart door lock, wherein when it is detected that the user has arrived at a preset range, the target smart door lock is awakened, and a device scan is performed on the target smart door lock to obtain a scan result, and the method also includes:
[0011] Scan the smart door locks within the target range to obtain the target smart door locks, and detect the network distribution status of the target smart door locks;
[0012] If it is detected that the target smart door lock is in a network configuration state, the target smart door lock is configured for network configuration, a network configuration result is obtained, and an authentication request is sent to the server according to the network configuration result;
[0013] Receive the network token sent by the server, send a corresponding device binding request to the target smart door lock according to the network token, and receive the authentication information sent by the target smart door lock;
[0014] The authentication information is sent to the server, the encrypted verification information sent by the server is received, and the target smart door lock is bound according to the encrypted verification information.
[0015] Optionally, the unlocking method of the smart door lock, wherein the step of sending the authentication information to the server, receiving the encrypted verification information sent by the server, and binding the target smart door lock according to the encrypted verification information, specifically includes:
[0016] Setting the unlocking mode of the target smart door lock to a proximity unlocking mode, generating a key creation request according to the proximity unlocking mode, and sending the key creation request to the server;
[0017] Receiving the data encryption public key sent by the server, encrypting the corresponding target information according to the data encryption public key to obtain target encrypted data, wherein the target information includes the door lock unique identifier, user information and timestamp;
[0018] The target encrypted data is sent to the server, and a key identifier and a key creation result sent by the server are received, wherein the key creation result is that the server sends the generated key to the target smart door lock.
[0019] Optionally, the unlocking method of the smart door lock, wherein when it is detected that the user has arrived at a preset range, the target smart door lock is awakened, and a device scan is performed on the target smart door lock to obtain a scan result, specifically including:
[0020] When it is detected that the user has arrived at a preset range, a door lock wake-up request is generated and the door lock wake-up request is sent to a server;
[0021] Receive the door lock wake-up result sent by the server, and perform a device scan on the target smart door lock according to the door lock wake-up result to obtain a scan result, wherein the door lock wake-up result is that the server sends the door lock wake-up request to the target smart door lock, and the target smart door lock switches to a working state according to the door lock wake-up request.
[0022] Optionally, the unlocking method of the smart door lock, wherein the step of generating a user authentication request according to the scanning result, sending the user authentication request to the target smart door lock, and if it is detected that the authentication of the target smart door lock is successful, receiving the authorization information sent by the target smart door lock, specifically includes:
[0023] If the scanning result shows that the target smart door lock exists, a user authentication request is generated and sent to the target smart door lock, wherein the user authentication request includes user identity information and a device unique identifier;
[0024] If it is detected that the target smart door lock is successfully authenticated, the authorization information sent by the target smart door lock is received, wherein the authorization information is obtained by the target smart door lock verifying the legitimacy of the identity of the user according to the user authentication request.
[0025] Optionally, the unlocking method of the smart door lock, wherein if the scanning result is that the target smart door lock exists, a user authentication request is generated, and the user authentication request is sent to the target smart door lock, and then further includes:
[0026] If it is detected that the target smart door lock authentication fails, a secondary authentication request is generated, the secondary authentication request is sent to the target smart door lock, and the target authentication result sent by the target smart door lock is received;
[0027] Among them, the target authentication result is that the target smart door lock sends the secondary authentication request to the server, and the server checks and verifies the secondary authentication request.
[0028] Optionally, the unlocking method of the smart door lock, wherein the corresponding target unlocking instruction is sent to the target smart door lock according to the authorization information to control the target smart door lock to unlock according to the target unlocking instruction, and receive the operation feedback information sent by the target smart door lock, specifically includes:
[0029] Generate a corresponding unlocking instruction according to the authorization information, encrypt the unlocking instruction to obtain a target unlocking instruction, and send the target unlocking instruction to the target smart door lock to control the target smart door lock to unlock according to the target unlocking instruction;
[0030] Receive operation feedback information sent by the target smart door lock, and if the operation feedback information indicates that the target smart door lock has been unlocked, record corresponding unlocking information according to the operation feedback information.
[0031] Optionally, in the unlocking method of the smart door lock, the unlocking system of the smart door lock comprises:
[0032] The device scanning module is used to wake up the target smart door lock when it detects that the user has arrived at a preset range, and perform a device scan on the target smart door lock to obtain a scanning result;
[0033] A user authentication module, configured to generate a user authentication request according to the scanning result, send the user authentication request to the target smart door lock, and receive authorization information sent by the target smart door lock if it is detected that the authentication of the target smart door lock is successful;
[0034] The door lock operation module is used to send the corresponding target unlocking instruction to the target smart door lock according to the authorization information, so as to control the target smart door lock to unlock according to the target unlocking instruction, and receive the operation feedback information sent by the target smart door lock.
[0035] In addition, to achieve the above-mentioned purpose, the present invention also provides a terminal, wherein the terminal includes: a memory, a processor, and an unlocking program of a smart door lock stored in the memory and runnable on the processor, and when the unlocking program of the smart door lock is executed by the processor, the steps of the unlocking method of the smart door lock as described above are implemented.
[0036] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores an unlocking program of a smart door lock, and when the unlocking program of the smart door lock is executed by a processor, the steps of the unlocking method of the smart door lock as described above are implemented.
[0037] In the present invention, when it is detected that the user has arrived at the preset range, the target smart door lock is awakened, and the target smart door lock is scanned to obtain the scanning result; a user authentication request is generated according to the scanning result, and the user authentication request is sent to the target smart door lock. If it is detected that the authentication of the target smart door lock is successful, the authorization information sent by the target smart door lock is received; according to the authorization information, the corresponding target unlocking instruction is sent to the target smart door lock to control the target smart door lock to unlock according to the target unlocking instruction, and the operation feedback information sent by the target smart door lock is received. The present invention realizes the function of automatically completing the unlocking when the user approaches the door lock by combining the Internet of Things technology, near-field communication technology and intelligent sensing technology, and can achieve unlocking without manual operation by the user, thereby improving the efficiency and convenience of unlocking, and can be combined with the identity recognition function of the user's device to improve the security of unlocking. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 It is a flow chart of a preferred embodiment of the unlocking method of the smart door lock of the present invention;
[0039] Figure 2 It is a schematic diagram of setting up a geo-fence monitoring device according to a preferred embodiment of the unlocking method of the smart door lock of the present invention;
[0040] Figure 3 It is an overall flow chart of a preferred embodiment of the unlocking method of the smart door lock of the present invention;
[0041] Figure 4 It is a structural diagram of a preferred embodiment of the unlocking system of the intelligent door lock of the present invention;
[0042] Figure 5 It is a schematic diagram of the operating environment of a preferred embodiment of the terminal of the present invention. DETAILED DESCRIPTION
[0043] In order to make the purpose, technical solution and advantages of the present invention clearer and more specific, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0044] It should be noted that if the embodiments of the present invention involve directional indications (such as up, down, left, right, front, back, etc.), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0045] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present invention, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0046] The unlocking method of the smart door lock described in the preferred embodiment of the present invention is as follows: Figure 1 As shown, the unlocking method of the smart door lock includes the following steps:
[0047] Step S10: When it is detected that the user has arrived at a preset range, the target smart door lock is awakened, and a device scan is performed on the target smart door lock to obtain a scan result.
[0048] The step S10 comprises:
[0049] Step S11: when it is detected that the user has arrived at a preset range, a door lock wake-up request is generated, and the door lock wake-up request is sent to a server;
[0050] Step S12, receiving the door lock wake-up result sent by the server, and performing a device scan on the target smart door lock according to the door lock wake-up result to obtain a scan result, wherein the door lock wake-up result is that the server sends the door lock wake-up request to the target smart door lock, and the target smart door lock switches to a working state according to the door lock wake-up request.
[0051] Specifically, in order to solve the problem that the unlocking method of the prior art cannot provide sufficient flexibility and convenience, resulting in low efficiency of successful unlocking and low security of the unlocking method, in an embodiment of the present invention, an unlocking method based on automatic unlocking when the user approaches is proposed, which does not require manual operation by the user, can adapt to various scene requirements, make up for the shortcomings of the existing unlocking method, and further improve the automation and user experience of the smart door lock. Before implementing this automatic unlocking method, it is necessary to bind the APP on the user device to the corresponding smart door lock (i.e., the target smart door lock). Specifically, when the target smart door lock device is powered on, it will automatically start Bluetooth broadcasting to propagate the corresponding broadcasting package, wherein the broadcasting package contains the manufacturer ID of the door lock device, the unique identifier of the device, and the network configuration flag bit and other key information. When the user logs in through the APP corresponding to the door lock and clicks to add a device, the APP will scan the smart door locks within the target range through Bluetooth to obtain the target smart door lock, and query the detailed information of the target smart door lock through the unique identifier of the acquired device, such as the product model, picture, and whether the device has been bound, etc., to facilitate the user to select.
[0052] When the user selects the target smart door lock, the APP will enter the network configuration page and detect the network configuration status of the target smart door lock; if the target smart door lock is in a non-network configuration state, the APP will wait for the target smart door lock to enter the network configuration mode. When the APP detects that the target smart door lock is in a network configuration state, it will immediately attempt to connect to the target smart door lock via Bluetooth; after successfully establishing the connection, the APP will traverse the Bluetooth services and features of the target smart door lock, perform network configuration processing on the target smart door lock, and obtain the network configuration result. After that, the APP will initiate an authentication request to the server, and the server will generate and return a network token networkToken based on the authentication request for binding verification. After the APP receives the networkToken, it sends the networkToken to the target smart door lock through instructions, thereby initiating a device binding request for the target smart door lock. After receiving the device binding request, the target smart door lock device will generate and return authentication information, including a unique identifier written during production testing, a randomly generated binding, a random number used for WiFi password calculation, and a personal identification code with a validity period of a preset time (for example, 180 seconds). Afterwards, the APP transmits the authentication information to the server, and the server verifies the legitimacy of the target smart door lock and determines whether the target smart door lock meets the binding conditions or has been bound; if the target smart door lock meets the binding conditions or has not been bound, a corresponding verification result is generated, and the verification result is encrypted to obtain the target verification result, and the target verification result is returned to the APP to ensure that the data is not intercepted or tampered with during the transmission process. Finally, the APP transmits the target verification information to the target smart door lock for binding authentication; after the target smart door lock passes the verification, the target smart door lock is successfully bound to the user's APP, and the user can control the smart door lock through the APP; at this time, the target smart door lock enters an operational state, and the binding process ends. The present invention ensures the security and stability of the binding process between the target smart door lock and the APP through Bluetooth broadcasting, two-way authentication and randomly generated security codes, while optimizing the user's experience during network configuration and binding, and is particularly suitable for scenarios that require efficient and convenient operation.
[0053] After binding the target smart door lock, if the unlocking mode of the target smart door lock is set to the proximity unlocking mode, it is necessary to create a corresponding key. Specifically, a key creation request is generated according to the proximity unlocking mode, and the APP will send the key creation request carrying the user identity authentication information to the server, and request the server for the public key used to encrypt data, that is, the data encryption public key; after the request is successful, the corresponding target information is encrypted according to the data encryption public key to obtain the target encrypted data, wherein the target information includes the door lock unique identifier, user information and timestamp; and the target encrypted data will be sent to the server through the interface. After the server verifies the legitimacy of the request, it will send the generated key to the target smart door lock, and send the key creation result to the APP at the same time, and return a unique key identifier, which will be used for subsequent key update and deletion operations.
[0054] like Figure 2 As shown, if the proximity unlock function is not enabled, the corresponding geo-fence monitoring is removed and the relevant configuration information saved by the server is cleared; if the proximity unlock function is enabled, the user edits the door lock position and sensitivity, and applies for permission to register the geo-fence monitoring, and synchronizes the corresponding registration information to the server to wait for the event to be triggered. After the proximity unlock function is enabled, the APP will first obtain the unique identifier of the target smart door lock to ensure the accuracy of subsequent operations; after obtaining the unique identifier, the APP starts the geo-fence monitoring and monitors the user's geographic location changes in real time. The setting of the geo-fence will be based on the actual location of the target smart door lock, with the target smart door lock as the center, and set a reasonable radius, usually between a few meters and more than ten meters, to ensure that the user's approach can be effectively sensed. When it is detected that the user has arrived at the preset range, a door lock wake-up request is generated and sent to the server; after receiving the door lock wake-up request, the server will quickly send a wake-up message to the smart door lock; after receiving the wake-up message, the target smart door lock will recover from the standby state and enter the working state, because in the standby state, the target smart door lock runs at low power consumption, and most functions will be turned off at this time, only the core module will be retained to maintain basic monitoring capabilities, and the corresponding UWB ranging broadcast will be activated, where UWB technology can provide accurate distance measurement to ensure that the user's approach can be accurately identified. At the same time, the APP will start Bluetooth scanning to detect nearby Bluetooth devices, where the scanning range and time interval can be optimized according to actual needs to balance the battery life and response speed of the smart door lock.
[0055] Furthermore, when the user needs to update the existing key, it is necessary to send a key update request to the server again; first, the user requests the public key of the data currently used for encryption from the server through the APP; secondly, after obtaining the public key, the information related to the key is encrypted, and the encrypted request data is sent to the key update interface of the server. The server verifies the request information and searches for the corresponding key record according to the key identifier for update; finally, the updated key will be securely sent to the target smart door lock to ensure that the target smart door lock has the latest unlocking key, and the server returns the operation result to the user.
[0056] Furthermore, when the user needs to delete an existing key, the user initiates a key deletion request through the APP; the APP first requests the current encrypted public key from the server, and after the server returns the encrypted public key, the APP will encrypt the key identifier to be deleted; secondly, the encrypted data is sent to the key deletion interface of the server, and after the server receives the corresponding request, it will search for the corresponding key according to the key identifier and delete it from the target smart door lock; finally, after the deletion operation is completed, the server will notify the user that the deletion is successful and ensure that the key no longer exists in the target smart door lock.
[0057] Step S20: Generate a user authentication request according to the scanning result, and send the user authentication request to the target smart door lock. If it is detected that the authentication of the target smart door lock is successful, receive the authorization information sent by the target smart door lock.
[0058] The step S20 comprises:
[0059] Step S21: If the scanning result shows that the target smart door lock exists, a user authentication request is generated and sent to the target smart door lock, wherein the user authentication request includes user identity information and a device unique identifier;
[0060] Step S22: If it is detected that the target smart door lock is successfully authenticated, the authorization information sent by the target smart door lock is received, wherein the authorization information is obtained by the target smart door lock verifying the legitimacy of the user's identity according to the user authentication request.
[0061] Specifically, in an embodiment of the present invention, if the scanning result is that the target smart door lock exists, the corresponding authentication process is started, and the authentication process is to match the unique identifier of the target smart door lock with the user identity information to ensure that only authorized users can perform subsequent operations; specifically, a user authentication request is sent to the target smart door lock, wherein the user authentication request includes the user identity information and the device unique identifier; after the target smart door lock receives the user authentication request, the legitimacy of the user identity will be verified. If the authentication of the target smart door lock is successful, the corresponding authorization information will be sent to the APP to confirm the user's unlocking authority.
[0062] Furthermore, if it is detected that the authentication of the target smart door lock fails, wherein the reasons for the failure include that the local time of the target smart door lock is not synchronized with the App time, the user identity information does not exist in the target smart door lock or has expired, resulting in the inability to pass local verification, and thus the inability to fully confirm the legitimacy of the user, etc., then a secondary authentication is required with the server, specifically, generating a secondary authentication request, sending the secondary authentication request to the target smart door lock, the target smart door lock sending the secondary authentication request to the server, the server checking and verifying the secondary authentication request, obtaining the target authentication result, and sending the target authentication result to the target smart door lock; thereafter, the target smart door lock feeds back the target authentication result to the user.
[0063] Step S30: sending the corresponding target unlocking instruction to the target smart door lock according to the authorization information to control the target smart door lock to unlock according to the target unlocking instruction, and receiving the operation feedback information sent by the target smart door lock.
[0064] The step S30 comprises:
[0065] Step S31: Generate a corresponding unlocking instruction according to the authorization information, encrypt the unlocking instruction to obtain a target unlocking instruction, and send the target unlocking instruction to the target smart door lock to control the target smart door lock to unlock according to the target unlocking instruction;
[0066] Step S32: receiving the operation feedback information sent by the target smart door lock. If the operation feedback information indicates that the target smart door lock has been unlocked, recording corresponding unlocking information according to the operation feedback information.
[0067] Specifically, in an embodiment of the present invention, after obtaining the authorization information, a corresponding unlocking instruction is generated according to the authorization information. In order to ensure security, the unlocking instruction needs to contain encryption information to protect its transmission security. Specifically, the unlocking instruction is encrypted to obtain a target unlocking instruction, and the target unlocking instruction is sent to the target smart door lock. After receiving the target unlocking instruction, the smart door lock will perform the corresponding unlocking operation and feedback the corresponding operation feedback information to the APP, so that the user can confirm whether the unlocking is successful; after successful unlocking, the corresponding unlocking information is recorded according to the operation feedback information, wherein the unlocking information includes a timestamp, user identity and a unique identifier, and the unlocking information will be used for subsequent auditing and security management to ensure the traceability and transparency of the system.
[0068] Furthermore, the present invention also provides a session management mechanism, through which a corresponding session timeout is set to reduce the security risk of long-term connections, and ensures that only authorized users can perform wake-up and unlock operations to prevent unauthorized access.
[0069] The present invention combines the Internet of Things technology, near-field communication technology and intelligent sensing technology to achieve automatic unlocking when the user approaches the door lock, thereby improving the unlocking efficiency, so that the user does not need to perform any manual operation. The smart door lock can automatically sense the user's approach and complete the unlocking, which greatly reduces the user's operation steps and is especially suitable for users who are holding items in both hands or are in busy scenes; the user experience is enhanced, so that the user does not need to stay in front of the door to unlock the door. The door lock automatically recognizes and responds to the user's approach, which greatly improves the convenience of the smart door lock; the security is improved, because the unlocking method can be combined with the identity recognition function of the user's device, it can avoid the potential security risks of password leakage, fingerprint forgery or door card loss in traditional unlocking methods, and ensure that only authorized users can unlock the door lock.
[0070] Furthermore, if Figure 3 As shown, the overall flow chart of the preferred embodiment of the unlocking method of the smart door lock in the present invention is as follows:
[0071] Step S1, start;
[0072] Step S2: When the user is detected approaching, a corresponding geo-fence event is triggered;
[0073] Step S3, judging whether the user has entered the circle (reached the preset range) according to the low-profile fence event, if it is detected that the user is not in the preset range, proceeding to step S10, if it is detected that the user has reached the preset range, proceeding to step S4;
[0074] Step S4: when it is detected that the user has arrived at the preset range, a door lock wake-up request is generated, and the door lock wake-up request is sent to the server;
[0075] Step S5, the server sends the door lock wake-up request to the target smart door lock, and the target smart door lock switches to the working state according to the door lock wake-up request and activates the corresponding UWB ranging broadcast;
[0076] Step S6: receiving the door lock wake-up message pushed by the server, and starting Bluetooth scanning according to the door lock wake-up message to detect nearby smart door locks;
[0077] Step S7: If the scanning result shows that the target smart door lock exists, a user authentication request is generated and sent to the target smart door lock; if it is detected that the authentication of the target smart door lock is successful, the authorization information sent by the target smart door lock is received;
[0078] Step S8, generating a corresponding unlocking instruction according to the authorization information, encrypting the unlocking instruction to obtain a target unlocking instruction, and sending the target unlocking instruction to the target smart door lock to control the target smart door lock to unlock according to the target unlocking instruction;
[0079] Step S9, receiving the operation feedback information sent by the target smart door lock, and if the operation feedback information indicates that the target smart door lock has been unlocked, closing the connection with the target smart door lock;
[0080] Step S10: When it is detected that the user is not in the preset range, a corresponding user away message is generated, and the user away message is sent to the target smart door lock;
[0081] Step S11, notifying the server to send a corresponding locking instruction to the target smart door lock according to the user away message;
[0082] Step S12: when it is detected that the target smart door lock has performed the corresponding locking operation, receiving locking feedback information pushed by the target smart door lock;
[0083] Step S13, end.
[0084] Furthermore, if Figure 4 As shown, based on the unlocking method of the above-mentioned smart door lock, the present invention also provides an unlocking system of a smart door lock, wherein the unlocking system of the smart door lock comprises:
[0085] The device scanning module 51 is used to wake up the target smart door lock when it is detected that the user has arrived at a preset range, and perform a device scan on the target smart door lock to obtain a scanning result;
[0086] A user authentication module 52, configured to generate a user authentication request according to the scanning result, send the user authentication request to the target smart door lock, and receive authorization information sent by the target smart door lock if it is detected that the authentication of the target smart door lock is successful;
[0087] The door lock operation module 53 is used to send the corresponding target unlocking instruction to the target smart door lock according to the authorization information, so as to control the target smart door lock to unlock according to the target unlocking instruction, and receive the operation feedback information sent by the target smart door lock.
[0088] Furthermore, if Figure 5 As shown, based on the unlocking method of the above-mentioned smart door lock, the present invention also provides a terminal accordingly, and the terminal includes a processor 10, a memory 20 and a display 30. Figure 5 Only some components of the terminal are shown, but it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.
[0089] The memory 20 may be an internal storage unit of the terminal in some embodiments, such as a hard disk or memory of the terminal. The memory 20 may also be an external storage device of the terminal in other embodiments, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc. equipped on the terminal. Further, the memory 20 may also include both an internal storage unit of the terminal and an external storage device. The memory 20 is used to store application software and various types of data installed in the terminal, such as the program code of the installation terminal. The memory 20 may also be used to temporarily store data that has been output or is to be output. In one embodiment, the memory 20 stores an unlocking program 40 of a smart door lock, and the unlocking program 40 of the smart door lock can be executed by the processor 10, thereby realizing the unlocking method of the smart door lock in the present application.
[0090] In some embodiments, the processor 10 may be a central processing unit (CPU), a microprocessor or other data processing chip, used to run the program code or process data stored in the memory 20, such as executing the unlocking method of the smart door lock.
[0091] In some embodiments, the display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, etc. The display 30 is used to display information on the terminal and to display a visual user interface. The components of the terminal communicate with each other via a system bus.
[0092] In one embodiment, when the processor 10 executes the unlocking program 40 of the smart door lock in the memory 20, the following steps are implemented:
[0093] When it is detected that the user has arrived at the preset range, the target smart door lock is awakened, and the target smart door lock is scanned to obtain the scanning result;
[0094] Generate a user authentication request according to the scanning result, send the user authentication request to the target smart door lock, and if it is detected that the authentication of the target smart door lock is successful, receive the authorization information sent by the target smart door lock;
[0095] According to the authorization information, the corresponding target unlocking instruction is sent to the target smart door lock to control the target smart door lock to unlock according to the target unlocking instruction, and receive the operation feedback information sent by the target smart door lock.
[0096] Wherein, when it is detected that the user arrives at the preset range, the target smart door lock is awakened, and the target smart door lock is scanned to obtain the scanning result, which also includes:
[0097] Scan the smart door locks within the target range to obtain the target smart door locks, and detect the network distribution status of the target smart door locks;
[0098] If it is detected that the target smart door lock is in a network configuration state, the target smart door lock is configured for network configuration, a network configuration result is obtained, and an authentication request is sent to the server according to the network configuration result;
[0099] Receive the network token sent by the server, send a corresponding device binding request to the target smart door lock according to the network token, and receive the authentication information sent by the target smart door lock;
[0100] The authentication information is sent to the server, the encrypted verification information sent by the server is received, and the target smart door lock is bound according to the encrypted verification information.
[0101] Wherein, when the authentication information is sent to the server, the encrypted verification information sent by the server is received, and the target smart door lock is bound according to the encrypted verification information, specifically including:
[0102] Setting the unlocking mode of the target smart door lock to a proximity unlocking mode, generating a key creation request according to the proximity unlocking mode, and sending the key creation request to the server;
[0103] Receiving the data encryption public key sent by the server, encrypting the corresponding target information according to the data encryption public key to obtain target encrypted data, wherein the target information includes the door lock unique identifier, user information and timestamp;
[0104] The target encrypted data is sent to the server, and a key identifier and a key creation result sent by the server are received, wherein the key creation result is that the server sends the generated key to the target smart door lock.
[0105] When it is detected that the user has arrived at the preset range, the target smart door lock is awakened, and the target smart door lock is scanned to obtain the scanning result, which specifically includes:
[0106] When it is detected that the user has arrived at a preset range, a door lock wake-up request is generated and the door lock wake-up request is sent to a server;
[0107] Receive the door lock wake-up result sent by the server, and perform a device scan on the target smart door lock according to the door lock wake-up result to obtain a scan result, wherein the door lock wake-up result is that the server sends the door lock wake-up request to the target smart door lock, and the target smart door lock switches to a working state according to the door lock wake-up request.
[0108] Wherein, generating a user authentication request according to the scanning result, sending the user authentication request to the target smart door lock, and if it is detected that the authentication of the target smart door lock is successful, receiving the authorization information sent by the target smart door lock, specifically includes:
[0109] If the scanning result shows that the target smart door lock exists, a user authentication request is generated and sent to the target smart door lock, wherein the user authentication request includes user identity information and a device unique identifier;
[0110] If it is detected that the target smart door lock is successfully authenticated, the authorization information sent by the target smart door lock is received, wherein the authorization information is obtained by the target smart door lock verifying the legitimacy of the identity of the user according to the user authentication request.
[0111] Wherein, if the scanning result is that the target smart door lock exists, a user authentication request is generated, and the user authentication request is sent to the target smart door lock, and then it also includes:
[0112] If it is detected that the target smart door lock authentication fails, a secondary authentication request is generated, the secondary authentication request is sent to the target smart door lock, and the target authentication result sent by the target smart door lock is received;
[0113] Among them, the target authentication result is that the target smart door lock sends the secondary authentication request to the server, and the server checks and verifies the secondary authentication request.
[0114] Among them, sending the corresponding target unlocking instruction to the target smart door lock according to the authorization information to control the target smart door lock to unlock according to the target unlocking instruction, and receiving the operation feedback information sent by the target smart door lock, specifically includes:
[0115] Generate a corresponding unlocking instruction according to the authorization information, encrypt the unlocking instruction to obtain a target unlocking instruction, and send the target unlocking instruction to the target smart door lock to control the target smart door lock to unlock according to the target unlocking instruction;
[0116] Receive operation feedback information sent by the target smart door lock, and if the operation feedback information indicates that the target smart door lock has been unlocked, record corresponding unlocking information according to the operation feedback information.
[0117] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores an unlocking program for a smart door lock, and when the unlocking program for the smart door lock is executed by a processor, the steps of the unlocking method for the smart door lock as described above are implemented.
[0118] In summary, the present invention provides a method, system, terminal and storage medium for unlocking a smart door lock, the method comprising: when it is detected that a user has arrived at a preset range, waking up the target smart door lock, and performing a device scan on the target smart door lock to obtain a scanning result; generating a user authentication request according to the scanning result, and sending the user authentication request to the target smart door lock, and if it is detected that the authentication of the target smart door lock is successful, receiving the authorization information sent by the target smart door lock; sending the corresponding target unlocking instruction to the target smart door lock according to the authorization information, so as to control the target smart door lock to unlock according to the target unlocking instruction, and receiving the operation feedback information sent by the target smart door lock.
[0119] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or terminal including the element.
[0120] Of course, those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware (such as a processor, a controller, etc.) through a computer program, and the program can be stored in a computer-readable storage medium that can be read by a computer, and the program can include the processes of the above-mentioned method embodiments when executed. The computer-readable storage medium can be a memory, a disk, an optical disk, etc.
[0121] It should be understood that the application of the present invention is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.
Claims
1. A method for unlocking a smart door lock, characterized in that: The unlocking method of the smart door lock includes: When it is detected that the user has arrived at the preset range, the target smart door lock is awakened, and the target smart door lock is scanned to obtain the scanning result; Generate a user authentication request according to the scanning result, send the user authentication request to the target smart door lock, and if it is detected that the authentication of the target smart door lock is successful, receive the authorization information sent by the target smart door lock; According to the authorization information, the corresponding target unlocking instruction is sent to the target smart door lock to control the target smart door lock to unlock according to the target unlocking instruction, and receive the operation feedback information sent by the target smart door lock.
2. The unlocking method of the smart door lock according to claim 1, characterized in that: When it is detected that the user has arrived at the preset range, the target smart door lock is awakened, and the target smart door lock is scanned to obtain a scanning result, which also includes: Scan the smart door locks within the target range to obtain the target smart door locks, and detect the network distribution status of the target smart door locks; If it is detected that the target smart door lock is in a network configuration state, the target smart door lock is configured for network configuration, a network configuration result is obtained, and an authentication request is sent to the server according to the network configuration result; Receive the network token sent by the server, send a corresponding device binding request to the target smart door lock according to the network token, and receive the authentication information sent by the target smart door lock; The authentication information is sent to the server, the encrypted verification information sent by the server is received, and the target smart door lock is bound according to the encrypted verification information.
3. The unlocking method of the smart door lock according to claim 2, characterized in that: The step of sending the authentication information to the server, receiving the encrypted verification information sent by the server, and binding the target smart door lock according to the encrypted verification information specifically includes: Setting the unlocking mode of the target smart door lock to a proximity unlocking mode, generating a key creation request according to the proximity unlocking mode, and sending the key creation request to the server; Receiving the data encryption public key sent by the server, encrypting the corresponding target information according to the data encryption public key to obtain target encrypted data, wherein the target information includes the door lock unique identifier, user information and timestamp; The target encrypted data is sent to the server, and a key identifier and a key creation result sent by the server are received, wherein the key creation result is that the server sends the generated key to the target smart door lock.
4. The unlocking method of the smart door lock according to claim 1, characterized in that: When it is detected that the user has arrived at the preset range, the target smart door lock is awakened, and the target smart door lock is scanned to obtain the scanning result, which specifically includes: When it is detected that the user has arrived at a preset range, a door lock wake-up request is generated and the door lock wake-up request is sent to a server; Receive the door lock wake-up result sent by the server, and perform a device scan on the target smart door lock according to the door lock wake-up result to obtain a scan result, wherein the door lock wake-up result is that the server sends the door lock wake-up request to the target smart door lock, and the target smart door lock switches to a working state according to the door lock wake-up request.
5. The unlocking method of the smart door lock according to claim 1, characterized in that: The step of generating a user authentication request according to the scanning result, sending the user authentication request to the target smart door lock, and receiving authorization information sent by the target smart door lock if it is detected that the authentication of the target smart door lock is successful, specifically includes: If the scanning result shows that the target smart door lock exists, a user authentication request is generated and sent to the target smart door lock, wherein the user authentication request includes user identity information and a device unique identifier; If it is detected that the target smart door lock is successfully authenticated, the authorization information sent by the target smart door lock is received, wherein the authorization information is obtained by the target smart door lock verifying the legitimacy of the identity of the user according to the user authentication request.
6. The unlocking method of the smart door lock according to claim 5, characterized in that: If the scanning result shows that the target smart door lock exists, a user authentication request is generated, and the user authentication request is sent to the target smart door lock, and then the following steps are further included: If it is detected that the target smart door lock authentication fails, a secondary authentication request is generated, the secondary authentication request is sent to the target smart door lock, and the target authentication result sent by the target smart door lock is received; Among them, the target authentication result is that the target smart door lock sends the secondary authentication request to the server, and the server checks and verifies the secondary authentication request.
7. The unlocking method of the smart door lock according to claim 1, characterized in that: The step of sending the corresponding target unlocking instruction to the target smart door lock according to the authorization information to control the target smart door lock to unlock according to the target unlocking instruction, and receiving the operation feedback information sent by the target smart door lock, specifically includes: Generate a corresponding unlocking instruction according to the authorization information, encrypt the unlocking instruction to obtain a target unlocking instruction, and send the target unlocking instruction to the target smart door lock to control the target smart door lock to unlock according to the target unlocking instruction; Receive operation feedback information sent by the target smart door lock, and if the operation feedback information indicates that the target smart door lock has been unlocked, record corresponding unlocking information according to the operation feedback information.
8. An unlocking system for a smart door lock, characterized in that: The unlocking system of the smart door lock includes: The device scanning module is used to wake up the target smart door lock when it detects that the user has arrived at a preset range, and perform a device scan on the target smart door lock to obtain a scanning result; A user authentication module, configured to generate a user authentication request according to the scanning result, send the user authentication request to the target smart door lock, and receive authorization information sent by the target smart door lock if it is detected that the authentication of the target smart door lock is successful; The door lock operation module is used to send the corresponding target unlocking instruction to the target smart door lock according to the authorization information, so as to control the target smart door lock to unlock according to the target unlocking instruction, and receive the operation feedback information sent by the target smart door lock.
9. A terminal, characterized in that: The terminal includes: a memory, a processor, and an unlocking program of the smart door lock stored in the memory and executable on the processor. When the unlocking program of the smart door lock is executed by the processor, the steps of the unlocking method of the smart door lock as described in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores an unlocking program for a smart door lock, and when the unlocking program for the smart door lock is executed by a processor, the steps of the unlocking method for the smart door lock as described in any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Protective door lock state monitoring device
CN121451795A