scieee AI-readable full text Open interactive document viewer

A low-cost tracking system for running race applications based on bluetooth low energy technology

Pérez Díaz de Cerio, David,Hernandez Solana, Angela,Valdovinos, Antonio,Valenzuela González, José Luis

Abstract

Timing points used in running races and other competition events are generally based on radio-frequency identification (RFID) technology. Athletes’ times are calculated via passive RFID tags and reader kits. Specifically, the reader infrastructure needed is complex and requires the deployment of a mat or ramps which hide the receiver antennae under them. Moreover, with the employed tags, it is not possible to transmit additional and dynamic information such as pulse or oximetry monitoring, alarms, etc. In this paper we present a system based on two low complex schemes allowed in Bluetooth Low Energy (BLE): the non-connectable undirected advertisement process and a modified version of scannable undirected advertisement process using the new capabilities present in Bluetooth 5. After fully describing the system architecture, which allows full real-time position monitoring of the runners using mobile phones on the organizer side and BLE sensors on the participants’ side, we derive the mobility patterns of runners and capacity requirements, which are determinant for evaluating the performance of the proposed system. They have been obtained from the analysis of the real data measured in the last Barcelona Marathon. By means of simulations, we demonstrate that, even under disadvantageous conditions (50% error ratio), both schemes perform reliably and are able to detect the 100% of the participants in all the cases. The cell coverage of the system needs to be adjusted when non-connectable process is considered. Nevertheless, through simulation and experimental, we show that the proposed scheme based on the new events available in Bluetooth 5 is clearly the best implementation alternative for all the cases, no matter the coverage area and the runner speed. The proposal widely exceeds the detection requirements of the real scenario, surpassing the measured peaks of 20 sensors per second incoming in the coverage area, moving at speeds that range from 1.5 m/s to 6.25 m/s. The designed real test-bed shows that the scheme is able to detect 72 sensors below 600 ms, fulfilling comfortably the requirements determined for the intended application. The main disadvantage of this system would be that the sensors are active, but we have proved that its consumption can be so low (9.5 µA) that, with a typical button cell, the sensor battery life would be over 10,000 h of use.

Full text

