I want to implements a mass storage device,but the bulk command is 31 bytes,what can I do?
thanks advance.
v-usb only accept 8 bytes per packet?
Re: v-usb only accept 8 bytes per packet?
default USB_BUFFSIZE = 11, I set USB_BUFFSIZE = 67,It' working
Re: v-usb only accept 8 bytes per packet?
Config your in and out endpoint to 8 bytes. bulk out endpoint will recive all 31 byte of command, but it take 4 transfer.
For more iformation this is my realization of bulk endpoints
http://depositfiles.com/files/00ar212ls
For more iformation this is my realization of bulk endpoints
http://depositfiles.com/files/00ar212ls
Re: v-usb only accept 8 bytes per packet?
The low level USB packets are always maximum 8 bytes for low speed devices. Larger blocks are transferred in chunks of 8 bytes. V-USB handles this more or less transparently, it calls usbFunctionRead() and usbFunctionWrite() for blocks of 8 bytes.