Identifying mobile phones as modems

Bastien Nocera hadess at hadess.net
Tue Mar 11 04:47:44 PDT 2008


On Mon, 2008-03-10 at 15:29 -0700, Daniel Qarras wrote:
> Hi!
> 
> > 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 tested this with Nokia 6021/CA-42 and it stays silent until I plug
> the phone to the cable, ie just the cable doesn't seem to cause
> anything here.

Yes, but if you plug a different phone, it will still have the same
vendor/product IDs. There's active components in the cable.

> > 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.
> 
> To me it seems that connection will start automatically only if the
> user has configured his gsm connection in NetworkManager to autoconnect
> (not default). So I can use gnokii etc while the phone is connected and
> seen by NM as long as the gsm connection is not active.

That's correct. And I don't think that it would be much of a problem for
gnokii in this case.



More information about the hal mailing list