USB HID , How to speed it up

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

USB HID , How to speed it up

633 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by pgeloso on Wed May 04 01:56:15 MST 2016
Hi,
I need to develop a USB HID project using LPCOpen/LPCXpresso and LPC4357. Starting from the example "usbd_rom_hid_generic", I slightly modified it to send 8 bytes to PC and to receive 64bytes (from the PC).

To speed up the USB communication, I changed the HID descriptors in this way and I improved the speed to a "decent level":
WBVAL(0x0040),//WBVAL(0x0004),/* wMaxPacketSize */
0x02,//0x20,/* 16ms */          /* bInterval */  //--++

Unfortunately I'm not an USB expert so, I'd like to have some suggestions to further improve the HID speed.

Thanks
Pietro
Labels (1)
0 Kudos
2 Replies

536 Views
lpcware
NXP Employee
NXP Employee
bump
0 Kudos

536 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by pgeloso on Fri May 06 00:51:57 MST 2016
Found.
It's simply necessary to increase the size of ReportCount() bytes sent from the Host. Using 128 the speed greatly increases but it seems that windows driver doesn't accept numbers  greater than 128, while Mac driver accepts up to 4k, reaching the maximum transfer speed.

regards
Bye
0 Kudos