Interaction control method and system of intelligent door lock, electronic device and storage medium

CN123016557APending Publication Date: 2026-10-30SHENZHEN WAYTRONIC ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611499145.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-24
Publication Date
2026-10-30

AI Technical Summary

Technical Problem

[0004]基于此,有必要针对现有的智能门锁的交互控制问题,提出了一种智能门锁的交互控制方法、系统、电子设备及存储介质

Benefits of technology

[0015]本发明的有益效果:通过雷达侦测模块检测门外人体活动所处的距离分区,实现了对人员靠近意图的初步预判,在第一识别模式下,系统采集终端设备的蓝牙信号强度并持续检测人员距离分区,通过统计人员连续处于预设距离分区的次数来更新命中统计值,只有在命中统计值达到预设统计阈值时才切换至第二识别模式,确保了距离判断的稳定性,避免了因人员短暂进入预设分区或信号瞬时波动而频繁切换工作模式,减少了模式振荡带来的额外能量消耗。切换至第二识别模式后,由于第二采集时间窗口小于第一采集时间窗口,系统能够以更短的采集时间完成信号获取和位置判定,提高了近距场景下的响应速度。在此基础上,结合位置判定和身份校验的双重条件确认开锁意图,避免了在门内或人员未授权情况下的误开锁。综上,本申请在距离分区感知与模式自适应切换的协同作用下,实现了门锁功耗与响应速度的平衡优化。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123016557A_ABST
    Figure CN123016557A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of interactive control of intelligent door locks, and discloses an interactive control method and system of an intelligent door lock, an electronic device and a storage medium, wherein the method comprises the following steps: detecting a human body activity distance partition outside a door through a radar detection module, determining an access scene according to the partition and setting a working mode of a Bluetooth module; in different identification modes, using an outside-door antenna and an inside-door antenna to collect a Bluetooth signal strength difference value to determine a terminal position and perform identity verification; and controlling mode switching by counting a continuous hit number, and determining that a lock opening requirement is met only when the terminal is legal and located outside the door. The application can effectively reduce an invalid wake-up frequency, prolong a battery life and eliminate the safety hazard of indoor false unlocking.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of interactive control technology for smart door locks, and more particularly to an interactive control method, system, electronic device, and storage medium for smart door locks. Background Technology

[0002] In existing smart lock sensor-based unlocking solutions, Bluetooth modules typically employ continuous scanning or periodic wake-up methods, resulting in high static power consumption and making it difficult to meet the long battery life requirements of battery-powered locks. To reduce power consumption, some solutions introduce human body sensors as the wake-up source for the Bluetooth module. However, these solutions usually use fixed recognition parameters (such as fixed signal acquisition duration and fixed judgment thresholds) to determine the location and verify the identity of the terminal device after wake-up, and cannot dynamically adjust the recognition strategy based on the actual distance between the person and the lock.

[0003] When a person lingers in the mid-range area outside the door (e.g., to retrieve an item or wait), the system continues to operate with the same recognition parameters, resulting in unnecessary energy consumption. Conversely, when a person quickly approaches the close-range area, the system cannot promptly improve its recognition response speed, leading to unlocking delays and impacting user experience. Furthermore, in fixed recognition mode, non-unlocking intentions (e.g., passing by) in the mid-range area are treated the same as unlocking intentions in the close-range area, making it prone to false recognition or false wake-up due to occasional signal fluctuations. Summary of the Invention

[0004] Therefore, it is necessary to address the existing interactive control problem of smart locks by proposing an interactive control method, system, electronic device, and storage medium for smart locks.

[0005] An interactive control method for a smart door lock, wherein the smart door lock is equipped with a radar detection module, a Bluetooth module, an external antenna, and an internal antenna, the method comprising: The radar detection module detects the distance zones where human activity outside the door is located. The access scenario is determined based on the distance partition, and the working mode of the Bluetooth module is initially set according to the access scenario; wherein, the working mode includes sleep mode, first identification mode and second identification mode; In the first identification mode, the Bluetooth signal strength of the terminal device is collected by the external antenna and the internal antenna during the first acquisition time window. The location of the terminal device is determined based on the signal strength difference, and the identity of the terminal device is verified. During the execution of the first recognition mode, the distance zone where the human activity outside the door is located is continuously detected, and the number of times the distance zone where the human activity outside the door is located is continuously determined to be located in the preset distance zone is counted to update the hit statistics value. When the hit statistics value reaches the preset statistical threshold, the second recognition mode is switched. In the second identification mode, the Bluetooth signal strength of the terminal device is collected by the external antenna and the internal antenna of the door within a second collection time window. The location of the terminal device is determined based on the signal strength difference, and the identity of the terminal device is verified. The second collection time window is shorter than the first collection time window. When the terminal device passes identity verification and is determined to be outside the door, the unlocking requirements are met.

[0006] Further, the distance partitioning includes a long-range partition, a medium-range partition, and a short-range partition; the step of determining the access scenario based on the distance partitioning and initially setting the working mode of the Bluetooth module according to the access scenario includes: When the human activity is in the remote partition, the access scenario is determined to be a remote pre-triggered scenario, and the Bluetooth module is set to the sleep state; When the human activity is in the mid-range zone, the access scenario is determined to be a mid-range recognition scenario, and the Bluetooth module is woken up and set to the first recognition mode; When the human activity is in the near-field zone, the access scenario is determined to be a near-field unlocking scenario, and the Bluetooth module is activated and set to the second recognition mode.

[0007] Furthermore, the external antenna and the internal antenna are alternately switched on via a radio frequency switch; the step of acquiring the Bluetooth signal strength of the terminal device through the external antenna and the internal antenna within a first acquisition time window includes: The external antenna and the internal antenna are alternately switched using a radio frequency switch; The first signal strength value of the terminal device is collected on the antenna outside the door and the second signal strength value of the terminal device is collected on the antenna inside the door during the first acquisition time window.

[0008] Furthermore, the step of verifying the identity of the terminal device includes: The resolvable private address of the terminal device is parsed to extract the IRK key; The extracted IRK key is matched against the locally stored list of bound device IRKs; If a match is successful, the terminal device is confirmed as a legitimate device; if a match fails, the terminal device is confirmed as an illegitimate device.

[0009] Furthermore, the smart lock also includes a feedback device, and the method further includes: When the working mode is switched from the first recognition mode to the second recognition mode, the feedback device is controlled to output a first prompt signal; When it is determined that the unlocking requirements are met, the feedback device is controlled to output a second prompt signal; When it is determined that the unlocking requirements are not met, the feedback device is controlled to output a third prompt signal.

[0010] Furthermore, the step of statistically determining the number of times the distance zone of human activity outside the door is located within a preset distance zone, and updating the hit statistics, includes: Each time a human activity outside the door is detected to be located in the preset distance zone, the hit statistics value is incremented by 1; Each time the distance partition where the human activity is located is not located in the preset distance partition, the hit statistics value is cleared to zero or decremented by 1.

[0011] Furthermore, after the step of continuously detecting the distance zone where the human activity outside the door is located during the execution of the first recognition mode, and counting the number of times the distance zone where the human activity outside the door is located is continuously determined to be located in a preset distance zone, in order to update the hit statistics value, the method further includes: After each update of the hit statistics, the number of consecutive times the hit statistics are less than or equal to 0 is checked; When the number of consecutive operations reaches the preset number of consecutive operations, the working mode is set to the sleep state.

[0012] An interactive control system for a smart door lock, the smart door lock being equipped with a radar detection module, a Bluetooth module, an external antenna, and an internal antenna, the system comprising: The detection module is used to detect the distance zone where human activity outside the door is located through the radar detection module; The setting module is used to determine the access scenario based on the distance partition and to initially set the working mode of the Bluetooth module according to the access scenario; wherein, the working mode includes sleep mode, first identification mode and second identification mode; The first acquisition module is used to acquire the Bluetooth signal strength of the terminal device through the door external antenna and the door internal antenna in the first identification mode within a first acquisition time window, determine the location of the terminal device based on the signal strength difference, and perform identity verification on the terminal device. The switching module is used to continuously detect the distance zone where the human activity outside the door is located during the execution of the first recognition mode, and count the number of times the distance zone where the human activity outside the door is located is located in a preset distance zone, so as to update the hit statistics value. When the hit statistics value reaches a preset statistical threshold, the module switches to the second recognition mode. The second acquisition module is used to acquire the Bluetooth signal strength of the terminal device through the external antenna and the internal antenna in the second identification mode within a second acquisition time window, determine the location of the terminal device based on the signal strength difference, and perform identity verification on the terminal device; wherein the second acquisition time window is shorter than the first acquisition time window; The determination module is used to determine that the unlocking requirements are met when the terminal device passes identity verification and is determined to be outside the door.

[0013] An electronic device includes a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the following steps: The radar detection module detects the distance zones where human activity outside the door is located. The access scenario is determined based on the distance partition, and the working mode of the Bluetooth module is initially set according to the access scenario; wherein, the working mode includes sleep mode, first identification mode and second identification mode; In the first identification mode, the Bluetooth signal strength of the terminal device is collected by the external antenna and the internal antenna during the first acquisition time window. The location of the terminal device is determined based on the signal strength difference, and the identity of the terminal device is verified. During the execution of the first recognition mode, the distance zone where the human activity outside the door is located is continuously detected, and the number of times the distance zone where the human activity outside the door is located is continuously determined to be located in the preset distance zone is counted to update the hit statistics value. When the hit statistics value reaches the preset statistical threshold, the second recognition mode is switched. In the second identification mode, the Bluetooth signal strength of the terminal device is collected by the external antenna and the internal antenna of the door within a second collection time window. The location of the terminal device is determined based on the signal strength difference, and the identity of the terminal device is verified. The second collection time window is shorter than the first collection time window. When the terminal device passes identity verification and is determined to be outside the door, the unlocking requirements are met.

[0014] A computer-readable storage medium storing a computer program, which, when executed by a processor, causes the processor to perform the following steps: The radar detection module detects the distance zones where human activity outside the door is located. The access scenario is determined based on the distance partition, and the working mode of the Bluetooth module is initially set according to the access scenario; wherein, the working mode includes sleep mode, first identification mode and second identification mode; In the first identification mode, the Bluetooth signal strength of the terminal device is collected by the external antenna and the internal antenna during the first acquisition time window. The location of the terminal device is determined based on the signal strength difference, and the identity of the terminal device is verified. During the execution of the first recognition mode, the distance zone where the human activity outside the door is located is continuously detected, and the number of times the distance zone where the human activity outside the door is located is continuously determined to be located in the preset distance zone is counted to update the hit statistics value. When the hit statistics value reaches the preset statistical threshold, the second recognition mode is switched. In the second identification mode, the Bluetooth signal strength of the terminal device is collected by the external antenna and the internal antenna of the door within a second collection time window. The location of the terminal device is determined based on the signal strength difference, and the identity of the terminal device is verified. The second collection time window is shorter than the first collection time window. When the terminal device passes identity verification and is determined to be outside the door, the unlocking requirements are met.

[0015] The beneficial effects of this invention are as follows: By detecting the distance zones of human activity outside the door using a radar detection module, a preliminary prediction of the person's approach intention is achieved. In the first recognition mode, the system collects the Bluetooth signal strength of the terminal device and continuously detects the distance zones of the person. The hit statistics are updated by counting the number of times the person is continuously in a preset distance zone. Only when the hit statistics reach a preset statistical threshold is the system switched to the second recognition mode, ensuring the stability of distance judgment and avoiding frequent switching of working modes due to the person briefly entering the preset zone or instantaneous signal fluctuations, thus reducing the additional energy consumption caused by mode oscillation. After switching to the second recognition mode, since the second acquisition time window is shorter than the first acquisition time window, the system can complete signal acquisition and location determination in a shorter acquisition time, improving the response speed in close-range scenarios. On this basis, the unlocking intention is confirmed by combining the dual conditions of location determination and identity verification, avoiding accidental unlocking from inside the door or when the person is unauthorized. In summary, this application achieves a balanced optimization of door lock power consumption and response speed through the synergistic effect of distance zone perception and adaptive mode switching. Attached Figure Description

[0016] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0017] in: Figure 1This is an application environment diagram of the interactive control method for a smart door lock in one embodiment; Figure 2 This is a flowchart of an interactive control method for a smart door lock in one embodiment; Figure 3 This is a structural block diagram of the interactive control system of a smart door lock in one embodiment; Figure 4 This is a structural block diagram of an electronic device in one embodiment. Detailed Implementation

[0018] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0019] Figure 1 This is an application environment diagram of the interactive control method for a smart door lock in one embodiment. (Refer to...) Figure 1 The interactive control method of this smart door lock is applied to the interactive control system of the smart door lock, which includes a door body 110, a smart door lock 120, and a terminal 130. The smart door lock 120 is installed on the door body 110, which physically separates the indoor and outdoor spaces. The smart door lock 120 is equipped with a radar detection module, a Bluetooth module, a radio frequency switch, an external antenna, an internal antenna, and feedback devices (such as indicator lights, speakers, or displays). The external antenna is located on the outdoor side of the door body 110, and the internal antenna is located on the indoor side of the door body 110. The external and internal antennas are naturally radio frequency isolated by the metal structure of the door body 110. The terminal 130 is carried by a user located outside or inside the door body 110. The terminal 130 is a legitimate terminal device that has been paired with the smart door lock 120 via Bluetooth, specifically a mobile phone, tablet, smart bracelet, or other portable electronic device that supports Bluetooth communication. When a user carrying terminal 130 moves outside the door 110, the smart lock 120 detects the user's location within a distance zone using a radar detection module. Based on these different distance zones, the lock adaptively switches the Bluetooth module's operating mode. It collects the Bluetooth signal strength of terminal 130 using both external and internal antennas, determining whether terminal 130 is outside or inside the door based on the signal strength difference. Combining this with the identity verification result, the lock controls whether to perform an unlocking operation, thus achieving low-power, high-security smart lock control. Terminal 130 can be at least one of a mobile phone, tablet, or laptop.

[0020] like Figure 2As shown, in one embodiment, an interactive control method for a smart door lock is provided. The smart door lock is equipped with a radar detection module, a Bluetooth module, an external antenna, and an internal antenna. The interactive control method for the smart door lock specifically includes the following steps: S1: The radar detection module detects the distance zones where human activity outside the door is located; S2: Determine the access scenario based on the distance partition, and initially set the working mode of the Bluetooth module according to the access scenario; wherein, the working mode includes sleep state, first identification mode and second identification mode; S3: In the first identification mode, the Bluetooth signal strength of the terminal device is collected through the external antenna and the internal antenna of the door in the first collection time window. The location of the terminal device is determined according to the signal strength difference, and the identity of the terminal device is verified. S4: During the execution of the first recognition mode, the distance zone where the human activity outside the door is located is continuously detected, and the number of times the distance zone where the human activity outside the door is located is continuously determined to be located in the preset distance zone is counted to update the hit statistics value. When the hit statistics value reaches the preset statistics threshold, the second recognition mode is switched. S5: In the second identification mode, the Bluetooth signal strength of the terminal device is collected through the external antenna and the internal antenna of the door in a second collection time window. The location of the terminal device is determined according to the signal strength difference, and the identity of the terminal device is verified. The second collection time window is shorter than the first collection time window. S6: When the terminal device passes the identity verification and is determined to be outside the door, the unlocking requirements are met.

