阅读:2866回复:13
有熟悉HID Report的USB高手吗?
我对HID REPORT DESCRIPTOR现在还不太明白
哪位DX 能提供下面的DESCRIPTOR: REPORT ID 1: input 8 bytes, feature, data ,absolute REPORT ID 2: output 8 bytes, feature, data ,absolute REPORT ID 3: input 4 bytes, feature, data ,absolute REPORT ID 4: output 4 bytes, feature, data ,absolute 救苦救难吧,谢了先。 |
|
最新喜欢:![]()
|
沙发#
发布于:2001-12-11 10:49
你可参照USB HID Device Class Definition 和 HID Usage Tables
这两个PDF文档资料,USB.ORG上还有一个生成描述符的软件的,我用过,具体是什么记不清楚了.你最好上网仔细查一下. |
|
|
板凳#
发布于:2001-12-11 14:06
上面的例子我都度过,不行啊。
Report 工具 DT 其实只是过辅助工具而已。不能生成完整的Report Desc. |
|
|
地板#
发布于:2001-12-11 16:10
AronChu,你的问题还没有解决?
|
|
|
地下室#
发布于:2001-12-12 08:38
是呀, 我用的是低速USB, 太慢, 我将中断传输改控制传输,
但不会写REPORT DESCRIPTOR。 usb11, 您能不能帮帮忙? 谢谢 |
|
|
5楼#
发布于:2001-12-12 09:28
我对HID REPORT DESCRIPTOR现在还不太明白 虽然我曾做过一个HID类设备,可是有些笨我看不懂\"feature, data ,absolute\"是什么样的意思,真是爱莫能及. |
|
|
6楼#
发布于:2001-12-12 09:56
HID报告类型啊,INPUT/OUPUT/FEATURE....不过我有一点不肯定的是:
FEATURE Report 是否不需要定义INPUT/OUPUT? 如有不对的地方,请多多指点! 谢谢! |
|
|
7楼#
发布于:2001-12-12 09:59
我的用途是用控制传输发送/接收 8BYTE 和 4BYTE 的数据,
必须有FEATURE REPORT吧? |
|
|
8楼#
发布于:2001-12-12 10:39
db 85h, 01h ;report ID 1
db 95h, 08h ; report count (8 bytes) db 75h, 08h ; report size (8 bits) db 81h, 02h ; input (data, variable, absolute) db 85h, 02h ;report ID 2 db 95h, 08h ; report count (8 bytes) db 75h, 08h ; report size (8 bits) db 91h, 02h ; output (data, variable, absolute) db 85h, 03h ;report ID 3 db 95h, 04h ; report count (4 bytes) db 75h, 08h ; report size (8 bits) db 81h, 02h ; input (data, variable, absolute) db 85h, 04h ;report ID 4 db 95h, 04h ; report count (4 bytes) db 75h, 08h ; report size (8 bits) db 91h, 02h ; output (data, variable, absolute) 你看对不对? |
|
|
9楼#
发布于:2001-12-12 11:02
LongHai,
您好,我要FEATURE REPORT, 因我要用控制传输。 另外您能不能将用法页也加上啊? 请多指点啊,多谢! |
|
|
10楼#
发布于:2001-12-12 11:18
不客气,那些东西都是要看具体的参数的,我觉得那两个文件真的很有用的,解决你的问题足够了,你要静下心去看啊,还要多调试一下,肯定行的,不要光看不动,我现就是,干着急!没用的.很不好意思,对你发牢骚,我也是一个字\"晕\"啊!
|
|
|
11楼#
发布于:2001-12-14 10:33
HID 低速时只能支持一个控制(OUT)+一个中断传输(IN)(HID 1.0)或一个中断(OUT)+一个中断(IN)(HID 1.1)最多只能传输800/s。如果要传输更多的数据只能用控制传输或高速芯片。
|
|
12楼#
发布于:2001-12-14 15:45
To fhw:
You are right. I\'m now use control pipe, but can only reach 4K Bytes/Second,and still have a problem. Information of my HID project: 1.Firmware: a. Report Descriptor: Report ID: 3 Report size: 8 (bits) Report count: 32 ( 32 bytes\' valid data, add a byte\'s report ID, in reality, should transfer 33 bytes) Feature report, data,var,rel b. Device: Response to SetReport token: receive: 3 + X+X+...+X ; XXX is 32 bytes\'valid data Response to GetReport token: send: 3 + X+X+...+X ; XXX is 32 bytes\' valid data. 2. Host client application: Buf[33] ;33 bytes\' buffer for read/write device Buf[0]=3; HIDD_SetFeature(m_HID_Handle,Buf,33); Buf[0]=3; HIDD_GetFeature(m_HID_Handle,Buf,33); Result: SetFeature: return true, device really get the 32 bytes\' data sended by host GetFeature: return true, but the value of buf is all 0\'s. I do not know, the API function return true, but operation failed. Would you say the problem is with my firmware or client? Thanks! [编辑 - 12/14/01 作者: AronChu] |
|
|
13楼#
发布于:2004-10-11 14:08
低速设备的控制传输能达到3K/S
|
|
|