E220

ehung

New Member
Joined
Mar 12, 2007
Messages
1
Reaction score
0
Some questions about HUAWEI E220!!! Please help me!!

Hi Tazz_Tux ..
I bought a HUAWEI E220 3.5G modem and I tried to make it work in the Fedora Core 6. The kernel is 2.6.18-1. I follow some instruction to make it work.

1. First, I insert the HUAWEI E220 into my USB and umount HUAWEI E220 device .

2. rmmod usb-storage

3. modprobe usbserial vendor=0x12d1 product=0x1003

4. remove HUAWEI E220 module and re-insert it wait a few seconds.

5. ls -la /dev/ttyU*
crw-rw---- 1 root uucp 188, 0 3月 15 17:49 /dev/ttyUSB0

6. dmesg
.......
usb 2-2: new full speed USB device using ohci_hcd and address 4
usb 2-2: configuration #1 chosen from 1 choice
usbserial_generic 2-2:1.0: generic converter detected
usb 2-2: generic converter now attached to ttyUSB0
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.

7. wvdial.conf
[Dialer Defaults]
Phone = *99***1#
Username = username
Password = password
Stupid Mode = 1
Dial Command = ATDT
[Dialer huawei_e220]
Modem = /dev/ttyUSB0
Baud = 460800
Init2 = ATZ
Init3 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ISDN = 0
Modem Type = Analog Modem

8. wvdial huawei_e220
--> WvDial: Internet dialer version 1.54.0
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
--> Sending: ATQ0
--> Re-Sending: ATZ
--> Modem not responding.

I have no ideal what's wrong with it.
Could you give some suggestion about that,please ?
Thank you very much.
 
I have a similar problem:
uname -a says:
Linux puppypc 2.6.18.1 #1 Sat Nov 11 07:52:06 PUP 2006 i686 unknown unknown GNU/Linux
(Puppy-Linux; especially for embedded pcs with low cpu/ram)

using rmmod usb-storage and modprobe usbserial [...], I come to a point where the modem is detected:

Code:
Mar 15 13:49:30 (none) user.info kernel: usb 1-2: new full speed USB device using uhci_hcd and address 12
Mar 15 13:49:31 (none) user.info kernel: usb 1-2: configuration #1 chosen from 1 choice
Mar 15 13:49:31 (none) user.info kernel: usbserial_generic 1-2:1.0: generic converter detected
Mar 15 13:49:31 (none) user.info kernel: usb 1-2: generic converter now attached to ttyUSB0
(ttyUSB0 on this system seems to be /dev/usb/ttyUSB. So I changed the entry in wvdial.conf)

Code:
sh-3.00# wvdial huewai_e220
--> WvDial: Internet dialer version 1.42
--> Initializing modem.
--> Sending: ATZ
--> Modem not responding.
--> Initializing modem.
--> Sending: ATZ
--> Modem not responding.
--> Initializing modem.
--> Sending: ATZ
--> Modem not responding.

Sometimes, especially after rebooting, the wvdial states something like this:
Code:
sh-3.00# wvdial huewai_e220 
--> WvDial: Internet dialer version 1.42
--> Initializing modem.
--> Sending: ATZ
--> Modem not responding.
--> Cannot open /dev/usb/ttyUSB0: No such device
--> Cannot open /dev/usb/ttyUSB0: No such device
and at the same time, the modem seems to disconnect by itself, and is re-detected 10 seconds later:
(cannot paste log, since at the moment, it just won't disconnect. but in dmesg it looks kind of like I removed it from the USB port)

any suggestions?
 
Hi Tazz_Tux ..
I bought a HUAWEI E220 3.5G modem and I tried to make it work in the Fedora Core 6. The kernel is 2.6.18-1. I follow some instruction to make it work.

1. First, I insert the HUAWEI E220 into my USB and umount HUAWEI E220 device .

2. rmmod usb-storage

3. modprobe usbserial vendor=0x12d1 product=0x1003

4. remove HUAWEI E220 module and re-insert it wait a few seconds.

5. ls -la /dev/ttyU*
crw-rw---- 1 root uucp 188, 0 3月 15 17:49 /dev/ttyUSB0

6. dmesg
.......
usb 2-2: new full speed USB device using ohci_hcd and address 4
usb 2-2: configuration #1 chosen from 1 choice
usbserial_generic 2-2:1.0: generic converter detected
usb 2-2: generic converter now attached to ttyUSB0
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.

7. wvdial.conf
[Dialer Defaults]
Phone = *99***1#
Username = username
Password = password
Stupid Mode = 1
Dial Command = ATDT
[Dialer huawei_e220]
Modem = /dev/ttyUSB0
Baud = 460800
Init2 = ATZ
Init3 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ISDN = 0
Modem Type = Analog Modem

8. wvdial huawei_e220
--> WvDial: Internet dialer version 1.54.0
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
--> Sending: ATQ0
--> Re-Sending: ATZ
--> Modem not responding.

I have no ideal what's wrong with it.
Could you give some suggestion about that,please ?
Thank you very much.

Hey ehung,

I'm using Fedora Core 6 as well.. exact same kernel.. so I can confirm that the E220 does work...

I noticed that I did not need to do the unplug / replug routine...

Here's how I do it..

Insert the device then and wait till till FC automatically mounts it..
"Eject" (i.e., unmount) the device.
/sbin/rmmod usb_storage
/sbin/modprobe usbserial vendor=0x12d1 product=0x1003

At this point the system output reads:
Code:
usbserial_generic 4-2:1.0: generic converter detected
usb 4-2: generic converter now attached to ttyUSB0
usbserial_generic 4-2:1.1: generic converter detected
usb 4-2: generic converter now attached to ttyUSB1
usbserial_generic 4-2:1.2: generic converter detected
usb 4-2: generic converter now attached to ttyUSB2

And then it works... I did not have to do anything else.. so theroretically this should work for you too (same kernel, same config) but well.. sometimes it just doesn't.. :o

Maybe I'm just lucky.. :p
 
dear ehung (and all others, where the device is only detected as ttyUSB0 and NOT as ttyUSB1 and ttyUSB2)

connect the modem, and reboot (=have the modem connected while booting and NEVER remove it during that session :) )

do the "rmmod usb-storage" and "modprobe usbserial vendor=0x12d1 product=0x1003"

look at dmesg - maybe it is now ttyUSB0-ttyUSB2 !!!
now, maybe you have to "touch /etc/ppp/peers/wvdial" (if it doesn't exist)
then, "wvdial huewai_e220" (or "wvdial pin huewai_e220, depending on pin requirement)
 
Top
Sign up to the MyBroadband newsletter
X