OTG-support of Subsurface mobile?

358 views
Skip to first unread message

SeraSaDiablo

unread,
Oct 11, 2017, 10:48:02 AM10/11/17
to Subsurface Divelog
Hi

I would like to know, if there are plans to add support for OTG connections between dive computers and Subsurface mobile (Android).

I just found out about Divemate which allows to download logs from the dive computer onto your smartphone just using an generic OTG usb cable. But I'd like to avoid another software just as a interface between my dive computer and Subsurface.
I think it would be handy to be able to download the logs onto your smartphone or into the subsurface cloud just after the dive and already add some data, than to wait for being back at home and have to remember them. Especially if you're on a trip doing multiple dives.

Any chance to get OTG support for Subsurface mobile?

Best regards
Sera

Tomaz Canabrava

unread,
Oct 11, 2017, 10:58:08 AM10/11/17
to Subsurface Divelog
Yes, there is a chance, but it doesn't depends on subsurface at all,
Subsurface depends on Qt to read the USB ports across operating systems, and qt needs to impelment that for android.
There is a patch (that was abandonned) here https://codereview.qt-project.org/#/c/84338/
Perhaps this will be picked up in the future as I assume this is something that we (the qt developers) will need more and more.

but currently you can try to use bluetooth.
Best
Tomaz


Best regards
Sera

--
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-divelog+unsub...@googlegroups.com.
To post to this group, send email to subsurface-divelog@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/subsurface-divelog/d29822af-e53c-4537-aeca-afb016df61da%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Miika Turkia

unread,
Oct 11, 2017, 11:03:08 AM10/11/17
to subsurfac...@googlegroups.com
already works with at least some ftdi based usb serial cables
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/CACk01_xrTNdLr7ScbKxKd_AO87vWF8siUcBMXDJhQ5qaHUxQcg%40mail.gmail.com.

Dirk Hohndel

unread,
Oct 11, 2017, 11:42:55 AM10/11/17
to subsurfac...@googlegroups.com
On Wed, Oct 11, 2017 at 04:58:06PM +0200, Tomaz Canabrava wrote:
> On Wed, Oct 11, 2017 at 4:48 PM, 'SeraSaDiablo' via Subsurface Divelog <
> subsurfac...@googlegroups.com> wrote:
>
> > Hi
> >
> > I would like to know, if there are plans to add support for OTG
> > connections between dive computers and Subsurface mobile (Android).
> >
> > I just found out about Divemate which allows to download logs from the
> > dive computer onto your smartphone just using an generic OTG usb cable. But
> > I'd like to avoid another software just as a interface between my dive
> > computer and Subsurface.
> > I think it would be handy to be able to download the logs onto your
> > smartphone or into the subsurface cloud just after the dive and already add
> > some data, than to wait for being back at home and have to remember them.
> > Especially if you're on a trip doing multiple dives.
> >
> > Any chance to get OTG support for Subsurface mobile?
> >
>
> Yes, there is a chance, but it doesn't depends on subsurface at all,
> Subsurface depends on Qt to read the USB ports across operating systems,
> and qt needs to impelment that for android.

Actually, that's not the direction we are going.
I'm in the process of releasing Subsurface-mobile v2 for Android.
This has some support for diretly downloading from dive computers.
Bluetooth dive computers are fairly well supported, cable based dive
computers are... complicated. Not all Android devices support this at all
- for example the current Google Pixel phones don't. Many others do.
Additionally not all serial interfaces currently work with Android.

Which specific dive computer are you trying to connect to?

/D

Davide DB

unread,
Oct 11, 2017, 12:28:41 PM10/11/17
to subsurfac...@googlegroups.com
This was me with an early preview and Suunto Viper...

SeraSaDiablo

unread,
Oct 11, 2017, 3:16:53 PM10/11/17
to Subsurface Divelog
Hello Dirk

Thank you for your answer, even it's a little bit disappointing for now. At least, while I would welcome this feature, there are other ways to manage to keep track of my data between multiple dives. So it's not a must have.
I just thought, as DiveMate for Android looks like to be able to connect a lot of dive computers to Android via USB with an OTG cable only, this feature may be worth to add in Subsurface mobile too.

For now I've got a Ratio iDive easy, so no Bluetooth available. But as I plan to develop into technical diving I will change to one of HeinrichsWeikamp or Shearwater some time in the future. So Bluetooth may be usable in the future then.

Anyway, thank you for your response.

SeraSaDiablo

