A Low Energy IoT Application Using Beacon for Indoor Localization

: In recent years, a great number of applications in Internet of Things (IoT) have been developed. In this context, many methodologies and technologies are used for several frameworks, including indoor localization. In this ﬁeld, as highlighted in recent years, one of the most important aims of modern indoor applications in IoT is to identify how to manage and correctly convey people ﬂow. This study aims to investigate the most common methods, technologies and applications for indoor localization in IoT and analyze the major systems currently in use and the application of these solutions to actual conditions. Following this, we propose an innovative method to detect people ﬂow in indoor location. Based on Bluetooth low energy (BLE) technology, in this paper we analyze the possibility to use our system for many kinds of applications. The ﬁrst experimental results show good performance of our system.


Introduction
With the development of the Internet of Things, there has been an exponential evolution in the use and implementation of many smart devices. Examples of this are the countless smartphones, tablets, smartwatches, etc., present today [1]. It is estimated, in fact, that by 2025, the number of devices connected to the internet will be about 50 billion-a significant rule that pushes multinationals to focus on and invest in all those technologies that make the Internet of Things project increasingly at the center of the world [2,3]. Thanks to the use of these smart devices, it is easier to enter the world of the internet and all those resources that the web offers. At the base of this development is the progress of technology that responds to these changes to allow interaction in a simple and direct way, not only with all devices, but also with the needs of the smartphones market, hence, the birth of so-called nearables,-small devices equipped with sensors that activate in proximity to other devices (hence the term nearable) by sending and/or receiving information via wireless connections, such as Wi-Fi and Bluetooth [4,5]. Another important point of view highlighted during the last years is tracking people flow in indoor locations, such as, for example, museums, sports halls, theaters, etc. Our research aims to investigate what the major methods, technologies and applications for indoor localization are, starting from "modern" devices, such as smartphones and wearable objects and their possible uses. Generally, when we talk about wearable objects, we refer to "miniaturized devices that can be worn under, over or inside the same clothes we wear, and sometimes function as real extensions of the mind and body of the wearer" [6]. Wireless communication refers to the transfer of any type of information between two or more points that are not physically connected to each other. The developments in the field of communication and the advent of the Internet of Things have led to a wide range of different services in order to improve the quality of service (QoS) provided to the user [7,8]. Among these, services based on internal location are of interest. Although the GPS-acronym for Global Position System-is a fairly accurate positioning system for the estimation of position, in an indoor environment it is unusable, due to the scarce or even non-existent presence of a satellite signal [9,10].
To solve the problem of indoor localization, techniques have been adopted that mainly concern the IEEE 802.11 standard and, in particular, the b and g releases (commercially known as Wi-Fi). Indoor localization, compared to the outdoor one, is much more challenging due to the presence of a wide range of obstacles that affect the result of the localization [11]. In order to design a functioning indoor localization system, it is necessary to take advantage of everything that is currently present in the state of the art.
Localization in an indoor environment turns out to be an essential and important research problem of the Internet of Things. Since smart objects can be identified and equipped with wireless communication capabilities, it is possible to locate them in a certain environment [12]. Location-based IoT applications are exploited to monitor objects and people for resource management, for agriculture, and for health care. Unlike what happens with an outdoor positioning system, where the LTE network is used in addition to GPS for a more precise location, for an indoor location system, it is necessary to develop a hardwaresoftware set that can simulate the GPS function within a delimited and closed space.
The idea behind this localization system is to exploit "smart" objects, deriving precisely from the IoT, in order to define an infrastructure system capable of reading and returning the required result. For this purpose, the IoT uses some detection devices, such as sensors, RFID tags and Bluetooth devices. The wireless location systems basically imply the presence of at least three points of reference from which to obtain useful information for the final goal, distributed in fixed positions known a priori, of at least one mobile node. The technologies used in these systems are highly heterogeneous; among the most used are Wi-Fi, ultrasound, radio frequency identification (RFID) and Bluetooth communication [13]. To date, however, there is no dominant technology that can be used in all cases. Each technology that an indoor localization system can use processes, through various techniques, the data received from the sensors in a different way.
However, it is possible to divide and manage a generic localization system essentially through two phases:

