Can "libdc/examples/dctool" be used to download for debugging purposes?
Lutz Vieweg
lvml at 5t9.de
Sat Jul 22 06:19:01 PDT 2017
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
More information about the subsurface
mailing list