unread,
Oct 11, 2017, 3:35:59 PM10/11/17
to Subsurface Divelog
Hello Davide

Thanks for your video, I haven't been aware, that it's already possible to connect some of the dive computers via OTG to subsurface mobile 2 beta.

I liked to test it myself after your video, made a backup of my dive list and updated to the beta. Sadly, my Ratio iDive easy can't be selected in the dropdown. At least there's no Ratio or DiveSystem to find.



Am Mittwoch, 11. Oktober 2017 18:28:41 UTC+2 schrieb Davide DB:
This was me with an early preview and Suunto Viper...
Il 11 ott 2017 16:48, "'SeraSaDiablo' via Subsurface Divelog" <subsurfac...@googlegroups.com> ha scritto:
Hi

I would like to know, if there are plans to add support for OTG connections between dive computers and Subsurface mobile (Android).

I just found out about Divemate which allows to download logs from the dive computer onto your smartphone just using an generic OTG usb cable. But I'd like to avoid another software just as a interface between my dive computer and Subsurface.
I think it would be handy to be able to download the logs onto your smartphone or into the subsurface cloud just after the dive and already add some data, than to wait for being back at home and have to remember them. Especially if you're on a trip doing multiple dives.

Any chance to get OTG support for Subsurface mobile?

Best regards
Sera

--
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-divelog+unsub...@googlegroups.com.
To post to this group, send email to subsurfac...@googlegroups.com.

divinh

unread,
Jan 19, 2018, 7:23:49 AM1/19/18
to Subsurface Divelog
Hi.

I'm also interested in using the OTG feature to download directly to a tablet (or phone).

Dell Venue 8 7840 tablet running Lollipop 5.1

USB-OTG already works with Solid Explorer, a file browser, though that did require a USB-OTG plugin that Solid Explorer sells as an app add-on.

When I plug in the Cressi PC Link, I don't get the USB-OTG message that I see in the video.  (I do see a similar message when I use Solid Explorer.)

I'm also not seeing Cressi as an option in Subsurface 2.0.1 (4.7.4.280).

What am I missing and can I provide any info to have it work?

Thanks!

Dirk Hohndel

unread,
Jan 19, 2018, 2:50:00 PM1/19/18
to subsurfac...@googlegroups.com
I don't know which type of USB chip the Creesi PC Link uses - at this point only FTDI based cables work on Android.
And on quite a few Android devices even that doesn't work because Android blocks our approach to opening the device :-(

/D

--
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.

divinh

unread,
Jan 22, 2018, 1:39:59 AM1/22/18
to Subsurface Divelog
Does this help?  I dumped it from dmesg on my Gnu/Linux box...

[12707.415769] usb 4-1.1: new full-speed USB device number 5 using ehci-pci
[12707.515409] usb 4-1.1: New USB device found, idVendor=0403, idProduct=87d0
[12707.515413] usb 4-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[12707.515415] usb 4-1.1: Product: CRESSI PC INTERFACE
[12707.515417] usb 4-1.1: Manufacturer: CRESSI
[12707.515418] usb 4-1.1: SerialNumber: XXXXXXXX
[12707.518504] ftdi_sio 4-1.1:1.0: FTDI USB Serial Device converter detected
[12707.518552] usb 4-1.1: Detected FT232RL
[12707.518941] usb 4-1.1: FTDI USB Serial Device converter now attached to ttyUSB0

XXXXXXXX was obfuscated in case it's a unique ID.



On Friday, January 19, 2018 at 11:50:00 AM UTC-8, Dirk wrote:
I don't know which type of USB chip the Creesi PC Link uses - at this point only FTDI based cables work on Android.
And on quite a few Android devices even that doesn't work because Android blocks our approach to opening the device :-(

/D
On Jan 19, 2018, at 1:23 PM, divinh <fxha...@gmail.com> wrote:

Hi.

I'm also interested in using the OTG feature to download directly to a tablet (or phone).

Dell Venue 8 7840 tablet running Lollipop 5.1

USB-OTG already works with Solid Explorer, a file browser, though that did require a USB-OTG plugin that Solid Explorer sells as an app add-on.

When I plug in the Cressi PC Link, I don't get the USB-OTG message that I see in the video.  (I do see a similar message when I use Solid Explorer.)

I'm also not seeing Cressi as an option in Subsurface 2.0.1 (4.7.4.280).

What am I missing and can I provide any info to have it work?

Thanks!

--
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-divelog+unsub...@googlegroups.com.

