[solved] jessie: bluetooth can not connect to kbd MS Wegde


7 posts
by _emanuel_ » Sat Oct 10, 2015 8:28 am
Whole palette of bluetooth tools are missing.

I can not connect to keyboard like MS Wedge:

no "hidd", "bluez-simple-agent", "bluez-test-device", ...

using the binary from other distries just gave me dbus errors.

old procedure were:
(permanently connect)
http://www.correlatedcontent.com/blog/b ... pberry-pi/
(once connect)
https://www.raspberrypi.org/forums/view ... 2&p=520296
Last edited by _emanuel_ on Sat Oct 10, 2015 9:01 pm, edited 1 time in total.
User avatar
Posts: 17
Joined: Wed Apr 01, 2015 9:47 pm
Location: bavaria
by Douglas6 » Sat Oct 10, 2015 1:00 pm
Use the bluetoothctl CLI utility with BlueZ 5, or the GUI Bluetooth Manager.
User avatar
Posts: 3862
Joined: Sat Mar 16, 2013 5:34 am
Location: Chicago, IL
by _emanuel_ » Sat Oct 10, 2015 8:02 pm
Code: Select all
[bluetooth]# pairable on
Changing pairable on succeeded
[bluetooth]# pair 7C:1E:52:0B:0D:97
Attempting to pair with 7C:1E:52:0B:0D:97                                                                       
Failed to pair: org.bluez.Error.ConnectionAttemptFailed
[bluetooth]# pair 7C:1E:52:0B:0D:97                                                                             
Attempting to pair with 7C:1E:52:0B:0D:97                                                                         
[CHG] Device 7C:1E:52:0B:0D:97 Connected: yes
[CHG] Device 7C:1E:52:0B:0D:97 Connected: no
Failed to pair: org.bluez.Error.AuthenticationCanceled
[bluetooth]#
User avatar
Posts: 17
Joined: Wed Apr 01, 2015 9:47 pm
Location: bavaria
by Douglas6 » Sat Oct 10, 2015 8:10 pm
Make sure the keyboard is in discoverable mode when trying to pair.
User avatar
Posts: 3862
Joined: Sat Mar 16, 2013 5:34 am
Location: Chicago, IL
by _emanuel_ » Sat Oct 10, 2015 8:52 pm
Code: Select all
pi@raspberrypi ~ $ sudo hciconfig hci0 down
pi@raspberrypi ~ $ sudo hciconfig hci0 up
pi@raspberrypi ~ $ bluetoothctl
[NEW] Controller 00:15:83:15:A3:10 raspberrypi [default]
[NEW] Device 7C:1E:52:0B:0D:97 Microsoft Wedge Mobile Keyboard
[bluetooth]# agent on
Agent registered
[bluetooth]# default-agent
Default agent request successful
[bluetooth]# pairable on
Changing pairable on succeeded
[bluetooth]# scan on
Discovery started
[CHG] Controller 00:15:83:15:A3:10 Discovering: yes
[CHG] Device 7C:1E:52:0B:0D:97 LegacyPairing: yes
[CHG] Device 7C:1E:52:0B:0D:97 Class: 0x002540
[CHG] Device 7C:1E:52:0B:0D:97 Icon: input-keyboard
[bluetooth]# pair 7C:1E:52:0B:0D:97
Attempting to pair with 7C:1E:52:0B:0D:97
[CHG] Device 7C:1E:52:0B:0D:97 Connected: yes
[agent] PIN code: 953853
[CHG] Device 7C:1E:52:0B:0D:97 Paired: yes
Pairing successful
[CHG] Device 7C:1E:52:0B:0D:97 Connected: no
[bluetooth]# connect 7C:1E:52:0B:0D:97
Attempting to connect to 7C:1E:52:0B:0D:97
[CHG] Device 7C:1E:52:0B:0D:97 Connected: yes
Connection successful
[bluetooth]# quit
Agent unregistered
[DEL] Controller 00:15:83:15:A3:10 raspberrypi [default]
pi@raspberrypi ~ $


@Douglas6 thank's it was in discover mode.

the agent was helpfull. I hope it will hold after reboot.
User avatar
Posts: 17
Joined: Wed Apr 01, 2015 9:47 pm
Location: bavaria
by _emanuel_ » Sat Oct 10, 2015 8:59 pm
I've got keyboard after reboot!

fine ;-)
User avatar
Posts: 17
Joined: Wed Apr 01, 2015 9:47 pm
Location: bavaria
by dhannie » Fri Dec 11, 2015 2:59 am
I got pairing successful but device not connected.
What could be wrong?
Posts: 1
Joined: Fri Oct 02, 2015 1:24 am