From: Daniel Wagner <wagi@monom.org>
To: ofono@ofono.org
Subject: Re: [PATCH v5 00/16] Add DUN support
Date: Thu, 05 Jan 2012 14:39:13 +0100 [thread overview]
Message-ID: <4F05A801.2030306@monom.org> (raw)
In-Reply-To: <4670174.3vOMRVMVBI@hector>
[-- Attachment #1: Type: text/plain, Size: 2443 bytes --]
Hi Rémi,
On 05.01.2012 13:07, Rémi Denis-Courmont wrote:
> Le Mercredi 4 Janvier 2012 18:17:34 ext Daniel Wagner a écrit :
>> From: Daniel Wagner <daniel.wagner@bmw-carit.de>
>> I think this series is ready to be considered to be merged *hint* :)
>
> I may be missing something obvious, but why is this a new daemon instead of a
> driver or plugin inside oFono?
There are a few reasons why a modem plugin is not really good. Here an
summary from my original posting on the ConnMan mailing list:
This is the 3rd attempt to get DUN done (pun!). The first and second
attempt was to expose DUN devices through the oFono API. While this
sounds like a reasonable way to go it has some - let's put it
this way - ugliness involved.
- No SIM interface: This is not so bad but still we have to hack around
this problem. Since we need some uniqueness to distinguish between
services, the Serial property of the Modem interface has to be
abused for this.
- No NetworkRegistration interface: DUN only specifies ATD*99# AT command.
All other AT commands might be supported (such as AT+COPS=?) but are not
necessarily there. That means we might not get a name for a network. Whereas
you can rely to get this name for a regular modem you can't on DUN ones.
And guess what you cannot distinguish between real hardware modems and
virtual ones unless...
- Abuse Modem.Type: ... add 'dun' type and adapt the oFono plugin. That
_is_ though a very bad idea. We just introduce a mighty switch for
different oFono API behavior. Denis used strong words against this
approach.
- oFono internal design: oFono is not designed to handle this kind
of modems. The dunmodem implementation is rather obscure. The result
of this is that, as soon as a DUN device pops up, an Serial channel is
opened (rfcomm) and kept alive. Unfortunately, there are phones outside
in the wild which like to close the serial link after PPP stops.
With oFono's separation of concerns this is not easy to get working.
- Technology mess: In order to get DUN modems working you have to enable Cellular
and Bluetooth technology. This is really really bad because we expose
the implementation details to the user. Sure, DUN is kind of dying etc.
but then, I don't think our standards are so low.
(http://www.mail-archive.com/connman(a)connman.net/msg06971.html)
cheers,
daniel
prev parent reply other threads:[~2012-01-05 13:39 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-04 17:17 [PATCH v5 00/16] Add DUN support Daniel Wagner
2012-01-04 17:17 ` [PATCH v5 01/16] bluetooth: Add Serial interface definition Daniel Wagner
2012-01-04 17:17 ` [PATCH v5 02/16] dundee: Add documentation Daniel Wagner
2012-01-04 17:17 ` [PATCH v5 03/16] dundee: Add test scripts Daniel Wagner
2012-01-04 17:17 ` [PATCH v5 04/16] dundee: Add skeleton implementation Daniel Wagner
2012-01-04 17:17 ` [PATCH v5 05/16] dundee: Add D-Bus error messages Daniel Wagner
2012-01-04 17:17 ` [PATCH v5 06/16] dundee: Add D-Bus configuration file Daniel Wagner
2012-01-04 17:17 ` [PATCH v5 07/16] dundee: Add systemd " Daniel Wagner
2012-01-04 17:17 ` [PATCH v5 08/16] dundee: Add Manager interface Daniel Wagner
2012-01-04 17:17 ` [PATCH v5 09/16] dundee: Add skeleton implementation for device Daniel Wagner
2012-01-04 17:17 ` [PATCH v5 10/16] dundee: Manager append devices Daniel Wagner
2012-01-04 17:17 ` [PATCH v5 11/16] dundee: Add callback helpers Daniel Wagner
2012-01-04 17:17 ` [PATCH v5 12/16] dundee: Add device un/register Daniel Wagner
2012-01-04 17:17 ` [PATCH v5 13/16] dundee: Add driver helper functions Daniel Wagner
2012-01-04 17:17 ` [PATCH v5 14/16] dundee: Add device D-Bus interface Daniel Wagner
2012-01-04 17:17 ` [PATCH v5 15/16] dundee: Add PPP handling code to device Daniel Wagner
2012-01-04 17:17 ` [PATCH v5 16/16] dundee: Add Bluetooth DUN driver Daniel Wagner
2012-01-05 12:07 ` [PATCH v5 00/16] Add DUN support =?unknown-8bit?q?R=C3=A9mi?= Denis-Courmont
2012-01-05 13:39 ` Daniel Wagner [this message]
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=4F05A801.2030306@monom.org \
--to=wagi@monom.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.