scieee AI-readable full text Open interactive document viewer

Mobile device-based Bluetooth low energy database for range estimation in indoor environments

Pascacio, Pavel; Torres-Sospedra, Joaquín; Jimenez, Antonio R.; Casteleyn, Sven

Abstract

The demand to enhance distance estimation and location accuracy in a variety of Non-Line-of-Sight (NLOS) indoor environments has boosted investigation into infrastructure-less ranging and collaborative positioning approaches. Unfortunately, capturing the required measurements to support such systems is tedious and time-consuming, as it requires simultaneous measurements using multiple mobile devices, and no such database are available in literature. This article presents a Bluetooth Low Energy (BLE) database, including Received-Signal-Strength (RSS) and Ground-Truth (GT) positions, for indoor positioning and ranging applications, using mobile devices as transmitters and receivers. The database is composed of three subsets: one devoted to the calibration in an indoor scenario; one for ranging and collaborative positioning under Non-Line-of-Sight conditions; and one for ranging and collaborative positioning in real office conditions. As a validation of the dataset, a baseline analysis for data visualization, data filtering and collaborative distance estimation applying a path-loss based on the Levenberg-Marquardt Least Squares Trilateration method are included.

Full text

1 Scientific Data | (2022) 9:281 | https://doi.org/10.1038/s41597-022-01406-2 www.nature.com/scientificdata Mobile device-based Bluetooth Low Energy Database for range estimation in indoor environments Pavel Pascacio 1,2,5 ✉ , Joaquín Torres-Sospedra 3,5, Antonio R. Jiménez 4 & Sven Casteleyn 1 the demand to enhance distance estimation and location accuracy in a variety of Non-Line-of- Sight (NLOS) indoor environments has boosted investigation into infrastructure-less ranging and collaborative positioning approaches. Unfortunately, capturing the required measurements to support such systems is tedious and time-consuming, as it requires simultaneous measurements using multiple mobile devices, and no such database are available in literature. This article presents a Bluetooth Low Energy (BLE) database, including Received-Signal-Strength (RSS) and Ground-Truth (GT) positions, for indoor positioning and ranging applications, using mobile devices as transmitters and receivers. The database is composed of three subsets: one devoted to the calibration in an indoor scenario; one for ranging and collaborative positioning under Non-Line-of-Sight conditions; and one for ranging and collaborative positioning in real office conditions. As a validation of the dataset, a baseline analysis for data visualization, data filtering and collaborative distance estimation applying a path-loss based on the Levenberg-Marquardt Least Squares Trilateration method are included. Background & Summary In recent years, the technological progress and the growing interest in infrastructure-less positioning systems has boosted the development of systems based on wearables for location-based service (LBS) applications. Despite the diversity of indoor positioning technologies, Bluetooth Low Energy (BLE) is widely used because it is a core communications technology in mobile devices, has a low energy profile, is not expensive, and does not require additional expensive hardware for positioning purposes. In fact, BLE is a straightforward technology to implement RSS-based positioning approaches1–5 using, for instance, the iBeacon protocol5–7. In addition, over the last year, it has also played a key role as part of COVID-19 ranging-based contact-tracing applications8, where the distance between devices needs to be estimated under various conditions. However, wireless signals are susceptible to attenuation, interference, and multipath propagation due to Non-line-of-sight (NLOS), environment geometries, presence of crowds, and other sources of noise8–10. These phenomena induce a random variation on the RSS and therefore a fluctuation on the position estimation8. Among ranging and positioning approaches, RSS-based approaches (e.g., proximity, ranging and fingerprinting) are the most affected by this drawback4. Currently, smartphones are ubiquitous and the density of smartphone users within a small area is increasing, which has been exploited to develop and/or improve user-to-user(s) distance estimations and collaborative Indoor Position Systems (IPSs). In the latter case, neighboring devices are used to estimate or improve their position by exchanging their estimated absolute localization and measuring the relative distance between them11. Figure.1 illustrates a collaborative IPS. In this scenario, User 6 (behind the bookshelves) cannot accurately estimate his position because the bookshelves block the LOS with respect to the three anchors references (Ref. 1-3), so, the surrounding users (1–5) collaborate to improve User 6’s position by broadcasting their position using BLE messages. To realise such collaborative systems, it is crucial to study, characterize and calibrate the RSS under different circumstances and through diverse devices with the purpose of guaranteeing an accurate position estimation and ensuring the robustness of the collaborative IPS. On the other hand, research towards distance estimation (i.e proximity) applications – mainly 1Institute of New Imaging Technologies, Universitat Jaume I, Castellón, 12071, Spain. 2electrical engineering Unit, Tampere University, Tampere, 33720, Finland. 3Centro ALGORITMI, Universidade do Minho, 4800-058, Guimarães, Portugal. 4Center for Automation and Robotics, Spanish National Research Council (CSIC-UPM), 28500, Madrid, Spain. 5These authors contributed equally: Pavel Pascacio, Joaquín Torres-Sospedra. ✉e-mail: [email protected] DATA DESCRipTOR OpEN 2 Scientific Data | (2022) 9:281 | https://doi.org/10.1038/s41597-022-01406-2 www.nature.com/scientificdata www.nature.com/scientificdata/ based on BLE – received an enormous impulse with the COVID-19 crisis, due to its use in (indoor) contact-tracing apps. However, similar problems as in indoor positioning systems are reported, namely a high amount of false positives due to several factors in the indoor environment, such as NLOS conditions, interference between several devices’ signals and varying transmission patterns12. Despite the fact that the scientific community has exhaustively evaluated new positioning and ranging algorithms through mathematical models, evaluations with real empirical data–as a result of experiments carried out in various scenarios, devices, and conditions–are necessary to understand their real-world behavior. Nevertheless, data collection in such scenarios is a time-intensive activity, requiring cumbersome setups with multiple mobile devices. Therefore, sharing the databases with a detailed methodology of the data collection procedures, tests carried out and other relevant aspects for their interpretation is a valuable contribution for researchers who are unable to perform their own experiments. Furthermore, it is a good research practice, as it allows researchers to evaluate their solutions in a different context or scenario, promoting the generalization of obtained results. Finally, the re-use of such datasets enables research reproducibility of the proposed methods, as the community can reproduce the experiments and verify the results using the same data. The number of published databases related to BLE and RSS solely based on smartphones, in both transmission and reception, is almost nil1. Nevertheless, they do not consider the transmission and reception from multiple smartphones. Most of the databases are focused on fingerprinting systems where commercial BLE beacons or other ad-hoc devices mounted in building structures are used as transmitters. On the other side, the receivers are usually smartphones or other wearable devices4,13,14. Within the few available databases based only on smartphones, one of them was developed within the framework of a contact-tracing smartphone application using BLE1. To the best of our knowledge, no publicly available RSS database based on BLE, based solely on data sent and received with a diverse set of multiple smartphones, exists. The aim of this paper is to share with the scientific community an RSS database based on BLE, which considers and provides all the necessary data for device-to-device(s) ranging and collaborative indoor positioning systems based on mobile devices. The database consist of three different subsets, one for calibration purposes, and two with real-life distributions. The subsets are outline as follows: • Subset-A “Calibration in Line-of-sight (LOS)”: Data for calibrating the relation in LOS between the RSS and distance for six mobile devices (five smartphones and one tablet) considering one indoor environment. Measurements are collected considering 12 reference points located every meter in a straight line on the floor. • Subset-B “Ranging and Collaborative positioning with blocking of LOS, due to deliberate and frequent walking in the environment”: Data for ranging and collaborative positioning from five static mobile devices (also used in Subset-A) in four set-ups with frequent and intentional walks around the indoor environment of one person, causing various NLOS conditions. • Subset-C “Ranging and Collaborative positioning in real office conditions”: Data for ranging and collaborative positioning from five static mobile devices in seven set-ups in normal office conditions (i.e. people sitting at their desk and sporadically walking around the environments doing regular office tasks). Moreover, we systematically describe the data collection process, post-processing and sharing formats to allow other researchers involved in indoor positioning to extend the proposed database with other relevant scenarios and environments. Finally, we present the technical validation of the proposed database. The first validation illustrates how to process the raw BLE signals to estimate the distance between two devices using the Logarithmic Path-loss model. The second validation is devoted to assess the use of BLE signals for collaborative positioning, which includes device-to-device ranging. Fig. 1 Example of a Collaborative IPS scenario based on BLE and smartphones. 3 Scientific Data | (2022) 9:281 | https://doi.org/10.1038/s41597-022-01406-2 www.nature.com/scientificdata www.nature.com/scientificdata/ Methods Hardware and Software for BLE advertising and data collection procedure. The hardware used for the BLE advertising and data collection in the experiments consists of six mobile devices. The mobiles’ names, sorted by ID number, are Galaxy S8 (01), Lenovo Yoga Book (02), Galaxy A7 Duos (03), Galaxy S6 (04), Honor 20 Lite (05), and Galaxy A5 (06). Relevant information of each smartphone is detailed in Table1. The software used for the experiments is based on the GetSensorData Android application15, which allows to collect and save information from smartphone sensors and wireless communications into logfiles (text files with comma separated format and TXT extension). However, since it was originally designed for data collection, it does not have the BLE advertise mode feature. Therefore, we extended the GetSensorData application with the BLE advertising feature, enabling us to broadcast advertisements using the iBeacon protocol designed by Apple, which is one of the most used by mobile devices. The iBeacon protocol enables mobile devices, located within a short-range, to broadcast and receive information through BLE packets7. The iBeacon (BLE) advertisement period was set to 100 ms (i.e., 10 Hz). Subsequently, the modified application was installed in each of the smartphones. It should be noted that BLE is supported since Android version 4.3, nevertheless, the transmission of BLE beacons is only available since Android version 5.0 (LOLLIPOP) with API 2116. The application is available at the GitLab repository17. Figure2 shows the user interface of the modified GetSensorData application installed on the smartphones. The save sensor data and advertise BLE beacon buttons are on the top right corner of the interface, circled in black and red respectively. The save sensor data button serves to save the information of the received BLE packets, together with the information of others internal sensors and wireless communications of the device (e.g, accelerometer, magnetometer, gyroscope, Wi-Fi and GNSS among many others). Specifically, the BLE data file format is composed of the type of technology, in our case BLE; timestamp of the recorded data; type of beacon registered; Media Access Control (MAC) address; RSSs measured; transmission power; Major; Minor and UUID. When the BLE beacon button is enabled, the app starts to broadcast the BLE packets to all surrounding devices. The iBeacon advertisement packets’ structure is composed of five elements as shown in Fig.2: iBeacon Prefix; Proximity UUID; Major; Minor and TX Power (indicating the signal strength one meter from the device), of which UUID, Major, and Minor are used to identify the device that broadcast the advertisement. The aim of the three type of device identifiers is to provide diverse levels of abstraction to identify and classify the mobile devices within a network infrastructure (e.g., UUID to classify devices belonging to a building, Major to classify them by floor, and Minor to identify each of them within the floor). Additionally, a sixth element, the RSS, is filled by the receiver with the received signal strength in dBm. The TX power value of each device was obtained experimentally, considering the average of the RSS values measured at 1 meter and in LOS from the transmitting mobile. The configuration data for the mobile devices involved in the data collection procedures are detailed in Table2. Each mobile device used during the tests was mounted on a separate pole, 1.5 m from the ground in portrait orientation, in order to avoid interference with radio frequency signals (see Fig.3(a)). Selected scenario for the data collections. We have conducted all the empirical experiments to collect the three subsets (Subset-A, Subset-B and Subset-C) in the research team’s office located at University Jaume I (Castellón, Spain). The office has an approximate surface area of 10.76 m by 16.71 m and was already illustrated in Fig.1. The office mainly consists of 14 bookcases, 7 concrete columns, and 3 office work sections equipped with desks, chairs, and computers. This location has already been used in previous data sets for indoor positioning with Wi-Fi fingerprinting, magnetic fields, regular BLE and, even, sensor fusion13,18,19. Configuration for the subset-A data collection. The data collection of Subset-A was devoted to identifying the BLE signal behavior and calibrating the mobile devices in full Line-of-sight (LOS) conditions in an indoor environment, i.e., the office scenario previously mentioned (see Figs.1, 3(b)). We set 12 reference locations every 1 m in a straight line on the floor of the main corridor, from the initial position at 0 m to the last point at 11 m, in LOS. Thus, the degradation of the signal strength can be measured at the reference points to, for instance, tune a propagation model or calibrate a relative distance estimator. This configuration is illustrated in Fig.3(b), where the red lines delimit the area where the devices under empirical data collection were located. We placed five of the six used devices (see Table1) horizontally aligned on the initial position, at 0 m acting as transmitters. The remaining device, was placed consecutively at the remaining reference points at 1 m to 11 ID Mobile name Model Brand Bluetooth version Android version API version 01 Galaxy S8 SM-G950F Samsung 5 9 28 02 Lenovo Yoga Book Lenovo YB1-X90F Lenovo 4.0 6.0.1 23 03 Galaxy A7 Duos SM-A7100 Samsung 4.1 7.1.1 25 04 Galaxy S6 SM-G920F Samsung 4.1 7 24 05 Honor 20 Lite HRY-LX1T Huawei 4.2 9 28 06 Galaxy A5 SM-A500FU Samsung 4.0 6.0.1 23 Table 1. Description of mobile devices. 4 Scientific Data | (2022) 9:281 | https://doi.org/10.1038/s41597-022-01406-2 www.nature.com/scientificdata www.nature.com/scientificdata/ m acting as the receiver. The previous procedure was repeated six times in order to allow every device to act as receiver. Figure3(a) exemplifies the case where the transmitter devices are horizontally aligned near to the plants (initial position at 0 m) and the receiver is at 4 m. For each individual data collection, 90 s of raw data from all the sensors (including iBeacon –BLE– advertisements) were recorded with GetSensorsData in the receiver mobile device, which was saved into a logfile. Thus, we generated a total of 66 logfile with raw data, one per emitter and reference location in 1 m to 11 m. In the end, since each of the 66 logfiles contains data from 5 different transmitters, 330 ranging emitter-to-receiver pairs of 90 seconds were recorded. In addition, during the measurements, we ensure that the battery of the devices was not less than 80% of its capacity, we stayed away from the devices and always stood in the same place. Scenario and configurations for the subset-B and subset-C data collection. For the collection of Subset-B and Subset-C, we considered different set-ups in the office scenario involving five mobile devices. In contrast to the Subset-A, which was conceived for BLE calibration purposes, Subset-B and Subset-C resemble realistic situations and aim to assess the feasibility of ranging and collaborative positioning using mobile devices and BLE in real-world situations. BLE4;4.160;iBeacon;43:40:4B:38:11:24;-71;0;8;5;94339309-BFE2-4807-B747-9AEE23508620 iBeacon Prefix (9 bytes) Proximity UUID (16 bytes) Major (2 bytes) Minor (2 bytes) TX Power (1 byte) iBeacon advertisement BLE data file format Data ( Up to 31 bytes) Technology type Timestamp (s) Beacon type MAC RSS (dBm) TX Power (dBm) Major Minor UUID Fig. 2 Software used for advertising, scanning and storing BLE beacons. ID Mobile name UUID Major Minor 01 Galaxy S8 94339309-BFE2-4807-B747-9AEE23508620 8 1 02 Lenovo Yoga Book 94339309-BFE2-4807-B747-9AEE23508620 8 2 03 Galaxy A7 Duos 94339309-BFE2-4807-B747-9AEE23508620 8 3 04 Galaxy S6 94339309-BFE2-4807-B747-9AEE23508620 8 4 05 Honor 20 Lite 94339309-BFE2-4807-B747-9AEE23508620 8 5 06 Galaxy A5 94339309-BFE2-4807-B747-9AEE23508620 8 6 Table 2. iBeacon identifiers of each mobile device. Fig. 3 Example of the setup for the Subset-A. (a) Real representation. (b) 3D model of distribution of the emitters and received in the office. 5 Scientific Data | (2022) 9:281 | https://doi.org/10.1038/s41597-022-01406-2 www.nature.com/scientificdata www.nature.com/scientificdata/ For this purpose, different device arrangements with the five devices and various strategies to interfere with LOS among them are implemented. Thus, we provide a greater variety and complexity of test conditions for ranging and collaborative positioning approaches. Within these strategies, we include the modification of the number of occupants in the office, the frequency with which people walk and obstruct the LOS between devices, and the use of diverse fixed obstacles. In each configuration, each smartphone simultaneously broadcasts its own iBeacon (BLE) advertisement, and reads/saves the RSS of the received advertisements broadcasted by the other four devices. In the data collection of Subset-B, we consider four arrangements (configurations) made up of five devices, Galaxy S8 (01), Lenovo Yoga Book (02), Galaxy A7 Duos (03) Galaxy S6 (04), Honor Lite (05). These four configurations are illustrated in Figs.4–7. In the four configurations, only one person is present in the office who sits in front of the computer (blue person icon on the sketches) or intentionally walks around the office (footprints icons on the sketches) obstructing the LOS path signal between devices. The full description of the configurations is as follows: • The first multi-device configuration (see Fig.4) represents five devices exchanging iBeacon advertisements, however, the LOS path signal between the device pairs 01&03, 01&05, and 05&04 are blocked by two wooden bookcases and the pair 02&03 by a concrete column. 02 01 05/06 04 03 16.71 m 10.76 m x y Fig. 4 First multi-device configuration. 02 01 05/06 03 x y 04 16.71 m 10.76 m Fig. 5 Second multi-device configuration. 6 Scientific Data | (2022) 9:281 | https://doi.org/10.1038/s41597-022-01406-2 www.nature.com/scientificdata www.nature.com/scientificdata/ • In the second multi-device configuration (see Fig.5), the device 02 on the desk is located equidistantly from devices 01 and 03, and 04 and 05 respectively. The LOS path signal of the device pairs 03&02, 03&04, 03&05 and 02&04 are not obstructed by any fixed office furniture. Nevertheless, between the device pairs 01&02, 01&05 and 02&05 a set of desks are located. • The third multi-device configuration (see Fig.6) represents an arrangement in which one of the devices (device 02) blocks the LOS path signal between devices 01 and 03. Furthermore, the LOS path of the device pairs 01&05 is blocked by a wooden bookcase. • In the fourth multi-device configuration (see Fig.7) device 02 is located on one of the shelves of a wooden bookcase, which block its LOS path signal to devices 03 and 05, while devices 01 and 04 maintain LOS conditions with device 02. Also, the device pairs 01&04, 03&04, and 03&05 are in LOS, but the pairs 01&05, 04&05 are not in LOS. Between the device pairs 01&02 and 01&03 a set of desks is located. The data collection of Subset-C was carried out considering seven configurations (see Figs.4–10) and five devices, i.e. the Galaxy S8 (01), Lenovo Yoga Book (02), Galaxy A7 Duos (03) Galaxy S6 (04), Galaxy A5 (06). We replaced the Honor 20 lite smartphone (05) with a Galaxy A5 (06). Regarding the seven configurations in the data collection of Subset-C, the first four configurations are similar to the ones reported in Figs.4–7 for Subset-B, yet the number of people occupying and walking in the office 0201 05/06 04 03 16.71 m 10.76 m x y Fig. 6 Third multi-device configuration. 16.71 m 10.76 m 01 05/06 04 03 02 x y Fig. 7 Fourth multi-device configuration. 7 Scientific Data | (2022) 9:281 | https://doi.org/10.1038/s41597-022-01406-2 www.nature.com/scientificdata www.nature.com/scientificdata/ varied (orange person icons plus the blue one on the sketches). In the first configuration 7 people occupied the office; in the second, 5 people; in the third, 6 people; and in the fourth 5 people. The aim of those modifications is to represent the common behavior of workers in the office and observe how they affect the transmission and reception of the signals. In the fifth, sixth and seventh multi-device configurations the mobile devices 01, 03, 04 and 06 are located in the same location, near to the office corners, as can be seen in the sketches of Figs.8–10. The main difference among those configurations is the location of mobile device 02. Considering only the four devices in the corners, we can observe that the device pairs 01&06, 01&04, and 03&06 are in LOS, whereas the pairs 01&03, 03&04, and 04&06 present NLOS because of the central bookcases. In particular: • The fifth multi-device configuration (see Fig.8) arranges device 02 in LOS with devices 01 and 04, and closer to the device 04. Also, the LOS between device 02 and the devices 03 and 06 is blocked by central bookcases. • In the sixth multi-device configuration (see Fig.9), device 02 is located between the central bookcases in order to block its LOS with the devices placed on the corners. • The seventh multi-device configuration (see Fig.10) considers the case in which device 02 is in LOS with the devices 03 and 06 and in NLOS with the devices 01 and 04 due to central bookcases. 16.71 m 10.76 m 01 06 04 03 02 x y Fig. 8 Fifth multi-device configuration. 16.71 m 10.76 m 01 06 04 03 02 x y Fig. 9 Sixth multi-device configuration. 8 Scientific Data | (2022) 9:281 | https://doi.org/10.1038/s41597-022-01406-2 www.nature.com/scientificdata www.nature.com/scientificdata/ For Subset-B and Subset-C, raw data was collected with GetSensorsData for a period 2 hours in every set-up (configuration). All the devices simultaneously broadcasted their own iBeacon (BLE) advertisement and saved the information from all sensors (including the detected iBeacon advertisements and their RSS). Thus, Subset-B is composed by 20 logfiles, whereas Subset-C is composed by 35 logfiles. During the duration of the measurements, the line of sight between the devices was altered by the people walking around the office, following the path depicted in each of the multi-device configuration sketches (see Figs.4–10). Although the desks located between the mobile devices do not fully block the LOS, they partially interfere with the signal propagation. It should be noted that the information storage of each device is not synchronized. However, the time lag - in the order of seconds - should not represent a great inconvenience for static references. Regarding the valid BLE measurements collected, the average values with standard deviation are reported in Table4 for the six smartphones in the 90 s windows from Subset-A, the 2 h windows from Subset-B and the 2 h windows from Subset-C. The BLE measurements emitted from tags, beacons and other electrical devices have been discarded, thus only the BLE advertisements emitted from the smartphones reported in Table3 are considered valid. For the three subsets, an average (with standard deviation) of 1995 ± 731, 79121 ± 54443 and 97371 ± 30650 valid BLE measurements were recorded respectively. It is worth noting that the amount of BLE advertisements received from a particular device depends on the emitter-receiver distance, LOS/NLOS conditions and the BLE chipset at the receiver side. For the later case, Table4 shows that the Galaxy A5 is only receiving ≈2 BLE messages per receiver and second for the calibration collection in Subset-A, whereas the Galaxy S8 is receiving ≈2 BLE messages per receiver and second (×3 higher) in the same subset. Data Records Figure11 presents the directory tree and file structure of the multi-device BLE-RSS database. The database is composed of three main sub-directories, Raw-Data, Processed-Data, and Code, which is available at the Zenodo repository20. The raw data include all the data collected with the GetSensorsData application, whereas the processed data just include the required BLE data for ranging and collaborative positioning and they were obtaining after processing the raw data with the scripts included. The Raw-Data contains the raw data corresponding to the three subsets A, B, and C described in Section Methods grouped in sub-directories Subset-A, Subset-B, and Subset-C respectively. Each of these ID Ground truth (m) Subset Config. 1 Config. 2 Config. 3 Config. 4 Config. 5 Config. 6 Config. 7 x y x y x y x y x y x y x y 01 5.05 3.7 1.33 6.1 6.93 1.3 7.75 6.1 2.05 9.7 2.05 9.7 2.05 9.7 B&C 02 6.55 4.55 4.49 3.05 9.93 1.3 11.75 2.75 3.6 3.3 8.7 6.4 14.66 6.45 B&C 03 8.05 0.7 7.66 0.1 12.93 1.3 12.75 0.1 16.45 2.5 16.45 2.5 16.45 2.5 B&C 04 5.05 0.7 1.33 0.1 9.03 0.1 7.75 0.1 2.05 2.5 2.05 2.5 2.05 2.5 B&C 05 8.05 3.7 7.66 6.1 9.03 3.7 12.75 6.1 16.45 9.7 16.45 9.7 16.4 9.7 B 06 8.05 3.7 7.66 6.1 9.03 3.7 12.75 6.1 16.45 9.7 16.45 9.7 16.4 9.7 C Table 3. Devices’ Ground truth in each configuration of subset A and B. 16.71 m 10.76 m 01 06 04 03 02 x y Fig. 10 Seventh multi-device configuration. 9 Scientific Data | (2022) 9:281 | https://doi.org/10.1038/s41597-022-01406-2 www.nature.com/scientificdata www.nature.com/scientificdata/ sub-directories is structured in the same way, containing a sub-directory for each scenario. Currently, the three subsets only considers one of the office scenario, being all the collected data within Office folder. Each scenario directory subsequently contains one or more sub-directories which each correspond with a configuration. Finally, each configuration directory contains sub-directories for each receiver device used to collect the data, which contain the raw data files from the independent data collections performed. For instance, Rawdata-A/ Office/Config01/ReceiverDev01/*.txt contains the raw data of subset A, office scenario, configuration Config01 and collected with device 01. The Processed-Data directory contains the BLE data and it is structured in the same way. With nested folders to represent the subset, scenario, configuration and device. The processed data from the previous example is included in Processed-Data/Office/Config01/ReceiverDev01/MeasurementsBLE.csv. In contrast to the files for the raw data, the processed data files are stored as a single CSV file for each combination of receiver, configuration, scenario and subset. The Code directory contains the Matlab script files for processing the raw data, generate the processed data, visualize useful information, and perform the technical validations. Although in its current form the database focuses on a single scenario (i.e., the office) and several configurations (one for Subset-A, four for Subset-B and Seven for Subset-C), the database has been designed to be easily extended using the proposed hierarchy of folders. The sub-folders are described in detail as follows. For the raw data (Raw-Data): • Subset-A is composed of 1 scenario (Office), 1 configuration (Config01) and 6 receiver devices (ReceiverDev01 to ReceiverDev06. A total of 66 TXT raw data files, collected by devices 01 to 06 according to Configuration 01 in the office scenario, are stored in the nested sub-directories Receiver- Dev01 to ReceiverDev06 (11 files in each sub-directory). For a particular receiver, each of the 11 raw files contain the measurements gathered by the receiver device at a specific reference point. The raw data files, alphabetically sorted, correspond to the data collection with distances between emitter and receiver in the range of 1 m to 11 m. If the data is sequentially collected, starting at 1 m and ending in 11 m, there is no need to alter the logfiles file name. • Subset-B is composed of 1 scenario (Office) and 4 configurations (Config01 to Config04) and 5 receiver devices (ReceiverDev01 to ReceiverDev05). In each of these nested folders Receiver- Dev01 to ReceiverDev05, 1 TXT raw data file is stored containing the raw data of the corresponding receiver device (indicated by the sub-folder name). In total, 20 TXT raw data files are stored. • Subset-C follows the same structure of Subset-B sub-directory, but applied to its 7 configurations (Config01 to Config07) and 5 receiver devices (ReceiverDev01 to and ReceiverDev06) sub-di- rectories. A total of 35 TXT raw data files are stored. For the processed data (Processed-Data): • Subset-A contains 6 CSV processed data files. The CSV files are generated after processing the corresponding raw data. Each CSV file contains 90 seconds of data recorded by the corresponding receiver. • Subset-B and Subset-C respectively contain 20 and 35 CSV processed data files, as result of processing the corresponding raw data. Each processed CSV file contains 2 hours of data collected by the corresponding receiver. For the MatLab source code (Code), we provide 4 main scripts: • ProcessMyRawData_ABC.m is used to process the raw data stored in Raw-Data folder, which results in the data stored in Processed-Data. In order to execute this script it is necessary the secondary scripts: dialogselectfolder.m, readrawfiles.m, and bleformat.m; • Disp_distribution.m displays the distribution of the subsets’ processed data stored in Processed-Data; • Val_pathloss.m and Val_collab.m provide the technical validations in LOS. Additionally, a Readme.txt file is provided to explain in details how to use all scripts. ID Mobile name Subset-A Subset-B Subset-C (90 s time window) (2 h time window) (2 h time window) 01 Galaxy S8 2776 ± 63 80695 ± 60174 81100 ± 32178 02 Lenovo Yoga Book 2604 ± 57 117095 ± 67440 135738 ± 9090 03 Galaxy A7 Duos 1389 ± 188 62281 ± 35708 77029 ± 6454 04 Galaxy S6 2309 ± 127 100933 ± 57994 121047 ± 11955 05 Honor 20 Lite 2004 ± 136 34602 ± 19596 — 06 Galaxy A5 887 ± 99 — 71941 ± 10164 Table 4. Average of BLE measurements collected by device in each 90 s and 2 hours time windows. 16 Scientific Data | (2022) 9:281 | https://doi.org/10.1038/s41597-022-01406-2 www.nature.com/scientificdata www.nature.com/scientificdata/ 15. Jiménez, A. R., Seco, F. & Torres-Sospedra, J. Tools for smartphone multi-sensor data registration and gt mapping for positioning applications. In 2019 International Conference on Indoor Positioning and Indoor Navigation (IPIN), 1–8 (2019). 16. Google. Android 5.0 apis. https://developer.android.com/about/versions/android-5.0 [Last visit: 02.11.2019]. 17. GetSensorDataSuite. https://gitlab.com/getsensordatasuite (2021). 18. Torres-Sospedra, J. et al. Providing databases for different indoor positioning technologies: Pros and cons of magnetic field and Wi- Fi based positioning. Mobile Information Systems 2016 (2016). 19. Torres-Sospedra, J. et al. Off-line evaluation of mobile-centric indoor positioning systems: The experiences from the 2017 ipin competition. Sensors 18 (2018). 20. Pascacio, P., Torres-Sospedra, J., Jiménez, A. R. & Casteleyn, S. Supplementary Materials for’Mobile device-based Bluetooth Low Energy Database for range estimation in collaborative positioning’. https://doi.org/10.5281/zenodo.6463354 (2021). 21. Jianyong, Z., Haiyong, L., Zili, C. & Zhaohui, L. Rssi based bluetooth low energy indoor positioning. In 2014 International Conference on Indoor Positioning and Indoor Navigation (IPIN), 526–533 (IEEE, 2014). 22. Chen, Z., Zhu, Q. & Soh, Y. C. Smartphone inertial sensor-based indoor localization and tracking with ibeacon corrections. IEEE Transactions on Industrial Informatics 12, 1540–1549 (2016). acknowledgements Authors wants to thank European Union’s H2020 Research and Innovation programme under the Marie Skłodowska-Curie grant agreements No. 813278 (A-WEAR: A network for dynamic wearable applications with privacy constraints, http://www.a-wear.eu/) and No. 101023072 (ORIENTATE: Low-cost Reliable Indoor Positioning in Smart Factories, http://orientate.dsi.uminho.pt); the Spanish Network of Excellence REPNIN+ (MICINN, ref. TEC2017-90808-REDT) and MICROCEBUS RTI2018-095168-B-C55 (MCIU/AEI/FEDER, UE). J. Torres-Sospedra acknowledges funding from Torres Quevedo programme (PTQ2018-009981). author contributions P.P., J.T.-S., A.R.J. and S.C. designed the study and constructed the database. P.P. collected the raw data and developed the code. J. T.-S., A.R. J. and S.C. validated the data, code, and results. All authors wrote and reviewed the manuscript. Competing interests The authors declare no competing interests. additional information Correspondence and requests for materials should be addressed to P.P. Reprints and permissions information is available at www.nature.com/reprints. Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/. © The Author(s) 2022