USB HID , How to speed it up

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

USB HID , How to speed it up

1,226 次查看
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
标签 (1)
0 项奖励
回复
2 回复数

1,129 次查看
lpcware
NXP Employee
NXP Employee
bump
0 项奖励
回复

1,129 次查看
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 项奖励
回复