10
5.5 Example of General Calibration Configuration
FPort
:
0x0E
Description
Cmd
ID
Sensor
Type
PayLoad(Fix =9 Bytes)
SetGlobal
CalibrateReq
0x01
0x36
Distance
Sensor
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 = 0x36
,
channel = 0x00 (The current channel fixed value of the device is 00)
(1)
Assuming the reported original Distance value is 1000mm, the Calibration is increased by 100mm, and the reported value is
1100mm
SetGlobalCalibrateReq:Calibration is increased by 100mm
,
Multiplier =0x0001
,
Divisor = 0x0001
,
DeltValue = 0x0064
Downlink: 0136000001000100640000
Device returns: 8136000000000000000000
GetGlobalCalibrateReq
:
Downlink: 0236000000000000000000
Device returns: 8236000001000100640000