|
![]() USB
![]() Max speed in HID
|
| next newest topic | next oldest topic |
| Author | Topic: Max speed in HID |
|
lieven Member |
Hi, I am thinking about implementing HID in stead of USBxpress but the data rate to the device must be at least 96kbyte/s. Normally the maximum is 64. Is it possible in any way to use 2 endpoints for sending data from host to device? Can the control endpoint be 'abused' for that? Thanks, IP: Logged |
|
Patryk Member |
I'm sure Tsuneo will post here soon and provide details. But meanwhile some general info. Control endpoint generally (it is host controller dependent) won't give more than 64kB/s. You can count on 32kB/s when you send in 128bytes packets (on any host controller), 48kB/s in 384bytes packets. So when used in addition to HID OUT endpoint it could give 96kB/s (or more) in sum. Another way is to make composite device - with 2 HID interfaces giving you (up to) 2 OUT endpoints. Edit: second solution gives you guaranteed bandwidth. [This message has been edited by Patryk (edited November 13, 2006).] IP: Logged |
|
Tsuneo Member |
1) Control transfser Control transfer over EP0 is not recommended for the communication exchanged regularly and frequently. a) The transfer speed is altered depending on the host controller on the PC. b) Control transfer handling puts considerable load to the firmware than communication over other endpoints. 2) Two HID OUT EPs Please note, the arrival order on the two OUT EPs on the device side may be reversed from the order you sent them on the application. For example, the application sends packets to EP2 and then EP1. But the device may receive EP1 first, and then EP2. If the order is important for your application, you must assign a byte on the data to show the packet number to sort them on the device side.
UMDF seems promising, but it is still under beta yet, and supported only on WinXP and Vista. ("USb diver in windows VISTA") Tsuneo [This message has been edited by Tsuneo (edited November 13, 2006).] IP: Logged |
|
lieven Member |
Thank you both for the explanations! Lieven. IP: Logged |
All times are CT (US) | next newest topic | next oldest topic |
![]() |
|
Have you seen our MCU Knowledge Base?