Cisco PVC300 Control Script

If you've made a patch to quick fix a bug or to add a new feature not yet in the main tree then post it here so others can try it out.
Post Reply
arymar
Posts: 13
Joined: Tue Dec 14, 2010 3:53 pm
Location: France

Cisco PVC300 Control Script

Post by arymar »

Hi all, I just finished updating the control Script to support a Cisco PVC300 PTZ camera.
The file is here attached. Here are the instructions to enable it (also available within the PVC300.pm file):

#This module contains the implementation of the Cisco PVC300 API camera
#control protocol
#
# LIMITATIONS: The camera can do a bit more than what Zoneminder is ready from a
# Camera Control Icons perspective. Extra graphical controls could provide a full camera
# Control capacity. Anyhow, I leave it up to whom wants to invest more time on
# this.
# I anyhow embeded 2 functions:
# - using the "move_upRight/move_upLeft" to give access
# to the "PAN" feature of this PVC300. When started, it auto pans going right to the
# Camera limit and left to the camera limit and back to original position.
# - using the "move_downRight/move_downLeft" to give acess to the PATROL feature
# of this PVC300. When started, camera moves to the defined and sequenced presets.
# This sequence can only be setup by accessing the Web camera interface within the
# Audio/Video/Camera Control submenu. Set the "Selected Locations".
#
# SETTING UP the Camera in Zoneminder interface:
# 1/ Copy this PVC300.pm file in your Zoneminder installation in:
# /usr/share/perl5/Zoneminer/Control/ (file is owned by root:root)
# 2/ In ZM options/System: Set OPT_CONTROL
# 3/ IN Camera Control Tab: Set Controllable, Set Control Type to PVC300,
# Control Device to PVC300, Control Address to user:pwd@cameraIpAddress
# eg: operator:operator@192.168.1.223 (user & Password are set with
# "operator" capabilities in the Web Configuration of the Camera).
# 5/ Edit the Control Type PVC300 from this contril Tab. If PVC300 do not
# appear (which should be the case), then "Add New Control":
# - Name it PVC300
# - Type: Remote
# - Protocol: PVC300
# IN MOVE TAB
# - Set Can Move
# - Set Can Move Diagonally
# - Set Move Absolute
# - Set Move Relative
# - Set Can Move Continuous
# IN PAN TAB
# - Set Can Pan
# IN TILT TAB
# - Set Can Tilt
# IN ZOOM TAB
# - Set Can Zoom
# IN FOCUS, WHITE, IRIS TABS -> leavce blank
# IN PRESETS TAB
# - Set Has Presets
# - Set Num Presets to 9
# - Set Has Home Preset (You will need to set the Home preset using
# the Web setup interface of the camera, no way to set it from zm.
# - Set Can Set Presets
# 6/ Save the control view, Close the Control Capabilities window,Save the
# monitor setup view
# 7/ Restart zoneminder
# 8/ Open the monitor View, go to Control, test the camera movements, Set
# all your presets.
# 9/ Go to the camera web interface, set the Home Preset, Set the Selected
# Location to be able to Patrol.
#10/ Back to monitor view in zm, test the PAN feature using diagonal upRight
# or upLeft button, test the PATROL using bottomRight or bottomLeft button.
#11/ Enjoy.
Attachments
PVC300.rar
(3.5 KiB) Downloaded 295 times
arymar
Posts: 13
Joined: Tue Dec 14, 2010 3:53 pm
Location: France

Re: Cisco PVC300 Control Script

Post by arymar »

Just one additionnal setup required to Zoom In/Zoom Out perfectly:
Edit the Control Capabilities for PVC300 and set in Zoom Tab:
- Can Zoom
- Can Zoom Relative
- Max Zoom Range 999
- Min Zoom Step 1
- Max Zoom Step 2500
Save all and all should be ok.
Post Reply