DCS-6620 Control Script help please

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
deadsoulz
Posts: 12
Joined: Tue Jan 20, 2009 6:55 pm

DCS-6620 Control Script help please

Post by deadsoulz »

I am running the 1.23.3 Zoneminder and I can get video to stream from this camera just fine to ZoneMinder, but I am not able to get the script found here on the wiki to work. I have tried copying it to the /usr/local/bin and specifying it as the path, also tried caopying it to the perl5 directorty as a .pm file with no luck. Anyone got this wroking with 1.23.3?
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Have you made sure that the permissions are set to executable, and have you created the definitions in the database for the script?
deadsoulz
Posts: 12
Joined: Tue Jan 20, 2009 6:55 pm

Post by deadsoulz »

cordel wrote:Have you made sure that the permissions are set to executable, and have you created the definitions in the database for the script?
I set the script to chmod 644 I have also tried 755. I am not sure what you mean by creating the defintitions int he database for the script? I did in the controls section of ZM set the move,pan, zoom, paramters.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

deadsoulz wrote: I did in the controls section of ZM set the move,pan, zoom, paramters.
That's exactly what I meant. Any errors in the logs?

It does have to be placed with the other ZM control perl modules by the way.
deadsoulz
Posts: 12
Joined: Tue Jan 20, 2009 6:55 pm

Post by deadsoulz »

Okay I copied DCS-6620g.pm to /usr/lib/per5/site_perl/5.8.8/Zoneminder/Control (I am running Centos 5.2) I specified the protocol as DCS-6620g the permissions is the same as the other .pm files so that looks okay. I looked at /var/log/messages and /tmp/zm_debug.log.xxxxx and there isn't anything useful there. I do get Invalid Jeg Fiel Structure for a second after I push a control button.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

What happens if you set debug to 1 in DCS-6620g.pm?
deadsoulz
Posts: 12
Joined: Tue Jan 20, 2009 6:55 pm

Post by deadsoulz »

cordel wrote:What happens if you set debug to 1 in DCS-6620g.pm?
Didn't seem to change anything, is there a different log file I should be looking at? Again, I appreciate all your help.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Try these for inspiration, as I'm heading off to work. If those don't help then post the script here and I'll have a peek when I get back.

http://www.zoneminder.com/forums/viewtopic.php?t=12916
http://www.zoneminder.com/forums/viewtopic.php?t=12863
deadsoulz
Posts: 12
Joined: Tue Jan 20, 2009 6:55 pm

Latest error message after downloading the Load Perl Module.

Post by deadsoulz »

INF [Starting control server 5/zmcontrol-dcs6620g.pl]
Feb 3 13:11:30 cameras zmcontrol[18411]: INF [Control server 5/zmcontrol-dcs6620g.pl starting at 09/02/03 13:11:30]
Feb 3 13:11:30 cameras Can't locate ZoneMinder::Control::zmcontrol-dcs6620g.pl in @INC (@INC contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.7/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.6/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.7/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.6/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8) at /usr/lib/perl5/vendor_perl/5.8.8/Module/Load.pm line 21.
Feb 3 13:11:39 cameras zmwatch[12810]: INF [Restarting capture daemon for DCS-6620, time since last capture 10 secon
deadsoulz
Posts: 12
Joined: Tue Jan 20, 2009 6:55 pm

Post by deadsoulz »

I am just using the script grabbed from the wiki

www.condrau.com/download/zmcontrol-dcs6620g.pl
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Thats not a perl module, it's a perl script for <1>=1.23.0.

I think I converted this to a module some time last year for some one and put it up in the downloads section of my web site.
deadsoulz
Posts: 12
Joined: Tue Jan 20, 2009 6:55 pm

Post by deadsoulz »

Okay I grabbed the .pm from your webbsite, now I get this.

Feb 5 08:01:06 cameras zmc_m6[26464]: INF [Debug Level = 0, Debug Log = <none>]
Feb 5 08:01:06 cameras zmc_m6[26464]: INF [New Debug Level = 1, New Debug Log = /tmp/zm_debug.log.26464]
Feb 5 08:01:06 cameras zmc_m6[26464]: INF [Starting Capture]
monitor 0]
Feb 5 08:01:06 cameras zmdc[26334]: ERR ['zmc -m 6' exited abnormally, exit status 255]
Feb 5 08:01:08 cameras zmcontrol[26149]: FAT [Can't access zoomConWide member of object of class ZoneMinder::Control::DCS6620G]
Feb 5 08:01:08 cameras Can't access zoomConWide member of object of class ZoneMinder::Control::DCS6620G at /usr/lib/perl5/site_perl/5.8.8/ZoneMinder/Debug.pm line 349 ZoneMinder::Debug::Fatal('Can\'t access zoomConWide member of object of class ZoneMinde...') called at /usr/lib/perl5/site_perl/5.8.8/ZoneMinder/Control/DCS6620G.pm line 74 ZoneMinder::Control::DCS6620G::AUTOLOAD('ZoneMinder::Control::DCS6620G=HASH(0x1024f8f0)', 'HASH(0xff21de0)') called at /usr/local/bin/zmcontrol.pl line 204
Feb 5 08:01:08 cameras zmu[26509]: INF [New Debug Level = 1, New Debug Log = /tmp/zm_debug.log.26509]
Feb 5 08:01:13 cameras zmu[26558]: INF [New Debug Level = 1, New Debug Log = /tmp/zm_debug.log.26558]
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

