EXAMPLE 1

Upon receiving a telephone call from an active user, the device closes the contact of output 1 for 3 seconds and hang up the call without answering, creating a simple remote control (for example for a gate) at no cost.

For each user it will be possible to set days or period of validity as well as a possible maximum number of operations (tickets).


CAE CALL FROM USER 






out1=on,3

ATH




evento trigger è la chiamata entrante da utente attivo.

La prima azione contiene il comando che attiva l'uscita 1 per 3 secondi.

La seconda azione contiene il comando che chiude la chiamata.

EXAMPLE 2

Alla ricezione di una chiamata telefonica da utente attivo il dispositivo risponde riproducendo un messaggio audio memorizzato.

Se nel corso della chiamata l'utente digita sulla tastiera del telefono il numero 41 (terminato con il tasto *) l'uscita 4 sarà accesa confermando l'esecuzione con un messaggio vocale per poi terminare la chiamata.


CAE CALL FROM USER 

$I72=0 MAIN POWER SUPPLY STATUS = 0 





ATA

AT+AUDIO=intro.wav




trigger event is the incoming call from an active user.

The first condition to check is that the main power supply is NOT available (state = 0).

The first action contains the command to answer the call.

The second action contains the command that starts playing the intro.wav audio file previously stored in the unit P.


DTM DTMF CODE RECEIVED

$N21=41 CALL LAST DTMF = 41 





out4=on

AT+AUDIO=out4.wav

AT#WAIT=9 AT#WAIT=9

ATH


trigger event is the receipt of a DTMF code.

The first condition to check is that the code received is 41.

The first action contains the command that activates output 4.

The second action contains the command that starts playing the out4.wav audio file previously stored in the P unit.

The third action contains the command that introduces a delay of 9 seconds repeated 2 times in order to allow the message to be played.

The fourth action contains the command that hangs up the call.