Get or Set the URL command engine of the event configurations.
When event source is triggered or becomes inactive, the device could send the user defined URL commands to the remote HTTP CGI defined in the HTTP_SERVER.
There are two HTTP server database, named HTTPD1 and HTTPD2, in the device. The notification message, image and video could be uploaded to these servers as events were triggered. The HTTP server configurations have to be set correctly when use this URL to send the command to these servers.
id,[OnCmd],[OffCmd]
where
id: the method of sending message. It indicates which HTTP server will be the target to sent the URLs. 1: HTTPD1, 2:HTTPD2.
[OnCmd]: The URL command including CGI path and left/right brackets for triggered event. The maximum length is 119 not including the left/right brackets.
[OffCmd]: The URL command including CGI path and left/right brackets for event changed to inactive from active state. The maximum length is 119 not including the left/right brackets.
If the length of the input argument is longer than its maximum length limitation, the error message will be returned.
The '['and ']' are NOT allowed in OnCmd and OffCmd.Special Note
The CGI path and CGI program name are included in the OnCmd and OffCmd. Most of cases, the '&' is used to connect two commands. Therefore, the '&' is the part of OnCmd and OffCmd input arguments. In this case, two different meaning of '&' in this URL command. It will confuse the encoder device when it parsers this URL command. To solve this problem, the %26, the ASCII code of '&', has to be used when '&' acts as the input argument. For example,
EVENT_RSPCMD1=1,/MyCgi?SET_DO1=1%26SET_DO2=0,/MyCgi?SET_DO1=0%26SET_DO2=1
In OnCmd argument, the %26 is the conjunction symbol to connect two URLs, SET_DO1 and SET_DO2. But it is the part of OnCmd argument.
EVENT_RSPCMDn='1,[/cgi-bin/MyCgi?SET_DO1=1&SET_DO2=0],[/cgi-bin/MyCgi?SET_DO1=0&SET_DO2=1]'
or
EVENT_RSPCMDn='1,[/cgi-bin/MyCgi?SET_DO1=1&SET_DO2=0],[/cgi-bin/MyCgi?SET_DO1=0&SET_DO2=1]'
or
EVENT_RSPCMDn='1,[/cgi-bin/MyCgi?SET_DO1=1&SET_DO2=0],[]' (OffCmd is off).
OK: EVENT_RSPCMDn='1,[/cgi-bin/MyCgi?SET_DO1=1&SET_DO2=0],[/cgi-bin/MyCgi?SET_DO1=0&SET_DO2=1]'
or
ERROR: EVENT_RSPCMDn='1,[/cgi-bin/MyCgi?SET_DO1=1&SET_DO2=0],[/cgi-bin/MyCgi?SET_DO1=0&SET_DO2=1]'where n could be 1, 2 or 3
Special Note
In the return message, the %26 in the OnCmd and OffCmd will be translated into &.
Valid
EVENT_CONFIG, EVENT_MDn, EVENT_RSPDOn, EVENT_RSPMSGn, EVENT_RSPIMGn, EVENT_RSPGO, HTTP_SERVER
http://ip:port/cgi-bin/encoder?USER=Admin&PWD=123456&EVENT_RSPCMDn
or
http://ip:port/cgi-bin/cmd/encoder?EVENT_RSPCMDn
http://ip:port/cgi-bin/encoder?USER=Admin&PWD=123456&EVENT_RSPCMDn=1,[/cgi-bin/MyCgi?SET_DO1=1%26SET_DO2=0],[/cgi-bin/MyCgi?SET_DO1=0%26SET_DO2=1]
or
http://ip:port/cgi-bin/cmd/encoder?EVENT_RSPCMDn=1,[/cgi-bin/MyCgi?SET_DO1=1%26SET_DO2=0],[/cgi-bin/MyCgi?SET_DO1=0%26SET_DO2=1]
or
http://ip:port/cgi-bin/encoder?USER=Admin&PWD=123456&EVENT_RSPCMDn=1,[/cgi-bin/MyCgi?SET_DO1=1%26SET_DO2=0],[]
or
http://ip:port/cgi-bin/cmd/encoder?EVENT_RSPCMDn=1,[/cgi-bin/MyCgi?SET_DO1=1%26SET_DO2=0],[]
where n could be 1, 2 or 3