<div dir="ltr">Hi Claudiu,<br><div><div class="gmail_extra"><br><div class="gmail_quote">On 19 July 2015 at 20:50, Claudiu Olteanu <span dir="ltr"><<a href="mailto:olteanu.vasilica.claudiu@gmail.com" target="_blank">olteanu.vasilica.claudiu@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi Rick,</div><br><div class="gmail_extra"><div class="gmail_quote"><span><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div class="gmail_extra"><div class="gmail_quote"><span><div>I can select my usb bluetooth dongle (using the one that came with my petrel), and power it up or down, but I was not able to pair or unpair (when previously paired using the onboard bluetooth).  Downloading fails with the usb dongle, even when it had already been paired.  It didn't make any difference whether onboard bluetooth was powered or not when I tried.</div></span></div></div></div></div></blockquote><div><br></div></span><div>Can you give me more details about the downloading step? </div><div>It fails on the connection step or it gets stuck during the download </div><div>mode? You should find some logs on the console.</div><div><br></div></div></div></div></blockquote><div> </div><div>Here's the console output.  First section is using hci0 (onboard) successfully, second section is failing to pair with hci1 (usb).  I have also attached hcidump logs from the same time.  It appears it is failing at the authentication stage.  Using bluetoothctl (see further below), pairing with hci1 requires entering a password, 0000.<br></div><div><br>$ ./subsurface <br>Map theme file does not exist: ""<br>QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory<br>qt.bluetooth.bluez: Bluez 5 detected.<br>qt.bluetooth.bluez: Creating QtBluezDiscoveryManager<br>qt.bluetooth.bluez: Discovered:  "90:00:DB:C6:98:B0" "Galaxy S6" Num UUIDs 13 total device 0 cached RSSI 0 Class 5898764<br>qt.bluetooth.bluez: Discovered:  "00:13:43:0E:6B:D0" "Petrel" Num UUIDs 0 total device 1 cached RSSI -35 Class 526084<br>qt.bluetooth.bluez: Initiating direct pair to "00:13:43:0E:6B:D0"<br>qt.bluetooth.bluez: Sending pairing request to "00:13:43:0E:6B:D0"<br>qt.bluetooth.bluez: void QBluetoothSocketPrivate::_q_readNotify() 24 error: -1 "Resource temporarily unavailable"<br>[15.711507] ERROR: Failed to download the dive. [in shearwater_petrel.c:296 (shearwater_petrel_device_foreach)]<br><br>(download worked fine until I clicked cancel after 10 dives)<br><br></div><div>console output using hci1:<br><br>qt.bluetooth.bluez: Discovered:  "00:13:43:0E:6B:D0" "Petrel" Num UUIDs 0 total device 0 cached RSSI -63 Class 526084<br>qt.bluetooth.bluez: Updating RSSI for "00:13:43:0E:6B:D0" QVariant(short, -78)<br>qt.bluetooth.bluez: Updating RSSI for "00:13:43:0E:6B:D0" QVariant(short, -66)<br>qt.bluetooth.bluez: Updating RSSI for "00:13:43:0E:6B:D0" QVariant(short, -76)<br>qt.bluetooth.bluez: Initiating direct pair to "00:13:43:0E:6B:D0"<br>qt.bluetooth.bluez: Sending pairing request to "00:13:43:0E:6B:D0"<br>qt.bluetooth.bluez: Failed to create pairing "org.bluez.Error.AuthenticationFailed"<br>qt.bluetooth.bluez: Initiating direct pair to "00:13:43:0E:6B:D0"<br>qt.bluetooth.bluez: Sending pairing request to "00:13:43:0E:6B:D0"<br>qt.bluetooth.bluez: Failed to create pairing "org.bluez.Error.AuthenticationFailed"<br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div></div><div>Does the onboard bluetooth device work after applying the patches?</div></div></div></div></blockquote><div><br></div><div>No problems with the onboard bluetooth device.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><br></div><div>I tested my patches on my OpenSuse env with a Gembird Mini3 </div><div>Tiny Bluetooth v.2.1 dongle and I didn't encounter problems during </div><div>the download. The pair/unpair commands work too.</div><div><br></div><div>Unfortunately the device is not recognized on my Fedora virtual</div><div>machine. Probably it is a problem with my driver because on their site </div><div>the latest driver has support for Windows 7 and I have Windows 8.1.</div><div><br></div><div>Also, please check if the pairing status from the Bt selection widget</div><div>is the same as the one from bluetoothctl/bluedevil tools.</div></div></div></div></blockquote><div><br></div>Just to be sure I hadn't messed something up on my system, I checked I could use bluetoothctl to pair the usb dongle to the petrel.  I can, but unlike when using the onboard bluetooth, it requires I enter a password (0000).<br></div><div class="gmail_quote"><br>bluetooth]# select 00:15:83:3D:0A:57 <br>[bluetooth]# agent on <br>Agent registered<br>[bluetooth]# scan on<br>Discovery started<br>[CHG] Controller 00:15:83:3D:0A:57 Discovering: yes<br>[CHG] Device 00:13:43:0E:6B:D0 RSSI: -69<br>(subsequent RSSI lines deleted)<br>[bluetooth]# trust 00:13:43:0E:6B:D0 <br>[CHG] Device 00:13:43:0E:6B:D0 Trusted: yes<br>Changing 00:13:43:0E:6B:D0 trust succeeded<br>[bluetooth]# pair 00:13:43:0E:6B:D0 <br>Attempting to pair with 00:13:43:0E:6B:D0<br>[CHG] Device 00:13:43:0E:6B:D0 Connected: yes<br>Request PIN code<br>[agent] Enter PIN code: 0000<br>[CHG] Device 00:13:43:0E:6B:D0 UUIDs: 00001101-0000-1000-8000-00805f9b34fb<br>[CHG] Device 00:13:43:0E:6B:D0 Paired: yes<br>Pairing successful <br><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><br></div><div>Regards,</div><div>Claudiu</div></div></div></div>
</blockquote></div><br></div></div></div>