From owner-freebsd-arch@FreeBSD.ORG Tue Feb 27 08:39:16 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 52D7316A400 for ; Tue, 27 Feb 2007 08:39:16 +0000 (UTC) (envelope-from markus@FreeBSD.org) Received: from mail-in-02.arcor-online.net (mail-in-02.arcor-online.net [151.189.21.42]) by mx1.freebsd.org (Postfix) with ESMTP id D81B113C4A3 for ; Tue, 27 Feb 2007 08:39:15 +0000 (UTC) (envelope-from markus@FreeBSD.org) Received: from mail-in-14-z2.arcor-online.net (mail-in-14-z2.arcor-online.net [151.189.8.31]) by mail-in-02.arcor-online.net (Postfix) with ESMTP id 1DAB92D9953; Tue, 27 Feb 2007 03:45:40 +0100 (CET) Received: from mail-in-02.arcor-online.net (mail-in-02.arcor-online.net [151.189.21.42]) by mail-in-14-z2.arcor-online.net (Postfix) with ESMTP id 107EC10104; Tue, 27 Feb 2007 03:45:40 +0100 (CET) Received: from ramses.kicks-ass.net (dslb-084-061-097-006.pools.arcor-ip.net [84.61.97.6]) by mail-in-02.arcor-online.net (Postfix) with ESMTP id EC6852D9953; Tue, 27 Feb 2007 03:45:39 +0100 (CET) Received: from cheops.phoenix (cheops.phoenix [192.168.1.3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ramses.kicks-ass.net (Postfix) with ESMTP id E5FFBB83D; Tue, 27 Feb 2007 03:45:39 +0100 (CET) From: Markus Brueffer To: freebsd-arch@freebsd.org Date: Tue, 27 Feb 2007 03:45:05 +0100 User-Agent: KMail/1.9.5 References: <45E3467E.2070000@oss-solutions.com> In-Reply-To: <45E3467E.2070000@oss-solutions.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3170184.eGmmfpgMvQ"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200702270345.13194.markus@FreeBSD.org> Cc: Tony Shadwick 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 08:39:16 -0000 --nextPart3170184.eGmmfpgMvQ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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=3D60813.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= =20 loading the module and see if the device gets picked up by it (you need to= =20 replug it after loading the module). Judging from the description of the protocol, it seems that the device is a= =20 regular USB HID device. If it doesn't get picked up by uhid(4), it suffers= =20 from the same problem as the gamepad of the Xbox360 by not exposing itself = as=20 being a regular USB HID device and not providing a HID descriptor. Both can= =20 be worked around but please verify first, that uhid(4) doesn't already=20 support the device. Writing an extra driver for this device is not=20 neccessary. Markus =2D-=20 Markus Brueffer =A0 =A0| GPG-Key: http://people.FreeBSD.org/~markus/markus.= asc markus@brueffer.de | FP: 3F9B EBE8 F290 E5CC 1447 8760 D48D 1072 78F8 A8D4 markus@FreeBSD.org | FreeBSD: The Power to Serve! --nextPart3170184.eGmmfpgMvQ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQBF45s51I0Qcnj4qNQRAhc6AJ9y1amY+qJ20FHbZdyoBuHXtB+6jwCg11v/ DpIYYWxCvB06g9pSX8d7Uuo= =xAc4 -----END PGP SIGNATURE----- --nextPart3170184.eGmmfpgMvQ--