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 development firmware release v1.19.0.b1

    Scheduled Pinned Locked Moved Beta Announcements & Development News
    firmware
    22 Posts 10 Posters 5.5k Views 10 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.
    • X Offline
      Xykon administrators
      last edited by Xykon

      A few things to note:

      Most of the readall() functions such as in uart have been removed as using read() without arguments does exactly the same. Please update your scripts accordingly.

      The function os.mkfs() has been replaced with os.fsformat(). To format the internal file system, use os.fsformat('/flash') and os.fsformat('/sd') to format SD cards (card needs to be mounted as '/sd')

      To mount the SD card, use this code:

      from machine import SD
      sd = SD()
      fs = os.mkfat(sd)
      os.mount(fs, '/sd')
      

      Christian Ehlers

      1 Reply Last reply Reply Quote 1
      • I Offline
        iwahdan
        last edited by iwahdan

        Re: New firmware release v1.19.0.b1
        Hi all,
        In this development releases we also added light sleep funtionality, it is more graceful sleep mode than deep sleep where digital peripherals, most of the RAM, and CPUs are clock-gated, and supply voltage is reduced. Upon exit from light sleep, peripherals and CPUs resume operation, their internal state is preserved. you can read more about Sleep modes in esp32 here .

        To Enter light sleep mode you can use API:
        machine.sleep(time in ms) if no arguments given module will sleep till next reset unless a wakeup source is configured before going to sleep.

        Please Note that:
        1- API machine_pin_deepsleep_wakeup was renamed machine_pin_sleep_wakeup as now you can use it for configuring wakeup source for both light and deep sleep.

        2- when Light sleep mode Wifi, bluetooth and LoRa are disabled and currently connection is not restored after wakeup (you have to restore it manually with scripting), we are currently working on automatically restoring Connection after light sleep wakeup.

        Thanks, waiting for your feedback :)

        Wahdan

        rcolisteteR G robert-hhR 3 Replies Last reply Reply Quote 3
        • I Offline
          iwahdan
          last edited by

          Also the following Pull requests has been incorporated in this Dev release:

          PR #165
          PR #146
          PR #145

          Still working on other Pull requests, to be merged in coming releases.

          Thanks for your support

          Wahdan

          1 Reply Last reply Reply Quote 2
          • S Offline
            soulsurfer
            last edited by

            Further to this thread:

            https://forum.pycom.io/topic/3207/uasyncio-support

            does the the new dev release include uasyncio support?

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

              Which file system used? Is it readable on WINDOWS/LINUX?

              X 1 Reply Last reply Reply Quote 0
              • X Offline
                Xykon administrators @bmarkus
                last edited by Xykon

                @bmarkus said in New development firmware release v1.19.0.b1:

                Which file system used? Is it readable on WINDOWS/LINUX?

                We're now using LittleFS for the internal flash file system in the development firmware rather than FatFS. SD cards keep using FatFS. There is a Fuse wrapper available.

                Christian Ehlers

                bmarkusB 1 Reply Last reply Reply Quote 1
                • T Offline
                  timh @soulsurfer
                  last edited by

                  @soulsurfer Truly hope this has made it in.

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

                    @xykon said in New development firmware release v1.19.0.b1:

                    @bmarkus said in New development firmware release v1.19.0.b1:

                    Which file system used? Is it readable on WINDOWS/LINUX?

                    We're now using LittleFS for the internal flash file system in the development firmware rather than FatFS. SD cards keep using FatFS. There is a Fuse wrapper available.

                    Thanks, I will try it. LittleFS looks good, however lack of timestamp can be an issue in certain applications, even if in many cases it is not important and device is not time synced.

                    X 1 Reply Last reply Reply Quote 0
                    • X Offline
                      Xykon administrators @bmarkus
                      last edited by Xykon

                      @bmarkus said in New development firmware release v1.19.0.b1:

                      Thanks, I will try it. LittleFS looks good, however lack of timestamp can be an issue in certain applications, even if in many cases it is not important and device is not time synced.

                      We are more concerned about users loosing all their code on the device because the file system got corrupted and reformatted during boot. If you need an fs with timestamps, you can connect an external SD card which still uses FatFS (so you can update the content on a PC).

                      Christian Ehlers

                      S 1 Reply Last reply Reply Quote 0
                      • rcolisteteR Offline
                        rcolistete @iwahdan
                        last edited by

                        @iwahdan
                        Any eletric current measurement already made on this light sleep mode ?

                        My "MicroPython Samples". My "MicroPython Firmwares" with many options (double precision, ulab, etc).

                        I 1 Reply Last reply Reply Quote 0
                        • I Offline
                          iwahdan @rcolistete
                          last edited by

                          Hi @rcolistete , yes in light sleep mode the current consumption on a Lopy is 3.5 mA with RTC peripherals ON

                          Wahdan

                          1 Reply Last reply Reply Quote 1
                          • S Offline
                            Sympatron @Xykon
                            last edited by

                            @xykon I looked into LittleFS and it supports custom attributes per file/folder. So I think timestamps can be implemented. Is there any plan to do so?

                            X 1 Reply Last reply Reply Quote 1
                            • X Offline
                              Xykon administrators @Sympatron
                              last edited by

                              @sympatron said in New development firmware release v1.19.0.b1:

                              @xykon I looked into LittleFS and it supports custom attributes per file/folder. So I think timestamps can be implemented. Is there any plan to do so?

                              I will ask the developer who implemented LittleFS to look into that. It would help if you could provide a use case where this is relevant.

                              Christian Ehlers

                              S 1 Reply Last reply Reply Quote 1
                              • S Offline
                                Sympatron @Xykon
                                last edited by

                                @xykon I don't have a specific use case. I just wanted to point out that it would not be too hard to implement, because @bmarkus said it might be an issue for some people.

                                For us it is a lot more important when this version will be available on GitHub. Since we use a custom firmware we cannot really use the new features until I can merge them with our fork.

                                1 Reply Last reply Reply Quote 1
                                • G Offline
                                  gregcope @iwahdan
                                  last edited by gregcope

                                  @iwahdan what is the assumed current category consumption in light sleep mode?

                                  I 1 Reply Last reply Reply Quote 0
                                  • I Offline
                                    iwahdan @gregcope
                                    last edited by

                                    Hi @gregcope for light sleep current consumption is 3.5 mA

                                    Wahdan

                                    1 Reply Last reply Reply Quote 0
                                    • robert-hhR Offline
                                      robert-hh @iwahdan
                                      last edited by

                                      @iwahdan machine.sleep(time): the time seem to be ms, not us.

                                      I 1 Reply Last reply Reply Quote 0
                                      • I Offline
                                        iwahdan @robert-hh
                                        last edited by iwahdan

                                        @robert-hh yes it is a mistake in my post, I’ve corrected it
                                        Thanks

                                        Wahdan

                                        1 Reply Last reply Reply Quote 0
                                        • S Offline
                                          Sympatron @Xykon
                                          last edited by

                                          This post is deleted!
                                          1 Reply Last reply Reply Quote 0
                                          • C Offline
                                            Colateral
                                            last edited by

                                            Do you push it in github for make build? There is still 1.18.0.

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

                                            Pycom on Twitter

                                            Pycom