Page 1 of 1

PTZ settings with LEFTEK IPCAM

Posted: Mon Jan 15, 2018 11:12 pm
by pat2
Hello everybody,

I'm running ZM 1.30.4 with 5 indoor Foscam cameras and I'm able to see the video stream and to control the IPCAMs through PTZ commands.

Recently I bought on Amazon 3 outdoor PTZ IP Cameras (2,5 '' MINI Camera Dome 1080P 3X Zoom) by LEFTEK:

https://www.amazon.it/gp/product/B076MS ... UTF8&psc=1

They are cheap and nice.

I'm able to see them as Ffmpeg source on ZM through the following paths:

rtsp://admin:admin@192.168.1.201:554/1/h264major or
rtsp://admin:admin@192.168.1.201:554/1/h264minor

and remote method=TCP.

I would want to control them through PTZ commands. The cameras are ONVIF compatible, HIKVISION compatible, PELCO-D compatible.
I know that RTSP Port=554, Onvif Port=8999, Http Port=80.

I'm not sure how to be filled the following fields in Control Tab:

- Control Type (I tried PELCO-D and ONVIF Camera, with Type=Ffmpeg)
- Control Device (I tried user=admin&pwd=admin)
- Control Address (I tried 192.168.1.201:554 and 192.168.1.201:554/1 and 192.168.1.201:80 and 192.168.1.201:80/1 and 192.168.1.201:8999 and 192.168.1.201:899/1)

and all the possible combinations. I'm lost. No way to work with PTZ commands.

Is there anyone that could help/address me. I would appreciate a lot.

thanks
best regards

Re: PTZ settings with LEFTEK IPCAM

Posted: Mon Jan 15, 2018 11:30 pm
by bbunge
For control address try just the camera IP address with no port. If you use a port to access the web gui of the camera use that. The control device string looks right but you may need to assign another user besides admin to your camera.

Re: PTZ settings with LEFTEK IPCAM

Posted: Wed Jan 17, 2018 2:18 pm
by pat2
ok, thank you. i will try and tell you.

Re: PTZ settings with LEFTEK IPCAM

Posted: Sun Jan 21, 2018 8:57 am
by pat2
hi, with the last tempative I did, PTZ commands still don't work but I had a response by Zoneminder.
The camera is connected with an ethernet cable, below the settings:

in General Tab.
Source Type= Ffmpeg

in Souce Tab:
Souce Path: rtsp://admin:admin@192.168.1.201:554/1/h264minor
Rmote method: UDP

in Control Tab:
Controllable= yes
Control Type= Pelco-D (with Type= Ffmpeg)
Control Device= user=admin&pwd=admin
Control Address= 192.168.1.201:554

I'm able to see images, but PTZ commands still don't work: I got the message:

Control response was status = undefined
message = /usr/bin/zmcontrol.pl --tiltspeed=32 --autostop
--command=moveConDown --id=7=>

I entered in the PTZ settings of the CAM. Currently the CAM is working with the below parameters:

Address= 1 (configurable from 1 to 255)
Protocol= Pelco-D (configurable= Pelco-D or Pelco-P or Samsung)
Baud Rate= 2400 (configurable from 2400 to 38400)
3D-Protocol= Pelco-DH (configurable= Pelco-DH or Pelco-HK)
User Mode= HK-TST (configurable= HK-TST or Milestone or JNVR)

is there anyone in the forum that can suggest me how to adjust the pelco-d.pm file (or modify the settings in ZM tabs) to work with PTZ?
thanks a lot

Re: PTZ settings with LEFTEK IPCAM

Posted: Sun Jan 28, 2018 3:05 pm
by pat2
it doesn't work. no way.

PTZ commands are working with the LEFTEK app, I'm able to catch the FFmpeg stream in Zoneminder, but still not to command it through PTZ commands.
Strange since it 's a Pelco-D, an HKVISION, and an ONVIF compatible camera.

I saw Knigget and Isaac Connor are partecipating in the forum discussion... I hope in the future someone will find a solution in the forum for this camera or build a more robust ONVIF protocol for PTZ camera recognition in Zoneminder.

Re: PTZ settings with LEFTEK IPCAM

Posted: Tue Mar 20, 2018 4:05 pm
by bobylapointe69300
Can you try these settings in control tab:
  • Controllable= X
  • Control Type= Pelco-D
  • Control Device= (nothing to be filled in here)
  • Control Address= user:password@192.168.1.201
Apply changes, reboot and report results.

If this does not work, please try :
  • Controllable= X
  • Control Type= Pelco-D
  • Control Device= (nothing to be filled in here)
  • Control Address= user:password@192.168.1.201:8080
Finally, make sure :
- control files (Xxxxx.pm) are owned by root:root
- control files (Xxxxx.pm) have following rights -rw-r--r-- (equivalent chmod 644).

Re: PTZ settings with LEFTEK IPCAM

Posted: Thu Mar 22, 2018 7:42 pm
by pat2
bobylapointe69300 wrote: Tue Mar 20, 2018 4:05 pm Can you try these settings in control tab:
  • Controllable= X
  • Control Type= Pelco-D
  • Control Device= (nothing to be filled in here)
  • Control Address= user:password@192.168.1.201
