6
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
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)
Device
DeviceType ReportType
NetvoxPayLoadData
R718CK2
R718CT2
R718CR2
0x16
0x17
0x18
0x01
Battery
(1Byte, unit:0.1V)
Temperature1
(Signed2Bytes,unit:0.1°C)
Temperature2
(Signed2Bytes,unit:0.1°C)
Reserved
(3Bytes,fixed 0x00)
Example 1 of Uplink:
0116012400FD0109000000
1
st
byte (01): Version
2
nd
byte (16): DeviceType 0x16
-
R718CK2
3
rd
byte (01): ReportType
4
th
byte (24): Battery
,
24H
ex
=36 D
ec
, 36x0.1v = 3.6v
5
th
6
th
byte (00FD): Temperature1, 00FD H
ex
=253 D
ec
, 253x0.1°C = 25.3°C
7
th
8
th
byte (0109): Temperature2, 0109 H
ex
=265 D
ec,
265x0.1°C = 26.5°C
9
th
-11
th
byte (000000): Reserved
Example 2 of Uplink:
0117019FFF39FEC5000000
1
st
byte (01): Version
2
nd
byte (17): DeviceType 0x17
-
R718CT2
3
rd
byte (01): ReportType
4
th
byte (9F): Battery, 1F H
ex
= 31 D
ec
, 31x0.1v=3.1v // the bit7 is 1,represent low battery
5
th
6
th
byte (FF39): Temperature1, FF39 H
ex
= -199 D
ec
,-199 x 0.1°C = -19.9°C
7
th
8
th
byte (FEC5): Temperature2, FEC5 H
ex
= -315 D
ec,
-315 x 0.1°C = -31.5°C
//negative numbers represented in 2's complement
9
th
-11
th
byte (000000): Reserved