Unable to download dives from Mares Smart Apnea

170 views
Skip to first unread message

Jeff Tracey

unread,
Mar 22, 2016, 12:49:11 PM3/22/16
to Subsurface Divelog
Hi Everyone:

I just built Subsurface (which looks like an awesome program) and attempted to download dives from my new (also awesome) Mares Smart Apnea dive computer, but I am getting an error. I checked other posts and documentation, and I can't figure out what went wrong. At the risk of being excessively verbose, I have detailed the steps I took below it hopes that someone more knowledgeable might be able to identify the problem.

Thank you in advance.

Jeff


# -------------------------------------
# System info
# -------------------------------------
Linux Kernel
3.13.0-37-generic GNU/Linux

Distribution
Distributor ID:    LinuxMint
Release:    17.1
Codename:    rebecca

Dive Computer
Mares Smart Apnea

Subsurface 4.5.2.-1083-gcfd8868b71

# -------------------------------------
# Subsurface set up
# -------------------------------------
# 1. I installed the dependencies as follows:
sudo apt-get install git g++ make autoconf automake libtool cmake pkg-config \
    libxml2-dev libxslt1-dev libzip-dev libsqlite3-dev \
    libusb-1.0-0-dev libgit2-dev \
    qt5-default qt5-qmake qtchooser qttools5-dev-tools libqt5svg5-dev \
    libqt5webkit5-dev libqt5qml5 libqt5quick5 libqt5declarative5 \
    qtscript5-dev libssh2-1-dev libcurl4-openssl-dev qttools5-dev \
    qtconnectivity5-dev

# 2. Then I built Subsurface by cloning the git repository and running the build script (went very smoothly)


# 3. Then I added myself to the dialout group
sudo usermod -a -G dialout <myusername>
# ... and rebooted my computer

# -------------------------------------
# Attemtp to download dives
# -------------------------------------
# I started Subsurface (it opened without any problems)

# The I ran:
dmesg > dmesg-before.txt
# At this point I put the dive computer in PC mode and connected it to a USB port

dmesg > dmesg-after.txt
diff dmesg-before.txt dmesg-after.txt # or diffuse for GUI

# Result
> [73955.253441] usb 3-7: new full-speed USB device number 6 using xhci_hcd
> [73955.271615] usb 3-7: New USB device found, idVendor=10c4, idProduct=ea60
> [73955.271624] usb 3-7: New USB device strings: Mfr=1, Product=2, SerialNumber=3
> [73955.271630] usb 3-7: Product: CP2102 USB to UART Bridge Controller
> [73955.271634] usb 3-7: Manufacturer: Silicon Labs
> [73955.271637] usb 3-7: SerialNumber: 0001
> [73955.301654] usbcore: registered new interface driver usbserial
> [73955.301662] usbcore: registered new interface driver usbserial_generic
> [73955.301667] usbserial: USB Serial support registered for generic
> [73955.304053] usbcore: registered new interface driver cp210x
> [73955.304059] usbserial: USB Serial support registered for cp210x
> [73955.304076] cp210x 3-7:1.0: cp210x converter detected
> [73955.469821] usb 3-7: reset full-speed USB device number 6 using xhci_hcd
> [73955.486601] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff880406bbaac0
> [73955.486612] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff880406bbaa80
> [73955.487351] usb 3-7: cp210x converter now attached to ttyUSB0

# I concluded that the device ttyUSB0 corresponded to my dive comptuer. Then I ran:
ls -l /dev/ttyUSB0
# Which produced
> crw-rw---- 1 root dialout 188, 0 Mar 19 16:33 /dev/ttyUSB0
# Then I ran
id
# Which produced
uid=1000(<myusername>) gid=1000(<myusername>) groups=1000(<myusername>),4(adm),20(dialout),24(cdrom),...


# From the Import menu I selected "Download from dive computer," selected "Mares" as Vendor, "Smart Apnea" as Dive computer, and "/dev/ttyUSB0" as Device. I checked "Force download of all dives" and hit "Download."
# Importing data from dive computer failed (Got a dialgue box with "Unable to open /dev/ttyUSB0 Mares (Smart Apnea)."

# After disconnecting dive computer
dmesg > dmesg-after2.txt
diff dmesg-after2.txt dmesg-after.txt

< [74040.476255] systemd-hostnamed[8577]: Warning: nss-myhostname is not installed. Changing the local hostname might make it unresolveable. Please install nss-myhostname!
< [74252.986216] usb 3-7: USB disconnect, device number 6
< [74252.986534] cp210x ttyUSB0: cp210x converter now disconnected from ttyUSB0
< [74252.986571] cp210x 3-7:1.0: device disconnected

Reply all
Reply to author
Forward
0 new messages