From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: Controlling GPRS connections through Ofono in the presence of Connman
Date: Tue, 15 Jul 2014 08:27:43 -0500 [thread overview]
Message-ID: <53C52C4F.4010708@gmail.com> (raw)
In-Reply-To: <CAEM=xjhG8cOzfYJMPPegFD+15kVXtH1uUxzApXocqFCsNrdKvQ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2409 bytes --]
Hi Frederik,
On 07/15/2014 02:03 AM, Frederik Lotter wrote:
> Hi,
>
> I am working on uBlox support in Ofono. My aim is further than the
> traditional desktop type use case, so I am extending Ofono with a custom
> APN provisioning service.
>
> I want to get some tips on how I should proceed because I do not wish to
> go into an unintentional direction.
>
> We have 3rd party software that needs to finely control the GPRS
> session, constantly monitoring and switching APN's as the network changes.
>
> I need a way for our software to know when the context has successfully
> been activated, for example a post_context_activate() in the driver
The driver is already performing the "callback" into the core. So what
you're looking for is probably something. Perhaps something similar to
__ofono_netreg_add_status_watch. Before you go there though...
> would be great, so that I could add a DBUS message in our custom driver
> which send states to our software in order to know when a socket could
> be opened (not only the post_context_activate() but I also need the
> other states the driver will enter).
Since you are sending a D-Bus message anyway, is it not possible for the
3rd party software to monitor the oFono context state directly? E.g.
the org.ofono.ConnectionContext.Active Property seems to do exactly what
you need. What other states do you require?
>
> Is there a better approach than adding a callback for successful context
> activation in the driver, in Ofono? I feel like Connman is too distant
> and unaware of detailed Ofono states to manage this on the Connman side.
>
> Secondly, I have tested changing states on the Ofono side with the
> Python scripts (enable -> online ) and visa versa and connman seems OK
> with me doing this. I plan to do this from my 3rd party application to
> manage APNs and sockets. Is this an acceptable use case with Connman, it
> seems like it has been designed so that Connman always gets updates on
> Ofono state changes.
All clients of oFono are notified of state changes regardless of which
client initiated a particular state change. So ConnMan should be just
fine with you manipulating the context states from other clients. You
might interfere with some auto-connect / reconnect behavior there, but
sounds like you don't want that behavior active anyway.
Regards,
-Denis
next prev parent reply other threads:[~2014-07-15 13:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-15 7:03 Controlling GPRS connections through Ofono in the presence of Connman Frederik Lotter
2014-07-15 13:27 ` Denis Kenzior [this message]
2014-07-16 14:37 ` Frederik Lotter
2014-07-19 2:04 ` Denis Kenzior
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=53C52C4F.4010708@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 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.