From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: trying to understand context creation
Date: Wed, 22 Feb 2012 03:19:25 -0600 [thread overview]
Message-ID: <4F44B31D.2050501@gmail.com> (raw)
In-Reply-To: <CAHiDW_FfSoXvdsovuuyikOJswrF2AMLGksdAeQ_uUL==00wg5w@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 3317 bytes --]
Hi Jussi,
On 02/22/2012 03:58 AM, Jussi Kukkonen wrote:
> On Tue, Feb 21, 2012 at 4:03 PM, Denis Kenzior <denkenz@gmail.com> wrote:
>> Hi Jussi,
>
> Hi, thanks for clarification, it helps a lot.
>
>> On 02/21/2012 09:20 AM, Jussi Kukkonen wrote:
> [clip]
>>> * Modem with ConnectionManager appears
>>> A ConnectionContext may have been created automatically or not. Under
>>> what circumstances does this happen? E.g. If the mobile broadband db
>>> contains several plans for a MNC/MCC does ofono try them until one
>>> works or is the selection left to user? Are there checks to make sure
>>> the created context is valid for the network?
>>
>> Actually this is really rather straight forward.
>> 1. oFono obtains the IMSI from the Sim Card, this is a unique identifier
>> of the subscriber.
>> 2. If the IMSI has not been seen before (e.g. a new never before sim
>> card is inserted) proceed to step 2a.
>> 2a. oFono obtains MCC/MNC & SPN from the SIM file system, and asks any
>> provisioning plugins to provide context information. The contract
>> between the provisioning plugin and oFono is that the information
>> provided must be unique. E.g. if there are any conflicts, or multiple
>> matches for a given mcc/mnc/spn then provisioning should fail.
>> Successful provisioning results in a set of contexts being created
>> before ConnectionManager interface is registered.
>> 2b. If provisioning fails or mcc/mnc information is not known (e.g.
>> inadequate modem driver support) then a single, default, empty context
>> is created.
>> 3. If the IMSI has been seen before, then any contexts created
>> previously are loaded from the IMSI-keyed storage. This includes the
>> unprovisioned 'default, empty context' if it hasn't been provisioned
>> previously.
>> So to sum up, from a UI point of view, you only need to care about
>> provisioning if the UI detects a single, empty context of type
>> 'internet' with empty APN/username/password.
>
> or if the user explicitly tells me he wants to mess the context up
> manually -- I will have to provide this possibility at all times if
> there's no way of knowing whether specific settings are considered
> valid by the network.
Yep, sounds good.
>
>> And no, there is absolutely no way to know whether a given context
>> settings are valid, but a good indication would be that a context
>> activation fails.
>
> Aha... would you consider it a good/bad idea if a configuration UI
> activated/deactivated the context after modifications to check for
> this? This could be useful to say "We couldn't connect to the network
> with these settings, would you like try another configuration?"
>
I'm generally in favor of not over-complicating this, but instead
relying on the provisioning data as much as possible. Look at iOS for a
good example, the user doesn't have any UI to edit context settings, it
is all provisioned using carrier profiles. Granted, the provisioning
database in use is a little bit better than what
mobile-broadband-provider-info provides, so some way to manually enter
details would still be required in our case; however we should strive to
make this as rarely used as possible.
What you suggest is a good idea, but might be overkill...
Regards,
-Denis
next prev parent reply other threads:[~2012-02-22 9:19 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-21 15:20 trying to understand context creation Jussi Kukkonen
2012-02-21 14:03 ` Denis Kenzior
2012-02-22 9:58 ` Jussi Kukkonen
2012-02-22 9:19 ` Denis Kenzior [this message]
2012-02-24 11:55 ` Jussi Kukkonen
2012-02-24 5:12 ` Denis Kenzior
2012-02-24 16:13 ` Jussi Kukkonen
2012-02-24 7:20 ` Denis Kenzior
2012-02-27 9:25 ` Jussi Kukkonen
2012-02-27 10:54 ` Marcel Holtmann
2012-02-27 13:20 ` Jussi Kukkonen
2012-02-27 17:30 ` Marcel Holtmann
2012-02-28 9:19 ` [RFC v0] ofono: Only register network when APN is set Daniel Wagner
2012-02-28 10:02 ` Daniel Wagner
2012-02-28 14:06 ` Jussi Kukkonen
2012-02-28 16:33 ` Marcel Holtmann
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=4F44B31D.2050501@gmail.com \
--to=denkenz@gmail.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox