Bluetooth-based high-precision distance measurement method
Through interference detection and channel response reconstruction of dual antennas, combined with RSSI and phase ranging instructions, the problems of large errors and complex calculations in the existing Bluetooth ranging methods are solved, and high-precision Bluetooth ranging is achieved, which reduces the ranging results. fluctuates and optimizes power consumption.
Patent Information
- Application Number
- CN202410995824.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-24
- Publication Date
- 2024-11-29
AI Technical Summary
The existing ranging method based on Bluetooth signals has problems such as large ranging error and high computational complexity, especially the linearity difference of the RSSI ranging method and the dependence of the phase ranging method on channel response, resulting in insufficient accuracy.
The initiator using a dual antenna is used to perform RSSI detection and interference detection with the reflective device through BLE connection, and channel response reconstruction is carried out in combination with phase ranging instructions. The distance is calculated using interference indication, and the appropriate frequency range and antenna switching method are selected for single-tone signal transmission and Receive, realize high-precision ranging.
Through channel response reconstruction, the fluctuations in the ranging results are significantly reduced, the ranging accuracy is improved, the low power consumption characteristics of the BLE system are fully utilized, and the demand for complex calculations is reduced.
Smart Images

Figure CN119044944A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of wireless communication and Bluetooth distance measurement, and in particular relates to a high-precision distance measurement method based on Bluetooth. Background Art
[0002] In today's highly digitalized and Internet-popularized society, the demand for location-based services (LBS) is growing. With the rapid development of the Internet of Things, smart devices, and wireless communication technologies, indoor positioning systems have gradually become the core technology for a variety of application scenarios, such as shopping mall navigation, object finding in warehousing and logistics, industrial automation, smart medical centers, digital car key positioning, digital tags, smart door locks, and emergency warnings.
[0003] RSSI is an indicator of received signal strength. The prior art usually uses the RSSI based on Bluetooth signals for ranging. This ranging method calculates the distance based on the RSSI of the Bluetooth signal. The ranging principle of this method is: if the distance is closer, the RSSI value is higher, and if the distance is farther, the RSSI value is lower. The prior art also discloses another method, which performs phase-based ranging by alternately sending and receiving single-tone signals at both ends of the device. This method uses the amplitude and phase of the channel to measure the sent single tone, and then uses the phase and amplitude of the channel to measure the distance through phase difference, FFT or super-resolution. It is a publicly available ranging system and method, and has been clearly defined as the Channel Sounding chapter in the next version of the Bluetooth protocol; and the ranging accuracy is specified to ±0.5 meters. Compared with RSSI ranging, this method has high computational complexity, strong anti-multipath capability, and high security level. The problems with the aforementioned ranging methods are: 1. Based on the Bluetooth RSSI ranging method, due to the poor linearity between RSSI and actual distance, the actual ranging error is large. Usually in the initial ranging stage, RSSI can be used to make a rough estimate of the distance. 2 .For phase-based ranging methods, the ranging accuracy mainly depends on the channel response between the transmitting and receiving devices. The accurate channel response must be obtained before performing ranging calculations.
[0004] The present invention solves the problems existing in the prior art and proposes a high-precision distance measurement method based on Bluetooth to provide higher distance measurement accuracy. Summary of the invention
[0005] In view of the problems raised by the above background technology, the purpose of the present invention is to provide a high-precision distance measurement method based on Bluetooth.
[0006] In order to achieve the above technical objectives, the technical solution adopted by the present invention is as follows:
[0007] A high-precision distance measurement method based on Bluetooth, comprising a distance measurement system, an initiating device and a reflecting device of the distance measurement system, wherein the initiating device is provided with a dual antenna, and the distance measurement method further comprises the following steps:
[0008] Step 1: The initiating device and the reflecting device establish a BLE connection;
[0009] Step 2: The initiating device sends an RSSI detection request instruction to the reflective device;
[0010] Step 3: The reflector device transmits a BLE carrier signal to the initiator device according to the RSSI monitoring request instruction;
[0011] Step 4: The initiating device receives the BLE carrier signal transmitted by the reflecting device and calculates the RSSI value;
[0012] Step 5: The initiating device performs interference detection through dual antennas to obtain a first interference indication;
[0013] Step 6: The initiating device sends a phase ranging command to the transmitting device;
[0014] Step 7: The initiating device and the reflecting device receive single-tone signals from each other within a predetermined frequency range;
[0015] Step 8: The initiating device and the reflecting device perform interference detection of the dual antennas according to the received single-tone signal to obtain a second interference indication;
[0016] Step nine: the initiating device performs channel response reconstruction according to the first interference indication and the second interference indication;
[0017] Step 10: The initiating device calculates the distance between the initiating device and the reflecting device according to the reconstructed channel response.
[0018] It is further defined that in step three, the reflection device transmits the BLE carrier signal in a predetermined frequency hopping manner.
[0019] It is further defined that the first interference indication in step five is expressed as:
[0020] interfer_rssi_flag antenna1 and interfer_rssi_flag antenna2 .
[0021] It is further defined that in step six, when the RSSI values of all channels are greater than or equal to a preset RSSI threshold, the initiating device initiates a phase ranging instruction, and the phase ranging instruction includes a frequency range and antenna switching control.
[0022] It is further defined that in step seven, the initiating device and the reflecting device send and receive single-tone signals in a predetermined frequency range by frequency hopping or dual-antenna switching.
[0023] It is further defined that the second interference indication in step eight is represented by:
[0024] interfer_snr_flag antenna1 and interfere_snr_flag antenna2 .
[0025] Beneficial effects of the present invention:
[0026] 1. The present invention provides a high-precision ranging method based on Bluetooth. The ranging system uses RSSI for initial ranging estimation, which avoids the two devices, the initiator device and the reflector device, in the ranging system being in the complex calculation and processing of phase ranging for a long time, and gives full play to the low power consumption characteristics of the BLE system.
[0027] 2. This solution uses interference detection, and performs channel response reconstruction ranging according to multiple sets of interference indications. The 5m distance in the corridor environment is selected for ranging, and the test is performed 300 times. The ranging results before and after channel reconstruction are compared. Before channel reconstruction, the channel is affected by the environment, resulting in large fluctuations in ranging results. After channel reconstruction, the fluctuations in ranging affected by the environment are greatly reduced, and the improvement effect is significant. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] The present invention can be further illustrated by the non-limiting examples given in the accompanying drawings;
[0029] Figure 1 A flowchart of a high-precision distance measurement method based on Bluetooth according to an embodiment of the present invention;
[0030] Figure 2 A comparison diagram of ranging results before and after channel reconstruction of an embodiment of a high-precision ranging method based on Bluetooth of the present invention;
[0031] Figure 3 A graph showing the relationship between signal rssi and distance under different channels in an embodiment of a high-precision distance measurement method based on Bluetooth according to the present invention;
[0032] Figure 4 It is a time domain signal diagram of different paths of an initiator device in an embodiment of a high-precision ranging method based on Bluetooth in different channels of the present invention;
[0033] Figure 5 It is a time domain waveform diagram of different paths of a reflection device refletor in different channels in an embodiment of a high-precision ranging method based on Bluetooth of the present invention. DETAILED DESCRIPTION
[0034] In order to enable those skilled in the art to better understand the present invention, the technical solution of the present invention is further described below in conjunction with the accompanying drawings and embodiments. The technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present invention.
[0035] It should be noted that all directional indications in the embodiments of the present invention (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0036] In addition, the descriptions of "first", "second", etc. in the present invention are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. 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 it must be based on the ability of ordinary technicians in the field to implement. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0037] like Figure 1 As shown, a high-precision distance measurement method based on Bluetooth of the present invention includes a distance measurement system, an initiator of the distance measurement system and a reflector, wherein the initiator is provided with a dual antenna, and the distance measurement method further includes the following steps:
[0038] Step 1: The initiator and the reflector establish a BLE connection;
[0039] Step 2: The initiator sends an RSSI detection request command to the reflector;
[0040] Step 3: The reflector transmits the BLE carrier signal to the initiator according to the RSSI monitoring request instruction;
[0041] Step 4: The initiator receives the BLE carrier signal transmitted by the reflector and calculates the RSSI value;
[0042] Step 5: The initiator performs interference detection through dual antennas to obtain a first interference indication;
[0043] Step 6: The initiator sends a phase ranging command to the transmitting device;
[0044] Step 7: The initiator and the reflector receive single-tone signals from each other within a predetermined frequency range;
[0045] Step 8: The initiator and the reflector perform interference detection of the dual antennas according to the received single-tone signal to obtain a second interference indication;
[0046] Step nine: the initiator performs channel response reconstruction according to the first interference indication and the second interference indication;
[0047] Step 10: The initiator calculates the distance between the initiator and the reflector according to the reconstructed channel response.
[0048] Preferably, in step three, the reflector transmits the BLE carrier signal in a predetermined frequency hopping manner.
[0049] Preferably, the first interference indication in step 5 is expressed as:
[0050] interfer_rssi_flag antenna1 and interfer_rssi_flag antenna2 .
[0051] Preferably, in step six, when the RSSI values of all channels are greater than or equal to a preset RSSI threshold, the initiator initiates a phase ranging instruction, and the phase ranging instruction includes a frequency range and antenna switching control.
[0052] Preferably, in step seven, the initiator and the reflector send and receive single-tone signals in a predetermined frequency range by frequency hopping or dual-antenna switching.
[0053] It is further defined that the second interference indication in step eight is represented by:
[0054] interfer_snr_flag antenna1 and interfere_snr_flag antenna2 .
[0055] like Figure 2 As shown, Figure 2 This is a comparison chart of the ranging results before and after channel reconstruction. Figure 2 The horizontal axis is the number of tests, and the vertical axis is the test distance. The red curve is the ranging result without channel reconstruction. The ranging result fluctuates greatly due to the environment. The blue curve is the ranging result after channel reconstruction. By comparison, it can be seen that the fluctuation of the ranging result has been significantly improved after channel reconstruction.
[0056] Figure 2 Interference detection was used to perform channel response reconstruction ranging based on multiple sets of interference indications. The 5m distance in the corridor environment was selected for ranging, and the test was conducted 300 times. The ranging results before and after channel reconstruction were compared. Before channel reconstruction, the channel was affected by the environment, resulting in large fluctuations in ranging results. After channel reconstruction, the fluctuations in ranging results affected by the environment were greatly reduced, and the improvement effect was significant.
[0057] (1) Bluetooth RSSI monitoring and first interference indication based on RSSI:
[0058] like Figure 3 As shown in the figure, since the RSSI of the Bluetooth signal has no strong linear relationship with the distance and the RSSI of different channels also varies, there will be a large error in directly measuring the distance based on RSSI. However, the range of RSSI within a certain distance is controllable. For example, within a range of 10 meters, RSSI>-72dBm. Therefore, RSSI can be used to make an initial distance judgment, so that the initiator and reflector of the ranging system can work in a low-power stage to a large extent, and only enter the high-precision ranging stage when the RSSI is greater than the threshold. The interference indication based on RSSI is calculated as follows, where the value range of i is 0 to 36, and the channel interval is 2MHz, indicating a full traversal of 37 channels:
[0059] interfer_rssi_flag antenna1 =mean(RSSI(i))-min(RSSI(i))
[0060] interfer_rssi_flag antenna2 =mean(RSSI(i))-min(RSSI(i))
[0061] (2) Interference indication based on signal-to-noise ratio
[0062] like Figure 4The time domain signal diagram of different paths of the initiator under different channels is shown in the figure. Figure 5 The time domain waveforms of different paths of the reflector under different channels are shown as follows.
[0063] When the initiator and reflector pass through different antenna paths, the signal attenuation is different. Therefore, when performing RSSI interference indication estimation and phase ranging, dual antenna switching is required to obtain data from different antenna paths.
[0064] During phase ranging, the initiator performs interference detection and obtains interference indications in each antenna direction, that is, the signal-to-noise ratio of each channel in each antenna direction. The following formula is the interference indication based on the signal-to-noise ratio, where the value of i ranges from 0 to 79 and the channel spacing is 1MHz. It can be concluded that the higher the signal-to-noise ratio, the smaller the interference; if the signal-to-noise ratio is lower, the interference is greater.
[0065] interfer_snr_flag antenna1 =min(snr(i))
[0066] interfer_snr_flag antenna2 =min(snr(i))
[0067] (3) Reconstruct the channel response based on the two sets of interference indicators obtained above.
[0068] When the second interference indication:
[0069] interfer_rssi_flag antenna1 ≥VALUE1;interfer_rssi_flag antenna2 ≥ VALUE1;interfer_snr_flag antenna1 ≥ VALUE2;interfer_snr_flag antenna2 ≥ VALUE2; channel interference is small, if interfer_snr_flag antenna1 ≤interfer_snr_flag antenna2 ; the channel response data of the first antenna is used, otherwise the channel response data of the second antenna is used.
[0070] When the second interference indication:
[0071] interfer_rssi_flag antenna1 ≤VALUE3;interfer_rssi_flag antenna2≤ VALUE3;interfer_snr_flag antenna1 ≤ VALUE4;interfer_snr_flag antenna2 ≤VALUE4; the channel interference is large and the ranging data is discarded.
[0072] In addition to the above two cases, other interference indication combination relationships all perform weighted processing on the channel responses of the two antennas. The weighted coefficient is determined in real time according to the interference indication ratio relationship.
[0073] In summary, the present invention provides a high-precision ranging method based on Bluetooth, in which the ranging system uses RSSI for initial ranging estimation, thereby avoiding the two devices, the initiator device and the reflector device, in the ranging system being in the complex calculation processing of phase ranging for a long time, and giving full play to the low power consumption characteristics of the BLE system.
[0074] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present invention. Therefore, all equivalent modifications or changes made by those with ordinary knowledge in the technical field without departing from the spirit and technical ideas disclosed by the present invention should still be covered by the claims of the present invention.
Claims
1. A high-precision distance measurement method based on Bluetooth, It is characterized in that The method comprises a ranging system, an initiating device and a reflecting device of the ranging system, wherein the initiating device is provided with a dual antenna, and the ranging method further comprises the following steps: Step 1: The initiating device and the reflecting device establish a BLE connection; Step 2: The initiating device sends an RSSI detection request instruction to the reflective device; Step 3: The reflector device transmits a BLE carrier signal to the initiator device according to the RSSI monitoring request instruction; Step 4: The initiating device receives the BLE carrier signal transmitted by the reflecting device and calculates the RSSI value; Step 5: The initiating device performs interference detection through dual antennas to obtain a first interference indication; Step 6: The initiating device sends a phase ranging command to the transmitting device; Step 7: The initiating device and the reflecting device receive single-tone signals from each other within a predetermined frequency range; Step 8: The initiating device and the reflecting device perform interference detection of the dual antennas according to the received single-tone signal to obtain a second interference indication; Step nine: the initiating device performs channel response reconstruction according to the first interference indication and the second interference indication; Step 10: The initiating device calculates the distance between the initiating device and the reflecting device according to the reconstructed channel response.
2. A high-precision distance measurement method based on Bluetooth according to claim 1, Features: In step three, the reflective device transmits the BLE carrier signal in a predetermined frequency hopping manner.
3. The high-precision distance measurement method based on Bluetooth according to claim 1, Features: The first interference indication in step 5 is represented by interfere_rssi_flag antenna1 and interfer_rssi_flag antenna2 .
4. The high-precision distance measurement method based on Bluetooth according to claim 1, Features: In the step six, when the RSSI values of all channels are greater than or equal to a preset RSSI threshold, the initiating device initiates a phase ranging instruction, and the phase ranging instruction includes a frequency range and antenna switching control.
5. The high-precision distance measurement method based on Bluetooth according to claim 1, Features: In step seven, the initiating device and the reflecting device send and receive single-tone signals in a predetermined frequency range by frequency hopping or dual-antenna switching.
6. The high-precision distance measurement method based on Bluetooth according to claim 1, Features: The second interference indication in step eight is represented by interfere_snr_flag antenna1 and interfere_snr_flag antenna2 .
Citation Information
Cited By
Adaptive frequency hopping method for efficient distance measurement based on BLE channel sounding
WO2026173361A1
