Help
Input trigger 1.01
This application allows to send HTTP, UDP, TCP or serial (RS232 or RS485) messages or execute local commands when the status of the digital input is changing.
One command can be defined for HIGH input state and one command for LOW input state.
Use the following syntax :
udp://ipaddress:port number/message
or
http://ipaddress:port number/message
or
tcp://ipaddress:port number/message
or
rs232://message
or
rs485://message
or
local://command
e.g.
udp://192.168.1.20:12301/setio,1,1
or
http://192.168.1.20:80/rc.cgi?o=1,1
or
tcp://192.168.1.20:12302/setio,1,1
or
rs232://testmessage
or
rs485://testmessage
or
local://setio,1,1
If the port number for a HTTP line is 80 then you can also omit it
(e.g. http://192.168.1.20/rc.cgi?o=1,1)
The "local" commands will be executed locally on the Barionet, the response/output for the "local" commands are sent via SYSLOG message.
This version includes also a delay feature for UDP, TCP and HTTP mode.
To enable it define the timing (in ms) in brackets after the protocol, e.g. :
udp://(1000)192.168.1.20:12301/setio,1,1
or
http://(1000)192.168.1.20:80/rc.cgi?o=1,1
or
tcp://(1000)192.168.1.20:80/setio,1,1
If you omit the brackets with timing then it will be executed without delay.
The delay together with UDP is causing a empty UDP package and the defined delay timing before the UDP message with the define content is sent.
The delay together with HTTP and TCP is causing a longer (default 1000 ms + defined timing) waiting time until the TCP connection must be established.
For serial messages the timing is ignored.
Note, sent string over network or serial or local command is terminated with an additional Carriage Return - Linefeed (0d 0a).
If you need other termination characters then you can configure even 0x0a (with prefix "+", e.g. for the use with IPAC), 0x0d (with prefix "=") or without any trailing termination character (with prefix "-").
E.g.:
+udp://192.168.0.24:8500/FILEPLAY=song.mp3
=rs232://serial test message
For HTTP commands are always terminated with 0d 0a.
The "&" character cannot be saved in this setup, you have to use "#26" instead "&"!
This is not supported on "local" commands.
Note, the Barionet50 does support the first 4 inputs only !
Each entry field allows max. 60 chars except the last (Input 7 deactivated), this allows only 44 chars !
The input 8 is joined to the local relay 1, by switching the local input 8 the relay 1 could be switched on or off.