Page 2 of 3

Re: EasyN FS-613B-M166 IP PTZ camera

Posted: Sun Feb 12, 2012 1:36 pm
by 2Psycho
Therese,

I ment this file :D
So far I can see you have configured

Code: Select all

#Up Arrow
sub moveConUp
{
my $self = shift;
$stop_command = “1?;
Debug( “Move Up” );
my $cmd = “decoder_control.cgi?command=0&user=admin&pwd=”;
$self->sendCmd( $cmd );
}
This should be in my opinion:

Code: Select all

#Up Arrow
sub Up
{
my $self = shift;
Debug( “Move Up” );
my $cmd = “decoder_control.cgi?command=0&user=admin&pwd=”;
$self->sendCmd( $cmd );
}
Evenso the "Can Move Continuous" must be disabled.
When you have saved the file click several times on the button to test it.

Re: EasyN FS-613B-M166 IP PTZ camera

Posted: Sun Feb 12, 2012 5:24 pm
by therese
changed the config file but still no response from the camera. Seems like the command is going no where it is not receiving it. :(

Re: EasyN FS-613B-M166 IP PTZ camera

Posted: Sun Feb 12, 2012 5:38 pm
by 2Psycho
Did you al ready treid if you can move the camera when you send this command straight from your browser.
Like this?
http://192.168.1.30:81/decoder_control. ... admin&pwd=

Re: EasyN FS-613B-M166 IP PTZ camera

Posted: Sun Feb 12, 2012 7:27 pm
by therese
http://192.168.1.30:81/decoder_control. ... admin&pwd=

Yes with this command straight from the browser moved the camera up... :D

Re: EasyN FS-613B-M166 IP PTZ camera

Posted: Mon Feb 13, 2012 11:44 am
by 2Psycho
Ok at least we know that the link is correct
Did you already check the your settings with my screenshot

Re: EasyN FS-613B-M166 IP PTZ camera

Posted: Mon Feb 13, 2012 2:16 pm
by therese
yes I have checked your screen shot and also set it up the same way but still control unresponsive.

Re: EasyN FS-613B-M166 IP PTZ camera

Posted: Mon Feb 13, 2012 6:11 pm
by 2Psycho
I am getting out of ideas.. :cry:

But what you can check is if you have JSON installed

Code: Select all

$ sudo apt-get install libjson-any-perl

Re: EasyN FS-613B-M166 IP PTZ camera

Posted: Tue Feb 14, 2012 4:25 am
by therese
Code:
$ sudo apt-get install libjson-any-perl

Tried this & did load files and updated but still no response... :(

it keeps coming back with the same message every time.
"Control response was status = undefined message = /usr/bin/zmcontrol.pl --command=Up --id=5=>"

Re: EasyN FS-613B-M166 IP PTZ camera

Posted: Wed Feb 15, 2012 12:11 pm
by 2Psycho
Therese

I have created a new control file for the camera please check this one out and let me know
Erik

Re: EasyN FS-613B-M166 IP PTZ camera

Posted: Thu Feb 16, 2012 4:03 am
by therese
Success !!!
Erik thank you for your help really appreciate everything you have done...great work.
Deleted the old EasyN.pm file and replaced the file you created, did not work at first then I noticed this....


# ==========================================================================
#
# EasyN FS-613B-M166 IP Control Protocol
#
# ==========================================================================

use ZoneMinder::Logger qw(:all);
use ZoneMinder::Config qw(:all);

use Time::HiRes qw( usleep );
<------------------------------------------------------------------------------------------------>
changed
use Zoneminder::Logger qw(:all);
to...
use Zoneminder::Debug qw(:all);

then it started to work... :D
but now have to figure how to stop it if I pan to left it will keep turning left and not stop till it gets to the end.

Re: EasyN FS-613B-M166 IP PTZ camera

Posted: Thu Feb 16, 2012 5:21 pm
by 2Psycho
Your Welcome
Just keep me posted on the progress and place your file here on the forum so you can share it with everyone 8)

Re: EasyN FS-613B-M166 IP PTZ camera

Posted: Fri Feb 17, 2012 6:23 am
by therese
Here is the modified EasyN config file ( EasyN FS-613B M166 IP PTZ Camera ) so far manage to control the pan, tilt function the reset function and also the Home preset buttons....enjoy :D
There is no diagonal control with these camera.

Re: EasyN FS-613B-M166 IP PTZ camera

Posted: Sat Feb 18, 2012 6:43 pm
by therese
Updated script to fix jerky motion when panning camera...
#Up Arrow
sub Up
{
my $self = shift;
Debug( "Move Up" );
my $cmd = "decoder_control.cgi?command=0&onestep=1&user=admin&pwd=";
$self->sendCmd( $cmd );
}

#Down Arrow
sub Down
{
my $self = shift;
Debug( "Move Down" );
my $cmd = "decoder_control.cgi?command=2&onestep=3&user=admin&pwd=";
$self->sendCmd( $cmd );
}
#Left Arrow
sub Left
{
my $self = shift;
Debug( "Move Left" );
my $cmd = "decoder_control.cgi?command=4&onestep=5&user=admin&pwd=";
$self->sendCmd( $cmd );
}

#Right Arrow
sub Right
{
my $self = shift;
Debug( "Move Right" );
my $cmd = "decoder_control.cgi?command=6&onestep=7&user=admin&pwd=";
$self->sendCmd( $cmd );
}

Re: EasyN FS-613B-M166 IP PTZ camera

Posted: Fri Feb 24, 2012 5:49 am
by therese
My settings on this camera...

Re: EasyN FS-613B-M166 IP PTZ camera

Posted: Tue Mar 06, 2012 5:55 pm
by stoneybroke
I have recently bought a Foscam PTZ camera and have installed scripts from all over the place and I still can't get the camera to pan, tilt, zoom, or do anything else except show a picture and give me errors but I found a very useful add-on for Firefox below that shows the camera in the sidebar and allows you to control the camera so the problem is almost solved lol

https://addons.mozilla.org/en-US/firefo ... serprofile