![Crossbow Technology CXM539 Скачать руководство пользователя страница 13](http://html1.mh-extra.com/html/crossbow-technology/cxm539/cxm539_user-manual_2688841013.webp)
CXM539 User’s Manual
Doc.# 6001-0014 Rev1.2
Page 9
M=T
Corrected data in a text decimal format without a
checksum:
M=C
X Y Z
M=N
0.23456 0.78900 0.23997 <CR><LF>
The X,Y,& Z values are encoded as decimal values in
Gauss. Each is separated from the next with a single
space. The last digit of the Z data is followed by a
carriage return and a line feed.
M=T
Corrected data in a text decimal format with a checksum:
M=C
X Y Z cs
M=E
0.23456 0.78900 0.23997 4C <CR><LF>
This is just like the last example except for an addition of
a space and the two -digit checksum in Hex between the
last digit of Z and the carriage return. The checksum is
composed of the sum of all of the digits in the X,Y,& Z
data values.
M=B
Raw Data in a binary format without a checksum:
M=R
X Y Z SB
M=N
12 34 56 78 9A BC 5A <CR> <LF>
The X,Y,& Z values are each encoded as a two byte
value. The X, Y, Z data is followed by a constant
synchronization byte (SB) of 5A.
M=B
Raw data in a binary format with a checksum:
M=R
X Y Z cs SB
M=E
12 34 56 78 9A BC AE 5A <CR><LF>
P
IMPORTANT
When in Binary mode, the X, Y & Z values for magnetometer data are
encoded as a signed integer, 2's complement, with a conversion factor of
(
)
15
2
256
*
LSB
MSB
M
or
M
or
M
z
y
x
+
=
in Gauss
This is followed by a checksum consisting of the lower eight bits of the sum
of the bytes comp rising the X, Y & Z Data and calculated as
SUNSTAR传感与控制 http://www.sensor-ic.com/ TEL:0755-83376549 FAX:0755-83376182 E-MAIL:[email protected]
SUNSTAR自动化 http://www.sensor-ic.com/ TEL: 0755-83376489 FAX:0755-83376182 E-MAIL:[email protected]