Using the hour and ten minutes on the train to work on the computer is a good thing. And getting online with my phone is even better. It’s a HTC Touch Dual and I kinda like it.
What I do is connect to the phone with bluetooth. Then I run this little script:
#!/bin/bash
# make sure that the hci is in the kernel module.
sudo modprobe hci_usb reset=1
# Connect to the phone
sudo pand –connect INSERT:YOUR:MAC:ADDRESS:HERE -n
# Sometimes it says that it is connected but isn’t, so disconnect first…
sudo ifdown bnep0
# Then connect.
sudo ifup bnep0
—– BUT THEN —–
This nice Dell D420 has an built in UMTS card (3g) and so I wondered if it works under Linux. I’ll make it short: IT does.
Had to use a little bit of time to make this work, but now it does.
And this is how you do it:
1) sudo echo “AT+CPIN=[YOUR PIN CODE HERE]” > /dev/ttyUSB0
2) edit /etc/wvdial.conf and enter the following values:
[Dialer Defaults]
Modem = /dev/ttyUSB0
Baud = 460800
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ISDN = 0
Modem Type = Analog Modem
Phone = *99#
Username = A
Password = B
Stupid Mode = 1
3) I did also set up under point to point under network, but I am not sure if that is necessary.
4) run this command wvdial (not as root and not as sudo)
Update1:
But then I tried to get it working with my current NetworkManager, and I have a feeling that this broke stuff. So now it does not work anymore… Pitty, it was really nice.
Update2:
I have found pages that learn about the AT-commands, and I have figgured out that the card needs the PUK-code. So I have to find the letter that gives me the PUK-code. We’ll see how that works out.
Links:
Another guy having problems with modem under Ubuntu: http://ubuntuforums.org/archive/index.php/t-209837.html
Some AT-commands: http://www.anotherurl.com/library/at_test.htm
This page is really good: http://www.pharscape.org/content/view/24/53/
Update3:
After doing some tests I found out that the SIM-card was locked. So I had to enter the PUK-code. Now everything seems to work again. Hurray
Update4:
After searching around and so on, and also getting it as a tip on the HAL-mailinlist I found the Vodafone Mobile Connect Card driver for Linux (https://forge.betavine.net/projects/vodafonemobilec/). And this software is just lovely. Download it and enjoy. I’m happy. I can even send SMS from my Linux machine now.

