HID Variable data length

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
drquark
Posts: 9
Joined: Mon Mar 12, 2018 4:30 pm

Re: HID Variable data length

Post by drquark » Wed Mar 21, 2018 3:02 pm

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.

ulao
Rank 4
Rank 4
Posts: 481
Joined: Mon Aug 25, 2008 8:45 pm

Re: HID Variable data length

Post by ulao » Wed Mar 21, 2018 9:00 pm

512 is the max (usb 1.1 spec) , weather v-usb can do it, i'm not sure.

Post Reply