Re: Divesoft integration testing

2023-12-09 Thread Anton Lundin via subsurface
On 09 December, 2023 - Philippe Massart via subsurface wrote:

> > Le 9 déc. 2023 à 10:57, Jef Driesen  a écrit :
> > 
> > On 8/12/2023 20:56, Philippe Massart via subsurface wrote:
> >> Since several years now, I import .DLF files from my Divesoft Freedom 
> >> computer without any problem.
> >> I saw that Divesoft Freedom and Liberty where integrated into 
> >> libdivecomputer, and that a next release of Subsurface could include 
> >> direct download from the dive computer, instead of manually import .DLF 
> >> files.
> >> For now (test version from November 21th), Divesoft computers are well in 
> >> this list of supporter computers but no import is available, perhaps 
> >> because no mount point is available: the mount point showed is the one 
> >> from my other computer (Garmin), and no change or manual selection is 
> >> possible (see attachment).
> >> My Divesoft computer mount point on Mac is /Volumes/FREEDOM, and 
> >> /run/media/username/FREEDOM under Linux
> >> If there is something to test about that, don’t hesitate to tell me.
> > 
> > The libdivecomputer integration is for downloading dives over bluetooth 
> > (BLE). That's why the mount point control is disabled, because it's not 
> > used for bluetooth communication. This feature is only available in the 
> > newer versions of the Freedom and Liberty. For the older models, which are 
> > using USB mass storage, you can import the DLF files as before. The 
> > download over bluetooth will simply download the same content as the DLF 
> > files, so there is no difference in the data that gets downloaded.

The libdivecomputer based downloader and the subsurface DLF importer
have different "heritage", the later started as me reverse
engineering the format. That's also sort of the background why it
stopped at a data importer and never grew up to be a propper "download
from dive computer" backend.

Nowadays it might be a idea to drop the subsurface DLF parser, and
extend libdc_buffer_parser to feed the DLF into libdivecomputer instead
and let it parse them.

One could write a "download from dive computer" back end either using
the libdivecomputer parsing akind to the Uemis Zurich downloader, which
also takes a mount point as io-endpoint instead of serial or bluetooth.
This would most likely improve the experience the most for Divesoft
divers importing logs into subsurface. Or, after a bit of digging, write
a Divesoft downloader which uses the DC_TRANSPORT_USBSTORAGE thingie to
iterate over DLF files, like the Garmin ones.

Or maybee it's time for upstream libdivecomputer to get a variant of
DC_TRANSPORT_USBSTORAGE and use that?


//Anton
___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


Re: Divesoft integration testing

2023-12-09 Thread Philippe Massart via subsurface
Thanks ! It much clearer!

Philippe

> Le 9 déc. 2023 à 10:57, Jef Driesen  a écrit :
> 
> On 8/12/2023 20:56, Philippe Massart via subsurface wrote:
>> Since several years now, I import .DLF files from my Divesoft Freedom 
>> computer without any problem.
>> I saw that Divesoft Freedom and Liberty where integrated into 
>> libdivecomputer, and that a next release of Subsurface could include direct 
>> download from the dive computer, instead of manually import .DLF files.
>> For now (test version from November 21th), Divesoft computers are well in 
>> this list of supporter computers but no import is available, perhaps because 
>> no mount point is available: the mount point showed is the one from my other 
>> computer (Garmin), and no change or manual selection is possible (see 
>> attachment).
>> My Divesoft computer mount point on Mac is /Volumes/FREEDOM, and 
>> /run/media/username/FREEDOM under Linux
>> If there is something to test about that, don’t hesitate to tell me.
> 
> The libdivecomputer integration is for downloading dives over bluetooth 
> (BLE). That's why the mount point control is disabled, because it's not used 
> for bluetooth communication. This feature is only available in the newer 
> versions of the Freedom and Liberty. For the older models, which are using 
> USB mass storage, you can import the DLF files as before. The download over 
> bluetooth will simply download the same content as the DLF files, so there is 
> no difference in the data that gets downloaded.
> 
> Jef

___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


Re: Divesoft integration testing

2023-12-09 Thread Jef Driesen via subsurface

On 8/12/2023 20:56, Philippe Massart via subsurface wrote:
Since several years now, I import .DLF files from my Divesoft Freedom computer 
without any problem.


I saw that Divesoft Freedom and Liberty where integrated into libdivecomputer, 
and that a next release of Subsurface could include direct download from the 
dive computer, instead of manually import .DLF files.


For now (test version from November 21th), Divesoft computers are well in this 
list of supporter computers but no import is available, perhaps because no mount 
point is available: the mount point showed is the one from my other computer 
(Garmin), and no change or manual selection is possible (see attachment).


My Divesoft computer mount point on Mac is /Volumes/FREEDOM, and 
/run/media/username/FREEDOM under Linux


If there is something to test about that, don’t hesitate to tell me.


The libdivecomputer integration is for downloading dives over bluetooth (BLE). 
That's why the mount point control is disabled, because it's not used for 
bluetooth communication. This feature is only available in the newer versions of 
the Freedom and Liberty. For the older models, which are using USB mass storage, 
you can import the DLF files as before. The download over bluetooth will simply 
download the same content as the DLF files, so there is no difference in the 
data that gets downloaded.


Jef
___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface