Wednesday, August 15, 2012

Using T-Mobile USB Modem on Ubuntu in Germany

The modem is Mobilcom Debitel.

First install

sudo apt-get install usb-modeswitch usb-modeswitch-data wvdial

Your /etc/wvdial.conf should contain

[Dialer Defaults]
Phone = *99#
Username = t-mobile
Password = tm
Stupid Mode = 1
Dial Command = ATDT
Modem = /dev/ttyUSB2

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

Type

usb-devices

Look at the list and find out vendor and product id. They will be used for -v and -p respectively.

sudo usb_modeswitch -v [VENDOR] -p [PROD ID] -M '55534243123456780000000080000606f50402527000000000000000000000'

sudo modprobe option

echo "1c9e [PRODUCT]" | sudo tee /sys/bus/usb-serial/drivers/option1/new_id

Now

sudo wvdial tmo

A couple of times I had to do this twice, at these times a dialogbox would open and I had to enter my (T-mobile) pin, and it said it "unlocked" the pin; after that, I didnt have to do it again.

Some postings on the Internet suggest going into editing Ubuntu network connections, adding a connection for Mobile Broadband (seperate tab next to Wireless Network), and settings things there. I did not need this, using the commands above seem to suffice.

No comments:

Post a Comment