Get Bluetooth Device Distance Using BleuIOJuly 14, 2021
Distance between Bluetooth devices can be measured using RSSI value. Using the script presented in this article will help us to get device distance using BleuIO.
This script scans for nearby Bluetooth devices and get an approximation of the distance by using well known RSSI to distance formula.
- You need to have a BLE USB dongle BleuIO https://www.bleuio.com/
- To run the script, you need a web application bundler. You can use parceljs. https://parceljs.org/getting_started.html
git clone https://github.com/smart-sensor-devices-ab/ble_distance_measure.git
Go inside the folder type in terminal
The script will scan for five seconds for nearby devices. You can update the value based on your requirements.
You can also run this script from online at
**Make sure your BleuIO dongle is connected
Read more about how to calculate the distance
Facebook Twitter LinkedIn