From owner-freebsd-bluetooth@FreeBSD.ORG Sun Dec 27 18:22:23 2009 Return-Path: Delivered-To: freebsd-bluetooth@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C6E0D1065679 for ; Sun, 27 Dec 2009 18:22:23 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 6BDE38FC1D for ; Sun, 27 Dec 2009 18:22:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id nBRIGecT025091; Sun, 27 Dec 2009 11:16:40 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Sun, 27 Dec 2009 11:17:11 -0700 (MST) Message-Id: <20091227.111711.287595822663154592.imp@bsdimp.com> To: plunky@rya-online.net From: "M. Warner Losh" In-Reply-To: <1261935364.501662.751.nullmailer@galant.ukfsn.org> References: <20091227.004954.119882392218644339.imp@bsdimp.com> <20091227.005757.195066307562707339.imp@bsdimp.com> <1261935364.501662.751.nullmailer@galant.ukfsn.org> X-Mailer: Mew version 6.3 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-bluetooth@FreeBSD.org Subject: Re: Keyboard - how? 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: Sun, 27 Dec 2009 18:22:23 -0000 In message: <1261935364.501662.751.nullmailer@galant.ukfsn.org> Iain Hibbert writes: : On Sun, 27 Dec 2009, M. Warner Losh wrote: : : > What finally made it work was stupidly simple... : > : > On my apple keyboard, I turned it on, typed 9 8 7 6 return and then : > things started working. I'm typing this right now from the keyboard. : : Heh, I've been away but was just going to suggest that reading your : mails.. : : btw a few words on security (though the scenario where somebody uses this : information and tracks you down to interfere with your system seems pretty : unlikely :) : : - now that you have posted the PIN you used and bdaddr of your device, you : might want to re-pair with a different (more secure) PIN as I think the : link key may be derivable Actually I faked both when I posted it. Most devices don't have c0:ed at the end, and my certainly don't :) : - Not sure but I think that the keyboard will probably force auth and : encryption when making connections. The FreeBSD stack does not have a : way to do this except globally so unless you have the auth or : encrypt flags set (see hccontrol(8)) then a remote device can : break right in That's good to know. I think that I have these set... : - IMO the PIN should be ephemeral and use-once so when you are paired you : should remove it from the config file or at least comment it out The whole pairing thing is kind of ugly atm in FreeBSD. I used big hammers, I think, to make it work. In other OSes, I just see what is discoverable, click a couple of times, maybe enter a PIN and I then promptly forget about it until I have to 'unpair'. : > Now, I guess the next step would be to find the bt mouse I have and : > try to get it going as well... : : that is probably fixed pin 0000 if not in the documentation Yes, it is :) The default is to no pin, so it wasn't authenticating. : > This is my second favorite keyboard ever. : : How is the keypress feel? I've not had a go on one of those, but I have : an original apple bluetooth keyboard (white with clear undershell, full : sized with num keypad) that works well though a smaller one might be : interesting. It is ok. Not as good as the happy hacking keyboard, but certainly nice enough to use. Better than most to my feel, but ymmv. btw, is there some way I can easily list the paired devices? Warner