Page 1 of 1

Can't call method "baudrate" on an undefined value

Posted: Wed Mar 15, 2006 2:59 pm
by atomist
Hey

I am following error everytime I try to execute a PTZ control:

Can't call method "baudrate" on an undefined value at /usr/local/bin/zmcontrol-pelco-d.pl line 105.

This is found in the /var/log/httpd/error_log

No of the PTZ controls are working. I was able to move the camera using a command line C compiled app, but for some reason not zoneminder. The protocol is Peldo-D. Using 2400/8/n/1. I have the RS-232 to RS-485 adapter.

Any ideas?

Thanks.[/code]

Posted: Wed Mar 15, 2006 4:39 pm
by cordel
I'm guessing that you are missing the serial perl module.

Regards,
Corey

Posted: Wed Mar 15, 2006 11:17 pm
by zoneminder
This can be caused by insufficient priveleges on the serial file. V 1.22.1 will automatically set tthem appropriately but I think 1.22.0 does not so you will have to do it manually after any reboots.

Posted: Thu Mar 16, 2006 2:49 pm
by atomist
perl-Device-Serial is installed.

Now what serial file am I looking for? What should be the proper permissions?

I am running ZM on a CentOS 4.2 Server.

Posted: Thu Mar 16, 2006 11:17 pm
by zoneminder
It will be the control device you supplied in the control capabilities, most likely /dev/ttyS0

Posted: Fri Mar 17, 2006 1:33 am
by atomist
Nice! That worked.

Got the cam working. It's actually working really good for a $450 PTZ cam using the pelco protocol.

Thanks again.

Posted: Fri Mar 17, 2006 2:47 pm
by zoneminder
Good. Do you have a link to the camera as people are often asking where to get that kind of equipment.