Example OPC-UA Device Provisioning Using Edge Xpert Manager

This topic provides an example of how the OPC-UA Device Service can be setup and run using Edge Xpert Manager.

For information on the Edge Xpert OPC-UA Device Service, see OPC-UA.

To add a device to EdgeXpert Manager, complete the following steps:

  1. Select the Add (+) icon, as illustrated below:
Devices Pane
  1. Select the OPC-UA radio button

  2. Select the Next button

  3. Enter the following information:

    OPC-UA Example Parameters
    Field Value
    Name ProsysSimulationServer
    Description Prosys Example Server
    Address 172.17.0.1:53530/OPCUA/SimulatorServer
    Security Basic256Sha256
    Certificate certificate.der
    PrivateKey private_key.der
    SecurityMode SignEncrypt
    ApplicationUri  
    RootNode  
    BrowseDepth 0
    BrowseSubFilter  

Note

  1. The address value is of the format <myServerAddress>:<serverPort><endpointPath>. 172.17.0.1, is the default docker0 address. To find the IP address, open a terminal and enter edgexpert ip
  2. Unsecured connections do not use the SecurityMode option. Valid values are Sign (default) or SignEncrypt.
  3. The ApplicationUri value is optional. If specified, this is the string associated with any certificate used to connect to the remote OPC-UA server. If unspecified, this defaults to "". This example assumes that there is no Application URI in the certificate. If the certificate contains an Application URI, this must be specified or the OPC-UA Device Service cannot connect to the OPC-UA server.
  4. The RootNode value is optional. If specified, this identifies the starting point for both the TranslateBrowsePathsToNodeIds service and the full Server tree browse functionality. The value is of the format <namespaceIndex>,<IDType>=<nodeID>. If unspecified, the TranslateBrowsePathsToNodeIds service and the browse functionality are disabled for the device. For further information on the TranslateBrowsePathsToNodeIds service, see Discovering the nodeID of a Node.
  5. The BrowseDepth value is optional. If specified, this represents the maximum depth of the Server tree browse for the device. If not specified, the value defaults to zero (0), which indicates that the full browse functionality is disabled. For further information on the Browse service, see Enabling the Browse Service.
  6. The BrowseSubFilter is optional. If specified, this describes which node types to subscribe to as part of the browse functionality. If not specified, no nodes are automatically subscribed to.
  1. Select the Add (+) button below the DEVICE PROFILE menu, as illustrated below:
Add Device Profile
  1. Select the /usr/share/edgexpert/examples/opc-ua/prosys-opc-ua-simulation-server-profile.yml example profile
  2. Select the Open button
  3. Select the Upload button, as illustrated below:
Upload Device Profile
  1. Select the Prosys OPC-UA Simulation Server Profile profile from the DEVICE PROFILE menu
  2. Select device-opcua from the DEVICE SERVICE menu, as illustrated below:
Upload Device Profile
  1. Select the OK button to create the device

Note

The OPC-UA service uses Monitored Items instead of Auto Events to collect data from devices. For further information, see the Subscriptions topic of the OPC-UA section.

Viewing Readings

For information on viewing the readings, see Viewing The Readings.