Garage access control verification method based on Bluetooth technology and positioning technology and related equipment

By combining Bluetooth technology and UWB positioning technology, the automated verification and control of the garage access control system is achieved, and the security risks and user experience problems of traditional systems are solved, and the security and convenience of access control operations are improved.

CN118918653APending Publication Date: 2024-11-08SHENZHEN KUAIJIAN TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411295506.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-14
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

Traditional garage access control systems have problems with security risks and poor user experience. Bluetooth communication signals are prone to monitoring and data stolen, and users need to manually operate the remote control or swipe the card to open the door.

Method used

Using the garage access control verification method based on Bluetooth technology and positioning technology, the BLE module is used to establish a Bluetooth communication connection with the user equipment, combined with the UWB module to measure the location information of the user equipment, and determine whether the user equipment is close to the garage door through encrypted information and position verification, and automatically control it. Opening and closing of the door.

Benefits of technology

It improves the safety and user experience of garage door startup, realizes sensorless access control, avoids manual operation, and enhances the safety and convenience of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118918653A_ABST
    Figure CN118918653A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a garage access control verification method based on a Bluetooth technology and a positioning technology and related equipment, which are used for controlling the opening of a garage door and improving the use experience of a user on the premise of meeting the safety. The method is applied to a garage controller, the garage controller comprises a BLE module and a UWB module, and the method comprises the following steps: when it is detected that user equipment enters a Bluetooth detection range of the garage controller, establishing Bluetooth communication connection with the user equipment based on the BLE module, and measuring previous moment position information and current moment position information of the user equipment based on the UWB module; based on a BLE module, user identification information of the user equipment is obtained through Bluetooth communication connection, and when the user identification information is successfully matched with local identification information stored in the garage controller, whether the user equipment is close to the garage controller or not is judged according to the position information at the previous moment and the position information at the current moment; and if the user equipment is close to the garage controller, controlling a garage door to be opened so as to release the user equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of Internet of Things technology, and in particular, to a garage access verification method and related equipment based on Bluetooth technology and positioning technology. Background Art

[0002] Traditional garage door access systems mainly rely on infrared remote control or radio frequency identification (RFID) technology, and users need to manually operate the remote control or swipe the card to open the garage door. This method is not only inconvenient, but also has certain security risks, such as the remote control is lost or the signal is intercepted.

[0003] With the development of Bluetooth low energy (BLE) and ultrawide band (UWB) positioning technology, more intelligent garage access control systems can be realized by using these technologies. However, Bluetooth communication signals also have risks such as being monitored and data being stolen. Therefore, how to improve the user experience while ensuring the security of the access control system is a technical problem that needs to be solved urgently. Summary of the invention

[0004] The embodiment of the present application provides a garage door access verification method and related equipment based on Bluetooth technology and positioning technology, which are used to control the opening of the garage door when the user device is close to the garage, thereby improving the user experience, while ensuring safety.

[0005] In a first aspect, an embodiment of the present application provides a garage access verification method based on Bluetooth technology and positioning technology, which is applied to a garage controller, wherein the garage controller includes a Bluetooth low energy BLE module and an ultra-wideband UWB module, and the method includes:

[0006] When it is detected that the user device enters the Bluetooth detection range of the garage controller, a Bluetooth communication connection is established with the user device based on the BLE module, and the location information of the user device at the last moment and the location information at the current moment are measured based on the UWB module; wherein the location information at the last moment is used to indicate the location information of the user device at the last moment, and the location information at the current moment is used to indicate the location information of the user device at the current moment;

[0007] Based on the BLE module, user identification information of the user device is obtained through the Bluetooth communication connection, so that when the user identification information successfully matches the local identification information stored in the garage controller, it is determined whether the user device is close to the garage controller according to the location information at the previous moment and the location information at the current moment;

[0008] If the user device is close to the garage controller, the garage door is controlled to open to allow the user device to pass.

[0009] Optionally, establishing a Bluetooth communication connection with the user equipment based on the BLE module includes:

[0010] Controlling the BLE module to send Bluetooth broadcast information to the user equipment; wherein the Bluetooth broadcast information includes the garage sequence information and garage encryption information of the garage controller;

[0011] The Bluetooth connection is enabled to establish a Bluetooth communication connection with the user device when the user device successfully verifies the garage encryption information and complies with the garage sequence information.

[0012] Optionally, after acquiring the user identification information of the user equipment through the Bluetooth communication connection, the method further includes:

[0013] Verify the user identification information and the local identification information; wherein the user identification information is composed of first header structure information, first payload structure information and first tail check information; the first payload structure information at least includes current timestamp information, identification encryption information and user authentication information corresponding to the user device;

[0014] If the user authentication information and the garage authentication information corresponding to the garage door in the local identification information are correctly verified, sending verification result information to the user device; wherein the verification result information is composed of second header structure information, second payload structure information and second tail check information; the second payload structure information at least includes timestamp information corresponding to the verification result information and authentication return information corresponding to the user authentication information;

[0015] When the user equipment receives the verification result information and confirms that the verification is successful according to the authentication return information, an authentication instruction sent by the user equipment is received to determine that the user identification information matches the local identification information successfully according to the authentication instruction.

[0016] Optionally, the method further comprises:

[0017] If the user authentication information fails to be authenticated with the garage authentication information corresponding to the garage door in the local identification information, waiting for a preset time, and disconnecting the Bluetooth communication connection with the user device when the preset time is exceeded;

[0018] Or, when the user equipment receives the verification result information and confirms the verification failure according to the authentication return information, it waits for the preset time, and when the preset time is exceeded, disconnects the Bluetooth communication connection with the user equipment.

[0019] Optionally, the garage controller includes at least two UWB modules, and before measuring the last moment location information and the current moment location information of the user equipment based on the UWB modules, the method further includes:

[0020] Sending UWB parameter information to the user equipment through the Bluetooth communication connection, so that the user equipment configures the UWB signal and preamble information according to the UWB parameter information; wherein the UWB signal is used to determine the corresponding UWB module, and the preamble information is used for the corresponding UWB module to perform signal detection and synchronization;

[0021] The measuring the last moment location information and the current moment location information of the user equipment based on the UWB module includes:

[0022] Receiving control information of a first data frame sent by the user equipment; wherein the control information is used to control the first UWB module and the second UWB module to perform a ranging operation;

[0023] Control the first UWB module and the second UWB module to send ranging initiation information of the second data frame to the user equipment respectively; wherein the ranging initiation information is used to control the user equipment to record the arrival timestamp of the information arrival, and the arrival timestamp includes a first timestamp corresponding to the first UWB module and a second timestamp corresponding to the second UWB module respectively;

[0024] After the user equipment receives the ranging information and records the arrival timestamp, it receives ranging response information of a second data frame returned by the user equipment, so as to calculate the last moment location information and the current moment location information of the user equipment according to the first timestamp and the second timestamp carried in the ranging response information;

[0025] Sending ranging end information of the second data frame to the user equipment to end the ranging operation of the UWB module.

[0026] Optionally, the calculating the current time location information of the user equipment according to the first timestamp and the second timestamp carried in the ranging response information includes:

[0027] Defining initial location information of the user equipment, determining first location information of the first UWB module and second location information of the second UWB module, and obtaining an arrival time difference; wherein the arrival time difference is used to characterize a time difference between the first timestamp and the second timestamp;

[0028] Determine a first location information solution of a nonlinear equation group corresponding to the user equipment according to the initial location information, the first location information, the second location information and the arrival time difference;

[0029] Obtaining a first azimuth angle and a first elevation angle corresponding to the first UWB module, and a second azimuth angle and a second elevation angle corresponding to the second UWB module, respectively, according to the first position information, the second position information, and the initial position information;

[0030] Calculate the first position information solution of the nonlinear equation group, the initial pitch angle and the initial azimuth corresponding to the initial position information of the user equipment, and the first azimuth, the first pitch angle, the second azimuth and the second pitch angle to obtain the current moment position information corresponding to the user equipment.

[0031] Optionally, judging whether the user equipment is close to the garage controller according to the location information at the previous moment and the location information at the current moment includes:

[0032] Determine whether the current moment location information of the user equipment is close to the garage controller relative to the previous moment location information;

[0033] If the current moment location information is closer to the garage controller than the previous moment location information, executing the step of controlling the garage door to open to release the user device;

[0034] If the current moment location information is far away from the garage controller relative to the previous moment location information, and the user device has entered the garage door, the garage door is controlled to close.

[0035] A second aspect of the embodiment of the present application provides a garage access verification system based on Bluetooth technology and positioning technology, which is applied to a garage controller, wherein the garage controller includes a Bluetooth low energy BLE module and an ultra-wideband UWB module, and the method includes:

[0036] A measuring unit, configured to establish a Bluetooth communication connection with the user device based on the BLE module when detecting that the user device enters the Bluetooth detection range of the garage controller, and to measure the location information of the user device at a previous moment and the location information of the user device at a current moment based on the UWB module; wherein the location information at a previous moment is used to indicate the location information of the user device at a previous moment, and the location information at a current moment is used to indicate the location information of the user device at a current moment;

[0037] an acquisition unit, configured to acquire user identification information of the user device through the Bluetooth communication connection based on the BLE module, so as to determine whether the user device is close to the garage controller according to the location information at the previous moment and the location information at the current moment when the user identification information successfully matches the local identification information stored in the garage controller;

[0038] The control unit is used to control the garage door to open when the user device is close to the garage controller to release the user device.

[0039] The garage access control verification system based on Bluetooth technology and positioning technology provided in the second aspect of the embodiment of the present application is used to execute the garage access control verification method based on Bluetooth technology and positioning technology described in the first aspect.

[0040] A third aspect of the embodiment of the present application provides a garage door access verification device based on Bluetooth technology and positioning technology, including:

[0041] CPU, memory, input and output interfaces, wired or wireless network interfaces, and power supply;

[0042] The memory is a short-term storage memory or a persistent storage memory;

[0043] The central processing unit is configured to communicate with the memory and execute instruction operations in the memory to perform the garage access verification method based on Bluetooth technology and positioning technology described in the first aspect.

[0044] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, which includes instructions. When the instructions are executed on a computer, the computer executes the garage access verification method based on Bluetooth technology and positioning technology described in the first aspect.

[0045] A fifth aspect of an embodiment of the present application provides a computer program product, which includes instructions. When the instructions are executed on a computer, the computer executes the garage access verification method based on Bluetooth technology and positioning technology described in the first aspect.

[0046] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages: through the garage access control verification method based on Bluetooth technology and positioning technology disclosed in the embodiments of the present application, it can comprehensively consider the low power consumption and long communication distance of BLE, and can detect the approach of the user device. At the same time, through the high-precision positioning capability and anti-interference characteristics of UWB, the security of the garage controller for garage door activation can be effectively improved, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.

[0048] Figure 1 A schematic diagram of the architecture of a sensorless access control system disclosed in an embodiment of the present application;

[0049] Figure 2 A schematic diagram of a flow chart of a garage access verification method based on Bluetooth technology and positioning technology disclosed in an embodiment of the present application;

[0050] Figure 3 A flow chart of another garage access verification method based on Bluetooth technology and positioning technology disclosed in an embodiment of the present application;

[0051] Figure 4 A flow chart of another garage access verification method based on Bluetooth technology and positioning technology disclosed in an embodiment of the present application;

[0052] Figure 5 A flow chart of another garage access verification method based on Bluetooth technology and positioning technology disclosed in an embodiment of the present application;

[0053] Figure 6 A flow chart of another garage access verification method based on Bluetooth technology and positioning technology disclosed in an embodiment of the present application;

[0054] Figure 7 A UWB secure ranging flow chart disclosed in an embodiment of the present application;

[0055] Figure 8 A schematic diagram of the structure of a UWB ranging signal disclosed in an embodiment of the present application;

[0056] Fig. 9 A schematic diagram of a three-dimensional positioning trajectory and error trajectory disclosed in an embodiment of the present application;

[0057] Fig.10 A schematic diagram of the structure of a garage door access verification system based on Bluetooth technology and positioning technology disclosed in an embodiment of the present application;

[0058] Fig.11 This is a schematic diagram of the structure of a garage access verification device based on Bluetooth technology and positioning technology disclosed in an embodiment of the present application. DETAILED DESCRIPTION

[0059] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0060] It should be noted that the descriptions involving "first", "second", etc. in this application are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in this field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.

[0061] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0062] See also Figure 1 , Figure 1 This is a schematic diagram of the architecture of a non-contact access control system disclosed in an embodiment of the present application. Figure 1 It can be seen that a non-sensing access control system disclosed in the embodiment of the present application mainly includes a garage controller and a user device. Among them, the garage controller is the garage controller described in the title of the subject of this application. The garage controller is installed in the garage and is responsible for managing the operation of the access control system, including receiving and processing BLE and UWB signals and controlling the opening and closing of the garage door. Specifically, the garage controller can be a terminal device or a server (a server that can control other devices). The garage controller is not limited here. The embodiment of the present application only describes the functions that can be realized by the garage controller.

[0063] In one of the feasible technical solutions, the garage controller (with a communication transceiver unit TRX antenna) includes a microcontroller unit (MCU) BLE module, a UWB base station and a garage door driver. Among them, the MCU BLE module is integrated in the garage controller, and the BLE system-on-chip (SOC) solution is adopted to preliminarily detect the approach of the user device (such as a smart phone or a vehicle-mounted device). As a BLE slave device, the MCU BLE can continuously broadcast connectable at intervals of 200ms and detect the access and connection authentication of the user device. And the internal integrated positioning algorithm service is used for positioning according to the BLE and UWB ranging data. The UWB base station (module) is also integrated in the garage controller for accurately measuring the position of the user device relative to the garage. The UWB module communicates with the UWB module in the user device to provide high-precision distance and direction information. At the same time, the UWB base station can be provided with UWB base station 1 and UWB base station 2 to facilitate subsequent ranging. However, the steps performed by UWB base station 1 and UWB base station 2 are the same, so they are not described separately. Garage door drives are used to drive the garage door to open or close.

[0064] The user device (including the BLE module and UWB tag, which also has a TRX antenna) is usually a smartphone or a car-mounted device. When the user carrying the device approaches the garage, the system will automatically identify and control the opening and closing of the garage door. Therefore, the garage controller can achieve ranging and communication operations through BLE communication and UWB communication.

[0065] Furthermore, the MCU BLE module in the garage controller can realize BLE communication with the BLE module of the user device or UWB communication with the UWB tag based on the BLE interconnection service, and then based on the positioning algorithm service, receive the ranging information transmitted by the UWB base station through the SPI port, and control the garage door drive to open or close the garage door. For easy understanding, this will be described in detail later.

[0066] To facilitate understanding of the above Figure 1 The working method of the non-contact access control system shown in Figure 2 , Figure 2 The flowchart of a garage access verification method based on Bluetooth technology and positioning technology disclosed in an embodiment of the present application includes steps 201 to 203.

[0067] 201. When it is detected that the user device enters the Bluetooth detection range of the garage controller, a Bluetooth communication connection is established with the user device based on the BLE module, and the last moment location information and the current moment location information of the user device are measured based on the UWB module.

[0068] Combination Figure 1 As shown, the BLE module on the user device acts as the main BLE module and will send out BLE Bluetooth broadcasts in real time. Therefore, when the BLE module of the garage controller (slave BLE module) detects that the user device has entered the Bluetooth detection range of the garage controller, the BLE module of the garage controller will establish a Bluetooth communication connection with the user device (BLE module). At the same time, the UWB module of the garage controller will measure the location information of the user device at the last moment and the location information at the current moment. It should be noted that the location information at the last moment is used to indicate the location information of the user device at the last moment, and the location information at the current moment is used to indicate the location information of the user device at the current moment. For the convenience of subsequent description, the BLE module of the garage controller is described as a slave BLE module, and the BLE module of the user device is described as a master BLE module.

[0069] In one of the specific embodiments, since the slave BLE module and the master BLE module will send broadcast data or perform broadcast search in real time, when the master BLE module is detected to enter the Bluetooth detection range of the slave BLE module (the detection range is related to the performance or setting of the BLE module, etc., and is not limited here), a communication connection can be established between the slave BLE module and the master BLE module. For details, please refer to the embodiment shown in 3. Then, after the slave BLE detects the user device, the UWB module of the garage controller can measure the distance and direction with the user device to determine the location of the user device. For details, please refer to Figure 4 and Figure 5 The embodiment shown.

[0070] Furthermore, when the user device enters the detection range of the slave BLE module of the garage, the garage controller establishes a preliminary connection with the user device through the slave BLE module, confirms the presence of the user device, and activates the UWB module to measure the precise distance and direction with the user device.

[0071] 202. Based on the BLE module, the user identification information of the user device is obtained through the Bluetooth communication connection, so that when the user identification information successfully matches the local identification information stored in the garage controller, it is determined whether the user device is close to the garage controller according to the location information at the previous moment and the location information at the current moment.

