summaryrefslogtreecommitdiff
path: root/plugins/ofono.c
diff options
context:
space:
mode:
authorDaniel Wagner <daniel.wagner@bmw-carit.de>2012-01-27 11:46:15 +0100
committerSamuel Ortiz <sameo@linux.intel.com>2012-01-27 11:46:15 +0100
commit221312d36cc5d82b95c8e4f0964acaa9cc24b2eb (patch)
treed35dad4b2d93914c04d00647c30731a7acf6ecd3 /plugins/ofono.c
parentba75e35df73b8049d3932ca008a8f6c8308b610c (diff)
downloadconnman-221312d36cc5d82b95c8e4f0964acaa9cc24b2eb.tar.gz
connman-221312d36cc5d82b95c8e4f0964acaa9cc24b2eb.tar.bz2
connman-221312d36cc5d82b95c8e4f0964acaa9cc24b2eb.zip
oFono: Update documentation
Explain how the plugin works for a GSM modem.
Diffstat (limited to 'plugins/ofono.c')
-rw-r--r--plugins/ofono.c26
1 files changed, 20 insertions, 6 deletions
diff --git a/plugins/ofono.c b/plugins/ofono.c
index f15c36d0..0a77a6f1 100644
--- a/plugins/ofono.c
+++ b/plugins/ofono.c
@@ -83,13 +83,27 @@ enum ofono_api {
* powered -> SubscriberIdentity or Online = True -> gprs, context ->
* attached -> netreg -> ready
*
- * Enabling and disabling modems are steered through the rfkill
- * interface. That means when ConnMan toggles the rfkill bit oFono
- * will add or remove the modems.
+ * Depending on the modem type, this plugin will behave differently.
+ * For example CDMA CDMA modems don't have an IMSI. The following
+ * description is strictly about GSM modems.
*
- * ConnMan will always power up (set Powered and Online) the
- * modems. No need to power them down because this will be done
- * through the rfkill inteface.
+ * When a new modem appears, the plugin always powers it up. This
+ * allows the plugin to create a connman_device. The core will call
+ * modem_enable() if the technology is enabled. modem_enable() will
+ * then set the modem online. If the technology is disabled then
+ * modem_disable() will just set the modem offline. The modem is
+ * always kept powered all the time.
+ *
+ * After setting the modem online the plugin waits for the
+ * ConnectionManager and ConnectionContext to appear. When the context
+ * signals that it is attached and the NetworkRegistration interface
+ * appears, a new Service will be created and registered at the core.
+ *
+ * When asked to connect to the network (network_connect()) the plugin
+ * will set the Active property on the context. If this operation is
+ * successful the modem is connected to the network. oFono will inform
+ * the plugin about IP configuration through the updating the context's
+ * properties.
*/
static DBusConnection *connection;