Powered By Blogger

Wednesday, March 9, 2011

connecting internet through mobile phone(bluetooth) Samsung GT S3310

please open this file using gedit or vim in ubuntu....

To be done on your samsung mobile

set the brower profile to

TATA.DOCOMO.INTERNET if Tata docomo
vodafonemobileconnect if Vodafone
for other networks please search on the internet or ask the service provider



To be done on your ubuntu machine....

steps for dial-up connection

1.enter the following command in the terminal(i've executed the commands on my system so that it ll be easy for you to understand)

itsme@itsme-laptop:~$ hcitool scan
Scanning ...
    44:4E:1A:B3:75:EF    ITSME                                  //it'll show you the mac address of your bluetooth device

2.copy the above mac address,and execute the following command.The command 'll show you the services available and their corresponding channel number for your mobile device.look out for the "Service Name:Dial-up Networking" and note down the channel number.

itsme@itsme-laptop:~$ sdptool browse
Inquiring ...
Browsing 44:4E:1A:B3:75:EF ...
Service RecHandle: 0x10000
Service Class ID List:
  "PnP Information" (0x1200)

Service Name: HSP Audio Gateway
Service RecHandle: 0x10001
Service Class ID List:
  "Headset Audio Gateway" (0x1112)
  "Generic Audio" (0x1203)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 1
Profile Descriptor List:
  "Headset" (0x1108)
    Version: 0x0100

Service Name: HFP Audio Gateway
Service RecHandle: 0x10002
Service Class ID List:
  "Handsfree Audio Gateway" (0x111f)
  "Generic Audio" (0x1203)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 2
Profile Descriptor List:
  "Handsfree" (0x111e)
    Version: 0x0105

Service Name: Dial-up Networking
Service RecHandle: 0x10003
Service Class ID List:
  "Dialup Networking" (0x1103)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 3                             //here is the Dial-up Networking channel.mine is '3'.note down yours
Profile Descriptor List:
  "Dialup Networking" (0x1103)
    Version: 0x0100

Service Name: Serial Port
Service RecHandle: 0x10004
Service Class ID List:
  "Serial Port" (0x1101)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 4

Service Name: FTP Server
Service RecHandle: 0x10005
Service Class ID List:
  "OBEX File Transfer" (0x1106)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 5
  "OBEX" (0x0008)
Profile Descriptor List:
  "OBEX File Transfer" (0x1106)
    Version: 0x0100

Service Name: PBAP PCE
Service RecHandle: 0x10006
Service Class ID List:
  "Phonebook Access - PCE" (0x112e)
Profile Descriptor List:
  "Phonebook Access - PCE" (0x112e)
    Version: 0x0100

Service Name: Object Push
Service RecHandle: 0x10007
Service Class ID List:
  "OBEX Object Push" (0x1105)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 6
  "OBEX" (0x0008)
Profile Descriptor List:
  "OBEX Object Push" (0x1105)
    Version: 0x0100

Service RecHandle: 0x10008
Service Class ID List:
  "AV Remote Target" (0x110c)
Protocol Descriptor List:
  "L2CAP" (0x0100)
    PSM: 23
  "AVCTP" (0x0017)
    uint16: 0x102
Profile Descriptor List:
  "AV Remote" (0x110e)
    Version: 0x0103

Service Name: Advanced audio source
Service RecHandle: 0x10009
Service Class ID List:
  "Audio Source" (0x110a)
Protocol Descriptor List:
  "L2CAP" (0x0100)
    PSM: 25
  "AVDTP" (0x0019)
    uint16: 0x100
Profile Descriptor List:
  "Advanced Audio" (0x110d)
    Version: 0x0100

3.Enter the following command to edit the bluetooth configuration file.After making changes save the file....

itsme@itsme-laptop:~$ sudo gedit /etc/bluetooth/rfcomm.conf
#
# RFCOMM configuration file.
#

#rfcomm0 {
#    # Automatically bind the device at startup
bind yes;
#itsme@itsme-laptop:~$ sudo gedit /etc/bluetooth/rfcomm.conf

#    # Bluetooth address of the device
device
44:4E:1A:B3:75:EF;                    //copy the mac address of your device here
#
#    # RFCOMM channel for the connection
channel    3;                        //copy the channel number here
#
#    # Description of the connection
comment "Dial-Up Networking";                //put your own description of the connection
#}

4.Now we have to edit the wvdial.conf file for dialing up(note:if there is no such file you've to create one)

itsme@itsme-laptop:~$ sudo gedit /etc/wvdial.conf
[Dialer Defaults]
Init = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,"IP","TATA.DOCOMO.INTERNET"        //here my access point is TATA.DOCOMO.INTERNET.... if you are using a different one... ask your
Modem = /dev/rfcomm0                    //service provider
Phone = *99***1#                    //this is the dial number for tata docomo... if different as your service provider
Username = ''                        //tata docomo does not requires username and password,i don't know about other networks
Password = ''
New PPPD = yes
ISDN = no
BAUD = 115200
Stupid Mode = yes
Carrier Check = yes
Auto Reconnect = yes
lcp-echo-interval = 30
lcp-echo-failure = 4

5.All the steps are completed.Now we've to bind our bluetooth device with the system.

itsme@itsme-laptop:~$ sudo rfcomm bind 0 44:4E:1A:B3:75:EF 3         //here give your device's mac address and channel number.

6.Dialing.... (you have to accept the connection through phone.... it'll ask for DUN connection(Dial-UP Network))

itsme@itsme-laptop:~$ sudo wvdial
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Sending: AT+CGDCONT=1,"IP","TATA.DOCOMO.INTERNET"
AT+CGDCONT=1,"IP","TATA.DOCOMO.INTERNET"
OK
--> Modem initialized.
--> Sending: ATDT*99***1#
--> Waiting for carrier.
ATDT*99***1#
CONNECT
--> Carrier detected.  Starting PPP immediately.
--> Starting pppd at Wed Feb 16 11:41:52 2011
--> Pid of pppd: 2971
--> Using interface ppp0
--> pppd: 0d
--> pppd: 0d
--> pppd: 0d
--> pppd: 0d
--> pppd: 0d
--> local  IP address 14.194.173.100
--> pppd: 0d
--> remote IP address 0.194.173.100
--> pppd: 0d
--> primary   DNS address 121.242.190.181
--> pppd: 0d
--> secondary DNS address 121.242.190.210
--> pppd: 0d

7.now your system is connected to the internet.

8.If you encounter any problem you 've to edit a file.Move to the directory  /etc/peers/options
comment the line

# lcp-echo-intervel = 10

and another line

# lcp-echo-failure = 4



important!!!!!!!!

please don't forget to save each file after editing.

3 comments:

  1. thanks it worked like charm thanks a lot

    ReplyDelete
  2. do u have any idea to use opendns while using the internet thru bluetooth connection from my mobie so that i can open blocked sites by dot like filestube in order to downlload some books if possibe plz help

    ReplyDelete