USB HID , How to speed it up

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

USB HID , How to speed it up

1,263件の閲覧回数
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,166件の閲覧回数
lpcware
NXP Employee
NXP Employee
bump
0 件の賞賛
返信

1,166件の閲覧回数
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 件の賞賛
返信