Next Article in Journal
High Correlation of Static First-Minute-Frame (FMF) PET Imaging after 18F-Labeled Amyloid Tracer Injection with [18F]FDG PET Imaging
Next Article in Special Issue
An RSS Transform—Based WKNN for Indoor Positioning
Previous Article in Journal
Location-Privacy Leakage and Integrated Solutions for 5G Cellular Networks and Beyond
Previous Article in Special Issue
Degeneration-Aware Localization with Arbitrary Global-Local Sensor Fusion
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Practice of BLE RSSI Measurement for Indoor Positioning

1
Department of Industrial Engineering and Management, National Taipei University of Technology, Taipei 106344, Taiwan
2
Department of Mechanical Engineering, National Taiwan University of Science and Technology, Taipei 106335, Taiwan
3
Industry 4.0 Implementation Center, National Taiwan University of Science and Technology, Taipei 106335, Taiwan
*
Author to whom correspondence should be addressed.
Sensors 2021, 21(15), 5181; https://doi.org/10.3390/s21155181
Submission received: 22 June 2021 / Revised: 20 July 2021 / Accepted: 27 July 2021 / Published: 30 July 2021
(This article belongs to the Collection Positioning and Navigation)

Abstract

:
Bluetooth Low Energy (BLE) is one of the RF-based technologies that has been utilizing Received Signal Strength Indicators (RSSI) in indoor position location systems (IPS) for decades. Its recent signal stability and propagation distance improvement inspired us to conduct this project. Beacons and scanners used two Bluetooth specifications, BLE 5.0 and 4.2, for experimentations. The measurement paradigm consisted of three segments, RSSI–distance conversion, multi-beacon in-plane, and diverse directional measurement. The analysis methods applied to process the data for precise positioning included the Signal propagation model, Trilateration, Modification coefficient, and Kalman filter. As the experiment results showed, the positioning accuracy could reach 10 cm when the beacons and scanners were at the same horizontal plane in a less-noisy environment. Nevertheless, the positioning accuracy dropped to a meter-scale accuracy when the measurements were executed in a three-dimensional configuration and complex environment. According to the analysis results, the BLE wireless signal strength is susceptible to interference in the manufacturing environment but still workable on certain occasions. In addition, the Bluetooth 5.0 specifications seem more promising in bringing brightness to RTLS applications in the future, due to its higher signal stability and better performance in lower interference environments.

1. Introduction

The adoption of an indoor positioning system (IPS) represents an important technological upgrade for different institutions, such as exhibition centers, museums, retail stores, underground transportation facilities, and healthcare centers, among others. The implementation of IPS solutions can provide location data in closed environments, which can be used for indoor navigation, a foot traffic analysis, or enhanced retail experiences. In addition, integration with autonomous vehicles in factories and production lines for the industry sector is currently under development, due to its higher system requirements [1]. The RF-based IPS working with the Received Signal Strength Indicator (RSSI) has been one of the most popular technologies for decades [2]. In practice, there are many types of RF-based technologies that can apply to IPS development with RSSI, including Bluetooth Low Energy (BLE), WIFI [3], ultra-wideband (UWB) [4], the 5G cellular network [5], and many others.
Furthermore, most smartphone-embedded BLE antennas today make the BLE technology take advantage of other RF-based technologies. It benefits from the development of applications related to interacting with humans. Additionally, the entire mature Bluetooth technology ecosystem contributes to the deployment of large-scale and various applications. Meanwhile, BLE technology has continued improving its signal stability and propagation distances, as BLE 5.0 demonstrated. On the other hand, the academia and industry have completed many significant studies relevant to indoor positioning systems (IPS) and real-time location systems (RTLS) in the past, mostly focusing on the mass market of pedestrian applications. However, special attention should be given to IPS solutions suitable for working environment conditions, such as factories [6].
Regarding the importance and volume of IPS applications in the market, the indoor positioning system market size could reach USD 17.0 billion by 2025, according to the market report of Markets&Markets [7]. Moreover, the outdoor locating service with GPS has increased in our daily life, with tools such as Google maps, taxi fleet management, 911 emergency application [8], and many applications relevant to location-based services (LBSs) [9]. Therefore, the increasing use of location services, the improvement and evolution of Bluetooth technologies, and the market predictions performed by specialists make us believe the demands for location positioning will continue to grow, shifting from outdoor to indoor applications in the near future.
IPS RF-based applications are mainly classified into three categories: (1) Range-based positioning, (2) Fingerprinting, and (3) Proximity-based positioning [10]. Currently, IPS applications are increasing their presence on the market due to two main factors, the improvement of the electronic circuits and a significant price reduction, both enabled by the increasing demand of Bluetooth solutions [11]. In addition, innovative methods in direction-finding applications such as AoA (angle of arrival) and AoD (angle of departure) over RSS measurements can achieve higher location accuracy [12,13,14]. Unfortunately, there is not a standardized indoor positioning system solution. This issue is a major concern for enterprises, government agents, medical institutes, or other organizations willing to introduce IPS solutions. Under this situation, reviewing and understand the positioning technologies using RSSI can be essential for all relative technology developments.
It is important to understand that RF-based indoor positioning systems are especially susceptible to interference from the peripheral environment. Special attention should be given to the influence of metal objects, solid barriers (such as walls or furniture), and signal interference from Wi-Fi radio signals [15]. Due to this level of complexity, multiple related studies are carried out every year by both academic and industrial researchers in order to explore, improve, and suggest different IPS solutions. Currently, RSSI measurements cannot achieve positioning accuracy within a meter-level without the corresponding algorithm [16].
In order to understand the whole IPS paradigm, this work will be mainly focused on Range-based positioning applications, which are specially recommended for short-range environments. The research will be divided into three main points: signal measurements, analysis methods, and results. The purpose is to explore the factors in IPS development, such as antenna relative orientation, steady-signal acquisition, spatial geometric issues, environmental influences (obstacles), and appropriate algorithms. Two types of BLE microcontrollers were selected for this study, proposing an interconnection architecture to prevent data congestion in signal collection.
In practice, we adapted an active positioning model where the mobile device (scanner) can change its position, collecting multiple RSSI values from the detected BLE beacons that surround the experimental areas. After detection, the mobile device (scanner) packs, transports, and delivers the data to a remote server, where the measured values will be stored. In contrast, each beacon will be fixed in a well-known point in space (X-Y coordinates). This setup refers to the transmitter-based arrangement [17]. The RSSI data of the beacon is discrete in the scale of distance and needs to exploit the Trilateration and Kalman filtering to find the precise positioning [18].
In the end, centimeter-level positioning accuracy of approximately 8–10 cm was achieved in a relatively low interference environment. A proposed interconnection architecture provided data transmission among beacons, scanners, and databases with less latency concern. In addition, it is essential to highlight that the Bluetooth 5.0 component presented a better performance than the previous version in this experiment. Applying the IPS system in the factory environment requires continuous effort to study component settings and algorithms.

2. Materials and Methods

This section describes the materials and methods used in this study, including components, measurement, and analysis methods. The components portion explains the specifications and characteristics of the components used in experiments and, also, the data transmission path, protocols, and hardware architectures. The measurement portion contains three measurement plans: RSSI–distance conversion, Multi-beacon in-plane, and diverse directional in geometry measurements. Finally, the analysis method portion depicts the data process in the calculations, supported by the Signal propagation models, Trilateration, Modification coefficients, and Kalman filter equations. The main subjects conducted in this study are listed in Table 1.
The IPS system consists of perception, server, and user interface segments, as shown in Figure 1. Beacons transmit RF signals to the scanner (receiver) via Bluetooth in the perception segment. Simultaneously, the scanner passes the RSSI of the received signals to the server segment. The server segment contains the storage (NAS, network-attached storage) and application server (application and website). The application program first reads the RSSI data from the database and, after performing its calculation, stores the positioning coordinates of the calculation result back to the database.

