INVERT_DI

 

Description

Get or Set the inversion control of DI in the encoder device.
To help remote server like NVR to manage the DI events, the encoder could change the DI level to fit the configuration of DI sensor and NVR before send it out.
For example, the DI in the video B2 frame or control message is 0 when the physical DI stays high voltage, say 5V, when the inversion control of this DI was enabled.

Note:
The change of inversion control causes runtime DI level changes. Change this setting in runtime will cause false alarm!!
Therefore, this configuration should be set once at the initial encoder setup stage.

In multiple channel video servers, this URL is treated as read only command and the INVERT_DI setting in channel 1 will be returned if there is no CHANNEL=n command. The error message will be returned if the channel 1 is not alive.

Input Argument

InvDI1,InvDI2
where
InvDI1: the inversion control of DI 1. 0: not invert the physical DI. 1: invert the physical DI.
InvDI2: the inversion control of DI 2. 0: not invert the physical DI. 1: invert the physical DI.
Note
No error message will be returned if the encoder does not have DIs or just have DI 1. The inversion control still takes effect in such of encoders. The DIs in video B2 frame and control message will be the result of the inversion control.
When read, the InvDI1 and InvDI2 will be returned no matter how many DIs is available in the encoders.

Attribute

Return of Message

INVERT_DI='0,0'

OK: INVERT_DI='0,0'
or
ERROR: INVERT_DI='0,0'
or
ERROR: INVERT_DI not found

Applicability

Platform Devices Supported Firmware Version
PlatformW Camera, Video server A1X-M2N-V2.11 and later
PlatformA Camera, Video server A1D-220-V3.13 and later
PlatformT Camera, Video server A1D-310-V4.08 and later
Multiple channel Encoder Video server A8D-M2N-V2.07.04 + Video server firmware version

Statue

Valid

See also

None

Example

http://ip:port/cgi-bin/system?USER=admin&PWD=123456&INVERT_DI
or
http://ip:port/cgi-bin/cmd/system?INVERT_DI

http://ip:port/cgi-bin/system?USER=admin&PWD=123456&INVERT_DI=0,1
or
http://ip:port/cgi-bin/cmd/system?INVERT_DI=0,1

Back To

HOME, SYSTEM CGI