From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 8 16:49:02 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 ADC2716A4CE for ; Fri, 8 Apr 2005 16:49:02 +0000 (GMT) Received: from mailgate1b.savvis.net (mailgate1b.savvis.net [216.91.182.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4733743D41 for ; Fri, 8 Apr 2005 16:49:02 +0000 (GMT) (envelope-from Maksim.Yevmenkin@savvis.net) Received: from localhost (localhost.localdomain [127.0.0.1]) by mailgate1b.savvis.net (Postfix) with ESMTP id 8B9103BE83; Fri, 8 Apr 2005 11:49:01 -0500 (CDT) Received: from mailgate1b.savvis.net ([127.0.0.1]) by localhost (mailgate1b.savvis.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 05602-01-38; Fri, 8 Apr 2005 11:49:01 -0500 (CDT) Received: from out001.email.savvis.net (out001.apptix.savvis.net [216.91.32.44]) by mailgate1b.savvis.net (Postfix) with ESMTP id 634BC3BE25; Fri, 8 Apr 2005 11:49:01 -0500 (CDT) Received: from s228130hz1ew171.apptix-01.savvis.net ([10.146.4.29]) by out001.email.savvis.net with Microsoft SMTPSVC(6.0.3790.211); Fri, 8 Apr 2005 11:48:56 -0500 Received: from [10.254.186.111] ([66.35.239.94]) by s228130hz1ew171.apptix-01.savvis.net with Microsoft SMTPSVC(6.0.3790.211); Fri, 8 Apr 2005 11:48:45 -0500 Message-ID: <4256B5EB.9080506@savvis.net> Date: Fri, 08 Apr 2005 09:48:43 -0700 From: Maksim Yevmenkin User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.2) Gecko/20040822 X-Accept-Language: en-us, en MIME-Version: 1.0 To: David Gilbert References: <16982.46075.115518.130213@canoe.dclg.ca> In-Reply-To: <16982.46075.115518.130213@canoe.dclg.ca> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 08 Apr 2005 16:48:46.0071 (UTC) FILETIME=[D48DC070:01C53C5A] X-Virus-Scanned: amavisd-new at savvis.net cc: freebsd-hackers@freebsd.org 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 16:49:02 -0000 David, > I've got an "OnTrak" ADU208. It's a USB device that has 8 relays and > 8 ttl inputs. The documentation says it uses two interupt endpoints > ... one input and one output. It seems to expect small text commands. ok > Now... firstly, uhid is probing it as uhid0: > > uhid0: www.ontrak.net ADU208 USB Relay I/O Interface, rev 1.10/0.00, addr 4, iclass 3/0 > > ... 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. how about getting usb hid descriptor, parsing and dumping it? check out libusbhid - man usbhid(3). it might be that all you need to do is to create hid report and send it to the device. libusbhid(3) will help you with that. > 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... well comment out 'device uhid' from your kernel config and rebuilding the kernel should do the trick. max