NM.DeviceModem

g GObject.Object GObject.Object NM.Object NM.Object GObject.Object->NM.Object NM.Device NM.Device NM.DeviceModem NM.DeviceModem NM.Device->NM.DeviceModem NM.Object->NM.Device

Subclasses:

None

Methods

Inherited:

NM.Device (54), NM.Object (2), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_apn ()

get_current_capabilities ()

get_device_id ()

get_modem_capabilities ()

get_operator_code ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Inherited:

NM.Device (32), NM.Object (2)

Name

Type

Flags

Short Description

apn

str

r

current-capabilities

NM.DeviceModemCapabilities

r

device-id

str

r

modem-capabilities

NM.DeviceModemCapabilities

r

operator-code

str

r

Signals

Inherited:

NM.Device (1), GObject.Object (1)

Fields

Inherited:

NM.Device (1), GObject.Object (1)

Class Details

class NM.DeviceModem(**kwargs)
Bases:

NM.Device

Abstract:

No

Structure:

NM.DeviceModemClass

get_apn()
Returns:

the APN name or None if disconnected

Return type:

str

The access point name the modem is connected to.

New in version 1.20.

get_current_capabilities()
Returns:

the generic access technology families the modem supports without a firmware reload or other reinitialization

Return type:

NM.DeviceModemCapabilities

Returns a bitfield of the generic access technology families the modem supports without a firmware reload or reinitialization. This value represents the network types the modem can immediately connect to.

get_device_id()
Returns:

a device-id string

Return type:

str

An identifier used by the modem backend (ModemManager) that aims to uniquely identify the a device. Can be used to match a connection to a particular device.

New in version 1.20.

get_modem_capabilities()
Returns:

the generic access technology families the modem supports

Return type:

NM.DeviceModemCapabilities

Returns a bitfield of the generic access technology families the modem supports. Not all capabilities are available concurrently however; some may require a firmware reload or reinitialization.

get_operator_code()
Returns:

the operator code or None if disconnected or not a 3GPP modem.

Return type:

str

The MCC and MNC (concatenated) of the network the modem is connected to.

New in version 1.20.

Property Details

NM.DeviceModem.props.apn
Name:

apn

Type:

str

Default Value:

None

Flags:

READABLE

New in version 1.20.

NM.DeviceModem.props.current_capabilities
Name:

current-capabilities

Type:

NM.DeviceModemCapabilities

Default Value:

NM.DeviceModemCapabilities.NONE

Flags:

READABLE

The generic family of access technologies the modem currently supports without a firmware reload or reinitialization.

NM.DeviceModem.props.device_id
Name:

device-id

Type:

str

Default Value:

None

Flags:

READABLE

New in version 1.20.

NM.DeviceModem.props.modem_capabilities
Name:

modem-capabilities

Type:

NM.DeviceModemCapabilities

Default Value:

NM.DeviceModemCapabilities.NONE

Flags:

READABLE

The generic family of access technologies the modem supports. Not all capabilities are available at the same time however; some modems require a firmware reload or other reinitialization to switch between eg CDMA/EVDO and GSM/UMTS.

NM.DeviceModem.props.operator_code
Name:

operator-code

Type:

str

Default Value:

None

Flags:

READABLE

New in version 1.20.