Re: About auto install WinUsb driver and use LibusbK to access device

Xiaofan Chen <[email protected]> Sat, 23 Jun 2018 10:24:33 +0800
Newsgroups gmane.comp.lib.libusb.devel.windows
Message-ID <CAGjSPUABN+0cVdEGhDAApAaqdp6jPp2sKDq2sHOHuKb_JtRf-A@mail.gmail.com>
On Fri, Jun 22, 2018 at 4:33 PM, Chengda Guo <[email protected]> wrote:
> I had used the libusbk and winUsb driver which created by the libusbk-inf-wizard.exe
> for installing my device, both of them are OK. And I can access the device by
> LibUsbk.dll in my application. Now I would like to automatically install winusb driver
> by Windows OS when the device plug into the system, and then use LibUsbk.dll
> to access the device in my application. The first step automatically install winusb
> driver was successful like below screen shot shows.
> But in my application, the device can't be accessed by LibUsbk.dll(Din't find
> the device, LstK_Init() succeed, but LstK_Count() return 0 device count).
>
> Whether this way is feasible or not? What do I need to pay attention to?
> Look forward to your kind advice. Thank you very much!
>

A few questions.
1) What is the OS version?

2) How do you automatically install WinUSB driver by Windows OS?
If you use the Windows OS Descriptor, please check the following. You
can post the whole USB Descriptor of your device.
https://github.com/pbatard/libwdi/wiki/WCID-Devices

3) As the above website suggests, you can download libusb-1.0 Windows
binary and use xusb to test your WCID device.
https://github.com/libusb/libusb/releases



-- 
Xiaofan

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot