Skip to content

CellularStatus (повідомлення UORB)

Cellular status.

This is currently used only for logging cell status from MAVLink.

TOPICS: cellular_status

Fields

НазваТипUnit [Frame]Range/EnumОпис
timestampuint64usTime since system start
statusuint16STATUS_FLAGStatus bitmap
failure_reasonuint8FAILURE_REASONFailure reason
typeuint8CELLULAR_NETWORK_RADIO_TYPECellular network radio type
qualityuint8dBmCellular network RSSI/RSRP, absolute value
mccuint16Mobile country code (Invalid: UINT16_MAX)
mncuint16Mobile network code (Invalid: UINT16_MAX)
lacuint16Location area code (Invalid: 0)

Enums

STATUS_FLAG

НазваТипЗначенняОпис
STATUS_FLAG_UNKNOWNuint161State unknown or not reportable
STATUS_FLAG_FAILEDuint162Modem is unusable
STATUS_FLAG_INITIALIZINGuint164Modem is being initialized
STATUS_FLAG_LOCKEDuint168Modem is locked
STATUS_FLAG_DISABLEDuint1616Modem is not enabled and is powered down
STATUS_FLAG_DISABLINGuint1632Modem is currently transitioning to the STATUS_FLAG_DISABLED state
STATUS_FLAG_ENABLINGuint1664Modem is currently transitioning to the STATUS_FLAG_ENABLED state
STATUS_FLAG_ENABLEDuint16128Modem is enabled and powered on but not registered with a network provider and not available for data connections
STATUS_FLAG_SEARCHINGuint16256Modem is searching for a network provider to register
STATUS_FLAG_REGISTEREDuint16512Modem is registered with a network provider, and data connections and messaging may be available for use
STATUS_FLAG_DISCONNECTINGuint161024Modem is disconnecting and deactivating the last active packet data bearer. This state will not be entered if more than one packet data bearer is active and one of the active bearers is deactivated
STATUS_FLAG_CONNECTINGuint162048Modem is activating and connecting the first packet data bearer. Subsequent bearer activations when another bearer is already active do not cause this state to be entered
STATUS_FLAG_CONNECTEDuint164096One or more packet data bearers is active and connected

FAILURE_REASON

НазваТипЗначенняОпис
FAILURE_REASON_NONEuint80No error
FAILURE_REASON_UNKNOWNuint81Error state is unknown
FAILURE_REASON_SIM_MISSINGuint82SIM is required for the modem but missing
FAILURE_REASON_SIM_ERRORuint83SIM is available, but not usable for connection

CELLULAR_NETWORK_RADIO_TYPE

НазваТипЗначенняОпис
CELLULAR_NETWORK_RADIO_TYPE_NONEuint80None
CELLULAR_NETWORK_RADIO_TYPE_GSMuint81GSM
CELLULAR_NETWORK_RADIO_TYPE_CDMAuint82CDMA
CELLULAR_NETWORK_RADIO_TYPE_WCDMAuint83WCDMA
CELLULAR_NETWORK_RADIO_TYPE_LTEuint84LTE

Source Message

Source file (GitHub)

Details

Click here to see original file

c
# Cellular status
#
# This is currently used only for logging cell status from MAVLink.

uint64 timestamp  # [us] Time since system start

uint16 status                            # [@enum STATUS_FLAG] Status bitmap
uint16 STATUS_FLAG_UNKNOWN = 1           # State unknown or not reportable
uint16 STATUS_FLAG_FAILED = 2            # Modem is unusable
uint16 STATUS_FLAG_INITIALIZING = 4      # Modem is being initialized
uint16 STATUS_FLAG_LOCKED = 8            # Modem is locked
uint16 STATUS_FLAG_DISABLED = 16         # Modem is not enabled and is powered down
uint16 STATUS_FLAG_DISABLING = 32        # Modem is currently transitioning to the STATUS_FLAG_DISABLED state
uint16 STATUS_FLAG_ENABLING = 64         # Modem is currently transitioning to the STATUS_FLAG_ENABLED state
uint16 STATUS_FLAG_ENABLED = 128         # Modem is enabled and powered on but not registered with a network provider and not available for data connections
uint16 STATUS_FLAG_SEARCHING = 256       # Modem is searching for a network provider to register
uint16 STATUS_FLAG_REGISTERED = 512      # Modem is registered with a network provider, and data connections and messaging may be available for use
uint16 STATUS_FLAG_DISCONNECTING = 1024  # Modem is disconnecting and deactivating the last active packet data bearer. This state will not be entered if more than one packet data bearer is active and one of the active bearers is deactivated
uint16 STATUS_FLAG_CONNECTING = 2048     # Modem is activating and connecting the first packet data bearer. Subsequent bearer activations when another bearer is already active do not cause this state to be entered
uint16 STATUS_FLAG_CONNECTED = 4096      # One or more packet data bearers is active and connected

uint8 failure_reason                  # [@enum FAILURE_REASON] Failure reason
uint8 FAILURE_REASON_NONE = 0         # No error
uint8 FAILURE_REASON_UNKNOWN = 1      # Error state is unknown
uint8 FAILURE_REASON_SIM_MISSING = 2  # SIM is required for the modem but missing
uint8 FAILURE_REASON_SIM_ERROR = 3    # SIM is available, but not usable for connection

uint8 type                                   # [@enum CELLULAR_NETWORK_RADIO_TYPE] Cellular network radio type
uint8 CELLULAR_NETWORK_RADIO_TYPE_NONE = 0   # None
uint8 CELLULAR_NETWORK_RADIO_TYPE_GSM = 1    # GSM
uint8 CELLULAR_NETWORK_RADIO_TYPE_CDMA = 2   # CDMA
uint8 CELLULAR_NETWORK_RADIO_TYPE_WCDMA = 3  # WCDMA
uint8 CELLULAR_NETWORK_RADIO_TYPE_LTE = 4    # LTE

uint8 quality  # [dBm] Cellular network RSSI/RSRP, absolute value
uint16 mcc     # [@invalid UINT16_MAX] Mobile country code
uint16 mnc     # [@invalid UINT16_MAX] Mobile network code
uint16 lac     # [@invalid 0] Location area code