Huawei E220 wvdial setup.

engelbma

Well-Known Member
Joined
Mar 28, 2009
Messages
150
Reaction score
7
Location
Pretoria
Hi there,

I have found various posts relating to E220 setup with wvdial but none specifically address my error received.

The PC in question runs Kubuntu Hardy 8.04

Here is the message received when I run "wvdial" in konsole. It looks fine to me but still I cannot connect?

--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Fri Apr 10 16:49:25 2009
--> 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: 9078
--> Using interface ppp0
--> pppd: `ďż˝[06][08]`ďż˝[06][08][10]ďż˝[06][08]
--> pppd: `ďż˝[06][08]`ďż˝[06][08][10]ďż˝[06][08]
--> pppd: `ďż˝[06][08]`ďż˝[06][08][10]ďż˝[06][08]
--> pppd: `ďż˝[06][08]`ďż˝[06][08][10]ďż˝[06][08]
--> pppd: `ďż˝[06][08]`ďż˝[06][08][10]ďż˝[06][08]
--> pppd: `ďż˝[06][08]`ďż˝[06][08][10]ďż˝[06][08]
--> Disconnecting at Fri Apr 10 16:50:03 2009
--> The PPP daemon has died: A modem hung up the phone (exit code = 16)
--> man pppd explains pppd error codes in more detail.
--> Try again and look into /var/log/messages and the wvdial and pppd man pages for more information.
--> Auto Reconnect will be attempted in 160 seconds
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Modem initialized.



After fiddling some more I get:

--> 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 Sat Apr 11 14:34:54 2009
--> 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: 8195
--> 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]
--> Disconnecting at Sat Apr 11 14:34:57 2009
--> The PPP daemon has died: A modem hung up the phone (exit code = 16)
--> man pppd explains pppd error codes in more detail.
--> Try again and look into /var/log/messages and the wvdial and pppd man pages for more information.
--> Auto Reconnect will be attempted in 5 seconds
--> 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.

I would appreciate any help in this regard......
 
Stupid question: did you remove the pin from the sim? I have no idea, but 8.10 makes a 5min job out of setting up a dialup connection through the e220.
 
Last edited:
Yes.

echo "AT+CPIN=1234" > /dev/ttyUSB0

1234 Being your pin and ttyUSB0 being the device.
 
You need to read the ack for the pin then. Best is disable the PIN or else update your script.

/usr/local/bin/wvdial.conf ( or whatever)

# wvdial for Vodacom Data. Created by Tazz_tux
# Version 1.0

# Change Log:
#
# Added support for HSDPA.
# Added Headers and version control.

[Dialer Defaults]

Phone = *99***1#
Username = username
Password = password
Stupid Mode = 1
Dial Command = ATDT

[Dialer pin]

Init1 = AT+CPIN=1234
....
....
[Dialer gprs]

Modem = /dev/ttyUSB0
Baud = 460800
Init2 = ATZ
ISDN = 0
Modem Type = Analog Modem
Stupid Mode = 1

[Dialer internet]

Init5 = AT+CGDCONT=1,"IP","internet";

then call it useing

wvdial pin -C /usr/local/bin/wvdial.conf # your pin
wvdial gprs internet -C /usr/local/bin/wvdial.conf # your dialup


* Note: I pulled this from out old script we use to run on our support notebook before we upgraded to 8.10. You can also try a dialer GUI app
 
Remove Pin?

Thks for the advice so far.

I am helping a friend convert to Kubuntu and he uses a Vodacom prepaid sim in the E220 modem, according to him there is no pin?
How do I "remove pin"? Do I simply delete "username" and "password" from the wvdial.conf file?
 
Thks for the advice so far.

I am helping a friend convert to Kubuntu and he uses a Vodacom prepaid sim in the E220 modem, according to him there is no pin?
How do I "remove pin"? Do I simply delete "username" and "password" from the wvdial.conf file?

Put the simcard into a normal cellphone and check. The pin can be removed via the phones settings.
 
Confirmed, there is no pin.

I have no idea what to try next.

Do I need to change any of these?
I ha no idea what to try next.

Phone = *99***1#
Username = username
Password = password
 
Thanks for all the feedback.

Issue not resolved yet. Will post results when (and if) I get it to work.
 
Good luck with getting that modem to work mate.
I've had countless issues getting it to run on vista, vista x64 & windows 7 - let alone on linux.
 
Confirmed, there is no pin.

I have no idea what to try next.

Do I need to change any of these?
I ha no idea what to try next.

Phone = *99***1#
Username = username
Password = password

I thought the username and password were supposed to be blank :confused:
 
Thks for the all the advice.

Yes I figure it makes sense to update to 8.10 or even 9.04 if I wait a bit.

Will also try Vodafone Mobile Connect Card driver for Linux.

Will feedback on findings.
 
Thks for the all the advice.

Yes I figure it makes sense to update to 8.10 or even 9.04 if I wait a bit.

Will also try Vodafone Mobile Connect Card driver for Linux.

Will feedback on findings.

I can make you a copy of my 32-bit 8.10 if you need it.
 
Guys!

You are making a meal of this! On Intrepid (8.10), you just pop the E220 into a USB slot and wait.

After a while (20 secs or so) a network wizard pops up and says it's detected a Huawei E220. You say you are in South Africa and then you want to connect to Vodacom and bang! You are connected. The easiest way to connect a mobile 3G device by far. It then appears as a network device. When you plug in your E220, it suddenly appears as an option in the network manager applet.

I have had issues with wvdial connecting a normal phone (same as yours, you have IP, DNS and everything) but the OS doesn't know you are connected to the internet. But the E220 works, no prob. It's hellava impressive....

I presume 9.04 is just as easy. It's so easy it's a non issue. No hacking, wvdial or console required (not that I'm against the console :) )
 
Ok, I am starting to lose it.

Upgraded to 8.10 and then to 9.04.

Neither "autodetects" the modem?? Even tried another E220 modem, still a no-go.

In Windows it forks fine !!!!

Can anyone help? I will have to tell the user to go back to windows if I do not get this sorted.
 
You running Kubuntu? I know Ubuntu works fine but the K has issues. Actually just tested my 9.04 with a E220 in network manager and it works. (Posting this reply now on it).

tail your syslog and do a lsusb to see if your device is being picked up.
 
Upgraded to 8.10 and then to 9.04.
Are you talking about Ubuntu or Kubuntu? Getting an E220 working on Ubuntu 8.10 or 9.04 is quicker and easier than on windows! I don't think that Kubuntu is that polished yet. It all relates to some brilliant work that has been done on the NetworkManager applet. Its a Gnome app and I don't know if it works under KDE.
 
Top
Sign up to the MyBroadband newsletter
X