
PNI Sensor Corporation DOC#1016505 r06
TRAX User Manual Page 36
7 Operation with PNI Binary Protocol
The SeaTRAX utilizes a binary communication protocol, where the communication parameters
should be configured as follows:
Table 7-1: Port Configuration
7.1 Datagram Structure
The data structure is shown below:
ByteCount
(UInt16)
Packet Frame
(1 - 4092 UInt8)
CRC-16
(UInt16)
Payload
(1 - 4091 UInt8)
Frame
ID
(UInt8)
Figure 7-1: Datagram Structure
The ByteCount is the total number of bytes in the packet including the CRC-16 (checksum).
The CRC-16 is calculated starting from the ByteCount to the last byte of the Packet Frame.
The ByteCount and CRC-16 are always transmitted in big Endian. Two examples follow.
Example: The complete packet for the kGetModInfo command, which has no payload is:
Example: Below is a complete sample packet to start a 2D Calibration (kStartCal):
CalOption
(2D Calibration)
Comentarios a estos manuales