need example code to control pan/tilt

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.

need example code to control pan/tilt

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.
need example code to control pan/tilt
need example code to control pan/tilt
2020-10-06 10:19:56
Model: Tapo C200  
Hardware Version:
Firmware Version:

I would like to write a driver for ZoneMinder to control the pan/tilt.

I need to know what the control codes are that I need to send to the camera.

If you have some sample code, like from the Android app, it would be a great start.

 

I tried most of the drivers defined in ZoneMinder for other cameras and none of them seem to react.

If your camera works like some other known camera, that would also help.

 

The camera itself streams very nicely to ZoneMinder, so that part does work.

The next step is to control the pan/tilt.

 

Thanks,

Ilan

 

  0      
  0      
#1
Options
2 Reply
Re:need example code to control pan/tilt
2020-10-07 09:37:53

@IlanTal 

For another camera I saw the commands were:
0 up
2 down
4 left
6 right .....
I pressed the up button which will give a command of 0. I got back
Error check failed: '405 Method Not Allowed' for URL http://192.168.0.18:554/decoder_control.cgi?command=0&user=admin&pwd=
 
I can see that the correct command was given (up=0), but the method wasn't allowed. Could the problem be the user/pw combination or something else?
Maybe up isn't zero? Maybe the format of the command should be something different?
 
Any help would be greatly appreciated.
Ilan
 
 
  0  
  0  
#2
Options
Re:need example code to control pan/tilt
2020-10-09 01:37:18

@IlanTal 

Good day.

Thank you very much for your time and patience.

Tapo camera supports standard ONVIF protocol (Profile S), so it will work with NVR or NAS devices, and other third-party software like Happy time ONVIF Client, ONVIF Device Manager, etc.

But it does not support PTZ over ONVIF.

So if the ZoneMinder is also based on the ONVIF protocol, I am afraid that there is no example code for pan/tilt;

But we already had the plan to add this feature in the future firmware release.

Please keep an attention to our official website.

Really sorry for the inconvenience.

Thanks a lot.

  0  
  0  
#3
Options