<div dir="ltr"><div><div>Hi!</div><div><br></div><div>Tested yesterday with several different phones and tablets (all Sony), but none of them worked. Some models doesn't enable OTG without restarting the phone with the cable inserted (to avoid powerleakage with nothing connected), but all phone "detects" the DC (at least the cable led turns from green to red when connected) when the USB-port is enabled.</div><div>I can see in the log that the phone wants to use "SERIAL" interface, asks for available interfaces and the phone responds with "SERIAL USB USBHID", but shortly after the error DC_STATUS_UNSUPPORTED is reported and the DCDownloadThread stops.</div><div><br></div><div>Just quickly looking into the code, I think the error originates from divecomputer_device_open, where "SERIAL" is requested and supported by the phone.</div><div><br></div><div>If serial (as in this case), the following code is executed (core/libdivecomputer.c):<br></div><div><br></div><div>  if (transports & DC_TRANSPORT_SERIAL) {</div><div>    rc = dc_serial_open(&data->iostream, context, data->devname);</div><div>    if (rc == DC_STATUS_SUCCESS)</div><div>      return rc;</div><div><br></div><div>  #ifdef SERIAL_FTDI</div><div>    if (!strcmp(data->devname, "ftdi")) {</div><div>      rc = ftdi_open(&data->iostream, context);</div><div>      if (rc == DC_STATUS_SUCCESS)</div><div>        return rc;</div><div>    }</div><div>  #endif</div><div>  }</div><div>  ...</div><div>  return DC_STATUS_UNSUPPORTED;</div><div><br></div><div>I have not digged to far, but I guess that it is this errorcode (DC_STATUS_UNSUPPORTED) that we see.</div><div>So, either dc_serial_open or ftdi_open fails (can't see any error from them in the log), but I could try to dig deeper ...</div><div><br></div><div>Related question: where can I find the log? I can show the log on the display (from menu "Developer/App log"), but I can't copy text from that view - is it stored somewhere? I looked for it in the filesystem, but can't find it ...</div><div><br></div><div>Cheers!</div><div>Thomas</div></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">tors 24 maj 2018 kl 06:33 skrev Miika Turkia <<a href="mailto:miika.turkia@gmail.com">miika.turkia@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, May 23, 2018 at 11:55 AM, Guillaume Gardet <span dir="ltr"><<a href="mailto:guillaume.gardet@free.fr" target="_blank">guillaume.gardet@free.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <p>Hi,<br>
    </p><span>
    <br>
    <div class="m_2488392844460258824m_-5960622817661506536moz-cite-prefix">Le 23/05/2018 à 07:29, Miika Turkia a
      écrit :<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">This does work for some divecomputers, depending on
        the ftdi chip that is used on the cable. We also have some
        trouble with Android OS as some newer Android versions prevent
        us from accessing the USB devices. What versions of DC, cable
        (the serial chip), phone and Android you are using? (I have used
        OTG on Nexus 7 tablet and Suunto Vyper Air DC successfully,
        don't remember the Android version on the tablet.)<br>
      </div>
    </blockquote>
    <br></span>
    Does it still work? Because Vyper Air on a Nexus 7 fails for me. :(<br></div></blockquote><div><br></div></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>Couldn't find the original cable for Vyper air, but tested with D4. Failed :(<br></div></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><br></div><div>miika<br></div></div></div></div>
_______________________________________________<br>
subsurface mailing list<br>
<a href="mailto:subsurface@subsurface-divelog.org" target="_blank">subsurface@subsurface-divelog.org</a><br>
<a href="http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface" rel="noreferrer" target="_blank">http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface</a><br>
</blockquote></div>