Pairing Bluetooth device with PIN fails

Posted by Pikaro on Super User See other posts from Super User or by Pikaro
Published on 2014-08-23T15:26:43Z Indexed on 2014/08/23 16:25 UTC
Read the original article Hit count: 258

Filed under:
|
|
|

I'm trying to pair my old BlackBerry 8310 to my Linux desktop (up-to-date Debian Sid, 3.15-10.dmz.1-liquorix-amd64) by using blueman and its associated tools. Scanning for the device works equally well for both sides; however, I am unable to pair the two once it comes to entering the PIN.

If I scan from my PC, I have two options in blueman-manager regarding my phone: Directly selecting "pair", or selecting "setup".

  • If I select "pair", nothing happens on my desktop, but the phone asks me to enter a PIN; if I do so, it reports that pairing has failed. During that, nothing is logged to the console.

  • Selecting "setup" opens a configuration dialog that allows for entering or generating a PIN. Regardless, I get to a screen that tells me to enter the PIN on the phone, and at the same time, the phone pops up the equivalent dialog. This would be what one would expect to work; but whatever I enter (naturally, the same on both), both devices report that pairing has failed, and blueman-manager logs

    init_services (/usr/lib/python2.7/dist-packages/blueman/main/Device.py:73)  
    Loading services   
    org.bluez.Error.AuthenticationFailed: Authentication Failed
    
  • If I instead try to pair from the phone, I cannot see any kind of reaction from my desktop - all I get is the equivalent "pairing failed" message from the BlackBerry after I entered a PIN in the dialog that pops up there.

hcitool scan and hciconfig -a work without complaints, but I cannot find a way to try the pairing as a whole on the console since bluez-simple-agent seems to have been discontinued and this recommendation is everywhere on Google. hcitool cc as root opens the PIN dialog on the phone, then fails with "Input/Output error" once I enter it. The user is not permitted to execute this command. I also tried creating /usr/lib/bluetooth/<MAC>/pincodes to manually define a persistent PIN, which seems to have had no effect. The same goes for running the different commands as root, though I'm really confused about the internal structure of the Bluetooth subsystem now: They usually and inconsistently failed with Python or DBUS errors or just showed the same results.

The only other Bluetooth device I have around are a pair of Creative speakers. Trying "setup" asks me to enter a key on them, which is impossible. If I try "pair", I'm asked for a PIN as I should, but no pairing takes place, and no errors appear on the console. (It just repeats their name a few times.) Interestingly, I tried that before writing my question, and nothing happened in terms of PIN questions, just like with the BlackBerry, which still shows no change. I don't think I actively changed anything since then. The BlackBerry can pair with and connect to the speakers, and everything goes as one would expect, so the problem is definitely with my desktop.

So thus my questions:

  • What is that PIN window generated by, and why does it seem to appear randomly?

  • How can I find out what, exactly, fails after trying to add the speakers, as this may give me a clue?

  • Is there any kind of complete log that concerns itself with Bluetooth?

  • What data can I provide to make this more solvable?

© Super User or respective owner

Related posts about linux

Related posts about debian