Results 1 to 6 of 6

Thread: bluetooth command line pairing

  1. #1
    Join Date
    Jun 2006
    Beans
    Hidden!

    bluetooth command line pairing

    Hi,

    I rarely use bluetooth, anyway,
    in the past, I've used it, successfully,
    via command-line.

    How can I do the pairing, via command line,
    on a Kubuntu Intrepid Ibex?

    In the past I did the pairing with:
    passkey-agent --default /etc/bluetooth/bluepin

    Nowaday it is not possible to act in this way yet.


    I read here:
    https://help.ubuntu.com/community/BluetoothDialup

    In this tutorial the new procedure seems to be the following:

    sudo hcitool cc your-phone-mac-address

    then:

    sudo hcitool cc your-phone-mac-address

    Unfortunately the first command seems to be successfull
    (gives no output), but the second command told me the device is not connected


    So how can I do the pairing, via command line,
    on a Kubuntu Intrepid Ibex?


    If I had more RAM I could use kbluetooth or some GUI,
    but unfortunately I need to do the pairing via command line,
    because of the low RAM machine I'm on now, that is the reason,
    I've to use a light WM like Fluxbox.


    Please help,


    deadlinx

  2. #2
    Join Date
    Jun 2006
    Beans
    Hidden!

    Re: bluetooth command line pairing

    JUuuuuuuuuuuh,

    is there anybody reading?

    Don't say me there's nobody pairing bluetooth,
    via command line in Intrepid Ibex,

    so, please, help.


    deadlinx

  3. #3
    Join Date
    Jun 2006
    Beans
    Hidden!

    Re: bluetooth command line pairing

    Don't say me everybody uses only GUI tools,
    I can't belive it,

    so please, give an idea and so on,


    deadlinx

  4. #4
    Join Date
    Apr 2009
    Beans
    31

    Re: bluetooth command line pairing

    You aren't the only one that doesn't use gui tools.
    I am also suffering from the total lack of consideration that the bluez devs seem to have for anyone that might dare to not use a full gui.

    Can anyone help? All I want to do is pair my damn phone!

  5. #5
    Join Date
    Oct 2005
    Beans
    38
    Distro
    Ubuntu 6.06

    Re: bluetooth command line pairing

    Same need here!

    I found that once devices are paired, the key/pin is stored in a file called /var/lib/bluetooth/xx : xx : xx : xx : xx : xx /linkkeys as:
    yy:yy:yy:yy:yy:yy XYZ32HEXNUMBERSYADAYADA456789012 0 4

    x: is your local Bluetooth device's "MAC?" address and y is the one you are connecting to.

    There are some more files pertaining to your remote devices like "classes", "features", "manufacturers", "names", "profiles" and "sdp" in that same folder.

    so maybe there is a way to add your external device info to those files...but the 32 bit encrypted key in "linkkeys" might be tricky?

    Anyone any ideas?

  6. #6
    Join Date
    Oct 2005
    Beans
    38
    Distro
    Ubuntu 6.06

    Re: bluetooth command line pairing

    This might be useful if you have only one device:

    http://www.spinics.net/lists/linux-b.../msg02190.html

Bookmarks

Posting Permissions

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