2.1. Components

Two specifications of Bluetooth components, including BLE 4.2 and BLE 5.0, are used as beacons and scanners to evaluate the signal stability and effectivity in experiments. As the Bluetooth Special Interest Group (SIG) announced, BLE 5 significantly increased the range, speed, and broadcast messaging capacity compared to the previous BLE 4 [19]. It is still necessary to verify the signal attribute difference in the field between them. Furthermore, since BLE 4 has been developed and used for an extended period, there are many application deployments. Therefore, these two, new and old, have incredible opportunities to work in pairs in the application field.
The RSSI-based indoor positioning system should contain transmitters and receivers, known as a beacon and scanner, respectively. There are two types of configurations for the deploy beacon and receiver: tag-based [20] and beacon-based [21]. This study used the beacon-based configuration, with the beacons placed in a fixed position, and the scanner acted as a moving element.

2.1.1. Components Specification

The selected components for the experiment are both microcontroller units (MCU): Arduino Nano 33 and Linkit 7697. Their main features are shown in Table 2. The selection of MCUs relies on three main factors: standardization, customization, and flexibility.
Firstly, the multiple offer of Beacons in the market is enormous, from companies such as BlueCats [22], Estimote [23], or Kontak.io [24] providing commercial versions of beacons. To simplify this issue, our approach focused on the use of similar hardware for transmission and reception in order to guarantee a more standard procedure. Secondly, the customization of critical parameters (advertising the interval and scanning times) from emitters and receivers is crucial to generate a significant amount of data, guarantee an appropriate sampling rate, and control the overall system latency. Finally, the selected hardware (Linkit 7697) offers both Wi-Fi and Bluetooth connectivity, and it is able to support the MQTT and CoAP protocols, facilitating the interconnectivity and providing flexibility on the way to achieve this interconnection between the receiver (scanner) and the database.
Based on the technical specifications, the transmitting segment in dBm (decibel relative to one milliwatt) for Linkit 7697 is slightly higher than Arduino Nano. On the other hand, BLE 5.0 can perform a little better sensitivity in the receiving segment: −103 dBm at the long-range mode and −95 dBm at the low-energy mode. To make the experimental data clearer and readable, Linkit 7697 will work as the scanner. The scanners were used to collect the transmitting signal of beacons Arduino nano 33 and Linkit 7697, respectively.
The appearances of those two components are shown in Figure 2a,b: Arduino nano 33, BLE 5.0 and Linkit 7697, BLE 4.2. Both use a ceramic antenna design, so there is no antenna rod in appearance. Generally, the flat antenna makes it more convenient for conducting a test with less consideration toward directional issues. However, in practice, the antenna orientation still causes a deviation of the signals among the devices.

2.1.2. Antenna Orientation Issues (Distance Limitation)

As mentioned previously, both devices use a ceramic antenna for emitting and receiving signals. The ceramic antenna offers several advantages, such as multiple configurations, a small size, less sensitivity to components, and less environmental noise. However, its main shortcoming is the slight lack of performance compared to the PCB trace antenna [25].
Additionally, the antenna can only be on one side of the circuit board. Thus, to understand the influence of antenna orientation on signal reception, two positions were selected for testing, “face-to-face” and “back-to-back”, as shown in Figure 3a,b.
The orientation influences the RSSI between the beacon and scanner, regardless of their model. We conducted measurements with Arduino nano 33 as a beacon and Linkit 7697 as a scanner to prove this effect. The results are shown in Table 3.
According to the sensitivity of the scanner, as shown in Table 2, signals under −94 dBm cannot be considered as a correct lecture. It is possible to observe that the back-to-back antenna configuration caused a significant impact on the strength of the reception or RSSI even at a short distance, as shown in Table 3. On average, the back-to-back orientation decreases 19 dBm in comparison to the face-to-face antenna orientation. This difference can generate significant location positioning errors. For this reason, all measurements conducted in this study remained in a particular orientation, face-to-face, as mentioned in Figure 3a.

2.1.3. Floor Plan (Experimental Site)

The experiments of this work were performed at the Industry 4.0 Implementation Center from the National Taiwan University of Science and Technology (NTUST). The center is an educational shared demo factory that contains multiple spaces, such as a workshop, tool room, laboratory, meeting room, and classroom.
The main experiment fields include two different environments: a classroom and workshop, as shown in Figure 4. The classroom space is regarded as a relatively low-noise environment, with dimensions of 11.5 m by 6.5 m. On the other hand, the workshop is regarded as a relatively noisy environment, with dimensions of 5 m by 5 m (one-quarter of the space). Besides the size limitation, the workshop space contains heavy machinery around its surroundings, providing a closer approach to real-life factory environment conditions.
An internal numerical system was imposed to differentiate the hardware components in both environments. Thus, for the classroom, Arduino nano 33 has numbers #51–56 (6 pieces) and Linkit 7697 has numbers #61–66, respectively. Similarly, Arduino Nano33 has been assigned the numbers #71–79 (9 pieces) and Linkit 7697 #81–89 (9 pieces) at the workshop, as shown in Table 4.

2.1.4. Interconnection

Positioning systems such as real-time locating systems (RTLS) are time-sensitive and require a stable positioning update interval. Therefore, choosing an appropriate and effective communication architecture is very important to reduce data lagging or call latency.
Following the TCP/IP architecture, it is possible to decompose the whole IPS paradigm into four main layers: link, internet, transport, and application [26]. First, the link layer defines both the physical and data link protocols, such as Bluetooth, 802.11 b/g/n, and MAC. Microcontrollers (MCU) and General Purpose Units (GPU) are in charge of this layer. Second, the internet layer relies on the Internet Protocol (IP) to pack and deliver higher layers. For example, access point (AP) devices support IPs on both versions (IPv4 and IPv6), using ports 1027 and 3784, respectively. Third, the transport layer relies on the Transport Control Protocol (TCP), and routers and firewalls handle TCP packages. Finally, the application layer hosts Message Queuing Telemetry Transport (MQTT), working primarily on TCP/IP, using ports 1883 and 21883, respectively. The Table 5 interconnection model and protocols are conducted in the following experiments.
Servers and storage components rely on the use of the MQTT protocol for interconnections. The package structure follows a JavaScript Object Notation (JSON) stored in MongoDB, a NoSQL database. Implementation of the Bluetooth stack can vary according to the type of hardware. Therefore, it is possible to have a General Purpose Bluetooth Stack (BlueZ) [27] or Embedded system implementations (BlueMagic) [28]. The selected device used for research on this topic, MT7697, works with a Qualcomm version of BlueMagic (MediaTek) [29].
General-purpose data collection systems monitor the value of the signal and export single values in comma-separated values (CSV) stored locally every 500 ms [30]. Using embedded systems to harvest data with the proposed protocol architecture allows generating over 200,000 samples for two hours or an average of 32 ms per sample. Thus, the suggested framework to collect, pack, transport, and deliver data to the database provides a solid base to develop IPS solutions to generate a significant amount of data in a shorter period, improving the Overall Operation Effectiveness (OOE).

2.2. Measurement

The measurements consist of three stages: RSS-distance conversion (one-dimension scale), multi-beacon in-plane (two-dimension scale), and diverse directions in a geometric spatial scale (three-dimension scale). These three stages of measurements are related to each other; the initial measurement result affects the subsequent measurements and calculations.
Figure 5 depicts the measurement configuration in the field for RSSI–distance conversion multi-beacon in-plan measurements. Figure 5a shows the scanner mounted on the tripod. The scanner orientation remained when performing measurement tasks for the RSSI–distance conversion and multi-beacon in-plan (at classroom), as shown in Figure 5b,c.
Figure 6 denotes the measurement scene at the workshop. The antenna orientation of the beacons faces the ground, as shown in Figure 6a; on the contrary, the antenna on the scanner is facing up, pointing to the beacons, as shown in Figure 6b. The beacons are fixed on the beam of the structure, and the mobile scanner mounted on a tripod is made to move around the different measuring points, as shown in Figure 6c.

2.2.1. RSSI–distance Conversion

RSSI–distance conversion (one-dimensional scale) measurements establish the scale between RSSI and distance, which becomes the benchmarks for the data collection and following calculations. The measurement and calculation steps refer to the Google Android Library guidelines to conduct the regression and prediction [31]. Based on this reference, several measurement points for the RSSI–distance conversion measurements are fixed, as shown in Figure 7.
When performing the measurements, the beacon stays steady at the original, and the scanner moves gradually by 0.2 m until it reaches 6 m, scanning 1000 samples at each point. The scene refers to Figure 5b. When the measurements extend up to 12 m, some of the measured signal strength is already weaker than the specifications of the component sensitivity; therefore, it is not indicated in the figure.

2.2.2. Multi-Beacon in-Plane

The purpose of multi-beacon measurements is to explore the difference of RSSI when the scanner is dealing with multiple beacons, so-called Multi-beacon in-plane measurements. Compared with the previous measurements (RSSI–distance conversion), the scanner must simultaneously scan the signals emitted by multiple beacons. Beacon wireless signal interference and radio reflection from the wall are two main problems to consider in this situation. However, radio wave interference-related issues will not be discussed in this section. Instead, the focus will be given to data collection and data optimization.
First, all the beacons and scanners remained one-meter height from the ground. Multi-beacon measurements were performed in a relatively less noisy environment, the classroom, in an 11.5 m by 6.5 m space, as shown in Figure 8. There were two different configurations of the beacon layout: Common setup and Intensive layout, as Figure 8a,b shows. The Intensive layout mainly considers the limitations of the performance of the components; the maximum sensitivity of −94 dBm refers to Table 2.
During the measuring procedure, the scanner starts from the first point (P1) (diamond symbol), located at the lower-right corner of Figure 7. Its coordinates (6.5, 1) are relative to the original coordinates (0,0), given in meters. The scanner moves from P1 towards P5 to complete the measurements, as shown in Figure 8a. Since the scanner has to scan six beacons simultaneously, the distance to each beacon in the field is different. Additionally, the timestamp of each scan will not be the same; in conclusion, the RSSI data quantity collected from each beacon is not even. Roughly, the scanner takes about 32 ms to complete a piece of RSSI data from beacon to scanner and save it to the database. The scanner maintains the same direction when it moves in the path.
During the measurements, when the distance between beacon and scanner increased, the signal strength became weaker. In the Common setup, the distances of multiple points are outside of the limit of sensitivity. For example, beacons #64 and #65 might not transmit sufficient RSSI to point 2, because the distance is over 10 m. Most indoor positioning systems usually recommend to place the beacon on a wall because of the convenience of installation [32]. Nevertheless, the effect of wall reflection on indoor wireless locations based on RSSI has been verified by Fan et al. [33]. Therefore, it is possible to avoid refraction and improve the signal strength when the beacon is separated from the wall.
Combining the two previous arguments, we decided to conduct the Intensive mode. The Intensive mode moved beacons 61, 62, 63, and 66 to a 3 m × 3 m square and placed the scanner at point m (square center), as shown in Figure 8b. The differences between the Common setup and Intensive setup positioning results will be significant.

2.2.3. Diverse Directions in Geometric Spatial

Diverse directions in geometric spatial measurements change the relative orientation of the beacons and scanner antennas into a three-dimension space. As a result, the relative orientation of the beacons and scanners is a bit close to the face-to-face configuration plus various angles, and the measurement scene refers to Figure 6.
  • Configuration and path
This experiment utilized nine beacons to form a beacon array. Figure 9 shows the positions of the beacons and the path of the scanner movement. The distance between the beacons was a 1.5-m pitch in the x-axis and 0.7 m, 2.0 m, and 1.3 m, respectively, in the y-axis direction, as shown in Figure 9a, the top view of the beacon array. The positions of the beacons numbered #71–79 means using Nano 33. Points a, b, c, and d represent the measuring points, in which the scanner follows the arrow path to conduct the measurements, scanning 1000 samples at each point.
Figure 9b shows the configuration of the beacons and scanners in the vertical direction, the beacon is 3.2 m, and the scanner is 1.6 m in height, respectively. The heights of the beacons and scanner may be variable in factories and warehouses. This setting is based on the restrictions of the building itself and the shipping standards of the goods (DHL standard pallet height).
  • Three-dimension in space
The distances of the beacons and scanners in the three-dimensional space are different from in the same plane. Figure 10 shows the relative positions between beacons #75, #76, #78, and #79 and the scanner at point c in 3-dimensional coordinates in space. The actual distance between the scanner at point c and beacon #78 by calculations based on geometry is 1.85 cm. In the same manner, geometric calculations derive the distance between the scanner locations a, b, c, and d to the beacons, as shown in Table 6.
The indoor positioning defines the location regarded as the X-Y coordinates of the space. Therefore, the actual distance between the beacon and the scanner denotes geometric dimensions in the 3D view, as shown in Figure 10a,b. Nevertheless, the RSSI, signal strength, is related to the actual distance in 3D space; thus, the distance in the x-y plane must be converted by the Trigonometric function. As a result, the distance of each beacon correlative to the points a, b, c, and d (scanner stay points) was calculated, as shown in Table 6.

2.3. Analysis Methods

The analysis methods include the Signal propagation model, Trilateration, Modification coefficients, and Kalman filter algorithm. The following subsections will present the main traits of each method.

2.3.1. Signal Propagation Model

Distance estimation from the RSSI might refer to some models, such as the Log-Distance Path Loss model [34], International Telecommunication Union (ITU) model [35], and the empirical model suggested by Cantón Paterna et al. [18]. The model of RSSI corresponding to the distances based on the signal–distance equation, Formula (1), is expressed as the signal ratio (R/T) between the current RSSI (R) value of the emitter (beacon) against a reference value of an external device at one meter from the receiver (T). The other parameters are the environment constants that can be obtained empirically by measuring the RSSI at multiple distances [36].
d = α + β (   R T   ) + γ ,
where α and β are the regression variables of the power regression between the signal ratio (R/T) and the actual distance; the value of γ can be estimated as the difference between the actual distance and the estimated distance (Formula (2)).
γ = 1 α + β (   R T   )
In practice, different combinations of transmitter and receivers can affect the results of the RSSI data measurements. Even if the product of the same model is used in the actual positioning calculations, the RSSI value must be measured and verified with different combinations of transmitters and receivers. The receiver’s exclusive distance conversion formula can reduce the subsequent positioning error.

2.3.2. Trilateration

