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. Example:
{
"all_configurations_request_by_device": 1,
"device_status": 1,
"lorawan_configuration_settings": {
"mode": 0 //0=Class A,2=Class C
},
"oem_id": "0000",
"product_sn": "6409f23258520003",
"tsl_version": "v1.0",
"version": {
"firmware_version": "v1.1",
"hardware_version": "v1.2"
}
}
Periodic Data Report
The device will report a data report at a configured reporting interval. The report content depends on the periodic report mode. Example when the periodic report mode is Only Status:
{
"battery": 100, //Unit: %
"humidity": 49.5, //Unit: %RH
"pir_status": 1, //0=Vacant,1=Occupied,2=Night Occupied
"fahrenheit_temperature": 80.49,
"celsius_temperature": 26.94
}
Status Change Report
The device reports a packet when a parameter or status is changed.
- Configuration Change Report
A configuration change report is sent when system status, target temperature, temperature control mode, fan mode or temperature control schedule ID changes. Example:
{ "celsius_target_temperature1": 18, //Heat target temperature (Dual Target) or Target Temperature "celsius_target_temperature2": 23.5, //Cool target temperature (Dual Target) "fahrenheit_target_temperature1": 64.4, "fahrenheit_target_temperature1": 74.3, "cfg_trigger_src": 1, //0=Non-button trigger, 1=Button trigger "execution_plan_id": 255, //Range: 0-7, 255=Not executed "fan_mode": 0, //0=Auto, 1=Circulate, 2=On, 3=Low, 4=Medium, 5=High "system_status": 1, //0=Off, 1=On "temperature_mode": 3 //0=Heat, 1=EM Heat, 2=Cool, 3=Auto, 4=Dehumidification, 5=Ventilation } - Bluetooth Status packet.
When communication mode is BLE + LoRa, 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, "mac": "24e124826068b876", "status": 2 //0=Not paired, 1=Paired, 2=Disconnected } ] }
Alarm Report
The device supports various types of alarm reports.
- Temperature
alarm
{ "temperature_alarm": { "collection_error": {}, "type": 0 //0=Collection error, 1=Under-range, 2=Over-range, 3=No data } } - Humidity
alarm
{ "humidity_alarm": { "collection_error": {}, "type": 0 //0=Collection error, 1=Under-range, 2=Over-range, 3=No data } } - Battery alarm
{ "battery_event": { "type": 1, //0=Normal, 1=Low battery voltage "low_volt": {} } } - Button 1 event report
{ "key_event": { "type": 0, //0=Button 1, 1=Button 2, 2=Button 3 "f1": {} } }