Windows: enumerate simple devices - #418
Conversation
Right now, in hid_open it is checked if the connected devices have "HIDClass" driver name. This is true for composite devices, but some simple HID devices only have "Mouse" or "Keyboard" driver name. With this change, one can enumerate and open these devices. Signed-off-by: Kubicz, Filip <filip.kubicz@nordicsemi.no>
|
One of devices that cannot be opened is Dell MS116t, but any mouse which is not part of composite device should be affected. |
|
The driver name in question is received from |
DLL files with included fix signal11/hidapi#418 Signed-off-by: Kubicz, Filip <filip.kubicz@nordicsemi.no>
DLL files with included fix signal11/hidapi#418 Signed-off-by: Kubicz, Filip <filip.kubicz@nordicsemi.no>
DLL files with included fix signal11/hidapi#418 Signed-off-by: Kubicz, Filip <filip.kubicz@nordicsemi.no>
|
this is useful. |
|
@iwpz I had similar situation. I turned out I could enumerate my device only when some other equipment (headphones) were attached! |
DLL files with included fix signal11/hidapi#418 Signed-off-by: Kubicz, Filip <filip.kubicz@nordicsemi.no>
DLL is a HIDAPI C library compiled with Visual Studio 2017 with fix which enables sending/receiving feature requests on devices claimed by Windows such as mouse or keyboard: https://github.com/signal11/hidapi/pull/335/files For 64-bit Python interpreter a 64-bit DLL library is needed. It is also provided and will be loaded automatically if the program cannot load 32-bit library. DLL files also include a fix for enumeration and opening of non-composite HID devices: signal11/hidapi#418 DLLs are in "Release" version so they do not require Windows debug libraries from user. Signed-off-by: Kubicz, Filip <Filip.Kubicz@nordicsemi.no>
Right now, in hid_open it is checked if the connected devices have
"HIDClass" driver name. This is true for composite devices, but some
simple HID devices only have "Mouse" or "Keyboard" driver name.
With this change, one can enumerate and open these devices.
Signed-off-by: Kubicz, Filip filip.kubicz@nordicsemi.no