Enums

Details

class Mbim.AccessMediaType(value)

Bases: GObject.GEnum

Access type preference.

New in version 1.28.

classmethod get_string(val)
Parameters:

val (Mbim.AccessMediaType) – a Mbim.AccessMediaType.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.AccessMediaType specified at val.

New in version 1.28.

UNKNOWN = 0

None, or unknown.

3GPP = 1
_3GPP = 1

3GPP only.

3GPP_PREFERRED = 2
_3GPP_PREFERRED = 2

3GPP Preferred.

class Mbim.ActivationCommand(value)

Bases: GObject.GEnum

Activation Command.

New in version 1.0.

classmethod get_string(val)
Parameters:

val (Mbim.ActivationCommand) – a Mbim.ActivationCommand.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.ActivationCommand specified at val.

New in version 1.0.

DEACTIVATE = 0

Deactivate.

ACTIVATE = 1

Activate.

class Mbim.ActivationState(value)

Bases: GObject.GEnum

Activation State.

New in version 1.0.

classmethod get_string(val)
Parameters:

val (Mbim.ActivationState) – a Mbim.ActivationState.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.ActivationState specified at val.

New in version 1.0.

UNKNOWN = 0

Unknown.

ACTIVATED = 1

Activated.

ACTIVATING = 2

Activating.

DEACTIVATED = 3

Deactivated.

DEACTIVATING = 4

Deactivating.

class Mbim.AtdsProviderPlmnMode(value)

Bases: GObject.GEnum

Provider PLMN mode.

New in version 1.16.

classmethod get_string(val)
Parameters:

val (Mbim.AtdsProviderPlmnMode) – a Mbim.AtdsProviderPlmnMode.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.AtdsProviderPlmnMode specified at val.

New in version 1.16.

GSM = 0

GSM.

UTRAN = 6

UTRAN (UMTS).

LTE = 7

LTE.

class Mbim.AtdsRatMode(value)

Bases: GObject.GEnum

RAT mode preferences.

New in version 1.16.

classmethod get_string(val)
Parameters:

val (Mbim.AtdsRatMode) – a Mbim.AtdsRatMode.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.AtdsRatMode specified at val.

New in version 1.16.

AUTOMATIC = 0

Automatic.

2G_ONLY = 1
_2G_ONLY = 1

2G only.

3G_ONLY = 2
_3G_ONLY = 2

3G only.

4G_ONLY = 3
_4G_ONLY = 3

4G only.

class Mbim.AuthProtocol(value)

Bases: GObject.GEnum

Auth Protocol.

New in version 1.0.

classmethod get_string(val)
Parameters:

val (Mbim.AuthProtocol) – a Mbim.AuthProtocol.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.AuthProtocol specified at val.

New in version 1.0.

NONE = 0

None.

PAP = 1

Pap.

CHAP = 2

Chap.

MSCHAPV2 = 3

V2.

class Mbim.CarrierLockCause(value)

Bases: GObject.GEnum

Carrier lock cause.

New in version 1.30.

classmethod get_string(val)
Parameters:

val (Mbim.CarrierLockCause) – a Mbim.CarrierLockCause.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.CarrierLockCause specified at val.

New in version 1.30.

NOT_APPLICABLE = 0

Cause not applicable.

SIM_LOCK_POLICY_MISMATCH = 1

Sim lock policy mismatch.

SIM_LOCK_POLICY_MATCHED = 2

Sim lock policy matched.

class Mbim.CarrierLockModemState(value)

Bases: GObject.GEnum

State of modem after a carrier lock state update.

New in version 1.30.

classmethod get_string(val)
Parameters:

val (Mbim.CarrierLockModemState) – a Mbim.CarrierLockModemState.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.CarrierLockModemState specified at val.

New in version 1.30.

DEREGISTERED = 0

Modem deregistered.

DEREGISTRATION_IN_PROGRESS = 1

Modem de-registration in progress.

REGISTRATION_IN_PROGRESS = 2

Modem registration state in progress.

REGISTERED = 3

Modem registered.

class Mbim.CarrierLockStatus(value)

Bases: GObject.GEnum

Status of carrier lock.

New in version 1.30.

classmethod get_string(val)
Parameters:

val (Mbim.CarrierLockStatus) – a Mbim.CarrierLockStatus.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.CarrierLockStatus specified at val.

New in version 1.30.

NOT_APPLIED = 0

Carrier lock not applied.

APPLIED = 1

Carrier lock applied.

class Mbim.CidAtds(value)

Bases: GObject.GEnum

MBIM commands in the Mbim.Service.ATDS service.

New in version 1.16.

classmethod get_string(val)
Parameters:

val (Mbim.CidAtds) – a Mbim.CidAtds.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.CidAtds specified at val.

New in version 1.16.

UNKNOWN = 0

Unknown command.

SIGNAL = 1

Radio signal information.

LOCATION = 2

Cell location information.

OPERATORS = 3

Operator selection.

RAT = 4

Radio Access Technology selection.

REGISTER_STATE = 9

Registration state.

class Mbim.CidAuth(value)

Bases: GObject.GEnum

MBIM commands in the Mbim.Service.AUTH service.

New in version 1.0.

classmethod get_string(val)
Parameters:

val (Mbim.CidAuth) – a Mbim.CidAuth.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.CidAuth specified at val.

New in version 1.0.

UNKNOWN = 0

Unknow command

AKA = 1

AKA.

AKAP = 2

AKAP.

SIM = 3

SIM.

class Mbim.CidBasicConnect(value)

Bases: GObject.GEnum

MBIM commands in the Mbim.Service.BASIC_CONNECT service.

New in version 1.0.

classmethod get_string(val)
Parameters:

val (Mbim.CidBasicConnect) – a Mbim.CidBasicConnect.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.CidBasicConnect specified at val.

New in version 1.0.

UNKNOWN = 0

Unknown command.

DEVICE_CAPS = 1

Device capabilities.

PACKET_SERVICE = 10

Packet service.

SIGNAL_STATE = 11

Signal state.

CONNECT = 12

Connect.

PROVISIONED_CONTEXTS = 13

Provisioned contexts.

SERVICE_ACTIVATION = 14

Service activation.

IP_CONFIGURATION = 15

IP configuration.

DEVICE_SERVICES = 16

Device services.

DEVICE_SERVICE_SUBSCRIBE_LIST = 19

Device service subscribe list.

New in version 1.8.

SUBSCRIBER_READY_STATUS = 2

Subscriber ready status.

PACKET_STATISTICS = 20

Packet statistics.

NETWORK_IDLE_HINT = 21

Network idle hint.

EMERGENCY_MODE = 22

Emergency mode.

IP_PACKET_FILTERS = 23

IP packet filters.

MULTICARRIER_PROVIDERS = 24

Multicarrier providers.

RADIO_STATE = 3

Radio state.

PIN = 4

PIN.

PIN_LIST = 5

PIN list.

HOME_PROVIDER = 6

Home provider.

PREFERRED_PROVIDERS = 7

Preferred providers.

VISIBLE_PROVIDERS = 8

Visible providers.

REGISTER_STATE = 9

Register state.

class Mbim.CidDss(value)

Bases: GObject.GEnum

MBIM commands in the Mbim.Service.DSS service.

New in version 1.0.

classmethod get_string(val)
Parameters:

val (Mbim.CidDss) – a Mbim.CidDss.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.CidDss specified at val.

New in version 1.0.

UNKNOWN = 0

Unknown command.

CONNECT = 1

Connect.

class Mbim.CidGoogle(value)

Bases: GObject.GEnum

MBIM commands in the Mbim.Service.GOOGLE service.

New in version 1.30.

classmethod get_string(val)
Parameters:

val (Mbim.CidGoogle) – a Mbim.CidGoogle.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.CidGoogle specified at val.

New in version 1.30.

UNKNOWN = 0

Unknown command.

CARRIER_LOCK = 1

Carrier lock.

class Mbim.CidIntelFirmwareUpdate(value)

Bases: GObject.GEnum

MBIM commands in the Mbim.Service.INTEL_FIRMWARE_UPDATE service.

New in version 1.16.

classmethod get_string(val)
Parameters:

val (Mbim.CidIntelFirmwareUpdate) – a Mbim.CidIntelFirmwareUpdate.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.CidIntelFirmwareUpdate specified at val.

New in version 1.16.

UNKNOWN = 0

Unknown command.

MODEM_REBOOT = 1

Reboot modem for firmware update.

class Mbim.CidIntelMutualAuthentication(value)

Bases: GObject.GEnum

MBIM commands in the Mbim.Service.INTEL_MUTUAL_AUTHENTICATION service.

New in version 1.30.

classmethod get_string(val)
Parameters:

val (Mbim.CidIntelMutualAuthentication) – a Mbim.CidIntelMutualAuthentication.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.CidIntelMutualAuthentication specified at val.

New in version 1.30.

UNKNOWN = 0

Unknown command.

FCC_LOCK = 1

FCC lock set.

class Mbim.CidIntelThermalRf(value)

Bases: GObject.GEnum

MBIM commands in the Mbim.Service.INTEL_THERMAL_RF service.

New in version 1.28.

classmethod get_string(val)
Parameters:

val (Mbim.CidIntelThermalRf) – a Mbim.CidIntelThermalRf.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.CidIntelThermalRf specified at val.

New in version 1.28.

UNKNOWN = 0

Unknown command.

RFIM = 9

RFIM frequency command.

class Mbim.CidIntelTools(value)

Bases: GObject.GEnum

MBIM commands in the Mbim.Service.INTEL_TOOLS service.

New in version 1.30.

classmethod get_string(val)
Parameters:

val (Mbim.CidIntelTools) – a Mbim.CidIntelTools.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.CidIntelTools specified at val.

New in version 1.30.

UNKNOWN = 0

Unknown command.

TRACE_CONFIG = 8

Configure Modem traces.

class Mbim.CidMsBasicConnectExtensions(value)

Bases: GObject.GEnum

MBIM commands in the Mbim.Service.MS_BASIC_CONNECT_EXTENSIONS service.

New in version 1.18.

classmethod get_string(val)
Parameters:

val (Mbim.CidMsBasicConnectExtensions) – a Mbim.CidMsBasicConnectExtensions.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.CidMsBasicConnectExtensions specified at val.

New in version 1.18.

UNKNOWN = 0

Unknown command.

PROVISIONED_CONTEXTS = 1

Provisioned contexts (v2).

DEVICE_RESET = 10

Device reset.

BASE_STATIONS_INFO = 11

Base stations info.

New in version 1.28.

LOCATION_INFO_STATUS = 12

Location info status.

New in version 1.28.

VERSION = 15

Protocol version query and report, defined in MBIMEx v2.0.

New in version 1.28.

MODEM_CONFIGURATION = 16

Modem configuration status, defined in MBIMEx v3.0.

New in version 1.28.

REGISTRATION_PARAMETERS = 17

Registration parameters, defined in MBIMEx v3.0.

New in version 1.28.

WAKE_REASON = 19

Protocol wake reason query and report, defined in MBIMEx v3.0.

New in version 1.28.

NETWORK_DENYLIST = 2

Network denylist.

New in version 1.28.

LTE_ATTACH_CONFIGURATION = 3

LTE attach configuration.

LTE_ATTACH_INFO = 4

LTE attach status information.

New in version 1.26.

SYS_CAPS = 5

System capabilities.

DEVICE_CAPS = 6

Device capabilities (v2).

DEVICE_SLOT_MAPPINGS = 7

Device slot mappings.

SLOT_INFO_STATUS = 8

Slot info status.

PCO = 9

Protocol configuration operations (PCO).

class Mbim.CidMsFirmwareId(value)

Bases: GObject.GEnum

MBIM commands in the Mbim.Service.MS_FIRMWARE_ID service.

New in version 1.8.

classmethod get_string(val)
Parameters:

val (Mbim.CidMsFirmwareId) – a Mbim.CidMsFirmwareId.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.CidMsFirmwareId specified at val.

New in version 1.0.

UNKNOWN = 0

Unknown command.

GET = 1

Get Firmware ID.

class Mbim.CidMsHostShutdown(value)

Bases: GObject.GEnum

MBIM commands in the Mbim.Service.MS_HOST_SHUTDOWN service.

New in version 1.8.

classmethod get_string(val)
Parameters:

val (Mbim.CidMsHostShutdown) – a Mbim.CidMsHostShutdown.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.CidMsHostShutdown specified at val.

New in version 1.8.

UNKNOWN = 0

Unknown command.

NOTIFY = 1

Notify that the host is shutting down.

class Mbim.CidMsSar(value)

Bases: GObject.GEnum

MBIM commands in the Mbim.Service.MS_SAR service.

New in version 1.26.

classmethod get_string(val)
Parameters:

val (Mbim.CidMsSar) – a Mbim.CidMsSar.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.CidMsSar specified at val.

New in version 1.26.

UNKNOWN = 0

Unknown command.

CONFIG = 1

SAR backoff mode and level configuration.

TRANSMISSION_STATUS = 2

Transmission status indication setup.

class Mbim.CidMsUiccLowLevelAccess(value)

Bases: GObject.GEnum

MBIM commands in the Mbim.Service.MS_UICC_LOW_LEVEL_ACCESS service.

New in version 1.26.

classmethod get_string(val)
Parameters:

val (Mbim.CidMsUiccLowLevelAccess) – a Mbim.CidMsUiccLowLevelAccess.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.CidMsUiccLowLevelAccess specified at val.

New in version 1.26.

UNKNOWN = 0

Unknown command.

ATR = 1

ATR.

READ_RECORD = 10

Read a UICC linear fixed or cyclic file.

New in version 1.28.

OPEN_CHANNEL = 2

Open Channel.

CLOSE_CHANNEL = 3

Close Channel.

APDU = 4

Apdu.

TERMINAL_CAPABILITY = 5

Terminal capabilities.

RESET = 6

Reset.

APPLICATION_LIST = 7

Retrieve application list.

New in version 1.28.

FILE_STATUS = 8

Retrieve information about a specific UICC file.

New in version 1.28.

READ_BINARY = 9

Read a UICC binary file.

New in version 1.28.

class Mbim.CidMsVoiceExtensions(value)

Bases: GObject.GEnum

MBIM commands in the Mbim.Service.MS_VOICE_EXTENSIONS service.

New in version 1.28.

classmethod get_string(val)
Parameters:

val (Mbim.CidMsVoiceExtensions) – a Mbim.CidMsVoiceExtensions.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.CidMsVoiceExtensions specified at val.

New in version 1.28.

UNKNOWN = 0

Unknown command.

NITZ = 10

Network Identity and Time Zone information command.

class Mbim.CidPhonebook(value)

Bases: GObject.GEnum

MBIM commands in the Mbim.Service.PHONEBOOK service.

New in version 1.0.

classmethod get_string(val)
Parameters:

val (Mbim.CidPhonebook) – a Mbim.CidPhonebook.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.CidPhonebook specified at val.

New in version 1.0.

UNKNOWN = 0

Unknown command.

CONFIGURATION = 1

Configuration.

READ = 2

Read.

DELETE = 3

Delete.

WRITE = 4

Write.

class Mbim.CidProxyControl(value)

Bases: GObject.GEnum

MBIM commands in the Mbim.Service.PROXY_CONTROL service.

New in version 1.10.

classmethod get_string(val)
Parameters:

val (Mbim.CidProxyControl) – a Mbim.CidProxyControl.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.CidProxyControl specified at val.

New in version 1.10.

UNKNOWN = 0

Unknown command.

CONFIGURATION = 1

Configuration.

VERSION = 2

MBIM and MBIMEx Version reporting.

class Mbim.CidQdu(value)

Bases: GObject.GEnum

MBIM commands in the Mbim.Service.QDU service.

New in version 1.26.

classmethod get_string(val)
Parameters:

val (Mbim.CidQdu) – a Mbim.CidQdu.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.CidQdu specified at val.

New in version 1.26.

UNKNOWN = 0

Unknown command.

UPDATE_SESSION = 1

Update session command.

FILE_OPEN = 2

Open QDU file for firmware update.

FILE_WRITE = 3

Write QDU file for firmware update.

QUECTEL_REBOOT = 4

Reboot to Emergency Download (Quectel specific).

New in version 1.28.

QUECTEL_READ_VERSION = 7

Read firmware version (Quectel specific).

New in version 1.28.

class Mbim.CidQmi(value)

Bases: GObject.GEnum

MBIM commands in the Mbim.Service.QMI service.

New in version 1.14.

classmethod get_string(val)
Parameters:

val (Mbim.CidQmi) – a Mbim.CidQmi.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.CidQmi specified at val.

New in version 1.14.

UNKNOWN = 0

Unknown command.

MSG = 1

Send QMI request and receive QMI response.

class Mbim.CidQuectel(value)

Bases: GObject.GEnum

MBIM commands in the Mbim.Service.QUECTEL service.

New in version 1.26.2.

classmethod get_string(val)
Parameters:

val (Mbim.CidQuectel) – a Mbim.CidQuectel.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.CidQuectel specified at val.

New in version 1.26.2.

UNKNOWN = 0

Unknown command.

RADIO_STATE = 1

Radio state.

class Mbim.CidSms(value)

Bases: GObject.GEnum

MBIM commands in the Mbim.Service.SMS service.

New in version 1.0.

classmethod get_string(val)
Parameters:

val (Mbim.CidSms) – a Mbim.CidSms.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.CidSms specified at val.

New in version 1.0.

UNKNOWN = 0

Unknown command.

CONFIGURATION = 1

SMS configuration.

READ = 2

Read.

SEND = 3

Send.

DELETE = 4

Delete.

MESSAGE_STORE_STATUS = 5

Store message status.

class Mbim.CidStk(value)

Bases: GObject.GEnum

MBIM commands in the Mbim.Service.STK service.

New in version 1.0.

classmethod get_string(val)
Parameters:

val (Mbim.CidStk) – a Mbim.CidStk.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.CidStk specified at val.

New in version 1.0.

UNKNOWN = 0

Unknown command.

PAC = 1

PAC.

TERMINAL_RESPONSE = 2

Terminal response.

ENVELOPE = 3

Envelope.

class Mbim.CidUssd(value)

Bases: GObject.GEnum

MBIM commands in the Mbim.Service.USSD service.

New in version 1.0.

classmethod get_string(val)
Parameters:

val (Mbim.CidUssd) – a Mbim.CidUssd.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.CidUssd specified at val.

New in version 1.0.

USSD_UNKNOWN = 0

Unknown command.

New in version 1.4.

USSD = 1

USSD operation.

class Mbim.Compression(value)

Bases: GObject.GEnum

Compression.

New in version 1.0.

classmethod get_string(val)
Parameters:

val (Mbim.Compression) – a Mbim.Compression.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.Compression specified at val.

New in version 1.0.

NONE = 0

None.

ENABLE = 1

Enable.

class Mbim.ContextIpType(value)

Bases: GObject.GEnum

Context IP Type.

New in version 1.0.

classmethod get_string(val)
Parameters:

val (Mbim.ContextIpType) – a Mbim.ContextIpType.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.ContextIpType specified at val.

New in version 1.0.

DEFAULT = 0

It is up to the function to decide, the host does not care.

IPV4 = 1

IPv4 context.

IPV6 = 2

