Keep-alive
Keep-alive decoding
Periodically sent message which contains the most important device data.
The data is described in the table below, where an example is also given in a second table.
0
-
01
Command byte for this packet.
1
7
X
Set to 1 when the temperature is negative.
1
6:0
XX
Internal temperature sensor data – T[°C].
2
-
XX
Relay state:
0x00 - OFF; 0x01 - ON.
Keepalive example
0
-
01
Command byte for this packet.
1
7
0
0: The temperature is positive.
1
6:0
1C
Internal temperature sensor:
0x1C = 28°C.
2
-
01
Relay state:
0x01 - ON.
Keepalive period
Byte index
Hex value - Meaning
0
02 – Command code to set keepalive period
1
XX – keep-alive period in minutes. Value 0x00 isn’t applicable. Default value 0A = 10min.
Example command: 0x020F
The example sets the keep-alive period to 15 minutes.
This command is used to get the period of the keep-alive command messages. Server sends the command code and the response is sent from the device together with the next keep-alive command.
The keep-alive in the example is omitted for clarity.
Byte index
Sent request
Received response
0
12 – The command code.
12 – The command code.
1
XX – device keep-alive period in minutes.
Example command sent from server: 0x12;
Example command response: 0x120F – the keep-alive is 15 minutes.
Last updated
Was this helpful?