Closed HaoboGu closed 1 year ago
I'm not able to reproduce the issue in latest code. Note in 6.1.8 release there is a fix about such issue: https://github.com/azure-rtos/usbx/releases/tag/v6.1.8_rel (HID descriptor search fix), file modification (common/usbx_device_classes/src/ux_device_class_hid_descriptor_send.c)
fixed by updating to latest version, thanks!
Hello, I'm trying to use 2 interfaces in a HID class. My descriptor is like:
There are two hid reports, using 2 interfaces. I enabled 2 interfaces by calling
ux_device_stack_class_register
twice, with differentux_device_class_hid_parameter_report_address
andinterface_number
:USBX sends correct configuration descriptor, but wrong HID descriptor data.
The HID descriptor data for the first interface is correct, but for the second interface, USBX sends the same HID data with the length of second HID report.
The correct HID descriptor data for the first interface:
The wrong HID descriptor data for the second interface(this interface has two endpoints, this data appears twice):
Except HID descriptor for the second interface(Ignore vid and pid):