BluRazPi
Posts: 27
Joined: Sat Mar 22, 2014 4:54 pm

Bluetooth keyboard asking for PIN

Sat Mar 22, 2014 5:01 pm

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?

drgeoff
Posts: 10765
Joined: Wed Jan 25, 2012 6:39 pm

Re: Bluetooth keyboard asking for PIN

Sat Mar 22, 2014 9:41 pm

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.

BluRazPi
Posts: 27
Joined: Sat Mar 22, 2014 4:54 pm

Re: Bluetooth keyboard asking for PIN

Sat Mar 22, 2014 9:58 pm

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

User avatar
Douglas6
Posts: 4861
Joined: Sat Mar 16, 2013 5:34 am
Location: Chicago, IL

Re: Bluetooth keyboard asking for PIN

Sat Mar 22, 2014 10:16 pm

You might try pairing from the command line with this command:

Code: Select all

sudo bluez-simple-agent -c DisplayYesNo

BluRazPi
Posts: 27
Joined: Sat Mar 22, 2014 4:54 pm

Re: Bluetooth keyboard asking for PIN

Sun Mar 23, 2014 12:32 am

Well so I tried that command, but it didn't do anything. What is it supposed to do?

Return to “Troubleshooting”