©2009 NETCONS, s.r.o.
Page 20 of 27
A_SetVar
means action to set a new value of the system variable.
A_Main
means action with the Main switched output, possible values are:
TURNON Turn on Main switched output
TURNOFF Turn off Main switched output
RESTART Change (negate) status of Main switched output for time preconfigured by
command
RESTARTTIME
.
SMStext
defines text to be sent by
A_Alert
action, can contain up to 10
characters. If a star symbol * is entered, text of alert will be the same as text
of
STATUS
message.
Following table summarizes use of
ID
command:
SMS Command
Description
SMS Response
Type
IDLIST
Get list of all program rows
ID1+0, *,*,*,*,1,*,1,TURNON,*
ID2+0, *,*,*,1,*,*,1,TURNON,*
ID3+1, *,*,*,0,0,*,0,TURNOFF,*
Ctrl
ID+…………
Insert a program row, see
above for syntax and examples
bellow.
ID+…………., OK
Ctrl
IDNr-
Delete program row number Nr.
Nr can be in range from 1 to 6.
IDNr-, OK
Ctrl
ID0-
Delete all program rows.
ID0-, OK
Ctrl
Once program rows were entered into IQSD-GSM, use command
PROGRAM
to
start its execution.
SMS Command
Description
SMS Response
Type
PROGRAM=START
Start execution of the program
PROGRAM=START, OK
Ctrl
PROGRAM=STOP
Stop execution of the program
PROGRAM=STOP, OK
Ctrl
PROGRAM?
Get current configuration of
PROGRAM, active setting is in ()
parentheses.
PROGRAM=(STOP),START Ctrl
Please note program is executed in loop with 1s periodicity. Detection of
change on inputs with duration shorter than 1 second is then unreliable.
Typically 1s periodicity is OK for detection of alarm impulse from a PIR sensor,
but it is not recommended to use program for detection of events with shorter
than 1s duration.
Examples of program scripts:
Example 1
– Thermostat
When temperature at Temp1 sensor rises beyond 25.5°C, send SMS alert
containing STATUS text and switch off Main switched output. When
temperature falls bellow 15.1°C, turn the Main switched output on and ring my
phone number up.
Lets‟ predefine the phone number at first by sending following SMS command: