13
How to Connect dataFEED OPC Suite to Azure IoT Hub

How to Connect dataFEED OPC Suite to Azure IoT Hub€¦ · Azure IoT Hub • Start . dataFEED OPC Suite. configuration • Select Data Destination / MQTT Broker • Add MQTT Broker

  • Upload
    others

  • View
    26

  • Download
    0

Embed Size (px)

Citation preview

Page 1: How to Connect dataFEED OPC Suite to Azure IoT Hub€¦ · Azure IoT Hub • Start . dataFEED OPC Suite. configuration • Select Data Destination / MQTT Broker • Add MQTT Broker

Configuration Manual

How to Connect dataFEED OPC Suite to Azure IoT Hub

Page 2: How to Connect dataFEED OPC Suite to Azure IoT Hub€¦ · Azure IoT Hub • Start . dataFEED OPC Suite. configuration • Select Data Destination / MQTT Broker • Add MQTT Broker

Configuration Manual

How to Connnect dataFEED OPC Suite to Azure IoT Hub1. Download Device ExplorerIf not available yet, download latest Device Explorer version from• https://github.com/Azure/azure-iot-sdk-csharp/releases

2. Connect Device Explorer to Azure IoT HubIn Azure IoT Hub:

• Search for IoT Hub

• Select IoT Hub to be connected or create a new one

Page 3: How to Connect dataFEED OPC Suite to Azure IoT Hub€¦ · Azure IoT Hub • Start . dataFEED OPC Suite. configuration • Select Data Destination / MQTT Broker • Add MQTT Broker

Configuration Manual

• Select Shared access policies Settings

• Select iothubowner Policy• Copy Connection string - primary key

Page 4: How to Connect dataFEED OPC Suite to Azure IoT Hub€¦ · Azure IoT Hub • Start . dataFEED OPC Suite. configuration • Select Data Destination / MQTT Broker • Add MQTT Broker

Configuration Manual

In Device Explorer:

• Paste connection string to IoT Hub Connection String field• Press Update button

3. Create MQTT Connection in Azure IoT HubIn Azure IoT Hub:

• Select IoT devices policies Explorers• Click Add link

Page 5: How to Connect dataFEED OPC Suite to Azure IoT Hub€¦ · Azure IoT Hub • Start . dataFEED OPC Suite. configuration • Select Data Destination / MQTT Broker • Add MQTT Broker

Configuration Manual

• Define unique Device ID (23 characters maximum)• Do not modify default settings for rest of the fields• Press Save button

In Device Explorer:

• Select Management tab• Select IoT Hub device• Press SAS Token... button

Page 6: How to Connect dataFEED OPC Suite to Azure IoT Hub€¦ · Azure IoT Hub • Start . dataFEED OPC Suite. configuration • Select Data Destination / MQTT Broker • Add MQTT Broker

Configuration Manual

• Define SAS duration in TTL (Days) (e.g. to 365 days)• Copy generated SAS token string for later use• Press Generate button

4. Connect dataFEED OPC Suite to Azure IoT Hub• Start dataFEED OPC Suite configuration• Select Data Destination / MQTT Broker• Add MQTT Broker connection

• Enter connection name in Connection name field• Enter device ID of created Azure IoT Hub device in Client ID field• Press Next button

Page 7: How to Connect dataFEED OPC Suite to Azure IoT Hub€¦ · Azure IoT Hub • Start . dataFEED OPC Suite. configuration • Select Data Destination / MQTT Broker • Add MQTT Broker

Configuration Manual

• Set MQTT Broker URI to ssl://<IoT Hub Name>.azure-devices.net:8883• Set User Identity in Authentication Settings to User name and password• Set User Name in Authentication Settings to IoT Hub Name>.azure-devices.net/<DeviceID• Set Password in Authentication Settings to part of generated SAS Token after SharedAccessSignature=

string (e.g. string beginning with SharedAccessSignature sr=Softing-IoT-Hub-SalesDemo.azure-devices.net)

• Press Connection Test button to verify connection• Press Next button

Page 8: How to Connect dataFEED OPC Suite to Azure IoT Hub€¦ · Azure IoT Hub • Start . dataFEED OPC Suite. configuration • Select Data Destination / MQTT Broker • Add MQTT Broker

Configuration Manual

• Define devices / <Device ID> / messages / events hierarchy• Add topics for data to be sent below• Select topic and press Properties button

Page 9: How to Connect dataFEED OPC Suite to Azure IoT Hub€¦ · Azure IoT Hub • Start . dataFEED OPC Suite. configuration • Select Data Destination / MQTT Broker • Add MQTT Broker

Configuration Manual

• Define Publish Format• Press OK button

• Press Next button at MQTT Topic definition page

Page 10: How to Connect dataFEED OPC Suite to Azure IoT Hub€¦ · Azure IoT Hub • Start . dataFEED OPC Suite. configuration • Select Data Destination / MQTT Broker • Add MQTT Broker

Configuration Manual

• Select Enable Last Will and Testament checkbox, if required• Enter devices/<Device ID>/messages/events/state in Fully hierarchical topic name field• Select Retain checkbox• Leave Disconnected in Message field• Press Finish button

Page 11: How to Connect dataFEED OPC Suite to Azure IoT Hub€¦ · Azure IoT Hub • Start . dataFEED OPC Suite. configuration • Select Data Destination / MQTT Broker • Add MQTT Broker

Configuration Manual

5. Configure Data Exchange• Select Data Processing / Exchange in dataFEED OPC Suite configuration

• Select individual data source item to be sent in Local Namespace - Source Items section• Select individual MQTT item to be used for data exchange in Local Namespace - Destination Items

section• Click Create Exchange Action button for each individual data exchange item pair

Page 12: How to Connect dataFEED OPC Suite to Azure IoT Hub€¦ · Azure IoT Hub • Start . dataFEED OPC Suite. configuration • Select Data Destination / MQTT Broker • Add MQTT Broker

Configuration Manual

6. Test MQTT Connection and Data Exchange• Start dataFEED OPC Suite application

MQTT messages then are sent to Azure IoT Hub

In Azure IoT Hub:

• Select Overview page

In Device Explorer:

• Monitor received data after connecting to IoT Hub

Page 13: How to Connect dataFEED OPC Suite to Azure IoT Hub€¦ · Azure IoT Hub • Start . dataFEED OPC Suite. configuration • Select Data Destination / MQTT Broker • Add MQTT Broker

Configuration Manual

Technical changes reserved © Softing Industrial Automation GmbH, dataFEEDOPCSuite_MicrosoftAzure_C_EN_190501_100, May 2019

Softing Industrial Automation GmbHRichard-Reitzner-Allee 685540 Haar / GermanyPhone: +49 89 456 56 -113Fax: +49 89 456 56 [email protected] https://data-intelligence.softing.com