Перейти до вмісту

EXT0004: Device Clock

Цей контент ще не доступний вашою мовою.

  • Extension dependencies: none
  • Document status: Testing

This extension describes reading and changing the device’s internal clock time.

Read current device time in UTC.

Request:

<TID> 3900 0002 0007

Response:

<TID> 3900 0006 0007 <DTIME>
FieldLengthDescription
DTIME4 bytesUnix timestamp (seconds since 1970-01-01 UTC)

Errors:

CodeDescription
0010Time reading error

Set new device time.

Request:

<TID> 3900 0006 0008 <STIME>

Response:

<TID> 3900 0006 0008 <DTIME>
FieldLengthDescription
STIME4 bytesTime to set (Unix timestamp)
DTIME4 bytesCurrent device time (should equal STIME)

Errors:

CodeDescription
0010Time write error