You may visit here:
libusb question
Hi,
I have installed pyusb and libusb.
I also used the libusb wizzard to create a driver for a memory stick.
That works, my program retrieves the PID and the VID.
But , do I have to create a new inf driver for every device ? (pinters, hubs, sticks...)
I had hoped that any new USB device, inserted into the PC would be visible ?
thx,
Paul
4 answers
Sort by: Most helpful
-
-
Pauld2 1 Reputation point
2022-01-27T16:14:55.303+00:00 I'm not convinced that it is possible.
Only devices that have an inf file show up (VID and PID).
Furthermore, if you select eg. a USB wacom tablet + pen, the libusb
makes it stop working.
So I will abandon the libusb route.
Paul -
Limitless Technology 38,451 Reputation points
2022-02-03T08:09:28.867+00:00 Hello
Thank you for your question and reaching out.
I can understand you are having queries related to libusb driver .inf installation.
Please check the bin directory and run inf-wizard.exe. Here is where you can customize and generate an INF installation file for your device, as well as the installer executables. Select the same bin directory you are running from to place the output of the tool (so that the INF file is next to the x86, amd64 and ia64 directories).
Now you can run the installation executable. You can also go to Device Manager and right click your device and choose "Update Driver Software" and point directly at your generated INF file. At this point your device should be loaded.
Also you may reach out to GitHub community for pyusb and libusb for additional steps or still issue persists.
--If the reply is helpful, please Upvote and Accept as answer--
-
Pauld2 1 Reputation point
2022-02-03T08:33:49.83+00:00 Yes, I did that. It works.
But not "on the fly".- When I port my program to another PC
- When an "unknown " USB is inserted...
I found a solution by calling the device manager from my program.
thx,
Paul