Open hardware for open beacons

OpenBeacon: Wireless proximity sensors for contact tracing and real-life social network logging

Active 2.4 GHz RFID tags and readers that log face-to-face contacts accurately, run offline for weeks on a coin cell, and publish their firmware and hardware design under open licenses.

Panel of OpenBeacon proximity tag circuit boards before separation
Role
Founder, hardware and firmware design
Started
2006, Bitmanufaktur GmbH, Berlin
Platform
Nordic nRF51822, Arm Cortex-M0, 2.4 GHz
Licenses
GPLv2 firmware, CC BY-SA 4.0 hardware

Accurate logging of social contacts

A circular diagram of daily contact activity next to the SocioPatterns Infectious exhibition poster
Left: one of the sixty-nine daily diagrams of contact activity. Right: the poster with the complete visualization and accompanying text, from the SocioPatterns Infectious deployment.

Offline logging

OpenBeacon is uniquely suited for modeling epidemics by decentralized tracking of human and animal interaction.

The OpenBeacon.org project provides active 2.4 GHz RFID real-time proximity and position tracking using the Bluetooth Low Energy compatible nRF51822 chip from Nordic Semiconductor.

Location tracking with OpenBeacon tags is implemented by running the OpenBeacon proximity tag firmware, which regularly transmits beacon packets. These packets are received by OpenBeacon base stations in the vicinity, and the signals seen by one or more base stations determine the position of each tag in real time.

The proximity feature additionally resolves human contacts by detecting other tags in a range of up to 6 metres with a resolution of approximately 0.5 metres. Once a contact is detected, the information is forwarded by the surrounding Power-over-Ethernet readers to the server infrastructure. Because the body shields the 2.4 GHz signal, face-to-face contacts are detected accurately. Optional encryption ensures that only base stations inside the system can read the packet contents.

The proximity tag hardware design and the firmware source code are public:

  • OpenBeacon NG, the active 2.4 GHz RFID proximity tag based on the nRF51822.
  • SocioPatterns.org, the research project on high-resolution social networks from wearable proximity sensors.
Black OpenBeacon Ethernet reader with antenna next to a white proximity tag
An early OpenBeacon Ethernet reader with Power-over-Ethernet, next to a proximity tag.

Live visualization and centralized logging

The tags transmit encrypted live notifications of the tags in their proximity and their approximate distance. By placing network readers in the relevant areas, tag-to-tag sightings are collected centrally, either for logging or for a live display of the interaction.

The video below shows how tag-to-tag interaction is detected and a notification is broadcast to the network infrastructure. The Live Social Semantics project integrated real-time face-to-face interaction detection using active RFID with linked data from the semantic web and from social networking sites. The system was deployed at two conferences in spring 2009; the film includes excerpts from the real-time visualization during the Hypertext'09 conference and the online social network browsing tool.

More on Live Social Semantics at sociopatterns.org; Wouter Van den Broeck's original video is on Vimeo. The song "Dreamer" was created by Geraint Luff, from the album Sky Full of Songs.

Ethernet reader: interactive 3D model

The OpenBeacon Ethernet reader enclosure: dual nRF51822 radios with RSSI, Linux-based with a USB Wi-Fi option, a 3D accelerometer and a CR2032-buffered real-time clock.
Fingers holding a small oval OpenBeacon tag circuit board against a blue sky
The latest OpenBeacon tag hardware design.

Physical Web and Bluetooth Low Energy

In 2014 the tag design got a second life as a Bluetooth Low Energy device. When Google published the Physical Web beacon format, OpenBeacon added the packet protocol to the existing tags: a stock tag broadcasts the URL of the project site, get.OpenBeacon.org, and the accelerometer demo transmits it only while the tag faces forward. The beaconing firmware runs on the bare nRF51822 without the vendor's SoftDevice, which is what turns the tag into a hacking, fuzzing and pentesting tool for Bluetooth Low Energy:

  • tag-mischief simulates hundreds of tags with different MAC addresses at the same time, to see how a phone copes.
  • Beacon packets from other beacons can be sniffed and replayed at random transmit strength, which blurs anyone's position within a radius of about 30 metres.
  • The proximity firmware uses fully encrypted tag-to-tag interaction with AES encryption and packet signing, angular detection from the 3D accelerometer, a true random number generator and the 8 MB flash for logging.
  • Close-up of the round white OpenBeacon proximity tag circuit board lying on a grey surface, showing the radio chip, flash memory, accelerometer and chip antenna
The Bluetooth proximity tag: nRF51822 radio, accelerometer, 8 MB flash and chip antenna on a coin-sized board.

Design files, firmware and tools

Everything needed to build and program a tag is collected in the how-to guide on this site and in the openbeacon-ng repository: the schematics and PCB layout as PDF, Gerber files for production, the Altium Designer sources and a bill of materials with supplier part numbers.

The firmware tree covers the whole system: tag firmware for proximity logging, Physical Web and BLE beacons, accelerometer, power and sound experiments; reader firmware for proximity and BLE readers, including one that turns a BBC micro:bit into an OpenBeacon reader for live sniffing of tag sightings; and host tools for receiving, sniffing and dumping tag logs. Development is supported on Linux and macOS with the Arm GNU toolchain; the makefiles flash a tag directly through a Segger J-Link probe from the nRF51822 development kit. The how-to guide walks through the toolchain, the Hello World firmware, flashing and reading tags. Questions go to the issue tracker on GitHub or to contact@bitqan.ae.

