All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/4] Automatic provisioning of GPRS context settings
@ 2010-12-21  9:01 Jukka Saunamaki
  2010-12-21  9:01 ` [RFC PATCH 1/4] operator-settings: Add GPRS context provisioning sources Jukka Saunamaki
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Jukka Saunamaki @ 2010-12-21  9:01 UTC (permalink / raw)
  To: ofono

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

Hello

Here is a first attempt to implement automatic provisioning of
Internet and MMS GPRS context settings. ("Internet Access Provider
database" TODO item).

In case there are no previously configured contexts found during gprs
atom registration, this code tries to provision Internet and MMS
contexts based on MCC, MNC and SPN (Service Provider Name) values read
from SIM. Settings are read from an operator settings database.

Settings database is CSV (comma separated values) formatted file(s)
with fields for: (type=INTERNET|MMS protocol=ipv4|ipv6)
MCC,MNC,SPN,type,UI name, APN, username, password, protocol, proxy IP address, proxy port, MMS server URL

e.g. file /etc/ofono/operator-settings/50-default.csv:
001,01,test,INTERNET,Network Tester GPRS,internet,,,,,,
246,81,oFono,INTERNET,Phonesim Internet,internet.apn,,,ipv4,,,
246,81,oFono,MMS,Phonesim MMS,mms.apn,mmsuser,mmspass,ipv4,10.10.10.10,8080,http://192.168.0.111:8002

This format is loosely based on what was used in Nokia N900 for
similar use.

Provisioning logic goes, that first we try to find exact match for
type,MCC,MNC and SPN. If that fails (or if SPN read from SIM is
missing/empty), we select first match for type/MCC/MNC. If also that
fails, an empty context is created (as currently).

Patches also add new function ofono_sim_get_mnc_length to SIM atom API
for figuring out MNC value.

--Jukka Saunamäki



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

end of thread, other threads:[~2010-12-22 10:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-21  9:01 [RFC PATCH 0/4] Automatic provisioning of GPRS context settings Jukka Saunamaki
2010-12-21  9:01 ` [RFC PATCH 1/4] operator-settings: Add GPRS context provisioning sources Jukka Saunamaki
2010-12-21  9:01 ` [RFC PATCH 2/4] sim: add ofono_sim_get_mnc_length Jukka Saunamaki
2010-12-21  9:01 ` [RFC PATCH 3/4] gprs: add automatic context settings provisioning Jukka Saunamaki
2010-12-21  9:01 ` [RFC PATCH 4/4] operator-settings: Example GPRS context settings file Jukka Saunamaki
2010-12-21 14:11 ` [RFC PATCH 0/4] Automatic provisioning of GPRS context settings Marcel Holtmann
2010-12-22 10:08   ` Jukka Saunamaki

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.