GOSS GOSS ROM Type Module Binary Message Protocol User’s Reference Guide Document Revision: V1.8 Document Release: Jun 6th, 2007
Page 1 of 34
GOSS
1. Binary Message Structure The binary message comprises of binary string with length of up to 255 characters. It has the following format: Format %%<Message Start>Message Body><Message End>
Message Start: Message Type: ACK (06h), NAK (15h), Input (F1h), Output (F2h) Message ID: Number between 0x01, 0xEF Message Body: Contains input parameter or output information related to the particular message. Message End: Checksum byte. The checksum is calculated by performing exclusive-or, XOR, of all bytes from <Message Type> till the last byte prior to : CS = CS ^ , where initially CS = 0 Sample C-Code for Calculating Checksum char BIN_ComputeChecksum( char* buf, int len ) { int i; char chksum; chksum = 0; for (i=0; i
Page 2 of 34
GOSS
2. Binary Input Message Type This group of binary messages is used to configure the GPS receiver, or to request information from the GPS receiver. If the receiver carries out the command successfully, ACK binary message is returned; otherwise NAK binary message is returned.
Byte Ordering All data is in little-endian format, with low-order byte (LSB) at lower address. ACK/NAK An output ACK message indicates GPS accepts the message while NAK indicates GPS cannot execute the command at the moment. However, an error input command will not get any acknowledge message from GPS.
Page 3 of 34
GOSS
2.1 Restart (01h)
Page 4 of 34
GOSS
2.2 Baud-Rate Configuration (02h)
2.3 Set Datum (03h)
Page 5 of 34
GOSS
2.4 Set NMEA Configuration (04h)
2.5 Query Firmware Version (05h)
Page 6 of 34
GOSS
2.6 Restore Factory Default (08h)
2.7 Set ID (0Dh)
Page 7 of 34
GOSS
2.8 Query Module ID (0Eh)
2.9 Set DOP Mask (0Fh)
Page 8 of 34
GOSS
2.10 Set Elevation Mask (10h)
2.11 DGPS Control (11h)
Page 9 of 34
GOSS
2.12 1PPS Control (12h)
Page 10 of 34
GOSS
2.13 Set Output Format (13h)
2.14 Sleep Mode (14h)
Page 11 of 34
GOSS
2.15 Query Navigation Parameters (17h)
2.16 Query System Settings (18h)
Page 12 of 34
GOSS
2.17 Set Local Time (19h)
Page 13 of 34
GOSS
2.18 Set Extended Datum (1Bh)
2.19 Record Trace (1Dh)
Page 14 of 34
GOSS
2.20 Read Trace Log (1Eh)
Page 15 of 34
GOSS
2.21 Maintain Trace (1Fh)
Page 16 of 34
GOSS
2.22 Set Update Rate (20h)
Page 17 of 34
GOSS
3. Binary Output Message Type This group of binary messages is output in response to commands that requests additional receiver information. Data Types Used (See Binary Input Message Type ) Byte Ordering (See Binary Input Message Type )
3.1 Firmware Revision (80h)
3.2 Module ID (85h)
Page 18 of 34
GOSS
3.3 Navigation Parameters (86h)
Page 19 of 34
GOSS
3.4 System Settings (87h)
Page 20 of 34
GOSS
3.5 Packed Trace Data (88h)
Page 21 of 34
GOSS
3.6 Trace Buffer Configuration and Status (89h)
3.7 Extended Trace Buffer Status (8Ah)
Page 22 of 34
GOSS
3.8 User Position, Velocity & Time II (D1h)
Page 23 of 34
GOSS
3.9 User Satellite Information (D2h)
Page 24 of 34
GOSS
3.10 User Measurement Information (D3h)
Page 25 of 34
GOSS
Appendix A Ellipsoid List
Page 26 of 34
GOSS
Appendix B Datum Reference List
Page 27 of 34
GOSS
Page 28 of 34
GOSS
Page 29 of 34
GOSS
Page 30 of 34
GOSS
Page 31 of 34
GOSS
Page 32 of 34
GOSS
Page 33 of 34
GOSS
Document Revision History
Page 34 of 34
GOSS