39
Quick Conguration
Command: setting impulse of relay/outlet
Function. set [id] [name] pulse [duration],
where id – number of the element, name –
name of the element, duration – duration of
delay in seconds. Field “name” is case sensitive.
The range of values for eld “duration” is from
1 to 120.
Description. This command switches the relay (
outlet) two times with a temporary delay speci-
ed as a “duration” parameter in seconds.
Examples.
• “set 1004 pulse 15” - pulse is sent to the
relay with number 1004 with delay time of
15 sec;
• “SET Relay-1 PULSE 110” - pulse is sent to
the relay with name Relay-1 with delay of
110 sec;
• “set Relay-2 pulse 10” - pulse is sent to the
relay with name Relay-2 with delay of 10
sec.
Sending SMS from PC
You can use an external program to send SMS
directly from your PC. An example of such
program and example of code in C can be found
here:
ftp://ftp.sky-control.com/drivers/sms/
T
he zip le Adobe AIR contains application and
an example of code in C. To follow the example
please use the following command in console:
gcc -O2 -o sendsms sendsms.c
To send SMS you can use a free software such
as cURL:
http://curl.haxx.se/download.html
Script example of sending SMS:
Line № Code
1 #!/bin/bash
2
3
HOST=<IP or hostname EMS with GSM-modem, for example: http://telemetry.asia>
4 PASS=’<your password>’
5 PLUS=’%2B’
6 TOPHONE=’’$PLUS’<your phone, for example: 421908xxxxxx>’
7 MESSAGE=’<your message>’
8
9
curl -d ‘epassword=’$PASS’&querytype=send_sms_message&to_phone=’$TOPHONE’&m
essage=’$MESSAGE’’ $HOST/engine.htm
Please indicate the rmware version of your
monitoring system ( “System menu” >> “About
this system” >> “Firmware version”).