Triangulation and Trilateration are two of the most common indoor positioning methods, using geometric characteristics between devices and positioning points. Triangulation uses geometric characteristics of the triangle formed in a two-dimensional environment. However, in practice, this estimation often generates errors.
In contrast, Trilateration [37] measures the distance between a signal point and the observation point using the Least Square Method (LSM), Time Difference of Arrival (TDOA), and measured signal strength (RSSI). It offers a more accurate position in comparison to the triangulation capabilities. In addition, LSM can minimize the data error in numerical calculations if the system error follows a random normal distribution (RND).
Assuming the position of a point P is denoted as P = [ X , Y ] , the ith position of the sensor is given as S i = [ S i , 1 , S i , 2 ] :
S i P = L i
or
S i , 1 2 2 S i , 1 X + X 2 + S i , 2 2 2 S i , 2 Y + Y 2 = L i
For i = 1 , , N , where N is the number of sensors. When N = 3 , it is a trilateration method; N > 3 is called a multilateration method. The quadratic terms of X 2 and Y 2 in the above equation could be eliminated by subtracting the jth equation from the i th one, yielding:
[ ( L 1 S 1 , 1 2 S 1 , 2 2 ) ( L 2 S 2 , 1 2 S 2 , 2 2 ) ( L 1 S 1 , 1 2 S 1 , 2 2 ) ( L 3 S 3 , 1 2 S 3 , 2 2 ) ( L N 1 S N 1 , 1 2 S N 1 , 2 2 ) ( L N S N , 1 2 S N , 2 2 ) ] = [ 2 S 1 , 1 + 2 S 2 , 1 2 S 1 , 1 + 2 S 3 , 1 2 S N 1 , 1 + 2 S N , 1       2 S 1 , 2 + 2 S 2 , 2   2 S 1 , 2 + 2 S 3 , 2       2 S N 1 , 2 + 2 S N , 2 ] · [ X Y ]
The above equation can be solved by the Least Squares Approximation (LSA).
In practice, the trilateration method requires three main steps: firstly, establishing a horizontal triangular grid between the measurement points; secondly, calculating the length of each side through the signal collected by the sensor; and finally, calculating the point according to the relationship between the geometric principle of the triangle.

2.3.3. Modification Coefficients

In the positioning calculations, random iteration is used to modify the coefficient. The Random Walk (RW) explains many processes’ observed behaviors and applies to engineering and many scientific fields, including ecology, psychology, and computer science. Thus, it serves as a fundamental model for recorded stochastic activity [38]. The execution process of Modification coefficients is shown in Figure 11.

2.3.4. Kalman Filtering

Kalman filtering is a well-known method to help reduce the impact of wrong measurements on the system, and it can avoid incoherent computation of the location. Mismeasurements of RSSI could lead to significant errors in location positioning, according to the study by Cantón Paterna et al. [18]. A New Kalman filter-based algorithm to improve indoor positioning was proposed by Nabil et al. [39]. Moreover, an extended Kalman filter method was developed to improve indoor positioning accuracy by Lee et al. [40]. Currently, there are multiple Kalman filters used in indoor positioning to enhance location positioning.
This research is based on indoor short-distance positioning, focusing on measuring the signal strength (RSSI), distance estimation, trilateration method (Trilateration), and modification coefficients optimization. We reviewed the comparative methods and developed a new type of Kalman filter algorithm for subsequent experiments. We did not plan apply a Kalman filter on the RSSI dataset, since the current Kalman filter was tested for its effectiveness.

3. Results

This section describes the measured data and its results regarding the RSSI-conversion, multi-beacon in-plane, and diverse directions in geometric spatial measurements. The initial measured data must be statistically analyzed before it can be used for calculations with the materials and methods previously mentioned.

3.1. RSSI-Conversion

RSSI-conversion is the essential part of all experiments, because subsequent calculations are related to it like a scale. A Bluetooth signal is easily affected by the terrain and obstacles, resulting in multiple problems such as attenuation, interference, and reflection. Location positioning needs a specific value or a mean dBm in RSSI–distance conversion for further calculations, such as the Trilateration or Modification coefficients in this study. Through statistical methods, some discrete data can obtain a more definite value, using the median value of the dataset.
Table 7 presents the signal strength corresponding to the distance, and it is the benchmark to use for positioning calculations. The measurement range is 0.2–10 m, using Arduino Nano 33 and Linkit 7697. The data in Table 7 determined by the regression coefficient and outlier data are explained in the following paragraph.
  • Regression coefficient
The measured RSSI of each beacon can fluctuate considerably regarding the mass production tolerance, measurement environment, and antenna direction, among other factors. The regression coefficients analyzed individual differences among the beacons according to the signal propagation model, Formula (2) in Section 2.3.1. Here, the formula notation transformed to D = a·(R/T)b + c to fit in the computing format, where D represents the converted distance; R refers to the RSSI strength; T is the RSSI at a 1-m distance; and a, b, and c are the coefficients. Figure 12 shows those regression coefficients for different beacons (BEC51–BEC54) in the different distances, 0–8 m.
  • Box plot and outlier data
The outlier signal values can lead to positioning errors so that we must define a threshold to filter out the signal with a significant deviation. RSSI −94 dBm can be an appropriate threshold regarding the sensitivity of the components (Nano 33, −95 dBm; Linkit 7697, −94 dBm) and application scenario. The data collection method is one beacon to one scanner that measures the RSSI data at the set distance, 1000 samples for each measurement point (refer to Figure 7).
If we look at one of the RSSI measurement results (Nano 33, BEC51), it is shown as a box plot in Figure 13a. The strength of the RSSI signal gradually attenuates from 0.2 m to 6 m. At 4 m, the box plot quartile value (upper and lower combined) is narrower; this effect could be attributed to the unexpected positive signal performance at this distance or to remove several outliers. Thus, from a relatively simplified perspective, Figure 13 has constituted an RSSI descending trend. Figure 13b shows the RSSI signal strength values of #51, 52, 53, and 54 measured at 1 m; this sequence of the box plot displays the differences in individual components.
  • Validation in distance
This section explains the actual measurement conversion error when using the data presented in Table 7. In the previous explanation, the regression coefficients, box plot, and filtered outliers were utilized to moderate the RSSI–distance conversion to optimize the value.
The measured RSSI of the beacon (BEC51) was converted into the distance using the signal propagation model, and the results are shown in Table 8. The accuracy remained below 10 cm within one meter, but the error gradually increased to more than 1 m as the distance between the beacons and scanner increased as well. The results showed the optimum RSSI–distance converting range can be 0.6–1 m.
It is vital to notice that each device has its own particular coefficient calculation for this research due to the difference in signal propagation and RSSI conversion, as shown in Figure 13b. Further details are explained in the Discussion section.

3.2. Multi-Beacon (Result)

Location positioning with Trilateration requires three reference points (beacons) minimum. According to the previous RSSI–distance analysis, RSSI data filtering is mandatory to improve the positioning accuracy. The following subsection explains the point selection methodology (multi-point or top three points). Additionally, the positioning accuracy in the Common setup and Intensive setup in the classroom will be discussed as well.

3.2.1. Point Selection

The general idea for positioning calculations is to remove the weaker points first, using the threshold of −94 dBm, as defined previously. There are two point selection modes: multi-point and top-three points.
In Figure 14a, the six beacons are used to create the prediction location, point 1, without considering signal strength limitation (multi-point). On the other hand, Figure 14b presents the prediction from the top three points. The results show that the multi-point alternative could have better position accuracy in comparison to the top-three points.
It is possible to notice that the top-three point positioning method generates data loss, reduces the number of positioning points, and increases its data offset, resulting in a higher overall error, even after applying the Least Squares Method (LSM).
In contrast, the data amount is relatively large for multi-point positioning. However, after using LSM, the standard deviation of the data is significant. In this case, the error of each receiver was added to the calculations, affecting the standard deviation error. Therefore, to improve the performance of the system, a threshold must be selected.

