Thursday, July 12, 2007

Connect to the Internet via Mobile Phone with 3G via Bluetooth

Configuring Nokia 6280 as 3G bluetooth modem for Ubuntu Feisty

Required Software
Already installed in Ubuntu Feisty Fawn : bluetooth & wvdial
Additional : gnome-ppp
sudo apt-get install gnome-ppp

Pairing with Nokia
sudo vi /etc/bluetooth/hcid.conf
change on options : set security auto

Restart Bluetooth
sudo /etc/init.d/bluetooth restart

Pair with Nokia
discover Nokia MAC address :
hcitool scan
00:15:DE:DF:0C:44 Deux Trois

Discover channel number
sdptool browse 00:15:DE:DF:0C:44

Browsing 00:15:DE:DF:0C:44 ...
Service Name: Dial-up networking
Service RecHandle: 0x10000
Service Class ID List:
"Dialup Networking" (0x1103)
"Generic Networking" (0x1201)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 1 #---------> it's a channel #1 !

Edit rfcomm.conf
sudo vi /etc/bluetooth/rfcomm.conf

rfcomm0 {
bind yes;
device 00:15:DE:DF:0C:44;
channel 1;
comment “Bluetooth PPP Connection”;
}

Restart & Check Bluetooth
sudo /etc/init.d/bluetooth restart

rfcomm
rfcomm0: 00:15:DE:DF:0C:44 channel 1 clean

Connect using GNOME-PPP
sudo gnome-ppp

username : wap
password : wap123
phone number : *99#

Complete configuration of wvdial.conf
sudo more /root/.wvdial.conf

[Dialer Defaults]
Modem = /dev/rfcomm0
ISDN = off
Modem Type = Analog Modem
Baud = 115200
Init = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 =
Init4 =
Init5 =
Init6 =
Init7 =
Init8 =
Init9 =
Phone = *99#
Phone1 =
Phone2 =
Phone3 =
Phone4 =
Dial Prefix =
Dial Attempts = 1
Dial Command = ATM1L3DT
Ask Password = off
Password = wap123
Username = wap
Auto Reconnect = off
Abort on Busy = off
Carrier Check = on
Check Def Route = on
Abort on No Dialtone = on
Stupid Mode = on
Idle Seconds = 0
Auto DNS = on
;Minimize = off
;Dock = off

No comments: