Problem to connect Scubapro Aladin Square

37 views
Skip to first unread message

vincent cresson

unread,
Jul 8, 2019, 3:55:22 PM7/8/19
to Subsurface Divelog
I have problems to connect my dive computer and download dives from it to Subsurface.
I tried with the latest appimage.
with Debian :
vincent@ASUS-R558UV:~$ uname -a
Linux ASUS-R558UV 4.9.0-9-amd64 #1 SMP Debian 4.9.168-1+deb9u3 (2019-06-16) x86_64 GNU/Linux

When i try to download, i have the message :

Impossible d'ouvrir /dev/ttyUSB0 Scubapro (Aladin Square)


This is the content of the libdivecomputer log file :
Subsurface: v4.8.6, built with libdivecomputer v0.7.0-devel-Subsurface-NG (e4698c484461426a4cf4ef3fc1bdbb304b676f06)
INFO: Open: vid=c251, pid=2006
INFO: Open: interface=0, endpoints=81,02
ERROR: Failed to open the usb device (LIBUSB_ERROR_ACCESS). [in ../../src/usbhid.c:591 (dc_usbhid_open)]

I need help, what can i do?

Vavincavent

Miika Turkia

unread,
Jul 10, 2019, 2:17:16 AM7/10/19
to Subsurface Divelog
Looks like you do not have permission to open the USB device to access the divecomputer. Try adding yourself to dialout group and relogin (documented in our user manual). Or for a quick test if this is indeed the problem, you could run sudo chmod 666 /dev/ttyUSB0 and try downloading again.

Jef Driesen

unread,
Jul 10, 2019, 2:27:27 AM7/10/19
to subsurfac...@googlegroups.com, Miika Turkia, vincent cresson
On 2019-07-10 08:17, Miika Turkia wrote:
> Looks like you do not have permission to open the USB device to access
> the
> divecomputer. Try adding yourself to dialout group and relogin
> (documented
> in our user manual). Or for a quick test if this is indeed the problem,
> you
> could run *sudo chmod 666 /dev/ttyUSB0* and try downloading again.

That's not going to work. The error message from subsurface ("Impossible
d'ouvrir /dev/ttyUSB0 Scubapro (Aladin Square)") is a bit misleading
here. The Aladin Square uses the USBHID transport. Whatever is entered
in the "device or mount point" (e.g. /dev/ttyUSB0) is not used.

You need to install the correct udev rules in the /etc/udev/rules.d/
directory. This one should do the trick for systems that use the plugdev
group (for example ubuntu):

https://github.com/libdivecomputer/libdivecomputer/blob/master/contrib/udev/libdivecomputer.rules

Jef
Reply all
Reply to author
Forward
0 new messages