5

I'm running a Raspberry Pi with Raspbian Wheezy. I have a BT (Bluetooth) dongle attached to one of the USB ports (I have a model B RPi), I've downloaded and installed the following packages: bluez-utils, blueman, bluetooth and libbluetooth-dev, and all works fine.

But I have a question: is it possible to disable the PIN request on my RPi side when I try to connect from a mobile phone?

I know how to configure the PIN for the mobile phone, but I don't want my RPi asking for a PIN to pair the mobile phone.

2

Here is an approach, which I found to have worked.

  • ps aux | grep applet (identify the blueman process) and then kill it. This will kill the GUI application. This has to done on every reboot.

  • Open the /usr/bin/bluez-simple-agent and change KeyboardDisplay or DisplayYesNo (based on whatever you have there) to NoInputNoOutput. Run bluez-simple-agent in background and foreground.

  • Although reboot is not essentially needed from my experience it is advisable.

Hope this solves your problem.

0

Take a look at the section on pairing a device with your computer in this article titled: Bluetooth Headset - ArchLinux Wiki for tips on how to do this. I do not have a bluetooth device to confirm this but the steps described there may work for you as well.

References

  • Thank you @sim, but where is that file located? I think that it is no longer used, at least in Raspbian... bugs.debian.org/cgi-bin/bugreport.cgi?bug=539555 – neutrino Feb 19 '14 at 15:56
  • @neutrino - Sorry about that, it does appear to be obsolete. I'll continue to look. – slm Feb 19 '14 at 15:59
  • Thank you again, @sim. But unfortunately, the device I am using does not allow incoming connections. It is designed to search and connect to any device supporting the SPP profile, with a given service name. And hence the problem: the BlueZ stacks ask the device for a PIN, and the device is not prepared to send it. – neutrino Feb 19 '14 at 16:20
  • 2
    If you are using bluez-simple-agent, add capability=NoInputNoOutput in the file, will work only for 2.1 and above devices, also check link as well – ashish Feb 20 '14 at 9:33
  • @ashish Thanks! But this command: /usr/local/bin/simple-agent fail with the message: Can't set Simple Pairing mode on hci0: Input/output error (5) – neutrino Feb 20 '14 at 13:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.