A door control method, apparatus, and system
By combining UWB ranging technology with smart locks, automatic unlocking or locking based on the user's location and automatic opening or closing of the door are achieved, solving the problem that existing smart locks cannot automatically control the door and providing a seamless entry experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- GUANGZHOU ZHOULIGONG SCM DEV
- Filing Date
- 2022-12-14
- Publication Date
- 2026-05-15
AI Technical Summary
Existing smart door locks cannot automatically unlock and lock based on the relative position and accurate distance information between the user and the door, thus failing to achieve automatic opening and closing of the door, requiring users to operate them at close range.
By using UWB anchor points, a first antenna, and a second antenna set on the door, the user's location is determined using UWB ranging technology. Combined with the status information of the door and lock, automatic unlocking, locking, opening, and closing operations are achieved.
It provides a seamless entry experience, simplifies user operations, and improves security and convenience.
Smart Images

Figure CN116246373B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of door control technology, and in particular to a door control method, device, and system. Background Technology
[0002] Currently, with the rapid development of smart homes, smart door locks are gradually replacing traditional door locks, bringing great convenience to people's lives. Among related technologies, smart door locks offer multiple unlocking methods, including password unlocking, fingerprint unlocking, facial recognition unlocking, Bluetooth unlocking, and NFC unlocking, which simplify the unlocking process and provide a better unlocking experience.
[0003] However, the unlocking methods provided by the aforementioned smart door locks still require close-range operation by the user. Moreover, under normal circumstances, they cannot automatically unlock or lock the door based on the relative position of the user and the door, or the accurate distance between the user and the door, nor can they automatically open or close the door. Summary of the Invention
[0004] This application provides a door control method, device, and system that can determine the user's location status through signal strength measurement and real-time ranging information, and automatically unlock or lock the door lock and automatically open or close the door according to the location status, providing the user with a seamless entry experience.
[0005] In a first aspect, embodiments of this application provide a door control method, wherein a smart door lock and a door control device are installed on the door. The smart door lock includes a UWB anchor point, a lock control device, a first antenna, and a second antenna. The first antenna is disposed on the side facing the outside when the door is closed, and the second antenna is disposed on the side facing the inside when the door is closed. The first antenna and the second antenna are connected to the UWB anchor point. A communication link exists between the UWB anchor point, the lock control device, and the door control device.
[0006] The control method is applied to the UWB anchor point and includes:
[0007] The system acquires a first status identifier fed back in real time by the door control device, wherein the first status identifier represents the open / closed state of the door; and acquires a second status identifier fed back in real time by the lock control device, wherein the second status identifier represents the open / closed state of the lock.
[0008] A UWB connection is established with a UWB tag via wireless communication, and real-time UWB ranging is performed based on the UWB connection to obtain real-time ranging results.
[0009] The UWB signals received by the first antenna and the second antenna and transmitted by the UWB tag through the UWB connection are measured respectively, and the first signal strength and the second signal strength are obtained; the strength comparison result is obtained by comparing the first signal strength and the second signal strength.
[0010] Based on the first status identifier, the second status identifier, and the intensity comparison result, a corresponding first control command is sent to the lock control device according to the current control mode so that the lock control device performs unlocking or locking operations in response to the first control command, and a corresponding second control command is sent to the door control device so that the door control device performs opening or closing operations in response to the second control command.
[0011] In a second aspect, embodiments of this application provide a door control device, wherein a smart door lock and a door control device are installed on the door. The smart door lock includes a UWB anchor point, a lock control device, a first antenna, and a second antenna. The first antenna is disposed on the side facing the outside when the door is closed, and the second antenna is disposed on the side facing the inside when the door is closed. The first antenna and the second antenna are connected to the UWB anchor point. A communication link exists between the UWB anchor point, the lock control device, and the door control device.
[0012] The control device is applied to the processor of the UWB anchor point in any embodiment, and the control device includes:
[0013] The status module is used to obtain a first status identifier fed back in real time by the door control device and a second status identifier fed back in real time by the lock control device, wherein the first status identifier represents the opening and closing status of the door, including a door open status identifier and a door closed status identifier, and the second status identifier represents the opening and closing status of the lock, including a lock open status identifier and a lock closed status identifier.
[0014] The ranging module is used to establish a UWB connection with the UWB tag via wireless communication and to perform real-time UWB ranging based on the UWB connection to obtain real-time ranging results.
[0015] The measurement module is used to measure the UWB signals received by the first antenna and the second antenna and transmitted by the UWB tag through the UWB connection, respectively, and obtain a first signal strength and a second signal strength; and obtain a strength comparison result by comparing the first signal strength and the second signal strength.
[0016] The control module is configured to, based on the first state identifier, the second state identifier, and the intensity comparison result, send a corresponding first control command to the lock control device according to the current control mode so that the lock control device performs an unlocking or locking operation in response to the first control command, and send a corresponding second control command to the door control device so that the door control device performs an opening or closing operation in response to the second control command.
[0017] In a third aspect, embodiments of this application provide a door control system, the control system including a smart door lock and a door control device, the smart door lock including a UWB anchor point, a lock control device, a first antenna and a second antenna; the first antenna is disposed on the side facing the outside when the door is closed, the second antenna is disposed on the side facing the inside when the door is closed, the first antenna and the second antenna are connected to the UWB anchor point; the UWB anchor point, the lock control device and the door control device have a communication link, wherein the UWB anchor point is used to execute the door control method as described in any embodiment.
[0018] In this embodiment, the distance between the user and the door is determined by acquiring a first status indicator fed back in real time from the door control device and a second status indicator fed back in real time from the lock control device; establishing a UWB connection with a UWB tag via wireless communication and performing real-time UWB ranging based on the UWB connection to obtain the real-time ranging result; measuring the UWB signal received by the first antenna and the second antenna from the UWB tag transmitted through the UWB connection to obtain a first signal strength and a second signal strength; comparing the first signal strength and the second signal strength to obtain a strength comparison result to determine whether the user is inside or outside the door; and based on the first status indicator, the second status indicator, and the strength comparison result, sending a corresponding first control command to the lock control device according to the current control mode to enable the lock control device to perform unlocking or locking operations, and sending a corresponding second control command to the door control device to enable the door control device to perform opening or closing operations. Using the above technical means, automatic unlocking or locking of the door lock and automatic opening or closing of the door based on the user's location status can be achieved, providing the user with a seamless entry experience. Attached Figure Description
[0019] Figure 1 This is a schematic diagram of the structure of a door control system provided in an embodiment of this application;
[0020] Figure 2 This is a flowchart of a door control method provided in an embodiment of this application;
[0021] Figure 3 This is a schematic diagram of a user entering a room under a distance mode, provided in an embodiment of this application;
[0022] Figure 4 This is a schematic diagram of a user entering a room in a dynamic mode, provided in an embodiment of this application;
[0023] Figure 5 This is a schematic diagram of the structure of a door control device provided in an embodiment of this application. Detailed Implementation
[0024] To make the objectives, technical solutions, and advantages of this application clearer, specific embodiments of this application will be described in further detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are merely for explaining this application and not for limiting it. It should also be noted that, for ease of description, only the parts relevant to this application are shown in the drawings, not all of them. Before discussing exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe operations (or steps) as sequential processes, many of these operations can be performed in parallel, concurrently, or simultaneously. Furthermore, the order of the operations can be rearranged. The process can be terminated when its operation is completed, but may also have additional steps not included in the drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, etc.
[0025] Figure 1 A schematic diagram of a door control system 100 according to an embodiment of this application is provided. The door control system 100 can be implemented by software and / or hardware, and can be composed of two or more physical entities. (Refer to...) Figure 1 The control system 100 includes a smart door lock 110 and a door control device 120. The smart door lock 110 includes a UWB anchor point 111, a lock control device 112, a first antenna 113, and a second antenna 114. The first antenna 113 is disposed on the side facing the outside when the door is closed, and the second antenna 114 is disposed on the side facing the inside when the door is closed. The first antenna 113 and the second antenna 114 are connected to the UWB anchor point 111. There is a communication link between the UWB anchor point 111, the lock control device 112, and the door control device 120. The UWB anchor point 111 can be used to execute the door control method of any embodiment of this application, and has corresponding functions and beneficial effects.
[0026] Specifically, Figure 2A flowchart of a door control method according to an embodiment of this application is provided. The door control method provided in this embodiment can be executed by a UWB anchor point in the door control system. The door is equipped with a smart door lock and a door control device. The smart door lock includes a UWB anchor point, a lock control device, a first antenna, and a second antenna. The first antenna is located on the side facing the outside when the door is closed, and the second antenna is located on the side facing the inside when the door is closed. The first antenna and the second antenna are connected to the UWB anchor point. There is a communication link between the UWB anchor point, the lock control device, and the door control device.
[0027] The following description uses the UWB anchor point in a door control system as the main body for implementing the door control method. (Refer to...) Figure 2 The specific control methods for this door include:
[0028] S210. Obtain a first status identifier fed back in real time by the door control device, wherein the first status identifier represents the open / closed state of the door, and obtain a second status identifier fed back in real time by the lock control device, wherein the second status identifier represents the open / closed state of the lock.
[0029] The door control device is used to automatically control the opening and closing of the door, so the door will have two different state positions. The lock control device is used to automatically control the locking and unlocking of the lock, so the lock will have two different state positions. Before the UWB anchor point controls the door and lock based on the user's location information, it needs to know whether the door is open or closed, and whether the lock is unlocked or locked. This is to determine the specific operations of the door and lock when the user is in different positions. For example, if the first state indicator is the closed state and the second state indicator is the locked state, it means that the door is in the closed position and the lock is in the locked position. By judging that the person is outdoors, the door should be unlocked and opened when the person approaches. As another example, if the first state indicator is the open state and the second state indicator is the unlocked state, it means that the door is in the open position and the lock is in the unlocked position. In this case, the door should be automatically closed and locked when the person moves away from the door.
[0030] S220. Establish a UWB connection with the UWB tag via wireless communication, and perform real-time UWB ranging based on the UWB connection to obtain real-time ranging results.
[0031] It's worth noting that the wireless communication method can be Wi-Fi or Bluetooth, etc. Both the UWB anchor point and the UWB tag have built-in control modules with UWB functionality. The UWB anchor point is located inside the door lock, while the UWB tag can be a mobile phone, a UWB physical key, a UWB wearable device, or other UWB-enabled devices. Establishing a UWB connection between the UWB anchor point and the UWB tag requires exchanging UWB configuration data through the established wireless communication connection. Only after the relevant configuration is completed can a successful UWB connection be established between the UWB anchor point and the UWB tag. Therefore, both the UWB anchor point and the UWB tag must have wireless communication capabilities. Based on UWB ranging, accurate real-time ranging results can be obtained. The UWB data frames during the ranging process also include scrambled timestamps, which can effectively prevent tampering and man-in-the-middle attacks, ensuring the security of door and door lock control based on this real-time ranging result.
[0032] Optionally, the UWB anchor point further includes a first wireless communication module, and the UWB tag includes a second wireless communication module. Correspondingly, the aforementioned establishment of a UWB connection with the UWB tag via wireless communication specifically includes the following steps:
[0033] S221. Receive a wireless connection request initiated by the UWB tag through the second wireless communication module, wherein the UWB tag is located within the signal coverage area of the first wireless communication module, and the wireless connection request includes identity information.
[0034] S222. After confirming the legitimacy of the identity information through the first wireless communication module, a wireless communication connection is established with the UWB tag, and a UWB connection is established based on the wireless communication connection.
[0035] Specifically, the first and second wireless communication modules can be either Wi-Fi or Bluetooth modules. Taking Bluetooth as an example, after the UWB tag activates its Bluetooth module, it will be in a connection request state and continuously send wireless connection request signals to the outside world. The Bluetooth module at the UWB anchor point will continuously scan for signals within a certain range and obtain corresponding wireless connection requests. When the Bluetooth module at the UWB anchor point determines that the identity information corresponding to the wireless connection request is legitimate, it will respond to the wireless connection request and establish a wireless Bluetooth connection with the UWB tag. Then, a UWB connection is further established based on this Bluetooth connection.
[0036] As described above, by setting up authentication connections for UWB anchor points and UWB tags, malicious connection attacks can be avoided, the security of UWB connections can be improved, and the reliability of UWB ranging results can be guaranteed.
[0037] Furthermore, since users only utilize the UWB function of the UWB anchor when opening and closing the door, keeping the UWB function on for extended periods would result in unnecessary power consumption and place higher demands on battery life, leading to higher power costs for users.
[0038] Optionally, the UWB function corresponding to the UWB anchor point is in a dormant state. The aforementioned establishment of a UWB connection based on a wireless communication connection specifically includes the following steps:
[0039] S223. Upon successful establishment of a wireless communication connection with the UWB tag, activate the UWB function;
[0040] S224. Establish a UWB connection with a UWB tag using UWB functionality based on wireless communication connection.
[0041] As described above, the UWB anchor point controls the activation time of the UWB function by waking up the UWB function after establishing a wireless communication connection with the UWB tag, thereby reducing unnecessary power consumption and saving power.
[0042] S230. Measure the UWB signals received by the first antenna and the second antenna and transmitted by the UWB tag through the UWB connection, respectively, and obtain the first signal strength and the second signal strength; obtain a strength comparison result by comparing the first signal strength and the second signal strength.
[0043] The first antenna is positioned on the side facing outwards when the door is closed, and the second antenna is positioned on the side facing inwards when the door is closed. Essentially, the two antennas are physically separated by the door. When the door is closed, the UWB tag sends a UWB signal to the UWB anchor point via the UWB connection. Both the first and second antennas receive this UWB signal, but due to the door, the signal strength received by the two antennas differs. If the first signal strength received by the first antenna is greater than the second signal strength received by the second antenna, the UWB tag is located on the side with the first antenna, meaning the user is outdoors. Similarly, if the first signal strength received by the first antenna is less than the second signal strength received by the second antenna, the UWB tag is located on the side with the second antenna, meaning the user is indoors. When the door is open, because the door is against the wall, the user is always on the side with the first antenna, and the first signal strength received by the first antenna is always greater than the second signal strength received by the second antenna.
[0044] The above method combines the door's closed state with the difference in signal strength received by the two antennas to determine whether the user is indoors or outdoors, making it simple and effective to determine the user's location.
[0045] S240. Based on the first state identifier, the second state identifier, and the intensity comparison result, according to the current control mode, send a corresponding first control command to the lock control device so that the lock control device responds to the first control command to perform unlocking or locking operations, and send a corresponding second control command to the door control device so that the door control device responds to the second control command to perform opening or closing operations.
[0046] As described above, this embodiment of the application obtains a first status indicator fed back in real time by the door control device and a second status indicator fed back in real time by the lock control device; establishes a UWB connection with a UWB tag via wireless communication, and performs real-time UWB ranging based on the UWB connection to obtain the real-time ranging result, thereby determining the distance between the user and the door; measures the UWB signal received by the first antenna and the second antenna and transmitted by the UWB tag through the UWB connection, respectively, and obtains a first signal strength and a second signal strength; compares the first signal strength and the second signal strength to obtain a strength comparison result, thereby determining whether the user is located inside or outside the door; based on the first status indicator, the second status indicator, and the strength comparison result, according to the current control mode, sends a corresponding first control command to the lock control device to enable the lock control device to perform unlocking or locking operations in response to the first control command, and sends a corresponding second control command to the door control device to enable the door control device to perform opening or closing operations in response to the second control command. Using the above technical means, it is possible to automatically unlock or lock the door lock and automatically open or close the door according to the user's location status, providing the user with a seamless entry experience.
[0047] Specifically, the UWB anchor point can determine whether the user is indoors or outdoors based on the intensity comparison results. It then determines the door's status based on the first status indicator and the lock's status based on the second status indicator. Normally, after the user leaves, the first status indicator should show the door as closed and the second status indicator as locked. When the user returns and approaches the door, the intensity comparison result should show that the first signal strength of the UWB signal received by the first antenna is greater than the second signal strength of the UWB signal received by the second antenna. Therefore, the UWB anchor point can determine that the user is outdoors. Furthermore, the UWB anchor point determines the timing of controlling the door and lock based on the current control mode, which uses real-time ranging results as reference data to clarify the user's movement status.
[0048] As described above, this embodiment of the application obtains a first status indicator fed back in real time by the door control device and a second status indicator fed back in real time by the lock control device; establishes a UWB connection with a UWB tag via wireless communication, and performs real-time UWB ranging based on the UWB connection to obtain the real-time ranging result, thereby determining the distance between the user and the door; measures the UWB signal received by the first antenna and the second antenna and transmitted by the UWB tag through the UWB connection, respectively, and obtains a first signal strength and a second signal strength; compares the first signal strength and the second signal strength to obtain a strength comparison result, thereby determining whether the user is located inside or outside the door; based on the first status indicator, the second status indicator, and the strength comparison result, according to the current control mode, sends a corresponding first control command to the lock control device to enable the lock control device to perform unlocking or locking operations in response to the first control command, and sends a corresponding second control command to the door control device to enable the door control device to perform opening or closing operations in response to the second control command. Using the above technical means, it is possible to automatically unlock or lock the door lock and automatically open or close the door according to the user's location status, providing the user with a seamless entry experience.
[0049] Optionally, the current control mode is distance mode. Corresponding to distance mode, based on the aforementioned embodiments, a specific implementation of step S240 includes:
[0050] S241. When the first state identifier is the door closed state identifier, the second state identifier is the lock closed state identifier, the strength comparison result is that the first signal strength is greater than the second signal strength, and the real-time distance measurement result is less than the preset first distance threshold, an unlocking command is sent to the lock control device so that the lock control device responds to the unlocking command to unlock and feed back the lock open state identifier.
[0051] S242. After receiving the lock open status indicator, send an opening command to the door control device so that the door control device responds to the opening command, drives the door to open, and feeds back the door open status indicator.
[0052] S243, Receiving door open status indicator.
[0053] As described above, the UWB anchor point uses a first state identifier (door closed) and a second state identifier (locked) to clearly indicate that the door is in the closed position and the lock is in the locked position. A strength comparison result showing that the first signal strength is greater than the second signal strength confirms that the user is outdoors. The preset first distance threshold can be set by the user. When the user approaches the door until the real-time distance measurement reaches this first distance threshold, the UWB anchor point is triggered to send an unlock command to the lock control device. After receiving the unlock status identifier, it continues to send an open command to the door control device. (Reference) Figure 3Users can wait at the first distance threshold until the door is fully open before entering the room. Of course, users can also increase the first distance threshold to take the width of the door into account. The position of the outermost edge of the door after it is fully open is used as the first reference position. Based on the time t1 it takes for the door to open to the first reference position, the user spends time t1 to walk to a certain position. This position should be outside the first reference position. In this way, the user does not need to stop and wait for the door to open, providing a more comfortable entry experience.
[0054] Furthermore, the preset first distance threshold cannot be adaptively adjusted according to the user's real-time movement status, requiring the user to pause and cooperate. Opening the door too early can also easily expose the user's privacy.
[0055] Optionally, the current control mode is dynamic mode. Corresponding to dynamic mode, based on the aforementioned embodiments, another specific implementation of step S240 includes:
[0056] S244. When the first state identifier is the door closed state identifier, the second state identifier is the locked state identifier, and the strength comparison result is that the first signal strength is greater than the second signal strength, the speed information of the UWB tag is generated based on the real-time ranging result within a set time length, and the dynamic distance threshold is set based on the speed information and the reference time from the door to the open position.
[0057] S245. When the real-time ranging result reaches the dynamic distance threshold, send an unlocking command to the lock control device so that the lock control device responds to the unlocking command to unlock and feed back the lock open status indicator.
[0058] S246. After receiving the lock open status indicator, send an opening command to the door control device so that the door control device responds to the opening command, drives the door to open, and feeds back the door open status indicator.
[0059] S247, Receiving door open status indicator.
[0060] As described above, UWB anchor points can collect real-time ranging results within a set time period after UWB ranging is enabled, such as data for 20 or 30 seconds. Based on the trends in time and distance, the average speed of the UWB tag is determined. Then, taking the width of the door into account, the outermost edge of the fully open door is used as the first reference position. To set a suitable dynamic distance threshold, the time it takes for the user to reach the first reference position from that dynamic distance threshold position must be greater than or equal to the time t1 it takes for the door to move from the closed position to the open position. Figure 4This allows users to reach the first reference position precisely at the moment the door is fully open, and then directly enter the room. By using the user's real-time average speed as a reference, combined with the time t1 for the door to move from the closed position to the open position, a dynamic distance threshold is set, automatically adapting to the user's movement state to provide more precise control, and preventing the door from opening too early and compromising the user's privacy and security.
[0061] Furthermore, after the user enters the room, the door is in the open position. The intensity comparison results obtained by the UWB anchor point are always that the first signal strength of the UWB signal received by the first antenna is greater than the second signal strength of the UWB signal received by the second antenna. It is impossible to determine whether the user is indoors or outdoors. However, based on the real-time ranging information, it can be known whether the user is far away from the door. Regardless of whether the user is indoors or outdoors, as long as they are far away from the door, for safety reasons, automatic door closing and automatic locking can be set.
[0062] Optionally, after step S243 or step S247, the following steps may also be included:
[0063] S248. If the real-time distance measurement result is greater than the preset second distance threshold, a door closing command is sent to the door control device so that the door control device responds to the door closing command, closes the door and feeds back a door closed status indicator.
[0064] S249. After receiving the door closed status indicator, send a locking command to the lock control device so that the lock control device responds to the locking command to lock and feed back the lock status indicator.
[0065] Specifically, the preset second distance threshold can be set according to the user's own needs. For example, if the user believes that the door should automatically close and lock after reaching a certain point indoors, then the distance from this point to the door can be used as the specific value of the second distance threshold. Similarly, when the user reaches the same distance outdoors, the door will also automatically close and lock. This way, the user does not need to close and lock the door manually, and the door can be automatically closed and locked when the user is far away from the door and forgets to close and lock it, thus ensuring the user's personal and property safety.
[0066] Furthermore, even with UWB anchor point control for automatic door closing and locking, there is a possibility that the door control device or lock control device may not perform the corresponding action, or that the door or lock may be damaged, preventing the door from closing and locking. Therefore, users need to know whether the door is open and whether the lock is unlocked in order to check the door or lock.
[0067] This application provides another door control method, which, based on the foregoing embodiments, further includes:
[0068] S250. If the real-time ranging result is greater than the preset third distance threshold, and the first status identifier is the door open status identifier or the second status identifier is the lock open status identifier, send the first reminder information to the UWB tag through the wireless communication connection.
[0069] It is worth noting that after step S240, if the real-time distance measurement result is greater than the preset third distance threshold, it indicates that the user is indoors or is moving away from the door and going out. If the first status identifier is the door open status identifier or the second status identifier is the lock open status identifier, it means that the door is not closed or the door lock is not locked. At this time, the UWB anchor point needs to send the first reminder information to the UWB tag through the wireless communication connection to remind the user to confirm the actual status of the door or door lock and to investigate possible causes of failure.
[0070] Furthermore, users may be followed by strangers when they return home. In such cases, automatic door unlocking would pose a significant risk.
[0071] This application provides another door control method. Based on the aforementioned embodiments, the door further includes a signal element that generates sound signals, such as a buzzer or a speaker. After step S230, the method further includes the following steps:
[0072] S260. When the first state identifier is the door closed state identifier, the second state identifier is the lock state identifier, and the strength comparison result shows that the first signal strength is greater than the second signal strength, if the real-time ranging result remains unchanged for more than a preset time length, the first alarm information is output through the signal element, and the control of the door control device and the lock control device is stopped.
[0073] It is worth noting that step S260 can replace step S240. Furthermore, it can be understood that when the first state identifier is a door-closed state identifier and the second state identifier is a locked state identifier, and the strength comparison result shows that the first signal strength is greater than the second signal strength, it indicates that the door is in the closed position and the door lock is in the locked position. If the user is outdoors, and the real-time ranging result remains unchanged, it means the user is near the door but stationary. If the user notices someone following them, they can stand still for a preset time. The UWB anchor point will then consider the user to be at risk of being followed and control the signal element to output a first alarm message, such as a buzzer or warning audio, while simultaneously ceasing control of the door control device and the lock control device. This helps to drive away strangers, protect the user's personal and property safety, and reduce the risk of accidents.
[0074] Figure 5 This is a schematic diagram of a door control device 500 provided in an embodiment of this application. Based on the above embodiment, refer to... Figure 5The door control device 500 provided in this embodiment specifically includes:
[0075] The status module 510 is used to obtain a first status identifier fed back in real time by the door control device and a second status identifier fed back in real time by the lock control device, wherein the first status identifier represents the opening and closing status of the door, including a door open status identifier and a door closed status identifier, and the second status identifier represents the opening and closing status of the lock, including a lock open status identifier and a lock closed status identifier.
[0076] The ranging module 520 is used to establish a UWB connection with the UWB tag via wireless communication and to perform real-time UWB ranging based on the UWB connection to obtain real-time ranging results.
[0077] The measurement module 530 is used to measure the UWB signals received by the first antenna and the second antenna and transmitted by the UWB tag through the UWB connection, respectively, and obtain a first signal strength and a second signal strength; and obtain a strength comparison result by comparing the first signal strength and the second signal strength.
[0078] The control module 540 is configured to, based on the first state identifier, the second state identifier, and the intensity comparison result, send a corresponding first control command to the lock control device according to the current control mode so that the lock control device performs an unlocking or locking operation in response to the first control command, and send a corresponding second control command to the door control device so that the door control device performs an opening or closing operation in response to the second control command.
[0079] The door control device provided in this application embodiment can be used to execute the door control method provided in any of the above embodiments, and has corresponding functions and beneficial effects.
[0080] The door control device and door control system provided in the above embodiments can execute the door control method provided in any embodiment of this application. For technical details not described in detail in the above embodiments, please refer to the door control method provided in any embodiment of this application.
[0081] It should be noted that the numbering of each step in this solution is only used to describe the overall design framework of this solution and does not indicate a necessary sequential relationship between the steps. As long as the overall implementation process conforms to the overall design framework of this solution, it falls within the protection scope of this solution. The order of the words in the description is not an exclusive limitation on the specific implementation process of this solution.
[0082] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0083] The above description is merely a preferred embodiment and the technical principles employed in this application. This application is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions that can be made by those skilled in the art will not depart from the scope of protection of this application. Therefore, although this application has been described in detail through the above embodiments, this application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of this application, the scope of which is determined by the scope of the claims.
Claims
1. A method for controlling a door, characterized in that, The door is equipped with a smart door lock and a door control device. The smart door lock includes a UWB anchor point, a lock control device, a first antenna, and a second antenna. The first antenna is located on the side facing the outside when the door is closed, and the second antenna is located on the side facing the inside when the door is closed. The first antenna and the second antenna are connected to the UWB anchor point. There is a communication link between the UWB anchor point, the lock control device, and the door control device. The control method is applied to the UWB anchor point and includes: The system acquires a first status identifier fed back in real time by the door control device, wherein the first status identifier represents the open / closed state of the door; and acquires a second status identifier fed back in real time by the lock control device, wherein the second status identifier represents the open / closed state of the lock. A UWB connection is established with a UWB tag via wireless communication, and real-time UWB ranging is performed based on the UWB connection to obtain real-time ranging results. The UWB signals received by the first antenna and the second antenna and transmitted by the UWB tag through the UWB connection are measured respectively, and the first signal strength and the second signal strength are obtained; the strength comparison result is obtained by comparing the first signal strength and the second signal strength. Based on the first state identifier, the second state identifier, and the intensity comparison result, according to the current control mode, a corresponding first control command is sent to the lock control device to enable the lock control device to perform unlocking or locking operations in response to the first control command, and a corresponding second control command is sent to the door control device to enable the door control device to perform opening or closing operations in response to the second control command. Wherein, the current control mode is a dynamic mode, and the step of sending a corresponding first control command to the lock control device based on the first state identifier, the second state identifier, and the intensity comparison result, so that the lock control device responds to the first control command to perform unlocking or locking operations, and sending a corresponding second control command to the door control device, so that the door control device responds to the second control command to perform opening or closing operations, includes: When the first state identifier is the door closed state identifier, the second state identifier is the locked state identifier, and the strength comparison result is that the first signal strength is greater than the second signal strength, the speed information of the UWB tag is generated based on the real-time ranging result within a set time length, and a dynamic distance threshold is set based on the speed information and the reference time of the door from the closed position to the open position. When the real-time ranging result reaches the dynamic distance threshold, an unlocking command is sent to the lock control device so that the lock control device responds to the unlocking command to unlock and provides feedback on the lock open status indicator. Upon receiving the lock open status indicator, an opening command is sent to the door control device, so that the door control device responds to the opening command, drives the door to open, and feeds back the door open status indicator; Receive the door open status indicator.
2. The control method according to claim 1, characterized in that, The UWB anchor point also includes a first wireless communication module, and the UWB tag includes a second wireless communication module; Correspondingly, establishing a UWB connection with the UWB tag via wireless communication includes: The system receives a wireless connection request initiated by the UWB tag through the second wireless communication module, wherein the UWB tag is located within the signal coverage area of the first wireless communication module, and the wireless connection request includes identity information. After the identity information is confirmed to be legitimate by the first wireless communication module, a wireless communication connection is established with the UWB tag, and a UWB connection is established based on the wireless communication connection.
3. The control method according to claim 2, characterized in that, The UWB function corresponding to the UWB anchor point is in a dormant state; The establishment of a UWB connection based on the wireless communication connection includes: Upon successful establishment of a wireless communication connection with the UWB tag, the UWB function is activated; Based on the wireless communication connection, a UWB connection is established with the UWB tag using the UWB function.
4. The control method according to claim 1, characterized in that, After receiving the lock open status indicator, the step of sending an opening command to the door control device, so that the door control device responds to the opening command by driving the door to open and feeding back the door open status indicator, further includes: If the real-time distance measurement result is greater than a preset second distance threshold, a door closing command is sent to the door control device so that the door control device responds to the door closing command, closes the door and feeds back a door closing status indicator. Upon receiving the door closed status indicator, a locking command is sent to the lock control device so that the lock control device responds to the locking command, locks the door, and sends back the lock status indicator.
5. The control method according to claim 1, characterized in that, The door further includes a signal element that generates a sound signal, and after obtaining the intensity comparison result by comparing the first signal intensity and the second signal intensity, it further includes: When the first state identifier is the door closed state identifier, the second state identifier is the lock closed state identifier, and the strength comparison result is that the first signal strength is greater than the second signal strength, if the real-time ranging result remains unchanged for more than a preset time length, then the first alarm information is output through the signal element, and the control of the door control device and the lock control device is stopped.
6. The control method according to claim 2, characterized in that, Also includes: If the real-time ranging result is greater than a preset third distance threshold, and if the first status identifier is the door open status identifier or the second status identifier is the lock open status identifier, a first reminder message is sent to the UWB tag via the wireless communication connection.
7. A door control device, characterized in that, The door is equipped with a smart door lock and a door control device. The smart door lock includes a UWB anchor point, a lock control device, a first antenna, and a second antenna. The first antenna is located on the side facing the outside when the door is closed, and the second antenna is located on the side facing the inside when the door is closed. The first antenna and the second antenna are connected to the UWB anchor point. There is a communication link between the UWB anchor point, the lock control device, and the door control device. The control device is applied to a processor at the UWB anchor point, the processor being configured to execute the gate control method as described in any one of claims 1-6, the control device comprising: The status module is used to obtain a first status identifier fed back in real time by the door control device and a second status identifier fed back in real time by the lock control device, wherein the first status identifier represents the opening and closing status of the door, including a door open status identifier and a door closed status identifier, and the second status identifier represents the opening and closing status of the lock, including a lock open status identifier and a lock closed status identifier. The ranging module is used to establish a UWB connection with the UWB tag via wireless communication and to perform real-time UWB ranging based on the UWB connection to obtain real-time ranging results. The measurement module is used to measure the UWB signals received by the first antenna and the second antenna and transmitted by the UWB tag through the UWB connection, respectively, and obtain a first signal strength and a second signal strength; and obtain a strength comparison result by comparing the first signal strength and the second signal strength. The control module is configured to, based on the first state identifier, the second state identifier, and the intensity comparison result, send a corresponding first control command to the lock control device according to the current control mode so that the lock control device performs an unlocking or locking operation in response to the first control command, and send a corresponding second control command to the door control device so that the door control device performs an opening or closing operation in response to the second control command.
8. A door control system, characterized in that, The control system includes a smart door lock and a door control device. The smart door lock includes a UWB anchor point, a lock control device, a first antenna, and a second antenna. The first antenna is located on the side facing the outside when the door is closed, and the second antenna is located on the side facing the inside when the door is closed. The first antenna and the second antenna are connected to the UWB anchor point. A communication link exists between the UWB anchor point, the lock control device, and the door control device. The UWB anchor point is used to execute the door control method as described in any one of claims 1-6.