From owner-freebsd-usb@FreeBSD.ORG Fri Sep 28 16:07:17 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 A61BF16A419 for ; Fri, 28 Sep 2007 16:07:17 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.freebsd.org (Postfix) with ESMTP id 09A5813C461 for ; Fri, 28 Sep 2007 16:07:16 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.1/8.14.1) with ESMTP id l8SG5sMc089972 for ; Fri, 28 Sep 2007 18:06:00 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.1/8.14.1/Submit) id l8SG5sCx089971; Fri, 28 Sep 2007 18:05:54 +0200 (CEST) (envelope-from olli) Date: Fri, 28 Sep 2007 18:05:54 +0200 (CEST) Message-Id: <200709281605.l8SG5sCx089971@lurza.secnetix.de> From: Oliver Fromme To: freebsd-usb@FreeBSD.ORG In-Reply-To: <200709211708.l8LH8cpc097171@lurza.secnetix.de> X-Newsgroups: list.freebsd-usb User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.2-STABLE-20070808 (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, 28 Sep 2007 18:06:00 +0200 (CEST) Cc: Subject: Re: uscanner: HP ScanJet 4300C X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-usb@FreeBSD.ORG List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Sep 2007 16:07:17 -0000 Oliver Fromme wrote: > I have bought a HP ScanJet 4300C, specifically because > this very scanner is listed in FreeBSD's uscanner(4) > manpage and in SANE's list of supported USB scanners. > > However, this is all I get: > > uscanner0: on uhub0 > uscanner0: setting config no failed > device_attach: uscanner0 attach returned 6 > uhub0: port 4, set config at addr 2 failed > uhub0: device problem (TIMEOUT), disabling port 4 > > That's on 7-current, but it fails the same way on 6-stable. I've now compiled a kernel with USB_DEBUG, and I also added a few lines of debugging printfs myself. This is what I get: uscanner1: on uhub0 usbd_set_config_no: 1 usbd_get_config_desc: confidx=0 usbd_get_desc: type=2, index=0, len=9 usbd_alloc_xfer() = 0xc3b05200 usbd_transfer: xfer=0xc3b05200, flags=2, pipe=0xc3fda380, running=0 usbd_dump_queue: pipe=0xc3fda380 usb_insert_transfer: pipe=0xc3fda380 running=0 timeout=5000 usb_add_task: task=0xc3b05378 usb_task_thread: woke up task=0xc3b05378 usb_schedsoftintr: polling=0 usb_transfer_complete: pipe=0xc3fda380 xfer=0xc3b05200 status=15 actlen=0 usb_transfer_complete: repeat=0 new head=0 usbd_start_next: pipe=0xc3fda380, xfer=0 usbd_free_xfer: 0xc3b05200 usbd_get_config_desc: usbd_get_desc() --> usbd_status 15 usbd_set_config_no: index 0 --> usbd_status 15 uscanner1: setting config no failed [usbd_status=15] device_attach: uscanner1 attach returned 6 usbd_status 15 is USBD_TIMEOUT. I wanted to run udesc_dump, so I compiled a kernel without uscanner so the device would attach to ugen. However, I get this (after a few seconds): uhub_explore: usb_new_device failed, error=TIMEOUT uhub0: device problem (TIMEOUT), disabling port 2 So I get a timeout again. The problem doesn't seem to be uscanner-related, but more low-level. Any ideas how to proceed? Best regards Oliver PS: I'm pretty sure the scanner is not defective. Also, the USB controller is fine; a flash stick plugged into the same port is working perfectly fine. -- 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 "UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things." -- Doug Gwyn