OPC UA Simulation Server

This is an OPC UA simulation server written in Python, which sends out 3 values from a real data set when it gets started. It is intended for testing, especially with the Cisco Edge Intelligence IoT software for data extraction.

Installation

  1. Download or clone all files

git clone https://github.com/flopach/opc-ua-sensor-simulator

  1. Install required Python packages (Python 3 is required)

pip install -r requirements.txt

  1. Extract the sensor.csv file (120MB) located in the ZIP archive.

  2. Run the script (Port 4840 needs to be open!):

python opc-ua-server.py

Sensor Data

When executed, the OPC UA server provides 3 values to the connected clients (infinite loop):

  • Pump Temperature (in Fahrenheit), Float
  • Pump Pressure (in bar), Float
  • Pump Setting (standard or speed), String

The data set Pump sensor data which is available on Kaggle is being used.

Testing

You can test the server immediately by using any OPC UA Client. For example: Simple Python OPC-UA GUI client

opcuaclient

License

This python script is licensed under the LGPL-3.0 License - see the LICENSE.md file for details.

Further Links

View code on GitHub

Code Exchange Community

Get help, share code, and collaborate with other developers in the Code Exchange community.View Community
Disclaimer:
Cisco provides Code Exchange for convenience and informational purposes only, with no support of any kind. This page contains information and links from third-party websites that are governed by their own separate terms. Reference to a project or contributor on this page does not imply any affiliation with or endorsement by Cisco.