<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 12-10-2017 21:42, Linus Torvalds
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CA+55aFw_bvkRnVsHVuZv2deJ0DwkoG0fd6QMFi3YxszQhjXXqQ@mail.gmail.com">
      <pre wrap="">On Thu, Oct 12, 2017 at 1:35 PM, Pedro Neves <a class="moz-txt-link-rfc2396E" href="mailto:nevesdiver@gmail.com"><nevesdiver@gmail.com></a> wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">
This is what I get on the terminal:

Starting download from  BT
Starting the thread 0
INFO: FTDI disabled
qt.bluetooth.bluez: Bluez 5 detected.
qt.bluetooth.bluez: Enabling GATT request timeout behavior 20000
qt_ble_open( 00:13:43:54:88:8D )
</pre>
      </blockquote>
      <pre wrap="">
Ok. Can you try again and make sure to do the "scan" phase before
trying the download.

We've had lots of cases where for some reason dive computers don't
accept connections, _particularly_ if they have been accessed by other
devices in between. Did you perhaps download using the Shearwater app
from a cellphone last time?

So re-scanning the bluetooth devices and perhaps even re-pairing it
may be a good idea.  Because this output looks like it really didn't
even get to the "enumerate characteristics" phase of the opening, it
literally looks like it's not seeing the G2 at all.

                   Linus
</pre>
    </blockquote>
    <p><font face="Arial">Linus:</font></p>
    <p><font face="Arial">I did the re-pairing and tried the download
        again:</font></p>
    <p><font face="Arial"><br>
      </font></p>
    <p><font face="Arial">qt.bluetooth.bluez: Bluez 5 detected.<br>
        qt.bluetooth.bluez: Missing CAP_NET_ADMIN permission. Cannot
        determine whether a found address is of random or public type.<br>
        qt.bluetooth.bluez: Creating QtBluezDiscoveryManager<br>
        qt.bluetooth.bluez: Discovered:  "00:13:43:54:88:8D" "G2" Num
        UUIDs 2 total device 0 cached RSSI -55 Class 0<br>
        qt.bluetooth.bluez: Initiating direct pair to
        "00:13:43:54:88:8D"<br>
        qt.bluetooth.bluez: Sending pairing request to
        "00:13:43:54:88:8D"<br>
        Starting download from  BT<br>
        Starting the thread 0<br>
        INFO: FTDI disabled<br>
        qt.bluetooth.bluez: Enabling GATT request timeout behavior 20000<br>
        qt_ble_open( 00:13:43:54:88:8D )<br>
        qt.bluetooth.bluez: Creating default GAP/GATT services<br>
        qt.bluetooth.bluez: Cannot connect due to pending active LE
        connections<br>
        qt.bluetooth.bluez: HCI event triggered, type: f<br>
        qt.bluetooth.bluez: RemoteDeviceManager finished attempting to
        close external connections<br>
        qt.bluetooth.bluez: addresstypeToUse: "Public"<br>
        qt.bluetooth.bluez: No settings found for peer device.<br>
        qt.bluetooth.bluez: HCI event triggered, type: 5<br>
        qt.bluetooth.bluez: HCI event triggered, type: e<br>
        qt.bluetooth.bluez: HCI event triggered, type: e<br>
        qt.bluetooth.bluez: HCI event triggered, type: e<br>
        qt.bluetooth.bluez: HCI event triggered, type: f<br>
        qt.bluetooth.bluez: HCI event triggered, type: f<br>
        qt.bluetooth.bluez: Current l2cp sec level: 1<br>
        qt.bluetooth.bluez: Exchanging MTU<br>
        connected to the controller for device 00:13:43:54:88:8D<br>
          .. discovering services<br>
        qt.bluetooth.bluez: Sending read_by_group_type request,
        startHandle: 1 endHandle: ffff 2800<br>
        qt.bluetooth.bluez: Received size: 3 data: "031700"<br>
        qt.bluetooth.bluez: Server MTU: 23 resulting mtu: 23<br>
        qt.bluetooth.bluez: Received size: 20 data:
        "11060100090000180c000f000118100020000a18"<br>
        qt.bluetooth.bluez: Found uuid:
        "{00001800-0000-1000-8000-00805f9b34fb}" start handle: 1 end
        handle: 9<br>
        Found service "{00001800-0000-1000-8000-00805f9b34fb}"<br>
         .. ignoring standard service<br>
        qt.bluetooth.bluez: Found uuid:
        "{00001801-0000-1000-8000-00805f9b34fb}" start handle: c end
        handle: f<br>
        Found service "{00001801-0000-1000-8000-00805f9b34fb}"<br>
         .. ignoring standard service<br>
        qt.bluetooth.bluez: Found uuid:
        "{0000180a-0000-1000-8000-00805f9b34fb}" start handle: 10 end
        handle: 20<br>
        Found service "{0000180a-0000-1000-8000-00805f9b34fb}"<br>
         .. ignoring standard service<br>
        qt.bluetooth.bluez: Sending read_by_group_type request,
        startHandle: 21 endHandle: ffff 2800<br>
        qt.bluetooth.bluez: Received size: 14 data:
        "1106210024000f18250034001a18"<br>
        qt.bluetooth.bluez: Found uuid:
        "{0000180f-0000-1000-8000-00805f9b34fb}" start handle: 21 end
        handle: 24<br>
        Found service "{0000180f-0000-1000-8000-00805f9b34fb}"<br>
         .. ignoring standard service<br>
        qt.bluetooth.bluez: Found uuid:
        "{0000181a-0000-1000-8000-00805f9b34fb}" start handle: 25 end
        handle: 34<br>
        Found service "{0000181a-0000-1000-8000-00805f9b34fb}"<br>
         .. ignoring standard service<br>
        qt.bluetooth.bluez: Sending read_by_group_type request,
        startHandle: 35 endHandle: ffff 2800<br>
        qt.bluetooth.bluez: Received size: 22 data:
        "111435003a00a0a07a7b210415bf0e475d29aaeacdfd"<br>
        qt.bluetooth.bluez: Found uuid:
        "{fdcdeaaa-295d-470e-bf15-04217b7aa0a0}" start handle: 35 end
        handle: 3a<br>
        Found service "{fdcdeaaa-295d-470e-bf15-04217b7aa0a0}"<br>
         .. created service object QLowEnergyService(0x7f282002a440)<br>
        qt.bluetooth.bluez: Sending read_by_type request, startHandle:
        35 endHandle: 3a type: 2802 packet: "0835003a000228"<br>
        qt.bluetooth.bluez: Sending read_by_group_type request,
        startHandle: 3b endHandle: ffff 2800<br>
        qt.bluetooth.bluez: Received size: 5 data: "010835000a"<br>
        qt.bluetooth.bluez: Error1: "no attribute in given range found"
        last command: 8 handle: 35<br>
        qt.bluetooth.bluez: Sending read_by_type request, startHandle:
        35 endHandle: 3a type: 2803 packet: "0835003a000328"<br>
        qt.bluetooth.bluez: Received size: 5 data: "01103b000a"<br>
        qt.bluetooth.bluez: Error1: "no attribute in given range found"
        last command: 10 handle: 3b<br>
        qt.bluetooth.bluez: Sending read_by_group_type request,
        startHandle: 1 endHandle: ffff 2801<br>
        qt.bluetooth.bluez: Received size: 23 data:
        "091536000837001a4b6bd443c22d859a44bbdeddb788a1"<br>
        qt.bluetooth.bluez: Found handle: 36 properties: QFlags(0x8)
        value handle: 37 uuid: "{a188b7dd-debb-449a-852d-c243d46b4b1a}"<br>
        qt.bluetooth.bluez: Sending read_by_type request, startHandle:
        37 endHandle: 3a type: 2803 packet: "0837003a000328"<br>
        qt.bluetooth.bluez: Received size: 5 data: "011001000a"<br>
        qt.bluetooth.bluez: Error1: "no attribute in given range found"
        last command: 10 handle: 1<br>
         .. done discovering services<br>
         .. discovering details<br>
        qt.bluetooth.bluez: Received size: 23 data:
        "0915380012390068af729e876212813d499ceaf0680caa"<br>
        qt.bluetooth.bluez: Found handle: 38 properties:
        QFlags(0x2|0x10) value handle: 39 uuid:
        "{aa0c68f0-ea9c-493d-8112-62879e72af68}"<br>
        qt.bluetooth.bluez: Sending read_by_type request, startHandle:
        39 endHandle: 3a type: 2803 packet: "0839003a000328"<br>
        qt.bluetooth.bluez: Received size: 5 data: "010839000a"<br>
        qt.bluetooth.bluez: Error1: "no attribute in given range found"
        last command: 8 handle: 39<br>
        qt.bluetooth.bluez: Reading all characteristic values for
        "{fdcdeaaa-295d-470e-bf15-04217b7aa0a0}"<br>
        qt.bluetooth.bluez: Received size: 5 data: "010a390005"<br>
        qt.bluetooth.bluez: Error1: "needs authentication - permissions"
        last command: a handle: 39<br>
        qt.bluetooth.bluez: Requesting encrypted link<br>
        qt.bluetooth.bluez: Setting new l2cp sec level: 3<br>
        qt.bluetooth.bluez: HCI event triggered, type: 5<br>
        qt.bluetooth.bluez: void
        QBluetoothSocketPrivate::_q_readNotify() 17 error: -1
        "Connection reset by peer"<br>
            "{a188b7dd-debb-449a-852d-c243d46b4b1a}"<br>
            "{aa0c68f0-ea9c-493d-8112-62879e72af68}"<br>
        failed to find suitable service on 00:13:43:54:88:8D<br>
        [6.929350] ERROR: Failed to open Scubapro G2 device [in
        ../../src/scubapro_g2.c:217 (scubapro_g2_device_open)]<br>
        INFO: dc_deveice_open error value of -6<br>
        Finishing the thread Error opening the device %s %s (%s).<br>
        In most cases, in order to debug this issue, a libdivecomputer
        logfile will be useful.<br>
        You can create this logfile by selecting the corresponding
        checkbox in the download dialog. dives downloaded 0<br>
        <br>
        Any hints?</font></p>
    <p><font face="Arial"><br>
      </font></p>
    <p><font face="Arial">Cheers:</font></p>
    <p><font face="Arial">Pedro<br>
      </font></p>
  </body>
</html>