SERIAL_SETTING

 

Description

Get or Set the serial port configuration.

There is a serial port on the device for the RS232/RS485/RS422 port in video servers. The external device could be accessed or controlled through this port. For example, when the RS485 port in Analog PTZ camera connects to the Video Server's serial port, user could control this Analog PTZ camera by the video server through the Ethernet at remote site.
Note that, there is no any hardware and software flow control mechanism implemented in this serial port.

No error message will be returned if the device does not have serial port.

If the CHANNEL=n was not set with this URL to the multiple channel encoders, this command is read-only command and the CHANNEL 1 channel module's SERIAL_SETTING configuration will be returned. If the CHANNEL 1 channel module does not connect to the router, the error message will be returned.

Input Argument

n,m
where
n is the serial data configuration. It could be

8N1: 8 Data bits, No parity check, 1 Stop bit
8O1: 8 Data bits, Odd parity check, 1 Stop bit
8E1: 8 Data bits, Even parity check, 1 Stop bit
8N2: 8 Data bits, No parity check, 2 Stop bit
8O2: 8 Data bits, Odd parity check, 2 Stop bit
8E2: 8 Data bits, Even parity check, 2 Stop bit
7N2: 7 Data bits, No parity check, 2 Stop bit
7O2: 7 Data bits, Odd parity check, 2 Stop bit
7E2: 7 Data bits, Even parity check, 2 Stop bit

m is the baud rate. It could be 2400, 4800, 9600, 19200, 38400, 57600 or 115200

Special Note

In PlatformW video encoders, only 8N1, 8O1 and 8E1 are available.

Attribute

Return of Message

SERIAL_SETTING='8N1,9600'
OK: SERIAL_SETTING='8N1,9600'
or
ERROR: SERIAL_SETTING='8N1,9600'

Applicability

Status

Valid

See Also

SERIAL_ASCII, SERIAL_HEX

Example

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

http://ip:port/cgi-bin/cgi?USER=Admin&PWD=123456&SERIAL_SETTING=8N1,9600
or
http://ip:port/cgi-bin/cmd/cgi?SERIAL_SETTING=8N1,9600
where
cgi could be mpeg4 or encoder

Back to

HOME, MPEG4 CGI, ENCODER CGI