Time receiver, Setting system time, Reading system time – Vaisala Hydromet Data Collection Platform User Manual

Page 154: Setting system time reading system time

Advertising
background image

User’s Guide ______________________________________________________________________

152 __________________________________________________________________M210785EN-E

Time Receiver

With the Time receiver function, you can set and read the system time
without opening a service connection. Add and connect the Time
receiver
to a serial port in the Equipment view of Lizard Setup
Software. You can then set and read the system time through the serial
port using the command strings described below.

Setting System Time

To set the system time, give the following command:

<SOH> TIME <STX> YYYY MM DD HH MM SS <ETX>
<checksum>@

The system responds to the TIME command with

ACK

when the

command is executed successfully or

NAK

when the command fails. The

response is optional and you can disable it in the Measurements view
of Lizard.

The checksum is the 2-character 8-bit XOR calculated from the
characters between <STX> and <ETX>.

You should also enter the Time tolerance in Lizard. When the
difference between the system time and the new time setting is smaller
than the given Time tolerance, the system time is not adjusted but the
system responds with

ACK

.

Reading System Time

To read the system time, give the following command:

TIME <CR>

The response string is as follows:

?<STX>YYYY-MM-DD HH:MM:SS<ETX><checksum>@

The checksum is calculated as described above.

Advertising