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/ |
相关文章推荐
- USB Human Interface Device (HID) Configuration
- Usb Composite Device (audio+hid) Descriptor
- usb composite device - 2 com ports
- USB device layout, descriptors, interface alternate setting
- 完美解决SAMSUNG Mobile USB CDC Composite Device安装失败 三星手机USB驱动失败。
- USB Composite Device
- Using the HID class eases the job of writing USB device drivers
- HID开发,'DEV_BROADCAST_DEVICEINTERFACE' : undeclared identifier
- USB Composite Device
- interface_to_usbdev() -- 根据usb_interface指针intf获取usb_device的地址。
- Usb Audio Device Descriptor(6) Standard AS Interface Descriptor
- How to Use WinUSB to Communicate with a USB Device
- Driver for device rausb0 has been compiled with version 22
- How to install linux with a usb device
- Usb Audio Device Descriptor(10) Hid Device
- Driver for device rausb0 has been compiled with version 22
- Usb Audio Device Descriptor(7) Class-Specific Audio Streaming Interface Descriptor
- STM32F4 HAL Composite USB Device Example : CDC + MSC
- Using the HID class eases the job of writing USB device drivers
- Usb Audio Device Descriptor(1) Standard Audio Control Interface Descriptor