IPv6 context.

IPV4V6 = 3

The context is IPv4, IPv6 or dualstack IPv4v6.

IPV4_AND_IPV6 = 4

Both an IPv4 and an IPv6 context.

class Mbim.ContextMediaType(value)

Bases: GObject.GEnum

Media type, specifying whether the modem is used for cellular or iWLAN (Wi-Fi offload).

New in version 1.28.

classmethod get_string(val)
Parameters:

val (Mbim.ContextMediaType) – a Mbim.ContextMediaType.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.ContextMediaType specified at val.

New in version 1.28.

CELLULAR_ONLY = 0

Context allowed to be used only wen registered over cellular.

WIFI_ONLY = 1

Context allowed to be used only when registered over Wi-Fi.

ALL = 2

Context allowed to be used when registered either over cellular or Wi-Fi.

class Mbim.ContextOperation(value)

Bases: GObject.GEnum

Command to run when updating context configuration.

New in version 1.28.

classmethod get_string(val)
Parameters:

val (Mbim.ContextOperation) – a Mbim.ContextOperation.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.ContextOperation specified at val.

New in version 1.28.

DEFAULT = 0

Adds or replaces an existing context.

DELETE = 1

Delete an existing context.

RESTORE_FACTORY = 2

Restore preconfigured contexts for the provider ID of the current SIM card.

class Mbim.ContextRoamingControl(value)

Bases: GObject.GEnum

Type of roaming control.

New in version 1.28.

classmethod get_string(val)
Parameters:

val (Mbim.ContextRoamingControl) – a Mbim.ContextRoamingControl.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.ContextRoamingControl specified at val.

New in version 1.28.

HOME_ONLY = 0

Context allowed to be used in home network.

PARTNER_ONLY = 1

Context allowed to be used in partner network.

NON_PARTNER_ONLY = 2

Context allowed to be used in non-partner network.

HOME_AND_PARTNER = 3

Context allowed to be used in home and partner networks.

HOME_AND_NON_PARTNER = 4

Context allowed to be used in home and non-partner networks.

PARTNER_AND_NON_PARTNER = 5

Context allowed to be used in partner and non-partner networks.

ALLOW_ALL = 6

Context allowed to be used in any roaming condition.

class Mbim.ContextSource(value)

Bases: GObject.GEnum

Source of context creation.

New in version 1.18.

classmethod get_string(val)
Parameters:

val (Mbim.ContextSource) – a Mbim.ContextSource.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.ContextSource specified at val.

New in version 1.18.

ADMIN = 0

Context created by enterprise IT.

USER = 1

Context created by user.

OPERATOR = 2

Context created by operator.

MODEM = 3

Context created by modem manufacturer.

DEVICE = 4

Context created by OS APN database.

class Mbim.ContextState(value)

Bases: GObject.GEnum

Status of the context, specifying whether it’s enabled or disabled.

New in version 1.28.

classmethod get_string(val)
Parameters:

val (Mbim.ContextState) – a Mbim.ContextState.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.ContextState specified at val.

New in version 1.28.

DISABLED = 0

Disabled.

ENABLED = 1

Enabled.

class Mbim.ContextType(value)

Bases: GObject.GEnum

Enumeration of the generic MBIM context types.

New in version 1.0.

classmethod get_string(val)
Parameters:

val (Mbim.ContextType) – a Mbim.ContextType.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.ContextType specified at val.

New in version 1.0.

INVALID = 0

Invalid context type.

NONE = 1

Context not yet provisioned.

ADMIN = 10

Context used for administrative purposes, such as device management (MS MBIMEx).

New in version 1.28.

APP = 11

Context used for certain applications allowed by mobile operators (MS MBIMEx).

New in version 1.28.

XCAP = 12

Context used for XCAP provisioning on IMS services (MS MBIMEx).

New in version 1.28.

TETHERING = 13

Context used for mobile hotspot tethering (MS MBIMEx).

New in version 1.28.

EMERGENCY_CALLING = 14

Context used for IMS emergency calling (MS MBIMEx).

New in version 1.28.

INTERNET = 2

Context representing a connection to the Internet.

VPN = 3

Context representing a connection to a a private network (e.g. VPN to a corporate network).

VOICE = 4

Context representing a connection to a VoIP service.

VIDEO_SHARE = 5

Context representing a connection to a video sharing service.

PURCHASE = 6

Context representing a connection to an OTA (over-the-air) activation site.

IMS = 7

Context representing a connection to IMS.

MMS = 8

Context representing a connection to MMS.

LOCAL = 9

Context representing a connection which is terminated at the device. No IP traffic sent over the air.

class Mbim.CoreError(value)

Bases: GObject.GEnum

Common errors that may be reported by libmbim-glib.

New in version 1.0.

classmethod get_string(val)
Parameters:

val (Mbim.CoreError) – a Mbim.CoreError.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.CoreError specified at val.

classmethod quark()
Return type:

int

FAILED = 0

Operation failed.

WRONGSTATE = 1

Operation cannot be executed in the current state.

TIMEOUT = 2

Operation timed out.

INVALIDARGS = 3

Invalid arguments given.

INVALIDMESSAGE = 4

MBIM message is invalid.

UNSUPPORTED = 5

Not supported.

ABORTED = 6

Operation aborted.

UNKNOWNSTATE = 7

State is unknown.

New in version 1.16.

INCOMPLETEMESSAGE = 8

MBIM message is incomplete.

New in version 1.28.

class Mbim.DefaultPduActivationHint(value)

Bases: GObject.GEnum

Hint regarding the activation of the default PDU session.

New in version 1.28.

classmethod get_string(val)
Parameters:

val (Mbim.DefaultPduActivationHint) – a Mbim.DefaultPduActivationHint.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.DefaultPduActivationHint specified at val.

New in version 1.28.

UNLIKELY = 0

Default PDU session activation is unlikely to happen soon.

LIKELY = 1

Default PDU session activation is likely to happen soon.

class Mbim.DeviceType(value)

Bases: GObject.GEnum

Type of device.

New in version 1.0.

classmethod get_string(val)
Parameters:

val (Mbim.DeviceType) – a Mbim.DeviceType.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.DeviceType specified at val.

New in version 1.0.

UNKNOWN = 0

Unknown type.

EMBEDDED = 1

Device is embedded in the system.

REMOVABLE = 2

Device is removable.

REMOTE = 3

Device is remote.

class Mbim.DrxCycle(value)

Bases: GObject.GEnum

DRX cycle settings.

New in version 1.28.

classmethod get_string(val)
Parameters:

val (Mbim.DrxCycle) – a Mbim.DrxCycle.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.DrxCycle specified at val.

New in version 1.28.

NOT_SPECIFIED = 0

DRX cycle not specified.

NOT_SUPPORTED = 1

DRX cycle setting not supported.

32 = 2
_32 = 2

DRX cycle T=32.

64 = 3
_64 = 3

DRX cycle T=64.

128 = 4
_128 = 4

DRX cycle T=128.

256 = 5
_256 = 5

DRX cycle T=256.

class Mbim.DssLinkState(value)

Bases: GObject.GEnum

Action performed in the link state.

New in version 1.4.

classmethod get_string(val)
Parameters:

val (Mbim.DssLinkState) – a Mbim.DssLinkState.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.DssLinkState specified at val.

New in version 1.4.

DEACTIVATE = 0

Deactivate.

ACTIVATE = 1

Activate.

class Mbim.EmergencyModeState(value)

Bases: GObject.GEnum

Emergency mode state.

New in version 1.4.

classmethod get_string(val)
Parameters:

val (Mbim.EmergencyModeState) – a Mbim.EmergencyModeState.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.EmergencyModeState specified at val.

New in version 1.4.

OFF = 0

Off.

ON = 1

On.

class Mbim.IntelBootMode(value)

Bases: GObject.GEnum

Modem intel boot mode.

New in version 1.28.

classmethod get_string(val)
Parameters:

val (Mbim.IntelBootMode) – a Mbim.IntelBootMode.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.IntelBootMode specified at val.

New in version 1.28.

NORMAL_MODE = 0

Normal boot mode.

DOWNLOAD_MODE = 1

Download boot mode.

POWER_OFF_DEVICE = 2

Power off device.

NON_RESETABLE_REGISTER = 3

Configure non-resetable register without reboot or power off.

WITHOUT_REBOOT_POWER_OFF = 4

Configure without reboot power-off.

FAST_DOWNLOAD_MODE = 5

Fast boot in download mode.

class Mbim.IntelServingCellInfo(value)

Bases: GObject.GEnum

Serving cell information.

New in version 1.28.

classmethod get_string(val)
Parameters:

val (Mbim.IntelServingCellInfo) – a Mbim.IntelServingCellInfo.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.IntelServingCellInfo specified at val.

New in version 1.28.

RADIO_OFF = -1

Radio state is off.

PCELL = 0

Primary cell.

SCELL = 1

Secondary cell.

PSCELL = 2

Primary cell in SCS.

SSCELL = 3

Secondary cell in SCS.

class Mbim.LadnInfo(value)

Bases: GObject.GEnum

Local Area Data Network (LADN) information state.

New in version 1.28.

classmethod get_string(val)
Parameters:

val (Mbim.LadnInfo) – a Mbim.LadnInfo.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.LadnInfo specified at val.

New in version 1.28.

NOT_NEEDED = 0

Information not needed.

REQUESTED = 1

Information requested.

class Mbim.LteAttachContextOperation(value)

Bases: GObject.GEnum

Command to run when updating LTE attach configuration.

New in version 1.18.

classmethod get_string(val)
Parameters:

val (Mbim.LteAttachContextOperation) – a Mbim.LteAttachContextOperation.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.LteAttachContextOperation specified at val.

