While making OSX homebrew packages for libdivecomputer and subsurface I've ran into trouble using my newly compiled libdivecomputer. I've tried both with 1.0.1 and the git head but the results are the same. Running the test program for vyper produces the following result:
[mba:~/Temp/libdivecomputer] $ examples/vyper /dev/tty.SLAB_USBtoUART DEVICE=/dev/tty.SLAB_USBtoUART, DELAY=500 suunto_vyper_device_open TRACE (serial_posix.c:684, ioctl): Inappropriate ioctl for device (25) suunto_vyper.c:145: Failed to set the DTR line. suunto_vyper_test.c:38: Error opening serial port. suunto_vyper_device_open TRACE (serial_posix.c:684, ioctl): Inappropriate ioctl for device (25) suunto_vyper.c:145: Failed to set the DTR line. suunto_vyper_test.c:71: Error opening serial port.
SUMMARY ------- test_dump_sdm: Input/output error test_dump_memory: Input/output error
... but running the test program downloaded from the webpage works:
[mba:~/Downloads] $ ./vyper /dev/tty.SLAB_USBtoUART DATETIME 2012-07-06T19:16:32Z (1341602192) REVISION 781f0db71f7a06591e819f7960dd5b504b4f16a0 DEVICE=/dev/tty.SLAB_USBtoUART, DELAY=500 suunto_vyper_device_open Configure: baudrate=2400, databits=8, parity=2, stopbits=1, flowcontrol=0 Timeout: value=1000 DTR: value=1 Sleep: value=100 Flush: queue=3, input=0, output=0 device_foreach [... data dump ...]
Any ideas on what might be causing this?
Regards, Christian