G2 Bluetooth and Subsurface on Arch

Pedro Neves nevesdiver at gmail.com
Thu Oct 12 13:53:02 PDT 2017


On 12-10-2017 21:42, Linus Torvalds wrote:
> On Thu, Oct 12, 2017 at 1:35 PM, Pedro Neves <nevesdiver at gmail.com> wrote:
>> 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 )
> 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

Linus:

I did the re-pairing and tried the download again:


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

Any hints?


Cheers:

Pedro

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20171012/e4c92bcf/attachment-0001.html>


More information about the subsurface mailing list