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.3.0.b1

    Scheduled Pinned Locked Moved Announcements & News
    32 Posts 16 Posters 14.0k Views 17 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.
    • D Offline
      daniel
      last edited by

      Hello everyone,

      On this release we have added support for the RTC and for the BLE GATT server. These are the notes:

      • esp32: BLE GATT Server API with callback method for characteristics.
      • esp32/mods/: support RTC, enable missing utime functions, store files with valid timestamps.
      • esp32/mods/pybadc.c: remove leftover bit shift from CC3200, 12 bit works now.
      • esp32: General reliability improvements to threading.
      • py: Create MICROPY_PY_THREAD_GIL_DIVISOR constant to optimize GIL lock/unlock process.
      • esp32.mods/machpin: Add pin hold() method.
      • esp32/mods/moucrypto.c: Add hardware RNG as getrandbits().
      • esp32/mods/machtimer.c: Implement sleep_us().

      Check this example that shows how to create a functional BLE peripheral with just a few lines of code:

      https://docs.pycom.io/pycom_esp32/library/network.Bluetooth.html#network.service.callback

      Please check the docs for the now pretty much complete time module:

      https://docs.pycom.io/pycom_esp32/library/utime.html

      The newly added RTC class:

      https://docs.pycom.io/pycom_esp32/library/machine.RTC.html

      I hope that you find the new features useful, specially the ones for BLE. We are mindful that Bluetooth is a huge thing, so we will be adding more functionality to it every week.

      Cheers,
      Daniel

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

        This is going to be great!
        I have waited for this for so long!
        Thanks @daniel and the pycom team!

        Cheers,
        M.

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

          LoPy update went smooth.

          I see free RAM is reduced a bit again, it is 32k.

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

            @daniel Great features! Congrats for the Dev Team! Btw, I've got a question about rtc.init tzinfo argument. How to use it? Thanx

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

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

              Hi @daniel
              I have started to code for the new 1.3.0.b1 this morning and I just noticed that there is no event type for BLE Characteristic subscription, probably named CHAR_SUBSCRIBE_EVENT.
              Am I missing something? If not, do you have a plan for it in the near future?

              Also, it wouldn't hurt if we know when a peripheral has been connected to BLE server too!

              One more thing I want to suggest is that to keep the convention of your syntax uniform. Most (I'm to sure if all) call back functions have this syntax: callback(event_handler, event_type, ...) but the characteristic callback is callback(event_type, event_handler,...)
              I'm not sure if the function's argument list is important to the functionality itself. I'm not very python say :)

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

                The download section of the homepage is still with 1.0.0.b3 What is the update frequency here?

                Great that RTC is working now!

                J 1 Reply Last reply Reply Quote 0
                • J Offline
                  jswanljung @rvandam
                  last edited by

                  @rvandam The updater downloads the latest firmware. The updater version is not the firmware version.

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

                    @bmarkus yes, we are aware if this issue, and it's on the top of our list to bring the available RAM to around 96Kb once Espressif starts optimizing the IDF. They have assured us that it will be possible.

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

                      @daniel said in New firmware release 1.3.0.b1:

                      @bmarkus yes, we are aware if this issue, and it's on the top of our list to bring the available RAM to around 96Kb once Espressif starts optimizing the IDF. They have assured us that it will be possible.

                      God save us!

                      1 Reply Last reply Reply Quote 0
                      • affoltepA Offline
                        affoltep
                        last edited by

                        Good job guys!
                        Can you give us a forcast about the release date of the sleep modes and wifi/bluetooth disabling functions?

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

                          @mohpor good point about the order of parameters, we'll correct it.

                          Regarding the events, we will add more callbacks and events next week, which will include characteristic subscriptions, and notifications for when a connection is open. Thanks for the feedback.

                          Cheers,
                          Daniel

                          1 Reply Last reply Reply Quote 1
                          • R Offline
                            rvandam @jswanljung
                            last edited by

                            @jswanljung ah yes of course, I should have known. Thanks for your message

                            1 Reply Last reply Reply Quote 0
                            • C Offline
                              cfaessler
                              last edited by cfaessler

                              Thank you very much guys! The BLE API looks pretty easy to use and nicely designed. This will open us a lot of new possibilities!
                              I'm planning to setup a Web Bluetooth app which will allow us to easily configure our devices from a website :)

                              1 Reply Last reply Reply Quote 0
                              • I Offline
                                iotoz
                                last edited by

                                Where do we find this elusive firmware update? Can't wait to use it.
                                If it is not available yet, when?

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

                                  @iotoz it's here: https://www.pycom.io/support/supportdownloads/

                                  (Under Firmware Updates)

                                  Cheers,
                                  Daniel

                                  I 1 Reply Last reply Reply Quote 0
                                  • I Offline
                                    iotoz @daniel
                                    last edited by

                                    @daniel Thanks for that, I had checked there. I can still only find pycom_update_1.0.0.b3.tar.gz for linux, or any other platform.
                                    Any chance that you can post a direct link to the linux firmware 1.3.0.b1 ?
                                    Would be ideal to see a Git rep with the firmware versions to choose.

                                    D rcolisteteR 2 Replies Last reply Reply Quote 0
                                    • D Offline
                                      daniel @iotoz
                                      last edited by

                                      @iotoz that's the version of the updater only. Please use it and it will tell you that it's going to apply firmware version 1.3.0.b1 to your modules.

                                      1 Reply Last reply Reply Quote 0
                                      • F Offline
                                        Feiko
                                        last edited by

                                        Hi thanks for the update. I have a project connecting to websockets over ssl. Since last release my project broke, a ssl fix was promised this release however the project still doesn't run. Can I expect a fix in the next days? Is there a way to revert my firmware to a previous version? I like to revert to version 1.1.

                                        Keep up the good work.

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

                                          @iotoz yes we are aware that it was promised for this release but we haven't been able to fix it yet, sorry for the delay. Long story short, the TLS/SSL library runs out of memory while wrapping the socket. This problem was introduced when we enabled Bluetooth support. We have raised this issue with Espressif and they are working on optimizations to solve this once and for all. We were really hoping to sort it out for this release but unfortunately it wan't possible.

                                          Trust me, this is a major issue for us as well, and it's on the top of out list. We'll let you know once we have more news.

                                          Cheers,
                                          Daniel

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

                                            @iotoz we have made previous releases available, but 1.1.0 is not there. We'll make that one available on Monday. I'll let you know once that's done.

                                            Cheers,
                                            Daniel

                                            T 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
                                            • 1 / 2
                                            • First post
                                              Last post

                                            Pycom on Twitter

                                            Pycom