-
Notifications
You must be signed in to change notification settings - Fork 423
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to retrieve bus_type for some devices on Windows #502
Comments
is #464 of any relevance to the issue described here? |
I'm not quite sure but maybe no. In this situation, we don't even find |
@DJm00n can you help with this Bluetooth bus_type issue? |
This does sounds like a good solution. But I guess i has to be in line with other changes (including #464). |
@AlexGuo1998 thank you for reporting. I'll review PS: according to the |
On windows, we currently inspect the parent devnode to get
bus_type
:hidapi/windows/hid.c
Lines 498 to 552 in 4ebce6b
However, some filtered HID device (e.g. imbushuo/mac-precision-touchpad) whose parent is the filter driver, which don't have a correct
compatible_id
. The device tree is like this:If we want to know the
bus_type
for (1), according to the code, we're inspecting thecompatible_id
for (2), which is empty.However if we go one step further we hit (3), which has the correct
compatible_id
:BTHENUM\{GUID}
. Now we know it's a Bluetooth device.I suggest we go all the way up, until to the root to find a recognizable
compatible_id
, and stop after we found one.I don't really know if this is the correct / sane thing to do. Could you give me some ideas?
BTW, on a UEFI laptop some devices have a ancestor with a
compatible_id
like*PNP0A03
, but no more recognizable value. Do you know what that is? (Maybe we can open another issue for this?)The text was updated successfully, but these errors were encountered: