
• open62541_tutorial_server_method
• open62541_tutorial_server_variabletype
• open62541_server_inheritance
• open62541_server_repeated_job
• open62541_tutorial_server_datasource
• open62541_tutorial_server_object
7.7 Example of a server application: OPC SJA1105
In addition to the default Open62541 examples, OpenIL includes an application for monitoring the SJA1105 traffic counters on
the LS1021A-TSN board. It can be started by running:
[root@openil] $
/usr/bin/opc-sja1105
The application’s information model hierarchically describes the per-port traffic counters of the L2 switch under the
1:SJA1105
node.
On the server, a repeated job runs once per second, reads the port counters over SPI, and manually updates the port counter
nodes.
7.8 FreeOpcUa Client GUI
) is another open source framework for OPC UA communication (both server- and client-
side). For this example, the client GUI available at
https://github.com/FreeOpcUa/opcua-client-gui
the
opc-sja1105
server application from OpenIL.
1. Follow the instructions from the
opcua-client-gui README.md
to install it on a host PC (either Windows or GNU/
Linux). As noted, a Python runtime with Qt5 support is required.
2. In Windows, navigate to the location of your WinPython installation, and open
WinPython Command Prompt.exe
.
3. Execute the following command:
opcua-client
The FreeOpcUa client GUI window pops up.
4. In the address drop-down input field, insert the following text:
opc.tcp://192.168.15.2:16664
After selecting Connect, a connection to the OPC UA server running on Board 2 is established.
5. In the OPC UA client, navigate to the node Root -> Objects -> SJA1105 TSN Switch -> RGMII2 -> Traffic Counters ->
ETH3 ::: N_TXBYTE. This should correspond to the Node ID
ns=1;i=173
. Right click on this node, and select Subscribe
to data change.
6. After this step, the OPC UA client should look like this:
NXP Semiconductors
OPC UA
Open Industrial User Guide, Rev. 1.8, 05/2020
User's Guide
93 / 199