[0072] When the slave BLE module establishes a Bluetooth communication connection with the master BLE module, the user identification information of the user device can be obtained through the Bluetooth communication connection. Therefore, when the user identification information successfully matches the local identification information stored in the garage controller, it is determined whether the user device is close to the garage controller based on the location information at the previous moment and the location information at the current moment.

[0073] In one specific embodiment, the garage controller can read the user identification information of the user device from the BLE module, wherein the user identification information carries the identification information of the calibrated user device, and the identification information should be understood as encrypted information at this time. Then, the garage controller can match the user identification information with the local identification information stored locally, so that when the two are matched successfully, the location information of the last moment and the current moment obtained by the UWB module of the garage controller can be analyzed and determined to determine whether the current state of the user device is close to the garage controller.

[0074] Furthermore, the local identification information is also encrypted information. At the same time, the local identification information can be pre-imported or configured identification information. It should be understood that the pre-configured or imported identification information should be bound to the user identification information of the user device that has been authorized to enter the garage door, so that the local identification information is associated with the user identification information of the authorized user, for example, the IDs of the two are related, or both store the product serial number (SN) of the garage.

[0075] Furthermore, by comparing the distance from the garage controller in the last moment's location information and the current moment's location information, it is possible to determine whether the current state of the user device is far away or close. For example, if the last moment's location information is 5 meters away from the garage door, and the current moment's location information is 2 meters away from the garage door, it can be compared that the user device is gradually approaching the garage door. On the contrary, the user device is gradually moving away from the garage door.

[0076] Furthermore, it is also possible to determine whether the user device is approaching the garage door only by the current location information of the user device. Specifically, the location information of multiple user devices at the current moment can be counted to generate a continuous (or multiple time points, connected to form a continuous) movement trajectory of the user device, and then infer whether the user device is approaching the garage door at the current moment.

[0077] 203. If the user device is close to the garage controller, the garage door is controlled to open to allow the user device to pass.

[0078] Thus, when the user device approaches the garage controller, the garage door is controlled to open, thereby allowing the user device to pass.

[0079] In one specific embodiment, in combination with the above-mentioned determination basis, when it is determined that the user device is close to the garage controller and when the user identity verification is successful, the garage controller automatically controls the garage door to open. Furthermore, when the user identity verification is successful and the UWB module detects that the vehicle has approached the garage door, the garage controller automatically controls the garage door to open.

[0080] In another feasible technical solution, when the vehicle enters the garage and the location information of the user device shows that the vehicle is far away from the garage, the system automatically closes the garage door. Figure 6 The embodiment shown.

[0081] The garage door access verification method based on Bluetooth technology and positioning technology disclosed in this embodiment can comprehensively consider the low power consumption and long communication distance of BLE, and can detect the approach of user equipment. At the same time, through the high-precision positioning capability and anti-interference characteristics of UWB, the security of garage controller for garage door activation can be effectively improved, thereby improving user experience.

[0082] Based on the above Figure 2 In step 201-step 202 of the embodiment shown, when establishing a Bluetooth communication connection, refer to Figure 3 , Figure 3 This is a flow chart of another garage access verification method based on Bluetooth technology and positioning technology disclosed in an embodiment of the present application, including steps 301 to 309.

[0083] 301. Control the BLE module to send Bluetooth broadcast information to the user equipment.

[0084] It should be noted in advance that the present embodiment is based on the process of establishing a Bluetooth communication connection from the BLE module in the above steps 201 and 202, and the process of disconnecting the subsequent Bluetooth communication connection. In the present embodiment, in order to realize the Bluetooth communication connection between the main BLE module and the slave BLE module, the slave BLE module (the BLE module of the garage controller) will send Bluetooth broadcast information to the outside world in real time. Since only the interaction between the user device and the garage controller is described in the present embodiment, it is specifically to send Bluetooth broadcast information from the BLE module to the main BLE module (the BLE module of the user device). It should be noted that the Bluetooth broadcast information includes the garage sequence information and garage encryption information of the garage controller.

[0085] In one of the specific embodiments, broadcast data (the broadcast data is Bluetooth broadcast information) is sent from the BLE module to the main BLE module, and the main BLE module can search for BLE broadcast through broadcast search, thereby receiving the broadcast data. Further, the garage sequence information is the garage SN code, and the garage encryption information is a kind of encryption ID. Specifically, the garage SN code is 2 bytes, that is, the two bytes after the SN number are the garage SN code. The encryption ID is 12 bytes, of which the last 8 bytes are random numbers, updated once every 12 hours, and the first 4 bytes are encrypted data. Further, the calculation method of the encryption ID is: (AES_CBC (random number + random number negation)) 4th byte to 7th byte + random number. It should be noted that the present embodiment does not limit the calculation method of the encryption ID, and it will not be repeated later.

[0086] 302. Start the Bluetooth connection, so that when the user device successfully verifies the garage encryption information and meets the garage sequence information, a Bluetooth communication connection with the user device is established.

[0087] When the slave BLE module sends Bluetooth broadcast information to the master BLE device, after the master BLE module receives the Bluetooth broadcast information, both the master BLE module and the slave BLE module will open the Bluetooth connection, so that when the user device successfully verifies the garage encryption information and meets the garage sequence information, a Bluetooth communication connection with the user device is established.

[0088] In one of the specific embodiments, after the main BLE module receives the Bluetooth broadcast information, the user device will verify the garage encryption information and the garage sequence information. Specifically, since there is a pre-set garage SN code in the user device that can be authorized to enter, the user device can verify the two garage SN codes to determine whether the garage sequence information sent from the BLE module matches the garage SN code stored in the user device. If the match is successful, it is determined that the garage SN code is met and subsequent entry is allowed. Furthermore, during the verification process of the user device, the garage encryption information will also be decrypted according to the algorithm, so that the user device can parse out other information in the Bluetooth broadcast information, and at the same time, it can also determine to ensure the security of the Bluetooth broadcast information. Therefore, after the verification of the encrypted ID and the garage SN code is passed, the main BLE module and the slave BLE module will open the Bluetooth connection, thereby establishing a Bluetooth communication connection between the user device and the garage controller.

[0089] 303. Based on the BLE module, obtain user identification information of the user device through the Bluetooth communication connection.

[0090] It should be noted that step 303 and step 307 in this embodiment are similar to Figure 2Step 202 is similar and will not be described in detail here. However, it should be noted that, in the present embodiment, the user identification information is composed of the first header structure information, the first load structure information and the first tail verification information; the first load structure information includes at least the current timestamp information, the identification encryption information and the user authentication information corresponding to the user device. Specifically, the information in the user identification information for the distance measurement of the subsequent UWB module and the mutual verification between the user device and the garage controller is mainly located in the load structure information, which will be described in detail later. Therefore, in the present embodiment, the authentication information used to authenticate the user device and the garage controller is also located in the load structure information.

[0091] Specifically, in one of the specific embodiments, the user identification information consists of three parts: the first header structure information Header, the first load structure information Payload, and the first tail check information EndCheck. Among them, the Header part consists of 1 byte version information + 2 bytes length (total length) + 2 bytes command ID. The Payload part consists of 2 bytes sequence number + 4 bytes timestamp (current timestamp information) + 4 bytes key ID (user authentication information) + 8 bytes random number (used for the following UWB security ranging), and the Payload data part is encrypted by AES_CBC encryption with encrypted ID (identification encryption information). The EndCheck part consists of 2 bytes CRC16 (CRC-IBM x16+x15+x2+1) check range Header+Payload.

[0092] 304. Verify the user identification information and the local identification information.

[0093] Therefore, after the garage controller receives the user identification information, it can compare and verify the user identification information with the local identification information stored locally, and execute step 305 or step 308 according to the comparison and verification result.

[0094] In one specific embodiment, in combination with the above Figure 2 The description of local identification information and user identification information in this embodiment mainly verifies the user authentication information and the local authentication information in the local identification information. Specifically, both authentication information are obtained after encryption. At the same time, if the user authentication information has completed the authorization operation, etc., then the user authentication information at this time is associated with the local authentication information. Furthermore, the structure of the local identification information can also be similar to that of the user identification information, and the local authentication information is also located in the Payload.

[0095] 305. If the user authentication information and the garage authentication information corresponding to the garage door in the local identification information are correctly verified, verification result information is sent to the user device.

[0096] Based on step 304, when the user authentication information and the garage authentication information corresponding to the garage door in the local identification information are correctly verified, the verification result information is sent to the user device. It should be noted that the verification result information is composed of the second header structure information, the second payload structure information and the second tail check information; the second payload structure information at least includes the timestamp information corresponding to the verification result information and the authentication return information corresponding to the user authentication information.

[0097] In one specific embodiment, after the user device sends user identification information to the garage controller, the garage controller completes the verification of the user identification information, and the user identification information is verified (authorized or belongs to the whitelist, etc.), the garage controller returns verification result information to the user device. The verification result information is used to represent the verification result of the user identification information.

[0098] Specifically, the verification result fed back by the garage controller, the verification result information is also composed of three parts: Header, Payload, and EndCheck. That is, the second header structure information, the second load structure information, and the second tail check information described above. Among them, the Header part (second header structure information) is composed of 1 byte version information + 2 bytes of length (total length) + 2 bytes of command ID. The Payload (second load structure information) part is composed of 2 bytes of sequence number + 4 bytes of timestamp + 2 bytes of authentication return code. The EndCheck (second tail check information) part is composed of 2 bytes of CRC16 (CRC-IBM x16+x15+x2+1) check range Header+Payload. For ease of understanding, this will not be repeated later.

[0099] Therefore, step 306 or step 309 can be executed respectively according to the verification result.

[0100] 306. When the user equipment receives the verification result information and confirms that the verification is successful according to the authentication return information, an authentication instruction sent by the user equipment is received to determine whether the user identification information matches the local identification information successfully according to the authentication instruction.

[0101] Thus, when the user equipment receives the verification result information and confirms the verification success according to the authentication return information, it receives the authentication instruction sent by the user equipment, thereby determining that the user identification information matches the local identification information successfully according to the authentication instruction.

[0102] In one specific embodiment, when the user device receives authentication return information indicating successful verification, the user device will send an authentication instruction to the vehicle-mounted controller, wherein the authentication instruction can instruct the UWB module of the vehicle-mounted controller to determine whether the user identification information and the local identification information match successfully. Furthermore, the UWB module of the vehicle-mounted controller can also be instructed to perform subsequent ranging operations. Specifically, the authentication instruction is not restricted here.

[0103] Furthermore, after receiving the authentication instruction, the garage controller returns response information, such as a response ACK, to the user device, so that the user device determines that the authentication instruction has been sent.

[0104] 307. When the user identification information successfully matches the local identification information stored in the garage controller, it is determined whether the user device is close to the garage controller according to the location information at the last moment and the location information at the current moment.

[0105] Therefore, based on step 307, when the user identification information successfully matches the local identification information stored in the garage controller, it is determined whether the user device is close to the garage controller based on the location information at the previous moment and the location information at the current moment. Figure 2 The step 202 shown is similar and will not be described in detail here.

[0106] 308. If the user authentication information fails to be verified with the garage authentication information corresponding to the garage door in the local identification information, wait for a preset time, and when the preset time is exceeded, disconnect the Bluetooth communication connection with the user device.

[0107] Corresponding to step 304, when the user authentication information fails to verify the garage authentication information corresponding to the garage door in the local identification information, the preset time is waited, and when the preset time is exceeded, the Bluetooth communication connection with the user device is disconnected. It should be noted that in one of the feasible technical solutions, the preset time can be set to 2s or 3s, etc., which is not limited here.

[0108] In one specific embodiment, when the garage controller verifies the user identification information and the local identification information and finds that the user identification information is unauthorized or not in the whitelist, it is determined that the verification has failed, and the Bluetooth communication connection with the user device is disconnected.

[0109] In other feasible technical solutions, when the garage controller verifies the user identification information and the local identification information, if the verification time exceeds a preset time (2s or 3s, etc.), the Bluetooth communication connection with the user device is also disconnected.

[0110] 309. If the user device receives the verification result information and confirms the verification failure according to the authentication return information, it waits for a preset time, and when the preset time is exceeded, disconnects the Bluetooth communication connection with the user device.

[0111] Corresponding to step 305, when the user device receives the verification result information and confirms that the verification fails according to the authentication return information, it waits for a preset time, and when the preset time is exceeded, disconnects the Bluetooth communication connection with the user device. It should be noted that in one of the feasible technical solutions, the preset time can be set to 2s or 3s, etc., which is not limited here.

[0112] In one specific embodiment, when the garage controller verifies the user identification information and the local identification information and finds that the user identification information is unauthorized or not in the whitelist, it will send a verification result failure message to the user device. When the user device receives the verification failure message, it determines that the verification has failed and disconnects the Bluetooth communication connection with the garage controller.

[0113] In other feasible technical solutions, after the garage controller verifies the user identification information and the local identification information, if the time to receive the verification result information exceeds the preset time (2s or 3s, etc.), the Bluetooth communication connection between the user device and the garage controller is also disconnected.

[0114] Through the garage access control verification method based on Bluetooth technology and positioning technology disclosed in this embodiment, BLE verifies the user identity and prevents unauthorized personnel or devices from accessing the system. At the same time, since the Bluetooth broadcast and the authentication information sent by the user device are composed of an encrypted structure, confidentiality and security can be further improved.

[0115] After establishing a Bluetooth communication connection, UWB distance measurement is performed. Figure 4 , Figure 4 This is a flow chart of another garage access verification method based on Bluetooth technology and positioning technology disclosed in an embodiment of the present application, including steps 401 to 404.

[0116] 401. Send UWB parameter information to a user equipment through a Bluetooth communication connection, so that the user equipment configures a UWB signal and preamble information according to the UWB parameter information.

[0117] It should be noted in advance that this embodiment mainly describes UWB ranging. Specifically, after the user device establishes a Bluetooth communication connection with the garage controller, UWB parameter information can be sent to the user device through the Bluetooth communication connection, so that the user device configures the UWB signal and preamble information according to the UWB parameter information. Figure 1As described in, there are at least two UWB modules (a first UWB module and a second UWB module) in the garage controller. In this embodiment, for the first UWB module and the second UWB module, the execution steps between the two modules are similar. Therefore, this embodiment is described in detail with one of the UWB modules. For ease of understanding, it will not be repeated later. It should also be added that the UWB signal is used to determine the corresponding UWB module, and the preamble information is used for the corresponding UWB module to perform signal detection and synchronization.

[0118] Further, for easier understanding, please refer to Figure 7 , Figure 7 This is a UWB security ranging flow chart disclosed in the embodiment of this application. It should be noted that: Figure 7 Specifically, the flow chart of the interaction between the user equipment and the garage controller in steps 401 to 404 in this embodiment. Figure 7 The steps 401 to 404 are described as shown.

[0119] In one specific embodiment, the garage controller sends UWB parameters to the user device via a BLE connection. As a result, the user device can synchronize the network according to the UWB parameters and configure the UWB channel signal and the preamble signal. Then, the UWB module of the user device is started. Correspondingly, the UWB module (UWB base station 1 and UWB base station 2) of the garage controller will also be started.

[0120] Furthermore, in ultra-wideband (UWB) communications, configuring the UWB signal and preamble information of the synchronization network is a key step to ensure reliable communication between devices. 1. In the preamble, there is the preamble length: the preamble is the starting sequence used to synchronize the receiver, usually consisting of multiple repeated symbols. The preamble length is usually one of the configuration parameters, which affects the sensitivity of signal detection and the length of synchronization time. Common length options include 64, 128, 256, 512, 1024 symbols, and the specific length selection depends on the application scenario (for example, a longer preamble will be selected in a long distance or high noise environment). In addition, in the preamble mode, UWB systems usually support multiple preamble modes (such as mode 1, mode 2, etc.), which define the symbol sequence, repetition method, etc. of the preamble. Selecting the appropriate mode helps optimize system performance and anti-interference capabilities. 2. In the synchronization header (SFD, start frame delimiter), there is an SFD type: SFD is used to identify the start of the frame and assist the receiver in completing frame synchronization. The type and length of the SFD are also configurable and usually need to match the selection of the preamble. There are also custom SFDs: Some systems allow the use of custom SFD sequences to optimize synchronization performance for specific applications or to avoid interference with other systems. 3. Frequency and bandwidth configuration, center frequency: UWB systems typically operate in the frequency band of 3.1GHz to 10.6GHz. Choosing a suitable center frequency (such as 4GHz, 6.5GHz, etc.) requires considering factors such as the system's transmission distance, power limitations, and interference. Bandwidth: UWB signals have very wide bandwidths, typically between 500MHz and 1.5GHz. The choice of bandwidth affects data rates and anti-interference capabilities. Wider bandwidths can provide higher data rates and stronger anti-interference capabilities. 4. Pulse repetition frequency (PRF), PRF setting: PRF refers to the frequency of pulse repetitions in the preamble, which is usually an important parameter for system configuration. The choice of PRF affects the signal's detection probability and anti-multipath interference capabilities. 5. Data rate, PHY data rate: The UWB communication system supports a variety of physical layer data rates (such as 110kbps, 850kbps, 6.8Mbps, etc.). The data rate is closely related to the preamble length, bandwidth, and PRF configuration. Selecting a suitable data rate requires balancing communication distance, power consumption, and anti-interference capabilities. 6. Clock and time synchronization, clock synchronization mechanism: In a synchronous network, UWB devices need to ensure that their clocks are synchronized to achieve accurate time measurement and positioning. The synchronization method can be network-based distributed synchronization or centralized synchronization through an external clock source (such as GPS). Timestamp accuracy: The accuracy of the timestamp directly affects the positioning accuracy, and it is usually necessary to configure a high-precision clock (such as a 32.768kHz or higher frequency clock) to ensure high-precision time synchronization.7. Pulse signal strength, TX level: The strength of the transmitted signal needs to be adjusted according to the communication distance, power limit and interference. Different devices and application scenarios may require different transmit power settings. By configuring these parameters, UWB devices can achieve optimized communication performance and positioning accuracy in different environments and applications. According to specific application requirements, the reasonable selection and configuration of these parameters is the key to ensure the reliable operation of UWB networks.

[0121] 402. Receive control information of a first data frame sent by user equipment.

[0122] It should be noted that step 402-step 404 is a ranging cycle. At the same time, the steps performed by the first UWB module and the second UWB module in this embodiment are similar, and will not be described in detail later. Specifically, the first UWB module and the second UWB module will both receive control information of the first data frame sent by the user equipment. It should be noted that the control information is used to control the first UWB module and the second UWB module to perform ranging operations.

[0123] In one specific embodiment, the user device, as a responding end, sends SP0 control information to the UWB module in the garage controller (as an initiator), wherein the SPO is the first data frame. In short, SPO is a data frame, wherein the PHYPlayload part of SP0 is AES_CBC encrypted using the random number received in the Bluetooth authentication information. Thus, the UWB module of the garage controller can be controlled to perform ranging operations.

[0124] Furthermore, the first UWB module and the second UWB module of the garage controller may perform the ranging operation simultaneously according to the control information, or may perform it at different times, which is not limited here. However, in this embodiment, the preferred solution is to perform the ranging operation simultaneously, and the following will also be described in detail with the first UWB module and the second UWB module performing the ranging operation simultaneously.

[0125] 403. Control the first UWB module and the second UWB module to send ranging initiation information of a second data frame to the user equipment respectively.

[0126] Based on step 402, the garage controller can control the first UWB module and the second UWB module to send the ranging initiation information of the second data frame to the user equipment respectively. It should be noted that the ranging initiation information is used to control the user equipment to record the arrival timestamp of the information, and the arrival timestamp includes a first timestamp corresponding to the first UWB module and a second timestamp corresponding to the second UWB module.

[0127] In one specific embodiment, after receiving the SP0 control information, the first UWB module and the second UWB module will send ranging initiation information to the UWB module (UWB tag) on ​​the user equipment. It should be noted that the first UWB module and the second UWB module may send the ranging initiation information at the same time or at different times, which is not limited here, but in this embodiment, the preferred solution is to send the ranging initiation information at the same time.

[0128] Furthermore, the ranging initiation information at this time is information corresponding to the second data frame. The second data frame is an SP3 frame. To facilitate understanding of the SP0 frame and the SP3 frame, a detailed description is given below.

[0129] The data frame (SP0 frame) consists of the following components: Preamble (SYNC): used for signal detection and preliminary synchronization of the receiver. Start of frame delimiter (SFD): identifies the beginning of the data frame and further helps synchronization. Physical header (PHR) field: contains control information related to the frame, such as frame length and other necessary configuration parameters. Physical service data unit (PSDU) field: carries actual data information. SP0 frame functions include: Data transmission: SP0 frames focus on transmitting data contained in the PSDU field to ensure reliable transmission of data in UWB networks. Not involved in ToF calculation: This type of frame is not used for time of flight (ToF) measurement, so it does not affect the positioning or ranging functions. Further, there are also improvements and security considerations. Specifically, the risk of known preambles: Since the preamble is known, this may become a vulnerability for attackers to interfere with the accuracy of ranging. During the timestamp acquisition process, interference devices may use this to attack the ranging system, making the distance measurement unsafe. Improvements to IEEE802.15.4z: To address this risk, the IEEE802.15.4z protocol introduces more secure frame types and mechanisms to reduce the security risks brought by known preambles.

[0130] The components of the ranging frame (SP3 frame) include: The preamble is a synchronization command (SYNC, synchronous communication): also used for signal detection and synchronization. The start frame delimiter (SFD, start frame delimiter): identifies the beginning of the ranging frame and helps synchronization. The scrambled timestamp sequence (STS) field: used to obtain a high-precision timestamp, which is the core part of the ranging frame and is designed to improve the security and accuracy of the time of flight (ToF) measurement. Its functions include: Timestamp acquisition and ToF calculation: The SP3 frame is designed to provide accurate and secure timestamps for ToF ranging calculations. Since it does not transmit actual data but focuses on the accuracy of the timestamp, it is crucial in the ranging process. Reduce frame length: Since there is no need to transmit data information, the SP3 frame is shorter, which can reduce transmission delays and reduce the possibility of interference. Furthermore, the SP3 frame has the effect of improving security. Specifically, the introduction of STS: The STS field protects the timestamp information through a scrambling mechanism to prevent attackers from interfering with ranging through known preambles. This mechanism greatly improves the security of ranging and makes the system less sensitive to malicious interference.

[0131] Therefore, the SP0 frame is mainly used for data transmission and does not involve ranging calculations, but there is a certain risk in the security of the preamble code. The SP3 frame focuses on ranging and uses a scrambled timestamp sequence (STS) to improve security. It does not transmit data to simplify the frame structure and enhance ranging accuracy. It should be noted that STS is a key element in the IEEE802.15.4z protocol, especially in enhanced security and precise ranging. The introduction of STS is to enhance the security of the timestamp during ranging and prevent malicious interference and attacks.

[0132] Therefore, in short, see Figure 8 , Figure 8 Schematic diagram of the structure of a UWB ranging signal disclosed in an embodiment of the present application. Figure 8For UWB, there are signal structures corresponding to the SP0 frame and the SP3 frame. Specifically, STS is a scrambled timestamp sequence used for precise time measurement in UWB communication. STS protects the timestamp information through scrambling technology, making it difficult to predict and tamper with, thereby improving the security of ranging. Through the STS field, the receiving device can obtain a scrambled, high-precision timestamp to calculate the flight time (ToF) of the signal, thereby determining the distance between devices. The scrambling mechanism of STS makes it difficult for third-party devices to attack through known information such as the preamble (SYNC), ensuring the security of the ranging system. For SYNC, SYNC is the preamble part of the frame, which is used to help the receiving device detect the signal and synchronize the receiver. It consists of a set of repeated pulse sequences and is the beginning of the frame. Its function is that through SYNC, the receiver can quickly lock and start receiving data frames. It is the first part of the data frame to be received and processed, ensuring that the device can synchronize at the beginning of communication. The length and mode of SYNC can be configured according to system requirements. A longer SYNC can improve the robustness of synchronization, but may increase transmission delay. SFD is a marker used to identify the start of a frame, which follows SYNC. SFD is usually a specific bit sequence used to accurately define the starting point of the frame data. Its function can help the receiver determine the starting position of the frame, so as to accurately parse the subsequent data fields. The existence of SFD ensures that the receiver can correctly identify and process the following data after receiving SYNC. Packet configuration involves configuring the various fields of the entire data frame to meet specific application requirements. This includes the configuration of the preamble (SYNC), frame start delimiter (SFD), physical header (PHR), physical service data unit (PSDU) and STS. Preamble (SYNC) configuration: Set the length and mode of SYNC to determine the sensitivity and synchronization time of signal detection. SFD configuration: Select the appropriate SFD type and length to ensure accurate identification of the start of the frame. PHR configuration: Configure control information related to frame length, data rate, etc. PSDU configuration: Define the actual transmitted data content and format. STS configuration: Configure the generation method and scrambling algorithm of STS to ensure the security and accuracy of the timestamp. Therefore, the specific composition of STS includes the scrambling algorithm: STS generates a sequence through a pseudo-random number generator (PRNG), which is used to interfere with the timestamp, making the timestamp difficult to predict and counterfeit. Timestamp part: Contains the actual timestamp information. After scrambling, the timestamp is protected during transmission. Synchronization and decoding: The receiving device recovers the accurate timestamp information by decoding STS for time of flight (ToF) calculation. Specifically, STS and its related configurations play the role of ensuring high security and accurate ranging in UWB communication.SYNC and SFD, as the basic synchronization parts of the frame, ensure the reliable transmission of data frames, while STS further enhances the security of the timestamp during the ranging process by scrambling the timestamp to prevent potential interference and attacks. PacketConfiguration involves comprehensive configuration of these elements to adapt to specific application scenarios and requirements.

