Send the string in HEX to serial port. The length of the parameter must be even, For example, SERIAL_HEX=31323334 to send the 0x30,0x31,0x33,0x34 (4 bytes only) to the serial port.
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. Therefore, the serial data might be lost if the data rate between the serial port device (like analog PTZ camera) and encoder or the remote host and encoder does not match or the serial data very bursts into the encoder.
No error message will be returned if there is no serial port in the device.If the CHANNEL=n was not set with this URL to the multiple channel encoder, 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 serial port then. That applies to this URL access authority. So, user level account could use this URL to access serial port.
Character String (length in even)
OK
or
ERROR: invalid parameters
Valid
http://ip:port/cgi-bin/cgi?USER=Admin&PWD=123456&SERIAL_HEX=313233
or
http://ip:port/cgi-bin/cmd/cgi?SERIAL_HEX=313233 where
cgi could be mpeg4 or encoder