3.2.2. Common Setup

The scanner moved along a path of set points (P1–P5) to collect data in this setup. The orientation among the beacons and scanners affected the signal strength of our expectations. In Figure 15, the red star is the actual location of the scanner, and the black cross represents the predicted point in the classroom.
  • Arduino Nano 33 in the classroom
According to Table 9, the actual data distribution standard deviation was about 1 m; the X-Y position error was about ±2 m. The error increased when the scanner was near the wall, as shown in Figure 15.

3.2.3. Intensive Setup

Referring to the previous experimental results in Section 3.2.2, the errors in the positioning increased when the scanner was close to the wall. That caused the measured positioning point to shift away. The receiver was located in a new location in the experimental field to observe the wall influence, and four new beacon signals were measured at the central position. The results showed that the offset error and dispersion degree of the positioning point was significantly lower, improving the prediction to a combined value of x = 8.9 cm, y = 4.5 cm, as shown in Figure 16b.
Establishing a measurement distance equal to or less than three meters helped provide a stable RSSI signal and significantly improved the distance prediction. Additionally, this indirectly proves that terrain factors such as walls do interfere with the signal.

3.3. Diverse Direction in Geometric Spatial (3D Results)

The measurement conditions are different from the previous sections, increasing the beacons, distance, and environment conditions (workshop). The orientation between emitter and receiver has a diverse direction in geometric space, close to the measurement position established in Figure 6. This measurement environment could generate radio wave reflection due to the presence of CNC machinery nearby. The distance between the scanner and the different beacons was approximately two meters, as shown in Figure 10. This setup was used for both models, BLE 5.0 and BLE 4.2.
Trilateration and Modification coefficients were applied for the position calculations. Beacon BLE 5.0 (Nano 33) and Beacon BLE 4.2 (Linkit7697) were compared with and without a modification coefficient in the workshop manufacturing environment.

3.3.1. Workshop, BLE 5.0 (Nano 33)

The predicted positioning of BLE 5.0 (Nano 33) was divided into two parts, with and without modification coefficients. The positioning results without a modification coefficient had significant mean and variance errors. In addition, the distribution was irregular.
  • Predicted positioning (without Modification coefficients)
Figure 17 shows points a, b, c, and d (present as 1, 2, 3, and 4 in the plots) and their predicted values projected on the x-y coordinates. Figure 18a predicted positioning fluctuates between 5 and 6 m. In comparison, the position data presented in Figure 17b–d can be up to 8 m in range. However, based on the mean value and its original points, the best accuracy measure point is at point b (point 2 in the plot). For example, regarding Figure 17b (Point b), the X- and Y-axis errors are 2.468 and −0.551, and the variances are 3.569 and 3.585, respectively.
  • Predicted positioning (with Modification coefficients)
It is possible to appreciate the effect of applying modification coefficients. The mean error and variance error decrease and the predicted positions become more concentrated, as shown in Figure 18. In this case, for points a, b, c, and d, the error is approximately between 0.5 and 1.5 m.
It is vital to notice outliers outside the perimeter of the beacons, as shown in Figure 17c (predicted positioning without modification coefficients). Figure 18c presents the same point, applying modification coefficients. In this particular case, the significant amount of outlier data affected the performance of the modification coefficients, with a minor effect on the error and a significant reduction of variance.

3.3.2. Workshop, BLE 4.2 (Linkit 7697)

In this subsection, the predicted position error before applying modification coefficients is less than BLE 5.0. However, this phenomenon could be attributed to the difference in transmitting power between BLE 5.0 and BLE 4.2 mentioned in Table 2.
  • Predicted positioning (without Modification coefficients)
Regarding the influence of work environment situations, physical refraction was present in the results of this experiment. It was possible to observe that the predicted positioning points of a and b were more concentrated than c and d. In the setup, c and d were closer to the wall, which increased the X error and Y error, as shown in Figure 19.
  • Predicted positioning (with coefficients modification)
After applying modification coefficients, the BLE 4.2 positioning results had an average error slightly smaller than BLE 5.0, fluctuating in the interval of 0.5–1 m, as shown in Figure 20. The standard deviation error was about the same for both devices (BLE 4.2 and BLE 5.0). However, the influence of the radio wave refraction seemed to affect BLE 4.2 more due to the predicted positioning dispersion, as shown in Figure 20d.

3.4. Centroid Deviation (Interpretation)

From the previous predicted positioning figures, it was possible to observe a deviation from the measured mean to the centroid (measurement point). The perceived deviation from the centroid can be caused for the three main factors: physical space, type of beacon (4.2 or 5.0), and noise.
Firstly, the physical space can significantly affect the distance prediction accuracy; from the results of the Multi-Beacon Measurement in the classroom, it was possible to observe the effect of walls in predicting the distance, with a X-Y position error of ±2 m, as shown in Figure 15. When the system setting changed from the Common to Intensive setup, the error reduced to 8–10 cm, as shown in Figure 16. This effect was also present in the workshop environment, where the points close to the wall exhibited higher errors, as shown in Figure 19c,d.
Secondly, regardless of the environmental conditions, the BLE 5.0 signal tended to perform better than its predecessor. The predicted positioning tended to be more concentrated when the modification coefficient theorem was applied, as shown in Figure 18.
Finally, the influence of noise could affect the positioning results. Even if the modification coefficient method could correct the results while decreasing its average error, the effect of noise persisted. BLE 4.2 errors were lower in high-refraction environments (workshop), as shown in Figure 19. In contrast, BLE 5.0 provided a more accurate predicting position among the low-refraction environments (classroom), as shown in Figure 15a. However, after applying the modification coefficient, the effect of noise persisted, affecting the position predictions of BLE 5.0, as shown in Figure 18d.

4. Discussion

In the Results section, many plots illustrated the actual measurement situation in the field, either of a less-noisy environment (classroom) or manufacturing site (workshop). These practical RSSI signals helped us to understand the reception status of the beacons and scanner. More than 1.6 million samples were collected for this experiment, generating over 135 MB of data in JSON format. When collecting the beacon data, all the signals were indeed received, but some messages were missed due to the receiver sensitivity (Table 2); in this case, the values with RSSI lower than −94 dBm were lost. Besides the quantity of the data, it is essential to consider some relevant topics such as the sampling rate or antenna polarity.

4.1. Sampling Rate

Sample collection is the primary purpose of the scanner, harvesting the signal of each beacon and packing, transporting, and delivering it to the database to analyze the behavior of the whole Indoor Positioning System. When collecting samples, it is crucial to understand if the whole system can satisfy the requirements from the Nyquist rate, which states that the frequency of sampling must be double the base frequency to obtain a discrete time sequence free of distortion (aliasing).
  f s > 2 B
The experiment conducted used different types of hardware as the beacons (Nano33 and MT7697), and the emitter interval of both models was established as 100 ms (10 Hz). Based on the Nyquist rate, the scanner must achieve a sampling rate frequency of 20 Hz or higher ( f s ) .

4.2. System Latency

Internally, the microcontroller (MT7697) performed the whole datalink layer process in 20 ms. Therefore, the Quality of Service (QoS) of the system was zero (QoS 0). Under these circumstances, MQTT generated a delay equal to or quicker than 5 ms, according to the Benchmark for MQTT brokers provided by Scalagent. Based on practical experience, the total latency of the system was 32 ms. Therefore, the delay caused by the Network (IPv6) and Transportation (TCP) can be induced as 7 ms.
With a sampling rate of 31 Hz ( f s ) , it is possible to guarantee a signal without sampling distortion (aliasing), satisfying the Nyquist rate minimum frequency (20 Hz).