sensors Article A Low-Cost Tracking System for Running Race Applications Based on Bluetooth Low Energy Technology David Perez-Diaz-de-Cerio 1ID ,Ángela Hernández-Solana 2,*ID , Antonio Valdovinos 2ID and Jose Luis Valenzuela 1ID 1Signal Theory and Communications Department, Universitat Politècnica de Catalunya, Esteve Terrades 7, 08860 Castelldefels, Spain; [email protected] (D.P.-D.-d.-C.); [email protected] (J.L.V.) 2Aragon Institute for Engineering Research (I3A), University of Zaragoza, 50018 Zaragoza, Spain; [email protected] *Correspondence: [email protected]; Tel.: +34-976-762362 Received: 28 February 2018; Accepted: 14 March 2018; Published: 20 March 2018 Abstract: Timing points used in running races and other competition events are generally based on radio-frequency identification (RFID) technology. Athletes’ times are calculated via passive RFID tags and reader kits. Specifically, the reader infrastructure needed is complex and requires the deployment of a mat or ramps which hide the receiver antennae under them. Moreover, with the employed tags, it is not possible to transmit additional and dynamic information such as pulse or oximetry monitoring, alarms, etc. In this paper we present a system based on two low complex schemes allowed in Bluetooth Low Energy (BLE): the non-connectable undirected advertisement process and a modified version of scannable undirected advertisement process using the new capabilities present in Bluetooth 5. After fully describing the system architecture, which allows full real-time position monitoring of the runners using mobile phones on the organizer side and BLE sensors on the participants’ side, we derive the mobility patterns of runners and capacity requirements, which are determinant for evaluating the performance of the proposed system. They have been obtained from the analysis of the real data measured in the last Barcelona Marathon. By means of simulations, we demonstrate that, even under disadvantageous conditions (50% error ratio), both schemes perform reliably and are able to detect the 100% of the participants in all the cases. The cell coverage of the system needs to be adjusted when non-connectable process is considered. Nevertheless, through simulation and experimental, we show that the proposed scheme based on the new events available in Bluetooth 5 is clearly the best implementation alternative for all the cases, no matter the coverage area and the runner speed. The proposal widely exceeds the detection requirements of the real scenario, surpassing the measured peaks of 20 sensors per second incoming in the coverage area, moving at speeds that range from 1.5 m/s to 6.25 m/s. The designed real test-bed shows that the scheme is able to detect 72 sensors below 600 ms, fulfilling comfortably the requirements determined for the intended application. The main disadvantage of this system would be that the sensors are active, but we have proved that its consumption can be so low (9.5 µ A) that, with a typical button cell, the sensor battery life would be over 10,000 h of use. Keywords: BLE; RFID; running races; tracking; monitoring; Bluetooth 5 1. Introduction According to the statistics analyzed by Running USA, a nonprofit group that provides industry analysis to help promote long-distance races, during 2016 more than 30 thousand races were held along the U.S. with near 17 million of runners finishing them [ 1 ]. In fact, nowadays, the success is such Sensors 2018,18, 922; doi:10.3390/s18030922 www.mdpi.com/journal/sensors Sensors 2018,18, 922 2 of 17 that someone based in, or near a big city, has a lot of chances to be spoilt for choices when it comes to race options (marathons, half marathons, 5 Ks, obstacle races, . . . ). This exponential increase rises new related technological problems, for example, how to track and manage the great amount of runners in a race. Traditionally, the tracking systems used in this kind of events are based on RFID. These systems have been present in thousands of events since the Berlin Marathon in September 1994 [ 2 ] and are the tracking systems used in Spain as well as in other countries. These systems require each runner to wear a passive RFID sensor (tag). Additionally, the organizers must place the corresponding readers at the points where is necessary to control the time. Generally, the antennae of these readers are placed under anti-slip mats or ramps over which all the participants must go through. The tags, on their side, are usually placed on the participants’ shoes to allow a minimum distance between the tag and the reader antenna. The advantages of these systems is that are well-proven, high precision and accurate location solutions [ 3 , 4 ]. The sensors are low-cost and passive so they do not need any type of maintenance. The participants can rent the sensors before each race or buy them in property and use them for an uncountable number of races. However, the main disadvantages are present on the organizer side. These solutions are not suitable for small competitions and are expensive to buy for small races [ 5 ]. Additionally, they are bound to specific hardware and all the components of the system must belong to the same ecosystem in order to work. Third-party or mixed solutions are hard to configure, and it is even common that a person from the tracking equipment company comes to monitor the deployment and handle the tracking system, increasing in this way the cost. Additionally, the deployment is not very flexible: a single 205 × 100 × 1 cm mat weighs around 12 kg and this does not take into account the equipment that must be connected to it. Usually more than one mat is needed per checkpoint and, moreover, placing these checkpoints can be difficult depending of the nature of the race, for example, in cross-country races. Some low-cost RFID-based platforms have been proposed for jogging and running events. In order to reduce the cost, these systems use low-frequency (LF) RFID devices and a low-cost, but whereas typical race systems use ultra-high frequency (UHF) RFID readers, in which the range is 5–30 m, LF RFID readers present a range of only 10–20 cm [ 6 ]. Other solutions propose an identification mechanism that uses Ultra Wide Band (UWB) ranging information to improve the speed of identification [ 7 ], but increasing the complexity and the cost of the system. In any case, RFID technology, as most of radiofrequency technologies, does not intrinsically provide aptitudes for high spatial resolution and to identify the time of presence of the tag on a specific place with high precision, particularly in complex propagation environments. In fact, the RFID signal does not provide intrinsically a better spatial resolution than the Bluetooth signal. In order to get good spatial accuracy in both technologies, it is necessary to use complex systems, with several directional antenna or antenna arrays, obtaining the range information from parameters not always easily obtained, as the received signal strength indication (RSSI), the time-difference-of-arrival (TDOA), the phase-difference-of-arrival (PDOA) or the round trip-of-flight (TOF), and determining the tag location by utilizing multiple known reference points using methods as multilateration, multiangulation, etc. [ 8 ]. In typical systems developed for racing applications, the spatial accuracy is provided in RFID systems by casting the send and receive antennas in thin tartan mats, which are located at the finish line and other timing locations. Since passive tags are used, the reader only receives the ID-number sent by the tag when they are very close each other (when the runner is over the mat). If a higher accuracy is required, a more sophisticated technology has to be used, for instance, photofinish systems. This kind of systems are too expensive to be considered for local jogging and running events, in which there is little budget. There are also previous experiences in which Bluetooth Low Energy (BLE) has been used to provide crowd mobility detection by using a smartphone, with detectability rates of up to 90% [ 9 ]. Additionally, BLE has been proved to provide a good tradeoff between discovery latency and energy consumption [10,11]. In this paper we propose a BLE-based tracking system which can be used as an enhancement or even as an alternative to the RFID-based solutions in scenarios in which it is not necessary to obtain precise time measurements, such as the presence control of the runners through intermediate Sensors 2018,18, 922 3 of 17 checkpoints. Spatial resolution can be improved by reducing the coverage distance, which can be done in RFID by using passive tags, but also in Bluetooth by adjusting the power transmitted by the advertisers. In any case, if the range of coverage is decreased, there is less time to discover all the advertisers (runners) when they pass through the checkpoint. It is therefore necessary to achieve a balance between both aspects. Our proposal seeks to obtain a simple, easy to handle and cheap system that allows detecting reliably the passage of the runners by a certain point with a precision in the measurement of time that is not critical, and can be of the order of a few seconds. Whereas RFID readers are specific and expensive devices, particularly passive RFID readers, in our proposal the Bluetooth reader is a simple Android smartphone, in which is easy to develop an application to configure and manage the system and provides accurate enough position information thanks to its integrated GPS receiver and a communication link with the server via a 3G/4G cellular network. Furthermore, Bluetooth offers the possibility of transmitting additional information to the mere identification of the runner, such as biometric data. First, we will present the system architecture followed by the basics behind the BLE mechanisms which enable the communications of all the system sensors. Specifically, we consider two low complexity schemes based on the advertisement processes allowed in BLE. The first one uses the non-connectable undirected advertisement mode. The second is a modified version of scannable undirected advertisement mode. This option is based on the ability to stop the transmissions using one of the new Bluetooth 5 capabilities that was previously analyzed by the authors [ 12 ]. We also consider that real devices present non-idealities in the scanning process that reduce the discovery capabilities [ 12 , 13 ]. After the system description, we will analyze the requirements of this type of events using real data obtained from the 2017 Barcelona Marathon. With this analysis we will obtain real mobility patterns of the runners such as speed or runner density at different points of the race. These values will be determining to set the requirements of the system under real conditions. Then, by means of simulations, we will check if the proposed system is able to meet the scenario requirements. We will determine the viability of detecting all the runners and the more appropriate parameters to be configured, such as coverage range, time interval between transmitted packets, etc. In order to increase the capacity of the system, the use of several readers is also considered. Although, in the present discussion the final application is the tracking of runners during a race, the results can easily be extrapolated to other applications such as other kinds of races, tracking kids, cattle control, drone tracking and flight assistance, product chain control in an Industry 4.0 factory, etc. The proposed alternative offers also additional capabilities not present in the current RFID solutions as can be the real time monitoring of the participants’ health constants. Several works have studied the not so rare cases of deaths during sports events. Their results show that 1.74 per 100,000 athletes have suffered from a sudden cardiac death in triathlons [ 14 ] and this number can even be increased to 1.9 per 100,000 runners in marathons [ 15 ], so, in this way some serious illnesses and even deaths could be prevented with the use of the proposed system. 2. System Architecture As explained before, the systems based on RFID require that each runner buy or rent his/her own RFID tag (see Figure 1). Additionally, the organizers must install ramps or mats at the main race points, like the ones depicted on the right of Figure 1to control when each participant passes through these points. In our proposal, depicted in Figure 2, the participants are also required to wear a sensor, in this case, based on BLE. The dimensions of the sensor are similar to the RFID equivalent. However, the RFID ramps or mats are substituted by an application on a smartphone. The organizers usually designate several people to stay along the track for security reasons and to control the successful development of the race. Each, or some of this part of the staff members, as many as necessary, should wear a smartphone with the tracking application. These smartphones will act as receivers, known as scanners in BLE terminology. Sensors 2018,18, 922 4 of 17 Sensors 2018, 18, x FOR PEER REVIEW 4 of 17 Figure 1. RFID Solution. Figure 2. System deployment. The devices worn by the participants, on their side, transmit periodically a BLE beacon (advertisement) with the participant ID and any other supplementary data (blood pressure, heart rate, etc.). When they enter into the coverage area of one of the controlling member scanners these packets will be eventually received. In the most basic mode, using the BLE non-connectable undirected advertisement mode it is necessary to transmit the frames frequently enough to ensure that the sensor it is detected. After a successful reception, the application will append to this information the current location of the smartphone and timestamp obtained by GPS/GLONASS/Galileo and it will be stored on the device and sent in real-time using an available data connection (3G/4G/WLAN) to an organization server on the cloud. On an enhanced mode, we propose to use the BLE scannable undirected advertisement mode. In this case, after a successful reception of an advertisement, the scanners shall answer with another short packet which is used to acknowledge the reception. Thus, using one of the new Bluetooth 5 capabilities, once the advertiser receives this acknowledgement we force it to enter into a stand-by mode for a while to reduce interferences and, in this way, increase the capacity of the system as we will demonstrate later. Also, in order to enhance the performance of the system, several scanners are allowed to cover the same area as depicted in Figure 2. The organizers may eventually allow the access to these data to authorized people, for example, friends or family of the participants so they can know during the progress of the race their precise location and race position in real-time. Additionally, based on the monitored data received it is also Figure 1. RFID Solution. Figure 2. System deployment. The devices worn by the participants, on their side, transmit periodically a BLE beacon (advertisement) with the participant ID and any other supplementary data (blood pressure, heart rate, etc.). When they enter into the coverage area of one of the controlling member scanners these packets will be eventually received. In the most basic mode, using the BLE non-connectable undirected advertisement mode it is necessary to transmit the frames frequently enough to ensure that the sensor it is detected. After a successful reception, the application will append to this information the current location of the smartphone and timestamp obtained by GPS/GLONASS/Galileo and it will be stored on the device and sent in real-time using an available data connection (3G/4G/WLAN) to an organization server on the cloud. On an enhanced mode, we propose to use the BLE scannable undirected advertisement mode. In this case, after a successful reception of an advertisement, the scanners shall answer with another short packet which is used to acknowledge the reception. Thus, using one of the new Bluetooth 5 capabilities, once the advertiser receives this acknowledgement we force it to enter into a stand-by mode for a while to reduce interferences and, in this way, increase the capacity of the system as we will demonstrate later. Also, in order to enhance the performance of the system, several scanners are allowed to cover the same area as depicted in Figure 2. The organizers may eventually allow the access to these data to authorized people, for example, friends or family of the participants so they can know during the progress of the race their precise location and race position in real-time. Additionally, based on the monitored data received it is also possible to generate warnings if anomalous conditions of a determined participant are detected. Thus, the security staff could intervene to avoid dangerous situations, like cardiac arrests or sudden deaths. Sensors 2018,18, 922 5 of 17 3. BLE Fundamentals Review In 2010, the Bluetooth Special Interest Group (SIG) incorporated the Low Energy specification into the Bluetooth specifications. Since then, several enhancements and modifications through various revisions have been performed until the last one, Bluetooth 5, which was released in December 2016. Bluetooth devices operate in the 2.4 GHz Industrial Scientific Medical (ISM) unlicensed band. Although classic Bluetooth allows higher data rates, BLE compliant devices allow wireless communications between enabled devices with up to 1 Mbps over the air data rates (2 Mbps on Bluetooth 5). In this section we review the basics of BLE technology, especially those aspects related to the intended application, particularly, the device discovery procedures. For further details about BLE, a good summary can be found in the work by Gomez et al. [16], and the publicly available specifications [17]. The basic communication mechanism to transmit data and discover devices in BLE is based on broadcasting messages periodically (advertisement events, see Figure 3). These frames are transmitted, by an advertiser, on three predetermined channels: 37, 38 and 39, although a mask can be applied to select any combination of these three channels. The advertisement events are transmitted every T advEvent , a period which is composed by a fixed part, known as advertisement interval (T advInterval ), and a random time between 0 and 10 ms, T advDelay . This randomness is necessary to minimize consecutive collisions between several advertisers. The amount of user data sent inside an advertisement can be comprised between 1 byte and 26 bytes. So, the duration of the frames (T advIND ) must be in the range from 176 µ s to 376 µ s. This capacity is more than enough to transmit the monitoring data (blood pressure, heart rate, etc.) that we have commented previously. Sensors 2018, 18, x FOR PEER REVIEW 5 of 17 possible to generate warnings if anomalous conditions of a determined participant are detected. Thus, the security staff could intervene to avoid dangerous situations, like cardiac arrests or sudden deaths. 3. BLE Fundamentals Review In 2010, the Bluetooth Special Interest Group (SIG) incorporated the Low Energy specification into the Bluetooth specifications. Since then, several enhancements and modifications through various revisions have been performed until the last one, Bluetooth 5, which was released in December 2016. Bluetooth devices operate in the 2.4 GHz Industrial Scientific Medical (ISM) unlicensed band. Although classic Bluetooth allows higher data rates, BLE compliant devices allow wireless communications between enabled devices with up to 1 Mbps over the air data rates (2 Mbps on Bluetooth 5). In this section we review the basics of BLE technology, especially those aspects related to the intended application, particularly, the device discovery procedures. For further details about BLE, a good summary can be found in the work by Gomez et al. [16], and the publicly available specifications [17]. The basic communication mechanism to transmit data and discover devices in BLE is based on broadcasting messages periodically (advertisement events, see Figure 3). These frames are transmitted, by an advertiser, on three predetermined channels: 37, 38 and 39, although a mask can be applied to select any combination of these three channels. The advertisement events are transmitted every TadvEvent, a period which is composed by a fixed part, known as advertisement interval (TadvInterval), and a random time between 0 and 10 ms, TadvDelay. This randomness is necessary to minimize consecutive collisions between several advertisers. The amount of user data sent inside an advertisement can be comprised between 1 byte and 26 bytes. So, the duration of the frames (TadvIND) must be in the range from 176 µs to 376 µs. This capacity is more than enough to transmit the monitoring data (blood pressure, heart rate, etc.) that we have commented previously. Figure 3. Non-connectable and scannable undirected advertisement detection procedure. Advertising event T advInterval TadvInterval TadvEvent TadvEvent τ advDelay τ advDelay ADV_SCAN_IND PDU Channel 37 Channel 38 TadvIND Scannable undirected advertising Active scanner Scan window T scanInterval Scan window Scan window Channel 38Channel 37 Channel 39 TscanInterval TIFS ADV_SCAN_IND PDU Rx SCAN_REQ PDU TIFS TIFS SCAN_RSP PDU TscanREQ TadvIND TscanRSP Advertising event Advertising event ADV_SCAN_IND PDU TadvIND TIFS Channel 39 Rx ADV_SCAN_IND PDU SCAN_REQ PDU T IFS TIFS Rx SCAN_RSP PDU T scanWindow Advertising event Advertising event Advertising event Non connectable undirected advertising Pass i ve scanner Scan window Scan window Scan window Channel 38Channel 37 Channel 39 ADV_NONCONN_IND PDU Channel 37 TadvIND ADV_NONCONN_IND PDU TadvIND ADV_NONCONN_IND PDU TadvIND Channel 39 Channel 38 TscanInterval TscanInterval TscanWindow TadvInterval TadvInterval τ advDelay τ advDelay Figure 3. Non-connectable and scannable undirected advertisement detection procedure. Sensors 2018,18, 922 6 of 17 On the receiver side, the scanner listens on one of the three advertisement channels during a configurable time period called scan window (T scanWindow ). After a scan interval (T scanInterval ), a time period at least as long as T scanWindow , the scanner switches to the next advertisement channel in a round-robin fashion. Real devices are not able to switch between frequencies instantaneously and introduce a blind-time during while any received frame is not decoded. More information about this effect and others present in real devices can be found on [12,13]. The standard specifies several advertisement modes, in this work we will consider only two of them: non-connectable undirected advertisements and scannable undirected advertisements. When applying the first one, the advertiser just broadcasts the advertisements periodically on one direction without waiting for a response. With scannable undirected advertisements after the end of the transmission of an advertisement frame, the advertiser waits for 150 µ s (T IFS ) for a scan request. The duration of this frame (T scanREQ ) is 176 µ s. This request shall be transmitted on the same frequency by a scanner which has received the last transmitted advertisement. To achieve this, the scanner shall be configured to be in active mode. Once a scan request is successfully received, the advertiser broadcasts, after a T IFS , another frame (scan response) on the same channel. The duration of this frame (T scanRSP ) is configurable between 128 µ s (no data) and 376 µ s. It is important to remark that the scan request is addressed specifically to the advertiser that triggered the procedure. Obviously, when using the scannable undirected advertisement mode, the amount of frames over the air increases, and so do the probability of collisions and interferences between the system devices. However, with Bluetooth 5 a new event, not available in previous versions, is generated and passed to the upper layers when the advertiser receives a scan request. In our proposal, we will use this event to put the advertiser into a stand-by mode and stop any further transmissions until a configurable timeout has passed. After this timeout, the device is reactivated to be detected again by the scanner on the next checkpoint. Thus, the capacity of the system could be increased. The advertisers automatically send a scan response after a successful scan request. To reduce the amount of interference, we configure the devices to send an empty scan response (TscanRSP = 128 µs). Another point to be considered when using scannable undirected advertisements is the possibility that two scanners simultaneously transmit a scan request. The specifications suggest an example of a backoff algorithm for these special cases, however is the manufacturer which decides with algorithm to implement. Due to this degree of freedom, in our application, when we propose to use more than one scanner to improve the capacity of the system under unfavorable BLER conditions, we will force the scanners to be unsynchronized. In this way, each scanner should be listening for advertisements in a different frequency than the others and the backoff algorithm should not be triggered. 4. Application Requirements To obtain the application requirements, we have analyzed the data from the 2017 Barcelona Marathon [ 18 ]. The Barcelona Marathon is a popular race, with near 15,000 participants in the last edition. The stored data not only provides the race and real finish times, but also the participants’ time at different checkpoints of the race. Without loss of generality, we will obtain the runners patterns and different metrics analyzing the 5 km checkpoint data, see Figure 4. The first metric we can extract from the data is the speed of the athletes, it ranges from 1.51 m/s up to 6.25 m/s. This value will allow us to calculate easily the amount of time under coverage of the sensors for a determined cell radius and also to work out the suitable off-periods of the sensors when they are detected to reduce interferences. Thus, the timeout before reactivating an advertiser can be fully configurable. Given the separation between control points, measurements can be useful to set a secure value for the maximum time that a device can remain without sending advertisers. On the other hand, an estimation of the holding time under the coverage area could be useful to set the minimum value for this time in order to prevent unnecessary interferences. For example, an athlete running at 6.25 m/s, when entering into a 25 m diameter coverage cell, could turn off the transmitter once Sensors 2018,18, 922 7 of 17 detected for 4 s without interfering with other devices, whereas a slower runner (1.5 m/s) requires 17 s to be out of the coverage area. A minimum threshold of 30 s can be a suitable option. Sensors 2018, 18, x FOR PEER REVIEW 7 of 17 Figure 4. Runners under coverage at 5 km checkpoint for different coverage radii. The second important metric is related to the system capacity, i.e., the number of sensors the scanner should detect under its coverage. Obviously, if the cell radius is increased, the number of participants under coverage is also increased. In Figure 4, we have highlighted four runner groups, which are some of the most interesting points of the figure. With the values selected in this case: group 4 and a cell radius of 25 m, which is the worst scenario, the number of sensors to be detected would be near 300. However, it is necessary to take into account also the speed of each group, because this will determine the time under coverage and the successful detection probability. When using the Bluetooth 5 new event notification to stop the advertisers once they have been detected, the previous metric loses its meaning and the flow of participants (sensors entering per second into coverage) should be used instead. Figure 5 represents this metric at 5 km checkpoint. As can be seen, the maximum number of sensors to be detected simultaneously is around 20 sensors per second. Figure 5. Sensor flow at the 5 km checkpoint. Figure 4. Runners under coverage at 5 km checkpoint for different coverage radii. The second important metric is related to the system capacity, i.e., the number of sensors the scanner should detect under its coverage. Obviously, if the cell radius is increased, the number of participants under coverage is also increased. In Figure 4, we have highlighted four runner groups, which are some of the most interesting points of the figure. With the values selected in this case: group 4 and a cell radius of 25 m, which is the worst scenario, the number of sensors to be detected would be near 300. However, it is necessary to take into account also the speed of each group, because this will determine the time under coverage and the successful detection probability. When using the Bluetooth 5 new event notification to stop the advertisers once they have been detected, the previous metric loses its meaning and the flow of participants (sensors entering per second into coverage) should be used instead. Figure 5represents this metric at 5 km checkpoint. As can be seen, the maximum number of sensors to be detected simultaneously is around 20 sensors per second. Sensors 2018, 18, x FOR PEER REVIEW 7 of 17 Figure 4. Runners under coverage at 5 km checkpoint for different coverage radii. The second important metric is related to the system capacity, i.e., the number of sensors the scanner should detect under its coverage. Obviously, if the cell radius is increased, the number of participants under coverage is also increased. In Figure 4, we have highlighted four runner groups, which are some of the most interesting points of the figure. With the values selected in this case: group 4 and a cell radius of 25 m, which is the worst scenario, the number of sensors to be detected would be near 300. However, it is necessary to take into account also the speed of each group, because this will determine the time under coverage and the successful detection probability. When using the Bluetooth 5 new event notification to stop the advertisers once they have been detected, the previous metric loses its meaning and the flow of participants (sensors entering per second into coverage) should be used instead. Figure 5 represents this metric at 5 km checkpoint. As can be seen, the maximum number of sensors to be detected simultaneously is around 20 sensors per second. Figure 5. Sensor flow at the 5 km checkpoint. Figure 5. Sensor flow at the 5 km checkpoint. Sensors 2018,18, 922 8 of 17 5. Tests and Results Once determined the mobility patterns of the participants, in this section we evaluate if the proposed sensor network is suitable in terms of coverage, energy consumption, capacity, detection probability, etc. 5.1. Coverage Test The coverage area of the different cells (see Figure 6) can be adjusted changing the transmitted power of the sensors. In this way, we can control the precision of the tracking system and the number of sensors which could be present in each cell. Sensors 2018, 18, x FOR PEER REVIEW 8 of 17 5. Tests and Results Once determined the mobility patterns of the participants, in this section we evaluate if the proposed sensor network is suitable in terms of coverage, energy consumption, capacity, detection probability, etc. 5.1. Coverage Test The coverage area of the different cells (see Figure 6) can be adjusted changing the transmitted power of the sensors. In this way, we can control the precision of the tracking system and the number of sensors which could be present in each cell. Figure 6. Cell coverage. We have measured on the field the coverage for a static advertiser and a moving one at 25 km/h for all the range of transmitted power allowed by the device under test. The results are shown on Table 1 and go from coverage areas of 2 m up to 400 m. Table 1. Maximum coverage (m) for static and moving sensors, changing the transmission power. Tx Power (dBm) Static Sensors Sensors Moving at 25 km/h 4 dBm 400 m 185 m −8 dBm 160 m 70 m −20 dBm 23 m 10 m −40 dBm 6 m 2 m 5.2. Current Consumption Results RFID tags are usually passive and require very low maintenance. BLE sensors, on the other hand, are usually battery operated, so, to reduce their maintenance, the power consumption of the devices should be kept to a minimum to be an acceptable alternative over RFID. BLE consumption when the device is not transmitting is so low that it can be neglected, so the main energy consumption depends on the number of transmissions done and their duration, i.e., the advertising interval and the packet size. We have tested the consumption of the devices at the laboratory taking into account these parameters and the results obtained are shown in Table 2. For example, with a CR-2032 lithium battery which has a 210 mAh capacity, the sensor battery life would be over 10,000 h of use. Figure 6. Cell coverage. We have measured on the field the coverage for a static advertiser and a moving one at 25 km/h for all the range of transmitted power allowed by the device under test. The results are shown on Table 1and go from coverage areas of 2 m up to 400 m. Table 1. Maximum coverage (m) for static and moving sensors, changing the transmission power. Tx Power (dBm) Static Sensors Sensors Moving at 25 km/h 4 dBm 400 m 185 m −8 dBm 160 m 70 m −20 dBm 23 m 10 m −40 dBm 6 m 2 m 5.2. Current Consumption Results RFID tags are usually passive and require very low maintenance. BLE sensors, on the other hand, are usually battery operated, so, to reduce their maintenance, the power consumption of the devices should be kept to a minimum to be an acceptable alternative over RFID. BLE consumption when the device is not transmitting is so low that it can be neglected, so the main energy consumption depends on the number of transmissions done and their duration, i.e., the advertising interval and the packet size. We have tested the consumption of the devices at the laboratory taking into account these parameters and the results obtained are shown in Table 2. For example, with a CR-2032 lithium battery which has a 210 mAh capacity, the sensor battery life would be over 10,000 h of use. Sensors 2018,18, 922 9 of 17 Table 2. Sensor current consumption for different packet sizes and advertisement intervals. Advertisement Interval 1 Data Byte 10 Data Bytes 26 Data Bytes 100 ms 17.5 µA 19.5 µA 20.25 µA 300 ms 10.5 µA 11 µA 12 µA 500 ms 9.5 µA 9.7 µA 9.9 µA 5.3. Flow Absorption Test We also designed a laboratory test to determine if the system was able to detect and stop enough transmitters to meet the requirements presented on Section 4. Our proposal suggests to turn off the advertisers when receiving a scan request using the new Bluetooth 5 notification event. However, at the moment of doing the experiment, we did not have real Bluetooth 5 devices to realize the test. So, we implemented the set up shown in Figure 7which emulates a more restrictive case. Thus, if the results obtained fulfill the requirements so will the original proposal. Sensors 2018, 18, x FOR PEER REVIEW 9 of 17 Table 2. Sensor current consumption for different packet sizes and advertisement intervals. Advertisement Interval 1 Data Byte 10 Data Bytes 26 Data Bytes 100 ms 17.5 µA 19.5 µA 20.25 µA 300 ms 10.5 µA 11 µA 12 µA 500 ms 9.5 µA 9.7 µA 9.9 µA 5.3. Flow Absorption Test We also designed a laboratory test to determine if the system was able to detect and stop enough transmitters to meet the requirements presented on Section 4. Our proposal suggests to turn off the advertisers when receiving a scan request using the new Bluetooth 5 notification event. However, at the moment of doing the experiment, we did not have real Bluetooth 5 devices to realize the test. So, we implemented the set up shown in Figure 7 which emulates a more restrictive case. Thus, if the results obtained fulfill the requirements so will the original proposal. Figure 7. Test-bed setup. This test-bed is composed of 72 Redbear nano [19] BLE advertisers. The scanner is a Raspberry pi 3. We can control the power lines of the advertisers through the Raspberry pi GPIO pins which are connected to several shift registers in a daisy chain configuration. Each shift register controls a row of eight advertisers. In this case, the advertisers cannot disconnect themselves, so we map the position and address of each of the advertisers and is the Raspberry pi which disconnects them. When the Raspberry-integrated Bluetooth transceiver receives an advertisement, it sends the corresponding scan request. Then, if the scan response is received successfully, it turns off the advertiser involved in that frame exchange. To measure the response of the system we monitored the consumption of the whole board with a current monitor connected to an oscilloscope. An example of the results for this experiment is shown in Figure 8. There it can be seen that the system is able to disconnect the 72 devices in around 600 ms. To be suitable for the runner tracking application, it was necessary to stop up to 20 sensors per second, so although the emulated scenario is more restrictive it fulfills the conditions more than enough for the requirements. Figure 7. Test-bed setup. This test-bed is composed of 72 Redbear nano [ 19 ] BLE advertisers. The scanner is a Raspberry pi 3. We can control the power lines of the advertisers through the Raspberry pi GPIO pins which are connected to several shift registers in a daisy chain configuration. Each shift register controls a row of eight advertisers. In this case, the advertisers cannot disconnect themselves, so we map the position and address of each of the advertisers and is the Raspberry pi which disconnects them. When the Raspberry-integrated Bluetooth transceiver receives an advertisement, it sends the corresponding scan request. Then, if the scan response is received successfully, it turns off the advertiser involved in that frame exchange. To measure the response of the system we monitored the consumption of the whole board with a current monitor connected to an oscilloscope. An example of the results for this experiment is shown in Figure 8. There it can be seen that the system is able to disconnect the 72 devices in around 600 ms. Sensors 2018,18, 922 16 of 17 We can conclude that interrupted scannable undirected advertisement is clearly the best implementation alternative for all the cases, no matter the coverage area and the runner speed. On the other hand, it is important to remark that the scheme is more flexible to handle the presence under coverage of runners with different speeds. For instance, group 4 is associated to the pass through the 5 km checkpoint of a slow runner group. However, it may be possible that a runner assigned to one group actually does not belong to it. For example, a runner passing with group 4 at the 5 km checkpoint, may have started the race at the last positions and the speed of this runner is significantly higher. In this case, when non-connectable undirected advertisement is used, this sensor may not be detected because it passes too fast through the coverage area and there are too many interferences from the rest of the sensors inside the coverage area avoiding its detection. Nevertheless, stopping the advertisers once they are detected can solve this problem. 6. Conclusions Throughout the paper we have seen that the use of BLE as a supplementary system to the current RFID solutions or even as an alternative is completely viable. One disadvantage of our proposal is that RFID systems usually employ passive sensors, whereas ours are active, although the energy consumption of the sensors is very low and they only require a minimum maintenance. Substituting the sensors worn by the runners by Bluetooth advertisers allows to use a simple smartphone with an application as a detector. These sensors can send not only identification data, but also additional data, such as blood oxygen levels, cardiovascular monitoring, etc. The smartphone application synchronizes all data using GPS/GLONASS/GALILEO and may employ 3G/4G or Wi-Fi networks to communicate the data to the central server. This configuration enables new services which can be offered to the users: live tracking of the race by friends and family, medical monitoring of the participants, reduction of possible cheating during the race, etc. The proposed solutions allow for an easier deployment reducing the race costs. The system is able to detect a high number of devices, fulfilling the requirements present in real races. Additionally, we have demonstrated that with the use of a second smartphone in the same area we are able to increase the detection reliability. Acknowledgments: This work has been supported in part by the MINECO/FEDER under the projects TEC2014-58341-C4-2-R and TEC2014-60258-C2-2-R. Author Contributions: All authors have contributed in all of the sections of the paper. Specially: Jose Luis Valenzuela conceived the application; David Perez-Diaz-de-Cerio and Jose Luis Valenzuela designed the experiments and obtained the experimental data; Ángela Hernández-Solana and Antonio Valdovinos designed the analysis by simulation, developed the simulation tool and obtained the results. All authors contributed to the analysis of the results and wrote the paper. All authors read and approved the final manuscript. Conflicts of Interest: The authors declare no conflict of interest. References 1. Running USA. U.S. Road Race Trends. 2017. Available online: http://www.runningusa.org/2017-us-road- race-trends (accessed on 28 December 2017). 2. ChampionChip: Home. Available online: http://www.championchip.com.my/home/ (accessed on 14 February 2018). 3. Innovative Timing Systems. Jaguar RFID Chip Race Timing Products. Available online: http://www. innovativetimingsystems.com/ (accessed on 14 March 2018). 4. Race Result AG. Timing and Scoring of Sports Events. Available online: https://www.raceresult.com/en/ home/index.php (accessed on 14 March 2018). 5. Joolrat, S.; Saikaew, K.R.; Tengrungroj, M.; Jiranuwattanawong, P.; Janpanich, C.; Sornsakda, K. RFID data processing in a real-time monitoring system for marathons. Eng. Appl. Sci. Res. 2016,43, 94–99. Sensors 2018,18, 922 17 of 17 6. Satitsuksanoh, P.; Jiamthapthaksin, R.; Kim, S.W.; Setthawong, P. A cost-effective interactive platform for the management of a small scale lap-based jogging competition using low-frequency RFID technology. In Proceedings of the 2017 3rd International Conference on Science in Information Technology (ICSITech), Bandung, Indonesia, 25–26 October 2017; pp. 360–365. 7. Alesii, R.; Di Marco, P.; Santucci, F.; Savazzi, P.; Valentini, R.; Vizziello, A. Backscattering UWB/UHF hybrid solutions for multi-reader multi-tag passive RFID systems. EURASIP J. Embed. Syst. 2016 ,2016, 10. [CrossRef] 8. Subedi, S.; Pauls, E.; Zhang, Y.D. Accurate Localization and Tracking of a Passive RFID Reader Based on RSSI Measurements. IEEE J. Radio Freq. Identif. 2017,1, 144–154. [CrossRef] 9. Basalamah, A. Sensing the Crowds Using Bluetooth Low Energy Tags. IEEE Access 2016 ,4, 4225–4233. [CrossRef] 10. Jeon, W.S.; Dwijaksara, M.H.; Jeong, D.G. Performance Analysis of Neighbor Discovery Process in Bluetooth Low Energy Networks. IEEE Trans. Veh. Technol. 2016,66, 1865–1871. [CrossRef] 11. Cho, K.; Park, G.; Cho, W.; Seo, J.; Han, K. Performance analysis of device discovery of Bluetooth Low Energy (BLE) networks. Comput. Commun. 2015,81, 72–85. [CrossRef] 12. Hernández-Solana, Á.; Perez-Diaz-de-Cerio, D.; Valdovinos, A.; Valenzuela, J.L. Proposal and Evaluation of BLE Discovery Process Based on New Features of Bluetooth 5.0. Sensors 2017 ,17, 1988. [CrossRef] [PubMed] 13. Perez Diaz de Cerio, D.; Hernandez, A.; Valenzuela, J.L.; Valdovinos, A. Analytical and experimental performance evaluation of BLE neighbor discovery process including non-idealities of real chipsets. Sensors 2017,17, 499. [CrossRef] [PubMed] 14. Harris, K.M.; Creswell, L.L.; Haas, T.S.; Thomas, T.; Tung, M.; Isaacson, E.; Garberich, R.F.; Maron, B.J. Death and Cardiac Arrest in U.S. Triathlon Participants, 1985 to 2016. Ann. Intern. Med. 2017,167, 529. [CrossRef] [PubMed] 15. Waite, O.; Smith, A.; Madge, L.; Spring, H.; Noret, N. Sudden cardiac death in marathons: A systematic review. Phys. Sportsmed. 2016,44, 79–84. [CrossRef] [PubMed] 16. Gomez, C.; Oller, J.; Paradells, J. Overview and Evaluation of Bluetooth Low Energy: An Emerging Low-Power Wireless Technology. Sensors 2012,12, 11734–11753. [CrossRef] 17. Bluetooth SIG. Bluetooth Core Specification 5.0. Available online: https://www.bluetooth.com/ specifications/adopted-specifications (accessed on 15 August 2017). 18. ChampionChip. Barcelona Marathon Results. 2017. Available online: https://xipgroc.cat/ca/curses/ MaratoBCN2017/42k/resultats (accessed on 19 February 2018). 19. Red Bear Company. BLE Nano. Available online: http://redbearlab.com/blenano/ (accessed on 14 March 2018). © 2018 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).