3DM
®
-GX5-35
DCP Manual
4.2
3DM Commands
The 3DM command set is common to the LORD Sensing Inertial sensors that support the MIP packet
protocol. Because of the unified set of commands, it is easy to migrate code from one inertial sensor to
another.
4.2.1
Poll IMU Data (0x0C, 0x01)
Description
Poll the device for an IMU message with the specified format
This function polls for an IMU message using the provided format. The resulting message
will maintain the order of descriptors sent in the command and any unrecognized
descriptors are ignored. If the format is not provided, the device will attempt to use the
stored format (set with the
command.) If no format is provided
and there is no stored format, the device will respond with a NACK. The reply packet con-
tains an ACK/NACK field. The polled data packet is sent separately as an IMU Data
packet.
Possible Option Selector Values:
0x00 – Normal ACK/NACK Reply.
0x01 – Suppress the ACK/NACK reply.
Field Format
Field Length
Field
Descriptor
Field Data
Command
4 + 3*N
0x01
U8 – Option Selector
U8 – Number of Descriptors (N)
N*(U8 – Descriptor, U16 Reserved)
Reply:
ACK/ NACK
0x04
0xF1
U8 - echo the command byte
U8 - error code (0: ACK, non-zero: NACK)
Example
MIP Packet Header
Command/Reply Fields
Checksum
Sync1
Sync2
Desc.
Set
Payload
Length
Field
Length
Field
Desc.
Field Data
MSB
LSB
Command:
Poll IMU data
(use stored
format)
0x75
0x65
0x0C
0x04
0x04
0x01
Option: 0x00
Desc count: 0x00
0xEF
0xDA
Command:
Poll IMU data
(use specified
format)
0x75
0x65
0x0C
0x0A
0x0A
0x01
Option: 0x00
Desc count: 0x02
1st Descriptor: 0x04
Reserved: 0x0000
2nd Descriptor: 0x05
Reserved: 0x0000
0x06
0x27
34