beautypg.com

Kgetmodinfo (frame id 1, Kmodinforesp (frame id 2, 1 kgetmodinfo (frame id 1 – PNI CompassPoint Prime User Manual

Page 40: 2 kmodinforesp (frame id 2

background image

PNI Sensor Corporation

DOC# 1014177 r08

Prime User Manual

– July 2011

Page 34

22

kStopIntervalMode

Commands the module to stop data output at a fixed interval

23

kPowerUp

Sent after wake up from power down mode

24

kSetAcqParams

Sets the sensor acquisition parameters

25

kGetAcqParams

Queries for the sensor acquisition parameters

26

kAcqParamsDone

Response to kSetAcqParams

27

kAcqParamsResp

Response to kGetAcqParams

28

kPowerDownDone

Response to kPowerDown

29

kFactoryUserCal

Clears user magnetic sensor calibration coefficients

30

kFactorUserCalDone

Response to kFactoryUserCal

31

kTakeUserCalSample

Commands the unit to take a sample during field calibration

36

kFactoryInclCal

Clears user accelerometer calibration coefficients

37

kFactoryInclCalDone

Response to kFactoryInclCal

7.3.1

kGetModInfo (frame ID 1

d

)

This frame queries the module's type and firmware revision number. The frame has no

payload. The complete packet for the kGetModInfo command would be:

0005

01

EFD4

Where “0005” is the byte count, “01” is the kGetModInfo command, and “EFD4” is the
CRC-16 checksum

7.3.2

kModInfoResp (frame ID 2

d

)

This frame is the response to kGetModInfo frame. The payload contains the module type

identifier followed by the firmware revision number.

Type

Revision

UInt32

UInt32

Payload

2

Frame ID

kUlnt8

Note that the Type and Revision can be decoded from the binary format to character
format using the ASCII standard. For example, the hex string “00 0D 02 54 43 4D 35 31
32 30 38 C7 87” can be decoded to read “TCM5 1208”. Also, the TCM XB is referenced
as Type “TCM6” since the number of Type characters is limited to 4.