custom usb bulk device

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

custom usb bulk device

807 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by hayami on Sun Jul 21 07:31:56 MST 2013
I use lpc4330 xplorer to create a custom bulk device in high speed mode
and use zadig create a winusb driver for my device.
I set endpoint size to 64 bytes and use libusb write 64 byte to my device.
But Endpoint_IsOUTReceived always false if endpoint not receive 512 bytes.
How can I send only 64 byte to my device?

Thanks
Labels (1)
0 Kudos
2 Replies

698 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by hayami on Fri Jul 26 00:59:36 MST 2013

Quote: giedrius
I am not sure if I understand you correctly, but if do, first try sending 63 or less bytes. If it works, then send 64 byte packet together with ZLP (zero length packet). This might be due to USB expecting to receive a not full packet, which should mark the end of transmission.


Thank you for your reply.

Problem has been solved by re-write test program.
libusb default is disable WinUSB short packet transfer, so I can't just send 64 byte to my high speed device.
I try to direct use WinUSB to send 64 byte and everything is fine

thank~
0 Kudos

699 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by giedrius on Wed Jul 24 06:06:47 MST 2013
I am not sure if I understand you correctly, but if do, first try sending 63 or less bytes. If it works, then send 64 byte packet together with ZLP (zero length packet). This might be due to USB expecting to receive a not full packet, which should mark the end of transmission.
0 Kudos