From owner-freebsd-usb@FreeBSD.ORG Fri Dec 19 15:38:58 2008 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 3EF561065673 for ; Fri, 19 Dec 2008 15:38:58 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (unknown [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id B53408FC13 for ; Fri, 19 Dec 2008 15:38:57 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.3/8.14.3) with ESMTP id mBJFcswr001581; Fri, 19 Dec 2008 16:38:55 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id mBJFcsdE001580; Fri, 19 Dec 2008 16:38:54 +0100 (CET) (envelope-from olli) Date: Fri, 19 Dec 2008 16:38:54 +0100 (CET) Message-Id: <200812191538.mBJFcsdE001580@lurza.secnetix.de> From: Oliver Fromme To: freebsd-usb@FreeBSD.ORG, hselasky@c2i.net In-Reply-To: <200812161659.22450.hselasky@c2i.net> X-Newsgroups: list.freebsd-usb User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.4-PRERELEASE-20080904 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Fri, 19 Dec 2008 16:38:55 +0100 (CET) Cc: Subject: Re: usb2 + scanner HP ScanJet 4300C 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: Fri, 19 Dec 2008 15:38:58 -0000 Hans Petter Selasky wrote: > Nick Hibma wrote: > > The uscanner driver for USB1 is very simple and does not do a set config > > index. JFYI, usb1 didn't work with this scanner at all. That's why I installed 8-current with usb2 on this workstation after all. > > HPS: set config index is not guarantueed to work on all devices. It's also > > normally not necessary, unless you want to change the configuration. There > > are of course devices that require it. > > Is the number of configurations field zero in the device descriptor? No, it seems to be 1: # usbconfig -u 0 -a 2 dump_device_desc ugen0.2: at usbus0, cfg=255 md=HOST spd=FULL (12Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0100 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0008 idVendor = 0x03f0 idProduct = 0x0305 bcdDevice = 0x0000 [*** long pause here! ***] iManufacturer = 0x000a [*** long pause here! ***] iProduct = 0x000b [*** long pause here! ***] iSerialNumber = 0x000c bNumConfigurations = 0x0001 This is with the patch that makes the scanner attach (i.e. "err = 0"). If you need more information, please let me know. Unfortunately, the scanner attaches to ugen, not uscanner. So there is no /dev/uscanner*, so SANE doesn't find it. :-( The scanner is listed in uscanner2.c, product ID and vendor ID match. Looks like more debugging is needed. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "Being really good at C++ is like being really good at using rocks to sharpen sticks." -- Thant Tessman