Get the levels of all Digital Input (DI) ports.
If there is no digital input ports, the return of this URL means the internal GPIOs level. These GPIOs might be floating in the board design.They should not be referred in users applications then.
If the CHANNEL=n was not set with this URL to the multiple channel video encoders, this command is read-only command and the CHANNEL 1 module's DIO_STATUS configuration will be returned. If the CHANNEL 1 module does not connect to the router, the error message will be returned.
None
The return message is similar to the return message of GET_CTRL_MSG=DI URL in encoder CGI. The format of return message is
DI=N;level=L
where N is th index of DI ports. It is started from 1. L is the level of this DI port.Example for 2 DIs
The return message for 2 DIs should be like
DI=1;level=0
DI=2;level=1
Valid
http://ip:port/cgi-bin/encoder?USER=Admin&PWD=123456&GET_DI_STATE
or
http://ip:port/cgi-bin/cmd/encoder?GET_DI_STATE