[0133] 404. After the user equipment receives the ranging information and records the arrival timestamp, it receives ranging response information of the second data frame returned by the user equipment to calculate the last moment location information and the current moment location information of the user equipment according to the first timestamp and the second timestamp carried in the ranging response information.

[0134] Thus, based on step 403, when the user device receives the ranging information and records the arrival timestamp, the ranging response information of the second data frame returned by the user device is received to calculate the last moment location information and the current moment location information of the user device according to the first timestamp and the second timestamp carried in the ranging response information. Then, the first UWB module and the second UWB module of the garage controller will send the ranging end information of the second data frame to the user device, and then the user device responds to the ranging end information and returns the response information, thereby ending the ranging operation of the UWB module of the garage controller.

[0135] In one specific embodiment, after the user device receives the ranging information, it will stimulate the arrival timestamp of the ranging information sent by the UWB modules of different garage controllers at this time, and store it in the SP3 frame. Then, the user device will return the relevant arrival timestamp to the UWB module of the garage controller in response to the ranging response information based on the SP3 frame. As a result, the UWB module of the garage controller can calculate the last moment location information and the current moment location information of the user device according to the first timestamp (corresponding to the first UWB module) and the second timestamp (corresponding to the second UWB module) carried in the ranging response information.

[0136] Furthermore, only the current position information may be calculated, and there is no specific limitation here.

[0137] The present embodiment discloses a garage door access verification method based on Bluetooth technology and positioning technology. Therefore, UWB distance measurement uses SP0 and SP3 frames, thereby protecting and verifying the user identity through UWB. At the same time, the anti-interference ability of UWB enables the system to work stably in complex environments, and combined with encrypted signal transmission, ensures data security, thereby improving the security of distance measurement. Figure 3 The double authentication (Bluetooth authentication and UWB authentication) and anti-interference design effectively prevent signal hijacking and illegal intrusion.

[0138] Based on the above Figure 4 In the embodiment shown, step 404 further includes Figure 5 , Figure 5 This is a flow chart of another garage access verification method based on Bluetooth technology and positioning technology disclosed in an embodiment of the present application, including steps 501 to 504.

[0139] 501. Define initial location information of a user equipment, determine first location information of a first UWB module and second location information of a second UWB module, and obtain a time difference of arrival.

[0140] In this embodiment, there are at least two UWB base stations in the garage controller, namely the first UWB module and the second UWB module described above, and each UWB base station is equipped with multiple antenna arrays. Therefore, it is necessary to define the initial location information of the user equipment in advance, determine the first location information of the first UWB module and the second location information of the second UWB module, and obtain the arrival time difference. It should be noted that the arrival time difference is used to characterize the time difference between the first timestamp and the second timestamp.

[0141] In one specific embodiment, based on Figure 4 In the embodiment shown, due to the ranging initiation signal, for the user equipment, there will be a time difference corresponding to the first UWB module or the second UWB module. At the same time, for the ranging response signal, there will also be a time difference between the user equipment and the first UWB module or the second UWB module, so the time difference between the two can be determined. In this embodiment, the time difference Δt of the time when the signal reaches the first UWB module or the second UWB module is specifically used. 12 Furthermore, since the position of the first UWB module or the second UWB module is fixed, the first position information p1 (x1, y1, z1) of the first UWB module or the second position information p2 (x2, y2, z2) of the second UWB module can be obtained respectively.

[0142] 502. Determine a first location information solution of a nonlinear equation group corresponding to the user equipment according to the initial location information, the first location information, the second location information, and the arrival time difference.

[0143] Thus, the first location information solution of the nonlinear equation group corresponding to the user equipment can be determined according to the initial location information, the first location information, the second location information and the arrival time difference.

[0144] In one specific embodiment, at two UWB modules (or UWB base stations) p1 and p2, the position p(x, y, z) of the tag (user equipment) can be described by the following formula:

[0145] The distances from base station 1 and base station 2 to the tag are:

[0146]

[0147] Where d1 is the distance from base station 1 (first UWB module) to the user device (tag), and d2 is the distance from base station 2 (second UWB module) to the user device (tag). Then, the time difference of arrival (TDOA) formula between the two base stations is: It should be noted that c is the speed of light. Then, from the TDOA calculations of the two base stations, we can get the nonlinear equations about the tag position:

[0148]

[0149] 503. Obtain a first azimuth angle and a first elevation angle corresponding to the first UWB module, and a second azimuth angle and a second elevation angle corresponding to the second UWB module, respectively, according to the first position information, the second position information, and the initial position information.

[0150] At the same time, it is also necessary to obtain the first azimuth angle and the first elevation angle corresponding to the first UWB module, and the second azimuth angle and the second elevation angle corresponding to the second UWB module according to the first position information, the second position information and the initial position information.

[0151] In one specific embodiment, at each base station, the AOA algorithm can be used to estimate two angles of the tag:

[0152] The azimuth angle θ1 (first azimuth angle) and elevation angle φ1 (first elevation angle) of base station 1, the azimuth angle θ2 (second azimuth angle) and elevation angle φ2 (second elevation angle) of base station 2. For each base station i (base station 1 or base station 2), the azimuth angle θ i and the pitch angle φ i The relationship with the label position p is:

[0153]

[0154] 504. Calculate the first position information solution of the nonlinear equation group, the initial pitch angle and the initial azimuth angle corresponding to the initial position information of the user equipment, and the first azimuth angle, the first pitch angle, the second azimuth angle, and the second pitch angle to obtain the current position information corresponding to the user equipment.

[0155] Therefore, based on the above steps 502 and 503, the first position information solution of the nonlinear equation group, the initial pitch angle and the initial azimuth corresponding to the initial position information of the user device, as well as the first azimuth, the first pitch angle, the second azimuth and the second pitch angle can be calculated to obtain the current position information corresponding to the user device.

[0156] In one specific embodiment, if the distance between antenna 1 and antenna 2 in the tag of the user device is D, and the incident angle of the signal is θ (relative to the normal direction of the antenna array), the signals received by the two antennas will have a phase difference Δφ. Then, Among them, θ can also be understood as the angle of arrival (AOA) of the signal, Δφ is the phase difference (PDOA), λ is the wavelength of the signal, and D is the antenna spacing, which is generally λ / 2. In order to solve θ, we can solve the above formula to get, Then, the TDOA and AOA data are fused into a three-dimensional positioning problem. The goal of the hybrid positioning algorithm is to find the tag position p * (x, y, z) to minimize the estimation error in both TDOA and AOA. The Archimedean optimization algorithm can be used to search for the global optimal solution. The final hybrid TDOA / AOA positioning algorithm can be expressed as:

[0157] It should be noted that, μ is a weight factor (the default value is 1.0), which is used to balance the usage weights of TDOA and AOA. * is the final estimated tag location, i.e., the location of the user device.

[0158] The garage door access verification method based on Bluetooth technology and positioning technology disclosed in this embodiment is combined with the above Figures 2 to 4 In the illustrated embodiment, using UWB technology, the system can accurately locate the vehicle (using TDOA / AOA positioning) to ensure the accuracy of access control operations.

[0159] Among other feasible technical solutions, there are Figure 6 The embodiment shown, Figure 6 This is a flow chart of another garage access verification method based on Bluetooth technology and positioning technology disclosed in an embodiment of the present application, including steps 601 to 603.

[0160] 601. Determine whether the current location information of the user equipment is close to the garage controller relative to the previous location information.

[0161] In one feasible technical solution, since the current moment location information and the last moment location information of the user device can be obtained, it is possible to determine whether the current moment location information of the user device is close to the garage controller relative to the last moment location information.

