vgetty on USR-sportster: watchdog timeout on incoming message

"Luca Olivetti" (luca@luca.ddns.org)
Thu, 9 Jul 1998 00:31:36 +0200


> Greetings,
> I have upgraded to Redhat 5.1, including mgetty-voice-1.1.14-2.i386.rpm.
> I found now that incoming messages were cut off after 60 seconds
> when the watchdog timer expired.
> I "fixed" the problem by putting a long timeout.
> 
> Before I go further (without doumentation), is this a known problem?

Yes it is
 
> Should the watchdog be running during recording?
> Should something be resetting it?
> 

Vgetty resets the watchdog every n bytes received from the modem. The problem 
is that with GSM compression (which is the default for the sportster) there 
are less than n bytes before the watchdog times out. I think Marc took another 
approach in later versions, like signalling every n seconds instead of every n 
bytes.
For 1.1.14 here is a quick hack 

--- mgetty-1.1.14/voice/libvoice/IS_101.c.orig	Fri Apr 17 00:10:36 1998
+++ mgetty-1.1.14/voice/libvoice/IS_101.c	Fri Apr 17 00:11:25 1998
@@ -623,7 +623,7 @@
      int was_DLE = FALSE;
      int tcount = 0;
      int count = 0;
-     int count_limit = bps / 8 * cvd.watchdog_timeout.d.i / 2;
+     int count_limit = bps / 8 * cvd.watchdog_timeout.d.i / 20;
 
      reset_watchdog();
      timeout = time(NULL) + cvd.rec_max_len.d.i;

I can send you my spec file to rebuild the rpm with this patch.

Bye

-- 
Luca Olivetti             | Tarifa Plana ya! http://tarifaplana.home.ml.org/
http://www.luca.ddns.org/ | FAQ    http://www.luca.ddns.org/ptp-faq.html
----------------------------------------------------------------------------
PGP key on servers - see http://www.pgp.net/pgpnet/
----------------------------------------------------------------------------
I used to get high on life but lately I've built up a resistance.