[prev in list] [next in list] [prev in thread] [next in thread] 

List:       libusb-devel
Subject:    Re: [libusb] usbdk backend test
From:       Dmitry Fleytman <dmitry () daynix ! com>
Date:       2017-01-26 16:27:48
Message-ID: 160EDFB0-56AB-4734-A9BB-AE834D42865A () daynix ! com
[Download RAW message or body]


> On 20 Jan 2017, at 12:54 PM, Xiaofan Chen <xiaofanc@gmail.com> wrote:
> 
> On Thu, Jan 19, 2017 at 9:03 PM, Sameeh Jubran <sameeh@daynix.com> wrote:
>> Can you see these errors in Winusb (using the same device)?
>> 
>> [ 0.406097] [00001a50] libusb: debug [windows_transfer_callback]
>> handling I/O completion with errcode 31, size 0
>> [ 0.406596] [00001a50] libusb: debug [windows_transfer_callback]
>> detected endpoint stall
>> 
>> If so, I think that these are the same errors, but due to different
>> error code handling in Winusb and Usbdk it results in a different log
>> in libusb, in the function  windows_transfer_callback.
> 
> I see. From the following WinUSB run log, it seems to be the case.
> Maybe this kind of backend differences should be aligned or at least
> documented somehow.

Yes, we will align error codes.

> 
> mcuee@Win7HomeX64_PC MINGW32 /h/work/libusb/libusb/build_mingw32_winusb
> $ ./examples/xusb.exe 1366:0101
> Using libusb v1.0.21.11157
> 
> Opening device 1366:0101...
> 
> Reading device descriptor:
>            length: 18
>      device class: 0
>               S/N: 3
>           VID:PID: 1366:0101
>         bcdDevice: 0001
>   iMan:iProd:iSer: 1:2:3
>          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: 81
>           max packet size: 0040
>          polling interval: 00
>       endpoint[1].address: 02
>           max packet size: 0040
>          polling interval: 00
> 
> Claiming interface 0...
> 
> Reading string descriptors:
>   String (0x01): "SEGGER"
>   String (0x02): "J-Link"
>   String (0x03): "0077000044"
> 
> Releasing interface 0...
> Closing device...
> libusb: error [init_device] device
> '\\.\USB#VID_045E&PID_0773&MI_01#6&1315E060&0&0001' is no longer
> connected!
> libusb: error [init_device] device
> '\\.\USB#VID_045E&PID_0773&MI_02#6&1315E060&0&0002' is no longer
> connected!
> 
> 
> 
> 
> mcuee@Win7HomeX64_PC MINGW32 /h/work/libusb/libusb/build_mingw32_winusb
> $ ./examples/xusb.exe -d 1366:0101
> [timestamp] [threadID] facility level [function call] <message>
> --------------------------------------------------------------------------------
> [ 0.000000] [0000123c] libusb: debug [libusb_init] created default context
> [ 0.000000] [0000123c] libusb: debug [libusb_init] libusb v1.0.21.11157
> [ 0.000000] [0000123c] libusb: debug [windows_init] Windows 11 or later 32 bit
> [ 0.000000] [0000123c] libusb: debug [setup_cancel_io] Will use
> CancelIoEx for I/O cancellation
> [ 0.015628] [0000123c] libusb: debug [winusbx_init] using libusbK DLL
> for universal access
> [ 0.015628] [0000123c] libusb: debug [winusbx_init] libusbK version: 3.0.7.0
> [ 0.015628] [0000123c] libusb: debug [winusbx_init] initalized sub API libusbK
> [ 0.015628] [0000123c] libusb: debug [winusbx_init] initalized sub API libusb0
> [ 0.015628] [0000123c] libusb: debug [winusbx_init] initalized sub API WinUSB
> [ 0.015628] [0000123c] libusb: debug [windows_init_clock] hires timer
> available (Frequency: 2050782 Hz)
> [ 0.015628] [0000123c] libusb: debug [windows_init_clock] timer thread
> will run on core #0
> [ 0.015628] [0000123c] libusb: debug [htab_create] using 1021 entries hash table
> [ 0.015628] [0000123c] libusb: debug [usbi_add_pollfd] add fd 0 events 1
> [ 0.015628] [0000123c] libusb: debug [libusb_get_device_list]
> [ 0.015628] [0000123c] libusb: debug [windows_get_device_list]
> allocating new device for session [381]
> [ 0.015628] [0000123c] libusb: debug [windows_get_device_list]
> allocating new device for session [340]
> [ 0.015628] [0000123c] libusb: debug [windows_get_device_list]
> allocating new device for session [4B]
> [ 0.015628] [0000123c] libusb: debug [windows_get_device_list]
> allocating new device for session [172]
> [ 0.015628] [0000123c] libusb: debug [get_api_type] driver(s): usbhub
> [ 0.015628] [0000123c] libusb: debug [get_api_type] matched driver
> name against HUB API
> [ 0.015628] [0000123c] libusb: debug [windows_get_device_list]
> allocating new device for session [325]
> [ 0.015628] [0000123c] libusb: debug [get_api_type] driver(s): usbhub
> [ 0.015628] [0000123c] libusb: debug [get_api_type] matched driver
> name against HUB API
> [ 0.015628] [0000123c] libusb: debug [windows_get_device_list]
> allocating new device for session [14E]
> [ 0.015628] [0000123c] libusb: debug [get_api_type] driver(s): usbhub
> [ 0.015628] [0000123c] libusb: debug [get_api_type] matched driver
> name against HUB API
> [ 0.015628] [0000123c] libusb: debug [windows_get_device_list]
> allocating new device for session [3F3]
> [ 0.015628] [0000123c] libusb: debug [get_api_type] driver(s): usbhub
> [ 0.015628] [0000123c] libusb: debug [get_api_type] matched driver
> name against HUB API
> [ 0.015628] [0000123c] libusb: debug [windows_get_device_list]
> allocating new device for session [22]
> [ 0.015628] [0000123c] libusb: debug [windows_get_device_list]
> allocating new device for session [26B]
> [ 0.015628] [0000123c] libusb: debug [init_device] got bus number from
> ancestor #3
> [ 0.015628] [0000123c] libusb: debug [init_device] found 1
> configurations (active conf: 1)
> [ 0.015628] [0000123c] libusb: debug [cache_config_descriptors] cached
> config descriptor 0 (bConfigurationValue=1, 84 bytes)
> [ 0.015628] [0000123c] libusb: debug [init_device] (bus: 2, addr: 3,
> depth: 1, port: 1):
> '\\.\USB#VID_045E&PID_0773&MI_00#6&1315E060&0&0000'
> [ 0.015628] [0000123c] libusb: debug [windows_get_device_list] found
> existing device for session [14E] (0.0)
> [ 0.015628] [0000123c] libusb: debug [init_device] (bus: 4, addr: 1,
> depth: 0, port: 0): '\\.\USB#ROOT_HUB#4&3A6FCBF5&0'
> [ 0.015628] [0000123c] libusb: debug [windows_get_device_list]
> allocating new device for session [3D2]
> [ 0.015628] [0000123c] libusb: error [init_device] device
> '\\.\USB#VID_045E&PID_0773&MI_01#6&1315E060&0&0001' is no longer
> connected!
> [ 0.015628] [0000123c] libusb: debug [windows_get_device_list] found
> existing device for session [3F3] (2.0)
> [ 0.015628] [0000123c] libusb: debug [init_device] (bus: 2, addr: 1,
> depth: 0, port: 0): '\\.\USB#ROOT_HUB#4&ED791&0'
> [ 0.031253] [0000123c] libusb: debug [windows_get_device_list]
> allocating new device for session [2B2]
> [ 0.031253] [0000123c] libusb: debug [init_device] got bus number from
> ancestor #2
> [ 0.031253] [0000123c] libusb: debug [init_device] found 1
> configurations (active conf: 1)
> [ 0.031253] [0000123c] libusb: debug [cache_config_descriptors] cached
> config descriptor 0 (bConfigurationValue=1, 569 bytes)
> [ 0.031253] [0000123c] libusb: debug [init_device] (bus: 3, addr: 4,
> depth: 1, port: 7): '\\.\USB#VID_13D3&PID_5130#5&20BE7240&0&7'
> [ 0.031253] [0000123c] libusb: debug [windows_get_device_list]
> allocating new device for session [206]
> [ 0.078127] [0000123c] libusb: debug [init_device] found 1
> configurations (active conf: 1)
> [ 0.078127] [0000123c] libusb: debug [cache_config_descriptors] cached
> config descriptor 0 (bConfigurationValue=1, 216 bytes)
> [ 0.078127] [0000123c] libusb: debug [init_device] (bus: 4, addr: 3,
> depth: 1, port: 1): '\\.\USB#VID_0B05&PID_1788#1C4BD6065A96'
> [ 0.078632] [0000123c] libusb: debug [windows_get_device_list]
> allocating new device for session [1A8]
> [ 0.078632] [0000123c] libusb: error [init_device] device
> '\\.\USB#VID_045E&PID_0773&MI_02#6&1315E060&0&0002' is no longer
> connected!
> [ 0.079127] [0000123c] libusb: debug [windows_get_device_list]
> allocating new device for session [181]
> [ 0.079127] [0000123c] libusb: debug [init_device] found 1
> configurations (active conf: 1)
> [ 0.079127] [0000123c] libusb: debug [cache_config_descriptors] cached
> config descriptor 0 (bConfigurationValue=1, 84 bytes)
> [ 0.079127] [0000123c] libusb: debug [init_device] (bus: 2, addr: 3,
> depth: 1, port: 1): '\\.\USB#VID_045E&PID_0773#5&2E09F03B&0&1'
> [ 0.079127] [0000123c] libusb: debug [windows_get_device_list]
> allocating new device for session [D5]
> [ 0.079127] [0000123c] libusb: debug [init_device] found 1
> configurations (active conf: 1)
> [ 0.079127] [0000123c] libusb: debug [cache_config_descriptors] cached
> config descriptor 0 (bConfigurationValue=1, 32 bytes)
> [ 0.079127] [0000123c] libusb: debug [init_device] (bus: 3, addr: 2,
> depth: 1, port: 5): '\\.\USB#VID_058F&PID_6366#058F63666433'
> [ 0.079127] [0000123c] libusb: debug [windows_get_device_list] found
> existing device for session [325] (0.0)
> [ 0.079127] [0000123c] libusb: debug [init_device] (bus: 1, addr: 1,
> depth: 0, port: 0): '\\.\USB#ROOT_HUB20#4&3287596&0'
> [ 0.079127] [0000123c] libusb: debug [windows_get_device_list] found
> existing device for session [22] (3.0)
> [ 0.079127] [0000123c] libusb: debug [init_device] (bus: 3, addr: 1,
> depth: 0, port: 0): '\\.\USB#ROOT_HUB20#4&37B181E7&0'
> [ 0.079127] [0000123c] libusb: debug [discovered_devs_append] need to
> increase capacity
> [ 0.079127] [0000123c] libusb: debug [windows_get_device_list] extra
> GUID: {4E8B1B7F-AFA6-4FD9-8EF0-B3E5959DD4C5}
> [ 0.079127] [0000123c] libusb: debug [windows_get_device_list]
> allocating new device for session [2E4]
> [ 0.079127] [0000123c] libusb: debug [init_device] found 1
> configurations (active conf: 1)
> [ 0.079127] [0000123c] libusb: debug [cache_config_descriptors] cached
> config descriptor 0 (bConfigurationValue=1, 32 bytes)
> [ 0.079127] [0000123c] libusb: debug [init_device] (bus: 2, addr: 2,
> depth: 1, port: 4): '\\.\USB#VID_1366&PID_0101#0077000044'
> [ 0.079127] [0000123c] libusb: debug [get_api_type] driver(s): usbccgp
> [ 0.079127] [0000123c] libusb: debug [get_api_type] upper filter driver(s): dc3d
> [ 0.079127] [0000123c] libusb: debug [get_api_type] matched driver
> name against Composite API
> [ 0.079127] [0000123c] libusb: debug [windows_get_device_list] found
> existing device for session [181] (2.3)
> [ 0.079127] [0000123c] libusb: debug [get_api_type] driver(s): WinUSB
> [ 0.079127] [0000123c] libusb: debug [get_api_type] matched driver
> name against WinUSB
> [ 0.079127] [0000123c] libusb: debug [windows_get_device_list] found
> existing device for session [2E4] (2.2)
> [ 0.079127] [0000123c] libusb: debug [get_api_type] driver(s): usbccgp
> [ 0.079127] [0000123c] libusb: debug [get_api_type] matched driver
> name against Composite API
> [ 0.079127] [0000123c] libusb: debug [windows_get_device_list] found
> existing device for session [2B2] (3.4)
> [ 0.079127] [0000123c] libusb: debug [get_api_type] driver(s): BTHUSB
> [ 0.079127] [0000123c] libusb: debug [windows_get_device_list] found
> existing device for session [206] (4.3)
> [ 0.079127] [0000123c] libusb: debug [get_api_type] driver(s): AmUStor
> [ 0.079127] [0000123c] libusb: debug [windows_get_device_list] found
> existing device for session [D5] (3.2)
> [ 0.079127] [0000123c] libusb: debug [get_api_type] driver(s): WinUSB
> [ 0.079127] [0000123c] libusb: debug [get_api_type] matched driver
> name against WinUSB
> [ 0.079127] [0000123c] libusb: debug [libusb_unref_device] destroy device 2.0
> [ 0.079127] [0000123c] libusb: debug [libusb_unref_device] destroy device 2.0
> [ 0.079127] [0000123c] libusb: debug [libusb_get_device_descriptor]
> [ 0.079127] [0000123c] libusb: debug [libusb_get_device_descriptor]
> [ 0.079127] [0000123c] libusb: debug [libusb_get_device_descriptor]
> [ 0.079127] [0000123c] libusb: debug [libusb_get_device_descriptor]
> [ 0.079127] [0000123c] libusb: debug [libusb_get_device_descriptor]
> [ 0.079127] [0000123c] libusb: debug [libusb_get_device_descriptor]
> [ 0.079127] [0000123c] libusb: debug [libusb_get_device_descriptor]
> [ 0.079127] [0000123c] libusb: debug [libusb_get_device_descriptor]
> [ 0.079127] [0000123c] libusb: debug [libusb_get_device_descriptor]
> [ 0.079127] [0000123c] libusb: debug [libusb_get_device_descriptor]
> [ 0.079127] [0000123c] libusb: debug [libusb_open] open 2.2
> [ 0.079127] [0000123c] libusb: debug [libusb_unref_device] destroy device 2.3
> [ 0.079127] [0000123c] libusb: debug [libusb_unref_device] destroy device 3.4
> [ 0.079127] [0000123c] libusb: debug [libusb_unref_device] destroy device 4.3
> [ 0.079127] [0000123c] libusb: debug [libusb_unref_device] destroy device 4.1
> [ 0.079127] [0000123c] libusb: debug [libusb_unref_device] destroy device 4.0
> [ 0.079127] [0000123c] libusb: debug [libusb_unref_device] destroy device 2.3
> [ 0.079127] [0000123c] libusb: debug [libusb_unref_device] destroy device 3.2
> [ 0.079127] [0000123c] libusb: debug [libusb_unref_device] destroy device 1.1
> [ 0.079127] [0000123c] libusb: debug [libusb_unref_device] destroy device 1.0
> [ 0.079127] [0000123c] libusb: debug [libusb_unref_device] destroy device 3.1
> [ 0.079127] [0000123c] libusb: debug [libusb_unref_device] destroy device 3.0
> [ 0.079127] [0000123c] libusb: debug [libusb_get_device_descriptor]
> [ 0.079127] [0000123c] libusb: debug [libusb_alloc_transfer] transfer 007DEF6C
> [ 0.079127] [0000123c] libusb: debug [libusb_submit_transfer] transfer 007DEF6C
> [ 0.079127] [0000123c] libusb: debug [libusb_claim_interface] interface 0
> [ 0.079127] [0000123c] libusb: debug [winusbx_claim_interface] claimed
> interface 0
> [ 0.079127] [0000123c] libusb: debug [windows_assign_endpoints]
> (re)assigned endpoint 81 to interface 0
> [ 0.079127] [0000123c] libusb: debug [windows_assign_endpoints]
> (re)assigned endpoint 02 to interface 0
> [ 0.079127] [0000123c] libusb: debug [auto_claim] auto-claimed
> interface 0 for control request
> [ 0.079127] [0000123c] libusb: debug [winusbx_submit_control_transfer]
> will use interface 0
> [ 0.079127] [0000123c] libusb: debug [usbi_add_pollfd] add fd 1 events 1
> [ 0.079127] [0000123c] libusb: debug [libusb_get_next_timeout] next
> timeout in 0.999512s
> [ 0.079127] [0000123c] libusb: debug
> [libusb_handle_events_timeout_completed] doing our own event handling
> [ 0.079127] [0000123c] libusb: debug [handle_events] poll fds
> modified, reallocating
> [ 0.079127] [0000123c] libusb: debug [handle_events] poll() 2 fds with
> timeout in 1000ms
> [ 0.079127] [0000123c] libusb: debug [handle_events] poll() returned 1
> [ 0.079127] [0000123c] libusb: debug [windows_handle_events] checking
> fd 1 with revents = 0001
> [ 0.079127] [0000123c] libusb: debug [usbi_remove_pollfd] remove fd 1
> [ 0.079127] [0000123c] libusb: debug [windows_transfer_callback]
> handling I/O completion with errcode 31, size 0
> [ 0.079127] [0000123c] libusb: debug [windows_transfer_callback]
> detected endpoint stall
> [ 0.079127] [0000123c] libusb: debug [libusb_release_interface] interface 0
> [ 0.079127] [0000123c] libusb: debug [auto_release] auto-released interface 0
> [ 0.079127] [0000123c] libusb: debug [usbi_handle_transfer_completion]
> transfer 007DEF6C has callback 6B807730
> [ 0.079127] [0000123c] libusb: debug [sync_transfer_cb] actual_length=0
> [ 0.079127] [0000123c] libusb: debug [libusb_free_transfer] transfer 007DEF6C
> [ 0.079127] [0000123c] libusb: debug [libusb_get_config_descriptor] index 0
> [ 0.079127] [0000123c] libusb: debug [libusb_claim_interface] interface 0
> [ 0.079127] [0000123c] libusb: debug [winusbx_claim_interface] claimed
> interface 0
> [ 0.079127] [0000123c] libusb: debug [windows_assign_endpoints]
> (re)assigned endpoint 81 to interface 0
> [ 0.079127] [0000123c] libusb: debug [windows_assign_endpoints]
> (re)assigned endpoint 02 to interface 0
> [ 0.079127] [0000123c] libusb: debug [libusb_alloc_transfer] transfer 007DEF6C
> [ 0.079127] [0000123c] libusb: debug [libusb_submit_transfer] transfer 007DEF6C
> [ 0.079127] [0000123c] libusb: debug [winusbx_submit_control_transfer]
> will use interface 0
> [ 0.079127] [0000123c] libusb: debug [usbi_add_pollfd] add fd 1 events 1
> [ 0.079127] [0000123c] libusb: debug [libusb_get_next_timeout] next
> timeout in 0.999513s
> [ 0.079127] [0000123c] libusb: debug
> [libusb_handle_events_timeout_completed] doing our own event handling
> [ 0.079127] [0000123c] libusb: debug [handle_events] poll fds
> modified, reallocating
> [ 0.079127] [0000123c] libusb: debug [handle_events] poll() 2 fds with
> timeout in 1000ms
> [ 0.079127] [0000123c] libusb: debug [handle_events] poll() returned 1
> [ 0.079127] [0000123c] libusb: debug [windows_handle_events] checking
> fd 1 with revents = 0001
> [ 0.079127] [0000123c] libusb: debug [usbi_remove_pollfd] remove fd 1
> [ 0.079127] [0000123c] libusb: debug [windows_transfer_callback]
> handling I/O completion with errcode 0, size 4
> [ 0.079127] [0000123c] libusb: debug [usbi_handle_transfer_completion]
> transfer 007DEF6C has callback 6B807730
> [ 0.079127] [0000123c] libusb: debug [sync_transfer_cb] actual_length=4
> [ 0.079127] [0000123c] libusb: debug [libusb_free_transfer] transfer 007DEF6C
> [ 0.079127] [0000123c] libusb: debug [libusb_alloc_transfer] transfer 007DEF6C
> [ 0.079127] [0000123c] libusb: debug [libusb_submit_transfer] transfer 007DEF6C
> [ 0.079127] [0000123c] libusb: debug [winusbx_submit_control_transfer]
> will use interface 0
> [ 0.079127] [0000123c] libusb: debug [usbi_add_pollfd] add fd 1 events 1
> [ 0.079127] [0000123c] libusb: debug [libusb_get_next_timeout] next
> timeout in 1.000000s
> [ 0.079127] [0000123c] libusb: debug
> [libusb_handle_events_timeout_completed] doing our own event handling
> [ 0.079127] [0000123c] libusb: debug [handle_events] poll fds
> modified, reallocating
> [ 0.079127] [0000123c] libusb: debug [handle_events] poll() 2 fds with
> timeout in 1000ms
> [ 0.079127] [0000123c] libusb: debug [handle_events] poll() returned 1
> [ 0.079127] [0000123c] libusb: debug [windows_handle_events] checking
> fd 1 with revents = 0001
> [ 0.079127] [0000123c] libusb: debug [usbi_remove_pollfd] remove fd 1
> [ 0.079127] [0000123c] libusb: debug [windows_transfer_callback]
> handling I/O completion with errcode 0, size 14
> [ 0.079127] [0000123c] libusb: debug [usbi_handle_transfer_completion]
> transfer 007DEF6C has callback 6B807730
> [ 0.079127] [0000123c] libusb: debug [sync_transfer_cb] actual_length=14
> [ 0.079127] [0000123c] libusb: debug [libusb_free_transfer] transfer 007DEF6C
> [ 0.079127] [0000123c] libusb: debug [libusb_alloc_transfer] transfer 007DEF6C
> [ 0.079127] [0000123c] libusb: debug [libusb_submit_transfer] transfer 007DEF6C
> [ 0.079127] [0000123c] libusb: debug [winusbx_submit_control_transfer]
> will use interface 0
> [ 0.079127] [0000123c] libusb: debug [usbi_add_pollfd] add fd 1 events 1
> [ 0.079127] [0000123c] libusb: debug [libusb_get_next_timeout] next
> timeout in 1.000000s
> [ 0.079127] [0000123c] libusb: debug
> [libusb_handle_events_timeout_completed] doing our own event handling
> [ 0.079127] [0000123c] libusb: debug [handle_events] poll fds
> modified, reallocating
> [ 0.079127] [0000123c] libusb: debug [handle_events] poll() 2 fds with
> timeout in 1000ms
> [ 0.079127] [0000123c] libusb: debug [handle_events] poll() returned 1
> [ 0.079127] [0000123c] libusb: debug [windows_handle_events] checking
> fd 1 with revents = 0001
> [ 0.079127] [0000123c] libusb: debug [usbi_remove_pollfd] remove fd 1
> [ 0.079127] [0000123c] libusb: debug [windows_transfer_callback]
> handling I/O completion with errcode 0, size 4
> [ 0.079127] [0000123c] libusb: debug [usbi_handle_transfer_completion]
> transfer 007DEF6C has callback 6B807730
> [ 0.079127] [0000123c] libusb: debug [sync_transfer_cb] actual_length=4
> [ 0.079127] [0000123c] libusb: debug [libusb_free_transfer] transfer 007DEF6C
> [ 0.079127] [0000123c] libusb: debug [libusb_alloc_transfer] transfer 007DEF6C
> [ 0.079127] [0000123c] libusb: debug [libusb_submit_transfer] transfer 007DEF6C
> [ 0.079127] [0000123c] libusb: debug [winusbx_submit_control_transfer]
> will use interface 0
> [ 0.079127] [0000123c] libusb: debug [usbi_add_pollfd] add fd 1 events 1
> [ 0.079127] [0000123c] libusb: debug [libusb_get_next_timeout] next
> timeout in 1.000000s
> [ 0.079127] [0000123c] libusb: debug
> [libusb_handle_events_timeout_completed] doing our own event handling
> [ 0.079127] [0000123c] libusb: debug [handle_events] poll fds
> modified, reallocating
> [ 0.079127] [0000123c] libusb: debug [handle_events] poll() 2 fds with
> timeout in 1000ms
> [ 0.094753] [0000123c] libusb: debug [handle_events] poll() returned 1
> [ 0.094753] [0000123c] libusb: debug [windows_handle_events] checking
> fd 1 with revents = 0001
> [ 0.094753] [0000123c] libusb: debug [usbi_remove_pollfd] remove fd 1
> [ 0.094753] [0000123c] libusb: debug [windows_transfer_callback]
> handling I/O completion with errcode 0, size 14
> [ 0.094753] [0000123c] libusb: debug [usbi_handle_transfer_completion]
> transfer 007DEF6C has callback 6B807730
> [ 0.094753] [0000123c] libusb: debug [sync_transfer_cb] actual_length=14
> [ 0.094753] [0000123c] libusb: debug [libusb_free_transfer] transfer 007DEF6C
> [ 0.094753] [0000123c] libusb: debug [libusb_alloc_transfer] transfer 007DEF6C
> [ 0.094753] [0000123c] libusb: debug [libusb_submit_transfer] transfer 007DEF6C
> [ 0.094753] [0000123c] libusb: debug [winusbx_submit_control_transfer]
> will use interface 0
> [ 0.094753] [0000123c] libusb: debug [usbi_add_pollfd] add fd 1 events 1
> [ 0.094753] [0000123c] libusb: debug [libusb_get_next_timeout] next
> timeout in 0.999513s
> [ 0.094753] [0000123c] libusb: debug
> [libusb_handle_events_timeout_completed] doing our own event handling
> [ 0.094753] [0000123c] libusb: debug [handle_events] poll fds
> modified, reallocating
> [ 0.094753] [0000123c] libusb: debug [handle_events] poll() 2 fds with
> timeout in 1000ms
> [ 0.094753] [0000123c] libusb: debug [handle_events] poll() returned 1
> [ 0.094753] [0000123c] libusb: debug [windows_handle_events] checking
> fd 1 with revents = 0001
> [ 0.094753] [0000123c] libusb: debug [usbi_remove_pollfd] remove fd 1
> [ 0.094753] [0000123c] libusb: debug [windows_transfer_callback]
> handling I/O completion with errcode 0, size 4
> [ 0.094753] [0000123c] libusb: debug [usbi_handle_transfer_completion]
> transfer 007DEF6C has callback 6B807730
> [ 0.094753] [0000123c] libusb: debug [sync_transfer_cb] actual_length=4
> [ 0.094753] [0000123c] libusb: debug [libusb_free_transfer] transfer 007DEF6C
> [ 0.094753] [0000123c] libusb: debug [libusb_alloc_transfer] transfer 007DEF6C
> [ 0.094753] [0000123c] libusb: debug [libusb_submit_transfer] transfer 007DEF6C
> [ 0.094753] [0000123c] libusb: debug [winusbx_submit_control_transfer]
> will use interface 0
> [ 0.094753] [0000123c] libusb: debug [usbi_add_pollfd] add fd 1 events 1
> [ 0.094753] [0000123c] libusb: debug [libusb_get_next_timeout] next
> timeout in 1.000000s
> [ 0.094753] [0000123c] libusb: debug
> [libusb_handle_events_timeout_completed] doing our own event handling
> [ 0.094753] [0000123c] libusb: debug [handle_events] poll fds
> modified, reallocating
> [ 0.094753] [0000123c] libusb: debug [handle_events] poll() 2 fds with
> timeout in 1000ms
> [ 0.094753] [0000123c] libusb: debug [handle_events] poll() returned 1
> [ 0.094753] [0000123c] libusb: debug [windows_handle_events] checking
> fd 1 with revents = 0001
> [ 0.094753] [0000123c] libusb: debug [usbi_remove_pollfd] remove fd 1
> [ 0.094753] [0000123c] libusb: debug [windows_transfer_callback]
> handling I/O completion with errcode 0, size 22
> [ 0.094753] [0000123cUsing libusb v1.0.21.11157
> 
> Opening device 1366:0101...
> 
> Reading device descriptor:
>            length: 18
>      device class: 0
>               S/N: 3
>           VID:PID: 1366:0101
>         bcdDevice: 0001
>   iMan:iProd:iSer: 1:2:3
>          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: 81
>           max packet size: 0040
>          polling interval: 00
>       endpoint[1].address: 02
>           max packet size: 0040
>          polling interval: 00
> 
> Claiming interface 0...
> 
> Reading string descriptors:
>   String (0x01): "SEGGER"
>   String (0x02): "J-Link"
>   String (0x03): "0077000044"
> 
> Releasing interface 0...
> Closing device...
> ] libusb: debug [usbi_handle_transfer_completion] transfer 007DEF6C
> has callback 6B807730
> [ 0.094753] [0000123c] libusb: debug [sync_transfer_cb] actual_length=22
> [ 0.094753] [0000123c] libusb: debug [libusb_free_transfer] transfer 007DEF6C
> [ 0.094753] [0000123c] libusb: debug [libusb_alloc_transfer] transfer 007DEF6C
> [ 0.094753] [0000123c] libusb: debug [libusb_submit_transfer] transfer 007DEF6C
> [ 0.094753] [0000123c] libusb: debug [winusbx_submit_control_transfer]
> will use interface 0
> [ 0.094753] [0000123c] libusb: debug [usbi_add_pollfd] add fd 1 events 1
> [ 0.094753] [0000123c] libusb: debug [libusb_get_next_timeout] next
> timeout in 0.999512s
> [ 0.094753] [0000123c] libusb: debug
> [libusb_handle_events_timeout_completed] doing our own event handling
> [ 0.094753] [0000123c] libusb: debug [handle_events] poll fds
> modified, reallocating
> [ 0.094753] [0000123c] libusb: debug [handle_events] poll() 2 fds with
> timeout in 1000ms
> [ 0.094753] [0000123c] libusb: debug [handle_events] poll() returned 1
> [ 0.094753] [0000123c] libusb: debug [windows_handle_events] checking
> fd 1 with revents = 0001
> [ 0.094753] [0000123c] libusb: debug [usbi_remove_pollfd] remove fd 1
> [ 0.094753] [0000123c] libusb: debug [windows_transfer_callback]
> handling I/O completion with errcode 0, size 4
> [ 0.094753] [0000123c] libusb: debug [usbi_handle_transfer_completion]
> transfer 007DEF6C has callback 6B807730
> [ 0.094753] [0000123c] libusb: debug [sync_transfer_cb] actual_length=4
> [ 0.094753] [0000123c] libusb: debug [libusb_free_transfer] transfer 007DEF6C
> [ 0.094753] [0000123c] libusb: debug [libusb_alloc_transfer] transfer 007DEF6C
> [ 0.094753] [0000123c] libusb: debug [libusb_submit_transfer] transfer 007DEF6C
> [ 0.094753] [0000123c] libusb: debug [winusbx_submit_control_transfer]
> will use interface 0
> [ 0.094753] [0000123c] libusb: debug [usbi_add_pollfd] add fd 1 events 1
> [ 0.094753] [0000123c] libusb: debug [libusb_get_next_timeout] next
> timeout in 1.000000s
> [ 0.094753] [0000123c] libusb: debug
> [libusb_handle_events_timeout_completed] doing our own event handling
> [ 0.094753] [0000123c] libusb: debug [handle_events] poll fds
> modified, reallocating
> [ 0.094753] [0000123c] libusb: debug [handle_events] poll() 2 fds with
> timeout in 1000ms
> [ 0.110877] [0000123c] libusb: debug [handle_events] poll() returned 1
> [ 0.110877] [0000123c] libusb: debug [windows_handle_events] checking
> fd 1 with revents = 0001
> [ 0.110877] [0000123c] libusb: debug [usbi_remove_pollfd] remove fd 1
> [ 0.110877] [0000123c] libusb: debug [windows_transfer_callback]
> handling I/O completion with errcode 31, size 0
> [ 0.110877] [0000123c] libusb: debug [windows_transfer_callback]
> detected endpoint stall
> [ 0.110877] [0000123c] libusb: debug [usbi_handle_transfer_completion]
> transfer 007DEF6C has callback 6B807730
> [ 0.110877] [0000123c] libusb: debug [sync_transfer_cb] actual_length=0
> [ 0.110877] [0000123c] libusb: debug [libusb_free_transfer] transfer 007DEF6C
> [ 0.110877] [0000123c] libusb: debug [libusb_release_interface] interface 0
> [ 0.110877] [0000123c] libusb: debug [libusb_close]
> [ 0.110877] [0000123c] libusb: debug [libusb_unref_device] destroy device 2.2
> [ 0.110877] [0000123c] libusb: debug [libusb_unref_device] destroy device 2.1
> [ 0.110877] [0000123c] libusb: debug [libusb_unref_device] destroy device 2.0
> [ 0.110877] [0000123c] libusb: debug [libusb_exit]
> [ 0.110877] [0000123c] libusb: debug [libusb_exit] destroying default context
> [ 0.110877] [0000123c] libusb: debug [usbi_remove_pollfd] remove fd 0
> [ 0.110877] [00001124] libusb: debug [windows_clock_gettime_threaded]
> timer thread quitting
> 
> 
> 
> 
> -- 
> Xiaofan


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
libusb-devel mailing list
libusb-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusb-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic