From owner-freebsd-hackers@FreeBSD.ORG Sat Apr 9 21:05:41 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 DF85316A4CE for ; Sat, 9 Apr 2005 21:05:41 +0000 (GMT) Received: from ox.eicat.ca (ox.eicat.ca [66.96.30.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7E28A43D31 for ; Sat, 9 Apr 2005 21:05:41 +0000 (GMT) (envelope-from dgilbert@daveg.ca) Received: by ox.eicat.ca (Postfix, from userid 66) id 6B352DA01; Sat, 9 Apr 2005 17:05:40 -0400 (EDT) Received: by canoe.dclg.ca (Postfix, from userid 101) id D3CA81A0895; Sat, 9 Apr 2005 17:05:31 -0400 (EDT) From: David Gilbert MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16984.17307.804041.502108@canoe.dclg.ca> Date: Sat, 9 Apr 2005 17:05:31 -0400 To: ticso@cicely.de In-Reply-To: <20050408233301.GW96690@cicely12.cicely.de> References: <16982.46075.115518.130213@canoe.dclg.ca> <4256B5EB.9080506@savvis.net> <16982.47024.135663.645297@canoe.dclg.ca> <20050408190514.GS96690@cicely12.cicely.de> <16983.465.572693.73195@canoe.dclg.ca> <20050408233301.GW96690@cicely12.cicely.de> 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: Sat, 09 Apr 2005 21:05:42 -0000 >>>>> "Bernd" == Bernd Walter writes: Bernd> Yes - you must use 1 - there is only one out-endpoint. 0x81 is Bernd> for receiving data and endpoint 0 is the mandandory control Bernd> endpoint. Interrupt Endpoints are not variable in size. Both Bernd> interrupt endpoints are 8 Bytes, so you must read and write Bernd> exact 8 Bytes per transfer - 5 shouldn't work for USB compliant Bernd> devices. I took your earlier advice and just opened ugen0.1 O_RDWR. I've tried sending 5 and 8 byte strings to it without effect. To make the 8 byte strings, I added spaces to the end of my 5 byte strings. I've also got a proper multitester now to verify operation. Bernd> Depends on the device's firmware. I wouldn't be surprised if Bernd> the whole device just hangs after receiving bogus data - it Bernd> seems to be broken in many points. But it may block if the Bernd> device has nothing to send. An easy way to check out is using Bernd> tools like usbdevs -v and see if it hangs when accessing this Bernd> device. usbdevs -v and udesc_dump both operate fine after trying this. 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================