Jef Driesen
7747a6d4bd
Use the result codes in the test application.
2007-11-13 09:48:59 +00:00
Jef Driesen
8b6db75873
Return more useful result codes from all public api functions.
2007-11-09 15:07:57 +00:00
Jef Driesen
84e76103c2
Updated the code comments on the timing of the echo cancellation.
...
I measured the echo is arrives after approximately 40ms.
2007-11-09 14:57:46 +00:00
Jef Driesen
7e75ee3831
Setting the RTS line is not really necessary when opening the device.
2007-11-09 14:41:33 +00:00
Jef Driesen
627ba48bc2
Use a macro for all warning messages.
2007-11-09 12:47:56 +00:00
Jef Driesen
07265e3571
Change the echo cancellation to match with Suunto Dive Manager 1.6.
...
Detection of the interface before reading or writing is not required
anymore.
2007-11-08 14:46:10 +00:00
Jef Driesen
94ff25e8a4
Open the dump files in binary mode.
2007-11-08 08:55:03 +00:00
Jef Driesen
de3fb61c0a
Handle null packages correctly.
...
Abort the transmission and discard the data if a null package is
received at the end of the internal ring buffer.
2007-11-04 13:12:50 +00:00
Jef Driesen
e1f12108cb
Handle timeouts while receiving the first package.
...
Instead of ending the transmission, an error is reported.
2007-11-03 20:27:14 +00:00
Jef Driesen
316ec12fef
Added a test to dump the entire memory of the dive computer.
2007-11-03 20:00:14 +00:00
Jef Driesen
4875f9c2bb
Added the initial implementation for the Suunto Vyper.
2007-10-31 15:25:44 +00:00
Jef Driesen
c5fc289cb2
Added missing break statements in the serial_flush() functions.
2007-10-29 10:54:40 +00:00
Jef Driesen
76e5f12094
Implemented the win32 serial_drain function using FlushFileBuffers.
2007-10-29 10:49:35 +00:00
Jef Driesen
21e9cf9739
Implemented the win32 serial_drain function using WaitCommEvent.
2007-10-29 10:45:35 +00:00
Jef Driesen
425efd1c0d
Added a shorter implementation for the serial_set_status function.
2007-10-29 09:56:30 +00:00
Jef Driesen
0154674573
Attempt to read/write before waiting, instead of the other way around.
2007-10-29 09:52:28 +00:00
Jef Driesen
a3ae610b2e
Replace termios VMIN=0 and VTIME=0 with O_NONBLOCK.
...
Enable O_NONBLOCK to be able to detect the difference between a timeout
and a modem disconnect (EOF). With this change, it's also possible to
implement write timeouts.
2007-10-29 09:37:26 +00:00
Jef Driesen
3f33f82bc2
Initial import.
2007-10-29 09:22:19 +00:00