Event
RDK X5 Time Synchronization Without Network: RTC Battery and hwclock Solution
1 reports · 1 sources
The D-Robotics Developer Community provides a solution for inaccurate time on the RDK X5 after reboot without network: connect a 2~3.3V rechargeable battery to the board's RTC battery connector (connector 2) so that the RTC maintains time when power is off. Specific steps: first use date -s to set the system time, then use hwclock -w to write it to the RTC; at the same time, add hwclock -s to a startup script so that after each boot the system time is automatically written back from the RTC, with no need to rely on network time synchronization.
Report timeline
- Time synchronization solution for RDK X5 without network access: RTC battery and intranet NTP
If the RDK X5 shows an inaccurate time after rebooting without a network connection, you can connect a 2–3.3V rechargeable battery to the onboard RTC battery connector (connector 2) to keep time. After setting the time with date -s, write it to the RTC with hwclock -w, then add hwclock -s to startup so the system time is automatically written back.
D-Robotics Developer Community ·