Hi Dennis, On Wed, 4 Mar 2020 at 17:11, Denis Kenzior <[email protected]> wrote:
> Hi Nicola, > > No top posting please. > Ok sorry > On 3/4/20 11:00 AM, nick83ola wrote: > > Hi Giacinto, > > We have a web application that is talking to connman and ofono over dbus. > > We present the user with the list and once is connected to a profile > > connman remembers > > it so if I connect again the same modem connman will remember it as a > > favourite and automatically connect. > > or at least is what I'm thinking of doing. > > If you're making the user choose, why not follow the advice I have > already given Martin and others? Just provision the context once > if/when automatic provisioning fails. This is how connman/ofono were > designed to be used. Any workarounds you introduce will just make your > life harder. > In my case automatic provisioning always fails: - the database has multiple entries for basically every operator/country - also Ofono doesn;t expose a Dbus API to query the database - so the current plugin is useless: it always provision the wrong settings If I want to do it externally I have to reimplement the whole "quering thedatabase logic", delete all the automatic provisioned profile and setup custom ones. So the provision plugin is basically useless. > To automatically connect without the user I was thinking of > > implementing what you said: > > - retrieve "cellular" services from connman > > - check if there are favourite services > > - if there are not try one context one after the another > > > So method of elimination. Doesn't sound elegant ;) > What is the more "elegant" solution in your opinion? > > The main issue is that connman is not exposing the APN and data over > > dbus and is not easy to identify also the context > > which a service is referring to... the other indication is the name > > So if I create something in ofono I don't know how connman will call > it.... :-( > > > > ConnMan was explicitly designed not to expose such details > mmm Those are details that are exposed in every connection manager that I know of... see Android network settings for example (maybe there's a reason??) > Regards, > -Denis > Regards - Nicola
_______________________________________________ ofono mailing list -- [email protected] To unsubscribe send an email to [email protected]