New in version 1.18.

DEFAULT = 0

Overwrite existing contexts.

RESTORE_FACTORY = 1

Restore factory preconfigured contexts.

class Mbim.LteAttachContextRoamingControl(value)

Bases: GObject.GEnum

Type of roaming control.

New in version 1.18.

classmethod get_string(val)
Parameters:

val (Mbim.LteAttachContextRoamingControl) – a Mbim.LteAttachContextRoamingControl.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.LteAttachContextRoamingControl specified at val.

New in version 1.18.

HOME = 0

Context allowed to be used on home network.

PARTNER = 1

Context allowed to be used on partner network.

NON_PARTNER = 2

Context allowed to be used on non-partner network.

class Mbim.LteAttachState(value)

Bases: GObject.GEnum

LTE attach state.

New in version 1.18.

classmethod get_string(val)
Parameters:

val (Mbim.LteAttachState) – a Mbim.LteAttachState.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.LteAttachState specified at val.

New in version 1.18.

DETACHED = 0

Detached.

ATTACHED = 1

Attached.

class Mbim.MessageCommandType(value)

Bases: GObject.GEnum

Type of command message.

New in version 1.0.

classmethod get_string(val)
Parameters:

val (Mbim.MessageCommandType) – a Mbim.MessageCommandType.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.MessageCommandType specified at val.

New in version 1.0.

UNKNOWN = -1

Unknown type.

QUERY = 0

Query command.

SET = 1

Set command.

class Mbim.MessageType(value)

Bases: GObject.GEnum

Type of MBIM messages.

New in version 1.0.

classmethod get_string(val)
Parameters:

val (Mbim.MessageType) – a Mbim.MessageType.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.MessageType specified at val.

New in version 1.0.

INDICATE_STATUS = -2147483641

Unsolicited message from the function.

FUNCTION_ERROR = -2147483644

Function-reported error in the communication.

COMMAND_DONE = -2147483645

Response to command request.

CLOSE_DONE = -2147483646

Response to close request.

OPEN_DONE = -2147483647

Response to initialization request.

INVALID = 0

Invalid MBIM message.

OPEN = 1

Initialization request.

CLOSE = 2

Close request.

COMMAND = 3

Command request.

HOST_ERROR = 4

Host-reported error in the communication.

class Mbim.MicoMode(value)

Bases: GObject.GEnum

Mobile Initiated Connection Only (MICO) Mode state.

The Mbim.MicoMode.DEFAULT value should only be used in set operations, it should never be returned by the module upon a query.

New in version 1.28.

classmethod get_string(val)
Parameters:

val (Mbim.MicoMode) – a Mbim.MicoMode.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.MicoMode specified at val.

New in version 1.28.

DISABLED = 0

Disabled.

ENABLED = 1

Enabled.

UNSUPPORTED = 2

Device does not support MICO mode.

DEFAULT = 3

Default.

class Mbim.ModemConfigurationStatus(value)

Bases: GObject.GEnum

Modem configuration status.

New in version 1.28.

classmethod get_string(val)
Parameters:

val (Mbim.ModemConfigurationStatus) – a Mbim.ModemConfigurationStatus.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.ModemConfigurationStatus specified at val.

New in version 1.28.

UNKNOWN = 0

Unknown

STARTED = 1

SIM is ready and configuration started.

COMPLETED = 2

SIM is ready and configuration completed.

class Mbim.NetworkIdleHintState(value)

Bases: GObject.GEnum

Enable or disable network idle hint.

New in version 1.4.

classmethod get_string(val)
Parameters:

val (Mbim.NetworkIdleHintState) – a Mbim.NetworkIdleHintState.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.NetworkIdleHintState specified at val.

New in version 1.4.

DISABLED = 0

Disabled.

ENABLED = 1

Enabled.

class Mbim.NwError(value)

Bases: GObject.GEnum

Network errors.

New in version 1.0.

classmethod get_string(val)
Parameters:

val (Mbim.NwError) – a Mbim.NwError.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.NwError specified at val.

New in version 1.0.

NONE = 0

No error.

New in version 1.28.

IMPLICITLY_DETACHED = 10

Implicitly detached.

New in version 1.10.

CONDITIONAL_IE_ERROR = 100

Conditional IE error.

New in version 1.10.

MESSAGE_NOT_COMPATIBLE_WITH_PROTOCOL_STATE = 101

Message not compatible with protocol state.

New in version 1.10.

PLMN_NOT_ALLOWED = 11

PLMN not allowed.

PROTOCOL_ERROR_UNSPECIFIED = 111

Protocol error, unspecified.

New in version 1.10.

APN_RESTRICTION_VALUE_INCOMPATIBLE_WITH_ACTIVE_PDP_CONTEXT = 112

APN restriction value incompatible with active PDP context.

New in version 1.18.

MULTIPLE_ACCESSES_TO_A_PDN_CONNECTION_NOT_ALLOWED = 113

Multiple accesses to a PDN connection not allowed.

New in version 1.18.

LOCATION_AREA_NOT_ALLOWED = 12

Location area not allowed.

ROAMING_NOT_ALLOWED_IN_LOCATION_AREA = 13

Roaming not allowed in the location area.

GPRS_NOT_ALLOWED_IN_PLMN = 14

GPRS not allowed in PLMN.

NO_CELLS_IN_LOCATION_AREA = 15

No cells in location area.

MSC_TEMPORARILY_NOT_REACHABLE = 16

MSC temporarily not reachable.

New in version 1.10.

NETWORK_FAILURE = 17

Network failure.

IMSI_UNKNOWN_IN_HLR = 2

IMSI unknown in the HLR.

MAC_FAILURE = 20

MAC failure.

New in version 1.10.

SYNCH_FAILURE = 21

Synch failure.

New in version 1.10.

CONGESTION = 22

Congestion.

GSM_AUTHENTICATION_UNACCEPTABLE = 23

GSM authentication unacceptable.

New in version 1.10.

NOT_AUTHORIZED_FOR_CSG = 25

Not authorized for this CSG.

New in version 1.10.

INSUFFICIENT_RESOURCES = 26

Insufficient resources.

New in version 1.18.

MISSING_OR_UNKNOWN_APN = 27

Missing or unknown access point name.

New in version 1.10.

UNKNOWN_PDP_ADDRESS_OR_TYPE = 28

Unknown PDP address or PDP type.

New in version 1.18.

USER_AUTHENTICATION_FAILED = 29

User authentication failed.

New in version 1.18.

ILLEGAL_MS = 3

Illegal MS.

New in version 1.10.

ACTIVATION_REJECTED_BY_GGSN_OR_GW = 30

Activation rejected by GGSN, Serving GW or PDN GW.

New in version 1.18.

ACTIVATION_REJECTED_UNSPECIFIED = 31

Activation rejected, unspecified.

New in version 1.18.

SERVICE_OPTION_NOT_SUPPORTED = 32

Service option not supported.

New in version 1.10.

REQUESTED_SERVICE_OPTION_NOT_SUBSCRIBED = 33

Requested service option not subscribed.

New in version 1.10.

SERVICE_OPTION_TEMPORARILY_OUT_OF_ORDER = 34

Service option temporarily out of order.

New in version 1.10.

IMSI_UNKNOWN_IN_VLR = 4

IMSI unknown in the VLR.

NO_PDP_CONTEXT_ACTIVATED = 40

No PDP context activated.

New in version 1.10.

SEMANTIC_ERROR_IN_THE_TFT_OPERATION = 41

Semantic error in the TFT operation.

New in version 1.28.

SYNTACTICAL_ERROR_IN_THE_TFT_OPERATION = 42

Syntactical error in the TFT operation.

New in version 1.28.

UNKNOWN_PDP_CONTEXT = 43

Unknown PDP context.

New in version 1.28.

SEMANTIC_ERRORS_IN_PACKET_FILTER = 44

Semantic errors in packet filter.

New in version 1.28.

SYNTACTICAL_ERRORS_IN_PACKET_FILTER = 45

Syntactical errors in packet filter.

New in version 1.28.

PDP_CONTEXT_WITHOUT_TFT_ALREADY_ACTIVATED = 46

PDP context without TFT already activated.

New in version 1.28.

REQUEST_REJECTED_OR_BEARER_CONTROL_MODE_VIOLATION = 48

Request rejected, Bearer Control Mode violation.

New in version 1.28.

LAST_PDN_DISCONNECTION_NOT_ALLOWED = 49

Last PDN disconnection not allowed.

New in version 1.28.

IMEI_NOT_ACCEPTED = 5

IMEI not accepted.

New in version 1.10.

PDP_TYPE_IPV4_ONLY_ALLOWED = 50

PDP type IPv4 only allowed.

New in version 1.18.

PDP_TYPE_IPV6_ONLY_ALLOWED = 51

PDP type IPv6 only allowed.

New in version 1.18.

ILLEGAL_ME = 6

Illegal ME.

NO_NETWORK_SLICES_AVAILABLE = 62

No network slices available

New in version 1.28.

MAXIMUM_NUMBER_OF_PDP_CONTEXTS_REACHED = 65

Maximum number of PDP contexts reached.

New in version 1.18.

REQUESTED_APN_NOT_SUPPORTED_IN_CURRENT_RAT_AND_PLMN = 66

Requested APN not supported in current RAT and PLMN combination.

New in version 1.18.

INSUFFICIENT_RESOURCES_FOR_SPECIFIC_SLICE_AND_DNN = 67

Insufficient resources for specific slice and DNN.

New in version 1.28.

INSUFFICIENT_RESOURCES_FOR_SPECIFIC_SLICE = 69

Insufficient resources for specific slice.

New in version 1.28.

GPRS_NOT_ALLOWED = 7

GPRS not allowed.

NGKSI_ALREADY_IN_USE = 71

NgKSI already in use.

New in version 1.28.

NON_3GPP_ACCESS_TO_5GCN_NOT_ALLOWED = 72

Non-3GPP access to 5GCN not allowe.

New in version 1.28.

SERVING_NETWORK_NOT_AUTHORIZED = 73

Serving network not authorized.

New in version 1.28.

TEMPORARILY_NOT_AUTHORIZED_FOR_THIS_SNPN = 74

Temporarily not authorized for this SNPN.

New in version 1.28.

PERMANENTLY_NOT_AUTHORIZED_FOR_THIS_SNPN = 75

Permanently not authorized for this SNPN.

New in version 1.28.

NOT_AUTHORIZED_FOR_THIS_CAG_OR_AUTHORIZED_FOR_CAG_CELLS_ONLY = 76

Not authorized for this CAG or authorized for CAG cells.

New in version 1.28.

WIRELINE_ACCESS_AREA_NOT_ALLOWED = 77

Wireline access area not allowed.

New in version 1.28.

GPRS_AND_NON_GPRS_NOT_ALLOWED = 8

GPRS and non-GPRS not allowed.

MS_IDENTITY_NOT_DERIVED_BY_NETWORK = 9

MS identity cannot be derived by the network.

New in version 1.10.

PAYLOAD_WAS_NOT_FORWARDED = 90

Payload was not forwarded.

New in version 1.28.

DNN_NOT_SUPPORTED_OR_NOT_SUBSCRIBED_IN_THE_SLICE = 91

DNN not supported or not subscribed in the slice.

New in version 1.28.

INSUFFICIENT_USER_PLANE_RESOURCES_FOR_THE_PDU_SESSION = 92

Insufficient user-plane resources for the PDU session.

New in version 1.28.

SEMANTICALLY_INCORRECT_MESSAGE = 95

Semantically incorrect message.

New in version 1.10.

INVALID_MANDATORY_INFORMATION = 96

Invalid mandatory information.

New in version 1.10.

MESSAGE_TYPE_NON_EXISTENT_OR_NOT_IMPLEMENTED = 97

Message type non-existent or not implemented.

New in version 1.10.

MESSAGE_TYPE_NOT_COMPATIBLE_WITH_PROTOCOL_STATE = 98

Message type not compatible with protocol state.

New in version 1.10.

INFORMATION_ELEMENT_NON_EXISTENT_OR_NOT_IMPLEMENTED = 99

Information element non-existent or not implemented.

New in version 1.10.

class Mbim.PacketServiceAction(value)

Bases: GObject.GEnum

Packet Service Action.

New in version 1.0.

classmethod get_string(val)
Parameters:

val (Mbim.PacketServiceAction) – a Mbim.PacketServiceAction.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.PacketServiceAction specified at val.

New in version 1.0.

ATTACH = 0

Attach.

DETACH = 1

Detach.

class Mbim.PacketServiceState(value)

Bases: GObject.GEnum

Packet Service State.

New in version 1.0.

classmethod get_string(val)
Parameters:

val (Mbim.PacketServiceState) – a Mbim.PacketServiceState.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.PacketServiceState specified at val.

New in version 1.0.

UNKNOWN = 0

Unknown.

ATTACHING = 1

Attaching.

ATTACHED = 2

Attached.

DETACHING = 3

Detaching.

DETACHED = 4

Detached.

class Mbim.PcoType(value)

Bases: GObject.GEnum

Type of PCO structure.

New in version 1.18.

classmethod get_string(val)
Parameters:

val (Mbim.PcoType) – a Mbim.PcoType.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.PcoType specified at val.

New in version 1.18.

COMPLETE = 0

The PCO structure is complete.

PARTIAL = 1

The PCO structure is a subset of what was received from the network.

class Mbim.PhonebookFlag(value)

Bases: GObject.GEnum

Flags to use when reading the phonebook.

New in version 1.4.

classmethod get_string(val)
Parameters:

val (Mbim.PhonebookFlag) – a Mbim.PhonebookFlag.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.PhonebookFlag specified at val.

New in version 1.4.

ALL = 0

Request all.

INDEX = 1

Request single entry by index.

class Mbim.PhonebookState(value)

Bases: GObject.GEnum

Phonebook state.

New in version 1.4.

classmethod get_string(val)
Parameters:

val (Mbim.PhonebookState) – a Mbim.PhonebookState.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.PhonebookState specified at val.

New in version 1.4.

NOT_INITIALIZED = 0

Not initialized.

INITIALIZED = 1

Initialized

class Mbim.PhonebookWriteFlag(value)

Bases: GObject.GEnum

Flags to use when writing the phonebook.

New in version 1.4.

classmethod get_string(val)
Parameters:

val (Mbim.PhonebookWriteFlag) – a Mbim.PhonebookWriteFlag.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.PhonebookWriteFlag specified at val.

New in version 1.4.

UNUSED = 0

Store the record in an unused slot.

INDEX = 1

Index where to store the record.

class Mbim.PinFormat(value)

Bases: GObject.GEnum

Format of the expected PIN code.

New in version 1.0.

classmethod get_string(val)
Parameters:

val (Mbim.PinFormat) – a Mbim.PinFormat.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.PinFormat specified at val.

New in version 1.0.

UNKNOWN = 0

Unknown format.

NUMERIC = 1

Numeric-only format.

ALPHANUMERIC = 2

Alphanumeric format.

class Mbim.PinMode(value)

Bases: GObject.GEnum

Whether the lock is enabled or disabled.

New in version 1.0.

classmethod get_string(val)
Parameters:

val (Mbim.PinMode) – a Mbim.PinMode.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.PinMode specified at val.

New in version 1.0.

NOT_SUPPORTED = 0

Not supported.

ENABLED = 1

Enabled.

DISABLED = 2

Disabled.

class Mbim.PinOperation(value)

Bases: GObject.GEnum

Operation to perform on the PIN.

New in version 1.0.

classmethod get_string(val)
Parameters:

val (Mbim.PinOperation) – a Mbim.PinOperation.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.PinOperation specified at val.

New in version 1.0.

ENTER = 0

Enter the specified PIN into the device.

ENABLE = 1

Enable the specified PIN.

DISABLE = 2

Disable the specified PIN.

CHANGE = 3

Change the specified PIN.

class Mbim.PinState(value)

Bases: GObject.GEnum

PIN States.

New in version 1.0.

classmethod get_string(val)
Parameters:

val (Mbim.PinState) – a Mbim.PinState.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.PinState specified at val.

New in version 1.0.

UNLOCKED = 0

The device does not require a PIN.

LOCKED = 1

The device requires the user to enter a PIN.

class Mbim.PinType(value)

Bases: GObject.GEnum

PIN Types.

New in version 1.0.

classmethod get_string(val)
Parameters:

val (Mbim.PinType) – a Mbim.PinType.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.PinType specified at val.

New in version 1.0.

UNKNOWN = 0

Unknown or unset.

CUSTOM = 1

The PIN type is a custom type and is none of the other PIN types listed in this enumeration.

SUBSIDY_PIN = 10

The subsidy unlock key.

PUK1 = 11

The Personal Identification Number1 Unlock Key (PUK1).

PUK2 = 12

The Personal Identification Number2 Unlock Key (PUK2).

DEVICE_FIRST_SIM_PUK = 13

The device to very first SIM PIN unlock key.

NETWORK_PUK = 14

The network personalization unlock key.

NETWORK_SUBSET_PUK = 15

The network subset personalization unlock key.

SERVICE_PROVIDER_PUK = 16

The service provider (SP) personalization unlock key.

CORPORATE_PUK = 17

The corporate personalization unlock key.

NEV = 18

The NEV key (MS UICC low-level access).

New in version 1.28.

ADM = 19

The administrative key (MS UICC low-level access).

New in version 1.28.

PIN1 = 2

The PIN1 key.

PIN2 = 3

The PIN2 key.

DEVICE_SIM_PIN = 4

The device to SIM key.

DEVICE_FIRST_SIM_PIN = 5

The device to very first SIM key.

NETWORK_PIN = 6

The network personalization key.

NETWORK_SUBSET_PIN = 7

The network subset personalization key.

SERVICE_PROVIDER_PIN = 8

The service provider (SP) personalization key.

CORPORATE_PIN = 9

The corporate personalization key.

class Mbim.ProtocolError(value)

Bases: GObject.GEnum

MBIM protocol errors.

New in version 1.0.

classmethod get_string(val)
Parameters:

val (Mbim.ProtocolError) – a Mbim.ProtocolError.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.ProtocolError specified at val.

classmethod quark()
Return type:

int

INVALID = 0

Invalid MBIM error.

TIMEOUTFRAGMENT = 1

Timeout waiting for fragment.

FRAGMENTOUTOFSEQUENCE = 2

Fragment received out of sequence.

LENGTHMISMATCH = 3

Length mismatch.

DUPLICATEDTID = 4

Duplicated transaction ID.

NOTOPENED = 5

Not opened.

UNKNOWN = 6

Unknown error.

CANCEL = 7

Cancel the operation.

MAXTRANSFER = 8

Maximum control transfer not supported.

class Mbim.QduFileType(value)

Bases: GObject.GEnum

QDU session result.

New in version 1.26.

classmethod get_string(val)
Parameters:

val (Mbim.QduFileType) – a Mbim.QduFileType.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.QduFileType specified at val.

New in version 1.26.

PACKAGE = 0

LE Package

class Mbim.QduQuectelRebootType(value)

Bases: GObject.GEnum

QDU Quectel Reboot session type.

New in version 1.28.

classmethod get_string(val)
Parameters:

val (Mbim.QduQuectelRebootType) – a Mbim.QduQuectelRebootType.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.QduQuectelRebootType specified at val.

New in version 1.28.

EDL = 17

Reboot to Emergency Download mode

class Mbim.QduQuectelVersionType(value)

Bases: GObject.GEnum

QDU Quectel Read Version session type.

New in version 1.28.

classmethod get_string(val)
Parameters:

val (Mbim.QduQuectelVersionType) – a Mbim.QduQuectelVersionType.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.QduQuectelVersionType specified at val.

New in version 1.28.

ID = 256

Firmware Build ID

class Mbim.QduSessionAction(value)

Bases: GObject.GEnum

Action performed for the session initialization.

New in version 1.26.

classmethod get_string(val)
Parameters:

val (Mbim.QduSessionAction) – a Mbim.QduSessionAction.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.QduSessionAction specified at val.

New in version 1.26.

START = 0

Start.

STOP = 1

Stop.

class Mbim.QduSessionResult(value)

Bases: GObject.GEnum

QDU session result.

New in version 1.26.

classmethod get_string(val)
Parameters:

val (Mbim.QduSessionResult) – a Mbim.QduSessionResult.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.QduSessionResult specified at val.

New in version 1.26.

SUCCESS = 0

Success

FAILURE = 1

Failure

class Mbim.QduSessionStatus(value)

Bases: GObject.GEnum

QDU session status.

New in version 1.26.

classmethod get_string(val)
Parameters:

val (Mbim.QduSessionStatus) – a Mbim.QduSessionStatus.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.QduSessionStatus specified at val.

New in version 1.26.

INACTIVE = 0

Update session is not active.

FILE_TRANSFER = 1

Updated files are being transferred from host to function or function is waiting host to send updated files.

APPLY_UPDATE = 2

The function is applying the update package.

class Mbim.QduSessionType(value)

Bases: GObject.GEnum

QDU session types.

New in version 1.26.

classmethod get_string(val)
Parameters:

val (Mbim.QduSessionType) – a Mbim.QduSessionType.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.QduSessionType specified at val.

New in version 1.26.

NONE = 0

No update session.

LE = 1

LE-based update procedure.

class Mbim.QuectelRadioSwitchState(value)

Bases: GObject.GEnum

Radio switch state.

New in version 1.26.2.

classmethod get_string(val)
Parameters:

val (Mbim.QuectelRadioSwitchState) – a Mbim.QuectelRadioSwitchState.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.QuectelRadioSwitchState specified at val.

New in version 1.26.2.

OFF = 0

Radio is off.

ON = 1

Radio is on.

FCC_LOCKED = 4

Radio is FCC locked.

class Mbim.RadioSwitchState(value)

Bases: GObject.GEnum

Radio switch state.

New in version 1.0.

classmethod get_string(val)
Parameters:

val (Mbim.RadioSwitchState) – a Mbim.RadioSwitchState.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.RadioSwitchState specified at val.

New in version 1.0.

OFF = 0

Radio is off.

ON = 1

Radio is on.

class Mbim.RegisterAction(value)

Bases: GObject.GEnum

Type of registration requested.

New in version 1.0.

classmethod get_string(val)
Parameters:

val (Mbim.RegisterAction) – a Mbim.RegisterAction.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.RegisterAction specified at val.

New in version 1.0.

AUTOMATIC = 0

Automatic registration.

MANUAL = 1

Manual registration.

class Mbim.RegisterMode(value)

Bases: GObject.GEnum

Type of registration requested.

New in version 1.0.

classmethod get_string(val)
Parameters:

val (Mbim.RegisterMode) – a Mbim.RegisterMode.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.RegisterMode specified at val.

New in version 1.0.

UNKNOWN = 0

Unknown.

AUTOMATIC = 1

Automatic registration.

MANUAL = 2

Manual registration.

class Mbim.RegisterState(value)

Bases: GObject.GEnum

Registration state.

New in version 1.0.

classmethod get_string(val)
Parameters:

val (Mbim.RegisterState) – a Mbim.RegisterState.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.RegisterState specified at val.

New in version 1.0.

UNKNOWN = 0

Unknown registration state.

DEREGISTERED = 1

Not registered.

SEARCHING = 2

Searching.

HOME = 3

Registered in home network.

ROAMING = 4

Registered in roaming network.

PARTNER = 5

Registered in a preferred roaming network.

DENIED = 6

Registration denied.

class Mbim.SarBackoffState(value)

Bases: GObject.GEnum

SAR backoff state.

New in version 1.26.

classmethod get_string(val)
Parameters:

val (Mbim.SarBackoffState) – a Mbim.SarBackoffState.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.SarBackoffState specified at val.

New in version 1.26.

DISABLED = 0

SAR backoff is disabled.

ENABLED = 1

SAR backoff is enabled.

class Mbim.SarControlMode(value)

Bases: GObject.GEnum

SAR backoff mechanism control modes.

New in version 1.26.

classmethod get_string(val)
Parameters:

val (Mbim.SarControlMode) – a Mbim.SarControlMode.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.SarControlMode specified at val.

New in version 1.26.

DEVICE = 0

SAR backoff is controlled by the modem directly.

OS = 1

SAR backoff is controlled by the host operating system.

class Mbim.SarWifiHardwareState(value)

Bases: GObject.GEnum

Whether the Wi-Fi and cellular SAR are integrated at hardware level.

New in version 1.26.

classmethod get_string(val)
Parameters:

val (Mbim.SarWifiHardwareState) – a Mbim.SarWifiHardwareState.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.SarWifiHardwareState specified at val.

New in version 1.26.

INTEGRATED = 0

Integrated.

NOT_INTEGRATED = 1

Not integrated.

class Mbim.Service(value)

Bases: GObject.GEnum

Enumeration of the generic MBIM services.

New in version 1.0.

classmethod get_string(val)
Parameters:

val (Mbim.Service) – a Mbim.Service.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.Service specified at val.

New in version 1.0.

classmethod id_is_custom(id)
Parameters:

id (int) – ID of the service

Returns:

True if service is custom, False otherwise.

Return type:

bool

Checks whether id is a custom or standard service.

New in version 1.10.

classmethod lookup_name(service)
Parameters:

service (int) – a Mbim.Service or custom service.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the service.

As opposed to Mbim.Service.get_string(), this methods takes into account custom services that may have been registered by the user.

New in version 1.10.

INVALID = 0

Invalid service.

BASIC_CONNECT = 1

Basic connectivity service.

PROXY_CONTROL = 10

Proxy Control service.

New in version 1.10.

QMI = 11

QMI-over-MBIM service.

New in version 1.14.

ATDS = 12

ATT Device service.

New in version 1.16.

INTEL_FIRMWARE_UPDATE = 13

Intel firmware update service.

New in version 1.16.

MS_BASIC_CONNECT_EXTENSIONS = 14

Microsoft basic connectivity extensions service.

New in version 1.18.

MS_SAR = 15

Microsoft SAR service.

New in version 1.26.

QDU = 16

QDU firmware update service.

New in version 1.26.

MS_UICC_LOW_LEVEL_ACCESS = 17

Microsoft UICC Low Level Access service.

New in version 1.26.

QUECTEL = 18

Quectel specific operations.

New in version 1.26.2.

INTEL_THERMAL_RF = 19

Intel thermal rf related commands.

New in version 1.28.

SMS = 2

SMS messaging service.

MS_VOICE_EXTENSIONS = 20

Microsoft Voice extensions service.

New in version 1.28.

INTEL_MUTUAL_AUTHENTICATION = 21

Intel mutual authentication commands.

New in version 1.30.

INTEL_TOOLS = 22

Intel tools service.

New in version 1.30.

GOOGLE = 23

Google specific service.

New in version 1.30.

USSD = 3

USSD service.

PHONEBOOK = 4

Phonebook service.

STK = 5

SIM toolkit service.

AUTH = 6

Authentication service.

DSS = 7

Device Service Stream service.

MS_FIRMWARE_ID = 8

Microsoft Firmware ID service.

New in version 1.8.

MS_HOST_SHUTDOWN = 9

Microsoft Host Shutdown service.

New in version 1.8.

class Mbim.SmsCdmaEncoding(value)

Bases: GObject.GEnum

Type of encoding of a CDMA SMS.

New in version 1.4.

classmethod get_string(val)
Parameters:

val (Mbim.SmsCdmaEncoding) – a Mbim.SmsCdmaEncoding.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.SmsCdmaEncoding specified at val.

New in version 1.4.

OCTET = 0

Octet.

EPM = 1

EPM.

7BIT_ASCII = 2
_7BIT_ASCII = 2

7-bit ASCII.

LA5 = 3

LA5.

UNICODE = 4

Unicode.

SHIFT_JIS = 5

Shift JIS.

KOREAN = 6

Korean.

LATIN_HEBREW = 7

Latin hebrew.

LATIN = 8

Latin.

GSM_7BIT = 9

7-bit GSM.

class Mbim.SmsCdmaLang(value)

Bases: GObject.GEnum

Language of a CDMA SMS.

New in version 1.4.

classmethod get_string(val)
Parameters:

val (Mbim.SmsCdmaLang) – a Mbim.SmsCdmaLang.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.SmsCdmaLang specified at val.

New in version 1.4.

UNKNOWN = 0

Unknown language.

ENGLISH = 1

English.

FRENCH = 2

French.

SPANISH = 3

Spanish.

JAPANESE = 4

Japanese.

KOREAN = 5

Korean.

CHINESE = 6

Chinese.

HEBREW = 7

Hebrew.

class Mbim.SmsFlag(value)

Bases: GObject.GEnum

Flags to use when requesting to read SMS. Mbim.SmsFlag.ALL and Mbim.SmsFlag.NEW are mandatory, all the others are optional.

New in version 1.4.

classmethod get_string(val)
Parameters:

