hibdude
Posts: 15
Joined: Wed Feb 03, 2016 11:44 pm
Location: Gurnee, IL

Pi 3 - second attempt at bluetooth keybrd

Tue Apr 12, 2016 9:15 pm

So after days of trying to get a small, off-brand, bluetooth keyboard up and working on my RPi3, I finally gave up and sent the keyboard back. I went out and found a name brand bluetooth keyboard, an HP Bluetooth Keyboard K4000, and set it up. I had about 30 seconds of use before I started getting the same results as the off-brand keyboard - namely the thing won't stay connected. I have had no problems with my Logitech M557 bluetooth mouse. Here's what I'm seeing. Any thoughts?
[bluetooth]# connect 08:B7:38:14:D4:3F
Attempting to connect to 08:B7:38:14:D4:3F
Failed to connect: org.bluez.Error.Failed
[CHG] Device 08:B7:38:14:D4:3F Class: 0x000540
[CHG] Device 08:B7:38:14:D4:3F Icon: input-keyboard
[CHG] Device 08:B7:38:14:D4:3F Connected: yes
[CHG] Device 08:B7:38:14:D4:3F Connected: no
[CHG] Device 08:B7:38:14:D4:3F Connected: yes
[CHG] Device 08:B7:38:14:D4:3F Connected: no
[CHG] Device 08:B7:38:14:D4:3F Connected: yes
[CHG] Device 08:B7:38:14:D4:3F Connected: no
[CHG] Device 08:B7:38:14:D4:3F Connected: yes
[CHG] Device 08:B7:38:14:D4:3F Connected: no
[CHG] Device 08:B7:38:14:D4:3F Connected: yes
[CHG] Device 08:B7:38:14:D4:3F Connected: no

User avatar
MarkHaysHarris777
Posts: 1820
Joined: Mon Mar 23, 2015 7:39 am
Location: Rochester, MN
Contact: Website

Re: Pi 3 - second attempt at bluetooth keybrd

Tue Apr 12, 2016 9:23 pm

The rub is having more than one blue-tooth connected at a time. If you want to have both the mouse and the keyboard on blue-tooth you will need to define another device, but then you will only be able to send or receive on each one sequentially... one at a time (I'm pretty sure about this). I think your mouse is interfering with your keyboard. Try disconnecting the mouse and connecting the keyboard alone... ok now?
marcus
:ugeek:

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

Re: Pi 3 - second attempt at bluetooth keybrd

Tue Apr 12, 2016 9:30 pm

MarkHaysHarris777 wrote:I think your mouse is interfering with your keyboard.
I don't think so, but I admit I have neither keyboard nor mouse. I'd be interested in hearing what happens if you disconnect the mouse.

hibdude
Posts: 15
Joined: Wed Feb 03, 2016 11:44 pm
Location: Gurnee, IL

Re: Pi 3 - second attempt at bluetooth keybrd

Tue Apr 12, 2016 9:44 pm

Wow. I'm getting better results, and I feel a little stupid for not thinking of that. I grabbed a USB mouse and shut off the bluetooth mouse and the keyboard is now working; however, it didn't reconnect automatically when I rebooted. I had to go through the connection process again for it to work. Is there something I need to do for the keyboard to be recognized automatically?

(...very thankful for your generous help. Its awesome to get a boost to get over these little hurdles.)

dukla2000
Posts: 190
Joined: Tue Jan 10, 2012 12:02 am
Location: Reading.UK.EU

Re: Pi 3 - second attempt at bluetooth keybrd

Wed Apr 13, 2016 10:48 pm

I have the same problem, but in my case using the (bluetooth) mouse tends to disconnect the keyboard. Same symptoms with 2 different bluetooth keyboards and no solution so far. I have a second bluetooth mouse in the post somewhere.

I don't have any problem after a reboot in my current config (bluetooth keyboard with USB mouse). My thread is here.
MarkHaysHarris777 wrote:The rub is having more than one blue-tooth connected at a time. If you want to have both the mouse and the keyboard on blue-tooth you will need to define another device, but then you will only be able to send or receive on each one sequentially... one at a time (I'm pretty sure about this). I think your mouse is interfering with your keyboard.
Please can you clarify, are you saying getting BT mouse and keyboard to work is not possible? Or just that you will need to trust/pair/connect each of them with a different 'address' (whatever the xx:xx:xx:xx:xx:xx thing is called in BT-speak)?
Last edited by dukla2000 on Thu Apr 14, 2016 9:32 am, edited 1 time in total.
Daily driver: Pi3B, 64GB Samsung Evo+ @100MHz, DVB-T, onboard WiFi for internet, BT/USB dongle for KB/mouse, 250GB HDD via USB for media, Raspbian Jessie Lite with Openbox desktop.
Museum: Pi B

hibdude
Posts: 15
Joined: Wed Feb 03, 2016 11:44 pm
Location: Gurnee, IL

Re: Pi 3 - second attempt at bluetooth keybrd

Wed Apr 13, 2016 11:30 pm

My experience has been that only one bluetooth device can be connected at a time. I've had no problems with my bluetooth keyboard since abandoning the bluetooth mouse.

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

Re: Pi 3 - second attempt at bluetooth keybrd

Wed Apr 13, 2016 11:51 pm

According to the Bluetooth specification, multiple devices should be permitted. I'd be surprised if Raspbian / BlueZ 5 didn't permit it, but folks like hibdude have more personal experience than me with keyboards and mice in Raspbian.

@dukla2000: It's called a 'Bluetooth device address', or 'bdaddr', similar to but different than a MAC address.

User avatar
MarkHaysHarris777
Posts: 1820
Joined: Mon Mar 23, 2015 7:39 am
Location: Rochester, MN
Contact: Website

Re: Pi 3 - second attempt at bluetooth keybrd

Thu Apr 14, 2016 2:15 am

dukla2000 wrote:
MarkHaysHarris777 wrote:The rub is having more than one blue-tooth connected at a time. If you want to have both the mouse and the keyboard on blue-tooth you will need to define another device, but then you will only be able to send or receive on each one sequentially... one at a time (I'm pretty sure about this). I think your mouse is interfering with your keyboard.
Please can you clarify, are you saying getting BT mouse and keyboard to work is not possible? Or just that you will need to trust/pair/connect each of them with a different 'address' (whatever the xx:xx:xx:xx:xx:xx thing is called in BT-speak)?
You can have more than one device connected, but you will have to define the second device (they have to be unique) and they have to run sequentially (one at a time). If you are using the keyboard, don't bump the mouse. If you are using the mouse, don't bump the keyboard (one at a time); but, they each have to be their own device.

I read a thread about this somewhere; but, I can't find it now... rats.

(I'll keep looking)
marcus
:ugeek:

dukla2000
Posts: 190
Joined: Tue Jan 10, 2012 12:02 am
Location: Reading.UK.EU

Re: Pi 3 - second attempt at bluetooth keybrd

Thu Apr 14, 2016 9:39 am

Actually just did some more playing and my bluetooth mouse and keyboard seem to be playing together a lot better. Been up for about 30 mins now with no disconnects. The only difference to my original thread that I know of is I am now

Code: Select all

pi@dukla:~ $ uname -a
Linux dukla 4.1.19-v7+ #858 SMP Tue Mar 15 15:56:00 GMT 2016 armv7l GNU/Linux
I have edited my post above to correct the link to my original thread.

One other bit I saw in my browsing: allegedly the link will not recover after a reboot if it is not trusted - @hibdude did you trust your links?
Daily driver: Pi3B, 64GB Samsung Evo+ @100MHz, DVB-T, onboard WiFi for internet, BT/USB dongle for KB/mouse, 250GB HDD via USB for media, Raspbian Jessie Lite with Openbox desktop.
Museum: Pi B

Return to “Troubleshooting”