4.3. Antenna Polarity

The sensitivity of the antenna fluctuates widely due to its design; according to the antenna’s orientation, the signal will suffer attenuation caused by the physical effects of the antenna related to its topology. In this study, the ceramic antenna was 3 × 1.5 mm; the following image represents the antenna radiation pattern, according to AVX reference [41], as shown in Figure 21.
It is possible to observe the attenuation that the ceramic antenna suffers 180 degrees (backward). This fact corresponds to the practical observations noted in Table 4 (Orientation).

5. Conclusions

Based on the results from the previous experiments, our team concluded that the key factor in developing a reliable indoor positioning system is the signal measurement quality. Collecting stable RSSI signals and improving the architecture should be the priority due to the considerable influence of signal refraction (noise).
Firstly, hardware selection greatly influenced the final results. For BLE 4.2, the influence of the radio wave refraction affected the predicted positioning, as shown in Figure 20d. BLE 5.0 presented a higher signal stability and better performance in lower-interference environments, as shown in Figure 15a. Multiple factors affected the RSSI, such as the device performance (Table 2), antenna direction (Figure 3), and radio wave refraction (Figure 17).
Secondly, using the RSSI regression coefficient cannot guarantee the system’s accuracy due to outliers and the lack of data interpretation (Table 6). For this topic, the use of modification coefficients helped reduce the data variance, as shown in Figure 20. In addition, the use of an intensive beacon set up in a low interference environment improved the accuracy effectively, as shown in Figure 16.
Finally, we aim to combine the methodology developed in this research with new indoor location technologies, such as extended Kalman filters or the Angle of Arrival (AOA) (introduced in BLE 5.2), for our future research development.

Author Contributions

Methodology and hardware, R.R. and C.-Y.H.; measurements and data curation, H.-W.L.; algorithm development and analysis, C.-A.L. and P.-T.L.; and writing—original draft preparation, S.-H.L. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by MOST 109-2222-E-011-008, the funded project of the Ministry of Science and Technology (MOST) of Taiwan. The experiment field and equipment support were mainly provided by the Center for Cyber-Physical System Innovation (CPSi), National Taiwan University of Science and Technology (NTUST), Taiwan. The CPSi center has been a Featured Areas Research Center in the Higher Education Sprout Project of the Ministry of Education (MOE) of Taiwan since 2018.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data presented in this study are available on request from the corresponding author. The data are not publicly available due to its use on future research activities.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Yudanto, R.G.; Petre, F. Sensor fusion for indoor navigation and tracking of automated guided vehicles. In Proceedings of the 2015 International Conference on Indoor Positioning and Indoor Navigation (IPIN), Banff, AB, Canada, 13–16 October 2015; pp. 1–8. [Google Scholar]
  2. Rodas, J.; Fernández, T.M.; Iglesia, D.I.; Escudero, C.J. Multiple antennas bluetooth system for rssi stabilization. In Proceedings of the 2007 4th International Symposium on Wireless Communication Systems, Trondheim, Norway, 17–19 October 2007; pp. 652–656. [Google Scholar]
  3. Nortel. Product Brief: Ekahau RTLS. 2021. Available online: https://web.archive.org/web/20081206204014/http://www.nortel.com/solutions/wlan/collateral/nn120920.pdf (accessed on 28 July 2021).
  4. Duru, A.; Şehirli, E.; Kabalcı, İ. Ultra-wideband positioning system using twr and lateration methods. In Proceedings of the Fourth International Conference on Engineering & MIS 2018, Istanbul, Turkey, 19–20 June 2018; pp. 1–4. [Google Scholar]
  5. Horsmanheimo, S.; Lembo, S.; Tuomimaki, L.; Huilla, S.; Honkamaa, P.; Laukkanen, M.; Kemppi, P. Indoor positioning platform to support 5G location based services. In Proceedings of the 2019 IEEE International Conference on Communications Workshops (ICC Workshops), Shanghai, China, 22–24 May 2019; pp. 1–6. [Google Scholar]
  6. Correa, A.; Barcelo, M.; Morell, A.; Vicario, J.L. A review of pedestrian indoor positioning systems for mass market applications. Sensors 2017, 17, 1927. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  7. MarketsandMarkets. Indoor Location Market by Component, Deployment Mode, Organization Size, Technology, Application, Vertical, and Region-Global Forecast to 2025. 2021. Available online: https://www.marketsandmarkets.com/Market-Reports/indoor-location-market-989.html (accessed on 28 July 2021).
  8. Reed, J.H.; Krizman, K.J.; Woerner, B.D.; Rappaport, S.T. An overview of the challenges and progress in meeting the E-911 requirement for location service. IEEE Commun. Mag. 1998, 36, 30–37. [Google Scholar] [CrossRef]
  9. Brimicombe, A.; Li, C. Location-Based Services and Geo-Information Engineering; John Wiley & Sons: Hoboken, NJ, USA, 2009. [Google Scholar]
  10. Zekavat, S.A.R.; Buehreer, R.M. Handbook of Position Location; John Wiley & Sons: Hoboken, NJ, USA, 2012. [Google Scholar]
  11. BLE.org. Enhancing Bluetooth Location Service. 2019. Available online: https://www.bluetooth.com/wp-content/uploads/2019/03/1901_Enhancing-Bluetooth-Location-Service_FINAL.pdf (accessed on 28 July 2021).
  12. Suryavanshi, N.B.; Reddy, K.V.; Chandrika, V.R. Direction finding capability in bluetooth 5.1 standard. In Proceedings of the International Conference on Ubiquitous Communications and Network Computing, Bangalore, India, 8–10 February 2019; pp. 53–65. [Google Scholar]
  13. Pau, G.; Arena, F.; Gebremariam, Y.E.; You, I. Bluetooth 5.1: An Analysis of Direction Finding Capability for High-Precision Location Services. Sensors 2021, 21, 3589. [Google Scholar] [CrossRef] [PubMed]
  14. Huang, C.; Zhuang, Y.; Liu, H.; Li, J.; Wang, W. A Performance Evaluation Framework for Direction Finding Using BLE AoA/AoD Receivers. IEEE Internet Things J. 2020, 8, 3331–3345. [Google Scholar] [CrossRef]
  15. Sen, S.; Choudhury, R.R.; Nelakuditi, S. SpinLoc: Spin once to know your location. In Proceedings of the Twelfth Workshop on Mobile Computing Systems & Applications, San Diego, CA, USA, 28–29 February 2012; pp. 1–6. [Google Scholar]
  16. Contreras, D.; Castro, M.; de la Torre, D.S. Performance evaluation of bluetooth low energy in indoor positioning systems. Trans. Emerg. Telecommun. Technol. 2017, 28, e2864. [Google Scholar] [CrossRef] [Green Version]
  17. Torii, H.; Ibi, S.; Sampei, S. Indoor positioning and tracking by multi-point observations of ble beacon signal. In Proceedings of the 2018 15th Workshop on Positioning, Navigation and Communications (WPNC), Bremen, Germany, 25–26 October 2018; pp. 1–5. [Google Scholar]
  18. Cantón Paterna, V.; Calveras Auge, A.; Paradells Aspas, J.; Perez Bullones, M.A. A bluetooth low energy indoor positioning system with channel diversity, weighted trilateration and kalman filtering. Sensors 2017, 17, 2927. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  19. Yin, J.; Yang, Z.; Cao, H.; Liu, T.; Zhou, Z.; Wu, C. A survey on Bluetooth 5.0 and mesh: New milestones of IoT. ACM Trans. Sens. Netw. 2019, 15, 1–29. [Google Scholar] [CrossRef]
  20. Bernardini, F.; Buffi, A.; Fontanelli, D.; Macii, D.; Magnago, V.; Marracci, M.; Motroni, A.; Nepa, P.; Tellini, B. Robot-based indoor positioning of UHF-RFID tags: The SAR method with multiple trajectories. IEEE Trans. Instrum. Meas. 2020, 70, 1–15. [Google Scholar] [CrossRef]
  21. Subedi, S.; Pyun, J.-Y. Practical fingerprinting localization for indoor positioning system by using beacons. J. Sens. 2017, 2017. [Google Scholar] [CrossRef] [Green Version]
  22. Bluecats. 2021. Available online: https://www.bluecats.com/ (accessed on 28 July 2021).
  23. Estimote. 2021. Available online: https://estimote.com/ (accessed on 28 July 2021).
  24. Kontakt. 2021. Available online: https://kontakt.io/ (accessed on 28 July 2021).
  25. Rachcha, S.P.; Srivastav, A. A Review on: Implementation of Wireless Farming Using IOT. In Proceedings of the Second Shri Chhatrapati Shivaji Maharaj QIP Conference on Engineering Innovations, Chhatrapati Shivaji Maharaj College of Engineering, Ahmednagar, India, 22–23 February 2019. [Google Scholar]
  26. Chen, W.-K. Linear Networks And Systems: Algorithms And Computer-Aided Implementations; World Scientific: Singapore, 1990; Volume 3. [Google Scholar]
  27. Poor, H.V. An Introduction to Signal Detection and Estimation; Springer Science & Business Media: Berlin, Germany, 2013. [Google Scholar]
  28. Yorozu, T.; Hirano, M.; Oka, K.; Tagawa, Y. Electron spectroscopy studies on magneto-optical media and plastic substrate interface. IEEE Transl. J. Magn. Jpn. 1987, 2, 740–741. [Google Scholar] [CrossRef]
  29. Qualcomm. BT Combo Reference Design. 2021. Available online: https://fccid.io/U72DRXPSL/Schematics/Schematics-2657810.pdf (accessed on 28 July 2021).
  30. Chen, S.; Mulgrew, B.; Grant, P.M. A clustering technique for digital communications channel equalization using radial basis function networks. IEEE Trans. Neural Netw. 1993, 4, 570–590. [Google Scholar] [CrossRef] [Green Version]
  31. Altbeacon. Android Beacon Library. 2021. Available online: https://altbeacon.github.io/android-beacon-library/distance-calculations2.html (accessed on 28 July 2021).
  32. Mohebbi, P.; Stroulia, E.; Nikolaidis, I. Sensor-data fusion for multi-person indoor location estimation. Sensors 2017, 17, 2377. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  33. Fan, W.; Yu, L.; Wang, Z.; Xue, F. The effect of wall reflection on indoor wireless location based on RSSI. In Proceedings of the 2014 IEEE International Conference on Robotics and Biomimetics (ROBIO 2014), Bali, Indonesia, 5–10 December 2014; pp. 1380–1384. [Google Scholar]
  34. Faragher, R.; Harle, R. An analysis of the accuracy of bluetooth low energy for indoor positioning applications. In Proceedings of the 27th International Technical Meeting of The Satellite Division of the Institute of Navigation (ION GNSS + 2014), Tampa, FL, USA, 8–12 September 2014; pp. 201–210. [Google Scholar]
  35. Rappaport, T.S. Wireless Communications: Principles and Practice; Prentice Hall: Hoboken, NJ, USA, 1996; Volume 2. [Google Scholar]
  36. Papadakis, N.; Economou, A.; Fotinopoulou, J.; Constantinou, P. Radio propagation measurements and modeling of indoor channels at 1800 MHz. Wirel. Pers. Commun. 1999, 9, 95–111. [Google Scholar] [CrossRef]
  37. Lin, P.T.; Liao, C.-A.; Liang, S.-H. Probabilistic Indoor Positioning and Navigation (PIPN) of Autonomous Ground Vehicle (AGV) Based on Wireless Measurements. IEEE Access 2021, 9, 25200–25207. [Google Scholar] [CrossRef]
  38. Bottou, L. Large-Scale Machine Learning with Stochastic Gradient Descent; Springer: Berlin, Germany, 2010; pp. 177–186. [Google Scholar]
  39. Nabil, M.; Abdelhalim, M.B.; AbdelRaouf, A. A new Kalman filter-based algorithm to improve the indoor positioning. In Proceedings of the 2016 5th International Conference on Multimedia Computing and Systems (ICMCS), Marrakech, Morocco, 29 September–1 October 2016; pp. 236–242. [Google Scholar]
  40. Lee, S.-H.; Lim, I.-K.; Lee, J.-K. Method for improving indoor positioning accuracy using extended kalman filter. Mob. Inf. Syst. 2016, 2016, 2369103. [Google Scholar] [CrossRef] [Green Version]
  41. AVX Group Company. Savvi Embedded Ceramic Antennas. 2021. Available online: https://www.avx.com/docs/techinfo/ApplicationNotes/Antenna-AppNotes/AVX-E_AppNote-M-Series.pdf (accessed on 28 July 2021).
