Skip to content

NUT for Windows USB (HID?) drivers may not fully access the hardware by default #1646

@jimklimov

Description

@jimklimov

A specific practical issue to track in context of NUT for Windows effort, so related to some others with broader scope such as #1507 and #1636. It may also relate to packaging e.g. #1485 and older discussions like #1145 and #1050 that touch on issues with latest published NUT v2.6.5 based MSI.

This one is about the hunch that relative failures of USB driver testing seen in development of the Windows branch, such as seeing only device metadata like name/vendor/... but not detailed Report Descriptors with data of interest, were because either further Windows kernel drivers (libusb0.sys, libusbk, etc.) are needed to intercept USB HID devices and/or tap into system's handling of those (as a HID Battery by default), or native means of libusb-1.0 might be utilized (tell it which backend to use).

Looking at https://github.com/libusb/libusb/wiki/Windows#known-restrictions maybe my problems seeing device data stem from not installing libusb-win32 right (or libusbK at all) on the testbed. There should be a kernel level driver to access the device so Windows HID battery support does not preempt a NUT driver, probably.
See also https://docs.microsoft.com/en-us/windows-hardware/drivers/usbcon/supported-usb-classes

Metadata

Metadata

Assignees

No one assigned

    Labels

    USBWindowsWindows-not-on-par-with-POSIXAspect of Windows builds known to be dysfunctional compared to POSIX builds; fix needed to be on parpackaging

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions