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

    New firmware release 1.0.0.b1

    Scheduled Pinned Locked Moved Announcements & News
    41 Posts 14 Posters 18.0k Views 15 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.
    • R Offline
      rskoniec @livius
      last edited by

      @livius I've just made an upgrade and sadly all BLE functionality is scan. So disappointed. :/

      The machine is working as good as it's code.

      1 Reply Last reply Reply Quote 0
      • D Offline
        daniel
        last edited by

        Hello,

        Next Friday release will introduce the functionality to connect, discover services, and open BLE sockets to send and receive data.
        We will also add options to specify timeouts and make the scan non-blocking.

        Cheers,
        Daniel

        P J 2 Replies Last reply Reply Quote 1
        • P Offline
          pwest @daniel
          last edited by

          @daniel

          Will we get the ability to read BLE beacon advertisements w/that rev?

          D 1 Reply Last reply Reply Quote 0
          • B Offline
            brotherdust
            last edited by

            @daniel thank you and everyone at pycom for working so hard to get this release out the door! May I ask what the ETA is for updating the associated GitHub repos?
            Thanks!

            D 1 Reply Last reply Reply Quote 0
            • R Offline
              RSK
              last edited by

              Thanks to Pycom team for hard work!

              It is good to start with basic functionality and provide the feedback and help in maturing the stack.

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

                @daniel
                Can we have more details of the planned Bluetooth API? To be honest
                "open BLE sockets to send and receive data" doesn't sound very Bluetooth LE-like thing to do at all, a protocol focused on ultra short interactions/notifications around data attributes.

                Please don't just rush into an BLE API that'll be useless in a few weeks just to tick "BLE" feature box. It's easier/better to spend a bit of time and do a bit of planning now rather than changing an implemented mess later.

                1 Reply Last reply Reply Quote 0
                • bmarkusB Offline
                  bmarkus
                  last edited by

                  AVAST antivirus reports installer as malware and do not let it install. I can disable it, but it is imposing a security risk in my WIN10 desktop.

                  1 Reply Last reply Reply Quote 0
                  • M Offline
                    mohpor
                    last edited by

                    @jmarcelino
                    Agreed 100%! BLE is not about transmitting data but more like advertising and patterns like publish/subscribe. I hope they'll implement true BLE stack the way it's supposed to be.

                    I wish Pycom updates their marketing material and in their documentation suggest that not all functionalities are implemented at the moment (more like 30% is implemented now) to help firms like mine that are going to place orders for large quantities of their devices know better! It is ridiculous to buy these gorgeous boards and not be able to at least determine a release date for your product because of the firmware not being ready for prime time! Because right now when you see their marketing material it is based on promises that don't even have a definitive schedule of release! I can't believe it!

                    1 Reply Last reply Reply Quote 1
                    • D Offline
                      daniel @jasonriedy
                      last edited by

                      @jasonriedy thanks for your feedback. Receiving and sending is the next feature that will be implemented. Regarding your application... how often are your BLE sensors sending data? Every 15 minutes as well or more frequently?

                      Cheers,
                      Daniel

                      J 1 Reply Last reply Reply Quote 0
                      • D Offline
                        daniel @pwest
                        last edited by

                        @pwest

                        Will we get the ability to read BLE beacon advertisements w/that rev?

                        Yes, you will be able to read the data from the advertisements.

                        1 Reply Last reply Reply Quote 0
                        • D Offline
                          daniel @brotherdust
                          last edited by

                          @brotherdust @RSK thanks for the feedback. We will release the source code to github over the weekend.

                          1 Reply Last reply Reply Quote 0
                          • D Offline
                            daniel @jasonriedy
                            last edited by

                            @jasonriedy right now the scan function only provides a list of the devices advertising in the neighborhood, so it makes sense to see only one entry in your tests. The next step (and it's what we will release soon) is to subscribe to a given device and get each of the advertisements messages that it sends.

                            Cheers,
                            Daniel

                            J 1 Reply Last reply Reply Quote 0
                            • D Offline
                              daniel
                              last edited by

                              @jasonriedy and @jmarcelino I think you both have very good ideas around what the BLE API should look like. I'd love to hear your suggestions around that. We have also been looking and bluepy for inspiration.

                              Cheers,
                              Daniel

                              J 1 Reply Last reply Reply Quote 0
                              • D Offline
                                DVE
                                last edited by DVE

                                Reinstalling the installer app every time is a bit annoying. Is it possible to have a direct link to a firmware file on the web site? Or at least please make OTA-version, that does not require install.

                                PS: I've updated the last firmware, machine.freq() is 160MHz now instead of 80. Magic :)

                                1 Reply Last reply Reply Quote 0
                                • J Offline
                                  jasonriedy @daniel
                                  last edited by

                                  @daniel Ah, but the Pi3 sees many devices advertising in the neighborhood.

                                  1 Reply Last reply Reply Quote 0
                                  • J Offline
                                    jasonriedy @daniel
                                    last edited by

                                    @daniel They're hive sensors from Broodminder. The sensor pipes up every few seconds, but we likely only need the measurements every 10-15 minutes. Assuming that dropping to low power / standby during that time can be made to work... Otherwise might just gather all the data but only send it every longish time. The actual processing is minimal. We just need to re-arrange the bytes into a packet to send of to TTN.

                                    B 1 Reply Last reply Reply Quote 0
                                    • M Offline
                                      mohpor
                                      last edited by

                                      @daniel
                                      I suggest you take a look at CurieBLE's API as well (https://www.arduino.cc/en/Reference/CurieBLE). It's related to Intel's IoT enabled MCU you can find on Arduino/Genuino 101.
                                      I have used it for a BLE project and it did the job quite beautifully.

                                      1 Reply Last reply Reply Quote 1
                                      • B Offline
                                        brotherdust @jasonriedy
                                        last edited by

                                        @jasonriedy
                                        I've been keeping an eye on the implementation status of the ULP coprocesssor functions in the upstream espressif-idf repository. Espressif has been making progress on it, but it doesn't seem like it's ready yet. Pycom did mention they updated their downstream idf repo, which means the ULP functions are present in C; but I didn't see any mention of ULP functions for MicroPython yet. Likely we will see it in them in the near future.

                                        For those interested, I'd strongly suggest occasionally reviewing the commit log on the upstream espressif-idf. It's pretty fun to watch!

                                        https://github.com/espressif/esp-idf/commits/master

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

                                          @daniel
                                          The cb (CoreBluetooth) module in Pythonista could give some inspiration as well

                                          http://omz-software.com/pythonista/docs/ios/cb.html

                                          B 1 Reply Last reply Reply Quote 0
                                          • B Offline
                                            brotherdust @jmarcelino
                                            last edited by

                                            One thought that occurs to me: what are other MP boards doing for BT (the BBC:micro comes to mind)? Isn't it more pythonic to not reinvent the wheel?

                                            J 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
                                            • 2
                                            • 3
                                            • 2 / 3
                                            • First post
                                              Last post

                                            Pycom on Twitter

                                            Pycom