Figure 1. System schematic.
Figure 1. System schematic.
Sensors 21 05181 g001
Figure 2. The appearance of Arduino nano 33 and Linkit 7697.
Figure 2. The appearance of Arduino nano 33 and Linkit 7697.
Sensors 21 05181 g002
Figure 3. Antenna orientation: (a) face-to-face and (b) not face-to-face.
Figure 3. Antenna orientation: (a) face-to-face and (b) not face-to-face.
Sensors 21 05181 g003
Figure 4. Experiment field layout (workshop and classroom).
Figure 4. Experiment field layout (workshop and classroom).
Sensors 21 05181 g004
Figure 5. Measurement configurations in the field.
Figure 5. Measurement configurations in the field.
Sensors 21 05181 g005
Figure 6. Measurements scene at the workshop.
Figure 6. Measurements scene at the workshop.
Sensors 21 05181 g006
Figure 7. Distance between the beacon and scanner in the measurements.
Figure 7. Distance between the beacon and scanner in the measurements.
Sensors 21 05181 g007
Figure 8. Dimensions of the layout in the multi-beacon scenario.
Figure 8. Dimensions of the layout in the multi-beacon scenario.
Sensors 21 05181 g008
Figure 9. Beacon configuration and scanner path.
Figure 9. Beacon configuration and scanner path.
Sensors 21 05181 g009
Figure 10. Geometric dimension—3D view.
Figure 10. Geometric dimension—3D view.
Sensors 21 05181 g010
Figure 11. Modification coefficients workflow.
Figure 11. Modification coefficients workflow.
Sensors 21 05181 g011
Figure 12. Regression coefficients for different beacons (BEC51–BEC54).
Figure 12. Regression coefficients for different beacons (BEC51–BEC54).
Sensors 21 05181 g012
Figure 13. Signal strength box plots.
Figure 13. Signal strength box plots.
Sensors 21 05181 g013
Figure 14. Comparison of the points section in the positioning accuracy.
Figure 14. Comparison of the points section in the positioning accuracy.
Sensors 21 05181 g014
Figure 15. Common setup and predicted positioning.
Figure 15. Common setup and predicted positioning.
Sensors 21 05181 g015
Figure 16. Intensive setup and predicted positioning.
Figure 16. Intensive setup and predicted positioning.
Sensors 21 05181 g016
Figure 17. Predicted positioning (without modification coefficients), BLE 5.0 (Nano 33).
Figure 17. Predicted positioning (without modification coefficients), BLE 5.0 (Nano 33).
Sensors 21 05181 g017
Figure 18. Predicted positioning (with modification coefficients), BLE 5.0 (Nano 33).
Figure 18. Predicted positioning (with modification coefficients), BLE 5.0 (Nano 33).
Sensors 21 05181 g018
Figure 19. Predicted positioning (without modification coefficients), BLE 4.2 (Linkit7697).
Figure 19. Predicted positioning (without modification coefficients), BLE 4.2 (Linkit7697).
Sensors 21 05181 g019
Figure 20. Predicted positioning (with modification coefficients), BLE 4.2 (Linkit7697).
Figure 20. Predicted positioning (with modification coefficients), BLE 4.2 (Linkit7697).
Sensors 21 05181 g020aSensors 21 05181 g020b
Figure 21. Antenna radiation pattern (AVX).
Figure 21. Antenna radiation pattern (AVX).
Sensors 21 05181 g021
Table 1. The portions in the practice of the BLE measurements.
Table 1. The portions in the practice of the BLE measurements.
ComponentsMeasurementAnalysis Methods
  • Specification
  • RSSI–distance conversion
  • Signal propagation
  • Interconnection
  • Multi-beacon in-plane
  • Trilateration
  • Diverse directions in spatial
  • Modification coefficients
  • Kalman Filtering *
