I can not help rehashing an old thread about device filtering because of the following warning message under Mac OS X.
kernel responded with code: 0xe000404f. sleeping for 30 ms before trying again Also now that libusbx fork is public, so I think it is not a problem to expose the original fork mailing list. It is a long and heated discussion. http://lists.infradead.org/pipermail/libusbx/2012-January/thread.html#41 http://lists.infradead.org/pipermail/libusbx/2012-February/thread.html#80 History: http://www.libusb.org/ticket/86 http://libusb.6.n5.nabble.com/OSX-critical-bug-td4576409.html http://libusb.6.n5.nabble.com/Apple-USB-mailing-list-comments-about-libusb-td4740321.html You can see that Vitali, Segher (mainly on Mac OS X), Travis and I tend to agree with the filtering proposal. We think it is at least some performance impact for the current approach of enumeating all the USB device. Eg: Segher's view. http://libusb.6.n5.nabble.com/Apple-USB-mailing-list-comments-about-libusb-tp4740321p4741170.html Segher's summary: http://lists.infradead.org/pipermail/libusbx/2012-February/000152.html On the other hand, others have different opinions, especially about the solutions. Pete sees this as a bigger part of the hotplug discussion and proposed to use a dedicated enumeration process. Others are against this proposal. I think we may need to have another round of discussions about the device enumeration process. ================== mymacmini:examples xiaofanc$ ./xusb -d -j 0403:cff8 Using libusbx v1.0.10.10492 [timestamp] [threadID] facility level [function call] <message> -------------------------------------------------------------------------------- [ 0.000000] [00000e07] libusbx: debug [libusb_init] [ 0.000073] [00001707] libusbx: info [event_thread_main] creating hotplug event source [ 0.000535] [00001707] libusbx: info [event_thread_main] thread ready to receive events [ 0.000592] [00000e07] libusbx: debug [usbi_add_pollfd] add fd 4 events 1 [ 0.000614] [00000e07] libusbx: debug [libusb_init] created default context Opening device... [ 0.000635] [00000e07] libusbx: debug [libusb_get_device_list] [ 0.002850] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfa000000 [ 0.002889] [00000e07] libusbx: debug [darwin_cache_device_descriptor] device descriptor: [ 0.002899] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bDescriptorType: 0x01 [ 0.002906] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bcdUSB: 0x0200 [ 0.002912] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bDeviceClass: 0x09 [ 0.002919] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bDeviceSubClass: 0x00 [ 0.002925] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bDeviceProtocol: 0x01 [ 0.002931] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bMaxPacketSize0: 0x40 [ 0.002938] [00000e07] libusbx: debug [darwin_cache_device_descriptor] idVendor: 0x05ac [ 0.002944] [00000e07] libusbx: debug [darwin_cache_device_descriptor] idProduct: 0x8006 [ 0.002950] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bcdDevice: 0x0200 [ 0.002957] [00000e07] libusbx: debug [darwin_cache_device_descriptor] iManufacturer: 0x02 [ 0.002963] [00000e07] libusbx: debug [darwin_cache_device_descriptor] iProduct: 0x01 [ 0.002969] [00000e07] libusbx: debug [darwin_cache_device_descriptor] iSerialNumber: 0x00 [ 0.002975] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bNumConfigurations: 0x01 [ 0.003003] [00000e07] libusbx: info [darwin_check_configuration] active config: 1, first config: 1 [ 0.003013] [00000e07] libusbx: info [process_new_device] found device with address 1 at 001-05ac-8006-09-00 [ 0.003324] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfa100000 [ 0.003469] [00000e07] libusbx: debug [darwin_cache_device_descriptor] device descriptor: [ 0.003486] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bDescriptorType: 0x01 [ 0.003498] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bcdUSB: 0x0200 [ 0.003507] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bDeviceClass: 0x09 [ 0.003517] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bDeviceSubClass: 0x00 [ 0.003527] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bDeviceProtocol: 0x02 [ 0.003538] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bMaxPacketSize0: 0x40 [ 0.003547] [00000e07] libusbx: debug [darwin_cache_device_descriptor] idVendor: 0x0424 [ 0.003557] [00000e07] libusbx: debug [darwin_cache_device_descriptor] idProduct: 0x2513 [ 0.003567] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bcdDevice: 0x0bb3 [ 0.003577] [00000e07] libusbx: debug [darwin_cache_device_descriptor] iManufacturer: 0x00 [ 0.003587] [00000e07] libusbx: debug [darwin_cache_device_descriptor] iProduct: 0x00 [ 0.003596] [00000e07] libusbx: debug [darwin_cache_device_descriptor] iSerialNumber: 0x00 [ 0.003606] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bNumConfigurations: 0x01 [ 0.003644] [00000e07] libusbx: info [darwin_check_configuration] active config: 1, first config: 1 [ 0.003657] [00000e07] libusbx: info [process_new_device] found device with address 2 at 002-0424-2513-09-00 [ 0.004008] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfa110000 [ 0.004265] [00000e07] libusbx: debug [darwin_cache_device_descriptor] kernel responded with code: 0xe000404f. sleeping for 30 ms before trying again [ 0.035703] [00000e07] libusbx: debug [darwin_cache_device_descriptor] kernel responded with code: 0xe00002ed. sleeping for 30 ms before trying again [ 0.066804] [00000e07] libusbx: debug [darwin_cache_device_descriptor] kernel responded with code: 0xe000404f. sleeping for 30 ms before trying again [ 0.098179] [00000e07] libusbx: debug [darwin_cache_device_descriptor] kernel responded with code: 0xe00002ed. sleeping for 30 ms before trying again [ 0.129563] [00000e07] libusbx: debug [darwin_cache_device_descriptor] kernel responded with code: 0xe000404f. sleeping for 30 ms before trying again [ 0.161154] [00000e07] libusbx: debug [darwin_cache_device_descriptor] kernel responded with code: 0xe00002ed. sleeping for 30 ms before trying again [ 0.192294] [00000e07] libusbx: debug [darwin_cache_device_descriptor] could not retrieve device descriptor 0a5c:4500: device not responding. skipping device [ 0.192366] [00000e07] libusbx: debug [libusb_unref_device] destroy device 0.0 [ 0.192906] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfa130000 [ 0.193298] [00000e07] libusbx: debug [darwin_cache_device_descriptor] device descriptor: [ 0.193316] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bDescriptorType: 0x01 [ 0.193327] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bcdUSB: 0x0200 [ 0.193340] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bDeviceClass: 0x09 [ 0.193352] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bDeviceSubClass: 0x00 [ 0.193359] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bDeviceProtocol: 0x01 [ 0.193366] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bMaxPacketSize0: 0x40 [ 0.193372] [00000e07] libusbx: debug [darwin_cache_device_descriptor] idVendor: 0x05e3 [ 0.193379] [00000e07] libusbx: debug [darwin_cache_device_descriptor] idProduct: 0x0606 [ 0.193385] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bcdDevice: 0x0702 [ 0.193391] [00000e07] libusbx: debug [darwin_cache_device_descriptor] iManufacturer: 0x00 [ 0.193398] [00000e07] libusbx: debug [darwin_cache_device_descriptor] iProduct: 0x01 [ 0.193404] [00000e07] libusbx: debug [darwin_cache_device_descriptor] iSerialNumber: 0x00 [ 0.193410] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bNumConfigurations: 0x01 [ 0.193438] [00000e07] libusbx: info [darwin_check_configuration] active config: 1, first config: 1 [ 0.193448] [00000e07] libusbx: info [process_new_device] found device with address 4 at 004-05e3-0606-09-00 [ 0.193802] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfa120000 [ 0.195066] [00000e07] libusbx: debug [darwin_cache_device_descriptor] device descriptor: [ 0.195085] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bDescriptorType: 0x01 [ 0.195095] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bcdUSB: 0x0200 [ 0.195103] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bDeviceClass: 0x00 [ 0.195110] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bDeviceSubClass: 0x00 [ 0.195117] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bDeviceProtocol: 0x00 [ 0.195123] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bMaxPacketSize0: 0x08 [ 0.195130] [00000e07] libusbx: debug [darwin_cache_device_descriptor] idVendor: 0x04f2 [ 0.195137] [00000e07] libusbx: debug [darwin_cache_device_descriptor] idProduct: 0x0760 [ 0.195143] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bcdDevice: 0x0100 [ 0.195149] [00000e07] libusbx: debug [darwin_cache_device_descriptor] iManufacturer: 0x01 [ 0.195156] [00000e07] libusbx: debug [darwin_cache_device_descriptor] iProduct: 0x02 [ 0.195162] [00000e07] libusbx: debug [darwin_cache_device_descriptor] iSerialNumber: 0x00 [ 0.195169] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bNumConfigurations: 0x01 [ 0.195195] [00000e07] libusbx: info [darwin_check_configuration] active config: 1, first config: 1 [ 0.195205] [00000e07] libusbx: info [process_new_device] found device with address 5 at 005-04f2-0760-00-00 [ 0.195674] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfa113000 [ 0.195827] [00000e07] libusbx: debug [darwin_cache_device_descriptor] kernel responded with code: 0xe000404f. sleeping for 30 ms before trying again [ 0.227175] [00000e07] libusbx: debug [darwin_cache_device_descriptor] kernel responded with code: 0xe00002ed. sleeping for 30 ms before trying again [ 0.258513] [00000e07] libusbx: debug [darwin_cache_device_descriptor] kernel responded with code: 0xe000404f. sleeping for 30 ms before trying again [ 0.290020] [00000e07] libusbx: debug [darwin_cache_device_descriptor] kernel responded with code: 0xe00002ed. sleeping for 30 ms before trying again [ 0.321237] [00000e07] libusbx: debug [darwin_cache_device_descriptor] kernel responded with code: 0xe000404f. sleeping for 30 ms before trying again [ 0.352554] [00000e07] libusbx: debug [darwin_cache_device_descriptor] kernel responded with code: 0xe00002ed. sleeping for 30 ms before trying again [ 0.382932] [00000e07] libusbx: warning [darwin_cache_device_descriptor] could not retrieve device descriptor 05ac:8281: device not responding. skipping device [ 0.383007] [00000e07] libusbx: debug [libusb_unref_device] destroy device 0.0 [ 0.383789] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfa132000 [ 0.384509] [00000e07] libusbx: debug [darwin_cache_device_descriptor] device descriptor: [ 0.384542] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bDescriptorType: 0x01 [ 0.384556] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bcdUSB: 0x0200 [ 0.384568] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bDeviceClass: 0x00 [ 0.384585] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bDeviceSubClass: 0x00 [ 0.384602] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bDeviceProtocol: 0x00 [ 0.384622] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bMaxPacketSize0: 0x20 [ 0.384638] [00000e07] libusbx: debug [darwin_cache_device_descriptor] idVendor: 0x046d [ 0.384657] [00000e07] libusbx: debug [darwin_cache_device_descriptor] idProduct: 0xc52b [ 0.384675] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bcdDevice: 0x2400 [ 0.384692] [00000e07] libusbx: debug [darwin_cache_device_descriptor] iManufacturer: 0x01 [ 0.384708] [00000e07] libusbx: debug [darwin_cache_device_descriptor] iProduct: 0x02 [ 0.384726] [00000e07] libusbx: debug [darwin_cache_device_descriptor] iSerialNumber: 0x00 [ 0.384743] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bNumConfigurations: 0x01 [ 0.384811] [00000e07] libusbx: info [darwin_check_configuration] active config: 1, first config: 1 [ 0.384836] [00000e07] libusbx: info [process_new_device] found device with address 6 at 006-046d-c52b-00-00 [ 0.385473] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfa134000 [ 0.386386] [00000e07] libusbx: debug [darwin_cache_device_descriptor] device descriptor: [ 0.386419] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bDescriptorType: 0x01 [ 0.386430] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bcdUSB: 0x0200 [ 0.386439] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bDeviceClass: 0x00 [ 0.386448] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bDeviceSubClass: 0x00 [ 0.386457] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bDeviceProtocol: 0x00 [ 0.386466] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bMaxPacketSize0: 0x08 [ 0.386474] [00000e07] libusbx: debug [darwin_cache_device_descriptor] idVendor: 0x046d [ 0.386483] [00000e07] libusbx: debug [darwin_cache_device_descriptor] idProduct: 0xc054 [ 0.386492] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bcdDevice: 0x5400 [ 0.386501] [00000e07] libusbx: debug [darwin_cache_device_descriptor] iManufacturer: 0x01 [ 0.386510] [00000e07] libusbx: debug [darwin_cache_device_descriptor] iProduct: 0x02 [ 0.386518] [00000e07] libusbx: debug [darwin_cache_device_descriptor] iSerialNumber: 0x00 [ 0.386527] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bNumConfigurations: 0x01 [ 0.386562] [00000e07] libusbx: info [darwin_check_configuration] active config: 1, first config: 1 [ 0.386573] [00000e07] libusbx: info [process_new_device] found device with address 7 at 007-046d-c054-00-00 [ 0.387044] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfa131000 [ 0.387600] [00000e07] libusbx: debug [darwin_cache_device_descriptor] device descriptor: [ 0.387629] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bDescriptorType: 0x01 [ 0.387646] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bcdUSB: 0x0200 [ 0.387656] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bDeviceClass: 0x00 [ 0.387665] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bDeviceSubClass: 0x00 [ 0.387678] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bDeviceProtocol: 0x00 [ 0.387693] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bMaxPacketSize0: 0x40 [ 0.387704] [00000e07] libusbx: debug [darwin_cache_device_descriptor] idVendor: 0x0403 [ 0.387713] [00000e07] libusbx: debug [darwin_cache_device_descriptor] idProduct: 0xcff8 [ 0.387722] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bcdDevice: 0x0700 [ 0.387731] [00000e07] libusbx: debug [darwin_cache_device_descriptor] iManufacturer: 0x01 [ 0.387740] [00000e07] libusbx: debug [darwin_cache_device_descriptor] iProduct: 0x02 [ 0.387748] [00000e07] libusbx: debug [darwin_cache_device_descriptor] iSerialNumber: 0x03 [ 0.387757] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bNumConfigurations: 0x01 [ 0.387794] [00000e07] libusbx: info [darwin_check_configuration] active config: 1, first config: 1 [ 0.387806] [00000e07] libusbx: info [process_new_device] found device with address 9 at 009-0403-cff8-00-00 [ 0.388377] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfd000000 [ 0.388409] [00000e07] libusbx: debug [darwin_cache_device_descriptor] device descriptor: [ 0.388420] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bDescriptorType: 0x01 [ 0.388429] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bcdUSB: 0x0200 [ 0.388443] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bDeviceClass: 0x09 [ 0.388459] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bDeviceSubClass: 0x00 [ 0.388474] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bDeviceProtocol: 0x01 [ 0.388489] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bMaxPacketSize0: 0x40 [ 0.388505] [00000e07] libusbx: debug [darwin_cache_device_descriptor] idVendor: 0x05ac [ 0.388520] [00000e07] libusbx: debug [darwin_cache_device_descriptor] idProduct: 0x8006 [ 0.388536] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bcdDevice: 0x0200 [ 0.388550] [00000e07] libusbx: debug [darwin_cache_device_descriptor] iManufacturer: 0x02 [ 0.388566] [00000e07] libusbx: debug [darwin_cache_device_descriptor] iProduct: 0x01 [ 0.388582] [00000e07] libusbx: debug [darwin_cache_device_descriptor] iSerialNumber: 0x00 [ 0.388598] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bNumConfigurations: 0x01 [ 0.388655] [00000e07] libusbx: info [darwin_check_configuration] active config: 1, first config: 1 [ 0.388672] [00000e07] libusbx: info [process_new_device] found device with address 1 at 001-05ac-8006-09-00 [ 0.389141] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfd100000 [ 0.389328] [00000e07] libusbx: debug [darwin_cache_device_descriptor] device descriptor: [ 0.389357] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bDescriptorType: 0x01 [ 0.389368] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bcdUSB: 0x0200 [ 0.389378] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bDeviceClass: 0x09 [ 0.389387] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bDeviceSubClass: 0x00 [ 0.389396] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bDeviceProtocol: 0x02 [ 0.389405] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bMaxPacketSize0: 0x40 [ 0.389413] [00000e07] libusbx: debug [darwin_cache_device_descriptor] idVendor: 0x0424 [ 0.389422] [00000e07] libusbx: debug [darwin_cache_device_descriptor] idProduct: 0x2513 [ 0.389432] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bcdDevice: 0x0bb3 [ 0.389441] [00000e07] libusbx: debug [darwin_cache_device_descriptor] iManufacturer: 0x00 [ 0.389449] [00000e07] libusbx: debug [darwin_cache_device_descriptor] iProduct: 0x00 [ 0.389458] [00000e07] libusbx: debug [darwin_cache_device_descriptor] iSerialNumber: 0x00 [ 0.389467] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bNumConfigurations: 0x01 [ 0.389504] [00000e07] libusbx: info [darwin_check_configuration] active config: 1, first config: 1 [ 0.389517] [00000e07] libusbx: debug [discovered_devs_append] need to increase capacity [ 0.389546] [00000e07] libusbx: info [process_new_device] found device with address 2 at 002-0424-2513-09-00 [ 0.390125] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfd110000 [ 0.491777] [00000e07] libusbx: debug [darwin_cache_device_descriptor] kernel responded with code: 0xe000404f. sleeping for 30 ms before trying again [ 0.537820] [00000e07] libusbx: debug [darwin_cache_device_descriptor] device descriptor: [ 0.537851] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bDescriptorType: 0x01 [ 0.537859] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bcdUSB: 0x0200 [ 0.537867] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bDeviceClass: 0x00 [ 0.537873] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bDeviceSubClass: 0x00 [ 0.537880] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bDeviceProtocol: 0x00 [ 0.537886] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bMaxPacketSize0: 0x08 [ 0.537893] [00000e07] libusbx: debug [darwin_cache_device_descriptor] idVendor: 0x05ac [ 0.537899] [00000e07] libusbx: debug [darwin_cache_device_descriptor] idProduct: 0x8242 [ 0.537906] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bcdDevice: 0x0016 [ 0.537912] [00000e07] libusbx: debug [darwin_cache_device_descriptor] iManufacturer: 0x01 [ 0.537919] [00000e07] libusbx: debug [darwin_cache_device_descriptor] iProduct: 0x02 [ 0.537926] [00000e07] libusbx: debug [darwin_cache_device_descriptor] iSerialNumber: 0x00 [ 0.537932] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bNumConfigurations: 0x01 [ 0.537966] [00000e07] libusbx: info [darwin_check_configuration] active config: 1, first config: 1 [ 0.537976] [00000e07] libusbx: info [process_new_device] found device with address 3 at 003-05ac-8242-00-00 [ 0.538475] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfd130000 [ 0.539031] [00000e07] libusbx: debug [darwin_cache_device_descriptor] device descriptor: [ 0.539099] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bDescriptorType: 0x01 [ 0.539112] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bcdUSB: 0x0200 [ 0.539124] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bDeviceClass: 0xef [ 0.539133] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bDeviceSubClass: 0x02 [ 0.539140] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bDeviceProtocol: 0x01 [ 0.539147] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bMaxPacketSize0: 0x40 [ 0.539153] [00000e07] libusbx: debug [darwin_cache_device_descriptor] idVendor: 0x0ac8 [ 0.539160] [00000e07] libusbx: debug [darwin_cache_device_descriptor] idProduct: 0x3420 [ 0.539166] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bcdDevice: 0x0100 [ 0.539173] [00000e07] libusbx: debug [darwin_cache_device_descriptor] iManufacturer: 0x01 [ 0.539179] [00000e07] libusbx: debug [darwin_cache_device_descriptor] iProduct: 0x02 [ 0.539186] [00000e07] libusbx: debug [darwin_cache_device_descriptor] iSerialNumber: 0x00 [ 0.539192] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bNumConfigurations: 0x01 [ 0.539217] [00000e07] libusbx: info [darwin_check_configuration] active config: 1, first config: 1 [ 0.539227] [00000e07] libusbx: info [process_new_device] found device with address 4 at 004-0ac8-3420-ef-02 [ 0.539635] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfd120000 [ 0.539817] [00000e07] libusbx: debug [darwin_cache_device_descriptor] device descriptor: [ 0.539832] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bDescriptorType: 0x01 [ 0.539844] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bcdUSB: 0x0101 [ 0.539855] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bDeviceClass: 0x02 [ 0.539865] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bDeviceSubClass: 0x00 [ 0.539877] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bDeviceProtocol: 0x00 [ 0.539887] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bMaxPacketSize0: 0x40 [ 0.539897] [00000e07] libusbx: debug [darwin_cache_device_descriptor] idVendor: 0xffff [ 0.539907] [00000e07] libusbx: debug [darwin_cache_device_descriptor] idProduct: 0x0005 [ 0.539918] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bcdDevice: 0x0100 [ 0.539929] [00000e07] libusbx: debug [darwin_cache_device_descriptor] iManufacturer: 0x01 [ 0.539939] [00000e07] libusbx: debug [darwin_cache_device_descriptor] iProduct: 0x02 [ 0.539949] [00000e07] libusbx: debug [darwin_cache_device_descriptor] iSerialNumber: 0x03 [ 0.539959] [00000e07] libusbx: debug [darwin_cache_device_descriptor] bNumConfigurations: 0x01 [ 0.539998] [00000e07] libusbx: info [darwin_check_configuration] active config: 1, first config: 1 [ 0.540012] [00000e07] libusbx: info [process_new_device] found device with address 5 at 005-ffff-0005-02-00 [ 0.540089] [00000e07] libusbx: debug [libusb_get_device_descriptor] [ 0.540098] [00000e07] libusbx: debug [libusb_get_device_descriptor] [ 0.540105] [00000e07] libusbx: debug [libusb_get_device_descriptor] [ 0.540114] [00000e07] libusbx: debug [libusb_get_device_descriptor] [ 0.540123] [00000e07] libusbx: debug [libusb_get_device_descriptor] [ 0.540132] [00000e07] libusbx: debug [libusb_get_device_descriptor] [ 0.540141] [00000e07] libusbx: debug [libusb_get_device_descriptor] [ 0.540151] [00000e07] libusbx: debug [libusb_open] open 250.9 [ 0.541407] [00000e07] libusbx: debug [usbi_add_pollfd] add fd 6 events 1 [ 0.541421] [00000e07] libusbx: info [darwin_open] device open for access [ 0.541445] [00000e07] libusbx: debug [libusb_unref_device] destroy device 250.1 [ 0.541454] [00000e07] libusbx: debug [libusb_unref_device] destroy device 250.2 [ 0.541461] [00000e07] libusbx: debug [libusb_unref_device] destroy device 250.4 [ 0.541469] [00000e07] libusbx: debug [libusb_unref_device] destroy device 250.5 [ 0.541476] [00000e07] libusbx: debug [libusb_unref_device] destroy device 250.6 [ 0.541484] [00000e07] libusbx: debug [libusb_unref_device] destroy device 250.7 [ 0.541491] [00000e07] libusbx: debug [libusb_unref_device] destroy device 253.1 [ 0.541498] [00000e07] libusbx: debug [libusb_unref_device] destroy device 253.2 [ 0.541505] [00000e07] libusbx: debug [libusb_unref_device] destroy device 253.3 [ 0.541513] [00000e07] libusbx: debug [libusb_unref_device] destroy device 253.4 [ 0.541520] [00000e07] libusbx: debug [libusb_unref_device] destroy device 253.5 speed: 480 Mbit/s (USB 2.0 HighSpeed) Reading device descriptor: [ 0.541535] [00000e07] libusbx: debug [libusb_get_device_descriptor] length: 18 device class: 0 S/N: 3 VID:PID: 0403:CFF8 bcdDevice: 0700 iMan:iProd:iSer: 1:2:3 nb confs: 1 Reading configuration descriptors: [ 0.541554] [00000e07] libusbx: debug [libusb_get_config_descriptor] index 0 nb interfaces: 2 interface[0]: id = 0 interface[0].altsetting[0]: num endpoints = 2 Class.SubClass.Protocol: FF.FF.FF endpoint[0].address: 81 max packet size: 0200 polling interval: 00 endpoint[1].address: 02 max packet size: 0200 polling interval: 00 interface[1]: id = 1 interface[1].altsetting[0]: num endpoints = 2 Class.SubClass.Protocol: FF.FF.FF endpoint[0].address: 83 max packet size: 0200 polling interval: 00 endpoint[1].address: 04 max packet size: 0200 polling interval: 00 Claiming interface 0... [ 0.541603] [00000e07] libusbx: debug [libusb_claim_interface] interface 0 [ 0.542144] [00000e07] libusbx: info [get_endpoints] building table of endpoints. [ 0.542166] [00000e07] libusbx: info [get_endpoints] interface: 0 pipe 1: dir: 1 number: 1 [ 0.542175] [00000e07] libusbx: info [get_endpoints] interface: 0 pipe 2: dir: 0 number: 2 [ 0.542206] [00000e07] libusbx: info [darwin_claim_interface] interface opened Claiming interface 1... [ 0.542216] [00000e07] libusbx: debug [libusb_claim_interface] interface 1 [ 0.542669] [00000e07] libusbx: info [get_endpoints] building table of endpoints. [ 0.542684] [00000e07] libusbx: info [get_endpoints] interface: 1 pipe 1: dir: 1 number: 3 [ 0.542693] [00000e07] libusbx: info [get_endpoints] interface: 1 pipe 2: dir: 0 number: 4 [ 0.542725] [00000e07] libusbx: info [darwin_claim_interface] interface opened Reading string descriptors: [ 0.542795] [00000e07] libusbx: debug [libusb_get_next_timeout] no URB with timeout or all handled by OS; no timeout! [ 0.542816] [00000e07] libusbx: debug [libusb_handle_events_timeout_completed] doing our own event handling [ 0.542829] [00000e07] libusbx: debug [handle_events] poll() 2 fds with timeout in 60000ms [ 0.542961] [00001707] libusbx: info [darwin_async_io_callback] an async io operation has completed [ 0.543003] [00000e07] libusbx: debug [handle_events] poll() returned 1 [ 0.543020] [00000e07] libusbx: info [op_handle_events] checking fd 4 with revents = 0 [ 0.543029] [00000e07] libusbx: info [op_handle_events] checking fd 6 with revents = 1 [ 0.543042] [00000e07] libusbx: info [darwin_handle_callback] handling control completion with kernel status 0 [ 0.543053] [00000e07] libusbx: debug [usbi_handle_transfer_completion] transfer 0x7f7fbc1042e0 has callback 0x1011be4d0 [ 0.543066] [00000e07] libusbx: debug [ctrl_transfer_cb] actual_length=4 [ 0.543133] [00000e07] libusbx: debug [libusb_get_next_timeout] no URB with timeout or all handled by OS; no timeout! [ 0.543150] [00000e07] libusbx: debug [libusb_handle_events_timeout_completed] doing our own event handling [ 0.543162] [00000e07] libusbx: debug [handle_events] poll() 2 fds with timeout in 60000ms [ 0.544078] [00001707] libusbx: info [darwin_async_io_callback] an async io operation has completed [ 0.544105] [00000e07] libusbx: debug [handle_events] poll() returned 1 [ 0.544124] [00000e07] libusbx: info [op_handle_events] checking fd 4 with revents = 0 [ 0.544134] [00000e07] libusbx: info [op_handle_events] checking fd 6 with revents = 1 [ 0.544148] [00000e07] libusbx: info [darwin_handle_callback] handling control completion with kernel status 0 [ 0.544157] [00000e07] libusbx: debug [usbi_handle_transfer_completion] transfer 0x7f7fbc1042e0 has callback 0x1011be4d0 [ 0.544169] [00000e07] libusbx: debug [ctrl_transfer_cb] actual_length=16 String (0x01): "Amontec" [ 0.544224] [00000e07] libusbx: debug [libusb_get_next_timeout] no URB with timeout or all handled by OS; no timeout! [ 0.544239] [00000e07] libusbx: debug [libusb_handle_events_timeout_completed] doing our own event handling [ 0.544248] [00000e07] libusbx: debug [handle_events] poll() 2 fds with timeout in 60000ms [ 0.544316] [00001707] libusbx: info [darwin_async_io_callback] an async io operation has completed [ 0.544354] [00000e07] libusbx: debug [handle_events] poll() returned 1 [ 0.544368] [00000e07] libusbx: info [op_handle_events] checking fd 4 with revents = 0 [ 0.544373] [00000e07] libusbx: info [op_handle_events] checking fd 6 with revents = 1 [ 0.544381] [00000e07] libusbx: info [darwin_handle_callback] handling control completion with kernel status 0 [ 0.544386] [00000e07] libusbx: debug [usbi_handle_transfer_completion] transfer 0x7f7fbc0003e0 has callback 0x1011be4d0 [ 0.544393] [00000e07] libusbx: debug [ctrl_transfer_cb] actual_length=4 [ 0.544443] [00000e07] libusbx: debug [libusb_get_next_timeout] no URB with timeout or all handled by OS; no timeout! [ 0.544458] [00000e07] libusbx: debug [libusb_handle_events_timeout_completed] doing our own event handling [ 0.544465] [00000e07] libusbx: debug [handle_events] poll() 2 fds with timeout in 60000ms [ 0.546349] [00001707] libusbx: info [darwin_async_io_callback] an async io operation has completed [ 0.546386] [00000e07] libusbx: debug [handle_events] poll() returned 1 [ 0.546405] [00000e07] libusbx: info [op_handle_events] checking fd 4 with revents = 0 [ 0.546412] [00000e07] libusbx: info [op_handle_events] checking fd 6 with revents = 1 [ 0.546423] [00000e07] libusbx: info [darwin_handle_callback] handling control completion with kernel status 0 [ 0.546432] [00000e07] libusbx: debug [usbi_handle_transfer_completion] transfer 0x7f7fbc0003e0 has callback 0x1011be4d0 [ 0.546444] [00000e07] libusbx: debug [ctrl_transfer_cb] actual_length=36 String (0x02): "Amontec JTAGkey-2" [ 0.546509] [00000e07] libusbx: debug [libusb_get_next_timeout] no URB with timeout or all handled by OS; no timeout! [ 0.546524] [00000e07] libusbx: debug [libusb_handle_events_timeout_completed] doing our own event handling [ 0.546538] [00000e07] libusbx: debug [handle_events] poll() 2 fds with timeout in 60000ms [ 0.546692] [00001707] libusbx: info [darwin_async_io_callback] an async io operation has completed [ 0.546723] [00000e07] libusbx: debug [handle_events] poll() returned 1 [ 0.546740] [00000e07] libusbx: info [op_handle_events] checking fd 4 with revents = 0 [ 0.546746] [00000e07] libusbx: info [op_handle_events] checking fd 6 with revents = 1 [ 0.546755] [00000e07] libusbx: info [darwin_handle_callback] handling control completion with kernel status 0 [ 0.546765] [00000e07] libusbx: debug [usbi_handle_transfer_completion] transfer 0x7f7fba501750 has callback 0x1011be4d0 [ 0.546777] [00000e07] libusbx: debug [ctrl_transfer_cb] actual_length=4 [ 0.546845] [00000e07] libusbx: debug [libusb_get_next_timeout] no URB with timeout or all handled by OS; no timeout! [ 0.546861] [00000e07] libusbx: debug [libusb_handle_events_timeout_completed] doing our own event handling [ 0.546873] [00000e07] libusbx: debug [handle_events] poll() 2 fds with timeout in 60000ms [ 0.547967] [00001707] libusbx: info [darwin_async_io_callback] an async io operation has completed [ 0.548033] [00000e07] libusbx: debug [handle_events] poll() returned 1 [ 0.548058] [00000e07] libusbx: info [op_handle_events] checking fd 4 with revents = 0 [ 0.548067] [00000e07] libusbx: info [op_handle_events] checking fd 6 with revents = 1 [ 0.548080] [00000e07] libusbx: info [darwin_handle_callback] handling control completion with kernel status 0 [ 0.548088] [00000e07] libusbx: debug [usbi_handle_transfer_completion] transfer 0x7f7fbc0003e0 has callback 0x1011be4d0 [ 0.548100] [00000e07] libusbx: debug [ctrl_transfer_cb] actual_length=18 String (0x03): "53T9XDR4" [ 0.548176] [00000e07] libusbx: debug [libusb_get_next_timeout] no URB with timeout or all handled by OS; no timeout! [ 0.548193] [00000e07] libusbx: debug [libusb_handle_events_timeout_completed] doing our own event handling [ 0.548205] [00000e07] libusbx: debug [handle_events] poll() 2 fds with timeout in 60000ms [ 0.548310] [00001707] libusbx: info [darwin_async_io_callback] an async io operation has completed [ 0.548334] [00000e07] libusbx: debug [handle_events] poll() returned 1 [ 0.548348] [00000e07] libusbx: info [op_handle_events] checking fd 4 with revents = 0 [ 0.548357] [00000e07] libusbx: info [op_handle_events] checking fd 6 with revents = 1 [ 0.548369] [00000e07] libusbx: info [darwin_handle_callback] handling control completion with kernel status 0 [ 0.548377] [00000e07] libusbx: debug [usbi_handle_transfer_completion] transfer 0x7f7fba501750 has callback 0x1011be4d0 [ 0.548388] [00000e07] libusbx: debug [ctrl_transfer_cb] actual_length=4 [ 0.548445] [00000e07] libusbx: debug [libusb_get_next_timeout] no URB with timeout or all handled by OS; no timeout! [ 0.548463] [00000e07] libusbx: debug [libusb_handle_events_timeout_completed] doing our own event handling [ 0.548471] [00000e07] libusbx: debug [handle_events] poll() 2 fds with timeout in 60000ms [ 0.548686] [00001707] libusbx: info [darwin_async_io_callback] an async io operation has completed [ 0.548719] [00000e07] libusbx: debug [handle_events] poll() returned 1 [ 0.548735] [00000e07] libusbx: info [op_handle_events] checking fd 4 with revents = 0 [ 0.548744] [00000e07] libusbx: info [op_handle_events] checking fd 6 with revents = 1 [ 0.548757] [00000e07] libusbx: info [darwin_handle_callback] handling control completion with kernel status -536854449 [ 0.548766] [00000e07] libusbx: warning [darwin_transfer_status] transfer error: pipe is stalled [ 0.548774] [00000e07] libusbx: debug [usbi_handle_transfer_completion] transfer 0x7f7fba40a3b0 has callback 0x1011be4d0 [ 0.548780] [00000e07] libusbx: debug [ctrl_transfer_cb] actual_length=0 Releasing interface 0... [ 0.548803] [00000e07] libusbx: debug [libusb_release_interface] interface 0 Releasing interface 1... [ 0.550241] [00000e07] libusbx: debug [libusb_release_interface] interface 1 Closing device... [ 0.552897] [00000e07] libusbx: debug [libusb_close] [ 0.553012] [00000e07] libusbx: debug [usbi_remove_pollfd] remove fd 6 [ 0.553088] [00000e07] libusbx: debug [libusb_unref_device] destroy device 250.9 [ 0.553111] [00000e07] libusbx: debug [libusb_exit] [ 0.553119] [00000e07] libusbx: debug [libusb_exit] destroying default context [ 0.553125] [00000e07] libusbx: debug [usbi_remove_pollfd] remove fd 4 [ 0.553168] [00001707] libusbx: info [event_thread_main] thread exiting -- 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