1 Star 0 Fork 2

随风 / OpcUaStack

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

OpcUaStack

http://jenkins.asneg.de:8080/job/OpcUaStack/job/master/badge/icon https://img.shields.io/github/downloads/ASNeG/OpcUaStack/total.svg?style=social:alt:GithubAllReleases:target:https://github.com/ASNeG/OpcUaStack

About

ASNeG OPC UA Stack is an open source framework for development and distribution of OPC UA client\server applications. It provides SDK to write your applications in C++ and an infrastructure to run and distribute them.

The stack contains the following parts:

  • OpcUaStackClient is a client library, which can be used to implement a client OPC UA application in C++.
  • OpcUaStackServer is a server library, which can be used to implement a server OPC UA application in C++.
  • OPC UA Application Server provides a server environment to run user OPC UA client\server applications as dynamic libraries.
  • OPC UA Project Generator helps to create and distribute a new user application for Application Server.

All parts of the stack are cross-platform and support Linux and Windows operation systems.

Features

  • SDK for Client\Server application
  • Application Server to run OPC UA application as dynamic libraries
  • Settings and OPC UA information model in XML format
  • Auto-generating a user application frame
  • Support Docker
  • Support DEB and RPM package types to distribute user applications on Linux
  • Support MSI package type to distribute user applications on Windows

In the development stage:

  • Code generator to create C++ classes representing OPC UA types, objects and events from XML (Nodesets)
  • Multi-thread model (currently all application modules run in only one thread)
  • PubSub (Part 14) implementation

The information about the coverage of OPC UA specification you can find here

Installing

See here.

Usage

In order to create a user application OPC UA Stack provides a project builder:

$ OpcUaProjectBuilder3 MyProject ProjectDescription 9012

The builder creates a template of OPC UA application project in directory MyProject. The template is ready to be compiled and installed. Below there is an example for local installation (DEB installation is also possible):

$ cd MyPorject
$ sh build.sh local

The user application is installed in directory $HOME/.ASNeG or C:ASNeG by default. And you can run it by using OPC UA Server:

On Linux

$ export PATH=$PATH:$HOME/.ASNeG/usr/bin
$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/.ASNeG/usr/lib/
$ OpcUaServer3 $HOME/.ASNeG/etc/OpcUaStack/MyProject/OpcUaServer.xml

On Windows

$ set PATH=%PATH%;C:\ASNeG\usr\lib\
$ set PATH=%PATH%;C:\ASNeG\usr\bin\
$ OpcUaServer3 CONSOLE C:\ASNeG\etc\OpcUaStack\MyProject\OpcUaServer.xml

The server reads the setting from file OpcUaServer.xml and runs the user application. Now the application is available via OPC UA protocol on port 9012.

For more information about how to write your own OPC UA client server application see example and ASNeG-Demo.

References

空文件

简介

暂无描述 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/tomyang1898/OpcUaStack.git
git@gitee.com:tomyang1898/OpcUaStack.git
tomyang1898
OpcUaStack
OpcUaStack
master

搜索帮助