LoRaWAN Thermostat Payload Protocol & Hex Decoder Guide

When integrating LoRaWAN HVAC controllers into a Building Management System (BMS) or an IoT platform, system integrators need a clear understanding of the application-layer payload format. Accurate decoding of device telemetry and reliable construction of downlink commands are essential for remote monitoring, configuration, and HVAC control.

This guide explains the Hex-based application-layer communication protocol used by E-TOP Controls LoRaWAN thermostat devices. It covers frame structures, function codes, parameter definitions, temperature encoding, checksum calculation, and practical downlink examples. The protocol documentation is intended to help BMS engineers, IoT developers, and system integrators understand how thermostat data is structured and how supported parameters can be queried or configured.

Quick Links: For an overview of our commercial wireless control solutions, visit the E-TOP LoRaWAN Thermostats page. For product-specific information, see the FT-CS08 LoRaWAN FCU Thermostat.

1. General Frame Architecture

LoRaWAN FCU Thermostat Hex Payload Protocol Debugging and Terminal Decoding Workbench

All device uplink and downlink data described in this protocol use hexadecimal (Hex) format. The application-layer protocol defines two different frame headers:

  • Uplink header: 0x55 — identifies data sent from the thermostat.
  • Downlink header: 0xAA — identifies configuration or query commands sent to the thermostat.

The device periodically reports data according to its reporting interval. It also reports relevant data when thermostat settings are changed locally or remotely.

1.1 Uplink Frame Structure

The basic uplink frame follows this structure:

Field Description
Frame Header 0x55
Function Code 0x01–0xFF
Data Length 0–255 bytes
Data Parameter value or status information
Checksum 1-byte checksum

Frame format: 55 [Function Code] [Data Length] [Data] [Checksum]

1.2 Downlink Frame Structure

The basic downlink frame uses the following structure:

Field Description
Frame Header 0xAA
Function Code 0x01–0xFF
Data Length 0–255 bytes
Data Query or configuration information
Checksum 1-byte checksum

Frame format: AA [Function Code] [Data Length] [Data] [Checksum]

For parameter functions that support both operations, the first byte in the data field identifies the requested operation:

  • 0x01: Query
  • 0x02: Write

The exact data length and remaining data bytes depend on the function code.

1.3 Checksum Calculation

The protocol uses a 1-byte additive checksum. To calculate it:

  1. Start with the frame header.
  2. Add every subsequent byte in the frame, excluding the checksum byte itself.
  3. Retain only the lowest 8 bits of the total.

The calculation is: Checksum = (Sum of all preceding bytes) & 0xFF

Example: Query the power status AA 01 01 01 AD

Calculation: AA + 01 + 01 + 01 = AD. Therefore, the checksum is AD.

Example: Set the thermostat to 18.0°C AA 07 03 02 00 B4 6A

Calculation: AA + 07 + 03 + 02 + 00 + B4 = 16A.
16A & FF = 6A. The checksum is 6A.

2. Function Code and Data Mapping

The function code identifies the parameter carried in an uplink report or addressed by a downlink command. The following table summarizes the parameter definitions in protocol V1.0.0TX.

Function Code Parameter Data Size Value / Definition
0x01 Power On/Off 1 byte 00: OFF; 01: ON
0x02 Child Lock 1 byte 00: Unlocked; 01: Locked
0x03 Operating Mode 1 byte 00: Ventilation; 01: Cooling; 02: Heating; 03: Auto
0x04 Fan Speed 1 byte 00: Auto; 01: Low; 02: Medium; 03: High
0x05 Relay Status 1 byte Bitmask; see below
0x06 Room Temperature 2 bytes 0.1°C resolution; range 0–500
0x07 Setpoint Temperature 2 bytes 0.1°C resolution; range 50–350
0x08 Keycard Status 1 byte 00: Not inserted; 01: Inserted
0x09 External NTC Temperature 2 bytes 0.1°C resolution; range 0–500
0x0A Cold PI Output 1 byte 0.1 V resolution; range 0–100
0x0B Heat PI Output 1 byte 0.1 V resolution; range 0–100
0x0C EC Output 1 byte 0.1 V resolution; range 0–100
0x0D Humidity 1 byte %RH; range 0–99
0x0E Manual / Program Mode 1 byte 00: Manual; 01: Program
0x0F Device Type 1 byte 01: C2524; 02: E90; 03: E60
0x10 Firmware Version 1 byte High 4 bits: major version; low 4 bits: minor version
0xA0 All Parameters 19 bytes Aggregated parameter data

2.1 Relay Status Bit Definition

Function code 0x05 reports the relay state as a single-byte bitmask.

  • Bit 0: Low fan
  • Bit 1: Medium fan
  • Bit 2: High fan
  • Bit 3: Valve 1
  • Bit 4: Valve 2
  • Bits 5–7: Reserved

For example, the value 0x0A corresponds to binary 0000 1010. This indicates that the medium fan and Valve 1 bits are set.

2.2 Temperature Data Encoding

Room temperature, setpoint temperature, and external NTC temperature use two bytes, with a resolution of 0.1°C. The protocol specifies MSB (Most Significant Byte) first.

For example:

  • 18.0°C → Decimal: 180 → Hex: 00 B4
  • 19.0°C → Decimal: 190 → Hex: 00 BE
  • 25.0°C → Decimal: 250 → Hex: 00 FA
  • 28.0°C → Decimal: 280 → Hex: 01 18

To decode a two-byte temperature value: Temperature (°C) = Hexadecimal value converted to decimal / 10. For example: 00 FA = 250 → 250 / 10 = 25.0°C.

2.3 Analog Output Encoding

The three analog output parameters use one hexadecimal byte each. The hexadecimal value is converted to decimal and multiplied by 0.1 V.

  • 0x0A Cold PI Output: 0.1 V resolution (e.g., Hex 0x28 = Decimal 40 → 4.0 V)
  • 0x0B Heat PI Output: 0.1 V resolution (e.g., Hex 0x41 = Decimal 65 → 6.5 V)
  • 0x0C EC Output: 0.1 V resolution (e.g., Hex 0x64 = Decimal 100 → 10.0 V)

2.4 Device Type and Firmware Version

Function code 0x0F identifies the device type (e.g., 0x01: C2524, 0x02: E90, 0x03: E60).

Function code 0x10 reports the firmware version in one byte. The high 4 bits represent the major version, while the low 4 bits represent the minor version. For example, 0x10 = V1.0.

3. Downlink Commands: Query and Write

Downlink commands allow a network-side application to query supported thermostat parameters or write configuration values. For the relevant function codes, the first byte in the data field specifies the operation: 0x01 (Query) or 0x02 (Write).

3.1 Query Commands (R/W Flag = 0x01)

The following examples show query frames defined in protocol V1.0.0TX:

  • Power Status: AA 01 01 01 AD
  • Child Lock: AA 02 01 01 AE
  • Operating Mode: AA 03 01 01 AF
  • Fan Speed: AA 04 01 01 B0
  • Relay Status: AA 05 01 01 B1
  • Room Temperature: AA 06 01 01 B2
  • Setpoint Temperature: AA 07 01 01 B3
  • Keycard Status: AA 08 01 01 B4
  • External NTC Temperature: AA 09 01 01 B5
  • Cold PI Output: AA 0A 01 01 B6
  • Heat PI Output: AA 0B 01 01 B7
  • EC Output: AA 0C 01 01 B8
  • Humidity: AA 0D 01 01 B9
  • Manual / Program Mode: AA 0E 01 01 BA
  • Device Type: AA 0F 01 01 BB
  • Firmware Version: AA 10 01 01 BC

A query response is returned through the corresponding uplink function code. For example, a query for power status uses function code 0x01, and the thermostat reports the status through an uplink frame with the 0x55 header.

3.2 Write Commands (R/W Flag = 0x02)

The following examples show supported configuration commands:

  • Turn thermostat ON: AA 01 02 02 01 B0
  • Turn thermostat OFF: AA 01 02 02 00 AF
  • Lock keypad: AA 02 02 02 01 B1
  • Set cooling mode: AA 03 02 02 01 B2
  • Set heating mode: AA 03 02 02 02 B3
  • Set fan to high speed: AA 04 02 02 03 B5
  • Set target temperature to 18.0°C: AA 07 03 02 00 B4 6A
  • Set target temperature to 28.0°C: AA 07 03 02 01 18 CF
  • Set manual mode: AA 0E 02 02 00 BC
  • Set program mode: AA 0E 02 02 01 BD

3.3 Example: Setting the Target Temperature

To set the thermostat target temperature to 18.0°C, first convert the temperature into the protocol's 0.1°C unit:

  • 18.0 × 10 = 180
  • 180 decimal = 00 B4 hexadecimal

