Skip to content

Composite HID device, how to get the right interface? #140

@hlshih

Description

@hlshih

composite HID device (generic + keyboard), generic use interface 0, keyboard use interface 1.
I use
_device = HidDevices.Enumerate(VendorId, ProductId).FirstOrDefault();
to get the device, and use
_device.Write(buffer);
to write data to generic device, but generic device fail to get data. What's wrong?
If only generic device only (not composite USB device), HID generic get data success.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions