DIO_OUTPUT

 

Description

Set the device's DOs signal level.

The input argument is in hexadecimal. The mapping of the hexadecimal value to the DOs are listed below.

Bit and value in the input argument Signal level in DO pins
Bit 0 = 0 DO1 is Low
Bit 0 = 1 DO1 is High
Bit 1 = 0 DO2 is Low
Bit 1 = 1 DO2 is High

The value in the higher bits, bit 7~2, are ignored.

The value in the return message is the echo of the input argument. It does not reflect the DO signal after this command. That implied the device will not return error message if there is no DO in the device.

If the CHANNEL=n was not set with this URL to the multiple channel encoders, the error message will be returned.

Important Note :
Because we allowed user level account to request for control token in control message session, the user level account could control DOs then. That applies to this URL access authority. So, user level account could use this URL to control DO level.

Input Argument

0xn (1byte hexadecimal value)

Attribute

Return of Message

OK: DIO_OUTPUT='0x00'
or
ERROR: invalid parameters

Applicability

Status

Valid

See Also

DIO_STATUS

Example

http://ip:port/cgi-bin/cgi?USER=Admin&PWD=123456&DIO_OUTPUT=0x01
or
http://ip:port/cgi-bin/cmd/cgi?DIO_OUTPUT=0x01
where
cgi could be mpeg4 or encoder

Back to

HOME, MPEG4 CGI, ENCODER CGI