From owner-freebsd-usb@FreeBSD.ORG Tue Nov 17 17:23:13 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 7B3461065693 for ; Tue, 17 Nov 2009 17:23:13 +0000 (UTC) (envelope-from erleya@gmail.com) Received: from smtp3-g21.free.fr (smtp3-g21.free.fr [212.27.42.3]) by mx1.freebsd.org (Postfix) with ESMTP id 11E9A8FC1E for ; Tue, 17 Nov 2009 17:23:11 +0000 (UTC) Received: from smtp3-g21.free.fr (localhost [127.0.0.1]) by smtp3-g21.free.fr (Postfix) with ESMTP id 361CE818178; Tue, 17 Nov 2009 18:23:06 +0100 (CET) Received: from mail.erley.homeip.net (erley.homeip.net [78.224.123.171]) by smtp3-g21.free.fr (Postfix) with ESMTP id 518B081821E; Tue, 17 Nov 2009 18:23:04 +0100 (CET) Received: by mail.erley.homeip.net (Postfix, from userid 1001) id AD72D519E; Tue, 17 Nov 2009 18:23:10 +0100 (CET) Date: Tue, 17 Nov 2009 18:23:10 +0100 From: Alex Troussov To: Hans Petter Selasky Message-ID: <20091117172310.GA54813@erley.homeip.net> References: <20091116230741.GA46228@erley.homeip.net> <200911170916.04429.hselasky@c2i.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200911170916.04429.hselasky@c2i.net> User-Agent: Mutt/1.4.2.3i 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: Tue, 17 Nov 2009 17:23:13 -0000 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? WBR, Alex