1.
Data collection: In this phase, all useful information is collected from the reference sensors and then processed to provide the data actually requested (the final position); 2.
Localization: The devices that act as transmitters are affected by the surrounding environment and any obstacles. This phase is used to improve the accuracy of the position estimation, taking into account any systematic errors due to any interference.
The aim of this paper is to provide a system to detect people in an indoor location, using BLE technology. An indoor location system can be defined as a system for identifying the position of objects or people in a delimited and closed space. Subsequently, guidelines are drawn for the approximate calculation of the coordinates of a two-dimensional space of the position of a specific object, or user, in an indoor environment. The various techniques used today are based on such technologies as ultrasound, Bluetooth, Wi-Fi, etc. The techniques that can be used are divided into two distinct types: recognition techniques based on tracing (triangulation, proximity, dead reckoning) [14], and techniques defined as RSS techniques, based on signals wireless. What happens is that often the localization systems, based exclusively on a single technology, suffer from errors due to the limitations of the technology itself, often resulting in lower accuracy or even, at times, an exaggerated increase in costs due to the attempt to correct errors. The current trend is to combine multiple sensing technologies in order to increase accuracy and reduce costs, making the most of the characteristics of each technology.

Related Works
Unlike what happens for an outdoor location, an indoor one cannot refer to and rely on a single technology; for this reason, it is much more complex. Indoor localization, therefore, requires both instruments other than satellite ones-that is, it cannot depend on the use of GPS-and knowledge of the nature of the environment in which the localization must be implemented [15]. To compensate for the ineffectiveness of the GPS signal in an indoor environment, localization systems have been designed based both on different sensing technologies, such as defined radio localization-technologies such as Wi-Fi and Bluetooth-and on methods that require a priori knowledge of the structure where the indoor localization system is to be applied (an example is dead reckoning). All these technologies used today for indoor localization differ in terms of accuracy, costs and efforts, although in recent years, there has been a marked improvement in the accuracy-cost ratio.
Radio localization is a method that allows the estimation of the position in real time through the use of radio antennas arranged in fixed and well-defined positions known a priori. A technology that is widely used in indoor environments is Bluetooth: "small Bluetooth antennas are used that allow you to interact with the mobile phones of people who are at distances up to 70 m from the antenna". Bluetooth technology is widely used in not very large environments, so all signals transmitted by the antennas are received by the device. These particular antennas, which appear to be inexpensive, small and with a long battery life, take advantage of a low-power, wireless connectivity, defined as BLE-Bluetooth low energy [16]. With BLE technology, it is possible to take advantage of Wi-Fi connectivity: the results are good in closed environments and fragmented by walls, such as hospitals or buildings, where the solution is used to track in real time the positioning of assets such as medical equipment or hospital operators. The most used method under WLAN connection to locate the user, who must have a device with Wi-Fi connectivity with them, is to exploit the power of the signals sent to the device by the access points at regular intervals of time.
Another technology that follows Wi-Fi and Bluetooth is that of Ultra WideBand (UWB). This technology represents a method capable of providing, with low energy consumption, a short-range communication but at high speed. Ultra WideBand does nothing but send many short duration pulses so as to be able to filter the signals reflected from the original signal: in other words, the low frequency of UWB pulses allows the signal to pass effectively through obstacles, such as walls and objects. This last statement makes us understand how this technology is widely used to improve the accuracy of the position calculation [17,18].
Another method that can be used is represented by dead reckoning: the positioning is determined starting from a previously known position, using an estimate of speed, direction and time. It is possible to determine these estimates through elementary movements, such as walking or running, using mechanical and electrical sensors: in this way, the values of speed, direction and time are obtained [17,19]. RFID technology, on the other hand, consists of three fundamental elements:

