
8. IF-THEN BEHAVIOUR STATEMENTS
The GSM Commander is configured by defining a number of behaviour statements. Each statement
takes the form of an IF-THEN pair. You are thus able to select certain trigger conditions that will
cause desired actions to be performed. Any combination of IF and THEN parts can be assembled into
complete statements using the configuration software. The GSM Commander can accept up to 128
separate behaviour statements, depending on the model .
One is also able to select time and input/output* constraints for any IF-THEN statement pair, so that
a statement will only be allowed to trigger at certain times of day, and on certain days of the week
or only if certain input/output conditions are met.
8.1. Supported IF Conditions
8.1.1. IF a Message is Received
A statement containing this IF condition, will trigger on the arrival of a SMS message.
The user has a choice of the following seven options:
•
From Any number Containing Anything or a Specific Message
•
From Any number appearing in the list A Containing Anything or a Specific Message
•
From Any number appearing in the list B Containing Anything or a Specific Message
•
From Any number appearing in the list A or B Containing Anything or a Specific Message
•
From one Specific number in the list A Containing Anything or a Specific Message
•
From Any un-listed number Containing Anything or a Specific Message
•
From Serial port Containing a Specific Message
(“Serial Port” refers to the connection labelled “RS232”)
Thus, if the user chooses “From Any number Containing Anything or a Specific Message”, then literally any
SMS(if not specified) from any number will cause the statement to trigger. This will include SMS messages
from private (withheld) numbers.
Note the word “containing” in this condition. If you have a trigger condition like this one:
IF a Message is Received From Any number containing “Apple” is received from XYZ, then <ACTION>,
The statement will trigger on arrival of any of the following messages:
“Apple”
“APPLE”
“The Red apple”
You will notice that trigger text strings are NOT case sensitive. Both “Apple” and “APPLE” will work fine.
It is also important to note that you can trigger multiple statements with different trigger texts, in the
same SMS. For example, if you have the following two statements:
IF a Message is Received From Any number containing “Apple” is received from XYZ, then <ACTION>
IF a Message is Received From Any number containing “eat” is received from XYZ, then <ACTION>
These statements will both be triggered if “I eat an Apple” is received via SMS.
Please Note:
If “From Any number appearing in the list Containing Anything or a Specific Message” or
“From a Specific number in the list Containing Anything or a Specific Message” are selected, and an SMS
arrives from a private number, the statement will not trigger.
If the user chooses “From Serial port Containing a Specific Message”, then a specific message sent via a PC
through a Serial connection(See section 15) to the unit will cause the statement to trigger.
© Polygon Technologies. All rights reserved
Page 31