[0021] As described in step S1 above, the distance zones of human activity outside the door are detected by the radar detection module. The smart lock integrates a radar detection module, a Bluetooth module, an external antenna, and an internal antenna. The radar detection module, as an environmental sensing component, continuously scans the area outside the door using microwave or millimeter-wave signals. This module emits electromagnetic waves and receives the echoes reflected from human activity, calculating the distance parameters of the reflecting target using the Doppler effect or time-of-flight method. The space outside the door is divided radially into multiple continuous distance intervals, each representing a specific distance zone, such as long-range, medium-range, and short-range zones. Based on the calculated distance values, the radar detection module maps the currently detected human activity to the corresponding distance zone. This zone detection mechanism allows users to roughly judge the positional trend of a human body relative to the door lock, providing input for subsequent refined control and improving the accuracy of the system's environmental perception.

[0022] As described in step S2 above, the access scenario is determined based on the distance partition, and the Bluetooth module's operating mode is initially set according to the access scenario. Based on the distance partition determined by the radar detection module, the system further analyzes the current access scenario. The access scenario reflects the potential stages of the user's intention to interact with the door lock, such as approaching from a distance, hovering at a medium distance to prepare to unlock at close range. The Bluetooth module's operating mode is directly controlled by the access scenario determination result, mainly including sleep mode, first identification mode, and second identification mode. In sleep mode, the Bluetooth module disables radio frequency transmission and reception to maintain minimum power consumption; in the first identification mode, the Bluetooth module collects signals at a lower frequency or a wider time window, mainly for preliminary confirmation of the device's presence; in the second identification mode, the Bluetooth module increases the collection frequency and shortens the response time for final confirmation before unlocking. By dynamically adjusting the Bluetooth module's operating mode according to the distance partition, users can enjoy extremely low power standby when no one is approaching, and timely response is achieved when someone approaches, improving the system's energy efficiency balance capability.

[0023] As described in step S3 above, in the first identification mode, the Bluetooth signal strength of the terminal device is collected through the external antenna and the internal antenna within a first acquisition time window. The location of the terminal device is determined based on the signal strength difference, and the identity of the terminal device is verified. When the Bluetooth module enters the first identification mode, the system initiates the signal acquisition and identity verification process for the terminal device. The smart door lock has external and internal antennas arranged on both sides of the door. This layout utilizes the radio frequency isolation effect of the metal door panel on the Bluetooth signal, resulting in a significant difference in signal strength between the inside and outside of the door. Within the first acquisition time window, the system alternately activates the external and internal antennas by controlling the radio frequency switch or time-division multiplexing mechanism to collect the Bluetooth signal strength broadcast by the terminal device. The duration of the first acquisition time window can be set to, for example, 1 to 3 seconds to cover multiple Bluetooth broadcast cycles and ensure that valid signal samples are collected. After acquiring the signal strength, the system calculates the difference between the signal strength collected by the external antenna and the signal strength collected by the internal antenna. Due to the shielding effect of the door panel, when the terminal device is outside the door, the signal strength received by the antenna outside the door will be significantly higher than that of the antenna inside the door, with a large and positive signal strength difference. Conversely, when the terminal device is inside the door, the signal strength difference will be negative or close to zero. By comparing this signal strength difference with a preset threshold, it is possible to accurately determine whether the terminal device is outside or inside the door. By utilizing the signal strength difference between the antennas outside and inside the door, users can accurately determine the physical location of the terminal device, solving the problem of distinguishing between inside and outside the door and improving the reliability of location determination.

[0024] As described in step S4 above, during the execution of the first recognition mode, the system continuously detects the distance zone where human activity outside the door is located and counts the number of times the distance zone where human activity outside the door is located is continuously determined to be within a preset distance zone, thereby updating the hit statistics. When the hit statistics reach a preset statistical threshold, the system switches to the second recognition mode. During the operation of the first recognition mode, the system does not stop radar detection of the external environment but continuously monitors changes in the distance zone where human activity is located. To prevent misjudgments caused by radar signal fluctuations, the system introduces a hit statistics mechanism to count the number of times the distance zone where human activity outside the door is located is continuously determined to be within a preset distance zone, thereby updating the hit statistics (i.e., a cumulative count variable used to quantify the stability of a human body continuously staying within a preset distance zone). The preset distance zone is a pre-defined key area used to trigger mode upgrades, usually corresponding to the area near the door lock. The system counts the number of times the distance zone where human activity outside the door is located is continuously determined to be within a preset distance zone (e.g., a near-distance zone, or a combination of a mid-distance zone and a near-distance zone), and this count is the hit statistics. The specific update logic could be as follows: whenever the current distance zone is detected to be within a preset distance zone, the hit count is incremented by 1; and whenever the current distance zone is detected to be outside the preset distance zone, the hit count is reset to zero or decremented by 1. This accumulation or reset mechanism ensures that mode switching is only triggered when a person remains stably within the preset distance zone, thus filtering out false triggers caused by pedestrians briefly passing by or interference signals. The preset statistical threshold is the threshold for triggering mode switching, and its value can be set according to the actual application scenario's requirements for response speed and anti-interference capability, with a range of, for example, 3 to 10 times. When the hit count reaches the preset statistical threshold, it indicates that the user has a clear intention to approach and has stably entered a high-attention area. At this time, the system controls the Bluetooth module to switch from the first recognition mode to the second recognition mode, preparing for high-precision unlocking judgment. By introducing the hit count mechanism and the preset statistical threshold, users can filter out false triggers caused by pedestrians briefly passing by or interference signals, achieving accurate mode switching and reducing the probability of the Bluetooth module being frequently woken up.

[0025] As described in step S5 above, in the second identification mode, the Bluetooth signal strength of the terminal device is collected through the external antenna and the internal antenna within a second collection time window. The location of the terminal device is determined based on the signal strength difference, and the identity of the terminal device is verified. The second collection time window is shorter than the first collection time window. Upon entering the second identification mode, the system further accelerates the pace of signal acquisition and processing. At this time, the Bluetooth signal strength of the terminal device is collected through the external antenna and the internal antenna within a second collection time window. The second collection time window is designed to be shorter than the first collection time window, for example, it can be set to 200 milliseconds to 500 milliseconds, to significantly shorten the time consumed in a single detection and improve the real-time response speed of the system. In this mode, the system still determines the location of the terminal device based on the signal strength difference collected by the external antenna and the internal antenna, and performs the same identity verification process as described above. Since the second identification mode is typically applied to scenarios where the user is very close to the door lock, shortening the collection time window allows for rapid reconfirmation of identity and location the moment the user reaches the door lock, thereby achieving a seamless unlocking user experience. By setting a second collection time window that is shorter than the first collection time window, users can quickly complete the confirmation the moment they arrive at the door lock, achieving a seamless unlocking user experience and improving the system's real-time response speed.

[0026] As described in step S6 above, when the terminal device passes identity verification and is determined to be outside the door, the unlocking requirements are met. The unlocking requirement is determined based on an AND logic relationship, meaning that both legitimate identity and being outside the door must be satisfied simultaneously. When the system confirms that the terminal device's identity verification is successful in the second identification mode (or the first identification mode, depending on the specific triggering logic), and determines that the terminal device is outside the door based on the signal strength difference, the unlocking requirements are finally met. At this time, the smart lock's actuator will be activated to complete the unlocking action. If any of the above conditions are not met, such as identity verification failure or the terminal device being determined to be inside the door, the unlocking requirements are not met, and the lock remains locked. This dual verification mechanism ensures the security and accuracy of the unlocking operation, completely eliminating the risk of legitimate indoor devices accidentally opening the lock. By determining that the unlocking requirements are met through the dual verification mechanism, users can ensure the security and accuracy of the unlocking operation, completely eliminating the risk of legitimate indoor devices accidentally opening the lock, and improving the security level of the smart lock.

[0027] The radar detection module detects distance zones to initially screen and classify user approach intentions, avoiding the Bluetooth module's prolonged ineffective operation and thus reducing overall system power consumption. Based on the radar classification results, the Bluetooth module dynamically switches between sleep, first recognition mode, and second recognition mode, matching different acquisition strategies at different stages to balance standby power saving and response speed. The combination of external and internal antennas utilizes physical shielding effects to accurately determine the location of terminal devices through signal strength differences, solving the problem of not being able to distinguish between inside and outside the door based solely on signal strength. An identity verification mechanism ensures the legitimacy of the communication object, forming a double security defense when combined with location determination. Ultimately, all links are tightly integrated, triggering unlocking only when a legitimate user is actually outside the door, effectively improving the security level and user experience of the smart lock.

[0028] In one embodiment, the distance partitioning includes a long-range partition, a medium-range partition, and a short-range partition; step S2, which determines the access scenario based on the distance partitioning and initially sets the operating mode of the Bluetooth module according to the access scenario, includes: S201: When the human activity is in the remote partition, the access scenario is determined to be a remote pre-triggered scenario, and the Bluetooth module is set to the sleep state; S202: When the human activity is in the mid-range zone, the access scenario is determined to be a mid-range recognition scenario, and the Bluetooth module is woken up and set to the first recognition mode; S203: When the human activity is in the near-field zone, the access scenario is determined to be a near-field unlocking scenario, and the Bluetooth module is woken up and set to the second recognition mode.

[0029] As described in steps S201-S203 above, the distance partitioning includes a long-range partition, a medium-range partition, and a short-range partition. Based on the signal echo time or phase difference collected by the radar detection module, a detection distance interval is calculated. This interval is used to characterize the spatial distribution of the target human body outside the door relative to the smart door lock. The detection distance interval is divided into a long-range partition, a medium-range partition, and a short-range partition, which constitute a continuous and non-overlapping detection range hierarchy. Specifically, the long-range partition can be set as an area greater than 3 meters, designed to capture targets slowly approaching from a distance; the medium-range partition can be set as a ring-shaped area between 2 and 3 meters, used to identify the user's explicit approach intention; and the short-range partition can be set as a close-range area within 2 meters, used to confirm that the user has entered the operating range. The above three-layer partitioning structure quantifies continuous distance detection data into state intervals with clear business meaning, laying the physical foundation for subsequent implementation of differentiated control strategies. By setting long-range, medium-range, and short-range partitions, users can distinguish access intentions at different distances, realizing the quantification and grading of detection data and improving the targeting of control strategies.

[0030] When human activity is detected in a distant zone, the access scenario is determined to be a distant pre-triggered scenario, and the Bluetooth module is set to sleep mode. When human activity is detected in a distant zone, given the target's distance, the possibility of non-access behaviors such as passing by or loitering is high. In this case, the current access scenario is determined to be a distant pre-triggered scenario. In this scenario, the system mainly performs monitoring actions without triggering high-frequency interactions, keeping the Bluetooth module in sleep mode. Sleep mode can refer to the lowest power consumption state where the Bluetooth module shuts down its RF front-end and stops scanning. By keeping the Bluetooth module in sleep mode during the distant phase, users can avoid waking up Bluetooth for unnecessary signal scanning and analysis due to invalid interference signals such as passing pedestrians or activity in neighboring rooms. This significantly reduces the average current consumption of the smart lock in standby mode, ensuring the long-term battery life of battery-powered devices.

[0031] When human activity is within the mid-range zone, the access scenario is determined to be a mid-range recognition scenario, and the Bluetooth module is activated and set to the first recognition mode. When human activity moves from the far-range zone into the mid-range zone, it indicates that the user has shown a clear tendency to approach, and the access scenario immediately switches to the mid-range recognition scenario. At this time, a wake-up signal is output to the Bluetooth module, configuring it to the first recognition mode. The first recognition mode is a low-power operating mode used to initially confirm the presence of the terminal device. In this mode, the Bluetooth module initiates signal interaction but maintains a relatively low sampling frequency or data processing depth. By utilizing the delay of the user moving from the mid-range zone to the near-range zone, the system pre-establishes a handshake connection with the terminal device or performs preliminary identity filtering, reserving necessary processing time for subsequent rapid unlocking operations, effectively reducing the user's waiting experience at the door. By activating the Bluetooth module during the mid-range stage, the user can obtain preliminary device confirmation, realizing the reservation of processing time and improving the timeliness of unlocking.

[0032] When human activity is within the near-field zone, the access scenario is determined to be a near-field unlocking scenario, and the Bluetooth module is activated and set to the second recognition mode. Detecting human activity entering the near-field zone indicates that the user has arrived at the door and has a very high intent to unlock, and the access scenario is updated to a near-field unlocking scenario. For this scenario, the Bluetooth module is immediately controlled to enter the second recognition mode. Compared to the first recognition mode, the second recognition mode has a higher signal acquisition frequency and more precise data processing logic, aiming to complete the final verification of the terminal device's identity and accurate location determination in a very short time. By setting up a high-recognition mode specifically for near-field scenarios, users can obtain a rapid response even in the briefest pause, achieving the real-time requirement of a seamless unlocking experience, while avoiding the risk of misjudging location at greater distances, thus achieving a balance between security and convenience.

[0033] Furthermore, the radar detection module is also used to detect the movement speed of the human body. When the human body is detected to cross the far-range zone and enter the medium-range zone within a unit of time, and the movement speed exceeds a preset speed threshold, it is determined to be an emergency approach scenario, and the Bluetooth module is directly woken up and set to the second recognition mode.

[0034] In one embodiment, the external antenna and the internal antenna are alternately switched on via a radio frequency switch; step S3, which involves acquiring the Bluetooth signal strength of the terminal device through the external antenna and the internal antenna within a first acquisition time window, includes: S301: Alternately switch the external antenna and the internal antenna using a radio frequency switch; S302: Acquire the first signal strength value of the terminal device on the antenna outside the door and the second signal strength value of the terminal device on the antenna inside the door, respectively, within the first acquisition time window.

[0035] As described in steps S301-S302 above, the system alternately switches between the external antenna and the internal antenna via an RF switch. The first signal strength value of the terminal device is acquired on the external antenna, and the second signal strength value is acquired on the internal antenna. To address the hardware limitation that a single low-power Bluetooth master control chip can only have a single RF interface and cannot simultaneously connect to both the external and internal antennas, an RF switch is introduced into the system architecture to expand the RF path. This RF switch adopts a single-pole double-throw structure, with its common terminal connected to the RF transceiver pin of the Bluetooth master control chip, and its two independent branches connected to the external and internal antennas respectively. During signal acquisition, a high-low level switching signal is sent to the control pin of the RF switch, driving its internal channel to alternately conduct at high frequency between the external and internal antennas. Utilizing the microsecond-level fast switching characteristic of the RF switch, the selection of the two antennas is completed within a very short time slice, achieving time-division multiplexing scanning of the RF environment on both sides of the door. The specific switching logic is as follows: First, the RF switch is controlled to activate the external antenna branch, maintaining it for a preset duration to receive the wireless signal from that side; then, the external antenna branch is deactivated and the internal antenna branch is activated, maintaining the same or different preset durations to receive the wireless signal from that side; this process is repeated. Through this dynamic switching mechanism, the single-chip system can acquire signal data from two different physical spaces inside and outside the door without increasing additional hardware costs. During the process of the RF switch switching channels according to the above alternating logic, the signal strength indicators of Bluetooth broadcast packets or connection packets sent by the terminal device are captured and analyzed in real time. When the RF switch is in the external antenna activation state, the RF link is monitored, the Received Signal Strength Indicator (RSSI) corresponding to the Bluetooth signal received from the terminal device at the current moment is extracted, and it is recorded as the first signal strength value. This first signal strength value characterizes the degree of RF attenuation of the terminal device relative to the external antenna. When the RF switch switches to the internal antenna activation state, the same signal monitoring and analysis operation is performed, the RSSI of the same terminal device received under this link is extracted, and it is recorded as the second signal strength value. The second signal strength value characterizes the degree of radio frequency attenuation of the terminal device relative to the antenna inside the door. Given that smart door locks are typically installed on metal door panels, the metal material has a significant physical isolation effect on radio frequency signals (e.g., it can cause signal attenuation of 15dB to 25dB). Therefore, if the terminal device is located outside the door, the first signal strength value will be significantly greater than the second signal strength value; conversely, if the terminal device is located inside the door, the second signal strength value will be significantly greater than the first signal strength value. By collecting the aforementioned first and second signal strength values ​​respectively, a key data foundation for determining the physical location of the terminal device is constructed. This data difference directly characterizes the spatial orientation of the device relative to the door panel.By alternating the switching of the radio frequency switch and acquiring signals with dual antennas, users can acquire signals from both spatial locations with a single chip, thereby saving hardware costs and improving the system's integration.

[0036] In one embodiment, step S5, which verifies the identity of the terminal device, includes: S501: Parse the resolvable private address of the terminal device and extract the IRK key; S502: Match the extracted IRK key with the locally stored list of bound device IRKs; S503: If the match is successful, the terminal device is confirmed as a legitimate device; if the match fails, the terminal device is confirmed as an illegitimate device.

