Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue Mar 14, 2015 · 2 comments
Open

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

GoogleCodeExporter opened this issue Mar 14, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 18 Jun 2014 at 1:38

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 23 Jun 2014 at 1:53

  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 13 Aug 2014 at 10:59

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant