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
libdivecomputer not supporting 2.0 yet?
libdivecomputer not supporting 2.0 yet?
~~~
MK2 1076
my wish list: http://heinrichsweikamp.net/forum/read.php?2,4649
MK2 1076
my wish list: http://heinrichsweikamp.net/forum/read.php?2,4649
Re: libdivecomputer not supporting 2.0 yet?
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.
The test application available for download (dated August 22nd 2011) work nicely with 2.0 as well.
Oliver
OSTC Mk2 1830
OSTC Mk2 1830
Re: libdivecomputer not supporting 2.0 yet?
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...
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
MK2 1076
my wish list: http://heinrichsweikamp.net/forum/read.php?2,4649
Re: libdivecomputer not supporting 2.0 yet?
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...
$ ./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
MK2 1076
my wish list: http://heinrichsweikamp.net/forum/read.php?2,4649