From: lxman <jor...@gm...> - 2010-07-04 02:01:28
|
Here's an strace output also (clipped for the relevant information): ioctl(6, USBDEVFS_CLAIMINTERFACE, {0}) = 0 write(2, "libusb:debug [libusb_reset_devic"..., 35libusb:debug [libusb_reset_device] ) = 35 write(2, "\n", 1 ) = 1 ioctl(6, USBDEVFS_RESET, 0) = 0 write(1, "Submit bulk in\n", 15Submit bulk in ) = 15 write(1, "Calculator::hdl 0x89ed1c0\n", 26Calculator::hdl 0x89ed1c0 ) = 26 write(2, "libusb:debug [submit_bulk_transf"..., 36libusb:debug [submit_bulk_transfer] ) = 36 write(2, "need 1 urbs for new transfer wit"..., 44need 1 urbs for new transfer with length 510) = 44 write(2, "\n", 1 ) = 1 ioctl(6, USBDEVFS_SUBMITURB, {type=3, endpoint=0x81, status=0, flags=0x0, buffer_length=510, actual_length=0, start_frame=0, number_of_packets=0, error_count=0, signr=0, usercontext=0x89ed418, buffer=}) = 0 write(2, "libusb:debug [handle_events] ", 29libusb:debug [handle_events] ) = 29 write(2, "poll() 3 fds with timeout in 600"..., 36poll() 3 fds with timeout in 60000ms) = 36 write(2, "\n", 1 ) = 1 poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}, {fd=6, events=POLLOUT}], 3, 60000) = 1 ([{fd=6, revents=POLLOUT}]) write(2, "libusb:debug [handle_events] ", 29libusb:debug [handle_events] ) = 29 write(2, "poll() returned 1", 17poll() returned 1) = 17 write(2, "\n", 1 ) = 1 ioctl(6, USBDEVFS_REAPURBNDELAY, {type=3, endpoint=0x81, status=0, flags=0x0, buffer_length=510, actual_length=18, start_frame=0, number_of_packets=0, error_count=0, signr=0, usercontext=0x89ed418, buffer="T\375\0\0@\3\0\0@\3\354\17\2\0\1\325\17\354\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...}) = 0 write(2, "libusb:debug [reap_for_handle] ", 31libusb:debug [reap_for_handle] ) = 31 write(2, "urb type=3 status=0 transferred="..., 34urb type=3 status=0 transferred=18) = 34 write(2, "\n", 1 ) = 1 write(2, "libusb:debug [handle_bulk_comple"..., 38libusb:debug [handle_bulk_completion] ) = 38 write(2, "handling completion status 0 of "..., 44handling completion status 0 of bulk urb 1/1) = 44 write(2, "\n", 1 ) = 1 write(2, "libusb:debug [handle_bulk_comple"..., 38libusb:debug [handle_bulk_completion] ) = 38 write(2, "last URB in transfer --> complet"..., 34last URB in transfer --> complete!) = 34 write(2, "\n", 1 ) = 1 write(2, "libusb:debug [disarm_timerfd] ", 30libusb:debug [disarm_timerfd] ) = 30 write(2, "\n", 1 ) = 1 timerfd_settime(5, 0, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0 write(1, "Firing input submission\n", 24Firing input submission ) = 24 write(1, "Submit bulk in\n", 15Submit bulk in ) = 15 write(1, "Calculator::hdl 0x89ed1c0\n", 26Calculator::hdl 0x89ed1c0 ) = 26 write(2, "libusb:debug [submit_bulk_transf"..., 36libusb:debug [submit_bulk_transfer] ) = 36 write(2, "need 1 urbs for new transfer wit"..., 44need 1 urbs for new transfer with length 510) = 44 write(2, "\n", 1 ) = 1 ioctl(6, USBDEVFS_SUBMITURB, {type=3, endpoint=0x81, status=0, flags=0x0, buffer_length=510, actual_length=0, start_frame=0, number_of_packets=0, error_count=0, signr=0, usercontext=0x89ed418, buffer=}) = 0 write(2, "libusb:debug [libusb_handle_even"..., 44libusb:debug [libusb_handle_events_timeout] ) = 44 write(2, "another thread is doing event ha"..., 38another thread is doing event handling) = 38 write(2, "\n", 1 ) = 1 clock_gettime(CLOCK_REALTIME, {1278189825, 526953742}) = 0 clock_gettime(CLOCK_REALTIME, {1278189825, 527024347}) = 0 futex(0x89ed0f8, FUTEX_WAIT_PRIVATE, 1, {0, 929395}) = -1 ETIMEDOUT (Connection timed out) futex(0x89ed0dc, FUTEX_WAKE_PRIVATE, 1) = 0 clock_gettime(CLOCK_MONOTONIC, {682496, 279906875}) = 0 write(1, "Returned and firing bulk out\n", 29Returned and firing bulk out ) = 29 write(1, "Result was 0\n", 13Result was 0 ) = 13 write(1, "Submit bulk out\n", 16Submit bulk out ) = 16 write(1, "Calculator::hdl 0x89ed1c0\n", 26Calculator::hdl 0x89ed1c0 ) = 26 write(2, "libusb:debug [submit_bulk_transf"..., 36libusb:debug [submit_bulk_transfer] ) = 36 write(2, "need 1 urbs for new transfer wit"..., 43need 1 urbs for new transfer with length 24) = 43 write(2, "\n", 1 ) = 1 ioctl(6, USBDEVFS_SUBMITURB, {type=3, endpoint=0x2, status=0, flags=0x0, buffer_length=24, actual_length=0, start_frame=0, number_of_packets=0, error_count=0, signr=0, usercontext=0x89ed4f8, buffer=}) = -1 ENOENT (No such file or directory) -- View this message in context: http://libusb.6.n5.nabble.com/libusb-usage-question-tp512743p597311.html Sent from the LibUSB Dev mailing list archive at Nabble.com. |