<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>Hi Thiago,</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Is this method supposed to work elsewhere too? Is there a reason not to use it<br>
everywhere?<span class=""><br></span></blockquote><div><br></div><div><div>This method should work on every supported platforms but </div><div>I cannot obtain the correct result using it on Linux.</div><div>I mentioned before that I believe there is a bug on the</div><div>QtBluetooth library because when I start a full SDP </div><div>discovery agent I cannot find the SPP service from my </div><div>HW OSTCs device. The same thing happened on Rick's</div><div>environment with his Petrel2 device.</div><div><br></div><div>I sent some e-mails on the qt-interest list but I didn't</div><div>receive any response to the last one.</div><div><br></div><div>That is why I decided to use directly the port number</div><div>on Linux platforms.</div></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">It would be interesting to test whether this happens on other Android devices<br>
too, especially those using BlueZ instead of Bluedroid.<br></blockquote><div><br></div><div><div>I tested the application on two different devices </div><div>(Nexus 5 and Nexus 8) but unfortunately both have </div><div>the same Android version (5.1.1).</div><div>If I don't wait for the scanning process to finish, </div><div>the download gets stuck.</div><div><br></div><div>Also I tried to install the application on a device</div><div>with Android 4.3 but I cannot use any buttons and </div><div>cannot access the one with the "Import" functionalities.</div><div>You can find some links with two screenshots([1], [2]) </div><div>from Android 4.3 and one from Android 5.1.1 [3].</div><div>I don't know why, but on Android 4.3 the header is missing.</div><div><br></div><div>I am not sure how the Bluetooth will work with the </div><div>Android Emulator tool and I don't know how to</div><div>test if this issue persists on Android versions</div><div>with BlueZ stack. </div><div><br></div><div><br></div><div>By the way, the pair/unpair functionalities are not</div><div>available on Android because we cannot access the</div><div>context menu :). I will change the UI after I will</div><div>finish the support for Windows platforms.</div></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">What's the use for this? How likely is answering in 20 seconds when in 5 it<br>
didn't answer? If 25 seconds is better, why not always wait for 25 seconds?<br></blockquote><div><br></div><div>If the device is in Connecting state or in ServiceLookUp </div><div>it means that the connection step took more than expected </div><div>and maybe we should give it another try and wait longer.</div><div>This can happen when it is the first time when you try</div><div>to connect to that device.</div><div>I didn't want to always wait for 25 seconds because if</div><div>somehow the Bluetooth from the dive computer was stopped</div><div>before I started the download, then the application can</div><div>freeze for 25 seconds. Therefore I decided to let a timeout</div><div>for 5 seconds to receive a feedback from the remote BT device.</div><div>If I don't receive anything it means that there is something </div><div>wrong with the device.</div><div><br></div><div>These values are not final and we can make them smaller.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Please add a simple comment to the source code why this is done, in addition<br>
to the commit. Something like "// on Android, the device gets stuck in if we<br>
try to use it before discovery is done"<br></blockquote><div><br></div><div>I will do that. Thanks for the feedback!</div><div><br></div><div><br></div><div>Claudiu</div></div></div></div>