Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Request: Bluetooth LE support
-
There's already a programming app out with support for Bluetooth LE (techBASIC), and this seems like it could be a good feature for Pythonista.
Here's a site that describes communicating with a Bluetooth sensor on the iPad: http://www.byteworks.us/Byte_Works/Blog/Entries/2012/10/31_Controlling_the_TI_SensorTag_with_techBASIC.html
-
I agree, I made a post a couple days ago asking about Bluetooth keyboard capabilities. Pythonista needs interaction to Bluetooth, it can be a very powerful tool.
-
Really wish there was a way we could add features like this ourselves :(
-
This would be an "insanely great" feature to have when things like the Pebble smartwatch turn on BLE support, and it would bring Pythonista to a whole new audience.
Please consider it. As Roger said many of us would write it ourselves if we could. For now I'm stuck with making URL scheme callbacks to my own BLE app which is clunky.
-
Guys... Check out py-ble-hci on http://processors.wiki.ti.com/index.php/Category:BluetoothLE
That appears to be 100% pure Python library e.g. should run in Pythonista if you can install it. It does require pyserial and construct to work. Construct also seems to be 100% pure Python. The only question is whether pyserial is too. Roll up you sleeves and see if you can get this all working on Pythonista.
-
Thanks for the link, but alas at some point it'd need a way to talk to the hardware, and Pythonista has no such provision AFAIK :(
Like I mentioned, techBASIC on iOS already does this so it should be possible -- if omz decides to add it :)
-
I did install pyserial but, it in turn relies on "termios" which is unfortunately not part of the Pythonista install. (http://docs.python.org/2/library/termios.html)
-
You guys saw the guy post about using Pythonista to communicate to Raspberry Pi? It may have some ideas for communicating wirelessly to Bluetooth devices. I'm not sure. http://omz-software.com/pythonista/forums/discussion/188/simple-alarm-device-home-automation-using-a-raspberry-pi-and-pythonista-on-the-ipad
I plan on getting a Raspberry Pi in the future, it's cheap enough and seems like a fun learning device. BUT the point I'm making is can this work on bluetooth devices?
-
My advise is: buy the Pi... It will not break your bank account and they are a hoot to hack on! Buy the see thru plastic case at the same time to protect the board... Also a compatible combination WiFi/Bluetooth USB dongle is a useful addition.
The other post you reference tells you how to pass messages between Pythonista and the Raspberry Pi. You could then use the Bluetooth dongle in the Pi to relay messages to/from the TI SensorTag. Once I get my tag in the mail, I will post some Pythonista <--> Raspberry Pi <-> TI SensorTag code.
-
I'd like to bump this up. BLE support in Pythonista would be a great educational tool, and judging from WWDC 2012 sessions 703 and 705 the framework is rather simple, so a custom Python module that talked directly to it seems quite doable.
Judging from sample code like https://developer.apple.com/library/IOS/samplecode/TemperatureSensor/Introduction/Intro.html, we'd need something like a Manager wrapper that exposed status and device enumeration methods, a Peripheral class that exposed the actual device characteristics and sent little messages to and fro.
-
+1 for a library to access Bluetooth LE.
Another iOS app, techBASIC, provides this - it is sweet.
But, of course, I would far prefer to work in python. ;-)
I have no experience developing hw protocol libraries, so probably not the right guy to start such a project, but I would be happy to help however I can - use cases, testing, doc.
-
Oops, just noticing that this thread was in fact started with a reference to the techBASIC BLE feature - haha.
Anyway, love to see Pythonista get similar capability.
I am brand new to Pythonista, just discovered it, very psyched about what it seems capable of already.
-
+1 for a library to access Bluetooth LE.
-
I too would love this since I picked up a few TI SensorTags at a meetup.
It isn't clear though that there are any real python Bluetooth LE libraries out there. py-ble-hci, near as I can tell, is for doing some limited testing by way of a bluetooth dongle.
-
With the upcoming NumPy/Matplotlib support, it'd be great to be able to collect and analyze data from BLE sensors.
-
It would be really fantastic to see Pythonista support for Bluetooth LE!
-
+1 for the Bluetooth LE absolutely, I agree with you guys.
-
Is BT support included in v1.5?
-
+1 for a library to access Bluetooth LE.
-
<!DOCTYPE html>
<strong>Yeah, did omz add BLE support in 1.5?</strong>