From owner-freebsd-usb@FreeBSD.ORG Thu Oct 11 18:13:09 2007 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C234A16A419 for ; Thu, 11 Oct 2007 18:13:09 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe06.swip.net [212.247.154.161]) by mx1.freebsd.org (Postfix) with ESMTP id 0823413C4A6 for ; Thu, 11 Oct 2007 18:13:08 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [85.19.218.45] (account mc467741@c2i.net [85.19.218.45] verified) by mailfe06.swip.net (CommuniGate Pro SMTP 5.1.10) with ESMTPA id 647434231; Thu, 11 Oct 2007 20:13:07 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Thu, 11 Oct 2007 20:13:31 +0200 User-Agent: KMail/1.9.7 References: <20071011.070249.2073896410.imp@bsdimp.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200710112013.32721.hselasky@c2i.net> Cc: Subject: Re: VID parser problem with usbdevs X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Oct 2007 18:13:09 -0000 On Thursday 11 October 2007, Xiaofan Chen wrote: > On 10/11/07, M. Warner Losh wrote: > > In message: > > : ===[mcuee] ~/Desktop/build/fsusb/fsusb-0.1.11-2 # sudo usbdevs -v > > : Controller /dev/usb1: > > : addr 126: full speed, power 100 mA, config 1, product 0x000b(0x000b), > > : I-Tuner Networks(0x04d8), rev 0.00 > > : port 4 addr 126: full speed, power 100 mA, config 1, product > > : 0x000b(0x000b), I-Tuner Networks(0x04d8), rev 0.00 > > > > While 4d8 is for microchip technology, we get the name that we print > > here directly from the usb device itself. > > What makes you think that the vendor ID is parsed wrong? > > I have read the firmware source codes so I do not think there > is anything called "I-Tuner" in the descriptors or anywhere in the > firmware. 04d8/000b is the bootloader firmware VID/PID for > Microchip PICDEM FS USB demo board. > > The following is the relevant descriptor. Hi Xiaofan Chen, When you compile any FreeBSD USB stack with "options USB_DEBUG", which might be hardcoded in the sources, then the kernel will search "usbdevs" for a vendor description. This will be done hence you have no valid strings for the manufacturer nor product : > 0x00, // Manufacturer string index > 0x00, // Product string index > 0x00, // Device serial number string index --HPS