[0037] As described in steps S501-S503 above, the resolvable private address of the terminal device is parsed to extract the IRK key; the extracted IRK (Identity Resolving Key) key is matched with the locally stored list of bound device IRKs; if the match is successful, the terminal device is confirmed as a legitimate device; if the match fails, the terminal device is confirmed as an illegitimate device. Identity verification is performed based on the encryption mechanism of the Bluetooth Low Energy protocol. The terminal device (e.g., a user's smartphone) sends Bluetooth data packets containing address information during broadcasting. In the core specifications of Bluetooth 4.2 and above, to protect user privacy, devices typically use private addresses instead of the actual hardware MAC address for broadcasting. Private addresses include random private addresses and resolvable private addresses; this embodiment mainly focuses on processing resolvable private addresses. A resolvable private address is not completely random gibberish, but a pseudo-random sequence generated using a specific hash function and key. The data packets broadcast by the terminal device are received by the current antenna selected by the RF switch, and processed by the RF front-end of the Bluetooth chip to parse the address field. If the address type is determined to be a resolvable private address, the address is decrypted using a locally preset parsing algorithm. This operation aims to attempt to restore and verify the random and hash portions of a resolvable private address using a candidate Identity Resolving Key (IRK). If the calculation results match, the candidate key is determined to be the correct key for generating the address. Therefore, the process of extracting the IRK key is essentially the process of determining a valid IRK capable of resolving a known resolvable private address. The IRK is a long-term key, 128 bits long, generated during the Bluetooth pairing phase after the terminal device and this application (smart door lock) undergo secure negotiation. The uniqueness and confidentiality of the IRK form the basis of identity verification security; it does not change with device broadcasts and is not as easily forged or randomized as a MAC address. After obtaining the IRK key confirmed in the aforementioned steps, it is compared with locally stored legitimate benchmark data to determine whether the currently accessed device is an authorized device. The locally stored list of bound device IRKs is established and persistently stored when the user first registers door lock permissions. The formation process of this list is as follows: During system initialization or pairing mode, a shared key is exchanged and generated by executing the standard BLE (Bluetooth Low Energy) secure connection protocol with a legitimate terminal device. The generated IRK is then associated and stored in non-volatile memory, forming a list structure containing the correspondence between device names and IRKs. The list of bound device IRKs is retrieved, and each pre-stored legitimate IRK entry in the list is traversed. The currently extracted IRK is compared with each entry one by one. The comparison logic can be direct numerical comparison or identity resolution verification based on cryptographic primitives.If a matching entry exists in the list, it indicates that the currently accessing terminal device is a legitimate device that has been successfully bound before. If no match is found after traversing the entire list, it indicates that the device is unauthorized. Based on the comparison results of the above matching steps, the legitimacy of the terminal device is finally determined. When the matching result shows that the extracted IRK exists in the list of bound device IRKs, the match is considered successful, thus confirming the terminal device as a legitimate device. At this point, the identity verification process passes, allowing the device to participate in subsequent location determination or unlocking logic processes. If the matching result shows that the extracted IRK does not match any entries in the list of bound device IRKs, the match is considered unsuccessful, thus confirming the terminal device as an illegitimate device. For terminal devices confirmed as illegitimate, the subsequent unlocking interaction process is terminated, and automatic unlocking commands are refused, effectively preventing unauthorized intrusion by unauthorized devices. Through this IRK-based deep verification mechanism, users can break free from the reliance on traditional MAC address whitelists, overcoming the identification failure problem caused by the frequent randomization of MAC addresses by modern smartphones, significantly improving the security and robustness of smart locks in complex wireless environments.

[0038] While determining location, the system verifies the identity of the terminal device. This process can be, for example, parsing the Resolvable Private Address (RPA) in the Bluetooth broadcast packet sent by the terminal device and attempting to reconstruct its true identity using a locally stored Identity Resolving Key (IRK); or, directly extracting the encrypted device identification information carried in the broadcast packet and comparing it with a local whitelist. If the extracted IRK key or device identification matches any record in the locally stored list of bound devices, the terminal device is confirmed as legitimate, allowing the continuation of the subsequent process; if the match fails, it is confirmed as an illegitimate device, and the unlocking process is terminated. By combining location determination and identity verification, users can effectively prevent unauthorized unlocking attempts, avoiding accidental unlocking when a legitimate device is inside the door, thus improving system security.

[0039] In one embodiment, the smart lock further includes a feedback device, and the method further includes: S11: When the working mode is switched from the first recognition mode to the second recognition mode, the feedback device is controlled to output a first prompt signal; S12: When it is determined that the unlocking requirements are met, control the feedback device to output a second prompt signal; S13: When it is determined that the unlocking requirements are not met, the feedback device is controlled to output a third prompt signal.

[0040] As described in steps S11-S13 above, when the working mode switches from the first recognition mode to the second recognition mode, the control feedback device outputs a first prompt signal; when it is determined that the unlocking requirements are met, the control feedback device outputs a second prompt signal; when it is determined that the unlocking requirements are not met, the control feedback device outputs a third prompt signal. The feedback device, as a key hardware interface for state interaction between the smart lock and the user, is used to convert the implicit logical state within the system into physical signals that the user can directly perceive. In terms of hardware implementation, the feedback device is not a single component, but can integrate a combination of various actuators such as a buzzer, LED (Light Emitting Diode) indicator, voice broadcast module, or vibration motor, or select one of them as the primary feedback method. At the software control level, the feedback device is configured to receive state change commands from the processor and trigger corresponding physical actions according to a pre-set driving strategy. For example, in the scenario of switching from the first recognition mode to the second recognition mode, if the system determines that human activity has moved from a long-range or medium-range area to a near-range unlocking area, the Bluetooth module's acquisition frequency will increase. At this time, outputting the first prompt signal aims to convey to the user the immediate information that the system has entered a high-precision recognition stage. The first prompt signal could be a change in the indicator light color (e.g., switching from a blue breathing light to a flashing green light), a specific rhythmic beep from the buzzer, or a voice module announcing "verifying." This prompt allows the user to perceive that the system has responded to their approach, thus establishing psychological confirmation of the expected operation. When the system determines that the terminal device has passed identity verification and is outside the door, it means that the three core conditions mentioned above—radar detection, identity verification, and position differential determination—have been met, and the actuator will retract the bolt. At this moment, the control feedback device outputs a second prompt signal to clearly inform the user that the unlocking action has been performed. The second prompt signal corresponds to the final successful state of the unlocking process and is a manifestation of the positive feedback mechanism. For example, the second prompt signal could be a solid green indicator light, a long "beep" sound, or the display of "unlocked" and a smiley face icon on a door lock with a display screen. This signal not only confirms the user's successful operation but also provides a state confirmation at the security level, letting the user know that the door lock opening was triggered by a proper system process, rather than a mechanical malfunction or illegal opening. This instant feedback effectively eliminates the uncertainty users experience while waiting for the door to unlock after approaching it, optimizing the user experience of seamless door opening. Situations where unlocking requirements are not met may include: the terminal device failing IRK (Identity Resolving Key) verification, the signal strength difference not reaching the threshold for external detection, or failure to complete effective identification within the time limit specified in the operating mode. In such cases, a third prompt signal is output to clearly convey to the user that the unlocking request has been rejected and to prompt the user to check.The third prompt signal corresponds to the state where the unlocking process is terminated or rejected, and is mainly used to indicate the reason for the abnormality or failure. For example, the third prompt signal can be a flashing red indicator light, a continuous rapid alarm sound, or a voice broadcast "Recognition failed, please try again." By distinguishing the manifestation of the second and third prompt signals, users can intuitively distinguish between success and failure states, thus enabling them to quickly troubleshoot problems when encountering unlocking failures (such as checking whether the phone's Bluetooth is turned on, or whether they accidentally touched the door while inside), avoiding repeated attempts or anxiety caused by the system's lack of response. By outputting differentiated prompt signals through the feedback device, users can monitor the operating status of the smart lock in real time, improving the ease of use and user-friendliness of the device, and enhancing users' trust in the system's reliability.

[0041] In one embodiment, step S4, which involves statistically determining the number of times the distance zone of human activity outside the door is located within a preset distance zone to update the hit statistics, includes: S401: Each time the distance zone where human activity outside the door is detected is located within the preset distance zone, the hit statistics value is incremented by 1; S402: Each time the distance partition where the human activity is located is not located in the preset distance partition, the hit statistics value is cleared to zero or decreased by 1.

[0042] As described in steps S401-S402 above, each time the distance zone where human activity is detected outside the door is within a preset distance zone, the hit statistics value is incremented by 1; each time the distance zone where human activity is detected is not within the preset distance zone, the hit statistics value is cleared or decremented by 1. The preset distance zone is a specific target area set based on the detection range of the radar detection module, such as the near-range zone in the above embodiment. The hit statistics value serves as a cumulative count variable characterizing the stability of a human body continuously staying within the target area, and its value is dynamically adjusted according to the detection results. When the real-time data fed back by the radar detection module indicates that the current human activity falls within the range of the preset distance zone, the value of the hit statistics value is incremented by 1. This accumulation process can be performed according to a fixed sampling period, for example, sampling radar data once every 100 milliseconds. If multiple consecutive sampling results are all within the near-range zone, the hit statistics value is continuously accumulated, thereby quantifying the persistence of the user's approach intention. When human activity deviates from the preset distance zone, such as a user briefly passing by without stopping or showing a tendency to move away, the hit statistics need to be corrected to avoid momentary interference or accidental approaching behavior causing the system to misjudge it as a valid access intent. Specific correction strategies include two options: The first is to directly reset the hit statistics to zero, meaning that once a deviation is detected, the accumulated value is immediately reset, requiring the user to restart continuous hit accumulation before triggering mode switching. This method has the strongest anti-interference capability. The second is to decrement the hit statistics by 1, allowing for a certain degree of error tolerance. The counter only resets to zero when the number of deviations or the duration exceeds the accumulated hit count. This method is suitable for scenarios where the boundaries of human activity are relatively unclear or where radar detection has slight fluctuations. Through this statistical update mechanism, the switch from the first recognition mode to the second recognition mode is only triggered when the hit statistics reach the preset statistical threshold, effectively filtering out unintentional passing or brief stays by non-target users, ensuring the accuracy of mode switching, and reducing the probability of the Bluetooth module being frequently woken up. By dynamically updating the hit statistics, the persistence of user approach intent can be quantitatively reflected, thereby enhancing the anti-interference capability and improving the robustness of the system's judgment.

[0043] In one embodiment, after step S4, which involves continuously detecting the distance zone where human activity outside the door is located during the execution of the first recognition mode and counting the number of times the distance zone where human activity outside the door is located is continuously determined to be located in a preset distance zone, in order to update the hit statistics, the method further includes: S511: After each update of the hit statistics, detect the number of times the hit statistics are less than or equal to 0. S512: When the number of consecutive operations reaches the preset number of consecutive operations, the working mode is set to the sleep state.

[0044] As described in steps S511-S512 above, after each update of the hit statistics, the system checks the number of consecutive occurrences where the hit statistics are less than or equal to 0. When the number of consecutive occurrences reaches a preset number, the system sets the working mode to sleep mode. A hit statistics value less than or equal to 0 indicates that there is no continuous valid human activity in the current detection area outside the door, or that the active object has moved far away from the preset distance zone. To avoid frequent false triggers caused by fluctuations in the statistics value near the threshold due to momentary interference, the system introduces a buffer mechanism. It makes a comprehensive judgment by counting the number of consecutive occurrences of this state, rather than relying solely on a single detection result. During the real-time update of the hit statistics, if a value less than or equal to 0 is detected, the current number of consecutive occurrences is incremented; if a value greater than 0 is detected, the number of consecutive occurrences is reset to zero or the current count remains unchanged. The specific logic depends on the system's configuration strategy for backoff sensitivity. For example, after each hit statistics update operation is completed, it is immediately determined whether the value meets the condition of being less than or equal to 0; if the condition is met, the recorded number of consecutive misses is incremented by 1; if the condition is not met, the number of consecutive misses is reset to 0. A preset duration count serves as a time threshold for defining whether a user has completely left or has no intention to access the door. Its setting is based on factors including the shortest time required for a user to walk away from the nearby area, the door lock's response sensitivity requirements, and power consumption control strategies. When the cumulative duration count obtained in the steps reaches the preset duration count (e.g., 6 times), it indicates that no valid proximity signal has been detected in the target area outside the door within multiple consecutive detection cycles. Based on this, the system determines that there is currently no potential need for automatic unlocking, and thus terminates the high-power operation of the Bluetooth module to save energy. By sending a control command, the Bluetooth module's operating mode is forcibly switched from the first identification mode back to sleep mode. In sleep mode, the Bluetooth module stops scanning and signal processing operations, with only the radar detection module maintaining low-power standby. For example, the preset duration can be set to the number of detection cycles corresponding to a duration of 3 to 5 seconds. When the number of consecutive detections where the hit statistics value is less than or equal to 0 reaches this value, the Bluetooth module is immediately controlled to shut down its radio frequency transmission and reception functions, allowing the smart lock to return to an ultra-low power standby monitoring state. This achieves efficient energy management while ensuring user experience. By detecting the duration and setting a sleep state, users can quickly enter a low-power state when there is no intention to access the lock, achieving efficient energy management and ensuring user experience. In the embodiment using the decrement strategy, to avoid frequent changes in the hit statistics value near 0 due to brief signal fluctuations, a timer can be started when the hit statistics value is less than or equal to 0. The duration is determined to have reached the preset duration only if the timer expires and the hit statistics value does not recover to a value greater than 0 during the timeout period.

[0045] Reference Figure 3The present invention also provides an interactive control system for a smart door lock, wherein the smart door lock is equipped with a radar detection module, a Bluetooth module, an external antenna, and an internal antenna, and the system includes: Detection module 902 is used to detect the distance zone where human activity outside the door is located through the radar detection module; The setting module 904 is used to determine the access scenario based on the distance partition and to initially set the working mode of the Bluetooth module according to the access scenario; wherein, the working mode includes a sleep state, a first identification mode, and a second identification mode; The first acquisition module 906 is used to acquire the Bluetooth signal strength of the terminal device through the door external antenna and the door internal antenna in the first identification mode within a first acquisition time window, determine the location of the terminal device based on the signal strength difference, and perform identity verification on the terminal device. The switching module 908 is used to continuously detect the distance zone where the human activity outside the door is located during the execution of the first recognition mode, and count the number of times the distance zone where the human activity outside the door is located is located in a preset distance zone, so as to update the hit statistics value. When the hit statistics value reaches a preset statistical threshold, the switch is made to the second recognition mode. The second acquisition module 910 is used to acquire the Bluetooth signal strength of the terminal device through the external antenna and the internal antenna in the second identification mode within a second acquisition time window, determine the location of the terminal device based on the signal strength difference, and perform identity verification on the terminal device; wherein the second acquisition time window is shorter than the first acquisition time window. The determination module 912 is used to determine that the unlocking requirements are met when the terminal device passes the identity verification and is determined to be outside the door.

[0046] In one embodiment, the distance partitioning includes a far-distance partition, a medium-distance partition, and a near-distance partition; the setting module 904 includes: The sleep state setting submodule is used to determine that the access scenario is a long-distance pre-triggered scenario when the human activity is in the long-distance partition, and to set the Bluetooth module to the sleep state. The first identification mode setting submodule is used to determine that the access scenario is a mid-range identification scenario when the human activity is in the mid-range partition, and to wake up the Bluetooth module to set it to the first identification mode. The second identification mode setting submodule is used to determine that the access scenario is a near-field unlocking scenario when the human activity is in the near-field zone, and to wake up the Bluetooth module to set it to the second identification mode.

[0047] In one embodiment, the external antenna and the internal antenna are alternately switched on via a radio frequency switch; the first acquisition module 906 includes: An antenna switching submodule is used to alternately switch the external antenna and the internal antenna via a radio frequency switch; The signal strength value acquisition submodule is used to acquire the first signal strength value of the terminal device on the antenna outside the door and the second signal strength value of the terminal device on the antenna inside the door, respectively, within a first acquisition time window.

[0048] In one embodiment, the second acquisition module 910 includes: The private address resolution submodule is used to resolve the resolvable private address of the terminal device and extract the IRK key. The matching submodule is used to match the extracted IRK key with the locally stored list of bound device IRKs; The device verification submodule is used to confirm that the terminal device is a legitimate device if the match is successful, and to confirm that the terminal device is an illegitimate device if the match fails.

[0049] In one embodiment, the smart lock further includes a feedback device, and the interactive control system of the smart lock further includes: The first prompt signal output module is used to control the feedback device to output a first prompt signal when the working mode is switched from the first recognition mode to the second recognition mode; The second prompt signal output module is used to control the feedback device to output a second prompt signal when it is determined that the unlocking requirements are met. The third prompt signal output module is used to control the feedback device to output a third prompt signal when it is determined that the unlocking requirements are not met.

[0050] In one embodiment, the switching module 908 includes: The hit statistics increment submodule is used to increment the hit statistics by 1 each time the distance zone where human activity outside the door is detected is located within the preset distance zone; The hit statistics reduction submodule is used to clear or reduce the hit statistics value by 1 each time the distance partition where the human activity is located is not located in the preset distance partition.

[0051] In one embodiment, the interactive control system of the smart door lock further includes: The persistence count detection module is used to detect the persistence count of the hit statistics value being less than or equal to 0 after each update of the hit statistics value; The working mode setting module is used to set the working mode to the sleep state when the number of continuous cycles reaches a preset number of continuous cycles.

[0052] Figure 4 An internal structural diagram of an electronic device in one embodiment is shown. This electronic device can specifically be a terminal or a server, and more specifically, a computer device. Figure 4 As shown, the electronic device includes a processor, a memory, and a network interface connected via a system bus. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system and may also store a computer program. When executed by the processor, this computer program enables the processor to implement the interactive control method of the smart lock. The internal memory may also store a computer program, which, when executed by the processor, enables the processor to implement the interactive control method of the smart lock. Those skilled in the art will understand that... Figure 4 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the electronic device to which the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.

[0053] In one embodiment, an electronic device is provided, including a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the following steps: The radar detection module detects the distance zones where human activity outside the door is located. The access scenario is determined based on the distance partition, and the working mode of the Bluetooth module is initially set according to the access scenario; wherein, the working mode includes sleep mode, first identification mode and second identification mode; In the first identification mode, the Bluetooth signal strength of the terminal device is collected by the external antenna and the internal antenna during the first acquisition time window. The location of the terminal device is determined based on the signal strength difference, and the identity of the terminal device is verified. During the execution of the first recognition mode, the distance zone where the human activity outside the door is located is continuously detected, and the number of times the distance zone where the human activity outside the door is located is continuously determined to be located in the preset distance zone is counted to update the hit statistics value. When the hit statistics value reaches the preset statistical threshold, the second recognition mode is switched. In the second identification mode, the Bluetooth signal strength of the terminal device is collected by the external antenna and the internal antenna of the door within a second collection time window. The location of the terminal device is determined based on the signal strength difference, and the identity of the terminal device is verified. The second collection time window is shorter than the first collection time window. When the terminal device passes identity verification and is determined to be outside the door, the unlocking requirements are met.

[0054] By detecting the distance zones of human activity outside the door using a radar detection module, the system achieves a preliminary prediction of the person's approach intention. In the first recognition mode, the system collects the Bluetooth signal strength of the terminal device and continuously detects the distance zones of the person. The system updates the hit statistics by counting the number of times a person continuously enters a preset distance zone. Only when the hit statistics reach a preset threshold does the system switch to the second recognition mode, ensuring the stability of distance judgment and avoiding frequent switching of operating modes due to brief entry of a person into a preset zone or instantaneous signal fluctuations, thus reducing the additional energy consumption caused by mode oscillations. After switching to the second recognition mode, because the second acquisition time window is shorter than the first acquisition time window, the system can complete signal acquisition and location determination in a shorter acquisition time, improving the response speed in close-range scenarios. Based on this, the system confirms the unlocking intention by combining location determination and identity verification, avoiding accidental unlocking from inside the door or when the person is unauthorized. In summary, this application achieves a balanced optimization of door lock power consumption and response speed through the synergistic effect of distance zone perception and adaptive mode switching.

[0055] In one embodiment, a computer-readable storage medium is provided storing a computer program that, when executed by a processor, causes the processor to perform the following steps: The radar detection module detects the distance zones where human activity outside the door is located. The access scenario is determined based on the distance partition, and the working mode of the Bluetooth module is initially set according to the access scenario; wherein, the working mode includes sleep mode, first identification mode and second identification mode; In the first identification mode, the Bluetooth signal strength of the terminal device is collected by the external antenna and the internal antenna during the first acquisition time window. The location of the terminal device is determined based on the signal strength difference, and the identity of the terminal device is verified. During the execution of the first recognition mode, the distance zone where the human activity outside the door is located is continuously detected, and the number of times the distance zone where the human activity outside the door is located is continuously determined to be located in the preset distance zone is counted to update the hit statistics value. When the hit statistics value reaches the preset statistical threshold, the second recognition mode is switched. In the second identification mode, the Bluetooth signal strength of the terminal device is collected by the external antenna and the internal antenna of the door within a second collection time window. The location of the terminal device is determined based on the signal strength difference, and the identity of the terminal device is verified. The second collection time window is shorter than the first collection time window. When the terminal device passes identity verification and is determined to be outside the door, the unlocking requirements are met.

[0056] By detecting the distance zones of human activity outside the door using a radar detection module, the system achieves a preliminary prediction of the person's approach intention. In the first recognition mode, the system collects the Bluetooth signal strength of the terminal device and continuously detects the distance zones of the person. The system updates the hit statistics by counting the number of times a person continuously enters a preset distance zone. Only when the hit statistics reach a preset threshold does the system switch to the second recognition mode, ensuring the stability of distance judgment and avoiding frequent switching of operating modes due to brief entry of a person into a preset zone or instantaneous signal fluctuations, thus reducing the additional energy consumption caused by mode oscillations. After switching to the second recognition mode, because the second acquisition time window is shorter than the first acquisition time window, the system can complete signal acquisition and location determination in a shorter acquisition time, improving the response speed in close-range scenarios. Based on this, the system confirms the unlocking intention by combining location determination and identity verification, avoiding accidental unlocking from inside the door or when the person is unauthorized. In summary, this application achieves a balanced optimization of door lock power consumption and response speed through the synergistic effect of distance zone perception and adaptive mode switching.

[0057] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments described above. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM), etc.

[0058] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0059] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.

