Access control device unlocking method, electronic device, storage medium and program product
By identifying environmental occlusion and matching the target ranging curve in the access control device, the problem of low-power Bluetooth ranging being easily affected by environmental interference is solved, improving the unlocking accuracy and security of the access control device and ensuring the stability and convenience of the unlocking process.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- TP-LINK INT SHENZHEN CO LTD
- Filing Date
- 2026-03-20
- Publication Date
- 2026-07-31
AI Technical Summary
Existing access control devices rely on RSSI low-power Bluetooth ranging for contactless unlocking, which is susceptible to environmental interference, resulting in low ranging accuracy, false unlocking, and affecting security and stability.
By performing occlusion recognition processing on the environment where the access control device is located, the occlusion status is determined, and the target ranging curve is matched according to the occlusion status. The target distance value is calculated by combining the Bluetooth signal strength value, and the access control device is controlled to perform the unlocking operation.
It improves the accuracy and precision of Bluetooth ranging, reduces issues such as false locking or insensitive unlocking, enhances the security and stability of the unlocking process, and optimizes the user experience.
Smart Images

Figure CN122493558A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of access control technology, and in particular to an access control device unlocking method, electronic device, computer-readable storage medium, and computer program product. Background Technology
[0002] In related technologies, access control devices typically rely on Bluetooth Low Energy (BLE) ranging with Received Signal Strength Indicator (RSSI) to determine the user's location when implementing contactless unlocking. However, this method is susceptible to environmental interference, resulting in low ranging accuracy and potentially causing mis-locking of smart locks. This reduces the security and stability of the unlocking process and negatively impacts the user experience. Summary of the Invention
[0003] This application provides a method for unlocking access control devices, an electronic device, a computer-readable storage medium, and a computer program product.
[0004] This application provides a method for unlocking an access control device, the method being used in the access control device, the method comprising: The current environment in which the access control device is located is subjected to occlusion recognition processing to determine the occlusion status of the current environment; Based on the occlusion state, determine the target ranging curve corresponding to the occlusion state; Based on the target ranging curve and the target Bluetooth signal strength value collected between the access control device and the mobile device, the target distance value between the access control device and the mobile device is calculated, wherein the mobile device is a pre-authorized device of the access control device and has established a Bluetooth connection with the access control device; If the target distance value is less than or equal to a preset unlocking distance threshold, the access control device is controlled to perform an unlocking operation.
[0005] In this way, by first identifying the environmental occlusion state and then matching the corresponding target ranging curve, the Bluetooth ranging calculation process is adapted to the current actual environment, effectively reducing the interference of environmental occlusion on Bluetooth signal propagation, improving the accuracy and precision of Bluetooth ranging to a certain extent, reducing the problem of false locking or insensitive unlocking caused by ranging errors, improving the stability of the unlocking process, and limiting signal acquisition and distance calculation to pre-authorized mobile devices that have established Bluetooth connections, thus avoiding signal interference from unauthorized devices to a certain extent and ensuring the security of the unlocking process.
[0006] In addition, the access control equipment autonomously completes the detection, calculation, and determination of whether to unlock, without requiring any additional manual operation from the user. This improves the security and stability of unlocking while ensuring the convenience of the unlocking operation, thereby optimizing the user experience to a certain extent and improving the accuracy and convenience of the access control equipment's unlocking operation.
[0007] In some implementations, the step of performing occlusion recognition processing on the current environment where the access control device is located, and determining the occlusion state of the current environment, includes: Collect current environmental information within the detection range of the access control device; The occlusion status of the current environment is determined by performing occlusion recognition processing on the current environment information based on the target detection algorithm.
[0008] In this way, by limiting the current environmental information collected within the detection range of the access control device, the collection range of environmental information is matched with the collection capability of the device. This ensures, to a certain extent, that the collected environmental information can accurately and comprehensively reflect the current environmental occlusion situation. Furthermore, by using target detection algorithms for occlusion identification, replacing manual judgment and simple image recognition, the device can accurately and objectively identify occlusion objects and their degree of occlusion in the environment. This effectively reduces the error in determining the occlusion state, provides a reliable basis for matching the target ranging curve, and to a certain extent reduces the interference of environmental occlusion on Bluetooth signal propagation. This improves the accuracy and precision of Bluetooth ranging, reduces the problem of false locking or insensitive unlocking caused by ranging errors, and thus improves the security and stability of the unlocking process to a certain extent.
[0009] In some implementations, the target ranging curve includes the measured value of Bluetooth signal strength per unit distance and the path loss index, and determining the target ranging curve corresponding to the occlusion state based on the occlusion state includes: Based on the occlusion state, determine the measured value of the Bluetooth signal strength and the path loss index corresponding to the occlusion state; The target ranging curve is determined based on the measured value of the Bluetooth signal strength and the path loss index.
[0010] Thus, by matching the measured Bluetooth signal strength per unit distance and the path loss index according to the occlusion state, the measured Bluetooth signal strength per unit distance and the path loss index are made consistent with the Bluetooth signal propagation attenuation law of the current environment. This allows the target ranging curve generated based on the measured Bluetooth signal strength per unit distance and the path loss index to truly reflect the correspondence between signal strength and distance in the current environment, thereby improving the accuracy of the ranging curve to a certain extent. It effectively reduces the interference of environmental occlusion on Bluetooth ranging, improves the accuracy of Bluetooth ranging, and further reduces the phenomenon of false locking and insensitive unlocking caused by ranging errors, thus improving the security and stability of the unlocking process.
[0011] Furthermore, different occlusion states correspond to different parameter combinations, enabling access control devices to generate corresponding target ranging curves based on the actual occlusion state. This improves the adaptability of access control devices to different installation environments to a certain extent, eliminates the need for manual debugging, reduces the debugging and maintenance costs of the devices, enhances the versatility of access control devices, and optimizes the user experience.
[0012] In some implementations, calculating the target distance between the access control device and the mobile device based on the target ranging curve and the acquired target Bluetooth signal strength value between the access control device and the mobile device includes: A broadcast packet is sent to the mobile device, wherein the mobile device extracts the received broadcast packet to obtain the first media access control address and the first universal unique identifier of the access control device from the broadcast packet, and compares the first media access control address and the first universal unique identifier with the second media access control address and the second universal unique identifier of the access control device that are pre-stored. If the first media access control address and the second media access control address are the same and the first universal unique identifier and the second universal unique identifier are the same, a Bluetooth connection confirmation message is sent to the access control device. After receiving the Bluetooth connection confirmation information, the first Bluetooth signal strength value between the access control device and the mobile device is collected, wherein the target Bluetooth signal strength value includes the first Bluetooth signal strength value; Based on the target ranging curve, the first Bluetooth signal strength value is converted into a first target distance value, wherein the target distance value includes the first target distance value.
[0013] In this way, by comparing the media access control address and the universally unique identifier, the access control device and the mobile device are matched. This ensures to a certain extent that only the bound device can initiate a connection request, effectively avoiding interference from irrelevant devices, reducing the collection of invalid data, improving the operating efficiency of the access control device, and thus improving the security of the unlocking process and optimizing the user experience.
[0014] In some implementations, converting the first Bluetooth signal strength value into the first target distance value based on the target ranging curve includes: The collected multiple sets of the first Bluetooth signal strength values are filtered and averaged to obtain the average Bluetooth signal strength value. Based on the target ranging curve, the average Bluetooth signal strength value is converted into the first target distance value.
[0015] Thus, by filtering multiple sets of first Bluetooth signal strength values, outliers and random noise generated during signal acquisition are effectively eliminated, invalid interference data is removed, and valid data that truly reflects the signal propagation status between the access control device and the mobile device is retained. This improves the reliability of the Bluetooth signal strength value to a certain extent, laying a reliable data foundation for the calculation of the first target distance. Furthermore, by averaging the filtered valid data, the randomness of single or small-scale sampling is avoided to a certain extent, enabling the average Bluetooth signal strength value to accurately and stably reflect the actual Bluetooth signal propagation strength between devices. This reduces the ranging error caused by signal fluctuations, thereby reducing the problems of false locking and insensitive unlocking caused by ranging errors to a certain extent, and improving the security and stability of the unlocking process.
[0016] In some embodiments, controlling the access control device to perform an unlocking operation when the target distance value is less than or equal to a preset unlocking distance threshold includes: If the first target distance value is less than or equal to a preset connection distance threshold, a Bluetooth connection is established between the access control device and the mobile device. If the Bluetooth connection has been established, the mobile device sends a Bluetooth identification token to the access control device. The Bluetooth identification token includes the second media access control address and user information. The preset connection distance threshold is greater than the preset unlocking distance threshold. The Bluetooth identifier token is compared and verified with the pre-authorization information, wherein the pre-authorization information is pre-stored in the access control device's authorization whitelist and includes user information of authorized users; If the Bluetooth identifier token matches the pre-authorization information verification, a second Bluetooth signal strength value is collected between the access control device and the mobile device, wherein the target Bluetooth signal strength value includes the second Bluetooth signal strength value; According to the target ranging curve, the second Bluetooth signal strength value is converted into a second target distance value, wherein the target distance value includes the second target distance value, and the second target distance value is less than the first target distance value; If the second target distance value is less than or equal to the preset unlocking distance threshold, the access control device is controlled to perform an unlocking operation.
[0017] In this way, by setting a tiered distance judgment standard, a preset connection distance threshold is used as the first judgment and a preset unlock distance threshold as the second judgment. The preset connection distance threshold is greater than the preset unlock distance threshold. Bluetooth connection and identity recognition are completed first at a longer distance, and then unlock judgment is completed at a closer distance. This effectively reduces false unlocking caused by single Bluetooth signal fluctuations or minor distance measurement errors, and improves the rigor of distance judgment. Furthermore, after the initial device identification comparison, the legality of the mobile device and user identity is further confirmed by comparing the Bluetooth identification token with the pre-authorized information in the authorized whitelist. This effectively prevents the security risk of device misuse and improves the security of the unlocking process.
[0018] In addition, after information matching, the second Bluetooth signal strength value is collected and the second target distance value is calculated, which realizes secondary detection of the user's actual location and further confirms whether the user has truly entered the access control's unlocking effective range. To a certain extent, this avoids the problem of false locking when the user is within the connection range but not within the unlocking range, and improves the accuracy of distance determination.
[0019] In some implementations, the step of collecting a second Bluetooth signal strength value between the access control device and the mobile device when the Bluetooth identification token matches the pre-authorization information verification includes: The effective connection duration is compared with a preset Bluetooth connection timeout threshold, wherein the effective connection duration is the duration of the Bluetooth connection between the access control device and the mobile device; If the duration of the connection is greater than or equal to the preset Bluetooth connection timeout threshold, the Bluetooth connection is disconnected and the Bluetooth module is controlled to resend the broadcast packet; If the effective duration of the connection is less than the preset Bluetooth connection timeout threshold, the second Bluetooth signal strength value is collected.
[0020] In this way, by comparing the effective connection duration with the preset Bluetooth connection timeout threshold, the validity of the Bluetooth connection is determined. When the connection is valid, the second Bluetooth signal strength value is collected, which to some extent avoids invalid signal collection and data calculation for invalid connections, reduces the computing power and communication resource consumption of the access control device, and improves the overall operating efficiency of the device. Furthermore, for Bluetooth connections determined to be invalid, the access control device will disconnect and release the occupied resources, and at the same time, allow the Bluetooth module to resend broadcast packets, which to some extent ensures that the communication channel of the access control device is always in a highly efficient and available state, and can respond to connection requests from other legitimate mobile devices in a timely manner, thereby improving the communication reliability and signal interaction response speed of the device.
[0021] In some embodiments, the method further includes: If the Bluetooth identifier token does not match the pre-authorization information verification, the Bluetooth connection is disconnected after a first preset time interval. The Bluetooth signal of the mobile device is blocked for a second preset duration, wherein the second preset duration is determined based on the total number of times the Bluetooth identifier token and the pre-authorization information verification do not match.
[0022] In this way, by setting a delay disconnection mechanism with a first preset duration, the operational load caused by frequent immediate disconnection operations of the access control equipment is effectively avoided, the invalid actions of the equipment are reduced, and the stability of the equipment connection management is improved. At the same time, it also avoids some problems such as temporary authentication mismatch and direct disconnection of equipment caused by signal fluctuations to a certain extent. It takes into account both the rigor and flexibility of equipment management. Furthermore, by setting a tiered blocking duration according to the number of authentication failures, more strictly restricts illegal devices that repeatedly attempt to access the equipment, effectively preventing continuous interference from illegal devices, reducing the invalid consumption of hardware resources of the access control equipment to a certain extent, and improving the overall operating efficiency of the equipment.
[0023] In addition, by blocking the Bluetooth signals of unauthorized devices, the anti-interference capability and overall security of the access control equipment are effectively improved, reducing the risk of the equipment being hacked.
[0024] In some embodiments, controlling the access control device to perform an unlocking operation when the target distance value is less than or equal to a preset unlocking distance threshold includes: If the target distance value is less than or equal to the preset unlocking distance threshold, the target detection algorithm is used to detect the current environmental information to determine whether a humanoid target exists. When the presence of the human-shaped target is detected, the movement state of the human-shaped target is detected by a target tracking algorithm. The movement state includes a first movement state of approaching the access control device, a second movement state of moving away from the access control device, and a third movement state of passing laterally through the access control device. When the motion state is the first motion state, the access control device is controlled to perform an unlocking operation.
[0025] Thus, by adding a verification step for human target detection, the unlocking operation is ensured to be triggered only when an actual person is within the unlocking range. This effectively avoids false locks caused by authorized mobile devices being within the unlocking range but no one approaching, improving the security of the unlocking process. Furthermore, by classifying and judging the movement state of human targets through target tracking algorithms, it can effectively distinguish between people's approaching door-opening behavior and non-door-opening behaviors such as passing by or moving away. To a certain extent, this solves the problem that access control devices with single-antenna Bluetooth modules cannot determine the location and intention of opening the door, reducing the probability of false locks triggered by non-door-opening intention behaviors and improving the accuracy of unlocking judgment.
[0026] In some implementations, detecting the motion state of the humanoid target using a target tracking algorithm when the humanoid target is detected includes: The detected humanoid target is labeled, and the appearance feature vector of the humanoid target is extracted; Predict the next moment's predicted position of the humanoid target, wherein the next moment's predicted position includes the next moment's predicted position of the humanoid target in the first motion state, the next moment's predicted position in the second motion state, and the next moment's predicted position in the third motion state. The motion state of the humanoid target is determined based on the predicted position at the next moment, the actual detection position at the next moment, and the appearance feature vector. The actual detection position at the next moment includes the actual detection position of the humanoid target at the next moment in the first motion state, the actual detection position at the next moment in the second motion state, and the actual detection position at the next moment in the third motion state.
[0027] Thus, by extracting appearance feature vectors to identify humanoid targets, tracking confusion and target loss in multi-target scenarios are effectively avoided, improving the stability of target tracking. Furthermore, the prediction of the next position of humanoid targets under different motion states can effectively avoid the judgment error caused by instantaneous position fluctuations such as short pauses and slight position shifts, making the judgment of motion state more consistent with the actual motion trend of the target.
[0028] Furthermore, by combining the predicted position at the next moment, the actual detected position at the next moment, and the appearance feature vector for comprehensive judgment, a multi-dimensional motion state detection system is constructed. It performs dual verification from two levels: position matching and feature verification, which improves the accuracy and anti-interference ability of motion state judgment to a certain extent. It can effectively distinguish between three motion states: approaching, moving away, and passing laterally, reducing the probability of motion state misjudgment. This, in turn, reduces the possibility of door access mis-locking caused by motion state misjudgment, and improves the security and stability of the unlocking process.
[0029] This application also provides a method for unlocking an access control device, the method being used on a mobile device, the method comprising: A Bluetooth connection is established with the access control device, wherein the access control device performs occlusion recognition processing on the current environment in which the access control device is located, determines the occlusion state of the current environment, determines the target ranging curve corresponding to the occlusion state based on the occlusion state, and calculates the target distance value between the access control device and the mobile device based on the target ranging curve and the target Bluetooth signal strength value collected between the access control device and the mobile device. If the target distance value is less than or equal to a preset unlocking distance threshold, the access control device is controlled to perform an unlocking operation, and the mobile device is a pre-authorized device of the access control device.
[0030] In this way, by first identifying the environmental occlusion state and then matching the corresponding target ranging curve, the Bluetooth ranging calculation process is adapted to the current actual environment, effectively reducing the interference of environmental occlusion on Bluetooth signal propagation, improving the accuracy and precision of Bluetooth ranging to a certain extent, reducing the problem of false locking or insensitive unlocking caused by ranging errors, improving the stability of the unlocking process, and limiting signal acquisition and distance calculation to pre-authorized mobile devices that have established Bluetooth connections, thus avoiding signal interference from unauthorized devices to a certain extent and ensuring the security of the unlocking process.
[0031] In addition, the access control equipment autonomously completes the detection, calculation, and determination of whether to unlock, without requiring any additional manual operation from the user. This improves the security and stability of unlocking while ensuring the convenience of the unlocking operation, thereby optimizing the user experience to a certain extent and improving the accuracy and convenience of the access control equipment's unlocking operation.
[0032] In some implementations, establishing a Bluetooth connection with the access control device includes: The received broadcast packet sent by the access control device is extracted and processed to obtain the first media access control address and the first universal unique identifier of the access control device in the broadcast packet; The first media access control address and the first universal unique identifier are compared with the second media access control address and the second universal unique identifier of the access control device that are pre-stored. When the first media access control address and the second media access control address are the same, and the first universal unique identifier is the same as the second universal unique identifier, a Bluetooth connection confirmation message is sent to the access control device. After receiving the Bluetooth connection confirmation message, the access control device collects a first Bluetooth signal strength value between the access control device and the mobile device, and converts the first Bluetooth signal strength value into a first target distance value according to the target ranging curve. The target Bluetooth signal strength value includes the first Bluetooth signal strength value, and the target distance value includes the first target distance value.
[0033] In this way, by comparing the media access control address and the universally unique identifier, the access control device and the mobile device are matched. This ensures to a certain extent that only the bound device can initiate a connection request, effectively avoiding interference from irrelevant devices, reducing the collection of invalid data, improving the operating efficiency of the access control device, and thus improving the security of the unlocking process and optimizing the user experience.
[0034] In some embodiments, the method further includes: If a Bluetooth connection has been established, a Bluetooth identification token is sent to the access control device. The Bluetooth identification token includes the second media access control address and user information. If the first target distance value is less than or equal to a preset connection distance threshold, the access control device establishes a Bluetooth connection with the mobile device. The Bluetooth identification token is compared and verified with pre-authorization information. If the Bluetooth identification token and the pre-authorization information match, a second Bluetooth signal strength value is collected between the access control device and the mobile device. Based on the target ranging curve, the second Bluetooth signal strength value is converted into a second target distance value. If the second target distance value is less than or equal to the preset unlocking distance threshold, the access control device is controlled to perform an unlocking operation. The preset connection distance threshold is greater than the preset unlocking distance threshold. The pre-authorization information is pre-stored in the access control device's authorization whitelist and includes user information of authorized users. The target Bluetooth signal strength value includes the second Bluetooth signal strength value, and the target distance value includes the second target distance value, which is less than the first target distance value.
[0035] In this way, by setting a tiered distance judgment standard, a preset connection distance threshold is used as the first judgment and a preset unlock distance threshold as the second judgment. The preset connection distance threshold is greater than the preset unlock distance threshold. Bluetooth connection and identity recognition are completed first at a longer distance, and then unlock judgment is completed at a closer distance. This effectively reduces false unlocking caused by single Bluetooth signal fluctuations or minor distance measurement errors, and improves the rigor of distance judgment. Furthermore, after the initial device identification comparison, the legality of the mobile device and user identity is further confirmed by comparing the Bluetooth identification token with the pre-authorized information in the authorized whitelist. This effectively prevents the security risk of device misuse and improves the security of the unlocking process.
[0036] In addition, after information matching, the second Bluetooth signal strength value is collected and the second target distance value is calculated, which realizes secondary detection of the user's actual location and further confirms whether the user has truly entered the access control's unlocking effective range. To a certain extent, this avoids the problem of false locking when the user is within the connection range but not within the unlocking range, and improves the accuracy of distance determination.
[0037] This application also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, it implements the methods described in some of the above embodiments.
[0038] This application also provides a computer-readable storage medium storing a computer program that, when executed by one or more processors, implements the methods described in some of the above embodiments.
[0039] This application also provides a computer program product, including a computer program / instructions that, when executed by a processor, implement the methods described in some of the above embodiments.
[0040] The electronic device, computer-readable storage medium, and computer program product provided in this application, when implementing the above method, firstly performs occlusion recognition processing on the current environment where the access control device is located to determine the occlusion state of the current environment. Based on the occlusion state, a target ranging curve corresponding to the occlusion state is determined. Based on the target ranging curve and the target Bluetooth signal strength value collected between the access control device and the mobile device, a target distance value between the access control device and the mobile device is calculated. The mobile device is a pre-authorized device of the access control device and has established a Bluetooth connection with the access control device. When the target distance value is less than or equal to a preset unlocking distance threshold, the access control device is controlled to perform an unlocking operation. In this way, by first identifying the environmental occlusion state and then matching the corresponding target ranging curve, the Bluetooth ranging calculation process is adapted to the current actual environment. This effectively reduces the interference of environmental occlusion on Bluetooth signal propagation, improves the accuracy and precision of Bluetooth ranging to a certain extent, reduces the problem of false locking or insensitive unlocking caused by ranging errors, improves the stability of the unlocking process, and limits signal acquisition and distance calculation to pre-authorized mobile devices that have established a Bluetooth connection. This avoids signal interference from unauthorized devices to a certain extent and ensures the security of the unlocking process.
[0041] In addition, the access control equipment autonomously completes the detection, calculation, and determination of whether to unlock, without requiring any additional manual operation from the user. This improves the security and stability of unlocking while ensuring the convenience of the unlocking operation, thereby optimizing the user experience to a certain extent and improving the accuracy and convenience of the access control equipment's unlocking operation.
[0042] Additional aspects and advantages of embodiments of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of embodiments of this application. Attached Figure Description
[0043] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, wherein: Figure 1 This is one of the flowcharts illustrating the access control device unlocking method according to certain embodiments of this application; Figure 2 This is a schematic diagram of the system architecture of an access control device according to certain embodiments of this application; Figure 3 This is a schematic diagram of the target ranging curve fitted by the access control device of some embodiments of this application under unobstructed conditions; Figure 4 This is a second schematic flowchart of an access control device unlocking method according to certain embodiments of this application; Figure 5This is the third flowchart illustrating the access control device unlocking method according to certain embodiments of this application; Figure 6 This is the fourth flowchart illustrating the access control device unlocking method according to certain embodiments of this application; Figure 7 This is the fifth flowchart illustrating the access control device unlocking method according to certain embodiments of this application; Figure 8 This is a flowchart of the access control device unlocking method according to certain embodiments of this application, number six. Figure 9 This is the seventh flowchart illustrating the access control device unlocking method according to certain embodiments of this application; Figure 10 This is the eighth flowchart illustrating the access control device unlocking method according to certain embodiments of this application; Figure 11 This is the ninth flowchart illustrating the access control device unlocking method according to certain embodiments of this application; Figure 12 This is the tenth flowchart illustrating the access control device unlocking method according to certain embodiments of this application; Figure 13 This is eleventh of the flowcharts illustrating the access control device unlocking method according to certain embodiments of this application; Figure 14 This is the twelfth flowchart illustrating the access control device unlocking method according to certain embodiments of this application; Figure 15 This is the thirteenth flowchart illustrating the access control device unlocking method according to certain embodiments of this application; Figure 16 This is a schematic diagram of the execution logic of the access control device unlocking method according to certain embodiments of this application; Figure 17 This is a schematic diagram of the overall process of the access control device unlocking method according to certain embodiments of this application. Detailed Implementation
[0044] The embodiments of this application are described in detail below. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the embodiments of this application, and should not be construed as limiting the embodiments of this application.
[0045] With the development of intelligent security technology, intelligent access control devices have been widely used in various building scenarios, and contactless unlocking has become an important development direction for access control devices. When implementing contactless unlocking, access control devices typically rely on low-power Bluetooth ranging based on received signal strength to determine the user's location. These devices usually consist of a main controller, a camera module, and a Bluetooth module. The main controller typically includes an algorithm processing module, a data processing module, and a storage medium.
[0046] In related technologies, access control devices typically employ two independent unlocking methods. One of these is Bluetooth Low Energy remote unlocking, which relies on the access control device's Bluetooth module. The Bluetooth module operates in edge device mode and periodically sends broadcast packets. Authorized mobile applications can scan the broadcast packets and establish a connection with the Bluetooth module. Users can then unlock the access control device by performing a click operation on the mobile application.
[0047] Facial recognition unlocking relies on the cooperation of the camera module and the algorithm processing module of the main controller. After the camera module collects facial data on site, the algorithm processing module compares the collected facial data with the pre-saved and authorized facial data in the storage medium. Once the comparison and matching are successful, the access control device will automatically perform the door opening operation.
[0048] However, for users who intend to bring items into the door, the experience of using Bluetooth Low Energy remote unlocking is not good, and while facial recognition unlocking does not require manual operation, it still has certain limitations in places where masks are required or where facial data privacy protection is important.
[0049] To address the aforementioned issues, relevant technical solutions rely on BLE ranging technology for distance determination, while combining it with target detection algorithms for intent recognition. BLE ranging methods typically include RSSI-based ranging, Bluetooth Angle of Arrival (AOA)-based ranging, and ChannelSounding-based ranging, which utilizes the amplitude and phase of wireless signals. The access control device's algorithm processing module uses images collected by the camera module and target detection algorithms to determine if a user intends to enter. The data processing module converts the RSSI data collected by the Bluetooth module into distance values in real time. When the user's mobile device is within the Bluetooth ranging range and the algorithm processing module detects the user's intention to enter, the access control device triggers a smart, contactless unlocking action.
[0050] However, while Channel Sounding ranging offers high accuracy and can detect the directionality of signals, it requires Bluetooth modules that support BLE 6.0 or higher, resulting in high hardware costs. AOA ranging does not require Bluetooth chips that support BLE 6.0, but it places high demands on the design of the hardware antenna array, increasing the complexity of the hardware design. RSSI ranging also does not require Bluetooth chips that support BLE 6.0 and has no special requirements for the design of the hardware antenna array, but it is susceptible to environmental influences, leading to lower ranging accuracy. This can cause smart locks to mis-lock, reducing the security and stability of the unlocking process.
[0051] Furthermore, access control devices with a single-antenna Bluetooth module rely solely on the signal acquisition and processing capabilities of the Bluetooth module, making it impossible to determine whether the user is currently on the outside or inside of the door, or to recognize the user's intention to open the door. This increases the probability of mis-locking and negatively impacts the user experience.
[0052] Based on the above issues, please refer to the following: Figure 1 , Figure 2 and Figure 3 This application provides a method for unlocking an access control device. The method is used in the access control device and includes: 01: Perform occlusion recognition processing on the current environment where the access control device is located to determine the occlusion status of the current environment; 02: Determine the target ranging curve corresponding to the occlusion state based on the occlusion state; 03: Based on the target ranging curve and the target Bluetooth signal strength value collected between the access control device and the mobile device, calculate the target distance value between the access control device and the mobile device. The mobile device is a pre-authorized device of the access control device and has established a Bluetooth connection with the access control device. 04: When the target distance value is less than or equal to the preset unlocking distance threshold, control the access control device to perform the unlocking operation.
[0053] This application provides a first device for unlocking access control devices. The access control device unlocking method of this application can be implemented by the first device for unlocking access control devices. Specifically, the first device for unlocking access control devices includes a first determining module, a second determining module, a calculation module, and a control module. The first determining module is used to perform occlusion recognition processing on the current environment where the access control device is located to determine the occlusion state of the current environment. The second determining module is used to determine the target ranging curve corresponding to the occlusion state based on the occlusion state. The calculation module is used to calculate the target distance value between the access control device and the mobile device based on the target ranging curve and the collected target Bluetooth signal strength value between the access control device and the mobile device, wherein the mobile device is a pre-authorized device of the access control device and has established a Bluetooth connection with the access control device. The control module is used to control the access control device to perform an unlocking operation when the target distance value is less than or equal to a preset unlocking distance threshold.
[0054] This application also provides a server, which includes a memory and a processor. The access control device unlocking method of this application can be implemented by the server of this application. Specifically, the memory stores a computer program, and the processor is used to perform occlusion recognition processing on the current environment where the access control device is located, and determine the occlusion state of the current environment. The processor is also used to determine the target ranging curve corresponding to the occlusion state based on the occlusion state. The processor is also used to calculate the target distance value between the access control device and the mobile device based on the target ranging curve and the target Bluetooth signal strength value collected between the access control device and the mobile device, wherein the mobile device is a pre-authorized device of the access control device and has established a Bluetooth connection with the access control device. The processor is also used to control the access control device to perform an unlocking operation when the target distance value is less than or equal to a preset unlocking distance threshold.
[0055] Specifically, the access control device is an intelligent access control terminal with Bluetooth communication, environmental detection and unlocking control functions, which can realize signal interaction with mobile devices, environmental status recognition and access control opening and closing control.
[0056] In some implementations, access control devices typically consist of a main controller, a camera module, and a Bluetooth module. The main controller usually also includes an algorithm processing module, a data processing module, and a storage medium.
[0057] Obstruction recognition processing is the process of detecting and analyzing the surrounding environment of the access control equipment and identifying the distribution and proportion of obstructions in the environment.
[0058] The occlusion status refers to the degree of environmental occlusion within the detection range of the access control equipment, which can generally be divided into no occlusion, partial occlusion, and complete occlusion.
[0059] The target ranging curve is a curve obtained by fitting a mathematical model, adapting to specific occlusion conditions, and reflecting the relationship between Bluetooth signal strength and device distance. For example, a curve obtained by fitting a free-space path loss model based on wireless signal propagation can be used to convert Bluetooth signal strength values into device distance values, with different occlusion conditions corresponding to different target ranging curves.
[0060] The target Bluetooth signal strength value is the Bluetooth signal reception strength value between the access control device and the mobile device, which is collected in real time.
[0061] Mobile devices are terminal devices carried by users that have Bluetooth communication capabilities.
[0062] A pre-authorized device is a mobile device that has completed the legal authorization binding process with the access control device, has been included in the access control device's authorization whitelist, and has access control unlocking permissions.
[0063] Bluetooth connectivity is an effective data and signal exchange link established between access control devices and mobile devices based on the Bluetooth communication protocol.
[0064] The target distance value is the actual distance between the access control device and the mobile device, calculated by combining the target ranging curve with the collected target Bluetooth signal strength value.
[0065] The preset unlocking distance threshold is a distance value pre-stored in the access control device's storage medium, which can be used to determine whether to perform an unlocking operation. For example, the preset threshold allows an unlocking operation to be performed when the distance between the mobile device and the access control device is less than or equal to 1 meter.
[0066] The unlocking operation is a control action performed by the access control device to open the access control based on the distance determination result.
[0067] First, the access control device unlocking method of the present application can be applied to access control devices including a main controller, a camera module, and a Bluetooth module. The storage medium of the access control device stores relevant information of the pre-authorized device, preset unlocking distance threshold, and other parameters in advance.
[0068] During normal operation, the access control equipment first activates the camera module to collect information about the current environment. Then, the main controller performs occlusion recognition processing on the collected environmental information. By analyzing whether there are obstructions in the environment, the distribution and area of the obstructions, etc., the occlusion status of the current environment is determined.
[0069] Next, the main controller retrieves the target ranging curve corresponding to the current occlusion state from the storage medium based on the determined occlusion state. This target ranging curve can be obtained by fitting different occlusion states using a free-space path loss model for wireless signal propagation, thus adapting to the numerical correspondence between Bluetooth signal strength and device distance in the corresponding environment. The free-space path loss model for wireless signal propagation is as follows:
[0070] in, and These represent the actual distance and the reference distance, respectively. and These represent the RSSI (dBm) received at the actual distance and the reference distance, respectively. This represents the path loss index. To represent random noise, in some implementations, it can be assumed that... Let be a Gaussian random variable with zero mean and zero variance.
[0071] In some implementations, It is 1m. It can be calculated using the free-space path loss model; therefore, the simplified free-space path loss model for wireless signal propagation is as follows:
[0072] in, For the RSSI received by a wireless receiver from a transmitter 1m away, the aforementioned free-space path loss model for wireless signal propagation can be used to estimate distance based on RSSI. For example, Figure 3 The image shows the RSSI distance estimated by fitting under unobstructed conditions.
[0073] After a stable Bluetooth connection is established between the access control device and the pre-authorized mobile device, the Bluetooth module collects the target Bluetooth signal strength value between the access control device and the mobile device at a preset frequency, and transmits the collected value to the data processing module of the main controller. In some embodiments, the Bluetooth module is designed with a single antenna, without a complex antenna array, simplifying the hardware design, and the preset frequency for collecting the target Bluetooth signal strength value can be any value between 30-50Hz, which is not limited here.
[0074] The main controller substitutes the target Bluetooth signal strength value into the determined target ranging curve, and calculates the target distance between the access control device and the mobile device through the mathematical conversion relationship of the target ranging curve. The target distance value is the estimated value of the actual distance between the access control device and the mobile device in the current environment.
[0075] Finally, the main controller compares the calculated target distance value with the preset unlocking distance threshold in the storage medium in real time. If the first target distance value is less than or equal to the preset unlocking distance threshold, it indicates that the user carrying the pre-authorized device is within the effective unlocking range of the access control device. At this time, the main controller will send an unlocking command to the execution module of the access control device to control the access control device to perform the unlocking operation.
[0076] In some implementations, if the first target distance value is greater than a preset unlocking distance threshold, it indicates that the user has not entered the unlocking range, and the main controller does not perform any unlocking operation, but continues to collect signals and determine distance.
[0077] In this way, by first identifying the environmental occlusion state and then matching the corresponding target ranging curve, the Bluetooth ranging calculation process is adapted to the current actual environment, effectively reducing the interference of environmental occlusion on Bluetooth signal propagation, improving the accuracy and precision of Bluetooth ranging to a certain extent, reducing the problem of false locking or insensitive unlocking caused by ranging errors, improving the stability of the unlocking process, and limiting signal acquisition and distance calculation to pre-authorized mobile devices that have established Bluetooth connections, thus avoiding signal interference from unauthorized devices to a certain extent and ensuring the security of the unlocking process.
[0078] In addition, the access control equipment autonomously completes the detection, calculation, and determination of whether to unlock, without requiring any additional manual operation from the user. This improves the security and stability of unlocking while ensuring the convenience of the unlocking operation, thereby optimizing the user experience to a certain extent and improving the accuracy and convenience of the access control equipment's unlocking operation.
[0079] Please see Figure 4 In some implementations, step 01 includes: 011: Collect current environmental information within the detection range of the access control equipment; 012: Based on the target detection algorithm, perform occlusion recognition processing on the current environment information to determine the occlusion status of the current environment.
[0080] In some implementations, the first determining module is further configured to collect current environmental information within the detection range of the access control device. The first determining module is also configured to perform occlusion recognition processing on the current environmental information based on a target detection algorithm to determine the occlusion state of the current environment.
[0081] In some implementations, the processor is also used to collect current environmental information within the detection range of the access control device. The processor is further used to perform occlusion recognition processing on the current environmental information based on a target detection algorithm to determine the occlusion status of the current environment.
[0082] Specifically, the detection range is the spatial range within which the sensing modules of the access control device, such as the camera module, can effectively capture environmental data, and the detection range matches the hardware sensing capabilities of the access control device.
[0083] The current environmental information consists of visual information such as images and videos collected by the camera module of the access control device within its detection range.
[0084] Object detection algorithms are computer vision-based algorithms that can identify, locate, and analyze targets in images or videos. In the embodiments of this application, the object detection algorithm is used to identify occlusions in the environment and analyze the degree of occlusion in the current environment. In some embodiments, the object detection algorithm may be the YOLO algorithm or the Single Shot MultiBox Detector (SSD) algorithm, etc.
[0085] After the access control device initiates the occlusion recognition process, it first controls the camera module to collect current environmental information within the detection range of the camera module according to the preset resolution and frame rate. The collected information is usually a continuous image or video stream, which can cover the entire unlock detection area in front of the access control device to ensure no blind spots.
[0086] Subsequently, the camera module transmits the collected current environmental information to the algorithm processing module of the main controller in real time. The algorithm processing module is equipped with a mature target detection algorithm, which can identify various objects in the environmental information and distinguish different targets such as walls, ground, and obstructions.
[0087] The algorithm processing module processes environmental information using object detection algorithms. First, it identifies all obstructions in the environment. Then, it calculates parameters such as the area ratio and distribution location of the obstructions within the detection area. Based on preset judgment criteria, the occlusion status is classified into three types: no occlusion, 50% occlusion, and 100% occlusion. No occlusion means there are no obstructions within the detection area; 50% occlusion means the area of obstructions occupies approximately 50% of the detection area; and 100% occlusion means the detection area is completely covered by obstructions.
[0088] For example, the algorithm processing module divides the current environment information image input from the camera module into an S×S grid. Since the installation location of the access control device is fixed, after installation, the algorithm processing module can use the YOLO object detection algorithm to determine whether there are any obstructions in the S×S grid, and calculate the occlusion ratio by calculating the proportion of the obstruction to the image.
[0089] Finally, the algorithm processing module transmits the determined occlusion status to the processing unit of the main controller, providing a basis for the selection of the target ranging curve.
[0090] In this way, by limiting the current environmental information collected within the detection range of the access control device, the collection range of environmental information is matched with the collection capability of the device. This ensures, to a certain extent, that the collected environmental information can accurately and comprehensively reflect the current environmental occlusion situation. Furthermore, by using target detection algorithms for occlusion identification, replacing manual judgment and simple image recognition, the device can accurately and objectively identify occlusion objects and their degree of occlusion in the environment. This effectively reduces the error in determining the occlusion state, provides a reliable basis for matching the target ranging curve, and to a certain extent reduces the interference of environmental occlusion on Bluetooth signal propagation. This improves the accuracy and precision of Bluetooth ranging, reduces the problem of false locking or insensitive unlocking caused by ranging errors, and thus improves the security and stability of the unlocking process to a certain extent.
[0091] Please see Figure 5 In some implementations, the target ranging curve includes the measured value of Bluetooth signal strength per unit distance and the path loss index. Step 02 includes: 021: Based on the occlusion status, determine the measured value of the Bluetooth signal strength and the path loss index corresponding to the occlusion status; 022: Determine the target ranging curve based on the measured value of Bluetooth signal strength and path loss index.
[0092] In some embodiments, the second determining module is further configured to determine, based on the occlusion state, the measured value of the Bluetooth signal strength and the path loss index corresponding to the occlusion state. The second determining module is also configured to determine the target ranging curve based on the measured value of the Bluetooth signal strength and the path loss index.
[0093] In some implementations, the processor is further configured to determine, based on the occlusion state, the measured value of the Bluetooth signal strength and the path loss index corresponding to the occlusion state. The processor is also configured to determine the target ranging curve based on the measured value of the Bluetooth signal strength and the path loss index.
[0094] Specifically, the measured value of Bluetooth signal strength per unit distance refers to the actual Bluetooth signal strength value collected by the receiver when the Bluetooth transmitter and receiver are 1m apart under unobstructed or specific obstruction conditions. That is, the measured value of RSSI when the distance is 1m, which is the basic parameter for fitting the target ranging curve.
[0095] The path loss index is a parameter representing the rate at which the signal strength of a Bluetooth signal decreases as the propagation distance increases. Different propagation environments correspond to different path loss indices, and it is another fundamental parameter for fitting the target ranging curve.
[0096] In some implementations, the distance curves estimated by three Bluetooth modules based on RSSI, i.e. target ranging curves, can be pre-fitted using a free space path loss model for wireless signal propagation. These curves correspond to the cases where there is no obstruction, 50% obstruction, and 100% obstruction within the detection range of the camera module deployed by the access control device, respectively.
[0097] For example:
[0098]
[0099]
[0100] in, , and The spacing corresponds to the detection range when there is no occlusion, 50% occlusion, and 100% occlusion, respectively. RSSI value at that time , and These correspond to the measured RSSI values at a distance of 1m when there is no obstruction, 50% obstruction, and 100% obstruction within the detection range, respectively. , and These correspond to the path loss indices for no occlusion, 50% occlusion, and 100% occlusion within the detection range, respectively.
[0101] In some implementations, parameters , and and parameters , and It can be obtained through extensive environmental sampling and data fitting, and can reflect the Bluetooth signal propagation characteristics under different occlusion conditions.
[0102] The algorithm processing module uses a target detection algorithm to determine which target ranging curve to use based on the current occlusion state of the environment.
[0103] Furthermore, in some embodiments, the storage medium also stores parameters obtained based on the target detection algorithm fitting. and parameters The curve formula corresponding to the occlusion state:
[0104]
[0105] in, This is a mapping value for the occlusion state. and Parameters when there is no obstruction and parameters measured value and These are the coefficients of the fitted curve.
[0106] The main controller receives the occlusion status determined by the algorithm processing module and outputs it. After obtaining the values, the above-mentioned fitted curve formula and the measured values under unobstructed conditions can be retrieved from the storage medium. and Substitute these values into the calculation to obtain the measured value of Bluetooth signal strength per unit distance and the path loss index corresponding to the current occlusion state.
[0107] Subsequently, the data processing module substitutes the measured value of Bluetooth signal strength per unit distance and the path loss index into a simplified free space path loss model for wireless signal propagation. Through mathematical fitting calculation, it generates a target ranging curve that matches the current occlusion state. The target ranging curve can reflect the correspondence between Bluetooth signal strength value and distance between devices in the current environment.
[0108] Thus, by matching the measured Bluetooth signal strength per unit distance and the path loss index according to the occlusion state, the measured Bluetooth signal strength per unit distance and the path loss index are made consistent with the Bluetooth signal propagation attenuation law of the current environment. This allows the target ranging curve generated based on the measured Bluetooth signal strength per unit distance and the path loss index to truly reflect the correspondence between signal strength and distance in the current environment, thereby improving the accuracy of the ranging curve to a certain extent. It effectively reduces the interference of environmental occlusion on Bluetooth ranging, improves the accuracy of Bluetooth ranging, and further reduces the phenomenon of false locking and insensitive unlocking caused by ranging errors, thus improving the security and stability of the unlocking process.
[0109] Furthermore, different occlusion states correspond to different parameter combinations, enabling access control devices to generate corresponding target ranging curves based on the actual occlusion state. This improves the adaptability of access control devices to different installation environments to a certain extent, eliminates the need for manual debugging, reduces the debugging and maintenance costs of the devices, enhances the versatility of access control devices, and optimizes the user experience.
[0110] Please see Figure 6 In some implementations, step 03 includes: 031: Send a broadcast packet to the mobile device, wherein the mobile device extracts and processes the received broadcast packet to obtain the first media access control address and the first universal unique identifier of the access control device in the broadcast packet, and compares the first media access control address and the first universal unique identifier with the second media access control address and the second universal unique identifier of the access control device that are stored in advance. If the first media access control address and the second media access control address are the same and the first universal unique identifier and the second universal unique identifier are the same, send Bluetooth connection confirmation information to the access control device. 032: After receiving the Bluetooth connection confirmation information, the first Bluetooth signal strength value between the access control device and the mobile device is collected, wherein the target Bluetooth signal strength value includes the first Bluetooth signal strength value; 033: Based on the target ranging curve, the first Bluetooth signal strength value is converted into a first target distance value, wherein the target distance value includes the first target distance value.
[0111] In some embodiments, the calculation module is further configured to send a broadcast packet to the mobile device, wherein the mobile device extracts the received broadcast packet to obtain the first media access control address and the first universal unique identifier of the access control device from the broadcast packet, and compares the first media access control address and the first universal unique identifier with the pre-stored second media access control address and the second universal unique identifier of the access control device, respectively. If the first media access control address and the second media access control address are the same and the first universal unique identifier and the second universal unique identifier are the same, a Bluetooth connection confirmation message is sent to the access control device. The calculation module is further configured to, after receiving the Bluetooth connection confirmation message, collect a first Bluetooth signal strength value between the access control device and the mobile device, wherein the target Bluetooth signal strength value includes the first Bluetooth signal strength value. The calculation module is further configured to convert the first Bluetooth signal strength value into a first target distance value according to a target ranging curve, wherein the target distance value includes the first target distance value.
[0112] In some embodiments, the processor is further configured to send a broadcast packet to the mobile device, wherein the mobile device extracts the received broadcast packet to obtain a first media access control address and a first universal unique identifier (UUID) of the access control device from the broadcast packet, compares the first media access control address and the first UUID with a pre-stored second media access control address and a second UUID of the access control device, respectively, and if the first media access control address and the second media access control address and the first UUID are the same, sends Bluetooth connection confirmation information to the access control device. The processor is further configured to, after receiving the Bluetooth connection confirmation information, acquire a first Bluetooth signal strength value between the access control device and the mobile device, wherein the target Bluetooth signal strength value includes the first Bluetooth signal strength value. The processor is further configured to convert the first Bluetooth signal strength value into a first target distance value according to a target ranging curve, wherein the target distance value includes the first target distance value.
[0113] Specifically, the broadcast packet is a Bluetooth signal packet containing device identity information that is periodically sent out by the Bluetooth module of the access control device based on the Bluetooth communication protocol, which can be used to realize signal interaction with surrounding mobile devices.
[0114] The Media Access Control Address (MAC) is the hardware address of a Bluetooth device, which can be used to distinguish different Bluetooth devices and is unique.
[0115] A Universally Unique Identifier (UUID) is an identification code set by an access control device for its contactless unlocking function, which can be used to identify the contactless unlocking service of the access control device.
[0116] The first media access control address is the media access control address carried by the access control device in the broadcast packet.
[0117] The first universally unique identifier is the unique identifier carried by the access control device in the broadcast packet, which is used to identify the service attributes and identity of the device.
[0118] The second media access control address is the media access control address of the corresponding access control device that is pre-stored in the mobile device.
[0119] The second universal unique identifier is the universal unique identifier of the corresponding access control device that is pre-stored in the mobile device.
[0120] The Bluetooth connection confirmation message is a signal packet sent by the mobile device to the access control device after the identifier is matched, indicating that the device agrees to establish a Bluetooth connection.
[0121] The first Bluetooth signal strength value is the Bluetooth signal strength value collected by the access control device after receiving the Bluetooth connection confirmation information between the access control device and the mobile device. It can be used to calculate the actual distance between the mobile device and the access control device.
[0122] The first target distance value is the distance between the access control device and the mobile device obtained by converting the first Bluetooth signal strength value collected by the access control device through the determined target ranging curve. This value can be used by the access control device to determine the actual location of the mobile device.
[0123] Before a user can use the seamless access control system, their mobile device must be bound to the access control device. When establishing the binding relationship, the user's mobile device must first subscribe to the seamless access service UUID provided by the access control device. At the same time, the access control device generates a Bluetooth identification token composed of the access control device's Bluetooth MAC address, the user's username, the user's login password, and the date the user applied for authorization. This token is encrypted using encryption algorithms such as AES and is sent to the user's mobile device during the binding process.
[0124] After determining the target ranging curve, the Bluetooth module of the access control device periodically sends broadcast packets at a preset frequency. The broadcast packets include the access control device's first media access control address and the first universal unique identifier set for the contactless unlocking function. Nearby mobile devices can receive and reply to the broadcast packets.
[0125] In addition, in some implementations, the broadcast packet also includes the device name of the access control device.
[0126] After scanning the broadcast packet, the Bluetooth module of the mobile device extracts the first media access control address and the first universal unique identifier from the broadcast packet, and compares them one by one with the second media access control address and the second universal unique identifier of the access control device pre-stored in the mobile device.
[0127] If the extracted information does not completely match the pre-stored information, it indicates that the access control device is not bound to the mobile device, and the mobile device will directly ignore the broadcast packet and not respond.
[0128] If the extracted information matches the pre-stored information perfectly, it indicates that the access control device is a device bound to the mobile device. The mobile device replies with a broadcast packet, sending a Bluetooth connection confirmation message to the access control device and requesting to establish a Bluetooth connection.
[0129] After receiving the Bluetooth connection confirmation information sent by the mobile device, the Bluetooth module of the access control device begins to collect the first Bluetooth signal strength value between itself and the mobile device, and transmits the collected first Bluetooth signal strength value to the main controller.
[0130] In this embodiment of the application, the first Bluetooth signal strength value is the target Bluetooth signal strength value between itself and the mobile device collected after establishing a Bluetooth connection through one authentication.
[0131] The main controller substitutes the first Bluetooth signal strength value into the determined target ranging curve, and calculates the first target distance value through the conversion relationship of the target ranging curve.
[0132] In this way, by comparing the media access control address and the universally unique identifier, the access control device and the mobile device are matched. This ensures to a certain extent that only the bound device can initiate a connection request, effectively avoiding interference from irrelevant devices, reducing the collection of invalid data, improving the operating efficiency of the access control device, and thus improving the security of the unlocking process and optimizing the user experience.
[0133] Please see Figure 7 In some implementations, step 033 includes: 0331: Filter and average the collected first Bluetooth signal strength values to obtain the average Bluetooth signal strength value; 0332: Based on the target ranging curve, convert the average Bluetooth signal strength value into the first target distance value.
[0134] In some implementations, the calculation module is further configured to filter and average the acquired multiple sets of first Bluetooth signal strength values to obtain an average Bluetooth signal strength value. The calculation module is also configured to convert the average Bluetooth signal strength value into a first target distance value based on the target ranging curve.
[0135] In some implementations, the processor is further configured to filter and average the acquired multiple sets of first Bluetooth signal strength values to obtain an average Bluetooth signal strength value. The processor is also configured to convert the average Bluetooth signal strength value into a first target distance value based on a target ranging curve.
[0136] Specifically, the filtering process involves screening multiple sets of Bluetooth signal strength values, removing outliers and extreme values, and retaining values that conform to the normal signal propagation pattern.
[0137] The averaging process involves calculating the average of the filtered effective Bluetooth signal strength values to obtain a representative Bluetooth signal strength.
[0138] The average Bluetooth signal strength value is the arithmetic mean of multiple filtered sets of first Bluetooth signal strength values, which reflects the actual Bluetooth signal propagation strength between the access control device and the mobile device.
[0139] The access control device's Bluetooth module collects multiple sets of first Bluetooth signal strength values between itself and pre-authorized mobile devices according to a preset sampling frequency, and transmits all sampled values to the main controller's data processing module.
[0140] The data processing module first filters multiple sets of sampled values, removing the maximum and minimum values, and calculates the average and standard deviation of the remaining sampled values. The normal range of sampled values is determined to be from the average minus the standard deviation to the average plus the standard deviation.
[0141] Subsequently, the first Bluetooth signal strength value within the above range is selected, and the arithmetic mean of the selected valid sample values is calculated to obtain the average Bluetooth signal strength value.
[0142] The formulas for filtering and averaging are as follows:
[0143] in, The RSSI after filtering within one sampling period. The average RSSI is calculated by removing the maximum and minimum values within a sampling period. The mean squared error calculated after removing the maximum and minimum values within a sampling period. In the range RSSI sampled values within, for The quantity, range of .
[0144] The main controller substitutes the average Bluetooth signal strength value into the determined target ranging curve, and calculates the first target distance value between the access control device and the mobile device through the mathematical conversion relationship of the curve.
[0145] Thus, by filtering multiple sets of first Bluetooth signal strength values, outliers and random noise generated during signal acquisition are effectively eliminated, invalid interference data is removed, and valid data that truly reflects the signal propagation status between the access control device and the mobile device is retained. This improves the reliability of the Bluetooth signal strength value to a certain extent, laying a reliable data foundation for the calculation of the first target distance. Furthermore, by averaging the filtered valid data, the randomness of single or small-scale sampling is avoided to a certain extent, enabling the average Bluetooth signal strength value to accurately and stably reflect the actual Bluetooth signal propagation strength between devices. This reduces the ranging error caused by signal fluctuations, thereby reducing the problems of false locking and insensitive unlocking caused by ranging errors to a certain extent, and improving the security and stability of the unlocking process.
[0146] Please see Figure 8 In some implementations, step 04 includes: 041: When the first target distance value is less than or equal to the preset connection distance threshold, a Bluetooth connection is established between the access control device and the mobile device. When a Bluetooth connection has been established, the mobile device sends a Bluetooth identification token to the access control device. The Bluetooth identification token includes a second media access control address and user information. The preset connection distance threshold is greater than the preset unlocking distance threshold. 042: Compare and verify the Bluetooth identification token with the pre-authorization information, which is pre-stored in the access control device's authorization whitelist and includes user information of authorized users; 043: When the Bluetooth identification token matches the pre-authorization information verification, the second Bluetooth signal strength value between the access control device and the mobile device is collected, wherein the target Bluetooth signal strength value includes the second Bluetooth signal strength value; 044: Based on the target ranging curve, the second Bluetooth signal strength value is converted into a second target distance value, wherein the target distance value includes the second target distance value, and the second target distance value is less than the first target distance value; 045: If the distance to the second target is less than or equal to the preset unlocking distance threshold, control the access control device to perform the unlocking operation.
[0147] In some embodiments, the control module is further configured to establish a Bluetooth connection between the access control device and the mobile device when the first target distance value is less than or equal to a preset connection distance threshold. In this case, with the Bluetooth connection established, the mobile device sends a Bluetooth identification token to the access control device. The Bluetooth identification token includes a second media access control address and user information, and the preset connection distance threshold is greater than a preset unlocking distance threshold. The control module is also configured to compare and verify the Bluetooth identification token with pre-authorization information, wherein the pre-authorization information is pre-stored in the access control device's authorization whitelist and includes user information of authorized users. The control module is further configured to collect a second Bluetooth signal strength value between the access control device and the mobile device when the Bluetooth identification token and pre-authorization information match. The target Bluetooth signal strength value includes the second Bluetooth signal strength value. The control module is further configured to convert the second Bluetooth signal strength value into a second target distance value according to a target ranging curve. The target distance value includes the second target distance value, and the second target distance value is less than the first target distance value. The control module is also configured to control the access control device to perform an unlocking operation when the second target distance value is less than or equal to the preset unlocking distance threshold.
[0148] In some embodiments, the processor is further configured to establish a Bluetooth connection between the access control device and the mobile device when the first target distance value is less than or equal to a preset connection distance threshold. In this case, with the Bluetooth connection established, the mobile device sends a Bluetooth identification token to the access control device. The Bluetooth identification token includes a second media access control address and user information, and the preset connection distance threshold is greater than a preset unlocking distance threshold. The processor is also configured to compare and verify the Bluetooth identification token with pre-authorization information, wherein the pre-authorization information is pre-stored in the access control device's authorization whitelist and includes user information of authorized users. The processor is further configured to acquire a second Bluetooth signal strength value between the access control device and the mobile device when the Bluetooth identification token and pre-authorization information match. The target Bluetooth signal strength value includes the second Bluetooth signal strength value. The processor is further configured to convert the second Bluetooth signal strength value into a second target distance value according to a target ranging curve. The target distance value includes the second target distance value, and the second target distance value is less than the first target distance value. The processor is further configured to control the access control device to perform an unlocking operation when the second target distance value is less than or equal to the preset unlocking distance threshold.
[0149] Specifically, the preset connection distance threshold is a distance value pre-set in the access control device to determine whether to establish a Bluetooth connection, and the preset connection distance threshold is greater than the preset unlocking distance threshold. For example, the preset connection distance threshold is 3m, and the preset unlocking distance threshold is 1m.
[0150] The Bluetooth identifier token is an encrypted identifier generated by the access control device during the binding process with the mobile device. It includes the access control device's media access control address and user information, and can be used for secondary authentication.
[0151] User information refers to various types of data that identify a user.
[0152] The authorized whitelist is a collection of authorized user and device information pre-stored in the access control device's storage medium.
[0153] The second Bluetooth signal strength value is the Bluetooth signal reception strength value between the access control device and the mobile device after the access control device completes secondary authentication with the mobile device.
[0154] The second target distance value is the actual distance between the access control device and the mobile device obtained by substituting the second Bluetooth signal strength value into the target ranging curve. The second target distance value is less than the first target distance value.
[0155] The access control device's storage medium pre-stores a preset connection distance threshold and a preset unlocking distance threshold, with the preset connection distance threshold being greater than the preset unlocking distance threshold. It also stores an authorized whitelist that includes information on authorized users.
[0156] The main controller compares the calculated first target distance value with the preset connection distance threshold. If the first target distance value is greater than the preset connection distance threshold, it continues to collect the first Bluetooth signal strength value between itself and the mobile device.
[0157] If the distance to the first target is less than or equal to the preset connection distance threshold, the Bluetooth module is controlled to establish a stable Bluetooth connection with the mobile device.
[0158] After the Bluetooth connection is established, the mobile device sends a Bluetooth identification token containing the second media access control address and user information to the access control device. After receiving the token, the access control device compares and verifies the information in the Bluetooth identification token with the pre-authorized information in the authorization whitelist one by one.
[0159] If a match is verified, the Bluetooth module collects the second Bluetooth signal strength value between itself and the mobile device at a preset frequency. The data processing module filters and averages the second Bluetooth signal strength value, then substitutes it into the target ranging curve to obtain the second target distance value.
[0160] In this embodiment of the application, the second Bluetooth signal strength value is the target Bluetooth signal strength value between itself and the mobile device collected after establishing a Bluetooth connection through two authentications.
[0161] The main controller compares the second target distance value with the preset unlock distance threshold. If the second target distance value is less than or equal to the preset unlock distance threshold, it sends an unlock command to the execution module to control the access control device to perform the unlock operation. If the second target distance is greater than the preset unlock distance threshold, it continues to collect the second Bluetooth signal strength value and determine the distance.
[0162] In this way, by setting a tiered distance judgment standard, a preset connection distance threshold is used as the first judgment and a preset unlock distance threshold as the second judgment. The preset connection distance threshold is greater than the preset unlock distance threshold. Bluetooth connection and identity recognition are completed first at a longer distance, and then unlock judgment is completed at a closer distance. This effectively reduces false unlocking caused by single Bluetooth signal fluctuations or minor distance measurement errors, and improves the rigor of distance judgment. Furthermore, after the initial device identification comparison, the legality of the mobile device and user identity is further confirmed by comparing the Bluetooth identification token with the pre-authorized information in the authorized whitelist. This effectively prevents the security risk of device misuse and improves the security of the unlocking process.
[0163] In addition, after information matching, the second Bluetooth signal strength value is collected and the second target distance value is calculated, which realizes secondary detection of the user's actual location and further confirms whether the user has truly entered the access control's unlocking effective range. To a certain extent, this avoids the problem of false locking when the user is within the connection range but not within the unlocking range, and improves the accuracy of distance determination.
[0164] Please see Figure 9 In some implementations, step 043 includes: 0431: Compare the effective connection duration with the preset Bluetooth connection timeout threshold, where the effective connection duration is the duration of the Bluetooth connection between the access control device and the mobile device; 0432: If the effective connection duration is greater than or equal to the preset Bluetooth connection timeout threshold, disconnect the Bluetooth connection and control the Bluetooth module to resend the broadcast packet; 0433: If the effective connection duration is less than the preset Bluetooth connection timeout threshold, collect the second Bluetooth signal strength value.
[0165] In some implementations, the control module is further configured to compare the effective connection duration with a preset Bluetooth connection timeout threshold, wherein the effective connection duration is the duration of the Bluetooth connection between the access control device and the mobile device. The control module is also configured to disconnect the Bluetooth connection and control the Bluetooth module to retransmit the broadcast packet if the effective connection duration is greater than or equal to the preset Bluetooth connection timeout threshold. The control module is further configured to acquire a second Bluetooth signal strength value if the effective connection duration is less than the preset Bluetooth connection timeout threshold.
[0166] In some implementations, the processor is further configured to compare the effective connection duration with a preset Bluetooth connection timeout threshold, wherein the effective connection duration is the duration of the Bluetooth connection between the access control device and the mobile device. The processor is also configured to disconnect the Bluetooth connection and control the Bluetooth module to retransmit broadcast packets if the effective connection duration is greater than or equal to the preset Bluetooth connection timeout threshold. The processor is also configured to acquire a second Bluetooth signal strength value if the effective connection duration is less than the preset Bluetooth connection timeout threshold.
[0167] Specifically, the effective connection duration is the duration after the access control device and the mobile device establish a valid Bluetooth connection, which can be used to determine whether the connection is valid.
[0168] The preset Bluetooth connection timeout threshold is the maximum duration for which a Bluetooth connection can be validly maintained in the access control device, typically ranging from 100ms to 32s.
[0169] After the access control device completes secondary authentication with the mobile device via Bluetooth identification token, the main controller first obtains the current Bluetooth connection validity duration and compares the real-time accumulated connection validity duration with the preset Bluetooth connection timeout threshold at fixed intervals.
[0170] In some implementations, the fixed period can be adapted synchronously or asynchronously with the sampling period of the Bluetooth signal.
[0171] If the effective connection duration is greater than or equal to the preset Bluetooth connection timeout threshold, it is determined to be a connection timeout. The main controller controls the Bluetooth module to actively disconnect from the Bluetooth connection with the mobile device, release hardware resources, and control the Bluetooth module to restore the initial state of periodically sending broadcast packets, waiting for the next connection request from the mobile device.
[0172] In some implementations, if the user manually turns off Bluetooth on the mobile device after it has established a Bluetooth connection with the access control device, the Bluetooth connection may time out. Furthermore, even if a Bluetooth connection has been established between the mobile device and the access control device, but the user does not intend to open the door and is merely passing by the access control device before moving away from it, connection timeouts may occur due to degraded signal quality.
[0173] If the effective connection duration is less than the preset Bluetooth connection timeout threshold, the connection is considered normal, and the Bluetooth module is controlled to collect the second Bluetooth signal strength value between the device and the mobile device at a preset frequency. After the second Bluetooth signal strength value is collected, the access control device converts the second Bluetooth signal strength value into a second target distance value according to the previously selected target ranging curve. In this way, by comparing the effective connection duration with the preset Bluetooth connection timeout threshold, the validity of the Bluetooth connection is determined. When the connection is valid, the second Bluetooth signal strength value is collected, which to some extent avoids invalid signal collection and data calculation for invalid connections, reduces the computing power and communication resource consumption of the access control device, and improves the overall operating efficiency of the device. Furthermore, for Bluetooth connections determined to be invalid, the access control device will disconnect and release the occupied resources, while allowing the Bluetooth module to resend broadcast packets. This ensures that the communication channel of the access control device is always in a highly efficient and available state, and can respond to connection requests from other legitimate mobile devices in a timely manner, thereby improving the communication reliability and signal interaction response speed of the device.
[0174] Please see Figure 10 In some implementations, the method further includes: 05: If the Bluetooth identifier token and pre-authorization information do not match, disconnect the Bluetooth connection after a first preset time interval; 06: The Bluetooth signal of the mobile device is blocked for a second preset duration, wherein the second preset duration is determined based on the total number of times the Bluetooth identifier token and pre-authorization information verification do not match.
[0175] In some implementations, the control module is further configured to disconnect the Bluetooth connection after a first preset time interval if the Bluetooth identifier token does not match the pre-authorization information verification. The control module is also configured to block the Bluetooth signal of the mobile device for a second preset time interval, wherein the second preset time interval is determined based on the total number of times the Bluetooth identifier token and pre-authorization information verification do not match.
[0176] In some implementations, the processor is further configured to disconnect the Bluetooth connection after a first preset time interval if the Bluetooth identifier token does not match the pre-authorization information verification. The processor is also configured to block the Bluetooth signal of the mobile device for a second preset time interval, wherein the second preset time interval is determined based on the total number of times the Bluetooth identifier token and pre-authorization information verification do not match.
[0177] Specifically, the first preset duration is a fixed duration for which the access control device delays disconnecting from the Bluetooth connection with the mobile device after detecting an authentication mismatch, typically 5 seconds.
[0178] The second preset duration is the duration for which the access control device blocks the Bluetooth signal of mobile devices that do not match the authentication. The second preset duration is dynamically adjusted according to the number of authentication mismatches.
[0179] The total number of verification mismatches is the cumulative number of times a specified mobile device fails to authenticate with the access control device during a certain period.
[0180] The access control device's storage medium has a first preset duration pre-set, and a second preset duration calculation rule based on the total number of authentication failures is also set. For example, the second preset duration is... Minutes, where n is the number of times the current mobile device has failed to connect for authentication, with a maximum value of 10.
[0181] When the access control device detects that the Bluetooth token does not match the pre-authorization information verification, it will not immediately disconnect the Bluetooth connection. Instead, it will wait for a first preset time before the main controller controls the Bluetooth module to actively disconnect from the mobile device.
[0182] Subsequently, the access control device marks the Bluetooth address of the mobile device and counts the total number of authentication failures of the mobile device, that is, the number of times the mobile device has failed to connect and authenticate. Based on the total number of authentication failures of the mobile device and the calculation rules, a second preset duration is determined. During the second preset duration, the Bluetooth signal of the mobile device is blocked, and any connection requests and broadcast replies sent by the mobile device are refused.
[0183] In some implementations, if the total number of authentication failures of a mobile device exceeds 10, it will still be blocked according to the standard of 10 failures.
[0184] After the blocking period ends, the access control device will release the signal block for mobile devices and restore normal signal recognition.
[0185] In this way, by setting a delay disconnection mechanism with a first preset duration, the operational load caused by frequent immediate disconnection operations of the access control equipment is effectively avoided, the invalid actions of the equipment are reduced, and the stability of the equipment connection management is improved. At the same time, it also avoids some problems such as temporary authentication mismatch and direct disconnection of equipment caused by signal fluctuations to a certain extent. It takes into account both the rigor and flexibility of equipment management. Furthermore, by setting a tiered blocking duration according to the number of authentication failures, more strictly restricts illegal devices that repeatedly attempt to access the equipment, effectively preventing continuous interference from illegal devices, reducing the invalid consumption of hardware resources of the access control equipment to a certain extent, and improving the overall operating efficiency of the equipment.
[0186] In addition, by blocking the Bluetooth signals of unauthorized devices, the anti-interference capability and overall security of the access control equipment are effectively improved, reducing the risk of the equipment being hacked.
[0187] Please see Figure 11 In some implementations, step 04 further includes: 046: When the target distance is less than or equal to the preset unlocking distance threshold, the target detection algorithm is used to detect the current environmental information and determine whether a humanoid target exists; 047: When a human-shaped target is detected, the motion state of the human-shaped target is detected by a target tracking algorithm. The motion state includes a first motion state of approaching the access control device, a second motion state of moving away from the access control device, and a third motion state of passing laterally through the access control device. 048: When the movement state is the first movement state, control the access control device to perform the unlocking operation.
[0188] In some implementations, the control module is further configured to detect the presence of a humanoid target by using a target detection algorithm to assess the current environment when the target distance is less than or equal to a preset unlocking distance threshold. The control module is also configured to detect the movement state of the humanoid target using a target tracking algorithm when the humanoid target is detected. This movement state includes a first movement state of approaching the access control device, a second movement state of moving away from the access control device, and a third movement state of passing laterally past the access control device. The control module is further configured to control the access control device to perform an unlocking operation when the movement state is the first movement state.
[0189] In some embodiments, the processor is further configured to detect the current environmental information using a target detection algorithm to determine whether a humanoid target exists when the target distance value is less than or equal to a preset unlocking distance threshold. The processor is also configured to detect the movement state of the humanoid target using a target tracking algorithm when the presence of a humanoid target is detected. The movement state includes a first movement state of approaching the access control device, a second movement state of moving away from the access control device, and a third movement state of passing laterally past the access control device. The processor is further configured to control the access control device to perform an unlocking operation when the movement state is the first movement state.
[0190] Specifically, a human-shaped target is a physical target with a human form identified by a target detection algorithm from the environmental information collected by the camera module of the access control device.
[0191] Target tracking algorithms are algorithms that can continuously track detected targets, analyze and determine the target's trajectory and state. Examples include DeepSort, ByteTrack, and Observation-Centric SORT (OC-SORT). The first motion state is that the trajectory of the human-shaped target shows it moving towards the access control equipment.
[0192] The second motion state is that the trajectory of the humanoid target shows a movement away from the access control equipment.
[0193] The third motion state is a human-shaped target moving parallel to the access control device without any intention to approach or move away.
[0194] After determining that the target distance is less than or equal to the preset unlocking distance threshold, the main controller does not directly perform the unlocking operation, but instead transmits the current environmental information collected by the camera module to the algorithm processing module.
[0195] The algorithm processing module uses a target detection algorithm to detect the current environmental information again and identify whether there are human-shaped targets in the environmental information such as images or video streams.
[0196] If no human-shaped target is detected, it indicates that there are only authorized devices and no actual personnel within the unlock range, and the process returns to the Bluetooth signal sampling and distance determination steps.
[0197] If a humanoid target is detected, the target tracking algorithm is activated to continuously track and detect the humanoid target.
[0198] The algorithm processing module analyzes the movement trajectory of the human target through the target tracking algorithm, and divides the human target's movement state into the first movement state of approaching the access control device, the second movement state of moving away from the access control device, and the third movement state of passing laterally through the access control device.
[0199] If the human-shaped target is determined to be in the second or third motion state, it indicates that the user has no intention of entering the door, and the process returns to the human-shaped target detection step.
[0200] If the human-shaped target is determined to be in the first movement state, it indicates that the user has a clear intention to enter the door. The main controller sends an unlock command to the execution module, which then controls the access control device to perform the unlocking operation.
[0201] Thus, by adding a verification step for human target detection, the unlocking operation is ensured to be triggered only when an actual person is within the unlocking range. This effectively avoids false locks caused by authorized mobile devices being within the unlocking range but no one approaching, improving the security of the unlocking process. Furthermore, by classifying and judging the movement state of human targets through target tracking algorithms, it can effectively distinguish between people's approaching door-opening behavior and non-door-opening behaviors such as passing by or moving away. To a certain extent, this solves the problem that access control devices with single-antenna Bluetooth modules cannot determine the location and intention of opening the door, reducing the probability of false locks triggered by non-door-opening intention behaviors and improving the accuracy of unlocking judgment.
[0202] Please see Figure 12 In some implementations, step 047 includes: 0471: Label the detected humanoid targets and extract their appearance feature vectors; 0472: Predict the next moment's predicted position of the humanoid target, wherein the next moment's predicted position includes the next moment's predicted position of the humanoid target in the first motion state, the next moment's predicted position in the second motion state, and the next moment's predicted position in the third motion state. 0473: Determine the motion state of the humanoid target based on the predicted position at the next moment, the actual detection position at the next moment, and the appearance feature vector. The actual detection position at the next moment includes the actual detection position of the humanoid target at the next moment in the first motion state, the actual detection position at the next moment in the second motion state, and the actual detection position at the next moment in the third motion state.
[0203] In some implementations, the control module is further configured to label the detected humanoid target and extract its appearance feature vector. The control module is also configured to predict the next-moment predicted position of the humanoid target, wherein the next-moment predicted position includes the next-moment predicted position of the humanoid target in a first motion state, a second motion state, and a third motion state. The control module is further configured to determine the motion state of the humanoid target based on the next-moment predicted position, the next-moment actual detection position, and the appearance feature vector, wherein the next-moment actual detection position includes the next-moment actual detection position of the humanoid target in the first motion state, the second motion state, and the third motion state.
[0204] In some embodiments, the processor is further configured to label the detected humanoid target and extract its appearance feature vector. The processor is also configured to predict the next-moment predicted position of the humanoid target, wherein the next-moment predicted position includes the next-moment predicted position of the humanoid target in a first motion state, a second motion state, and a third motion state. The processor is further configured to determine the motion state of the humanoid target based on the next-moment predicted position, the next-moment actual detection position, and the appearance feature vector, wherein the next-moment actual detection position includes the next-moment actual detection position of the humanoid target in the first motion state, the second motion state, and the third motion state.
[0205] Specifically, the appearance feature vector is an N-dimensional vector that can represent the appearance features of a humanoid target by extracting features from the detected humanoid target through convolutional neural networks and other methods.
[0206] The predicted position for the next moment is based on the current motion state of the humanoid target. The position that the humanoid target may appear in the next detection cycle is deduced by the algorithm. Different motion states correspond to different predicted positions.
[0207] The actual detection location at the next moment is the coordinate position of the human-shaped target actually detected by the access control device through the camera module and other sensing modules within a future detection cycle.
[0208] After detecting a humanoid target using the target detection algorithm, the algorithm processing module marks the humanoid detection box and inputs the marked humanoid detection box into the appearance feature extraction convolutional neural network (CNN). The appearance feature extraction convolutional neural network extracts an N-dimensional appearance feature vector that can represent the appearance features of the humanoid target. The appearance feature vector can represent the appearance features of the target, thus realizing the differentiation of different humanoid targets in multi-target scenes.
[0209] Subsequently, the algorithm processing module maintains the motion state of the humanoid target through the target tracking algorithm, including the real-time position and speed of the humanoid target in the image frames captured by the camera module. At the same time, it uses Kalman filtering algorithm and other methods to predict the next position of the humanoid target in the first motion state, the second motion state and the third motion state, respectively, and obtains and stores the position inference results corresponding to the three motion states.
[0210] In the next detection cycle, the camera module collects actual environmental information, and the algorithm processing module detects the collected environmental information to obtain the actual detection position of the human target at the next moment in the first motion state, the second motion state, and the third motion state.
[0211] Subsequently, the algorithm processing module calculates the weighted sum of the Mahalanobis distance and cosine distance between the actual detection position and the predicted position of the humanoid target under the three motion states, and constructs the cost matrix at the corresponding time by combining it with the pre-set fixed weight parameters.
[0212] Finally, using algorithms such as the Hungarian algorithm, the actual detection position and the predicted position under the three motion states are optimally matched based on the cost matrix. The motion state corresponding to the successfully matched predicted position is the true motion state of the humanoid target.
[0213] Thus, by extracting appearance feature vectors to identify humanoid targets, tracking confusion and target loss in multi-target scenarios are effectively avoided, improving the stability of target tracking. Furthermore, the prediction of the next position of humanoid targets under different motion states can effectively avoid the judgment error caused by instantaneous position fluctuations such as short pauses and slight position shifts, making the judgment of motion state more consistent with the actual motion trend of the target.
[0214] Furthermore, by combining the predicted position at the next moment, the actual detected position at the next moment, and the appearance feature vector for comprehensive judgment, a multi-dimensional motion state detection system is constructed. It performs dual verification from two levels: position matching and feature verification, which improves the accuracy and anti-interference ability of motion state judgment to a certain extent. It can effectively distinguish between three motion states: approaching, moving away, and passing laterally, reducing the probability of motion state misjudgment. This, in turn, reduces the possibility of door access mis-locking caused by motion state misjudgment, and improves the security and stability of the unlocking process.
[0215] Based on the above issues, please refer to Figure 13 This application also provides a method for unlocking an access control device, the method being used on a mobile device, the method comprising: 07: Establish a Bluetooth connection with the access control device. The access control device performs occlusion recognition processing on the current environment in which it is located to determine the occlusion status of the current environment. Based on the occlusion status, it determines the target ranging curve corresponding to the occlusion status. Based on the target ranging curve and the target Bluetooth signal strength value collected between the access control device and the mobile device, it calculates the target distance value between the access control device and the mobile device. If the target distance value is less than or equal to the preset unlocking distance threshold, it controls the access control device to perform an unlocking operation. The mobile device is a pre-authorized device of the access control device.
[0216] This application provides a second device for unlocking access control devices. The access control device unlocking method of this application can be implemented by the second device. Specifically, the second device includes a connection module. The connection module is used to establish a Bluetooth connection with the access control device. The access control device performs occlusion recognition processing on the current environment in which it is located, determines the occlusion state of the current environment, determines a target ranging curve corresponding to the occlusion state based on the occlusion state, and calculates the target distance between the access control device and the mobile device based on the target ranging curve and the collected target Bluetooth signal strength value between the access control device and the mobile device. If the target distance value is less than or equal to a preset unlocking distance threshold, the access control device is controlled to perform an unlocking operation. The mobile device is a pre-authorized device of the access control device.
[0217] This application also provides a server, which includes a memory and a processor. The access control device unlocking method of this application can be implemented by the server of this application. Specifically, the memory stores a computer program, and the processor is used to establish a Bluetooth connection with the access control device. The access control device performs occlusion recognition processing on the current environment in which it is located, determines the occlusion state of the current environment, determines the target ranging curve corresponding to the occlusion state based on the occlusion state, and calculates the target distance value between the access control device and the mobile device based on the target ranging curve and the target Bluetooth signal strength value collected between the access control device and the mobile device. If the target distance value is less than or equal to a preset unlocking distance threshold, the access control device is controlled to perform an unlocking operation. The mobile device is a pre-authorized device of the access control device.
[0218] Specifically, the implementation method of this application is basically the same as the implementation methods corresponding to steps 01 to 04 above, the only difference being the implementing entity. Steps 01 to 04 use access control devices as the implementing entity to realize the complete process of the access control device unlocking method. Step 07 uses mobile devices as the implementing entity to realize the corresponding process of the access control device unlocking method. The implementation process corresponding to mobile devices is basically the same as the implementation process of access control devices. For the specific implementation process, please refer to the specific implementation process of the access control devices above, which will not be repeated here.
[0219] Please see Figure 14 In some implementations, step 07 includes: 071: Extract and process the broadcast packet sent by the received access control device to obtain the first media access control address and the first universal unique identifier of the access control device from the broadcast packet; 072: Compare the first media access control address and the first universal unique identifier with the second media access control address and the second universal unique identifier of the pre-stored access control device; 073: When the first media access control address and the second media access control address are the same and the first universal unique identifier is the same as the second universal unique identifier, a Bluetooth connection confirmation message is sent to the access control device. After receiving the Bluetooth connection confirmation message, the access control device collects the first Bluetooth signal strength value between the access control device and the mobile device, and converts the first Bluetooth signal strength value into a first target distance value according to the target ranging curve. The target Bluetooth signal strength value includes the first Bluetooth signal strength value, and the target distance value includes the first target distance value.
[0220] In some embodiments, the connection module is further configured to extract and process broadcast packets sent by the access control device to obtain the first media access control address and the first universal unique identifier of the access control device from the broadcast packets. The connection module is also configured to compare the first media access control address and the first universal unique identifier with the second media access control address and the second universal unique identifier of the access control device that are pre-stored. The connection module is further configured to send Bluetooth connection confirmation information to the access control device if the first media access control address and the second media access control address are the same and the first universal unique identifier and the second universal unique identifier are the same. Upon receiving the Bluetooth connection confirmation information, the access control device collects a first Bluetooth signal strength value between the access control device and the mobile device, and converts the first Bluetooth signal strength value into a first target distance value according to a target ranging curve. The target Bluetooth signal strength value includes the first Bluetooth signal strength value, and the target distance value includes the first target distance value.
[0221] In some embodiments, the processor is further configured to extract and process broadcast packets sent by the access control device to obtain a first media access control address and a first universally unique identifier (UUID) of the access control device from the broadcast packets. The processor is further configured to compare the first media access control address and the first UUID with a pre-stored second media access control address and second UUID of the access control device. The processor is further configured to send Bluetooth connection confirmation information to the access control device if the first media access control address and the second media access control address are the same and the first UUID is the same as the second UUID. Upon receiving the Bluetooth connection confirmation information, the access control device collects a first Bluetooth signal strength value between the access control device and the mobile device, and converts the first Bluetooth signal strength value into a first target distance value according to a target ranging curve. The target Bluetooth signal strength value includes the first Bluetooth signal strength value, and the target distance value includes the first target distance value.
[0222] Specifically, the implementation method of this application is basically the same as the implementation method corresponding to steps 031 to 033 above, the only difference being the implementing entity. Steps 031 to 033 use access control equipment as the implementing entity to realize the complete process of the access control equipment unlocking method. Steps 071 to 073 use mobile devices as the implementing entity to realize the corresponding process of the access control equipment unlocking method. The implementation process corresponding to mobile devices is basically the same as the implementation process of access control equipment. For the specific implementation process, please refer to the specific implementation process of access control equipment above, which will not be repeated here.
[0223] Please see Figure 15 In some implementations, the method further includes: 08: When a Bluetooth connection has been established, a Bluetooth identification token is sent to the access control device. The Bluetooth identification token includes a second media access control address and user information. If the first target distance value is less than or equal to a preset connection distance threshold, the access control device establishes a Bluetooth connection with the mobile device. The Bluetooth identification token is compared and verified with the pre-authorization information. If the Bluetooth identification token and the pre-authorization information match, the second Bluetooth signal strength value between the access control device and the mobile device is collected. According to the target ranging curve, the second Bluetooth signal strength value is converted into a second target distance value. If the second target distance value is less than or equal to a preset unlocking distance threshold, the access control device is controlled to perform an unlocking operation. The preset connection distance threshold is greater than the preset unlocking distance threshold. The pre-authorization information is pre-stored in the access control device's authorization whitelist. The pre-authorization information includes the user information of authorized users. The target Bluetooth signal strength value includes the second Bluetooth signal strength value. The target distance value includes the second target distance value. The second target distance value is less than the first target distance value.
[0224] In some embodiments, the connection module is further configured to send a Bluetooth identification token to the access control device when a Bluetooth connection has been established. The Bluetooth identification token includes a second media access control address and user information. If the first target distance value is less than or equal to a preset connection distance threshold, the access control device establishes a Bluetooth connection with the mobile device. The Bluetooth identification token is compared and verified with pre-authorization information. If the Bluetooth identification token and pre-authorization information match, a second Bluetooth signal strength value between the access control device and the mobile device is collected. Based on a target ranging curve, the second Bluetooth signal strength value is converted into a second target distance value. If the second target distance value is less than or equal to a preset unlocking distance threshold, the access control device is controlled to perform an unlocking operation. The preset connection distance threshold is greater than the preset unlocking distance threshold. The pre-authorization information is pre-stored in the access control device's authorization whitelist and includes user information of authorized users. The target Bluetooth signal strength value includes the second Bluetooth signal strength value, and the target distance value includes the second target distance value, which is less than the first target distance value.
[0225] In some embodiments, the processor is further configured to send a Bluetooth identification token to the access control device when a Bluetooth connection has been established. The Bluetooth identification token includes a second media access control address and user information. If the first target distance value is less than or equal to a preset connection distance threshold, the access control device establishes a Bluetooth connection with the mobile device. The Bluetooth identification token is compared and verified with pre-authorization information. If the Bluetooth identification token and pre-authorization information match, a second Bluetooth signal strength value between the access control device and the mobile device is collected. Based on a target ranging curve, the second Bluetooth signal strength value is converted into a second target distance value. If the second target distance value is less than or equal to a preset unlocking distance threshold, the access control device is controlled to perform an unlocking operation. The preset connection distance threshold is greater than the preset unlocking distance threshold. The pre-authorization information is pre-stored in the access control device's authorization whitelist and includes user information of authorized users. The target Bluetooth signal strength value includes the second Bluetooth signal strength value, and the target distance value includes the second target distance value, which is less than the first target distance value.
[0226] Specifically, the implementation method of this application is basically the same as the implementation method corresponding to steps 041 to 045 above, the only difference being the implementing entity. Steps 041 to 045 use access control equipment as the implementing entity to realize the complete process of the access control equipment unlocking method. Step 08 uses mobile device as the implementing entity to realize the corresponding process of the access control equipment unlocking method. The implementation process corresponding to mobile device is basically the same as the implementation process of access control equipment. For the specific implementation process, please refer to the specific implementation process of access control equipment above, which will not be repeated here.
[0227] Please refer to the following: Figure 16 and Figure 17 The following uses a smart access control device D5X0 installed in an office building as an example to explain the access control device unlocking method of this application: The D5X0 smart access control device is designed with a single-antenna BLE Bluetooth module and does not support BLE 6.0. It is equipped with a camera module, a main controller, and a Bluetooth module. It has pre-stored RSSI ranging fitting curves for three environments: no obstruction, 50% obstruction, and 100% obstruction. At the same time, the preset Bluetooth connection distance threshold is set to 3m, the preset unlocking distance threshold is set to 1m, the preset Bluetooth connection timeout threshold is set to 32s, the RSSI sampling frequency is set to 40Hz, and the sampling period is set to 1s. The authorized whitelist stores the MAC address of employee A's mobile device, user information, and encrypted Bluetooth identification token.
[0228] After the access control equipment is installed, it first captures the installation environment through the camera module. The algorithm processing module calls the YOLO target detection algorithm to perform grid division and occlusion recognition on the image. If a glass partition is detected in front of the access control, with an occlusion ratio of about 50%, the RSSI ranging curve corresponding to the 50% occlusion is retrieved from the storage medium as the target ranging curve for the current environment, thus completing the environment adaptation and initial configuration.
[0229] The Bluetooth module then continuously sends broadcast packets at fixed intervals. The broadcast packets include the MAC address of the access control device, the device name, and the UUID of the contactless access service.
[0230] Employee A approaches the access control device with an authorized mobile phone. After the mobile phone scans the access control broadcast packet via Bluetooth, it extracts the MAC address and UUID from the broadcast packet and compares the extracted MAC address and UUID with its own pre-stored access control device information. If they match, the mobile phone sends a Bluetooth connection confirmation message to the access control device. After receiving the connection confirmation message, the access control device begins to collect the first Bluetooth signal strength value, i.e., the first RSSI value, between the mobile phone and the device at a frequency of 40Hz.
[0231] The access control device's data processing module filters the collected first RSSI values. First, it removes the maximum and minimum values, calculates the average and standard deviation, filters out the sampled values that meet the range, and averages them. Then, it converts the average RSSI value into the first target distance value using a target ranging curve with 50% occlusion. The detected first target distance value is 2.5m, which is less than the preset connection distance threshold of 3m. The access control device and the mobile phone successfully establish a Bluetooth connection, and the mobile phone then sends a Bluetooth identification token containing the MAC address and employee A's information to the access control device.
[0232] After receiving the Bluetooth identification token, the access control device compares and verifies it with the pre-authorized information in the authorized whitelist for secondary authentication. After confirming a successful match, the access control device first queries the current Bluetooth connection's effective duration and obtains the preset Bluetooth connection timeout threshold, which states that the current effective duration has accumulated to 10 seconds, less than 32 seconds.
[0233] Subsequently, the access control device continues to collect the second Bluetooth signal strength value, i.e., the second RSSI value, at a frequency of 40Hz with the mobile phone. The data processing module performs filtering and averaging on the second RSSI value, and converts it through the target ranging curve to obtain a second target distance value of 0.8m, which is less than the preset unlocking distance threshold of 1m, triggering the human target detection and motion state judgment process.
[0234] The access control device's camera module captures images in real time. The algorithm processing module then calls the YOLO object detection algorithm to detect human-shaped targets in the image, marks the human-shaped targets, and extracts the human-shaped appearance feature vectors of the human-shaped targets through a CNN convolutional neural network.
[0235] Subsequently, the DeepSort target tracking algorithm is invoked to maintain the position and velocity information of the human-shaped target. The predicted positions of the human-shaped target in the next moment are predicted by Kalman filtering in three motion states: approaching, moving away, and passing laterally through the access control device. Then, the weighted sum of the Mahalanobis distance and cosine distance between the actual detected position and each predicted position is calculated to construct a cost matrix. The optimal matching is completed through the Hungarian algorithm. Finally, the motion state of the human-shaped target is determined to be the first motion state of approaching the access control device, confirming that employee A has the intention to open the door.
[0236] After receiving the detection result from the algorithm processing module, the main controller of the access control device triggers an unlocking command and controls the access control device to perform the door opening operation. Employee A passes through smoothly. The Bluetooth connection continues to time after the door is opened. If there is no subsequent communication interaction, when the preset Bluetooth connection timeout threshold of 32 seconds is reached, the access control device actively disconnects the Bluetooth connection with the mobile phone, and the Bluetooth module returns to the initial state of periodically sending broadcast packets.
[0237] If an unauthorized employee (Employee B) approaches the access control device with their mobile phone, Employee B's phone scans the broadcast packet and completes MAC and UUID matching, establishing a Bluetooth connection with the access control device. However, during the secondary authentication process, the Bluetooth token sent by Employee B's phone does not match the access control's authorization whitelist information. The access control device determines that the secondary authentication has failed and will actively disconnect the Bluetooth connection with Employee B's phone after 5 seconds. At the same time, it will block Employee B's phone's Bluetooth signal for 2 minutes. If Employee B attempts to connect multiple times and the number of authentication failures reaches 10, the access control device will block Employee B's phone's Bluetooth signal for 512 minutes, during which time Employee B's phone will be unable to establish a Bluetooth connection with the access control device.
[0238] In addition, if employee A's mobile phone establishes a Bluetooth connection with the access control system and completes authentication, but employee A does not approach the access control device, but moves away from the access control device, and the distance value converted from the RSSI value collected by the access control device is always greater than the preset unlocking distance threshold of 1m, and the Bluetooth connection validity period accumulates to the preset Bluetooth connection timeout threshold of 32s, the access control device will determine that the connection has timed out, actively disconnect the Bluetooth connection with the mobile phone, release hardware resources, and the Bluetooth module will resume sending broadcast packets, waiting for the next legitimate connection request.
[0239] If an authorized user C approaches the access control device with a mobile phone, after the access control device completes distance detection and secondary authentication, and detects that the distance value is less than the preset unlocking distance threshold, but the algorithm processing module detects no humanoid target in the image through the YOLO algorithm, or detects a humanoid target but the DeepSort algorithm determines that user C's movement state is the third movement state of lateral movement, the access control device will not perform the unlocking operation, and will continue to collect RSSI values and detect the movement state of the humanoid target until the Bluetooth connection times out and disconnects.
[0240] This application also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, it implements the methods of some of the above-described embodiments.
[0241] This application also provides a computer-readable storage medium storing a computer program that, when executed by one or more processors, implements the methods of some of the above-described embodiments.
[0242] This application also provides a computer program product, including a computer program / instructions that, when executed by a processor, implement the methods of some of the above-described embodiments.
[0243] It is understood that a computer program includes computer program code. Computer program code can be in the form of source code, object code, executable files, or some intermediate form. Computer-readable storage media can include: any entity or device capable of carrying computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), and software distribution media, etc.
[0244] In this specification, the terms "specifically," "furthermore," "particularly," "understandably," etc., refer to specific features, structures, materials, or characteristics described in connection with embodiments or examples that are included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.
[0245] Any process or method description in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of executable request code comprising one or more steps for implementing a particular logical function or process, and the scope of the preferred embodiments of this application includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order according to the functions involved, as should be understood by those skilled in the art to which embodiments of this application pertain.
[0246] Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of this application.
Claims
1. A method for unlocking an access control device, characterized in that, The method is used in access control devices, and the method includes: The current environment in which the access control device is located is subjected to occlusion recognition processing to determine the occlusion status of the current environment; Based on the occlusion state, determine the target ranging curve corresponding to the occlusion state; Based on the target ranging curve and the target Bluetooth signal strength value collected between the access control device and the mobile device, the target distance value between the access control device and the mobile device is calculated, wherein the mobile device is a pre-authorized device of the access control device and has established a Bluetooth connection with the access control device; If the target distance value is less than or equal to a preset unlocking distance threshold, the access control device is controlled to perform an unlocking operation.
2. The access control device unlocking method according to claim 1, characterized in that, The step of performing occlusion recognition processing on the current environment where the access control device is located, and determining the occlusion state of the current environment, includes: Collect current environmental information within the detection range of the access control device; The occlusion status of the current environment is determined by performing occlusion recognition processing on the current environment information based on the target detection algorithm.
3. The access control device unlocking method according to claim 1, characterized in that, The target ranging curve includes the measured value of Bluetooth signal strength per unit distance and the path loss index. Determining the target ranging curve corresponding to the occlusion state based on the occlusion state includes: Based on the occlusion state, determine the measured value of the Bluetooth signal strength and the path loss index corresponding to the occlusion state; The target ranging curve is determined based on the measured value of the Bluetooth signal strength and the path loss index.
4. The access control device unlocking method according to claim 1, characterized in that, The step of calculating the target distance between the access control device and the mobile device based on the target ranging curve and the collected target Bluetooth signal strength value between the access control device and the mobile device includes: A broadcast packet is sent to the mobile device, wherein the mobile device extracts the received broadcast packet to obtain the first media access control address and the first universal unique identifier of the access control device from the broadcast packet, and compares the first media access control address and the first universal unique identifier with the second media access control address and the second universal unique identifier of the access control device that are pre-stored. If the first media access control address and the second media access control address are the same and the first universal unique identifier and the second universal unique identifier are the same, a Bluetooth connection confirmation message is sent to the access control device. After receiving the Bluetooth connection confirmation information, the first Bluetooth signal strength value between the access control device and the mobile device is collected, wherein the target Bluetooth signal strength value includes the first Bluetooth signal strength value; Based on the target ranging curve, the first Bluetooth signal strength value is converted into a first target distance value, wherein the target distance value includes the first target distance value.
5. The access control device unlocking method according to claim 4, characterized in that, The step of converting the first Bluetooth signal strength value into the first target distance value based on the target ranging curve includes: The collected multiple sets of the first Bluetooth signal strength values are filtered and averaged to obtain the average Bluetooth signal strength value. Based on the target ranging curve, the average Bluetooth signal strength value is converted into the first target distance value.
6. The access control device unlocking method according to claim 5, characterized in that, When the target distance value is less than or equal to a preset unlocking distance threshold, controlling the access control device to perform an unlocking operation includes: If the first target distance value is less than or equal to a preset connection distance threshold, a Bluetooth connection is established between the access control device and the mobile device. If the Bluetooth connection has been established, the mobile device sends a Bluetooth identification token to the access control device. The Bluetooth identification token includes the second media access control address and user information. The preset connection distance threshold is greater than the preset unlocking distance threshold. The Bluetooth identifier token is compared and verified with the pre-authorization information, wherein the pre-authorization information is pre-stored in the access control device's authorization whitelist and includes user information of authorized users; If the Bluetooth identifier token matches the pre-authorization information verification, a second Bluetooth signal strength value is collected between the access control device and the mobile device, wherein the target Bluetooth signal strength value includes the second Bluetooth signal strength value; According to the target ranging curve, the second Bluetooth signal strength value is converted into a second target distance value, wherein the target distance value includes the second target distance value, and the second target distance value is less than the first target distance value; If the second target distance value is less than or equal to the preset unlocking distance threshold, the access control device is controlled to perform an unlocking operation.
7. The access control device unlocking method according to claim 6, characterized in that, When the Bluetooth identifier token matches the pre-authorization information verification, the step of collecting a second Bluetooth signal strength value between the access control device and the mobile device includes: The effective connection duration is compared with a preset Bluetooth connection timeout threshold, wherein the effective connection duration is the duration of the Bluetooth connection between the access control device and the mobile device; If the duration of the connection is greater than or equal to the preset Bluetooth connection timeout threshold, the Bluetooth connection is disconnected and the Bluetooth module is controlled to resend the broadcast packet; If the effective duration of the connection is less than the preset Bluetooth connection timeout threshold, the second Bluetooth signal strength value is collected.
8. The access control device unlocking method according to claim 6, characterized in that, The method further includes: If the Bluetooth identifier token does not match the pre-authorization information verification, the Bluetooth connection is disconnected after a first preset time interval. The Bluetooth signal of the mobile device is blocked for a second preset duration, wherein the second preset duration is determined based on the total number of times the Bluetooth identifier token and the pre-authorization information verification do not match.
9. The unlocking method for access control equipment according to any one of claims 2-8, characterized in that, When the target distance value is less than or equal to a preset unlocking distance threshold, controlling the access control device to perform an unlocking operation includes: If the target distance value is less than or equal to the preset unlocking distance threshold, the target detection algorithm is used to detect the current environmental information to determine whether a humanoid target exists. When the presence of the human-shaped target is detected, the movement state of the human-shaped target is detected by a target tracking algorithm. The movement state includes a first movement state of approaching the access control device, a second movement state of moving away from the access control device, and a third movement state of passing laterally through the access control device. When the motion state is the first motion state, the access control device is controlled to perform an unlocking operation.
10. The access control device unlocking method according to claim 9, characterized in that, The step of detecting the motion state of the humanoid target using a target tracking algorithm when the humanoid target is detected includes: The detected humanoid target is labeled, and the appearance feature vector of the humanoid target is extracted; Predict the next moment's predicted position of the humanoid target, wherein the next moment's predicted position includes the next moment's predicted position of the humanoid target in the first motion state, the next moment's predicted position in the second motion state, and the next moment's predicted position in the third motion state. The motion state of the humanoid target is determined based on the predicted position at the next moment, the actual detection position at the next moment, and the appearance feature vector. The actual detection position at the next moment includes the actual detection position of the humanoid target at the next moment in the first motion state, the actual detection position at the next moment in the second motion state, and the actual detection position at the next moment in the third motion state.
11. A method for unlocking an access control device, characterized in that, The method is used in a mobile device, and the method includes: A Bluetooth connection is established with the access control device, wherein the access control device performs occlusion recognition processing on the current environment in which the access control device is located, determines the occlusion state of the current environment, determines the target ranging curve corresponding to the occlusion state based on the occlusion state, and calculates the target distance value between the access control device and the mobile device based on the target ranging curve and the target Bluetooth signal strength value collected between the access control device and the mobile device. If the target distance value is less than or equal to a preset unlocking distance threshold, the access control device is controlled to perform an unlocking operation, and the mobile device is a pre-authorized device of the access control device.
12. The access control device unlocking method according to claim 11, characterized in that, Establishing a Bluetooth connection with the access control device includes: The received broadcast packet sent by the access control device is extracted and processed to obtain the first media access control address and the first universal unique identifier of the access control device in the broadcast packet; The first media access control address and the first universal unique identifier are compared with the second media access control address and the second universal unique identifier of the access control device that are pre-stored. When the first media access control address and the second media access control address are the same, and the first universal unique identifier is the same as the second universal unique identifier, a Bluetooth connection confirmation message is sent to the access control device. After receiving the Bluetooth connection confirmation message, the access control device collects a first Bluetooth signal strength value between the access control device and the mobile device, and converts the first Bluetooth signal strength value into a first target distance value according to the target ranging curve. The target Bluetooth signal strength value includes the first Bluetooth signal strength value, and the target distance value includes the first target distance value.
13. The access control device unlocking method according to claim 12, characterized in that, The method further includes: If a Bluetooth connection has been established, a Bluetooth identification token is sent to the access control device. The Bluetooth identification token includes the second media access control address and user information. If the first target distance value is less than or equal to a preset connection distance threshold, the access control device establishes a Bluetooth connection with the mobile device. The Bluetooth identification token is compared and verified with pre-authorization information. If the Bluetooth identification token and the pre-authorization information match, a second Bluetooth signal strength value is collected between the access control device and the mobile device. Based on the target ranging curve, the second Bluetooth signal strength value is converted into a second target distance value. If the second target distance value is less than or equal to the preset unlocking distance threshold, the access control device is controlled to perform an unlocking operation. The preset connection distance threshold is greater than the preset unlocking distance threshold. The pre-authorization information is pre-stored in the access control device's authorization whitelist and includes user information of authorized users. The target Bluetooth signal strength value includes the second Bluetooth signal strength value, and the target distance value includes the second target distance value, which is less than the first target distance value.
14. An electronic device, characterized in that, The method includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, it implements the method according to any one of claims 1-13.
15. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by one or more processors, implements the method according to any one of claims 1-13.
16. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by the processor, they implement the method described in any one of claims 1-13.