From owner-freebsd-usb@FreeBSD.ORG Mon Dec 27 10:02:20 2004 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3987816A4CE for ; Mon, 27 Dec 2004 10:02:20 +0000 (GMT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id A680143D1F for ; Mon, 27 Dec 2004 10:02:19 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [IPv6:3ffe:400:8d0:301:200:92ff:fe9b:20e7]) (authenticated bits=0) iBRA2EP8085616 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK) for ; Mon, 27 Dec 2004 11:02:17 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [IPv6:3ffe:400:8d0:301::12]) by cicely5.cicely.de (8.12.10/8.12.10) with ESMTP id iBRA16rU003515 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 27 Dec 2004 11:01:07 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.11/8.12.11) with ESMTP id iBRA16mH081355 for ; Mon, 27 Dec 2004 11:01:06 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.11/8.12.11/Submit) id iBRA16Gh081354 for freebsd-usb@freebsd.org; Mon, 27 Dec 2004 11:01:06 +0100 (CET) (envelope-from ticso) Date: Mon, 27 Dec 2004 11:01:05 +0100 From: Bernd Walter To: freebsd-usb@freebsd.org Message-ID: <20041227100104.GC76551@cicely12.cicely.de> References: <20041224010759.N1763@april.chuckr.org> <200412241756.56900.doconnor@gsoft.com.au> <200412242250.iBOMot433057@Mail.NOSPAM.DynDNS.dK> <20041226160637.H54135@april.chuckr.org> <20041226205543.GA76551@cicely12.cicely.de> <200412270120.iBR1K9o07904@Mail.NOSPAM.DynDNS.dK> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200412270120.iBR1K9o07904@Mail.NOSPAM.DynDNS.dK> X-Operating-System: FreeBSD cicely12.cicely.de 5.2-CURRENT alpha User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.9 required=3.0 tests=BAYES_00 autolearn=ham version=2.64 X-Spam-Report: * -4.9 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on cicely12.cicely.de Subject: Re: fingerprints X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ticso@cicely.de List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Dec 2004 10:02:20 -0000 On Mon, Dec 27, 2004 at 02:20:10AM +0100, Barry Bouwsma wrote: > > > Bernd Walter (ticso) has a ports skeleton for the NetBSD USB utilities > > > > I didn't see any extra email postings on this, I hope it doesn't just > > disappear. Can I ask one favor? I would VERY much appreciate it if you > > would pick a single one of the usb devices, and I will read everything I > > Erm, if I understand you right, how about a D-Link DU-128+ TA? > Here are some hints: > bLength=18 bDescriptorType=1 bcdUSB=1.10 bDeviceClass=255 bDeviceSubClass=0 > ^^^^^^^^^^^^^^^^ > bNumEndpoints=0 bInterfaceClass=255 bInterfaceSubClass=0 > ^^^^^^^^^^^^^^^^^^^ > bNumEndpoints=5 bInterfaceClass=255 bInterfaceSubClass=0 > ^^^^^^^^^^^^^^^^^^^ > Also, src/sys/dev/usb/usb.h . > > If I'm not understanding you right, then sorry... bDeviceClass=255 means that the whole device is vendor specific. You can see what kind of interfaces with which pipes it uses, but beeing vendor specific you don't know their purpose. > > usbctl is the tool to get an overview of the device layout. > > It's old and has a number of bugs in respect to port system compliance > > Also `usbgen' is useful too. Although I'm not sure that as it exists, > it's doing everything it should, as I seem to have some errors pulling > some strings out of some devices. > getstring 1 failed (error=5) > getstring 2 failed (error=5) > I wonder if the recent NetBSD language delta has anything to do with > this; as recent NetBSD can retrieve the vendor of my sound card while > the old FreeBSD code I'm still running can't... I don't know, but I think it did run last year. > (usbctl is the tool I was thinking of -- I happened to have an old > binary compiled for an old kernel with a different ioctl() to query > the device.) Also of interest is `testlibusb' in the devel/libusb port. > They pretty much present the same info in different ways. libusb requires ugen presense of a device, while usbctl runs by accessing a device by opening the bus. -- B.Walter BWCT http://www.bwct.de bernd@bwct.de info@bwct.de