automatic APN selection

Aleksander Morgado aleksander at aleksander.es
Tue Feb 12 15:02:59 UTC 2019


> >>> My team still has a feature like this on our product road map. Right now we've been waiting for the next FW release, which has as part of our analytics suite, the ability to gather basic APN & context info(& we have presence in ~55+ countries). We plan on cross referencing this against the AOSP, to build a hint type dbus helper, that given an MCC/MNC could provide a small focused selection of cell config's to the user to choice from. If you wanted to do auto from there it'd be pretty simple I think. Our team is pretty small and moves slowly though, and I don't think we'll get to this until next quarter. I have no reason we couldn't share it as an OS project.
> >>
> >> Than would be perfect. We can build on top of that really nice solution which can be used and I think a lot of companies doing it on it's own somehow so why not to have nice, solid stable solution ;). Can you pls share sources somewhere? Thanks a lot.
> >
> > If you ask me, I would suggest this as a feature to the NetworkManager
> > developers. There's no reason to build a new daemon on top of NM/MM to
> > do this, NM could do this automatically (E.g. if enabled via a config
> > option or something). At the end, NetworkManager already automatically
> > creates settings for other devices (e.g. ethernet) so why not also
> > create automatic settings for WWAN. The libnma library already has
> > stable code to read and parse the mobile-broadband-provider-info
> > database (see https://gitlab.gnome.org/GNOME/network-manager-applet/blob/master/src/libnma/nma-mobile-providers.h)
> > so it could be ported to NM codebase and just do a quick query based
> > on SIM MCCMNC as soon as the SIM is exposed to look for possible APN
> > settings to use.
> With LTE, do you even need to manually specify an APN (or look it up in
> a separate database)? I'm not an expert, but AIUI if you don't specify
> an APN when attaching to LTE the UE should just use the operator
> specified default APN. (Not sure if that works with NM/MM though.)
>

If you don't specify the APN explicitly, if I'm not mistaken you'll be
using the initial LTE default bearer settings, the one automatically
connected when the LTE registration is setup. BUT, you don't have any
guarantee that this bearer will give you Internet access, e.g. several
German operators use a "no internet" initial bearer. So, it may work,
or it may not work.

-- 
Aleksander
https://aleksander.es


More information about the ModemManager-devel mailing list