Skip to main content
Coconop
Associate
November 22, 2018
Question

HID device enumerates but Report Descriptor is unavailable

  • November 22, 2018
  • 0 replies
  • 1147 views

I am programming a USB-HID device based on STM32 CubeMX Mouse example.

I made some modifications (interface, endpoints, report descriptor) and I am currently testing enumeration.

Everything seems to be OK except that the lsusb command fails to dump the report descriptor: 

$lsusb
 Bus 001 Device 013: ID 0483:5740 STMicroelectronics STM32F407
 
$sudo lsusb -v -s 001:013
 Bus 001 Device 013: ID 0483:5740 STMicroelectronics STM32F407
 Device Descriptor:
 [...]
 HID Device Descriptor:
 bLength 9
 bDescriptorType 33
 bcdHID 1.11
 bCountryCode 0 Not supported
 bNumDescriptors 1
 bDescriptorType 34 Report
 wDescriptorLength 36
 Report Descriptors: 
 ** UNAVAILABLE **
 [...]

I am not sure where something is missing: on Linux side or STM32 side (on the device I did not implement the functions to send and receive data via report buffers yet).

The only link I've found related to my problem on the web is [this][1], however it lacks some explanations about what is done here...

I have also try to debug with [HIDAPI][2] but unfortunately my device does not show up on /dev/hidraw or /sys/class/hidraw so I do not know how can I debug my device.

 [1]: https://poohyhoh.blogspot.com/2013/07/lsusb-usb-report-descriptor-unavailable.html

 [2]: https://github.com/signal11/hidapi

This topic has been closed for replies.