<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div name="messageBodySection">Yeah, it ended up being simple. I just need to make sure I don’t break android and desktop before sending an actual patch.</div>
<div name="messageSignatureSection"><br />
—<br />
Murillo</div>
<div name="messageReplySection"><br />
On 1 Dec 2017 17:38 +0800, Miika Turkia <miika.turkia@gmail.com>, wrote:<br />
<blockquote type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">Cool. Looks almost too simple, especially when ignoring the changes from char * to QString :D</div>
<div class="gmail_quote"><br /></div>
<div class="gmail_quote">miika<br /></div>
<div class="gmail_quote"><br /></div>
<div class="gmail_quote">On Fri, Dec 1, 2017 at 11:08 AM, Murillo Bernardes <span dir="ltr"><<a href="mailto:mfbernardes@gmail.com" target="_blank">mfbernardes@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">For now this is just a hack, not final code yet, but *works* fine with my Perdix AI. I'm able to connect and download dives.
<div>
<div><br /></div>
<div>Actually populating BtDeviceInfo with devices discovered, it can be used successfully later.</div>
<div><br /></div>
<div>I was able to successfully connect, download dives, cancel download, restart.</div>
<div>
<div class="gmail_extra"><br /></div>
<div class="gmail_extra"><img src="cid:ii_janor4n81_16011548511de126" width="296" height="526" /><br />
​<br /></div>
<div class="gmail_extra"><br /></div>
<div class="gmail_extra">--<br clear="all" />
<div>
<div class="m_4495115323119208280gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr">
<div>Murillo</div>
</div>
</div>
</div>
<div>
<div class="h5"><br />
<div class="gmail_quote">On Fri, Dec 1, 2017 at 3:35 PM, Murillo Bernardes <span dir="ltr"><<a href="mailto:mfbernardes@gmail.com" target="_blank">mfbernardes@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">
<div>
<div class="m_4495115323119208280h5">
<div class="gmail_extra">
<div>
<div class="m_4495115323119208280m_-2614311348375460975gmail_signature">
<div dir="ltr"><br /></div>
</div>
</div>
<br />
<div class="gmail_quote">On Fri, Dec 1, 2017 at 2:56 PM, Dirk Hohndel <span dir="ltr"><<a href="mailto:dirk@hohndel.org" target="_blank">dirk@hohndel.org</a>></span> wrote:<br />
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div style="word-wrap:break-word"><br />
<div>
<div class="m_4495115323119208280m_-2614311348375460975gmail-">
<blockquote type="cite">
<div>On Nov 30, 2017, at 8:53 PM, Murillo Bernardes <<a href="mailto:mfbernardes@gmail.com" target="_blank">mfbernardes@gmail.com</a>> wrote:</div>
<div>
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div dir="ltr">Could this mean that the device cannot be paired with iPhone using the iOS settings? Of course, I have already paired the DC with my Android tablet and that might also affect my hardship... How did others pair their BLE Perdix with iPhone/iPad?</div>
</blockquote>
<div><br /></div>
<div>With Perdix AI (BLE) is up to the application to discover and connect to the dive computer. While it is connected it will show under iOS settings, but as soon as the application disconnects or closes it will be gone. Nothing wrong there.</div>
</div>
</div>
</div>
</div>
</blockquote>
<div><br /></div>
</div>
I'll have to figure out if I can scan for the device, or if I need to hard code UUIDs or something.</div>
<div>Nothing is ever easy :-(</div>
<div>
<div class="m_4495115323119208280m_-2614311348375460975gmail-"><br />
<blockquote type="cite">
<div>
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">
<div>Subsurface-mobile on iOS is not working properly with BLE yet, so it doesn't connect.</div>
</div>
</div>
</div>
</div>
</blockquote>
<div><br /></div>
</div>
Yup</div>
<div><br /></div>
<div>I'll work on it. I'm still hoping that other developers will start participating in the iOS development.</div>
<div>Because you all know my time is limited and this is not the most important thing to spend it on in the larger scope of things (by FAR our smallest user group)</div>
<div class="m_4495115323119208280m_-2614311348375460975gmail-HOEnZb"><font color="#888888"></font>
<div><font color="#888888"><br /></font></div>
<div><font color="#888888">/D</font></div>
<font color="#888888"><br /></font></div>
</div>
</blockquote>
</div>
<br /></div>
</div>
</div>
<div class="gmail_extra">I'm taking a look. Got my dev environment setup. Here is somethings I found.</div>
<div class="gmail_extra"><br /></div>
<div class="gmail_extra">I can get my Perdix AI to show in the list, but it fails to connect.</div>
<div class="gmail_extra"><br /></div>
<div class="gmail_extra">First thing on DownloadFromDiveComputer.qm<wbr />l:161 it contains a regex to match an address. On iOS it is actually the uuid, so it passes as a serial.</div>
<div class="gmail_extra"><br /></div>
<div class="gmail_extra">I changed the regex to:</div>
<div class="gmail_extra"><br /></div>
<div class="gmail_extra">var btAddr = /(LE:)?\{?[0-9a-fA-F]{8}-[0-9a<wbr />-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a<wbr />-fA-F]{4}-[0-9a-fA-F]{12}\} .*?/;<br /></div>
<div class="gmail_extra"><br /></div>
<div class="gmail_extra">then it's set as bluetooth and actually tries to open via qt_ble_open. </div>
<div class="gmail_extra"><br /></div>
<div class="gmail_extra">On qt-ble.cpp:300 getBtDeviceInfo does not return a populated object. I couldn't see btDeviceInfo (btdiscovery.cpp) ever being populated actually, so there is nothing to return.</div>
<div class="gmail_extra"><br /></div>
<div class="gmail_extra">--</div>
<div class="gmail_extra">Murillo</div>
</div>
</blockquote>
</div>
<br /></div>
</div>
</div>
</div>
</div>
</div>
<br />
______________________________<wbr />_________________<br />
subsurface mailing list<br />
<a href="mailto:subsurface@subsurface-divelog.org">subsurface@subsurface-divelog.<wbr />org</a><br />
<a href="http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface" rel="noreferrer" target="_blank">http://lists.subsurface-<wbr />divelog.org/cgi-bin/mailman/<wbr />listinfo/subsurface</a><br />
<br /></blockquote>
</div>
<br /></div>
</div>
</blockquote>
</div>
</body>
</html>