Page 2 of 2

Re: HID Variable data length

Posted: Wed Mar 21, 2018 3:02 pm
by drquark
Ok, I've got it working on a ATMEGA328P with Arduino bootloader. Thank you for your support !
I can read/write 511 bytes of data, that is enough for my use. BTW, what's the max size we can transfer in HID get/set report ? I've used 0x1ff (511) is it possible to go to 512 (0x200) ? As the max size in with USB_CFG_LONG_TRANSFERS=0 is 0xff (255), I assumed that 0x1ff is the max with USB_CFG_LONG_TRANSFERS=1.
Just need to add CAN ISO_TP code and it'll be ready. If you are interested, I will put the code on GitHub.
:wink:
Thank you again.

Re: HID Variable data length

Posted: Wed Mar 21, 2018 9:00 pm
by ulao
512 is the max (usb 1.1 spec) , weather v-usb can do it, i'm not sure.