7
Example of ReportDataCmd
FPort
:
0x06
Bytes
1
1
1
Var(Fix=8 Bytes)
Version
DeviceType
ReportType
NetvoxPayLoadData
Version
– 1 bytes –0x01
——
the Version of NetvoxLoRaWAN Application Command Version
DeviceType
– 1 byte – Device Type of Device
The devicetype is listed in Netvox LoRaWAN Application Devicetype doc
ReportType
– 1 byte –the presentation of the NetvoxPayLoadData
,
according the devicetype
NetvoxPayLoadData
– Fixed bytes (Fixed =8bytes)
R720C 0x70
0x01
Battery
(1Byte, unit: 0.1V)
AirPressure
(4Bytes, unit: 0.01hPa)
Temperature
(Signed2Bytes, unit: 0.01°C)
Reserved
(1Bytes, fixed 0x00)
Ex1.
Uplink: 01700124000181F009C400
1
st
byte (01): Version
2
nd
byte(70): DeviceType 0x70
-
R720C
3
rd
byte(01): ReportType
4
th
byte(24): Battery , 24 H
ex
=36 D
ec
36*0.1v=3.6v
5
th
6
th
7
th
8
th
byte(000181F0): Air Pressure, 181F0 H
ex
=98800 D
ec
98800*0.01hPa =
988hPa
9
th
10
th
byte(09C4): Temperature, 09C4 H
ex
=2500 D
ec
2500*0.01°C
= 25°C
11
th
byte(00): Reserved
Ex2.
Uplink: 0170019F00011170FE0C00
1
st
byte (01): Version
2
nd
byte(70): DeviceType 0x70
-
R720C
3
rd
byte(01): ReportType
4
th
byte(9F): Battery (Bit7 represent
low battery
), 1F H
ex
=31 D
ec
31*0.1v=3.1v
5
th
6
th
7
th
8
th
byte(00011170): Air Pressure, 11170 H
ex
=70000 D
ec
70000*0.01hPa =
700 hPa
9
th
10
th
byte(FE0C): Temperature
(
must decode with
signed
type value), FE0C H
ex
= -500 D
ec
-500*0.01°C
=
-
5 °C
11
th
byte(00): Reserved