From owner-freebsd-usb@FreeBSD.ORG Thu Feb 14 22:16:32 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id C15FAED4 for ; Thu, 14 Feb 2013 22:16:32 +0000 (UTC) (envelope-from aman.sawrup@bluecoat.com) Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mx1.freebsd.org (Postfix) with ESMTP id A75BC11B for ; Thu, 14 Feb 2013 22:16:32 +0000 (UTC) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1U676V-0003Va-Gd for freebsd-usb@freebsd.org; Thu, 14 Feb 2013 14:16:31 -0800 Date: Thu, 14 Feb 2013 14:16:31 -0800 (PST) From: Aman Sawrup To: freebsd-usb@freebsd.org Message-ID: <1360880191509-5787089.post@n5.nabble.com> In-Reply-To: <201302120838.54414.hselasky@c2i.net> References: <1360360082956-5785167.post@n5.nabble.com> <201302090001.57258.hselasky@c2i.net> <51194A19.40203@bluecoat.com> <201302120838.54414.hselasky@c2i.net> Subject: Re: Reading 1024 bytes from mass storage device using 3 frames gives USB_ERR_STALLED MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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: Thu, 14 Feb 2013 22:16:32 -0000 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. Thanks Aman -- View this message in context: http://freebsd.1045724.n5.nabble.com/Reading-1024-bytes-from-mass-storage-device-using-3-frames-gives-USB-ERR-STALLED-tp5785167p5787089.html Sent from the freebsd-usb mailing list archive at Nabble.com.