On Wed, Mar 6, 2013 at 8:04 AM, Xiaofan Chen <xiaof...@gmail.com> wrote: > The patch looks correct. However, with the benchmark firmware, I do not > have issues without the patch but have issues with the patch. Again, > kind of strange. Tested under Windows 7 x86. > > mcuee@mcuee-PC /c/work/libusbx/libusbx > $ ./examples/xusb.exe 04d8:fa2e > Using libusbx v1.0.14.10623 > > Opening device 04D8:FA2E... > > Reading device descriptor: > length: 18 > device class: 0 > S/N: 3 > VID:PID: 04D8:FA2E > bcdDevice: 0001 > iMan:iProd:iSer: 1:2:3 > nb confs: 1 > > Reading configuration descriptors: > nb interfaces: 1 > interface[0]: id = 0 > interface[0].altsetting[0]: num endpoints = 2 > Class.SubClass.Protocol: 00.00.00 > endpoint[0].address: 01 > max packet size: 0010 > polling interval: 00 > endpoint[1].address: 81 > max packet size: 0010 > polling interval: 00 > interface[0].altsetting[1]: num endpoints = 2 > Class.SubClass.Protocol: 00.00.00 > endpoint[0].address: 01 > max packet size: 0010 > polling interval: 01 > endpoint[1].address: 81 > max packet size: 0010 > polling interval: 01 > interface[0].altsetting[2]: num endpoints = 2 > Class.SubClass.Protocol: 00.00.00 > endpoint[0].address: 01 > max packet size: 0020 > polling interval: 01 > endpoint[1].address: 81 > max packet size: 0020 > polling interval: 01 > > Claiming interface 0... > > Reading string descriptors: > String (0x01): "Travis Robinson" > String (0x02): "Benchmark Device" > String (0x03): "LUSBW1" > String (0xEE): "MSFT100 " > > 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: LIBUSB_ERROR_PIPE > Releasing interface 0... > Closing device... > > mcuee@mcuee-PC /c/work/libftdi/libusbx_git_bin/bin32 > $ ./xusb.exe 04d8:fa2e > Using libusbx v1.0.14.10620 > > Opening device 04D8:FA2E... > > Reading device descriptor: > length: 18 > device class: 0 > S/N: 3 > VID:PID: 04D8:FA2E > bcdDevice: 0001 > iMan:iProd:iSer: 1:2:3 > nb confs: 1 > > Reading configuration descriptors: > nb interfaces: 1 > interface[0]: id = 0 > interface[0].altsetting[0]: num endpoints = 2 > Class.SubClass.Protocol: 00.00.00 > endpoint[0].address: 01 > max packet size: 0010 > polling interval: 00 > endpoint[1].address: 81 > max packet size: 0010 > polling interval: 00 > interface[0].altsetting[1]: num endpoints = 2 > Class.SubClass.Protocol: 00.00.00 > endpoint[0].address: 01 > max packet size: 0010 > polling interval: 01 > endpoint[1].address: 81 > max packet size: 0010 > polling interval: 01 > interface[0].altsetting[2]: num endpoints = 2 > Class.SubClass.Protocol: 00.00.00 > endpoint[0].address: 01 > max packet size: 0020 > polling interval: 01 > endpoint[1].address: 81 > max packet size: 0020 > polling interval: 01 > > Claiming interface 0... > > Reading string descriptors: > String (0x01): "Travis Robinson" > String (0x02): "Benchmark Device" > String (0x03): "LUSBW1" > String (0xEE): "MSFT100 " > > 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): > > 00000000 8e 00 00 00 00 01 05 00 01 00 84 00 00 00 01 00 ................ > 00000010 00 00 28 00 44 00 65 00 76 00 69 00 63 00 65 00 ..(.D.e.v.i.c.e. > 00000020 49 00 6e 00 74 00 65 00 72 00 66 00 61 00 63 00 I.n.t.e.r.f.a.c. > 00000030 65 00 47 00 55 00 49 00 44 00 00 00 4e 00 00 00 e.G.U.I.D...N... > 00000040 7b 00 46 00 37 00 30 00 32 00 34 00 32 00 43 00 {.F.7.0.2.4.2.C. > 00000050 37 00 2d 00 46 00 42 00 32 00 35 00 2d 00 34 00 7.-.F.B.2.5.-.4. > 00000060 34 00 33 00 42 00 2d 00 39 00 45 00 37 00 45 00 4.3.B.-.9.E.7.E. > 00000070 2d 00 41 00 34 00 32 00 36 00 30 00 46 00 33 00 -.A.4.2.6.0.F.3. > 00000080 37 00 33 00 39 00 38 00 32 00 7d 00 00 00 7.3.9.8.2.}... > > Releasing interface 0... > Closing device...
No issues under Mac OS X though with the latest git. mymacmini:libusbx xiaofanc$ ./examples/xusb 04d8:fa2e Using libusbx v1.0.14.10623 Opening device 04D8:FA2E... libusbx: warning [darwin_cache_device_descriptor] could not retrieve device descriptor 05ac:8281: device not responding. skipping device libusbx: warning [darwin_cache_device_descriptor] could not retrieve device descriptor 05ac:8242: device not responding. skipping device Reading device descriptor: length: 18 device class: 0 S/N: 3 VID:PID: 04D8:FA2E bcdDevice: 0001 iMan:iProd:iSer: 1:2:3 nb confs: 1 Reading configuration descriptors: nb interfaces: 1 interface[0]: id = 0 interface[0].altsetting[0]: num endpoints = 2 Class.SubClass.Protocol: 00.00.00 endpoint[0].address: 01 max packet size: 0010 polling interval: 00 endpoint[1].address: 81 max packet size: 0010 polling interval: 00 interface[0].altsetting[1]: num endpoints = 2 Class.SubClass.Protocol: 00.00.00 endpoint[0].address: 01 max packet size: 0010 polling interval: 01 endpoint[1].address: 81 max packet size: 0010 polling interval: 01 interface[0].altsetting[2]: num endpoints = 2 Class.SubClass.Protocol: 00.00.00 endpoint[0].address: 01 max packet size: 0020 polling interval: 01 endpoint[1].address: 81 max packet size: 0020 polling interval: 01 Claiming interface 0... Reading string descriptors: String (0x01): "Travis Robinson" String (0x02): "Benchmark Device" String (0x03): "LUSBW1" String (0xEE): "MSFT100 " 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): 00000000 8e 00 00 00 00 01 05 00 01 00 84 00 00 00 01 00 ................ 00000010 00 00 28 00 44 00 65 00 76 00 69 00 63 00 65 00 ..(.D.e.v.i.c.e. 00000020 49 00 6e 00 74 00 65 00 72 00 66 00 61 00 63 00 I.n.t.e.r.f.a.c. 00000030 65 00 47 00 55 00 49 00 44 00 00 00 4e 00 00 00 e.G.U.I.D...N... 00000040 7b 00 46 00 37 00 30 00 32 00 34 00 32 00 43 00 {.F.7.0.2.4.2.C. 00000050 37 00 2d 00 46 00 42 00 32 00 35 00 2d 00 34 00 7.-.F.B.2.5.-.4. 00000060 34 00 33 00 42 00 2d 00 39 00 45 00 37 00 45 00 4.3.B.-.9.E.7.E. 00000070 2d 00 41 00 34 00 32 00 36 00 30 00 46 00 33 00 -.A.4.2.6.0.F.3. 00000080 37 00 33 00 39 00 38 00 32 00 7d 00 00 00 7.3.9.8.2.}... Releasing interface 0... Closing device... -- Xiaofan ------------------------------------------------------------------------------ Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the endpoint security space. For insight on selecting the right partner to tackle endpoint security challenges, access the full report. http://p.sf.net/sfu/symantec-dev2dev _______________________________________________ libusbx-devel mailing list libusbx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libusbx-devel