Announcement

Collapse
No announcement yet.

(Nokia) Mobile GPRS Connection using Bluetooth

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    (Nokia) Mobile GPRS Connection using Bluetooth

    I am trying to access (GPRS) Internet from my mobile phone through bluetooth on my laptop. Gone through this link https://help.ubuntu.com/community/BluetoothDialup and other links found through google on setting up internet connection via bluetooth dongle. It seems every thing goes smoothly but i am not able to find /dev/rfcomm0 after running this command
    Code:
    sudo /etc/init.d/bluetooth restart
    On the other hand on ubuntu it is so easy to pair a device and access internet just in few clicks.

    Any help is appreciated.

    Thanks in advance.

    #2
    Re: (Nokia) Mobile GPRS Connection using Bluetooth

    Any help?

    Comment


      #3
      Re: (Nokia) Mobile GPRS Connection using Bluetooth

      Ok. Got it solved by self. I am posting this as a tutorial so that somebody may benifit.

      Step 1

      Pair/connect the Mobile device with your laptop/computer using default bluetooth icon found on the system tray. Simply click on bluetooth icon --> add device --> enter pin number on your mobile --> select none and finish.

      Step 2

      Find Device id and name. Type hcitool scan in terminal and enter. Here is the example of mine

      Code:
      sundar@sundar-BONEFISH:~$ hcitool scan 
      Scanning ...
          00:26:69:C2:AA:90    J SUNDAR
      sundar@sundar-BONEFISH:~$
      Step 3

      Get the channel number. Type sdptool search DUN in terminal and enter. Here is the example of mine. Look at the bold words.

      Code:
      sundar@sundar-BONEFISH:~$ sdptool search DUN
      Inquiring ...
      Searching for DUN on 00:26:69:C2:AA:90 ...
      Service Name: Dial-up networking
      Service RecHandle: 0x10003
      Service Class ID List:
       "Dialup Networking" (0x1103)
       "Generic Networking" (0x1201)
      Protocol Descriptor List:
       "L2CAP" (0x0100)
       "RFCOMM" (0x0003)
        Channel: 1
      Language Base Attr List:
       code_ISO639: 0x656e
       encoding:  0x6a
       base_offset: 0x100
      Profile Descriptor List:
       "Dialup Networking" (0x1103)
        Version: 0x0100
      
      sundar@sundar-BONEFISH:~$
      You can see that my channel number is 1.

      Step 4

      Edit /etc/bluetooth/rfcomm.conf file using any editor. You need to add your device id name and channel number on this file. I used nano you may use kate,vi,kwrite or editor of your choice. The rfcomm.conf file should look like this

      Code:
      sundar@sundar-BONEFISH:~$ cat /etc/bluetooth/rfcomm.conf 
      #
      # RFCOMM configuration file.
      rfcomm0 {
      #    # Automatically bind the device at startup
          bind yes;
      #
      #    # Bluetooth address of the device
          device 00:26:69:C2:AA:90;
      #
      #    # RFCOMM channel for the connection
          channel 1;
      #
      #    # Description of the connection
          comment "J SUNDAR";
      }
      
      sundar@sundar-BONEFISH:~$
      Change your file accordingly.

      Step 5

      Restart service by issuing this command.

      Code:
      sudo /etc/init.d/bluetooth restar
      and make sure that rfcomm0 is present under /dev/

      Code:
      sundar@sundar-BONEFISH:~$ ls /dev | grep rfcomm
      rfcomm0
      sundar@sundar-BONEFISH:~$
      No you are almost ready.

      Step 6

      Create (two) files and put GPRS setting details. Firstly create file in /etc/ppp/peers/bsnl. BSNL is my service provider so you can write your own. Here is the details of my file. Simple copy and paste in your newly created file.

      Code:
      sundar@sundar-BONEFISH:~$ sudo cat /etc/ppp/peers/bsnl
      [sudo] password for sundar: 
      /dev/rfcomm0 115200
      connect '/usr/sbin/chat -v -f /etc/ppp/chat-bsnl'
      crtscts
      modem -detach
      noccp
      defaultroute
      usepeerdns
      noauth
      ipcp-accept-remote
      ipcp-accept-local
      noipdefault
      sundar@sundar-BONEFISH:~$
      Secondly you need to create that file in /etc/ppp/chat-bsnl. Here is the details of my file. Copy and paste the contenet in your file.

      Code:
      sundar@sundar-BONEFISH:~$ cat /etc/ppp/chat-bsnl 
      '' ATZ OK
      AT+CGDCONT=1,"IP","bsnlnet"
      OK "ATD*99***1#"
      CONNECT ''
      sundar@sundar-BONEFISH:~$
      Here bsnlnet is my service provider APN detail and *99***1# is ATD detail. Your's may vary.

      Step 7

      Now you are ready to connect to internet. Simply issue this command

      Code:
      sudo pppd call bsnl
      Your terminal output should look like mine. Please remember that when you try first time you may get Connect script failed error

      Code:
      sundar@sundar-BONEFISH:~$ sudo pppd call bsnl
      Connect script failed
      sundar@sundar-BONEFISH:~$ sudo pppd call bsnl
      Serial connection established.
      Using interface ppp0
      Connect: ppp0 <--> /dev/rfcomm1
      PAP authentication succeeded
      local IP address 116.230.233.126
      remote IP address 10.3.8.7
      primary  DNS address 4.2.4.8
      secondary DNS address 218.248.260.185
      Step 8

      It is time to brouse internet. Open firefox and go to website of your choice.


      Comment

      Working...
      X