Download
Solutions
FAQ
Glossary
RMA

FAQ  
 
 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
  1. 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.
  2. Just put the ptz command as the parameter for set_ptzcmd_signal().
  3. For example,
    set_ptzcmd_signal(“v1_TU_02”)

The PTZ command work flow
  1. The PTZ translator contains a PTZ command table i.e. ptz.ini in which all the used PTZ commands are defined.
  2. 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.
  3. 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.
  1. 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
  2. Send PTZ command,
    /cgi/ptz?camid=&cmd=
    example, http://211.20.85.205/cgi/ptz?camid=1&cmd=v1_PR_03
  3. 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.