FomerMay
Posts: 8
Joined: Sun Aug 19, 2012 3:29 pm

Bluetooth via command-line

Thu Oct 25, 2012 4:10 pm

Hello,

i want to connect my Bluetooth-Audio-Dongle (http://www.amazon.de/Logitech-schnurlos ... 895&sr=8-1) with the Bluetooth-Adapter (http://www.amazon.de/gp/product/B003A2G ... os_product) at my RPi.
Bluetooth is installed, Bluez also. After scan (hcitool scan) i try to pair the devices (sudo bluez-simple-agent hci0 XX:XX:XX:XX:XX:XX) but i get this error:

Code: Select all

Creating device failed: org.bluez.Error.AuthenticationRejected: Authentication Rejected
Last try was to change the file /etc/dbus-1/system.d/bluetooth.conf like there -> http://wiki.sabayon.org/index.php?title ... Headphones

Can anyone please help me?

P.S. i'm running Raspbian “wheezy” with all updates & upgrades. firmware it's also the lastets version.

FomerMay
Posts: 8
Joined: Sun Aug 19, 2012 3:29 pm

Re: Bluetooth via command-line

Tue Nov 20, 2012 9:52 am

Nobody?

jlhonora
Posts: 6
Joined: Mon Jan 21, 2013 8:03 pm

Re: Bluetooth via command-line

Mon Jan 21, 2013 8:11 pm

Hi,

I had the same problem and I solved it. It was a bad configuration in my /etc/dbus-1/system.d/bluetooth.conf file, it looked like this:

Code: Select all

  
<!-- ../system.conf have denied everything, so we just punch some holes -->

  <policy user="root">
    <allow own="org.bluez"/>
    <allow send_destination="org.bluez"/>
    <allow send_interface="org.bluez.Agent1"/>
    <allow send_interface="org.bluez.MediaEndpoint1"/>
    <allow send_interface="org.bluez.MediaPlayer1"/>
    <allow send_interface="org.bluez.ThermometerWatcher1"/>
    <allow send_interface="org.bluez.AlertAgent1"/>
    <allow send_interface="org.bluez.Profile1"/>
    <allow send_interface="org.bluez.HeartRateWatcher1"/>
    <allow send_interface="org.bluez.CyclingSpeedWatcher1"/>
So I removed the "1"s at the end of each interface and everything went OK.

Return to “Troubleshooting”