Claims

1. An interactive control method for a smart door lock, characterized in that, The smart door lock is equipped with a radar detection module, a Bluetooth module, an external antenna, and an internal antenna. The method includes: The radar detection module detects the distance zones where human activity outside the door is located. The access scenario is determined based on the distance partition, and the working mode of the Bluetooth module is initially set according to the access scenario; wherein, the working mode includes sleep mode, first identification mode and second identification mode; In the first identification mode, the Bluetooth signal strength of the terminal device is collected by the external antenna and the internal antenna during the first acquisition time window. The location of the terminal device is determined based on the signal strength difference, and the identity of the terminal device is verified. During the execution of the first recognition mode, the distance zone where the human activity outside the door is located is continuously detected, and the number of times the distance zone where the human activity outside the door is located is continuously determined to be within a preset distance zone is counted to update the hit statistics value. When the hit statistics value reaches a preset statistical threshold, the system switches to the second recognition mode. Specifically, each time the distance zone where the human activity outside the door is located is detected to be within the preset distance zone, the hit statistics value is incremented by 1; each time the distance zone where the human activity is located is detected to be outside the preset distance zone, the hit statistics value is cleared to zero or decremented by 1. In the second identification mode, the Bluetooth signal strength of the terminal device is collected by the external antenna and the internal antenna of the door within a second collection time window. The location of the terminal device is determined based on the signal strength difference, and the identity of the terminal device is verified. The second collection time window is shorter than the first collection time window. When the terminal device passes identity verification and is determined to be outside the door, the unlocking requirements are met.

2. The interactive control method for a smart door lock according to claim 1, characterized in that, The distance partitions include long-range, medium-range, and short-range partitions; the step of determining the access scenario based on the distance partitions and initially setting the working mode of the Bluetooth module according to the access scenario includes: When the human activity is in the remote partition, the access scenario is determined to be a remote pre-triggered scenario, and the Bluetooth module is set to the sleep state; When the human activity is in the mid-range zone, the access scenario is determined to be a mid-range recognition scenario, and the Bluetooth module is woken up and set to the first recognition mode; When the human activity is in the near-field zone, the access scenario is determined to be a near-field unlocking scenario, and the Bluetooth module is activated and set to the second recognition mode.

3. The interactive control method for a smart door lock according to claim 1, characterized in that, The external antenna and the internal antenna are alternately switched on via a radio frequency switch; The step of acquiring the Bluetooth signal strength of the terminal device through the external antenna and the internal antenna within a first acquisition time window includes: The external antenna and the internal antenna are alternately switched using a radio frequency switch; The first signal strength value of the terminal device is collected on the antenna outside the door and the second signal strength value of the terminal device is collected on the antenna inside the door during the first acquisition time window.

4. The interactive control method for a smart door lock according to claim 1, characterized in that, The step of verifying the identity of the terminal device includes: The resolvable private address of the terminal device is parsed to extract the IRK key; The extracted IRK key is matched against the locally stored list of bound device IRKs; If a match is successful, the terminal device is confirmed as a legitimate device; if a match fails, the terminal device is confirmed as an illegitimate device.

5. The interactive control method for a smart door lock according to claim 1, characterized in that, The smart lock also includes a feedback device, and the method further includes: When the working mode is switched from the first recognition mode to the second recognition mode, the feedback device is controlled to output a first prompt signal; When it is determined that the unlocking requirements are met, the feedback device is controlled to output a second prompt signal; When it is determined that the unlocking requirements are not met, the feedback device is controlled to output a third prompt signal.

6. The interactive control method for a smart door lock according to claim 1, characterized in that, After the step of continuously detecting the distance zone where the human activity outside the door is located during the execution of the first recognition mode, and counting the number of times the distance zone where the human activity outside the door is located is continuously determined to be located in a preset distance zone, in order to update the hit statistics value, the method further includes: After each update of the hit statistics, the number of consecutive times the hit statistics are less than or equal to 0 is checked; When the number of consecutive operations reaches the preset number of consecutive operations, the working mode is set to the sleep state.

7. An interactive control system for an intelligent door lock, characterized in that, The smart door lock is equipped with a radar detection module, a Bluetooth module, an external antenna, and an internal antenna. The system includes: The detection module is used to detect the distance zone where human activity outside the door is located through the radar detection module; The setting module is used to determine the access scenario based on the distance partition and to initially set the working mode of the Bluetooth module according to the access scenario; wherein, the working mode includes sleep mode, first identification mode and second identification mode; The first acquisition module is used to acquire the Bluetooth signal strength of the terminal device through the door external antenna and the door internal antenna in the first identification mode within a first acquisition time window, determine the location of the terminal device based on the signal strength difference, and perform identity verification on the terminal device. The switching module is used to continuously detect the distance zone where the human activity outside the door is located during the execution of the first recognition mode, and count the number of times the distance zone where the human activity outside the door is located is continuously determined to be located in a preset distance zone, so as to update the hit statistics value. When the hit statistics value reaches a preset statistical threshold, the system switches to the second recognition mode. Specifically, each time the distance zone where the human activity outside the door is located is detected to be located in the preset distance zone, the hit statistics value is incremented by 1; each time the distance zone where the human activity is located is detected to be located in the preset distance zone, the hit statistics value is cleared to zero or decremented by 1. The second acquisition module is used to acquire the Bluetooth signal strength of the terminal device through the external antenna and the internal antenna in the second identification mode within a second acquisition time window, determine the location of the terminal device based on the signal strength difference, and perform identity verification on the terminal device; wherein the second acquisition time window is shorter than the first acquisition time window; The determination module is used to determine that the unlocking requirements are met when the terminal device passes the identity verification and is determined to be outside the door.

8. A computer-readable storage medium, characterized in that, The device stores a computer program that, when executed by a processor, causes the processor to perform the steps of the interactive control method for the smart lock as described in any one of claims 1 to 6.

9. An electronic device, characterized in that, The device includes a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the interactive control method of the smart lock as described in any one of claims 1 to 6.