Uplink Data
This chapter describes the reported data of the device.
Basic Information Packet
The device will report a basic information packet whenever joining the network.
| Item | Byte | Command | Description |
|---|---|---|---|
| Device Status | 1+1 | c8 | 00: Off, 01: On |
| TSL Version | 1+2 | df | Example: 01 02 = V1.2 |
| Device Request | 1 | ee | Send after reset |
| Device Version | 1+8 | da | Hardware version (2B) + Software version (2B) + 00000000 |
| OEM ID | 1+2 | d9 | 4 digits |
| Device Type | 2+1 | cf00 | 00: Class A, 01: Class B, 02: Class C, 03: Class C to B |
| Serial Number | 1+8 | db | 16 digits |
- Example:
-
Json output after using Milesight default decoder:
df0100 ee db6409f23258520003 da0102010100000000 d90000 c801 cf0000 Command Value df TSL Version: 0100=>V1.0 ee Reset db SN: 6409f23258520003 da Hardware version: 0102=V1.2 Software version: 0101=V1.1
d9 OEM ID: 0000 c8 01: Device is On cf00 00: Class A { "all_configurations_request_by_device": 1, "device_status": 1, "lorawan_configuration_settings": { "mode": 0 }, "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.
| Item | Byte | Command | Description |
|---|---|---|---|
| Battery Level | 1+1 | 00 | UINT8, Unit: % Note: This only report when the device is
powered by batteries. |
| Temperature | 1+ 2 | 01 | INT16/100, Unit: °C |
| Humidity | 1+2 | 02 | UINT16/10, Unit: %RH |
| Occupancy Status | 1+1 | 08 | 00=Vacant, 01=Occupied, 02=Night
Occupied Note: This only report when Occupancy
Detection is enabled. |
- Example:
- Json output after using Milesight default decoder:
006401860a02ef010801 Command Value 00 Battery: 64=>100% 01 Temperature: 86 0a => 0a 86=2694/100=26.94°C 02 Humidity: ef 01 => 01 ef=495/10=49.5% RH 08 Occupancy status: 01=Occupied { "battery": 100, "celsius_temperature": 26.9, "fahrenheit_temperature": 80.5, "humidity": 49.5, "pir_status": 1 }
Status Change Report
The device reports a packet when a parameter or status is changed.
- Configuration Change ReportA configuration change report is sent when system status, target temperature, temperature control mode, fan mode or temperature control schedule ID changes.Example:
Item Byte Command Description Temperature Control Mode 1+1 03 00=Heat, 01=EM Heat, 02=Cool, 03=Auto, 04=Dehumidification, 05=Ventilation Fan Mode 1+1 04 00=Auto, 01=Circulate, 02=On, 03=Low, 04=Medium, 05=High Execution Plan 1+1 05 Plan ID, Range: 00-0f (ff=Not executed) Target Temperature (Single Target Mode) 1+2 06 INT16/100, Unit: °C Heat Target Temperature (Dual Target Mode) 1+2 06 INT16/100, Unit: °C Cool Target Temperature (Dual Target Mode) 1+2 07 INT16/100, Unit: °C System Status 1+1 67 00=Off, 01=On Json output after using Milesight default decoder:67010303062e09040005ff Command Value 67 01=System On 03 Temperature Control Mode: 03=Auto 06 Target Temperature: 2e 09 => 09 2e =2350/100=23.5°C 04 Fan Mode: 00=Auto 05 Execution Plan: ff=Not executed { "celsius_target_temperature1": 23.5, "execution_plan_id": 255, "fahrenheit_target_temperature1": 74.3, "fan_mode": 0, "system_status": 1, "temperature_mode": 3 } - 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:
Byte Command Description 1+10 ba Byte 1: 00 Byte 2: 00=Not paired, 01=Paired, 02=Disconnected
Byte 3-10: Paired device EUI
ba000224e124826068b876 Command Value ba 02=Disconnected Paired device EUI: 24e124826068b876
Json output after using Milesight default decoder:{ "ble_new_event": [ { "index": 0, "mac": "24e124826068b876", "status": 2 } ] }
Alarm Report
The device supports various types of alarm reports.
| Item | Byte | Command | Description |
|---|---|---|---|
| Temperature Alarm | 1+1 | 0b | 00=Collection error, 01=Under-range, 02=Over-range, 03=No data |
| Humidity Alarm | 1+1 | 0c | 00=Collection error, 01=Under-range, 02=Over-range, 03=No data |
| Button Event Report | 1+1 | 0d | 00=Button 1, 01=Button 2, 02=Button 3 |
| Battery Alarm | 1+1 | 0f | 00=Normal, 01=Low battery voltage |
- Example:
-
- Battery alarm Json output after using Milesight decoder:
0f01 Command Value 0f 01=Low battery voltage { "battery_event": { "type": 1 } } - Button 1 event reportJson output after using Milesight decoder:
0d00 Command Value 0d 00=Button 1 { "key_event": { "f1": {}, "type": 0 } }
- Battery alarm