How to customize PTZ control
web page with PTZ editor interface ?
The Area which could be customized
This form is generated by JavaScript include-file which allows uses to customize the web user interface by themselves
The customized UI working flow
The PTZ command working flow
The ptz.ini File Structure
The PTZ editor CGI command
We have encapsulated the serial CGI command to a JavaScript function as set_ptzcmd_signal(). To use this function, you have to include ptz_fn.js in HTML first.
Just put the ptz command as the parameter for set_ptzcmd_signal().
For example,
set_ptzcmd_signal(“v1_TU_02”)
The PTZ command work flow
The PTZ translator contains a PTZ command table i.e. ptz.ini in which all the used PTZ commands are defined.
When the HTTP Server receive a CGI function request of sending the “$v1_TD_01” command to a PTZ device for controlling the Camera 1 to Tilt Down with speed 1, it will pass this message to the PTZ translator.
The PTZ translator search the given command in the ptz.ini table to get the ASCII code corresponding to this command. If found the command, the PTZ translator send the ASCII single to the UART to control PTZ device.
The PTZ CGI command The PIXORD NVS provide the following CGI functions to perform the PTZ serial communication.
Set PTZ model,
/cgi/setvideo?save=&VideoID=&ptz_model=&retpage=
example, http://61.220.235.172/cgi/setvideo?save=1&VideoID=1&ptz_model=1
Send PTZ command,
/cgi/ptz?camid=&cmd=
example, http://211.20.85.205/cgi/ptz?camid=1&cmd=v1_PR_03
Send Preset Command,
/cgi/preset?camid=&set_presetname=&retpage=
example, http://211.20.85.205/cgi/preset?camid=1&set_presetname=door
Copyright® 2007, PiXORD Corporation. All rights reserved.