Huawei E220 on Three with debain

Introduction

I bought a Huawei E220 3g data dongle on ebay recently, it was £59.95, unlocked to any network. As someone who travels alot I wan't a dongle that would work on any network the world over. Upon its delivery I plugged it into my linux laptop and had a play. Despite many guides online detailing how to set it all up, it didn't work. Eventually I had to hack about with the config, and spend a few minutes talking AT commands using minicom, but eventually I had a working config. Below is my working wvdial.conf. There is no great need for me to explain the full gory details of everything needed to set it up, This is a pretty good guide that got me most of the way, anyone curious can compare configs and see where they differ. I hope this is useful to someone else and you don't have to go through the several hours of hacking and being confused like I did.

Enjoy...

My wdial.conf


[Dialer Defaults]
Init1 = AT S7=45 S0=0 L1 V1 X4 &c1 E1 Q0
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = ATH
Init5 = AT+CGDCONT=1,"IP","three.co.uk"
Stupid Mode = 1
Modem Type = Analog Modem
ISDN = 0
Phone = *99#
Username = three
Password = three
Modem = /dev/ttyUSB0
Dial Command = ATDT
Baud = 460800