Results 1 to 9 of 9

Thread: How to connect to your phone via Bluetooth to access Internet

  1. #1
    Just burned his ISO
    Join Date
    Jan 2010
    Posts
    15

    Default How to connect to your phone via Bluetooth to access Internet

    How to connect to your phone via Bluetooth to access Internet
    by:MWood



    this is not 100% foolproof, but works for me.
    My provider is DNA Finland, your chatscript line
    may be different acording to your service description


    Config your files:

    /etc/bluetooth
    -
    edit rfcomm.conf and main.conf

    /etc/bluetooth/rfcomm.conf
    #
    # RFCOMM configuration file.
    #

    rfcomm0 {
    # # Automatically bind the device at startup
    bind yes;
    #
    # # Bluetooth address of the device
    device 00:26:CC:8A:24:59; # my real MAC, hack me
    #
    # # RFCOMM channel for the connection
    # run sdptool browse to get the DUN chan
    channel 1; #S40 DUN
    #
    # # Description of the connection
    comment "Dial-Up Networking";
    }

    /etc/bluetooth/main.conf
    [General]
    # List of plugins that should not be loaded on bluetoothd startup
    #DisablePlugins = network,input

    # Default adaper name
    # %h - substituted for hostname
    # %d - substituted for adapter id
    #Name = %h-%d
    Name = YOUR_BT4_BOX

    # Default device class.
    #Class = 0x000100
    Class = 0x0a010c # run "hciconfig hci0 class"

    # How long to stay discoverable
    # The value is in seconds. Default is 180, i.e. 3 minutes.
    # 0 = disable timer, i.e. stay discoverable forever
    DiscoverableTimeout = 0

    # Use other page timeout than the controller default one
    # (16384 = 10 seconds)
    PageTimeout = 8192

    # Behaviour for Adapter.SetProperty("mode", "off")
    # Possible values: "DevDown", "NoScan" (default)
    OffMode = NoScan

    # Discover scheduler interval used in Adapter.DiscoverDevices
    # The value is in seconds.
    # Defaults is 0 to use controller scheduler
    DiscoverSchedulerInterval = 0



    /etc/ppp/peers
    -
    create file "BluetoothDialup"

    /etc/ppp/peers/BluetoothDialup

    debug
    noauth
    connect "/usr/sbin/chat -v -f /etc/chatscripts/BluetoothDialup"
    usepeerdns
    /dev/rfcomm0 115200
    defaultroute
    crtscts
    lcp-echo-failure 0


    /etc/chatscripts
    -
    create file "BluetoothDialup" ( yes the same name as above )

    /etc/chatscripts/BluetoothDialup
    TIMEOUT 35
    ECHO ON
    ABORT '\nBUSY\r'
    ABORT '\nERROR\r'
    ABORT '\nNO ANSWER\r'
    ABORT '\nNO CARRIER\r'
    ABORT '\nNO DIALTONE\r'
    ABORT '\nRINGING\r\n\r\nRINGING\r'
    '' \rAT
    OK 'AT+CGDCONT=1, "IP", "INTERNET"'
    OK ATD*99#
    CONNECT ""


    note: the line
    OK ATD*99# is your dialup number, mine is simply *99#

    note: the line
    OK 'AT+CGDCONT=1, "IP", "INTERNET"'

    is very importaint, especially the "INTERNET" entry, this should
    match your phones service. Mine is "dna INTERNET" on my phone, but the correct info for the script is "INTERNET".
    If you get an error about needed to subscribe to blahblah, you got it wrong!



    /var/lib/YOUR_BT4_BLUETOOTHDEVICE_MAC/
    -
    create a file called "pincodes"
    enter on one line...
    /var/lib/YOUR_BT4_BLUETOOTHDEVICE_MAC/pincodes

    YOUR_PHONES_MAC PIN

    example:
    00:11:22:33:44:55 1234

    -

    restart the bt daemon...
    user@bt~#/etc/init.d/bluetooth restart

    to connect issue the command...
    user@bt~#pon BluetoothDialup

    to disconnect issue the command....
    user@bt~#poff BluetoothDialup


    problems:
    If you have previously paired your phone in windows,
    you may need to delete the old pairing,

    then re-pair in BT4. Pairing will be from BT4->Phone
    ( accecpt request and PIN:1234 )
    Last edited by morning_wood; 01-22-2010 at 08:58 AM. Reason: clarity - cut n paste

  2. #2
    Member
    Join Date
    Jan 2010
    Location
    Helsinki, Finland
    Posts
    235

    Default Re: How to connect to your phone via Bluetooth to access Internet

    Thanks for your guide. My operator is also dna (finland).

    However i got one error
    Code:
    pon BluetoothDialup
    /usr/sbin/pppd: In file /etc/ppp/peers/BluetoothDialup: unrecognized option '/dev/rfcomm0'
    So what I have done wrong, or is there something missing.
    My phone is Nokia 6210Navigator

  3. #3
    Just burned his ISO
    Join Date
    Jan 2010
    Posts
    15

    Default Re: How to connect to your phone via Bluetooth to access Internet

    Quote Originally Posted by halfdone View Post
    Thanks for your guide. My operator is also dna (finland).

    However i got one error
    Code:
    pon BluetoothDialup
    /usr/sbin/pppd: In file /etc/ppp/peers/BluetoothDialup: unrecognized option '/dev/rfcomm0'
    So what I have done wrong, or is there something missing.
    My phone is Nokia 6210Navigator
    be sure to edit /etc/bluetooth/rfcomm.conf with your phones MAC ( device xx:xx:xx:xx:xx:xx )

  4. #4
    Just burned his ISO
    Join Date
    Jan 2010
    Posts
    9

    Default Re: How to connect to your phone via Bluetooth to access Internet

    Hey, I found one way to get the WAP/GPRS dialing info from your phone, unfortunately it involves using a W-word OS.

    Connect phone to computer and the proper drivers should install. The phone should be recognized to have DUN services.
    Under the bluetooth device configuration menu --> diagnostics .. there's an option to append to a log, and then view the log after connection... through the log, I was able to find the input that I needed:

    Code:
    02-14-2010 00:37:24.964 - Interpreted response: OK
    02-14-2010 00:37:24.965 - Sending user initialization commands.
    02-14-2010 00:37:24.975 - Send: AT+CGDCONT=1,"IP","ibox.tim.it"<cr>
    02-14-2010 00:37:24.980 - Recv: <cr><lf>OK<cr><lf>
    02-14-2010 00:37:24.980 - Interpreted response: OK
    02-14-2010 00:37:24.981 - Dialing.
    02-14-2010 00:37:24.991 - Send: ATDT*###<cr>
    02-14-2010 00:37:26.413 - Recv: <cr><lf>CONNECT<cr><lf>
    02-14-2010 00:37:26.413 - Interpreted response: Connect
    Now, I'm sure the information must be in the SIM card because I couldnt find it anywhere in the phone settings.
    Maybe getting a hardware kit, like this: SIM Card Reader/Writer Kit would be much more "l33t".

    Anyway, before I get burned for mentioning the W-word. Thanks for the tutorial. I wish my connection wasnt so painfully slow that its pretty much useless. It was really good way to learn how to properly bind bluetooth devices to backtrack, in any case.

    Thanks.

  5. #5
    Junior Member nightlybuild's Avatar
    Join Date
    Feb 2010
    Location
    InYourBucci/Chicago
    Posts
    36

    Default Re: How to connect to your phone via Bluetooth to access Internet

    Nice tutorial, I wanna try this once I can figure out bluetooth. Would you happen to know where I can change the Bluetooth pin? I was playing around with rfcomm to try make a connection to my phone, but when I tried entering "1234" it didn't connect.
    If you get tired of listening to your music... cat /vmlinuz > /dev/audio
    -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
    Macbook 2.4Ghz Dual Core, 4GB Ram, Edimax EW-7318USG, BT4

  6. #6
    My life is this forum Snayler's Avatar
    Join Date
    Jan 2010
    Posts
    1,418

    Default Re: How to connect to your phone via Bluetooth to access Internet

    Quote Originally Posted by nightlybuild View Post
    Nice tutorial, I wanna try this once I can figure out bluetooth. Would you happen to know where I can change the Bluetooth pin? I was playing around with rfcomm to try make a connection to my phone, but when I tried entering "1234" it didn't connect.
    Admit it, you haven't even red OP's post, have you? Let me explain why I'm saying this:
    Quote Originally Posted by morning_wood View Post
    /var/lib/YOUR_BT4_BLUETOOTHDEVICE_MAC/
    -
    create a file called "pincodes"
    enter on one line...
    /var/lib/YOUR_BT4_BLUETOOTHDEVICE_MAC/pincodes

    YOUR_PHONES_MAC PIN

    example:
    00:11:22:33:44:55 1234

  7. #7
    Junior Member nightlybuild's Avatar
    Join Date
    Feb 2010
    Location
    InYourBucci/Chicago
    Posts
    36

    Default Re: How to connect to your phone via Bluetooth to access Internet

    I'm not gonna lie, I overlooked the second part of his post. Right after I replied I reread everything in the forum and saw that part and couldn't remove my post because first it had to be approved by the moderator. Sorry, I'll pay more attention.
    By the way, I got it working by placing a pincodes file at: /var/lib/bluetooth/nn:nn:nn:nn:nn:nn/pincodes
    nn:nn:nn:nn:nn:nn as in your BT4 bluetooth mac address. This page helped me: http://wiki.bluez.org/wiki/HOWTO/Bonding
    Last edited by nightlybuild; 02-21-2010 at 10:26 PM. Reason: spelling
    If you get tired of listening to your music... cat /vmlinuz > /dev/audio
    -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
    Macbook 2.4Ghz Dual Core, 4GB Ram, Edimax EW-7318USG, BT4

  8. #8
    Just burned his ISO
    Join Date
    Mar 2010
    Posts
    1

    Default

    Quote Originally Posted by morning_wood View Post
    be sure to edit /etc/bluetooth/rfcomm.conf with your phones MAC ( device xx:xx:xx:xx:xx:xx )
    hm i have same mistake.
    checked /etc/bluetooth/rfcomm.conf and its
    Code:
    #
    # RFCOMM configuration file.
    #
    #
    	rfcomm0 {
    #	# Automatically bind the device at startup
    	bind yes;
    #
    #	# Bluetooth address of the device
    	device phone mac;
    #
    #	# RFCOMM channel for the connection
    	channel	2;
    #
    #	# Description of the connection
    	comment "Example Bluetooth device";
    }
    still having that mistake. maybe im missing something?
    help me please.

    sorry problem solved.
    checked class and it was wrong.
    but in the end phone took all internet channel... thats not good (
    Last edited by Archangel-Amael; 03-07-2010 at 07:15 PM.

  9. #9
    Member
    Join Date
    Jan 2010
    Location
    Helsinki, Finland
    Posts
    235

    Default Re: How to connect to your phone via Bluetooth to access Internet

    Hi I just wanted to tell that I got this working, actually I cant pair my mobile phone with my bluetooth device. However I dont need to use bluetooth, I can use usb cable to connect my phone. I also use KPPP to connect to internet.

    in gnome is a tool to connect phone using bluetooth, is there any for KDE?
    Last edited by halfdone; 03-19-2010 at 10:02 PM.

Similar Threads

  1. AWUS036H won't connect through Wicd
    By thebigbradwolf in forum HardWare Compatibility List
    Replies: 4
    Last Post: 04-04-2011, 10:16 AM
  2. No Internet on BackTrack 4
    By UnknownError in forum Beginners Forum
    Replies: 9
    Last Post: 08-12-2010, 05:53 AM
  3. Replies: 5
    Last Post: 01-18-2010, 09:23 PM
  4. access bt4 running in virtualbox via vnc
    By bl0tch in forum Beginners Forum
    Replies: 5
    Last Post: 01-17-2010, 06:43 AM
  5. is apt-get and internet work very fine with you guys?
    By Xploit in forum BackTrack Bugs
    Replies: 2
    Last Post: 01-13-2010, 02:14 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •