On Mon, Aug 20, 2012 at 8:32 AM, Pete Batard <p...@akeo.ie> wrote: > Hopefully will help getting more testing before next release. > > I'm closing #11 and #12 as a result (isoc support will be dealt elsewhere). > > I also pushed the patch provided for #41 > (https://github.com/libusbx/libusbx/pull/41). >
The test results with a Sandisk USB Flash Drive with the "xusb -k" are a bit strange. This is with the latest git and WDK 7.1 free build under Windows 7 x86 Virtual Machine (Mac OS X Lion 10.7.4 host). The timeout for the 2nd case may have something to do with the VirtualBox VM used. I will test with real Windows machine over the weekend. 1) libusb0.sys filter driver + Windows USB Mass Storage Driver C:\work\libusbx\libusbx\Win32\Release\examples>xusb.exe -k 0781:5530 Using libusbx v1.0.12.10551 Opening device... bus: 2, port path from HCD: 1 speed: 480 Mbit/s (USB HighSpeed) Reading device descriptor: length: 18 device class: 0 S/N: 3 VID:PID: 0781:5530 bcdDevice: 0200 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: 08.06.50 endpoint[0].address: 81 max packet size: 0200 polling interval: 00 endpoint[1].address: 02 max packet size: 0200 polling interval: 00 Claiming interface 0... libusbx: error [winusbx_claim_interface] could not access interface 0: [50] The request is not supported. libusbx: info [get_interface_details_filter] assigned libusb0 symbolic link \\.\ libusb0-0001 Reading string descriptors: String (0x01): "SanDisk" String (0x02): "SanDisk Cruzer" String (0x03): "0165731395136589" libusbx: error [winusbx_submit_control_transfer] ControlTransfer failed: [995] T he I/O operation has been aborted because of either a thread exit or an applicat ion request. Reading Max LUN: Max LUN = 0 Sending Inquiry: sent 6 CDB bytes received 36 bytes VID:PID:REV "SanDisk ":"SanDisk ":"8.02" Mass Storage Status: 00 (Success) Reading Capacity: sent 10 CDB bytes received 8 bytes Max LBA: 00EF7FFE, Block Size: 00000200 (7.48 GB) Mass Storage Status: 00 (Success) Attempting to read 512 bytes: sent 10 CDB bytes READ: received 512 bytes Mass Storage Status: 00 (Success) 00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000070 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000080 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000090 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 000000a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 000000b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 000000c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 000000d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 000000e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 000000f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000110 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000120 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000130 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000140 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000150 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000160 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000170 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000180 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000190 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 000001a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 000001b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 000001c0 2d 00 0b fe ff cf 2c 00 00 00 a4 3f ef 00 00 00 -.....,....?.... 000001d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa ..............U. Releasing interface 0... Closing device... 2) libusb0.sys or winusb.sys or libusbk.sys device driver C:\work\libusbx\libusbx\Win32\Release\examples>xusb.exe -k 0781:5530 Using libusbx v1.0.12.10551 Opening device... bus: 2, port path from HCD: 1 speed: 480 Mbit/s (USB HighSpeed) Reading device descriptor: length: 18 device class: 0 S/N: 3 VID:PID: 0781:5530 bcdDevice: 0200 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: 08.06.50 endpoint[0].address: 81 max packet size: 0200 polling interval: 00 endpoint[1].address: 02 max packet size: 0200 polling interval: 00 Claiming interface 0... Reading string descriptors: String (0x01): "SanDisk" String (0x02): "SanDisk Cruzer" String (0x03): "0165731395136589" Reading Max LUN: Max LUN = 1 Sending Inquiry: sent 6 CDB bytes received 36 bytes VID:PID:REV "SanDisk ":"SanDisk ":"8.02" Mass Storage Status: 00 (Success) Reading Capacity: sent 10 CDB bytes LIBUSB_ERROR_PIPE LIBUSB_ERROR_IO libusbx: warning [libusb_exit] application left some devices open -- Xiaofan ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ libusbx-devel mailing list libusbx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libusbx-devel