9
Set Distance Threshold
(7)
Set OnDistanceThreshold to the appropriate value
Downlink
:
033401F400000000000000 // 01F4 (H
ex
) = 500 (D
ec
)
Device returns
:
8334000000000000000000
(8)
Read OnDistanceThreshold, and check whether it is set successfully.
Downlink
:
0434000000000000000000
Device returns
:
833401F400000000000000
*The mode switches via setting the value of FillMaxDistance and OnDistanceThreshold.
If the current mode of the device is waste bin detection, it can be switched to the parking detection by setting FillMaxDistance to
0 first, and then setting OnDistanceThreshold.
Conversely, the current mode of the device is parking detection, it can be switched to the waste bin detection by setting
OnDistanceThreshold to 0 first, and then setting FillMaxDistance.
Example of Temperature/Distance/Angle Sensor calibration
Port:0x0E
Description
CmdID
SensorType
PayLoad(Fix =9 Bytes)
SetGlobal
CalibrateReq
0x01
0x01
0x36
0x37
Channel(1Byte)
0_Channel1,
1_Channel2,etc
Multiplier
(2bytes,Unsigned)
Divisor
(2bytes,Unsigned)
DeltValue
(2bytes,Signed)
Reserved
(2Bytes,Fixed 0x00)
SetGlobal
CalibrateRsp
0x81
Channel(1Byte)
0_Channel1,
1_Channel2,etc
Status
(1Byte,0x00_success)
Reserved
(7Bytes,Fixed 0x00)
GetGlobal
CalibrateReq
0x02
Channel
(1Byte,0_Channel1,1_Channel2,etc)
Reserved
(8Bytes,Fixed 0x00)
GetGlobal
CalibrateRsp
0x82
Channel(1Byte)
0_Channel1,
1_Channel2,etc
Multiplier
(2bytes,Unsigned)
Divisor
(2bytes,Unsigned)
DeltValue
(2bytes,Signed)
Reserved
(2Bytes,Fixed 0x00)
ClearGlobal
CalibrateReq
0x03
Reserved
(10Bytes,Fixed 0x00)
ClearGlobal
CalibrateRsp
0x83
Status
(1Byte,0x00_success)
Reserved
(9Bytes,Fixed 0x00)
SensorType
Temperature 0x01
Distance 0x36
AngleSensor 0x37