Suunto D5 USB interface

Brendan Horan brendanhoran at basstech.net
Mon Dec 30 14:59:21 CET 2019


----- On 19 Dec, 2019, at 3:17 PM, Jef Driesen jef at libdivecomputer.org wrote:

> Building subsurface with debug symbols is probably not going to help
> much, because the error is returned somewhere from inside libusb. You
> can instead enable debug output from libusb, by setting an environment
> variable:
> 
> export LIBUSB_DEBUG=4
> /opt/bin/subsurface -v

Thanks for that information, and sorry for the delayed response.

Here is what I get when I run Subsurface using the above commands:

~ $ export LIBUSB_DEBUG=4
~ $ /opt/bin/subsurface -v
Subsurface v4.9.3,
built with libdivecomputer v0.7.0-devel-Subsurface-NG (ce6d9896a79afaa82641132e338f8744714c8593)
built with Qt Version 5.12.4, runtime from Qt Version 5.12.4
built with libgit2 0.26.0
"validateGL(): created OpenGLContext."
"validateGL(): obtained QOpenGLFunctions."
"validateGL(): detected OpenGL version 3.0."
loading dive data from ("/home/brendan/.subsurface/brendan.xml")

File locations:

Unable to get local git directory
Cloud URL: No valid cloud credentials set.

Image filename table: /home/brendan/.subsurface/hashes
Local picture directory: /home/brendan/.subsurface/picturedata/

Starting download from  /dev/ttyUSB0
downloading only new dives
[timestamp] [threadID] facility level [function call] <message>
--------------------------------------------------------------------------------
[ 0.000015] [00000d2c] libusb: debug [libusb_init] created default context
[ 0.000098] [00000d2c] libusb: debug [libusb_init] libusb v1.0.21.11156
[ 0.000200] [00000d2c] libusb: debug [find_usbfs_path] found usbfs at /dev/bus/usb
[ 0.000240] [00000d2c] libusb: debug [op_init] bulk continuation flag supported
[ 0.000285] [00000d2c] libusb: debug [op_init] zero length packet flag supported
[ 0.000333] [00000d2c] libusb: debug [op_init] sysfs can relate devices
[ 0.000349] [00000d2c] libusb: debug [op_init] sysfs has complete descriptors
[ 0.000944] [00000d2d] libusb: debug [linux_udev_event_thread_main] udev event thread entering.
[ 0.004443] [00000d2c] libusb: debug [linux_get_device_address] getting address for device: usb1 detached: 0
[ 0.004456] [00000d2c] libusb: debug [linux_get_device_address] scan usb1
[ 0.004501] [00000d2c] libusb: debug [linux_get_device_address] bus=1 dev=1
[ 0.004508] [00000d2c] libusb: debug [linux_enumerate_device] busnum 1 devaddr 1 session_id 257
[ 0.004512] [00000d2c] libusb: debug [linux_enumerate_device] allocating new device for 1/1 (session 257)
[ 0.004622] [00000d2c] libusb: debug [linux_get_device_address] getting address for device: 1-1 detached: 0
[ 0.004629] [00000d2c] libusb: debug [linux_get_device_address] scan 1-1
[ 0.004664] [00000d2c] libusb: debug [linux_get_device_address] bus=1 dev=6
[ 0.004670] [00000d2c] libusb: debug [linux_enumerate_device] busnum 1 devaddr 6 session_id 262
[ 0.004675] [00000d2c] libusb: debug [linux_enumerate_device] allocating new device for 1/6 (session 262)
[ 0.004719] [00000d2c] libusb: debug [linux_get_parent_info] Dev 0x7f02440229d0 (1-1) has parent 0x7f0244022580 (usb1) port 1
[ 0.004780] [00000d2c] libusb: debug [linux_get_device_address] getting address for device: 1-8 detached: 0
[ 0.004785] [00000d2c] libusb: debug [linux_get_device_address] scan 1-8
[ 0.004816] [00000d2c] libusb: debug [linux_get_device_address] bus=1 dev=4
[ 0.004822] [00000d2c] libusb: debug [linux_enumerate_device] busnum 1 devaddr 4 session_id 260
[ 0.004827] [00000d2c] libusb: debug [linux_enumerate_device] allocating new device for 1/4 (session 260)
[ 0.004858] [00000d2c] libusb: debug [linux_get_parent_info] Dev 0x7f0244022ae0 (1-8) has parent 0x7f0244022580 (usb1) port 8
[ 0.004918] [00000d2c] libusb: debug [linux_get_device_address] getting address for device: 1-9 detached: 0
[ 0.004922] [00000d2c] libusb: debug [linux_get_device_address] scan 1-9
[ 0.004948] [00000d2c] libusb: debug [linux_get_device_address] bus=1 dev=5
[ 0.004951] [00000d2c] libusb: debug [linux_enumerate_device] busnum 1 devaddr 5 session_id 261
[ 0.004956] [00000d2c] libusb: debug [linux_enumerate_device] allocating new device for 1/5 (session 261)
[ 0.004981] [00000d2c] libusb: debug [linux_get_parent_info] Dev 0x7f0244022bf0 (1-9) has parent 0x7f0244022580 (usb1) port 9
[ 0.005029] [00000d2c] libusb: debug [linux_get_device_address] getting address for device: usb2 detached: 0
[ 0.005032] [00000d2c] libusb: debug [linux_get_device_address] scan usb2
[ 0.005059] [00000d2c] libusb: debug [linux_get_device_address] bus=2 dev=1
[ 0.005062] [00000d2c] libusb: debug [linux_enumerate_device] busnum 2 devaddr 1 session_id 513
[ 0.005066] [00000d2c] libusb: debug [linux_enumerate_device] allocating new device for 2/1 (session 513)
[ 0.005160] [00000d2c] libusb: debug [usbi_add_pollfd] add fd 25 events 1
[ 0.005174] [00000d2c] libusb: debug [usbi_io_init] using timerfd for timeouts
[ 0.005178] [00000d2c] libusb: debug [usbi_add_pollfd] add fd 27 events 1
[ 0.005185] [00000d2c] libusb: debug [libusb_get_device_list] 
[ 0.005203] [00000d2c] libusb: debug [libusb_get_device_descriptor] 
[ 0.005207] [00000d2c] libusb: debug [libusb_get_device_descriptor] 
[ 0.005210] [00000d2c] libusb: debug [libusb_get_device_descriptor] 
[ 0.005214] [00000d2c] libusb: debug [libusb_get_device_descriptor] 
[ 0.005245] [00000d2c] libusb: debug [libusb_open] open 1.6
[ 0.005274] [00000d2c] libusb: debug [usbi_add_pollfd] add fd 28 events 4
[ 0.005279] [00000d2c] libusb: debug [libusb_claim_interface] interface 0
[0.005390] ERROR: Failed to claim the usb interface (LIBUSB_ERROR_BUSY). [in ../../src/usbhid.c:604 (dc_usbhid_open)]
[ 0.005299] [00000d2c] libusb: debug [libusb_close] 
[ 0.005304] [00000d2c] libusb: debug [usbi_remove_pollfd] remove fd 28
[ 0.005316] [00000d2c] libusb: debug [libusb_exit] 
[ 0.005320] [00000d2c] libusb: debug [libusb_exit] destroying default context
[ 0.005329] [00000d2c] libusb: debug [libusb_handle_events_timeout_completed] doing our own event handling
[ 0.005334] [00000d2c] libusb: debug [handle_events] poll fds modified, reallocating
[ 0.005340] [00000d2c] libusb: debug [handle_events] poll() 2 fds with timeout in 0ms
[ 0.005346] [00000d2c] libusb: debug [handle_events] poll() returned 0
[ 0.005350] [00000d2c] libusb: debug [libusb_unref_device] destroy device 2.1
[ 0.005353] [00000d2c] libusb: debug [libusb_unref_device] destroy device 1.5
[ 0.005358] [00000d2c] libusb: debug [libusb_unref_device] destroy device 1.4
[ 0.005362] [00000d2c] libusb: debug [libusb_unref_device] destroy device 1.6
[ 0.005366] [00000d2c] libusb: debug [libusb_unref_device] destroy device 1.1
[ 0.005370] [00000d2c] libusb: debug [usbi_remove_pollfd] remove fd 25
[ 0.005382] [00000d2c] libusb: debug [usbi_remove_pollfd] remove fd 27
[ 0.005400] [00000d2d] libusb: debug [linux_udev_event_thread_main] udev event thread exiting
Finishing download thread: "Unable to open /dev/ttyUSB0 Suunto (D5)"
~ $ 


More information about the devel mailing list