I am fairly new to Zoneminder. I have a freshly installed Ubuntu 9.04 with Zoneinder 1.24.1. I have 2 bt878 cards with 8 ports each and each card has chips so I have a total of 16 * 30fps each analog inputs.
I was able to get the video inputs working fine with a quick edit of modprob.conf. Now I am trying to configure PTZ on a PELCOD compatible Camera. I'm using a USB PL2303 Based optoisolated rs485 adapter. Its a EXPERT EX9531 adapter. I am able to control the PTZ functions on my windows PC using windows control software and the same usb adapter, so I know the wiring is ok. The camera PTZ is set for address 1.
My usb device when I plug and unplug the unit appears to be /dev/ttyUSB0. I have tried all the options in the web ui to get it working. I entered /dev/ttyUSB0 under the control tab-->control Device and 1 under device address... I'm not sure where to go from here. I have not found and rs485 Pelco setup guides.. I know its prolly something stupid but i'm stumped..... Is there something I need to do to enable pelco control?
Thanks,
Andrew
Ubuntu 9.04 Zoneminder 1.24.1 usb rs485 adapter with PTZ..
-
- Posts: 12
- Joined: Thu Jul 02, 2009 6:56 pm
-
- Posts: 12
- Joined: Thu Jul 02, 2009 6:56 pm
i can talk to it maually..
i now it nota driver issue because if I type: 'echo -e -n "\0377\0001\0000\0004\0034\0000\0041" > /dev/ttyUSB0' then the camera starts turning... The settings for the camera are 9600 8n1. What are the defaults for Zoneminder?
If I type:
stty -F /dev/ttyUSB0 i get:
speed 9600 baud; line = 0;
-brkint -imaxbel
think I'm going to try ALL the bauds rates on the camera... ofter taht i'm stumped.. fyi camera supports up to 9600 only..
If I type:
stty -F /dev/ttyUSB0 i get:
speed 9600 baud; line = 0;
-brkint -imaxbel
think I'm going to try ALL the bauds rates on the camera... ofter taht i'm stumped.. fyi camera supports up to 9600 only..
-
- Posts: 12
- Joined: Thu Jul 02, 2009 6:56 pm
/tmp/zmcontrol.log
Looks like I'm missing a file or something??????
07/02/09 16:31:25.060076 zmcontrol[4009].INF [Starting control server 1/PelcoD]
07/02/09 16:31:25.065492 zmcontrol[4010].INF [Control server 1/PelcoD starting at 09/07/02 16:31:25]
07/02/09 16:31:35.144128 zmcontrol[4009].FAT [Can't connect: No such file or directory]
07/02/2009 16:39:15.723712 zmcontrol[4276].INF [Starting control server 1/PelcoD]
07/02/2009 16:39:15.729340 zmcontrol[4277].INF [Control server 1/PelcoD starting at 09/07/02 16:39:15]
07/02/2009 16:39:16.823807 zmcontrol[4277].FAT [Can't access move_stop member of object of class ZoneMinder::Control::PelcoD]
07/02/2009 16:39:34.580624 zmcontrol[4278].INF [Starting control server 1/PelcoD]
07/02/2009 16:39:34.586426 zmcontrol[4279].INF [Control server 1/PelcoD starting at 09/07/02 16:39:34]
07/02/2009 16:40:05.046727 zmcontrol[4279].FAT [Can't access preset_goto1 member of object of class ZoneMinder::Control::PelcoD]
07/02/09 16:54:01.447390 zmcontrol[4687].INF [Starting control server 1/PelcoD]
07/02/09 16:54:01.452852 zmcontrol[4688].INF [Control server 1/PelcoD starting at 09/07/02 16:54:01]
07/02/09 16:54:11.533922 zmcontrol[4687].FAT [Can't connect: Permission denied]
07/02/09 16:31:25.060076 zmcontrol[4009].INF [Starting control server 1/PelcoD]
07/02/09 16:31:25.065492 zmcontrol[4010].INF [Control server 1/PelcoD starting at 09/07/02 16:31:25]
07/02/09 16:31:35.144128 zmcontrol[4009].FAT [Can't connect: No such file or directory]
07/02/2009 16:39:15.723712 zmcontrol[4276].INF [Starting control server 1/PelcoD]
07/02/2009 16:39:15.729340 zmcontrol[4277].INF [Control server 1/PelcoD starting at 09/07/02 16:39:15]
07/02/2009 16:39:16.823807 zmcontrol[4277].FAT [Can't access move_stop member of object of class ZoneMinder::Control::PelcoD]
07/02/2009 16:39:34.580624 zmcontrol[4278].INF [Starting control server 1/PelcoD]
07/02/2009 16:39:34.586426 zmcontrol[4279].INF [Control server 1/PelcoD starting at 09/07/02 16:39:34]
07/02/2009 16:40:05.046727 zmcontrol[4279].FAT [Can't access preset_goto1 member of object of class ZoneMinder::Control::PelcoD]
07/02/09 16:54:01.447390 zmcontrol[4687].INF [Starting control server 1/PelcoD]
07/02/09 16:54:01.452852 zmcontrol[4688].INF [Control server 1/PelcoD starting at 09/07/02 16:54:01]
07/02/09 16:54:11.533922 zmcontrol[4687].FAT [Can't connect: Permission denied]
I've notices that it appears that ZM is not sending the same commands it once did to the control modules. Also, there probably isn't a method of that name in the PelcoD module. I've been working on fixing the Visca.pm module that has similar issues, but I still need to figure out what to do about the ZM web interface not sending the correct parameters.
MRD
-
- Posts: 12
- Joined: Thu Jul 02, 2009 6:56 pm
-
- Posts: 12
- Joined: Thu Jul 02, 2009 6:56 pm
No Go
chmod did not change anything. Further more I installed 1.24.2 and now the PTZ option is GONE. What is going on? Is it being phased out?
-Andrew
-Andrew
-
- Posts: 12
- Joined: Thu Jul 02, 2009 6:56 pm
Resolved: Re: No Go
I did a full reinstall from the source following the instructions on the Wiki. After setting the port speed correctly it started working.niamareisser wrote:chmod did not change anything. Further more I installed 1.24.2 and now the PTZ option is GONE. What is going on? Is it being phased out?
-Andrew
The original installation was a precompiled ".deb" package. I'm assuming there was a file permissions issue with the package and my machine. Almost immediately after finishing the installation and determining that the default PelcoD baud rate is 2400 8n1 for zonealarm. It started moving on command and with further tweaking it now works great.
Only thing left to do is figure out how to make it auto purge recordings as it fills up.......
Re: Resolved: Re: No Go
Sorry you had such a rough time. Do you recall which package from Ubuntu 9.04 so that Peter if he has a chance can look into it?niamareisser wrote:I did a full reinstall from the source following the instructions on the Wiki. After setting the port speed correctly it started working.niamareisser wrote:chmod did not change anything. Further more I installed 1.24.2 and now the PTZ option is GONE. What is going on? Is it being phased out?
-Andrew
The original installation was a precompiled ".deb" package. I'm assuming there was a file permissions issue with the package and my machine. Almost immediately after finishing the installation and determining that the default PelcoD baud rate is 2400 8n1 for zonealarm. It started moving on command and with further tweaking it now works great.
Only thing left to do is figure out how to make it auto purge recordings as it fills up.......