sqasl1!
August 5th, 2008, 07:46 AM
Hi all
I'm bit a 'Nux n00b and have just recently (this weekend) installed Ubuntu 8.04. I have Huawei E220 mobile broadband with provider three.co.uk (in the UK) and I've confirmed the following strange behaviour (when I say confirmed I mean I've installed Ubuntu 3 times in the past 2 days tyring to figure this out, and this happens on a fresh out-the-box install with no added software or updates).
1. When you install Ubuntu, plug the modem in and configure the wvdial.conf file, everything works. You can unplug and replug the modem as many times are you want, everything is ok. The modem is picked up again soon after replugging and wvdial connects without problems.
2. If you then reboot Ubuntu LEAVING THE MODEM PLUGGED IN, something breaks. The modem will work fine when you connect immediately after reboot. However if you then unplug and replug it, wvdial is unable to see it.
This relates to the posts http://ubuntuforums.org/showthread.php?p=5526904
and http://ubuntuforums.org/showthread.php?t=823687&highlight=huawei+e220+problems
and others I've found on the web since I now have exactly the same problem as they do.
It seems as if something funny happens with detecting USB devices during the boot process. Here is transcript from a Terminal after I had rebooted the pc with the modem plugged in.
jacques@jacques-desktop:~$ uname -r
2.6.24-19-generic
jacques@jacques-desktop:~$ lsusb
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 005: ID 1241:1166 Belkin optical mouse w/ scrollwheel
Bus 002 Device 004: ID 046d:c501 Logitech, Inc. Cordless Mouse Receiver
Bus 002 Device 003: ID 046d:c218 Logitech, Inc. Logitech RumblePad 2 USB
Bus 002 Device 002: ID 04e1:0201 Iiyama North America, Inc. Monitor Hub
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 004: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem
Bus 001 Device 001: ID 0000:0000
jacques@jacques-desktop:~$ ls /dev/ttyU*
/dev/ttyUSB0 /dev/ttyUSB2 /dev/ttyUSB4 /dev/ttyUSB6 /dev/ttyUSB8
/dev/ttyUSB1 /dev/ttyUSB3 /dev/ttyUSB5 /dev/ttyUSB7
jacques@jacques-desktop:~$ sudo wvdial
[sudo] password for jacques:
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Wed Aug 6 10:13:27 2008
--> Pid of pppd: 5925
--> Using interface ppp0
--> pppd: `�[06][08]��[06][08]
--> pppd: `�[06][08]��[06][08]
--> pppd: `�[06][08]��[06][08]
--> pppd: `�[06][08]��[06][08]
--> pppd: `�[06][08]��[06][08]
--> pppd: `�[06][08]��[06][08]
--> local IP address 10.178.44.8
--> pppd: `�[06][08]��[06][08]
--> remote IP address 10.64.64.64
--> pppd: `�[06][08]��[06][08]
--> primary DNS address 172.31.76.69
--> pppd: `�[06][08]��[06][08]
--> secondary DNS address 172.30.140.69
--> pppd: `�[06][08]��[06][08]
Caught signal 2: Attempting to exit gracefully...
--> Terminating on signal 15
--> pppd: `�[06][08]��[06][08]
--> Connect time 0.1 minutes.
--> pppd: `�[06][08]��[06][08]
--> pppd: `�[06][08]��[06][08]
--> pppd: `�[06][08]��[06][08]
--> Disconnecting at Wed Aug 6 10:13:36 2008
#Unplug the modem from USB port
jacques@jacques-desktop:~$ lsusb
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 005: ID 1241:1166 Belkin optical mouse w/ scrollwheel
Bus 002 Device 004: ID 046d:c501 Logitech, Inc. Cordless Mouse Receiver
Bus 002 Device 003: ID 046d:c218 Logitech, Inc. Logitech RumblePad 2 USB
Bus 002 Device 002: ID 04e1:0201 Iiyama North America, Inc. Monitor Hub
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
jacques@jacques-desktop:~$ ls /dev/ttyU*
ls: cannot access /dev/ttyU*: No such file or directory
#Plug modem back into USB port
jacques@jacques-desktop:~$ lsusb
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 005: ID 1241:1166 Belkin optical mouse w/ scrollwheel
Bus 002 Device 004: ID 046d:c501 Logitech, Inc. Cordless Mouse Receiver
Bus 002 Device 003: ID 046d:c218 Logitech, Inc. Logitech RumblePad 2 USB
Bus 002 Device 002: ID 04e1:0201 Iiyama North America, Inc. Monitor Hub
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 005: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem
Bus 001 Device 001: ID 0000:0000
jacques@jacques-desktop:~$ ls /dev/ttyU*
/dev/ttyUSB0 /dev/ttyUSB1 /dev/ttyUSB2
jacques@jacques-desktop:~$ sudo wvdial
--> WvDial: Internet dialer version 1.60
--> Cannot open /dev/ttyUSB0: No such file or directory
--> Cannot open /dev/ttyUSB0: No such file or directory
--> Cannot open /dev/ttyUSB0: No such file or directory
jacques@jacques-desktop:~$
jacques@jacques-desktop:~$ wvdialconf
Editing `/etc/wvdial.conf'.
Scanning your serial ports for a modem.
WvModem<*1>: Cannot set information for serial port.
ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
WvModem<*1>: Cannot set information for serial port.
ttyS1<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS1<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS1<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Modem Port Scan<*1>: S2 S3 USB0
ttyUSB1<Info>: Exec format error
Modem Port Scan<*1>: USB1
ttyUSB2<Info>: Exec format error
Modem Port Scan<*1>: USB2
Sorry, no modem was detected! Is it in use by another program?
Did you configure it properly with setserial?
Please read the FAQ at http://open.nit.ca/wiki/?WvDial
If you still have problems, send mail to <wvdial-list@lists.nit.ca>.
jacques@jacques-desktop:~$
As you can see, initially there are 9 USB devices labelled /dev/ttyUSBx, then upon unplug and replug there are only 3. Also, immediately after the fresh install (when the modem was working fine) Ubuntu only detected the three devices /dev/ttyUSB0, /dev/ttyUSB1 and /dev/ttyUSB2.
And on top of it all, I can now no longer connect to the internet at all, even if I reboot with the modem plugged in: something else seems to have happened and Ubuntu now only finds the devices /dev/ttyUSB0, /dev/ttyUSB1 and /dev/ttyUSB2 and not, like before, the devices /dev/ttyUSBx with x = 0, 1, ... 8
For completeness, here is my wvdial.conf file:
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Stupid Mode = 1
Modem Type = Analog Modem
ISDN = 0
Phone = *99#
Username = three
Password = three
Modem = /dev/ttyUSB0
Dial Command = ATDT
Baud = 9600
[Dialer three]
Init2 = ATZ
Init3 = ATE0 V1 &D2 &C1 S0=0 +IFC=2,2
Init5 = AT+CGDCONT=1,"IP","3internet"
ISDN = 0
Modem = /dev/ttyUSB0
Modem Type = Analog Modem
Baud = 460800
Any of you clever guys (and girls?) got any idea what might be going on?
Thanks
I'm bit a 'Nux n00b and have just recently (this weekend) installed Ubuntu 8.04. I have Huawei E220 mobile broadband with provider three.co.uk (in the UK) and I've confirmed the following strange behaviour (when I say confirmed I mean I've installed Ubuntu 3 times in the past 2 days tyring to figure this out, and this happens on a fresh out-the-box install with no added software or updates).
1. When you install Ubuntu, plug the modem in and configure the wvdial.conf file, everything works. You can unplug and replug the modem as many times are you want, everything is ok. The modem is picked up again soon after replugging and wvdial connects without problems.
2. If you then reboot Ubuntu LEAVING THE MODEM PLUGGED IN, something breaks. The modem will work fine when you connect immediately after reboot. However if you then unplug and replug it, wvdial is unable to see it.
This relates to the posts http://ubuntuforums.org/showthread.php?p=5526904
and http://ubuntuforums.org/showthread.php?t=823687&highlight=huawei+e220+problems
and others I've found on the web since I now have exactly the same problem as they do.
It seems as if something funny happens with detecting USB devices during the boot process. Here is transcript from a Terminal after I had rebooted the pc with the modem plugged in.
jacques@jacques-desktop:~$ uname -r
2.6.24-19-generic
jacques@jacques-desktop:~$ lsusb
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 005: ID 1241:1166 Belkin optical mouse w/ scrollwheel
Bus 002 Device 004: ID 046d:c501 Logitech, Inc. Cordless Mouse Receiver
Bus 002 Device 003: ID 046d:c218 Logitech, Inc. Logitech RumblePad 2 USB
Bus 002 Device 002: ID 04e1:0201 Iiyama North America, Inc. Monitor Hub
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 004: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem
Bus 001 Device 001: ID 0000:0000
jacques@jacques-desktop:~$ ls /dev/ttyU*
/dev/ttyUSB0 /dev/ttyUSB2 /dev/ttyUSB4 /dev/ttyUSB6 /dev/ttyUSB8
/dev/ttyUSB1 /dev/ttyUSB3 /dev/ttyUSB5 /dev/ttyUSB7
jacques@jacques-desktop:~$ sudo wvdial
[sudo] password for jacques:
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Wed Aug 6 10:13:27 2008
--> Pid of pppd: 5925
--> Using interface ppp0
--> pppd: `�[06][08]��[06][08]
--> pppd: `�[06][08]��[06][08]
--> pppd: `�[06][08]��[06][08]
--> pppd: `�[06][08]��[06][08]
--> pppd: `�[06][08]��[06][08]
--> pppd: `�[06][08]��[06][08]
--> local IP address 10.178.44.8
--> pppd: `�[06][08]��[06][08]
--> remote IP address 10.64.64.64
--> pppd: `�[06][08]��[06][08]
--> primary DNS address 172.31.76.69
--> pppd: `�[06][08]��[06][08]
--> secondary DNS address 172.30.140.69
--> pppd: `�[06][08]��[06][08]
Caught signal 2: Attempting to exit gracefully...
--> Terminating on signal 15
--> pppd: `�[06][08]��[06][08]
--> Connect time 0.1 minutes.
--> pppd: `�[06][08]��[06][08]
--> pppd: `�[06][08]��[06][08]
--> pppd: `�[06][08]��[06][08]
--> Disconnecting at Wed Aug 6 10:13:36 2008
#Unplug the modem from USB port
jacques@jacques-desktop:~$ lsusb
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 005: ID 1241:1166 Belkin optical mouse w/ scrollwheel
Bus 002 Device 004: ID 046d:c501 Logitech, Inc. Cordless Mouse Receiver
Bus 002 Device 003: ID 046d:c218 Logitech, Inc. Logitech RumblePad 2 USB
Bus 002 Device 002: ID 04e1:0201 Iiyama North America, Inc. Monitor Hub
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
jacques@jacques-desktop:~$ ls /dev/ttyU*
ls: cannot access /dev/ttyU*: No such file or directory
#Plug modem back into USB port
jacques@jacques-desktop:~$ lsusb
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 005: ID 1241:1166 Belkin optical mouse w/ scrollwheel
Bus 002 Device 004: ID 046d:c501 Logitech, Inc. Cordless Mouse Receiver
Bus 002 Device 003: ID 046d:c218 Logitech, Inc. Logitech RumblePad 2 USB
Bus 002 Device 002: ID 04e1:0201 Iiyama North America, Inc. Monitor Hub
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 005: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem
Bus 001 Device 001: ID 0000:0000
jacques@jacques-desktop:~$ ls /dev/ttyU*
/dev/ttyUSB0 /dev/ttyUSB1 /dev/ttyUSB2
jacques@jacques-desktop:~$ sudo wvdial
--> WvDial: Internet dialer version 1.60
--> Cannot open /dev/ttyUSB0: No such file or directory
--> Cannot open /dev/ttyUSB0: No such file or directory
--> Cannot open /dev/ttyUSB0: No such file or directory
jacques@jacques-desktop:~$
jacques@jacques-desktop:~$ wvdialconf
Editing `/etc/wvdial.conf'.
Scanning your serial ports for a modem.
WvModem<*1>: Cannot set information for serial port.
ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
WvModem<*1>: Cannot set information for serial port.
ttyS1<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS1<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS1<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Modem Port Scan<*1>: S2 S3 USB0
ttyUSB1<Info>: Exec format error
Modem Port Scan<*1>: USB1
ttyUSB2<Info>: Exec format error
Modem Port Scan<*1>: USB2
Sorry, no modem was detected! Is it in use by another program?
Did you configure it properly with setserial?
Please read the FAQ at http://open.nit.ca/wiki/?WvDial
If you still have problems, send mail to <wvdial-list@lists.nit.ca>.
jacques@jacques-desktop:~$
As you can see, initially there are 9 USB devices labelled /dev/ttyUSBx, then upon unplug and replug there are only 3. Also, immediately after the fresh install (when the modem was working fine) Ubuntu only detected the three devices /dev/ttyUSB0, /dev/ttyUSB1 and /dev/ttyUSB2.
And on top of it all, I can now no longer connect to the internet at all, even if I reboot with the modem plugged in: something else seems to have happened and Ubuntu now only finds the devices /dev/ttyUSB0, /dev/ttyUSB1 and /dev/ttyUSB2 and not, like before, the devices /dev/ttyUSBx with x = 0, 1, ... 8
For completeness, here is my wvdial.conf file:
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Stupid Mode = 1
Modem Type = Analog Modem
ISDN = 0
Phone = *99#
Username = three
Password = three
Modem = /dev/ttyUSB0
Dial Command = ATDT
Baud = 9600
[Dialer three]
Init2 = ATZ
Init3 = ATE0 V1 &D2 &C1 S0=0 +IFC=2,2
Init5 = AT+CGDCONT=1,"IP","3internet"
ISDN = 0
Modem = /dev/ttyUSB0
Modem Type = Analog Modem
Baud = 460800
Any of you clever guys (and girls?) got any idea what might be going on?
Thanks