As a followup, here is some interesting output from a recent test. I have the Thing Plus C sitting on my desk being powered by a 3.7V LiPo. My code sleeps for an hour, checks the battery voltage, and if it is >10% goes back to sleep for another hour. (I wanted to see how many days this would run and the answer is ~12 days.)
I was keeping timestamps in a logfile, with the timestamp coming from my RV-8803. It looks like it was keeping perfect time with the exception of two anomolies:
12/30/2021 07:16:40AM: Target time is still in the future.
12/30/2021 07:16:41AM: sleep time is: 3600
12/30/2021 08:16:18AM: NO emergency
165/30/20165 08:16:18AM: Voltage: 3.91 V
12/30/2021 08:16:18AM: Percentage: 65.57 %
12/30/2021 08:16:18AM: Alert: 1
12/30/2021 08:16:18AM: The nap time in microseconds is: 3600000000
12/30/2021 08:16:18AM: Started sleep : 3577 seconds ago
12/30/2021 08:16:18AM: Target time: 1642573782
12/30/2021 08:16:18AM: Time stamp: 1640852178
12/30/2021 08:16:18AM: Time left: 1721604
12/30/2021 08:16:18AM: Target time is still in the future.
12/30/2021 08:16:18AM: sleep time is: 3600
12/30/2021 09:16:05AM: NO emergency
165/165/20165 153:165:05PM: Voltage: 3.91 V
12/30/2021 09:16:05AM: Percentage: 65.28 %
12/30/2021 09:16:05AM: Alert: 1
12/30/2021 09:16:05AM: The nap time in microseconds is: 3600000000
12/30/2021 09:16:05AM: Started sleep : 3587 seconds ago
The date/timestamps all look correct except for those two above which start with 165. This seems to not have had any negative impact on how my project behaved, but its a little troubling when the clock is not reporting sane values. And once it has gone nuts like this, why would it go back to being correct?
I’m running one more test on this setup and then I will check the voltage of my RTC battery and replace it if necessary.
Any idea what’s going on here?
Thanks.