58
2N TELEKOMUNIKACE a.s., www.2n.cz
®
Relay Control
Every terminal is equipped with two relay outputs, which can be SMS controlled. The
configuration SMS must include the password and one of the four programmable
parameters at least.
The programmable parameters include:
R1
or
– define the relay state:
R2
1 –
relay is closed (on)
relay is open (off)
0 –
S1
or
define the relay state after the terminal restart:
S2 –
1 –
relay is closed after restart
0 –
relay is open after restart
2 –
relay retains the pre–restart state
Tip
The relay gets off (contacts get released) after power off and,
normally, the terminal does not remember the relay states. Therefore,
the S1 and S2 parameters have been introduced, defining to which
state the relay should be switched after power up.
Example:
Suppose you want relay 1 to be switched into the open state now and into the closed
state after restart, and relay 2 to close and retain so after restart. Hence, send the
following configuration SMS:
SC REL PWD=Password R1=0 R2=1 S1=1 S2=2
The command will be executed and the terminal will send the following reply:
R1=0 R2=1 S1=1 S2=2
IP Access
You can also set IP address access authorisation using SMS. By enabling the IP Access
you will restrict the access to the terminal configuration to selected IP addresses. You
can select up to 5 different IP addresses.
The configuration SMS is as follows:
SC IPA PWD=<Password> [AUTH=<ip_auth>] [ADD=<ip_addr>] [DEL=<ip_id>]
_[REP=<ip_addr_1>,<ip_addr_2>,…<ip_addr_5>]
Now let us describe the contents of the configuration SMS and all optional parameters.