From 8b52082a2f717a535687895318470679d082f096 Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Wed, 2 Jan 2008 12:01:39 +0000 Subject: [PATCH] Updated the comments on the timings of the original Suunto interface. --- suunto_vyper.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/suunto_vyper.c b/suunto_vyper.c index 7102f9e..bdc3b42 100644 --- a/suunto_vyper.c +++ b/suunto_vyper.c @@ -225,9 +225,11 @@ suunto_vyper_send (vyper *device, const unsigned char command[], unsigned int cs // the data transfer will fail. Timing is also critical here! We have to // wait at least until the echo appears (40ms), but not until the reply // from the dive computer appears (600ms). - // The original suunto interface does not have this problem, because it - // does not send an echo and the RTS switching makes it impossible to - // receive the reply too early here. + // The original suunto interface does not have this problem, because it + // does not send an echo and the RTS switching makes it impossible to + // receive the reply before RTS is cleared. We have to wait some time + // before clearing RTS (around 30ms). But if we wait too long (> 500ms), + // the reply disappears again. serial_sleep (200); serial_flush (device->port, SERIAL_QUEUE_INPUT);