Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

iot-for-all/iotc-opcua-iotedge-gateway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

In this step-by-step workshop you will connect OPC UA device(s) with IoT Central application via an IoT Edge Gateway device

Scenarios

OPC UA devices connected to IoT Central via IoT Edge Gateway using the following patterns:

  • Opaque: In this pattern IoT Edge Gateway is only device known in the cloud
  • Lucid: here IoT Edge Gateway (OPC UA client) and leaf devices (OPC UA server) known in the cloud

 

Opaque pattern

In this pattern IoT Edge Gateway is only device known in the cloud. All capabilities are part of that one device.

  1. Setup and run OPC UA Server Simulator

  2. Build and publish OPC UA custom IoT Edge module

  3. Setup IoT Central application

  4. Deploy an IoT Edge enabled Linux VM

  5. Confim that IoT Edge device status shows "Provisioned" in your IoT Central application

  6. IoT Edge Gateway commands to handle OPC UA CRUD

  7. Connect to your OPC UA server using the following "model-less command" command as mentioned in step 6:

    • Method name: connect, Module name: opcua_crud, Payload: [{"serverId": "opcua_client_1", "url": "opc.tcp://<YOUR_OPCUA_SERVER_VM_IPADDRESS>:4840/cnc_widget/server/"}]
  8. click on IoT Edge Gateway device and select "Raw data" tab and verify the telemetry is flowing

 

Lucid pattern

In this pattern IoT Edge Gateway (OPC UA client) and leaf devices (OPC UA server) known in the cloud.

  1. Setup and run OPC UA Server Simulator

  2. Build and publish OPC UA custom IoT Edge modules

  3. Setup IoT Central application

  4. Deploy an IoT Edge enabled Linux VM

  5. Confim that IoT Edge device status shows "Provisioned" in your IoT Central application

  6. IoT Edge Gateway commands to handle OPC UA CRUD

  7. Connect to your OPC UA server using the following "model-less command" command as mentioned in step 6:

    • Method name: connect, Module name: opcua_crud, Payload: [{"serverId": "opcua01", "url": "opc.tcp://<YOUR_OPCUA_SERVER_VM_IPADDRESS>:4840/cnc_widget/server/"}]
  8. Confim that IoT Edge device child device opcua01 status shows "Provisioned" in your IoT Central application

  9. Confim that IoT Edge device has opcua01 device as its child device in your IoT Central application

  10. Click on opcua01 device and select "Raw data" tab and verify the telemetry is flowing

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published