rtc: Difference between revisions
From Vivid Unit
mNo edit summary |
mNo edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 5: | Line 5: | ||
You can display the RTC with this command: | You can display the RTC with this command: | ||
<span color | <span style=color:blue>sudo hwclock --show</span> | ||
You can test the RTC with this command: | You can test the RTC with this command: | ||
<span color | <span style=color:blue>sudo hwclock --test</span> | ||
If you want the RTC to keep time when the device is not powered, you will need to connect a 3V battery to that small white connector. | If you want the RTC to keep time when the device is not powered, you will need to connect a 3V battery to that small white connector (number 26 in [[interfaces|this page]]). |
Latest revision as of 16:22, 17 February 2024
Yes, there is an RTC on Vivid Unit. It is actually integrated within the power supply management chip RK808.
There is no I2C interface for this RTC though, you can use hwclock command to access its data.
You can display the RTC with this command:
sudo hwclock --show
You can test the RTC with this command:
sudo hwclock --test
If you want the RTC to keep time when the device is not powered, you will need to connect a 3V battery to that small white connector (number 26 in this page).