Date: Fri, 8 Apr 2005 13:16:56 -0400 From: David Gilbert <dgilbert@dclg.ca> To: Maksim Yevmenkin <maksim.yevmenkin@savvis.net> Cc: David Gilbert <dgilbert@dclg.ca> Subject: Re: Tricky USB device. Message-ID: <16982.48264.401900.230305@canoe.dclg.ca> In-Reply-To: <4256BAE4.50207@savvis.net> References: <16982.46075.115518.130213@canoe.dclg.ca> <4256B5EB.9080506@savvis.net> <16982.47024.135663.645297@canoe.dclg.ca> <4256BAE4.50207@savvis.net>
next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> "Maksim" == Maksim Yevmenkin <maksim.yevmenkin@savvis.net> writes: Maksim> David, >>>> ... 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. Maksim> fine, so i presume usbhidctl(1) does not work on the device Maksim> too. why did they made look like usb hid device then? Yeah... it appears to fail. I have no idea, but the guy at the company seemed to imply that he was just using a "standard" chip to drive the USB logic, so it may be a function of that. Maksim> another way is to hack /sys/dev/usd/uhid.c and specifically Maksim> ignore (usb vendor id, usb product id) for the device in the Maksim> MATCH routine. something like Maksim> if (uaa->vendor == XXXX && uaa->product == XXXX) return Maksim> (UMATCH_NONE); Hrm. I thought that there might be some general bogon list, but that will certainly do. Dave. -- ============================================================================ |David Gilbert, Independent Contractor. | Two things can only be | |Mail: dave@daveg.ca | equal if and only if they | |http://daveg.ca | are precisely opposite. | =========================================================GLO================
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?16982.48264.401900.230305>