Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    Bluetooth libraries news?

    Scheduled Pinned Locked Moved Discussion
    wipy 2.0bluetoothlibraryrelease
    5 Posts 2 Posters 1.9k Views 2 Watching
    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.
    • O Offline
      ozeta
      last edited by

      Hi!

      I see that there is BLE in documentation and implementation for wipy2, but what about the state of "standard" bluetooth protocol?

      Did you have an official release date for the apis or someone created a custom library or...do you know how can I create my own library?

      J 1 Reply Last reply Reply Quote 2
      • J Offline
        jmarcelino @ozeta
        last edited by jmarcelino

        @ozeta
        I suppose Bluetooth Classic will have to be supported on a profile by profile basis.

        Currently the core sdk (ESP-IDF) only supports A2DP sink profile (to accept an audio stream, such as implementing a speaker or headphone) which to me seems difficult to apply to MicroPython due to latency, RAM limitations and lack of any audio functions.

        While there are many things you can do with "raw" access to HCI layer realistically any new profiles/libraries will have to be implemented in ESP-IDF first: https://github.com/espressif/esp-idf/tree/master/components/bt

        Since the Bluetooth protocol is huge with hundreds of profiles it would be helpful to know what kind of roles would you like to see implemented first?

        O 1 Reply Last reply Reply Quote 0
        • O Offline
          ozeta @jmarcelino
          last edited by ozeta

          @jmarcelino
          Hi jmarceino!
          I'm currently working on my Thesis internship. My University gave me a multisensor device used as a "blackbox" (arduino + bluetooth shield + some sensors). It records some data and sends a stream of data through bluetooth (no ble) every 1/5/10 seconds.
          Currently there is a working android app and, as far as I know, reversing it, the app pairs with the device, opens a bluetooth RFCOMM socket and send/receive a stream (as a serial service, for what I understand) of plaintext values or maybe a json txt.
          This week I'll have more details about the protocol that it's implemented and I have to use

          Do you have some information I can use to get the Wipy2 work with this blackbox? My job is to get data from the blackbox and use the wipy to store the data using wifi or lte connection when the fipy will be released :D
          If I can't get a solution to use the bluetooth, i'll have to open the blackbox, change the adapter with a wifi shield and build the relative application both sides
          Thanks!

          J 1 Reply Last reply Reply Quote 0
          • J Offline
            jmarcelino @ozeta
            last edited by jmarcelino

            @ozeta
            You'd need to implement the RFCOMM protocol in C ( similar in complexity to implementing TCP ) and bring in Bluetooth pairing support as well from the ESP-IDF so I'd say it's a very complicated project just for reading some values from an Arduino - but if you do it I'd definitely read your thesis :)

            Maybe you can ask your advisor if you can replace the Bluetooth shield with a BLE module, you can get them for like $5 these days. Or WiFi as you say.

            O 1 Reply Last reply Reply Quote 0
            • O Offline
              ozeta @jmarcelino
              last edited by

              @jmarcelino
              it sure would be very interesting but unfortunately i work almost alone and I have 3/4 months to get the things full working, and i was lucky enogh to start the project in summer season. I hope the gpy/fipy will be released before september so i can build the lte support for it or i'll have to deal with another problem lol

              1 Reply Last reply Reply Quote 0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • 1 / 1
              • First post
                Last post

              Pycom on Twitter

              Pycom