User`s manual

Table Of Contents
VPort 2140 User’s Manual Advanced Applications
5-7
Moving motorized camera in PTZ direction
/cgi-bin/control.cgi?<param>=<value>&<param>=<value>……
Param Value Description
cam 1 Video 1
2 Video 2
3 Video 3
4 Video 4
move up Tilt up
down Tilt down
left Pan left
right Pan right
home Return to home position
zoom wide Zoom in
tele Zoom out
focus near Focus near
far Focus far
auto Automatic focus
panspeed -5 to 5
tiltspeed -5 to 5
Recalling camera position
/cgi-bin/recall.cgi? cam=1&recall=<position>
<n>: video channel from 1 to 4.
<position>: the text string of a location that is preset in system configuration.
Refer to Camera preset configuration URL for preset function.
Transparent Remote Serial Driver
Video Server provides a highly customized control support for third-party serial interface devices
(other than PTZ cameras). This means that in addition to setting up a custom camera with PAN/
TILT/ ZOOM/ FOCUS commands, users may utilize this mode and introduce a customized
homepage to transmit arbitrary user-defined commands from user-side to Video Server. The
third-party device connected to the serial port of Video Server will receive the same command sent
by the originator. The user only needs to attach the command in ASCII format after the special
URL. Video Server will parse the commands and translate into binary code to send out.
Sending command to device attached to COM1
/cgi-bin/senddata.cgi?com=1&data=123456,ABCDEF&flush=yes&wait=1000&read=6
This hyperlink will inform Video Server to send out binary format commands to COM1 with
“0x12, 0x34, 0x56” followed by “0xAB, 0xCD, 0xEF”. Each comma separates the commands by
200 milliseconds. “flush=yes” means the receive data buffer of COM port must be cleared before
read. Then read 6 bytes after waiting for 1000 milliseconds. The read data can be up to 128 bytes
and will return as ASCII coded hexadecimal value, e.g., 0x41, 0x42, 0x43 read from COM port
will show in returned homepage as 414243 instead of ABC.
Sending command to device attached to COM2
/cgi-bin/senddata.cgi?com=2&data=123456,,,ABCDEF
This hyperlink will inform Video Server to send out binary format commands to COM2 with
“0x12, 0x34, 0x56” followed by “0xAB, 0xCD, 0xEF” after waiting for 600 milliseconds of three
comma.