What is ONVIF?ONVIF: The original is the Open Network Video Interface forum , that is, the open web Interface forums, is an axis, Bosch, Sony and other three companies in 2008 jointly established an international open-type Network Video product standard network interface Development Forum, later by this Technology Development Forum jointly developed open industry standard, use the forum's capital letter nam
(WSDL2H does not support HTTPS and needs to recompile gSOAP, the compilation method references the bottom blog link) to the Generatesource folder.The specific folder hierarchy looks like this:Step three, download onvif related documentsOnvif WSDL and XML Schemas from Onvif official website (http://www.onvif.org/Documents/Specifications.aspx) The specifications page Downloads the WSDL (right-click to save t
-generated code together with CUSTOM/DURATION.C.If ws-discovery is used (e.g. with ONVIF Remotediscovery), also include plugin/wsddapi.h in your code and compile plugin/w SDDAPI.C (see ws-discovery documentation.If It appears that multiple service operations is generated with the same name, such as GetServices and Getservices_ then Remove http://www.onvif.org/onvif/ver10/device/wsdl/devicemgmt.wsdl from the
An important part of the development of ONVIF is authentication, which is mentioned in the first generation of SOAP framework code in the previous article. Include the authentication file in the header file:
#import "Wsse.h"
Onvif to implement the authentication function, there are two ways: direct use of gSOAP source code files +openssl Library, cut the required code in the above file, self-implementation
Prerequisites
The interfaces defined in the device management and control section of the onvif specification are provided in the form of web services. The onvif specification covers the full definition of XML and WSDL. Each terminal device that supports the onvif specification must provide a web service that corresponds to the function. The Data Interaction Betwe
onvif Specification Chinese IntroductionCategory: IPNC product design 2012-11-08 14:54 16393 People read review (5) Favorite Report
Directory (?) [+] What is the implementation mechanism of the ONVIF ONVIF Specification onvif specification of the content of the project based on the
I recently started to learn about the onvif protocol. Here we will record the learning progress.
**************************************** ******************
1. Check whether devices in the LAN support the onvif Protocol
1. Install onvif Test Tool
I use test_tool_v13_06. If. NET Framework 3.5 is not installed on the PC, you will be prompted to install. NET Fra
Onvif:
Onvif specifications describe network video models, interfaces, data types, and Data Interaction modes. And reuse some existing standards, such as the WS series standards. The onvif specification aims to implement a network video Framework Protocol, so that network video products (including video recording front-end and video equipment) produced by diff
Onvif/gsoap dependency and Problems
Onvif is a set of service specifications, Standard Reference
Gsoap is a tool chain based on soap communication interfaces.
That is, when we need to access the onvif web service or implement support for the onvif part, and developed based on C/C ++, we need to use
Atitit onvif protocol Get RTSP address play Java language ATTILX summary
1.1. Get the RTSP address algorithm and Flow 1
1.2.Onvif camera discovery, WS discovery Mechanism, using XCF class library 1
2. Call Getstreamuri get RTSP address, use class library onvif Java Library by Milgo2
2.1. The problem why use this get address can not play 4
1.1. algorithms and
One method is to use the gsoap library WS-discovery, and the other is to directly write a socket multicast message.
The first method is convenient to parse XML and customize XML, and the messages sent are also the Standard Discovery protocol,
This method can receive an XML response, but it cannot be solved! Now you have to parse this part by yourself.
Second, you need to write the XML by yourself and learn more about the protocol.
The third method is to directly generate the soap_recv ___ TDN _
; otherwise, it is C ++ code (related to header files)
-I specifies impORT path (see the preceding Section)
-X: do not generate xml sample files.
-I generates C ++ packaging. The client is xxxxproxy. H (. cpp), and the server side is xxxxservice. H (. cpp ).
Here, we usually need to include-X, or a lot of XML files will be generated.
-I option must be included, otherwise soapxxxxbindingservice. cpp and soapxxxxbindingservice. H files will not be generated.
-I options must also be included.-I
onvif implementation on Linux devices 6: Get the full flow of the camera's streaming addressOverall process:Probe: Find webcam, get webserver address Http://192.168.15.240/onvif/device_serviceGetcapabilities: Gets the device capability file from which to identify the media information address URI: http://192.168.15.240/onvif/Media Getprofiles: Obtain the media
The previous article has roughly planned to discuss gsoap's serialization/parsing programming.
This article describes some important feature methods and usage of gsoap code generation. For example, select a simple type from the C code generated by onvif to test the conversion from XSD _ anytype. This experiment is so important mainly because I had no way to take some _ Any fields in the relevant structure of the generated code. Although the XML struct
1 Background notes
To communicate directly with the camera, the first step must obtain the webserver address, through this address to further obtain the equipment capacity, the provision of media frequency information and so on. The webserver address is in the probe answer package, specifically Xaddrs:http://192.168.15.240/onvif/device_service, and the next acquisition device capability function will use this address for communication.
2 getcapabiliti
Https://github.com/xsmart/onvifcpplibThe library supports profiles and Profileg. This is currently being developed and now has a support eventHere is a sample clientint _tmain (int argc, _tchar* argv[]) {int ret;/* 192.168.1.1 are the NVT, 192.168.1.234 is the NVC */string url = "Http://19 2.168.1.1/onvif/device_service ";/* Below is where to receive the event */string eventnotify =" http://192.168.1.234:9090/ Subscription-2 "; string user =" Admin ";
An error occurred while calling setimagingsettings in onvif imaging. WSDL.
This should be a bug in the onvif official document !! I sent an email to their technical support and asked if it was in a WSDL document.Bug. The answer is: not their co-workers do not provide technical support.
.... Fuck this Organization !!!
My code is generated using gsoap. In the forcepersistence _ attribute of imaging. WSDL, t
"Data Recovery failure description"Company financial personnel for data maintenance, misoperation, in the financial software to initialize the data, because recently did not do backup, it caused a lot of financial documents lost.Because the financial data is very important, the customer is anxious to get back.The data Recovery Analysis "Engineer detection, in SQL Server database Enterprise Manager, discover what the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.