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

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
Guest

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

Post by Guest » Thu Aug 19, 2010 12:08 pm

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=-

IvIePhisto
Posts: 14
Joined: Thu Aug 19, 2010 3:04 pm

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

Post by IvIePhisto » Thu Aug 19, 2010 7:19 pm

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.

Post Reply