Skip to main content
fa_it
Associate III
December 22, 2005
Question

How to send USB Bulk zero length packet?

  • December 22, 2005
  • 1 reply
  • 594 views
Posted on December 22, 2005 at 06:08

How to send USB Bulk zero length packet?

This topic has been closed for replies.

1 reply

fa_it
fa_itAuthor
Associate III
December 22, 2005
Posted on December 22, 2005 at 06:08

To end a bulk in transfer, either the data packet is less than maximum or a zero length packet has to be transfered.

How do I transfer a zero length packet?

If I set the buffer count to zero, no transmission ocurs.

The problem is only present when I transfers an amount of data, which is a multiply of 64 eg. 512 bytes. Then if I do that twice, then it appears as one bulk transfer of 1024 bytes, on my USB analyzer.

Best regards,

Frank Andersen