All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Wagner <wagi@monom.org>
To: ofono@ofono.org
Subject: Re: connman settings for modem APN
Date: Tue, 07 Jan 2020 18:05:26 +0100	[thread overview]
Message-ID: <3268003d-87c8-77f5-75e6-99f82bbb7c78@monom.org> (raw)
In-Reply-To: <CABPh3UMvrJHZoGSNTvvWCNCOHH4jKZ44XcF+3EeD8zxL+CaikQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2085 bytes --]

Hi,

On 07.01.20 17:38, nick83ola wrote:
> I have to manage a modem with connman through dbus and I'm willing to
> work on the ofono plugin to add the APN handling but I'm not familiar
> with connman code.
> 
> Connman is already creating a ofono internet context by default for
> the modem but it doesn't offer the possibility to configure the APN
> (and user/password) for the connection.

Correct.

> Where you would put the dbus method to set the APN for a particular
> connection? 

See oFono documentation on Connection Context.

> I would prefer if possible only to connect to connman not
> connman/ofono.

/*
  * The way this plugin works is following:
  *
  *   powered -> SubscriberIdentity or Online = True -> gprs, context ->
  *     attached -> netreg -> ready
  *
  * Depending on the modem type, this plugin will behave differently.
  *
  * GSM working flow:
  *
  * 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.
[...]

I have only a vague memory on this topic, but I think to remember that 
oFono will only show the CM if the APN was provisioned in oFono. Maybe I 
have false memory on it.

Thanks,
Daniel

           reply	other threads:[~2020-01-07 17:05 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <CABPh3UMvrJHZoGSNTvvWCNCOHH4jKZ44XcF+3EeD8zxL+CaikQ@mail.gmail.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3268003d-87c8-77f5-75e6-99f82bbb7c78@monom.org \
    --to=wagi@monom.org \
    --cc=ofono@ofono.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.