Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Raspberry BLE peripherals alternative to bleno

Until now I have developed several programs to use in my Raspberry Rpi2 and RPi3 as BLE perifpherals using bleno. Can anyone tell me if there is something alternative to Bleno, in Python or even better in C, to develop a code for a BLE peripherals service for my Raspberry?

like image 589
Alessandro Ferri Avatar asked Aug 14 '16 08:08

Alessandro Ferri


2 Answers

I've had this same pain as you - trying to get a good BLE Peripheral role library for python - so I went ahead and ported Bleno to python2/3. It's still a WIP, but the Echo demo works just fine.

https://github.com/Adam-Langley/pybleno/

And it's on pypi as "pybleno"

Of course, a big shout out to Sandeep Mistry for the fantastic original node codebase.

Hopefully people find it useful.

like image 79
Adam Avatar answered Sep 21 '22 23:09

Adam


Well you can always use the HCI_CHANNEL_USER feature in Linux to talk to the Bluetooth controller directly (from C for example). In fact that's exactly what bleno does. Just follow the HCI protocol in the Bluetooth specification.

like image 29
Emil Avatar answered Sep 18 '22 23:09

Emil