zm 1.22.2 PTZ control
Posted: Sun May 28, 2006 7:59 pm
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.
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.