Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 4b2dcb6a authored by Deepak Khatri's avatar Deepak Khatri :dog:
Browse files

Fix headings

parent 91b814a3
Branches
Tags
1 merge request!86Beagleplay add rtc
...@@ -6,7 +6,7 @@ Using RTC ...@@ -6,7 +6,7 @@ Using RTC
BeaglePlay has an onboard Real Time Clock (BQ32002). If you have installed a CR1220 battery, you can use this to keep the time even when the device has been powered off, or has no Internet access to get time using ntp servers. BeaglePlay has an onboard Real Time Clock (BQ32002). If you have installed a CR1220 battery, you can use this to keep the time even when the device has been powered off, or has no Internet access to get time using ntp servers.
Understanding multiple rtc devices Understanding multiple rtc devices
================================== ***********************************
On the BeaglePlay there's 2 separate RTC devices. One is the inbuilt one - which by default shows up as ``/dev/rtc0``. And the other is BQ32002 - which is it's own discrete chip - and shows up as ``/dev/rtc1`` by default. On the BeaglePlay there's 2 separate RTC devices. One is the inbuilt one - which by default shows up as ``/dev/rtc0``. And the other is BQ32002 - which is it's own discrete chip - and shows up as ``/dev/rtc1`` by default.
...@@ -22,7 +22,7 @@ You can find out the time set in both these clocks with the ``hwclock`` command. ...@@ -22,7 +22,7 @@ You can find out the time set in both these clocks with the ``hwclock`` command.
Note that the time in ``rtc0`` has been set after booting up using ntp servers automatically. Note that the time in ``rtc0`` has been set after booting up using ntp servers automatically.
Get the current time, timezone, and other settings Get the current time, timezone, and other settings
================================================== ***************************************************
.. code:: shell-session .. code:: shell-session
...@@ -38,7 +38,7 @@ Get the current time, timezone, and other settings ...@@ -38,7 +38,7 @@ Get the current time, timezone, and other settings
The above command shows the time set on BeaglePlay, the universal time, the time set on the RTC, the timezone, and more. From the above we can see that the time in UTC is 5:20hrs and the time as per the timezone is 00:20hrs. The above command shows the time set on BeaglePlay, the universal time, the time set on the RTC, the timezone, and more. From the above we can see that the time in UTC is 5:20hrs and the time as per the timezone is 00:20hrs.
Setting the timezone Setting the timezone
==================== ***********************
You can see the available timezones using the following command - You can see the available timezones using the following command -
...@@ -56,7 +56,7 @@ Once you have selected your timezone, you can set it as follows ...@@ -56,7 +56,7 @@ Once you have selected your timezone, you can set it as follows
Enable ntp Enable ntp
========== ************
We can set the time using ntp servers. This requires us to be connected to the Internet. We can set the time using ntp servers. This requires us to be connected to the Internet.
...@@ -65,7 +65,7 @@ We can set the time using ntp servers. This requires us to be connected to the I ...@@ -65,7 +65,7 @@ We can set the time using ntp servers. This requires us to be connected to the I
debian@BeaglePlay:~$ sudo timedatectl set-ntp true debian@BeaglePlay:~$ sudo timedatectl set-ntp true
Setting the time manually Setting the time manually
========================= ***************************
You might want to set the time manually on your BeaglePlay. In this case you need to first disable the ntp synchronization. You might want to set the time manually on your BeaglePlay. In this case you need to first disable the ntp synchronization.
...@@ -77,7 +77,7 @@ You might want to set the time manually on your BeaglePlay. In this case you nee ...@@ -77,7 +77,7 @@ You might want to set the time manually on your BeaglePlay. In this case you nee
Using the above command we have set the time to 0300hrs on 21st December 2023. Using the above command we have set the time to 0300hrs on 21st December 2023.
Using ``rtcwake`` to sleep Using ``rtcwake`` to sleep
======================== ****************************
If you would like to put your BeaglePlay to sleep for a predetermined period of time, you can use the ``rtcwake`` command If you would like to put your BeaglePlay to sleep for a predetermined period of time, you can use the ``rtcwake`` command
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment