Restore date and time after reboot

Hello Nordic Support,

I have a question regarding the real-time clock (RTC) functionality on the nRF9160.

  1. RTC availability

    • Does the nRF9160 have an internal real-time clock that can preserve time across reboots?

  2. Behavior on reboot

    • We observe that after a device reboot (without loss of power or battery), the time is reset.

    • I can understand losing time when the device is fully powered off or the battery is disconnected, but why is this happening during a reboot?

  3. Use case

    • Our firmware collects events and stores them in flash. Each event requires a timestamp.

    • Additionally, we generate JWT tokens, which also depend on accurate time.

    • In some scenarios, the device may reboot while in an area without network coverage. After the reboot, we need to continue collecting events with valid timestamps, but without network access we cannot re-sync the time.

Question:
Is there an option or recommended method to prevent the time from resetting during a reboot (e.g., preserving RTC state across soft resets), so that the device can continue operating without immediate network connectivity?

Parents Reply Children
No Data
Related