From owner-freebsd-bluetooth@FreeBSD.ORG Wed Feb 15 22:43:36 2006 Return-Path: X-Original-To: freebsd-bluetooth@FreeBSD.org Delivered-To: freebsd-bluetooth@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6E00F16A420 for ; Wed, 15 Feb 2006 22:43:36 +0000 (GMT) (envelope-from anders@FreeBSD.org) Received: from totem.fix.no (totem.fix.no [80.91.36.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A2CE43D46 for ; Wed, 15 Feb 2006 22:43:35 +0000 (GMT) (envelope-from anders@FreeBSD.org) Received: by totem.fix.no (Postfix, from userid 1000) id D2FC68DB148; Wed, 15 Feb 2006 23:43:33 +0100 (CET) Date: Wed, 15 Feb 2006 23:43:33 +0100 From: Anders Nordby To: Maksim Yevmenkin , freebsd-bluetooth@FreeBSD.org Message-ID: <20060215224333.GA15277@totem.fix.no> References: <20060214125918.GB51893@totem.fix.no> <43F21326.8000906@savvis.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43F21326.8000906@savvis.net> X-PGP-Key: http://anders.fix.no/pgp/ X-PGP-Key-FingerPrint: 1E0F C53C D8DF 6A8F EAAD 19C5 D12A BC9F 0083 5956 User-Agent: Mutt/1.5.11 Cc: Subject: Re: Apple bluetooth keyboard/mouse, pairing problems (was: Bluetooth compatibility) X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Feb 2006 22:43:36 -0000 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.