Keep-alive

The keep-alive is a periodic message sent by the FCT with sensor data and more. In this page you will learn how to decode keepalive messages and how to set the keepalive interval.

Keep-alive decoding

Periodically sent message which contains the most important device data.

The data is described in Table 1. In Table 2, an example packet is given.

Byte
Value
Meaning

0

01

Command byte for this packet.

1

XX

Internal temperature sensor data, bits 15:8 – T[15:8].

2

XX

Internal temperature sensor data, bits 7:0 - T[7:0].

t [°C] = (T[15:0] - 400) / 10.

3

XX

Relative Humidity data; RH [%] = (XX * 100) / 256.

4

XX

Target temperature data, bits 15:8 – T[15:8].

5

XX

Target temperature data, bits 7:0 - T[7:0].

t [°C] = T[15:0] / 10.

6

XX

Operational mode:

00: Ventilation;

01: Heating; 02: Cooling.

7

XX

Displayed fan speed: ECM fan 3-speed fan 00: Auto Auto

01: Speed 1 NA

02: Speed 2 Low 03: Speed 3 NA 04: Speed 4 Medium 05: Speed 5 NA 06: Speed 6 High

8

XX

Actual fan speed: ECM fan 3-speed fan

01: Speed 1 NA

02: Speed 2 Low

03: Speed 3 NA 04: Speed 4 Medium

05: Speed 5 NA 06: Speed 6 High

07 : Fan off Fan off

9

XX

Valve status:

00: Valve is closed;

01: Valve is open.

10

XX

Device status:

00: The device is off;

01: The device is on.

Table 1.

Keepalive example

Byte
Value
Meaning

0

01

Command byte for this packet.

1

02

Internal temperature sensor data, bits 15:8 – T[15:8].

2

88

Internal temperature sensor data, bits 7:0 - T[7:0].

t [°C] = (T[15:0] - 400) / 10 t [°C] = (0 x 0288 - 400) / 10 = (648 - 400) / 10 = 24.8°C.

3

80

Relative Humidity data; RH [%] = (XX * 100) / 256 (0 x 80 * 100) / 256 = (128 * 100) / 256 = 50% RH

4

01

Target temperature data, bits 15:8 – T[15:8].

5

09

Target temperature data, bits 7:0 - T[7:0].

t [°C] = T[15:0] / 10. t [°C] = 0x0109 / 10 = 265 / 10 = 26.5°C.

6

01

Operational mode: 01: Heating.

7

02

Displayed fan speed: 02: Speed 2 (for ECM) / Low (for 3-speed)

8

02

Actual fan speed:

02: Speed 2 (for ECM) / Low (for 3-speed)

9

01

Valve status: 01: Valve is open.

10

01

Device status: 01: The device is on.

Table 2.

Keepalive period

This command is used to set the FCT's keep-alive message period The keep-alive data in the example is omitted for clarity.

Byte index

Hex value - Meaning

0

02 – Command code to set keepalive period

1

XX – keep-alive period in minutes. Default value: 0x0A (10 minutes). Value 0x00 isn’t applicable.

Example command: 0x0203

The example sets the keep-alive period to 3 minutes.

Note: The period value must respect the LoRaWAN messages duty cycle limitations. Otherwise the message will be sent when this is allowed. Also, the bigger period value, the less battery discharge. In most cases, the minimum allowed period is 3 minutes and recommended values are 10 minutes or greater.

Last updated