From: Xiaofan C. <xia...@gm...> - 2018-06-25 11:57:30
|
On Mon, Jun 25, 2018 at 7:45 PM, Xiaofan Chen <xia...@gm...> wrote: > On Sat, Jun 23, 2018 at 10:24 AM, Xiaofan Chen <xia...@gm...> wrote: >> On Fri, Jun 22, 2018 at 4:33 PM, Chengda Guo <che...@ca...> 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 >> > > One thing you can try. > https://github.com/BrandonLWhite/Stellaris-LaunchPad-UsbDevBulk-AutoWinusbInstall > > It could be libusbK is the same as libusbdotnet. I need to check. > ... > So I changed the firmware to instead send DeviceInterfaceGUIDs REG_MULTI_SZ > with just the one GUID. LibUsbDotNet worked perfectly after that. > +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ The other possibility is that your FW is missing DeviceInterfaceGUID handling. Windows may be able to install the device but libusbK or other applications will not be able to find it. Ref: http://www.microchip.com/forums/m802958.aspx http://www.microchip.com/forums/m790429.aspx -- Xiaofan |