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

Support and queries relating to all previous versions of ZoneMinder
Locked
atomist
Posts: 8
Joined: Mon Feb 20, 2006 6:35 am

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

Post 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]
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

I'm guessing that you are missing the serial perl module.

Regards,
Corey
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post 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.
Phil
atomist
Posts: 8
Joined: Mon Feb 20, 2006 6:35 am

Post 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.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

It will be the control device you supplied in the control capabilities, most likely /dev/ttyS0
Phil
atomist
Posts: 8
Joined: Mon Feb 20, 2006 6:35 am

Post 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.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Good. Do you have a link to the camera as people are often asking where to get that kind of equipment.
Phil
Locked