Create a Bluetooth Low Energy repeater using BleuIO’s multi-connection featureMarch 31, 2021
This article will explain how to create a BLE Repeater using BLE USB dongle called BleuIO and its python library.
The BleuIO is Bluetooth low energy solution that can be used to create new BLE 5.0 applications in the fastest and easiest way. Using this dongle’s multi-connection feature, we will make a simple repeater where one dongle scans nearby devices data and sends it to the repeater. At the same time, the repeater passes the data to the receiver dongle.
For this project, sender dongle will scan for air quality data from HibouAir device and pass the advertised data to the repeater. The repeater dongle will be connected to a Raspberry pi which will forward data to the receiver dongle.
We have already created a sample script in python, which will help us to do the task.
Make sure you have python3 and BleuIO python library installed.
Let’s start by cloning the repository from
Once you cloned the script, you will find three different python script called
We need to update the ports on those scripts manually.
Connect two dongles on your pc. You can do the process on three different pc or Raspberry Pi.
For this project, I have connected both the sender and reciever dongles to one pc.
After connecting the dongles, open device manager (windows) to find ports of each dongle.
On my pc, I have two dongles connected on port 5 and 6.
Let’s make 5 as the sender, 6 as a receiver.
Now open the scripts and set the ports number accordingly.
We also need to know repeater dongles ID. To do that, we can simply advertise the dongle on raspberry pi using AT+ADVSTART command .Then do a gapscan using AT+GAPSCAN from sender dongle and look for a dongle called BleuIO
Once we have repeater dongles id, we can put it on our scripts.
Step 3 :
Now lets run the script.
First move to the script directory on Raspbeerry pi and using command prompt type sudo python3 repeater_example_repeter_dongle.py to run repeater script.
Similarly, run receiver and sender scripts accordingly on pc.
As the name suggests, the repeater will repeat its content. On the terminal, we will see the message sent to the repeater from the sender, and the repeater forwards the data to the receiver dongle.
Follow this video for a better understanding.
Facebook Twitter LinkedIn