* Kalman Filtering listed as a further topic, but the relevant analysis results are not included in this report.
Table 2. Specifications of the components (BLE 5.0 and BLE 4.2).
Table 2. Specifications of the components (BLE 5.0 and BLE 4.2).
ModelBLE VersionTransmittingReceivingRemark
Arduino Nano 33BLE 5.0 1−20 to +8 dBm−103 dBm (long range)
−95 dBm (low energy)
Beacon
Linkit 7697BLE 4.2 2−21 to +9 dBm−94 dBmBeacon
Scanner
1 Nordic nRF52840 chipset: https://content.arduino.cc/assets/Nano_BLE_MCU-nRF52840_PS_v1.1.pdf (accessed on 28 July 2021). 2 ACSIP wrtnode7 chipset: http://www.acsip.com.tw/index.php?action=technical&p=2 (accessed on 28 July 2021).
Table 3. Antenna orientation influence on the RSSI.
Table 3. Antenna orientation influence on the RSSI.
DistanceFace-to-FaceBack-to-Back
mRSSI 1VarRSSIVar
0.2−5615.64−7914.51
0.4−636.68−8518.44
0.6−660.77−8734.54
0.8−663.57−8219.90
1−6617.26−8528.51
2−7219.34−8619.44
3−733.09−931.82
1 RSSI: Received Signal Strength Index, unit: dBm; mean value (1000 samples).
Table 4. Components numbering (BLE 5.0 and BLE 4.2).
Table 4. Components numbering (BLE 5.0 and BLE 4.2).
ModelBLE 5.0BLE 4.2Location
Arduino Nano 33#51–56-Classroom 1
Linkit 7697-#61–66Classroom
Arduino Nano 33#71–79-Workshop 2
Linkit 7697-#81–89Workshop
1 Classroom: less noisy environment (refer to Figure 5c). 2 Workshop: general factory noise (refer to Figure 6c).
Table 5. Interconnection model and protocols.
Table 5. Interconnection model and protocols.
OSI Layer 1IoT ProtocolComponent
ApplicationMQTT broker 2Server
TransportTCPRouter
NetworkIPv4, IPv6Access Point
DatalinkBLE, MAC, 802.11 b/g/n (Wi-Fi)Microcontroller
1 Open Systems Interconnection model (OSI model), https://en.wikipedia.org/wiki/OSI_model (accessed on 28 July 2021). 2 MQTT broker, https://en.wikipedia.org/wiki/MQTT (accessed on 28 July 2021).
Table 6. The distance between the beacons and measurement point (scanner).
Table 6. The distance between the beacons and measurement point (scanner).
Beacon No.1Point aPoint bPoint cPoint d
#71 (#81)2.26 m---
#72 (#82)2.20 m2.20 m--
#73 (#81)-2.26 m--
#74 (#81)1.92 m--1.92 m
#75 (#81)1.84 m1.84 m1.85 m1.85 m
#76 (#86)-1.92 m1.92 m-
#77 (#87)---1.92 m
#78 (#88)--1.85 m1.85 m
#79 (#89)--1.92 m-
1 Arduino nano33 (#71–#79) and Linkit 7697 (#81–#89).
Table 7. RSSI/distance conversion table.
Table 7. RSSI/distance conversion table.
Beacon/Distance 10.2 m0.4 m0.6 m0.8 m1.0 m2.0 m3.0 m4.0 m5.0 m6.0 m7.0 m8.0 m9.0 m10 m
Arduino Nano 33
dBm 2
−56−63−66−66−66−72−73−73−77−85−84−85−83−86
Linkit 7697
dBm
−55−62−61−65−68−74−69−76−74−79−79−79−79−83
1 Distance unit: meter. 2 RSSI: Received Signal Strength Index, unit: dBm. The RSSI value was acquired based on its median with 1000 samples.
Table 8. Distance prediction and error.
Table 8. Distance prediction and error.
DeviceActual Distance (m)Predicted Distance 1Error (m)Var
Bec #510.20.2630.0630.024
0.40.5180.1180.260
0.60.6030.0030.312
0.80.8800.0800.427
1.01.0980.0980.203
2.01.373−0.6271.470
3.01.863−1.1371.158
4.02.734−1.2662.726
5.04.344−0.6563.263
6.07.2831.2837.113
1 Predicted distance: median value calculated based on its regression coefficients (1000 samples).
Table 9. Mean positioning error and variance, Nano 33, BLE 5.0.
Table 9. Mean positioning error and variance, Nano 33, BLE 5.0.
LocationPoint 1Point 2Point 3Point 4Point 5
Notification
Y error1.1441.0182.18−3.876−0.163
X error−1.365−0.1520.6431.678−2.187
Y variance0.510.6670.7621.1590.524
X variance0.3920.8130.3630.9370.501
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Ramirez, R.; Huang, C.-Y.; Liao, C.-A.; Lin, P.-T.; Lin, H.-W.; Liang, S.-H. A Practice of BLE RSSI Measurement for Indoor Positioning. Sensors 2021, 21, 5181. https://doi.org/10.3390/s21155181

AMA Style

Ramirez R, Huang C-Y, Liao C-A, Lin P-T, Lin H-W, Liang S-H. A Practice of BLE RSSI Measurement for Indoor Positioning. Sensors. 2021; 21(15):5181. https://doi.org/10.3390/s21155181

Chicago/Turabian Style

Ramirez, Ramiro, Chien-Yi Huang, Che-An Liao, Po-Ting Lin, Hsin-Wei Lin, and Shu-Hao Liang. 2021. "A Practice of BLE RSSI Measurement for Indoor Positioning" Sensors 21, no. 15: 5181. https://doi.org/10.3390/s21155181

APA Style

Ramirez, R., Huang, C. -Y., Liao, C. -A., Lin, P. -T., Lin, H. -W., & Liang, S. -H. (2021). A Practice of BLE RSSI Measurement for Indoor Positioning. Sensors, 21(15), 5181. https://doi.org/10.3390/s21155181

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