Top side of the nRF51 OpenBeacon tag next to a CR2032 coin cell
The nRF51 proximity tag next to its CR2032 cell: accelerometer, 8 MB flash, chip antenna and push button on a coin-sized board.
The BLE proximity tag board as a 3D model: the design whose schematics, layout and Gerber files are listed under design files.

Full transparency

Have full control and visibility

By providing the full firmware sources and the hardware design of the tags, the security and privacy implications of the system can be verified by anyone.

Build your own tags

Anyone is free to manufacture the tags. The schematics and hardware designs are published with the firmware. The tag hardware is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License, which specifically allows commercial use as long as the origin of the original design is mentioned openly.

Bitqan offers custom hardware development based on this and related designs, from a variant of the tag to a complete tracking system.

The OpenBeacon tag programmer with a tag inserted. The 3D-printed fixture is also used to dump log files from a tag.
Cross-section of a tag holder.

Acknowledgements

Code contributions are acknowledged in the source code headers and in the history of the GitHub repository. Beyond that, the project lives from user contributions: rigorous testing, a constant stream of feature suggestions and regular real-life deployments in the field.

The OpenBeacon team thanks Ciro Cattuto of the ISI Foundation for the great collaboration during the joint development, the ongoing support and the innovative deployments of the system, and the SocioPatterns collaboration for providing the scientific background, the media exposure and the deployments the project needed to thrive.

License

The firmware is free software: it can be redistributed and modified under the terms of the GNU General Public License version 2. It is distributed in the hope that it will be useful, but without any warranty, not even the implied warranty of merchantability or fitness for a particular purpose. Alternative licenses to the GPL are available on request: contact@bitqan.ae.

Background

OpenBeacon.org

The OpenBeacon.org project was founded by Milosch Meriac and Brita Meriac in 2006 at Bitmanufaktur GmbH in Berlin as an open platform for active RFID applications in the license-free 2.4 GHz ISM band. OpenBeacon is based on open-source software and a flexible, open design for a reprogrammable, low-cost active 2.4 GHz RFID hardware module. The tag and reader firmware sources are available under the GPL, the tag hardware schematics under a Creative Commons license, and new ideas for OpenBeacon setups and firmware improvements are encouraged.

SocioPatterns.org

SocioPatterns is an international research collaboration that uses wearable proximity sensors to map human spatial behaviour in environments such as schools, hospitals, offices and social gatherings. Over six years the SocioPatterns researchers designed and supervised more than 25 data collection campaigns in 10 countries, involving over 50,000 subjects. The resulting high-resolution social networks, shared with the public whenever possible, have been used to investigate human mobility, time-varying social networks, infectious disease dynamics, location-based services and more, reported in more than 30 peer-reviewed publications and featured by the international press.

The SocioPatterns collaboration was founded by researchers and developers from:

OpenBeacon hardware

Since the start of the project in 2006, several generations of tags have been designed for the interaction of people, animals and buildings. The latest tag hardware is documented on GitHub; earlier designs are shown in the hardware photo gallery.

A dog wearing an OpenBeacon tag on its collar next to a person
Tags for people and animals: an OpenBeacon tag on a collar.
OpenBeacon sensor tag wired to a blue potentiometer knob
An earlier tag version with more than 10 years of battery lifetime on a CR2032 coin cell. It senses changes of the potentiometer 10 times per second and transmits a wireless notification on change.
OpenBeacon tag in a black 3D-printed watch housing on a grey strap
OpenBeacon trackers fit into 3D-printed watch housings (top, bottom) compatible with a wide range of third-party watch bands.
Opened OpenBeacon tag housing showing the circuit board and coin cell holder
The tag is powered by a CR2032 battery and runs offline tracking for two to four weeks depending on the tracking interval. For other applications such as wireless sensors, battery lifetimes of many years are achievable.
Phone screenshot listing many Bluetooth devices emulated by one OpenBeacon tag
Bluetooth Low Energy compatibility allows applications like the parallel emulation of 50 tags.
Toronto City Hall at night with its windows lit as a giant display
OpenBeacon technology in a wide range of applications: the Blinkenlights Stereoscope installation turned Toronto City Hall into a giant display with OpenBeacon-controlled wireless dimmers (documentation video on Vimeo).
Colourful OpenBeacon wristbands fanned out on a wooden table
Know your system.

Open-source tracker with full transparency, including the hardware.

OpenBeacon.org
Portrait of Milosch Meriac, founder and CTO of Bitqan Systems Design
Founder

Meet the founder

Milosch Meriac

Founder & CTO

Milosch Meriac has designed hardware, firmware and software defined radios (SDR) for more than 25 years, from open-source RFID tags to GNSS-jammer localization systems. At Bitqan that experience goes into the whole product: schematic, RF front end, firmware and enclosure.

Tell us what you want to build.

Write to us at contact@bitqan.ae for collaboration or a free consultation. We look forward to hearing from you!

Email contact@bitqan.ae
Flag of the United Arab Emirates flying in front of the Etihad Towers in Abu Dhabi