
5.1 ActiveThreshold and InActiveThreshold
Formula
Active Threshold/InActiveThreshold =Critical value ÷ 9.8÷ 0.0625
* The gravitational acceleration at standard atmospheric pressure is 9.8 m/s2
* The scale factor of the threshold is 62.5 mg
Active Threshold Active Threshold can be changed by ConfigureCmd
Active Threshold range is 0x0003-0x00FF (default is 0x0003);
InActiveThreshold
InActiveThreshold can be changed by ConfigureCmd
InActiveThreshold range is 0x0002-0x00FF (default is 0x0002)
* Active Threshold and InActiveThreshold can not be the same
Example
Assuming that the critical value is set to be 10m/s2, the Active Threshold would be set
10/9.8/0.0625=16.32
Active Threshold would be set integer as 16.
5.2 Calibration
The accelerometer is a mechanical structure that contains components that can move freely.
These moving parts are very sensitive to mechanical stress, far beyond solid-state electronics.
The 0g offset is an important accelerometer indicator because it defines the baseline used to measure acceleration.
After installing R313FA1, users need to le
t the device rest for 1 minute, and then power on. Then, turn on the device and wait for
the device taking 1 minute to join the network. After that, the device will automatically executes the calibration.
After calibration, the reported three-axis acceleration value will be within 1m/s2.
When the acceleration is within 1m/s2and thevelocity is within 160mm/s, it can be judged that the device is stationary.
5.3 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)