User`s manual
VPort 2141 Video Encoder User’s Manual Advanced Applications
5-8
URL Commands for DI/DO & Camera’s Actions Setting
Querying the status of digital inputs
/cgi-bin/getdi.cgi
The VPort 2141 will return the status of four digital inputs in one line.
Driving digital outputs
/cgi-bin/setdo.cgi?do1=<state>
<number> 1, 2, 3, 4 for DO1, DO2, DO3 and DO4
<state>: C, O denoting Normal Close or Normal Open respectively.
Moving motorized cameras in PTZ directions
/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=<n>&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
The VPort 2141 provides 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 the user side to the VPort 2141. The
third-party device connected to the serial port of the VPort 2141 will receive the same command
sent by the originator. The user only needs to attach the command in ASCII format after the special
URL. The VPort 2141 will parse the commands and translate into binary code to send out.