Apple bluetooth keyboard/mouse,
pairing problems (was: Bluetooth compatibility)
Anders Nordby
anders at FreeBSD.org
Wed Feb 15 14:43:36 PST 2006
Hi,
On Tue, Feb 14, 2006 at 09:28:06AM -0800, Maksim Yevmenkin wrote:
>>Does ng_ubt support Bluetooth 1.2 devices? Are USB dongles with Bluetooth
>>1.2
>>backwards compatible? I'm considering to buy a D-Link DBT-120 (1.1) or
>>DBT-122 (1.2) device.
> in general, yes, bluetooth v1.2 devices will work with ng_ubt(4) and
> bluetooth stack. i have v1.2 device and it works just fine. keep in mind
> that ng_hci.h does not yet have definitions for bluetooth v1.2 hci
> commands and events. it does not mean that you can not send these
> commands to the device.
I bought a D-Link DBT-122, and it works fine with no modifications in
FreeBSD 6.0-RELEASE:
Feb 14 20:40:05 lappy kernel: ubt0: D-Link DBT-122, rev 1.10/0.01, addr 2
Feb 14 20:40:05 lappy kernel: ubt0: D-Link DBT-122, rev 1.10/0.01, addr 2
Feb 14 20:40:05 lappy kernel: ubt0: Interface 0 endpoints:
interrupt=0x81, bulk-
in=0x82, bulk-out=0x2
Feb 14 20:40:06 lappy kernel: ubt0: Interface 1 (alt.config 4)
endpoints: isoc-i
I got it working with an Apple Bluetooth mouse. Thanks to Eric Anderson
for posting a recipe. I also looked in the Bluetooth section of the
handbook.
However, when trying to pair with an Apple Bluetooth Keyboard, I get
permission denied:
1) Turn keyboard on.
2) Run hccontrol to see if it is there. Luckily, it is:
# hccontrol -n ubt0hci inquiry
Inquiry result, num_responses=1
Inquiry result #0
BD_ADDR: akeyb
Page Scan Rep. Mode: 0x1
Page Scan Period Mode: 00
Page Scan Mode: 00
Class: 00:25:40
Clock offset: 0x58b9
Inquiry complete. Status: No error [00]
Is this what starts the pairing process from the host/USB adapter? If
not, how do I do it? I'm supposed to enter the pin code (+enter) in the
keyboard here, but it has no pairing button it seems.
3) Try to query it (yes, I have added it to /etc/bluetooth/hosts and
/etc/bluetooth/hcsecd.conf):
# bthidcontrol -a akeyb query
Could not perform SDP query on the device 00:0a:95:38:cf:bb. Permission
denied (13)
Now, I tried entering the PIN code before and after running hccontrol
and bthidcontrol, with a given pin code, with pin codes "0000"/"1234"
and nopin (and set write_authentication_enable to 1). But bthidcontrol
always gives me either "Permission denied (13)" or "Host is down (64)".
How can I get it paired? Does anyone have a Bluetooth keyboard working?
Cheers,
--
Anders.
More information about the freebsd-bluetooth
mailing list