Dive data import error with Hollis DG03

Rick Walsh rickmwalsh at gmail.com
Mon Mar 24 05:22:55 PDT 2014


On 24 March 2014 22:35, Hamish Moffatt <hamish at cloud.net.au> wrote:
> On 24/03/14 21:21, Jef Driesen wrote:
>>
>>
>> Or make it persistent by disable the low_latency flag when opening the
>> serial port in libdivecomputer. See the attached patch for a prototype
>> implementation. On Linux, it will clear the low_latency flag, without
>> setting the latency_timer value, because that requires root permissions. But
>> based on the info we gathered so far, that should already do the trick. On
>> Mac OS X, it seems possible to set the latency timer directly, although I
>> have no idea whether that actually works or not.
>>
>> Can anyone give this a try?

I applied the patch to libdivecomputer source (I tried both 0.4.2, and
the latest git 0.5.0-devel), and rebuilt both libdivecomputer and
subsurface. The patch applied and the source compiled fine but I still
received the same error messages as before when downloading from
subsurface.

>>
> Isn't this the wrong solution? As best I can tell, the dive computer needs a
> bit of delay between commands, which it gets by accident due to the read
> latency. The default read latency works on Windows and Mac, but those could
> be changed by the user. The default read latency doesn't work on linux.
>
> A short delay within libdivecomputer won't even be noticeable on systems
> where the default read latency is already larger.
>
>
> Hamish


More information about the subsurface mailing list