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

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

Repository files navigation

Introduction

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

Scenarios

modbus 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 (modbus client) and leaf devices (modbus 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 modbus Server Simulator

  2. Build and publish modbus opaque 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 modbus CRUD

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

    • Method name: connect, Module name: modbus_crud, Payload: [{"serverId": "modbus01", "host": "<YOUR_MODBUS_SERVER_VM_IPADDRESS>", "port": <YOUR_MODBUS_SERVER_PORT>}]
  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 (modbus client) and leaf devices (modbus server) known in the cloud.

  1. Setup and run modbus Server Simulator

  2. Build and publish modbus lucid 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 modbus CRUD

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

    • Method name: connect, Module name: modbus_crud, Payload: [{"serverId": "modbus01", "host": "<YOUR_MODBUS_SERVER_VM_IPADDRESS>", "port": <YOUR_MODBUS_SERVER_PORT>}]
  8. Confim that IoT Edge device child device modbus01 status shows "Provisioned" in your IoT Central application

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

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published