Help needed with Huawei E220

skywatcher

Member
Joined
Feb 14, 2007
Messages
29
Reaction score
0
Location
Wellington, South Africa
Hi Tazz-Tux

(My apology for repeating this thread here. I inadvertently posted it on the How To page.)

I'm back to haunt you, this time with a new E220!:)

When I plug in the modem after the /etc/init.d/... command, the system sees it as a mass storage device and opens the file browser. Also, I don't get the messages that you give in your instructions. Instead, every second or so I get this message on the terminal:

sr0: Current: sense key: No Sense
Additional sense: No additional sense information
sr 5:0:0:0: SCSI error: return code = 0x8000002

By the way, the modem works -- I tested it on Windows.

Where to from here?
 
Rtfm :(

Hi Tazz-Tux

I'm back to haunt you, this time with a new E220!:)

When I plug in the modem after the /etc/init.d/... command, the system sees it as a mass storage device ....

Where to from here?

RTFMing the past week (I only got my E220 yesterday,
and I still would've prefered to get the non-VMC Winblows software ;^) showed that it's an "issue" that should get resolved in the 2.6.20 kernels (Atleast I recalled something for 2.6.20-rc2 ;^)

Anycase, the methods to resolve is documented in this and other forums, but it boils down to rmmod usb-storage and then modprobe usb-serial.

What I sofar noticed that nobody really "noticed", is that the Linux kernel (in some form of eternal (lack of??) wisdom) assumes that a USB device[1] can only be grabbed by a single kernel module/driver/device-type, thus it prevents the USB serial driver from attaching to the serial portion of the E220. The assumption in further kernel hacks is that the read-only CD thingy will never be useful for the linux crowds (note the use of the words never, useful and assumed) thus they'll just disable it in the usb-storage etc. drivers so that only the usb-serial driver would attach to it.

Yeah, I'm not yet into the moods to get that fixed soon... but when Huawei makes that CD thingy writable/useful Linux info on there, then it will become an issue to get it properly fixed ;^P

Note [1]: There are other "devices" that have multiple uses like the Targus docking stations, but they appear to be USB bridges with the devices hanging of this bridge...
 
Do I have to do this step from the How To?

***
Extra Steps for the HSDPA card:

Download the kernel module from the link below. Extract it to a directory somewhere safe. If you are *still* running the 2.4 series of kernels, you need to change the Makefile to reflect this.

Compile the driver using the following commands:


Code:
make clean && make
***

I get this: 'bash: make: command not found'
 
E220 modem installation: Halfway there?

OK, I got so far as to see the modem connected to ttyUSB0.

Then I try to connect:

wvdial huawei_e220 && sleep 5 && internet 3gonly 384k
--> WvDial: Internet dialer version 1.55
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
--> Sending: ATQ0
--> Re-Sending: ATZ
--> Modem not responding.

Isn't there supposed to be an 'OK' response after the ATZ command?
 
OK, I got so far as to see the modem connected to ttyUSB0.

Then I try to connect:

wvdial huawei_e220 && sleep 5 && internet 3gonly 384k
--> WvDial: Internet dialer version 1.55
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
--> Sending: ATQ0
--> Re-Sending: ATZ
--> Modem not responding.

Isn't there supposed to be an 'OK' response after the ATZ command?

Correct....

Did you remove the storage module ?
 
Something I've noticed with my modem is that it doesn't always come up right (despite my having killed my usb-storage module). If it creates only a /dev/tttyUSB0 and not through to ttyUSB2, then it will usually get it right after a reboot or two? Heh.........??
 
Not only Linux :(

Something I've noticed with my modem is that it doesn't always come up right (despite my having killed my usb-storage module). If it creates only a /dev/tttyUSB0 and not through to ttyUSB2, then it will usually get it right after a reboot or two? Heh.........??

I've noticed that it had trouble coming back on Windows after suspend-resume.
(Unit left plugged in)

I've also noticed it had trouble on a Windows XP to come up after a reboot with unit plugged in. Recovered after I unplugged and reinserted the dongle.
 
Making some progress, but it still doesn't work. After plugging the modem in and out a few times (similar to Elton's reboots?), I get this far:

CONNECT
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Mon Mar 5 16:58:11 2007
--> Warning: Could not modify /etc/ppp/pap-secrets: Permission denied
--> --> PAP (Password Authentication Protocol) may be flaky.
--> Warning: Could not modify /etc/ppp/chap-secrets: Permission denied
--> --> CHAP (Challenge Handshake) may be flaky.
--> Pid of pppd: 6852
--> Using interface ppp0

Then there seems to be a time-out of sorts, after which the modem is re-initialized and the above message is repeated to halt at --> Using interface ppp0.

I have tried using both cables.
(Would these problems indicate that a firmware upgrade is due?)
 
Last edited:
Same problem as skywatcher

Hello!

Been trying to make a Huawey E220 modem work, on a Ubuntu Edgy 6.10. I have all updates, followed all instructions at Tazz_Tux's original post (http://www.mybroadband.co.za/vb/showthread.php?t=21726). The modem only installs 1 entrance on /dev/, /dev/ttyUSB0.

I get the same error as skywatcher, 'modem not responding'. It indicates the following at the console:

--> WvDial: Internet dialer version 1.56
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: AT+CPIN=xxxx
--> Sending: ATQ0
--> Re-Sending: AT+CPIN=xxxx
--> Modem not responding.​

I've tried disconnecting and connecting again the modem, it installs again the usb-storage module. I remove it, call wvdial but same error. Right after that error, the modem seems to disconnect completely, no /dev/ttyUSB0, and comes back after a few seconds. I've tried with both cables. I'm at a loss...

Any tips?

From Portugal, thx. Ricardo
 
Last edited:
Maybe someone out there would like to swap an E620 for an E220?;)

Actually, I'm serious. The E220 seems to work OK on Windows, except for the fact that you have to start all over again after a hybernate etc. My problem is, I don't want to use Windows for internet and e-mail if I can do it on Linux.
 
Maybe someone out there would like to swap an E620 for an E220?;)

