The Affect of the Number of Beacons on the Detection Time

We have been involved in a few projects where there have been 100s of Bluetooth beacons in one place at the same time as opposed to, the more normal, 10s at a time. We have found detection times to be significantly longer. Until now, we have found it difficult to quantify this behaviour.

We have found some research, funded by Samsung, on the Analysis of Latency Performance of Bluetooth Low Energy (BLE) Networks. The research contains lots of theoretical predictions backed up with experimental data that show how the time to detect varies with the number of scanners, number of advertisers, the scan window size, the advertisement period and the advertising interval:

The research concludes that when the number of Bluetooth devices increases, delays in device discovery show an exponential growth even when using multiple advertising channels and small frame sizes.

The authors say:

“We find that the inappropriate parameter settings considerably impair the efficiency of BLE devices, and the wide range of BLE parameters provides high flexibility for BLE devices to be customized for different applications.”

So what typical parameter settings might affect the detection time? What’s really going on? If you look at beacon advertising it transmits for about a millisecond every configurable advertising period (typically 100ms to 1 sec):

In simple terms, if two beacons happen to transmit on the same channel, at a similar time, then the transmissions will collide and receiving device will see corrupted data. The receiver will have to wait for its next scan to possibly see the beacon(s) and this increases the detection time. The chances of collision increase as the number of devices increase and decrease as the beacon advertising period increases.

Note that if two beacons collide and have the same advertising interval, it doesn’t mean they will collide next time. The advertising interval has a small amount of randomisation added to make this less likely to happen.

Beacons Help Find Lost Dementia Patients

The Jockey Club Centre for Positing Ageing in Hong Kong has been working with The Hong Kong University of Science and Technology and St James Settlement to create a system to aid the search for older people with dementia who get lost.

The solution works on the premise that people who get lost generally go to places where there are other people. A Bluetooth beacon-based device is detected by an app installed by 23,400 ‘dementia angels’. They receive an alert when someone is lost and are asked to turn on Bluetooth and location. When the lost person is detected the location is anonymously sent to a cloud server and then to the caregiver to aid with searching.

The beacon comes in several forms including suitable for putting into a wallet or attached to a walking stick. In 45 out of 131 lost episodes, the caregivers were able to use the technology to help search for their relatives with dementia.

87% of caregivers thought that the iBeacon was easy to carry for the people with dementia and 82% observed that their relatives with dementia were willing to carry the iBeacon. 79% of caregivers were satisfied with the durability of the iBeacon and 75% thought that the designated mobile app was easy to use. In addition, 74% of caregivers trusted data security. The overall programme satisfaction rate was 85%, revealing that they held a positive view of using this technology in their daily lives to prevent getting lost.

View iBeacons

Warning System for Home Monitoring

There’s new research into a home people tracking system to detect people who are isolated at home. The context is home isolation due to Covid but this could equally be used for people with limited mobility who need to stay indoors.

The idea is to use Bluetooth rather than visual, camera-based monitoring. Smart bracelets are used that can also monitor position, blood oxygen and heart rate.

The system can also send early warning signals to organisations or relatives through instant messaging software.

The system is implemented using ESP32 single board computers and a Raspberry Pi for data collection.

This uses MQTT, Node-Red and a database.

View Wearable Beacons

Using AI Machine Learning to Improve Ranging Accuracy

There’s new research from Oregon State University, USA and Peking University, Beijing, China on A Machine Learning Approach to Improve Ranging Accuracy with AoA and RSSI.

System Workflow

Machine learning was used to determine the line-of-sight distance in a multipath (reflective) environment. Due to the multipath effect, acquired signals indoors have complex mathematical models. A machine learning Artificial Neural Networks (ANN) is the most efficient way to process these signals.

The system achieved accuracy where 75% of the errors were less than 0.1 m with a median error of 0.037 m and a mean error of 0.092 m. This reduced ranging errors to under 10cm. The researchers were able to achieve high-precision indoor ranging without the need for a wide signal bandwidth nor synchronisation. The system was also simple and low cost to deploy due to low complexity of the equipment.

How to Read the AnkhMaway Sensor Data?

Since we have been selling the AKMW-iB003N-SHT  and AKMW-iB004N PLUS SHT we have been getting a few questions regarding accessing the temperature and humidity data.

You should first read the manufacturer’s SHT20 User Guide (username and password supplied with your beacon).

If you are connecting via GATT to read the sensor data then you will need to set the beacon to be always connectable. The way to do this is (for some strange reason) only shown in the iB001M user guide:

advertisementcontrol

So if you wish to transmit iBeacon and remain connectable, set the value to 0x82. Note that if you subsequently set the beacon ‘on’ or ‘off’ in the ‘simple’ configuration screen, accessed via the spanner icon (Android) or Configure option (on iOS), then this will overwrite your set value.

However, you might instead consider reading the sensor data from the advertising data which a) is much easier to program and b) uses much less beacon battery power and c) allows multiple apps to see the data at the same time.

There’s also an iOS example app in the BeaconZone AnkhMaway technical area.

Getting the AnkhMaway Battery Level from Advertising Data

One of the great things about AnkhMaway beacons is that they provide the battery level in the advertising data. This allows you to view or easily programmatically determine the battery level without connecting. For example, here’s the output from the Android iBeaconDetector app:

batteryinadvertisingdata

The last two useful hex characters of the advertising data, ‘5E’ in this case, gives the level out of 100. You can use an online Hex to decimal converter to see the value in decimal that’s 94% in this case.

Note that the battery level in the advertising data is only present for recent firmware versions which might not be the case if you haven’t purchased the beacons from BeaconZone.

Beacons for Immersive Experiences

We are seeing beacons increasingly being used in immersive experiences in theatre productions, events, museums, galleries, theme parks and with augmented reality (AR). Beacons provide physical location cues for tech-driven immersive experiences.

Beacons have a variety of uses in immersive experiences. They cause things to happen based on the location of a person or things or their mutual proximity. They provide a way of counting how many people or things are in an area. Some beacons have buttons that allow for human interaction. There are also sensor beacons that expand what’s possible through the detection of temperature, light, proximity, physical open/closed, movement and fall detection. Beacons replace what might usually have been done manually thus saving costs, sometimes implementing scenarios that are impractical to do manually. While the emphasis is usually all about maximising the experience, beacons also allow the collection of data so that it’s possible to learn from current or past installations.

Beacons are small, battery powered devices that can last months to years without changing the battery. They are detected by smartphones, gateways or single board computers such as Raspberry Pi.

We have immersive experience clients such as dreamthinkspeak, Playlines, Punchdrunk, Sophie Jump using our beacons. We also provide consultancy an example of which is Royal Museums Greenwich’s AR immersive experience for which we have a case study.

Cutty Sark

Beacons help make immersive experiences more physical and magical.

View Beacons

Making an iBeacon Using ESP32

Circuit Digest has a new tutorial ESP32 based Bluetooth iBeacon. ESP32 is a small single board computer that can easily be programmed to do different tasks. Many ESP32 boards include Bluetooth so it’s possible to program them to be an iBeacon.

The article first explains how to detect beacons on Android using nRF Connect. This is similar to our post Testing if a Beacon is Working. There’s also a useful table that explains the different ranges for received signal strength (RSSI):

Creating your own beacons means you can customise the advertising and do other IoT-related things at the same. The downside is bare ESP32 boards aren’t as physically robust, easy to configure nor power friendly as a dedicated beacon.

View iBeacons

Faraday RF-Shield Bags in Stock

We have Faraday Radio Frequency RF shield nylon bags in stock. Specially made for us using stronger anti-RF fabric, we have tested this bag shields even our ultra long range Bluetooth beacons.

Faraday bags can be very useful during development when you want to bring beacons in and out of range or need to hide development beacons. They are also useful during setup when you want to shield uncommissioned beacons temporarily.

faradaybaglarge_smaller

These bags were originally designed for military, intelligence and police agencies to prevent seized devices from being remotely altered. They shield WiFi, Bluetooth and phone signals up to 70dBm. They can also be used with phones and tablets for personal anti-radiation health reasons, preventing tracking or avoiding communication when you don’t want to be interrupted.

The smallest gap in a Faraday bag can cause radio leakage. Hence, the top has velcro to allow it to be rolled over and securely fastened for full radio blocking.

Beacons Past, Present and Future

Bluetooth beacons have evolved considerably over the last twelve years. Occasionally, we see Twitter comments such as ‘Remember iBeacon’ or ‘Beacons are dead’. Beacons aren’t dead. They are used in many situations and have, in some cases, evolved such that you don’t even know they are being used.

