![LORD 3DM-GX5-35 Скачать руководство пользователя страница 93](http://html1.mh-extra.com/html/lord/3dm-gx5-35/3dm-gx5-35_manual_1939347093.webp)
3DM
®
-GX5-35
DCP Manual
7.
Advanced Programming
7.1
Multiple Commands in a Single Packet
MIP packets may contain one or more individual commands. In the case that multiple commands are
transmitted in a single MIP packet, the 3DM- GX5- 35 will respond with a single packet containing
multiple replies. As with any packet, all commands must be from the same descriptor set (you cannot
mix Base commands with 3DM commands in the same packet).
Below is an example that shows how you can combine the commands from step 2 and 3 of the
into a single packet. The commands are from the 3DM set. The command
packet has two fields as does the reply packet (the fields are put on separate rows for clarity):
Examples
MIP Packet Header
Command/Reply Fields
Checksum
Sync1
Sync2
Desc.
Set
Payload
Length
Field
Length
Cmd
Desc.
Field Data
MSB
LSB
Command Field
1: Set IMU
Message Format
0x75
0x65
0x0C
0x20
0x0D
0x08
Function: 0x01
Desc. count: 0x03
GPS TS
Descriptor:
0x12
Rate Dec: 0x000A
Accel
Descriptor:
0x04
Rate Dec: 0x000A
Ang Rate
Descriptor:
0x05
Rate Dec: 0x000A
Command Field
2: Set EF
Message Format
0x03
0x01
0x00
0x4C
0xFF
Reply Field 1:
ACK/NACK
0x75
0x65
0x0C
0x08
0x04
0xF1
Echo cmd: 0x08
Error code: 0x00
Reply Field 2:
ACK/NACK
0x04
0xF1
Echo cmd: 0x01
Error code: 0x00
0xE1
0x5F
Copy-paste version of the command: "7565 0C10 0D08 0103 1200 0A04 000A 0500 0A03 0100 4CFF "
Note that the only difference in the packet headers of the single command packets compared to the
multiple command packets is the payload length. Parsing multiple fields in a single packet involves
subtracting the field length of the next field from the payload length until the payload length is less
than or equal to zero.
93