简体   繁体   English

OPC连接建立

[英]OPC connection establishment

I am a newbie. 我是新手。 I have searched various forums for opc application. 我在各种论坛上搜索了opc应用程序。 It seem they are using US SDKs to create opc client and server application. 似乎他们正在使用美国SDK来创建opc客户端和服务器应用程序。 I have gone through Unified automation SDK and i am sucessful to connect, read and write. 我已经通过了统一自动化SDK,并且可以成功进行连接,读取和写入。 But i need to create my own opc application. 但是我需要创建自己的opc应用程序。 I wanted to know how to connect opc server and client without using any external SDKs or application. 我想知道如何在不使用任何外部SDK或应用程序的情况下连接opc服务器和客户端。 In my first step i want to know the communication packet required to establish the connection in between server and client. 在我的第一步中,我想知道在服务器和客户端之间建立连接所需的通信数据包。 I have tried wireshark to see the communication packet but i couldnot figure them out. 我曾尝试用wireshark来查看通信数据包,但无法弄清楚它们。

I want to make a simple program in c++ to establish connection in between opc client and server and preferrably a opc UA. 我想用c ++编写一个简单的程序,以在opc客户端和服务器之间建立连接,最好在opc UA之间建立连接。

I also think that i am doing it wrong way to make opc application. 我也认为我在做opc应用程序时做错了方法。 What can be the right step to start working to develop opc client and opc server. 什么是开始开发opc客户端和opc服务器的正确步骤。

Could you please help me. 请你帮助我好吗。 I have been stuck in this problem for a long time. 我已经在这个问题上困扰了很长时间了。

Regards, Sika 问候,西卡

Starting developping an OPC UA Client/Server has few possibilities : 开始开发OPC UA客户端/服务器的可能性很小:

First is to use one of the Stack provided by OPC Foundation (.NET, Java or C/C++). 首先是使用OPC Foundation提供的堆栈之一(.NET,Java或C / C ++)。 The 1.02 has just been released this month. 1.02本月刚刚发布。 Then you will maybe need to port on your platform depending of the language you want to use. 然后,您可能需要根据要使用的语言在平台上进行移植。 The Stack is only the communication part, you will be required to code everything on it (like SessionManager, SubscriptionsManager,...) to send your data through it. 堆栈只是通信部分,您需要对其中的所有内容进行编码(例如SessionManager,SubscriptionsManager等),以通过它发送数据。 You need to be OPC Foundation member ($) to download it. 您需要成为OPC Foundation会员($)才能下载它。

The second is to try or buy a SDK from a third party : Prosys, Unified Automation, Softing,... You could find them easily on search engine. 第二种是尝试从第三方购买SDK:Prosys,Unified Automation,Softing...。您可以在搜索引擎上轻松找到它们。 They give you a nearly ready to go Client/Server interface where you only have to connect with your data. 它们为您提供了几乎可以使用的客户端/服务器界面,您只需在其中连接数据即可。 It could cost you a lot of money but save you some time. 它可能会花费您很多钱,但可以节省一些时间。

The third is to join one of the open source project such as Open OPC UA giving you the possibility to develop your own OPC UA Client/Server with an OpenSource code base. 第三是加入一个开源项目,例如Open OPC UA,这使您可以使用开放源代码库开发自己的OPC UA客户端/服务器。

BTW there is no more forum on the OPC Foundation website. 顺便说一句,OPC Foundation网站上没有更多论坛。 I recommend you to use this website since it starts to have some OPC topics 我建议您使用此网站,因为它开始包含一些OPC主题

OPC UA communication packet details can be found in Part 6 of the spec. OPC UA通信数据包的详细信息可以在规范的第6部分中找到。 BTW, specs now are available for registered users too (not paying members). 顺便说一句,规格现在也适用于注册用户(非付费会员)。 And SDKs are available under GPL license on GitHub. 而且,SDK可在GitHub上获得GPL许可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM