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 Release Candidate 1.20.2.rc11 for Pygate

    Scheduled Pinned Locked Moved Beta Announcements & Development News
    23 Posts 9 Posters 437 Views 9 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.
    • S Offline
      serafimsaudade
      last edited by

      Hi,
      I'm testing this release and when I try to set the RTC it don't update.

      >>> from machine import RTC
      >>> rtc = RTC()
      >>> rtc.now()
      (1970, 1, 1, 0, 5, 16, 423776, None)
      >>> rtc.init((2014, 5, 1, 4, 13, 0, 0, 0))
      >>> rtc.now()
      (1970, 1, 1, 0, 6, 38, 714800, None)
      

      This code works on all previous releases.

      P 1 Reply Last reply Reply Quote 1
      • P Offline
        peterp @serafimsaudade
        last edited by peterp

        @serafimsaudade said in New Release Candidate 1.20.2.rc11 for Pygate:

        Hi,
        I'm testing this release and when I try to set the RTC it don't update.

        >>> from machine import RTC
        >>> rtc = RTC()
        >>> rtc.now()
        (1970, 1, 1, 0, 5, 16, 423776, None)
        >>> rtc.init((2014, 5, 1, 4, 13, 0, 0, 0))
        >>> rtc.now()
        (1970, 1, 1, 0, 6, 38, 714800, None)
        

        This code works on all previous releases.

        Indeed I can reproduce the problem that init() does not set the rtc. Thanks for flagging! Now that I checked this, also the two previous pygate releases did not set the rtc from init(). The latest pybytes firmware does set it correctly for me.

        Just to gauge the severity - do you actually need to set it to 2014? rtc.ntp_sync() seems to work ok, for me in all three pygate releases rc9, rc10, rc11 and latest stable 1.20.2.rc0.

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

          I'm testing on wipy, gpy, fipy and lopy4.
          The 2014 is a example only for show the bug.
          I need to set the rtc manualy. Because my devices connect to the internet over modem3G and request the date and time over API, i don't use wifi.

          P 1 Reply Last reply Reply Quote 1
          • P Offline
            peterp @serafimsaudade
            last edited by

            @serafimsaudade said in New Release Candidate 1.20.2.rc11 for Pygate:

            I'm testing on wipy, gpy, fipy and lopy4.

            There is no pygate FW release for the FiPy! Are you looking for the Pygate firmware or the "normal" Pybytes one?

            If you are indeed looking for the pygate firmware, could you then double check for me whether init() does actually work for you in pygate 1.20.2.rc10 and rc9?

            The 2014 is a example only for show the bug.
            I need to set the rtc manualy. Because my devices connect to the internet over modem3G and request the date and time over API, i don't use wifi.

            ntp_sync is not restricted to wifi. It should work just as well over LTE.

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

              Sry I maybe was not explicit. English e not my native language.
              I don't have a pygate.
              This Fw release 1.20.2.rc11 is only for the pygate? I can use it on other products (wipy, gpy, fipy, lopy4)?
              I'm running custom frozen code, I compile fw from source code.
              My devices are custom hardware with pycom cpu's, and all have thirdparty modem 2G/3G/4G.
              I don't use NB-IOT/LTE Cat1, because the mobile cover are not good enough.

              P 1 Reply Last reply Reply Quote 0
              • P Offline
                peterp @serafimsaudade
                last edited by

                @serafimsaudade Ah, ok. Now I understand. From a build-from-source perspective, pygate and base/pybytes are now all merged together in the same branch. The differences are:

                • latest pygate fw is built from latest public commit in Dev branch with make VARIANT=PYGATE
                • latest pybytes fw is built from an earlier commit (783192e) using make VARIANT=PYBYTES. speaking simplified this is before/without any of the pygate code.
                • for base variant we don't publish prebuilt binaries any more, but this might be what you build yourself.

                Do you mind telling me how you build? That would help narrow down the rtc.init() issue.

                For the time being you could try reverting to the tag for the stable release v1.20.2.r0. Let me know whether that works for you.

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

                  yes the v1.20.2.r0, rc9, rc10 are ok.

                  Build the FW:

                  make ESPPORT=/dev/ttyUSB0 BOARD=WIPY FS=LFS flash
                  
                  P 1 Reply Last reply Reply Quote 0
                  • P Offline
                    peterp @serafimsaudade
                    last edited by

                    @serafimsaudade said in New Release Candidate 1.20.2.rc11 for Pygate:

                    yes the v1.20.2.r0, rc9, rc10 are ok.

                    well, ok. I get it now - you're building from source, so we were talking past each other here. When you say rc9 (or10) you refer to the git tag v1.20.2.rc9 which means pybytes, while I was talking about the binary release of the pygate firmware. Those are not the same thing

                    Build the FW:

                    make ESPPORT=/dev/ttyUSB0 BOARD=WIPY FS=LFS flash
                    

                    understood. thanks!

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

                      @peterp
                      Ahh ok. :). I thought it was implied, that I was talking about the git repository. Sry.

                      Best regards,

                      1 Reply Last reply Reply Quote 1
                      • R Offline
                        Roy k carroll
                        last edited by

                        @serafimsaudade said in New Release Candidate 1.20.2.rc11 for Pygate:

                        yes the v1.20.2.r0, rc9, rc10 are ok.

                        1 Reply Last reply Reply Quote 0
                        • J Offline
                          Jean Ferreira @peterp
                          last edited by

                          @peterp This is a problem for me as well - I set my G01 RTC from a another RTC chip on our OEM board.

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

                            @mikestanley464 said in New Release Candidate 1.20.2.rc11 for Pygate: VidMate | Vidmate for pc | Canli macizle

                            thanks for it.

                            No reply?

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

                              @mikestanley464 said in New Release Candidate 1.20.2.rc11 for Pygate:

                              thanks for it.

                              no reply. .?

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

                                @mikestanley464 Pycom Ltd. ceased operation. There will not be a reply.

                                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