In this step-by-step workshop you will connect modbus device(s) with IoT Central application via an IoT Edge Gateway device
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
In this pattern IoT Edge Gateway is only device known in the cloud. All capabilities are part of that one device.
-
Setup and run modbus Server Simulator
-
Build and publish modbus opaque custom IoT Edge module
-
Setup IoT Central application
-
Deploy an IoT Edge enabled Linux VM
-
Confim that IoT Edge device status shows "Provisioned" in your IoT Central application
-
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>}]
-
click on IoT Edge Gateway device and select "Raw data" tab and verify the telemetry is flowing
In this pattern IoT Edge Gateway (modbus client) and leaf devices (modbus server) known in the cloud.
-
Setup and run modbus Server Simulator
-
Build and publish modbus lucid custom IoT Edge modules
-
Setup IoT Central application
-
Deploy an IoT Edge enabled Linux VM
-
Confim that IoT Edge device status shows "Provisioned" in your IoT Central application
-
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>}]
-
Confim that IoT Edge device child device modbus01 status shows "Provisioned" in your IoT Central application
-
Confim that IoT Edge device has modbus01 device as its child device in your IoT Central application
-
Click on modbus01 device and select "Raw data" tab and verify the telemetry is flowing