Monday, October 27, 2008

Connect to the Internet using LG KU250 3G Mobile Phone via Bluetooth

I use my LG KU250 to connect to the internet using a USB cable. But this time I wanted to try connecting via Bluetooth. I googled for instruction on doing this and I found this blog post from Tony Seno. I was able to connect to the Internet with a little tweaks so as to make it work with my phone, ubuntu hardy heron and Globe Telecom my network provider.

Required Software
Already installed in Ubuntu Hardy Heron : bluetooth & wvdial
Additional : gnome-ppp
install via menu
goto applications > add/remove... > search for GNOME PPP
install via command line

sudo apt-get install gnome-ppp

Pairing with LG KU250
sudo gedit /etc/bluetooth/hcid.conf
change on options : set security auto

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

Pair with LG KU250
discover LG KU250 MAC address :
hcitool scan
00:1C:62:43:18:AD    1Ijack

or go to your phone menu select Connectivity > Bluetooth > Settings > My Address > My Bluetooth address : 00:1C:62:43:18:AD

Discover channel number
sdptool browse 00:1C:62:43:18:AD

Service Name: LG Dial-up Networking��
Service RecHandle: 0x10005
Service Class ID List:
  "Dialup Networking" (0x1103)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 8 <-- Channel number for LG Dial-up Networking

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

# RFCOMM configuration file.

rfcomm0 {
#    # Automatically bind the device at startup
    bind yes;
#    # Bluetooth address of the device
    device 00:1C:62:43:18:AD;
#    # RFCOMM channel for the connection
    channel    8;
#    # Description of the connection
    comment "LG Ku250 Bluetooth PPP";

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

rfcomm0: 00:1C:62:43:18:AD channel 8  clean

Connect using GNOME-PPP
sudo gnome-ppp

just to be sure select setup, under modem tab make sure the device is set for /dev/rfcomm0

I'm not sure if selecting a modem type is of any help but i just select USB Modem

since username and password are disregarded by my network provider(Globe Telecom) i just put periods (.) in the field.
username : .
password : .
phone number : *99***1#

Complete configuration of wvdial.conf
sudo gedit /etc/wvdial.conf

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,”IP”,””
Modem Type = USB Modem
ISDN = 0
Phone = *99***1#
New PPPD = yes
Modem = /dev/rfcomm0
Username = .
Password = .
Baud = 460800
Idle Seconds = 3000
Auto DNS = 1
Stupid Mode = 1
Compuserve = 0
Baud = 460800
Dial Command = ATD
Ask Password = 0
FlowControl = NOFLOW

[source: ]

No comments:

Post a Comment