3

Android Phone -> Search for available devices -> Try to pair raspberrypi-0 -> Pop up shows on phone with certain pin.

The problem is no pop up comes up on the Raspberry Pi UI. Hence the pairing request ends up with error message incorrect or wrong pin

Weird thing is, if I send the pairing request from pi to the phone, I am able to pair the devices successfully. I have updated my Raspberry Pi's Bluetooth modules to the latest by running sudo apt-get update followed by sudo apt-get upgrade bluetooth bluez-utils blueman. I need to achieve this pairing because I am building an application to transfer data from Pi to phone using Bluetooth, which would need initiation of request from phone.

Bluetooth dongle: Bluetooth CSR 4.0 Dongle, specification 4.0 compliant. Supports profiles Networking, Dial-up, Fax, LAN access and headset.

  • Did you try 0000 ? that's the most common answer to the question "I don't know my Bluetooth pin". 1234 is another common answer, but I've never actually seen any that use it, usually 0000 – Tyson Sep 4 '15 at 20:48
  • @Tyson somehow the pop up is not appearing for confirmation anywhere on screen from Pi. – Aman Deep Gautam Sep 4 '15 at 20:50
  • I misunderstood the question. To get an answered for this question however, I think that your are going to need to name the exact piece of Bluetooth hardware, as well as version info for any drivers you installed. – Tyson Sep 4 '15 at 21:05
  • @Tyson I added the information for hardware, but am still not sure how to get information on bluetooth drivers. Can you help me with that. – Aman Deep Gautam Sep 4 '15 at 21:24
  • 1
    Perfect, now update the question with that, instead of the non-specific text I previously quoted, the exact upgrade command is good since you specified modules. Then I'll step away and let someone that's done what your doing answer, I have not, but I think your questions better written now – Tyson Sep 4 '15 at 21:52
1

I was able to resolve the issue. I was unable to do this with the GUI offered, i.e blueman. Instead I used the command-line interface bluez-simple-agent. For this to work correctly, you would need to make changes to file /usr/bin/bluez-simple-agent. Search for KeyboardDisplay and change it to NoInputNoOutput.

  • If you or others are looking for an automated installation on the latest raspbian jessie image that allows for auto pairing of bluetooth for a2dp and airplay. You can use this repo for the install: github.com/BaReinhard/… – Brett Reinhard Feb 17 '17 at 0:04

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.