Difference between revisions of "OPC-UA Client"

From ESS-WIKI
Jump to: navigation, search
 
(10 intermediate revisions by the same user not shown)
Line 17: Line 17:
 
*Currently support up-link OPC-UA data to WISE-PaaS , not support down-link from WISE-PaaS.
 
*Currently support up-link OPC-UA data to WISE-PaaS , not support down-link from WISE-PaaS.
 
*Detailed features, please see [https://docs.google.com/spreadsheets/d/1hxUJgHvcPYq8f44gmVVmwUCddHhOPBflSRkSKR0H9Q4/edit?ts=5ca2bfc9#gid=348272669 https://docs.google.com/spreadsheets/d/1hxUJgHvcPYq8f44gmVVmwUCddHhOPBflSRkSKR0H9Q4/edit?ts=5ca2bfc9#gid=348272669]
 
*Detailed features, please see [https://docs.google.com/spreadsheets/d/1hxUJgHvcPYq8f44gmVVmwUCddHhOPBflSRkSKR0H9Q4/edit?ts=5ca2bfc9#gid=348272669 https://docs.google.com/spreadsheets/d/1hxUJgHvcPYq8f44gmVVmwUCddHhOPBflSRkSKR0H9Q4/edit?ts=5ca2bfc9#gid=348272669]
 +
 +
<br/>
  
 
= How to =
 
= How to =
Line 23: Line 25:
  
 
*MQTT broker
 
*MQTT broker
*Node.js
+
*.NET Framework 4.6 or above (Note, Windows 10 have already built-in .NET Framework 4.6)
*.NET Framework 3.5 or above
+
  
 
== Installation ==
 
== Installation ==
Line 36: Line 37:
  
  
'''Linux:'''
+
'''Debian:'''
  
1. Download OPC-UA Client&nbsp;for Linux&nbsp;from Release Table.
+
1. Download OPC-UA Client for Debian from [http://ess-wiki.advantech.com.tw/view/OPC-UA_Client#Release Release] Table.
  
 
2. Launch the installer to install it to the machine.
 
2. Launch the installer to install it to the machine.
Line 210: Line 211:
 
<span style="font-size:larger;">This is an overview that displays OPC-UA Service&nbsp;versions and some stats and numbers for each release.</span>
 
<span style="font-size:larger;">This is an overview that displays OPC-UA Service&nbsp;versions and some stats and numbers for each release.</span>
  
{| border="1" cellspacing="1" cellpadding="1" style="width: 1030px;"
+
{| border="1" cellspacing="1" cellpadding="1" style="width: 1292px;"
 
|-
 
|-
 
| style="width: 47px; text-align: center;" | <span style="font-size:larger;">Index</span>
 
| style="width: 47px; text-align: center;" | <span style="font-size:larger;">Index</span>
Line 217: Line 218:
 
| style="width: 78px; text-align: center;" | <span style="font-size:larger;">Platform</span>
 
| style="width: 78px; text-align: center;" | <span style="font-size:larger;">Platform</span>
 
| style="width: 109px; text-align: center;" | <span style="font-size:larger;">OS</span>
 
| style="width: 109px; text-align: center;" | <span style="font-size:larger;">OS</span>
| style="width: 353px; text-align: center;" | <span style="font-size:larger;">Release Note</span>
+
| style="width: 587px; text-align: center;" | <span style="font-size:larger;">Release Note</span>
| style="width: 259px; text-align: center;" | <span style="font-size:larger;">Installer</span>
+
| style="width: 286px; text-align: center;" | <span style="font-size:larger;">Installer</span>
 
|-
 
|-
 
| style="width: 47px; text-align: center;" | <span style="font-size:larger;">1</span>
 
| style="width: 47px; text-align: center;" | <span style="font-size:larger;">1</span>
Line 227: Line 228:
 
| style="width: 78px; text-align: center;" | <span style="font-size:larger;">x86_64 CPU</span><br/>
 
| style="width: 78px; text-align: center;" | <span style="font-size:larger;">x86_64 CPU</span><br/>
 
| style="width: 109px; text-align: center;" | <span style="font-size:larger;">Windows</span><br/>
 
| style="width: 109px; text-align: center;" | <span style="font-size:larger;">Windows</span><br/>
| style="width: 353px; text-align: center;" |  
+
| style="width: 587px;" |  
 
<span style="font-size:medium;">1. Support Multiple OPCUA server.</span>
 
<span style="font-size:medium;">1. Support Multiple OPCUA server.</span>
  
Line 236: Line 237:
 
<span style="font-size:medium;">4. Configurable node alias.&lt;/span&gt;</span>
 
<span style="font-size:medium;">4. Configurable node alias.&lt;/span&gt;</span>
  
<span style="font-size:larger;">[file://eossfs/ESS-Release/EdgeSense/Software/OPCUA_Client/Windows/2.0.1 OPCUA_Client_ReleaseNote_2.0.1.txt]</span>
+
<span style="font-size:larger;">[file://eossfs/ESS-Release/EdgeSense/Software/OPCUA_Client/Windows/2.0.1 OPCUA_Client_for_Windows_ReleaseNote_2.0.1.txt]</span>
 +
 
 +
| style="width: 286px; text-align: center;" | <span style="font-size:larger;">[file://eossfs/ESS-Release/EdgeSense/Software/OPCUA_Client/Windows/2.0.1 device-opcua-client-2.0.1.exe]</span>
 +
|-
 +
| style="width: 47px; text-align: center;" | <span style="font-size: 15.6px;">2</span>
 +
| style="width: 63px; text-align: center;" | <span style="font-size:larger;">v2.0.1</span>
 +
| style="width: 85px; text-align: center;" |
 +
<font size="3">Coming soon</font>
 +
 
 +
| style="width: 78px; text-align: center;" |
 +
<span style="font-size:larger;">ARM</span>
 +
 
 +
<span style="font-size:larger;">CPU</span>
 +
 
 +
| style="width: 109px; text-align: center;" | <span style="font-size: 15.6px;">Debian</span>
 +
| style="width: 587px;" |
 +
<span style="font-size:medium;">1. Support Multiple OPCUA server.</span>
 +
 
 +
<span style="font-size:medium;">2. Support Anonymous, Username/Password security check.</span>
 +
 
 +
<span style="font-size:medium;">3. Support individual node access interval configuration.</span>
 +
 
 +
<span style="font-size:medium;">4. Configurable node alias.&lt;/span&gt;&lt;/span&gt; [file://eossfs/ESS-Release/EdgeSense/Software/OPCUA_Client/Debian OPCUA_Client_for_Debian_ReleaseNote_2.0.1.txt]</span>
  
| style="width: 259px; text-align: center;" | <span style="font-size:larger;">[file://eossfs/ESS-Release/EdgeSense/Software/OPCUA_Client/Windows/2.0.1 device-opcua-client-2.0.1.exe]</span>
+
| style="width: 286px; text-align: center;" | <span style="font-size:larger;">[file://eossfs/ESS-Release/EdgeSense/Software/OPCUA_Client/Debian device-opcua-client-2.0.1-Debian_9.9-rk3399.run]</span>
 
|}
 
|}
  
 
<span style="font-size:larger;">Above files are available at local server, please paste file's&nbsp;url in File Explorer&nbsp;to copy file. ([[EdgeSense_FAQ|How to access to EOSSFS file server]]&nbsp;)</span>
 
<span style="font-size:larger;">Above files are available at local server, please paste file's&nbsp;url in File Explorer&nbsp;to copy file. ([[EdgeSense_FAQ|How to access to EOSSFS file server]]&nbsp;)</span>

Latest revision as of 10:19, 16 January 2020

Introduction

OPC Unified Architecture (OPC UA) is a machine to machine communication protocol for industrial automation developed by the OPC Foundation.


Features

EdgeSense OPC-UA Client aims to collect data from OPC-UA Server and control.

Feature:


How to

Software Requirements

  • MQTT broker
  • .NET Framework 4.6 or above (Note, Windows 10 have already built-in .NET Framework 4.6)

Installation

Windows:

1. Download OPC-UA Client for Windows from Release Table.

2. Double click the installer to launch the installer to install it to the machine.


Debian:

1. Download OPC-UA Client for Debian from Release Table.

2. Launch the installer to install it to the machine.

Configuration

EdgeSense OPC-UA client can manage multi OPC-UA setting and multi NodeID, below settings are default after OPC-UA client installation.


{
    "OPCUA_Server":[
        {
            "Name": "opcua-server-1",
            "endpointUrl":"opc.tcp://opcua-server-1:66666",
            "userIdentity": {
                "userName": "admin",
                "password": ""
            },            
            "NodeIDList":[{"NodeId":"node-id-1","Name":"node-name-1", "Type":"v", "Interval":2},
                          {"NodeId":"node-id-2","Name":"node-name-2", "Type":"v", "Interval":2},
                          {"NodeId":"node-id-3","Name":"node-name-3", "Type":"v", "Interval":2}
                        ]

        },
        {
            "Name": "opcua-server-2",
            "endpointUrl":"opc.tcp://opcua-server-2:66666",
            "userIdentity": {
                "userName": "admin",
                "password": ""
            },            
            "NodeIDList":[{"NodeId":"node-id-4","Name":"node-name-4", "Type":"v", "Interval":2},
                          {"NodeId":"node-id-5","Name":"node-name-5", "Type":"v", "Interval":2},
                          {"NodeId":"node-id-6","Name":"node-name-6", "Type":"v", "Interval":2}
                        ]

        }
    ]
}


Name

  • Assign name for OPC-UA server.

endpointUrl

  • Assign OPC-UA Server Endpoint URL , format is opc:tcp://hostname:Port/  , hostname also can use ip address.

userIdentity

  • Assign username and password for OPC-UA server security check.

NodeIDList

  • NodeId: Assign node ID you'd like to monitor.
  • Name: Assign node name you'd like to show for the node.
  • Type: Assign node type: "v" is Number, "bv" is Boolean, "sv" is String.


v Number
bv Boolean
sv String


  • Interval: Assign node data subscribe/update interval in seconds.



Demonstration

Connect a Unified Automation C++ Demo Server

1. Download Unified Automation C++ Demo Server from https://www.unified-automation.com/downloads/opc-ua-servers.html and install it to the server machine.

2. Launch UaCppServer from Windows Start Menu.

Uacpp-demo-server-01.png


3. Config OPC-UA Client to connect to the Unified Automation C++ Demo Server, Username/Password, Endpoint URL and Node IDs are shown in below.


Username Password
root secret


Endpoint URL Format opc.tcp://<Mancine Name or IP>:<Port>
Endpoint URL for this Demo
opc.tcp://Protocol-Converter-GW:48010


Node Nmae Node ID
AirConditioner_1.Humidity
ns=3;s=AirConditioner_1.Humidity
AirConditioner_1.Temperature
ns=3;s=AirConditioner_1.Temperature
AirConditioner_2.Humidity
ns=3;s=AirConditioner_2.Humidity
AirConditioner_2.Temperature
ns=3;s=AirConditioner_2.Temperature



4. Edit opcua-client.json to set up client configuration, for example:

{
    "OPCUA_Server":[
        {
            "Name": "OPCUA-UACPP-SERVER",
            "endpointUrl":"opc.tcp://Protocol-Converter-GW:48010",
            "userIdentity": {
                "userName": "root",
                "password": "secret"
            },            
            "NodeIDList":[{"NodeId":"ns=3;s=AirConditioner_1.Humidity","Name":"AirConditioner_1.Humidity", "Type":"v", "Interval":2},
                          {"NodeId":"ns=3;s=AirConditioner_1.Temperature","Name":"AirConditioner_1.Temperature", "Type":"v", "Interval":2},
                          {"NodeId":"ns=3;s=AirConditioner_2.Humidity","Name":"AirConditioner_2.Humidity", "Type":"v", "Interval":2},
                          {"NodeId":"ns=3;s=AirConditioner_2.Temperature","Name":"AirConditioner_2.Temperature", "Type":"v", "Interval":2}
                        ]

        }
    ]
}

5. Restart device-opcua-client service from Windows Task Manager.


Release

This is an overview that displays OPC-UA Service versions and some stats and numbers for each release.

Index Version Date Platform OS Release Note Installer
1 v2.0.1

2020/1/03

x86_64 CPU
Windows

1. Support Multiple OPCUA server.

2. Support Anonymous, Username/Password</span>security check.

3. Support individual node access interval configuration.

4. Configurable node alias.</span>

OPCUA_Client_for_Windows_ReleaseNote_2.0.1.txt

device-opcua-client-2.0.1.exe
2 v2.0.1

Coming soon

ARM

CPU

Debian

1. Support Multiple OPCUA server.

2. Support Anonymous, Username/Password security check.

3. Support individual node access interval configuration.

4. Configurable node alias.</span></span> OPCUA_Client_for_Debian_ReleaseNote_2.0.1.txt

device-opcua-client-2.0.1-Debian_9.9-rk3399.run

Above files are available at local server, please paste file's url in File Explorer to copy file. (How to access to EOSSFS file server )