Page 2 of 2
Re: DLink PTZ cam not recognizing PTZ clicks
Posted: Mon Sep 23, 2013 1:08 am
by UtahJarhead
No shame in that. My local big box only had the 5020L. I have a 2,000 sqft house. I don't exactly NEED the wifi extender.
Re: DLink PTZ cam not recognizing PTZ clicks
Posted: Tue Sep 24, 2013 1:17 am
by UtahJarhead
SOURCE CODE! Time to see if there's anything worthwhile:
http://tsd.dlink.com.tw/downloads2008detailgo.asp
Re: DLink PTZ cam not recognizing PTZ clicks
Posted: Fri Oct 04, 2013 4:50 am
by dvarapala
UtahJarhead wrote:I've determined through perl debugging that the error is coming from line 139 in zmcontrol.pl. If I look at the contents of $saddr, I get '#002'. I don't really know what I'm doing in perl, so that's where I'm at. ideas?
Code: Select all
137 socket( CLIENT, PF_UNIX, SOCK_STREAM, 0 ) or die( "Can't open socket: $!" );
138 my $attempts = 0;
139 while (!connect( CLIENT, $saddr ))
140 {
141 $attempts++;
142 Fatal( "Can't connect: $!" ) if ($attempts > MAX_CONNECT_DELAY);
143 sleep(1);
144 }
I am having this exact same error with my new DCS-5010L. I've read through this entire thread, but none of the suggestions have worked for me.
In my case, the value of $saddr is "#001" which doesn't look valid at all. Could someone explain what the control script is trying to connect to, and what a correctly-formed address should look like?
Re: DLink PTZ cam not recognizing PTZ clicks
Posted: Mon Oct 07, 2013 5:03 pm
by TheKorn
dvarapala wrote:I am having this exact same error with my new DCS-5010L. I've read through this entire thread, but none of the suggestions have worked for me.
In my case, the value of $saddr is "#001" which doesn't look valid at all. Could someone explain what the control script is trying to connect to, and what a correctly-formed address should look like?
Well I can't answer your direct question, but I have good overall news! (...kind-of...)
I fired up my test ZM VM (say that three times fast) after reading your reply to test the directions in the wiki. (I test out all my ZM changes in the VM first before rolling them to my "real" ZM box.) And good news!...
...it didn't work for me, either.
Though since I know it
can work (since my real ZM box is happy as a clam controlling my 5010L) I went digging to find the problem using diff between UTJH's 5020 control script and the original TVIP400 script that it was based on.
Turns out UTJH's script hit what looks to be a snafu (deliberately stopping short of calling it a bug) in ZM. The only real difference between them was the protocol name; in the original it's TVIP400 and in UTJH's version it was Dlink-DCS5020L. On a whim, I changed the protocol name to just DCS5020L, and everything started working!
SOOoooo I updated both his script and the instructions on the wiki. Give it another whirl, I think it'll work this time around.
Re: DLink PTZ cam not recognizing PTZ clicks
Posted: Tue Oct 08, 2013 6:54 pm
by dvarapala
Nice work!
So what was this "snafu?" No hyphens allowed in protocol names?
Re: DLink PTZ cam not recognizing PTZ clicks
Posted: Wed Oct 09, 2013 12:12 pm
by TheKorn
dvarapala wrote:So what was this "snafu?" No hyphens allowed in protocol names?
Not sure if ZM was reacting to the name or the length of it. Don't really have any perl debugging tools so not sure how to diagnose further. Just got lucky, really!
Is yours working now?
Re: DLink PTZ cam not recognizing PTZ clicks
Posted: Wed Oct 09, 2013 7:02 pm
by dvarapala
Working fine now, thank you for your help!
Re: DLink PTZ cam not recognizing PTZ clicks
Posted: Mon Nov 18, 2013 9:22 pm
by UtahJarhead
TheKorn, can I get a copy of your script? I'm digging back into why my PTZ functioning stopped.
Re: DLink PTZ cam not recognizing PTZ clicks
Posted: Tue Nov 19, 2013 12:17 am
by UtahJarhead
Ignore that request. I screwed up my script and couldn't fathom how I'd managed it. I'm good to go, now.
Re: DLink PTZ cam not recognizing PTZ clicks
Posted: Tue Nov 19, 2013 1:47 am
by UtahJarhead
Modified the script to allow for IR On/Off utilizing the Wake/Sleep functions. It looks a little cludgy, but it works.
Re: DLink PTZ cam not recognizing PTZ clicks
Posted: Tue Nov 19, 2013 8:01 pm
by TheKorn
Awesome, I'll update and give it a whirl.