AirLink101 SkyIPCam 747 PTZ module for ZM

If you've made a patch to quick fix a bug or to add a new feature not yet in the main tree then post it here so others can try it out.
User avatar
logicos94
Posts: 3
Joined: Sun May 09, 2010 10:03 pm

Re: patch for SkyIPCam7xx.pm

Post by logicos94 »

Setarcos wrote: Hi logicos94,

The PTZ reset function seems to work fine as-is in 1.24.2 with the 9/15/2008 version of the control module here. It looks like you may have grabbed an old version from somewhere.
Oh sorry ! It's my fault !
I have added a space character at the end of the protocol name.
So, the module that ZoneMinder trying to load was named "SkyIPCam7xx .pm" .

Forget the patch :D

Thanks
ttpdotcom
Posts: 4
Joined: Thu Nov 04, 2010 1:57 pm

Trendnet TV-IP422

Post by ttpdotcom »

Hi guys,

I´ve been following your instruction in this subjet for Trendnet IP-TV422 cameras but thy look like a bit crazy.
I´m running 1.24.2 zoneminder version.
When i press directional buttons the camera doesnt move, so i can´t use zoneminder to set the presets but it seems it´s working with the mapped movements.

Thanks in advance for any help.
"Who will talk for planet Earth?" - Carl Sagan
windracer
Posts: 61
Joined: Sat Jul 23, 2011 1:15 am

Re: AirLink101 SkyIPCam 747 PTZ module for ZM

Post by windracer »

Just confirming this driver works with my TrendNet TV-IP422W units with ZoneMinder 1.24.4 and this patch. Thanks!!
User avatar
Setarcos
Posts: 44
Joined: Thu Jan 25, 2007 4:51 pm
Location: San Jose, CA

Re: AirLink101 SkyIPCam 747 PTZ module for ZM

Post by Setarcos »

windracer wrote:Just confirming this driver works with my TrendNet TV-IP422W units with ZoneMinder 1.24.4 and this patch. Thanks!!
I haven't tried it yet, but please let us all know if there are issues.
windracer
Posts: 61
Joined: Sat Jul 23, 2011 1:15 am

Re: AirLink101 SkyIPCam 747 PTZ module for ZM

Post by windracer »

