• Recent
    • Docs
    • Github
    • 百度网盘
    • Onedrive
    • Official
    • Shop
    • Register
    • Login

    RTC时间保存问题

    Scheduled Pinned Locked Moved Pi CM5
    17 Posts 2 Posters 804 Views
    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.
    • G
      george @jugg
      last edited by

      @jugg
      测试如下核心板位置,关机的状态下电源是否正常?
      41454d43-fe36-4d1a-9620-638b680584e0-image.png

      J 1 Reply Last reply Reply Quote 0
      • J
        jugg @george
        last edited by jugg

        @george
        e80819dc-fb31-451a-b440-26ab0ac50369-lQDPJxOp5s9AMoHNBQDNAhqw8QGX8PGf_jsHG8U8n05uAA_538_1280.jpg
        这样加的电池
        测试了有电压
        板子能记录上一次关机的时间
        但是下次开机还是上次关机的时间
        关机的时候时间没跑

        G 1 Reply Last reply Reply Quote 0
        • G
          george @jugg
          last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • J
            jugg
            last edited by

            这个问题有办法吗
            还是说一定要加座子

            G 1 Reply Last reply Reply Quote 0
            • G
              george @jugg
              last edited by

              @jugg
              1.确认你外部电源供电电压是多少V
              2.关机之前查看一下硬件RTC的时钟情况,使用如下命令:

              cat /proc/driver/rtc
              

              3.关机一段时间再开机,再次查看硬件RTC时间

              cat /proc/driver/rtc
              

              然后把结果发上来。

              J 1 Reply Last reply Reply Quote 0
              • J
                jugg @george
                last edited by jugg

                @george

                1. 供电是3.3V

                联网更新时间之后
                e8862af4-83f9-4c6d-987b-8abfa3a26b5a-1731635404132_91630823-0F20-4f39-966D-14EFAA31F0A4.png

                关机 断开网络 几分钟之后开机
                e45956bc-d59e-4ee8-9f7d-5e3972e07b88-1731635882014_B91ED87A-E4CF-44dc-9E2F-2427C3682259.png

                本机的时间还是几分钟之前的

                G 1 Reply Last reply Reply Quote 0
                • G
                  george @jugg
                  last edited by george

                  @jugg
                  从上面的信息能够确认RTC的时间是正常的,关机时候是9:49,再开机是:9:57,只是RTC时间没有同步到系统。
                  日志也提供了方法:

                  timedatectl set-local-rtc 0
                  
                  J 2 Replies Last reply Reply Quote 0
                  • J
                    jugg @george
                    last edited by

                    @george
                    RTC时间同步到系统需要手动操作吗?

                    1 Reply Last reply Reply Quote 0
                    • J
                      jugg @george
                      last edited by jugg

                      @george
                      手动操作也无法把rtc时间同步到系统中
                      2cc45a39-d1bb-4dd9-9ed0-f680b96e157b-image.png

                      G 1 Reply Last reply Reply Quote 0
                      • G
                        george @jugg
                        last edited by

                        @jugg
                        CST时间和UTC时间的区别,并不是不能同步。也不是RTC不工作。系统层的问题百度一下。

                        1 Reply Last reply Reply Quote 0
                        • 1 / 1
                        • First post
                          Last post