拙网论坛

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 200|回复: 0

RUNNING OPC UA SERVER ON RASPBERRY PI

[复制链接]

949

主题

1001

帖子

3736

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
3736
发表于 2020-1-14 16:41:30 | 显示全部楼层 |阅读模式
https://www.kalycito.com/running-opcua-on-raspberry-pi/

This article explains to run OPC UA client server on Raspberry Pi3 and view the server information model in the client application. Raspberry Pi acts as an OPC server and client nodes

WHAT HARDWARE DO I NEED?
  • One Raspberry Pi3 board
WHAT SOFTWARE DO I NEED?
  • Kindly install Raspbian Buster OS as the python version required for free-opcua-client is 3.6.0 or higher
  • Follow the instruction from the linkto install Raspbian OS in Raspberry Pi and get started to run open62541
INSTALL THE DEPENDENCY PACKAGES:
  • General packages:
    • sudo apt-get install git
    • sudo apt-get dist-upgrade(Shall be used when there are any missing packages)
  • Cmake packages:
    • sudo apt-get install cmake cmake-curses-gui
  • opcua-client packages:
    • sudo apt-get install build-essential gcc python3-pip qttools5-dev python3-pyqt5
    • sudo pip3 install opcua-client
  • Additional Packages:
    • sudo apt-get install libmbedtls-dev check libsubunit-dev python-sphinx graphviz python-sphinx-rtd-theme

OPCUA CLIENT/SERVER:

In this section, we run both server and client application in the same Raspberry Pi board.

OPCUA server application:<open62541-stack-dir>/examples/tutorial_server_firststeps or any other example server applicationOCPUA client application:Free-OPCUA clientRUN OPEN62541 SERVER APPLICATION:
  • git clone https://github.com/open62541/open62541.git
  • cd open62541
  • mkdir build
  • cd build
  • cmake ..
  • ccmake ..
  • Enable UA_BUILD_EXAMPLES, configure(c) and then generate (g)
  • make
  • cd bin/examples
  • ./tutorial_server_firststeps ( Note: Any example server application can be used)
  • Your server is now running and will be listening in the port 4840
RUN CLIENT APPLICATION:
  • After installing all the dependency package, open the terminal and execute the following command
    • opcua-client
  • Click on connect in the opcua-client application
  • Now you can see the sever details listed in the client application as provided in the screen shot.
  • The highlighted server information listed on the client application ensures that the OPCUA client and server are communicating with each other
  • Note: Information about the server will not be displayed if the client/server communication is not established

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|抱朴守拙BBS

GMT+8, 2025-5-26 00:44 , Processed in 0.178159 second(s), 18 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表