Next Article in Journal
All-Fiber Flexible Electrochemical Sensor for Wearable Glucose Monitoring
Previous Article in Journal
Rapid Mental Workload Detection of Air Traffic Controllers with Three EEG Sensors
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Research and Implementation of Indoor Positioning Algorithm Based on Bluetooth 5.1 AOA and AOD

1
School of Computer Science and Engineering, University of Electronic Science and Technology, Chengdu 610056, China
2
State Grid Henan Electric Power Company, Zhengzhou 450018, China
3
State Grid Henan Electric Power Research Institute, Zhengzhou 450000, China
*
Authors to whom correspondence should be addressed.
Sensors 2024, 24(14), 4579; https://doi.org/10.3390/s24144579
Submission received: 21 May 2024 / Revised: 26 June 2024 / Accepted: 10 July 2024 / Published: 15 July 2024
(This article belongs to the Section Navigation and Positioning)

Abstract

:
With the addition of Bluetooth AOA/AOD direction-finding capabilities in the Bluetooth 5.1 protocol and the introduction of antenna array technology into the Bluetooth platform to further enhance positioning accuracy, Bluetooth has gradually become a research hotspot in the field of indoor positioning due to its standard protocol specifications, rich application ecosystem, and outstanding advantages such as low power consumption and low cost compared to other indoor positioning technologies. However, current indoor positioning based on Bluetooth AOA/AOD suffers from overly simplistic core algorithm implementations. When facing different application scenarios, the standalone AOA or AOD algorithms exhibit weak applicability, and they also encounter challenges such as poor positioning accuracy, insufficient real-time performance, and significant effects of multipath propagation. These existing problems and deficiencies render Bluetooth lacking an efficient implementation solution for indoor positioning. Therefore, this paper proposes a study on Bluetooth AOA and AOD indoor positioning algorithms. Through an analysis of the principles of Bluetooth’s newly added direction-finding functionality and combined with research on array signal DOA estimation algorithms, the paper ultimately integrates the least squares algorithm to optimize positioning errors in terms of accuracy and incorporates an anti-multipath interference algorithm to address the impacts of multipath effects in different scenarios. Experimental testing demonstrates that the indoor positioning algorithms applicable to Bluetooth AOA and AOD can effectively mitigate accuracy errors and overcome multipath effects, exhibiting strong applicability and significant improvements in real-time performance.

1. Introduction

With the rapid development of wireless communication technology and the widespread application of Internet of Things (IOT) technology, location-based services have greatly promoted the development of social production and life. In outdoor environments, the development of satellite positioning technologies such as the Global Positioning System (GPS), the BeiDou Navigation Satellite System, and GLONASS has matured significantly. Consequently, research has gradually shifted towards indoor positioning technologies [1]. Currently, mainstream indoor positioning technologies include ultra-wideband (UWB), WiFi, radio-frequency identification (RFID), and Bluetooth Low Energy, among others. Among these, Bluetooth Low Energy technology, represented by its standardized protocol specifications, combined with its rich ecosystem, low power consumption, and cost-effectiveness [2], has gradually become the focus of current research in indoor positioning.
The Bluetooth Technology Alliance added a direction-finding function to the Bluetooth 5.1 protocol specification, which includes two methods: angle of arrival (AOA) and angle of emission (AOD). Currently, the direction-finding function of Bluetooth is still in the early stages of development, and further research and improvement are needed based on the practical application of its technology. Some proposed AOA/AOD estimation methods, such as the indoor positioning system that integrates inertial navigation and Bluetooth AOA, use auxiliary devices such as gyroscopes and accelerometers combined with Bluetooth to form a high-precision AOA positioning system. However, when it is applied in different scenarios, the applicability of the software algorithm is poor and it is difficult to solve prominent environmental problems; while others, such as the three-dimensional indoor positioning system that integrates Bluetooth AOA/AOD and ultra-wideband, use an ultra-wideband base station in combination with a Bluetooth base station and add a filtering algorithm to complete indoor three-dimensional positioning. There are still many deficiencies in the research and optimization of the algorithm part. The algorithm depends on the choice of hardware and has poor universality [3,4]. In the implementation of positioning algorithms based on Bluetooth 5.1, there are still many problems and defects at this stage, including the improvement of positioning accuracy, the influence of multipath effects in different environments, and the weak applicability of the algorithms of AOA and AOD. Therefore, this paper proposes a study on DOA estimation algorithms suitable for two Bluetooth direction-finding methods, and further integrates the positioning algorithm’s accuracy and a solution to multipath interference in different environments to achieve high-precision output of the entire positioning algorithm.
The structure of this paper is as follows: Firstly, by studying the principles of Bluetooth direction-finding, the implementation process, data information, and positioning principles of direction-finding technology are analyzed. Secondly, based on the research findings, a further study is conducted to analyze direction-of-arrival (DOA) estimation algorithms suitable for both Bluetooth AOA and AOD methods, and a more suitable algorithm is selected for further positioning research. Finally, according to the selected algorithm and the issues encountered in practical applications, optimization algorithms are adopted to further design and experimentally test the positioning algorithm. The experimental results are analyzed, research directions are summarized, and the provided application value is evaluated, aiming to provide efficient implementation solutions for more researchers.
We summarize the contributions of our work as follows:
(1) We researched and analyzed the implementation principles, process, and data information used in the positioning process of the newly added direction-finding feature in Bluetooth 5.1. Furthermore, we summarized the entire positioning process to provide more detailed reference for other researchers.
(2) We researched and analyzed direction-of-arrival (DOA) estimation algorithms suitable for Bluetooth AOA and AOD. Through testing and data comparison analysis, we selected DOA estimation algorithms with stronger applicability for further research and improvement.
(3) Based on the research outcomes of the algorithms and considering the existing issues and deficiencies in practical applications, we optimized the algorithms by employing the least squares and anti-multipath interference algorithms, resulting in the design of a Bluetooth indoor positioning algorithm with strong versatility.

2. Research on Bluetooth AOA/AOD Technology

2.1. Principles of CTE Signals

The Bluetooth 5.1 specification introduces direction-finding capabilities, which essentially involve adding a portion of CTE (Constant Tone Extension) fields to the end of Bluetooth data packets. The overall parameter information of CTE is illustrated in Figure 1 CTE consists of a segment of continuous binary symbols “1”, the quantity of which can be configured in the Bluetooth protocol stack. With Bluetooth 5.1 hardware, the transmitter sends CTE at a stable frequency. As it consists of a continuous sequence of characters “1”, the receiver can sample this stable frequency [5,6]. Finally, the sampled data are saved in I/Q format for further use in direction-finding functionality.
The CTE (Constant Tone Extension) can be sent in both connection mode and broadcast mode [7]. It is appended after the CRC (cyclic redundancy check) without affecting the original data content. The configuration of CTE can be specified in the header of the link layer data packet PDU (protocol data unit), including settings for CTE type and duration, as shown in Figure 1. In the CTEInfo field, CTETime represents the duration of CTE in units of 8 microseconds, ranging from 2 to 20. The CTEType field indicates the type of CTE and the slot size for antenna switching, with other values reserved for future use [8].
Taking AOA mode as an example, the principle of the Bluetooth direction-finding transmitter is shown in Figure 2, where the bits of CTE pass through a Gaussian frequency-shift keying (GFSK) modulator [9], with its baseband waveform as follows:
S TX B ( t ) = A TX B cos 2 π d e v t + θ TX B
Here, θ TX B represents the initial phase and d e v represents the frequency deviation.
The baseband waveform is up-converted to the Bluetooth channel frequency, then amplified by a power amplifier for transmission. The transmitted signal waveform of the CTE bits is
S T X ( t ) = A T X cos 2 π d e v t + 2 π T X t + θ T X
where T X represents the Bluetooth channel frequency, and θ T X represents the initial phase at antenna transmission.
As shown in Figure 3, at the Bluetooth device receiver, the Bluetooth receiver switches through the array elements one by one using a time-division switching mechanism. Taking the example of a receiver with two antennas, the signals received by the antennas are
S RX S ( t ) = A RX cos 2 π dev + TX t d 1 c + θ R X + n ( t ) , t t slot [ 2 n , 2 n + 1 ) A R X cos 2 π d e v + T X t d 2 c + θ R X + n ( t ) , t t slot [ 2 n + 1 , 2 n + 2 ) = A R X cos 2 π d e v + T X t + θ R X 1 + n ( t ) , t t slot [ 2 n , 2 n + 1 ) A R X cos 2 π d e v + T X t + θ R X 1 + θ d + n ( t ) , t t slot [ 2 n + 1 , 2 n + 2 )
where d 1 and d 2 represent the distances on the signal propagation path between the transmitting antenna and the two receiving antennas, respectively, n(t) represents the received noise, and t slot represents the duration of each antenna sampling slot.
θ d = 2 π d e v + T X d 1 d 2 c = 2 π d λ T X
where d represents the distance between the two receiving antennas on the signal propagation path, and λ T X is the wavelength of the transmitted signal.
At the receiver end, down-conversion is performed first, followed by orthogonal sampling. The outputs of the in-phase channel and the quadrature channel are
S R X I ( t ) = A I Q cos 2 π d e v + Δ c a r t + θ R X I Q 1 + n I ( t ) , t t slot [ 2 n , 2 n + 1 ) A I Q cos 2 π d e v + Δ car t + θ R X I Q 1 + θ d + n I ( t ) , t t slot [ 2 n + 1 , 2 n + 2 )
S R X Q ( t ) = A I Q sin 2 π d e v + Δ car t + θ R X I Q _ 1 + n Q ( t ) , t ϵ t slot [ 2 n , 2 n + 1 ) A I Q sin 2 π dev + Δ car t + θ R X I Q 1 + θ d + n Q ( t ) , t ϵ t slot [ 2 n + 1 , 2 n + 2 )
where Δ car represents the carrier frequency offset between the transmitter and the receiver, i.e., Δ car = T X R X · n I ( t ) and n Q ( t ) , respectively, represent the noise received in the in-phase channel and the quadrature channel.

2.2. Angle Calculation and Coordinate Transformation

A one-dimensional antenna can effectively measure the azimuth angle θ , while a two-dimensional antenna can further obtain the elevation angle φ of the target in three-dimensional space, as shown in Figure 4. Based on the two-dimensional antenna array, the direction angle and elevation angle of target A can be accurately measured [10], thereby preliminarily determining the position information of target A in three-dimensional space.
From Figure 4, it is evident that to obtain the spatial position information of the target, the most crucial aspect is acquiring the corresponding angle information. With this information, the specific position of the target can be calculated further [11]. As shown in Figure 5, the receiving-end antenna controlled by the Bluetooth chip is depicted. When the antenna receives the incident wave signal, since the wavelength λ of 2.4 GHz is approximately 0.125 m, and the distance d between the antennas is known, along with the phase difference ϕ of the signal, the angle of incidence θ relative to the receiving end of the target can be calculated using Formula (7). For a two-dimensional antenna [12], the same principle can also be used to measure the elevation angle φ of the target relative to the receiving end.
d cos θ = ϕ λ 2 π
Once accurate angles relative to the receiving end are obtained, by combining multiple (≥2) receiving-end devices and utilizing the triangular relationship formed by the angle information and the devices, the target’s position coordinates can be calculated using the triangulation method, as shown in Figure 6, where A, B, C, and D represent four two-dimensional antenna arrays positioned on the XYZ coordinate axis in three-dimensional space. The coordinates of each antenna array are known [13,14], and the coverage area formed fully encompasses the test environment. However, the coordinates of point O are unknown, indicating the need to determine the position coordinates of the target O. As seen in the figure, any two receiving-end devices can form a triangular relationship with the target to be measured, and ≥2 devices can form multiple triangular relationships to achieve more accurate and higher-precision positioning.
As shown in Figure 6, the two-dimensional antenna arrays A and B are taken as examples to obtain the position coordinates of target O, assuming the coordinates of A are (X1, Y1) and the coordinates of B are (X2, Y2), and the angles ABO and BAO can be obtained based on the antenna arrays. Moreover, by utilizing the triangular relationship formed by the two receiving-end devices and the target, the coordinates (X, Y) of target O can be determined using the triangulation method. Similarly, for three-dimensional coordinates, target information can be obtained using the same principle.
X = ( Y 2 X 2 tan BAO ) ( Y 1 X 1 tan ABO ) tan BAO tan ABO
Y = ( X 2 Y 2 cot BAO ) ( X 1 Y 1 cot ABO ) cot BAO cot ABO

3. Research on Direction-of-Arrival (DOA) Estimation Algorithms

3.1. ESPRIT Algorithm

The ESPRIT algorithm is based on the subspace rotation-invariant technique, which eliminates the need for a full-space search, reducing computational complexity. Due to its superiority in parameter estimation and other aspects, the algorithm has been widely applied in recent years [15,16]. The following section provides a detailed introduction to its core implementation in DOA estimation.
Step 1: Divide the two-dimensional antenna array into several rectangular sub-arrays of overlapping sizes, calculate the covariance matrix of the received signals for each sub-array, and further, obtain the average value R ¯ .
R ¯ = 1 M s N s m = 1 M s n = 1 N s R m n
Step 2: Perform eigendecomposition on the average value R ¯ to obtain the signal subspace E s , and divide it into blocks. Obtain U ^ K from the eigenvalues of E x + E y , then reconstruct E s . Similarly, obtain V ^ K using a similar method.
As shown in the following formula, E s represents the signal subspace matrix obtained by signal eigenvalue decomposition, E s 1 and E s 2 represent the last M rows and the first M rows of the matrix E s , respectively, k represents the signal target in the space (k = 1, 2, …, k), M represents the number of antenna array elements (M = 1, 2 …, M), and γ k represents the Kth eigenvalue of the matrix E x + E y .
E s = E x E s 1 = E s 2 E y U ^ k = angle γ k λ / 2 π d V ^ k = cos θ k sin φ k
Step 3: Calculate θ ^ k and φ ^ k using the equation.
θ ^ k = tan 1 U ^ k / V ^ k φ ^ k = sin 1 U ^ k 2 + V ^ k 2
According to the research on the principle and implementation process of the algorithm, a verification test and analysis of the data simulation are carried out. The Matlab software is used to set the antenna element spacing, number of elements, and signal-to-noise ratio to simulate the signal. At the same time, the simulated signal is sampled 1000 times in combination with the ESPRIT algorithm. Finally, the solution is obtained to obtain the corresponding azimuth and elevation angle results, and the accuracy and calculation time are evaluated. The results are recorded in Table 1. According to the results, it can be analyzed that the algorithm is lacking in azimuth accuracy and the solution time performance is not very good, which needs to be improved.

3.2. Capon Algorithm

The Capon algorithm has the advantage of automatic parameter pairing in two-dimensional DOA estimation, but its complexity is high due to the spatial spectrum. Therefore, in practical applications, improved algorithms with dimensionality reduction are commonly used. Similar to other DOA estimation algorithms, its implementation principle is also based on spectrum peak search, where the two angles corresponding to the spectrum peaks are the desired azimuth and elevation angles [17,18]. The following introduces the core implementation process of the dimensionality reduction-based algorithm:
Step 1: Calculate the covariance matrix of the received signals.
R x ^ = 1 L I = 1 L X t 1 X H t 1
Step 2: Perform a global search to find the K largest peaks in the (1,1) element of Q ( U ) 1 , obtaining estimated values for U k ( K = 1 , , K ) , Calculate a ^ x ( V k ) using the following equation, and then, use least squares to obtain estimated values for V k ( K = 1 , , K ) . Where L is the number of samples, Q ( U ) 1 is the inverse matrix of matrix U, and e 1 is the transposed matrix representing the row matrix.
a ^ x V k = Q ( U ) 1 e 1 e 1 H Q ( U ) 1 e 1
Step 3: Finally, calculate θ ^ k and φ ^ k using the following formula.
θ ^ k = tan 1 U ^ k / V ^ k φ ^ k = sin 1 U ^ k 2 + V ^ k 2
According to the research on the principle and implementation process of the algorithm, a verification test and analysis of the data simulation are carried out. The Matlab software is used to set the antenna element spacing, number of elements, and signal-to-noise ratio to simulate the signal. At the same time, the Capon algorithm is combined to sample the simulated signal 1000 times, and finally, the solution is obtained to obtain the corresponding azimuth and elevation angle results, and the accuracy and calculation time are evaluated. The results are recorded in Table 2. According to the results, it can be analyzed that the algorithm is lacking in accuracy at two angles, and is not as good as the ESPRIT algorithm in terms of solution time.

3.3. MUSIC Algorithm

The MUSIC algorithm is the most commonly used method for two-dimensional DOA estimation. Compared to the other algorithms, it is relatively simple in terms of principles and implementation steps. However, it has the advantage of quick verification or development, and there are more methods for improvement and optimization [19,20]. Nevertheless, it also faces the issue of high computational complexity, which can be mitigated by using the improved cascaded MUSIC algorithm. The core implementation process is as follows.
Step 1: Utilize the received signals to obtain an estimated covariance matrix.
R x ^ = 1 L I = 1 L X t 1 X H t 1
Step 2: Perform eigendecomposition on the estimated covariance matrix R ^ x to obtain E s and E n . Obtain U ^ K i n i from the eigenvalues of E x + E y , and apply the one-dimensional MUSIC principle to obtain V ^ k ,
u ^ k = arg max u U ^ k i n i Δ , U ^ k i n i + Δ 1 a 1 ( u ) a 2 V ^ k H E n E n H a 1 ( u ) a 2 V ^ k k = 1 , 2 , , K v ^ k = arg max v [ 1 , + 1 ] 1 a 1 U ^ k i n i a 2 ( v ) H E n E n H a 1 U ^ k i n i a 2 ( v ) k = 1 , 2 , , K
Step 3: Finally, θ ^ k and φ ^ k can be calculated using the following equation.
θ ^ k = tan 1 U ^ k / V ^ k φ ^ k = sin 1 U ^ k 2 + V ^ k 2
According to the research on the principle and implementation process of the algorithm, a verification test and analysis of the data simulation are carried out, and the results are recorded in Table 3. The three algorithms studied are compared and performance analysis is carried out. As shown in Figure 7, whether it is the elevation estimation diagram on the left or the azimuth estimation diagram on the right, when the signal-to-noise ratio data (SNR) gradually increases, the error (RMSE) of the three algorithms gradually decreases, and the performance of the MUSIC algorithm is outstanding. Compared with the Capon and ESPRIT algorithms, the performance is better. It can be seen that the MUSIC algorithm has certain advantages in performance. The subsequent design based on this algorithm will realize further positioning algorithm research.

4. Analysis and Design of Bluetooth AOA/AOD Indoor Positioning Algorithm

In indoor positioning, signals emitted by signal sources undergo distortion during propagation due to environmental factors, leading to deviations in the received signals and resulting in inaccurate positioning results. Unlike outdoor open environments, indoor environments are complex and diverse, exerting a significant impact on positioning. Particularly, indoor multipath effects manifest as wireless signals undergoing multiple reflections, scattering, and diffraction before reaching the receiving antenna through multiple paths during propagation. This phenomenon significantly degrades the accuracy of indoor positioning. Therefore, analyzing and mitigating indoor multipath propagation is indispensable.
The multipath signal model with specular reflection is illustrated in Figure 8. Apart from the direct signal, indoor environments also involve reflected signals from different paths, which may vary in the number of reflections. Taking the example of a single reflected signal path shown in the figure, with an incident angle of θ and a straight-line distance between the transmitting and receiving antennas of D, the delay of the reflected signal compared to the direct signal after one reflection is
Δ L = D 1 sin θ 1
The MUSIC algorithm has good resolution and high accuracy in a good signal-to-noise ratio environment. When the BLE signal strength is not particularly prominent, especially in an indoor environment, the multipath effect distorts the pseudo-spectrum, resulting in the maximum value of the angle estimation appearing at the wrong position. A spectrum analyzer is used in an experimental environment without interference and in an open space to obtain the spectrum distribution diagram of the Bluetooth signal in an ideal situation. At the same time, a spectrum analyzer is also used in a real environment to collect the spectrum distribution diagram of the Bluetooth signal in actual applications. Figure 9 compares the pseudo-spectra in the ideal situation and the real situation. It shows that the algorithm should increase the processing design of the multipath effect in actual applications, and the algorithm can be used to further improve the range accuracy performance.

4.1. Algorithm Improvement Design

4.1.1. Least Squares Algorithm

Utilizing mathematical optimization techniques, finding the best function match for the data by minimizing the sum of squared errors, establishing measurement equations based on the geometric principles of positioning methods, and if necessary, linearizing combined nonlinear equations to obtain a set of joint equations, thus enabling a more accurate determination of the target’s position, can effectively improve the positioning accuracy of the algorithm. The following is the design and implementation process.
Y = A X
where Y typically represents an nx1-dimensional known vector expressed as a function of measurement values, X is an mx1-dimensional position vector consisting of the coordinates of the tags’ locations, and A is an nxm-dimensional measurement matrix representing the relationship between measurement values and tag positions. Due to various errors, the above system of equations usually has no solution. Introducing an error vector ε , we have
ε = A X Y
The problem can be transformed into finding X that minimizes the sum of squared residuals:
( X ) = ( A X Y ) T ( A X Y )
Taking the derivative of ( X ) and setting it equal to zero, we have
( X ) d X = 2 A T A X 2 A Y = 0
If m = n and A is non-singular, then X = A 1 Y ; if n > m , that is, the number of equations is greater than the number of unknowns, then the least squares solution is obtained. When A T A is non-singular, the least squares solution is
X ^ = ( A T A ) 1 A T Y
In practical applications, it is often necessary to use the weighted least squares algorithm to address issues related to varying precision in different measurement values. Based on different measurement methods or factors such as varying signal quality at different measurement nodes, a weighting matrix W is formulated. With the above equation, we have W ( X ) = ( A X Y ) T W ( A X Y ) . Using the same method for differentiation, we obtain the weighted least squares solution:
X ^ w = ( A T W A ) 1 A T W Y
Taking the base station A in Figure 6 as an example, with the coordinates of the base station being ( x i , y i ) , and the coordinates of the target O being (x, y), we have
x x i 2 + y y i 2 = d i 2 tan θ i = y y i x x i
where i = 0, 1, 2, …, N−1, according to the above equation group (26), by linearizing the first equation group by subtracting the first equation in turn, the final linear equation group can be obtained as follows (27), and combined with Formula (24) and Formula (25), the required target (x, y) information can be finally solved. By integrating the overall least squares algorithm into the MUSIC algorithm in DOA estimation, the accuracy of the algorithm in indoor positioning can be further improved. The initial MUSIC algorithm and the improved algorithm are sampled and calculated under the same simulation signal, and the simulation method is the same as in Table 1. At the same time, the angle errors of the two algorithms are recorded to form an error probability distribution curve, as shown in Figure 10. It can be clearly seen that the positioning accuracy based on the improved algorithm has been significantly improved.
A = 2 x 1 x 0 2 y 1 y 0 tan θ 0 1 tan θ N 1 1 , Y = x 1 2 x 0 2 + y 1 2 y 0 2 + d 0 2 d 1 2 x 0 tan θ N 1 y 0 x N 1 tan θ N 1 y N 1

4.1.2. Anti-Multipath Interference Algorithm

The spectral peak search algorithm can be used to obtain an angle sequence containing effective signals and some multipath signals: Angle A P 1 = θ h 1 A P 1 , θ v 1 A P 1 , , φ h k A P 1 , φ v k A P 1 . The information in this sequence is sorted according to the probability of the spatial spectrum, and the quantity can be set considering the richness of the indoor multipath and the computational speed of the positioning backend device. Then, for each base station, the first value in the angle sequence is selected, i.e., the path with the highest probability, to generate the corresponding matrices A and B along with their weight matrix W. The positioning result and residual error error = mean abs A P ^ B W B are calculated. If the residual error is less than the threshold, the current calculated position is taken as the final positioning result. Otherwise, the remaining angle sequences for each base station are traversed until a solution with a residual error less than the threshold is found. If after traversing all angle sequences the residual error still exceeds the threshold, the solution with the smallest residual error is taken as the optimal positioning result for the target after removing multipath signals from all base stations and considering only valid signals in the angle calculation.
Based on the fused least squares and MUSIC positioning algorithm, combined with the anti-multipath algorithm, the angle information of the target to be measured can be effectively calculated. This will ultimately make the mapped coordinates more accurate, as shown in Figure 11. Combining the estimation of the multipath algorithm, after multiple optimization calculations, forms the optimal target estimation result.

5. Bluetooth AOA/AOD Indoor Localization Algorithm Testing

The test verification hardware adopts a 4 × 4 dual-polarized antenna array based on Bluetooth 5.1 and corresponding electronic tags for the actual testing of the algorithms designed in this study, as shown in Figure 12. Compared to other antennas, the dual-polarized array antenna has better anti-interference capabilities and can improve spectrum utilization in spatial reuse, reducing the complexity of communication systems. It also offers higher flexibility in the configuration for different scenarios.

Indoor Experimental Scene and Test Results

In a complex indoor environment, the hardware antenna kit selected for verification is used to deploy two antenna array boards at the height of the ceiling. The first one is deployed on the left side of the corner of the ceiling, and the other one is deployed on the right side. The two are 1.5 m apart and 3 m away from the ground, as shown in Figure 13. The antenna arrays are connected to the switch of the same route through a network cable, and the collected data can be sent to the PC server of the same network segment for the algorithm solution and testing and other applications. By solving the collected signals into corresponding angles, the angle information is mapped to the simulation diagram coordinates in combination with the simulation software to form a real-time display of the test target. As shown in Figure 14, according to the actual test hardware deployment, the proportional simulation mapping is performed on the test platform, and the test status and the relative position of the positioning target can be displayed in real time in 3D. According to the debugging platform, it can be intuitively seen that the combination of algorithm and hardware verification has a good effect, and the algorithm can accurately obtain the target position status in target positioning.
According to the good results obtained by the 3D simulation test of the platform, a continuous test of multiple positions was further carried out indoors. The target coordinates obtained in each test were marked in the 2D proportional view, and connected in sequence according to the order of the trajectory coordinates to form complete moving target trajectory tracking. As shown in Figure 15, the test process moves in a rectangular trajectory, and it can be intuitively seen in the 2D view that most of the coordinates obtained in the test are presented on the rectangular trajectory, but a small number of coordinates still deviate from the correct position. According to all the tests, it can be seen that the algorithm has a high-precision positioning effect at the sub-meter level, and has a good ability to overcome the indoor multipath effect. Regardless of whether the data structure obtained by AOA or AOD is exactly the same, the algorithm also meets different scene applications in terms of universality, as shown in Figure 16. Finally, the overall test comparison of the algorithm in positioning and the algorithm without improved design is carried out within a certain range. The same test method as in Table 1 is used, just replacing the simulation signal with the actual collected real signal for testing. Other parameters remain unchanged. Finally, the positioning error data are recorded. The test data show that it is obvious that the improved algorithm has a large improvement in overall error and presents a good solution effect on the indoor multipath effect.

6. Conclusions and Prospects

Based on Bluetooth 5.1 AOA and AOD indoor positioning, as various hardware manufacturing technologies advance, indoor positioning research has shifted its core focus more towards algorithm research and design. Facing different scenarios and applications, hardware technology has already reached the current highest level, while there is still ample room for improvement and refinement in algorithm implementation. This paper starts from the perspective of the newly added direction-finding feature of Bluetooth 5.1, conducting research on its principles, implementation processes, and applications, to provide sufficient theoretical support for subsequent research and directions. Then, based on this research foundation, further exploration is conducted into the implementation of positioning algorithms to form an optimal preliminary algorithm model. Finally, starting from practical problems, the initial algorithm model is upgraded and improved to meet the core requirements of current positioning, achieving algorithm enhancement in terms of accuracy and environmental problem solving.
In the research and testing comparison of various algorithms, this paper selects the MUSIC algorithm, which demonstrates relatively superior performance in all aspects, for design. Moreover, in the final practical experimental tests, it exhibits significant improvement. The achievements and processes of this study hold high reference and learning value in the current field of indoor positioning, providing valuable insights for rapid validation of positioning solutions and confirmation of research directions. In the future development and application, indoor positioning will undoubtedly be an indispensable hotspot, contributing more application value in the era of big data and IoT. The research and implementation of core positioning algorithms will ultimately become the key competitive advantage in indoor positioning.

Author Contributions

Conceptualization, N.L. and Y.W.; methodology, N.L.; investigation, W.Z.; algorithm, K.X.; validation, F.H., K.X. and W.Z.; data curation, Y.W.; visualization, N.L. and Y.W.; project administration, K.X.; writing—original draft preparation, Y.W.; writing—review and editing, F.H. All authors have read and agreed to the published version of the manuscript.

Funding

This work is supported by the science and technology project of State Grid Corporation of China: “Research on the network technology and the integrated communication and navigation chip based on the third generation of Beidou” (Grant No. 5700-202224451A-2-0-ZN).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data are contained within the article.

Acknowledgments

We would like to express our heartfelt thanks to anonymous reviewers and editors for their constructive comments on the paper.

Conflicts of Interest

Authors Fuzhong Hao and Weijian Zhang were employed by the State Grid Henan Electric Power Company. The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

