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.
zm 1.22.2 PTZ control
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
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.
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.
Phil