Ubuntu guide to using HSDPA USB-modem Huawei E220 with the Tre network
March 13th, 2007 by
ltz
Using the Huawei E220 under Linux is not supported by the 3G operator 3 (in Swedish: Tre ..). Here’s a guide how to get it working on Ubuntu.
Your connection have a pin-code per default set. Its written on your larger sim-card adapter. In order to simplify alot, lets just remove this. Put the 3g data simcard in your 3g-phone and remove the sim pin. Then put the card into the USB-modem.
If you start up your Ubuntu machine and plug in the USB-modem, it will show as a cd-rom drive (atleast my does). Also I’m getting a folder popping up as if it would be a storage device (it does seems to be a storage device for windows drivers..).
- First step, right click on the newly auto-created cd-rom icon on your desktop and choose eject. Close any windows using the device.
- Start a terminal. The commands below should be ran as root.
rmmod usb-storage
rmmod usbserial
(the later might create an error.)
lsusb
- The last command shoul show the device connected similiar to:
Bus 001 Device 003: ID 12d1:1003
Run:
modprobe usbserial vendor=0×12d1 product=0×1003
Now, disconnect the Huawei E220 USB-modem and wait a few seconds before connecting it again.
- As soon as the device have stopped blinking green you should find three new USB-devices by running the command:
ls -al /dev/ttyU*
Now its time to setup the wvdial.conf file. This config works for me, given that the pin sim-code is removed it whould work right off for you aswell. That is if you have a swedish tre.se turbo3g or 3g data account.
[Dialer Defaults]
Init2 = ATZ
Init3 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Stupid Mode = 1
Modem Type = Analog Modem
ISDN = 0
Phone = *99***1#
Modem = /dev/ttyUSB0
Username = user
Dial Command = ATDT
Password = pass
Baud = 460800
Init4 = AT+CGDCONT=1,"IP","data.tre.se"
You should now be able to run the command:
wvdial
And the log might look something like this:
******@pierre-laptop:/# wvdial
--> 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","data.tre.se"
AT+CGDCONT=1,"IP","data.tre.se"
OK
--> Modem initialized.
--> Sending: ATDT*99***1#
--> Waiting for carrier.
ATDT*99***1#
CONNECT
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Tue Mar 13 21:46:20 2007
--> Pid of pppd: 4714
--> Using interface ppp0
--> local IP address 10.147.106.11
--> remote IP address 80.251.193.196
--> primary DNS address 80.251.192.244
--> secondary DNS address 80.251.192.245
--> Connect time 0.1 minutes.
--> local IP address 10.147.106.11
--> remote IP address 80.251.193.196
--> primary DNS address 80.251.192.244
--> secondary DNS address 80.251.192.245

April 9th, 2007 at 11:48
For your information.. The latest Ubuntu beta (7.04) detects the modem from start. Then you only will need the wvdial.conf file..
June 1st, 2007 at 21:46
Im having no luck.
The modem is registred by the system.
But when running wvdail im getting no responce from it.
from dmesg:
[ 415.340000] usb 1-1: new full speed USB device using uhci_hcd and address 2
[ 415.508000] usb 1-1: configuration #1 chosen from 1 choice
[ 415.512000] usb-storage: device ignored
[ 415.512000] option 1-1:1.0: GSM modem (1-port) converter detected
[ 415.512000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
wvdial:
–> WvDial: Internet dialer version 1.56
–> Cannot get information for serial port.
–> Initializing modem.
–> Sending: ATZ
–> Sending: ATQ0
–> Re-Sending: ATZ
–> Modem not responding.
the device:
crw-rw—- 1 root dialout 188, 0 2007-06-01 22:40 /dev/ttyUSB0
June 19th, 2007 at 08:05
Olangu: What version of ubuntu are you running?
Is it the Huawei e220? Does dmesg say anything about finding three different devices?
July 28th, 2007 at 21:17
I have the same problem with my HSDPA modem as “olangu” had. I have Ubuntu 2.6.15-28-686 kernel. The system does recognize the modem, but doesn’t say anything about finding different three devices. How to get through in this case???
from dmesg:
[17182407.452000] usb 4-1: new full speed USB device using uhci_hcd and address 10
[17182407.652000] Initializing USB Mass Storage driver…
[17182407.652000] scsi6 : SCSI emulation for USB Mass Storage devices
[17182407.652000] usb-storage: device found at 10
[17182407.652000] usb-storage: waiting for device to settle before scanning
[17182407.652000] usbcore: registered new driver usb-storage
[17182407.652000] USB Mass Storage support registered.
[17182412.656000] Vendor: GT Model: HSDPA Modem Rev: 3.00
[17182412.656000] Type: CD-ROM ANSI SCSI revision: 02
[17182412.688000] sr0: scsi-1 drive
[17182412.688000] sr 6:0:0:0: Attached scsi CD-ROM sr0
[17182412.688000] sr 6:0:0:0: Attached scsi generic sg1 type 5
[17182412.688000] usb-storage: device scan complete
[17182442.988000] usb 4-1: reset full speed USB device using uhci_hcd and address 10
[17182443.120000] usb 4-1: device firmware changed
[17182443.120000] usb 4-1: USB disconnect, address 10
[17182443.120000] sr 6:0:0:0: scsi: Device offlined - not ready after error recovery
[17182443.132000] 6:0:0:0: rejecting I/O to dead device
[17182443.132000] 6:0:0:0: rejecting I/O to dead device
[17182443.132000] 6:0:0:0: rejecting I/O to dead device
[17182443.136000] 6:0:0:0: rejecting I/O to dead device
[17182443.136000] 6:0:0:0: rejecting I/O to dead device
[17182443.232000] usb 4-1: new full speed USB device using uhci_hcd and address 11
August 25th, 2009 at 10:47
xuxupu…
Wonderlic Test Qs 1 And Vs …