I don't use the PTZ a ton, but so far I've had no issues ... I can use the presets, the arrows, or click on the image (which is my new favorite feature that the TrendNet firmware doesn't even do).
pneumoboy
Posts: 5
Joined: Sat Dec 16, 2006 2:49 am

Re: AirLink101 SkyIPCam 747 PTZ module for ZM

Post by pneumoboy »

Thanks to Setarcos for all the work on this. I was able to successfully connect my IP422W to Zoneminder 1.24.4 running on Ubuntu Server 10.04LTS 64-bit. I had already installed the perl JSON::Any module from Phil's previous post that windracer mentions above.

I had one gotcha I wanted to share... I configured the IP422W on a wired connection. Everything worked fine, including the Pan/Tilt functions through ZM. When I moved the camera to my wireless network, it pulled a new IP on a different subnet. I updated the IP address in the source and the control "Control Address" field, but the controls failed to work. To fix this, I went into the Control tab and unchecked the "Controllable" box. Saved and exited back out to the console screen. Then I went back in to the Control tab and rechecked the "Controllable" box. Pan/Tilt started to work again. It was that simple...
mathus13
Posts: 1
Joined: Fri Jan 06, 2012 4:28 pm

Re: AirLink101 SkyIPCam 747 PTZ module for ZM

Post by mathus13 »

Having a bear of a time getting my TV-IP41WN on firmware 1.0.0.19 working
OS Ubuntu Server 11.10. Zoneminder 1.25.0
Images are showing fine, but freeze after a few frames as iff the buffer is being overrun
Control does not function at all. below are log outputs from the events.
I am using the control file posted at the beginning of this thread.

From ZoneMinder Log:

Code: Select all

2012-01-06 11:26:49.894207	web_php	1482	ERR	socket_sendto( /tmp/zm/zms-916592s.sock ) failed: No such file or directory	includes/functions.php	2322
2012-01-06 11:26:46.877096	web_php	1422	ERR	socket_sendto( /tmp/zm/zms-916592s.sock ) failed: No such file or directory	includes/functions.php	2322
2012-01-06 11:26:43.860189	web_php	1423	ERR	/opt/zm/bin/zmcontrol.pl --panstep=26 --command=moveRelRight --id=3=>	includes/functions.php	2322
2012-01-06 11:26:43.855370	zmcontrol	3276	FAT	Can't connect: No such file or directory	zmcontrol.pl	
2012-01-06 11:26:34.121667	zms	        3274	INF	Got signal 15 (Terminated), exiting	zm_signal.cpp	44
2012-01-06 11:26:33.855020	zmcontrol	3277	INF	Control server 3/SkyIPCam7zz starting at 12/01/06 11:26:33	zmcontrol.pl	
2012-01-06 11:26:33.852090	zmcontrol	3276	INF	Starting control server 3/SkyIPCam7zz	zmcontrol.pl
From Apache Error Log:

Code: Select all

[Fri Jan 06 11:26:26 2012] [error] [client 192.168.1.226] Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later., referer: *edit site url*/index.php?view=watch&mid=3
[Fri Jan 06 11:26:43 2012] [error] [client 192.168.1.226] ERR [/opt/zm/bin/zmcontrol.pl --panstep=26 --command=moveRelRight --id=3=>], referer: *edit site url*/index.php?view=watch&mid=3
[Fri Jan 06 11:26:46 2012] [error] [client 192.168.1.226] ERR [socket_sendto( /tmp/zm/zms-916592s.sock ) failed: No such file or directory], referer: *edit site url*/index.php?view=watch&mid=3
[Fri Jan 06 11:26:49 2012] [error] [client 192.168.1.226] ERR [socket_sendto( /tmp/zm/zms-916592s.sock ) failed: No such file or directory], referer: *edit site url*/index.php?view=watch&mid=3
From Syslog:

Code: Select all

Jan  6 11:26:33 zoneminder zmcontrol[3276]: INF [Starting control server 3/SkyIPCam7zz]
Jan  6 11:26:33 zoneminder zmcontrol[3277]: INF [Control server 3/SkyIPCam7zz starting at 12/01/06 11:26:33]
Jan  6 11:26:34 zoneminder zms[3274]: INF [Got signal 15 (Terminated), exiting]
Jan  6 11:26:43 zoneminder zmcontrol[3276]: FAT [Can't connect: No such file or directory]
Jan  6 11:26:43 zoneminder web_php[1423]: ERR [/opt/zm/bin/zmcontrol.pl --panstep=26 --command=moveRelRight --id=3=>]
Jan  6 11:26:46 zoneminder web_php[1422]: ERR [socket_sendto( /tmp/zm/zms-916592s.sock ) failed: No such file or directory]
Jan  6 11:26:49 zoneminder web_php[1482]: ERR [socket_sendto( /tmp/zm/zms-916592s.sock ) failed: No such file or directory]
If anyone could assist I would be very grateful
User avatar
expertpc
Posts: 5
Joined: Fri Mar 02, 2012 7:07 am

Re: AirLink101 SkyIPCam 747 PTZ module for ZM

Post by expertpc »

Hey everyone, just wanted to throw my 2 cents in.
I just fought with the control issue for a while on my Ubuntu 11.10 Server as well, but replacing

use ZoneMinder::Debug qw(:all);
with
use ZoneMinder::Logger qw(:all);

in the SkyIPCam7xx Perl Module resolved the control issue with ZM 1.25. I also installed libjson-any-perl as per one of the posts in these links and did not have to patch anything else.

See http://www.zoneminder.com/forums/viewto ... 151#p70151
and
http://www.zoneminder.com/forums/viewto ... rol#p71744 for reference.

Hopefully this will help make it simple for anyone looking for PTZ control issues with this camera series. Thanks for this module Setarcos, with this small change it is 1.25.x compatible as well.
Steve B
General Manager
Expert PC
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: AirLink101 SkyIPCam 747 PTZ module for ZM

Post by knight-of-ni »

Hey everyone, just wanted to throw my 2 cents in.
I just fought with the control issue for a while on my Ubuntu 11.10 Server as well, but replacing

use ZoneMinder::Debug qw(:all);
with
use ZoneMinder::Logger qw(:all);

in the SkyIPCam7xx Perl Module resolved the control issue with ZM 1.25.
I'm sure this is obvious to those familiar with Perl. However, for reasons sated in the links you already referenced, it is probably worth noting that this change is required for all PTZ control files, not just the SkyIPCam module. The author already made that change to the stock control files, but it will be up to each individual user to make the change any other control files he/she might be using.
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/
User avatar
expertpc
Posts: 5
Joined: Fri Mar 02, 2012 7:07 am

Re: AirLink101 SkyIPCam 747 PTZ module for ZM

Post by expertpc »

Very true knnniggett, I know some (no doubt much less than many people here) but did not pick up on this until I found it in the forums. I mostly posted this for mathus13 and anyone else that happens to be looking for an out of the box type installation with these or the TrendNet cameras that use the same control file and may be new to the system. Even though this is a system-wide change I had some difficulty finding it, so this is just my way of giving back what little I can for such a great project :)
Steve B
General Manager
Expert PC
windracer
Posts: 61
Joined: Sat Jul 23, 2011 1:15 am

Re: AirLink101 SkyIPCam 747 PTZ module for ZM

Post by windracer »

expertpc wrote:I just fought with the control issue for a while on my Ubuntu 11.10 Server as well, but replacing

use ZoneMinder::Debug qw(:all);
with
use ZoneMinder::Logger qw(:all);

in the SkyIPCam7xx Perl Module resolved the control issue with ZM 1.25.
I know this is old, but back in April last year my PTZ stopped working and I gave up at the time. Finally got around (yeah, yeah, I know 10 months later!) to look into again and this was the solution. Thanks!
Post Reply