This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
org.freedesktop.ModemManager
org.freedesktop.DBus.Properties
org.freedesktop.ModemManager.Modem
org.freedesktop.ModemManager.Modem.Simple
org.freedesktop.ModemManager.Modem.Location
org.freedesktop.ModemManager.Modem.Cdma
org.freedesktop.ModemManager.Modem.Gsm
org.freedesktop.ModemManager.Modem.Gsm.Card
org.freedesktop.ModemManager.Modem.Gsm.Contacts
org.freedesktop.ModemManager.Modem.Gsm.Network
org.freedesktop.ModemManager.Modem.Gsm.SMS
org.freedesktop.ModemManager.Modem.Gsm.Hso
org.freedesktop.ModemManager.Modem.Gsm.Ussd
devices
-
ao
device
-
o
device
-
o
Interface has no properties.
Interface has no methods.
interface
-
s
properties
-
a{sv}
Interface has no properties.
enable
-
b
address
-
(uuuu)
info
-
(sss)
code
-
s
Interface has no signals.
Device
-
s
-
(read)
MasterDevice
-
s
-
(read)
Driver
-
s
-
(read)
Type
-
u
-
(read)
(MM_MODEM_TYPE)
Enabled
-
b
-
(read)
EquipmentIdentifier
-
s
-
(read)
UnlockRequired
-
s
-
(read)
UnlockRetries
-
u
-
(read)
IpMethod
-
u
-
(read)
(MM_MODEM_IP_METHOD)
MM_MODEM_TYPE_GSM = 1
MM_MODEM_TYPE_CDMA = 2
MM_MODEM_IP_METHOD_PPP = 0
MM_MODEM_IP_METHOD_STATIC = 1
MM_MODEM_IP_METHOD_DHCP = 2
properties
-
a{sv}
properties
-
a{sv}
Interface has no signals.
Interface has no properties.
enable
-
b
signal_location
-
b
Location
-
a{uv}
(Location_Information_Map)
Interface has no signals.
Capabilities
-
u
-
(read)
(MM_MODEM_LOCATION_CAPABILITIES)
Enabled
-
b
-
(read)
SignalsLocation
-
b
-
(read)
Location
-
a{uv}
-
(read)
(Location_Information_Map)
MM_MODEM_LOCATION_CAPABILITY_UNKNOWN = 0x0
Unknown or no capabilties.
MM_MODEM_LOCATION_CAPABILITY_GPS_NMEA = 0x1
For capability reporting, indicates the device is capable of providing GPS NMEA-format location information.
For location reporting, devices supporting this capability return a string containing one or more NMEA sentences (D-Bus signature 's'). The manager will cache the most recent NMEA sentence of each type for a period of time not less than 30 seconds. When reporting multiple NMEA sentences, sentences shall be separated by an ASCII Carriage Return and Line Feed (<CR><LF>) sequence.
For example, if the device sends a $GPRMC sentence immediately followed by a $GPGGA sentence, the reported location string would be (where of course the <CR><LF> is replaced with the actual ASCII CR (0x0D) and LF (0x0A) control characters):
$GPRMC,134523.92,V,,,,,,,030136,,,N*73<CR><LF>$GPGGA,,,,,,0,00,0.5,,M,0.0001999,M,0.0000099,0000*45If the device sends a new $GPRMC three seconds later, the new $GPRMC replaces the previously received $GPRMC sentence, and the updated string would be:
$GPRMC,134526.92,V,,,,,,,030136,,,N*76<CR><LF>$GPGGA,,,,,,0,00,0.5,,M,0.0001999,M,0.0000099,0000*45If the device then sends a $GPGSA sentence about 5 seconds later, the $GPGSA sentence is added to the string (since no $GPGSA sentence was previously received in this session), the updated string would be:
$GPRMC,134526.92,V,,,,,,,030136,,,N*76<CR><LF>$GPGGA,,,,,,0,00,0.5,,M,0.0001999,M,0.0000099,0000*45<CR><LF>$GPGSA,A,1,,,,,,,,,,,,,1.1,0.5,1.0*34The manager may discard any cached sentences older than 30 seconds.
This allows clients to read the latest positioning data as soon as possible after they start, even if the device is not providing frequent location data updates.
MM_MODEM_LOCATION_CAPABILITY_GSM_LAC_CI = 0x2
For capability reporting, indicates the device is capable of providing GSM Location Area Code/Cell ID location information.
For location reporting, devices supporting this capability return a string in the format "MCC,MNC,LAC,CI" (without the quotes of course) where the following applies:
The entire string may only be composed of the ASCII digits [0-9], the alphabetical characters [A-F], and the comma (,) character. No other characters are allowed. For example: "310,260,8BE3,2BAF" or "250,40,CE00,1CEAD8F0".
If any of these four items (MCC,MNC,LAC,CI) is unknown or the mobile is not registered with a network, then the GSM_LAC_CI location information item should not be provided as a returned value from the GetLocation() method or in the Location property.
MM_MODEM_LOCATION_CAPABILITY_GPS_RAW = 0x4
For capability reporting, indicates the device is capable of providing raw GPS information using a series of defined key/value pairs.
For location reporting, devices supporting this capability return a D-Bus dict (signature a{sv}) mapping well-known keys to values with defined formats. The allowed key/value pairs and their formats are:
Key | Value Type | Value contents | Example |
---|---|---|---|
latitude | d | Latitude in Decimal Degrees (positive numbers mean N quadrasphere, negative mean S quadrasphere) | 38.889722 (ie, 38d 53' 22" N) |
longitude | d | Longitude in Decimal Degrees (positive numbers mean E quadrasphere, negative mean W quadrasphere) | -77.008889 (ie, 77d 0' 32" W) |
altitude | d | Altitude above sea level in meters | 33.5 |
horiz-velocity | d | Horizontal velocity in meters-per-second | .5 |
vert-velocity | d | Vertical velocity in meters-per-second | .01 |
The 'latitude' and 'longitude' keys are required; other keys are optional.
Type
-
u
(MM_MODEM_LOCATION_CAPABILITIES)
Data
-
v
quality
-
u
info
-
(usu)
cdma-1x-state
-
u
(MM_MODEM_CDMA_REGISTRATION_STATE)
evdo-state
-
u
(MM_MODEM_CDMA_REGISTRATION_STATE)
quality
-
u
cdma-1x-state
-
u
(MM_MODEM_CDMA_REGISTRATION_STATE)
evdo-state
-
u
(MM_MODEM_CDMA_REGISTRATION_STATE)
Interface has no properties.
MM_MODEM_CDMA_REGISTRATION_STATE_UNKNOWN = 0
MM_MODEM_CDMA_REGISTRATION_STATE_REGISTERED = 1
MM_MODEM_CDMA_REGISTRATION_STATE_HOME = 2
MM_MODEM_CDMA_REGISTRATION_STATE_ROAMING = 3
Interface has no methods.
Interface has no signals.
Interface has no properties.
MM_MODEM_GSM_ALLOWED_MODE_ANY = 0
MM_MODEM_GSM_ALLOWED_MODE_2G_PREFERRED = 1
MM_MODEM_GSM_ALLOWED_MODE_3G_PREFERRED = 2
MM_MODEM_GSM_ALLOWED_MODE_2G_ONLY = 3
MM_MODEM_GSM_ALLOWED_MODE_3G_ONLY = 4
MM_MODEM_GSM_ACCESS_TECH_UNKNOWN = 0
MM_MODEM_GSM_ACCESS_TECH_GSM = 1
MM_MODEM_GSM_ACCESS_TECH_GSM_COMPACT = 2
MM_MODEM_GSM_ACCESS_TECH_GPRS = 3
MM_MODEM_GSM_ACCESS_TECH_EDGE = 4
MM_MODEM_GSM_ACCESS_TECH_UMTS = 5
MM_MODEM_GSM_ACCESS_TECH_HSDPA = 6
MM_MODEM_GSM_ACCESS_TECH_HSUPA = 7
MM_MODEM_GSM_ACCESS_TECH_HSPA = 8
MM_MODEM_GSM_MODE_UNKNOWN = 0x0
MM_MODEM_GSM_MODE_ANY = 0x1
MM_MODEM_GSM_MODE_GPRS = 0x2
MM_MODEM_GSM_MODE_EDGE = 0x4
MM_MODEM_GSM_MODE_UMTS = 0x8
MM_MODEM_GSM_MODE_HSDPA = 0x10
MM_MODEM_GSM_MODE_2G_PREFERRED = 0x20
MM_MODEM_GSM_MODE_3G_PREFERRED = 0x40
MM_MODEM_GSM_MODE_2G_ONLY = 0x80
MM_MODEM_GSM_MODE_3G_ONLY = 0x100
MM_MODEM_GSM_MODE_HSUPA = 0x200
MM_MODEM_GSM_MODE_HSPA = 0x400
MM_MODEM_GSM_MODE_GSM = 0x800
MM_MODEM_GSM_MODE_GSM_COMPACT = 0x1000
MM_MODEM_GSM_BAND_UNKNOWN = 0x0
MM_MODEM_GSM_BAND_ANY = 0x1
MM_MODEM_GSM_BAND_EGSM = 0x2
MM_MODEM_GSM_BAND_DCS = 0x4
MM_MODEM_GSM_BAND_PCS = 0x8
MM_MODEM_GSM_BAND_G850 = 0x10
MM_MODEM_GSM_BAND_U2100 = 0x20
MM_MODEM_GSM_BAND_U1800 = 0x40
MM_MODEM_GSM_BAND_U17IV = 0x80
MM_MODEM_GSM_BAND_U800 = 0x100
MM_MODEM_GSM_BAND_U850 = 0x200
MM_MODEM_GSM_BAND_U900 = 0x400
MM_MODEM_GSM_BAND_U17IX = 0x800
MM_MODEM_GSM_BAND_U1900 = 0x1000
imsi
-
s
puk
-
s
pin
-
s
pin
-
s
pin
-
s
enabled
-
b
old_pin
-
s
new_pin
-
s
Interface has no signals.
SupportedBands
-
u
-
(read)
(MM_MODEM_GSM_BAND)
SupportedModes
-
u
-
(read)
(MM_MODEM_GSM_MODE)
name
-
s
number
-
s
index
-
u
index
-
u
index
-
u
contact
-
(uss)
results
-
a(uss)
pattern
-
s
results
-
a(uss)
count
-
u
Interface has no signals.
Interface has no properties.
network_id
-
s
results
-
aa{ss}
Found networks. It's an array of dictionaries (strings for both keys and values) with each array element describing a mobile network found in the scan. Each dict may include one or more of the following keys:
quality
-
u
band
-
u
(MM_MODEM_GSM_BAND)
band
-
u
(MM_MODEM_GSM_BAND)
mode
-
u
(MM_MODEM_GSM_NETWORK_DEPRECATED_MODE)
mode
-
u
(MM_MODEM_GSM_NETWORK_DEPRECATED_MODE)
info
-
(uss)
mode
-
u
(MM_MODEM_GSM_ALLOWED_MODE)
quality
-
u
status
-
u
(MM_MODEM_GSM_NETWORK_REG_STATUS)
operator_code
-
s
operator_name
-
s
mode
-
u
(MM_MODEM_GSM_NETWORK_DEPRECATED_MODE)
AllowedMode
-
u
-
(read)
(MM_MODEM_GSM_ALLOWED_MODE)
AccessTechnology
-
u
-
(read)
(MM_MODEM_GSM_ACCESS_TECH)
MM_MODEM_GSM_NETWORK_REG_STATUS_IDLE = 0
MM_MODEM_GSM_NETWORK_REG_STATUS_HOME = 1
MM_MODEM_GSM_NETWORK_REG_STATUS_SEARCHING = 2
MM_MODEM_GSM_NETWORK_REG_STATUS_DENIED = 3
MM_MODEM_GSM_NETWORK_REG_STATUS_UNKNOWN = 4
MM_MODEM_GSM_NETWORK_REG_STATUS_ROAMING = 5
MM_MODEM_GSM_NETWORK_DEPRECATED_MODE_ANY = 0
MM_MODEM_GSM_NETWORK_DEPRECATED_MODE_GPRS = 1
MM_MODEM_GSM_NETWORK_DEPRECATED_MODE_EDGE = 2
MM_MODEM_GSM_NETWORK_DEPRECATED_MODE_UMTS = 3
MM_MODEM_GSM_NETWORK_DEPRECATED_MODE_HSDPA = 4
MM_MODEM_GSM_NETWORK_DEPRECATED_MODE_2G_PREFERRED = 5
MM_MODEM_GSM_NETWORK_DEPRECATED_MODE_3G_PREFERRED = 6
MM_MODEM_GSM_NETWORK_DEPRECATED_MODE_2G_ONLY = 7
MM_MODEM_GSM_NETWORK_DEPRECATED_MODE_3G_ONLY = 8
MM_MODEM_GSM_NETWORK_DEPRECATED_MODE_HSUPA = 9
MM_MODEM_GSM_NETWORK_DEPRECATED_MODE_HSPA = 10
index
-
u
sms
-
a{sv}
result
-
u
format
-
u
result
-
s
smsc
-
s
result
-
aa{sv}
properties
-
a{sv}
index
-
au
properties
-
a{sv}
result
-
au
index
-
u
mode
-
u
mt
-
u
bm
-
u
ds
-
u
bfr
-
u
index
-
u
complete
-
b
index
-
u
completed
-
b
Interface has no properties.
username
-
s
password
-
s
Interface has no signals.
Interface has no properties.
command
-
s
reply
-
s
response
-
s
Interface has no signals.
State
-
s
-
(read)
NetworkNotification
-
s
-
(read)
NetworkRequest
-
s
-
(read)
org.freedesktop.ModemManager
org.freedesktop.DBus.Properties
org.freedesktop.ModemManager.Modem
org.freedesktop.ModemManager.Modem.Simple
org.freedesktop.ModemManager.Modem.Location
org.freedesktop.ModemManager.Modem.Cdma
org.freedesktop.ModemManager.Modem.Gsm
org.freedesktop.ModemManager.Modem.Gsm.Card
org.freedesktop.ModemManager.Modem.Gsm.Contacts
org.freedesktop.ModemManager.Modem.Gsm.Network
org.freedesktop.ModemManager.Modem.Gsm.SMS
org.freedesktop.ModemManager.Modem.Gsm.Hso
org.freedesktop.ModemManager.Modem.Gsm.Ussd
Location_Information_Map
- a{ u → v }
MM_MODEM_CDMA_REGISTRATION_STATE
- uMM_MODEM_GSM_ACCESS_TECH
- uMM_MODEM_GSM_ALLOWED_MODE
- uMM_MODEM_GSM_BAND
- uMM_MODEM_GSM_MODE
- uMM_MODEM_GSM_NETWORK_DEPRECATED_MODE
- uMM_MODEM_GSM_NETWORK_REG_STATUS
- uMM_MODEM_IP_METHOD
- uMM_MODEM_LOCATION_CAPABILITIES
- uMM_MODEM_TYPE
- u