All of lore.kernel.org
 help / color / mirror / Atom feed
* Provisioning mechanism
@ 2014-04-06 19:37 =?unknown-8bit?q?Jer=C3=B4nimo?= Lopes
  2014-04-07  0:00 ` Denis Kenzior
  0 siblings, 1 reply; 2+ messages in thread
From: =?unknown-8bit?q?Jer=C3=B4nimo?= Lopes @ 2014-04-06 19:37 UTC (permalink / raw)
  To: ofono

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

Hi,

I'm trying to understand ofono build-in provisioning mechanism.

As far as understand these are the steps:

1: get MCC and MNC
2: check settings file for this network, if exists goto step 6
3: try to read provisioning info from the sim card, if ok, goto step 5
4: try to read provisioning from MBPI xml file
5: write info to the settings file
6: if it has a valid provisioning info, "export" (I don't know if this is
the right term, so I'll use it) it to connman.

So my first question, is that correct?

The other question is why provisioning plugin can't get 2 or more apn
settings for the same network and export more than one service to connman?

I've tried to change line 53 of plugins/provision.c, setting
'allow_duplicates' parameter to 'TRUE':
 apns = mbpi_lookup_apn(mcc, mnc, TRUE, &error);

Everything seams to work, but only the first context is exported to
connman. I've try to debug the code, but I could't realize where this is
done.
Is there a particular reason why this can't be done?

Best regards,

Jerônimo Lopes

[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 3450 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Provisioning mechanism
  2014-04-06 19:37 Provisioning mechanism =?unknown-8bit?q?Jer=C3=B4nimo?= Lopes
@ 2014-04-07  0:00 ` Denis Kenzior
  0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2014-04-07  0:00 UTC (permalink / raw)
  To: ofono

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

Hi Jerônimo,

On 04/06/2014 02:37 PM, Jerônimo Lopes wrote:
> Hi,
> 
> I'm trying to understand ofono build-in provisioning mechanism.
> 
> As far as understand these are the steps:
> 
> 1: get MCC and MNC
> 2: check settings file for this network, if exists goto step 6
> 3: try to read provisioning info from the sim card, if ok, goto step 5
> 4: try to read provisioning from MBPI xml file
> 5: write info to the settings file 
> 6: if it has a valid provisioning info, "export" (I don't know if this
> is the right term, so I'll use it) it to connman.
> 
> So my first question, is that correct?

Nope, not really.

The process is roughly like this:
- Load settings file.  Settings are stored according to IMSI of the SIM
- If no settings file is found, wait until MCC, MNC and SPN are known
- Run provisioning plugins (e.g. MBPI)
- If provisioning fails, make up a 'sentinel' context telling external
parties that no valid settings exist.

> 
> The other question is why provisioning plugin can't get 2 or more apn
> settings for the same network and export more than one service to connman?
> 
> I've tried to change line 53 of plugins/provision.c, setting
> 'allow_duplicates' parameter to 'TRUE':
>  apns = mbpi_lookup_apn(mcc, mnc, TRUE, &error);
> 
> Everything seams to work, but only the first context is exported to
> connman. I've try to debug the code, but I could't realize where this is
> done. 
> Is there a particular reason why this can't be done?

oFono can.  Connman only expects to manage a single Internet context, so
having multiple will not work there.

Regards,
-Denis

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-04-07  0:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-06 19:37 Provisioning mechanism =?unknown-8bit?q?Jer=C3=B4nimo?= Lopes
2014-04-07  0:00 ` Denis Kenzior

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.