Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Feb 2013 08:35:38 +0100
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        freebsd-usb@freebsd.org
Cc:        Aman Sawrup <aman.sawrup@bluecoat.com>
Subject:   Re: Reading 1024 bytes from mass storage device using 3 frames gives USB_ERR_STALLED
Message-ID:  <201302150835.38339.hselasky@c2i.net>
In-Reply-To: <1360880191509-5787089.post@n5.nabble.com>
References:  <1360360082956-5785167.post@n5.nabble.com> <201302120838.54414.hselasky@c2i.net> <1360880191509-5787089.post@n5.nabble.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302150835.38339.hselasky>