
19.3. Example 3: Control an appliance
In this example we need to switch a 220V light bulb on or off via a suitable SMS message from a
specific number listed on the GSM Commander.
Hardware:
We connect light bulb to a 220V power source via the output 1 contact on the GSM commander,
exactly as described in section 6.9
Configuration:
Using the setup software, we create a behaviour statement that will read as follows:
IF
Message is received, containing “Lights on” from 0821231234
THEN
Activate Output 1.
We create a second behaviour statement that will read as follows:
IF
Message is received, containing “Lights off” from 0821231234
THEN
Deactivate Output 1.
19.4. Example 4: Gate / garage door opener
In this example we need to open a gate in response to a missed call from any number in a list of
accepted numbers. This is an ideal method to control a communal gate in a complex.
Hardware:
Many gate openers require a pulse to open, and second pulse to close. We will use the output of the
GSM commander to supply this pulse at the position where the open/close switch is normally
connected to the opener.
Configuration:
Using the setup software, we create a behaviour statement that will read as follows:
IF
a Voice Call is received from any listed number
THEN
Activate Output 1 for 1 Sec, Pause for 20 Sec, Activate again for 1 Sec.
19.5. Example 6: Set an Output as a flag
In a few instances it may be necessary to use an Output to set a flag. This allows to you monitor an
output (does not necessarily have to be physical output) which has been assigned to indicate the
state of a certain condition. For example, you want your security system to be automatically armed
again in 30 minutes after it has been disarmed(in the event someone forgets to arm it again).
Using the setup software, we create the following behaviour statements:
St1 :
IF
Message is received containing “disarm” from any listed number
THEN
disable a group of statements
(typically these are the statements that are configured
to send a SMS when an alarm condition is detected)
St2 :
IF
“ST.1” Triggers
THEN
Activate Output 12 for 30 Min
St3 :
IF
Logic Expression: “OP12; ALL AND” becomes false
THEN
enable a group of statements
(these are the same statements that where disabled in St.1)
In the above example output 12 was used to set a flag. Any output can be used to set a flag
© Polygon Technologies. All rights reserved
Page 52