From owner-freebsd-usb@FreeBSD.ORG Wed Nov 18 08:40:14 2009 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 DC8D0106568B for ; Wed, 18 Nov 2009 08:40:14 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe03.swip.net [212.247.154.65]) by mx1.freebsd.org (Postfix) with ESMTP id 40D108FC23 for ; Wed, 18 Nov 2009 08:40:13 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=v-gVKjtnu_kA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=2nFX9Wvc9_UQQZHfSCQA:9 a=SlFBTSeQXY_I25Dx0RYA:7 a=NAeEpGEGbMQbFca7egfp-Tk7nlcA:4 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop.adsl.tele2.no) by mailfe03.swip.net (CommuniGate Pro SMTP 5.2.16) with ESMTPA id 1347088968; Wed, 18 Nov 2009 09:40:10 +0100 From: Hans Petter Selasky To: Alex Troussov Date: Wed, 18 Nov 2009 09:41:43 +0100 User-Agent: KMail/1.11.4 (FreeBSD/9.0-CURRENT; KDE/4.2.4; i386; ; ) References: <20091116230741.GA46228@erley.homeip.net> <200911170916.04429.hselasky@c2i.net> <20091117172310.GA54813@erley.homeip.net> In-Reply-To: <20091117172310.GA54813@erley.homeip.net> X-Face: (%:6u[ldzJ`0qjD7sCkfdMmD*RxpOwEEQ+KWt[{J#x6ow~JO:,zwp.(t; @Aq :4:&nFCgDb8[3oIeTb^'",;u{5{}C9>"PuY\)!=#\u9SSM-nz8+SR~B\!qBv MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200911180941.43970.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: usb printer rejects incoming data [SOLVED] 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: Wed, 18 Nov 2009 08:40:14 -0000 On Tuesday 17 November 2009 18:23:10 Alex Troussov wrote: > On Tue, Nov 17, 2009 at 09:16:03AM +0100, Hans Petter Selasky wrote: > > > Recently I upgraded to the latest RELENG_8 and rebuilt world. > > > Now I'm having strange problems with my USB printer (Samsung CLP 315). > > > Digging into it these last days, I found that it seems to refuse > > > incoming data via USB port. > > > > > > >sudo cat tiger.qpdl > /dev/usb/4.3.0 > > > > > > cat: stdout: Input/output error > > > > > > I'm sure this file tiger.qpdl contains the data needed, I created it > > > from /usr/local/share/ghostscript/8.64/examples/tiger.eps using gs + > > > foo2qpdl and tested on another PC. > > > > .0 is the control endpoint. You won't get any data through there :-) > > > > See: > > > > usbconfig -u 4 -a 3 dump_curr_config_desc > > > > for the correct OUT endpoint. > > OK, here is what it gives: > >sudo usbconfig -u 4 -a 3 dump_curr_config_desc > > ugen4.3: at usbus4, cfg=0 > md=HOST spd=HIGH (480Mbps) pwr=ON > > Configuration index 0 > > bLength = 0x0009 > bDescriptorType = 0x0002 > wTotalLength = 0x0020 > bNumInterfaces = 0x0001 > bConfigurationValue = 0x0001 > iConfiguration = 0x0000 > bmAttributes = 0x00c0 > bMaxPower = 0x0001 > > Interface 0 > bLength = 0x0009 > bDescriptorType = 0x0004 > bInterfaceNumber = 0x0000 > bAlternateSetting = 0x0000 > bNumEndpoints = 0x0002 > bInterfaceClass = 0x0007 > bInterfaceSubClass = 0x0001 > bInterfaceProtocol = 0x0002 > iInterface = 0x0000 > > Endpoint 0 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0002 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0200 > bInterval = 0x000a > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > Endpoint 1 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0081 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0200 > bInterval = 0x000a > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > I don't know where to look for the right endpoint here... > > But I tried every endpoint - /dev/usb/4.3.0, /dev/usb/4.3.1 and > /dev/usb/4.3.2 - and the last one worked. > So, the problem is solved for me. > > Just for my curiosity, where can I read more about USB endpoints? Try google. I don't have any links at hand. --HPS