[0162] In one specific embodiment, the current position information is compared with the previous position information to see whether it is close to the garage controller. Figure 5 In the illustrated embodiment, by obtaining the location information of the user device at different times, it is possible to determine whether the user device is close to the garage controller. Fig. 9 , Fig. 9 Schematic diagram of a three-dimensional positioning trajectory and error trajectory disclosed in an embodiment of the present application. Fig. 9 As shown, the red dots above are the locations of the two UWBs, which are arranged on the left and right sides of the door. The two UWB base stations are three meters high and 6 meters apart. The blue triangle below is the movement trajectory of the tag on the vehicle. The tag is installed at the rearview mirror on the vehicle, about 1.5 meters above the ground. The vehicle starts from facing the gate at 30° and 30 meters away, and drives in a straight line along the direction of 30°, approaches and passes through the gate, and stops 10 meters away from the gate. The yellow is a straight line connecting 30 meters and 10 meters at 30°, which is the theoretical trajectory. Therefore, by obtaining the location of the user device (vehicle) at different times, it can be inferred whether the user device is close to the garage controller.

[0163] 602. If the current position information is closer to the garage controller than the previous position information, execute the step of controlling the garage door to open to release the user equipment.

[0164] Therefore, based on step 601, when the current position information is closer to the garage controller relative to the previous position information, the step of controlling the garage door to open is executed to release the user device. Figure 2 The step shown in step 203.

[0165] 603. If the current position information is far away from the garage controller relative to the previous position information, and the user device has entered the garage door, control the garage door to close.

[0166] Therefore, based on step 601, when the current position information is far away from the garage controller relative to the previous position information, and the user device has entered the garage door, the garage door is controlled to close.

[0167] Furthermore, when the vehicle enters the garage and the location information of the user device shows that the vehicle is far away from the garage, the garage door is automatically closed.

[0168] Through the garage access verification method based on Bluetooth technology and positioning technology disclosed in this embodiment, the system can automatically identify and open the door when the user approaches the garage, without the need for manual operation by the user. The system has a high degree of automation and greatly improves convenience.

[0169] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0170] See also Fig.10 , Fig.10 This is a schematic diagram of the structure of a garage access verification system based on Bluetooth technology and positioning technology disclosed in an embodiment of the present application.

[0171] The measuring unit 1001 is used to establish a Bluetooth communication connection with the user device based on the BLE module when detecting that the user device enters the Bluetooth detection range of the garage controller, and measure the location information of the user device at the last moment and the location information of the user device at the current moment based on the UWB module; wherein the location information at the last moment is used to indicate the location information of the user device at the last moment, and the location information at the current moment is used to indicate the location information of the user device at the current moment;

[0172] The acquisition unit 1002 is used to acquire user identification information of the user device through the Bluetooth communication connection based on the BLE module, so as to determine whether the user device is close to the garage controller according to the location information at the previous moment and the location information at the current moment when the user identification information successfully matches the local identification information stored in the garage controller;

[0173] The control unit 1003 is used to control the garage door to open when the user device is close to the garage controller to allow the user device to pass.

[0174] Exemplarily, the system further includes: an establishing unit 1004;

[0175] The control unit 1003 is specifically used to control the BLE module to send Bluetooth broadcast information to the user equipment; wherein the Bluetooth broadcast information includes the garage sequence information and garage encryption information of the garage controller;

[0176] The establishing unit 1004 is used to start the Bluetooth connection, so as to establish a Bluetooth communication connection with the user device when the user device successfully verifies the garage encryption information and complies with the garage sequence information.

[0177] Exemplarily, the system further includes: a verification unit 1005, a sending unit 1006 and a receiving unit 1007;

[0178] Verification unit 1005, used to verify user identification information and local identification information; wherein the user identification information is composed of first header structure information, first payload structure information and first tail check information; the first payload structure information at least includes current timestamp information, identification encryption information and user authentication information corresponding to the user device;

[0179] The sending unit 1006 is used to send verification result information to the user device when the user authentication information and the garage authentication information corresponding to the garage door in the local identification information are verified correctly; wherein the verification result information is composed of second header structure information, second payload structure information and second tail check information; the second payload structure information at least includes timestamp information corresponding to the verification result information and authentication return information corresponding to the user authentication information;

[0180] The receiving unit 1007 is configured to receive an authentication instruction sent by the user equipment when the user equipment receives the authentication result information and confirms that the authentication is successful according to the authentication return information, so as to determine whether the user identification information matches the local identification information successfully according to the authentication instruction.

[0181] Exemplarily, the system further includes: a disconnection unit 1008;

[0182] A disconnection unit 1008, configured to wait for a preset time when the user authentication information fails to be verified with the garage authentication information corresponding to the garage door in the local identification information, and disconnect the Bluetooth communication connection with the user device when the preset time is exceeded;

[0183] Alternatively, the disconnection unit 1008 is further configured to wait for a preset time when the user device receives the verification result information and confirms the verification failure according to the authentication return information, so as to disconnect the Bluetooth communication connection with the user device when the preset time is exceeded.

[0184] Exemplarily, the garage controller includes at least two UWB modules, and the system further includes:

[0185] The sending unit 1006 is further configured to send UWB parameter information to the user equipment through a Bluetooth communication connection, so that the user equipment configures the UWB signal and the preamble information according to the UWB parameter information; wherein the UWB signal is used to determine the corresponding UWB module, and the preamble information is used for the corresponding UWB module to perform signal detection and synchronization;

[0186] The receiving unit 1007 is further configured to receive control information of the first data frame sent by the user equipment; wherein the control information is used to control the first UWB module and the second UWB module to perform a ranging operation;

[0187] The control unit 1003 is further used to control the first UWB module and the second UWB module to respectively send ranging initiation information of the second data frame to the user equipment; wherein the ranging initiation information is used to control the user equipment to record the arrival timestamp of the information, and the arrival timestamp includes a first timestamp corresponding to the first UWB module and a second timestamp corresponding to the second UWB module;

[0188] The receiving unit 1007 is further configured to receive ranging response information of a second data frame returned by the user equipment after the user equipment receives the ranging information and records the arrival timestamp, so as to calculate the last moment position information and the current moment position information of the user equipment according to the first timestamp and the second timestamp carried in the ranging response information;

[0189] The sending unit 1006 is further configured to send ranging end information of the second data frame to the user equipment to end the ranging operation of the UWB module.

[0190] Exemplarily, the garage controller includes at least two UWB modules, and the system further includes: a determination unit 1009 and a calculation unit 1010;

[0191] The determination unit 1009 is used to define the initial location information of the user equipment, determine the first location information of the first UWB module and the second location information of the second UWB module, and obtain the arrival time difference; wherein the arrival time difference is used to represent the time difference between the first timestamp and the second timestamp;

[0192] The determining unit 1009 is further configured to determine a first location information solution of the nonlinear equation group corresponding to the user equipment according to the initial location information, the first location information, the second location information and the arrival time difference;

[0193] The acquisition unit 1002 is specifically configured to obtain, according to the first position information, the second position information, and the initial position information, a first azimuth angle and a first elevation angle corresponding to the first UWB module, and a second azimuth angle and a second elevation angle corresponding to the second UWB module;

[0194] The calculation unit 1010 is used to calculate the first position information solution of the nonlinear equation group, the initial pitch angle and the initial azimuth corresponding to the initial position information of the user equipment, and the first azimuth, the first pitch angle, the second azimuth and the second pitch angle to obtain the current position information corresponding to the user equipment.

[0195] Exemplarily, the system further includes: a judgment unit 1011 and an execution unit 1012;

[0196] A determination unit 1011, configured to determine whether the current location information of the user equipment is close to the garage controller relative to the previous location information;

[0197] An execution unit 1012 is used to execute a step of controlling the garage door to open to release the user equipment when the current position information is closer to the garage controller relative to the previous position information;

[0198] The control unit 1003 is specifically configured to control the garage door to close when the current position information is far away from the garage controller relative to the previous position information and the user device has entered the garage door.

[0199] See below Fig.11 The structural diagram of a garage door access verification device based on Bluetooth technology and positioning technology disclosed in the embodiment of the present application includes:

[0200] CPU 1101, memory 1105, input / output interface 1104, wired or wireless network interface 1103 and power supply 1102;

[0201] The memory 1105 is a temporary storage memory or a permanent storage memory;

[0202] The CPU 1101 is configured to communicate with the memory 1105 and execute the instructions in the memory 1105 to perform the aforementioned Figures 2 to 6 A garage access verification method based on Bluetooth technology and positioning technology in any of the illustrated embodiments.

