omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    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

    Pythonista
    17
    28
    27086
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • roger
      roger last edited by

      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

      1 Reply Last reply Reply Quote 0
      • eliskan175
        eliskan175 last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • roger
          roger last edited by

          Really wish there was a way we could add features like this ourselves :(

          1 Reply Last reply Reply Quote 0
          • gkpm72
            gkpm72 last edited by

            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.

            1 Reply Last reply Reply Quote 0
            • ccc
              ccc last edited by

              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.

              1 Reply Last reply Reply Quote 0
              • roger
                roger last edited by

                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 :)

                1 Reply Last reply Reply Quote 0
                • ccc
                  ccc last edited by

                  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)

                  1 Reply Last reply Reply Quote 0
                  • eliskan175
                    eliskan175 last edited by

                    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?

                    1 Reply Last reply Reply Quote 0
                    • ccc
                      ccc last edited by

                      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.

                      1 Reply Last reply Reply Quote 0
                      • rcarmo
                        rcarmo last edited by

                        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 Reply Last reply Reply Quote 0
                        • randog
                          randog last edited by

                          +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.

                          1 Reply Last reply Reply Quote 0
                          • randog
                            randog last edited by

                            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 Reply Last reply Reply Quote 0
                            • wolf71
                              wolf71 last edited by

                              +1 for a library to access Bluetooth LE.

                              1 Reply Last reply Reply Quote 0
                              • eas
                                eas last edited by

                                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.

                                1 Reply Last reply Reply Quote 0
                                • roger
                                  roger last edited by

                                  With the upcoming NumPy/Matplotlib support, it'd be great to be able to collect and analyze data from BLE sensors.

                                  1 Reply Last reply Reply Quote 0
                                  • bminch
                                    bminch last edited by

                                    It would be really fantastic to see Pythonista support for Bluetooth LE!

                                    1 Reply Last reply Reply Quote 0
                                    • Marco
                                      Marco last edited by

                                      +1 for the Bluetooth LE absolutely, I agree with you guys.

                                      1 Reply Last reply Reply Quote 0
                                      • ihf
                                        ihf last edited by

                                        Is BT support included in v1.5?

                                        1 Reply Last reply Reply Quote 0
                                        • rkyymmt
                                          rkyymmt last edited by

                                          +1 for a library to access Bluetooth LE.

                                          1 Reply Last reply Reply Quote 0
                                          • LawAbidingCactus
                                            LawAbidingCactus last edited by

                                            <!DOCTYPE html>
                                            <strong>Yeah, did omz add BLE support in 1.5?</strong>

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Powered by NodeBB Forums | Contributors