Jump to content

Recommended Posts

Posted

Специально не стал создавать тему в разделе Dahua, ибо, не исключаю, что такое поведение на всех камерах.

 

Как считать состояние сухих портов через ONVIF?

GetDigitalInputs возвращает только наличие самих портов, но не их состояние:

<?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:wsa5="http://www.w3.org/2005/08/addressing" 
xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" 
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" 
xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" 
xmlns:ds="http://www.w3.org/2000/09/xmldsig#" 
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" 
xmlns:xmime5="http://www.w3.org/2005/05/xmlmime" 
xmlns:xmime="http://tempuri.org/xmime.xsd" 
xmlns:xop="http://www.w3.org/2004/08/xop/include" 
xmlns:ns1="http://www.placeholder.org/ver10/tmp/schema" 
xmlns:scdl="http://www.placeholder.org/ver10/scdl/schema" 
xmlns:tt="http://www.onvif.org/ver10/schema" 
xmlns:wsrf-bf="http://docs.oasis-open.org/wsrf/bf-2" 
xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" 
xmlns:wsrf-r="http://docs.oasis-open.org/wsrf/r-2" 
xmlns:scws="http://www.placeholder.org/ver10/scdl/wsdl" 
xmlns:ns2="http://www.placeholder.org/ver10/tmp/wsdl" 
xmlns:tae="http://www.onvif.org/ver10/actionengine/wsdl" 
xmlns:tan0="http://www.onvif.org/ver20/analytics/wsdl/RuleEngineBinding" 
xmlns:tan1="http://www.onvif.org/ver20/analytics/wsdl/AnalyticsEngineBinding" 
xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" 
xmlns:tds="http://www.onvif.org/ver10/device/wsdl" 
xmlns:tev0="http://www.onvif.org/ver10/events/wsdl/PullPointSubscriptionBinding" 
xmlns:tev1="http://www.onvif.org/ver10/events/wsdl/EventBinding" 
xmlns:tev="http://www.onvif.org/ver10/events/wsdl" 
xmlns:tev2="http://www.onvif.org/ver10/events/wsdl/SubscriptionManagerBinding" 
xmlns:tev3="http://www.onvif.org/ver10/events/wsdl/NotificationProducerBinding" 
xmlns:tev4="http://www.onvif.org/ver10/events/wsdl/NotificationConsumerBinding" 
xmlns:tev5="http://www.onvif.org/ver10/events/wsdl/PullPointBinding" 
xmlns:tev6="http://www.onvif.org/ver10/events/wsdl/CreatePullPointBinding" 
xmlns:ter="http://www.onvif.org/ver10/error" 
xmlns:tns1="http://www.onvif.org/ver10/topics" 
xmlns:tev7="http://www.onvif.org/ver10/events/wsdl/PausableSubscriptionManagerBinding" 
xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" 
xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" 
xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" 
xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" 
xmlns:trt="http://www.onvif.org/ver10/media/wsdl">
 <SOAP-ENV:Header></SOAP-ENV:Header>
 <SOAP-ENV:Body>
   <tmd:GetDigitalInputsResponse>
     <tmd:DigitalInputs token="000"></tmd:DigitalInputs>
     <tmd:DigitalInputs token="100"></tmd:DigitalInputs>
   </tmd:GetDigitalInputsResponse>
 </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

 

В стандарте есть способ получения состояния через Events, но мне в работе он не очень удобен (не могу постоянно отслеживать события). Существуют ли адекватные способы через ONVIF?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...