EXT0004: Device Clock
Цей контент ще не доступний вашою мовою.
- Extension dependencies: none
- Document status: Testing
This extension describes reading and changing the device’s internal clock time.
Commands
Section titled “Commands”0007 Get Time
Section titled “0007 Get Time”Read current device time in UTC.
Request:
<TID> 3900 0002 0007Response:
<TID> 3900 0006 0007 <DTIME>| Field | Length | Description |
|---|---|---|
DTIME | 4 bytes | Unix timestamp (seconds since 1970-01-01 UTC) |
Errors:
| Code | Description |
|---|---|
0010 | Time reading error |
0008 Set Time
Section titled “0008 Set Time”Set new device time.
Request:
<TID> 3900 0006 0008 <STIME>Response:
<TID> 3900 0006 0008 <DTIME>| Field | Length | Description |
|---|---|---|
STIME | 4 bytes | Time to set (Unix timestamp) |
DTIME | 4 bytes | Current device time (should equal STIME) |
Errors:
| Code | Description |
|---|---|
0010 | Time write error |