ModemManager.SimpleStatus

g GObject.Object GObject.Object ModemManager.SimpleStatus ModemManager.SimpleStatus GObject.Object->ModemManager.SimpleStatus

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_3gpp_operator_code ()

get_3gpp_operator_name ()

get_3gpp_registration_state ()

get_3gpp_subscription_state ()

get_access_technologies ()

get_cdma_cdma1x_registration_state ()

get_cdma_evdo_registration_state ()

get_cdma_nid ()

get_cdma_sid ()

get_current_bands ()

get_signal_quality ()

get_state ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

access-technologies

ModemManager.ModemAccessTechnology

r/w

Access technologies used by the modem

cdma-cdma1x-registration-state

ModemManager.ModemCdmaRegistrationState

r/w

Registration state in the CDMA1x network

cdma-evdo-registration-state

ModemManager.ModemCdmaRegistrationState

r/w

Registration state in the EV-DO network

cdma-nid

int

r/w

Network Identifier of the serving CDMA1x network

cdma-sid

int

r/w

System Identifier of the serving CDMA1x network

current-bands

GLib.Variant

r/w

Frequency bands used by the modem

m3gpp-operator-code

str

r/w

Code of the current operator in the 3GPP network

m3gpp-operator-name

str

r/w

Name of the current operator in the 3GPP network

m3gpp-registration-state

ModemManager.Modem3gppRegistrationState

r/w

Registration state in the 3GPP network

m3gpp-subscription-state

ModemManager.Modem3gppSubscriptionState

r/w

Subscription state of the account (deprecated)

signal-quality

GLib.Variant

r/w

Signal quality reported by the modem

state

ModemManager.ModemState

r/w

State of the modem

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GObject.Object

r

Class Details

class ModemManager.SimpleStatus(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

ModemManager.SimpleStatusClass

The ModemManager.SimpleStatus structure contains private data and should only be accessed using the provided API.

get_3gpp_operator_code()
Returns:

the operator code, or None if unknown. Do not free the returned value, it is owned by self.

Return type:

str

Gets the MCC/MNC of the operator of the 3GPP network where the modem is registered.

New in version 1.0.

get_3gpp_operator_name()
Returns:

the operator name, or None if unknown. Do not free the returned value, it is owned by self.

Return type:

str

Gets the name of the operator of the 3GPP network where the modem is registered.

New in version 1.0.

get_3gpp_registration_state()
Returns:

a ModemManager.Modem3gppRegistrationState.

Return type:

ModemManager.Modem3gppRegistrationState

Gets the current state of the registration in the 3GPP network.

New in version 1.0.

get_3gpp_subscription_state()
Returns:

a ModemManager.Modem3gppSubscriptionState.

Return type:

ModemManager.Modem3gppSubscriptionState

Gets the current subscription status of the account.

New in version 1.0.

Deprecated since version 1.12.0.: The value of this property can only be obtained with operator specific logic (e.g. processing specific PCO info), and therefore it doesn’t make sense to expose it in the ModemManager interface.

get_access_technologies()
Returns:

a bitmask of ModemManager.ModemAccessTechnology values.

Return type:

ModemManager.ModemAccessTechnology

Gets the currently used access technologies.

New in version 1.0.

get_cdma_cdma1x_registration_state()
Returns:

a ModemManager.ModemCdmaRegistrationState.

Return type:

ModemManager.ModemCdmaRegistrationState

Gets the current state of the registration in the CDMA-1x network.

New in version 1.0.

get_cdma_evdo_registration_state()
Returns:

a ModemManager.ModemCdmaRegistrationState.

Return type:

ModemManager.ModemCdmaRegistrationState

Gets the current state of the registration in the EV-DO network.

New in version 1.0.

get_cdma_nid()
Returns:

the NID, or ModemManager.MODEM_CDMA_NID_UNKNOWN if unknown.

Return type:

int

Gets the Network Identification number of the CDMA network.

New in version 1.0.

get_cdma_sid()
Returns:

the SID, or ModemManager.MODEM_CDMA_SID_UNKNOWN if unknown.

Return type:

int

Gets the System Identification number of the CDMA network.

New in version 1.0.

get_current_bands()
Returns:

bands:

location for an array of ModemManager.ModemBand values. Do not free the returned value, it is owned by self.

n_bands:

number of elements in bands.

Return type:

(bands: ModemManager.ModemBand, n_bands: int)

Gets the currently used frequency bands.

New in version 1.0.

get_signal_quality()
Returns:

the signal quality.

recent:

indication of whether the given signal quality is considered recent.

Return type:

(int, recent: bool)

Gets the signal quality.

New in version 1.0.

get_state()
Returns:

a ModemManager.ModemState.

Return type:

ModemManager.ModemState

Gets the state of the modem.

New in version 1.0.

Property Details

ModemManager.SimpleStatus.props.access_technologies
Name:

access-technologies

Type:

ModemManager.ModemAccessTechnology

Default Value:

ModemManager.ModemAccessTechnology.UNKNOWN

Flags:

READABLE, WRITABLE

Access technologies used by the modem

ModemManager.SimpleStatus.props.cdma_cdma1x_registration_state
Name:

cdma-cdma1x-registration-state

Type:

ModemManager.ModemCdmaRegistrationState

Default Value:

ModemManager.ModemCdmaRegistrationState.UNKNOWN

Flags:

READABLE, WRITABLE

Registration state in the CDMA1x network

ModemManager.SimpleStatus.props.cdma_evdo_registration_state
Name:

cdma-evdo-registration-state

Type:

ModemManager.ModemCdmaRegistrationState

Default Value:

ModemManager.ModemCdmaRegistrationState.UNKNOWN

Flags:

READABLE, WRITABLE

Registration state in the EV-DO network

ModemManager.SimpleStatus.props.cdma_nid
Name:

cdma-nid

Type:

int

Default Value:

99999

Flags:

READABLE, WRITABLE

Network Identifier of the serving CDMA1x network

ModemManager.SimpleStatus.props.cdma_sid
Name:

cdma-sid

Type:

int

Default Value:

99999

Flags:

READABLE, WRITABLE

System Identifier of the serving CDMA1x network

ModemManager.SimpleStatus.props.current_bands
Name:

current-bands

Type:

GLib.Variant

Default Value:

None

Flags:

READABLE, WRITABLE

Frequency bands used by the modem

ModemManager.SimpleStatus.props.m3gpp_operator_code
Name:

m3gpp-operator-code

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Code of the current operator in the 3GPP network

ModemManager.SimpleStatus.props.m3gpp_operator_name
Name:

m3gpp-operator-name

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Name of the current operator in the 3GPP network

ModemManager.SimpleStatus.props.m3gpp_registration_state
Name:

m3gpp-registration-state

Type:

ModemManager.Modem3gppRegistrationState

Default Value:

ModemManager.Modem3gppRegistrationState.UNKNOWN

Flags:

READABLE, WRITABLE

Registration state in the 3GPP network

ModemManager.SimpleStatus.props.m3gpp_subscription_state
Name:

m3gpp-subscription-state

Type:

ModemManager.Modem3gppSubscriptionState

Default Value:

ModemManager.Modem3gppSubscriptionState.UNKNOWN

Flags:

READABLE, WRITABLE

Subscription state of the account (deprecated)

ModemManager.SimpleStatus.props.signal_quality
Name:

signal-quality

Type:

GLib.Variant

Default Value:

None

Flags:

READABLE, WRITABLE

Signal quality reported by the modem

ModemManager.SimpleStatus.props.state
Name:

state

Type:

ModemManager.ModemState

Default Value:

ModemManager.ModemState.UNKNOWN

Flags:

READABLE, WRITABLE

State of the modem