Page 1 of 1

zm 1.22.2 PTZ control

Posted: Sun May 28, 2006 7:59 pm
by simong
Hi,

I'm using the Pelco D protocol on my camera and noticed some strange problems controlling it with zoneminder.

When not using the autostop feature I couldn't control it at all. After some serial port sniffing I discovered that it was a buffering problem.

The FIX ...

$serial_port->write_drain; # POSIX alternative to Win32 write_done(1)
# set when software is finished transmitting

Insert the above after the TX part in sub sendCmd. In zmcontrol-pelco-d.pl this was line 167.

Hope that helps others.

Posted: Tue May 30, 2006 8:32 am
by zoneminder
Thanks for the suggestion, I will give that a try here as well.

I have completely revamped the scripts that control the PTZ functions to be a bit quicker and easier to use as well as more consistent and robust. This is nearly finished now and will probably be in the next release. Your fix will probably still apply however.