val (Mbim.SmsFlag) – a Mbim.SmsFlag.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.SmsFlag specified at val.

New in version 1.4.

ALL = 0

All.

INDEX = 1

Index.

NEW = 2

New.

OLD = 3

Old.

SENT = 4

Sent.

DRAFT = 5

Draft.

class Mbim.SmsFormat(value)

Bases: GObject.GEnum

SMS format.

New in version 1.4.

classmethod get_string(val)
Parameters:

val (Mbim.SmsFormat) – a Mbim.SmsFormat.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.SmsFormat specified at val.

New in version 1.4.

PDU = 0

PDU format.

CDMA = 1

CDMA format.

class Mbim.SmsStatus(value)

Bases: GObject.GEnum

Status of a SMS message.

New in version 1.4.

classmethod get_string(val)
Parameters:

val (Mbim.SmsStatus) – a Mbim.SmsStatus.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.SmsStatus specified at val.

New in version 1.4.

NEW = 0

New.

OLD = 1

Old.

DRAFT = 2

Draft.

SENT = 3

Sent.

class Mbim.SmsStorageState(value)

Bases: GObject.GEnum

State of the SMS storage.

New in version 1.4.

classmethod get_string(val)
Parameters:

val (Mbim.SmsStorageState) – a Mbim.SmsStorageState.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.SmsStorageState specified at val.

New in version 1.4.

NOT_INITIALIZED = 0

Storage not initialized.

INITIALIZED = 1

Storage initialized.

class Mbim.StatusError(value)

Bases: GObject.GEnum

Status of the MBIM request.

New in version 1.0.

classmethod get_string(val)
Parameters:

val (Mbim.StatusError) – a Mbim.StatusError.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.StatusError specified at val.

classmethod quark()
Return type:

int

DECODEORPARSINGERROR = -1862270969

Decode or parsing error. Defined by Google for the carrier lock operation.

New in version 1.30.

FEATURENOTSUPPORTED = -1862270970

Feature not supported. Defined by Google for the carrier lock operation.

New in version 1.30.

SIGNATUREALGORITHMNOTSUPPORTED = -1862270971

Signature algorithm not supported. Defined by Google for the carrier lock operation.

New in version 1.30.

NETWORKLISTTOOLARGE = -1862270972

List of networks too large. Defined by Google for the carrier lock operation.

New in version 1.30.

INVALIDTIMESTAMP = -1862270973

Invalid timestamp. Defined by Google for the carrier lock operation.

New in version 1.30.

INVALIDIMEI = -1862270974

Invalid IMEI. Defined by Google for the carrier lock operation.

New in version 1.30.

INVALIDSIGNATURE = -1862270975

Invalid signature. Defined by Google for the carrier lock operation.

New in version 1.30.

NONE = 0

Success, no error.

BUSY = 1

Busy.

PROVIDERNOTVISIBLE = 10

Provider not visible.

SMSUNKNOWNSMSCADDRESS = 100

Unknown SMSC address.

SMSNETWORKTIMEOUT = 101

Network timeout when sending SMS.

SMSLANGNOTSUPPORTED = 102

Language not supported in SMS.

SMSENCODINGNOTSUPPORTED = 103

Encoding not supported in SMS.

SMSFORMATNOTSUPPORTED = 104

Format not supported in SMS.

DATACLASSNOTAVAILABLE = 11

Data class not available.

PACKETSERVICEDETACHED = 12

Packet service detached.

MAXACTIVATEDCONTEXTS = 13

Max activated contexts.

NOTINITIALIZED = 14

Not initialized.

VOICECALLINPROGRESS = 15

Voice call in progress.

CONTEXTNOTACTIVATED = 16

Context not activated.

SERVICENOTACTIVATED = 17

Service not activated.

INVALIDACCESSSTRING = 18

Invalid access string.

INVALIDUSERNAMEPWD = 19

Invalid user name or password.

FAILURE = 2

Failure.

RADIOPOWEROFF = 20

Radio power off.

INVALIDPARAMETERS = 21

Invalid parameters.

READFAILURE = 22

Read failure.

WRITEFAILURE = 23

Write failure.

NOPHONEBOOK = 25

No phonebook.

PARAMETERTOOLONG = 26

Parameter too long.

STKBUSY = 27

SIM toolkit busy.

OPERATIONNOTALLOWED = 28

Operation not allowed.

MEMORYFAILURE = 29

Memory failure.

SIMNOTINSERTED = 3

SIM not inserted.

INVALIDMEMORYINDEX = 30

Invalid memory index.

MEMORYFULL = 31

Memory full.

FILTERNOTSUPPORTED = 32

Filter not supported.

DSSINSTANCELIMIT = 33

DSS instance limit.

INVALIDDEVICESERVICEOPERATION = 34

Invalid device service operation.

AUTHINCORRECTAUTH = 35

Incorrect AUTN when sending authentication.

AUTHSYNCFAILURE = 36

Synchronization failure during the authentication.

AUTHAMFNOTSET = 37

AMF bit not set in the authentication.

CONTEXTNOTSUPPORTED = 38

ContextType not supported by the operation.

New in version 1.16.

BADSIM = 4

Bad SIM.

PINREQUIRED = 5

PIN required.

PINDISABLED = 6

PIN disabled.

NOTREGISTERED = 7

Not registered.

PROVIDERSNOTFOUND = 8

Providers not found.

NODEVICESUPPORT = 9

No device support.

class Mbim.StkPacProfile(value)

Bases: GObject.GEnum

Proactive command profile.

New in version 1.4.

classmethod get_string(val)
Parameters:

val (Mbim.StkPacProfile) – a Mbim.StkPacProfile.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.StkPacProfile specified at val.

New in version 1.4.

NOT_HANDLED_BY_FUNCTION_HANDLED_BY_HOST = 0

Command not handled by function but handled by host.

NOT_HANDLED_BY_FUNCTION_MAY_BE_HANDLED_BY_HOST = 1

Command not handled by function but may be handled by host.

HANDLED_BY_FUNCTION_ONLY_TRANSPARENT_TO_HOST = 2

Command handled by function without informing the host.

HANDLED_BY_FUNCTION_NOTIFICATION_TO_HOST_POSSIBLE = 3

Command handled by function without informing the host, but notifications may be sent to host.

HANDLED_BY_FUNCTION_NOTIFICATIONS_TO_HOST_ENABLED = 4

Command handled by function, and the function wil also send notification to the host.

HANDLED_BY_FUNCTION_CAN_BE_OVERRIDEN_BY_HOST = 5

Command handled by function, but the host may request full control of the command.

HANDLED_BY_HOST_FUNCTION_NOT_ABLE_TO_HANDLE = 6

Command will be forwarded to the host. If the host decides not to receive the command, the function will not handle it.

HANDLED_BY_HOST_FUNCTION_ABLE_TO_HANDLE = 7

Command will be forwarded to the host. If the host decides not to receive the command, the function will handle it.

class Mbim.StkPacType(value)

Bases: GObject.GEnum

Type of proactive command.

New in version 1.4.

classmethod get_string(val)
Parameters:

val (Mbim.StkPacType) – a Mbim.StkPacType.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.StkPacType specified at val.

New in version 1.4.

PROACTIVE_COMMAND = 0

Host is requested to handle the Proactive command.

NOTIFICATION = 1

Proactive command is handled by the function, but the host is notified.

class Mbim.SubscriberReadyState(value)

Bases: GObject.GEnum

Ready state of the subscriber.

New in version 1.0.

classmethod get_string(val)
Parameters:

val (Mbim.SubscriberReadyState) – a Mbim.SubscriberReadyState.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.SubscriberReadyState specified at val.

New in version 1.0.

NOT_INITIALIZED = 0

Not initialized.

INITIALIZED = 1

Initialized.

SIM_NOT_INSERTED = 2

SIM not inserted.

BAD_SIM = 3

Bad SIM.

FAILURE = 4

Failure.

NOT_ACTIVATED = 5

Not activated.

DEVICE_LOCKED = 6

Device locked.

NO_ESIM_PROFILE = 7

The card is ready but does not have any enabled profiles (MS MBIMEx).

New in version 1.28.

class Mbim.TlvType(value)

Bases: GObject.GEnum

Type of the MBIM TLV.

New in version 1.28.

classmethod get_string(val)
Parameters:

val (Mbim.TlvType) – a Mbim.TlvType.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.TlvType specified at val.

New in version 1.28.

INVALID = 0

Invalid TLV type.

UE_POLICITES = 1

UE policies.

WCHAR_STR = 10

WCHAR string.

UINT16_TBL = 11

Array of 1 or more guint16 entries.

EAP_PACKET = 12

Extensible Authentication Protocol packet.

PCO = 13

Protocol Configuration Option (PCO).

ROUTE_SELECTION_DESCRIPTORS = 14

One or more route selection descriptors.

TRAFFIC_PARAMETERS = 15

A traffic parameters record.

WAKE_COMMAND = 16

Wake command.

WAKE_PACKET = 17

Wake packet.

SINGLE_NSSAI = 2

Single NSSAI.

ALLOWED_NSSAI = 3

Allowed NSSAI.

CFG_NSSAI = 4

Configured NSSAI.

DFLT_CFG_NSSAI = 5

Default configured NSSAI.

PRECFG_DFLT_CFG_NSSAI = 6

Preconfigured default configured NSSAI.

REJ_NSSAI = 7

Rejected NSSAI.

LADN = 8

Local Area Data Network (LADN).

TAI = 9

Tracking Area Identity (TAI).

class Mbim.TraceCommand(value)

Bases: GObject.GEnum

The trace command value.

New in version 1.30.

classmethod get_string(val)
Parameters:

val (Mbim.TraceCommand) – a Mbim.TraceCommand.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.TraceCommand specified at val.

New in version 1.30.

MODE = 0

Trace command mode value.

LEVEL = 1

Trace command level value.

LOCATION = 2

Trace command location information.

FLASH_INTERVAL = 3

Trace command flash interval information.

class Mbim.TransmissionNotificationStatus(value)

Bases: GObject.GEnum

Whether modem channel transmission status notification is disabled or enabled.

New in version 1.26.

classmethod get_string(val)
Parameters:

val (Mbim.TransmissionNotificationStatus) – a Mbim.TransmissionNotificationStatus.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.TransmissionNotificationStatus specified at val.

New in version 1.26.

DISABLED = 0

Notification disabled.

ENABLED = 1

Notification enabled.

class Mbim.TransmissionState(value)

Bases: GObject.GEnum

Whether modem is having TX traffic every hysteresis timeout.

New in version 1.26.

classmethod get_string(val)
Parameters:

val (Mbim.TransmissionState) – a Mbim.TransmissionState.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.TransmissionState specified at val.

New in version 1.26.

INACTIVE = 0

Modem was not actively transmitting data.

ACTIVE = 1

Modem was actively transmitting data.

class Mbim.UiccApplicationType(value)

Bases: GObject.GEnum

Type of UICC application.

New in version 1.28.

classmethod get_string(val)
Parameters:

val (Mbim.UiccApplicationType) – a Mbim.UiccApplicationType.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.UiccApplicationType specified at val.

New in version 1.28.

UNKNOWN = 0

Unknown.

MF = 1

Legacy SIM directories rooted at the MF.

MF_SIM = 2

Legacy SIM directories rooted at the DF_GSM.

MF_RUIM = 3

Legacy SIM directories rooted at the DF_CDMA.

USIM = 4

USIM application.

CSIM = 5

CSIM application.

ISIM = 6

ISIM application.

class Mbim.UiccClassByteType(value)

Bases: GObject.GEnum

Specifies the type of class byte definition.

New in version 1.26.

classmethod get_string(val)
Parameters:

val (Mbim.UiccClassByteType) – a Mbim.UiccClassByteType.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.UiccClassByteType specified at val.

New in version 1.26.

INTER_INDUSTRY = 0

Defined according to first interindustry definition in ISO 7816-4.

EXTENDED = 1

Defined according to extended definition in ETSI 102 221.

class Mbim.UiccFileAccessibility(value)

Bases: GObject.GEnum

The UICC file accessibility.

New in version 1.28.

classmethod get_string(val)
Parameters:

val (Mbim.UiccFileAccessibility) – a Mbim.UiccFileAccessibility.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.UiccFileAccessibility specified at val.

New in version 1.28.

UNKNOWN = 0

Unknown.

NOT_SHAREABLE = 1

Not shareable.

SHAREABLE = 2

Shareable.

class Mbim.UiccFileStructure(value)

Bases: GObject.GEnum

The UICC file structure.

New in version 1.28.

classmethod get_string(val)
Parameters:

val (Mbim.UiccFileStructure) – a Mbim.UiccFileStructure.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.UiccFileStructure specified at val.

New in version 1.28.

UNKNOWN = 0

Unknown.

TRANSPARENT = 1

A single record of variable length.

CYCLIC = 2

A cyclic set of records, each of the same length.

LINEAR = 3

A linear set of records, each of the same length.

BER_TLV = 4

A set of data values accessible by tag.

class Mbim.UiccFileType(value)

Bases: GObject.GEnum

The UICC file type.

New in version 1.28.

classmethod get_string(val)
Parameters:

val (Mbim.UiccFileType) – a Mbim.UiccFileType.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.UiccFileType specified at val.

New in version 1.28.

UNKNOWN = 0

Unknown.

WORKING_EF = 1

Working EF.

INTERNAL_EF = 2

Internal EF.

DF_OR_ADF = 3

Dedicated file, DF or ADF.

class Mbim.UiccPassThroughAction(value)

Bases: GObject.GEnum

Pass through actions host can specify to modem. Upon reset treats UICC as if pass through or as a regular UICC

New in version 1.26.

classmethod get_string(val)
Parameters:

val (Mbim.UiccPassThroughAction) – a Mbim.UiccPassThroughAction.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.UiccPassThroughAction specified at val.

New in version 1.26.

DISABLE = 0

Disable pass through.

ENABLE = 1

Enable pass through.

class Mbim.UiccPassThroughStatus(value)

Bases: GObject.GEnum

Pass through status of the modem specifies to the host.

New in version 1.26.

classmethod get_string(val)
Parameters:

val (Mbim.UiccPassThroughStatus) – a Mbim.UiccPassThroughStatus.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.UiccPassThroughStatus specified at val.

New in version 1.26.

DISABLED = 0

Pass through disabled.

ENABLED = 1

Pass through enabled.

class Mbim.UiccSecureMessaging(value)

Bases: GObject.GEnum

Specifies whether apdu is exchanged using secure messaging.

New in version 1.26.

classmethod get_string(val)
Parameters:

val (Mbim.UiccSecureMessaging) – a Mbim.UiccSecureMessaging.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.UiccSecureMessaging specified at val.

New in version 1.26.

NONE = 0

No secure messaging.

NO_HDR_AUTH = 1

Secure, command header not authenticated.

class Mbim.UiccSlotState(value)

Bases: GObject.GEnum

Mbim.UiccSlotState

New in version 1.26.

classmethod get_string(val)
Parameters:

val (Mbim.UiccSlotState) – a Mbim.UiccSlotState.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.UiccSlotState specified at val.

New in version 1.26.

STATE_UNKNOWN = 0

The modem is still in the process of initializing so the SIM slot state is not deterministic.

SATE_OFF_EMPTY = 1

The UICC slot is powered off and no card is present.

STATE_OFF = 2

The UICC slot is powered off.

STATE_EMPTY = 3

The UICC slot is empty(there is no card in it).

STATE_NOT_READY = 4

The UICC slot is occupied and powered on but the card within it is not yet ready.

STATE_ACTIVE = 5

The UICC slot is occupied and the card within it is ready.

STATE_ERROR = 6

The UICC slot is occupied and powreed on but the card is in an error state and cannot be used until it is next reset.

STATE_ACTIVE_ESIM = 7

The card in the slot is an eSIM with an active profile and is ready to accept commands.

STATE_ACTIVE_ESIM_NO_PROFILES = 8

The card in the slot is an eSIM with no profiles(or no active profiles) and is ready to accept commands.

class Mbim.UssdAction(value)

Bases: GObject.GEnum

USSD action.

New in version 1.4.

classmethod get_string(val)
Parameters:

val (Mbim.UssdAction) – a Mbim.UssdAction.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.UssdAction specified at val.

New in version 1.4.

INITIATE = 0

Initiate USSD session.

CONTINUE = 1

Continue USSD session.

CANCEL = 2

Cancel USSD session.

class Mbim.UssdResponse(value)

Bases: GObject.GEnum

USSD response.

New in version 1.4.

classmethod get_string(val)
Parameters:

val (Mbim.UssdResponse) – a Mbim.UssdResponse.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.UssdResponse specified at val.

New in version 1.4.

NO_ACTION_REQUIRED = 0

No action required.

ACTION_REQUIRED = 1

An action is required.

TERMINATED_BY_NETWORK = 2

Terminated by network

OTHER_LOCAL_CLIENT = 3

Other local client.

OPERATION_NOT_SUPPORTED = 4

Operation not supported.

NETWORK_TIMEOUT = 5

Network timeout.

class Mbim.UssdSessionState(value)

Bases: GObject.GEnum

Session state.

New in version 1.4.

classmethod get_string(val)
Parameters:

val (Mbim.UssdSessionState) – a Mbim.UssdSessionState.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.UssdSessionState specified at val.

New in version 1.4.

NEW_SESSION = 0

New session.

EXISTING_SESSION = 1

Existing session.

class Mbim.VisibleProvidersAction(value)

Bases: GObject.GEnum

Type of action to perform when listing visible providers.

New in version 1.2.

classmethod get_string(val)
Parameters:

val (Mbim.VisibleProvidersAction) – a Mbim.VisibleProvidersAction.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.VisibleProvidersAction specified at val.

New in version 1.2.

FULL_SCAN = 0

Full scan.

RESTRICTED_SCAN = 1

Locate preferred multicarrier providers.

class Mbim.VoiceCallState(value)

Bases: GObject.GEnum

Voice Call State.

New in version 1.0.

classmethod get_string(val)
Parameters:

val (Mbim.VoiceCallState) – a Mbim.VoiceCallState.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.VoiceCallState specified at val.

New in version 1.0.

NONE = 0

None.

IN_PROGRESS = 1

Progress.

HANG_UP = 2

Up.

class Mbim.VoiceClass(value)

Bases: GObject.GEnum

Voice class.

New in version 1.0.

classmethod get_string(val)
Parameters:

val (Mbim.VoiceClass) – a Mbim.VoiceClass.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.VoiceClass specified at val.

New in version 1.0.

UNKNOWN = 0

Unknown voice class.

NO_VOICE = 1

Device doesn’t support voice.

SEPARATED_VOICE_DATA = 2

Device supports separate voice and data connections.

SIMULTANEOUS_VOICE_DATA = 3

Device supports simultaneous voice and data connections.

class Mbim.WakeType(value)

Bases: GObject.GEnum

Wake type.

New in version 1.28.

classmethod get_string(val)
Parameters:

val (Mbim.WakeType) – a Mbim.WakeType.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.WakeType specified at val.

New in version 1.28.

CID_RESPONSE = 0

A CID response wakes device.

CID_INDICATION = 1

A CID indication wakes device.

PACKET = 2

An incoming packet wakes device.