GET_DI_STATE

Description

Get the levels of all Digital Inpout (DI) ports.

If there is no digital input ports, the return of this URL means the internal GPIOs level. These GPIOs might be flooting in the board design.They should not be refered in users applications then.

If the CHANNEL=n was not set with this URL to the Multi-Channel device, this command is read-only command and the CHANNEL 1 video server's DIO_STATUS configuration will be returned. If the CHANNEL 1 video server does not connect to the router, the error message will be returned.

Input Argument

None

Attribute

Return of Message

The return message is similiar 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

Applicability

Status

Valid

See Also

DIO_OUTPUT

Example

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

Back to

HOME, ENCODER_CGI