Skip to content

Need API to get the HID Report Descriptor or a similar data structure #249

Closed

Description

@JoergAtGithub

We need a function to read the HID Report Descriptor or an equal data structure with information about the fields in the different HID reports.

Background:
For the cross platform Mixxx DJ software we need a solution, to allow the end user to map HID controller buttons, faders, knobs, RGB LEDs, etc. These are different on any DJ controller. Therefore this mapping it must be customizeable by end users.
As input we need information about the field, e.g.: a 12 bit field at position n of Input report with ID0x02 with a logical minimum of -2048 and a maximum of +2047.

Activity

  1. Be-ing commented on Feb 26, 2021

    @Be-ing
    Contributor

    Potentially helpful links:
    https://github.com/DIGImend/usbhid-dump
    https://github.com/DIGImend/hidrd
    Those are both licensed under the GPL, so they couldn't be used directly in hidapi unless the maintainers are willing to change the hidapi license. Nevertheless they could be useful examples to reference.

    https://eleccelerator.com/tutorial-about-usb-hid-report-descriptors/

  2. added
    enhancement
    on Mar 10, 2021
  3. tschiemer commented on Mar 16, 2021

    @tschiemer

    Actually, it somewhat comes for free as the basic usage page and usage are extracted from the report descriptor which is read here:

    res = libusb_control_transfer(handle, LIBUSB_ENDPOINT_IN|LIBUSB_RECIPIENT_INTERFACE, LIBUSB_REQUEST_GET_DESCRIPTOR, (LIBUSB_DT_REPORT << 8)|interface_num, 0, data, sizeof(data), 5000);

    In my eyes it'd make sense to directly store this descriptor either

    • by (optionally) allocating memory linked through a new field in struct hid_device_info (simpler) or
    • by postponing allocation of found device structs here until the size of the report descriptor is found, allocating the base size along with the descriptor size and appending an indefinite size field to struct hid_device_info (feels more elegant)

    That said, it might be nice or meaningful to somehow incorporate this quite nice descriptor to string parser based on which I'm momentarily trying to make a generic parser to help extract meaningful values from given reports without having to know the report layout beforehand (primarily trying to make it work with my use cases, but for simple devices should be fine).

  4. Be-ing commented on Mar 16, 2021

    @Be-ing
    Contributor

    Thanks for that info @tschiemer. I have not looked into what it would take to implement this. If you have a branch of hidapi you are working on, please open a pull request for this upstream repository and I'd be happy to test it with my Native Instruments Traktor Kontrol S4 Mk3.

  5. tschiemer commented on Mar 16, 2021

    @tschiemer

    Ok, can see to it, but might take a moment

  6. Youw commented on Mar 16, 2021

    @Youw
    Member

    Actually, it somewhat comes for free as the basic usage page and usage are extracted from the report descriptor

    While this indeed already available and easy to get for libusb and hidraw backends, one of the first things about HIDAPI is being cross-platform.

    I agree that this would be very useful, but Windows backend doesn't have an API to get a descriptor at all.
    The descriptor could be partially reconstructed, but still, it is not an easy task.
    I know one successfull attempt to reconstruct a HID descriptor using WinAPI calls, but that one is written on C# (https://github.com/todbot/win-hid-dump is using it). If someone could port it to C - I'd gladly introduce a new API (to get HID descriptor) for all platforms/backends.

  7. JoergAtGithub commented on Mar 16, 2021

    @JoergAtGithub
    ContributorAuthor

    There's also the approach to use the generic WinUSB driver (comes with Win7 or newer) instead of Windows High-Level-HID-API: #61 (comment)
    As far as I understood it, the WinUSB driver gives a userspace Windows program full access to an USB device, but locks it exclusive.

  8. Youw commented on Mar 16, 2021

    @Youw
    Member

    gives a userspace Windows program full access to an USB device, but locks it exclusive

    Yeah, and someone actually needs to make a driver for each specific device. And the problem not even with making a driver - a template inf file can be generated. But signing a driver properly - that requires some effort.

    And you'd need to compile a libusb backend on Windows, which isn't compilable of-the-box yet.

  9. JoergAtGithub commented on Mar 16, 2021

    @JoergAtGithub
    ContributorAuthor

    Ok, that doesn't sounds like what we're looking for.

  10. Be-ing commented on Mar 17, 2021

    @Be-ing
    Contributor

    I think it could be a good idea to start with libusb or hidraw to figure out what the API should be then implement it for other backends.

  11. tschiemer commented on Mar 22, 2021

    @tschiemer

    @Be-ing so not quite a hidapi branch, but as a proof of concept I implemented this puredata external to parse input reports based on the report descriptor, works for me on macos and a rpi4/linux with a joystick and mouse (see releases for binaries).

    It's a bit of a mess as it uses libusb to find devices according to search criteria (more than hidapi provides out of the box, but meaningful in my opinion and based on hidapi-libusb internals) and reads/parses the report descriptor but relies on hidapi to actually receive input reports (and thus on linux the device listing is set to detach devices as in the hidapi driver..) - should have had a deeper look at hidapi's (or hidraw) interface before..

    At the moment only the raw values as given in the input report are extracted without making use of any of the logical/physical min/max, unit, exponential etc values but adding that shouldn't be too big of a deal..
    Could not test this with any feature/output reports or more complicated report descriptors, as I have neither the devices nor much more capacity..
    The hid report parser just creates a datastructure that's more easy to handle but I would guess it won't work for all descriptors (collection items are somewhat ignored; note that the handling of output and feature items likely will need some fixing in the parser..).
    As external it "publishes" any changed values (usage page, usage, value), similar to the apple HIDIOManager value callbacks.
    I guess construction of output reports can be achieved by inverting the logic of the value extractor.

    Maybe this is helpful in some form

  12. JoergAtGithub commented on Apr 6, 2021

    @JoergAtGithub
    ContributorAuthor

    I agree that this would be very useful, but Windows backend doesn't have an API to get a descriptor at all.
    The descriptor could be partially reconstructed, but still, it is not an easy task.
    I know one successfull attempt to reconstruct a HID descriptor using WinAPI calls, but that one is written on C# (https://github.com/todbot/win-hid-dump is using it). If someone could port it to C - I'd gladly introduce a new API (to get HID descriptor) for all platforms/backends.

    I implemented such a reconstructor in C and will start a Pull Request for HIDAPI soon. Stay tuned!

  13. JoergAtGithub commented on Apr 10, 2021

    @JoergAtGithub
    ContributorAuthor

    I started PR #262 with a C implementation of the Windows Report-Descriptor code.

  14. mcuee commented on Jun 13, 2021

    @mcuee
    Member

    I think libusb HID backend has already the codes to partially reconstruct the descriptors. Some from the USB HUB driver, some from the USB HID driver. But that may not be suitable for HIDAPI as it is also for bluetooth devices.

    https://github.com/libusb/libusb/blob/master/libusb/os/windows_winusb.c#L3728
    static int hid_open(int sub_api, struct libusb_device_handle *dev_handle)

    While this indeed already available and easy to get for libusb and hidraw backends, one of the first things about HIDAPI is being cross-platform.

    I agree that this would be very useful, but Windows backend doesn't have an API to get a descriptor at all.
    The descriptor could be partially reconstructed, but still, it is not an easy task.
    I know one successfull attempt to reconstruct a HID descriptor using WinAPI calls, but that one is written on C# (https://github.com/todbot/win-hid-dump is using it). If someone could port it to C - I'd gladly introduce a new API (to get HID descriptor) for all platforms/backends.

  15. 113 remaining items

  16. mcuee commented on Aug 25, 2021

    @mcuee
    Member

    #322 has been merged. So I apply the two patches from the macOS get-descriptor branch and here is the result. The way I apply the patch may not be so correct but the patching is successful.

    Only one output is a bit strange.

    Device Found
      type: 046d c52b
      path: DevSrvsID:4294969637
      serial_number: 
      Manufacturer: Logitech
      Product:      USB Receiver
      Release:      2410
      Interface:    0
      Usage (page): 0x6 (0x1)
      Report Descriptor: not available.
    
    hidapi on  master [?] via △ v3.21.1 ❯ git branch mytest
    
    hidapi on  master [?] via △ v3.21.1 ❯ git checkout mytest
    Switched to branch 'mytest'
    		
    hidapi on  mytest [?] via △ v3.21.1 ❯ wget https://github.com/libusb/hidapi/commit/0db25f9132efaa3dfed3e376ba4cfea5e7c7fed8.patch
    ...
    
    2021-08-25 19:16:44 (23.1 MB/s) - ‘0db25f9132efaa3dfed3e376ba4cfea5e7c7fed8.patch’ saved [5560/5560]
    
    hidapi on  mytest [?] via △ v3.21.1 ❯ git apply 0db25f9132efaa3dfed3e376ba4cfea5e7c7fed8.patch 
    hidapi on  mytest [!?] via △ v3.21.1 took 9s ❯ wget https://github.com/libusb/hidapi/commit/26d45bf4272ddcf4c845a5f28e5c451cf7999695.patch
    ...
    2021-08-25 19:17:52 (2.32 MB/s) - ‘26d45bf4272ddcf4c845a5f28e5c451cf7999695.patch’ saved [592/592]
    
    hidapi on  mytest [!?] via △ v3.21.1 ❯ git apply 26d45bf4272ddcf4c845a5f28e5c451cf7999695.patch 
    
    hidapi/buildtest on  mytest [!?] via △ v3.21.1 ❯ ./hidtest/hidtest 
    hidapi test/example tool. Compiled with hidapi version 0.11.0, runtime version 0.11.0.
    Compile-time version matches runtime version of hidapi.
    
    Device Found
      type: 0000 0000
      path: DevSrvsID:4294969110
      serial_number: 
      Manufacturer: Apple
      Product:      
      Release:      0
      Interface:    -1
      Usage (page): 0xff (0xff00)
      Report Descriptor: (20 bytes)
    0x06, 0x00, 0xff, 0x0a, 0xff, 0x00, 0xa1, 0x01, 0x15, 0x00, 
    0x26, 0xff, 0x00, 0x75, 0x08, 0x95, 0x01, 0x81, 0x02, 0xc0, 
    
    Device Found
      type: 047f c025
      path: DevSrvsID:4294969635
      serial_number: CB13A3E40E8E47D6A40769C27E90A38E
      Manufacturer: Plantronics
      Product:      Plantronics C320-M
      Release:      135
      Interface:    3
      Usage (page): 0x1 (0xc)
      Report Descriptor: (367 bytes)
    0x05, 0x0c, 0x09, 0x01, 0xa1, 0x01, 0x85, 0x01, 0x15, 0x00, 
    0x25, 0x01, 0x09, 0xe9, 0x09, 0xea, 0x75, 0x01, 0x95, 0x02, 
    0x81, 0x06, 0x95, 0x06, 0x81, 0x01, 0x85, 0x02, 0x05, 0x0c, 
    0x09, 0x00, 0x95, 0x10, 0x81, 0x02, 0x85, 0x04, 0x09, 0x00, 
    0x75, 0x08, 0x95, 0x24, 0x91, 0x02, 0x85, 0x05, 0x09, 0x00, 
    0x95, 0x20, 0x81, 0x02, 0x85, 0x06, 0x09, 0x00, 0x95, 0x24, 
    0x91, 0x02, 0x85, 0x07, 0x09, 0x00, 0x95, 0x20, 0x81, 0x02, 
    0xc0, 0x05, 0x0b, 0x09, 0x05, 0xa1, 0x01, 0x85, 0x08, 0x15, 
    0x00, 0x25, 0x01, 0x09, 0x2f, 0x75, 0x01, 0x95, 0x01, 0x81, 
    0x06, 0x09, 0x20, 0x09, 0x21, 0x75, 0x01, 0x95, 0x02, 0x81, 
    0x22, 0x95, 0x05, 0x81, 0x01, 0x05, 0x08, 0x85, 0x09, 0x09, 
    0x09, 0x95, 0x01, 0x91, 0x22, 0x95, 0x07, 0x91, 0x01, 0x85, 
    0x17, 0x09, 0x17, 0x95, 0x01, 0x91, 0x22, 0x95, 0x07, 0x91, 
    0x01, 0x85, 0x18, 0x09, 0x18, 0x95, 0x01, 0x91, 0x22, 0x95, 
    0x07, 0x91, 0x01, 0x85, 0x1e, 0x09, 0x1e, 0x95, 0x01, 0x91, 
    0x22, 0x95, 0x07, 0x91, 0x01, 0x85, 0x20, 0x09, 0x20, 0x95, 
    0x01, 0x91, 0x22, 0x95, 0x07, 0x91, 0x01, 0x85, 0x2a, 0x09, 
    0x2a, 0x95, 0x01, 0x91, 0x22, 0x95, 0x07, 0x91, 0x01, 0xc0, 
    0x06, 0xa0, 0xff, 0x09, 0x01, 0xa1, 0x01, 0x85, 0x03, 0x09, 
    0x30, 0x75, 0x08, 0x95, 0x20, 0x91, 0x02, 0x85, 0x03, 0x09, 
    0x30, 0x75, 0x08, 0x95, 0x20, 0x81, 0x02, 0x85, 0x14, 0x09, 
    0xb1, 0x09, 0xb2, 0x09, 0xb5, 0x09, 0xb7, 0x09, 0xb3, 0x15, 
    0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x05, 0x81, 0x06, 0x95, 
    0x03, 0x81, 0x01, 0x85, 0x15, 0x09, 0x8c, 0x15, 0x00, 0x27, 
    0xff, 0xff, 0x00, 0x00, 0x75, 0x10, 0x95, 0x01, 0x81, 0x22, 
    0x85, 0x19, 0x09, 0x8d, 0x09, 0x8f, 0x09, 0x9e, 0x09, 0xdc, 
    0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x04, 0x91, 0x22, 
    0x09, 0xd2, 0x09, 0xd9, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 
    0x95, 0x02, 0x91, 0x06, 0x95, 0x02, 0x91, 0x01, 0x85, 0x1a, 
    0x09, 0xb5, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x01, 
    0x91, 0x22, 0x95, 0x07, 0x91, 0x01, 0x85, 0x1b, 0x09, 0xcf, 
    0x09, 0xb5, 0x09, 0xde, 0x75, 0x01, 0x95, 0x03, 0xb1, 0x22, 
    0x09, 0xd8, 0x95, 0x01, 0xb1, 0x23, 0x95, 0x04, 0xb1, 0x01, 
    0x09, 0x09, 0x09, 0x17, 0x09, 0x18, 0x09, 0x1e, 0x09, 0x20, 
    0x09, 0x2a, 0x75, 0x01, 0x95, 0x06, 0xb1, 0x22, 0x95, 0x02, 
    0xb1, 0x01, 0x85, 0x1f, 0x09, 0x9c, 0x75, 0x01, 0x95, 0x01, 
    0x81, 0x06, 0x95, 0x07, 0x81, 0x01, 0xc0, 
    
    Device Found
      type: 047f c025
      path: DevSrvsID:4294969635
      serial_number: CB13A3E40E8E47D6A40769C27E90A38E
      Manufacturer: Plantronics
      Product:      Plantronics C320-M
      Release:      135
      Interface:    3
      Usage (page): 0x5 (0xb)
      Report Descriptor: (367 bytes)
    0x05, 0x0c, 0x09, 0x01, 0xa1, 0x01, 0x85, 0x01, 0x15, 0x00, 
    0x25, 0x01, 0x09, 0xe9, 0x09, 0xea, 0x75, 0x01, 0x95, 0x02, 
    0x81, 0x06, 0x95, 0x06, 0x81, 0x01, 0x85, 0x02, 0x05, 0x0c, 
    0x09, 0x00, 0x95, 0x10, 0x81, 0x02, 0x85, 0x04, 0x09, 0x00, 
    0x75, 0x08, 0x95, 0x24, 0x91, 0x02, 0x85, 0x05, 0x09, 0x00, 
    0x95, 0x20, 0x81, 0x02, 0x85, 0x06, 0x09, 0x00, 0x95, 0x24, 
    0x91, 0x02, 0x85, 0x07, 0x09, 0x00, 0x95, 0x20, 0x81, 0x02, 
    0xc0, 0x05, 0x0b, 0x09, 0x05, 0xa1, 0x01, 0x85, 0x08, 0x15, 
    0x00, 0x25, 0x01, 0x09, 0x2f, 0x75, 0x01, 0x95, 0x01, 0x81, 
    0x06, 0x09, 0x20, 0x09, 0x21, 0x75, 0x01, 0x95, 0x02, 0x81, 
    0x22, 0x95, 0x05, 0x81, 0x01, 0x05, 0x08, 0x85, 0x09, 0x09, 
    0x09, 0x95, 0x01, 0x91, 0x22, 0x95, 0x07, 0x91, 0x01, 0x85, 
    0x17, 0x09, 0x17, 0x95, 0x01, 0x91, 0x22, 0x95, 0x07, 0x91, 
    0x01, 0x85, 0x18, 0x09, 0x18, 0x95, 0x01, 0x91, 0x22, 0x95, 
    0x07, 0x91, 0x01, 0x85, 0x1e, 0x09, 0x1e, 0x95, 0x01, 0x91, 
    0x22, 0x95, 0x07, 0x91, 0x01, 0x85, 0x20, 0x09, 0x20, 0x95, 
    0x01, 0x91, 0x22, 0x95, 0x07, 0x91, 0x01, 0x85, 0x2a, 0x09, 
    0x2a, 0x95, 0x01, 0x91, 0x22, 0x95, 0x07, 0x91, 0x01, 0xc0, 
    0x06, 0xa0, 0xff, 0x09, 0x01, 0xa1, 0x01, 0x85, 0x03, 0x09, 
    0x30, 0x75, 0x08, 0x95, 0x20, 0x91, 0x02, 0x85, 0x03, 0x09, 
    0x30, 0x75, 0x08, 0x95, 0x20, 0x81, 0x02, 0x85, 0x14, 0x09, 
    0xb1, 0x09, 0xb2, 0x09, 0xb5, 0x09, 0xb7, 0x09, 0xb3, 0x15, 
    0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x05, 0x81, 0x06, 0x95, 
    0x03, 0x81, 0x01, 0x85, 0x15, 0x09, 0x8c, 0x15, 0x00, 0x27, 
    0xff, 0xff, 0x00, 0x00, 0x75, 0x10, 0x95, 0x01, 0x81, 0x22, 
    0x85, 0x19, 0x09, 0x8d, 0x09, 0x8f, 0x09, 0x9e, 0x09, 0xdc, 
    0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x04, 0x91, 0x22, 
    0x09, 0xd2, 0x09, 0xd9, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 
    0x95, 0x02, 0x91, 0x06, 0x95, 0x02, 0x91, 0x01, 0x85, 0x1a, 
    0x09, 0xb5, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x01, 
    0x91, 0x22, 0x95, 0x07, 0x91, 0x01, 0x85, 0x1b, 0x09, 0xcf, 
    0x09, 0xb5, 0x09, 0xde, 0x75, 0x01, 0x95, 0x03, 0xb1, 0x22, 
    0x09, 0xd8, 0x95, 0x01, 0xb1, 0x23, 0x95, 0x04, 0xb1, 0x01, 
    0x09, 0x09, 0x09, 0x17, 0x09, 0x18, 0x09, 0x1e, 0x09, 0x20, 
    0x09, 0x2a, 0x75, 0x01, 0x95, 0x06, 0xb1, 0x22, 0x95, 0x02, 
    0xb1, 0x01, 0x85, 0x1f, 0x09, 0x9c, 0x75, 0x01, 0x95, 0x01, 
    0x81, 0x06, 0x95, 0x07, 0x81, 0x01, 0xc0, 
    
    Device Found
      type: 047f c025
      path: DevSrvsID:4294969635
      serial_number: CB13A3E40E8E47D6A40769C27E90A38E
      Manufacturer: Plantronics
      Product:      Plantronics C320-M
      Release:      135
      Interface:    3
      Usage (page): 0x1 (0xffa0)
      Report Descriptor: (367 bytes)
    0x05, 0x0c, 0x09, 0x01, 0xa1, 0x01, 0x85, 0x01, 0x15, 0x00, 
    0x25, 0x01, 0x09, 0xe9, 0x09, 0xea, 0x75, 0x01, 0x95, 0x02, 
    0x81, 0x06, 0x95, 0x06, 0x81, 0x01, 0x85, 0x02, 0x05, 0x0c, 
    0x09, 0x00, 0x95, 0x10, 0x81, 0x02, 0x85, 0x04, 0x09, 0x00, 
    0x75, 0x08, 0x95, 0x24, 0x91, 0x02, 0x85, 0x05, 0x09, 0x00, 
    0x95, 0x20, 0x81, 0x02, 0x85, 0x06, 0x09, 0x00, 0x95, 0x24, 
    0x91, 0x02, 0x85, 0x07, 0x09, 0x00, 0x95, 0x20, 0x81, 0x02, 
    0xc0, 0x05, 0x0b, 0x09, 0x05, 0xa1, 0x01, 0x85, 0x08, 0x15, 
    0x00, 0x25, 0x01, 0x09, 0x2f, 0x75, 0x01, 0x95, 0x01, 0x81, 
    0x06, 0x09, 0x20, 0x09, 0x21, 0x75, 0x01, 0x95, 0x02, 0x81, 
    0x22, 0x95, 0x05, 0x81, 0x01, 0x05, 0x08, 0x85, 0x09, 0x09, 
    0x09, 0x95, 0x01, 0x91, 0x22, 0x95, 0x07, 0x91, 0x01, 0x85, 
    0x17, 0x09, 0x17, 0x95, 0x01, 0x91, 0x22, 0x95, 0x07, 0x91, 
    0x01, 0x85, 0x18, 0x09, 0x18, 0x95, 0x01, 0x91, 0x22, 0x95, 
    0x07, 0x91, 0x01, 0x85, 0x1e, 0x09, 0x1e, 0x95, 0x01, 0x91, 
    0x22, 0x95, 0x07, 0x91, 0x01, 0x85, 0x20, 0x09, 0x20, 0x95, 
    0x01, 0x91, 0x22, 0x95, 0x07, 0x91, 0x01, 0x85, 0x2a, 0x09, 
    0x2a, 0x95, 0x01, 0x91, 0x22, 0x95, 0x07, 0x91, 0x01, 0xc0, 
    0x06, 0xa0, 0xff, 0x09, 0x01, 0xa1, 0x01, 0x85, 0x03, 0x09, 
    0x30, 0x75, 0x08, 0x95, 0x20, 0x91, 0x02, 0x85, 0x03, 0x09, 
    0x30, 0x75, 0x08, 0x95, 0x20, 0x81, 0x02, 0x85, 0x14, 0x09, 
    0xb1, 0x09, 0xb2, 0x09, 0xb5, 0x09, 0xb7, 0x09, 0xb3, 0x15, 
    0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x05, 0x81, 0x06, 0x95, 
    0x03, 0x81, 0x01, 0x85, 0x15, 0x09, 0x8c, 0x15, 0x00, 0x27, 
    0xff, 0xff, 0x00, 0x00, 0x75, 0x10, 0x95, 0x01, 0x81, 0x22, 
    0x85, 0x19, 0x09, 0x8d, 0x09, 0x8f, 0x09, 0x9e, 0x09, 0xdc, 
    0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x04, 0x91, 0x22, 
    0x09, 0xd2, 0x09, 0xd9, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 
    0x95, 0x02, 0x91, 0x06, 0x95, 0x02, 0x91, 0x01, 0x85, 0x1a, 
    0x09, 0xb5, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x01, 
    0x91, 0x22, 0x95, 0x07, 0x91, 0x01, 0x85, 0x1b, 0x09, 0xcf, 
    0x09, 0xb5, 0x09, 0xde, 0x75, 0x01, 0x95, 0x03, 0xb1, 0x22, 
    0x09, 0xd8, 0x95, 0x01, 0xb1, 0x23, 0x95, 0x04, 0xb1, 0x01, 
    0x09, 0x09, 0x09, 0x17, 0x09, 0x18, 0x09, 0x1e, 0x09, 0x20, 
    0x09, 0x2a, 0x75, 0x01, 0x95, 0x06, 0xb1, 0x22, 0x95, 0x02, 
    0xb1, 0x01, 0x85, 0x1f, 0x09, 0x9c, 0x75, 0x01, 0x95, 0x01, 
    0x81, 0x06, 0x95, 0x07, 0x81, 0x01, 0xc0, 
    
    Device Found
      type: 046d c52b
      path: DevSrvsID:4294969643
      serial_number: 
      Manufacturer: Logitech
      Product:      USB Receiver
      Release:      2410
      Interface:    2
      Usage (page): 0x1 (0xff00)
      Report Descriptor: (98 bytes)
    0x06, 0x00, 0xff, 0x09, 0x01, 0xa1, 0x01, 0x85, 0x10, 0x75, 
    0x08, 0x95, 0x06, 0x15, 0x00, 0x26, 0xff, 0x00, 0x09, 0x01, 
    0x81, 0x00, 0x09, 0x01, 0x91, 0x00, 0xc0, 0x06, 0x00, 0xff, 
    0x09, 0x02, 0xa1, 0x01, 0x85, 0x11, 0x75, 0x08, 0x95, 0x13, 
    0x15, 0x00, 0x26, 0xff, 0x00, 0x09, 0x02, 0x81, 0x00, 0x09, 
    0x02, 0x91, 0x00, 0xc0, 0x06, 0x00, 0xff, 0x09, 0x04, 0xa1, 
    0x01, 0x85, 0x20, 0x75, 0x08, 0x95, 0x0e, 0x15, 0x00, 0x26, 
    0xff, 0x00, 0x09, 0x41, 0x81, 0x00, 0x09, 0x41, 0x91, 0x00, 
    0x85, 0x21, 0x95, 0x1f, 0x15, 0x00, 0x26, 0xff, 0x00, 0x09, 
    0x42, 0x81, 0x00, 0x09, 0x42, 0x91, 0x00, 0xc0, 
    
    Device Found
      type: 046d c52b
      path: DevSrvsID:4294969643
      serial_number: 
      Manufacturer: Logitech
      Product:      USB Receiver
      Release:      2410
      Interface:    2
      Usage (page): 0x2 (0xff00)
      Report Descriptor: (98 bytes)
    0x06, 0x00, 0xff, 0x09, 0x01, 0xa1, 0x01, 0x85, 0x10, 0x75, 
    0x08, 0x95, 0x06, 0x15, 0x00, 0x26, 0xff, 0x00, 0x09, 0x01, 
    0x81, 0x00, 0x09, 0x01, 0x91, 0x00, 0xc0, 0x06, 0x00, 0xff, 
    0x09, 0x02, 0xa1, 0x01, 0x85, 0x11, 0x75, 0x08, 0x95, 0x13, 
    0x15, 0x00, 0x26, 0xff, 0x00, 0x09, 0x02, 0x81, 0x00, 0x09, 
    0x02, 0x91, 0x00, 0xc0, 0x06, 0x00, 0xff, 0x09, 0x04, 0xa1, 
    0x01, 0x85, 0x20, 0x75, 0x08, 0x95, 0x0e, 0x15, 0x00, 0x26, 
    0xff, 0x00, 0x09, 0x41, 0x81, 0x00, 0x09, 0x41, 0x91, 0x00, 
    0x85, 0x21, 0x95, 0x1f, 0x15, 0x00, 0x26, 0xff, 0x00, 0x09, 
    0x42, 0x81, 0x00, 0x09, 0x42, 0x91, 0x00, 0xc0, 
    
    Device Found
      type: 046d c52b
      path: DevSrvsID:4294969643
      serial_number: 
      Manufacturer: Logitech
      Product:      USB Receiver
      Release:      2410
      Interface:    2
      Usage (page): 0x4 (0xff00)
      Report Descriptor: (98 bytes)
    0x06, 0x00, 0xff, 0x09, 0x01, 0xa1, 0x01, 0x85, 0x10, 0x75, 
    0x08, 0x95, 0x06, 0x15, 0x00, 0x26, 0xff, 0x00, 0x09, 0x01, 
    0x81, 0x00, 0x09, 0x01, 0x91, 0x00, 0xc0, 0x06, 0x00, 0xff, 
    0x09, 0x02, 0xa1, 0x01, 0x85, 0x11, 0x75, 0x08, 0x95, 0x13, 
    0x15, 0x00, 0x26, 0xff, 0x00, 0x09, 0x02, 0x81, 0x00, 0x09, 
    0x02, 0x91, 0x00, 0xc0, 0x06, 0x00, 0xff, 0x09, 0x04, 0xa1, 
    0x01, 0x85, 0x20, 0x75, 0x08, 0x95, 0x0e, 0x15, 0x00, 0x26, 
    0xff, 0x00, 0x09, 0x41, 0x81, 0x00, 0x09, 0x41, 0x91, 0x00, 
    0x85, 0x21, 0x95, 0x1f, 0x15, 0x00, 0x26, 0xff, 0x00, 0x09, 
    0x42, 0x81, 0x00, 0x09, 0x42, 0x91, 0x00, 0xc0, 
    
    Device Found
      type: 046d 1000
      path: DevSrvsID:4294969732
      serial_number: 
      Manufacturer: Logitech
      Product:      LogiVirtualHIDDevice
      Release:      1
      Interface:    2
      Usage (page): 0x2 (0x1)
      Report Descriptor: (69 bytes)
    0x05, 0x01, 0x09, 0x02, 0xa1, 0x01, 0x85, 0x02, 0x09, 0x01, 
    0xa1, 0x00, 0x05, 0x09, 0x19, 0x01, 0x29, 0x10, 0x15, 0x00, 
    0x25, 0x01, 0x95, 0x10, 0x75, 0x01, 0x81, 0x02, 0x05, 0x01, 
    0x16, 0x01, 0xf8, 0x26, 0xff, 0x07, 0x75, 0x0c, 0x95, 0x02, 
    0x09, 0x30, 0x09, 0x31, 0x81, 0x06, 0x15, 0x81, 0x25, 0x7f, 
    0x75, 0x08, 0x95, 0x01, 0x09, 0x38, 0x81, 0x06, 0x05, 0x0c, 
    0x0a, 0x38, 0x02, 0x95, 0x01, 0x81, 0x06, 0xc0, 0xc0, 
    
    Device Found
      type: 046d 1000
      path: DevSrvsID:4294969732
      serial_number: 
      Manufacturer: Logitech
      Product:      LogiVirtualHIDDevice
      Release:      1
      Interface:    2
      Usage (page): 0x1 (0x1)
      Report Descriptor: (69 bytes)
    0x05, 0x01, 0x09, 0x02, 0xa1, 0x01, 0x85, 0x02, 0x09, 0x01, 
    0xa1, 0x00, 0x05, 0x09, 0x19, 0x01, 0x29, 0x10, 0x15, 0x00, 
    0x25, 0x01, 0x95, 0x10, 0x75, 0x01, 0x81, 0x02, 0x05, 0x01, 
    0x16, 0x01, 0xf8, 0x26, 0xff, 0x07, 0x75, 0x0c, 0x95, 0x02, 
    0x09, 0x30, 0x09, 0x31, 0x81, 0x06, 0x15, 0x81, 0x25, 0x7f, 
    0x75, 0x08, 0x95, 0x01, 0x09, 0x38, 0x81, 0x06, 0x05, 0x0c, 
    0x0a, 0x38, 0x02, 0x95, 0x01, 0x81, 0x06, 0xc0, 0xc0, 
    
    Device Found
      type: 046d c52b
      path: DevSrvsID:4294969641
      serial_number: 
      Manufacturer: Logitech
      Product:      USB Receiver
      Release:      2410
      Interface:    1
      Usage (page): 0x2 (0x1)
      Report Descriptor: (148 bytes)
    0x05, 0x01, 0x09, 0x02, 0xa1, 0x01, 0x85, 0x02, 0x09, 0x01, 
    0xa1, 0x00, 0x05, 0x09, 0x19, 0x01, 0x29, 0x10, 0x15, 0x00, 
    0x25, 0x01, 0x95, 0x10, 0x75, 0x01, 0x81, 0x02, 0x05, 0x01, 
    0x16, 0x01, 0xf8, 0x26, 0xff, 0x07, 0x75, 0x0c, 0x95, 0x02, 
    0x09, 0x30, 0x09, 0x31, 0x81, 0x06, 0x15, 0x81, 0x25, 0x7f, 
    0x75, 0x08, 0x95, 0x01, 0x09, 0x38, 0x81, 0x06, 0x05, 0x0c, 
    0x0a, 0x38, 0x02, 0x95, 0x01, 0x81, 0x06, 0xc0, 0xc0, 0x05, 
    0x0c, 0x09, 0x01, 0xa1, 0x01, 0x85, 0x03, 0x75, 0x10, 0x95, 
    0x02, 0x15, 0x01, 0x26, 0xff, 0x02, 0x19, 0x01, 0x2a, 0xff, 
    0x02, 0x81, 0x00, 0xc0, 0x05, 0x01, 0x09, 0x80, 0xa1, 0x01, 
    0x85, 0x04, 0x75, 0x02, 0x95, 0x01, 0x15, 0x01, 0x25, 0x03, 
    0x09, 0x82, 0x09, 0x81, 0x09, 0x83, 0x81, 0x60, 0x75, 0x06, 
    0x81, 0x03, 0xc0, 0x06, 0xbc, 0xff, 0x09, 0x88, 0xa1, 0x01, 
    0x85, 0x08, 0x19, 0x01, 0x29, 0xff, 0x15, 0x01, 0x26, 0xff, 
    0x00, 0x75, 0x08, 0x95, 0x01, 0x81, 0x00, 0xc0, 
    
    Device Found
      type: 046d c52b
      path: DevSrvsID:4294969641
      serial_number: 
      Manufacturer: Logitech
      Product:      USB Receiver
      Release:      2410
      Interface:    1
      Usage (page): 0x1 (0x1)
      Report Descriptor: (148 bytes)
    0x05, 0x01, 0x09, 0x02, 0xa1, 0x01, 0x85, 0x02, 0x09, 0x01, 
    0xa1, 0x00, 0x05, 0x09, 0x19, 0x01, 0x29, 0x10, 0x15, 0x00, 
    0x25, 0x01, 0x95, 0x10, 0x75, 0x01, 0x81, 0x02, 0x05, 0x01, 
    0x16, 0x01, 0xf8, 0x26, 0xff, 0x07, 0x75, 0x0c, 0x95, 0x02, 
    0x09, 0x30, 0x09, 0x31, 0x81, 0x06, 0x15, 0x81, 0x25, 0x7f, 
    0x75, 0x08, 0x95, 0x01, 0x09, 0x38, 0x81, 0x06, 0x05, 0x0c, 
    0x0a, 0x38, 0x02, 0x95, 0x01, 0x81, 0x06, 0xc0, 0xc0, 0x05, 
    0x0c, 0x09, 0x01, 0xa1, 0x01, 0x85, 0x03, 0x75, 0x10, 0x95, 
    0x02, 0x15, 0x01, 0x26, 0xff, 0x02, 0x19, 0x01, 0x2a, 0xff, 
    0x02, 0x81, 0x00, 0xc0, 0x05, 0x01, 0x09, 0x80, 0xa1, 0x01, 
    0x85, 0x04, 0x75, 0x02, 0x95, 0x01, 0x15, 0x01, 0x25, 0x03, 
    0x09, 0x82, 0x09, 0x81, 0x09, 0x83, 0x81, 0x60, 0x75, 0x06, 
    0x81, 0x03, 0xc0, 0x06, 0xbc, 0xff, 0x09, 0x88, 0xa1, 0x01, 
    0x85, 0x08, 0x19, 0x01, 0x29, 0xff, 0x15, 0x01, 0x26, 0xff, 
    0x00, 0x75, 0x08, 0x95, 0x01, 0x81, 0x00, 0xc0, 
    
    Device Found
      type: 046d c52b
      path: DevSrvsID:4294969641
      serial_number: 
      Manufacturer: Logitech
      Product:      USB Receiver
      Release:      2410
      Interface:    1
      Usage (page): 0x1 (0xc)
      Report Descriptor: (148 bytes)
    0x05, 0x01, 0x09, 0x02, 0xa1, 0x01, 0x85, 0x02, 0x09, 0x01, 
    0xa1, 0x00, 0x05, 0x09, 0x19, 0x01, 0x29, 0x10, 0x15, 0x00, 
    0x25, 0x01, 0x95, 0x10, 0x75, 0x01, 0x81, 0x02, 0x05, 0x01, 
    0x16, 0x01, 0xf8, 0x26, 0xff, 0x07, 0x75, 0x0c, 0x95, 0x02, 
    0x09, 0x30, 0x09, 0x31, 0x81, 0x06, 0x15, 0x81, 0x25, 0x7f, 
    0x75, 0x08, 0x95, 0x01, 0x09, 0x38, 0x81, 0x06, 0x05, 0x0c, 
    0x0a, 0x38, 0x02, 0x95, 0x01, 0x81, 0x06, 0xc0, 0xc0, 0x05, 
    0x0c, 0x09, 0x01, 0xa1, 0x01, 0x85, 0x03, 0x75, 0x10, 0x95, 
    0x02, 0x15, 0x01, 0x26, 0xff, 0x02, 0x19, 0x01, 0x2a, 0xff, 
    0x02, 0x81, 0x00, 0xc0, 0x05, 0x01, 0x09, 0x80, 0xa1, 0x01, 
    0x85, 0x04, 0x75, 0x02, 0x95, 0x01, 0x15, 0x01, 0x25, 0x03, 
    0x09, 0x82, 0x09, 0x81, 0x09, 0x83, 0x81, 0x60, 0x75, 0x06, 
    0x81, 0x03, 0xc0, 0x06, 0xbc, 0xff, 0x09, 0x88, 0xa1, 0x01, 
    0x85, 0x08, 0x19, 0x01, 0x29, 0xff, 0x15, 0x01, 0x26, 0xff, 
    0x00, 0x75, 0x08, 0x95, 0x01, 0x81, 0x00, 0xc0, 
    
    Device Found
      type: 046d c52b
      path: DevSrvsID:4294969641
      serial_number: 
      Manufacturer: Logitech
      Product:      USB Receiver
      Release:      2410
      Interface:    1
      Usage (page): 0x80 (0x1)
      Report Descriptor: (148 bytes)
    0x05, 0x01, 0x09, 0x02, 0xa1, 0x01, 0x85, 0x02, 0x09, 0x01, 
    0xa1, 0x00, 0x05, 0x09, 0x19, 0x01, 0x29, 0x10, 0x15, 0x00, 
    0x25, 0x01, 0x95, 0x10, 0x75, 0x01, 0x81, 0x02, 0x05, 0x01, 
    0x16, 0x01, 0xf8, 0x26, 0xff, 0x07, 0x75, 0x0c, 0x95, 0x02, 
    0x09, 0x30, 0x09, 0x31, 0x81, 0x06, 0x15, 0x81, 0x25, 0x7f, 
    0x75, 0x08, 0x95, 0x01, 0x09, 0x38, 0x81, 0x06, 0x05, 0x0c, 
    0x0a, 0x38, 0x02, 0x95, 0x01, 0x81, 0x06, 0xc0, 0xc0, 0x05, 
    0x0c, 0x09, 0x01, 0xa1, 0x01, 0x85, 0x03, 0x75, 0x10, 0x95, 
    0x02, 0x15, 0x01, 0x26, 0xff, 0x02, 0x19, 0x01, 0x2a, 0xff, 
    0x02, 0x81, 0x00, 0xc0, 0x05, 0x01, 0x09, 0x80, 0xa1, 0x01, 
    0x85, 0x04, 0x75, 0x02, 0x95, 0x01, 0x15, 0x01, 0x25, 0x03, 
    0x09, 0x82, 0x09, 0x81, 0x09, 0x83, 0x81, 0x60, 0x75, 0x06, 
    0x81, 0x03, 0xc0, 0x06, 0xbc, 0xff, 0x09, 0x88, 0xa1, 0x01, 
    0x85, 0x08, 0x19, 0x01, 0x29, 0xff, 0x15, 0x01, 0x26, 0xff, 
    0x00, 0x75, 0x08, 0x95, 0x01, 0x81, 0x00, 0xc0, 
    
    Device Found
      type: 046d c52b
      path: DevSrvsID:4294969641
      serial_number: 
      Manufacturer: Logitech
      Product:      USB Receiver
      Release:      2410
      Interface:    1
      Usage (page): 0x88 (0xffbc)
      Report Descriptor: (148 bytes)
    0x05, 0x01, 0x09, 0x02, 0xa1, 0x01, 0x85, 0x02, 0x09, 0x01, 
    0xa1, 0x00, 0x05, 0x09, 0x19, 0x01, 0x29, 0x10, 0x15, 0x00, 
    0x25, 0x01, 0x95, 0x10, 0x75, 0x01, 0x81, 0x02, 0x05, 0x01, 
    0x16, 0x01, 0xf8, 0x26, 0xff, 0x07, 0x75, 0x0c, 0x95, 0x02, 
    0x09, 0x30, 0x09, 0x31, 0x81, 0x06, 0x15, 0x81, 0x25, 0x7f, 
    0x75, 0x08, 0x95, 0x01, 0x09, 0x38, 0x81, 0x06, 0x05, 0x0c, 
    0x0a, 0x38, 0x02, 0x95, 0x01, 0x81, 0x06, 0xc0, 0xc0, 0x05, 
    0x0c, 0x09, 0x01, 0xa1, 0x01, 0x85, 0x03, 0x75, 0x10, 0x95, 
    0x02, 0x15, 0x01, 0x26, 0xff, 0x02, 0x19, 0x01, 0x2a, 0xff, 
    0x02, 0x81, 0x00, 0xc0, 0x05, 0x01, 0x09, 0x80, 0xa1, 0x01, 
    0x85, 0x04, 0x75, 0x02, 0x95, 0x01, 0x15, 0x01, 0x25, 0x03, 
    0x09, 0x82, 0x09, 0x81, 0x09, 0x83, 0x81, 0x60, 0x75, 0x06, 
    0x81, 0x03, 0xc0, 0x06, 0xbc, 0xff, 0x09, 0x88, 0xa1, 0x01, 
    0x85, 0x08, 0x19, 0x01, 0x29, 0xff, 0x15, 0x01, 0x26, 0xff, 
    0x00, 0x75, 0x08, 0x95, 0x01, 0x81, 0x00, 0xc0, 
    
    Device Found
      type: 046d c52b
      path: DevSrvsID:4294969637
      serial_number: 
      Manufacturer: Logitech
      Product:      USB Receiver
      Release:      2410
      Interface:    0
      Usage (page): 0x6 (0x1)
      Report Descriptor: not available.
    
    Device Found
      type: 0000 0000
      path: DevSrvsID:4294968845
      serial_number: 
      Manufacturer: APPL
      Product:      BTM
      Release:      0
      Interface:    -1
      Usage (page): 0x48 (0xff00)
      Report Descriptor: (50 bytes)
    0x06, 0x00, 0xff, 0x0a, 0x48, 0x00, 0xa1, 0x01, 0x06, 0x29, 
    0xff, 0x85, 0x01, 0x25, 0x7f, 0x95, 0x01, 0x75, 0x08, 0x09, 
    0x01, 0xb1, 0x02, 0x09, 0x02, 0xb1, 0x02, 0x09, 0x25, 0xa1, 
    0x03, 0x85, 0x02, 0x24, 0x76, 0x98, 0x3e, 0x09, 0x03, 0x81, 
    0x22, 0x09, 0x04, 0x76, 0x38, 0x02, 0xb1, 0x02, 0xc0, 0xc0, 
    
    Device Found
      type: 0000 0000
      path: DevSrvsID:4294968508
      serial_number: 
      Manufacturer: Apple
      Product:      Headset
      Release:      0
      Interface:    -1
      Usage (page): 0x1 (0xc)
      Report Descriptor: (29 bytes)
    0x05, 0x0c, 0x09, 0x01, 0xa1, 0x01, 0x05, 0x0c, 0x09, 0xcd, 
    0x09, 0xea, 0x09, 0xe9, 0x15, 0x00, 0x25, 0x01, 0x95, 0x03, 
    0x75, 0x01, 0x81, 0x02, 0x95, 0x05, 0x81, 0x05, 0xc0, 
    
    unable to open device
    
    
  17. mcuee commented on Aug 25, 2021

    @mcuee
    Member

    @Youw The issue goes away once I run with sudo. Not so sure why.

    Device Found
      type: 046d c52b
      path: DevSrvsID:4294969637
      serial_number: 
      Manufacturer: Logitech
      Product:      USB Receiver
      Release:      2410
      Interface:    0
      Usage (page): 0x6 (0x1)
      Report Descriptor: (59 bytes)
    0x05, 0x01, 0x09, 0x06, 0xa1, 0x01, 0x05, 0x07, 0x19, 0xe0, 
    0x29, 0xe7, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x08, 
    0x81, 0x02, 0x81, 0x03, 0x95, 0x05, 0x05, 0x08, 0x19, 0x01, 
    0x29, 0x05, 0x91, 0x02, 0x95, 0x01, 0x75, 0x03, 0x91, 0x01, 
    0x95, 0x06, 0x75, 0x08, 0x15, 0x00, 0x26, 0xa4, 0x00, 0x05, 
    0x07, 0x19, 0x00, 0x2a, 0xa4, 0x00, 0x81, 0x00, 0xc0, 
    
    hidapi/buildtest on  mytest [!?] via △ v3.21.1 ❯ sudo ./hidtest/hidtest
    Password:
    hidapi test/example tool. Compiled with hidapi version 0.11.0, runtime version 0.11.0.
    Compile-time version matches runtime version of hidapi.
    
    Device Found
      type: 046d c52b
      path: DevSrvsID:4294969641
      serial_number: 
      Manufacturer: Logitech
      Product:      USB Receiver
      Release:      2410
      Interface:    1
      Usage (page): 0x2 (0x1)
      Report Descriptor: (148 bytes)
    0x05, 0x01, 0x09, 0x02, 0xa1, 0x01, 0x85, 0x02, 0x09, 0x01, 
    0xa1, 0x00, 0x05, 0x09, 0x19, 0x01, 0x29, 0x10, 0x15, 0x00, 
    0x25, 0x01, 0x95, 0x10, 0x75, 0x01, 0x81, 0x02, 0x05, 0x01, 
    0x16, 0x01, 0xf8, 0x26, 0xff, 0x07, 0x75, 0x0c, 0x95, 0x02, 
    0x09, 0x30, 0x09, 0x31, 0x81, 0x06, 0x15, 0x81, 0x25, 0x7f, 
    0x75, 0x08, 0x95, 0x01, 0x09, 0x38, 0x81, 0x06, 0x05, 0x0c, 
    0x0a, 0x38, 0x02, 0x95, 0x01, 0x81, 0x06, 0xc0, 0xc0, 0x05, 
    0x0c, 0x09, 0x01, 0xa1, 0x01, 0x85, 0x03, 0x75, 0x10, 0x95, 
    0x02, 0x15, 0x01, 0x26, 0xff, 0x02, 0x19, 0x01, 0x2a, 0xff, 
    0x02, 0x81, 0x00, 0xc0, 0x05, 0x01, 0x09, 0x80, 0xa1, 0x01, 
    0x85, 0x04, 0x75, 0x02, 0x95, 0x01, 0x15, 0x01, 0x25, 0x03, 
    0x09, 0x82, 0x09, 0x81, 0x09, 0x83, 0x81, 0x60, 0x75, 0x06, 
    0x81, 0x03, 0xc0, 0x06, 0xbc, 0xff, 0x09, 0x88, 0xa1, 0x01, 
    0x85, 0x08, 0x19, 0x01, 0x29, 0xff, 0x15, 0x01, 0x26, 0xff, 
    0x00, 0x75, 0x08, 0x95, 0x01, 0x81, 0x00, 0xc0, 
    
    Device Found
      type: 046d c52b
      path: DevSrvsID:4294969641
      serial_number: 
      Manufacturer: Logitech
      Product:      USB Receiver
      Release:      2410
      Interface:    1
      Usage (page): 0x1 (0x1)
      Report Descriptor: (148 bytes)
    0x05, 0x01, 0x09, 0x02, 0xa1, 0x01, 0x85, 0x02, 0x09, 0x01, 
    0xa1, 0x00, 0x05, 0x09, 0x19, 0x01, 0x29, 0x10, 0x15, 0x00, 
    0x25, 0x01, 0x95, 0x10, 0x75, 0x01, 0x81, 0x02, 0x05, 0x01, 
    0x16, 0x01, 0xf8, 0x26, 0xff, 0x07, 0x75, 0x0c, 0x95, 0x02, 
    0x09, 0x30, 0x09, 0x31, 0x81, 0x06, 0x15, 0x81, 0x25, 0x7f, 
    0x75, 0x08, 0x95, 0x01, 0x09, 0x38, 0x81, 0x06, 0x05, 0x0c, 
    0x0a, 0x38, 0x02, 0x95, 0x01, 0x81, 0x06, 0xc0, 0xc0, 0x05, 
    0x0c, 0x09, 0x01, 0xa1, 0x01, 0x85, 0x03, 0x75, 0x10, 0x95, 
    0x02, 0x15, 0x01, 0x26, 0xff, 0x02, 0x19, 0x01, 0x2a, 0xff, 
    0x02, 0x81, 0x00, 0xc0, 0x05, 0x01, 0x09, 0x80, 0xa1, 0x01, 
    0x85, 0x04, 0x75, 0x02, 0x95, 0x01, 0x15, 0x01, 0x25, 0x03, 
    0x09, 0x82, 0x09, 0x81, 0x09, 0x83, 0x81, 0x60, 0x75, 0x06, 
    0x81, 0x03, 0xc0, 0x06, 0xbc, 0xff, 0x09, 0x88, 0xa1, 0x01, 
    0x85, 0x08, 0x19, 0x01, 0x29, 0xff, 0x15, 0x01, 0x26, 0xff, 
    0x00, 0x75, 0x08, 0x95, 0x01, 0x81, 0x00, 0xc0, 
    
    Device Found
      type: 046d c52b
      path: DevSrvsID:4294969641
      serial_number: 
      Manufacturer: Logitech
      Product:      USB Receiver
      Release:      2410
      Interface:    1
      Usage (page): 0x1 (0xc)
      Report Descriptor: (148 bytes)
    0x05, 0x01, 0x09, 0x02, 0xa1, 0x01, 0x85, 0x02, 0x09, 0x01, 
    0xa1, 0x00, 0x05, 0x09, 0x19, 0x01, 0x29, 0x10, 0x15, 0x00, 
    0x25, 0x01, 0x95, 0x10, 0x75, 0x01, 0x81, 0x02, 0x05, 0x01, 
    0x16, 0x01, 0xf8, 0x26, 0xff, 0x07, 0x75, 0x0c, 0x95, 0x02, 
    0x09, 0x30, 0x09, 0x31, 0x81, 0x06, 0x15, 0x81, 0x25, 0x7f, 
    0x75, 0x08, 0x95, 0x01, 0x09, 0x38, 0x81, 0x06, 0x05, 0x0c, 
    0x0a, 0x38, 0x02, 0x95, 0x01, 0x81, 0x06, 0xc0, 0xc0, 0x05, 
    0x0c, 0x09, 0x01, 0xa1, 0x01, 0x85, 0x03, 0x75, 0x10, 0x95, 
    0x02, 0x15, 0x01, 0x26, 0xff, 0x02, 0x19, 0x01, 0x2a, 0xff, 
    0x02, 0x81, 0x00, 0xc0, 0x05, 0x01, 0x09, 0x80, 0xa1, 0x01, 
    0x85, 0x04, 0x75, 0x02, 0x95, 0x01, 0x15, 0x01, 0x25, 0x03, 
    0x09, 0x82, 0x09, 0x81, 0x09, 0x83, 0x81, 0x60, 0x75, 0x06, 
    0x81, 0x03, 0xc0, 0x06, 0xbc, 0xff, 0x09, 0x88, 0xa1, 0x01, 
    0x85, 0x08, 0x19, 0x01, 0x29, 0xff, 0x15, 0x01, 0x26, 0xff, 
    0x00, 0x75, 0x08, 0x95, 0x01, 0x81, 0x00, 0xc0, 
    
    Device Found
      type: 046d c52b
      path: DevSrvsID:4294969641
      serial_number: 
      Manufacturer: Logitech
      Product:      USB Receiver
      Release:      2410
      Interface:    1
      Usage (page): 0x80 (0x1)
      Report Descriptor: (148 bytes)
    0x05, 0x01, 0x09, 0x02, 0xa1, 0x01, 0x85, 0x02, 0x09, 0x01, 
    0xa1, 0x00, 0x05, 0x09, 0x19, 0x01, 0x29, 0x10, 0x15, 0x00, 
    0x25, 0x01, 0x95, 0x10, 0x75, 0x01, 0x81, 0x02, 0x05, 0x01, 
    0x16, 0x01, 0xf8, 0x26, 0xff, 0x07, 0x75, 0x0c, 0x95, 0x02, 
    0x09, 0x30, 0x09, 0x31, 0x81, 0x06, 0x15, 0x81, 0x25, 0x7f, 
    0x75, 0x08, 0x95, 0x01, 0x09, 0x38, 0x81, 0x06, 0x05, 0x0c, 
    0x0a, 0x38, 0x02, 0x95, 0x01, 0x81, 0x06, 0xc0, 0xc0, 0x05, 
    0x0c, 0x09, 0x01, 0xa1, 0x01, 0x85, 0x03, 0x75, 0x10, 0x95, 
    0x02, 0x15, 0x01, 0x26, 0xff, 0x02, 0x19, 0x01, 0x2a, 0xff, 
    0x02, 0x81, 0x00, 0xc0, 0x05, 0x01, 0x09, 0x80, 0xa1, 0x01, 
    0x85, 0x04, 0x75, 0x02, 0x95, 0x01, 0x15, 0x01, 0x25, 0x03, 
    0x09, 0x82, 0x09, 0x81, 0x09, 0x83, 0x81, 0x60, 0x75, 0x06, 
    0x81, 0x03, 0xc0, 0x06, 0xbc, 0xff, 0x09, 0x88, 0xa1, 0x01, 
    0x85, 0x08, 0x19, 0x01, 0x29, 0xff, 0x15, 0x01, 0x26, 0xff, 
    0x00, 0x75, 0x08, 0x95, 0x01, 0x81, 0x00, 0xc0, 
    
    Device Found
      type: 046d c52b
      path: DevSrvsID:4294969641
      serial_number: 
      Manufacturer: Logitech
      Product:      USB Receiver
      Release:      2410
      Interface:    1
      Usage (page): 0x88 (0xffbc)
      Report Descriptor: (148 bytes)
    0x05, 0x01, 0x09, 0x02, 0xa1, 0x01, 0x85, 0x02, 0x09, 0x01, 
    0xa1, 0x00, 0x05, 0x09, 0x19, 0x01, 0x29, 0x10, 0x15, 0x00, 
    0x25, 0x01, 0x95, 0x10, 0x75, 0x01, 0x81, 0x02, 0x05, 0x01, 
    0x16, 0x01, 0xf8, 0x26, 0xff, 0x07, 0x75, 0x0c, 0x95, 0x02, 
    0x09, 0x30, 0x09, 0x31, 0x81, 0x06, 0x15, 0x81, 0x25, 0x7f, 
    0x75, 0x08, 0x95, 0x01, 0x09, 0x38, 0x81, 0x06, 0x05, 0x0c, 
    0x0a, 0x38, 0x02, 0x95, 0x01, 0x81, 0x06, 0xc0, 0xc0, 0x05, 
    0x0c, 0x09, 0x01, 0xa1, 0x01, 0x85, 0x03, 0x75, 0x10, 0x95, 
    0x02, 0x15, 0x01, 0x26, 0xff, 0x02, 0x19, 0x01, 0x2a, 0xff, 
    0x02, 0x81, 0x00, 0xc0, 0x05, 0x01, 0x09, 0x80, 0xa1, 0x01, 
    0x85, 0x04, 0x75, 0x02, 0x95, 0x01, 0x15, 0x01, 0x25, 0x03, 
    0x09, 0x82, 0x09, 0x81, 0x09, 0x83, 0x81, 0x60, 0x75, 0x06, 
    0x81, 0x03, 0xc0, 0x06, 0xbc, 0xff, 0x09, 0x88, 0xa1, 0x01, 
    0x85, 0x08, 0x19, 0x01, 0x29, 0xff, 0x15, 0x01, 0x26, 0xff, 
    0x00, 0x75, 0x08, 0x95, 0x01, 0x81, 0x00, 0xc0, 
    
    Device Found
      type: 0000 0000
      path: DevSrvsID:4294969110
      serial_number: 
      Manufacturer: Apple
      Product:      
      Release:      0
      Interface:    -1
      Usage (page): 0xff (0xff00)
      Report Descriptor: (20 bytes)
    0x06, 0x00, 0xff, 0x0a, 0xff, 0x00, 0xa1, 0x01, 0x15, 0x00, 
    0x26, 0xff, 0x00, 0x75, 0x08, 0x95, 0x01, 0x81, 0x02, 0xc0, 
    
    Device Found
      type: 046d c52b
      path: DevSrvsID:4294969637
      serial_number: 
      Manufacturer: Logitech
      Product:      USB Receiver
      Release:      2410
      Interface:    0
      Usage (page): 0x6 (0x1)
      Report Descriptor: (59 bytes)
    0x05, 0x01, 0x09, 0x06, 0xa1, 0x01, 0x05, 0x07, 0x19, 0xe0, 
    0x29, 0xe7, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x08, 
    0x81, 0x02, 0x81, 0x03, 0x95, 0x05, 0x05, 0x08, 0x19, 0x01, 
    0x29, 0x05, 0x91, 0x02, 0x95, 0x01, 0x75, 0x03, 0x91, 0x01, 
    0x95, 0x06, 0x75, 0x08, 0x15, 0x00, 0x26, 0xa4, 0x00, 0x05, 
    0x07, 0x19, 0x00, 0x2a, 0xa4, 0x00, 0x81, 0x00, 0xc0, 
    
    Device Found
      type: 046d 1000
      path: DevSrvsID:4294969732
      serial_number: 
      Manufacturer: Logitech
      Product:      LogiVirtualHIDDevice
      Release:      1
      Interface:    2
      Usage (page): 0x2 (0x1)
      Report Descriptor: (69 bytes)
    0x05, 0x01, 0x09, 0x02, 0xa1, 0x01, 0x85, 0x02, 0x09, 0x01, 
    0xa1, 0x00, 0x05, 0x09, 0x19, 0x01, 0x29, 0x10, 0x15, 0x00, 
    0x25, 0x01, 0x95, 0x10, 0x75, 0x01, 0x81, 0x02, 0x05, 0x01, 
    0x16, 0x01, 0xf8, 0x26, 0xff, 0x07, 0x75, 0x0c, 0x95, 0x02, 
    0x09, 0x30, 0x09, 0x31, 0x81, 0x06, 0x15, 0x81, 0x25, 0x7f, 
    0x75, 0x08, 0x95, 0x01, 0x09, 0x38, 0x81, 0x06, 0x05, 0x0c, 
    0x0a, 0x38, 0x02, 0x95, 0x01, 0x81, 0x06, 0xc0, 0xc0, 
    
    Device Found
      type: 046d 1000
      path: DevSrvsID:4294969732
      serial_number: 
      Manufacturer: Logitech
      Product:      LogiVirtualHIDDevice
      Release:      1
      Interface:    2
      Usage (page): 0x1 (0x1)
      Report Descriptor: (69 bytes)
    0x05, 0x01, 0x09, 0x02, 0xa1, 0x01, 0x85, 0x02, 0x09, 0x01, 
    0xa1, 0x00, 0x05, 0x09, 0x19, 0x01, 0x29, 0x10, 0x15, 0x00, 
    0x25, 0x01, 0x95, 0x10, 0x75, 0x01, 0x81, 0x02, 0x05, 0x01, 
    0x16, 0x01, 0xf8, 0x26, 0xff, 0x07, 0x75, 0x0c, 0x95, 0x02, 
    0x09, 0x30, 0x09, 0x31, 0x81, 0x06, 0x15, 0x81, 0x25, 0x7f, 
    0x75, 0x08, 0x95, 0x01, 0x09, 0x38, 0x81, 0x06, 0x05, 0x0c, 
    0x0a, 0x38, 0x02, 0x95, 0x01, 0x81, 0x06, 0xc0, 0xc0, 
    
    Device Found
      type: 0000 0000
      path: DevSrvsID:4294968508
      serial_number: 
      Manufacturer: Apple
      Product:      Headset
      Release:      0
      Interface:    -1
      Usage (page): 0x1 (0xc)
      Report Descriptor: (29 bytes)
    0x05, 0x0c, 0x09, 0x01, 0xa1, 0x01, 0x05, 0x0c, 0x09, 0xcd, 
    0x09, 0xea, 0x09, 0xe9, 0x15, 0x00, 0x25, 0x01, 0x95, 0x03, 
    0x75, 0x01, 0x81, 0x02, 0x95, 0x05, 0x81, 0x05, 0xc0, 
    
    Device Found
      type: 047f c025
      path: DevSrvsID:4294969635
      serial_number: CB13A3E40E8E47D6A40769C27E90A38E
      Manufacturer: Plantronics
      Product:      Plantronics C320-M
      Release:      135
      Interface:    3
      Usage (page): 0x1 (0xc)
      Report Descriptor: (367 bytes)
    0x05, 0x0c, 0x09, 0x01, 0xa1, 0x01, 0x85, 0x01, 0x15, 0x00, 
    0x25, 0x01, 0x09, 0xe9, 0x09, 0xea, 0x75, 0x01, 0x95, 0x02, 
    0x81, 0x06, 0x95, 0x06, 0x81, 0x01, 0x85, 0x02, 0x05, 0x0c, 
    0x09, 0x00, 0x95, 0x10, 0x81, 0x02, 0x85, 0x04, 0x09, 0x00, 
    0x75, 0x08, 0x95, 0x24, 0x91, 0x02, 0x85, 0x05, 0x09, 0x00, 
    0x95, 0x20, 0x81, 0x02, 0x85, 0x06, 0x09, 0x00, 0x95, 0x24, 
    0x91, 0x02, 0x85, 0x07, 0x09, 0x00, 0x95, 0x20, 0x81, 0x02, 
    0xc0, 0x05, 0x0b, 0x09, 0x05, 0xa1, 0x01, 0x85, 0x08, 0x15, 
    0x00, 0x25, 0x01, 0x09, 0x2f, 0x75, 0x01, 0x95, 0x01, 0x81, 
    0x06, 0x09, 0x20, 0x09, 0x21, 0x75, 0x01, 0x95, 0x02, 0x81, 
    0x22, 0x95, 0x05, 0x81, 0x01, 0x05, 0x08, 0x85, 0x09, 0x09, 
    0x09, 0x95, 0x01, 0x91, 0x22, 0x95, 0x07, 0x91, 0x01, 0x85, 
    0x17, 0x09, 0x17, 0x95, 0x01, 0x91, 0x22, 0x95, 0x07, 0x91, 
    0x01, 0x85, 0x18, 0x09, 0x18, 0x95, 0x01, 0x91, 0x22, 0x95, 
    0x07, 0x91, 0x01, 0x85, 0x1e, 0x09, 0x1e, 0x95, 0x01, 0x91, 
    0x22, 0x95, 0x07, 0x91, 0x01, 0x85, 0x20, 0x09, 0x20, 0x95, 
    0x01, 0x91, 0x22, 0x95, 0x07, 0x91, 0x01, 0x85, 0x2a, 0x09, 
    0x2a, 0x95, 0x01, 0x91, 0x22, 0x95, 0x07, 0x91, 0x01, 0xc0, 
    0x06, 0xa0, 0xff, 0x09, 0x01, 0xa1, 0x01, 0x85, 0x03, 0x09, 
    0x30, 0x75, 0x08, 0x95, 0x20, 0x91, 0x02, 0x85, 0x03, 0x09, 
    0x30, 0x75, 0x08, 0x95, 0x20, 0x81, 0x02, 0x85, 0x14, 0x09, 
    0xb1, 0x09, 0xb2, 0x09, 0xb5, 0x09, 0xb7, 0x09, 0xb3, 0x15, 
    0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x05, 0x81, 0x06, 0x95, 
    0x03, 0x81, 0x01, 0x85, 0x15, 0x09, 0x8c, 0x15, 0x00, 0x27, 
    0xff, 0xff, 0x00, 0x00, 0x75, 0x10, 0x95, 0x01, 0x81, 0x22, 
    0x85, 0x19, 0x09, 0x8d, 0x09, 0x8f, 0x09, 0x9e, 0x09, 0xdc, 
    0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x04, 0x91, 0x22, 
    0x09, 0xd2, 0x09, 0xd9, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 
    0x95, 0x02, 0x91, 0x06, 0x95, 0x02, 0x91, 0x01, 0x85, 0x1a, 
    0x09, 0xb5, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x01, 
    0x91, 0x22, 0x95, 0x07, 0x91, 0x01, 0x85, 0x1b, 0x09, 0xcf, 
    0x09, 0xb5, 0x09, 0xde, 0x75, 0x01, 0x95, 0x03, 0xb1, 0x22, 
    0x09, 0xd8, 0x95, 0x01, 0xb1, 0x23, 0x95, 0x04, 0xb1, 0x01, 
    0x09, 0x09, 0x09, 0x17, 0x09, 0x18, 0x09, 0x1e, 0x09, 0x20, 
    0x09, 0x2a, 0x75, 0x01, 0x95, 0x06, 0xb1, 0x22, 0x95, 0x02, 
    0xb1, 0x01, 0x85, 0x1f, 0x09, 0x9c, 0x75, 0x01, 0x95, 0x01, 
    0x81, 0x06, 0x95, 0x07, 0x81, 0x01, 0xc0, 
    
    Device Found
      type: 047f c025
      path: DevSrvsID:4294969635
      serial_number: CB13A3E40E8E47D6A40769C27E90A38E
      Manufacturer: Plantronics
      Product:      Plantronics C320-M
      Release:      135
      Interface:    3
      Usage (page): 0x5 (0xb)
      Report Descriptor: (367 bytes)
    0x05, 0x0c, 0x09, 0x01, 0xa1, 0x01, 0x85, 0x01, 0x15, 0x00, 
    0x25, 0x01, 0x09, 0xe9, 0x09, 0xea, 0x75, 0x01, 0x95, 0x02, 
    0x81, 0x06, 0x95, 0x06, 0x81, 0x01, 0x85, 0x02, 0x05, 0x0c, 
    0x09, 0x00, 0x95, 0x10, 0x81, 0x02, 0x85, 0x04, 0x09, 0x00, 
    0x75, 0x08, 0x95, 0x24, 0x91, 0x02, 0x85, 0x05, 0x09, 0x00, 
    0x95, 0x20, 0x81, 0x02, 0x85, 0x06, 0x09, 0x00, 0x95, 0x24, 
    0x91, 0x02, 0x85, 0x07, 0x09, 0x00, 0x95, 0x20, 0x81, 0x02, 
    0xc0, 0x05, 0x0b, 0x09, 0x05, 0xa1, 0x01, 0x85, 0x08, 0x15, 
    0x00, 0x25, 0x01, 0x09, 0x2f, 0x75, 0x01, 0x95, 0x01, 0x81, 
    0x06, 0x09, 0x20, 0x09, 0x21, 0x75, 0x01, 0x95, 0x02, 0x81, 
    0x22, 0x95, 0x05, 0x81, 0x01, 0x05, 0x08, 0x85, 0x09, 0x09, 
    0x09, 0x95, 0x01, 0x91, 0x22, 0x95, 0x07, 0x91, 0x01, 0x85, 
    0x17, 0x09, 0x17, 0x95, 0x01, 0x91, 0x22, 0x95, 0x07, 0x91, 
    0x01, 0x85, 0x18, 0x09, 0x18, 0x95, 0x01, 0x91, 0x22, 0x95, 
    0x07, 0x91, 0x01, 0x85, 0x1e, 0x09, 0x1e, 0x95, 0x01, 0x91, 
    0x22, 0x95, 0x07, 0x91, 0x01, 0x85, 0x20, 0x09, 0x20, 0x95, 
    0x01, 0x91, 0x22, 0x95, 0x07, 0x91, 0x01, 0x85, 0x2a, 0x09, 
    0x2a, 0x95, 0x01, 0x91, 0x22, 0x95, 0x07, 0x91, 0x01, 0xc0, 
    0x06, 0xa0, 0xff, 0x09, 0x01, 0xa1, 0x01, 0x85, 0x03, 0x09, 
    0x30, 0x75, 0x08, 0x95, 0x20, 0x91, 0x02, 0x85, 0x03, 0x09, 
    0x30, 0x75, 0x08, 0x95, 0x20, 0x81, 0x02, 0x85, 0x14, 0x09, 
    0xb1, 0x09, 0xb2, 0x09, 0xb5, 0x09, 0xb7, 0x09, 0xb3, 0x15, 
    0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x05, 0x81, 0x06, 0x95, 
    0x03, 0x81, 0x01, 0x85, 0x15, 0x09, 0x8c, 0x15, 0x00, 0x27, 
    0xff, 0xff, 0x00, 0x00, 0x75, 0x10, 0x95, 0x01, 0x81, 0x22, 
    0x85, 0x19, 0x09, 0x8d, 0x09, 0x8f, 0x09, 0x9e, 0x09, 0xdc, 
    0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x04, 0x91, 0x22, 
    0x09, 0xd2, 0x09, 0xd9, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 
    0x95, 0x02, 0x91, 0x06, 0x95, 0x02, 0x91, 0x01, 0x85, 0x1a, 
    0x09, 0xb5, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x01, 
    0x91, 0x22, 0x95, 0x07, 0x91, 0x01, 0x85, 0x1b, 0x09, 0xcf, 
    0x09, 0xb5, 0x09, 0xde, 0x75, 0x01, 0x95, 0x03, 0xb1, 0x22, 
    0x09, 0xd8, 0x95, 0x01, 0xb1, 0x23, 0x95, 0x04, 0xb1, 0x01, 
    0x09, 0x09, 0x09, 0x17, 0x09, 0x18, 0x09, 0x1e, 0x09, 0x20, 
    0x09, 0x2a, 0x75, 0x01, 0x95, 0x06, 0xb1, 0x22, 0x95, 0x02, 
    0xb1, 0x01, 0x85, 0x1f, 0x09, 0x9c, 0x75, 0x01, 0x95, 0x01, 
    0x81, 0x06, 0x95, 0x07, 0x81, 0x01, 0xc0, 
    
    Device Found
      type: 047f c025
      path: DevSrvsID:4294969635
      serial_number: CB13A3E40E8E47D6A40769C27E90A38E
      Manufacturer: Plantronics
      Product:      Plantronics C320-M
      Release:      135
      Interface:    3
      Usage (page): 0x1 (0xffa0)
      Report Descriptor: (367 bytes)
    0x05, 0x0c, 0x09, 0x01, 0xa1, 0x01, 0x85, 0x01, 0x15, 0x00, 
    0x25, 0x01, 0x09, 0xe9, 0x09, 0xea, 0x75, 0x01, 0x95, 0x02, 
    0x81, 0x06, 0x95, 0x06, 0x81, 0x01, 0x85, 0x02, 0x05, 0x0c, 
    0x09, 0x00, 0x95, 0x10, 0x81, 0x02, 0x85, 0x04, 0x09, 0x00, 
    0x75, 0x08, 0x95, 0x24, 0x91, 0x02, 0x85, 0x05, 0x09, 0x00, 
    0x95, 0x20, 0x81, 0x02, 0x85, 0x06, 0x09, 0x00, 0x95, 0x24, 
    0x91, 0x02, 0x85, 0x07, 0x09, 0x00, 0x95, 0x20, 0x81, 0x02, 
    0xc0, 0x05, 0x0b, 0x09, 0x05, 0xa1, 0x01, 0x85, 0x08, 0x15, 
    0x00, 0x25, 0x01, 0x09, 0x2f, 0x75, 0x01, 0x95, 0x01, 0x81, 
    0x06, 0x09, 0x20, 0x09, 0x21, 0x75, 0x01, 0x95, 0x02, 0x81, 
    0x22, 0x95, 0x05, 0x81, 0x01, 0x05, 0x08, 0x85, 0x09, 0x09, 
    0x09, 0x95, 0x01, 0x91, 0x22, 0x95, 0x07, 0x91, 0x01, 0x85, 
    0x17, 0x09, 0x17, 0x95, 0x01, 0x91, 0x22, 0x95, 0x07, 0x91, 
    0x01, 0x85, 0x18, 0x09, 0x18, 0x95, 0x01, 0x91, 0x22, 0x95, 
    0x07, 0x91, 0x01, 0x85, 0x1e, 0x09, 0x1e, 0x95, 0x01, 0x91, 
    0x22, 0x95, 0x07, 0x91, 0x01, 0x85, 0x20, 0x09, 0x20, 0x95, 
    0x01, 0x91, 0x22, 0x95, 0x07, 0x91, 0x01, 0x85, 0x2a, 0x09, 
    0x2a, 0x95, 0x01, 0x91, 0x22, 0x95, 0x07, 0x91, 0x01, 0xc0, 
    0x06, 0xa0, 0xff, 0x09, 0x01, 0xa1, 0x01, 0x85, 0x03, 0x09, 
    0x30, 0x75, 0x08, 0x95, 0x20, 0x91, 0x02, 0x85, 0x03, 0x09, 
    0x30, 0x75, 0x08, 0x95, 0x20, 0x81, 0x02, 0x85, 0x14, 0x09, 
    0xb1, 0x09, 0xb2, 0x09, 0xb5, 0x09, 0xb7, 0x09, 0xb3, 0x15, 
    0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x05, 0x81, 0x06, 0x95, 
    0x03, 0x81, 0x01, 0x85, 0x15, 0x09, 0x8c, 0x15, 0x00, 0x27, 
    0xff, 0xff, 0x00, 0x00, 0x75, 0x10, 0x95, 0x01, 0x81, 0x22, 
    0x85, 0x19, 0x09, 0x8d, 0x09, 0x8f, 0x09, 0x9e, 0x09, 0xdc, 
    0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x04, 0x91, 0x22, 
    0x09, 0xd2, 0x09, 0xd9, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 
    0x95, 0x02, 0x91, 0x06, 0x95, 0x02, 0x91, 0x01, 0x85, 0x1a, 
    0x09, 0xb5, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x01, 
    0x91, 0x22, 0x95, 0x07, 0x91, 0x01, 0x85, 0x1b, 0x09, 0xcf, 
    0x09, 0xb5, 0x09, 0xde, 0x75, 0x01, 0x95, 0x03, 0xb1, 0x22, 
    0x09, 0xd8, 0x95, 0x01, 0xb1, 0x23, 0x95, 0x04, 0xb1, 0x01, 
    0x09, 0x09, 0x09, 0x17, 0x09, 0x18, 0x09, 0x1e, 0x09, 0x20, 
    0x09, 0x2a, 0x75, 0x01, 0x95, 0x06, 0xb1, 0x22, 0x95, 0x02, 
    0xb1, 0x01, 0x85, 0x1f, 0x09, 0x9c, 0x75, 0x01, 0x95, 0x01, 
    0x81, 0x06, 0x95, 0x07, 0x81, 0x01, 0xc0, 
    
    Device Found
      type: 0000 0000
      path: DevSrvsID:4294968845
      serial_number: 
      Manufacturer: APPL
      Product:      BTM
      Release:      0
      Interface:    -1
      Usage (page): 0x48 (0xff00)
      Report Descriptor: (50 bytes)
    0x06, 0x00, 0xff, 0x0a, 0x48, 0x00, 0xa1, 0x01, 0x06, 0x29, 
    0xff, 0x85, 0x01, 0x25, 0x7f, 0x95, 0x01, 0x75, 0x08, 0x09, 
    0x01, 0xb1, 0x02, 0x09, 0x02, 0xb1, 0x02, 0x09, 0x25, 0xa1, 
    0x03, 0x85, 0x02, 0x24, 0x76, 0x98, 0x3e, 0x09, 0x03, 0x81, 
    0x22, 0x09, 0x04, 0x76, 0x38, 0x02, 0xb1, 0x02, 0xc0, 0xc0, 
    
    Device Found
      type: 046d c52b
      path: DevSrvsID:4294969643
      serial_number: 
      Manufacturer: Logitech
      Product:      USB Receiver
      Release:      2410
      Interface:    2
      Usage (page): 0x1 (0xff00)
      Report Descriptor: (98 bytes)
    0x06, 0x00, 0xff, 0x09, 0x01, 0xa1, 0x01, 0x85, 0x10, 0x75, 
    0x08, 0x95, 0x06, 0x15, 0x00, 0x26, 0xff, 0x00, 0x09, 0x01, 
    0x81, 0x00, 0x09, 0x01, 0x91, 0x00, 0xc0, 0x06, 0x00, 0xff, 
    0x09, 0x02, 0xa1, 0x01, 0x85, 0x11, 0x75, 0x08, 0x95, 0x13, 
    0x15, 0x00, 0x26, 0xff, 0x00, 0x09, 0x02, 0x81, 0x00, 0x09, 
    0x02, 0x91, 0x00, 0xc0, 0x06, 0x00, 0xff, 0x09, 0x04, 0xa1, 
    0x01, 0x85, 0x20, 0x75, 0x08, 0x95, 0x0e, 0x15, 0x00, 0x26, 
    0xff, 0x00, 0x09, 0x41, 0x81, 0x00, 0x09, 0x41, 0x91, 0x00, 
    0x85, 0x21, 0x95, 0x1f, 0x15, 0x00, 0x26, 0xff, 0x00, 0x09, 
    0x42, 0x81, 0x00, 0x09, 0x42, 0x91, 0x00, 0xc0, 
    
    Device Found
      type: 046d c52b
      path: DevSrvsID:4294969643
      serial_number: 
      Manufacturer: Logitech
      Product:      USB Receiver
      Release:      2410
      Interface:    2
      Usage (page): 0x2 (0xff00)
      Report Descriptor: (98 bytes)
    0x06, 0x00, 0xff, 0x09, 0x01, 0xa1, 0x01, 0x85, 0x10, 0x75, 
    0x08, 0x95, 0x06, 0x15, 0x00, 0x26, 0xff, 0x00, 0x09, 0x01, 
    0x81, 0x00, 0x09, 0x01, 0x91, 0x00, 0xc0, 0x06, 0x00, 0xff, 
    0x09, 0x02, 0xa1, 0x01, 0x85, 0x11, 0x75, 0x08, 0x95, 0x13, 
    0x15, 0x00, 0x26, 0xff, 0x00, 0x09, 0x02, 0x81, 0x00, 0x09, 
    0x02, 0x91, 0x00, 0xc0, 0x06, 0x00, 0xff, 0x09, 0x04, 0xa1, 
    0x01, 0x85, 0x20, 0x75, 0x08, 0x95, 0x0e, 0x15, 0x00, 0x26, 
    0xff, 0x00, 0x09, 0x41, 0x81, 0x00, 0x09, 0x41, 0x91, 0x00, 
    0x85, 0x21, 0x95, 0x1f, 0x15, 0x00, 0x26, 0xff, 0x00, 0x09, 
    0x42, 0x81, 0x00, 0x09, 0x42, 0x91, 0x00, 0xc0, 
    
    Device Found
      type: 046d c52b
      path: DevSrvsID:4294969643
      serial_number: 
      Manufacturer: Logitech
      Product:      USB Receiver
      Release:      2410
      Interface:    2
      Usage (page): 0x4 (0xff00)
      Report Descriptor: (98 bytes)
    0x06, 0x00, 0xff, 0x09, 0x01, 0xa1, 0x01, 0x85, 0x10, 0x75, 
    0x08, 0x95, 0x06, 0x15, 0x00, 0x26, 0xff, 0x00, 0x09, 0x01, 
    0x81, 0x00, 0x09, 0x01, 0x91, 0x00, 0xc0, 0x06, 0x00, 0xff, 
    0x09, 0x02, 0xa1, 0x01, 0x85, 0x11, 0x75, 0x08, 0x95, 0x13, 
    0x15, 0x00, 0x26, 0xff, 0x00, 0x09, 0x02, 0x81, 0x00, 0x09, 
    0x02, 0x91, 0x00, 0xc0, 0x06, 0x00, 0xff, 0x09, 0x04, 0xa1, 
    0x01, 0x85, 0x20, 0x75, 0x08, 0x95, 0x0e, 0x15, 0x00, 0x26, 
    0xff, 0x00, 0x09, 0x41, 0x81, 0x00, 0x09, 0x41, 0x91, 0x00, 
    0x85, 0x21, 0x95, 0x1f, 0x15, 0x00, 0x26, 0xff, 0x00, 0x09, 
    0x42, 0x81, 0x00, 0x09, 0x42, 0x91, 0x00, 0xc0, 
    
    unable to open device
    
    
  18. Youw commented on Aug 25, 2021

    @Youw
    Member

    The issue goes away once I run with sudo. Not so sure why.

    Not sure either.
    Does IOHIDDeviceOpen(dev->device_handle, kIOHIDOptionsTypeNone); makes any difference?

  19. mcuee commented on Aug 25, 2021

    @mcuee
    Member

    The issue goes away once I run with sudo. Not so sure why.

    Not sure either.
    Does IOHIDDeviceOpen(dev->device_handle, kIOHIDOptionsTypeNone); makes any difference?

    Indeed that makes the difference. With the change, no need to use sudo.

    hidapi_report on  get-descriptor [!?] via △ v3.21.1 took 1m11s ❯ git diff
    diff --git a/mac/hid.c b/mac/hid.c
    index baaf4e1..f8d1a82 100644
    --- a/mac/hid.c
    +++ b/mac/hid.c
    @@ -830,7 +830,7 @@ hid_device * HID_API_EXPORT hid_open_path(const char *path)
            }
     
            /* Open the IOHIDDevice */
    -       ret = IOHIDDeviceOpen(dev->device_handle, kIOHIDOptionsTypeSeizeDevice);
    +       ret = IOHIDDeviceOpen(dev->device_handle, kIOHIDOptionsTypeNone);
            if (ret == kIOReturnSuccess) {
                    char str[32];
    
  20. Youw commented on Aug 25, 2021

    @Youw
    Member

    That means that there is another application/daemon running in the background that has that device opened.

  21. mcuee commented on Mar 17, 2022

    @mcuee
    Member

    Just the latest test result from the get-descriptor branch under Windows.

    Click for the run log
    C:\work\hid\hidapi_test\hidapi\windows\x64\Release [get-descriptor ≡]> .\hidtest.exe
    hidapi test/example tool. Compiled with hidapi version 0.11.2, runtime version 0.11.2.
    Compile-time version matches runtime version of hidapi.
    
    Device Found
      type: 046d b010
      path: \\?\HID#{00001124-0000-1000-8000-00805f9b34fb}_VID&0002046d_PID&b010&Col04#8&1cf1c1b9&4&0003#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number: 34885dab0c12
      Manufacturer: Logitech
      Product:      Logitech Bluetooth Wireless Mouse
      Release:      0
      Interface:    -1
      Usage (page): 0x2 (0xff00)
      Report Descriptor: (36 bytes)
    0x06, 0x00, 0xff, 0x09, 0x02, 0xa1, 0x01, 0x85, 0x11, 0x09,
    0x02, 0x15, 0x00, 0x26, 0xff, 0x00, 0x75, 0x08, 0x95, 0x13,
    0x81, 0x00, 0x09, 0x02, 0x15, 0x00, 0x26, 0xff, 0x00, 0x75,
    0x08, 0x95, 0x13, 0x91, 0x00, 0xc0,
    
    Device Found
      type: 046d b010
      path: \\?\HID#{00001124-0000-1000-8000-00805f9b34fb}_VID&0002046d_PID&b010&Col06#8&1cf1c1b9&4&0005#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number: 34885dab0c12
      Manufacturer: Logitech
      Product:      Logitech Bluetooth Wireless Mouse
      Release:      0
      Interface:    -1
      Usage (page): 0x1 (0xc)
      Report Descriptor: (31 bytes)
    0x05, 0x0c, 0x09, 0x01, 0xa1, 0x01, 0x85, 0x05, 0x0a, 0x25,
    0x02, 0x0a, 0x24, 0x02, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01,
    0x95, 0x02, 0x81, 0x02, 0x75, 0x06, 0x95, 0x01, 0x81, 0x03,
    0xc0,
    
    Device Found
      type: 0488 121f
      path: \\?\HID#DELL091A&Col01#5&99b72d3&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number: 9999
      Manufacturer: Microsoft
      Product:      HIDI2C Device
      Release:      40d
      Interface:    -1
      Usage (page): 0x2 (0x1)
      Report Descriptor: (69 bytes)
    0x05, 0x01, 0x09, 0x02, 0xa1, 0x01, 0x09, 0x01, 0xa1, 0x00,
    0x85, 0x01, 0x05, 0x09, 0x19, 0x01, 0x29, 0x03, 0x15, 0x00,
    0x25, 0x01, 0x75, 0x01, 0x95, 0x03, 0x81, 0x02, 0x75, 0x05,
    0x95, 0x01, 0x81, 0x03, 0x05, 0x01, 0x09, 0x30, 0x09, 0x31,
    0x09, 0x38, 0x15, 0x81, 0x25, 0x7f, 0x75, 0x08, 0x95, 0x03,
    0x81, 0x06, 0x05, 0x0c, 0x0a, 0x38, 0x02, 0x15, 0x81, 0x25,
    0x7f, 0x75, 0x08, 0x95, 0x01, 0x81, 0x06, 0xc0, 0xc0,
    
    Device Found
      type: 8087 0a1e
      path: \\?\HID#INTC816&Col01#3&36a7043c&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number:
      Manufacturer:
      Product:
      Release:      200
      Interface:    -1
      Usage (page): 0xc (0x1)
      Report Descriptor: (27 bytes)
    0x05, 0x01, 0x09, 0x0c, 0xa1, 0x01, 0x85, 0x08, 0x09, 0xc6,
    0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x01, 0x81, 0x06,
    0x75, 0x07, 0x95, 0x01, 0x81, 0x03, 0xc0,
    
    Device Found
      type: 044e 1212
      path: \\?\HID#Vid_044E&Pid_1212&Col01&Col02#7&290aacae&0&0001#{4d1e55b2-f16f-11cf-88cb-001111000030}\KBD
      serial_number:
      Manufacturer:
      Product:
      Release:      0
      Interface:    -1
      Usage (page): 0x6 (0x1)
      Report Descriptor: (45 bytes)
    0x05, 0x01, 0x09, 0x06, 0xa1, 0x01, 0x85, 0x07, 0x05, 0x07,
    0x19, 0xe0, 0x29, 0xe7, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01,
    0x95, 0x08, 0x81, 0x02, 0x75, 0x08, 0x95, 0x01, 0x81, 0x03,
    0x19, 0x00, 0x29, 0x75, 0x15, 0x00, 0x25, 0xff, 0x75, 0x08,
    0x95, 0x06, 0x81, 0x00, 0xc0,
    
    Device Found
      type: 8087 0a1e
      path: \\?\HID#INTC816&Col02#3&36a7043c&0&0001#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number:
      Manufacturer:
      Product:
      Release:      200
      Interface:    -1
      Usage (page): 0xd (0x1)
      Report Descriptor: (50 bytes)
    0x05, 0x01, 0x09, 0x0d, 0xa1, 0x01, 0x09, 0x0d, 0xa1, 0x02,
    0x85, 0x1c, 0x09, 0x81, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01,
    0x95, 0x01, 0x81, 0x02, 0x75, 0x07, 0x95, 0x01, 0x81, 0x03,
    0x09, 0xcb, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x01,
    0xb1, 0x02, 0x75, 0x07, 0x95, 0x01, 0xb1, 0x03, 0xc0, 0xc0,
    
    Device Found
      type: 044e 1212
      path: \\?\HID#Vid_044E&Pid_1212&Col01&Col01#7&290aacae&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number:
      Manufacturer:
      Product:
      Release:      0
      Interface:    -1
      Usage (page): 0x2 (0x1)
      Report Descriptor: (54 bytes)
    0x05, 0x01, 0x09, 0x02, 0xa1, 0x01, 0x09, 0x01, 0xa1, 0x00,
    0x85, 0x06, 0x05, 0x09, 0x19, 0x01, 0x29, 0x03, 0x15, 0x00,
    0x25, 0x01, 0x75, 0x01, 0x95, 0x03, 0x81, 0x02, 0x75, 0x05,
    0x95, 0x01, 0x81, 0x03, 0x05, 0x01, 0x09, 0x30, 0x09, 0x31,
    0x16, 0x00, 0xfe, 0x26, 0x00, 0x02, 0x75, 0x10, 0x95, 0x02,
    0x81, 0x06, 0xc0, 0xc0,
    
    Device Found
      type: 0488 121f
      path: \\?\HID#DELL091A&Col02#5&99b72d3&0&0001#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number: 9999
      Manufacturer: Microsoft
      Product:      HIDI2C Device
      Release:      40d
      Interface:    -1
      Usage (page): 0x5 (0xd)
      Report Descriptor: (204 bytes)
    0x05, 0x0d, 0x09, 0x05, 0xa1, 0x01, 0x09, 0x22, 0xa1, 0x02,
    0x85, 0x08, 0x09, 0x47, 0x09, 0x42, 0x15, 0x00, 0x25, 0x01,
    0x75, 0x01, 0x95, 0x02, 0x81, 0x02, 0x09, 0x51, 0x15, 0x00,
    0x25, 0x05, 0x75, 0x03, 0x95, 0x01, 0x81, 0x02, 0x75, 0x03,
    0x95, 0x01, 0x81, 0x03, 0x05, 0x01, 0x09, 0x30, 0x15, 0x00,
    0x26, 0xaf, 0x04, 0x35, 0x00, 0x46, 0xe8, 0x03, 0x55, 0x0e,
    0x65, 0x11, 0x75, 0x10, 0x95, 0x01, 0x81, 0x02, 0x09, 0x31,
    0x15, 0x00, 0x26, 0x7b, 0x02, 0x35, 0x00, 0x46, 0x12, 0x02,
    0x75, 0x10, 0x95, 0x01, 0x81, 0x02, 0xc0, 0x05, 0x0d, 0x09,
    0x56, 0x15, 0x00, 0x27, 0xff, 0xff, 0x00, 0x00, 0x35, 0x00,
    0x47, 0xff, 0xff, 0x00, 0x00, 0x55, 0x0c, 0x66, 0x01, 0x10,
    0x75, 0x10, 0x95, 0x01, 0x81, 0x02, 0x09, 0x54, 0x15, 0x00,
    0x25, 0x05, 0x75, 0x08, 0x95, 0x01, 0x81, 0x02, 0x05, 0x09,
    0x09, 0x02, 0x09, 0x03, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01,
    0x95, 0x02, 0x45, 0x00, 0x55, 0x00, 0x65, 0x00, 0x81, 0x02,
    0x75, 0x06, 0x95, 0x01, 0x81, 0x03, 0x85, 0x09, 0x05, 0x0d,
    0x09, 0x55, 0x15, 0x00, 0x25, 0x05, 0x35, 0x00, 0x47, 0xff,
    0xff, 0x00, 0x00, 0x55, 0x0c, 0x66, 0x01, 0x10, 0x75, 0x08,
    0x95, 0x01, 0xb1, 0x02, 0x85, 0x0a, 0x06, 0x00, 0xff, 0x09,
    0xc5, 0x15, 0x00, 0x26, 0xff, 0x00, 0x75, 0x08, 0x96, 0x00,
    0x01, 0xb1, 0x02, 0xc0,
    
    Device Found
      type: 047f c056
      path: \\?\HID#VID_047F&PID_C056&MI_03&Col01#f&39e6f119&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number: D1CEC32927974D5F9BD6B2AEBF2EA8E3
      Manufacturer: Plantronics
      Product:      Plantronics Blackwire 3220 Series
      Release:      210
      Interface:    3
      Usage (page): 0x1 (0xc)
      Report Descriptor: (99 bytes)
    0x05, 0x0c, 0x09, 0x01, 0xa1, 0x01, 0x85, 0x01, 0x09, 0xe9,
    0x09, 0xea, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x02,
    0x81, 0x06, 0x75, 0x06, 0x95, 0x01, 0x81, 0x03, 0x85, 0x02,
    0x09, 0x00, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x10,
    0x81, 0x02, 0x85, 0x05, 0x09, 0x00, 0x15, 0x00, 0x25, 0x01,
    0x75, 0x08, 0x95, 0x20, 0x81, 0x02, 0x85, 0x07, 0x09, 0x00,
    0x15, 0x00, 0x25, 0x01, 0x75, 0x08, 0x95, 0x20, 0x81, 0x02,
    0x85, 0x04, 0x09, 0x00, 0x15, 0x00, 0x25, 0x01, 0x75, 0x08,
    0x95, 0x24, 0x91, 0x02, 0x85, 0x06, 0x09, 0x00, 0x15, 0x00,
    0x25, 0x01, 0x75, 0x08, 0x95, 0x24, 0x91, 0x02, 0xc0,
    
    Device Found
      type: 045e 0000
      path: \\?\HID#ConvertedDevice&Col02#5&379854aa&0&0001#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number:
      Manufacturer:
      Product:
      Release:      0
      Interface:    -1
      Usage (page): 0x1 (0xc)
      Report Descriptor: (32 bytes)
    0x05, 0x0c, 0x09, 0x01, 0xa1, 0x01, 0x85, 0x02, 0x09, 0xe9,
    0x09, 0xea, 0x0a, 0x21, 0x02, 0x15, 0x00, 0x25, 0x01, 0x75,
    0x01, 0x95, 0x03, 0x81, 0x02, 0x75, 0x05, 0x95, 0x01, 0x81,
    0x03, 0xc0,
    
    Device Found
      type: 047f c056
      path: \\?\HID#VID_047F&PID_C056&MI_03&Col02#f&39e6f119&0&0001#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number: D1CEC32927974D5F9BD6B2AEBF2EA8E3
      Manufacturer: Plantronics
      Product:      Plantronics Blackwire 3220 Series
      Release:      210
      Interface:    3
      Usage (page): 0x5 (0xb)
      Report Descriptor: (163 bytes)
    0x05, 0x0b, 0x09, 0x05, 0xa1, 0x01, 0x85, 0x08, 0x09, 0x2f,
    0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x01, 0x81, 0x06,
    0x09, 0x20, 0x09, 0x21, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01,
    0x95, 0x02, 0x81, 0x22, 0x75, 0x05, 0x95, 0x01, 0x81, 0x03,
    0x85, 0x09, 0x05, 0x08, 0x09, 0x09, 0x15, 0x00, 0x25, 0x01,
    0x75, 0x01, 0x95, 0x01, 0x91, 0x22, 0x75, 0x07, 0x95, 0x01,
    0x91, 0x03, 0x85, 0x17, 0x09, 0x17, 0x15, 0x00, 0x25, 0x01,
    0x75, 0x01, 0x95, 0x01, 0x91, 0x22, 0x75, 0x07, 0x95, 0x01,
    0x91, 0x03, 0x85, 0x18, 0x09, 0x18, 0x15, 0x00, 0x25, 0x01,
    0x75, 0x01, 0x95, 0x01, 0x91, 0x22, 0x75, 0x07, 0x95, 0x01,
    0x91, 0x03, 0x85, 0x1e, 0x09, 0x1e, 0x15, 0x00, 0x25, 0x01,
    0x75, 0x01, 0x95, 0x01, 0x91, 0x22, 0x75, 0x07, 0x95, 0x01,
    0x91, 0x03, 0x85, 0x20, 0x09, 0x20, 0x15, 0x00, 0x25, 0x01,
    0x75, 0x01, 0x95, 0x01, 0x91, 0x22, 0x75, 0x07, 0x95, 0x01,
    0x91, 0x03, 0x85, 0x2a, 0x09, 0x2a, 0x15, 0x00, 0x25, 0x01,
    0x75, 0x01, 0x95, 0x01, 0x91, 0x22, 0x75, 0x07, 0x95, 0x01,
    0x91, 0x03, 0xc0,
    
    Device Found
      type: 045e 0000
      path: \\?\HID#ConvertedDevice&Col03#5&379854aa&0&0002#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number:
      Manufacturer:
      Product:
      Release:      0
      Interface:    -1
      Usage (page): 0x80 (0x1)
      Report Descriptor: (27 bytes)
    0x05, 0x01, 0x09, 0x80, 0xa1, 0x01, 0x85, 0x03, 0x09, 0x81,
    0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x01, 0x81, 0x02,
    0x75, 0x07, 0x95, 0x01, 0x81, 0x03, 0xc0,
    
    Device Found
      type: 047f c056
      path: \\?\HID#VID_047F&PID_C056&MI_03&Col03#f&39e6f119&0&0002#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number: D1CEC32927974D5F9BD6B2AEBF2EA8E3
      Manufacturer: Plantronics
      Product:      Plantronics Blackwire 3220 Series
      Release:      210
      Interface:    3
      Usage (page): 0x3 (0xffa0)
      Report Descriptor: (235 bytes)
    0x06, 0xa0, 0xff, 0x09, 0x03, 0xa1, 0x01, 0x85, 0x03, 0x09,
    0x30, 0x15, 0x00, 0x25, 0x01, 0x75, 0x08, 0x95, 0x20, 0x81,
    0x02, 0x85, 0x14, 0x09, 0xb1, 0x09, 0xb2, 0x09, 0xb5, 0x09,
    0xb7, 0x09, 0xb3, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95,
    0x05, 0x81, 0x06, 0x75, 0x03, 0x95, 0x01, 0x81, 0x03, 0x85,
    0x15, 0x09, 0x8c, 0x15, 0x00, 0x27, 0xff, 0xff, 0x00, 0x00,
    0x75, 0x10, 0x95, 0x01, 0x81, 0x22, 0x85, 0x1f, 0x09, 0x9c,
    0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x01, 0x81, 0x06,
    0x75, 0x07, 0x95, 0x01, 0x81, 0x03, 0x85, 0x03, 0x09, 0x30,
    0x15, 0x00, 0x25, 0x01, 0x75, 0x08, 0x95, 0x20, 0x91, 0x02,
    0x85, 0x19, 0x09, 0x8d, 0x09, 0x8f, 0x09, 0x9e, 0x09, 0xdc,
    0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x04, 0x91, 0x22,
    0x09, 0xd2, 0x09, 0xd9, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01,
    0x95, 0x02, 0x91, 0x06, 0x75, 0x02, 0x95, 0x01, 0x91, 0x03,
    0x85, 0x1a, 0x09, 0xb5, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01,
    0x95, 0x01, 0x91, 0x22, 0x75, 0x07, 0x95, 0x01, 0x91, 0x03,
    0x85, 0x1b, 0x09, 0xcf, 0x09, 0xb5, 0x15, 0x00, 0x25, 0x01,
    0x75, 0x01, 0x95, 0x02, 0xb1, 0x22, 0x09, 0xde, 0x15, 0x00,
    0x25, 0x01, 0x75, 0x01, 0x95, 0x01, 0xb1, 0x23, 0x09, 0xd8,
    0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x01, 0xb1, 0x22,
    0x75, 0x04, 0x95, 0x01, 0xb1, 0x03, 0x09, 0x09, 0x09, 0x17,
    0x09, 0x18, 0x09, 0x1e, 0x09, 0x20, 0x09, 0x2a, 0x15, 0x00,
    0x25, 0x01, 0x75, 0x01, 0x95, 0x06, 0xb1, 0x22, 0x75, 0x02,
    0x95, 0x01, 0xb1, 0x03, 0xc0,
    
    Device Found
      type: 0488 121f
      path: \\?\HID#DELL091A&Col03#5&99b72d3&0&0002#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number: 9999
      Manufacturer: Microsoft
      Product:      HIDI2C Device
      Release:      40d
      Interface:    -1
      Usage (page): 0x1 (0xff01)
      Report Descriptor: (80 bytes)
    0x06, 0x01, 0xff, 0x09, 0x01, 0xa1, 0x01, 0x85, 0x03, 0x09,
    0x01, 0x15, 0x00, 0x26, 0xff, 0x00, 0x35, 0x00, 0x47, 0xff,
    0xff, 0x00, 0x00, 0x55, 0x0c, 0x66, 0x01, 0x10, 0x75, 0x08,
    0x95, 0x1b, 0x81, 0x02, 0x85, 0x04, 0x09, 0x02, 0x15, 0x00,
    0x26, 0xff, 0x00, 0x75, 0x08, 0x95, 0x1b, 0x81, 0x02, 0x85,
    0x06, 0x09, 0x04, 0x15, 0x00, 0x26, 0xff, 0x00, 0x75, 0x08,
    0x95, 0x07, 0x81, 0x02, 0x85, 0x05, 0x09, 0x03, 0x15, 0x00,
    0x26, 0xff, 0x00, 0x75, 0x08, 0x95, 0x07, 0xb1, 0x02, 0xc0,
    
    Device Found
      type: 0488 121f
      path: \\?\HID#DELL091A&Col04#5&99b72d3&0&0003#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number: 9999
      Manufacturer: Microsoft
      Product:      HIDI2C Device
      Release:      40d
      Interface:    -1
      Usage (page): 0x1 (0xff02)
      Report Descriptor: (35 bytes)
    0x06, 0x02, 0xff, 0x09, 0x01, 0xa1, 0x01, 0x85, 0x07, 0x09,
    0x02, 0x15, 0x00, 0x26, 0xff, 0x00, 0x35, 0x00, 0x47, 0xff,
    0xff, 0x00, 0x00, 0x55, 0x0c, 0x66, 0x01, 0x10, 0x75, 0x08,
    0x95, 0x86, 0xb1, 0x02, 0xc0,
    
    Device Found
      type: 0488 121f
      path: \\?\HID#DELL091A&Col05#5&99b72d3&0&0004#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number: 9999
      Manufacturer: Microsoft
      Product:      HIDI2C Device
      Release:      40d
      Interface:    -1
      Usage (page): 0xe (0xd)
      Report Descriptor: (71 bytes)
    0x05, 0x0d, 0x09, 0x0e, 0xa1, 0x01, 0x09, 0x22, 0xa1, 0x02,
    0x85, 0x0b, 0x09, 0x52, 0x15, 0x00, 0x25, 0x0a, 0x35, 0x00,
    0x47, 0xff, 0xff, 0x00, 0x00, 0x55, 0x0c, 0x66, 0x01, 0x10,
    0x75, 0x08, 0x95, 0x01, 0xb1, 0x02, 0xc0, 0x09, 0x22, 0xa1,
    0x00, 0x85, 0x0c, 0x09, 0x57, 0x09, 0x58, 0x15, 0x00, 0x25,
    0x01, 0x75, 0x01, 0x95, 0x02, 0x45, 0x00, 0x55, 0x00, 0x65,
    0x00, 0xb1, 0x02, 0x75, 0x06, 0x95, 0x01, 0xb1, 0x03, 0xc0,
    0xc0,
    
    Device Found
      type: 046d b010
      path: \\?\HID#{00001124-0000-1000-8000-00805f9b34fb}_VID&0002046d_PID&b010&Col01#8&1cf1c1b9&4&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number: 34885dab0c12
      Manufacturer: Logitech
      Product:      Logitech Bluetooth Wireless Mouse
      Release:      0
      Interface:    -1
      Usage (page): 0x2 (0x1)
      Report Descriptor: (75 bytes)
    0x05, 0x01, 0x09, 0x02, 0xa1, 0x01, 0x09, 0x01, 0xa1, 0x00,
    0x85, 0x02, 0x05, 0x09, 0x19, 0x01, 0x29, 0x08, 0x15, 0x00,
    0x25, 0x01, 0x75, 0x01, 0x95, 0x08, 0x81, 0x02, 0x05, 0x01,
    0x09, 0x30, 0x09, 0x31, 0x16, 0x01, 0xf8, 0x26, 0xff, 0x07,
    0x75, 0x0c, 0x95, 0x02, 0x81, 0x06, 0x09, 0x38, 0x15, 0x81,
    0x25, 0x7f, 0x75, 0x08, 0x95, 0x01, 0x81, 0x06, 0x05, 0x0c,
    0x0a, 0x38, 0x02, 0x15, 0x81, 0x25, 0x7f, 0x75, 0x08, 0x95,
    0x01, 0x81, 0x06, 0xc0, 0xc0,
    
    Device Found
      type: 046d b010
      path: \\?\HID#{00001124-0000-1000-8000-00805f9b34fb}_VID&0002046d_PID&b010&Col02#8&1cf1c1b9&4&0001#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number: 34885dab0c12
      Manufacturer: Logitech
      Product:      Logitech Bluetooth Wireless Mouse
      Release:      0
      Interface:    -1
      Usage (page): 0x1 (0xc)
      Report Descriptor: (23 bytes)
    0x05, 0x0c, 0x09, 0x01, 0xa1, 0x01, 0x85, 0x03, 0x05, 0x06,
    0x09, 0x20, 0x15, 0x00, 0x25, 0x64, 0x75, 0x08, 0x95, 0x01,
    0x81, 0x02, 0xc0,
    
    Device Found
      type: 046d b010
      path: \\?\HID#{00001124-0000-1000-8000-00805f9b34fb}_VID&0002046d_PID&b010&Col05#8&1cf1c1b9&4&0004#{4d1e55b2-f16f-11cf-88cb-001111000030}\KBD
      serial_number: 34885dab0c12
      Manufacturer: Logitech
      Product:      Logitech Bluetooth Wireless Mouse
      Release:      0
      Interface:    -1
      Usage (page): 0x6 (0x1)
      Report Descriptor: (68 bytes)
    0x05, 0x01, 0x09, 0x06, 0xa1, 0x01, 0x85, 0x04, 0x05, 0x07,
    0x19, 0xe0, 0x29, 0xe7, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01,
    0x95, 0x08, 0x81, 0x02, 0x75, 0x08, 0x95, 0x01, 0x81, 0x03,
    0x19, 0x00, 0x29, 0xff, 0x15, 0x00, 0x26, 0xff, 0x00, 0x75,
    0x08, 0x95, 0x06, 0x81, 0x00, 0x05, 0x08, 0x19, 0x01, 0x29,
    0x05, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x05, 0x91,
    0x02, 0x75, 0x03, 0x95, 0x01, 0x91, 0x03, 0xc0,
    
    Device Found
      type: 046d b010
      path: \\?\HID#{00001124-0000-1000-8000-00805f9b34fb}_VID&0002046d_PID&b010&Col03#8&1cf1c1b9&4&0002#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number: 34885dab0c12
      Manufacturer: Logitech
      Product:      Logitech Bluetooth Wireless Mouse
      Release:      0
      Interface:    -1
      Usage (page): 0x1 (0xff00)
      Report Descriptor: (36 bytes)
    0x06, 0x00, 0xff, 0x09, 0x01, 0xa1, 0x01, 0x85, 0x10, 0x09,
    0x01, 0x15, 0x00, 0x26, 0xff, 0x00, 0x75, 0x08, 0x95, 0x06,
    0x81, 0x00, 0x09, 0x01, 0x15, 0x00, 0x26, 0xff, 0x00, 0x75,
    0x08, 0x95, 0x06, 0x91, 0x00, 0xc0,
    
    Device Found
      type: 045e 0000
      path: \\?\HID#ConvertedDevice&Col01#5&379854aa&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}\KBD
      serial_number:
      Manufacturer:
      Product:
      Release:      0
      Interface:    -1
      Usage (page): 0x6 (0x1)
      Report Descriptor: (37 bytes)
    0x05, 0x01, 0x09, 0x06, 0xa1, 0x01, 0x85, 0x01, 0x05, 0x07,
    0x09, 0x69, 0x09, 0x6a, 0x09, 0x6b, 0x09, 0x6c, 0x09, 0xe3,
    0x09, 0x4c, 0x09, 0xe2, 0x09, 0xe0, 0x15, 0x00, 0x25, 0x01,
    0x75, 0x01, 0x95, 0x08, 0x81, 0x02, 0xc0,
    
    unable to open device
    
    
  22. JoergAtGithub commented on May 31, 2022

    @JoergAtGithub
    ContributorAuthor

    Can I somehow help to get the get_descriptor branch merged?

  23. Youw commented on May 31, 2022

    @Youw
    Member

    Get me fired from my current/main job :D

  24. Youw commented on Aug 15, 2022

    @Youw
    Member

    Can I somehow help to get the get_descriptor branch merged?

    Actually you can:
    One of my biggest conserns is rd_item_byte. A classical linked list of a 1-byte items is one of the least efficient data structures possible.

    Right now the byte_list is defined as: struct rd_item_byte *byte_list = NULL;.
    A much better aproach would be to have something like:

    struct rd_buffer {
        unsigned char buf[HID_API_MAX_REPORT_DESCRIPTOR_SIZE];
        size_t size;
    };

    in this case we still going to have convenient rd_append/write... functions, but no dynamic allocations per-byte.


    My second consern is the implementation of hid_winapi_descriptor_reconstruct_pp_data.
    As a human being I refuse to read/understand/check it line-by-line, and because it was written by enother human being it may contain accidental issues.

    So I think we will have it mostly as is (except my consern above), but run it thru some static analyzers (we have setup project for coverity, and run unit-tests we have with ASAN enabled (maybe even have it enabled for our CI).

    If no issues found (or after all issues fixed) - that will be the last item in my checklist for that branch.

  25. JoergAtGithub commented on Aug 15, 2022

    @JoergAtGithub
    ContributorAuthor

    I will look, how I can adapt the proposed rd_buffer approach!

    To have static code checkers in CI, makes sense to me. I wonder, how it will handle the preparsed_data itself, where the memory allocation happens in WIN32 API code and only a pointer to the struct of variable size is returned. Everything else is under our control, and therefore, should be fixable.

  26. mcuee commented on Jan 19, 2023

    @mcuee
    Member

    Just another test results.

    run log for hidtest
    $ ./hidtest/hidtest.exe
    hidapi test/example tool. Compiled with hidapi version 0.13.0, runtime version 0.13.0.
    Compile-time version matches runtime version of hidapi.
    
    Device Found
      type: 0488 121f
      path: \\?\HID#DELL091A&Col01#5&99b72d3&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number: 9999
      Manufacturer: Microsoft
      Product:      HIDI2C Device
      Release:      40d
      Interface:    -1
      Usage (page): 0x2 (0x1)
      Bus type: 3
    
      Report Descriptor: (69 bytes)
    0x05, 0x01, 0x09, 0x02, 0xa1, 0x01, 0x09, 0x01, 0xa1, 0x00,
    0x85, 0x01, 0x05, 0x09, 0x19, 0x01, 0x29, 0x03, 0x15, 0x00,
    0x25, 0x01, 0x75, 0x01, 0x95, 0x03, 0x81, 0x02, 0x75, 0x05,
    0x95, 0x01, 0x81, 0x03, 0x05, 0x01, 0x09, 0x30, 0x09, 0x31,
    0x09, 0x38, 0x15, 0x81, 0x25, 0x7f, 0x75, 0x08, 0x95, 0x03,
    0x81, 0x06, 0x05, 0x0c, 0x0a, 0x38, 0x02, 0x15, 0x81, 0x25,
    0x7f, 0x75, 0x08, 0x95, 0x01, 0x81, 0x06, 0xc0, 0xc0,
    Device Found
      type: 8087 0a1e
      path: \\?\HID#INTC816&Col01#3&36a7043c&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number:
      Manufacturer:
      Product:
      Release:      200
      Interface:    -1
      Usage (page): 0xc (0x1)
      Bus type: 0
    
      Report Descriptor: (27 bytes)
    0x05, 0x01, 0x09, 0x0c, 0xa1, 0x01, 0x85, 0x08, 0x09, 0xc6,
    0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x01, 0x81, 0x06,
    0x75, 0x07, 0x95, 0x01, 0x81, 0x03, 0xc0,
    Device Found
      type: 044e 1212
      path: \\?\HID#Vid_044E&Pid_1212&Col01&Col02#7&290aacae&0&0001#{4d1e55b2-f16f-11cf-88cb-001111000030}\KBD
      serial_number:
      Manufacturer:
      Product:
      Release:      0
      Interface:    -1
      Usage (page): 0x6 (0x1)
      Bus type: 0
    
      Report Descriptor: (45 bytes)
    0x05, 0x01, 0x09, 0x06, 0xa1, 0x01, 0x85, 0x07, 0x05, 0x07,
    0x19, 0xe0, 0x29, 0xe7, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01,
    0x95, 0x08, 0x81, 0x02, 0x75, 0x08, 0x95, 0x01, 0x81, 0x03,
    0x19, 0x00, 0x29, 0x75, 0x15, 0x00, 0x25, 0xff, 0x75, 0x08,
    0x95, 0x06, 0x81, 0x00, 0xc0,
    Device Found
      type: 8087 0a1e
      path: \\?\HID#INTC816&Col02#3&36a7043c&0&0001#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number:
      Manufacturer:
      Product:
      Release:      200
      Interface:    -1
      Usage (page): 0xd (0x1)
      Bus type: 0
    
      Report Descriptor: (50 bytes)
    0x05, 0x01, 0x09, 0x0d, 0xa1, 0x01, 0x09, 0x0d, 0xa1, 0x02,
    0x85, 0x1c, 0x09, 0x81, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01,
    0x95, 0x01, 0x81, 0x02, 0x75, 0x07, 0x95, 0x01, 0x81, 0x03,
    0x09, 0xcb, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x01,
    0xb1, 0x02, 0x75, 0x07, 0x95, 0x01, 0xb1, 0x03, 0xc0, 0xc0,
    Device Found
      type: 044e 1212
      path: \\?\HID#Vid_044E&Pid_1212&Col01&Col01#7&290aacae&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number:
      Manufacturer:
      Product:
      Release:      0
      Interface:    -1
      Usage (page): 0x2 (0x1)
      Bus type: 0
    
      Report Descriptor: (54 bytes)
    0x05, 0x01, 0x09, 0x02, 0xa1, 0x01, 0x09, 0x01, 0xa1, 0x00,
    0x85, 0x06, 0x05, 0x09, 0x19, 0x01, 0x29, 0x03, 0x15, 0x00,
    0x25, 0x01, 0x75, 0x01, 0x95, 0x03, 0x81, 0x02, 0x75, 0x05,
    0x95, 0x01, 0x81, 0x03, 0x05, 0x01, 0x09, 0x30, 0x09, 0x31,
    0x16, 0x00, 0xfe, 0x26, 0x00, 0x02, 0x75, 0x10, 0x95, 0x02,
    0x81, 0x06, 0xc0, 0xc0,
    Device Found
      type: 0488 121f
      path: \\?\HID#DELL091A&Col02#5&99b72d3&0&0001#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number: 9999
      Manufacturer: Microsoft
      Product:      HIDI2C Device
      Release:      40d
      Interface:    -1
      Usage (page): 0x5 (0xd)
      Bus type: 3
    
      Report Descriptor: (204 bytes)
    0x05, 0x0d, 0x09, 0x05, 0xa1, 0x01, 0x09, 0x22, 0xa1, 0x02,
    0x85, 0x08, 0x09, 0x47, 0x09, 0x42, 0x15, 0x00, 0x25, 0x01,
    0x75, 0x01, 0x95, 0x02, 0x81, 0x02, 0x09, 0x51, 0x15, 0x00,
    0x25, 0x05, 0x75, 0x03, 0x95, 0x01, 0x81, 0x02, 0x75, 0x03,
    0x95, 0x01, 0x81, 0x03, 0x05, 0x01, 0x09, 0x30, 0x15, 0x00,
    0x26, 0xaf, 0x04, 0x35, 0x00, 0x46, 0xe8, 0x03, 0x55, 0x0e,
    0x65, 0x11, 0x75, 0x10, 0x95, 0x01, 0x81, 0x02, 0x09, 0x31,
    0x15, 0x00, 0x26, 0x7b, 0x02, 0x35, 0x00, 0x46, 0x12, 0x02,
    0x75, 0x10, 0x95, 0x01, 0x81, 0x02, 0xc0, 0x05, 0x0d, 0x09,
    0x56, 0x15, 0x00, 0x27, 0xff, 0xff, 0x00, 0x00, 0x35, 0x00,
    0x47, 0xff, 0xff, 0x00, 0x00, 0x55, 0x0c, 0x66, 0x01, 0x10,
    0x75, 0x10, 0x95, 0x01, 0x81, 0x02, 0x09, 0x54, 0x15, 0x00,
    0x25, 0x05, 0x75, 0x08, 0x95, 0x01, 0x81, 0x02, 0x05, 0x09,
    0x09, 0x02, 0x09, 0x03, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01,
    0x95, 0x02, 0x45, 0x00, 0x55, 0x00, 0x65, 0x00, 0x81, 0x02,
    0x75, 0x06, 0x95, 0x01, 0x81, 0x03, 0x85, 0x09, 0x05, 0x0d,
    0x09, 0x55, 0x15, 0x00, 0x25, 0x05, 0x35, 0x00, 0x47, 0xff,
    0xff, 0x00, 0x00, 0x55, 0x0c, 0x66, 0x01, 0x10, 0x75, 0x08,
    0x95, 0x01, 0xb1, 0x02, 0x85, 0x0a, 0x06, 0x00, 0xff, 0x09,
    0xc5, 0x15, 0x00, 0x26, 0xff, 0x00, 0x75, 0x08, 0x96, 0x00,
    0x01, 0xb1, 0x02, 0xc0,
    Device Found
      type: 413c b06e
      path: \\?\HID#VID_413C&PID_B06E#c&37ff1248&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number:
      Manufacturer:
      Product:
      Release:      101
      Interface:    -1
      Usage (page): 0xda (0xffda)
      Bus type: 1
    
      Report Descriptor: (50 bytes)
    0x06, 0xda, 0xff, 0x09, 0xda, 0xa1, 0x01, 0x09, 0xda, 0x15,
    0x81, 0x25, 0x7f, 0x75, 0x08, 0x95, 0x01, 0x81, 0x02, 0x19,
    0x01, 0x29, 0x0e, 0x15, 0x81, 0x25, 0x7f, 0x75, 0x08, 0x95,
    0xbf, 0x81, 0x02, 0x05, 0xda, 0x19, 0x01, 0x29, 0x05, 0x15,
    0x81, 0x25, 0x7f, 0x75, 0x08, 0x95, 0xc0, 0x91, 0x02, 0xc0,
    Device Found
      type: 047f c056
      path: \\?\HID#VID_047F&PID_C056&MI_03&Col01#f&39e6f119&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number: D1CEC32927974D5F9BD6B2AEBF2EA8E3
      Manufacturer: Plantronics
      Product:      Plantronics Blackwire 3220 Series
      Release:      210
      Interface:    3
      Usage (page): 0x1 (0xc)
      Bus type: 1
    
      Report Descriptor: (99 bytes)
    0x05, 0x0c, 0x09, 0x01, 0xa1, 0x01, 0x85, 0x01, 0x09, 0xe9,
    0x09, 0xea, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x02,
    0x81, 0x06, 0x75, 0x06, 0x95, 0x01, 0x81, 0x03, 0x85, 0x02,
    0x09, 0x00, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x10,
    0x81, 0x02, 0x85, 0x05, 0x09, 0x00, 0x15, 0x00, 0x25, 0x01,
    0x75, 0x08, 0x95, 0x20, 0x81, 0x02, 0x85, 0x07, 0x09, 0x00,
    0x15, 0x00, 0x25, 0x01, 0x75, 0x08, 0x95, 0x20, 0x81, 0x02,
    0x85, 0x04, 0x09, 0x00, 0x15, 0x00, 0x25, 0x01, 0x75, 0x08,
    0x95, 0x24, 0x91, 0x02, 0x85, 0x06, 0x09, 0x00, 0x15, 0x00,
    0x25, 0x01, 0x75, 0x08, 0x95, 0x24, 0x91, 0x02, 0xc0,
    Device Found
      type: 045e 0000
      path: \\?\HID#ConvertedDevice&Col02#5&379854aa&0&0001#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number:
      Manufacturer:
      Product:
      Release:      0
      Interface:    -1
      Usage (page): 0x1 (0xc)
      Bus type: 0
    
      Report Descriptor: (32 bytes)
    0x05, 0x0c, 0x09, 0x01, 0xa1, 0x01, 0x85, 0x02, 0x09, 0xe9,
    0x09, 0xea, 0x0a, 0x21, 0x02, 0x15, 0x00, 0x25, 0x01, 0x75,
    0x01, 0x95, 0x03, 0x81, 0x02, 0x75, 0x05, 0x95, 0x01, 0x81,
    0x03, 0xc0,
    Device Found
      type: 047f c056
      path: \\?\HID#VID_047F&PID_C056&MI_03&Col02#f&39e6f119&0&0001#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number: D1CEC32927974D5F9BD6B2AEBF2EA8E3
      Manufacturer: Plantronics
      Product:      Plantronics Blackwire 3220 Series
      Release:      210
      Interface:    3
      Usage (page): 0x5 (0xb)
      Bus type: 1
    
      Report Descriptor: (163 bytes)
    0x05, 0x0b, 0x09, 0x05, 0xa1, 0x01, 0x85, 0x08, 0x09, 0x2f,
    0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x01, 0x81, 0x06,
    0x09, 0x20, 0x09, 0x21, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01,
    0x95, 0x02, 0x81, 0x22, 0x75, 0x05, 0x95, 0x01, 0x81, 0x03,
    0x85, 0x09, 0x05, 0x08, 0x09, 0x09, 0x15, 0x00, 0x25, 0x01,
    0x75, 0x01, 0x95, 0x01, 0x91, 0x22, 0x75, 0x07, 0x95, 0x01,
    0x91, 0x03, 0x85, 0x17, 0x09, 0x17, 0x15, 0x00, 0x25, 0x01,
    0x75, 0x01, 0x95, 0x01, 0x91, 0x22, 0x75, 0x07, 0x95, 0x01,
    0x91, 0x03, 0x85, 0x18, 0x09, 0x18, 0x15, 0x00, 0x25, 0x01,
    0x75, 0x01, 0x95, 0x01, 0x91, 0x22, 0x75, 0x07, 0x95, 0x01,
    0x91, 0x03, 0x85, 0x1e, 0x09, 0x1e, 0x15, 0x00, 0x25, 0x01,
    0x75, 0x01, 0x95, 0x01, 0x91, 0x22, 0x75, 0x07, 0x95, 0x01,
    0x91, 0x03, 0x85, 0x20, 0x09, 0x20, 0x15, 0x00, 0x25, 0x01,
    0x75, 0x01, 0x95, 0x01, 0x91, 0x22, 0x75, 0x07, 0x95, 0x01,
    0x91, 0x03, 0x85, 0x2a, 0x09, 0x2a, 0x15, 0x00, 0x25, 0x01,
    0x75, 0x01, 0x95, 0x01, 0x91, 0x22, 0x75, 0x07, 0x95, 0x01,
    0x91, 0x03, 0xc0,
    Device Found
      type: 045e 0000
      path: \\?\HID#ConvertedDevice&Col03#5&379854aa&0&0002#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number:
      Manufacturer:
      Product:
      Release:      0
      Interface:    -1
      Usage (page): 0x80 (0x1)
      Bus type: 0
    
      Report Descriptor: (27 bytes)
    0x05, 0x01, 0x09, 0x80, 0xa1, 0x01, 0x85, 0x03, 0x09, 0x81,
    0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x01, 0x81, 0x02,
    0x75, 0x07, 0x95, 0x01, 0x81, 0x03, 0xc0,
    Device Found
      type: 047f c056
      path: \\?\HID#VID_047F&PID_C056&MI_03&Col03#f&39e6f119&0&0002#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number: D1CEC32927974D5F9BD6B2AEBF2EA8E3
      Manufacturer: Plantronics
      Product:      Plantronics Blackwire 3220 Series
      Release:      210
      Interface:    3
      Usage (page): 0x3 (0xffa0)
      Bus type: 1
    
      Report Descriptor: (235 bytes)
    0x06, 0xa0, 0xff, 0x09, 0x03, 0xa1, 0x01, 0x85, 0x03, 0x09,
    0x30, 0x15, 0x00, 0x25, 0x01, 0x75, 0x08, 0x95, 0x20, 0x81,
    0x02, 0x85, 0x14, 0x09, 0xb1, 0x09, 0xb2, 0x09, 0xb5, 0x09,
    0xb7, 0x09, 0xb3, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95,
    0x05, 0x81, 0x06, 0x75, 0x03, 0x95, 0x01, 0x81, 0x03, 0x85,
    0x15, 0x09, 0x8c, 0x15, 0x00, 0x27, 0xff, 0xff, 0x00, 0x00,
    0x75, 0x10, 0x95, 0x01, 0x81, 0x22, 0x85, 0x1f, 0x09, 0x9c,
    0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x01, 0x81, 0x06,
    0x75, 0x07, 0x95, 0x01, 0x81, 0x03, 0x85, 0x03, 0x09, 0x30,
    0x15, 0x00, 0x25, 0x01, 0x75, 0x08, 0x95, 0x20, 0x91, 0x02,
    0x85, 0x19, 0x09, 0x8d, 0x09, 0x8f, 0x09, 0x9e, 0x09, 0xdc,
    0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x04, 0x91, 0x22,
    0x09, 0xd2, 0x09, 0xd9, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01,
    0x95, 0x02, 0x91, 0x06, 0x75, 0x02, 0x95, 0x01, 0x91, 0x03,
    0x85, 0x1a, 0x09, 0xb5, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01,
    0x95, 0x01, 0x91, 0x22, 0x75, 0x07, 0x95, 0x01, 0x91, 0x03,
    0x85, 0x1b, 0x09, 0xcf, 0x09, 0xb5, 0x15, 0x00, 0x25, 0x01,
    0x75, 0x01, 0x95, 0x02, 0xb1, 0x22, 0x09, 0xde, 0x15, 0x00,
    0x25, 0x01, 0x75, 0x01, 0x95, 0x01, 0xb1, 0x23, 0x09, 0xd8,
    0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x01, 0xb1, 0x22,
    0x75, 0x04, 0x95, 0x01, 0xb1, 0x03, 0x09, 0x09, 0x09, 0x17,
    0x09, 0x18, 0x09, 0x1e, 0x09, 0x20, 0x09, 0x2a, 0x15, 0x00,
    0x25, 0x01, 0x75, 0x01, 0x95, 0x06, 0xb1, 0x22, 0x75, 0x02,
    0x95, 0x01, 0xb1, 0x03, 0xc0,
    Device Found
      type: 0488 121f
      path: \\?\HID#DELL091A&Col03#5&99b72d3&0&0002#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number: 9999
      Manufacturer: Microsoft
      Product:      HIDI2C Device
      Release:      40d
      Interface:    -1
      Usage (page): 0x1 (0xff01)
      Bus type: 3
    
      Report Descriptor: (80 bytes)
    0x06, 0x01, 0xff, 0x09, 0x01, 0xa1, 0x01, 0x85, 0x03, 0x09,
    0x01, 0x15, 0x00, 0x26, 0xff, 0x00, 0x35, 0x00, 0x47, 0xff,
    0xff, 0x00, 0x00, 0x55, 0x0c, 0x66, 0x01, 0x10, 0x75, 0x08,
    0x95, 0x1b, 0x81, 0x02, 0x85, 0x04, 0x09, 0x02, 0x15, 0x00,
    0x26, 0xff, 0x00, 0x75, 0x08, 0x95, 0x1b, 0x81, 0x02, 0x85,
    0x06, 0x09, 0x04, 0x15, 0x00, 0x26, 0xff, 0x00, 0x75, 0x08,
    0x95, 0x07, 0x81, 0x02, 0x85, 0x05, 0x09, 0x03, 0x15, 0x00,
    0x26, 0xff, 0x00, 0x75, 0x08, 0x95, 0x07, 0xb1, 0x02, 0xc0,
    Device Found
      type: 413c 2107
      path: \\?\HID#VID_413C&PID_2107#e&1de7f0c0&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}\KBD
      serial_number:
      Manufacturer: DELL
      Product:      Dell USB Entry Keyboard
      Release:      178
      Interface:    -1
      Usage (page): 0x6 (0x1)
      Bus type: 1
    
      Report Descriptor: (66 bytes)
    0x05, 0x01, 0x09, 0x06, 0xa1, 0x01, 0x05, 0x07, 0x19, 0xe0,
    0x29, 0xe7, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x08,
    0x81, 0x02, 0x75, 0x08, 0x95, 0x01, 0x81, 0x03, 0x19, 0x00,
    0x29, 0xff, 0x15, 0x00, 0x26, 0xff, 0x00, 0x75, 0x08, 0x95,
    0x06, 0x81, 0x00, 0x05, 0x08, 0x19, 0x01, 0x29, 0x03, 0x15,
    0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x03, 0x91, 0x02, 0x75,
    0x05, 0x95, 0x01, 0x91, 0x03, 0xc0,
    Device Found
      type: 2717 5013
      path: \\?\HID#VID_2717&PID_5013&Col01#6&2a21f7ec&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number:
      Manufacturer: MI
      Product:      Mi Wireless Mouse
      Release:      625
      Interface:    -1
      Usage (page): 0x2 (0x1)
      Bus type: 1
    
      Report Descriptor: (91 bytes)
    0x05, 0x01, 0x09, 0x02, 0xa1, 0x01, 0x09, 0x01, 0xa1, 0x00,
    0x85, 0x01, 0x05, 0x09, 0x19, 0x01, 0x29, 0x05, 0x15, 0x00,
    0x25, 0x01, 0x75, 0x01, 0x95, 0x05, 0x81, 0x02, 0x75, 0x03,
    0x95, 0x01, 0x81, 0x03, 0x05, 0x01, 0x09, 0x30, 0x09, 0x31,
    0x16, 0x00, 0x80, 0x26, 0xff, 0x7f, 0x75, 0x10, 0x95, 0x02,
    0x81, 0x06, 0xc0, 0x09, 0x00, 0xa1, 0x00, 0x09, 0x38, 0x15,
    0x81, 0x25, 0x7f, 0x75, 0x08, 0x95, 0x01, 0x81, 0x06, 0xc0,
    0x09, 0x00, 0xa1, 0x00, 0x05, 0x0c, 0x0a, 0x38, 0x02, 0x15,
    0x81, 0x25, 0x7f, 0x75, 0x08, 0x95, 0x01, 0x81, 0x06, 0xc0,
    0xc0,
    Device Found
      type: 0488 121f
      path: \\?\HID#DELL091A&Col04#5&99b72d3&0&0003#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number: 9999
      Manufacturer: Microsoft
      Product:      HIDI2C Device
      Release:      40d
      Interface:    -1
      Usage (page): 0x1 (0xff02)
      Bus type: 3
    
      Report Descriptor: (35 bytes)
    0x06, 0x02, 0xff, 0x09, 0x01, 0xa1, 0x01, 0x85, 0x07, 0x09,
    0x02, 0x15, 0x00, 0x26, 0xff, 0x00, 0x35, 0x00, 0x47, 0xff,
    0xff, 0x00, 0x00, 0x55, 0x0c, 0x66, 0x01, 0x10, 0x75, 0x08,
    0x95, 0x86, 0xb1, 0x02, 0xc0,
    Device Found
      type: 2717 5013
      path: \\?\HID#VID_2717&PID_5013&Col02#6&2a21f7ec&0&0001#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number:
      Manufacturer: MI
      Product:      Mi Wireless Mouse
      Release:      625
      Interface:    -1
      Usage (page): 0x0 (0xff01)
      Bus type: 1
    
      Report Descriptor: (23 bytes)
    0x06, 0x01, 0xff, 0x09, 0x00, 0xa1, 0x01, 0x85, 0x02, 0x09,
    0x00, 0x15, 0x00, 0x26, 0xff, 0x00, 0x75, 0x08, 0x95, 0x07,
    0x81, 0x02, 0xc0,
    Device Found
      type: 2717 5013
      path: \\?\HID#VID_2717&PID_5013&Col03#6&2a21f7ec&0&0002#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number:
      Manufacturer: MI
      Product:      Mi Wireless Mouse
      Release:      625
      Interface:    -1
      Usage (page): 0x1 (0xc)
      Bus type: 1
    
      Report Descriptor: (25 bytes)
    0x05, 0x0c, 0x09, 0x01, 0xa1, 0x01, 0x85, 0x05, 0x19, 0x00,
    0x2a, 0x3c, 0x02, 0x15, 0x00, 0x26, 0x3c, 0x02, 0x75, 0x10,
    0x95, 0x01, 0x81, 0x00, 0xc0,
    Device Found
      type: 2717 5013
      path: \\?\HID#VID_2717&PID_5013&Col04#6&2a21f7ec&0&0003#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number:
      Manufacturer: MI
      Product:      Mi Wireless Mouse
      Release:      625
      Interface:    -1
      Usage (page): 0x80 (0x1)
      Bus type: 1
    
      Report Descriptor: (29 bytes)
    0x05, 0x01, 0x09, 0x80, 0xa1, 0x01, 0x85, 0x03, 0x19, 0x81,
    0x29, 0x83, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x03,
    0x81, 0x02, 0x75, 0x05, 0x95, 0x01, 0x81, 0x03, 0xc0,
    Device Found
      type: 2717 5013
      path: \\?\HID#VID_2717&PID_5013&Col05#6&2a21f7ec&0&0004#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number:
      Manufacturer: MI
      Product:      Mi Wireless Mouse
      Release:      625
      Interface:    -1
      Usage (page): 0x88 (0xffbc)
      Bus type: 1
    
      Report Descriptor: (25 bytes)
    0x06, 0xbc, 0xff, 0x09, 0x88, 0xa1, 0x01, 0x85, 0x04, 0x19,
    0x00, 0x29, 0xff, 0x15, 0x00, 0x26, 0xff, 0x00, 0x75, 0x08,
    0x95, 0x01, 0x81, 0x00, 0xc0,
    Device Found
      type: 046d c077
      path: \\?\HID#VID_046D&PID_C077#e&fde55df&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number:
      Manufacturer: Logitech
      Product:      USB Optical Mouse
      Release:      7200
      Interface:    -1
      Usage (page): 0x2 (0x1)
      Bus type: 1
    
      Report Descriptor: (46 bytes)
    0x05, 0x01, 0x09, 0x02, 0xa1, 0x01, 0x09, 0x01, 0xa1, 0x00,
    0x05, 0x09, 0x19, 0x01, 0x29, 0x03, 0x15, 0x00, 0x25, 0x01,
    0x75, 0x01, 0x95, 0x08, 0x81, 0x02, 0x05, 0x01, 0x09, 0x30,
    0x09, 0x31, 0x09, 0x38, 0x15, 0x81, 0x25, 0x7f, 0x75, 0x08,
    0x95, 0x03, 0x81, 0x06, 0xc0, 0xc0,
    Device Found
      type: 0488 121f
      path: \\?\HID#DELL091A&Col05#5&99b72d3&0&0004#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number: 9999
      Manufacturer: Microsoft
      Product:      HIDI2C Device
      Release:      40d
      Interface:    -1
      Usage (page): 0xe (0xd)
      Bus type: 3
    
      Report Descriptor: (71 bytes)
    0x05, 0x0d, 0x09, 0x0e, 0xa1, 0x01, 0x09, 0x22, 0xa1, 0x02,
    0x85, 0x0b, 0x09, 0x52, 0x15, 0x00, 0x25, 0x0a, 0x35, 0x00,
    0x47, 0xff, 0xff, 0x00, 0x00, 0x55, 0x0c, 0x66, 0x01, 0x10,
    0x75, 0x08, 0x95, 0x01, 0xb1, 0x02, 0xc0, 0x09, 0x22, 0xa1,
    0x00, 0x85, 0x0c, 0x09, 0x57, 0x09, 0x58, 0x15, 0x00, 0x25,
    0x01, 0x75, 0x01, 0x95, 0x02, 0x45, 0x00, 0x55, 0x00, 0x65,
    0x00, 0xb1, 0x02, 0x75, 0x06, 0x95, 0x01, 0xb1, 0x03, 0xc0,
    0xc0,
    Device Found
      type: 2717 5013
      path: \\?\HID#VID_2717&PID_5013&Col06#6&2a21f7ec&0&0005#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number:
      Manufacturer: MI
      Product:      Mi Wireless Mouse
      Release:      625
      Interface:    -1
      Usage (page): 0x2 (0xff02)
      Bus type: 1
    
      Report Descriptor: (23 bytes)
    0x06, 0x02, 0xff, 0x09, 0x02, 0xa1, 0x01, 0x85, 0x06, 0x09,
    0x02, 0x15, 0x00, 0x26, 0xff, 0x00, 0x75, 0x08, 0x95, 0x07,
    0xb1, 0x02, 0xc0,
    Device Found
      type: 413c b06f
      path: \\?\HID#VID_413C&PID_B06F#d&3624b04c&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number:
      Manufacturer:
      Product:
      Release:      101
      Interface:    -1
      Usage (page): 0xda (0xffda)
      Bus type: 1
    
      Report Descriptor: (50 bytes)
    0x06, 0xda, 0xff, 0x09, 0xda, 0xa1, 0x01, 0x09, 0xda, 0x15,
    0x81, 0x25, 0x7f, 0x75, 0x08, 0x95, 0x01, 0x81, 0x02, 0x19,
    0x01, 0x29, 0x0e, 0x15, 0x81, 0x25, 0x7f, 0x75, 0x08, 0x95,
    0xbf, 0x81, 0x02, 0x05, 0xda, 0x19, 0x01, 0x29, 0x05, 0x15,
    0x81, 0x25, 0x7f, 0x75, 0x08, 0x95, 0xc0, 0x91, 0x02, 0xc0,
    Device Found
      type: 045e 0000
      path: \\?\HID#ConvertedDevice&Col01#5&379854aa&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}\KBD
      serial_number:
      Manufacturer:
      Product:
      Release:      0
      Interface:    -1
      Usage (page): 0x6 (0x1)
      Bus type: 0
    
      Report Descriptor: (37 bytes)
    0x05, 0x01, 0x09, 0x06, 0xa1, 0x01, 0x85, 0x01, 0x05, 0x07,
    0x09, 0x69, 0x09, 0x6a, 0x09, 0x6b, 0x09, 0x6c, 0x09, 0xe3,
    0x09, 0x4c, 0x09, 0xe2, 0x09, 0xe0, 0x15, 0x00, 0x25, 0x01,
    0x75, 0x01, 0x95, 0x08, 0x81, 0x02, 0xc0,
    unable to open device
    
    
  27. mcuee commented on Feb 22, 2023

    @mcuee
    Member

    One more test results with latest commit.

    run log for hidtest
    $ ./hidtest/hidtest.exe
    hidapi test/example tool. Compiled with hidapi version 0.13.1, runtime version 0.13.0.
    Compile-time version is different than runtime version of hidapi.
    ]nDevice Found
      type: 0488 121f
      path: \\?\HID#DELL091A&Col01#5&99b72d3&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number: 9999
      Manufacturer: Microsoft
      Product:      HIDI2C Device
      Release:      40d
      Interface:    -1
      Usage (page): 0x2 (0x1)
      Bus type: 3
    
      Report Descriptor: (69 bytes)
    0x05, 0x01, 0x09, 0x02, 0xa1, 0x01, 0x09, 0x01, 0xa1, 0x00,
    0x85, 0x01, 0x05, 0x09, 0x19, 0x01, 0x29, 0x03, 0x15, 0x00,
    0x25, 0x01, 0x75, 0x01, 0x95, 0x03, 0x81, 0x02, 0x75, 0x05,
    0x95, 0x01, 0x81, 0x03, 0x05, 0x01, 0x09, 0x30, 0x09, 0x31,
    0x09, 0x38, 0x15, 0x81, 0x25, 0x7f, 0x75, 0x08, 0x95, 0x03,
    0x81, 0x06, 0x05, 0x0c, 0x0a, 0x38, 0x02, 0x15, 0x81, 0x25,
    0x7f, 0x75, 0x08, 0x95, 0x01, 0x81, 0x06, 0xc0, 0xc0,
    Device Found
      type: 8087 0a1e
      path: \\?\HID#INTC816&Col01#3&36a7043c&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number:
      Manufacturer:
      Product:
      Release:      200
      Interface:    -1
      Usage (page): 0xc (0x1)
      Bus type: 0
    
      Report Descriptor: (27 bytes)
    0x05, 0x01, 0x09, 0x0c, 0xa1, 0x01, 0x85, 0x08, 0x09, 0xc6,
    0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x01, 0x81, 0x06,
    0x75, 0x07, 0x95, 0x01, 0x81, 0x03, 0xc0,
    Device Found
      type: 044e 1212
      path: \\?\HID#Vid_044E&Pid_1212&Col01&Col02#7&290aacae&0&0001#{4d1e55b2-f16f-11cf-88cb-001111000030}\KBD
      serial_number:
      Manufacturer:
      Product:
      Release:      0
      Interface:    -1
      Usage (page): 0x6 (0x1)
      Bus type: 0
    
      Report Descriptor: (45 bytes)
    0x05, 0x01, 0x09, 0x06, 0xa1, 0x01, 0x85, 0x07, 0x05, 0x07,
    0x19, 0xe0, 0x29, 0xe7, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01,
    0x95, 0x08, 0x81, 0x02, 0x75, 0x08, 0x95, 0x01, 0x81, 0x03,
    0x19, 0x00, 0x29, 0x75, 0x15, 0x00, 0x25, 0xff, 0x75, 0x08,
    0x95, 0x06, 0x81, 0x00, 0xc0,
    Device Found
      type: 8087 0a1e
      path: \\?\HID#INTC816&Col02#3&36a7043c&0&0001#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number:
      Manufacturer:
      Product:
      Release:      200
      Interface:    -1
      Usage (page): 0xd (0x1)
      Bus type: 0
    
      Report Descriptor: (50 bytes)
    0x05, 0x01, 0x09, 0x0d, 0xa1, 0x01, 0x09, 0x0d, 0xa1, 0x02,
    0x85, 0x1c, 0x09, 0x81, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01,
    0x95, 0x01, 0x81, 0x02, 0x75, 0x07, 0x95, 0x01, 0x81, 0x03,
    0x09, 0xcb, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x01,
    0xb1, 0x02, 0x75, 0x07, 0x95, 0x01, 0xb1, 0x03, 0xc0, 0xc0,
    Device Found
      type: 044e 1212
      path: \\?\HID#Vid_044E&Pid_1212&Col01&Col01#7&290aacae&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number:
      Manufacturer:
      Product:
      Release:      0
      Interface:    -1
      Usage (page): 0x2 (0x1)
      Bus type: 0
    
      Report Descriptor: (54 bytes)
    0x05, 0x01, 0x09, 0x02, 0xa1, 0x01, 0x09, 0x01, 0xa1, 0x00,
    0x85, 0x06, 0x05, 0x09, 0x19, 0x01, 0x29, 0x03, 0x15, 0x00,
    0x25, 0x01, 0x75, 0x01, 0x95, 0x03, 0x81, 0x02, 0x75, 0x05,
    0x95, 0x01, 0x81, 0x03, 0x05, 0x01, 0x09, 0x30, 0x09, 0x31,
    0x16, 0x00, 0xfe, 0x26, 0x00, 0x02, 0x75, 0x10, 0x95, 0x02,
    0x81, 0x06, 0xc0, 0xc0,
    Device Found
      type: 0488 121f
      path: \\?\HID#DELL091A&Col02#5&99b72d3&0&0001#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number: 9999
      Manufacturer: Microsoft
      Product:      HIDI2C Device
      Release:      40d
      Interface:    -1
      Usage (page): 0x5 (0xd)
      Bus type: 3
    
      Report Descriptor: (204 bytes)
    0x05, 0x0d, 0x09, 0x05, 0xa1, 0x01, 0x09, 0x22, 0xa1, 0x02,
    0x85, 0x08, 0x09, 0x47, 0x09, 0x42, 0x15, 0x00, 0x25, 0x01,
    0x75, 0x01, 0x95, 0x02, 0x81, 0x02, 0x09, 0x51, 0x15, 0x00,
    0x25, 0x05, 0x75, 0x03, 0x95, 0x01, 0x81, 0x02, 0x75, 0x03,
    0x95, 0x01, 0x81, 0x03, 0x05, 0x01, 0x09, 0x30, 0x15, 0x00,
    0x26, 0xaf, 0x04, 0x35, 0x00, 0x46, 0xe8, 0x03, 0x55, 0x0e,
    0x65, 0x11, 0x75, 0x10, 0x95, 0x01, 0x81, 0x02, 0x09, 0x31,
    0x15, 0x00, 0x26, 0x7b, 0x02, 0x35, 0x00, 0x46, 0x12, 0x02,
    0x75, 0x10, 0x95, 0x01, 0x81, 0x02, 0xc0, 0x05, 0x0d, 0x09,
    0x56, 0x15, 0x00, 0x27, 0xff, 0xff, 0x00, 0x00, 0x35, 0x00,
    0x47, 0xff, 0xff, 0x00, 0x00, 0x55, 0x0c, 0x66, 0x01, 0x10,
    0x75, 0x10, 0x95, 0x01, 0x81, 0x02, 0x09, 0x54, 0x15, 0x00,
    0x25, 0x05, 0x75, 0x08, 0x95, 0x01, 0x81, 0x02, 0x05, 0x09,
    0x09, 0x02, 0x09, 0x03, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01,
    0x95, 0x02, 0x45, 0x00, 0x55, 0x00, 0x65, 0x00, 0x81, 0x02,
    0x75, 0x06, 0x95, 0x01, 0x81, 0x03, 0x85, 0x09, 0x05, 0x0d,
    0x09, 0x55, 0x15, 0x00, 0x25, 0x05, 0x35, 0x00, 0x47, 0xff,
    0xff, 0x00, 0x00, 0x55, 0x0c, 0x66, 0x01, 0x10, 0x75, 0x08,
    0x95, 0x01, 0xb1, 0x02, 0x85, 0x0a, 0x06, 0x00, 0xff, 0x09,
    0xc5, 0x15, 0x00, 0x26, 0xff, 0x00, 0x75, 0x08, 0x96, 0x00,
    0x01, 0xb1, 0x02, 0xc0,
    Device Found
      type: 413c b06e
      path: \\?\HID#VID_413C&PID_B06E#c&37ff1248&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number:
      Manufacturer:
      Product:
      Release:      101
      Interface:    -1
      Usage (page): 0xda (0xffda)
      Bus type: 1
    
      Report Descriptor: (50 bytes)
    0x06, 0xda, 0xff, 0x09, 0xda, 0xa1, 0x01, 0x09, 0xda, 0x15,
    0x81, 0x25, 0x7f, 0x75, 0x08, 0x95, 0x01, 0x81, 0x02, 0x19,
    0x01, 0x29, 0x0e, 0x15, 0x81, 0x25, 0x7f, 0x75, 0x08, 0x95,
    0xbf, 0x81, 0x02, 0x05, 0xda, 0x19, 0x01, 0x29, 0x05, 0x15,
    0x81, 0x25, 0x7f, 0x75, 0x08, 0x95, 0xc0, 0x91, 0x02, 0xc0,
    Device Found
      type: 047f c056
      path: \\?\HID#VID_047F&PID_C056&MI_03&Col01#f&39e6f119&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number: D1CEC32927974D5F9BD6B2AEBF2EA8E3
      Manufacturer: Plantronics
      Product:      Plantronics Blackwire 3220 Series
      Release:      210
      Interface:    3
      Usage (page): 0x1 (0xc)
      Bus type: 1
    
      Report Descriptor: (99 bytes)
    0x05, 0x0c, 0x09, 0x01, 0xa1, 0x01, 0x85, 0x01, 0x09, 0xe9,
    0x09, 0xea, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x02,
    0x81, 0x06, 0x75, 0x06, 0x95, 0x01, 0x81, 0x03, 0x85, 0x02,
    0x09, 0x00, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x10,
    0x81, 0x02, 0x85, 0x05, 0x09, 0x00, 0x15, 0x00, 0x25, 0x01,
    0x75, 0x08, 0x95, 0x20, 0x81, 0x02, 0x85, 0x07, 0x09, 0x00,
    0x15, 0x00, 0x25, 0x01, 0x75, 0x08, 0x95, 0x20, 0x81, 0x02,
    0x85, 0x04, 0x09, 0x00, 0x15, 0x00, 0x25, 0x01, 0x75, 0x08,
    0x95, 0x24, 0x91, 0x02, 0x85, 0x06, 0x09, 0x00, 0x15, 0x00,
    0x25, 0x01, 0x75, 0x08, 0x95, 0x24, 0x91, 0x02, 0xc0,
    Device Found
      type: 045e 0000
      path: \\?\HID#ConvertedDevice&Col02#5&379854aa&0&0001#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number:
      Manufacturer:
      Product:
      Release:      0
      Interface:    -1
      Usage (page): 0x1 (0xc)
      Bus type: 0
    
      Report Descriptor: (32 bytes)
    0x05, 0x0c, 0x09, 0x01, 0xa1, 0x01, 0x85, 0x02, 0x09, 0xe9,
    0x09, 0xea, 0x0a, 0x21, 0x02, 0x15, 0x00, 0x25, 0x01, 0x75,
    0x01, 0x95, 0x03, 0x81, 0x02, 0x75, 0x05, 0x95, 0x01, 0x81,
    0x03, 0xc0,
    Device Found
      type: 047f c056
      path: \\?\HID#VID_047F&PID_C056&MI_03&Col02#f&39e6f119&0&0001#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number: D1CEC32927974D5F9BD6B2AEBF2EA8E3
      Manufacturer: Plantronics
      Product:      Plantronics Blackwire 3220 Series
      Release:      210
      Interface:    3
      Usage (page): 0x5 (0xb)
      Bus type: 1
    
      Report Descriptor: (163 bytes)
    0x05, 0x0b, 0x09, 0x05, 0xa1, 0x01, 0x85, 0x08, 0x09, 0x2f,
    0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x01, 0x81, 0x06,
    0x09, 0x20, 0x09, 0x21, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01,
    0x95, 0x02, 0x81, 0x22, 0x75, 0x05, 0x95, 0x01, 0x81, 0x03,
    0x85, 0x09, 0x05, 0x08, 0x09, 0x09, 0x15, 0x00, 0x25, 0x01,
    0x75, 0x01, 0x95, 0x01, 0x91, 0x22, 0x75, 0x07, 0x95, 0x01,
    0x91, 0x03, 0x85, 0x17, 0x09, 0x17, 0x15, 0x00, 0x25, 0x01,
    0x75, 0x01, 0x95, 0x01, 0x91, 0x22, 0x75, 0x07, 0x95, 0x01,
    0x91, 0x03, 0x85, 0x18, 0x09, 0x18, 0x15, 0x00, 0x25, 0x01,
    0x75, 0x01, 0x95, 0x01, 0x91, 0x22, 0x75, 0x07, 0x95, 0x01,
    0x91, 0x03, 0x85, 0x1e, 0x09, 0x1e, 0x15, 0x00, 0x25, 0x01,
    0x75, 0x01, 0x95, 0x01, 0x91, 0x22, 0x75, 0x07, 0x95, 0x01,
    0x91, 0x03, 0x85, 0x20, 0x09, 0x20, 0x15, 0x00, 0x25, 0x01,
    0x75, 0x01, 0x95, 0x01, 0x91, 0x22, 0x75, 0x07, 0x95, 0x01,
    0x91, 0x03, 0x85, 0x2a, 0x09, 0x2a, 0x15, 0x00, 0x25, 0x01,
    0x75, 0x01, 0x95, 0x01, 0x91, 0x22, 0x75, 0x07, 0x95, 0x01,
    0x91, 0x03, 0xc0,
    Device Found
      type: 045e 0000
      path: \\?\HID#ConvertedDevice&Col03#5&379854aa&0&0002#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number:
      Manufacturer:
      Product:
      Release:      0
      Interface:    -1
      Usage (page): 0x80 (0x1)
      Bus type: 0
    
      Report Descriptor: (27 bytes)
    0x05, 0x01, 0x09, 0x80, 0xa1, 0x01, 0x85, 0x03, 0x09, 0x81,
    0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x01, 0x81, 0x02,
    0x75, 0x07, 0x95, 0x01, 0x81, 0x03, 0xc0,
    Device Found
      type: 047f c056
      path: \\?\HID#VID_047F&PID_C056&MI_03&Col03#f&39e6f119&0&0002#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number: D1CEC32927974D5F9BD6B2AEBF2EA8E3
      Manufacturer: Plantronics
      Product:      Plantronics Blackwire 3220 Series
      Release:      210
      Interface:    3
      Usage (page): 0x3 (0xffa0)
      Bus type: 1
    
      Report Descriptor: (235 bytes)
    0x06, 0xa0, 0xff, 0x09, 0x03, 0xa1, 0x01, 0x85, 0x03, 0x09,
    0x30, 0x15, 0x00, 0x25, 0x01, 0x75, 0x08, 0x95, 0x20, 0x81,
    0x02, 0x85, 0x14, 0x09, 0xb1, 0x09, 0xb2, 0x09, 0xb5, 0x09,
    0xb7, 0x09, 0xb3, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95,
    0x05, 0x81, 0x06, 0x75, 0x03, 0x95, 0x01, 0x81, 0x03, 0x85,
    0x15, 0x09, 0x8c, 0x15, 0x00, 0x27, 0xff, 0xff, 0x00, 0x00,
    0x75, 0x10, 0x95, 0x01, 0x81, 0x22, 0x85, 0x1f, 0x09, 0x9c,
    0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x01, 0x81, 0x06,
    0x75, 0x07, 0x95, 0x01, 0x81, 0x03, 0x85, 0x03, 0x09, 0x30,
    0x15, 0x00, 0x25, 0x01, 0x75, 0x08, 0x95, 0x20, 0x91, 0x02,
    0x85, 0x19, 0x09, 0x8d, 0x09, 0x8f, 0x09, 0x9e, 0x09, 0xdc,
    0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x04, 0x91, 0x22,
    0x09, 0xd2, 0x09, 0xd9, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01,
    0x95, 0x02, 0x91, 0x06, 0x75, 0x02, 0x95, 0x01, 0x91, 0x03,
    0x85, 0x1a, 0x09, 0xb5, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01,
    0x95, 0x01, 0x91, 0x22, 0x75, 0x07, 0x95, 0x01, 0x91, 0x03,
    0x85, 0x1b, 0x09, 0xcf, 0x09, 0xb5, 0x15, 0x00, 0x25, 0x01,
    0x75, 0x01, 0x95, 0x02, 0xb1, 0x22, 0x09, 0xde, 0x15, 0x00,
    0x25, 0x01, 0x75, 0x01, 0x95, 0x01, 0xb1, 0x23, 0x09, 0xd8,
    0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x01, 0xb1, 0x22,
    0x75, 0x04, 0x95, 0x01, 0xb1, 0x03, 0x09, 0x09, 0x09, 0x17,
    0x09, 0x18, 0x09, 0x1e, 0x09, 0x20, 0x09, 0x2a, 0x15, 0x00,
    0x25, 0x01, 0x75, 0x01, 0x95, 0x06, 0xb1, 0x22, 0x75, 0x02,
    0x95, 0x01, 0xb1, 0x03, 0xc0,
    Device Found
      type: 0488 121f
      path: \\?\HID#DELL091A&Col03#5&99b72d3&0&0002#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number: 9999
      Manufacturer: Microsoft
      Product:      HIDI2C Device
      Release:      40d
      Interface:    -1
      Usage (page): 0x1 (0xff01)
      Bus type: 3
    
      Report Descriptor: (80 bytes)
    0x06, 0x01, 0xff, 0x09, 0x01, 0xa1, 0x01, 0x85, 0x03, 0x09,
    0x01, 0x15, 0x00, 0x26, 0xff, 0x00, 0x35, 0x00, 0x47, 0xff,
    0xff, 0x00, 0x00, 0x55, 0x0c, 0x66, 0x01, 0x10, 0x75, 0x08,
    0x95, 0x1b, 0x81, 0x02, 0x85, 0x04, 0x09, 0x02, 0x15, 0x00,
    0x26, 0xff, 0x00, 0x75, 0x08, 0x95, 0x1b, 0x81, 0x02, 0x85,
    0x06, 0x09, 0x04, 0x15, 0x00, 0x26, 0xff, 0x00, 0x75, 0x08,
    0x95, 0x07, 0x81, 0x02, 0x85, 0x05, 0x09, 0x03, 0x15, 0x00,
    0x26, 0xff, 0x00, 0x75, 0x08, 0x95, 0x07, 0xb1, 0x02, 0xc0,
    Device Found
      type: 413c 2107
      path: \\?\HID#VID_413C&PID_2107#e&1de7f0c0&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}\KBD
      serial_number:
      Manufacturer: DELL
      Product:      Dell USB Entry Keyboard
      Release:      178
      Interface:    -1
      Usage (page): 0x6 (0x1)
      Bus type: 1
    
      Report Descriptor: (66 bytes)
    0x05, 0x01, 0x09, 0x06, 0xa1, 0x01, 0x05, 0x07, 0x19, 0xe0,
    0x29, 0xe7, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x08,
    0x81, 0x02, 0x75, 0x08, 0x95, 0x01, 0x81, 0x03, 0x19, 0x00,
    0x29, 0xff, 0x15, 0x00, 0x26, 0xff, 0x00, 0x75, 0x08, 0x95,
    0x06, 0x81, 0x00, 0x05, 0x08, 0x19, 0x01, 0x29, 0x03, 0x15,
    0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x03, 0x91, 0x02, 0x75,
    0x05, 0x95, 0x01, 0x91, 0x03, 0xc0,
    Device Found
      type: 2717 5013
      path: \\?\HID#VID_2717&PID_5013&Col01#6&2a21f7ec&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number:
      Manufacturer: MI
      Product:      Mi Wireless Mouse
      Release:      625
      Interface:    -1
      Usage (page): 0x2 (0x1)
      Bus type: 1
    
      Report Descriptor: (91 bytes)
    0x05, 0x01, 0x09, 0x02, 0xa1, 0x01, 0x09, 0x01, 0xa1, 0x00,
    0x85, 0x01, 0x05, 0x09, 0x19, 0x01, 0x29, 0x05, 0x15, 0x00,
    0x25, 0x01, 0x75, 0x01, 0x95, 0x05, 0x81, 0x02, 0x75, 0x03,
    0x95, 0x01, 0x81, 0x03, 0x05, 0x01, 0x09, 0x30, 0x09, 0x31,
    0x16, 0x00, 0x80, 0x26, 0xff, 0x7f, 0x75, 0x10, 0x95, 0x02,
    0x81, 0x06, 0xc0, 0x09, 0x00, 0xa1, 0x00, 0x09, 0x38, 0x15,
    0x81, 0x25, 0x7f, 0x75, 0x08, 0x95, 0x01, 0x81, 0x06, 0xc0,
    0x09, 0x00, 0xa1, 0x00, 0x05, 0x0c, 0x0a, 0x38, 0x02, 0x15,
    0x81, 0x25, 0x7f, 0x75, 0x08, 0x95, 0x01, 0x81, 0x06, 0xc0,
    0xc0,
    Device Found
      type: 0488 121f
      path: \\?\HID#DELL091A&Col04#5&99b72d3&0&0003#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number: 9999
      Manufacturer: Microsoft
      Product:      HIDI2C Device
      Release:      40d
      Interface:    -1
      Usage (page): 0x1 (0xff02)
      Bus type: 3
    
      Report Descriptor: (35 bytes)
    0x06, 0x02, 0xff, 0x09, 0x01, 0xa1, 0x01, 0x85, 0x07, 0x09,
    0x02, 0x15, 0x00, 0x26, 0xff, 0x00, 0x35, 0x00, 0x47, 0xff,
    0xff, 0x00, 0x00, 0x55, 0x0c, 0x66, 0x01, 0x10, 0x75, 0x08,
    0x95, 0x86, 0xb1, 0x02, 0xc0,
    Device Found
      type: 2717 5013
      path: \\?\HID#VID_2717&PID_5013&Col02#6&2a21f7ec&0&0001#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number:
      Manufacturer: MI
      Product:      Mi Wireless Mouse
      Release:      625
      Interface:    -1
      Usage (page): 0x0 (0xff01)
      Bus type: 1
    
      Report Descriptor: (23 bytes)
    0x06, 0x01, 0xff, 0x09, 0x00, 0xa1, 0x01, 0x85, 0x02, 0x09,
    0x00, 0x15, 0x00, 0x26, 0xff, 0x00, 0x75, 0x08, 0x95, 0x07,
    0x81, 0x02, 0xc0,
    Device Found
      type: 2717 5013
      path: \\?\HID#VID_2717&PID_5013&Col03#6&2a21f7ec&0&0002#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number:
      Manufacturer: MI
      Product:      Mi Wireless Mouse
      Release:      625
      Interface:    -1
      Usage (page): 0x1 (0xc)
      Bus type: 1
    
      Report Descriptor: (25 bytes)
    0x05, 0x0c, 0x09, 0x01, 0xa1, 0x01, 0x85, 0x05, 0x19, 0x00,
    0x2a, 0x3c, 0x02, 0x15, 0x00, 0x26, 0x3c, 0x02, 0x75, 0x10,
    0x95, 0x01, 0x81, 0x00, 0xc0,
    Device Found
      type: 2717 5013
      path: \\?\HID#VID_2717&PID_5013&Col04#6&2a21f7ec&0&0003#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number:
      Manufacturer: MI
      Product:      Mi Wireless Mouse
      Release:      625
      Interface:    -1
      Usage (page): 0x80 (0x1)
      Bus type: 1
    
      Report Descriptor: (29 bytes)
    0x05, 0x01, 0x09, 0x80, 0xa1, 0x01, 0x85, 0x03, 0x19, 0x81,
    0x29, 0x83, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x03,
    0x81, 0x02, 0x75, 0x05, 0x95, 0x01, 0x81, 0x03, 0xc0,
    Device Found
      type: 2717 5013
      path: \\?\HID#VID_2717&PID_5013&Col05#6&2a21f7ec&0&0004#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number:
      Manufacturer: MI
      Product:      Mi Wireless Mouse
      Release:      625
      Interface:    -1
      Usage (page): 0x88 (0xffbc)
      Bus type: 1
    
      Report Descriptor: (25 bytes)
    0x06, 0xbc, 0xff, 0x09, 0x88, 0xa1, 0x01, 0x85, 0x04, 0x19,
    0x00, 0x29, 0xff, 0x15, 0x00, 0x26, 0xff, 0x00, 0x75, 0x08,
    0x95, 0x01, 0x81, 0x00, 0xc0,
    Device Found
      type: 046d c077
      path: \\?\HID#VID_046D&PID_C077#e&fde55df&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number:
      Manufacturer: Logitech
      Product:      USB Optical Mouse
      Release:      7200
      Interface:    -1
      Usage (page): 0x2 (0x1)
      Bus type: 1
    
      Report Descriptor: (46 bytes)
    0x05, 0x01, 0x09, 0x02, 0xa1, 0x01, 0x09, 0x01, 0xa1, 0x00,
    0x05, 0x09, 0x19, 0x01, 0x29, 0x03, 0x15, 0x00, 0x25, 0x01,
    0x75, 0x01, 0x95, 0x08, 0x81, 0x02, 0x05, 0x01, 0x09, 0x30,
    0x09, 0x31, 0x09, 0x38, 0x15, 0x81, 0x25, 0x7f, 0x75, 0x08,
    0x95, 0x03, 0x81, 0x06, 0xc0, 0xc0,
    Device Found
      type: 0488 121f
      path: \\?\HID#DELL091A&Col05#5&99b72d3&0&0004#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number: 9999
      Manufacturer: Microsoft
      Product:      HIDI2C Device
      Release:      40d
      Interface:    -1
      Usage (page): 0xe (0xd)
      Bus type: 3
    
      Report Descriptor: (71 bytes)
    0x05, 0x0d, 0x09, 0x0e, 0xa1, 0x01, 0x09, 0x22, 0xa1, 0x02,
    0x85, 0x0b, 0x09, 0x52, 0x15, 0x00, 0x25, 0x0a, 0x35, 0x00,
    0x47, 0xff, 0xff, 0x00, 0x00, 0x55, 0x0c, 0x66, 0x01, 0x10,
    0x75, 0x08, 0x95, 0x01, 0xb1, 0x02, 0xc0, 0x09, 0x22, 0xa1,
    0x00, 0x85, 0x0c, 0x09, 0x57, 0x09, 0x58, 0x15, 0x00, 0x25,
    0x01, 0x75, 0x01, 0x95, 0x02, 0x45, 0x00, 0x55, 0x00, 0x65,
    0x00, 0xb1, 0x02, 0x75, 0x06, 0x95, 0x01, 0xb1, 0x03, 0xc0,
    0xc0,
    Device Found
      type: 2717 5013
      path: \\?\HID#VID_2717&PID_5013&Col06#6&2a21f7ec&0&0005#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number:
      Manufacturer: MI
      Product:      Mi Wireless Mouse
      Release:      625
      Interface:    -1
      Usage (page): 0x2 (0xff02)
      Bus type: 1
    
      Report Descriptor: (23 bytes)
    0x06, 0x02, 0xff, 0x09, 0x02, 0xa1, 0x01, 0x85, 0x06, 0x09,
    0x02, 0x15, 0x00, 0x26, 0xff, 0x00, 0x75, 0x08, 0x95, 0x07,
    0xb1, 0x02, 0xc0,
    Device Found
      type: 413c b06f
      path: \\?\HID#VID_413C&PID_B06F#d&3624b04c&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number:
      Manufacturer:
      Product:
      Release:      101
      Interface:    -1
      Usage (page): 0xda (0xffda)
      Bus type: 1
    
      Report Descriptor: (50 bytes)
    0x06, 0xda, 0xff, 0x09, 0xda, 0xa1, 0x01, 0x09, 0xda, 0x15,
    0x81, 0x25, 0x7f, 0x75, 0x08, 0x95, 0x01, 0x81, 0x02, 0x19,
    0x01, 0x29, 0x0e, 0x15, 0x81, 0x25, 0x7f, 0x75, 0x08, 0x95,
    0xbf, 0x81, 0x02, 0x05, 0xda, 0x19, 0x01, 0x29, 0x05, 0x15,
    0x81, 0x25, 0x7f, 0x75, 0x08, 0x95, 0xc0, 0x91, 0x02, 0xc0,
    Device Found
      type: 045e 0000
      path: \\?\HID#ConvertedDevice&Col01#5&379854aa&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}\KBD
      serial_number:
      Manufacturer:
      Product:
      Release:      0
      Interface:    -1
      Usage (page): 0x6 (0x1)
      Bus type: 0
    
      Report Descriptor: (37 bytes)
    0x05, 0x01, 0x09, 0x06, 0xa1, 0x01, 0x85, 0x01, 0x05, 0x07,
    0x09, 0x69, 0x09, 0x6a, 0x09, 0x6b, 0x09, 0x6c, 0x09, 0xe3,
    0x09, 0x4c, 0x09, 0xe2, 0x09, 0xe0, 0x15, 0x00, 0x25, 0x01,
    0x75, 0x01, 0x95, 0x08, 0x81, 0x02, 0xc0,
    unable to open device
    
  28. mcuee commented on Feb 22, 2023

    @mcuee
    Member

    Comparison with libusbK kList utility for the Mi Wireless Mouse USB Receiver, by attaching libusb0.sys filter to the device.

    C:\libusbK-dev-kit> .\kList.exe
    
    Loading USB ID's maintained by Stephen J. Gowdy <[email protected]>..
    
     1. WinUsb Device (WinUsb Device) [Connected]
        Service              : WINUSB
        ClassGUID            : {88BAE032-5A81-49F0-BC3D-A4FF138216D6}
        DeviceID             : USB\VID_0424&PID_2740\D&127B8A6A&0&5
        DeviceInterfaceGUID  : {b35924d6-3e16-4a9e-9782-5524a4b79bac}
        SymbolicLink         : \\?\usb#vid_0424&pid_2740#d&127b8a6a&0&5#{b35924d6-3e16-4a9e-9782-5524a4b79bac}
        DevicePath           : \\?\usb#vid_0424&pid_2740#d&127b8a6a&0&5#{b35924d6-3e16-4a9e-9782-5524a4b79bac}
        SerialNumber         : D&127B8A6A&0&5
        BusNumber            : 0
        DeviceAddress        : 5
    
     2. USB Input Device ((Standard system devices)) [Connected]
        Service              : HidUsb
        ClassGUID            : {745A17A0-74D3-11D0-B6FE-00A0C90F57DA}
        DeviceID             : USB\VID_2717&PID_5013\5&E9F3E45&0&1
        DeviceInterfaceGUID  : {F9F3FF14-AE21-48A0-8A25-8011A7A931D9}
        SymbolicLink         : \\?\usb#vid_2717&pid_5013#5&e9f3e45&0&1#{f9f3ff14-ae21-48a0-8a25-8011a7a931d9}
        DevicePath           : \\.\libusb0-0001
        SerialNumber         : 5&E9F3E45&0&1
        BusNumber            : 0
        DeviceAddress        : 1
    
     
    Select device (1-2) :2
    
    Loading driver api..
    Getting descriptors..
    
    -Device:
      bLength             :18
      bDescriptorType     :0x01
      bcdUSB              :0x0110
      bDeviceClass        :0x00 (Defined at Interface level)
      bDeviceSubClass     :0x00
      bDeviceProtocol     :0x00
      bMaxPacketSize0     :64
      idVendor            :0x2717 (Xiaomi Inc.)
      idProduct           :0x5013
      bcdDevice           :0x0625
      iManufacturer       :1 (MI)
      iProduct            :2 (Mi Wireless Mouse)
      iSerialNumber       :0
      bNumConfigurations  :1
    !End Device
    -Configuration:
      bLength             :9
      bDescriptorType     :0x02
      wTotalLength        :34
      bNumInterfaces      :1
      bConfigurationValue :0x01
      iConfiguration      :0
      bmAttributes        :0xA0 (Self-Powered)
      MaxPower            :50 (100ma)
     -Interface:
        bLength             :9
        bDescriptorType     :0x04
        bInterfaceNumber    :0x00
        bAlternateSetting   :0x00
        bNumEndpoints       :1
        bInterfaceClass     :0x03 (Human Interface Device)
        bInterfaceSubClass  :0x01 (Boot Interface Subclass)
        bInterfaceProtocol  :0x02 (Mouse)
        iInterface          :0
       -Hid:
          bLength             :9
          bDescriptorType     :0x21
          bcdHID              :0x0110
          bCountry            :0x00 (Not supported)
          bNumDescriptors     :1
         -Report:
            bReportType         :0x22
            wReportLength       :215
            Usage Page          :0x01 (Generic Desktop Controls)
            Usage               :0x002 (Mouse)
           *Collection            :0x01 (Application)
              Usage               :0x001 (Pointer)
             *Collection            :0x00 (Physical)
                Report ID           :0x01
                Usage Page          :0x09 (Buttons)
                Usage Minimum       :0x01
                Usage Maximum       :0x05
                Logical Minimum     :0x00
                Logical Maximum     :0x01
                Report Count        :0x05
                Report Size         :0x01
                Input               :0x02
                Report Count        :0x01
                Report Size         :0x03
                Input               :0x01
                Usage Page          :0x01 (Generic Desktop Controls)
                Usage               :0x030 (Direction-X)
                Usage               :0x031 (Direction-Y)
                Logical Minimum     :0x8000
                Logical Maximum     :0x7FFF
                Report Size         :0x10
                Report Count        :0x02
                Input               :0x06
             !End Collection
             *Collection            :0x00 (Physical)
                Usage Page          :0x01 (Generic Desktop Controls)
                Usage               :0x038 (Wheel)
                Logical Minimum     :0x81
                Logical Maximum     :0x7F
                Report Size         :0x08
                Report Count        :0x01
                Input               :0x06
             !End Collection
             *Collection            :0x00 (Physical)
                Usage Page          :0x0C (Consumer)
                Usage               :0x238 (AC Pan)
                Report Count        :0x01
                Report Size         :0x08
                Logical Minimum     :0x81
                Logical Maximum     :0x7F
                Input               :0x06
             !End Collection
           !End Collection
            Usage Page          :0xFF01 (Generic Desktop Controls)
            Usage               :0x000 (Undefined)
           *Collection            :0x01 (Application)
              Report ID           :0x02
              Usage               :0x000 (Undefined)
              Logical Minimum     :0x00
              Logical Maximum     :0x00FF
              Report Size         :0x08
              Report Count        :0x07
              Input               :0x02
           !End Collection
            Usage Page          :0x0C (Consumer)
            Usage               :0x001 (Consumer Control)
           *Collection            :0x01 (Application)
              Report ID           :0x05
              Logical Minimum     :0x00
              Logical Maximum     :0x023C
              Usage Minimum       :0x00
              Usage Maximum       :0x023C
              Report Size         :0x10
              Report Count        :0x01
              Input               :0x00
           !End Collection
            Usage Page          :0x01 (Generic Desktop Controls)
            Usage               :0x080 (System Control)
           *Collection            :0x01 (Application)
              Report ID           :0x03
              Usage Minimum       :0x81
              Usage Maximum       :0x83
              Logical Minimum     :0x00
              Logical Maximum     :0x01
              Report Count        :0x03
              Report Size         :0x01
              Input               :0x02
              Report Count        :0x01
              Report Size         :0x05
              Input               :0x01
           !End Collection
            Usage Page          :0xFFBC
            Usage               :0x88
           *Collection            :0x01 (Application)
              Report ID           :0x04
              Report Count        :0x01
              Report Size         :0x08
              Logical Minimum     :0x00
              Logical Maximum     :0x00FF
              Usage Minimum       :0x00
              Usage Maximum       :0x00FF
              Input               :0x00
           !End Collection
            Usage Page          :0xFF02 (Simulation Controls)
            Usage               :0x002 (Automobile Simulation Device)
           *Collection            :0x01 (Application)
              Report ID           :0x06
              Usage               :0x002 (Automobile Simulation Device)
              Logical Minimum     :0x00
              Logical Maximum     :0x00FF
              Report Size         :0x08
              Report Count        :0x07
              Feature             :0x02
           !End Collection
         !End Report
       !End Hid
       -Endpoint:
          bLength             :7
          bDescriptorType     :0x05
          bEndpointAddress    :0x81
          bmAttributes        :0x03 (Interrupt)
          wMaxPacketSize      :8
          bInterval           :0x02
       !End Interface
     !End Configuration
    
    
  29. mcuee commented on Mar 12, 2023

    @mcuee
    Member

    Great that this PR has finally been merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CoreWindowsenhancementhidrawlibusbmacOS

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions