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 Candidate v1.20.0

    Scheduled Pinned Locked Moved Announcements & News
    firmware
    81 Posts 17 Posters 23.0k Views 18 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.
    • P Offline
      panda
      last edited by panda

      Actually that error is not related to writing a file. I am not sure what is causing it. It does not appear to happen in direct response to any particular user scripts/code, but in safe mode it is not an issue.

      1 Reply Last reply Reply Quote 0
      • C Offline
        combaindeft @iwahdan
        last edited by

        @iwahdan

        Hi,

        I'm still having DNS Resolve issues with this release too

        https://forum.pycom.io/topic/4055/nb-iot-in-hungary/3
        https://forum.pycom.io/topic/4021/usocket-getaddrinfo-issues

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

          Hello All ,

          I've released a new version of Release candidate v1.20.0.rc1 having the following updates:

          Improvments

          • Exposed Keyboard Interrupts Control to Micropython

          Bug Fixes

          • Fixed DeepSleep high current Consumption when LTE is not Initialized
          • Increased Delay before initialising RGB color to not Have RGB turn green at startup

          Link to release on GitHub https://github.com/pycom/pycom-micropython-sigfox/releases/tag/v1.20.0.rc1

          you can also download this Firmware via Firmware updater using development as firmware type.

          Wahdan

          D robert-hhR S E 5 Replies Last reply Reply Quote 1
          • D Offline
            danielm @iwahdan
            last edited by

            @iwahdan
            Did you test deep sleep current levels also on G01?

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

              @danielm yes, with same results as GpY

              Wahdan

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

                @iwahdan Very good. Thanks. I will try it this evening.

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

                  @iwahdan
                  But when I try format to littleFS. It don't work.

                  P X 2 Replies Last reply Reply Quote 0
                  • P Offline
                    Paul Thornton @serafimsaudade
                    last edited by

                    @serafimsaudade HI. Can you give us any more details on the issue your having. do you get any error messages?

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

                      @serafimsaudade said in New Firmware Release Candidate v1.20.0.rc0:

                      But when I try format to littleFS. It don't work.

                      Please try the following:

                      import pycom
                      pycom.bootmgr(fs_type=pycom.LittleFS, reset=True)
                      

                      This will update the configuration to use LittleFS instead of FatFS. The board will reset automatically.

                      Similarly you can switch back to FatFS:

                      import pycom
                      pycom.bootmgr(fs_type=pycom.FAT, reset=True)
                      

                      Note: When switching between LittleFS and FatFS, the flash file system will be re-formatted thus erasing all content.

                      Christian Ehlers

                      S 1 Reply Last reply Reply Quote 0
                      • S Offline
                        serafimsaudade @Paul Thornton
                        last edited by

                        @paul-thornton

                        When using the Pycom Upgrade software for linux. When I chose LittleFS, the pycom finish the upgrade and start with FatFs

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

                          @xykon

                          Tks, that works :)

                          1 Reply Last reply Reply Quote 0
                          • S Offline
                            serafimsaudade
                            last edited by serafimsaudade

                            Now I'm having another problem :/.
                            When I call rtc.ntp_sync(pool.ntp.org) func the rtc get the correct time and date but the rtc.synced() never return True.

                            Using the 1.19.0.b5 fw this problem disappear.

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

                              @iwahdan The Exposed Keyboard Interrupts Control to Micropython does not work. Reason:
                              The API changes the persistent flags, but the code in machuart.c and telnet.c looks at the non-persistent flags. IMHO, these non-persistent flags are not required, because it is a user script which modifies the flags and can set it back. At the REPL loop in pyexec.c, these flags are anyhow reset to the default state, once REPL gets control again. So better use the mechanism of the initial PR.

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

                                Hello @robert-hh, sorry I misunderstood your initial PR, somehow I thought there was a need to control keyboard interrupts in normal REPL, which why I had to do these modifications for it to work.
                                I agree with you, your PR is then sufficient and no further modifications needed, will correct this shortly

                                Wahdan

                                1 Reply Last reply Reply Quote 0
                                • E Offline
                                  EinarJ @iwahdan
                                  last edited by

                                  @iwahdan Why is PSM and eDRX not used when running deinit(dettach=False)?

                                  D 1 Reply Last reply Reply Quote 0
                                  • D Offline
                                    danielm @EinarJ
                                    last edited by

                                    @einarj
                                    I did not perform any tests with those features yet but I think you must set requested mode and related timers by AT commands, e.g.:

                                    Power Saving Mode Setting:
                                    +CPSMS=[<mode>[,<Requested_Periodic-RAU>[,<Requested_GPRSREADYtimer>[,<Requested_PeriodicTAU>[,<Requested_Active-Time>]]]]]

                                    E 1 Reply Last reply Reply Quote 0
                                    • E Offline
                                      EinarJ @danielm
                                      last edited by

                                      @danielm I've tried, but it doesn't seem to have any effect. I can see it's being disabled by default in the LTE init, so I've set the command manually after that. The PSM should,in theory, cause the LTE modem go into PSM mode right after the data is sent, but that doesn't seem to happen. Maybe it's becsuse the the flag for going into PSM is not being passes to the modem. But, PSM is useless if you don't cannot setup eDRX. The modem gives me an error if I try the setting specified in the AT-command specs. Do you know if the vendor has implemented these features into the FW?

                                      D 1 Reply Last reply Reply Quote 0
                                      • D Offline
                                        danielm @EinarJ
                                        last edited by

                                        @einarj
                                        There are some eDRX-related commands as well:

                                        • eDRX Read Dynamic Parameters: +CEDRXRDP
                                        • eDRX Setting: +CEDRXS
                                        • Specific eDRX Settings: +SQNEDRX

                                        I have no idea if PSM/eDRX commands are implemented and working as expected because I did not test them yet.

                                        @iwahdan @Paul-Thornton
                                        In my opinion Pycom should provide statement regarding readiness of PSM/eDRX features implemented in the modem's firmware because without these features it is not possible to develop battery-powered solutions with reasonable long battery life-time which is the main purpose of NB-IoT.
                                        There should also be tutorial available in the documentation because of importance of these features.

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

                                          @danielm said in New Firmware Release Candidate v1.20.0.rc0:

                                          @iwahdan @Paul-Thornton
                                          In my opinion Pycom should provide statement regarding readiness of PSM/eDRX features implemented in the modem's firmware because without these features it is not possible to develop battery-powered solutions with reasonable long battery life-time which is the main purpose of NB-IoT.
                                          There should also be tutorial available in the documentation because of importance of these features.

                                          I will try to post more details about PSM/eDRX as soon as possible. Generally the standard 3GPP AT commands should be used using lte.send_at_command(). However in order to tell the modem to go into PSM/eDRX mode, lte.deinit(dettach=False) should be called. The wrong spelling of dettach aside, the modem checks the state of the flow control pins to see if it is OK to go into low power mode. The deinit command releases the flow control pins thus allowing the modem to go into the configured sleep mode.

                                          In regards to the release candidate, after uploading v1.20.0.rc2 earlier today, which includes the latest Sequans firmware updater and Pybytes scripts, I have realised an error was made in pycom_config.h that causes the fs_type flag to be stored at an incorrect position. This is also the reason why the setting from the firmware updater is ignored. I have already uploaded a correction to the release-candidate branch as I had issues updating the perviously used v1.20.0.rc0 branch. I will upload a new version shortly but wanted to give people a heads-up to check the file system type in the firmware updater when updating. This should only affect people who used the commands I posted above to manually switch the fs_type with the pycom_bootmgr command.

                                          Christian Ehlers

                                          D S 4 Replies Last reply Reply Quote 1
                                          • D Offline
                                            danielm @Xykon
                                            last edited by

                                            @xykon
                                            Yesterday I did some tests with PSM-related AT commands.
                                            Is seems that following commands should sent before attaching (after first boot). Of course timer values of '+CPSMS' may be adapted.

                                            self.lte.send_at_cmd('AT+CPSMS=1,,,"01000001","00000001"')
                                            self.lte.send_at_cmd('AT+CEREG=4')
                                            

                                            After successful attach '+CEREG?' returns Active time and Periodic TAU values allocated by the network which may be identical to requested values (this is the case in NB-IoT network of Slovak Telekom) but in other networks they may be limited by the network.

                                            It seems that '+CPSMS' command has to be called after consequent boots from deep-sleep (with LTE already attached) as well.

                                            E 1 Reply Last reply Reply Quote 2

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

                                            Pycom on Twitter

                                            Pycom