Examples Of Set/Getsensoralarmthresholdcmd - netvox R718EC User Manual

Wireless accelerometer and surface temperature sensor
Hide thumbs Also See for R718EC:
Table of Contents

Advertisement

5.6 Examples of Set/GetSensorAlarmThresholdCmd

Function: The device detects every Min Interval and reports as the data is higher or lower than the threshold.
(Note: The last setting data would be saved if the device is reset to factory setting.)
Fport:0x10
CmdID
CmdDescriptor
(1Byte)
SetSensorAlarm
0x01
ThresholdReq
SetSensorAlarm
0x81
ThresholdRsp
GetSensorAlarm
0x02
ThresholdReq
GetSensorAlarm
0x82
ThresholdRsp
(1) Configure device parameters SensorHighThreshold = 20m/s
Downlink: 01000C000000140000000A
Device returns: 810000000000000000000000
(2) GetSensorAlarmThresholdReq
Downlink: 02000C0000000000000000
Device returns: 82000C000000140000000A
Clear all sensor alarm thresholds (set SensorType = 0)
Downlink: 0100000000000000000000
Device returns: 8100000000000000000000
SensorType (1Byte,
Channel (1Byte,
0x00_Disable ALL
0x00_Channel1,
SensorthresholdSet
0x01_Channel2,
0x0C_Acceleration
0x02_Channel3,
0x0D_Velocity,
etc)
0x0E_Angle,)
Status
(0x00_success)
Channel (1Byte,
SensorType
0x00_Channel1,
(1Byte, Same as the
0x01_Chanel2,
SetSensorAlarmThresh
0x02_Channel3,
oldReq's SensorType)
etc)
Channel (1Byte,
SensorType
0x00_Channel1,
(1Byte, Same as the
0x01_Channel2,
SetSensorAlarmThresh
0x02_Channel3,
oldReq's SensorType)
etc)
Payload(10Bytes)
SensorHighThreshold
(4Bytes, Unit:same as
reportdata in fport6,
0Xffffffff_DISALBLErHi
ghThreshold)
Reserved (9Bytes,Fixed 0x00)
Reserved (8Bytes, Fixed 0x00)
SensorHighThreshold
(4Bytes, Unit:same as
reportdata in fport6,
0Xffffffff_DISALBLErHi
ghThreshold)
2
(0x00000014), SensorLowThreshold = 10m/s
Note:
1. Channel 1: X axis;
Channel 2: Y axis;
Channel 3: Z axis
2. The device would report only when the status changes.
For example, when the data is higher than the HighThreshold, the data
would be reported. However, if the data still exceeds the HighThreshold in
the next detection, the device would not report since its status remains the
same.
12
SensorLowThreshold
(4Bytes,Unit:same as
reportdata in fport6,
0Xffffffff_DISALBLErHigh
Threshold)
SensorLowThreshold
(4Bytes, Unit:same as
reportdata in fport6,
0Xffffffff_DISALBLErHigh
Threshold)
2
(0x0000000A)

Advertisement

Table of Contents
loading

Table of Contents