Page 1 of 1

PTZ Issues with 1.24.4

Posted: Tue Jun 07, 2011 1:43 am
by lspiehler
I just upgraded to a fresh install of version 1.24.4 on debian lenny. Everything seems to be working fine except PTZ control. It doesn't work on the web interface or directly from zmcontrol.pl, and neither give any errors. I know I have permissions on the port, and I know the baud rate is correct. It uses the pelco-d protocol. I've even tried a PCI serial port. All of them show up fine in the dmesg output. I still have my old install on the other machine (version 1.24.2) and its PTZ control still works fine. I have noticed one difference. On the old install, when I press one of the PTZ buttons in the web interface I can see the "control server" start in the logs.

Code: Select all

06/06/11 20:32:24.709021 zmcontrol[16968].INF [Starting control server 1/PelcoD]
06/06/11 20:32:24.713732 zmcontrol[16970].INF [Control server 1/PelcoD starting at 11/06/06 20:32:24]
It only starts the first time I press the button and it continues to work as I press other buttons, but doesn't need to be "started" again unless there is a significant amount of idle time. However, on the new install, the logs show the "control server" starting each time I press a PTZ control button.

Code: Select all

06/06/11 20:07:40.929061 zmcontrol[4076].INF [Starting control server 1/PelcoD]
06/06/11 20:07:40.931775 zmcontrol[4078].INF [Control server 1/PelcoD starting at 11/06/06 20:07:40]
06/06/11 20:07:43.382755 zmcontrol[4094].INF [Starting control server 1/PelcoD]
06/06/11 20:07:43.385023 zmcontrol[4096].INF [Control server 1/PelcoD starting at 11/06/06 20:07:43]
06/06/11 20:36:45.612989 zmcontrol[5271].INF [Starting control server 1/PelcoD]
06/06/11 20:36:45.615290 zmcontrol[5272].INF [Control server 1/PelcoD starting at 11/06/06 20:36:45]
06/06/11 20:36:49.226496 zmcontrol[5273].INF [Starting control server 1/PelcoD]
06/06/11 20:36:49.228783 zmcontrol[5274].INF [Control server 1/PelcoD starting at 11/06/06 20:36:49]
This is the only indication I get of a problem, and I cannot find any differences in the installs other than the version. Any help is greatly appreciated.

Thank you,
Lyas

Re: PTZ Issues with 1.24.4

Posted: Tue Jun 07, 2011 1:58 am
by lspiehler
I just copied the old zmcontrol.pl script to the new install. It works for one movement, when the control server initially starts, but I have to kill the process to get it to work again. Thanks for any help.

Re: PTZ Issues with 1.24.4

Posted: Tue Jun 07, 2011 1:36 pm
by lspiehler
After more testing, I've got more details. In the previous post I stated that with the old script in place, I could get a single successful movement command. If the control server is already running, I cannot send another successful control command from the web interface without first killing the process.

Code: Select all

ps aux | grep zmcontrol.pl
www-data 27595  0.0  0.2  12224  8220 ?        S    08:22   0:00 /usr/local/bin/zmcontrol.pl --id 1
kill -9 27595
However, I can manually use the old zmcontrol.pl script to send additional commands without having to kill the process.

Code: Select all

/usr/local/bin/zmcontrol.pl --preset=1 --command=presetGoto --id=1
I hope I've provided enough information. If you need anything else, please, let me know.

Thank you,
Lyas

Re: PTZ Issues with 1.24.4

Posted: Tue Jun 07, 2011 9:00 pm
by DrBrain
Just to add, same issue here with 1.24.4 and a Foscam FI8918W (using the updated control script from the Wiki).

Re: PTZ Issues with 1.24.4

Posted: Mon Jul 04, 2011 10:47 pm
by lspiehler
SOLVED!!!! After much research...

I was able to resolve my issues with the updated zmcontrol.pl script by installing JSON::ANY in CPAN as seen here: http://www.zoneminder.com/forums/viewto ... son#p70152

I was able to fix the movement only working after first control command by upgrading to php 5.3, which I discovered here: http://www.zoneminder.com/forums/viewto ... ine#p69911

Upon updating to php 5.3, another issue arose which I fixed by changing the short_open_tag in php.ini to On as seen here: http://www.zoneminder.com/forums/viewto ... +On#p68446

Thank you zoneminder developers and forums!!!! I'm so excited to be fully functional again and the new eyeZM app is awesome!!!!