[0203] The embodiment of the present application also provides a chip system, characterized in that the chip system includes at least one processor and a communication interface, the communication interface and the at least one processor are interconnected through a line, and the at least one processor is used to run a computer program or instruction to execute the aforementioned Figures 2 to 6 A garage access verification method based on Bluetooth technology and positioning technology in any of the illustrated embodiments.

[0204] The embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium includes instructions, when the instructions are executed on a computer, the computer executes the aforementioned Figures 2 to 6 A garage access verification method based on Bluetooth technology and positioning technology in any of the illustrated embodiments.

[0205] The present application also provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the aforementioned Figures 2 to 6A garage access verification method based on Bluetooth technology and positioning technology in any of the illustrated embodiments.

[0206] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0207] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0208] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0209] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0210] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), disk or optical disk and other media that can store program code.

Claims

1. A garage door access verification method based on Bluetooth technology and positioning technology, characterized in that: Applied to a garage controller, the garage controller includes a Bluetooth low energy BLE module and an ultra-wideband UWB module, and the method includes: When it is detected that the user device enters the Bluetooth detection range of the garage controller, a Bluetooth communication connection is established with the user device based on the BLE module, and the location information of the user device at the last moment and the location information at the current moment are measured based on the UWB module; wherein the location information at the last moment is used to indicate the location information of the user device at the last moment, and the location information at the current moment is used to indicate the location information of the user device at the current moment; Based on the BLE module, user identification information of the user device is obtained through the Bluetooth communication connection, so that when the user identification information successfully matches the local identification information stored in the garage controller, it is determined whether the user device is close to the garage controller according to the location information at the previous moment and the location information at the current moment; If the user device is close to the garage controller, the garage door is controlled to open to allow the user device to pass.

2. The garage door access verification method based on Bluetooth technology and positioning technology according to claim 1 is characterized in that: The establishing a Bluetooth communication connection with the user equipment based on the BLE module includes: Controlling the BLE module to send Bluetooth broadcast information to the user equipment; wherein the Bluetooth broadcast information includes the garage sequence information and garage encryption information of the garage controller; The Bluetooth connection is enabled to establish a Bluetooth communication connection with the user device when the user device successfully verifies the garage encryption information and complies with the garage sequence information.

3. The garage door access verification method based on Bluetooth technology and positioning technology according to claim 1 is characterized in that: After acquiring the user identification information of the user equipment through the Bluetooth communication connection, the method further includes: Verify the user identification information and the local identification information; wherein the user identification information is composed of first header structure information, first payload structure information and first tail check information; the first payload structure information at least includes current timestamp information, identification encryption information and user authentication information corresponding to the user device; If the user authentication information and the garage authentication information corresponding to the garage door in the local identification information are correctly verified, sending verification result information to the user device; wherein the verification result information is composed of second header structure information, second payload structure information and second tail check information; the second payload structure information at least includes timestamp information corresponding to the verification result information and authentication return information corresponding to the user authentication information; When the user equipment receives the verification result information and confirms that the verification is successful according to the authentication return information, an authentication instruction sent by the user equipment is received to determine that the user identification information matches the local identification information successfully according to the authentication instruction.

4. The garage door access verification method based on Bluetooth technology and positioning technology according to claim 3 is characterized in that: The method further comprises: If the user authentication information fails to be authenticated with the garage authentication information corresponding to the garage door in the local identification information, waiting for a preset time, and disconnecting the Bluetooth communication connection with the user device when the preset time is exceeded; Or, when the user equipment receives the verification result information and confirms the verification failure according to the authentication return information, it waits for the preset time, and when the preset time is exceeded, disconnects the Bluetooth communication connection with the user equipment.

5. The garage door access verification method based on Bluetooth technology and positioning technology according to claim 1 is characterized in that: The garage controller includes at least two UWB modules. Before measuring the last moment location information and the current moment location information of the user equipment based on the UWB modules, the method further includes: Sending UWB parameter information to the user equipment through the Bluetooth communication connection, so that the user equipment configures the UWB signal and preamble information according to the UWB parameter information; wherein the UWB signal is used to determine the corresponding UWB module, and the preamble information is used for the corresponding UWB module to perform signal detection and synchronization; The measuring the last moment location information and the current moment location information of the user equipment based on the UWB module includes: Receiving control information of a first data frame sent by the user equipment; wherein the control information is used to control the first UWB module and the second UWB module to perform a ranging operation; Control the first UWB module and the second UWB module to send ranging initiation information of the second data frame to the user equipment respectively; wherein the ranging initiation information is used to control the user equipment to record the arrival timestamp of the information arrival, and the arrival timestamp includes a first timestamp corresponding to the first UWB module and a second timestamp corresponding to the second UWB module respectively; After the user equipment receives the ranging information and records the arrival timestamp, it receives ranging response information of a second data frame returned by the user equipment, so as to calculate the last moment location information and the current moment location information of the user equipment according to the first timestamp and the second timestamp carried in the ranging response information; Sending ranging end information of the second data frame to the user equipment to end the ranging operation of the UWB module.

6. The garage door access verification method based on Bluetooth technology and positioning technology according to claim 5 is characterized in that: The calculating the current time location information of the user equipment according to the first timestamp and the second timestamp carried in the ranging response information includes: Defining initial location information of the user equipment, determining first location information of the first UWB module and second location information of the second UWB module, and obtaining an arrival time difference; wherein the arrival time difference is used to characterize a time difference between the first timestamp and the second timestamp; Determine a first location information solution of a nonlinear equation group corresponding to the user equipment according to the initial location information, the first location information, the second location information and the arrival time difference; Obtaining a first azimuth angle and a first elevation angle corresponding to the first UWB module, and a second azimuth angle and a second elevation angle corresponding to the second UWB module, respectively, according to the first position information, the second position information, and the initial position information; Calculate the first position information solution of the nonlinear equation group, the initial pitch angle and the initial azimuth corresponding to the initial position information of the user equipment, and the first azimuth, the first pitch angle, the second azimuth and the second pitch angle to obtain the current moment position information corresponding to the user equipment.

7. The garage door access verification method based on Bluetooth technology and positioning technology according to claim 1 is characterized in that: The determining, based on the last moment location information and the current moment location information, whether the user equipment is close to the garage controller comprises: Determine whether the current moment location information of the user equipment is close to the garage controller relative to the previous moment location information; If the current moment location information is closer to the garage controller than the previous moment location information, executing the step of controlling the garage door to open to release the user device; If the current position information is far away from the garage controller relative to the previous position information, and the user device has entered the garage door, the garage door is controlled to close.

8. A garage door access verification system based on Bluetooth technology and positioning technology, characterized in that: Applied to a garage controller, the garage controller includes a Bluetooth low energy BLE module and an ultra-wideband UWB module, and the system includes: A measuring unit, configured to establish a Bluetooth communication connection with the user device based on the BLE module when detecting that the user device enters the Bluetooth detection range of the garage controller, and to measure the location information of the user device at a previous moment and the location information of the user device at a current moment based on the UWB module; wherein the location information at a previous moment is used to indicate the location information of the user device at a previous moment, and the location information at a current moment is used to indicate the location information of the user device at a current moment; an acquisition unit, configured to acquire user identification information of the user device through the Bluetooth communication connection based on the BLE module, so as to determine whether the user device is close to the garage controller according to the location information at the previous moment and the location information at the current moment when the user identification information successfully matches the local identification information stored in the garage controller; The control unit is used to control the garage door to open when the user device is close to the garage controller to release the user device.

9. A garage door access verification device based on Bluetooth technology and positioning technology, characterized in that: The device comprises: CPU, memory, input and output interfaces, wired or wireless network interfaces, and power supply; The memory is a short-term storage memory or a persistent storage memory; The central processing unit is configured to communicate with the memory and execute instruction operations in the memory to perform the garage access verification method based on Bluetooth technology and positioning technology as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes instructions, and when the instructions are executed on a computer, the computer executes the garage access verification method based on Bluetooth technology and positioning technology as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Intelligent access control system control method and system based on UWB

    CN113506392A

  • Indoor three-dimensional positioning method based on AOA and TDOA

    CN113514794A

  • Automatic sensing system and method for vehicle entering and exiting garage based on UWB (Ultra Wideband) technology

    CN114531645A

  • Digital vehicle key positioning method and system based on UWB

    CN115348538A

  • Control method, device and system for accurate person pick-up of vehicle and vehicle

    CN116634363A