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

    rtc.init() is not working on v1.20.2.r2

    Scheduled Pinned Locked Moved GPy
    4 Posts 4 Posters 68 Views 4 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.
    • J Offline
      Jean Ferreira
      last edited by

      Re: Firmware Release v1.20.2.r2

      rtc.init is no longer working in following build:

      Pycom MicroPython 1.20.2.r2 [v1.11-3a7776d] on 2020-11-23; GPy with ESP32

      rtc = RTC()
      rtc.init((2017, 2, 28, 10, 30, 0, 0, 0))
      rtc.now()
      (1970, 1, 1, 0, 30, 25, 65284, None)

      C 1 Reply Last reply Reply Quote 1
      • C Offline
        CLOPEAU Denis-Serge @Jean Ferreira
        last edited by

        @Jean-Ferreira said in rtc.init() is not working on v1.20.2.r2:

        Re: Firmware Release v1.20.2.r2

        rtc.init is no longer working in following build:

        Pycom MicroPython 1.20.2.r2 [v1.11-3a7776d] on 2020-11-23; GPy with ESP32

        rtc = RTC()
        rtc.init((2017, 2, 28, 10, 30, 0, 0, 0))
        rtc.now()
        (1970, 1, 1, 0, 30, 25, 65284, None)

        same problem for wipy 3 !

        1 Reply Last reply Reply Quote 0
        • G Offline
          Gijs
          last edited by

          Hi,
          We are aware of the issue, once a solution is available, I will let you know!
          Note, there seems to be some sort of workaround: https://forum.pycom.io/topic/6616/rtc-utime-issues-in-1-20-2-r2/4
          Gijs

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

            @Gijs using rtc.ntp_sync() you'll get the proper time. After that, rtc.init() seems to be ignored.

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

            Pycom on Twitter

            Pycom