Closed LuggaFiech closed 2 years ago
I assume you are using windows (the path). Can you try opening it with vid + pid instead? I never tried to open by path on windows.
My problem is that i need to open only one page of the device. How would i do that only with vid and pid?
Hm, it might not be possible then. You `ll have to check if the hidapi C library allows that on windows, we use it as the backend.
Ok thanks for the answer.
You can try listing the devices with their usage pages with the library. If the multiple usage pages do not show up, it might be unimplemented for windows.
If i try it for every device it only prints one usage page each time so it might be unimplemented then.
Only recently this started working on linux hidraw, so it might just be too new. Also, entirely possible that the windows API does not allow it?
I assume if you open a device with vid and pid it opens the standard usage page?
Probably (it does for my devices), but entirely possible it just opens the one first in the descriptors (is that the default?).
Because i'm building the device myself i have the ability to manage the order of the usage pages so i will try to manage it like that. Thanks for helping.
I just can't get open_path to work. Below is my code. Please let me know what i'm doing wrong here.
Error:
![image](https://user-images.githubusercontent.com/74405184/180288094-373257f0-4f0f-4fb4-9804-3e45164b54ce.png)