13
7.1 Example of ReportDataCmd
FPort
:
0x06
Bytes
1
1
1
Var(Fix=8 Bytes)
Version
DeviceType
ReportType
NetvoxPayLoadData
Version – 1 byte –0x01——the Version of NetvoxLoRaWAN Application Command Version
Device Type – 1 byte – Device Type of Device
The device type is listed in Netvox LoRaWAN Application Devicetype.doc
ReportType – 1 byte –the presentation of the NetvoxPayLoadData, according the device type
NetvoxPayLoadData– Fixed bytes (Fixed =8bytes)
Device
Device
Type
Report
Type
NetvoxPayLoadData
0xD2
0x01
Battery
(1Byte)
unit:0.1V
FunctionEnableBits
(2Bytes)
Bit0:
THSensor
Bit1:
LightSensor
Bit2:
PIRSensor
Bit3:
EmergenceButton
Bit4:TiltSensor
Bit5:
InternalContactSwitch
Bit6:ExternalContactSwitch
Bit7:InternalShockSensor
Bit8: ExternalShockSensor
Bit9:ExternalDryContactPointIN
Bit10:
DryContactPointOut
Bit11:
ExternalWaterLeakSenor
Bit12:ExternalSeatSensor
Bit13:ExternalGlassSensor
Bit14-Bit15:
Reserved
When Bit is 1,
the function is enabled
BinarySensorReport
(2bytes)
Bit0:
PIRSensorState
(0b01_ON,0b00_OFF)
Bit1: EmergenceButtonAlarmState
(0b01_Alarm,0b00_NoAlarm)
Bit2:TiltSensorState
(0b01_ON,0b00_OFF)
Bit3:InternalContactSwitchSensorState
(0b01_ON,0b00_OFF)
Bit4:ExternalContactSwitchSensorState
(0b01_ON,0b00_OFF)
Bit5: InternalShockSensorState
(0b01_ON,0b00_OFF)
Bit6: ExternalShockSensorState
(0b01_ON,0b00_OFF)
Bit7: ExternalDryContactPointINState
(0b01_ON,0b00_OFF)
Bit8: ExternalWaterLeakSenorState
(0b01_ON,0b00_OFF)
Bit9: ExternalSeatSenorState
(0b01_ON,0b00_OFF)
Bit10: ExternalGlassSenorState
(0b01_ON,0b00_OFF)
Bit11~Bit14:
(Reserved Fixed 0b00)
Bit15:HeartBeat
(0b01_Heartbeat,0b00_NOTHeartbeat)
Temperature
(Signed 2Bytes)
unit:0.01°C
When THSensor
Bit is 0 in the
FunctionEnableBits,
the filed is fixed
0xFFFF
Humidity
(1Byte)
unit:0.5%
When THSensor
Bit
is 0 in the
FunctionEnableBits,
the filed is fixed 0xFF
0x02
Battery
(1Byte)
unit:0.1V
Illuminance
(2Bytes,unit:1Lux)
Reserved
(5Bytes,fixed 0x00)
Note:
The payload with report type=0x02 only present when light sensor is enabled in FunctionEnableBits.
When the light sensor function is enabled, two packets of data will be reported.