<div dir="ltr"><br><div><div class="gmail_extra"><div class="gmail_quote">On 19 July 2015 at 22:06, 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks for the info, Rick!<div><br></div><div>Did you tried to download the dives after you paired the devices </div><div>manually (using bluetoothctl)?</div><div><br></div></div></blockquote><div><br></div><div>I didn't think to try that before.  But I just tried and it worked.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div></div><div>Currently the QtBluetooth library doesn't have an agent which </div><div>can be used to set a custom PIN code on pairing step [1]. I don't</div><div>know when they will implement it. The pairing <span style="font-size:12.8000001907349px">step must be </span></div><div><span style="font-size:12.8000001907349px">done only once when you connect a new device </span><span style="font-size:12.8000001907349px">to the computer.</span></div><div><span style="font-size:12.8000001907349px">Therefore we decided to postpone the implementation of a custom </span></div><div><span style="font-size:12.8000001907349px">agent.</span></div></div></blockquote><div><br></div><div>That's annoying.  Thankfully, most systems have a reasonably friendly way to pair bluetooth devices, and it only needs to be done once.  Can you detect if pairing fails, and ask the user to pair the device using their operating system?  It's been a while since I've used the Shearwater Desktop program, but I think it requires the user to pair the device using Windows.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">The only way to test if the pairing command was triggered from our </span></div><div><span style="font-size:12.8000001907349px">widget is to </span><span style="font-size:12.8000001907349px">open a default agent in the background and see if the </span></div><div><span style="font-size:12.8000001907349px">PIN code request is raised. One solution is to use the bluetoothctl </span></div><div><span style="font-size:12.8000001907349px">tool:</span></div><div><span style="font-size:12.8000001907349px">> agent KeyboardOnly</span></div><div><span style="font-size:12.8000001907349px">> default-agent</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div>Unfortunately I don't know why some devices need a pairing code</div><div>and others don't need one. As I said before, I assume that they are </div><div>smarter and they try some basic PIN codes on the authentication </div><div>step.</div><div><br></div><div>Claudiu</div><div><br></div><div><br></div><div>[1] - <a href="https://bugreports.qt.io/browse/QTBUG-42740" target="_blank">https://bugreports.qt.io/browse/QTBUG-42740</a></div></div>
</blockquote></div><br></div></div></div>