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

Feature request: Support of BlueGiga adapters #4

Closed
birgander2 opened this issue Jan 26, 2018 · 9 comments
Closed

Feature request: Support of BlueGiga adapters #4

birgander2 opened this issue Jan 26, 2018 · 9 comments

Comments

@birgander2
Copy link

birgander2 commented Jan 26, 2018

It would be really cool to additionally support BlueGiga BLED112 adpators through pygatt just like the pyb00st package. This would allow the usuage of your package for people who have only such an adaptor (like me) and enables support for Windows, where pygattlib is not available.

Probably not that complex if you analyse a bit the implementation in pyb00st. If I find some time, I'll maybe try if I can get something running (on Linux, though)

@undera
Copy link
Owner

undera commented Jan 28, 2018

This is great idea. I welcome any code contributions here!

@undera
Copy link
Owner

undera commented Jan 28, 2018

Also, one thing I don't like about pygatt is that it relies on gatttool executable, which means everything will be much slower.

@sidikalamini
Copy link

sidikalamini commented Feb 7, 2018

pygatt use gatttool for BlueZ, for BLED112 will use BGAPI. not sure whether BGAPI is faster/slower though

@undera
Copy link
Owner

undera commented Feb 7, 2018

It would be great if somebody would try implementing this and providing PR. My attempts were unsuccessfull.

@birgander2
Copy link
Author

birgander2 commented Feb 7, 2018

I made some tries last week. I got the notifier running, but the wait_for_devices didn't work as expected. However, I must admit that I have very few experience with all this gatt/bluetooth stuff.

@undera
Copy link
Owner

undera commented Feb 7, 2018

@birgander2 Can you show your code changes? It might be first step into right direction

@netding
Copy link

netding commented Jun 3, 2018

Dear Andrey
Congratulations to this very professional work. I plan to use the Lego Boost set to teach BLE communication, sensor technology and robotics at Reutlingen University (Mechatronics).
So I adapted the BlueGiga part of the pygatt library to your pylgbst library. It took me some time, but now your library also runs on Windows 7 using the BLE112 dongle. Unfortunately gattlib als well as bluepy did not work for me on a Raspberry Pi3 and Raspberry Pi Zero W. So I switched for the Linux part to the gatt-python (gatt) library.
You can find the source code as well as a (sorry German language) student instruction on my web site https://www.tec.reutlingen-university.de/prof-mack/projekte/python-und-bluetooth-low-energy-lernen-mit-lego-boost/
I had to simplify your library a little bit to get it on a bachelor mechatronics student level ;-)
Thank you again for your great work on the Lego Boost robotics set!
Stefan

@undera
Copy link
Owner

undera commented Jun 4, 2018

That's cool, Stefan!
I will review your code for potential improvements of main repo

@undera
Copy link
Owner

undera commented Jul 18, 2018

I have just released a big change with version 0.6, making changes from @netding code example.
It allows now to use different backend libraries, not only gattlib. Can somebody please experiment with installing other libs and trying 4 available connection classes, possibly one of them will work for you?
I simply have no Windows OS machine, nor BlueGiga adapters...

@undera undera closed this as completed Feb 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants