77 Commits

Author SHA1 Message Date
Jef Driesen
e8ce10ffb3 Return the dives in reverse order (newest dives first). 2008-05-15 14:20:32 +00:00
Jef Driesen
f37740be75 Added a function to extract individual dives from the binary data. 2008-05-15 13:43:54 +00:00
Jef Driesen
e5ad376764 Added a function to extract individual dives from the binary data. 2008-05-15 13:22:26 +00:00
Jef Driesen
311170f2b8 Added the initial implementation for the Suunto Eon. 2008-05-11 15:05:21 +00:00
Jef Driesen
98b5d06be6 Added an auxiliary function to reduce the amount of duplicated code. 2008-05-10 19:15:13 +00:00
Jef Driesen
e9956f50f0 Fixed a small error. 2008-05-10 19:06:35 +00:00
Jef Driesen
5b0810c324 Added a function to extract individual dives from the binary data. 2008-04-17 08:04:04 +00:00
Jef Driesen
30ff9e667a Fixed a mistake in the transfer protocol.
The device sends the size of the data stream before the actual data.
2008-04-16 17:48:50 +00:00
Jef Driesen
c2bc70e8a0 Return only after all data has been read or written.
And added a function to retrieve the number of bytes waiting in the 
receive buffer.
2008-04-11 13:45:42 +00:00
Jef Driesen
71a5c0ac3f Added the initial implementation for the Uwatec Smart. 2008-04-08 08:16:32 +00:00
Jef Driesen
ea32784273 Added the initial support for infrared connections on Windows and Linux. 2008-04-07 12:15:12 +00:00
Jef Driesen
0ae0e9e69f Return the dives in reverse order (newest dives first). 2008-04-01 12:20:13 +00:00
Jef Driesen
1fdd9f186d Added a function to extract individual dives from the binary data.
Each dive is converted from the Aladin format into the Memomouse format.
2008-03-31 09:24:34 +00:00
Jef Driesen
4d12b4b491 Added a function to extract individual dives from the binary data. 2008-03-31 09:21:41 +00:00
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
fcf11209b7 Added the initial implementation for the Reefnet Sensus Ultra. 2008-03-18 10:17:51 +00:00
Jef Driesen
3918ca99c5 Added the initial implementation for the Reefnet Sensus Pro. 2008-03-17 14:47:38 +00:00
Jef Driesen
8faae14591 Simplified the download code.
With a memory buffer that is large enough to store all profile data, 
there is no need to use an intermediate package buffer.
2008-03-12 11:06:34 +00:00
Jef Driesen
feae81bd45 Move the function to read individual dives into the library.
A callback function can be provided to process each downloaded dive.
2008-03-11 15:58:54 +00:00
Jef Driesen
02bb6019ee Show the commandline parameters in the logfile. 2008-03-05 10:14:47 +00:00
Jef Driesen
7c466009fd Skip the last 2 bytes when reading the ringbuffer.
It turns out that those 2 bytes do not contain valid profile data.
2008-03-05 08:30:41 +00:00
Jef Driesen
0025221268 Fixed another regression in the timeout code.
The assignment needs extra parentheses, because it has lower precedence 
than the relational operator.
2008-02-28 14:20:51 +00:00
Jef Driesen
032f39cdd6 Fixed a regression in the timeout code.
The timestamp was not updated when calculating the remaining timeout.
2008-02-28 09:56:18 +00:00
Jef Driesen
dea1ae1518 Added a function to assert or clear a break condition. 2008-02-24 19:52:12 +00:00
Jef Driesen
25d8fc0969 Some more code simplifications. 2008-02-22 11:12:15 +00:00
Jef Driesen
1b44b886c0 Cleanup and simplification of the posix timeout code. 2008-02-22 10:49:45 +00:00
Jef Driesen
52a9293e7d Automatically retry the command if the device does not respond. 2008-02-18 14:41:28 +00:00
Jef Driesen
f74e17068f Removed the suunto_vyper2_recv and suunto_d9_recv functions. 2008-02-18 14:26:46 +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
4d30b19251 Use the select() function instead of poll().
The poll() function does not support (serial) devices on Mac OS X.
2008-02-15 15:57:45 +00:00
Jef Driesen
4be1c33ca3 Added the initial implementation for the Suunto D6 and D9. 2008-02-13 15:55:16 +00:00
Jef Driesen
898b1479bc Set the fAbortOnError flag explicitly to FALSE.
This change prevents some unexpected errors.
2008-02-08 14:17:38 +00:00
Jef Driesen
0b5c63995f Added support for the Mac OS X operating system. 2008-02-08 09:02:36 +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
fa20dbb87d Added the initial implementation for the Uwatec Memomouse. 2008-01-28 13:52:29 +00:00
Jef Driesen
0d800dba95 Do not return the checksum bytes to the user. 2008-01-24 10:48:11 +00:00
Jef Driesen
6ca4159149 Added the initial implementation for the Uwatec Aladin. 2008-01-10 09:20:11 +00:00
Jef Driesen
7f3382dfd7 Added code to transfer only the dive data from a Suunto Vyper2.
The dives are transfered in reverse order (newest dives first).
2008-01-08 15:58:19 +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
bc229099af Added a missing function to the header file. 2007-12-29 19:06:23 +00:00
Jef Driesen
a63a1e4576 Added the initial implementation for the Suunto Vyper2. 2007-12-19 10:16:00 +00:00
Jef Driesen
50bc70d89a Use common error codes for all Suunto divecomputers. 2007-12-19 09:24:09 +00:00
Jef Driesen
ec04cc516c Prepare to add support for other Suunto dive computers. 2007-12-19 09:15:12 +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