Page 1 of 1

Bluetooth keyboard asking for PIN

Posted: Sat Mar 22, 2014 5:01 pm
by BluRazPi
Hi all, I'm new to raspberry pi and I have a little problem. I bought this little bluetooth keyboard, and later a bluetooth dongle for my pi and have installed the BlueZ software(By the way, I'm running Raspbian) and when I try to pair the keyboard, it asks for a pin, but the instructions for the keyboard list no pin for pairing. I don't know if this would help, but when I pair it with my iPad, my iPad tells me "enter this pin 5577 on the bluetooth keyboard then press enter". That works just fine, but the pin is different everytime I pair it to my ipad. I have tried just putting in random four-digit codes on the pi, but it just sits there " pairing" and eventually times out. Any ideas on how to get around the pin?

Re: Bluetooth keyboard asking for PIN

Posted: Sat Mar 22, 2014 9:41 pm
by drgeoff
Where are you being asked to enter the PIN? Typing it on the Bluetooth keyboard or on a different keyboard already connected to the RPi?

http://elinux.org/RPi_Bluetooth_keyboard_setup

The two most common PINs hardcoded into Bluetooth kit are 0000 and 1234.

Re: Bluetooth keyboard asking for PIN

Posted: Sat Mar 22, 2014 9:58 pm
by BluRazPi
The PIN prompt says to just enter the pin, and no specification on where to type it in, though I can only type on a USB connected keyboard as the BT one hasn't connected yet and doesn't do anything if I try to type the pin in on the BT keyboard. Also, I have tried both 0000 and 1234 with no luck.

Thank you for the help,
BluRazPi

Re: Bluetooth keyboard asking for PIN

Posted: Sat Mar 22, 2014 10:16 pm
by Douglas6
You might try pairing from the command line with this command:

Code: Select all

sudo bluez-simple-agent -c DisplayYesNo

Re: Bluetooth keyboard asking for PIN

Posted: Sun Mar 23, 2014 12:32 am
by BluRazPi
Well so I tried that command, but it didn't do anything. What is it supposed to do?