SERIAL_SETTING

Description

Get or Set the serial port configuration.

There is a serial port on the device for the RS232/RS485/RS422 port. 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 through the Video Sever by Joystick connected to Decoder's RS232/RS485/RS422 port.

Note that, there is no any hardware and software flow control mechanism implemented in this serial port.

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

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/url.cgi?USER=Admin&PWD=123456&SERIAL_SETTING
http://ip:port/cgi-bin/url.cgi?USER=Admin&PWD=123456&SERIAL_SETTING=8N1,9600

Back to

HOME, URL CGI