Collect and export data from bluetooth devices

This project will show how to collect real-time BLE data and export as csv using web browser.

For this project, I am using 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 into 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.

Steps:

  • 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 scan for Hibou Devices. You can change the manufacturer value at script.js file)
  • Select 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.

Project Video

Share this post on :

Smart Sensor Devices Announces Global Distribution Agreement With Digi-Key Electronics

Smart Sensor Devices announces that its Bluetooth low energy USB dongle called BleuIO will be available for immediate shipment worldwide through Digi-Key Electronics, a global electronic components distributor, as a result of a new distribution agreement.

The product is listed on Digikey and available for purchase.

“Through our distribution partnership with Digi-Key we are making it easier for the maker community worldwide to quickly and reliably access our solutions and accelerate their BLE application development efforts,”

said Axel G. Hammar Founder & CEO of Smart Sensor Devices.

About BleuIO

This BleuIO is a Bluetooth low energy USB dongle that can be used to create new BLE 5.0 application in the fastest and easiest way. Just use the AT Commands available on the device. Details about the AT commands can be found on getting started guide which will help anyone make a fast peripheral or central application (or both) without having to develop a single line of embedded code. 

It is a fully integrated solution, providing MCU and Bluetooth radio in one chip, based on Dialog Semiconductor latest Bluetooth chip DA14683. The FLASH based device permits field or boot upgradable, while the application is stored on FLASH memory. Custom settings can also be stored on FLASH memory or OTP for higher integrity. It supports Windows 10, Linux and macOS.

About Digi-Key Electronics

Digi-Key Electronics, headquartered in Thief River Falls, Minn., USA, is an authorized global, full-service distributor of electronic components, offering more than five million products, with over 1.3 million in stock and available for immediate shipment, from over 650 quality name-brand manufacturers. Digi-Key also offers a wide variety of online resources such as EDA and design tools, datasheets, reference designs, instructional articles and videos, multimedia libraries, and much more. Technical support is available 24/7 via email, phone and webchat. Additional information and access to Digi-Key’s broad product offering can be found by visiting www.digikey.com.

Share this post on :

BleuIO Javascript library available on npm

Bleuio Javascript library is available on npm(Node Package Manager).

Now you can easily access all the BleuIO functions from web browser.

Before starting to install our library, make sure you have Chrome 78 or later version installed on your system. You will also need to enable the #enable-experimental-web-platform-features flag in chrome://flags.
To do that, Open chrome://flags/#enable-experimental-web-platform-features in Google Chrome browser and enable this feature.

You can use chrome.serial to create web apps that can access the BleuIO AT commands easily using this library.

Now Install the library by running

npm i bleuio

npm automatically downloads and installs the most recent library on your system in the correct directory. To check that the installation went well, follow the simple readme file from

https://www.npmjs.com/package/bleuio

Follow this video if you find any difficulties.

Good luck on creating amazing Bluetooth Low Energy application using BleuIO

Share this post on :

BleuIO library available on PyPI

Bleuio Python library is available on PyPI (the Python Package Index) to simplify the life of Python developers.

Before starting to install our library, make sure your you have the latest python installed on your system.

If you have never installed a library from PyPI, you must install the pip tool enabling you to download and install a PyPI package. There are several methods which are described on this page.

Now Install the library by running

pip install bleuio

Easy, right? pip automatically downloads and installs the most recent library on your system in the correct directory. To check that the installation went well, you can launch a Python interpreter and run the following lines:

from bleuio_lib.bleuio_funcs import BleuIo
my_dongle = BleuIo()
my_dongle.start_daemon()
print(my_dongle.ati())

Good luck on creating amazing Bluetooth Low Energy application using BleuIO

Share this post on :