Bluetooth 4.0 devices started with the Bluetooth 4.0 specification in December 2010. The iPhone 4S and many Android devices were the first iOS device to use this new wireless protocol. Interoperability with smartphones is one the main reasons Bluetooth LE and beacons have become so popular.

While there were a few early, custom, Bluetooth LE devices that just advertised, the popularity of beacons was boosted by the announcement of the iBeacon protocol at the Apple Worldwide Developers Conference in 2013.

The First iBeacons

The iBeacon protocol actually didn’t add that much because it just used the standard Bluetooth 4.0 protocol with the data being interpreted in a particular way to uniquely identify the beacon. The important part was that iPhones would have CoreLocation APIs to detect these kinds of Bluetooth 4.0 devices.

Apple’s example usecases were mainly marketing, retail and consumer driven and this led to lots of startups creating new iBeacon platforms often with re-badged iBeacons with locked-in Software as a Service.

Google didn’t want to loose out but and their ambitions were wider in that they wanted to create what they called a Physical Web where smartphones could find and control devices using Bluetooth. The Eddystone profile was released by Google in July 2015 which, again, was a thin layer on top of the standard Bluetooth 4.0 protocol. Again, the important part was the software, provided by Google, that allowed Eddystone to trigger events in the Android Chrome and Android itself via the Play Services component.

A key part of Eddystone was Eddystone-URL that allowed the advertising of a shortened web address. However, the triggering mechanism was totally controlled by a Google server that had it’s own opaque rules and was frustrating because it didn’t always work.

Many more startups adapted their software and hardware designs to use Eddystone-URL. However, the spammy side of the marketing community took hold and by 25 October 2018, Google discontinued support for Android Bluetooth Nearby Notifications. This caused the end of a large number of startups based on beacon marketing.

During the ‘Eddystone age’ of 2015-2018 something longer lasting was happening. Some manufacturers adapted their beacons to become sensors for things like movement, temperature, humidity, air pressure, light, on/off, proximity, fall detection, smoke, natural gas and water leak. At the same time, manufacturers created gateways that sensed beacons and were able to send the Bluetooth advertising to a server via WiFi or Ethernet. Beacons started being used in industry for real time locating (RTLS) and IoT.

Bluetooth Mesh was adopted by the Bluetooth SIG in July 2017. This allowed beacons, or indeed any Bluetooth devices, to talk to each other such that a very large area can be covered with only one gateway at the edge. It’s now five years later and, apart from a few products related to lighting, Bluetooth Mesh hasn’t been popular.

Bluetooth Mesh

The main problem is that the Bluetooth Mesh standard was, for some reason, designed for usecases such as lighting that are low latency, low throughput and are mains powered. Bluetooth Mesh in beacons uses significant battery power and the throughput is too small for most IoT mesh applications having larger numbers of sensors.

Bluetooth Direction Finding was introduced with Bluetooth 5.1 in January 2019. The Angle of Arrival (AoA) variant works by having a beacon send out special advertising that is picked up by a multi-antenna locator.

Locator with multiple antennas

It’s now two and half years since the Bluetooth 5.1 release and some products have come to the market. However, most are evaluation boards that are not suitable for use in production. The software required to analyse the AoA radio data is very complex and performance-critical which has held back quick adoption.

LocationEngine™ Spectrum Analysis

Today, beacons are used in a vary large number of situations. For example, our customers use beacons for warehouse pallet tracking, factory job tracking, train company asset tracking, locating 2-way radios, healthcare asset tracking, tracking the elderly patients, man down SOS, lone working, evidence-based policing, smart offices, location-based gaming, car driving logging, facilities maintenance tracking, cargo temperature monitoring, student attendance monitoring and general IoT sensing. There are also a few consumer-facing uses but these tend to aid rather than spam consumers. Examples include restaurant table locating, museums and galleries.

In the future we expect we might see AoA and it’s sister technology Angle of Departure (AoD) mature. We are seeing beacons being used more in AR and immersive experiences so they might even have application in metaverses to help bridge the physical and virtual. It’s difficult to say how inflation and recession will affect innovation using Bluetooth. On the one hand companies will be spending less but on the other companies are seeking ways to measure and automate to save costs as part of Industry 4.0. Whatever happens, expect to continue to see beacons being used as part of larger solutions rather than the original premise of them being a (marketing) solution.

Read about PrecisionRTLS™