Bluetooth Low Energy (BLE, Bluetooth LE, also known as Bluetooth Smart) is a wireless personal area network technology designed and marketed by the Bluetooth Special Interest Group aimed at novel applications in the healthcare, fitness, beacons, security, and home entertainment industries. Compared to Classic Bluetooth, BLE is intended to provide considerably reduced power consumption and cost while maintaining a similar communication range. Further details in the Bluetooth Low Energy Wikipedia entry.
While LabVIEW supports Classic Bluetooth (on Windows), it does not provide support for BLE. To solve this issue, a workaround is to use a BLE USB dongle to handle the communication. http://digital.ni.com/public.nsf/allkb/4BA51235CFC8519086257F5E005E81D5
The BLE Toolkit for LabVIEW is an implementation of the BGAPI protocol v1.10 (by Silicon Labs). BGAPI protocol is a based command and response protocol that allows the Bluetooth Smart stack (in Silicon Labs BLE devices) to be controlled form an external host and an application over USB/UART.
This Toolbox has been developed and tested with the BLE USB dongle BLED112
To install the BLE Toolkit for LabVIEW, the VIPM (VI Package Manager) by JKI is needed.
- Download and install VI Package Manager
- Download and install the latest VI package for the BLE Toolkit for LabVIEW from here
- Obtain a BLED112 USB dongle (e.g. in Digi-Key)
- Install the drivers provided by Silicon Labs
- Verify the COM number for the dongle in Windows Device Manager
- Open the
ble_scan_devices.vi
example located in:<Labview>\examples\BLE\Examples\ble_scan_devices.vi
- Select the COM port corresponding to the BLED112 USB dongle
- Run the VI
ble_scan_devices.vi
Front Panel
Three examples are provided with the BLE Toolkit for LabVIEW. These
examples are located in: <LabVIEW>\examples\BLE\Examples\ble_scan_devices.vi
-
ble_scan_devices.vi
Discover and connect to BLE devices -
ble_read_write_characteristics.vi
Read and Write a Characteristic value, providing the UUID for Service and Characteristic -
ble_read_hr_monitor.vi
Acquire Heart Rate data stream, for devices with Heart Rate Profile
Alternatively, the files in this repository can be used to build the VI Package for the BLE Toolkit for LabVIEW.