Skip to content

Latest commit

 

History

History
81 lines (54 loc) · 2.3 KB

plugins.md

File metadata and controls

81 lines (54 loc) · 2.3 KB

Plugins

Using Plugins

Start Plugins

There are 3 ways to start a plugin.

  1. Start with the Converter

Edit opcua_plugin/modules.conf to add plugins you want to run before starting the converter.

  1. Start manually

The following example shows how to start a built-in pymqtt plugin.

$ cd opcua_plugin
$ python3 pymodules/loader.py pymodules/pymqtt 
  1. Use Plugin Manager to start a plugin

Firstly, run the management program to start Plugin Manager:

$ python3 pyutilities/serve/standalone.py

Plguin Manager provides a standard OPC-UA interface to manage plugins. The plugin can be controlled by calling the corresponding API interface, such as starting or stopping etc. You can use any OPC-UA client to access those interfaces such as opcua-client-gui. We also provide a Console tool that allows you to control plugins quickly. To start the built-in pymqtt plugin using the console tool:

$ python3 tests/tools/console.py
Welcome to the (opcua plugin tool) shell.
Type help or ? to list commands.
(opcua plugin tool) > 

When you start, you will see the above message. Then start the plugin:

(opcua plugin tool) > start_plugin MqttPlugin
OK

Please check Console for usages.

Building and Running C Plugins

You may need to build C plugins before use. Check opcua_plugin/cmodules/README.md for details.

Default Plugin List

The following plugins are included by default in Converter for OPC UA.

Python Plugins

pydataproc
pydb-kv         
pyfile-receiver
pyfilesys    
pymodbus-tcp
pymqtt       
pyscpi   

C Plugins

cmodbus-serial

Please check README.md in each plugin's directory for details.

Configurure Plugins

A plugin consists of two configuration files:

  1. Plugin description (.json) is a JSON formatted file including the protocol standard, description version, and user data.

  2. Configururation file (.conf) for information, security and connection information.

Please refer to Plugin Configuration for details.

Developing Plugins

Please refer to Plugin Developer Guide for details.