EasyN FS-613B-M166 IP PTZ camera

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.
User avatar
2Psycho
Posts: 37
Joined: Tue Jan 24, 2012 9:45 pm

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

Post 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.
Enjoyment Matters
User avatar
therese
Posts: 23
Joined: Thu Jun 23, 2011 5:11 am

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

Post 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. :(
User avatar
2Psycho
Posts: 37
Joined: Tue Jan 24, 2012 9:45 pm

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

Post 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=
Attachments
Move.png
Move.png (5.97 KiB) Viewed 7178 times
Enjoyment Matters
User avatar
therese
Posts: 23
Joined: Thu Jun 23, 2011 5:11 am

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

Post 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
User avatar
2Psycho
Posts: 37
Joined: Tue Jan 24, 2012 9:45 pm

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

Post by 2Psycho »

Ok at least we know that the link is correct
Did you already check the your settings with my screenshot
Enjoyment Matters
User avatar
therese
Posts: 23
Joined: Thu Jun 23, 2011 5:11 am

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

Post by therese »

yes I have checked your screen shot and also set it up the same way but still control unresponsive.
User avatar
2Psycho
Posts: 37
Joined: Tue Jan 24, 2012 9:45 pm

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

Post 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
Enjoyment Matters
User avatar
therese
Posts: 23
Joined: Thu Jun 23, 2011 5:11 am

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

Post 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=>"
User avatar
2Psycho
Posts: 37
Joined: Tue Jan 24, 2012 9:45 pm

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

Post by 2Psycho »

Therese

I have created a new control file for the camera please check this one out and let me know
Erik
Attachments
EasyN.zip
(2.18 KiB) Downloaded 215 times
Enjoyment Matters
User avatar
therese
Posts: 23
Joined: Thu Jun 23, 2011 5:11 am

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

Post 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.
User avatar
2Psycho
Posts: 37
Joined: Tue Jan 24, 2012 9:45 pm

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

Post 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)
Enjoyment Matters
User avatar
therese
Posts: 23
Joined: Thu Jun 23, 2011 5:11 am

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

Post 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.
Attachments
EasyN.zip
(2.15 KiB) Downloaded 209 times
User avatar
therese
Posts: 23
Joined: Thu Jun 23, 2011 5:11 am

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

Post 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 );
}
Attachments
EasyN.pm.zip
(2.25 KiB) Downloaded 226 times
User avatar
therese
Posts: 23
Joined: Thu Jun 23, 2011 5:11 am

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

Post by therese »

My settings on this camera...
Attachments
EasyN.jpg
EasyN.jpg (151.72 KiB) Viewed 7001 times
stoneybroke
Posts: 11
Joined: Sun Aug 24, 2008 11:23 am
Location: England

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

Post 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
*** Microsoft Windows ***
A compete waste of perfectly good space on a hard drive.
Post Reply