Foscam FI8910W Control

Forum for questions and support relating to the 1.25.x releases only.
Locked
knebb
Posts: 2
Joined: Sat Aug 10, 2013 9:45 pm

Foscam FI8910W Control

Post by knebb »

Hi all!

I installed ZM 1.25 through virtual image. Seems to run pretty fine so far.

I'm using a Foscam FI8910W camera. I can easily access the camera through my browser, watch the videos and control (move etc.) it. :)

Now I created the monitor in ZM based on the Wiki.

Yes, I downloaded the additional .pm file and renamed it properly. I changed the needed line to Logger instead of Debug, too. The Foscam users I've configured are operators level, not only visitor. According to the Wiki (and the other five posts here) it should be sufficent.

Unfortunately I can't control the camera through ZM. I can see the control buttons, but nothing happens when clicking on them.
Instead I get erros in logfiles /var/log/syslog:

Code: Select all

Aug 10 14:55:10 zoneminder zmcontrol[1636]: INF [Starting control server 1/FoscamFI8910W]
Aug 10 14:55:10 zoneminder zmcontrol[1640]: INF [Control server 1/FoscamFI8910W starting at 13/08/10 14:55:10]
Aug 10 14:55:13 zoneminder zmc_m1[1369]: INF [kamera-1: 1000 - Capturing at 15.15 fps]
Aug 10 14:55:17 zoneminder zma_m1[1424]: INF [kamera-1: 1000 - Processing at 15.38 fps]
Aug 10 14:55:18 zoneminder zmwatch[1396]: ERR [Shared data size conflict in shared_data for monitor kamera-1, expected 328, got 316]
Aug 10 14:55:18 zoneminder zmwatch[1396]: ERR [Shared data size conflict in shared_data for monitor kamera-1, expected 328, got 316]
Aug 10 14:55:20 zoneminder zmcontrol[1636]: FAT [Can't connect: No such file or directory]
Aug 10 14:55:20 zoneminder web_php[1044]: ERR [/usr/bin/zmcontrol.pl --autostop --command=moveConRight --id=1=>]
And in error.log of apache:

Code: Select all

[Sat Aug 10 14:55:20 2013] [error] [client 192.168.0.201] ERR [/usr/bin/zmcontrol.pl --autostop --command=moveConRight --id=1=>], referer: [removed]/zm/?view=watch&mid=1
First; I'm wondering about the "No such file or directory" error message- anyone having a clue what it's looking for?
The foscam file is properly installed an registered as control:

Code: Select all

root@zoneminder:/usr/share/perl5/ZoneMinder/Control# ls -alh
total 92K
drwxr-xr-x 2 root root 4.0K Aug 10 13:52 .
drwxr-xr-x 5 root root 4.0K Sep 23  2012 ..
-rw-r--r-- 1 root root  11K Jun 21  2011 AxisV2.pm
-rw-r--r-- 1 root root 5.9K Aug 10 13:52 FoscamFI8910W.pm
-rw-r--r-- 1 root root 5.2K Aug 26  2011 mjpgStreamer.pm
-rw-r--r-- 1 root root 5.2K Jun 21  2011 Ncs370.pm
-rw-r--r-- 1 root root 7.3K Jun 21  2011 PanasonicIP.pm
-rw-r--r-- 1 root root  19K Jun 21  2011 PelcoD.pm
-rw-r--r-- 1 root root  20K Jun 21  2011 Visca.pm
When starting the zmcontrol manually (as shown in the error.log) it doest not post anything and ends after 10 or 20 seconds. I get an error level of 1544:

Code: Select all

 /usr/bin/zmcontrol.pl --autostop --command=moveConUpRight --id=1; echo $$
1544
So anyone having further details what to look for?

Thanks, I really appreciate it!

Christian
knebb
Posts: 2
Joined: Sat Aug 10, 2013 9:45 pm

Re: Foscam FI8910W Control

Post by knebb »

Bump...

Knowing this is not a paid support forum so I can just hope someone answers.


I just thought there would be someone using this camera properly- there are so many threads and wiki pages...

So is there someone who got it working?
MrEvoMan
Posts: 55
Joined: Thu Apr 23, 2009 1:25 am

Re: Foscam FI8910W Control

Post by MrEvoMan »

You have to make sure your script's "package...." line contains the same "Protocol" as what you put in for the control protocol in ZM.

Struggled with that last night.

Find the line that starts with "package" and post it here. Then post a screenshot of the first tab in your control config in zm.
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Foscam FI8910W Control

Post by knight-of-ni »

Test your control script like this:

Code: Select all

perl /usr/share/perl5/ZoneMinder/Control/FoscamFI8910W.pm
If everything is in order then the script should immediatly return nothing at all.

You didn't post the contents of your control script so I'm guessing you used the one here:
http://durdle.com/wp-content/uploads/Fo ... 8W.pm_.txt

That's what the wiki lead me to. Notice that the script is for a FI8918, not an FI8910. Yes, the actual protocol should be the same according to the wiki, but read on.

This exapands on what Evoman said... the Package line needs to match what has been selected in Zoneminder, but I think it needs to match the filename of the control script as well.

So if your package line looks like the example in the wiki:

Code: Select all

package ZoneMinder::Control::FoscamFI8918W;
Then you need to name the file FoscamFI8918W.pm, not FoscamFI8910W.pm

After making any changes to control scripts, make sure and restart the zoneminder service.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
Locked