Actually, I'm serious. The E220 seems to work OK on Windows, except for the fact that you have to start all over again after a hybernate etc. My problem is, I don't want to use Windows for internet and e-mail if I can do it on Linux.

Hey Skywatcher and Arawin,

What distro are you guys running ? I am pretty sure that the problem is with hardware detection...

Laterz !
 
Hi Tazz_Tux

I still don't get it to work. When I run

Code:
find /dev/ | grep ttyUSB

I get

Code:
/dev/ttyUSB2
/dev/ttyUSB1
/dev/ttyUSB0

which tells me that I followed the steps correctly and that the modem has been detected. BUT -- I still can't get around the problem that I mentioned in my previous reply. When I run this:

Code:
wvdial huawei_e220 && sleep 5 && internet 3gonly 384k

I get the correct response:

Code:
--> WvDial: Internet dialer version 1.55
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> 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***1#
--> Waiting for carrier.
ATDT*99***1#
CONNECT
--> Carrier detected.  Starting PPP immediately.
--> Starting pppd at Thu Feb 22 09:20:30 2007
--> Warning: Could not modify /etc/ppp/pap-secrets: Permission denied
--> --> PAP (Password Authentication Protocol) may be flaky.
--> Warning: Could not modify /etc/ppp/chap-secrets: Permission denied
--> --> CHAP (Challenge Handshake) may be flaky.
--> Pid of pppd: 6013
--> Using interface ppp0

This is where it stops, but the system retries a few times every 10 seconds and then gives up. What I should be getting after '--> Using interface ppp0' is this:

Code:
--> local  IP address 10.62.100.132
--> remote IP address 10.64.64.64
--> primary   DNS address 196.207.40.165
--> secondary DNS address 196.43.46.190

But it doesn't get this far. What is not clear from your previous reply, is what the connection is between this problem and a 'hot plug service'?

(By the way, the last four lines following '--> Using interface ppp0' is the response I get when using the E620)

Cheers
 
Last edited:
Hi Tazz_Tux

I still don't get it to work. When I run

But it doesn't get this far. What is not clear from your previous reply, is what the connection is between this problem and a 'hot plug service'?

(By the way, the last four lines following '--> Using interface ppp0' is the response I get when using the E620)

Cheers

Hey Skywatcher,

There was a problem reported on the ubuntu forums regarding the E220 and the hotplug service repeatedly installed the usb-storage module. The problem was that non of them really showed any solution. The one user did report that stopping the service helped him, but the he had to manually mount his USB Sticks etc.

Can you prehaps give us the output of uname -a ? Maybe there is a kernel upgrade.... :)
 
Hi everyone

I have followed the advice of several people on the Ubuntu forums, but in every case I end up with the same problem -- the connection gets stuck at this point:

Code:
--> Using interface ppp0

I think it is time to go back to first principles, so what I need to know, is whether there are any Ubuntu 6.06 (Dapper) users out there who managed to get the Huawei E220 USB modem working on their systems. If so, what kernel version do they use, and are their wvdial.conf files identical to that given in the How To on this forum? Also, are there any other steps (i.e. settings etc.) that need to be taken in order to succeed in getting the E220 modem to work?

Your feedback will be much appreciated.

Thanks
 
Top
Sign up to the MyBroadband newsletter
X