libdivecomputer not supporting 2.0 yet?

Legacy OSTC's
Post Reply
Solodiver
Posts: 397
Joined: 05 May 2010, 10:25

libdivecomputer not supporting 2.0 yet?

Post 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
~~~
MK2 1076

my wish list: http://heinrichsweikamp.net/forum/read.php?2,4649
nakatomi
Posts: 75
Joined: 24 Oct 2010, 23:12

Re: libdivecomputer not supporting 2.0 yet?

Post 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.
Oliver
OSTC Mk2 1830
Solodiver
Posts: 397
Joined: 05 May 2010, 10:25

Re: libdivecomputer not supporting 2.0 yet?

Post 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...
~~~
MK2 1076

my wish list: http://heinrichsweikamp.net/forum/read.php?2,4649
Solodiver
Posts: 397
Joined: 05 May 2010, 10:25

Re: libdivecomputer not supporting 2.0 yet?

Post 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...
~~~
MK2 1076

my wish list: http://heinrichsweikamp.net/forum/read.php?2,4649
Post Reply