Identifying mobile phones as modems
Pawel Kot
gnokii at gmail.com
Mon Mar 10 15:11:59 PDT 2008
Hi Bastien,
On Mon, Mar 10, 2008 at 10:51 PM, Bastien Nocera <hadess at hadess.net> wrote:
> Hey Daniel,
>
> On Mon, 2008-03-10 at 12:45 -0700, Daniel Qarras wrote:
> > Hi all,
> >
> > in February it was discussed how modems and mobile broadband cards
> > should be identified (1, 2, 3) and the result was a nice patch to solve
> > the issue (4). So far, so good.
> >
> > I'm now wondering how to deal with a mobile phone connected via a
> > serial/usb cable being used as a modem with NetworkManager. I need the
> > entry below (5) in the file 10-modem.fdi with my Nokia 6021 connected
> > to my laptop via a Nokia CA-42 cable. As the CA-42 cable is only for
> > Nokia phones it should be safe to add this or what do you think? If
> > this is not a good option does anyone have better ideas?
> >
> > Thanks!
> >
> > 1) http://lists.freedesktop.org/archives/hal/2008-February/010747.html
> > 2) http://lists.freedesktop.org/archives/hal/2008-February/010759.html
> > 3) http://lists.freedesktop.org/archives/hal/2008-February/010780.html
> > 4)
> > http://gitweb.freedesktop.org/?p=hal-info.git;a=commit;h=5f906756030f6dcce6f55f11e29631dba023e984
> >
> > 5)
> >
> > <!-- Nokia Mobile Phone via CA-42 -->
> > <match key="@info.parent:usb.vendor_id" int="0x0421">
> > <match key="@info.parent:usb.product_id" int="0x0802">
> > <match key="@info.parent:usb.interface.number" int="0">
>
> Instead of using the interface number, I'd use the interface
> class/subclass, no?
Right, class/subclass is enough to identify the device. Just it is not
the phone itself but the cable. You will get the information about the
cable connected even if there is no phone plugged in.
> I also have a DKU-2 cable for my Nokia phone (0421:0428, interface class
> 2, interface subclass 2) that'd show up the Serial port.
That's right. It's not that easy with CA-53 (DKU-2 successor) at least
with FBUS interface.
> Pawel, any thoughts?
Keep in mind that there are more cables (rs232 converters) to connect
Nokia (and probably not only) phones. We have collected more
information at http://wiki.gnokii.org/index.php/Cables
And one more thing. If it is about automatic starting NetworkManager
when the phone gets connected and it will make all other apps unusable
(because port being in use) I don't think it is a good idea. If it
will let other apps to connect anyway, that's fine.
And it was one of my goals to allow various applications to connect to
the phone simultanously through some abstract layer (remember phone
utopia?).
take care,
pkot
--
Pawel Kot
More information about the hal
mailing list