Date: Fri, 8 Apr 2005 21:05:15 +0200 From: Bernd Walter <ticso@cicely12.cicely.de> To: David Gilbert <dgilbert@dclg.ca> Cc: freebsd-hackers@freebsd.org Subject: Re: Tricky USB device. Message-ID: <20050408190514.GS96690@cicely12.cicely.de> In-Reply-To: <16982.47024.135663.645297@canoe.dclg.ca> References: <16982.46075.115518.130213@canoe.dclg.ca> <4256B5EB.9080506@savvis.net> <16982.47024.135663.645297@canoe.dclg.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Apr 08, 2005 at 12:56:16PM -0400, David Gilbert wrote: > >>>>> "Maksim" == Maksim Yevmenkin <maksim.yevmenkin@savvis.net> writes: > > >> ... I don't know if this is hindering me. The usbhid* commands > >> aren't particularly helpful. The port udesc_dump seems only to > >> work on ugen devices ... and ugen doesn't pop up for this device. > > Maksim> how about getting usb hid descriptor, parsing and dumping it? > Maksim> check out libusbhid - man usbhid(3). it might be that all you > Maksim> need to do is to create hid report and send it to the > Maksim> device. libusbhid(3) will help you with that. > > Tried that. The usb_get_report_desc() returns NULL. This is not a > complicated device --- it's not even technically a "human interface" > device. Then it really shouldn't have claimed to be one in the interface descriptor :( But the HID specification is more today than just _human_ interface. e.g. there are extensions for USV, ... > >> I suppose I need to know how to supress uhid ... or to make ugen > >> show up. It would also be nice to know how to generically poke the > >> interupt enpoints... > > Maksim> well comment out 'device uhid' from your kernel config and > Maksim> rebuilding the kernel should do the trick. > > I wanted to try to avoid that since I use many USB devices, but it's a > last resort kind-of-thing. > > The documentation for the device describes the interface as simply > using the two interupt endpoints (read and write). Has this device multiple interfaces? e.g. one HID and another as described. I often thought about getting ugen working at interface level too. -- B.Walter BWCT http://www.bwct.de bernd@bwct.de info@bwct.de
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050408190514.GS96690>