PTZ Control of Topcony camera.

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
litb
Posts: 4
Joined: Wed Mar 20, 2019 6:33 am

PTZ Control of Topcony camera.

Post by litb »

I need to add more cameras to my cctv setup, to do so would mean ugrading an old mac mini to a more modern system (upgrading the licence would trigger this).

Therefore I've been looking elsewhere and running different software under docker.

Configuring Zoneminder many years ago was challenging, but this time was quite easy, I had a Sunba camera up and running with ptz in just a few minutes anbd the system seems quite stable (running under docker).

The topcony camera is proving difficult (I have six of these) , i got a video feed without issue, but controlling the ptz is a challenge.

If i set it as ONVIF then it works, (left right, up down), but doesnt stop.

The camera works perfectly in it's own interface (cameras own web server) and SecuritySpy on the mac also controls it correctly.

I have absolutely no idea whatsoever where to go from here, if someone can advise on how to proceed I would be very grateful (but please keep it simple as I dont know my way around zm or it's file system at all.

Thanks in advance
dougmccrary
Posts: 1320
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: PTZ Control of Topcony camera.

Post by dougmccrary »

Try setting Monitor->Control->Auto Stop Timeout to .2 or so, if you haven't.
litb
Posts: 4
Joined: Wed Mar 20, 2019 6:33 am

Re: PTZ Control of Topcony camera.

Post by litb »

Thank's for the reply,

I hadn't implemented that, it had no effect.

I turned off modetect (to stop the amount of traffic going to the logs) and monitored them through tail -f /var/log/syslog and saw xml strings with errors, i then looked under the logs section of the Zonemnder interface and saw errors in there, they all looked similar, p[lease fond one of them below.




After sending PTZ command, camera returned the following error:'400 Bad Request'MSG: admin WcAdC8C3MMKTDucbHQakbwof2o0= V3pNV0pKcDhRb2ZUNzZJT2ZOb2k= 2024-02-29T06:35:04Z 000truetrue Response:s:Receiverter:ActionNotSupportedAction Not Implemented
dougmccrary
Posts: 1320
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: PTZ Control of Topcony camera.

Post by dougmccrary »

hmmm. Does look something like this?
Screenshot 2024-02-28 at 23-23-18 ZM - Monitor - Garage.png
Screenshot 2024-02-28 at 23-23-18 ZM - Monitor - Garage.png (52.55 KiB) Viewed 1379 times
You might be using the wrong script - there's the one I've got there and "ONVIF Camera" are probably the first ones to try, then it's a crapshoot, I'm afraid.
litb
Posts: 4
Joined: Wed Mar 20, 2019 6:33 am

Re: PTZ Control of Topcony camera.

Post by litb »

Thanks for the reply, before I saw this I'd found an older post about a Bogasen canera and copied those settings, this stops the camera moving, but presets still dont work.

The settings are identical to the ones in your image (thank you).

The error is listed below if anyone can shed any light.


From zoneminder interface logs

2024-02-29 03:02:48 zmcontrol_1 48314 ERR After sending PTZ command, camera returned the following error:'400 Bad Request'MSG:/onvif/ptz_service1Response:s:Senderter:InvalidArgValter:NoProfileInvalid Profile Token zmcontrol.pl -


from syslog

Feb 29 03:02:48 ea6d2cd78c17 zmcontrol_1[48314]: ERR [After sending PTZ command, camera returned the following error:'400 Bad Request'
MSG:<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><GotoPreset xmlns="http://www.onvif.org/ver20/ptz/wsdl"><P ... s:Envelope>
Response:<?xml version="1.0" encoding="UTF-8"?><s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:e="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:tr2="http://www.onvif.org/ver20/media/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:hikwsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:hikxsd="http://www.onvifext.com/onvif/ext/ver10/schema" ><s:Body><s:Fault><s:Code><s:Value>s:Sender</s:Value><s:Subcode><s:Value>ter:InvalidArgVal</s:Value><s:Subcode><s:Value>ter:NoProfile</s:Value></s:Subcode></s:Subcode></s:Code><s:Reason><s:Text xml:lang="en">Invalid Profile Token</s:Text></s:Reason></s:Fault></s:Body></s:Envelope>]
Feb 29 03:02:50 ea6d2cd78c17 zmc_m1[48310]: INF [zmc_m1] [Monitor-1: 46300 - Capturing at 12.44 fps, capturing bandwidth 55374bytes/sec]
dougmccrary
Posts: 1320
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: PTZ Control of Topcony camera.

Post by dougmccrary »

I believe the preset functions are broken. I think (not sure) there's effort to fix in 1.37.xx
Post Reply