From owner-freebsd-usb@FreeBSD.ORG Fri Feb 15 07:34:37 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 4B132E81 for ; Fri, 15 Feb 2013 07:34:37 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe04.c2i.net [212.247.154.98]) by mx1.freebsd.org (Postfix) with ESMTP id B42CB8AB for ; Fri, 15 Feb 2013 07:34:36 +0000 (UTC) X-T2-Spam-Status: No, hits=-1.0 required=5.0 tests=ALL_TRUSTED Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe04.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 376723795; Fri, 15 Feb 2013 08:34:27 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Subject: Re: Reading 1024 bytes from mass storage device using 3 frames gives USB_ERR_STALLED Date: Fri, 15 Feb 2013 08:35:38 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-STABLE; KDE/4.8.4; amd64; ; ) References: <1360360082956-5785167.post@n5.nabble.com> <201302120838.54414.hselasky@c2i.net> <1360880191509-5787089.post@n5.nabble.com> In-Reply-To: <1360880191509-5787089.post@n5.nabble.com> X-Face: ?p&W)c(+80hU; '{.$5K+zq{oC6y| /D'an*6mw>j'f:eBsex\Gi, Cc: Aman Sawrup X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Feb 2013 07:34:37 -0000 On Thursday 14 February 2013 23:16:31 Aman Sawrup wrote: > Hi Hans, > > Is it possible to do the following: > > 1. Set frame 0 length to 200 bytes > 2. usbd_transfer_submit() > 3. Wait for USB_ST_TRANSFERRED > 4. Set frame 0 length to 512 bytes > 5. Set frame 1 length to 312 bytes > 6. usbd_transfer_submit() > > Effectively, send 200 bytes in first transfer, then send remaining 724 > bytes in second transfer. No, not unless your USB device handles the 200 bytes split apart from the 512 bytes. You can check using an USB analyzer what is happening on the USB cable. --HPS