Virgin Mobile, Huawei E220, Kubuntu

VanTheMan

Member
Joined
Mar 14, 2008
Messages
17
Reaction score
0
Location
KZN
My way to connect via a GUI (kppp) using Huawei E220 modem, VirginMobile,and Kubuntu on a Compaq EVO N1050v laptop.

Why Virgin Mobile?
Without getting involved in any Virgin vs Vodacom/MTN turf wars: I use my laptop to go on the internet only when I'm away from home & my wireless connection. This is less than 20MB/month- @50c/MB, and my money/megabytes do not disappear after 30 days. Vodacom costs R1.29/MB for 75MB (Smallest Data bundle), and I will thus lose 55MB/R64 per month.

Why not Vodafone Mobile Connect Card driver for Linux?
I could not get it to work with Virgin Mobile easily or quickly- Maybe too lazy?

Why not the ordinary commandline and wvdial way?
I am a relative *nix newby and lazy (too lazy to do things the commandline way)

Compaq Evo 1050 V, Kubuntu Gutsy, Vodafone branded Huawei E220

Step 1

I plugged in my Huawei E220, Kubuntu picked it up and Kubuntu sorted out the modem without any problems.
code:
tail -f /var/log/messages
Result:
GSM modem converter now attached to ttyUSB0
GSM modem converter now attached to ttyUSB1
GSM modem converter now attached to ttyUSB2
(See, I do a little bit of command line too, when unavoidable)


If this doesn't work: follow Taz_Tux's sticky:
http://mybroadband.co.za/vb/showthread.php?t=66785
or shakir's way:
http://www.mohdshakir.net/2007/12/05/huawei-e220-in-gutsy-gibbon-kubuntu
up to modem attachment to ttyUSB

Step 2

I changed Permissions for ttyUSB0:
code:
kdesu kfmclient openProfile filemanagement (Damn commandline again)
Browse to /dev/ttyUSB0- right click- Properties- User- Change to <yourlogonusername>- OK- OK.

Step3: Set up kppp

Step 3a: set up modem

KMenu- Internet-kppp-configure- Modems- New- Device:
Name: Huawei (or whatever tickles your fancy)
Modem Device: /dev/ttyUSB0
I left the rest of the settings as is

Modem- Modem Commands
Initialization string 1: ATQ0 V1 E1S0=0 &C1 &D2 +FCLASS=0
Initialization string 2:AT=CGDCONT=1, "IP", "VDATA"
I left the rest of the commands as is

Step3b set up account

(KMenu- Internet-kppp-configure-) accounts- New- Manual setup-Dial
Connection Name: VMobile (or whatever tickles your fancy)
Phone number:- add- *99#-OK
Authentication: PAP/CHAP
Store password selected (See, I told you I'm lazy)
Customize ppd arguments:- add these one by one:
defaultroute
replacedefaultroute
crtscts
modem
noipdefault
usepeerdns
novj
debug
I left the rest of the settings as is. And no, I do not know what these arguments do- I just could not connect without them! If you find out, let me know. Or don't.

Step 4: Connect

KMenu- Internet-kppp
Connect to: VMobile (or whatever tickles your fancy)- (See, I can copy and paste too)
Since CHAP/PAP requires a Login ID & Password:
Login ID: any ( I literally typed "any", but whatever tickles your fancy will do- connecting does not really require Username/Password)
Password: any- see above
Connect

AND YAY!!!- I could surf and download e-mail. At slowish bitrates, but good enough for what I want to do.(Turfwar territory again) No SMS capabilities or anything else.

If you really must edit things by hand, I would be willing to post my kppprc file

DISCLAIMER:
* I have no affiliations to any cellphone company (But I am willing to take bribes) (Virgin, are you listening?)
* No computers were harmed during the setupand testing of the E220(as far as I know- one or two became a bit emotional)
* This really worked for me- If it doesn work for you I am sorry- I'm not clued up enough (and too lazy) to do it any other way.
* If you plonk a Virgin Mobile SIM card into your VodaFone/MTNData E220, and it goes BZZZZZZT, your guarantee is forfeit- Big Brother can apparently pick it up that you used another company's SIM- YOU HAVE BEEN WARNED!
* If ever Vodafone Mobile Connect Card driver for Linux recognizes VMobile automatically, please let me know.and I'll use it because I am LAAYYZZEE- and this setup actually involved Google searches, trial & error, thinking & stuff. Eina!
 
Edit to your init lines

Initialization string 1: ATQ0 V1 E1S0=0 &C1 &D2 +FCLASS=0
at first I added: , AT+CPIN=1539
because I had been getting an error about pin being required
and edited
Initialization string 2:AT=CGDCONT=1, "IP", "VDATA"

to read: AT+CGDCONT=1, "IP", "VDATA"

(I discovered the shift-key typing mistake whilst reading thread "Huawei E220 & recent kernels.. anyone else experiencing some issues? #3 by "jojo786". Compare
[Dialer myapn]

Init5 = AT+CGDCONT=1,"IP","myapn"


It seems that only thing necessary to change is the equals sign in line two, to a plus sign. (I removed the addition to the first line in order to reproduce the phrasing of the pin error; I did get a connection without it).

Thank you for your post VanTheMan; regards
Philip
 
Top
Sign up to the MyBroadband newsletter
X