[ILUG] Mobile dongle not seen

Gareth Eason bigbro at skynet.ie
Thu Oct 22 13:26:19 IST 2009


Gerard Cunningham wrote:
> On Tue, 2009-10-20 at 12:17 +0100, FRLinux wrote:
>> On Tue, Oct 20, 2009 at 12:46 AM, Gerard Cunningham <lists at faduda.net> w=
rote:
>>> Bus 003 Device 002: ID 12d1:1001 Huawei... Ltd. E620 USB Modem
>> Mmmh, for that dongle, had to jump through hoops to make it work, mind
>> you it was on Gentoo, but last i checked (using karmic at the mo
>> 9.10), usb_modeswitch is still not shipped with it, see this for
>> reference: http://frl1nux.blogspot.com/2009/04/huawei-e180-linux.html
>>
> =

> I'm going to list what I did with the information at the above link in
> the hope that someone may be able to tell me where I went wrong.
> =

> First off, I'm using Ubuntu 9.04 on a Thinkpad T60. The dongle is a
> Huawei E620 from Vodafone, on contract.
> =

> (1) Downloaded usb_modeswitch, unpacked,ran [make install]
> =

> (2) Edited /etc/usb_modeswitch.conf by uncommenting the following lines
>        DefaultVendor=3D 0x12d1
>        DefaultProduct=3D 0x1001
>        HuaweiMode=3D1
>     Uncommenting consists of removing semicolon at start of lines.
> =

> (3) Created /etc/udev/rules.d/45-huawei.rules containing the following:
> =

> SUBSYSTEM=3D=3D"usb", SYSFS{idVendor}=3D=3D"12d1", SYSFS{idProduct}=3D=3D=
"1003", RUN
> +=3D"/usr/sbin/usb_modeswitch"
>             [I also tried SYSFS{idProduct}=3D=3D"1001"]
> =

> (4) Went to  restart udev with the following commands: killall udevd
>     && /usr/sbin/udevd --daemon
>     Got the following messages:
>             udev(917): Operation not permitted
>             udevd: no process killed.
> Years of Windows thinking kicked in, and I cold booted (cold boot kills
> everything, so why not?)
> =

> (5) Before the reboot, I went to ensure /etc/modprobe.conf contains:
>           options usbserial vendor=3D0x12d1 product=3D0x1003
> =

> Turns out Ubuntu don't have a modprobe.conf file, so I created one. I
> contains *only* the above line. This may be the root of my problems.
> =

> (6) Reboot. No change. Network Manager still doesn't detect the dongle.
[snip]

	Ubuntu appears to largely ignore modprobe files - please ignore any and all
previous documentation regarding these files, they just don't work (at least
reliably.) I've not figured out what the Ubuntu replacement is (yet).

	Try putting all this in a script. Because of a different issue I see under
Ubuntu (i.e. NetworkManager being a heap of toss) I use wvdial and some
scripts which almost reliably connect me to the internet :) At least, they
will provide you with a solid test bed that's known to work on another syst=
em.

As root (make sure vendor and product IDs are correct):
modprobe -r option && modprobe -r usbserial && modprobe usbserial
vendor=3D0x02d1 product=3D0x1001 && modprobe option
sleep 3
wvdial o2

	I've attached my wvdial.conf file - if you've not already got it installed,
'aptitude install wvdial' will see you right :)

	Hope this helps. Any questions, please feel free to drop me a mail.

	Best regards,
	-->Gar
-------------- next part --------------
[Dialer Defaults]
Modem =3D /dev/ttyUSB0
Phone =3D *99#
Username =3D vodafone
Password =3D password
New PPPD =3D yes
Init =3D ATZ
Stupid Mode =3D 1

[Dialer reset]
Modem =3D /dev/ttyUSB0
Init1 =3D AT

[Dialer o2]
Phone =3D *99#
Username =3D O2
Password =3D password
New PPPD =3D Yes
Stupid Mode =3D 1
Dial Command =3D ATDT
Baud =3D 460800
Init =3D ATZ
Init1 =3D AT
Init2 =3D ATZ
Init3 =3D ATQ0 V1 E1 S0=3D0 &C1 &D2 +FCLASS=3D0
Init5 =3D AT+CGDCONT=3D1,"IP","open.internet";
ISDN =3D 0
Modem Type =3D USB Modem

[Dialer vodafone]
Modem =3D /dev/ttyUSB0
#Phone =3D *99***1#
Phone =3D *99#
Username =3D vodafone
Password =3D password
New PPPD =3D Yes
Stupid Mode =3D 1
Dial Command =3D ATDT
Baud =3D 460800
Init =3D ATZ
Init1 =3D AT
Init2 =3D ATZ
Init3 =3D ATQ0 V1 E1 S0=3D0 &C1 &D2 +FCLASS=3D0
Init5 =3D AT+CGDCONT=3D1,"IP","vodafone.ie";
ISDN =3D 0
Modem Type =3D USB Modem

[Dialer three]
Phone =3D *99#
Username =3D three
Password =3D three
Stupid Mode =3D 1
Dial Command =3D ATDT
Modem =3D /dev/ttyUSB2
Baud =3D 460800
Init2 =3D ATZ
Init3 =3D ATE0V1&D2&C1S0=3D0+IFC=3D2,2
ISDN =3D 0
Modem Type =3D Analog Modem
Init5 =3DAT+CGDCONT=3D1,"IP","3ireland.ie";
Modem Type =3D USB Modem




More information about the ILUG mailing list