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 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. 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.

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 SERIAL_SETTING configuration will be returned. If the CHANNEL 1 video server 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
m is the baud rate. It could be 2400, 4800, 9600, 19200, 38400, 57600, 115200

Attribute

Return of Message

OK: 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/mpeg4?USER=Admin&PWD=123456&SERIAL_SETTING
or
http://ip:port/cgi-bin/cmd/mpeg4?SERIAL_SETTING

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

Back to

HOME, MPEG4 CGI