Test the event response for a specific event.
This URL helps user to check if the response configuration of an event was set correctly. The response configurations including the event server (FTP server, SMTP server, ...) configurations will be loaded to the device automatically when this URL is received. The device will based on these configurations to execute the event response.
This URL command needs to work with event response command which it is EVENT_RSPDOn, EVENT_RSPMSGn, EVENT_RSPIMGn, EVENT_RSPCMDn or EVENT_RSPGO. And the input argument in these event response command must be correctly.
The EVENT_TEST has to be placed before these event response commands. For example, the valid command should be
EVENT_TEST&EVENT_RSPIMG1=4,0,1,0,name,folder,,,1
There has NO any other URLs in this EVENT_TEST URL except the USER, PWD, CHANNEL and MEDIA commands.How the device perform the event test depends on what the event response is associated with. Here is the detail description of how device react the event test with these event response commands.
EVENT_RSPDO1 and EVENT_RSPDO2
Test event response DO. The device will set the DO1 or DO2 to active level for 2 seconds then back to inactive level.EVENT_RSPMSG1, EVENT_RSPMSG2 and EVENT_RSPMSG3
Test event response of sending notification messages.
The device will send the testing notification message to the remote server or local storage based on EVENT_RSPMSGn and event server configurations.
Here is the format of testing notification message.1. insert the "Event Test" in front of the Subject.Note that the Subject and Message configurations will not be changed after the test command is executed.
2. insert the "Event Test" in front of the Message.
EVENT_RSPIMG1, EVENT_RSPIMG2, EVENT_RSPIMG3
Test event response of uploading video&audio or snapshot
The device will upload one snapshot or 2 seconds video&audio raw data to the remote server or local storage based on EVENT_RSPIMGn and event server configurations.
When upload snapshot is tested.1. insert the "Event Test" in front of the Subject if it goes through SMTP serverWhen upload video & audio raw data is tested
2. insert the "Event Test" in front of the Image file name.
3. Only one snapshot was uploaded.
1. No pre-buffer time in this testNote that the Subject and Image file name configurations will not be changed after the test command is executed.
2. insert the "Event Test" in front of the Image file name.
3. Only two seconds upload will be taken.EVENT_RSPCMD1, EVENT_RSPCMD2, EVENT_RSPCMD3
Test event response of sending URL commands.
The device will send the URL command to the remote HTTP server based on EVENT_RSPCMDn and event server configurations.
It will send the URL command (event is active) first. Two seconds later, send the URL command (event becomes inactive).
If the event active URL command is not valid, the error message will be returned.EVENT_RSPGO
Test event response of going to a preset point (PTZ/Speed dome camera only)
The device will send internal command to camera to a preset point.Important Note:
No matter what event test result is, the event response configurations will not be updated by the EVENT_RSPxxx URL in this event test.
With this command, the firmware will check the configurations of associated event server. The output of tested event response is checked in the event server side by users. The OK in the return message does not mean the corresponding event reponse is correct.
None
The return messages are considered two part of return messages. The first part of return messages is from EVENT_TEST. The last part of return messages are from the EVENT_RSPxxx URL.
Refer to every URL design specification for its return message
If there is no input argument in the event response URL, the error message "ERROR: internal error. Missing input argument in EVENT_RSPxxx" will be returned.
The return of EVENT_TEST URL depends on what the EVENT_RSPxxx command is followed.EVENT_RSPDO1 and EVENT_RSPDO2
OK
or
ERROR: internal error. There is no DOsEVENT_RSPMSG1, EVENT_RSPMSG2, EVENT_RSPMSG3
OK
or
ERROR: internal error. Event server is not set correctlyEVENT_RSPIMG1, EVENT_RSPIMG2, EVENT_RSPIMG3
OK
or
ERROR: internal error. Event server is not set correctlyEVENT_RSPCMD1, EVENT_RSPCMD2, EVENT_RSPCMD3
OK
or
ERROR: internal error. Event server is not set correctly
EVENT_RSPGO
OK
or
ERROR: internal error. Device is not PTZ or Speed dome camera
Platform Devices Supported Firmware Version PlatformA Camera, Video server A1D-220-V3.13 and later PlatformT Camera, Video server A1D-310-V4.09 and later Multiple channel Encoder Video server A1X-M2N-V2.07.03 + Video server firmware version
Valid
EVENT_RSPDO, EVENT_RSPMSGn, EVENT_RSPIMGn, EVENT_RSPCMDn, EVENT_RSPGO
http://ip:port/cgi-bin/encoder?USER=admin&PWD=123456&EVENT_TEST&EVENT_RSPIMG1=4,0,1,0,name,folder,,,1
or
http://ip:port/cgi-bin/cmd/encoder?EVENT_TEST&EVENT_RSPIMG1=4,0,1,0,name,folder,,,1