From owner-freebsd-bluetooth@FreeBSD.ORG Wed Nov 17 21:51:33 2004 Return-Path: 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 AEF3316A4CE for ; Wed, 17 Nov 2004 21:51:33 +0000 (GMT) Received: from mailgate1b.savvis.net (mailgate1b.savvis.net [216.91.182.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5F97D43D2D for ; Wed, 17 Nov 2004 21:51:33 +0000 (GMT) (envelope-from Maksim.Yevmenkin@savvis.net) Received: from out001.email.savvis.net (out001.apptix.savvis.net [216.91.32.44])iAHLpRJn010033; Wed, 17 Nov 2004 15:51:27 -0600 Received: from s228130hz1ew03.apptix-01.savvis.net ([10.146.4.28]) by out001.email.savvis.net with Microsoft SMTPSVC(6.0.3790.211); Wed, 17 Nov 2004 15:51:20 -0600 Received: from [10.254.186.111] ([66.35.239.94]) by s228130hz1ew03.apptix-01.savvis.net with Microsoft SMTPSVC(6.0.3790.211); Wed, 17 Nov 2004 15:51:16 -0600 Message-ID: <419BC7D6.1060700@savvis.net> Date: Wed, 17 Nov 2004 13:51:18 -0800 From: Maksim Yevmenkin User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.2) Gecko/20040822 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Loren M. Lang" References: <20041115222455.GA5468@alzatex.com> <419B8314.3080306@savvis.net> <20041117192310.GA30137@alzatex.com> <419BADF3.5060704@savvis.net> <20041117213749.GB30137@alzatex.com> In-Reply-To: <20041117213749.GB30137@alzatex.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 17 Nov 2004 21:51:16.0348 (UTC) FILETIME=[904DBBC0:01C4CCEF] X-ECS-MailScanner: No virus is found cc: freebsd-bluetooth@freebsd.org Subject: Re: Bluetooth Keyboard X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Nov 2004 21:51:33 -0000 >>>>>So... how is the bluetooth hid driver coming along that I heard was >>>>>being worked on back in January. He said he was making good progress, >>>>>but I still don't see any program to enable hid support in FreeBSD 5.3. >>>>>My bt keyboard shows up as a bt device, but that's about it. >>>> >>>>it is coming along. i finally started to commit bits and pieces (i.e. >>>>vkbd(4)) >>> >>>I actually ran across vkbd, it looks like a generic way to insert >>>keyboard events into the kernel, but not specific to any technology like >>>bluetooth. I'm assuming you also have a user-land daemon that uses >>>sockets to talk on bluetooth then pass the event to vkbd. Is there a >> >>correct >> >>>place to find the userland daemon source at the moment or do you just >>>have a private copy? >> >>there is somewhat old version is in cvs, but it is not connected to the >>build >> >>/usr/src/usr.sbin/bluetooth/bthidcontrol >>/usr/src/usr.sbin/bluetooth/bthidd >> >>you can read the code and try to get the idea. bthidcontrol(8) should >>just work. bthidd(8) has very simple support for bluetooth mouse and no >>support for the keyboard. > > I tried compiling both bthidd and bthidcontrol, but they are complaining > about a missing header and a missing type, report_desc_t. I'm assuming > report_desc_t is supposed to be defined in libusbhid.h, but that does > not seem to be on my system anywhere according to locate. Is that in > some port or just an old file since I'd think nothing under /usr/src > should depend on a port. hmmm, it appears that libusbhid.h was renamed to usbhid.h. no bthidd does not depend on any port. just on libusbhid (see usbhid(3) for details). just apply this patch in /usr/src/usr.sbin/bluetooth/bthidd --- parser.y Fri Apr 9 17:18:00 2004 +++ /tmp/parser.y Wed Nov 17 13:49:04 2004 @@ -33,10 +33,10 @@ #include #include #include -#include #include #include #include +#include #include >>>I would like to help with this project since I've had my bluetooth >>>keyboard sitting on the shelf for months waiting for support in freebsd >>>and I have been doing some other work in bluetooth recently. >> >>sure. i'll be glad to review and commit your patches. > > How old is the cvs version, I'd hate to be fixing old bugs or writing > code that is no longer useful. well, its old. give me a couple of days and i will update the bluetooth hid stuff in cvs. in the mean time the current code is a good starting reference. max