Intelligent door lock unlocking method, electronic device and access control system
By using the first communication connection with low power consumption in the smart door lock to determine the location of the target device and automatically control the unlocking, the problem of high cost and poor convenience of the smart door lock is solved, and convenient, invisible unlocking and low power consumption is achieved Lock unlocking plan.
Patent Information
- Application Number
- CN202210096012.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-26
- Publication Date
- 2025-01-17
- Estimated Expiration
- 2042-01-26
Smart Images

Figure CN114550349B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of access control equipment, and in particular to an unlocking method of an intelligent door lock, an electronic device and an access control system. Background Art
[0002] At present, smart door locks have been widely popularized, and the convenience of smart door locks has greatly exceeded that of conventional mechanical locks. The current smart door locks replace the physical unlocking action of conventional mechanical locks by entering passwords, fingerprints, and face information. Users do not need to carry keys with them, and the door opening action is simple and convenient.
[0003] However, the current unlocking solutions for smart door locks are costly, subject to great environmental interference, and have a long response time. In particular, the unlocking method of smart door locks through face recognition often requires users to stand still and aim, which is less convenient. Summary of the invention
[0004] In view of this, the main technical problem solved by the present invention is to provide a method for unlocking a smart door lock, an electronic device and an access control system, which can improve the convenience of the unlocking process of the smart door lock and have low power consumption.
[0005] In order to solve the above technical problems, a technical solution adopted by the present invention is: to provide an unlocking method of a smart door lock. The unlocking method includes: a first device establishes a first communication connection with a second device; the first device establishes a second communication connection with the second device through the first communication connection; the first device determines the location information of the second device through the second communication connection, and determines whether the location information of the second device meets a preset condition; if so, the smart door lock is controlled to unlock, and the second communication connection is disconnected; wherein the keep-alive power consumption of the first communication connection is lower than the keep-alive power consumption of the second communication connection.
[0006] In order to solve the above technical problems, another technical solution adopted by the present invention is: to provide an electronic device. The electronic device includes a controller. The electronic device also includes a communication circuit, and the communication circuit is connected to the controller. Among them, the controller controls the communication circuit to establish a first communication connection with the target device, and the controller also controls the communication circuit to establish a second communication connection with the target device through the first communication connection. The controller also determines the location information of the target device through the second communication connection, and determines whether the location information of the target device meets the preset conditions; if so, the controller controls the smart door lock to unlock, and controls the communication circuit to disconnect the second communication connection, wherein the keep-alive power consumption of the first communication connection is lower than the keep-alive power consumption of the second communication connection.
[0007] In order to solve the above technical problems, another technical solution adopted by the present invention is: to provide an access control system. The access control system includes a smart door lock and a smart key. Among them, the smart door lock can establish a first communication connection with the smart key, and the smart door lock can establish a second communication connection with the smart key through the first communication connection. The smart door lock can also determine the location information of the smart key through the second communication connection, and determine whether the location information of the smart key meets the preset conditions; if so, the smart door lock unlocks and disconnects the second communication connection; wherein the keep-alive power consumption of the first communication connection is lower than the keep-alive power consumption of the second communication connection.
[0008] The beneficial effects of the present invention are as follows: Different from the prior art, the present invention provides an unlocking method, electronic device and access control system for a smart door lock. In the unlocking method, a first device first establishes a first communication connection with a second device, and then establishes a second communication connection with the second device through the first communication connection. The first device determines the location information of the second device through the second communication connection to control the unlocking of the smart door lock when the location information of the second device meets a preset condition. In other words, the present invention does not require the user to operate the smart door lock, which greatly improves the convenience of the unlocking process of the smart door lock and can achieve non-sensing unlocking.
[0009] Furthermore, since the keep-alive power consumption of the first communication connection is lower than that of the second communication connection, that is, the second communication connection has a higher power consumption when maintained for a long time, the second communication connection is disconnected in time after the smart door lock is unlocked in the present invention. In other words, the present invention disconnects the second communication connection in time, which is conducive to reducing the power consumption of the entire unlocking solution, that is, the power consumption of the unlocking solution of the present invention is lower. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] The accompanying drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present invention, and together with the specification are used to explain the principles of the present invention. In addition, these drawings and text descriptions are not intended to limit the scope of the present invention in any way, but to illustrate the concept of the present invention for those skilled in the art by reference to specific embodiments.
[0011] Figure 1 It is a flowchart of a first embodiment of an unlocking method of an intelligent door lock of the present invention;
[0012] Figure 2 It is a flow chart of an embodiment of binding a smart door lock to a smart key according to the present invention;
[0013] Figure 3 It is a flowchart of another embodiment of binding a smart door lock to a smart key according to the present invention;
[0014] Figure 4 1 is a flow chart of a second embodiment of an unlocking method of an intelligent door lock according to the present invention;
[0015] Figure 5 1 is a flow chart of a third embodiment of an unlocking method for an intelligent door lock according to the present invention;
[0016] Figure 6 It is a structural schematic diagram of an embodiment of an electronic device of the present invention;
[0017] Figure 7 It is a structural diagram of an embodiment of a door access control system of the present invention. DETAILED DESCRIPTION
[0018] In order to make the purpose, technical solutions and advantages of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in combination with the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0019] See also Figure 1 , Figure 1 It is a flow chart of the first embodiment of the unlocking method of the smart door lock of the present invention.
[0020] S101: A first device establishes a first communication connection with a second device.
[0021] In this embodiment, the keep-alive power consumption of the first communication connection is lower than the keep-alive power consumption of the second communication connection. The keep-alive power consumption should be understood as the power consumption of the communication connection to maintain a long-term connection.
[0022] Since the keep-alive power consumption of the first communication connection is low, the first device and the second device can remain in a state of waiting to establish the first communication connection with each other for a long time, so as to perform the subsequent unlocking process of the smart door lock when the first device establishes the first communication connection with the second device, and the unlocking solution of the smart door lock in this embodiment can still be ensured to have low power consumption.
[0023] S102: The first device establishes a second communication connection with the second device through the first communication connection.
[0024] In this embodiment, the second communication connection is used to determine the location information of the second device, so as to control whether the smart door lock is unlocked or not according to the location information of the second device, thereby reducing the risk of false triggering of the smart door lock unlocking. Specifically, the second communication connection is established between the first device and the second device through the first communication connection as a medium, and the first device establishes the second communication connection with the second device through the first communication connection.
[0025] S103: The first device determines the location information of the second device through the second communication connection, and determines whether the location information of the second device meets a preset condition.
[0026] In this embodiment, when the relative position between the first device and the second device indicates that the user needs to unlock the door, the location information of the second device meets the preset condition. Specifically, in this embodiment, the first device determines the location information of the second device through the second communication connection, and determines whether the location information of the second device meets the preset condition.
[0027] S104: If yes, control the smart door lock to unlock and disconnect the second communication connection.
[0028] In this embodiment, if the location information of the second device meets the preset conditions, the first device controls the smart door lock to unlock. In other words, the first device and the second device in this embodiment can automatically unlock the smart door lock through the first communication connection and the second communication connection, without the user having to operate the smart door lock, which greatly improves the convenience of the smart door lock unlocking process and can achieve non-sensing unlocking.
[0029] Furthermore, since the keep-alive power consumption of the first communication connection is lower than that of the second communication connection, that is, the second communication connection has a higher power consumption when maintained for a long time, the second communication connection is disconnected in time after the smart door lock is unlocked in this embodiment. In other words, the timely disconnection of the second communication connection in this embodiment is conducive to reducing the power consumption of the entire unlocking solution, that is, the power consumption of the unlocking solution in this embodiment is relatively low.
[0030] It should be noted that one of the first device and the second device is a smart door lock, and the other is a smart key, wherein the smart key is carried by the user. The embodiment of the present invention is described by taking the first device as a smart door lock and the second device as a smart key as an example. Of course, the first device of the embodiment of the present invention may also be a device independent of the smart door lock, through which the device interacts with the smart key to control the unlocking process of the smart door lock.
[0031] See also Figure 2 , Figure 2 It is a flow chart of an embodiment of binding a smart door lock to a smart key according to the present invention.
[0032] S201: The smart door lock is bound to the mobile terminal.
[0033] In this embodiment, the smart door lock needs to add a smart key in advance. The user can use a mobile terminal such as a smart phone, a tablet computer, etc. to add a smart key, and the smart door lock needs to be bound to the mobile terminal in advance.
[0034] For example, the smart door lock is in the Bluetooth broadcast state, and the mobile terminal searches for the Bluetooth signal broadcast by the smart door lock, and then the two are bound after the Bluetooth connection authentication. Among them, the specific details of the Bluetooth connection authentication work belong to the understanding of those skilled in the art, and will not be repeated here. An application that matches the smart door lock can be installed on the mobile terminal, and the mobile terminal participates in the management of smart door locks and smart keys through this application. The application has a user interface for adding smart keys, and the user adds smart keys by operating in the user interface.
[0035] It should be noted that the first communication connection in this embodiment uses a low-power communication technology such as Bluetooth communication technology, that is, the first communication connection can be a Bluetooth connection, etc. This embodiment takes advantage of the low power consumption of Bluetooth connection and uses Bluetooth connection as a medium for establishing a second communication connection between the first device and the second device, which is conducive to ensuring that the unlocking solution of the smart door lock in this embodiment has low power consumption.
[0036] S202: The smart door lock establishes a Bluetooth connection with the mobile terminal.
[0037] In this embodiment, the smart door lock and the mobile terminal have been authenticated through the Bluetooth connection. In the process of adding the smart key, the smart door lock establishes a Bluetooth connection with the mobile terminal.
[0038] S203: The user selects the mobile terminal itself as the smart key.
[0039] In this embodiment, the user can select whether the mobile terminal itself is a smart key in the application interface of the mobile terminal. The user selects the mobile terminal itself as a smart key, that is, the mobile terminal is used as a smart key in this embodiment. In this way, since the user usually carries the mobile terminal with him, this embodiment uses the mobile terminal as a smart key, which means that the user does not need to carry an additional smart key, which is conducive to reducing the user's usage burden.
[0040] S204: The smart door lock and the mobile terminal perform authentication work on the UWB connection, and then the smart door lock is bound to the mobile terminal.
[0041] In this embodiment, the second communication connection may apply UWB (Ultra Wide Band) communication technology, etc. UWB communication technology has great advantages in accurate positioning. In this embodiment, UWB communication technology is used to determine the location information of the smart key. Among them, the working principle of UWB communication technology to determine the location information of the device belongs to the understanding of those skilled in the art, and will not be repeated here.
[0042] The user selects the mobile terminal itself as the smart key. The mobile terminal sends the UWB connection authentication command to the smart door lock via Bluetooth connection. The smart door lock responds to the authentication command and cooperates with the mobile terminal to complete the authentication work, and then the smart door lock binds the mobile terminal. At this point, the smart key is added, and the smart door lock records the added smart key (i.e., mobile terminal).
[0043] It should be noted that you can choose whether to turn on the smart key in the application on the mobile terminal. When the smart key is turned off, the smart key is invalid and cannot control the smart door lock to unlock. You need to turn on the smart key in the application.
[0044] See also Figure 3 , Figure 3 It is a flow chart of another embodiment of binding a smart door lock to a smart key according to the present invention.
[0045] S301: The smart door lock is bound to the mobile terminal.
[0046] In this embodiment, the smart door lock is in the Bluetooth broadcasting state, and the mobile terminal searches for the Bluetooth signal broadcast by the smart door lock, and then the two are bound after the Bluetooth connection authentication. An application matching the smart door lock is installed on the mobile terminal, and the application has a user interface for adding smart keys. The user adds the smart key by operating in the user interface.
[0047] S302: The smart door lock establishes a Bluetooth connection with the mobile terminal.
[0048] In this embodiment, the smart door lock and the mobile terminal have been authenticated through the Bluetooth connection. In the process of adding the smart key, the smart door lock establishes a Bluetooth connection with the mobile terminal.
[0049] S303: The user does not select the mobile terminal itself as a smart key.
[0050] In this embodiment, the user can select whether the mobile terminal itself is a smart key in the application interface of the mobile terminal. If the user does not select the mobile terminal itself as a smart key, a device independent of the mobile terminal, such as a tag, needs to be added as a smart key.
[0051] S304: The mobile terminal sends a command to add a smart key to the smart door lock.
[0052] In this embodiment, the user does not select the mobile terminal itself as the smart key, but needs to add a device independent of the mobile terminal as the smart key. At this time, the mobile terminal sends an add smart key command to the smart door lock, and the smart door lock responds to the add smart key command and performs subsequent binding of the smart key.
[0053] S305: The smart door lock and the smart key perform authentication work on the Bluetooth connection, and then establish a Bluetooth connection.
[0054] In this embodiment, the smart door lock responds to the above-mentioned add smart key command and scans the Bluetooth device through its own Bluetooth function. The smart key enters the pairing mode and starts broadcasting Bluetooth information. When the smart door lock scans the Bluetooth signal broadcast by the smart key, the smart door lock sends a Bluetooth connection authentication command to the smart key, and the smart door lock and the smart key perform the Bluetooth connection authentication work, and then establish a Bluetooth connection.
[0055] S306: The smart door lock and the smart key perform authentication work on the UWB connection via Bluetooth connection.
[0056] In this embodiment, the smart door lock and the smart key complete the authentication of the Bluetooth connection and establish a Bluetooth connection, and the smart door lock and the smart key perform the authentication of the UWB connection through the Bluetooth connection. Specifically, the smart door lock sends an authentication command of the UWB connection to the smart key through the Bluetooth connection, and the smart key responds to the authentication command and cooperates with the smart door lock to complete the authentication, and then the smart door lock is bound to the smart key.
[0057] S307: The smart door lock records the smart key and sends a message indicating that the smart key has been successfully added to the mobile terminal via a Bluetooth connection.
[0058] In this embodiment, after the smart door lock and the smart key complete the authentication work on the UWB connection, the smart door lock records the smart key and sends information that the smart key has been successfully added to the mobile terminal via the Bluetooth connection.
[0059] It should be noted that if the user loses the smart key, the user can unbind the lost smart key in the mobile terminal application. If the user loses the mobile terminal, the user can use a new mobile terminal to rebind with the smart door lock. At this time, the previously bound smart keys are invalid and need to be rebound through the new mobile terminal. The user can also reset the smart door lock to unbind all bound smart keys and rebind the smart key.
[0060] See also Figure 4 , Figure 4 It is a flow chart of the second embodiment of the unlocking method of the smart door lock of the present invention.
[0061] S401: The smart door lock establishes a Bluetooth connection with the smart key.
[0062] In this embodiment, the smart door lock scans the surrounding Bluetooth devices within a certain range in real time, and the smart key is in a state of broadcasting Bluetooth signals in real time. When the smart key is within the Bluetooth coverage of the smart door lock, for example, the smart key is no more than 5 meters away from the smart door lock, the smart door lock and the smart key will automatically establish a Bluetooth connection, which means that the user is close to the smart door lock, and further subsequent steps need to be performed to determine the user's intention.
[0063] S402: The smart door lock establishes a UWB connection with the smart key.
[0064] In this embodiment, after the smart door lock establishes a Bluetooth connection with the smart key, the smart door lock needs to determine the current location information of the smart key to decide whether the smart door lock needs to be unlocked according to the current location information of the smart key. Specifically, the smart door lock establishes a UWB connection with the smart key, and the smart door lock determines the location information of the smart key through the UWB connection.
[0065] S403: The smart door lock determines whether the smart key is outdoors.
[0066] In this embodiment, if the smart door lock determines that the smart key is outdoors, step S404 is executed; if the smart door lock determines that the smart key is indoors, step S412 is executed.
[0067] The unlocking solution of the smart door lock in this embodiment is aimed at the scenario where the user enters the room from the outside. Specifically, the smart door lock determines the location information of the smart key through the UWB connection, and determines whether the smart key is outdoors, so that when the smart key is outdoors, that is, the user is outdoors, further unlocking-related steps are performed, and if the smart key is indoors, that is, the user is indoors, it is determined that the smart door lock does not need to be unlocked.
[0068] Of course, in other embodiments of the present invention, the unlocking scenario may be targeted at the user moving from indoors to outdoors, or the unlocking scenario may be targeted at the user moving from outdoors to indoors and from indoors to outdoors at the same time, which is not limited here.
[0069] S404: The smart door lock determines whether the smart door lock and the smart key are in a close proximity to each other.
[0070] In this embodiment, if the smart door lock determines that it and the smart key are in a close state, step S405 is executed; if the smart door lock does not determine that it and the smart key are in a close state, step S404 is continued.
[0071] When the smart door lock determines that the smart key is outside, it needs to further determine whether the user has the intention to enter the room, so as to further determine whether the smart door lock needs to be unlocked. Specifically, the smart door lock determines whether it and the smart key are in a state of close proximity to each other, that is, whether the user is close to the smart door lock. If the smart door lock determines that the smart door lock and the smart key are in a state of close proximity to each other, that is, the user is close to the smart door lock, it indicates that the user has the intention to enter the room.
[0072] Furthermore, the smart door lock of the present embodiment determines whether it and the smart key are in a state of being close to each other. Specifically, the smart door lock determines the distance between the smart door lock and the smart key through the UWB connection, and then the smart door lock determines whether the distance gradually decreases. If the distance gradually decreases, the smart door lock determines that it and the smart key are in a state of being close to each other, and vice versa.
[0073] S405: The smart door lock determines the distance between itself and the smart key, and determines whether the distance is less than or equal to a threshold.
[0074] In this embodiment, if the distance is less than or equal to the threshold, step S406 is executed; if the distance is greater than the threshold, step S405 is continued to be executed.
[0075] When the smart door lock determines that the user has the intention to enter the room, the smart door lock further determines the distance between the user and the smart key, and determines whether the distance is less than or equal to the threshold. When the distance is less than or equal to the threshold, it means that the user is close enough to the smart door lock, and the smart door lock can unlock it.
[0076] Optionally, the threshold value may be 0.5 meters, etc., and the threshold value may be reasonably set according to actual needs to ensure that the smart door lock accurately determines when the smart door lock needs to be unlocked.
[0077] It should be noted that the smart door lock of this embodiment determines the location information of the smart key through the UWB connection, and controls the smart door lock to unlock when the location information of the smart key meets the preset conditions. The preset conditions may be that the smart key is outdoors, the smart key is close to the smart door lock, and the distance between the smart key and the smart door lock is less than or equal to a threshold.
[0078] S406: The smart door lock automatically unlocks, and the smart key outputs an unlocking prompt tone.
[0079] In this embodiment, the location information of the smart key meets the preset conditions, and the smart door lock automatically unlocks. In this embodiment, the smart door lock can be unlocked without the user operating the smart door lock, which greatly improves the convenience of the unlocking process of the smart door lock and can achieve non-sensing unlocking.
[0080] When the smart door lock is unlocked, the smart door lock feeds back information that the smart door lock has been unlocked to the smart key. In response to the information, the smart key can output a prompt message to the user to notify the user that the smart door lock has been unlocked, for example, the smart key outputs an unlock prompt tone. The unlock prompt tone function of the smart key can be turned on or off in the application of the mobile terminal.
[0081] S407: The smart door lock and the smart key disconnect the UWB connection.
[0082] In this embodiment, after the smart door lock is unlocked, the UWB connection is disconnected. In other words, the UWB connection is disconnected in time in this embodiment, which is conducive to reducing the power consumption of the entire unlocking solution, that is, the power consumption of the unlocking solution in this embodiment is relatively low.
[0083] S408: The smart door lock determines whether a locking action occurs.
[0084] In this embodiment, if the smart door lock determines that a locking action occurs, step S409 is executed; if the smart door lock does not determine that a locking action occurs, step S408 is continued to be executed.
[0085] S409: The smart door lock sends the locking time to the smart key, and the smart key updates its recorded locking time.
[0086] In this embodiment, both the smart door lock and the smart key record the lock time, and the smart key also records the corresponding flag information. The flag information indicates whether the smart key is outdoors. The smart door lock and the smart key use the recorded lock time and flag information to decide whether to establish a UWB connection to determine the location information of the smart key. In other words, the UWB connection of the embodiment of the present invention is only used when needed, which is further conducive to reducing the power consumption of the entire unlocking solution.
[0087] Specifically, when the smart door lock determines that a locking action occurs, the smart door lock sends the locking time to the smart key, and the smart key updates its recorded locking time.
[0088] S410: The smart door lock establishes a UWB connection with the smart key.
[0089] In this embodiment, considering the application scenario where the user enters indoors from outdoors, when the smart door lock is unlocked and then locked again, the user may still be outdoors and has not entered indoors. Therefore, every time the smart door lock is locked, it is necessary to determine the user's current location information, that is, to determine the location information of the smart key.
[0090] Specifically, the smart key needs to assign corresponding flag information to the updated locking time to indicate whether the smart key is outdoors at the locking time through the flag information. This requires determining the current location information of the smart key to determine whether the smart key is currently outdoors. Therefore, the smart door lock establishes a UWB connection with the smart key, and determines the current location information of the smart key through the UWB connection.
[0091] S411: The smart door lock determines whether the smart key is currently outdoors and updates the flag information recorded by the smart key.
[0092] In this embodiment, the smart door lock establishes a UWB connection with the smart key, and determines the current location information of the smart key through the UWB connection. Specifically, the smart door lock determines whether the smart key is currently outdoors and updates the flag information recorded by the smart key. When the smart door lock determines that the smart key is currently outdoors, the flag information is updated to indicate that the smart key is outdoors; and when the smart door lock determines that the smart key is currently indoors, the flag information is updated to indicate that the smart key is indoors.
[0093] S412: The smart door lock and the smart key disconnect the UWB connection.
[0094] In this embodiment, the smart door lock and the smart key complete the update of the lock time and flag information and disconnect the UWB connection in time, which is beneficial to reducing the power consumption of the entire unlocking solution, that is, the power consumption of the unlocking solution in this embodiment is relatively low.
[0095] See also Figure 5 , Figure 5 It is a flow chart of the third embodiment of the unlocking method of the smart door lock of the present invention.
[0096] S501: The smart door lock determines whether a Bluetooth connection is established with the smart key.
[0097] In this embodiment, if the smart door lock determines to establish a Bluetooth connection with the smart key, step S502 is executed; if the smart door lock does not determine to establish a Bluetooth connection with the smart key, step S501 is continued to be executed.
[0098] The smart door lock scans the surrounding Bluetooth devices within a certain range in real time, and the smart key is in the state of broadcasting Bluetooth signals in real time. When the smart key is within the Bluetooth coverage of the smart door lock, the smart door lock and the smart key will automatically establish a Bluetooth connection, and then the smart door lock and the smart key will maintain a Bluetooth heartbeat. This means that the user is close to the smart door lock, and the user may be indoors or outdoors. The smart door lock needs to perform further subsequent steps to unlock the door when the user is outdoors and needs to enter the room.
[0099] It should be noted that the process steps of this embodiment are based on maintaining an uninterrupted Bluetooth connection between the smart door lock and the smart key. If the Bluetooth connection between the smart door lock and the smart key is interrupted in the subsequent steps, it is necessary to return to this step.
[0100] S502: The smart door lock determines whether it is in a locked state.
[0101] In this embodiment, if the smart door lock determines that it is in a locked state, step S503 is executed; if the smart door lock determines that it is in an unlocked state, step S505 is executed.
[0102] S503: The smart door lock obtains the lock time and mark information recorded by the smart key.
[0103] In this embodiment, the smart door lock determines that it is in the locked state. At this time, the smart door lock obtains the lock time and flag information recorded by the smart key, which is used to determine whether a UWB connection needs to be established to determine the location information of the smart key, and then determine whether the door needs to be unlocked. In other words, this embodiment only establishes a UWB connection when necessary, and the UWB connection is not in a normally open state, which is conducive to reducing the power consumption of the entire unlocking solution.
[0104] S504: The smart door lock determines whether the locking time recorded by the smart door lock is consistent with the locking time recorded by the smart key, and determines whether the flag information indicates that the smart key is outdoors.
[0105] In this embodiment, if the locking time recorded by the smart door lock is consistent with the locking time recorded by the smart key, and the flag information indicates that the smart key is indoors, step S505 is executed; if the locking time recorded by the smart door lock is inconsistent with the locking time recorded by the smart key, and / or the flag information indicates that the smart key is outdoors, step S506 is executed.
[0106] Since the smart door lock generates a locking time each time it is locked, if the smart door lock and the smart key establish a Bluetooth connection when the locking action occurs, the smart door lock will update the locking time recorded by the smart key; if the smart door lock and the smart key do not establish a Bluetooth connection when the locking action occurs, the locking time recorded by the smart key cannot be updated, and the smart door lock can update its recorded locking time normally.
[0107] If the smart door lock and the smart key establish a Bluetooth connection, the lock-in time recorded by the smart door lock is consistent with the lock-in time recorded by the smart key, and the flag information indicates that the smart key is indoors, it means that the smart door lock did not lock during the Bluetooth connection disconnection, that is, the user is still indoors, and there is no need to control the smart door lock to unlock. If the lock-in time recorded by the smart door lock is inconsistent with the lock-in time recorded by the smart key, and / or the flag information indicates that the smart key is outdoors, the smart door lock cannot determine whether the current user is indoors, and it is necessary to establish a UWB connection to determine whether the smart key is indoors, that is, to determine whether the user is indoors.
[0108] S505: The smart door lock determines whether a locking action occurs.
[0109] In this embodiment, if the smart door lock determines that a locking action occurs, step S506 is executed; if the smart door lock does not determine that a locking action occurs, step S505 is continued to be executed.
[0110] S506: The smart door lock sends the locking time to the smart key, and the smart key updates the recorded locking time.
[0111] In this embodiment, the smart door lock and the smart key use the recorded lock time and flag information to decide whether to establish a UWB connection to determine the location information of the smart key. Specifically, when the smart door lock determines that a lock action has occurred, the smart door lock sends the lock time to the smart key, and the smart key updates its recorded lock time. In other words, the UWB connection of the embodiment of the present invention is only used when needed, which is further conducive to reducing the power consumption of the entire unlocking solution.
[0112] S507: The smart door lock establishes a UWB connection with the smart key.
[0113] In this embodiment, the smart key needs to assign corresponding flag information to the updated locking time to indicate whether the smart key is outdoors at the locking time through the flag information. This requires determining the current location information of the smart key to determine whether the smart key is currently outdoors. Therefore, the smart door lock establishes a UWB connection with the smart key, and determines the current location information of the smart key through the UWB connection.
[0114] S508: The smart door lock determines whether the smart key is currently outdoors, and updates the flag information recorded by the smart key.
[0115] In this embodiment, if the smart door lock determines that the smart key is currently outdoors, step S509 is executed; if the smart door lock determines that the smart key is currently indoors, step S510 is executed.
[0116] The smart door lock establishes a UWB connection with the smart key, and determines the current location information of the smart key through the UWB connection. Specifically, the smart door lock determines whether the smart key is currently outdoors and updates the flag information recorded by the smart key. When the smart door lock determines that the smart key is currently outdoors, the flag information is updated to indicate that the smart key is outdoors; and when the smart door lock determines that the smart key is currently indoors, the flag information is updated to indicate that the smart key is indoors.
[0117] S509: The smart door lock determines the distance between itself and the smart key in real time, and also determines whether the duration of the UWB connection between the smart door lock and the smart key reaches a preset value.
[0118] In this embodiment, if the smart door lock determines that it and the smart key are in a state of being close to each other, the process of this embodiment flows to step S405 of the above embodiment, that is, step S405 and the steps thereafter are executed, which will not be repeated here; if the smart door lock determines that it and the smart key are in a state of being far away from each other until the Bluetooth connection between the two is disconnected, step S510 is executed.
[0119] Furthermore, if the smart door lock determines that the length of time the smart door lock and the smart key maintain a UWB connection reaches a preset value, step S510 is executed; if the smart door lock determines that the length of time the smart door lock and the smart key maintain a UWB connection does not reach the preset value, the smart door lock continues to determine whether the length of time the smart door lock and the smart key maintain a UWB connection reaches the preset value.
[0120] Considering that the user may linger near the smart door lock for a long time, causing the UWB connection to be in a connected state for a long time, which is not conducive to reducing the power consumption of the unlocking solution of this embodiment, when the length of time that the smart door lock and the smart key maintain the UWB connection reaches a preset value, it means that the user has been lingering near the smart door lock for a long time. At this time, the UWB connection is disconnected in time, which is conducive to reducing the power consumption of the unlocking solution of this embodiment. In addition, at this time, the smart key can output prompt information, such as outputting a prompt tone, to inform the user that the lock cannot be automatically unlocked.
[0121] Optionally, the preset value may be 30 seconds, etc. The preset value may be set reasonably, which can prevent the UWB connection from being in a connected state for a long time, and can also prevent the preset value from being too small and resulting in insufficient time for the smart door lock to analyze the user's action intention.
[0122] S510: The smart door lock and the smart key disconnect from the UWB connection.
[0123] In this embodiment, disconnecting the UWB connection in time is helpful to reduce the power consumption of the entire unlocking solution, that is, the power consumption of the unlocking solution in this embodiment is relatively low.
[0124] In summary, in the unlocking method of the smart door lock provided by the present invention, the first device first establishes a first communication connection with the second device, and then establishes a second communication connection with the second device through the first communication connection. The first device determines the location information of the second device through the second communication connection, so as to control the smart door lock to unlock when the location information of the second device meets the preset conditions. In other words, the present invention does not require the user to operate the smart door lock, which greatly improves the convenience of the unlocking process of the smart door lock and can achieve non-sensing unlocking.
[0125] Furthermore, since the keep-alive power consumption of the first communication connection is lower than that of the second communication connection, that is, the second communication connection has a higher power consumption when maintained for a long time, the second communication connection is disconnected in time after the smart door lock is unlocked in the present invention. In other words, the present invention disconnects the second communication connection in time, which is conducive to reducing the power consumption of the entire unlocking solution, that is, the power consumption of the unlocking solution of the present invention is low. In addition, the unlocking solution of the present invention has a lower cost than the traditional non-sensing unlocking solution.
[0126] See also Figure 6 , Figure 6 It is a schematic structural diagram of an embodiment of an electronic device of the present invention.
[0127] In one embodiment, the electronic device includes a controller 11. The electronic device also includes a communication circuit 12, and the communication circuit 12 is connected to the controller 11. The controller 11 controls the communication circuit 12 to establish a first communication connection with the target device, and the controller 11 also controls the communication circuit 12 to establish a second communication connection with the target device through the first communication connection. The controller 11 also determines the location information of the target device through the second communication connection, and determines whether the location information of the target device meets the preset condition; if so, the controller 11 controls the smart door lock to unlock, and controls the communication circuit 12 to disconnect the second communication connection, wherein the keep-alive power consumption of the first communication connection is lower than the keep-alive power consumption of the second communication connection.
[0128] It should be noted that the electronic device of this embodiment can be a smart door lock or a smart key. Moreover, the electronic device of this embodiment can implement the unlocking method of the smart door lock described in the above embodiment, which will not be described in detail here.
[0129] See also Figure 7 , Figure 7 It is a structural diagram of an embodiment of a door access control system of the present invention.
[0130] In one embodiment, the access control system includes a smart door lock 21 and a smart key 22. The smart door lock 21 can establish a first communication connection with the smart key 22, and the smart door lock 21 can establish a second communication connection with the smart key 22 through the first communication connection. The smart door lock 21 can also determine the location information of the smart key 22 through the second communication connection, and determine whether the location information of the smart key 22 meets a preset condition; if so, the smart door lock 21 unlocks and disconnects the second communication connection; wherein the keep-alive power consumption of the first communication connection is lower than the keep-alive power consumption of the second communication connection.
[0131] It should be noted that the interaction process between the smart door lock 21 and the smart key 22 of this embodiment has been described in detail in the above embodiments and will not be repeated here.
[0132] In addition, in the present invention, unless otherwise clearly specified and limited, the terms "connected", "connected", "stacked" and the like should be understood in a broad sense, for example, it can be fixedly connected, detachably connected, or integrated; it can be directly connected, or indirectly connected through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0133] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for unlocking a smart door lock, characterized in that: The unlocking method comprises: The first device establishes a first communication connection with the second device; The first device establishes a second communication connection with the second device through the first communication connection; The first device determines the location information of the second device through the second communication connection, and determines whether the location information of the second device meets a preset condition; If yes, control the smart door lock to unlock and disconnect the second communication connection; The keep-alive power consumption of the first communication connection is lower than the keep-alive power consumption of the second communication connection; One of the first device and the second device is the smart door lock, and the other is a smart key. Both the first device and the second device record relevant lock time, and the smart key also records corresponding flag information; wherein the flag information indicates whether the smart key is outdoors; Before the step of the first device establishing a second communication connection with the second device through the first communication connection, the step includes: If the smart door lock is in a locked state, the first device obtains the locking time recorded by the second device and obtains the flag information recorded by the smart key; If the lockout time recorded by the first device is inconsistent with the lockout time recorded by the second device, the step of establishing a second communication connection between the first device and the second device through the first communication connection is performed.
2. The unlocking method according to claim 1, characterized in that: The step of determining whether the location information of the second device meets a preset condition comprises: The first device determines whether the first device and the second device are in a state of being close to each other; If so, the first device determines the distance between the first device and the second device through the second communication connection, and determines whether the distance is less than or equal to a threshold; If so, the smart door lock is controlled to unlock and the second communication connection is disconnected.
3. The unlocking method according to claim 2, characterized in that: The step of the first device determining whether the first device and the second device are in a state of being close to each other includes: The first device determines whether the second device is outdoors through the second communication connection; If so, the step of the first device determining whether it and the second device are in close proximity to each other is executed; if not, the second communication connection is directly disconnected.
4. The unlocking method according to claim 3, characterized in that: When the first device determines whether the first device and the second device are in a state of being close to each other, the first device also determines whether the duration of maintaining the second communication connection between the first device and the second device reaches a preset value; If the duration for which the first device and the second device maintain the second communication connection reaches the preset value, the second communication connection is directly disconnected.
5. The unlocking method according to claim 2, characterized in that: The step of the first device determining whether the first device and the second device are in a state of being close to each other includes: The first device determines a distance between the first device and the second device through the second communication connection; determining whether the distance is gradually decreasing; If so, it is determined that the first device and the second device are in a state of being close to each other.
6. The unlocking method according to claim 1, characterized in that: Before the step of the first device establishing a second communication connection with the second device through the first communication connection, the step includes: The first device determines whether the smart door lock is in a locked state; If so, execute the steps of the first device obtaining the locking time recorded by the second device and obtaining the flag information recorded by the smart key, and determine whether the locking time recorded by the first device is consistent with the locking time recorded by the second device, and determine whether the flag information indicates that the second device is outdoors.
7. The unlocking method according to claim 6, characterized in that: If the smart door lock is in an unlocked state, or the locking time recorded by the first device is consistent with the locking time recorded by the second device and the flag information indicates that the second device is indoors, or after the step of controlling the smart door lock to unlock, The first device determines whether the smart door lock is locked; If so, the locking time recorded by the first device is updated, and the locking time recorded by the second device is updated through the first communication connection, and it is determined through the second communication connection whether the smart key is currently outdoors to update the flag information.
8. The unlocking method according to any one of claims 1 to 7, characterized in that: Before the step of the first device establishing a second communication connection with the second device through the first communication connection, the step includes: The first device performs authentication work on a second communication connection of the second device through the first communication connection, thereby binding the second device.
9. A smart door lock, characterized in that: include: Controller; A communication circuit connected to the controller; Wherein, the controller controls the communication circuit to establish a first communication connection with the smart key, and the controller also controls the communication circuit to establish a second communication connection with the smart key through the first communication connection, and the controller also determines the location information of the smart key through the second communication connection, and determines whether the location information of the smart key meets a preset condition; if so, the controller controls the smart door lock to unlock, and controls the communication circuit to disconnect the second communication connection, wherein the keep-alive power consumption of the first communication connection is lower than the keep-alive power consumption of the second communication connection; The smart door lock and the smart key both record the relevant lock time, and the smart key also records the corresponding flag information; wherein the flag information indicates whether the smart key is outdoors; The controller is used to obtain the locking time recorded by the smart key and the flag information recorded by the smart key if the smart door lock is in a locked state; if the locking time recorded by the smart door lock is inconsistent with the locking time recorded by the smart key, execute the step of controlling the communication circuit to establish a second communication connection with the smart key through the first communication connection.
10. A smart key, characterized in that: include: Controller; A communication circuit connected to the controller; Wherein, the controller controls the communication circuit to establish a first communication connection with the smart door lock, and the controller also controls the communication circuit to establish a second communication connection with the smart door lock through the first communication connection, and the controller also determines the location information of the smart door lock through the second communication connection, and determines whether the location information of the smart door lock meets the preset condition; if so, the controller controls the smart door lock to unlock, and controls the communication circuit to disconnect the second communication connection, wherein the keep-alive power consumption of the first communication connection is lower than the keep-alive power consumption of the second communication connection; One of the smart key and the smart door lock is the smart door lock, and the other is the smart key. Both the smart key and the smart door lock record relevant lock time, and the smart key also records corresponding flag information; wherein the flag information indicates whether the smart key is outdoors; The controller is used to obtain the locking time recorded by the smart door lock and the flag information recorded by the smart key if the smart door lock is in a locked state; if the locking time recorded by the smart key is inconsistent with the locking time recorded by the smart door lock, execute the step of controlling the communication circuit to establish a second communication connection with the smart door lock through the first communication connection.
11. An access control system, characterized in that: The access control system includes a smart door lock and a smart key; The smart door lock can establish a first communication connection with the smart key, and the smart door lock can establish a second communication connection with the smart key through the first communication connection. The smart door lock can also determine the location information of the smart key through the second communication connection, and determine whether the location information of the smart key meets a preset condition; if so, the smart door lock unlocks and disconnects the second communication connection; wherein the keep-alive power consumption of the first communication connection is lower than the keep-alive power consumption of the second communication connection; The smart door lock and the smart key both record the relevant lock time, and the smart key also records the corresponding flag information; wherein the flag information indicates whether the smart key is outdoors; If the smart door lock is in a locked state, the smart door lock can obtain the locking time recorded by the smart key and the flag information recorded by the smart key; if the locking time recorded by the smart door lock is inconsistent with the locking time recorded by the smart key, the smart door lock can execute the step of establishing a second communication connection with the smart key through the first communication connection.
Citation Information
Patent Citations
Control method of Bluetooth entrance guard
CN106204817A
Electronic equipment and vehicle entering system
CN113727303A
Intelligent lock and automatic door
CN214042397U