libusb question

Pauld2 1 Reputation point

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 ?

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
5,952 questions
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. S.Sengupta 10,696 Reputation points MVP
    0 comments No comments

  2. Pauld2 1 Reputation point

    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.

    0 comments No comments

  3. Limitless Technology 38,451 Reputation points


    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--

    0 comments No comments

  4. Pauld2 1 Reputation point

    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.
    0 comments No comments