Re: About auto install WinUsb driver and use LibusbK to access device
Xiaofan Chen <[email protected]> Fri, 29 Jun 2018 21:44:45 +0800
| Newsgroups | gmane.comp.lib.libusb.devel.windows |
|---|---|
| Message-ID | <CAGjSPUD7WtbjRDYKVg+sWvUVgBY5=_M0YmyaCRKHN2Np_jkhtg@mail.gmail.com> |
On Thu, Jun 28, 2018 at 7:51 PM, Xiaofan Chen <[email protected]> wrote: > On Thu, Jun 28, 2018 at 10:08 AM, Chengda Guo > <[email protected]> wrote: >> >> Hi Xiaofan, >> >> My WCID device's descriptor like below shows: >> > > That is not really the descriptor. You should have something like this. > http://janaxelson.com/files/ms_os_10_descriptors.c > > More explanation here. > https://github.com/pbatard/libwdi/wiki/WCID-Devices > > >> And when I use xusb.exe to check the device's descriptor, it can't open the >> device like below shows: > > Then I think your FW has an issue. Read the above libwdi wiki page > and see if you can learn something there. > >> And then I debug into the source code of LibUsbk's example "open-device", in the >> function l_EnumKey_Instances() at lusbk_device_list.c file. When enum >> DeviceInterface, got an error code 259(No more data is available) like below shows: > > As mentioned in the previous email, libusbK has a problem -- it will not work > for your use case unfortunately even if you fix your FW. > > You may want to try out libusb Windows -- still you need to fix your FW. > >> So I guess maybe my FW is missing DeviceInterfaceGUID handling like your >> previous mail said. But I'm not the expert of device FW, so I'm not sure about this. >> Do you agree with me or have some other advice? You can take a look here at this firmware. It should work with both libusbK and xusb. https://github.com/TravisRo/libusb_stm32/blob/master/demo/winusb_loop.c -- Xiaofan ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot