Uwatec USB IrDA now flashiing happily under Ubuntu 18, but no communication with Galileo Sol

165 views
Skip to first unread message

Charles H

unread,
Jul 8, 2018, 9:03:32 AM7/8/18
to Subsurface Divelog
Running SubSurface 4.8.0 on desktop under Ubuntu 18.0.4 LTS
Linux Newbie, so I can't give a coherent account of how I installed an IrDA stack, but after "sudo irattach irda0 -s", the Galileo USB dongle started flashing - but whether to initiate communication or to call for help is unclear, since my Galileo Sol won't talk to it!
I can select this dive computer, but trying to upload from it gets "Unable to open /dev/irda0 Uwatec (Galileo Sol)". Any suggestiions?

Jef Driesen

unread,
Jul 9, 2018, 2:00:29 AM7/9/18
to subsurfac...@googlegroups.com, Charles H
Can you show the libdivecomputer log?

IrDA communication doesn't need a device node. You can simply leave the
mount point empty. I'm not sure where the /dev/irda0 came from. Is that
what you entered as the mount point? In that case the error message is
just misleading.

Jef

Charles H

unread,
Jul 9, 2018, 9:28:29 AM7/9/18
to Subsurface Divelog
Sorry to be a pain, but I can't find the logfile: Where should Iook?
Yes, Originally I changed from .../tty31, but when I change it back to that default (for the directly supported computers under File|Configure Dive Computer), it just replaces that route description in the error message. Unless I enter "sudo irattach irda0 -s in Terminal after booting up, the dongle remains dead.
 - Charles

Miika Turkia

unread,
Jul 9, 2018, 9:49:27 AM7/9/18
to subsurfac...@googlegroups.com
you should use log-download from divecomputer. Configuration (under file menu) is totally different operation and supported only for a handful of DCs.

The download menu allows you to save the logs.

miika
--
You received this message because you are subscribed to the Google Groups "Subsurface Divelog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to subsurface-dive...@googlegroups.com.
To post to this group, send email to subsurfac...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/subsurface-divelog/4c890094-70c4-49ca-bdd0-b9623c6f6153%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Willem Ferguson

unread,
Jul 15, 2018, 5:51:22 AM7/15/18
to Subsurface Divelog

You need to understand where the IrDA stack is derived from. The one I use is from the IrDA-tools package (http://irda.sourceforge.net/docs/startirda.html). On my installation the dongle does not flicker except when communication with the Galileo takes place. It is not necessary to select any port/mountpoint in the dive download panel, it is automatically detected if the IrDA stack functions. There are several issues that you need to be aware of. 1) the irattach command does not give any diagnostics if the command is NOT successful. Check if there is an option to run irattach with a -v option. What evidence do you have that the irattach command completed successfully? 2)  IrDA is old technology and will be dropped from the Linux kernel within the foreseeable future. For me this is a tragedy because the alternative, Bluetooth, is so temperamental that its utility is severely reduced. In contrast my experience has been that the Irda-tools implementation is rock-solid. 3) I have not yet used Subsurface in Ubuntu 18.04, so this could potentially be a problem with the new Ubuntu release, although unlikely.
Kind regards,
willem

Charles Hackman

unread,
Jul 16, 2018, 7:47:18 AM7/16/18
to 'Willem Ferguson' via Subsurface Divelog

Thanks Willem!

I will try the IrDA-tools package you mention in 18.04 first, and if it fails, then go to 16.04 and try again. Will report back.

By the way, I eventually found the Subsurface logfile (the whole directory was 'hidden'), but my post never made it to the board. It reads:

Subsurface: v4.7.8-4-g37d5e4b12b87, built with libdivecomputer v0.7.0-devel-Subsurface-branch (d02f1c3cdcc6a04d085538578d872ec6e3282382)
ERROR: Permission denied (13) [in irda.c:160 (dc_irda_iterator_new)]
ERROR: Failed to create the irda iterator. [in uwatec_smart.c:176 (uwatec_smart_device_open)]

Thanks again,
 Charles.
--
You received this message because you are subscribed to a topic in the Google Groups "Subsurface Divelog" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/subsurface-divelog/bqBsIQ0PPV0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to subsurface-dive...@googlegroups.com.

To post to this group, send email to subsurfac...@googlegroups.com.

Audun Hansen

unread,
Aug 9, 2018, 6:53:09 PM8/9/18
to Subsurface Divelog
Hi
I got a similar problem after installing Ubuntu 18.04 LTS

Check permission on your /dev/irda0 :

# ls -ltra /dev/irda0
Mine looked like this:
# ls -latr /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 0 aug.   9 23:44 /dev/ttyUSB0

A temporary fix that worked for me was:
sudo chown <your_username> /dev/irda0

--
Regards Audun

darrell....@gmail.com

unread,
Dec 18, 2018, 9:05:09 PM12/18/18
to Subsurface Divelog
Hi,

I am a Uwatek Sol owner and just updated my laptop with Mint 19 (uses kernel 4.15.0-42) and the IRDA no longer works. After much Googlng and reading this thread, I got it going. Maybe this will help others?

1) Make sure to install irda utilities:
# sudo apt-get install irda-utils

2) Install the drivers either one time using modprobe or add to /etc/modules to load on bootup:
# modprobe mcs7780
# modprobe irda-usb

3) Plug in the USB irda interface and then attach it:
# sudo irattach irda0 -s

Yay, Subsurface works again!

Unfortunately, I have to do step 3) every time I plug in the USB adapter. I haven't been able to figure out how to have the irattach be automatic when the USB is inserted. 

Seems like udev should be the solution. But, I spent the better part of the day trying to figure out a udev rule with no luck. Something in the syntax that I must be missing. I'm hopeful that someone much more expert than me will figure it out and share.

Until then, this seems to work.

Best regards and Safe Diving!
Darrell ...
Reply all
Reply to author
Forward
0 new messages