Keep-alive

Keep-alive explanation

The Keep-alive is a periodically sent message which contains the most important device data.

T-Valve has two types of keep-alive packets, depending on the payload length, a Short and a Long one.

Short payload

Example packet: 0x0044

00[HEX] = 0[DEC] -> T, [°C] = 0/2 = 0°C

The water temperature is 0°C

44[HEX] = 01000100[BIN] -> [7] = 0 -> Valve is open [6:0] = 01000100-> T, [°C] = (68-20)/2 = 24°C

Long Payload

Example packet: 0х64620000A4

64620000A4[HEX] = 0110 0100 0110 0010 0000 0000 0000 0000 1010 0100[BIN]

Byte 0: [7:5] = 011 -> Reason for packet “Open” or “Close” push-button is pressed [3] = 0 -> No box tamper detected [2] = 1 -> Wire is not working [1] = 0 -> No flood detected [0] = 0 -> No magnet presence is detected

Byte 1: [7] = 0 -> Alarm not verified [6] = 1 -> Manual open enabled [5] = 1 -> Manual close enabled [4:0] = 00010 -> Firmware version 2

Byte 2: [7:0] = 0000 0000 -> Close time 0 minutes

Byte 3: [7:0] = 0000 0000 -> Open time 0 minutes

Byte 4: [7:0] = 1010 0100 -> Battery voltage, [mV] = 164*8 + 1600 = 2912mV

Last updated