谢谢你的解答~
USB协议是这么说:
A bulk transfer is complete when the endpoint does one of the following:
• Has transferred exactly the amount of data expected
• Transfers a packet with a payload size less than wMaxPacketSize or transfers a zero-length packet
看起来ZLP确实不是强制的,那么只能在数据包里自定长度协议了.
也感谢圈圈的解答,前阵子看圈圈的书入的门~
A bulk transfer is complete when the endpoint does one of the following:
• Has transferred exactly the amount of data expected
• Transfers a packet with a payload size less than wMaxPacketSize or transfers a zero-length packet