•
Tag: A small electronic device consisting of a microchip with simple control logic functions connected to an antenna, both mounted on a substrate, similar to an adhesive label, which supports them. This chip (of a few millimeters) represents the smart part and consists of a non-volatile memory and a unique code, which is transmitted to the reader, which has the task of processing all the data received; • Reader: A transceiver controlled by a microprocessor, used to receive and acquire the information from the tags; • Management System: A system that allows, starting from the univocal code, to retrieve all the various information available and to manage them.
When the reader generates an electromagnetic field, the tag, passing through the field itself, transmits its information to the reader. Once the tag has decoded the reader signal as correct, it "responds" to it by reflecting, through its antenna, and modulating the field emitted by the reader [20,21]. The communication between reader and tag are described in specific standards, while the information that the tag transmits to the reader is contained in a certain amount of memory that each tag contains within it. Currently, the standardization process sees organizations such as ISO, ETSI and EPC-global as protagonists. Among the various standards adopted for this RFID technology we find the following [ In the application field, the use of an RFID system is very broad. For example, it is possible to exploit this technology in storage sites for the tracking of goods in transit, for access control through the use of tickets, for identification by season tickets or cards, and even for the location of livestock in the pasture or wild animals. In short, it is a technology that has many applications but which also faces some problems, such as privacy and security, high cost, and possibility of uncertain reading in the case of a large number of articles. The uncertainty in the reading may depend on strong interference due to the presence of both liquid masses, which absorb the signals, and to metal surfaces, which reflect them. Table 1 summarizes the main technologies used for an indoor localization system in relation to accuracy, power consumption and cost. Some recent works have shown how it is possible to use passive Wi-Fi tag and Wi-Fi fingerprint techniques to obtain an indoor location and other possible ones on UWB [23][24][25]. One of the main problems highlighted in the literature are interference problems. In fact, in order to have a good response, there is a need to have systems that are sufficiently performant or to be in charge of environmental disturbances, such as electromagnetic sources, shielded materials or even cases of low consumption techniques that the same people constitute as problems.

Background on Methods and Technologies for Indoor Localization
The study of indoor localization arises from the need to locate certain objects or people in large buildings, offices, museums, hospitals, etc. The term localization system refers to a system capable of calculating and determining the spatial position of a specific object or a specific person. In reality, the position data are not the only parameters that can be obtained: objects can also be monitored through temperature, movement and light sensors.
In addition to locating objects and people in real time, it is therefore possible to do the following:

•
Trace the path of objects/people at a certain time; • Calculate the parking times of an object/person in a certain area; • Analyze the various interactions between objects and people.
In a localization system, it is possible to distinguish, in the same area, both fixed points, known a priori, and mobile points, identified through relations on the coordinates of the first ones. An indoor localization system has the ultimate purpose of returning, as accurately and quickly as possible, the user's position with respect to a spatial reference system. Specifically, for indoor environments, the position is determined and represented using the coordinates of a Cartesian system, as we are not interested in determining the position according to the characteristics of the earth. The other reference system that is adopted, this time for outdoor environments, is the one called "ellipsoidal reference system" since it is more suitable for large and complex geographical locations. Localization techniques are divided into four general methodologies [26][27][28]: The last methodology was analyzed and addressed during the internship experience: the idea behind this technique is to exploit, as we will see in the next paragraph, the power signal of the devices in order to obtain useful information from translation into distance. In the following paragraphs, however, the other methodologies will also be described and analyzed in order to fully understand both their basic functioning and how localization in an indoor environment can take place. Table 2 shows the advantages and disadvantages of the various methodologies presented up to now. It requires the use of additional antennas to measure angles and therefore has a higher cost; multipath and reflection phenomenon RSS Very simple to implement; it does not require synchronization between devices; it requires no additional hardware The presence of obstacles, the orientation of the antennas and the environment make it difficult to create an accurate model of indoor localization As can be seen from this table, the use of the RSS-based method is much simpler, more intuitive, less expensive than the other algorithms and, moreover, it is not necessary to synchronize the various devices with each other. Comparing instead the technologies of Table 1, it is understood how it is preferable-for power consumption, costs and accuracyto exploit Bluetooth technology.

The Development of Bluetooth Technology
Bluetooth is a short-range wireless transmission standard, developed by the Blue-tooth Special Interest Group-SIG, operating at frequencies between 2.4 GHz and 2.485 GHz, which allows multiple devices to communicate and exchange data and information. of any kind. The first versions marketed guaranteed data exchanges between devices at a maximum speed of about 723.1 Kbit/s, while with subsequent releases (Bluetooth 2.0 and Bluetooth 4.0), the amount of data exchanged in a single second was increased. This technology is very useful and used thanks to its very low consumption: precisely because of this characteristic, combined with the low cost of Bluetooth devices, it was decided to take advantage of this technology. The devices that make up the indoor localization system communicate with each other via Bluetooth connection, providing the necessary data to be able to calculate the coordinates of the position later on. The main advantages, however, can be summarized in three points:

•
Complete absence of cables and wires: Bluetooth allows, in fact, direct communication between various devices without the need for further connections; • Limited cost; • Complete automation.
The Bluetooth standard can be divided into three types of classes, each of which have a different range, as shown in Table 3. As can be seen from the table, this technology can reach an action range of up to 100 m, thus making it very useful in an indoor environment. As regards the estimation of the position, Bluetooth is exploited using a system consisting essentially of a Bluetooth module that acts as a detector (in slave mode) and other devices (set in master mode) called beacons of which the location in the area of interest. The position estimation can be determined starting from the signal strength that each master device detects from slave devices. The main advantage of this technology, as previously mentioned, depends both on the low power consumption, but also on the easy availability of hardware; most of the devices available on the market today, such as smartphones, tablets and computers, integrate within them already the Bluetooth standard [29,30]. The disadvantage, on the other hand, is the countless interferences that the system can suffer. In a very small and limited area, any type of obstacle, whether it is a person or any other device, can limit and therefore decrease the accuracy when measuring the signal strength. This limit translates into an estimate of the wrong, or at least different from the actual, position [31].

The Proposed Approach
Authors should discuss the results and how they can be interpreted from the perspective of previous studies and of the working hypotheses. The findings and their implications should be discussed in the broadest context possible. Future research directions may also be highlighted.
Indoor localization can generally be approached in two different ways: • Precise Indoor Localization (PIL); • Zone-Based Indoor Localization.
The first approach requires the exact identification of the user's position with an accuracy below one meter. However, to obtain a precise position, the beacons are not sufficient. In fact, it is necessary to use additional instruments, such as an accelerometer, which can be used to calculate the distance travelled by the user over time; a compass, which can be used to know the user's direction at any time; or a gyroscope that can provide information on user rotation change.
The second approach is based on the subdivision of the area of interest into N-zones and then identifying in which n-th zone the user is present. Bluetooth low-energy devices, due to the large variations in the RSS parameter that leads to a distance calculation subject to errors, do not allow precise localization; therefore, the zone-based approach must be used.
The starting idea is to exploit a system consisting of three master devices to obtain the RSSI values relating to the single slave device to be located and convert these values into distance. Each master, positioned in known points a priori, obtains and processes the RSSI values by converting the signal power value into distance. Processing takes place via a microprocessor that receives RSS values as input, returning as output the value of the distance between the mobile node and the fixed node whose position in space is known. Subsequently, using the trilateration technique, the coordinates (x, y) are obtained by means of a program written in C language. The aim of the project is to create a system for locating the position of a user in an indoor environment in the area of interest. To develop this system, it is necessary to first define the type of architecture to be used within the indoor structure of interest: you can imagine designing a generic hardware system, having the configuration as shown in Figure 1. As can be understood from the figure, the user will have to wear a wearable that is able to be detected via Bluetooth connectivity by the master modules. Each reference device will have to receive RSS values from the wearable, convert them into distance and store them in a text file. When we talk about a generic electronic system, it is necessary to define and analyze both the hardware side and the software side in order to better understand its operation. The project has as its main objective the creation of an indoor localization system that uses Bluetooth modules for user localization. The system, as we will see, foresees a certain number of reference nodes-positioned in points known a priori-and a mobile node. The first paragraph describes all the devices used and shows the various connections made. Subsequently, the development environment for programming the Arduino boards will be shown. Finally, the last paragraph describes the environmental characterization; then the values of the signal propagation constant and the RSSI at 1 m from the source will be obtained. In Figure 2, the architecture of the proposed system is shown. The on-board system represents the wearable device and corresponds to the device to be located, i.e., a battery-powered HC-05 Bluetooth module. The ground system is composed of the three reference Bluetooth modules, each managed by an Arduino Pro-Mini (smart drivers) and by the computer, which reads the data via serial and stores them in a database. Then, through a program (Matlab or Excel), the expert user can graphically view the results obtained. Therefore, the UI block-acronym for user interpretation-represents the graphic display of the stored data. In Figure 3, instead, the framework of the system is represented. Therefore, to identify a target object, it is necessary to have at least three master objects that identify the space in which the target is located. To do this, the trilateration technique was used in our system. In a two-dimensional plane, at least three sensors must be used and positioned in the plane to ensure that the measurement is unique. Under these conditions, the technique can be defined as hyperbolic trilateration. This technique guarantees that we can find a target position using the di RSSI signal between it and three other devices' (master) known positions and the time response with the target message. Figure 4 shows the same technique but using both the intersection between three circles and the a priori knowledge of the coordinates of the reference beacons. (1) Using this system, it is possible to obtain the (x, y) coordinates of the target node: If the three beacons have the following coordinates R 1 = (0, 0), R 2 = (0, v), R 3 = (u, 0), as shown in Figure 5, the system is simplified in the following way: This method is very simple, useful and convenient, as the x and y coordinates can be easily obtained starting from the values of the distances, obtained through the RSS parameter of the reference beacons with respect to the target node.

Case of Study
The architecture of the system described in the previous paragraph (see Figure 2) is essentially based on four fundamental components: • Four Bluetooth HC-05 modules comprising three anchors, or reference nodes (set in master mode), and one target (set in slave mode); • The Arduino Pro Mini to manage and control the HC-05 master Bluetooth modules, which provide the RSSI values of the slave device; • A coin cell breakout w/on-off switch (with 3 V CR2032 batteries) to power the HC-05 module, which acts as a slave; • A computer to manage and process the values obtained from the exchange of information between the master and slave modules.
The Bluetooth module used is the HC-05. It is a Bluetooth module that is programmable via AT commands and can be used in both master and slave modes. The commands AT + ROLE = 1 and AT + ROLE = 0 allow setting the master mode and the slave mode, respectively. Specifically, as already mentioned, four HC-05 Bluetooth modules are used: three in master mode, to be able to scan and search for other Bluetooth devices, and one in slave mode to be searched by the master modules. An Arduino Pro Mini is used to power and control the HC-05 master modules. The choice to use this card lies in the fact that it is compact and small, and therefore not bulky for applications and installations in small spaces. By connecting the board to the computer via these two components, it is possible to load any type of program using the development environment described in the next paragraph. Through the hardware connections between the HC-05 Bluetooth module and the coins cell for the wearable device, and between the Arduino Pro Mini board and the HC-05 Bluetooth module, it is possible to power the devices to make them wearable.
The series connection between the two CR2032 batteries allows for a total voltage of 6 V, the maximum power voltage allowed for the HC-05 Bluetooth module. In practice, this device acts only as a transmitter: it is the master devices that receive and process the data on the RSS value. Figure 6 shows the algorithm used in the proposed indoor localization system, while Figure 7 shows the complete system, including the three master Bluetooth modules and the slave Bluetooth module, to be located.  The programming of the Arduino Pro Mini takes place through the use of a dedicated development environment, called IDE-Integrated Development Environment. The program, written in C and defined in sketch, always contains two functions, setup () and loop (), which contain both the settings necessary for the correct functioning of the devices that can be connected to the Arduino Pro Mini board and the instruction blocks to carry out what is required. The setup () function is used not only to initialize variables but also to set up serial communications.
After the creation of the setup () function, which initializes and sets the initial values, the loop () function cyclically executes the program defined within it: it represents the main function that will be repeated indefinitely until the board is turned off. After writing all the code, we move on to the compilation phase, which, unlike the C language, is translated and completed essentially in the phase of loading the code on the board itself. In order to view the output, and therefore the result of the compiled code, it is necessary to use the serial monitor, defined in the Arduino development environment, by first clicking on the "serial monitor" button and then selecting the same speed, in baud, used in the serial call in order to be able to communicate correctly with the device. In order to obtain the information about the RSSI value from the slave device, it is necessary to define the necessary commands in the setup () function so that the HC-05 module can be enabled to search for other Bluetooth devices. Subsequently, in the loop () function, the AT + INQ command is sent to the master Bluetooth module to allow the scan to begin. When the master recognizes the address of the slave device to be located, the program returns the following: • RSSI value in dBm; • Distance in centimeters between the slave module and the master; • Total time from the start of the program execution.
The serial communication of the three master devices is opened through the Realterm program. The choice to use this serial monitor is linked to the fact of being able to save all the processed content easily and quickly in a text file. Thus, three files are available: subsequently, through an additional program written in C, the data present within the files are processed to obtain the coordinates (x, y), using the trilateration method, as seen in the previous chapter. The program ends by storing the obtained coordinates in a new text file. To be able to plot these coordinates on a Cartesian axis, MATLAB and Microsoft Excel are used. The uploaded code, on every single Arduino Pro Mini must do the following: Convert the received signal strength into distance.

Experimental Results
This chapter shows the results obtained from the experimental tests carried out in a closed place without interference, considering a well-defined area. For each distance, the reference nodes, in automatic and continuous mode, scan the mobile node obtaining the RSSI parameter converted into distance. The data obtained are saved in a text file via serial connection and subsequently managed in order to obtain the coordinates (x, y). In order to better evaluate the indoor localization methodologies, it is necessary to take into account a set of metric parameters, such as precision, recall, accuracy and F1-score.
The source code loaded on the cards allows to take advantage of the AT mode of the HC-05 module and to initialize the device so that it can perform a Bluetooth scan. Once you have loaded the sketch on the Arduino Pro Mini you have to: • Choose the area of interest and divide it into N-zones; • Make the connection as shown in Figure 7; • Connect the Arduino Pro Mini boards to the pc via the FTDI adapter and USB cable; • Open the serial monitors using a computer in order to store the RSSI values obtained from each single reading in a file, in txt format; • Perform the tests by placing the slave in the selected area, starting the three reference devices simultaneously.
Once the slave module is turned on, the three reference modules, positioned at known distances from each other, provide an indication of the RSS value of the Bluetooth module to be located. The power value of each single master is very important as it allows you to determine the distance between the reference Bluetooth module and the target Bluetooth. The conversion from RSSI value to distance is done through the following steps: • LISTA Read RSSI value: The master devices get the RSS value from the scan of the target Bluetooth module; • LISTA Distance calculation: Once the RSS value in dBm is obtained, the distance can be calculated, using the formula RSSI = − 10n log 10 d − P d0 . In order to convert the RSSI value into distance, it is necessary to perform a calibration test in order to define both the RSSI value at a distance of 1 m from the source and the value of the signal propagation constant. The knowledge of these two parameters allows the conversion from dBm to meters.
To achieve the final goal, several tests were carried out to test the behavior of the RSSI values of the master devices as a function of the coordinates (x, y). The experimental tests carried out were carried out by holding the wearable device still in a specific area. A static test was carried out by placing the master devices at 8 m each and dividing the area into 16 zones of area 2 × 2 m, as shown in Table 4. The choice to use this initial arrangement is linked to the fact that the HC-05 devices transmit at a maximum distance of 10 m: at the extreme points, in fact, the slave is just over 10 m away from the masters. A total of 60 measurements were made for each single zone. Taking into consideration the zone (3; 3) it can be seen from Figure 8 the presence of a high number of coordinates outside the reference zone. The values that fall within the marked area are defined as true positives (true positive-TP), while those outsides are called false negatives (false negative-FN). To determine all the parameters for the calculation of precision, recall, accuracy and F1-score, all the areas adjacent to the area under examination are then considered. False positives are all those measures associated with the adjacent areas which, erroneously, are positioned within the area considered (false positive-FP); the external ones, however, are defined as true negatives (true negative-TN), intended as errors of classification. The dispersion of the data is caused by measurement errors: a small error on each single beacon, even of 1 dBm, corresponds to a large error of the coordinates (x, y). The knowledge of the values defined as true negatives, on the other hand, allows the calculation of the accuracy. The following Table 5 summarizes the values of true positives (TP), false negatives (FN), false positives (FP) and true negatives (TN). In order to evaluate its performance, taking into consideration one area at a time, tests were carried out verifying the correct classification of the target based on the position in which it was located (whether inside the area or outside). In fact, the tests conducted statically were carried out by randomly varying the presence of the target inside and outside the area. In order to evaluate the test conducted, the precision, recall, accuracy and F1-score values were calculated for each zone and the average was then made for each parameter: From this experimental phase, it is possible to verify how it is possible to carry out, in the absence of interference sources, that the proposed method lends itself to these types of wearable applications. It is also evident that everything depends very much on the RSSI readings, as in the three masters, a stable and constant localization is not allowed but readings are provided in terms of coordinates (x, y), which are incorrect, greatly compromising the precision. The problem is due to the fact that the value of the detected power signal depends on both the device and the area in which you want to locate the slave device. Therefore, it is essential that the environment is free of interference. Although the performances obtained are valid, these provide us with valid elements of discussion to make changes in order to improve the system. A first could be, being that the outermost areas affected by the greatest error, the addition of a fourth component that can better trilaterate the signal. Another possible improvement could be to use devices with better signal strength for the masters.

Discussions
Location solution applications provide the interface for location data and enable you to use the solution in your business. Generally, applications are built from the various ways of using location data. The applications for indoor localization concern various fields, such as industrial (localization of products, equipment) [32], logistics (localization of goods, pallets, forklifts, trans pallets, and inventory in real time) [33], access control (localization of people and access permits) [34], health and assistance (localization of medical equipment, health workers, patients) [35], sports (tracking the movements and trajectories of athletes) and many others [36]. It is possible to foresee many of their applications in context aware computing, especially as regards recommender systems [37] in the automotive field for the localization and analysis of data in tunnels and places, where the GPS signal is not present [38]. In the field of cultural heritage, using contextual apps for visits to places of interest is possible to help the user to have the right information and the right path to their location [39].
In all cases, it is possible to foresee approaches based on real-time displacements, to record them, to review them and to analyze their history (trajectories, speeds, and heat maps). Some possible domain applications range from the content we are in to the following different areas [40][41][42]: • Asset management-localization, management and commercial use of any tangible asset owned by a company or a private individual. • Supply chain management-management of companies and interconnected processes related to the production, distribution and sale of products and ser-vices. It includes inventory and warehouse management. • Detection and Monitoring-integration of sensors (e.g., data loggers) used to monitor the physical environment of an object. The most common sensors are those of temperature and humidity. • Maintenance, repair and overhaul (MRO)-all the activities, technical and administrative, conducted to ensure that an object (tools, equipment, vehicles) is able to perform the function required of it. • Compliance-act or process of adhering to a request or regime specified by a government, industry, or customer. • Safety/security-safety and security management, assurance and compliance for a company, its employees, its resources, its products and processes. Among the most common applications, we find workplace safety, the management of evacuation and emergency procedures. • Workflow optimization-optimizing efficiency for a company's workflow. For example, in an automobile manufacturing plant, the goal is to minimize the steps to get from point A to point B of the production process, or to ensure that when it gets to point B, a worker has XYZ available to do the job properly. • Manufacturing-asset traceability, maintenance and repair (MRO), material supply, safety/security, supply chain management, and materials in process.

•
Logistics-sorting, inventory/warehouse management, security/protection, supply chain management, and loading/unloading management. • Transportation-use of resources, automated detection and monitoring, loading, intervention times for maintenance, packaging, safety (unaccompanied minors), and traceability of vehicles. • Retail-asset tracking, inventory, supply chain management, and warehouse management.

•
Healthcare-asset traceability, compliance, patient flow, safety, and workflow optimization. • Sport-monitoring the score of players.
The traceability of people is a very strong theme today. This strongly supports the discussion that there is a need to implement new models of use of contents that can keep up with the times.

Conclusions
In this article, we showed the techniques, methods and applications for an indoor localization; we propose an approach to develop a system that is able to localize a target in an indoor condition. It is seen that in modern applications, the best performance is obtained using a system based solely on Bluetooth modules, where it is necessary to use a zone-based approach. The advantage lies in the fact that this type of approach supports a range of RSSI values for each zone and, therefore, it is intuitive to understand what type of movement is made. These approaches are susceptible to improvements. In addition to being used for simple internal positioning, it can be applied, later, to create a more complex, complete and precise system, using Wi-Fi and UWB or a combination of different technologies that allows you to track, for example, a basketball player on the court. In this case, the system can be modified to take advantage of a precise indoor localization approach, exploiting-in addition to simple beacons-additional devices, such as accelerometers and gyroscopes.