Limited support for Suunto DM4

Dirk Hohndel dirk at hohndel.org
Tue Mar 5 10:00:26 PST 2013


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.

>> Any idea why they are using BLOBs like TemperatureBLOB?
>
> No idea whatsoever.

Asking these questions often brings tears to your eyes. The insanity
hidden in dive computer (and dive log) data formats as just baffling.

/D


More information about the subsurface mailing list