<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Apr 9, 2016, at 9:39 AM, Dirk Hohndel <<a href="mailto:dirk@hohndel.org" class="">dirk@hohndel.org</a>> wrote:</div><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><blockquote type="cite" class=""><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On 09.04.2016, at 13:55, Jeroen Massar <<a href="mailto:jeroen@massar.ch" class="">jeroen@massar.ch</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">I have been thinking about doing something similar, and as ny kind of</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Bluetooth device can works and bluetooth can just do serial comms, it</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">would be relatively easy.</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">One could take a Arduino with a USB and Bluetooth port and it would not</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">be too hard to let them talk together.</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""></div></blockquote></div><br class=""><div class="">But let’s give it a try. There are two sides to it: Talking from a phone to an arduino over BT and the Arduino talking to the dive computer (port libdivecomputer to Arduino?!?)</div></div><div class=""><br class=""></div><div class="">What do you think? Do you have any experience in this field? </div><div class=""><br class=""></div><div class="">I will also talk to my hardware hacker friend here.</div></div></div></blockquote><br class=""></div><div class="">Well, instead of Arduino, why not use something like the NanoPi <a href="http://nanopi.org/NanoPi_Feature.html#order" class="">http://nanopi.org/NanoPi_Feature.html#order</a>  for $16 or a Raspberry Pi 3 Model B <a href="https://www.element14.com/community/docs/DOC-80899?ICID=rpimain-feature-products" class="">https://www.element14.com/community/docs/DOC-80899?ICID=rpimain-feature-products</a> for $35 (clearly overkill for what we need, but likely easier to work with)</div><br class=""><div class="">Not sure how availability for either one of these would be in Europe, though.</div></div></div></blockquote><br class=""></div><div>Since I clearly don't have enough to do and don't know what to do with all my spare time, I ordered a Pi3MB...</div><div><br class=""></div><div>Here's what I'm thinking. Instead of passing through the serial, wouldn't it be smarter to have libdivecomputer just run on the Pi3MB and use BT to</div><div>a) have a command channel</div><div>b) create an XML file and transfer that back to the computer / phone</div><div><br class=""></div><div>Now that means we could connect an IRDA dongle to the Pi3MB and deal with the Galileo and other IRDA computers on Mac/Win10. We could support ANY dive computer that is supported under Linux.</div><div><br class=""></div><div>You pair the bluetooth, between Pi3MB and your computer, then send a command to the Pi3MB to connect to a dive computer of a certain type (so Suunto EON Steel or Galileo SOL) and tell the Pi3MB what the last fingerprint was that we have from that dive computer. The Pi3MB then deals with the download and either sends back OK or an Error.</div><div>Once you get the OK you do a BT file transfer to get the XML file back and import it.</div><div><br class=""></div><div>Voila - any dive computer that we can support under Linux is now supported under Mac, Win10, Android and iOS.</div><div><br class=""></div><div>What am I missing (besides a few hundred hours to actually implement and test all this)?</div><div><br class=""></div><div>/D</div><br class=""></body></html>