Skip to main content
Visitor II
November 3, 2020
Question

How to make device stop showing up as mouse.

  • November 3, 2020
  • 1 reply
  • 957 views

I followed the custom hid example and finally got it to work, I can send 64 byte packets back and forth. The only issue now is that the device shows up as a mouse in the windows devices dialog.

How can I change it to show up as a generic deviec?

    This topic has been closed for replies.

    1 reply

    Super User
    November 3, 2020

    How it shows up is determined by Windows. If you change the descriptors, it will generally reflect the changes in Device Manager, however you cannot specify the string that it shows. There is no "generic" USB device class. There are specific generic classes (hah) such as CDC, DFU, HID, etc...

    If you are actively debugging, USB sometimes gets into funny states where it may have memory of the previous descriptor and may require replugging, a reboot, and/or using a different port.

    Super User
    November 3, 2020

    Well there is a "generic" class for Windows - the Microsoft proprietary "WinUSB device", indicated by a special descriptor.

    But, if the OP wants to use the HID API, the device should have HID descriptors - just not the mouse usage page in HID report descriptor and not a mouse type in the interface descriptor.

    Also it is possible to override the default Windows driver with a custom INF file that specifies the vendor ad device IDs, but this is encumbered because of signing requirement.

    -- pa

    FKopp.1Author
    Visitor II
    November 3, 2020

    Could you guys specify what you mean by descriptors? Do you mean the Report Descriptor in usbd_custom_hid_if.c or another one?