Python and Bluetooth on Linux

Barry Byford has a new blog post on D-Bus and Bluez. It documents his experiences creating a BLE central client on Linux. Barry deliberates over dbus-python and pydbus. He then provides an example how to create a Bluetooth GATT connection, converting D-Bus typed data to python types and interacting with a BBC micro:bit.

While you are on Barry’s site, read his notes from workshops and further notes on using Bluetooth.

Beacon Re-Designs

We are increasingly seeing beacon manufacturers providing updated versions of their beacons, not to provide extra functionality but to instead simplify the designs so as to reduce the component count or use fewer or cheaper semiconductors. The semiconductor manufacture crisis has resulted in a shortage of semiconductors that has resulted in component shortages and price rises. Beacon re-designs are an attempt by manufacturers to keep prices lower and in some cases prevent an existential crisis for a particular beacon model.

System on a Chip (SoC)

Some manufacturers are using simpler versions of the System On a Chip (SoC). These typically have less memory or have less functionality. Often the more-capable functionality wasn’t even used in the older beacon variant. Other times, things can be done in software that were performed in hardware. There’s also a trend to remove crystals that provide timing and instead perform this in software. Some manufactures are switching between SoC hardware manufacturers, for example from Nordic to Texas Instruments that requires a total hardware and software re-design.

Care needs to be taken when purchasing beacons especially when purchasing just a few samples and much later purchasing a larger quantity. Changes in hardware design mean that you won’t necessary get the same behaviour. This can affect aspects such as range and battery life. Doing things in software rather than hardware often affects battery use. At BeaconZone we are taking special care to ensure that current stocks of items behave as previously, if necessary specifying a particular variant when re-stocking.

Introduction to Bluetooth Direction Finding

The Bluetooth SIG, the owner of Bluetooth standards, has a useful video introduction to Bluetooth® Location Services and High-Accuracy Direction Finding. It’s the 4th video from Embedded World 2020. Strangely, you need to view direct from the Bluetooth SIG site because this video isn’t available direct from Vimeo.

Martin Woolley, Senior Developer Relations Manager, provides a high level overview and explains how direction finding differs to positioning using RSSI signal strength. He describes how Bluetooth Angle of Arrival (AoA) and Angle of Departure (AoD) make use of multiple angles to provide accurate location.

Martin dives deeper into direction finding theory and phase sampling. He explains how Bluetooth uses Frequency Shift Keying (FSK) of the radio carrier signal that necessitates use of a Constant Tone Extension (CTE) to enable direction finding. It’s explained how Bluetooth Controller IQ sampling fits into the Bluetooth stack.

View G2 AoA Gateway Kit

Read about PrecisionRTLS™

Fingerprinting Positioning Using Multiple Advertising Slots

There’s interesting research from Spain on Multi-Slot BLE Raw Database for Accurate Positioning in Mixed Indoor/Outdoor Environments. It looks into fingerprinting with beacons simultaneously advertising six slots rather than one slot.

Fingerprinting is where you first measure the signal levels at various known points and then later compare new data with the old to work out the position. This is usually performed with one signal from each beacon. The researchers increased this to six signals to attempt to improve positional accuracy.

Tests were performed at the campus of the University of Extremadura in Badajoz in the Physics and Mathematics buildings and also outside. Beacons were set up to transmit four slots using the Eddystone protocol and two using the iBeacon protocol. Different transmit powers were used for each slot. Measurements were performed using three different smartphones with a custom developed Android application. The resultant data is available on Zonodo.

The researchers compared a simple Nearest Neighbours algorithm (NN) using all the slots, the one slot with the highest transmission power and the average of all slots from the same beacon. The results showed that using all the slots or just one per beacon gives similar results for accuracy, floor, and Tag ID recognition. Results using the averaged values increased the accuracy by 10%.

New Silicon Labs Bluetooth Direction Finding Design

