Remote Control PTZ Camera with HTTP Request by PTZ Controller v3

PTZ Controller v3 supports build-in HTTP CGI server.  It can control PTZ cameras remotely through HTTP request.

How to control PTZ Camera with HTTP request by PTZ Controller v3.

1.  Download and install PTZ Controller v3 on your computer.

2. Connect PTZ Camera with your computer through serial port or USB

3. Run PTZ Controller v3, and make sure to select the right setting for camera. (address, protocol, Com port, baud rate)

4. Please make sure you can control your PTZ camera locally with mouse or keyboard shortcuts.

PTZ Controller 3.0 mini

5. Click menu Setting –> Options to select “Enable PTZ Controller Server” and set Port Number or keep it default as 8080.

Enable PTZ Controller Server

6.  To test if PTZ Controller server is running, open the internet browser, and type the following line, replace the port number if the port is set other than 8080.

http://localhost:8080

A webpage should show as below. That means PTZ Controller server is running. Click the button on the webpage will send HTTP request to control PTZ Camera.

PTZ Controller Server is running!

Make sure the port number is allow to access in Windows firewall setting. Please visit Microsoft website to get more information about firewall setup.

7. PTZ Controller HTTP request format

http://IPaddress:port/command

IPaddress :  it’s the IP address of the computer that running PTZ Controller.

Port:  it’s the port number the server listen. It can be reset on Options panel shown above.

There are 6 HTTP request commands for Pan, Tilt and Zoom without parameters

http://IPaddress:port/PanLeft

http://IPaddress:port/PanRight

http://IPaddress:port/TiltUp

http://IPaddress:port/TiltDown

http://IPaddress:port/ZoomIn

http://IPaddress:port/ZoomOut

Stop command:

http://IPaddress:port/Stop

Commands for Pan, Tilt and Zoom with parameters

http://IPaddress:port/PtzRequest?Pan=10&Tilt=20&Zoom=10

Pan’s value: -63 to 63

Tilt’s value: -63 to 63

Zoom’s value: -63 to 63

It can be used with pan tilt only or zoom only

http://IPaddress:port/PtzRequest?Pan=10&Tilt=20

http://IPaddress:port/PtzRequest?Zoom=10

To check the IP address of your computer, click Windows Start,  run cmd.exe to open the console window, type command “ipconfig”, press Enter to get the computer’s IP address.

ipconfig

For example:

The HTTP request commands for Pan, tilt and zoom without parameters will be:

http://192.168.1.7:8080/PanLeft

http://192.168.1.7:8080/PanRight

http://192.168.1.7:8080/TiltUp

http://192.168.1.7:8080/TiltDown

http://192.168.1.7:8080/ZoomIn

http://192.168.1.7:8080/ZoomOut

Stop command need to be sent after sending commands above.

http://192.168.1.7:8080/stop

Commands for Pan, tilt and zoom with parameters will be:

http://192.168.1.7:8080/PtzRequest?Pan=10&Tilt=20&Zoom=10

http://192.168.1.7:8080/PtzRequest?Pan=10&Tilt=20

http://192.168.1.7:8080/PtzRequest?Zoom=10

The latest PTZ Controller v3 has the command buttons built in the webpage. Click the button to control Pan, Tilt and Zoom directly.

PTZ Controller - HTTP Request

8.  HTTP request for Custom Functions

There are 12 Custom Function buttons available in PTZ controller 3.0. Each custom function can be  setup a HTTP request command. The custom item function will be called when the specific HTTP request is called.

PTZ Controller Custom Function

SNAGHTML2e69d59a

For example:

http://192.168.1.7:8080/custom1

Above HTTP request will do Set Preset 1.

Note:

All commands that used for Pan, Tilt, Zoom and Stop cannot be override in custom functions.

If there are two same HTTP request commands for custom functions, the first one matched will be called.

 

Back to PTZ Controller v3 homepage

This entry was posted in PTZ Controller and tagged , , , . Bookmark the permalink.