lenny wvdial (Huawei modem)

24/05/2009

Debian Kernels later than 2.6.20 (i.e. Lenny but not Etch) have support for the Huawei e220 mobile web modems built in.

To get on the Web using t-mobile web’n’walk in the UK from the command line, you just

  • su
  • aptitude install wvdial
  • plug your t-mobile modem in
  • run wvdialconf
  • examine output in /etc/wvdial.conf
  • add some magic lines to define the name of the t-mobile service
  • ifconfig eth0 down (stops the wired network interface if it is running)
  • wvdial tmobile (or what ever name you gave the dialer section below)
  • some dialogue about dns, should have IP addresses starting with 149. for t-mobile in the UK
  • You are online
  • If in dwm leave the terminal window running on tab 1
  • When you have finished, ctrl-c hangs up nicely

The wvdial.conf script is here…

[Dialer 384k]
Init6 = AT+CGEQMIN=1,4,64,384,64,384
Init7 = AT+CGEQREQ=1,4,64,384,64,384

[Dialer pin]
Init1 = AT+CPIN=1234

[Dialer Defaults]
Modem = /dev/ttyUSB0
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Stupid Mode = 1
Modem Type = Analog Modem
Phone = *99***1#
ISDN = 0
Username = user
Dial Command = ATDT
Password = pass
Baud = 9600

[Dialer tmobile]
Init5 = AT+CGDCONT=1,”IP”,”general.t-mobile.uk”

[Dialer option_hsdpa]
Init2 = ATZ
Init3 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ISDN = 0
Modem = /dev/noz0/
Modem Type = Analog Modem
Baud = 460800

Critical information came from

Warning: there is a lot of old information out there relating to kernels before 2.6.20. Also, some people are finding that the PC recognises their modem as a USB mass storage device first and that access to the modem function is blocked as a consequence. I have not seen this myself on the L400.

To do: Tidy all this up into a script that will take eth0 down and dial in, and then another that will hang up and bring eth0 up again.

You can download a PDF of my wvdial.conf file because wordpress.com’s media upload function does not allow the uploading of text files!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

%d bloggers like this: