Uplink Data
This chapter describes the uplink packets reported by the device.
Basic Information Packet
After joining the network, the device reports a packet containing the basic device information, totaling four reports. Example:
{
"all_configurations_request_by_device": 1,
"device_status": 1, //1=On
"lorawan_configuration_settings": {
"mode": 2 //1=Class B, 2=Class C
},
"oem_id": "0000",
"product_sn": "6556071d88020003",
"tsl_version": "v1.0",
"version": {
"firmware_version": "v1.1",
"hardware_version": "v1.2"
}
}
Periodic Data Packet
The device reports a data packet at a configured reporting interval. Example:
{
"celsius_internal_temp": 27.74,
"fahrenheit_internal_temp": 81.93,
"humidity": 51.1,
"infrared_cmd_status": {
"celsius_target_temp": 28,
"cmd": {
"air_volume": 0, //0=Auto, 3=Low, 4=Medium, 5=High
"cmd_type": 0,
"control_word": {
"command_available": 1,
"command_valid": 1,
"reserve": 0
},
"mode": 2, //0=Heat, 2=Cool, 3=Auto, 4=Dehumidification, 5=Ventilation
"switch": 1 //0=Off, 1=On
},
"fahrenheit_target_temp": 82.4
},
"running_state": {
"data_source": 0, //0=IR Command, 1=CT
"infrared_cmd": {
"switch_state": 1 //0=Off, 1=On
}
}
}
Alarm Packet
- Low battery alarm
example
{ "battery": 1, "low_battery_alarm": { "value": 1 } } - Temperature alarm
example
{ "temperature_alarm": { "over_range_alarm_trigger": { "celsius_temperature": 20.15, "fahrenheit_temperature": 68.27, "source": 0 //0=Internal, 2=External }, "type": 32 } } - Filter cleaning alarm
example
{ "filter_clean_remind": { "usage_time": 3600 //Unit: min } } - Temp limit alarm
example
{ "cmd_temp_limit": { "lower_range_alarm_trigger": { "celsius_high_threshold": 25.15, "celsius_low_threshold": 10.15, "fahrenheit_high_threshold": 77.27, "fahrenheit_low_threshold": 50.27, "celsius_ambient_temp": 20.15, "fahrenheit_ambient_temp": 68.27, "source": 0 //0=Internal, 2=External }, "type": 0 //0=Below alarm, 1=Above alarm } }
Status Change Packet
The device reports a packet when a parameter or status is changed.
- Configuration Change Report
A configuration change report is sent when air conditioner on/off status, target temperature, temperature control mode or fan mode changes. The change report format is the same as the periodic data report and not includes the temperature and humidity data.
- Battery Level Report.
A battery level report is sent when the controller is connected to the battery compartment and the battery level changes.
{ "battery": 50 } - Bluetooth Status Packet.A Bluetooth status packet will be reported once after the device joins the network or when Bluetooth pairing status changes. Example:
{ "ble_new_event": [ { "index": 0, "status": 2, //0=not pair, 1=paired, 2=disconnected "mac": "24e124826068b876" } ] }
Thermostat Data Packet
- Battery Level: transfer when the thermostat turns on or the battery level changes;
- Battery Alarm: transfer when a low battery alarm is triggered or cleared;
- Button Event Report: transfer when the corresponding button is pressed;
- Device Status: transfer when the thermostat turns off.
Example:
{
"data_transparent": {
"res_cmd": 0,
"res_cmd1": {
"command": 0, //0=battery level, 15=battery alarm, 13=button event report, 200=device status
"battery": 98
}
}
}
Historical Data Report
When data retransmission is triggered, the device will report a historical report at data retransmission interval.
{
"history": [
{
"humidity": 51.1,
"infrared_cmd_status": {
"cmd": {
"air_volume": 0,
"cmd_type": 0,
"control_word": {
"command_available": 1,
"command_valid": 1,
"reserve": 0
},
"mode": 2,
"switch": 1
},
"target_temp": 28
},
"internal_temp": 27.74,
"running_state": {
"data_source": 0,
"infrared_cmd": {
"switch_state": 1
}
},
"timestamp": 1788950657 //Unit: s
}
]
}