Connect to the Internet via a 3G Mobile Phone using UMTS network and Bluetooth Connectivity

Set up 3G UMTS connection using bluetooth

resources: http://ubuntu.sg/index.php/ubuntu-guides/network/47-nokia-n95-as-3g-modem
http://www.stefanux.de/wiki/doku.php/linux/bluetooth#mit-wvdial

hcitool scan

output:

00:4F:5D:5B:53:FB  p

Now let's find out the channel for the modem connection using Bluetooth:

sdptool browse 00:4F:5D:5B:53:FB | grep -A 10 Dial-Up | grep Channel

output:

Channel: 2

Connect the phone to a serial port using rfcomm. Edit rfcomm.conf:

sudo gedit /etc/bluetooth/rfcomm.conf

and enter:

rfcomm0 {
# Automatically bind the device at startup
bind yes;
# Bluetooth address of the device
device 00:4F:5D:5B:53:FB;
# RFCOMM channel for the connection
channel2;
# Description of the connection
comment "Nokia N95";
}

Restart bluetooth to activate the rfcomm binding:

sudo /etc/init.d/bluetooth restart

Set up the console tool wvdial:

gksudo gedit /etc/wvdial.conf

and enter

[Dialer Defaults]
 Init1=ATZ
 Init2=ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
 Init3=AT+CGDCONT=1,"IP","internet","",0,0
 modem=/dev/rfcomm0
 Baud=460800
 Modem Type=Analog Modem
 ISDN=0
 Phone = *99#
 Username = internet
 Password = internet
 New PPPD = yes

If you wish to get the standard gateway set automatically (not only the DNS-Server), you have to run wvdial as root:

sudo wvdial

Comments