Limited support for Suunto DM4

Dirk Hohndel dirk at hohndel.org
Tue Mar 5 10:32:08 PST 2013


Miika Turkia <miika.turkia at gmail.com> writes:

> On Tue, Mar 5, 2013 at 8:00 PM, Dirk Hohndel <dirk at hohndel.org> wrote:
>> Miika Turkia <miika.turkia at gmail.com> writes:
>>>> I've just noticed your interesting work on DM4. Thanks for the user-manual
>>>> additions; they allowed me to locate the file on my Mac and to query the
>>>> database schema.
>>>>
>>>> I've not had a proper play but it looks to me like the code to query the
>>>> database is skeleton only at this stage.  I don't see any calls to step
>>>> through the results of the selections.  Have I got the wrong end of the
>>>> stick here?
>>>
>>> The sqlite3_exec registeres a callback (function: dm4_events) that is
>>> called for every row returned by the sql query. So the results are
>>> processed already. For the events there is another callback that
>>> processes them.
>>>
>>> As far as I have tested the import, it works for all the basic stuff.
>>> So it is quite usable already.
>>
>> I still need to get a DM4 data file that we can add to the sources.
>
> I just sent one. And realized while preparing it that you can actually
> export dives in XML format from DM4. You just need to first select a
> dive (or more) and the menu item appears.

So we should make sure that we support that format as well (is it UDDF
or something else?) - but of course the ability to read their native
file format is a great feature.

/D


More information about the subsurface mailing list