Skip to content

62: Cellular Diagnostics ​

Runtime cellular-module, upload-buffer, and internet-link diagnostic state. GET returns NotSupported when cellular diagnostics are unavailable on the device. Upload-buffer and primary-link values are zero when their runtime objects are absent. Secondary-link fields 13-15 are omitted when that link is unavailable.

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
1Cellular Module StatePossible values:
  • 0: Off
  • 1: Turning On
  • 2: Resetting
  • 3: Initializing
  • 4: Awaiting Network
  • 5: Initializing Data
  • 6: Ready
  • 7: Sleeping
uint8
2Network RegistrationCellular network registration code reported by the modem
Possible values:
  • 0: Not Connected
  • 1: Connected
  • 2: Searching
  • 3: Denied
  • 4: Unknown
  • 5: Roaming
  • 6: No SIM or SMS Only
  • 7: SMS Only Roaming
  • 11: Emergency
uint8
3Pending Upload FilesFiles waiting to be uploadeduint16
4Buffer 0 Useduint8%
5Buffer 1 Useduint8%
6Buffer 2 Useduint8%
10Primary Link Openbool
11Primary Link RX Countuint32
12Primary Link TX Countuint32
13Secondary Link OpenOmitted when a secondary link is unavailablebool
14Secondary Link RX CountOmitted when a secondary link is unavailableuint32
15Secondary Link TX CountOmitted when a secondary link is unavailableuint32

Code ​

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