Trimble Outdoors thunderbolt 64057-00-eng Benutzerhandbuch

Seite von 88
A     Trimble Standard Interface Protocol
40     Trimble ThunderBolt E GPS Disciplined Clock User Guide
Packet structure
TSIP packet structure is the same for both commands and reports. The packet format 
is 
<DLE> <id> <data string bytes> <DLE> <ETX>
 
Where:
<DLE>
 is the byte 0x10
<ETX>
 is the byte 0x03
<id>
 is a packet identifier byte, which can have any value except 
<ETX>
 and 
<DLE>
.
The bytes in the data string can have any value. To prevent confusion with the frame 
sequences <DLE> <id> and <DLE> <ETX>, every <DLE> byte in the data string is 
preceded by an extra <DLE> byte ('stuffing'). These extra <DLE> bytes must be added 
before sending a packet and removed after receiving the packet. A simple <DLE> 
<ETX> sequence does not necessarily signify the end of the packet, as these can be 
bytes in the middle of a data string. The end of a packet is <ETX>, preceded by an odd 
number of <DLE> bytes.
Floating point numbers (single, double) follow the IEEE Standard for Binary 
Floating-Point Arithmetic (IEEE 754.) Multiple-byte numbers (integer, single and 
double) are sent most-significant byte first.
Note – On Intel-based (little-endian) machines you must switch the byte order.
The data types used in TSIP are as follows:
Note – Default serial port settings are 9600, 8-None-1.
Data type
Description
UINT8 
An 8-bit unsigned integer (0 to 255)
SINT8
An 8-bit signed integer (-128 to 127)
INT16
A 16-bit unsigned integer (0 to 65,535)
SINT16
A 16-bit signed integer (-32,768 to 32,767)
UINT32
A 32-bit unsigned integer (0 to 4,294,967,295)
SINT32
A 32-bit signed integer (-2,147,483,648 to 2,147,483,647)
Single
Single-precision float (4 bytes) (1.2x10-38 to 3.4x1038)
Double
Double-precision float (8 bytes) (2.2x10-308 to 1.8x10308)