Brainy Pi

Available to select audience (currently beta)

Eddystone on Brainy Pi
In the world of Bluetooth devices and wireless technology, Eddystone messages have become a popular way to broadcast information such as URLs. By using the Eddystone protocol, devices with a scanner can detect the beacon and retrieve the broadcasted data. Eddystone with Brainy pi – Raspberry pi Alternative can really help you to create Edge application.
In this blog, we will explore how to use Eddystone messages to broadcast URLs and allow users to access them using Brainy Pi – Raspberry pi Alternative. Additionally, we will dive into the capabilities of the Eddystone beacon, including distance data.
Let’s start with simple steps to setups Eddystone on Brainy Pi.

Required Components to setup Eddystone:

  • Brainy Pi
  • Ethernet / WiFi

Step 1: Updating System Software

It is very important to update the system software before installing any new packages
1. To update use the command
sudo apt update
2. To upgrade use the command
sudo apt upgrade

Step 2: Setting Up Bluetooth on Brainy pi

To switch on the Bluetooth use the command
sudo hciconfig hci0 up
1. Once the Brainy Pi’s Bluetooth is powered on we need to go ahead and switch on the Low Energy Advertising mode and set it to the Non connectable undirected advertising mode.
sudo hciconfig hci0 leadv 3
2. Now that we have put our Brainy Pi – Raspberry pi Alternative into the right mode, we need to advertise some data with it.
This time we will be utilizing the hcitool, this tool will allow us to send a command to our Bluetooth device to broadcast a specified URL.
sudo hcitool -i hci0 cmd 0x08 0x0008 19 02 01 06 03 03 aa fe 11 16 aa fe 10 00 03 70 69 6d 79 6c 69 66 65 75 70 07 00 00 00 00 00 00

Step 3: Testing Eddystone

To test that the Brainy Pi’s Bluetooth is now broadcasting our Eddystone beacon we will need to make use of a device such as an Android phone or an iPhone.

1. Generate a command to broadcast URL of your choice as an Eddystone beacon by utilizing the script by going to Yencarnacion’s Eddystone Calculator and type your URL into the textbox and pressing ENTER.

2. On Android, install the Beacon Scanner app by Nicolas Bridoux. Using this app, you should be able to run a scan using Bluetooth on your device.

Endnotes

In summary, we implemented Eddystone on BrainyPi – Raspberry pi Alternative to  broadcast messages from this edge device.
0 Comments

Leave a reply

Your email address will not be published. Required fields are marked *

*