zmNinja PTZ control - pan-tilt not stopping - Auto Stop Timeout value not respected
Posted: Mon May 05, 2025 9:26 pm
Hello,
I own two TP-Link Tapo C520WS cameras that I configured (Monitor Settings - ONVIF & Control tabs) in ZoneMinder v1.37.66 and able to control their pan/tilt movement properly from withing the web GUI of ZoneMinder. In the Control tab I use for Auto Stop Timeout the value 0,50 and with this value if I click the pan/tilt movement buttons in the ZoneMinder GUI I get a 5-10 degrees movement for each click. Pretty optimal.
I installed and configured zmNinja 1.7.007 on my Android phone and noticed that if use this app and press the control pan/tilt buttons the movement doesn't stop until the camera reaches the maximum tilt/pan. The camera is moving pretty fast and the stop button doesn't really help because by the time the camera receives the stop command it already moved quite a lot .. around 90 degrees or more.
If I try to press move/stop too fast then I get an error in the ZoneMinder log and loose camera control for some seconds:
It looks like the move(tilt/pan) + stop sequence in zmNinja doesn't really work (log error - loosing control of the camera) and also that zmNinja doesn't really respect the Auto Stop Timeout value defined in ZoneMinder GUI.
Noticed that this issue was already reported on github some time ago, but it got closed due to inactivity:
https://github.com/ZoneMinder/zmNinja/issues/880
Thanks in advance for any help / fix.
I own two TP-Link Tapo C520WS cameras that I configured (Monitor Settings - ONVIF & Control tabs) in ZoneMinder v1.37.66 and able to control their pan/tilt movement properly from withing the web GUI of ZoneMinder. In the Control tab I use for Auto Stop Timeout the value 0,50 and with this value if I click the pan/tilt movement buttons in the ZoneMinder GUI I get a 5-10 degrees movement for each click. Pretty optimal.
I installed and configured zmNinja 1.7.007 on my Android phone and noticed that if use this app and press the control pan/tilt buttons the movement doesn't stop until the camera reaches the maximum tilt/pan. The camera is moving pretty fast and the stop button doesn't really help because by the time the camera receives the stop command it already moved quite a lot .. around 90 degrees or more.
If I try to press move/stop too fast then I get an error in the ZoneMinder log and loose camera control for some seconds:
Code: Select all
zmcontrol_1 22889 ERR After sending PTZ command, camera returned the following error:'500 Internal Server Error'MSG: <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"><s:Header> <Security s:mustUnderstand="1" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"> <UsernameToken xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"> <Username>tapoc520ws-1</Username> <Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">l0SGD8HqaNicA6ax7Q5k6dAcXmA=</Password> <Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">NzBNUjkwZFB3QTZyVFF6NURGZm8=</Nonce> <Created xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2025-05-05T20:40:13Z</Created> </UsernameToken> </Security></s:Header><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><GotoHomePosition xmlns="http://www.onvif.org/ver20/ptz/wsdl"><ProfileToken>000</ProfileToken></GotoHomePosition></s:Body> </s:Envelope>Response:<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:xmime="http://tempuri.org/xmime.xsd" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:trp="http://www.onvif.org/ver10/replay/wsdl" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl"><SOAP-ENV:Header></SOAP-ENV:Header><SOAP-ENV:Body><SOAP-ENV:Fault><SOAP-ENV:Code><SOAP-ENV:Value>SOAP-ENV:Receiver</SOAP-ENV:Value><SOAP-ENV:Subcode><SOAP-ENV:Value>ter:ActionNotSupported</SOAP-ENV:Value></SOAP-ENV:Subcode></SOAP-ENV:Code><SOAP-ENV:Reason><SOAP-ENV:Text xml:lang="en"></SOAP-ENV:Text></SOAP-ENV:Reason></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
Noticed that this issue was already reported on github some time ago, but it got closed due to inactivity:
https://github.com/ZoneMinder/zmNinja/issues/880
Thanks in advance for any help / fix.