EVENT_DI1, EVENT_DI2

Description

Get or Set the DIs (Digital Input ports) configurations.

The DIs could be the source of events to trigger the device to change its state or output the video images to remote servers. Before use DIs, it might need to define the active level and duration of these input signals to meet user's applications.

This URL is available for devices which do not have DIs. This URL will be treated as dummy URL then.

Input Argument

        level,dwell

level: the active level. 0: active low, 1: active high
dwell: the active time windows in seconds. It is from 0 ~ 86400 seconds. The 0 means the there is no active time window. The active window helps the reduce the possibility of false triggers if the application knows the minimum successive DI trigger time interval.

Here illustrate how the level and dwell work. Assume the EVENT_DI1=1,3 which means the active level and time window of DI1 is high and 3 seconds

In the DI1 trigger Timing, the trigger event occurs as it goes high and the trigger event becomes inactive as it goes low.

Attribute

Return of Message

EVENT_DIn='0,1'

OK: EVENT_DIn='0,1'
or
ERROR: EVENT_DIn='0,1'

where n could be 1 or 2

Applicability

Status

Valid

See Also

EVENT_CONFIG

Example

http://ip:port/cgi-bin/encoder?USER=Admin&PWD=123456&EVENT_DIn
or
http://ip:port/cgi-bin/cmd/encoder?EVENT_DIn

http://ip:port/cgi-bin/encoder?USER=Admin&PWD=123456&EVENT_DIn=0,1
or
http://ip:port/cgi-bin/cmd/encoder?EVENT_DIn=0,1
where n could be 1 or 2

Back to

HOME, ENCODER CGI