Category:LinuxHostTest3

Bluetooth Low Energy Wiki Main Page

Introduction
Read on the page for LinuxHostTest2, it is almost the same for this set of scripts except some cleanup of the code and fixes for some bugs. The code should be easier to understand. There is still plenty of room for improvement. I have no SensorTag to test the capabilities with this client. This is sample code and should help you to understand how the HCI interface works. In fact, I picked the code from LinuxHostTest2 and learned from it. I extensively used the manual: TI BLE Vendor Specific HCI Guide version 1.4 after reading almost completely the TI BLE Software Developer's Guide. Since these python scripts were just a milestone in my learning process, it is much likely my next work will be in C++, still using the HCI interface.

I strongly suggest you look at the code to learn from it.

Readme
Serial python package required (pyserial). Usage:


 * ls /dev/ttyACM*.
 * write the correct entry it into bluetooth.py. It can be also useful to "dmesg | grep ttyACM".
 * start with "python bluetooth.py".
 * type "d" for discovery.
 * type "e" for establishing the link.
 * type "1" for activating all notifications. "2" deactivates the notifications.
 * enjoy and type "t" for terminating the link.

Download
GitHub LinuxHostTest3 - Give it a try