OPC UA 客户端 服务器 标准库源码
Overview This OPC UA reference implementation is targeting the .NET Standard Library. .Net Standard allows developing apps that run on all common platforms available today, including Linux, iOS, Android (via Xamarin) and Windows 7/8/8.1/10 (including embedded/IoT editions) without requiring platform-specific modifications. Furthermore, cloud applications and services (such as ASP.Net, DNX, Azure Websites, Azure Webjobs, Azure Nano Server and Azure Service Fabric) are also supported. Features included 1. Fully ported Core UA stack and SDK (Client, Server, Configuration & Sample assemblies) 2. Sample Servers and Clients, including all required controls, for .Net 4.6, .NetCore and UWP. 3. X.509 certificate support for client and server authentication 4. Anonymous, username, X.509 certificate (experimental) and JWT (experimental) user authentication 5. UA-TCP & HTTPS transports (client and server) 6. Folder certificate-store support 7. Sessions (including UI support in the samples) 8. Subscriptions (including UI support in the samples) Getting Started All the tools you need for .Net Standard come with the .Net Core tools. See here for what you need. How to create self signed certificates for the sample applications On Windows 1. Open a command prompt in the root folder of your repository 2. Run the script CreateAllCerts.cmd in the root folder of your repository to create the certificates for all sample applications. 3. Alternatively, you can run the script CreateCert.cmd in each sample project folder to create new self signed certificates for the application. 4. The self signed certificates are stored in OPC Foundation/CertificateStores/MachineDefault in each application project folder On Linux 1. Open a command prompt 2. Navigate to the project folder of the sample app, e.g. SampleApplications/Samples/NetCoreConsoleClient 3. Run the script ./createcert.sh to create the certificates for the sample applications. 4. The self signed certificates are stored in OPC Foundation/CertificateStores/MachineDefault in each application project folder How to build and run the samples in Visual Studio on Windows 1. Create certificates for all sample applications. 2. Open the solution UA-NetStandard.sln with VisualStudio. 3. Choose a project in the Solution Explorer and set it with a right click as Startup Project. 4. Hit F5 to build and execute the sample. How to build and run the console samples on Windows, Linux and iOS This section describes how to run the NetCoreConsoleClient, NetCoreConsolePublisher and NetCoreConsoleServer sample applications. Please follow instructions in this article to setup the dotnet command line environment for your platform. Prerequisites 1. Once the dotnet command is available, navigate to the root folder in your local copy of the repository and execute dotnet restore. This command calls into NuGet to restore the tree of dependencies. Start the server 1. Open a command prompt 2. Now navigate to the folder SampleApplications/Samples/NetCoreConsoleServer. 3. Run the script ./createcert.sh on Linux or CreateCert.cmd on Windows to create the self signed certificate for the command line application. 4. To run the server sample type dotnet run. The server is now running and waiting for connections. In this sample configuration the server always accepts new client certificates. Start the client 1. Open a command prompt 2. Now navigate to the folder SampleApplications/Samples/NetCoreConsoleClient. 3. Run the script ./createcert.sh on Linux or CreateCert.cmd on Windows to create the self signed certificate for the command line application. 4. To execute the sample type dotnet run to connect to the OPC UA console sample server running on the same host. To connect to another OPC UA server specify the server as first argument and type e.g. dotnet run opc.tcp://myserver:51210/UA/SampleServer. How to build and run the OPC UA Web Telemetry sample • Go to the Azure portal and create a new Storage account. • Open the solution OpcUaWebTelemetry.sln with VisualStudio 2015. • Open the MessageProcessing\Configuration.cs file to configure the app to use your Azure resources (Storage account and IoTHub). // {StorageAccountName} is the name of the storage account and could be found // under Settings->Access keys->Storage account name of your storage account on the Azure portal. // {AccessKey} is the access key of the storage account and could be found // under Settings->Access keys->key1 of your storage account on the Azure portal. public static string StorageConnectionString = "DefaultEndpointsProtocol=https;AccountName={StorageAccountName};AccountKey={AccessKey}"; // {ConsumerGroupName} is the name of a aonsumer group of your IoTHub. The IoTHub you use is the // one you have created for use with the OPC UA Publisher sample. // You need to create this consumer group via the messaging settings of your IoTHub in the Azure portal. // We recommend that you do not share this Consumer group with other consumers, nor that you use the $Default consumer group. public static string EventHubConsumerGroup = "{ConsumerGroupName}"; // {EventHubEndpoint} is the Event Hub compatible endpoint of your IoTHub and could be found // under Settings->Messaging->Event Hub-compatible endpoint of your IoTHub in the Azure portal. // {PrimaryKey} is the IoT Hub primary key for access with iothubowner policy and could be found // under Settings->Shared access policies->iothubowner->Primary key of your IoTHub in the Azure portal. public static string EventHubConnectionString = "Endpoint={EventHubEndpoint};SharedAccessKeyName=iothubowner;{PrimaryKey}"; // {HubName} is the Event Hub compatible name of your IoTHub and could be found // under Settings->Messaging->Event Hub-compatible name of your IoTHub in the Azure portal. public static string EventHubName = "{HubName}"; • Save the file, rebuild the solution and start it. This will start a local instance of the application. • The solution can also be deployed into a Azure App service. Please use VisualStudio 2015's Azure publishing functionality for this purpose. • Now run the OPC UA Publisher sample, connect to a OPC UA server and publish a node. • You should see the node value on the web page after a few seconds. License This repository includes the UA .NetStandard Stack, sample libraries, and sample applications. The UA .NetStandard Stack follows a dual-license: • OPC Foundation Corporate Members: RCL • Everybody else: GPL 2.0 • RCL enables OPC Foundation members to deploy their applications using the UA .NetStandard stack without being required to disclose the application code. Non-members must disclose their application code when using the UA .NetStandard Stack. • Note: Dual license applies to this repository only; GPL 2.0 applies to all derived repositories (for example 'forks'). For details check the License section below. • All samples are provided under the MIT license. Contributing We strongly encourage community participation and contribution to this project. First, please fork the repository and commit your changes there. Once happy with your changes you can generate a 'pull request'. You must agree to the contributor license agreement before we can accept your changes. The CLA and "I AGREE" button is automatically displayed when you perform the pull request. You can preview CLA here.
- 1
- 2
- 3
- 4
- 5
- 6
- 13
- 粉丝: 5
- 资源: 8
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于电转气协同的碳捕集与垃圾焚烧虚拟电厂优化调度研究:MATLAB+CPLEX求解实践,MATLAB代码:计及电转气协同的含碳捕集与垃圾焚烧电厂优化调度 关键词:关键词:电转气;碳捕集;垃圾焚烧;优化
- 组态软件与FX2N PLC结合的自动分拣控制系统:图纸详解、接线、IO配置及组态画面概览,基于组态软件与FX2N PLC的自动分拣控制系统 带解释的梯形图程序,接线图原理图图纸,io分配,组态画面
- 基于S7-300的输送线分拣段电气控制系统:梯形图程序详解、接线图与IO配置及组态画面实现,基于S7-300 输送线分拣段电气控制系统 带解释的梯形图程序,接线图原理图图纸,io分配,组态画面 ,基于
- 基于S7-200 PLC与组态王技术的分拣控制系统设计:梯形图程序、接线图与组态画面全解析,基于S7-200 PLC和组态王的分拣控制系统设计 带解释的梯形图程序,接线图原理图图纸,io分配,组态画面
- 基于PLC的二色分拣机设计与仿真:步进驱动气缸气动原理图研究,基于plc的二色分拣机的设计与仿真步进驱动气缸气动原理图 ,基于plc的二色分拣机设计; 设计与仿真; 步进驱动; 气缸气动原理图,基
- 松下FP XH六轴标准程序:伺服精准控制,点动、定位与循环管理,清晰分块编程,注释详尽的经典之作,松下FP XH六轴标准程序,程序控制六个伺服,轴的点动控制,回零,相对定位,绝对定位,程序结构清晰,分
- 西门子S7-1511 PLC PID控制阀门开度与模拟量转换-博途WinCC监控画面程序实践,西门子S71511PLC PID程序控阀门开度,模拟量转.博途wincc画面,程序完整,西门子S7-15
- 无人值守智能污水处理控制系统:威纶通触摸屏与西门子PLC的联合应用,带详细图纸与程序,稳定运行一年多的实例展示,无人值守污水处理控制系统 威纶通触摸屏与西门子200smart PLC编写的智能污水处
- 西门子1200码垛机与立体库码垛机程序详解:结构明晰、注释完备,涵盖变频器、触摸屏、机器人及视觉相机控制,Modbus TCP通讯与SCL编程,适配博图15.1及以上版本,SIEMENS 西门子120
- Delta 台达PLC-EH3铆压机程序:精准控制3轴与自动上下料,含触摸屏与伺服参数设定,完整注释与电气图纸,Delta 台达PLC-EH3铆压机程序 3轴,Z轴(SMC)电缸下降的距离用的是位置
- jline-demo-1.0-8.el7.x64-86.rpm.tar.gz
- jna-3.5.2-8.el7.x64-86.rpm.tar.gz
- jna-contrib-3.5.2-8.el7.x64-86.rpm.tar.gz
- jna-javadoc-3.5.2-8.el7.x64-86.rpm.tar.gz
- 无线电能传输LCL-S拓扑结构滑模控制移相控制仿真与PI控制模型对比研究,无线电能传输LCL-S拓扑结构(左边两电平逆变器,右边不可控整流结构) 基于滑模控制的移相控制 仿真效果较好 matlab s
- joda-convert-1.3-5.el7.x64-86.rpm.tar.gz
- 1
- 2
- 3
前往页