Seabear dive computer integration in subsurface

Anton Lundin glance at acc.umu.se
Wed Jul 9 12:07:15 PDT 2014


On 09 July, 2014 - Benjamin Kuch wrote:

> Hi,
> 
> our dive computers have a mass storage mode. Thus they can be used as regular mass storage drive. The mass storage drive is called 'SEABEAR'. In our desktop software we simple scan all present drives in the system according that name to indentify, if a dive computer is connected.
> 
> Dive log files are stored as .csv files (';' as separator) in the root directory. They are called xxxxSBDT.CSV where xxxx is the dive number.
> A detailed description of .csv content can be found in the appendix.
>     
> Please let me know if something is unclear and if you need further information.
> 

I must say that this is awesome. I made a initial stab with our existing
CSV-import code and added Seabear CSV-support to it, so this should look
familiar:
https://www.acc.umu.se/~glance/seabear.jpg

There is still some things left to do like import the NDL/TTS values,
but we haven't seen any other csv-formats with those in them so we
didn't have any infrastructure for that, but its not that hard to add.

Are you and Seabear ok with us keeping that csv file around and
distribute it with our source code to use as a test file for any future
importer work? ( Insert legalese about GPL2 and whatnot here )
If so, i think keeping a test file around is great for any future testing.

//Anton

> 
> -----Ursprüngliche Nachricht-----
> Von: Miika Turkia [mailto:miika.turkia at gmail.com] 
> Gesendet: Mittwoch, 09. Juli 2014 09:09
> An: Dirk Hohndel
> Cc: Benjamin Kuch; Subsurface Mailing List
> Betreff: Re: Seabear dive computer integration in subsurface
> 
> On 08 Jul 2014, at 20:14, Dirk Hohndel <dirk at hohndel.org> wrote:
> > 
> >> On Tue, Jul 08, 2014 at 02:42:57PM +0200, Benjamin Kuch wrote:
> >> Hi,
> >> 
> >> 
> >> 
> >> I’m embedded software developer at Seabear diving technology. 
> >> Currently we have one dive computer on the market (Seabear HUDC). 
> >> Three others will follow soon. We would like to be integrated in 
> >> subsurface. All our devices have a mass storage mode in which the log data (.csv files) gets provided.
> >> 
> >> What has to be done to get integrated in subsurface?
> > 
> > Most dive downloading from divecomputers is done via libdivecomputer. 
> > I'll let Jef respond how he envisions something like this could be integrated.
> > The other DC that I'm aware of that uses a storage mode based 
> > interface (the Uemis SDA) right now is integrated directly into Subsurface.
> > 
> > It depends a little bit on how exactly Seabear exposes the dive data 
> > to give a better answer. What's the directory structure in that 
> > virtual filesystem? How are the files named, what's the content?
> 
> We do already support import in CSV format for some DC models. To include your DC I would need sample dive logs and possibly a description of the format, if it is not self explanatory. Then I can pre-configure the fields for your DC. As Dirk mentioned, there is also other info needed for seamless integration. Especially to import other data than only the dive profile, we will need some more details. But for pure dive profile import, a sample log should allow me to add basic support.
> 
> miika=



> _______________________________________________
> subsurface mailing list
> subsurface at hohndel.org
> http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface


-- 
Anton Lundin	+46702-161604


More information about the subsurface mailing list