Skip to content

This project is meant to host a OpcUa Server on a Raspberry Pi, in order to get access to the WiFi interface connectivity from any OPC UA Client

Notifications You must be signed in to change notification settings

gianlucadanesin/RpiWiFiOpcUaServer

Repository files navigation

RaspberryPi Opc Ua Server for WiFi interface management

The aim of this project is to host an OpcUa Server on a Raspberry Pi, which gives full control of the WiFi connectivity.
OpcUa has been chosen, as it is commonly available in all major SCADA and HMI systems.
The objective of this application is to allow the SCADA or HMI operator connect the Rpi WiFi to the internet by using his own mobile phone as an hotspot.
The project relies on the OpcFoundation Nuget OPCFoundation.NetStandard.Opc.Ua
https://www.nuget.org/packages/OPCFoundation.NetStandard.Opc.Ua/

NetCore Console App deploying on Arm

dotnet publish -r linux-arm --self-contained -f netcoreapp2.0

Raspberry Pi Deploy Guideline

Procedures to be performed on the Raspberry Pi (Raspian Stretch)

1-Install the .NET Core Runtime 2.0

See the tutorial below for the installation of the Net Core Runtime in the Raspberry Pi https://blogs.msdn.microsoft.com/david/2017/07/20/setting_up_raspian_and_dotnet_core_2_0_on_a_raspberry_pi/

2-INSTALL NETWORK MANAGER

sudo apt-get install network-manager

3-SET STATIC IP FOR LAN and network-manager for Wifi

modify /etc/network/interfaces

auto lo
iface lo inet loopback

iface eth0 inet static
address 192.168.1.132 (* SAMPLE IP ADDRESS )
gateway 192.168.1.254 (
SAMPLE GATEWAY IP ADDRESS )
netmask 255.255.255.0 (
SAMPLE SUBNET MASK *)

4-LAUNCH NET CORE APP:

terminal on app folder
chmod 755 ./netcoreapp
./netcoreapp

Connecting from a OPC UA Client

For local browsing, use the address: opc.tcp://localhost:62567/RpiWiFiOpcUaServer

Tip for Siemens Simatic TIA Advanced

OPC UA Client driver on TIA Advanced requires name resolution.
For the driver to work, you need to enter the OpcUa server IP address on the host file (On Windows PCs), or lmhosts registry entries (On Windows CE)
https://support.microsoft.com/en-us/help/199370/how-to-load-host-entries-into-windows-ce-device

About

This project is meant to host a OpcUa Server on a Raspberry Pi, in order to get access to the WiFi interface connectivity from any OPC UA Client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages