From owner-freebsd-arch@FreeBSD.ORG Tue Feb 27 03:35:34 2007 Return-Path: X-Original-To: freebsd-arch@FreeBSD.org Delivered-To: freebsd-arch@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D816E16A468; Tue, 27 Feb 2007 03:35:34 +0000 (UTC) (envelope-from tshadwick+freebsd-arch.freebsd.org@oss-solutions.com) Received: from moogle.hksilver.net (mail.hksilver.net [208.231.66.99]) by mx1.freebsd.org (Postfix) with ESMTP id 6EDF813C4D9; Tue, 27 Feb 2007 03:35:34 +0000 (UTC) (envelope-from tshadwick+freebsd-arch.freebsd.org@oss-solutions.com) Received: from [172.16.30.8] (chibi.shadwick.home [172.16.30.8]) by moogle.hksilver.net (8.13.8/8.13.4) with ESMTP id l1R3aoBI000347; Mon, 26 Feb 2007 21:36:50 -0600 (CST) (envelope-from tshadwick+freebsd-arch.freebsd.org@oss-solutions.com) Message-ID: <45E3A704.90307@oss-solutions.com> Date: Mon, 26 Feb 2007 21:35:32 -0600 From: Tony Shadwick User-Agent: Mail/News 1.5.0.2 (Macintosh/20060310) MIME-Version: 1.0 To: Markus Brueffer References: <45E3467E.2070000@oss-solutions.com> <200702270345.13194.markus@FreeBSD.org> In-Reply-To: <200702270345.13194.markus@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-arch@FreeBSD.org Subject: Re: USB HID Driver help X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Feb 2007 03:35:35 -0000 Markus Brueffer wrote: > Hi Tony, > > On Monday 26 February 2007 21:43, Tony Shadwick wrote: >> I'm definitely not a high-end programmer, but I have gone to the trouble >> of working out the protocol for a USB light gun that is normally used on >> a Playstation 2 video game console. It has 10 buttons, and can track >> on-screen location if it has access to the composite sync video signal. >> >> http://forum.arcadecontrols.com/index.php?topic=60813.0 >> >> I've written just a basic parser for the gun. FreeBSD picks up the gun >> and gives it a ugen character device that I then take continuous input >> from. The protocol is 6 bytes long repeated pretty much as fast as the >> gun can send it. > > Did you have uhid(4) in the kernel or loaded as module? If not, please try > loading the module and see if the device gets picked up by it (you need to > replug it after loading the module). > > Judging from the description of the protocol, it seems that the device is a > regular USB HID device. If it doesn't get picked up by uhid(4), it suffers > from the same problem as the gamepad of the Xbox360 by not exposing itself as > being a regular USB HID device and not providing a HID descriptor. Both can > be worked around but please verify first, that uhid(4) doesn't already > support the device. Writing an extra driver for this device is not > neccessary. > > Markus > I cannot check until tomorrow, but thank you for the pointers. I'll verify this for you then. Tony