libusb question

Pauld2 1 Reputation point
2022-01-27T10:39:30.6+00:00

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

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

4 answers

Sort by: Most helpful
  1. S.Sengupta 15,191 Reputation points MVP
    2022-01-27T13:21:46.397+00:00
    0 comments No comments

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

    0 comments No comments

  3. Limitless Technology 39,371 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--

    0 comments No comments

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