beautypg.com

Commands & communication frames, Table 7-2: command set, 3 commands & communication frames – PNI CompassPoint Prime User Manual

Page 39

background image

Prime User Manual r08

Page 33

Unsigned 8-bit Integer (UInt8)

UInt8 based parameters are unsigned 8-bit numbers.

byte

7

0

Boolean

Boolean is a 1-byte parameter that MUST have the value 0 (false) or 1 (true).

byte

7

0

7.3

Commands & Communication Frames

The Prime’s command set is given below and descriptions of each command follow.

Table 7-2: Command Set

Frame
ID

Command

Description

1

kGetModInfo

Queries the modules type and firmware revision number.

2

kModInfoResp

Response to kGetModInfo

3

kSetDataComponents

Sets the data components to be output.

4

kGetData

Queries the module for data

5

kDataResp

Response to kGetData

6

kSetConfig

Sets internal configurations in the module

7

kGetConfig

Queries the module for the current internal configuration value

8

kConfigResp

Response to kGetConfig

9

kSave

Commands the module to save internal and field calibration

10

kStartCal

Commands the module to start field calibration

11

kStopCal

Commands the module to stop field calibration

12

kSetParam

Sets the FIR filter settings for the magnetic sensor &
accelerometer sensors.

13

kGetParam

Queries for the FIR filter settings for the magnetic sensor &
accelerometer sensors.

14

kParamResp

Contains the FIR filter settings for the magnetic sensor &
accelerometer sensors.

15

kPowerDown

Used to completely power-down the module

16

kSaveDone

Response to kSave

17

kUserCalSampCount

Sent from the module after taking a calibration sample point

18

kUserCalScore

Contains the calibration score

19

kSetConfigDone

Response to kSetConfig

20

kSetParamDone

Response to kSetParam

21

kStartIntervalMode

Commands the module to output data at a fixed interval