From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 8 17:17:06 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0FD8016A4CE for ; Fri, 8 Apr 2005 17:17:06 +0000 (GMT) Received: from ox.eicat.ca (ox.eicat.ca [66.96.30.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5057543D1F for ; Fri, 8 Apr 2005 17:17:05 +0000 (GMT) (envelope-from dgilbert@daveg.ca) Received: by ox.eicat.ca (Postfix, from userid 66) id C6B5FDC22; Fri, 8 Apr 2005 13:17:04 -0400 (EDT) Received: by canoe.dclg.ca (Postfix, from userid 101) id A3F351A08C0; Fri, 8 Apr 2005 13:16:56 -0400 (EDT) From: David Gilbert MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16982.48264.401900.230305@canoe.dclg.ca> Date: Fri, 8 Apr 2005 13:16:56 -0400 To: Maksim Yevmenkin 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> X-Mailer: VM 7.17 under 21.4 (patch 17) "Jumbo Shrimp" XEmacs Lucid cc: freebsd-hackers@freebsd.org cc: David Gilbert Subject: Re: Tricky USB device. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Apr 2005 17:17:06 -0000 >>>>> "Maksim" == Maksim Yevmenkin 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================