Skip to main content

RTC Battery Interface

The Radxa Fogwise® AIRbox Q900 features an onboard RTC battery interface for connecting a coin cell battery.

Hardware Connection

Connect a coin cell battery with the appropriate connector to the RTC battery interface on the Radxa Fogwise® AIRbox Q900. Please observe the correct polarity (positive/negative) when installing the battery.

Fogwise® AIRbox Q900 RTC Battery Connection
Coin Cell Battery Specifications
  • Interface: 2-Pin 1.25 mm
  • Operating Voltage: 3.0V

RTC Configuration

Verify RTC Hardware

Use the following command to verify if the RTC hardware is functioning properly.

radxa@airbox$
sudo dmesg | grep rtc

If the RTC battery is properly recognized, the terminal will display output similar to: registered as rtc0.

[    6.259233] rtc-ds1307 10-0068: registered as rtc0
[ 6.260658] rtc-ds1307 10-0068: setting system clock to 2025-08-06T08:39:15 UTC (1754469555)

Read RTC Time

Use the hwclock command in the terminal to read the current time from the RTC chip (/dev/rtc0).

radxa@airbox$
sudo apt update
sudo apt install util-linux util-linux-extra -y
sudo hwclock -r -f /dev/rtc0

Display System Time

Use the date command to display the current system time.

radxa@airbox$
date

Set RTC Time

If the RTC time is out of sync with the system time, you can use the hwclock command to write the current system time to the RTC.

radxa@airbox$
sudo hwclock -w -f /dev/rtc0

Verify RTC Functionality

  1. Note the current system time
  2. Disconnect the board's power and network connections
  3. Wait for approximately 10 minutes
  4. Reconnect the power
  5. Observe if the system time has been maintained correctly by the RTC

    You need to be logged into GitHub to post a comment. If you are already logged in, please ignore this message.

    Radxa-docs © 2026 by Radxa Computer (Shenzhen) Co.,Ltd. is licensed under CC BY 4.0