Open Source web development and Web Design

For websites and systems of any size or purpose

  • FK21 Ltd
  • 68-9 Portobello High Street
  • Portobello
  • Edinburgh
  • EH15 1AN
  • info@fk21.co.uk
  • mobile: 07980 710 986

  • Valid XHTML 1.0 Transitional
  • Valid CSS!
  • Level Double-A conformance icon, W3C-WAI Web Content Accessibility Guidelines 1.0
T-Mobile on Linux
fk21.co.uk whiteonblack

T-Mobile Web n Walk on Ubuntu Linux

Huawei E220 3G USB modem

HUAWEI E220 and UK T-Mobile Web n Walk

I disabled pin request by removing sim card from modem and inserting into another mobile phone, then following security menu to disable PIN request. I'm not sure if this was critical to success.

Insert USB modem. The long cable with one port attached worked for me.

open konsole as root (or sudo commands)

> rmmod usb-storage

again, not sure if critical but worked for me.

> lsusb

should detect device...

> Bus 004 Device 003: ID 12d1:1003

Now run...

> modprobe usbserial vendor=0x12d1 product=0x1003

then

> ls -al /dev/ttyUSB*

should list 3 -

> crw-rw---- 1 root dialout 188, 0 2007-09-17 11:55 /dev/ttyUSB0
> crw-rw---- 1 root dialout 188, 1 2007-09-17 09:45 /dev/ttyUSB1
> crw-rw---- 1 root dialout 188, 2 2007-09-17 09:45 /dev/ttyUSB2

open wvdial.conf, edit as per:

http://www.fk21.co.uk/tmobilelinux/wvdial.txt

stop any existing network activity -

> /etc/init.d/networking stop

now run

> wvdial huawei_e220 tmobile

here is my output -

> WvDial: Internet dialer version 1.56
> --> 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
> --> Sending: AT+CGDCONT=1,"IP","general.t-mobile.uk"
> AT+CGDCONT=1,"IP","general.t-mobile.uk"
> OK
> --> Modem initialized.
> --> Sending: ATDT*99***1#
> --> Waiting for carrier.
> ATDT*99***1#
> CONNECT
> --> Carrier detected. Starting PPP immediately.
> --> Starting pppd at Mon Sep 17 12:12:43 2007
> --> Pid of pppd: 12656
> --> Using interface ppp0
> --> local IP address 10.36.170.127
> --> remote IP address 10.64.64.64
> --> primary DNS address 149.254.201.126
> --> secondary DNS address 149.254.192.126

Happy days!

It was the "general.t-mobile.uk" that got me. All of the commands and instructions have been taken from existing howto pages found on Google, many thanks to the authors. Far more helpful than t-mobile technical support ;)

Cheers :)

Huawei e220 ubuntu tmobile

Update!

I wrote the shell script below which I run from the command line like this -

> sh Desktop/huawei.sh

huawei launch script

Oh, and thanks to big Rick in the T-Mobile branch near St Enochs, Glasgow. He was very helpful.