<html dir="ltr"><head></head><body style="text-align:left; direction:ltr;"><div><br></div><div>Bluetooth and buffer overflow issues</div><div><br></div><div><br></div><div><div>Fedora 30 all latest updates applied (could try and update to 31 to see if it makes any difference but I doubt it)</div><div><br></div><div>Tried re-scanning and re-pairing with no change.</div><div><br></div><div>Heinrichs Weikamp OSTC3+ firmware 3.05 and just updated to 3.07 with no difference</div><div><br></div><div>Both Shearwater Petrel 2 and Nerd 2 Bluetooth both download ok with my self built latest master.</div><div><br></div><div><br></div></div><div><br></div><div>latest Appimage:</div><div>Import > Import from dive computer</div><div>Not available</div><div><br></div><div>The local Bluetooth adaptor cannot be accessed.</div><div><br></div><div>from terminal ./Subsurface.AppImage -vv</div><div>Cannot find a running Bluez. Please check the Bluez installation.</div><div><br></div><div><br></div><div>4.9.3 offical appimage could also not find the bluetooth radio but I thought that had been fixed in more recent builds so is this a regression?</div><div>Maybe I am mistaken and it has only been my own builds that work?</div><div><br></div><div><br></div><div><br></div><div>Self built latest master:</div><div><br></div><div><br></div><div>Import > Import from dive computer</div><div>Pick Heinrichs Weikamp in the dive vendor drop down</div><div>Pick OSTC3 in the dive computer drop down</div><div>Choose Bluetooth download mode check box</div><div><br></div><div>Force LE > Scan</div><div><br></div><div>Pick the OSTC3 showing: [State: PAIRED] > Click Save > Click Download</div><div><br></div><div>Popup window:</div><div>Error</div><div>Unable to open LE:00:80:25:49:D6:DF Heinrichs Weikamp (OSTC 3)</div><div><br></div><div>Red bar down the bottom of main window:</div><div>Unsupported opperation</div><div><br></div><div><br></div><div>from terminal:</div><div><br></div><div>[<a href="mailto:steve@t490">steve@t490</a> build]$ ./subsurface -vv</div><div>Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.</div><div>Subsurface v4.9.3-239-gfd9e1d6a8aac,</div><div>built with libdivecomputer v0.7.0-devel-Subsurface-NG (1bbd386959a2167138a5e3a1a40dff26b83fef04)</div><div>built with Qt Version 5.12.5, runtime from Qt Version 5.12.5</div><div>built with libgit2 0.26.0</div><div><br></div><div>/SNIP uneeded info</div><div><br></div><div>Unable to match trip 'time.trip.�VU' (12:08:42)</div><div>Bluez 5 detected.</div><div>Missing CAP_NET_ADMIN permission. Cannot determine whether a found address is of random or public type.</div><div>Creating QtBluezDiscoveryManager</div><div>Discovered:  "00:13:43:0D:DB:D4" "Petrel" Num UUIDs 1 total device 0 cached RSSI 0 Class 526084 Num ManufacturerData 0</div><div>Discovered:  "00:80:25:49:D6:DF" "OSTC3#04491" Num UUIDs 7 total device 1 cached RSSI 0 Class 7936 Num ManufacturerData 0</div><div>Discovered:  "18:03:23:32:16:E7" "T energy" Num UUIDs 4 total device 2 cached RSSI 0 Class 2360324 Num ManufacturerData 0</div><div>Discovered:  "D4:AE:05:97:A7:78" "Galaxy S8+" Num UUIDs 17 total device 4 cached RSSI 0 Class 5898764 Num ManufacturerData 0</div><div>Discovered:  "E2:08:A1:05:5D:41" "NERD 2" Num UUIDs 3 total device 5 cached RSSI 0 Class 0 Num ManufacturerData 0</div><div><br></div><div><br></div><div>Closed dialog box and closed Subsurface, removed device from OS Bluetooth settings then try again with non LE Bluetooth</div><div><br></div><div>Import > Import from dive computer</div><div>Pick Heinrichs Weikamp in the dive vendor drop down</div><div>Pick OSTC3 in the dive computer drop down</div><div>Choose Bluetooth download mode check box</div><div><br></div><div>Force Classical > Scan</div><div><br></div><div>Pick the OSTC3 showing: [State: UNPAIRED] > Right Click Pair > Click Save > Click Download</div><div><br></div><div><br></div><div>Popup window:</div><div>Error</div><div>Unable to open 00:80:25:49:D6:DF Heinrichs Weikamp (OSTC 3)</div><div><br></div><div>Red bar down the bottom of main window:</div><div>Unsupported opperation</div><div><br></div><div><br></div><div>from terminal:</div><div><br></div><div>Unable to match trip 'time.trip.�3G' (12:08:42)</div><div>Bluez 5 detected.</div><div>Missing CAP_NET_ADMIN permission. Cannot determine whether a found address is of random or public type.</div><div>Creating QtBluezDiscoveryManager</div><div>Discovered:  "00:13:43:0D:DB:D4" "Petrel" Num UUIDs 1 total device 0 cached RSSI 0 Class 526084 Num ManufacturerData 0</div><div>Discovered:  "00:80:25:49:D6:DF" "OSTC3#04491" Num UUIDs 5 total device 1 cached RSSI 0 Class 7936 Num ManufacturerData 1</div><div>Discovered:  "18:03:23:32:16:E7" "T energy" Num UUIDs 4 total device 2 cached RSSI 0 Class 2360324 Num ManufacturerData 0</div><div>Discovered:  "D4:AE:05:97:A7:78" "Galaxy S8+" Num UUIDs 17 total device 5 cached RSSI 0 Class 5898764 Num ManufacturerData 0</div><div>Discovered:  "E2:08:A1:05:5D:41" "NERD 2" Num UUIDs 3 total device 6 cached RSSI 0 Class 0 Num ManufacturerData 0</div><div>Updating RSSI for "00:80:25:49:D6:DF" QVariant(short, -87)</div><div>Initiating direct pair to "00:80:25:49:D6:DF"</div><div>Sending pairing request to "00:80:25:49:D6:DF"</div><div>void QBluetoothDeviceDiscoveryAgentPrivate::stop()</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div>Closed dialog box and closed Subsurface, removed device from OS Bluetooth settings then try again with non LE Bluetooth</div><div><br></div><div>Try again choosing OSTC Plus (instead of OSTC3 as I have seen it discovered as that in the XML file devices?</div><div><br></div><div>Import > Import from dive computer</div><div>Pick Heinrichs Weikamp in the dive vendor drop down</div><div>Pick OSTC Plus in the dive computer drop down</div><div>Choose Bluetooth download mode check box</div><div><br></div><div>Force LE > Scan</div><div><br></div><div>Pick the OSTC3 showing: [State: UNPAIRED] > Right Click Pair > Click Save > Click Download</div><div><br></div><div>Seeing the below messages down the bottom of the dialog box:</div><div>Connecting to BLE device LE:00:80:25:49:D6:DF</div><div><br></div><div>Popup window:</div><div>Error</div><div>Unable to open LE:00:80:25:49:D6:DF Heinrichs Weikamp (OSTC 3)</div><div><br></div><div>Red bar down the bottom of main window:</div><div>Unsupported opperation</div><div><br></div><div><br></div><div>from terminal:</div><div><br></div><div>Discovered:  "00:13:43:0D:DB:D4" "Petrel" Num UUIDs 1 total device 0 cached RSSI 0 Class 526084 Num ManufacturerData 0</div><div>Discovered:  "00:80:25:49:D6:DF" "OSTC3#04491" Num UUIDs 7 total device 1 cached RSSI 0 Class 7936 Num ManufacturerData 1</div><div>Discovered:  "18:03:23:32:16:E7" "T energy" Num UUIDs 4 total device 2 cached RSSI 0 Class 2360324 Num ManufacturerData 0</div><div>Discovered:  "D4:AE:05:97:A7:78" "Galaxy S8+" Num UUIDs 17 total device 6 cached RSSI 0 Class 5898764 Num ManufacturerData 0</div><div>Discovered:  "E2:08:A1:05:5D:41" "NERD 2" Num UUIDs 3 total device 7 cached RSSI 0 Class 0 Num ManufacturerData 0</div><div>Updating RSSI for "00:80:25:49:D6:DF" QVariant(short, -72)</div><div>Updating RSSI for "00:80:25:49:D6:DF" QVariant(short, -88)</div><div>Initiating direct pair to "00:80:25:49:D6:DF"</div><div>Sending pairing request to "00:80:25:49:D6:DF"</div><div>void QBluetoothDeviceDiscoveryAgentPrivate::stop()</div><div>Using BlueZ LE DBus API</div><div>QLowEnergyControllerPrivateBluezDBus::connectToDevice()</div><div>###### "org.bluez.Device1" QMap(("Connected", QVariant(bool, true)))</div><div>###### "org.bluez.Device1" QMap(("ServicesResolved", QVariant(bool, true)))</div><div>BTLE_DBUS::connect() failed "org.bluez.Error.NotAvailable" "Operation currently not available"</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div>Closed dialog box and closed Subsurface, removed device from OS Bluetooth settings then try again with non LE Bluetooth</div><div><br></div><div>Try again choosing OSTC Plus (instead of OSTC3 as I have seen it discovered as that in the XML file devices?</div><div><br></div><div><br></div><div>Import > Import from dive computer</div><div>Pick Heinrichs Weikamp in the dive vendor drop down</div><div>Pick OSTC Plus in the dive computer drop down</div><div>Choose Bluetooth download mode check box</div><div><br></div><div>Force Classical > Scan</div><div><br></div><div>Pick the OSTC3 showing: [State: UNPAIRED] > Right Click Pair > Click Save > Click Download</div><div><br></div><div>Seeing the below messages down the bottom of the dialog box:</div><div>Opening rfcomm stream 00:80:25:49:D6:DF > then goes too fast to read but goes on to the 5 dives</div><div><br></div><div><br></div><div>Popup window:</div><div>Error</div><div>No new dives downloaded from dive computer</div><div><br></div><div>Red bar down the bottom of main window:</div><div>Dive 5: Error parsing the header</div><div><br></div><div><br></div><div>from terminal:</div><div><br></div><div>Unable to match trip 'time.trip.�L4' (12:08:42)</div><div>Bluez 5 detected.</div><div>Missing CAP_NET_ADMIN permission. Cannot determine whether a found address is of random or public type.</div><div>Creating QtBluezDiscoveryManager</div><div>Discovered:  "00:13:43:0D:DB:D4" "Petrel" Num UUIDs 1 total device 0 cached RSSI 0 Class 526084 Num ManufacturerData 0</div><div>Discovered:  "00:80:25:49:D6:DF" "OSTC3#04491" Num UUIDs 7 total device 1 cached RSSI 0 Class 7936 Num ManufacturerData 1</div><div>Discovered:  "18:03:23:32:16:E7" "T energy" Num UUIDs 4 total device 2 cached RSSI 0 Class 2360324 Num ManufacturerData 0</div><div>Discovered:  "88:11:96:79:F2:FE" "Dwayne" Num UUIDs 0 total device 3 cached RSSI 0 Class 5898764 Num ManufacturerData 0</div><div>Discovered:  "D4:AE:05:97:A7:78" "Galaxy S8+" Num UUIDs 17 total device 4 cached RSSI 0 Class 5898764 Num ManufacturerData 0</div><div>Discovered:  "E2:08:A1:05:5D:41" "NERD 2" Num UUIDs 3 total device 5 cached RSSI 0 Class 0 Num ManufacturerData 0</div><div>Updating RSSI for "00:80:25:49:D6:DF" QVariant(short, -73)</div><div>Initiating direct pair to "00:80:25:49:D6:DF"</div><div>Sending pairing request to "00:80:25:49:D6:DF"</div><div>void QBluetoothDeviceDiscoveryAgentPrivate::stop()</div><div>Detecting bluetoothd version</div><div>Using /proc/<pid>/exe</div><div>Using /proc/<pid>/cmdline</div><div>Detected bluetoothd version 5.51</div><div>Bluetoothd: "5.51"</div><div>Using Bluetooth dbus socket implementation</div><div>Registering client profile on "/qt/btsocket/Subsurface26892/546592569" with options:</div><div>QMap(("Name", QVariant(QString, "QBluetoothSocket-26892"))("Role", QVariant(QString, "client"))("Service", QVariant(QString, "00001101-0000-1000-8000-00805f9b34fb")))</div><div>Profile Context: New Connection</div><div>INFO: dc_device_open error value of 0</div><div>[4.122634] ERROR: Buffer overflow detected! [in ../../src/hw_ostc_parser.c:981 (hw_ostc_parser_samples_foreach)]</div><div>[5.515548] ERROR: Buffer overflow detected! [in ../../src/hw_ostc_parser.c:981 (hw_ostc_parser_samples_foreach)]</div><div>[6.635462] ERROR: Buffer overflow detected! [in ../../src/hw_ostc_parser.c:981 (hw_ostc_parser_samples_foreach)]</div><div>[7.003018] ERROR: Buffer overflow detected! [in ../../src/hw_ostc_parser.c:981 (hw_ostc_parser_samples_foreach)]</div><div>[8.251443] ERROR: Buffer overflow detected! [in ../../src/hw_ostc_parser.c:981 (hw_ostc_parser_samples_foreach)]</div><div>Clearing profile called for "/qt/btsocket/Subsurface26892/546592569"</div><div><br></div><div><br></div><div><br></div><div><br></div><div>Steve</div><div><br></div><div><br></div><div></div></body></html>