Real-time-clock

This page documents the [RTC] configuration section.

The CL2000 can internally maintain the wall-time when powered off. If the time has to be adjusted (e.g. to local time zones or fine tuning), this can be done using the adjustment field. If the time has to be completely reset, this can be done using the epochTime field (e.g. if the internal battery has been replaced).


Default

[RTC]
epochTime = 0                   ; Epoch time (0 to keep current time)
adjustment = 0                  ; Adjustment in sec to current time (max +-129600 sec)

Fields explained

epochTime

This field is used to set the device time in case it has been lost or is significantly off.

The value is entered as epoch time (seconds). When the value zero (0) is entered, the device retains the current internal time.

Type

Minimum

Maximum

Example

Integer

5000[1]

1000000

250000

Sequence for resetting the internal time:

  1. Set the epochTime to the new internal time (using the configuration file)

  2. Power on the device using the main DB9 connector

  3. Allow the device ~10 seconds to load the configuration file and set the time

  4. Power off the device

  5. Set the epochTime to 0 to retain the time set above (else it will reset on each power cycle)

  6. Optionally do adjustments using the adjustment field

Note

Remember to set epochTime back to 0.

Examples of epochTime values (YYYY/MM/DD HH:MM:SS):

  • 2020/01/01 12:00:00: 1577880000

  • 2022/06/22 12:00:00: 1655899200

Several tools can be used generate the epoch time format, see e.g. epochconverter.com.


adjustment

Is used to make adjustments to the device time. The adjustment value is in seconds.

Type

Minimum

Maximum

Example

Integer

-129600

129600

0