Re: Async bulk transfer question

Travis <[email protected]>
Newsgroups gmane.comp.lib.libusb.devel.windows
Message-ID <[email protected]>
Greetings,

Your hardware needs to send a ZLP packet to the host when it is 
complete.  If there is no real "end" to the data (IE a stream) then it 
needs to send ZLPs in scenarios where the last transfer size is equal to 
the endpoint max packet size.

Alternatively, you can pass a buffer into the usb read API that is equal 
to the maximum packet size but this is less efficient.

Regards,
Travis

On 7/24/2014 8:52 AM, nicolasgagnon wrote:
> Hi all,
>
> I am currently using the async API to transfer bulk data.
>
> My problem is that I don`t know the size of the data that i`ll be receiving.
> Thus the last portion of my data is never sent because the buffer is never
> full (requested size is never matched).
>
> I am wondering if there is a way to retrieve the data contained in the
> buffer when the request hits the timeout, like the synchronous bulk read
> does.
>
> Thanks for the help.
>
> Nicolas
>
>
>
> --
> View this message in context: http://libusb.6.n5.nabble.com/Async-bulk-transfer-question-tp5713466.html
> Sent from the LibUSB Dev - Win32 mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Want fast and easy access to all the code in your enterprise? Index and
> search up to 200,000 lines of code with a free copy of Black Duck
> Code Sight - the same software that powers the world's largest code
> search on Ohloh, the Black Duck Open Hub! Try it now.
> http://p.sf.net/sfu/bds
> _______________________________________________
> Libusb-win32-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
>


------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.