The complete downlink command is: AA 07 03 02 00 B4 6A. The fields are:

  • Header: AA
  • Function Code: 07 (Setpoint temperature)
  • Data Length: 03 (Three data bytes)
  • Operation: 02 (Write)
  • Temperature: 00 B4 (18.0°C)
  • Checksum: 6A

4. Batch Query and Aggregated Telemetry

For applications that need to collect multiple thermostat parameters, the protocol provides function code 0xA0 for aggregated data operations. Instead of querying each parameter individually, a single batch query can request the combined telemetry payload.

4.1 Batch Query Command

The query example defined in the protocol is: AA A0 01 01 4C

The corresponding aggregated uplink uses function code 0xA0 and a data length of 0x13 (19 bytes):
55 A0 13 [19 bytes of aggregated data] [Checksum]

4.2 Aggregated Data Sequence

The protocol combines the parameter values in sequence. The documented example payload order includes: Power, Child Lock, Operating Mode, Fan Speed, Relay Status, Room Temperature, Setpoint Temperature, Keycard Status, External NTC Temperature, Cold PI Output, Heat PI Output, EC Output, Humidity, Manual / Program Mode, Device Type, and Firmware Version.

Integration note: The aggregated payload is a fixed 19-byte data block in the protocol. When implementing a decoder, preserve the documented field order and byte lengths. Do not assume that the 19-byte block uses the same layout as a sequence of independent complete frames.

5. Batch Write and Parameter Configuration

Function code 0xA0 also supports batch write operations. For a batch write, the parameter values are combined in the specified sequence. Parameters that are query-only are not changed by the write operation.

The protocol's batch-write example begins with: AA A0 14 02. Here, 0x14 indicates a 20-byte data field, including the write-operation byte (0x02). The remaining bytes carry the combined parameter values. When constructing a batch-write payload, retain the original parameter order and respect the read-only restrictions defined for each parameter.

6. Integrating the Hex Protocol into a BMS or IoT Platform

The application-layer payload described in this guide can be used as the basis for a decoder and encoder in a LoRaWAN application environment. A typical integration workflow includes:

  1. Receive the device's uplink payload from the LoRaWAN network server.
  2. Read the 0x55 frame header.
  3. Identify the function code and data length.
  4. Decode the parameter data according to its data type and byte order.
  5. Validate the checksum.
  6. Present the decoded values in the BMS, IoT dashboard, or cloud application.
  7. Construct a downlink frame when a supported parameter needs to be queried or changed.
  8. Calculate and append the checksum before submitting the command to the network server.

The application-layer Hex frame is separate from the LoRaWAN radio and network-layer framing. The network server is responsible for handling LoRaWAN communication, while the application integration handles the thermostat payload format described here. For step-by-step cloud configuration and a production-ready JavaScript codec, see our guide on how to deploy E-TOP LoRaWAN thermostats on ChirpStack and TTN.


Frequently Asked Questions (FAQ)

+ Q1: What is the difference between the 0x55 and 0xAA frame headers?
A: 0x55 identifies an uplink frame sent by the thermostat. 0xAA identifies a downlink command sent to the thermostat for querying or configuration.
+ Q2: How is the checksum calculated?
A: The checksum is calculated by adding all bytes from the frame header through the last data byte, then retaining the lowest 8 bits of the sum (Checksum = Sum & 0xFF). The checksum byte itself is excluded from the calculation.
+ Q3: How are temperature values encoded?
A: Temperature values use two bytes with a resolution of 0.1°C. The protocol uses MSB-first (Most Significant Byte first) byte order. For example, 00 FA represents decimal 250, which is equivalent to 25.0°C.
+ Q4: How can a BMS read the thermostat's current status?
A: The BMS can send a downlink query using the relevant function code (e.g., setting the R/W flag to 0x01). The thermostat then returns the requested information through an uplink frame using the corresponding function code.
+ Q5: Can multiple parameters be queried in one command?
A: Yes. Function code 0xA0 supports an all-parameter batch query. The response uses a 19-byte aggregated data block, following the parameter sequence defined in the protocol.

Need a LoRaWAN Thermostat for Your Commercial HVAC Project?

E-TOP Controls develops and manufactures HVAC thermostats for OEM and ODM customers, including wireless control solutions for commercial building applications. Whether your project requires custom payload mapping, BMS integration, or a private-label thermostat platform, our team can discuss the technical requirements with you.

Contact Our Team →