Monday 15 March 2010

Connect to internet via bluetooth

Connect to internet via bluetooth

----------------------------------

From linux systems you can connect to internet from

your phone through bluetooth. For this you need to edit

the configuration file



edit /etc/wvdial.conf as follows





***************************************************



[Dialer bluetooth]

Modem = /dev/rfcomm0



[Dialer usb]

Modem = /dev/ttyACM0

Modem Type = USB Modem



[Dialer Defaults]

Modem = /dev/ttyACM0

Init1 = ATZ

Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0

Stupid Mode = yes

Modem Type = USB Modem

Phone = *99#

New PPPD = yes

nit6 = AT+CGDCONT=1,"IP","internet"

ISDN = 0

Username = b

Password = a

Baud = 460800

*****************************************************

now you need to type some commands in the teminal



i will demonstrate it in some steps





step1:

>hcitool scan

this command will give you Bluetooth device's address

for example the output looks like this

Scanning ...

00:1B:AF:F2:DE:1C Tòñý£íjøjôßë

00:1E:7D:4F:97:71 nibas





step2:

>rfcomm connect 0 00:1B:AF:F2:DE:1C

replace the bluetooth device address given above by yours

now pair the device



step3:

>wvdial bluetooth



now you will be connected





to check the connectivity try

>ping google.com

No comments:

Post a Comment