Jef Driesen
2a1cd50910
Implemented the callback function to read individual dives.
2008-03-26 09:53:42 +00:00
Jef Driesen
7dd1d19eab
Reduce the number of read operations.
...
Only the header of the package needs to be read separately (to obtain
the size of the entire package). Removed the suunto_vyper_recv function.
2008-03-26 08:47:14 +00:00
Jef Driesen
6f4d863498
Read the entire package with a single operation.
...
Since the package size is known in advance, there is no need to read
each part (header, data and checksum) separately.
2008-02-17 09:01:40 +00:00
Jef Driesen
331ecf1a09
Added a function to change the delay between two commands.
...
Some dive computers do not work well with the default delay. But
increasing the default delay would make the transfer unnecessary longer
for all others.
2008-02-03 06:29:07 +00:00
Jef Driesen
a004a94c2a
Added utility functions to duplicate all output to a logfile.
2008-01-02 12:11:31 +00:00
Jef Driesen
8b52082a2f
Updated the comments on the timings of the original Suunto interface.
2008-01-02 12:01:39 +00:00
Jef Driesen
50bc70d89a
Use common error codes for all Suunto divecomputers.
2007-12-19 09:24:09 +00:00
Jef Driesen
e67d470c11
Return success when trying to close a NULL device.
2007-12-07 12:17:35 +00:00
Jef Driesen
4a8c15dafe
Changed the default timeout to 1000ms.
2007-12-03 14:39:09 +00:00
Jef Driesen
3f22a2d3e5
Add extra debugging code when a null package is received.
2007-12-03 14:38:47 +00:00
Jef Driesen
d265228b26
Improved some code comments.
2007-12-03 13:56:22 +00:00
Jef Driesen
4d4b0f141f
Do not detect the first package by means of the number of bytes.
...
If the first package was a null package and the transfer was not
aborted, it does not work properly.
2007-12-03 13:54:21 +00:00
Jef Driesen
b847086ad7
Do not attempt to read data if it's not required.
2007-11-17 09:40:24 +00:00
Jef Driesen
5e9279b99d
Read the package length and header with a single read operation.
2007-11-17 08:53:54 +00:00
Jef Driesen
40e37e6675
Removed some unnecessary functions.
2007-11-16 15:37:50 +00:00
Jef Driesen
8f4ebf434c
Reduced the amount of duplicated code.
2007-11-16 13:34:13 +00:00
Jef Driesen
7f158ff8f6
Use the SUUNTO_VYPER_PACKET_SIZE macro.
2007-11-16 11:28:48 +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
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
4875f9c2bb
Added the initial implementation for the Suunto Vyper.
2007-10-31 15:25:44 +00:00