From: Chengda G. <che...@ca...> - 2018-06-28 02:08:48
|
Hi Xiaofan, My WCID device's descriptor like below shows: And when I use xusb.exe to check the device's descriptor, it can't open the device like below shows: 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: 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? Thanks a lot! Chengda Guo From: Xiaofan Chen <xia...@gm...> To: lib...@li... Date: 2018/06/27 21:21 Subject: Re: [Libusb-win32-devel] About auto install WinUsb driver and use LibusbK to access device On Tue, Jun 26, 2018 at 9:42 AM, Chengda Guo <che...@ca...> 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 <lin...@gm...>.. 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 _______________________________________________ Libusb-win32-devel mailing list Lib...@li... https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel |