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

Xiaofan Chen <[email protected]> Wed, 27 Jun 2018 21:21:04 +0800
Newsgroups gmane.comp.lib.libusb.devel.windows
Message-ID <CAGjSPUDLP=8VgKdrbm-mBsYQRXU99gCBZBnUi3vGsqvmOcSdXg@mail.gmail.com>
On Tue, Jun 26, 2018 at 9:42 AM, Chengda Guo <[email protected]> wrote:
> Hi Xiaofan,
>
> I'm so sorry for my delays in replying to your letter. Your advice is very
> helpful. I debug the source code of LibUsbK in my application, and I find
> that DeviceInterfaceGUID is missing. I will check the configuration of my
> WCID device according to your advice.
>

For the record, I think it is a libusbK bug.

I have reproduce this bug from my side using a defaut Microchip USB
demo firmware.

c:\libusbK-dev-kit>klist

Loading USB ID's maintained by Stephen J. Gowdy <[email protected]>..

No devices found.

c:\libusbK-dev-kit>c:\work\libusb\bin-1.0.22\examples\bin64\xusb.exe 04d8:0053
Using libusb v1.0.22.11312

Opening device 04D8:0053...

Reading device descriptor:
            length: 18
      device class: 0
               S/N: 0
           VID:PID: 04D8:0053
         bcdDevice: 0000
   iMan:iProd:iSer: 1:2:0
          nb confs: 1

Reading BOS descriptor: no descriptor

Reading first configuration descriptor:
             nb interfaces: 1
              interface[0]: id = 0
interface[0].altsetting[0]: num endpoints = 2
   Class.SubClass.Protocol: FF.FF.FF
       endpoint[0].address: 01
           max packet size: 0040
          polling interval: 01
       endpoint[1].address: 81
           max packet size: 0040
          polling interval: 01

Claiming interface 0...

Reading string descriptors:
   String (0x01): "Microchip Technology Inc."
   String (0x02): "Microchip Vendor Example Device"

Reading Extended Compat ID OS Feature Descriptor (wIndex = 0x0004):

  00000000  28 00 00 00 00 01 04 00 01 00 00 00 00 00 00 00  (...............
  00000010  00 01 57 49 4e 55 53 42 00 00 00 00 00 00 00 00  ..WINUSB........
  00000020  00 00 00 00 00 00 00 00                          ........

Reading Extended Properties OS Feature Descriptor (wIndex = 0x0005):
   Failed: Pipe error
Releasing interface 0...
Closing device...


-- 
Xiaofan

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