PelcoD controlling issues

Post here to ask any questions about hardware suitability, configuration in ZoneMinder, or experiences. If you just want to know if something works with ZoneMinder or not, please check the Hardware Compatibility sections in the forum, and the Wiki first. Also search this topic as well.
Post Reply
moep
Posts: 5
Joined: Wed Nov 19, 2008 3:47 pm

PelcoD controlling issues

Post by moep »

Hi,

I recently set up zoneminder 1.23.3 with a PV-183 card on a HP ML150.
The OS is Ubuntu 8.10 intrepid, / is on two 250GB drives in raid 1 and /var is on a 3TB raid 5 array.

Two of the cameras are Fastrax 142 Dome cameras. They are connected to COM1 via one of these RS-232/RS-485 converters. The cameras support both Pelco-P and Pelco-D and are set to ID 1 and 2.

So I’ve set up the controls like this:

Image

but had no luck controlling the cameras via commandline or webinterface.
here’s the /tmp/zmcontrol.log: (controlling via the web interface)

Code: Select all

11/19/08 17:09:53.882173 zmcontrol[8372].INF [Starting control server 25/PelcoD]
11/19/08 17:09:53.885200 zmcontrol[8373].INF [Control server 25/PelcoD starting at 08/11/19 17:09:53]
and that’s pretty much where it gets stuck.

I have to admit that I don’t even know where to start debugging this. Serial ports under Linux aren’t somethign that I’m really familiar with.
Is there a way to listen to /dev/ttyS0 to check if there’s even data transmitted across the serial port at all?

//edit:

A quick update, I’ve now tried the PelcoD scripts and they give me slightly more verbose error message:

Code: Select all

11/19/2008 18:21:16.548690 zmcontrol[6513].INF [Starting control server 25/PelcoP]
11/19/2008 18:21:16.551691 zmcontrol[6514].INF [Control server 25/PelcoP starting at 08/11/19 18:21:16]
11/19/2008 18:23:01.932785 zmcontrol[6724].INF [Starting control server 25/PelcoP]
11/19/2008 18:23:01.936048 zmcontrol[6725].INF [Control server 25/PelcoP starting at 08/11/19 18:23:01]
11/19/2008 18:23:11.936990 zmcontrol[6724].FAT [Can't connect: Connection refused]
11/19/2008 18:25:52.409363 zmcontrol[6807].INF [Starting control server 25/PelcoP]
11/19/2008 18:25:52.412701 zmcontrol[6808].INF [Control server 25/PelcoP starting at 08/11/19 18:25:52]
11/19/2008 18:25:58.258833 zmcontrol[6809].INF [Starting control server 25/PelcoP]
11/19/2008 18:25:58.262487 zmcontrol[6810].INF [Control server 25/PelcoP starting at 08/11/19 18:25:58]
11/19/2008 18:26:08.263329 zmcontrol[6809].FAT [Can't connect: Connection refused]
11/19/2008 18:29:04.313436 zmcontrol[6818].INF [Starting control server 25/PelcoP]
11/19/2008 18:29:04.367310 zmcontrol[6819].INF [Control server 25/PelcoP starting at 08/11/19 18:29:04]
11/19/2008 18:29:14.368140 zmcontrol[6818].FAT [Can't connect: Connection refused]
11/19/2008 18:30:30.268588 zmcontrol[6916].INF [Starting control server 25/PelcoP]
11/19/2008 18:30:30.305510 zmcontrol[6917].INF [Control server 25/PelcoP starting at 08/11/19 18:30:30]
11/19/2008 18:30:40.306327 zmcontrol[6916].FAT [Can't connect: Connection refused]
Although I still have no idea what connection was refused.
Last edited by moep on Thu Nov 20, 2008 9:49 am, edited 1 time in total.
moep
Posts: 5
Joined: Wed Nov 19, 2008 3:47 pm

Post by moep »

I guess I’m another step closer to having the PTZ work. Still not quite there though...
Could a smart person tell me what these error messages mean?

Code: Select all

11/19/2008 20:58:24.006296 zmcontrol[11300].INF [Starting control server 1/PelcoD]
11/19/2008 20:58:24.009711 zmcontrol[11301].INF [Control server 1/PelcoD starting at 08/11/19 20:58:24]
11/19/2008 20:58:25.016753 zmcontrol[11301].FAT [Can't access focus_auto member of object of class ZoneMinder::Control::PelcoD]
11/19/2008 20:58:33.958261 zmcontrol[11302].INF [Starting control server 2/PelcoD]
11/19/2008 20:58:33.961697 zmcontrol[11303].INF [Control server 2/PelcoD starting at 08/11/19 20:58:33]
11/19/2008 20:58:34.969233 zmcontrol[11303].FAT [Can't access focus_auto member of object of class ZoneMinder::Control::PelcoD]
I used this in an attempt to control the camera:

Code: Select all

sudo zmcontrol.pl --id=2 --speed=9600 --command=focus_auto
the same errors appear when using all other commands such as zoom_*, move_con_*, reset, sleep or wake.

Thanks.
User avatar
Normando
Posts: 219
Joined: Sun Aug 17, 2008 5:34 am
Location: Rosario - Argentina

Post by Normando »

If you look at PelcoD.pm module, you will see:

sub focusAuto

and not

sub focus_auto
Post Reply