Configuring RTC
The device contains an integrated RTC, which automatically reads the system time synchronously by default, and can manually read and write the system time into RTC.
- Open a terminal and run the following command to install the utility package.
sudo sudo apt install util-linux-extra
TIP
- If using the pre-installed operating system from our company, this utility package is already installed by default and does not need to be reinstalled.
- If you installed Raspberry Pi OS yourself and then installed the Firmware, you will need to install this utility package.
- Read the RTC time or write the system time to the RTC as needed.
- Execute the following command to read the RTC time manually.
sudo hwclock -r
- Execute the following command to write the system time into RTC.
sudo hwclock -w
