7
Device
Device
Type
Report
Type
NetvoxPayLoadData
R313FA1
(R313FD)
0xC7
0x01
Battery
(1Byte, unit:0.1V)
AccelerationX
(Float16_2Bytes, m/s
2
)
AccelerationY
(Float16_2Bytes, m/s
2
)
AccelerationZ
(Float16_2Bytes, m/s
2
)
Reserved
(1Byte,fixed 0x00)
0x02
VelocityX
(Float16_2Bytes, mm/s)
VelocityY
(Float16_2Bytes, mm/s)
VelocityZ
(Float16_2Bytes, mm/s)
Reserved
(2Bytes,fixed 0x00)
Example of uplink:
# packet 1: 01C7011E6A3E883E1F4100
1
st
byte (01): Version
2
nd
byte (C7): DeviceType 0XC7
-
R313FA1
3
rd
byte (01): ReportType
4
th
byte (1E): Battery
-
3v , 1E Hex=30 Dec 30*0.1v=3v
5
th
6
th
byte (6A3E): Acceleration X, float32(3E6A0000) = 0.22851562 m/s
2
7
th
8
th
byte (883E): Acceleration Y, float32(3E880000) = 0.265625 m/s
2
9
th
10
th
byte (1F41): Acceleration Z, float32(411F0000) = 9.9375 m/s
2
11
th
byte (00): Reserved
# packet 2: 01C70212422B42C7440000
1
st
byte (01): Version
2
nd
byte (C7): DeviceType 0XC7
-
R313FA1
3
rd
byte (02): ReportType
4
th
5
th
byte (1242): Acceleration X, float32(42120000) = 36.5 mm/s
6
th
7
th
byte (2B42): Acceleration Y, float32(422B0000) = 42.75 mm/s
8
th
9
th
byte (C744): Acceleration Z, float32(44C70000) = 1592.0 mm/s
10
th
~11
th
byte (0000): Reserved
* R313FA1 value uses big-endian computing.
*
Because of the length limitation of R313FA1 instruction. Therefore, R313FA1 sends out 2 bytes and adds 0 to the data to
form 4 bytes of float32.