eclipse-threadx / usbx

Eclipse ThreadX - USBX is a high-performance USB host, device, and on-the-go (OTG) embedded stack, that is fully integrated with Eclipse ThreadX RTOS
https://github.com/eclipse-threadx/rtos-docs/blob/main/rtos-docs/usbx/index.md
MIT License
154 stars 89 forks source link

USB HID class : Composite device does not pass compliance tests. #25

Closed t-yabui closed 3 years ago

t-yabui commented 3 years ago

Hi, I made a composite device that include multiple HID devices. It is recognized by Windows and works. However it does not pass HID Tests with the USB2CV test tool.

The tests uses GET_DESCRIPTOR with wIndex parameter to get HID descriptors. However current code does not use the parameter, therefore it does not return a HID descriptor except the first one.

I think that It should support request_index parameter as follows:

ux_device_class_hid_descriptor_send.c.patch.txt

xiaocq2001 commented 3 years ago

Thanks for the feedback. We will fix in later updates.

xiaocq2001 commented 3 years ago

Updated in 6.1.8

t-yabui commented 3 years ago

Thank you for handling the matter.