Page 1 of 1

HID: multiple report id's vs. one report > 8 bytes

Posted: Thu Aug 19, 2010 12:08 pm
by Guest
Hi,

I made a HID joystick which uses 6 reports of 5 bytes each.
Including the reportIDs, I have 36 bytes to send.
The poll interval is 10ms so every 60ms a particular report is sent to the host.

Would it make a difference speed-wise if I were to send 1 report of 30 bytes by concatenating several calls to usbSetInterrupt() as explained by Christian here: viewtopic.php?f=8&t=1855 and in other threads?

(I use an ATmega16 @ 12 MHz)

-=Wim=-

Re: HID: multiple report id's vs. one report > 8 bytes

Posted: Thu Aug 19, 2010 7:19 pm
by IvIePhisto
I suppose it should make a bit of a difference, as there would be only 4 USB interrupt requests (3x8 bytes and 1x6 bytes) plus it saves time and space on the MCU. And the parsing on the host side is a bit easier, but this should make no real difference.