Anton Lundin

unread,
Jan 28, 2018, 5:08:27 PM1/28/18
to Subsurface Divelog
It was actually supposed to be already supported, but a obvious typo from way back in time included the wrong product id.

A fix is provided in:

divinh

unread,
Feb 2, 2018, 4:26:13 AM2/2/18
to Subsurface Divelog
Yay!  Thank you!

divinh

unread,
Mar 27, 2018, 3:34:43 AM3/27/18
to Subsurface Divelog
I know the updated Android version isn't available yet, but what should I expect to see in Android Subsurface when it does?  Presently, with the PC Link connected to USB-OTG, Android Subsurface shows a list of Vendors but Cressi isn't listed.  Is that due to the typo?  Once Cressi shows up, I should be able to see Giotto as a Dive Computer?  Connection does have FTDI as a selection. 

When can we expect a new Android Subsurface release?

Dirk Hohndel

unread,
Mar 27, 2018, 10:17:11 AM3/27/18
to subsurfac...@googlegroups.com
We have a current Android Beta app that should include the fix.

Join the beta program here


/D

--
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.

divinh

unread,
May 29, 2018, 2:37:05 AM5/29/18
to Subsurface Divelog
I didn't expect a release so quick!  I am finally revisiting since I'm off to a liveaboard in late June in Komodo, then more diving from Ishigaki in July.

I will be testing with:

Dell Venue 8 7840 via micro-USB OTG on Lollipop 5.1
BlackBerry KEYone via micro-USB type C OTG on Nougat 7.1.1

I received a 20mb update for Subsurface on the KEYone to Version: 2.0.3(4.7.8.213).

I connected the PC Link to the USB type C and I got a pop-up asking if I wanted to open Subsurface when this device was connected, which I responded with OK.  Subsurface opened.

Upon clicking on dive computer sync, under Vendor Name, I don't see Cressi, which means no Dive Computer as Giotto.  I tried selecting some other Vendor Name and Dive Computer and see that it is possible to have the connection be FTDI.

I tried uninstalling and reinstalling with the same result.

What can I do to help?

Thanks, Dirk!

On Tuesday, March 27, 2018 at 7:17:11 AM UTC-7, Dirk wrote:
We have a current Android Beta app that should include the fix.

Join the beta program here


/D
On Mar 27, 2018, at 12:34 AM, divinh <fxha...@gmail.com> wrote:

I know the updated Android version isn't available yet, but what should I expect to see in Android Subsurface when it does?  Presently, with the PC Link connected to USB-OTG, Android Subsurface shows a list of Vendors but Cressi isn't listed.  Is that due to the typo?  Once Cressi shows up, I should be able to see Giotto as a Dive Computer?  Connection does have FTDI as a selection. 

When can we expect a new Android Subsurface release?

On Friday, February 2, 2018 at 1:26:13 AM UTC-8, divinh wrote:
Yay!  Thank you!

On Sunday, January 28, 2018 at 2:08:27 PM UTC-8, Anton Lundin wrote:
It was actually supposed to be already supported, but a obvious typo from way back in time included the wrong product id.

A fix is provided in:

--
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-divelog+unsub...@googlegroups.com.

Stephen Goodall

unread,
May 29, 2018, 2:51:35 AM5/29/18
to Subsurface Divelog
This is something I've been trying to look into but I don't have the required skills to be able to help too much.

https://github.com/Subsurface-divelog/subsurface/issues/1240

I managed to get the devices to show up in the list with a small change to one file, but I couldn't get the device (Leonardo) to talk to subsurface.

I think the developers opinion was that it seemed like it could be related to SELinux or something else in android blocking access to the USB device

divinh

unread,
May 29, 2018, 1:51:16 PM5/29/18
to Subsurface Divelog
I forgot to explicitly say that the 20MB update was after signing up for the beta program.
Message has been deleted

divinh

unread,
May 29, 2018, 2:15:19 PM5/29/18
to Subsurface Divelog
Thanks for the effort.  Looks like we're both in the same Cressi boat though I do have the Cressi PC Link interface to try with.

Mike Dugan

unread,
Jun 26, 2018, 4:16:24 PM6/26/18
to Subsurface Divelog
I just found out the hard way that Samsung's Tab 3 (7 inch) doesn't support USB OTG, so that stinks.  Does anybody know of other ways to get dives off of USB DCs onto the Tab without uploading it on a different device, "sending it to the cloud", then using it on the Tab from the cloud?  

Stephen Goodall

unread,
Jun 27, 2018, 10:03:52 AM6/27/18
to Subsurface Divelog
This is more aimed at divinh, but could apply to anyone with an android device, cressi Leonardo and official cable really.....would you be willing to install a version of the app with a small change to include the Leonardo in the list? It works for me but I have a DiveMate rather than the cressi interface cable.

Let me know if you are willing to test it and I can get the APK to you :)

divinh

unread,
Aug 4, 2018, 9:05:33 AM8/4/18
to Subsurface Divelog
Hi.

Sorry for the late response!  I was lucky enough to be diving in Komodo when you wrote.  I was pretty excited to see Cressi and Drake/Giotto/Leonardo/Newton appear in the beta app while on holiday.  Are you seeing the same now?  I tried immediately to download via USB-OTG, but no go.  I posted the log in another thread, specific to the Cressi Giotto.

Stephen Goodall

unread,
Aug 4, 2018, 9:08:26 AM8/4/18
to Subsurface Divelog
Hi,
Hope you enjoyed Komodo! We were in Bali a few months ago....maybe next time we'll go to Komodo :)

After the change went out in the beta, it seems to work for me, I just selected the Leonardo and clicked download. I'm wondering if your error message is something to do with your device maybe being a bit more security conscious and perhaps blocking access to the usb device (cable/DC)?

divinh

unread,
Aug 5, 2018, 2:07:49 AM8/5/18
to Subsurface Divelog
I did, definitely for the hospitality of the boat and the dive sites, but not so much for some of my fellow divers.

It might have something to do with security.  I have a Dell tablet with an older version of Android to give a try next...

It's good to hear it's working for you!

divinh

unread,
Aug 5, 2018, 4:32:35 AM8/5/18
to Subsurface Divelog
I just posted about my experience with my Dell Venue 8 7840 tablet...  It almost worked.  There's no problem with accessing the FTDI device, but the download didn't work.  In the app log dump, it looks like it's trying to talk to the Leonardo?  Maybe the Giotto uses the same library?  Or maybe that's a problem...

Hans Nendzig

unread,
Feb 28, 2019, 2:15:09 AM2/28/19
to Subsurface Divelog
Hi.
I'm using SubSurface on my PC for years now without any Problems. I can download the dives from my Suunto Zoop Novo just fine.
Last week, i changed my Smartphone to Android (Nokia 6.1, Android 9) and, after Installation of subsurface mobile, i realized that there my be the possibility to download the dives using an OTG Cable an the original Suunto Dive cable I am using for download on the PC.
Sadly, it doesnt seem to work. When I plug in the Cable, i get a popup asking me which App to start. I selected subsurface mobile, and i adjusted the Settings according to my device ("Suunto Zoop Novo", "FTDI"), but no download possible. Log says:
(I cut some lines out, dont think they are interesting)

"0.017: Starting Subsurface-mobile:2.1.6(4.8.4.66):Android  (9.0):arm:de-DE"

"0.017: built with libdivecomputer v0.7.0-devel-Subsurface-NG (072bef16666e0ec397b8236e92722b2f1347b59b)"

"0.017: built with Qt Version 5.12.0, runtime from Qt Version 5.12.0"

"0.017: built with libgit2 0.26.0"

"9.963: DCDownloadThread started for Suunto Zoop Novo on FTDI"

Starting download from  ftdi

Finishing download thread: "Fehler beim Öffnen von ftdi Suunto (Zoop Novo)"

"9.992: Out of memory"

no new dives downloaded

"10.004: DCDownloadThread finished"


Any chances for me to get this to work?
I know, there are difficulties on Android Systems accessing FTDI devices.. Justi tried some USB/Serial-Adapter and a Serial terminal app, that worked fine, so OTG is supported as well as FTDI in General seems to be supported and accessible...

Thanks,
regards
Hans

Hans Nendzig

unread,
Mar 1, 2019, 5:14:27 AM3/1/19
to Subsurface Divelog
Short Update: Same Configuration used with DiveMate, I am able to import the Dives without any Problems....

divinh

unread,
May 9, 2020, 8:27:26 AM5/9/20
to Subsurface Divelog
With Subsurface 3.0.5(4.9.3.1486), I've been able to download dives from a Cressi Giotto and Sherwood Amphos Air with both my Dell Venue 8 7840 and BlackBerry KEYone via USB-OTG.
Reply all
Reply to author
Forward
0 new messages