Top |
org.freedesktop.ModemManager1.Modemorg.freedesktop.ModemManager1.Modem — The ModemManager Modem interface. |
Enable (IN b enable); ListBearers (OUT ao bearers); CreateBearer (IN a{sv} properties, OUT o path); DeleteBearer (IN o bearer); Reset (); FactoryReset (IN s code); SetPowerState (IN u state); SetCurrentCapabilities (IN u capabilities); SetCurrentModes (IN (uu) modes); SetCurrentBands (IN au bands); Command (IN s cmd, IN u timeout, OUT s response);
Sim readable o Bearers readable ao SupportedCapabilities readable au CurrentCapabilities readable u MaxBearers readable u MaxActiveBearers readable u Manufacturer readable s Model readable s Revision readable s HardwareRevision readable s DeviceIdentifier readable s Device readable s Drivers readable as Plugin readable s PrimaryPort readable s Ports readable a(su) EquipmentIdentifier readable s UnlockRequired readable u UnlockRetries readable a{uu} State readable i StateFailedReason readable u AccessTechnologies readable u SignalQuality readable (ub) OwnNumbers readable as PowerState readable u SupportedModes readable a(uu) CurrentModes readable (uu) SupportedBands readable au CurrentBands readable au SupportedIpFamilies readable u
Enable (IN b enable);
Enable or disable the modem.
When enabled, the modem's radio is powered on and data sessions, voice calls, location services, and Short Message Service may be available.
When disabled, the modem enters low-power state and no network-related operations are available.
|
|
ListBearers (OUT ao bearers);
List configured packet data bearers (EPS Bearers, PDP Contexts, or CDMA2000 Packet Data Sessions).
|
The list of bearer object paths. |
CreateBearer (IN a{sv} properties, OUT o path);
Create a new packet data bearer using the given characteristics.
This request may fail if the modem does not support additional bearers, if too many bearers are already defined, or if properties are invalid.
Allowed properties are:
|
Access Point Name, given as a string value (signature |
|
Addressing type, given as a MMBearerIpFamily value (signature |
|
The authentication method to use, given as a MMBearerAllowedAuth value (signature |
|
User name (if any) required by the network, given as a string value (signature |
|
Password (if any) required by the network, given as a string value (signature |
|
Flag to tell whether connection is allowed during roaming, given as a boolean value (signature |
|
Protocol of the Rm interface, given as a MMModemCdmaRmProtocol value (signature |
|
Telephone number to dial, given as a string value (signature |
Some properties are only applicable to a bearer of certain access
technologies, for example the "apn"
property is not
applicable to CDMA2000 Packet Data Session bearers.
|
List of properties to assign to the bearer after creating it. |
|
On success, the object path of the newly created bearer. |
DeleteBearer (IN o bearer);
Delete an existing packet data bearer.
If the bearer is currently active and providing packet data server, it will be disconnected and that packet data service will terminate.
|
Object path of the bearer to delete. |
Reset ();
Clear non-persistent configuration and state, and return the device to a newly-powered-on state.
This command may power-cycle the device.
FactoryReset (IN s code);
Clear the modem's configuration (including persistent configuration and state), and return the device to a factory-default state.
If not required by the modem, code
may be ignored.
This command may or may not power-cycle the device.
|
Carrier-supplied code required to reset the modem. |
SetPowerState (IN u state);
Set the power state of the modem. This action can only be run when the
modem is in MM_MODEM_STATE_DISABLED
state.
|
A MMModemPowerState value, to specify the desired power state. |
SetCurrentCapabilities (IN u capabilities);
Set the capabilities of the device. A restart of the modem may be required.
|
Bitmask of MMModemCapability values, to specify the capabilities to use. |
SetCurrentModes (IN (uu) modes);
Set the access technologies (e.g. 2G/3G/4G preference) the device is currently allowed to use when connecting to a network.
The given combination should be supported by the modem, as specified in the "SupportedModes" property.
|
A pair of MMModemMode values, where the first one is a bitmask of allowed modes, and the second one the preferred mode, if any. |
SetCurrentBands (IN au bands);
Set the radio frequency and technology bands the device is currently allowed to use when connecting to a network.
|
List of MMModemBand values, to specify the bands to be used. |
StateChanged (i old, i new, u reason);
The modem's state (see "State") changed.
|
A MMModemState value, specifying the new state. |
|
A MMModemState value, specifying the new state. |
|
A MMModemStateChangeReason value, specifying the reason for this state change. |
Bearers readable ao
The list of bearer object paths (EPS Bearers, PDP Contexts, or CDMA2000 Packet Data Sessions).
SupportedCapabilities readable au
List of MMModemCapability values, specifying the combinations of generic family of access technologies the modem supports.
If the modem doesn't allow changing the current capabilities, a single entry with
MM_MODEM_CAPABILITY_ANY
will be given.
CurrentCapabilities readable u
Bitmask of MMModemCapability values, specifying the generic family of access technologies the modem currently supports without a firmware reload or reinitialization.
MaxBearers readable u
The maximum number of defined packet data bearers the modem supports.
This is not the number of active/connected bearers the modem supports, but simply the number of bearers that may be defined at any given time. For example, POTS and CDMA2000-only devices support only one bearer, while GSM/UMTS devices typically support three or more, and any LTE-capable device (whether LTE-only, GSM/UMTS-capable, and/or CDMA2000-capable) also typically support three or more.
MaxActiveBearers readable u
The maximum number of active packet data bearers the modem supports.
POTS and CDMA2000-only devices support one active bearer, while GSM/UMTS and LTE-capable devices (including LTE/CDMA devices) typically support at least two active bearers.
Manufacturer readable s
The equipment manufacturer, as reported by the modem.
Revision readable s
The revision identification of the software, as reported by the modem.
HardwareRevision readable s
The revision identification of the hardware, as reported by the modem.
DeviceIdentifier readable s
A best-effort device identifier based on various device information like model name, firmware revision, USB/PCI/PCMCIA IDs, and other properties.
This ID is not guaranteed to be unique and may be shared between identical devices with the same firmware, but is intended to be "unique enough" for use as a casual device identifier for various user experience operations.
This is not the device's IMEI or ESN since those may not be available before unlocking the device via a PIN.
Device readable s
The physical modem device reference (ie, USB, PCI, PCMCIA device), which may be dependent upon the operating system.
In Linux for example, this points to a sysfs path of the usb_device object.
This value may also be set by the user using the MM_ID_PHYSDEV_UID udev tag (e.g. binding the tag to a specific sysfs path).
Drivers readable as
The Operating System device drivers handling communication with the modem hardware.
PrimaryPort readable s
The name of the primary port using to control the modem.
Ports readable a(su)
The list of ports in the modem, given as an array of string and unsigned integer pairs. The string is the port name or path, and the integer is the port type given as a MMModemPortType value.
EquipmentIdentifier readable s
The identity of the device.
This will be the IMEI number for GSM devices and the hex-format ESN/MEID for CDMA devices.
UnlockRequired readable u
Current lock state of the device, given as a MMModemLock value.
UnlockRetries readable a{uu}
A dictionary in which the keys are MMModemLock flags, and the values are integers giving the number of PIN tries remaining before the code becomes blocked (requiring a PUK) or permanently blocked. Dictionary entries exist only for the codes for which the modem is able to report retry counts.
State readable i
Overall state of the modem, given as a MMModemState value.
If the device's state cannot be determined,
MM_MODEM_STATE_UNKNOWN
will be reported.
StateFailedReason readable u
Error specifying why the modem is in
MM_MODEM_STATE_FAILED
state, given as a
MMModemStateFailedReason value.
AccessTechnologies readable u
Bitmask of MMModemAccessTechnology values, specifying the current network access technologies used by the device to communicate with the network.
If the device's access technology cannot be determined,
MM_MODEM_ACCESS_TECHNOLOGY_UNKNOWN
will be reported.
SignalQuality readable (ub)
Signal quality in percent (0 - 100) of the dominant access technology the device is using to communicate with the network. Always 0 for POTS devices.
The additional boolean value indicates if the quality value given was recently taken.
OwnNumbers readable as
List of numbers (e.g. MSISDN in 3GPP) being currently handled by this modem.
PowerState readable u
A MMModemPowerState value specifying the current power state of the modem.
SupportedModes readable a(uu)
This property exposes the supported mode combinations, given as an array of unsigned integer pairs, where:
The first integer is a bitmask of MMModemMode values, specifying the allowed modes. | |
The second integer is a single MMModemMode, which specifies the preferred access technology, among the ones defined in the allowed modes. |
CurrentModes readable (uu)
A pair of MMModemMode values, where the first one is a bitmask specifying the access technologies (eg 2G/3G/4G) the device is currently allowed to use when connecting to a network, and the second one is the preferred mode of those specified as allowed.
The pair must be one of those specified in "SupportedModes".
SupportedBands readable au
List of MMModemBand values, specifying the radio frequency and technology bands supported by the device.
For POTS devices, only the
MM_MODEM_BAND_ANY
mode will be returned.
CurrentBands readable au
List of MMModemBand values, specifying the radio frequency and technology bands the device is currently using when connecting to a network.
It must be a subset of "SupportedBands".
SupportedIpFamilies readable u
Bitmask of MMBearerIpFamily values, specifying the IP families supported by the device.