Skip to content

61: GPS Diagnostics ​

Runtime GPS-module and RTCM diagnostic state. GET returns NotSupported when GPS diagnostics are unavailable on the device. RTCM fields 10-12 are omitted when RTK is disabled. Omitted fields are not zero readings.

FieldNameDescriptionType
5MethodRequest a service to be perform an action
Possible values:
  • 1: SET— Set one or more values that are provided in the message payload.
  • 2: GET— Get values for the associated message type.
  • 3: SUBSCRIBE— Subscribe to values for the associated message type. Can be used in conjunction with other header fields to define the subscription parameters, such as Interval, Duration, Timeout, Storage Level and Message Level. If no interval is provided, messages will be sent as and when new data is available. Some data, such as GPS position, may require a set interval to be provided.
  • 5: UNSUBSCRIBE— Unsubscribe from a previous subscription.
uint8
This is an extract of header fields that are relevant to this message type, you can find them all documented in the Headers section.

Payload ​

FieldNameDescriptionTypeUnit
1GPS Module StatePossible values:
  • 0: Off
  • 1: Waiting for Fix
  • 2: Stabilizing
  • 3: Locked In
uint8
2GPS LockedWhether the GPS module is currently locked inbool
10RTCM Last Received AgeTime since RTCM correction data was last received; zero also indicates that no RTCM data has been receiveduint32ms
11RTCM Receive CountNumber of RTCM messages received since bootuint32
12RTCM Remote AgeMoving-average lag between received RTCM data and the receiver epoch; zero indicates no measurementuint32ms

Code ​

For convenience, the following constants can be used to reference this message type.