DTMF is being cranky for me

Marc Eberhard (marc@poseidon.thphy.uni-duesseldorf.de)
Tue, 2 Jun 1998 09:54:34 +0200


-----BEGIN PGP SIGNED MESSAGE-----

Hi!

Gert Doering wrote:
> Marc Eberhard wrote:
> > > 05/28 17:39:15 yS0   voice command: 'AT+VTS=[1320,0,1]' -> ''
> > > 05/28 17:39:15 yS0   voice command: '' -> 'OK'
> > > 05/28 17:39:15 yS0  vgetty: Modem returned ERROR
> 
> What I do not fully understand is what the "OK" is doing here?  Could you
> explain the two "voice command" lines to me?
> 
> It's sending "AT+VTS=...", this is clear to  me.  And then nothing ('')?
> 
> Then it sends nothing ('') and gets back OK (-> 'OK')? Or how do I have to
> read this?

Look at the source code:

int IS_101_beep(int frequency, int length)
     {
     char buffer[VOICE_BUF_LEN];
     int true_length = length / voice_modem->beep_timeunit;

     reset_watchdog();
     sprintf(buffer, voice_modem->beep_cmnd, frequency, true_length);

     if (voice_command(buffer, "") != OK)
          return(FAIL);

     delay(((length - 1000) > 0) ? (length - 1000) : 0);

     if ((voice_command("", voice_modem->beep_answr) & VMA_USER) != VMA_USER)
          return(FAIL);

     return(OK);
     }

The reason for splitting the command and the answer into two commands is,
that a long beep would otherwise produce a timeout while waiting for the OK
response.

Bye,
Marc
_______________________________________________________________________________

Email: Marc.Eberhard@Poseidon.ThPhy.Uni-Duesseldorf.DE
WWW:   http://Poseidon.ThPhy.Uni-Duesseldorf.DE/~marc/
PGP:   http://Poseidon.ThPhy.Uni-Duesseldorf.DE/~marc/Marc_PGP.key

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv

iQCVAwUBNXOvtjR1rYTfG0TdAQGg4wP/epr/hJVhhLV5fzGlyZifrEtkmpgNscjE
IgZn/ITjrxh1mckMLZzGcAaAZiE8TpPSFjd0w3A2ANWBlanKrpiQJJ0/DnTxnzf3
8fS2WTfvLFIDH7AHbCcYD5/SnUWGKi8CSdmMnkpXEZ7tRJNx0lrXOdiIdn9zt/t1
tr7RS+qbmao=
=6GAd
-----END PGP SIGNATURE-----