HCM370B&375B-MP
HIGH ACCURACY 3D DIGITAL COMPASS
○Inclinometer ○3D compass ○Digital inclinometer ○Accelerometer ○Gyro ○North finder ○INS&IMU
SINCE2008
·
Inertial Attitude Measurement Manufacturer
▶
COMMUNICATION PROTOCOL
1. DATA FRAME FORMAT
:(
8 Bits Date
,
1 Bit Stop
,
No Check
,
Default Baud Rate 9600
)
Identifier
(1byte)
Date Length
(1byte)
Address code
(1byte)
Command word
(1byte)
Date
domain
Check sum
(1byte)
68
Identifier
:
Fixed68H
Data length
:
From data length to check sum
(
including check sum
)
length
Address code
:
Accumulating module address
,
Default :00
Date domain will be changed according to the content and length of command word
Check sum
:
Data length
、
Address code
、
Command word and data domain sum,No carry.
2.
COMMAND WORD ANALYSIS
code
Meaning/example
explain
0X04
Read Pitch/Roll/Heading
angle command at the same
time
68 04 00 04 08
Data field
(
0byte
)
No data field command
0X84
sensor repsond
Eg.:
68 0D 00 84
00 10 50
10
10 05
01 04 01
1C
Data field
(
9byte
)
AA AB BB
CC CD DD
EE EF FF
AA AB BB
:3 characters indicate Pitch.
CC CD DD
: 3 characters indicate Roll.
EE EF FF
: 3 characters indicate Heading.
The angle format has the same parsing method as Pitch,
Roll and Heading
The angle in the left example is
Pitch: +010.50°,
Roll:-010.05°
,
104.01°
0X06
Set magnetic declination
command.
68 06 00 06 02 08 16
Data field (2byte): SA AB
S is the sign, 0 plus, 1 minus,
AA: two integers, B: one decimal
Example: 02 08 is +20.8°
0X86
sensor repsond
Eg.:
68 05 00 86 00 8B
Data field
(
1byte
)
The number in the data field represents the result of the
sensor response.
00 setting succeeded
FF setting failed
0X07
Read magnetic declination
command.
68 04 00 07 0b
Data field
(
0byte
)
no data command
0X87
sensor repsond
Eg.:
68 06 00 87 02 08 97
Data field (2byte): SA AB
S is the sign, 0 plus, 1 minus,
AA: two integers, B: one decimal
Example: 02 08 is +20.8°
The number in the data field represents the result of the
sensor response
0X08
Start calibration command
68 04 00 08 0C
data field
(
0byte
)
no data command
0X88
sensor repsond
Eg.:
68 05 00 88 00 8D
data field
(
1byte
)
The number in the data field represents the result of the