DIO_OUTPUT
Description
Set the device's individual DOs signal level.
The input argument is in hexadecimal and is divided into two parts. The first part is the DO signal bit mapping and the second part is the DO signal level. This is different to DIO_OUTPUT in MPEG4 CGI. The mapping of the hexadecimal value to the DOs are listed below.
Bit and value in the input argument Description Bit 0 = 0 Set DO1 is Low Bit 0 = 1 Set DO1 is High Bit 1 = 0 Set DO2 is Low Bit 1 = 1 Set DO2 is High Bit 2,3 Not Used. They should be set to 0s Bit 4 = 1 Bit 0 is valid for DO1 Bit 4 = 0 Bit 0 is not valid for DO1 Bit 5 = 1 Bit 1 is valid for DO2 Bit 5 = 0 Bit 1 is not valid for DO2 Bit 6,7 Not Used. They should be set to 0s Example:
The DIO_OUTPUT=0x21 will set the DO2 to low but DO1 level will not be updated.
The DIO_OUTPUT=0x00 will do nothing to DO1 and DO2.
The DIO_OUTPUT=0x11 will set the DO1 to high but DO2 level will not be updated
The DIO_OUTPUT=0x32 will set the DO1 to low and DO2 to high.
The value in the return message is the echo of the input argument. It does not reflect the DO signal after this command.
If the CHANNEL=n was not set with this URL to the Multi-Channel device, the error message will be returned.
Input Argument
0xn (1byte hexadecimal value)
Attribute
Return of Message
Write Operation
OK: DIO_OUTPUT='0x30'
Applicability
Status
Valid
See Also
Example
http://ip:port/cgi-bin/encoder?USER=Admin&PWD=123456&DIO_OUTPUT=0x31
or
http://ip:port/cgi-bin/cmd/encoder?DIO_OUTPUT=0x31
Back to