Page 1 of 1

libdivecomputer not supporting 2.0 yet?

Posted: 11 Sep 2011, 19:34
by Solodiver
Assuming this is an issue using the 2.0 firmware I sent a Mail to Jef already:


$ ./ostc /dev/ttyUSB0
DEVICE=/dev/ttyUSB0
hw_ostc_device_open
device_dump
hw_ostc.c:237: Failed to receive the header.
hw_ostc_test.c:46: Cannot read memory.
SUMMARY
-------
test_dump_memory: Timeout

Remembering having success with 1.9x this might be an other issue, so maybe someone else can do some tests also...

Thx,
Jan

Re: libdivecomputer not supporting 2.0 yet?

Posted: 11 Sep 2011, 20:20
by nakatomi
You must have the wrong version of livdivecomputer. Get the latest version through git and you should be fine.
The test application available for download (dated August 22nd 2011) work nicely with 2.0 as well.

Re: libdivecomputer not supporting 2.0 yet?

Posted: 11 Sep 2011, 21:33
by Solodiver
Yeah, I'm using the latest checkout and I also did some reconfiguration and rebuild. The OSTC is also showing the data screen, also when the dumps is already terminated.

Just when I started to debugging the whole thing I did an other try (whithout recompiling, exactly same code, shell, user) but letting the OSTC cool down a bit and yeah, it is working now:

$ cd ../examples/
[jan@toral examples]$ ./ostc /dev/ttyUSB0
DEVICE=/dev/ttyUSB0
hw_ostc_device_open
device_dump
Dumping data
device_close
SUMMARY
-------
test_dump_memory: Success

Strange thing, will check this further...

Re: libdivecomputer not supporting 2.0 yet?

Posted: 11 Sep 2011, 21:44
by Solodiver
I also got this error before:

$ ./ostc /dev/ttyUSB0
DEVICE=/dev/ttyUSB0
hw_ostc_device_open
device_dump
hw_ostc.c:244: Unexpected answer header.
hw_ostc_test.c:46: Cannot read memory.
SUMMARY
-------
test_dump_memory: Generic error

But seems to work now, tried several times in different constellations and can not reproduce it, so just ignore it...