Apply changes, reboot and report results.

If this does not work, please try :
  • Controllable= X
  • Control Type= Pelco-D
  • Control Device= (nothing to be filled in here)
  • Control Address= user:password@192.168.1.201:8080
Finally, make sure :
- control files (Xxxxx.pm) are owned by root:root
- control files (Xxxxx.pm) have following rights -rw-r--r-- (equivalent chmod 644).
Thanks a lot.
I tried. Unsuccessfully. :(

After many mails I received by the vendor a CGI/API specification document for the camera. See below link:

https://ufile.io/x0a7b

Based on specification I received I tried the following PTZ commands through Firefox (putting directly the url in the Firefox url box):

Code: Select all

http://admin:admin@192.168.1.200/cgi/sys_get?Group=DeviceInfo
http://admin:admin@192.168.1.200/cgi/ptz_set?Channel=1&Group=PTZCtrlInfo&Direction=1&PanSpeed=2&TiltSpeed=3
http://admin:admin@192.168.1.200/cgi/ptz_set?Channel=1&Group=PTZCtrlInfo&Stop=0
and they worked!!!! :D
With the last two, I moved the camera and then I stopped it.

So currently the issue is to implement a ZM script compatible with the enclosed specification. Or adapt the Pelco-D script already available to the enclosed specification. Or put in the ZM configuration address field the correct Control Address.
I will try.
If anyone can support me modifying the existing script or give suggestion I would appreciate. I'm not an expert... :(

Re: PTZ settings with LEFTEK IPCAM

Posted: Tue Mar 27, 2018 5:13 pm
by bobylapointe69300
I adjusted the standard onvif.pm control file (which in fact does not use onvif commands...) for a dahua, with /cgi/commands... viewtopic.php?f=9&t=27000
As a first step you can make a new file and test a few commands you know are working in a browser by replacing the address in
my $cmd = "xxxx";
That will also tell you if your control address/type... input is working.
If that works, complete the file with the commands available on your camera and remove the unavailable (e.g. reset as I do not find it in your seller's documentation...).
Make a final test and share your results so that other LEFTEK users can use or improve your file.

Re: PTZ settings with LEFTEK IPCAM

Posted: Thu Mar 29, 2018 4:34 pm
by pat2
bobylapointe69300 wrote: Tue Mar 27, 2018 5:13 pm I adjusted the standard onvif.pm control file (which in fact does not use onvif commands...) for a dahua, with /cgi/commands... viewtopic.php?f=9&t=27000
As a first step you can make a new file and test a few commands you know are working in a browser by replacing the address in
my $cmd = "xxxx";
That will also tell you if your control address/type... input is working.
If that works, complete the file with the commands available on your camera and remove the unavailable (e.g. reset as I do not find it in your seller's documentation...).
Make a final test and share your results so that other LEFTEK users can use or improve your file.
Thanks a lot! :D
I will do and tell you.

Thanks a lot again. I appreciate so much.

Re: PTZ settings with LEFTEK IPCAM

Posted: Thu Mar 29, 2018 6:25 pm
by pat2
hi bobylapointe69300,

again me. I will do the change during Easter holidays, but I saw in advance the pm file and your suggestion and I understood.
The file will work with the proper url change in my $cmd . :-)
I will let you know.

Thanks a lot again for all your support.
great bobylapointe69300 !

Re: PTZ settings with LEFTEK IPCAM

Posted: Fri Mar 30, 2018 11:22 am
by pat2
update: not still able to build a working .pm file, but i found the following app

https://sourceforge.net/projects/onvifdm/

it's working under windows and it's able to work with my cameras. able to send PTZ commands through protocol API_CGI protocol.
so currently i'm able to send PTZ commands inserting the url in firefox (based on the API_CGI manual I enclosed) or through the windows app that is using the ONVIF protocol...

so at the end I hope i will be able to build a working .pm script!

Re: PTZ settings with LEFTEK IPCAM

Posted: Mon Aug 26, 2019 3:23 pm
by elizabetabudini
Can you send again the CGI/API specification document for the camera?

Re: PTZ settings with LEFTEK IPCAM

Posted: Fri Mar 05, 2021 8:01 am
by jeremyenos
I don't understand why onvifdm, tinycam, etc all have no struggle w/ onvif command delivery yet Zoneminder hits a wall on some cameras. I have a Tysvance 5MP PTZ and it uses PelcoD or PelcoP protocols... ZM can't detect an onvif profile for it first (It supports "S" or "T"). But I also can't figure out a manual configuration to set that works either.
Lost here.

Jeremy

Re: PTZ settings with LEFTEK IPCAM

Posted: Mon Mar 08, 2021 6:51 pm
by jperkins
yea my cameras support onvif control but I could not get zoneminder to work with them. the problem could have been at my end ?? I ended up using the native control for my camera, and even then it took some work. there are a couple of Pelco control options. FYI i had to restart ZM every time I made a change to my control setup