References

  1. Shi, W.; Zhang, T.; Huang, B.; Jia, B. Enhancing AoA Estimation Via Phase Modeling of Bluetooth 5 CTE Signals. In Proceedings of the ICASSP 2024—2024 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), Seoul, Republic of Korea, 14–19 April 2024; pp. 8811–8815. [Google Scholar]
  2. Zhao, X.; Yang, Y. An AOA Indoor Positioning System Based on Bluetooth 5.1. In Proceedings of the 2022 11th International Conference of Information and Communication Technology (ICTech), Wuhan, China, 4–6 February 2022; pp. 511–515. [Google Scholar]
  3. Fu, Y.; Zhang, H.; Zhang, H. Bluetooth AoA Positioning Based on Backscatter Technology. In Proceedings of the 2020 IEEE 20th International Conference on Communication Technology (ICCT), Nanning, China, 28–31 October 2020; pp. 559–565. [Google Scholar]
  4. He, S.; Long, H.; Zhang, W. Multi-antenna Array-based AoA Estimation Using Bluetooth Low Energy for Indoor Positioning. In Proceedings of the 2021 7th International Conference on Computer and Communications (ICCC), Chengdu, China, 10–13 December 2021; pp. 2160–2164. [Google Scholar]
  5. Gamarra, M.V.; Papaharalabos, S.; Rezaei, F.; Bartlett, D.; Karlsson, P. Seamless Indoor and Outdoor Positioning with Hybrid Bluetooth AoA and GNSS Signals. In Proceedings of the 2023 13th International Conference on Indoor Positioning and Indoor Navigation (IPIN), Nuremberg, Germany, 28 September 2023; pp. 1–6. [Google Scholar]
  6. Wang, Q.; Duan, Z.; Li, X.R. Source Localization with AOA-Only and Hybrid RSS/AOA Measurements via Semidefinite Programming. In Proceedings of the 2020 IEEE 23rd International Conference on Information Fusion (FUSION), Rustenburg, South Africa, 6–9 July 2020; pp. 1–8. [Google Scholar]
  7. Sun, D.; Zhang, Y.; Xia, W.; Geng, Z.; Yan, F.; Shen, L.; Gao, Y. A BLE Indoor Positioning Algorithm based on Weighted Fingerprint Feature Matching Using AOA and RSSI. In Proceedings of the 2021 13th International Conference on Wireless Communications and Signal Processing (WCSP), Virtual, 20–22 October 2021; pp. 1–6. [Google Scholar]
  8. Qiu, X.; Wang, B.; Wang, J.; Shen, Y. AOA-Based BLE Localization with Carrier Frequency Offset Mitigation. In Proceedings of the 2020 IEEE International Conference on Communications Workshops (ICC Workshops), Virtual, 7–11 June 2020; pp. 1–5. [Google Scholar]
  9. Monfared, S.; Nguyen, T.-H.; Vorst, T.V.D.; Doncker, P.D.; Horlin, F. Experimental Demonstration of AoA Estimation Uncertainty for IoT Sensor Networks. In Proceedings of the 2020 IEEE 91st Vehicular Technology Conference (VTC2020-Spring), Antwerp, Belgium, 25–28 May 2020; pp. 1–5. [Google Scholar]
  10. Geng, C.; Abrudan, T.E.; Kolmonen, V.-M.; Huang, H. Experimental Study on Probabilistic ToA and AoA Joint Localization in Real Indoor Environments. In Proceedings of the ICC 2021—IEEE International Conference on Communications, Montreal, QC, Canada, 14–23 June 2021; pp. 1–6. [Google Scholar]
  11. Leitch, S.G.; Abbas, W.B.; Ahmed, Q.Z.; Hafeez, M.; Lazaridis, P.I. Different Indoor Localisation Techniques using Smartphones. In Proceedings of the 2022 25th International Symposium on Wireless Personal Multimedia Communications (WPMC), Herning, Denmark, 30 October–2 November 2022; pp. 505–509. [Google Scholar]
  12. Plets, D.; Deprez, W.; Trogh, J.; Martens, L.; Joseph, W. Joint Received Signal Strength, Angle-of-Arrival, and Time-of-Flight Positioning. In Proceedings of the 2019 13th European Conference on Antennas and Propagation (EuCAP), Krakow, Poland, 31 March–5 April 2019; pp. 1–5. [Google Scholar]
  13. Paulino, N.; Pessoa, L.M.; Branquinho, A.; Gonçalves, E. Design and Experimental Evaluation of a Bluetooth 5.1 Antenna Array for Angle-of-Arrival Estimation. In Proceedings of the 2022 13th International Symposium on Communication Systems, Networks and Digital Signal Processing (CSNDSP), Porto, Portugal, 20–22 July 2022; pp. 625–630. [Google Scholar]
  14. Khan, A.; Wang, S.; Zhu, Z. Angle-of-Arrival Estimation Using an Adaptive Machine Learning Framework. IEEE Commun. Lett. 2019, 23, 294–297. [Google Scholar] [CrossRef]
  15. Gouzouasis, I.; Papaharalabos, S.; Nasa, M.A.; Karlsson, P. A Novel Antenna System for Direction Finding Applications Using BLE 5.1 Technology. In Proceedings of the 2023 17th European Conference on Antennas and Propagation (EuCAP), Florence, Italy, 26–31 March 2023; pp. 1–5. [Google Scholar]
  16. Karanam, C.R.; Korany, B.; Mostofi, Y. Magnitude-Based Angle-of-Arrival Estimation, Localization, and Target Tracking. In Proceedings of the 2018 17th ACM/IEEE International Conference on Information Processing in Sensor Networks (IPSN), Porto, Portugal, 11–13 April 2018; pp. 254–265. [Google Scholar]
  17. Monfared, S.; Nguyen, T.-H.; der Vorst, T.V.; Doncker, P.D.; Horlin, F. Iterative NDA Positioning Using Angle-of-Arrival Measurements for IoT Sensor Networks. IEEE Trans. Veh. Technol. 2020, 69, 11369–11382. [Google Scholar] [CrossRef]
  18. Zheng, L.; Xue, R. Signals of opportunity navigation methods for complex lower airspace flight. In Proceedings of the 2011 IEEE 5th International Conference on Cybernetics and Intelligent Systems (CIS), Qingdao, China, 17–19 September 2011; pp. 272–276. [Google Scholar]
  19. Troccoli, T.; Pirskanen, J.; Ometov, A.; Nurmi, J.; Kaseva, V. Implementation of Embedded Multiple Signal Classification Algorithm for Mesh IoT Networks. In Proceedings of the 2022 International Conference on Localization and GNSS (ICL-GNSS), Tampere, Finland, 7–9 June 2022; pp. 1–7. [Google Scholar]
  20. Botler, L.; Spörk, M.; Diwold, K.; Römer, K. Direction Finding with UWB and BLE: A Comparative Study. In Proceedings of the 2020 IEEE 17th International Conference on Mobile Ad Hoc and Sensor Systems (MASS), Virtual, 10–13 December 2020; pp. 44–52. [Google Scholar]
