I am trying to setup an Axis 2130R camera with the latest ZM 1.21.0 to use it with the PTZ functions. Up to now I do see an image from it and I am capable or making it work like a non PTZ network camera.
Starting with the Control Capabilities I beleive this to be very straight forward an understandable so before venturing into all the possible functions of the camera I have selected the basic ones just as the KC-HCM10, just to move up, down, right and left as well as eight preset positions, home and set.
Under the Control Tab of the monitor settings Controllable is checked, Control Type has Axis2130R selected (created on the Control Capabilites window when Edit is clicked), Control Device is to be left blank (I think) and Control Address is yet not so clear to me. Here I am guessing this format is to be used:
Code: Select all
<user>:<pass>@<camera address>:<port>/axis-cgi/com/
Since getting it to move is my first priority I shall leave Track Motion and the rest alone for now and to be explored later.
On the appropiate directory I copied zmcontrol-kx-hcm10.pl and renamed it to: zmcontrol-axis-2130r.pl and of course made it clear on the Control Capabilites section to make it point into this file.
Looking for the common lines in zmcontrol-kx-hcm10.pl between the KC-HCM10 and the Axis 2130R I do know the following:
The format to send commands for the camera to move is:
Code: Select all
KC-HCM10:
http://cameraIPaddress/CGIcommand?Option1=Value&Option2=Value
Axis 2130R
http://cameraIPaddress/axis-cgi/com/ptz.cgi?<parameter>=<value>[&<parameter>=<value>... ]
Code: Select all
nphControlCamera?Direction=TiltUp
nphControlCamera?Direction=TiltDown
nphControlCamera?Direction=PanLeft
nphControlCamera?Direction=PanRight
... and where the respective commands for the Axis 2130R are:
Code: Select all
ptz.cgi?camera=1&move=up
ptz.cgi?camera=1&move=down
ptz.cgi?camera=1&move=left
ptz.cgi?camera=1&move=right
Code: Select all
Focus auto:
nphControlCamera?Direction=FocusAuto
ptz.cgi?camera=1&autofocus=on
Preset Home is:
nphControlCamera?Direction=HomePosition
ptz.cgi?camera=1&move=home
Regards!