The script does not have defined continuous zoom so uncheck it in your control script parameters.
deadsoulz
Posts: 12
Joined: Tue Jan 20, 2009 6:55 pm

Post by deadsoulz »

Eliminating them one at a time. Thanks for your help.

RR ['zmc -m 5' exited abnormally, exit status 255]
Feb 12 08:16:59 cameras zmcontrol[1015]: FAT [Can't access Wide member of object of class ZoneMinder::Control::DCS6620G]
Feb 12 08:16:59 cameras Can't access Wide member of object of class ZoneMinder::Control::DCS6620G at /usr/lib/perl5/site_perl/5.8.8/ZoneMinder/Debug.pm line 349 ZoneMinder::Debug::Fatal('Can\'t access Wide member of object of class ZoneMinder::Cont...') called at /usr/lib/perl5/site_perl/5.8.8/ZoneMinder/Control/DCS6620G.pm line 74 ZoneMinder::Control::DCS6620G::AUTOLOAD('ZoneMinder::Control::DCS6620G=HASH(0x1b5b58f0)', 'HASH(0x1b816620)') called at /usr/local/bin/zmcontrol.pl line 204
Feb 12 08:17:08 cameras zmdc[1157]: INF [Starting pending process, zmc -m 5]
Feb 12 08:17:08 cameras zmdc[1157]: INF ['zmc -m 5' starting at 09/02/12 08:17:08, pid = 1310]
Feb 12 08:17:08 cameras zmdc[1310]: INF ['zmc -m 5' started at 09/02/12 08:17:08]
Feb 12 08:17:08 cameras zmc_m5[1310]: INF [Debug Level = 0, Debug Log = <none>]
Feb 12 08:17:08 cameras zmc_m5[1310]: INF [Starting Capture]
Feb 12 08:17:22 cameras zmc_m5[1310]: ERR [Invalid JPEG file structure: two SOI markers]
Feb 12 08:17:22 cameras zmc_m5[1310]: ERR [Unable to decode jpeg]
Feb 12 08:17:22 cameras zmc_m5[1310]: ERR [Failed to post-capture monitor 0]
Feb 12 08:17:22 cameras zmdc[1157]: ERR ['zmc -m 5' exited abnormally, exit status 255]
newvisionantenna
Posts: 381
Joined: Sat Jan 17, 2009 7:49 pm
Location: Germany

Post by newvisionantenna »

Anyone get this working yet with the newer release of Zoneminder. I've pieced together differnet posts to try and get the correct pm file and settings. It's still not working and I can't seem to find cordel's website to see if there is any difference. I was trying to help someone get this camera setup for PTZ.

If someone could point me in the right direction of cordel's version I could compare what I have no to it.
Post Reply