From 3bcbc7b644d51ef846d621e97674f903368f6a30 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Fri, 30 Sep 2011 15:01:19 +0200 Subject: [PATCH] api: Let MM_MODEM_MODE be a bitfield, and new PreferredMode property MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Supported and Allowed modes are modified to be bitmasks of MM_MODEM_MODE values, and preference of a specific mode is now given in the new PreferredMode property and as an extra argument to the SetAllowedModes() call. * Supported Modes: bitmask specifying which modes are supported by the specific hardware. For example, a modem may only support 1G/2G/3G connections (not 4G). * Allowed Modes: bitmask specifying which modes, of the ones Supported by the modem, are allowed to use. For example, a modem may support 1G/2G/3G connections but only 1G and 2G connections are allowed by the user as 3G involves more expensive data rates. [Allowed] ⊆ [Supported] * Preferred Mode: specific mode which is preferred among the ones defined in the Allowed modes bitmask. For example, a modem may allow 1G/2G/3G connections but the user would like that if possible 2G be used, as 3G consumes too much battery. If 2G is not possible, 3G can be used. [Preferred] ∈ [Allowed] --- new/org.freedesktop.ModemManager1.Modem.xml | 60 +++++++++++---------- 1 file changed, 31 insertions(+), 29 deletions(-) diff --git a/new/org.freedesktop.ModemManager1.Modem.xml b/new/org.freedesktop.ModemManager1.Modem.xml index 55a52aa8..8da5680d 100644 --- a/new/org.freedesktop.ModemManager1.Modem.xml +++ b/new/org.freedesktop.ModemManager1.Modem.xml @@ -111,11 +111,16 @@ - + Bitmask of all the modes allowed in the modem. + + + Specific mode preferred among the ones allowed, if any. + + @@ -296,6 +301,13 @@ + + + The preferred access technology (eg 2G/3G/4G), among the ones defined in + the allowed modes. Only one or none values must be given. + + + Access technology selection modes supported by the device. For POTS @@ -492,38 +504,28 @@ - Describes the device's current access mode preference; ie the specific - technology preferences the device is allowed to use when connecting to - a network. Also used as a bitfield to indicate which allowed modes - the modem supports when setting the mode preference. + Bitfield to indicate which access modes are supported, allowed or + preferred in a given device. - + + None + + + CSD, GSM + + + GPRS, EDGE + + + UMTS, HSxPA + + + LTE + + Any mode can be used (only this value allowed for POTS modems) - - - Prefer 2G (GPRS or EDGE) - - - Prefer 3G (UMTS or HSxPA) - - - Prefer 4G (LTE) - - - Use only 2G (GPRS or EDGE) - - - Use only 3G (UMTS or HSxPA) - - - Use only 4G (LTE) - -