Figure 1. CTE parameter configuration information.
Figure 1. CTE parameter configuration information.
Sensors 24 04579 g001
Figure 2. Diagram of CTE transmission-end principle.
Figure 2. Diagram of CTE transmission-end principle.
Sensors 24 04579 g002
Figure 3. Diagram of CTE receiver-end principle.
Figure 3. Diagram of CTE receiver-end principle.
Sensors 24 04579 g003
Figure 4. Angle direction of two-dimensional antenna array.
Figure 4. Angle direction of two-dimensional antenna array.
Sensors 24 04579 g004
Figure 5. Principle of angle calculation.
Figure 5. Principle of angle calculation.
Sensors 24 04579 g005
Figure 6. Principle of coordinate calculation.
Figure 6. Principle of coordinate calculation.
Sensors 24 04579 g006
Figure 7. Comparison of algorithms’ angle estimation performance.
Figure 7. Comparison of algorithms’ angle estimation performance.
Sensors 24 04579 g007
Figure 8. Specular reflection multipath signal model.
Figure 8. Specular reflection multipath signal model.
Sensors 24 04579 g008
Figure 9. Pseudo-spectrum comparison in ideal and real environments.
Figure 9. Pseudo-spectrum comparison in ideal and real environments.
Sensors 24 04579 g009
Figure 10. Comparison of estimation errors for improved algorithm.
Figure 10. Comparison of estimation errors for improved algorithm.
Sensors 24 04579 g010
Figure 11. Simulation of improved algorithm estimation.
Figure 11. Simulation of improved algorithm estimation.
Sensors 24 04579 g011
Figure 12. Test verification hardware.
Figure 12. Test verification hardware.
Sensors 24 04579 g012
Figure 13. Indoor testing environment.
Figure 13. Indoor testing environment.
Sensors 24 04579 g013
Figure 14. Three-dimensional proportional testing display.
Figure 14. Three-dimensional proportional testing display.
Sensors 24 04579 g014
Figure 15. Display of 2D proportional testing trajectory.
Figure 15. Display of 2D proportional testing trajectory.
Sensors 24 04579 g015
Figure 16. Comparison test of algorithm’s localization error.
Figure 16. Comparison test of algorithm’s localization error.
Sensors 24 04579 g016
Table 1. ESPRIT simulation parameter record.
Table 1. ESPRIT simulation parameter record.
AntennasSNRSamplingAngleAccuracyAngleAccuracyTime
4 × 410 dB100030°95%10°95%5 ms
4 × 410 dB100060°85%30°91%4 ms
4 × 410 dB100090°90%50°93%5 ms
4 × 410 dB1000120°90%70°94%3 ms
4 × 410 dB1000150°95%90°96%4 ms
Table 2. Capon simulation parameter record.
Table 2. Capon simulation parameter record.
AntennasSNRSamplingAngleAccuracyAngleAccuracyTime
4 × 410 dB100030°90%10°91%8 ms
4 × 410 dB100060°80%30°88%6 ms
4 × 410 dB100090°85%50°92%7 ms
4 × 410 dB1000120°90%70°85%5 ms
4 × 410 dB1000150°83%90°95%4 ms
Table 3. MUSIC simulation parameter record.
Table 3. MUSIC simulation parameter record.
AntennasSNRSamplingAngleAccuracyAngleAccuracyTime
4 × 410 dB100030°93%10°96%8 ms
4 × 410 dB100060°90%30°95%6 ms
4 × 410 dB100090°89%50°94%7 ms
4 × 410 dB1000120°94%70°95%5 ms
4 × 410 dB1000150°86%90°97%4 ms
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Xiao, K.; Hao, F.; Zhang, W.; Li, N.; Wang, Y. Research and Implementation of Indoor Positioning Algorithm Based on Bluetooth 5.1 AOA and AOD. Sensors 2024, 24, 4579. https://doi.org/10.3390/s24144579

AMA Style

Xiao K, Hao F, Zhang W, Li N, Wang Y. Research and Implementation of Indoor Positioning Algorithm Based on Bluetooth 5.1 AOA and AOD. Sensors. 2024; 24(14):4579. https://doi.org/10.3390/s24144579

Chicago/Turabian Style

Xiao, Kun, Fuzhong Hao, Weijian Zhang, Nuannuan Li, and Yintao Wang. 2024. "Research and Implementation of Indoor Positioning Algorithm Based on Bluetooth 5.1 AOA and AOD" Sensors 24, no. 14: 4579. https://doi.org/10.3390/s24144579

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop