Categories:Linux Blackcave

Guide to internet on the 3-network using Huawei E220 usb-modem in Ubuntu
2008-04-04 23:47

This guide is the english translation of the danish guide i wrote for Ubuntudanmark a few days ago. The danish guide can be found here

This guide tells how to setup an internet connection for the Danish 3-Network, using the Huawei E220 USB-modem. This setup might work on other 3-networks around the world by editing init5 to the proper domain.

There are various ways to setup the modem, one of them is using the Vodafone-software, a (danish) guide for this can be found here
I have chosen to do it the way as described in this guide, because I did not get the Vodafone-software to work properly.

Edit /etc/wvdial.conf with a text-editor like nano or gedit, insert this:

[Dialer hsdpa]
Phone = *99***1#
Username = irrelevant
Password = irrelevant
Stupid Mode = 1
Dial Command = ATDT
Modem = /dev/ttyUSB0
Baud = 460800
Init2 = ATZ
Init3 = ATE0V1&D2&C1S0=0+IFC=2,2
ISDN = 0
Modem Type = Analog Modem
Init5 =AT+CGDCONT=1,"IP","data.3.dk";

[Dialer pin]
Init1 = AT+CPIN=****


**** is the pincode for your sim-card.

Connect the Huawei E220 modem to an usb-port, wait until the modem is recognized by the system, you can check this in dmesg. After that, use theese commands to connect to the internet:
sudo wvdial hsdpa
- If it asks for the pincode (not your password for the sudo command), then use this command:
sudo wvdial pin
- And then again:
sudo wvdial hsdpa

After a few seconds you should be connected to the 3-network.

Tags: 3, Internet, wvdial

Comments

#1: Rasmus - 2008-04-14 14:09

Hej, det skal pointeres at strengen:

nit5 =AT+CGDCONT=1,"IP","data.3.dk";

kan skiftes ud med:

nit5 =AT+CGDCONT=1,"IP","data.3.dk"; //bag en firewall
nit5 =AT+CGDCONT=1,"IP","vip.3.dk"; //delvis bag firewall
nit5 =AT+CGDCONT=1,"IP","bredband.3.dk"; //ingen firewall

/Rasmus


Leave a comment for this post
Name
E-mail (not shown on site)
Website (optional)
Comment