Can "libdc/examples/dctool" be used to download for debugging purposes?

Miika Turkia miika.turkia at gmail.com
Sat Jul 22 06:45:28 PDT 2017


IIRC last parameter is the device

miika

> On 22 Jul 2017, at 16.19, Lutz Vieweg <lvml at 5t9.de> wrote:
> 
> Hi all,
> 
> I was trying to debug some ioctl() emulation, but since using Subsurface itself
> seems unnecessarily heavyweight (with all its threads and GUI stuff) for this purpose,
> I wondered whether I could get dctool (from
> https://github.com/Subsurface-divelog/libdc/blob/Subsurface-branch/examples/dctool.c )
> to just download some dive data from my Suunto D9.
> 
> However, this consistently fails with a non-helpful error message:
> 
>> dctool -d D9 -f Suunto -l dc.log -v download -o dives.xml
>> [0.000022] DATETIME 2017-07-22T13:01:55Z (1500728515)
>> [0.000043] VERSION 0.6.0-devel-Subsurface-branch (9fd6635cf6215fc8d4b66a886fd86c20548e6597)
>> [0.000057] Failed to create the output.
> 
> When I start this with "strace -f" I can see that dctool tries to open
> a Null-Filename, which of course fails.
> 
> But how would I tell "dctool" that it should look at /dev/ttyUSB0 ?
> 
> Regards,
> 
> Lutz Vieweg
> _______________________________________________
> subsurface mailing list
> subsurface at subsurface-divelog.org
> http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


More information about the subsurface mailing list