Date: Tue, 27 Feb 2007 03:45:05 +0100 From: Markus Brueffer <markus@FreeBSD.org> To: freebsd-arch@freebsd.org Cc: Tony Shadwick <tshadwick+freebsd-arch.freebsd.org@oss-solutions.com> Subject: Re: USB HID Driver help Message-ID: <200702270345.13194.markus@FreeBSD.org> In-Reply-To: <45E3467E.2070000@oss-solutions.com> References: <45E3467E.2070000@oss-solutions.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] 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 -- Markus Brueffer | 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! [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQBF45s51I0Qcnj4qNQRAhc6AJ9y1amY+qJ20FHbZdyoBuHXtB+6jwCg11v/ DpIYYWxCvB06g9pSX8d7Uuo= =xAc4 -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200702270345.13194.markus>
