Page 1 of 1

[SOLVED] Can't control my wanscam camera

Posted: Fri Jul 26, 2013 12:15 pm
by brononius
Hey,

I've followed the instructions on Wanscam_FR4020A2_PT to get my wanscam camera running.

My capturing, viewing and so on is working fine.
But i can't get the control working.

When i click on a flash (fe right), i see that my logs are nicely filled:
/tmp/zm/zm_debug.log.25099 wrote:07/26/13 13:40:33.705642 zmcontrol[25101].DBG [Move Right]
07/26/13 13:40:33.708192 zmcontrol[25101].DBG [Tx[2]]
07/26/13 13:40:33.897332 zmcontrol[25101].DBG [Move Right]
07/26/13 13:40:33.897627 zmcontrol[25101].DBG [Tx[2]]
07/26/13 13:50:49.461308 zmcontrol[25101].DBG [Move Right]
07/26/13 13:50:49.461648 zmcontrol[25101].DBG [Tx[2]]
07/26/13 13:50:49.830394 zmcontrol[25101].DBG [Move Right]
07/26/13 13:50:49.830811 zmcontrol[25101].DBG [Tx[2]]
And this happens also when i run it by console:

Code: Select all

zmcontrol.pl --id 1 --command=moveConDown
/tmp/zm/zm_debug.log.25099 wrote:07/26/13 14:08:29.912124 zmcontrol[25101].DBG [Move Down]
07/26/13 14:08:29.912435 zmcontrol[25101].DBG [Tx[2]]
07/26/13 14:08:30.617810 zmcontrol[25101].DBG [Move Down]
07/26/13 14:08:30.618089 zmcontrol[25101].DBG [Tx[2]]
When i run the movement directly from console/camera, it works:

Code: Select all

curl "http ://192.168.2.10/decoder_control.cgi?command=0&onestep=1&user=admin&pwd=passwd"
So the interconnection between zoneminder(server) and the camera works...


But the camera isn't moving. :(
Any idea what's going on? Or what i can try else?
Is there a way to see what exact command the server is sending out?

Re: Can't control my wanscam camera

Posted: Tue Jul 30, 2013 7:15 am
by brononius
Ok, seems that the onestep is missing (or not working)?

I've changed following line in the pm-file:

Code: Select all

my $req = HTTP::Request->new( GET=>"http://".$self->{Monitor}->{ControlAddress}."/$cmd".$self->{Monitor}->{ControlDevice} );
to

Code: Select all

my $req = HTTP::Request->new( GET=>"http://".$self->{Monitor}->{ControlAddress}."/$cmd"."&onestep=1&user=admin&pwd=password" );
(changed admin/password)

And now it's working...