Silicon Labs has a new range of Bluetooth System on a Chip (SoC), the EFR32BG22 (BG22) boasting power efficiency with up to ten years on a coin cell battery. It supports the Bluetooth 5.2 specification, Bluetooth direction finding and Bluetooth mesh. The Bluetooth direction finding provides Bluetooth Angle of Arrival (AoA) and Angle of Departure (AoD) capabilities with sub-one-meter location accuracy.

Silicon Labs have announced a new direction finding kit with a 4×4 antenna array board for evaluation and development. Note that this is a reference design rather than a product that can be rolled out.

The antenna array design and user guide make interesting reading if you want to learn about AoA hardware design.


Many of our customers have misconceptions about direction finding reference design kits. They exist to prove direction finding and are intended as a base design on which to create your own custom hardware using the same components. They aren’t intended for rollout as they generally aren’t physically robust and also don’t have software that will scale to more than a few assets.

Instead, see the Minew AoA kit for a production product.

Read about PrecisionRTLS™

Using Beacons in Building Information Modelling (BIM)

The Journal of Information Technology in Construction has a new new paper on BIM Integrated Post-Occupancy Evaluation System for Office Buildings (pdf). It describes a system that enables conducting space-time queries and visualization of collected feedback to support effective decision-making in facilities management (FM).

The system collected occupant feedback on their comfort needs along with the contextual information and presented this to facility managers. This data is critical for assessing occupant satisfaction and for identifying the operation and maintenance (O&M) issues in good time so as to improve resource efficiency in buildings.

Bluetooth beacons were used for locating the occupants which has the advantages of wide range of usage, low cost and being simple to use. Beacons had to be placed so that they were not obscured by the building elements and signal levels were adjusted to avoid interference between the beacon signals.

The system demonstrated that such systems are practical, usable and that real-time building performance data can be collected and analysed.

Who Controls Your Beacons?

One of our most popular FAQs is

“Which Beacons Don’t Require Registration/Login/Subscription to a Platform to Configure Them?”

Conversations with our customers are showing that people are starting to become wary of beacons that require online logins because:

  • They can’t be administered ‘in the field’ where there might be no connectivity
  • They can’t be easily used with other people’s platforms
  • They tie you into platform availability that you can’t control
  • They tie you into future changes of platform subscription model you can’t control

None of our beacons require you to register, login or subscribe to a proprietary platform to administer them. All can use stand-alone apps for configuration.

Beacon Jewellery as a Personal Security device

IT World Canada recently reported Telus launches personal security beacons disguised as jewellery.

A problem with beacons is that they tend to look ugly when worn. Telus have solved this problem and have developed an app and service so they can be used as a SOS lifeline.

The Telus SmartWear looks like jewellery or a keychain. It connects using Bluetooth to a smartphone. When the back of the charm is double clicked it sends a alert. Telus will ring you back to confirm you need help and, if necessary, send emergency services.

Tracking Forklift Trucks

Forklift trucks are a common theme or problem in warehouses. They are expensive, can cause damage and are potentially dangerous. Here are the top 3 scenarios we have come across when speaking to warehouse clients.

  • Tracking the usage of forklifts to make best use of what is an expensive resource. The solution is real-time monitoring of movement using a real time locating system (RTLS) to detect excessive durations of no movement.
  • Detecting if they crash into racking. For example, we had a customer with a warehouse storing dangerous chemicals. They needed to know about impacts with racking that could potentially displace and spill the chemicals. The solution is detecting unexpected excessive rack movement using a RTLS.
  • Detecting if they go missing. One client told us of forklifts going missing having been driven off in lorries in the cargo area. A RTLS can alert when forklifts go outside an area, inside an area or are no longer being seen.

These scenarios affect the company’s direct costs. Preventing just one incident can pay for the RTLS and more importantly prevent fines, injuries, lost days and medical bills.

Even when there aren’t accidents, a RTLS saves costs through improved efficiency.

Read about BeaconRTLS™

Learn about Beacons in Industry and the 4th Industrial Revolution (4IR)