From: Xiaofan C. <xia...@gm...> - 2016-11-25 13:11:16
|
On Fri, Nov 25, 2016 at 3:53 PM, diabolo <dia...@ya...> wrote: > I use stm32 with libusbk back-end and I nevr seen this: > But device f/w never send a multiple of 64 byte youc an do it by sending a > zlp after data on te stm32 side > but that's not convenient > I always managed to send short packet and prefer to send one extra byte if > payload is nx64 but if it the max size I ever send (ie 1024 in most of my > app) > Not so sure if setting the pipe policy will help. https://msdn.microsoft.com/en-us/library/windows/hardware/ff728833(v=vs.85).aspx http://libusbk.sourceforge.net/UsbK3/group__usbk.html#ga10f9e367e4241c431edc2cecd1bb827e UsbK_SetPipePolicy SHORT_PACKET_TERMINATE (0x01) PIPE_TRANSFER_TIMEOUT (0x03) -- Xiaofan |