您的位置:首页 > 其它

USB Composite Device with HID Interface

2012-07-31 15:20 288 查看
carleeto

New Member



posted December 08, 2009 10:03 PM






Hi,

I have a composite device that has 3 interfaces. Interfaces 1 and 2

are vendor specific and Interface 3 is a HID endpoint that Windows

recognizes and load the HID class driver for. To get my driver to

work, I need to install it for the composite device, which then hides

all the end points and makes the HID interface invisible to Windows.

What I'd like to know is :

Is it possible for my driver to be installed on the composite device but at the same time have Windows' HID driver control the HID interface?

Thanks.

IP:

Logged
egawtry

Member



posted December 09, 2009 09:48 AM









Why would installing the driver hide the endpoints? I do composite devices all the time and then use separate programs on the separate sections HID/CDC/Mass...

The only thing Composite does is ADD a few entries in the registry that you can use to cross-reference the device's connections.

IP:

Logged
carleeto

New Member



posted December 09, 2009 12:13 PM






I wasn't clear. I shall rephrase. By hiding I meant that once my driver was installed on the composite device, there seemed to be no way to install another driver on any of the composite device's interfaces,
because if I understand correctly, from Windows' point of view, my driver is now responsible for them.

I can access all the interfaces in software even after my driver has been installed.

The thing is the device's HID interface works fine with Window's HID class driver, but not with mine.

Therefore I was wondering if there was a way to get Windows' HID driver controlling the HID interface, while having my driver installed on the composite device controlling the others.

IP:

Logged
egawtry

Member



posted December 10, 2009 10:25 AM









*confusion*

"I can access all the interfaces in software even after my driver has been installed." Good.

"The thing is the device's HID interface works fine with Window's HID class driver, but not with mine." Huh? Which class driver? Are you emulating one of the standard HID classes like a keyboard or mouse? I can see that Windows would stop connecting at that
point. Otherwise, if you are doing a generic HID interface, there is no difference whether it is composite or not.

If you are trying to use a built in Windows HID device interface (as mentioned above), then you may not be able to use a composite device interface. Or, maybe you need to play with your USB descriptors a bit and divorce the HID endpoints from the other endpoints.

IP:

Logged
carleeto

New Member



posted December 10, 2009 06:01 PM






Sorry to ask what may seem like an obvious question, but how can I tell whether it is generic HID or a specific HID device class?

The compatible ID is:

USB\Class_03&SubClass_00&Prot_00

Would that make it generic HID?

IP:

Logged
egawtry

Member



posted December 15, 2009 11:21 AM









Please read the HID spec at:

http://www.usb.org/developers/hidpage/

http://www.cygnal.org/ubb/Forum9/HTML/001949.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: