Device time & time zone
Device time zone
This command offsets the time from the currently set one, allowing to compensate for the time zone difference.
When converting the value to decimal take care to account for the fact that the leftmost bit is the sign one, thus you would the signed 2's complement in order to have both positive and negative time zone offsets.
Byte index
Hex value / Meaning
0
5F – command code
1
Offset hours (two's complement), range [-12:12]. Applied when setting time (0x5D).
Example command: 0x5FFD
FD = -3, so when setting time with command 0x5D three hours will be subtracted and the final result will be 3 hours behind.
Hex value – Meaning
Byte index
Sent request
Received response
0
60 – The command code.
60 – The command code.
1
Time correction in hours, as per Set command.
Example command: 0x60
Example response: 0x6003
0x03 => three hours are added when setting time by 0x5D command.
Time zone lookup table:
-12
0xF4
12
0x0C
-11
0xF5
11
0x0B
-10
0xF6
10
0x0A
-9
0xF7
9
0x09
-8
0xF8
8
0x08
-7
0xF9
7
0x07
-6
0xFA
6
0x06
-5
0xFB
5
0x05
-4
0xFC
4
0x04
-3
0xFD
3
0x03
-2
0xFE
2
0x02
-1
0xFF
1
0x01
Device time
In order the device to execute accurately its heating events in terms of week day, hour and minute, its time need to be set prior execute any heating event. If the LoRaWAN network server is unable to provide time to the device, when it's requested, the user is advised to set the device time once per week or at least at device join. Care should be taken to not remove the device batteries after it becomes offline. Otherwise the device time will be lost. Device operates with unsigned 32-bit UNIX timestamp which provides date and time until year of 2106.
This command is automatically appended to the device uplink following device join and later with period of 7 days.
If possible, the user should set the device time once per week or at least at device join. Care should be taken to not remove the device batteries after it becomes offline. Otherwise, the device time will be lost.
Byte index
Hex value / Meaning
0
5D – command code
1
Unix timestamp – MSB.
…
…
4
Unix timestamp – LSB.
Example command: 0x5D6860D660
0x6860D660 = 1751176800 – converted from unsigned 32-bit UNIX timestamp the value corresponds to Sun Jun 29 2025 06:00:00 GMT+0000.
Hex value – Meaning
Byte index
Sent request
Received response
0
5E – The command code.
5E – The command code.
1 … 4
Unix timestamp – MSB … LSB.
Example command: 0x5E
Example response: 0x5E6860D660
0x6860D660 = 1751176800 – converted from unsigned 32-bit UNIX timestamp the value corresponds to Sun Jun 29 2025 06:00:00 GMT+0000.
Automatic time syncing using LoRaWAN Network Server
This command allows to stop/resume periodical time requesting by the corresponding MAC command. If not stopped, the device requests time from the network at join and later with period of 7 days.
Byte index
Hex value / Meaning
0
6D – command code
1
00 – stops periodical time requesting. 01 – resume periodical time requesting (default for the device).
Example 1: 0x6D00 – stops periodical time requesting.
Hex value – Meaning
Byte index
Sent request
Received response
0
6E – The command code.
6E – The command code.
1
00 – periodical time requesting by MAC command is disabled. 01 – periodical time requesting by MAC command is enabled.
Example request 1: 0x6E
Example response 1: 0x6E01 - periodical time requesting by MAC command is enabled.
Last updated
Was this helpful?