From: Marcel Holtmann <marcel@holtmann.org>
To: ofono@ofono.org
Subject: RE: GPRS support for Ofono
Date: Wed, 02 Sep 2009 14:01:03 -0700 [thread overview]
Message-ID: <1251925263.1266.124.camel@localhost.localdomain> (raw)
In-Reply-To: <97D5E1BB8FC13D4EA3B34BAE8E6898C9680035E2@orsmsx508.amr.corp.intel.com>
[-- Attachment #1: Type: text/plain, Size: 2636 bytes --]
Hi Waldo,
> > > > I know why you want this, but I'm still against the counter being an
> > > > oFono driver API. There needs to be a proper kernel interface that
> > > > signals the application when an interface has gone away with the rx/tx
> > > > details. This way we handle this generically for all modems without
> > > > relying on some intrinsic hardware capabilities.
> > >
> > > This still doesn't solve the case where the modem is accessed from a PC
> > > client and forwards PPP data as that data will not go through any
> > > network interface, e.g. BT DUN or USB tethering.
> >
> > The cases you describe imply that oFono is not even in control of the gprs
> > context. How would we track/report the tx/rx statistics in that case?
>
> It's probably difficult if the PC client is allowed to redefine GPRS contexts, but otherwise oFono should at least be able to report the total tx/rx for the context's it has defined. The BT DUN / USB bridge could call into oFono and trigger a poll of all the stats to update them, e.g. when a BT DUN connection is disconnected.
how should it do this if oFono is not in the mix. If you are using
Bluetooth DUN and point it to a virtual TTY, then you are out of look.
If using USB CDC ACM then same applies.
The real solution here is Bluetooth PAN and USB CDC Ether which do
properly interact with the networking stack.
> > > The modem is really in the best position to provide the most reliable
> > > information on data usage. You can still use statistics from the network
> > > interfaces as a fall-back in case the modem can not provide this
> > > information.
> >
> > I don't disagree, but not every modem can track these statistics and this
> > isn't described by 27.007. I suggest the initial support should be
> > enabled by the modem driver implementing a custom D-Bus interface and
> > expose these details however it wishes.
>
> The modem driver has no desires of its own :-) It really comes down to what the UI needs and I doubt that the UI wants to deal with this on a modem by modem basis, but sure it's a possibility.
The current consent is that we might send a one time signal with all
statistics details once the interface goes away. Or we can make the
kernel help us here.
However I prefer that we sit this out a little and play with what is
possible before knocking down an API. I am not even sure what different
hardware would give us and how things need to work. I don't see us
having enough information to understand what is needed from a hardware,
driver or oFono core point of view.
Regards
Marcel
next prev parent reply other threads:[~2009-09-02 21:01 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-01 11:09 GPRS support for Ofono Ismo Puustinen
2009-09-01 19:02 ` Jean-Christian de Rivaz
2009-09-01 19:25 ` =?unknown-8bit?q?R=C3=A9mi?= Denis-Courmont
2009-09-01 20:17 ` Jean-Christian de Rivaz
2009-09-01 20:26 ` =?unknown-8bit?q?R=C3=A9mi?= Denis-Courmont
2009-09-01 20:30 ` Christensen, Mikkel
2009-09-01 19:27 ` Christensen, Mikkel
2009-09-01 21:36 ` Denis Kenzior
2009-09-01 22:42 ` Marcel Holtmann
2009-09-01 22:50 ` Denis Kenzior
2009-09-02 6:39 ` =?unknown-8bit?q?R=C3=A9mi?= Denis-Courmont
2009-09-02 9:16 ` Marcel Holtmann
2009-09-02 9:22 ` =?unknown-8bit?q?R=C3=A9mi?= Denis-Courmont
2009-09-02 10:43 ` Aki Niemi
2009-09-02 11:03 ` Marcel Holtmann
2009-09-02 11:19 ` =?unknown-8bit?q?R=C3=A9mi?= Denis-Courmont
2009-09-02 11:30 ` Ismo Puustinen
2009-09-02 12:02 ` Marcel Holtmann
2009-09-02 12:34 ` Aki Niemi
2009-09-02 12:46 ` Marcel Holtmann
2009-09-02 12:51 ` =?unknown-8bit?q?R=C3=A9mi?= Denis-Courmont
2009-09-02 15:28 ` Denis Kenzior
2009-09-02 15:42 ` Aki Niemi
2009-09-02 20:37 ` Marcel Holtmann
2009-09-02 20:36 ` Denis Kenzior
2009-09-02 21:09 ` Marcel Holtmann
2009-09-02 12:46 ` =?unknown-8bit?q?R=C3=A9mi?= Denis-Courmont
2009-09-02 13:01 ` Marcel Holtmann
2009-09-02 17:51 ` Bastian, Waldo
2009-09-02 20:40 ` Marcel Holtmann
2009-09-02 15:00 ` Denis Kenzior
2009-09-02 15:32 ` Aki Niemi
2009-09-02 15:36 ` Denis Kenzior
2009-09-02 15:38 ` =?unknown-8bit?q?R=C3=A9mi?= Denis-Courmont
2009-09-02 16:26 ` Denis Kenzior
2009-09-02 17:39 ` Bastian, Waldo
2009-09-02 17:46 ` Denis Kenzior
2009-09-02 18:41 ` Bastian, Waldo
2009-09-02 21:01 ` Marcel Holtmann [this message]
2009-09-02 21:10 ` =?unknown-8bit?q?R=C3=A9mi?= Denis-Courmont
2009-09-02 21:18 ` Marcel Holtmann
2009-09-02 20:53 ` Marcel Holtmann
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=1251925263.1266.124.camel@localhost.localdomain \
--to=marcel@holtmann.org \
--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.