AldwinP / pybluez

Automatically exported from code.google.com/p/pybluez
GNU General Public License v2.0
0 stars 0 forks source link

Support for Bluetooth Low Energy (BLE) / GATT #68

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
It would be great to have wrappers for the Bluetooth Low Energy features added 
in the recent version(s) of BlueZ, to allow for the following features to be 
controlled from a python application:

 * discovery of BLE devices and their GATT services
 * reading and writing of BLE attributes/values
 * creation and management of GATT services

I am interested in contributing, but not sufficiently experienced with the 
pybluez source code to create sensible abstractions for the low-level functions.

Original issue reported on code.google.com by aprsdr...@googlemail.com on 18 Jun 2014 at 1:38

GoogleCodeExporter commented 8 years ago
Any contribution will be more then wellcome
But I see no easier way  then get familiar with source code.

Maybe You could try to first implement "discovery of BLE devices and their GATT 
services"

As a starting point You could look at discover_devices function in 
https://code.google.com/p/pybluez/source/browse/trunk/bluetooth/bluez.py
it uses _bt.hci_inquiry which is implemented in 
https://code.google.com/p/pybluez/source/browse/trunk/bluez/btmodule.c#1973

Original comment by karu...@wp.pl on 23 Jun 2014 at 1:53

GoogleCodeExporter commented 8 years ago
There is also Ian Harvey's project
https://github.com/IanHarvey/bluepy
It wraps bluez 5.4, python sources are in public domain

As of windows support:
http://social.msdn.microsoft.com/Forums/en-US/65c9cf4e-e225-4fc3-8c2c-66cd2401d3
ed/how-to-establish-a-connection-from-windows-8-pc-to-a-bluetooth-low-energy-dev
ice

"The Windows 8 Bluetooth GATT apis requires that the device be paired using the 
built-in UI and does not allow application to connect to an arbitrary Bluetooth 
LE device."
So I am not sure how much can be implemented there

Original comment by karu...@wp.pl on 13 Aug 2014 at 10:59