Collect and Export Data From Bluetooth Devices

Collect and Export Data From Bluetooth Devices

This project will show how to collect Bluetooth low energy data and export it as. csv.

For this project, I am using a Bluetooth Low Energy USB dongle called BlueIO, which will act as a central device to retrieve data. Hibou Air Quality Monitor which will serve as a peripheral device to transmit the data. The script is simple to use and can be used for other purposes such as store the data in a database or cloud.

Things we need:

Before we start

The article assumes you have some general knowledge of how Bluetooth Low Energy (BLE) work. Since the Chrome Serial specification on Google Chrome is not finalized yet, you will have to go to enable the highlighted flag, and restart Chrome.

open chrome://flags/#enable-experimental-web-platform-features in chrome browser.

In this example, we are going to use JavaScript + html (and some CSS for styling) to setup the BleuIO and quickly start scanning.

Step:

  • Clone the git repository.
    git clone https://github.com/smart-sensor-devices-ab/export_ble_data.git
  • Connect the Bleuio dongle to your computer.
  • Open index.html file
  • Click connect and wait for the device to load on your com port.
  • Select your com port.
  • Scan for BLE devices. (this script only scans for Hibou Devices. You can change the manufacturer value at script.js file)
  • Select the device and start getting data. You will get real-time value on the screen.
  • Once you click on stop getting data. you will see all the data showing on a table between the time period. You can view data or export in csv.

Download: export_ble_data-master.zip

Follow the video for a better understanding

Please follow and like us:
Pin Share
About mixos

Mike is the founder and editor of Electronics-Lab.com, an electronics engineering community/news and project sharing platform. He studied Electronics and Physics and enjoys everything that has moving electrons and fun. His interests lying on solar cells, microcontrollers and switchmode power supplies. Feel free to reach him for feedback, random tips or just to say hello :-)

view all posts by admin
Subscribe
Notify of
guest

1 Comment
Inline Feedbacks
View all comments
mahi patel

If I see a good post, you will not go without praising me, because every word written in the post you have written is very thoughtful, your way of writing is very beautiful and your views are also very good. This is a commendable post, as much as this post is praised, it is less, you should keep writing more beautiful posts in your life.

Get new posts by email:
Get new posts by email:

Join 97,426 other subscribers

Archives