The Northbound consist of one device. In the following this is called "Shopfloor-to-Cloud". Installed Apps:
- IIH Essentials
- Databus
- DataXess
- IIH Semantics
- Common Configurator
- Registry Service
Configure the User and Topic in the Databus Configurator as described here.
Instead of manually configuring you can also import the configuration files:
Databus_Central (Password = Edge1234!)
-
Launch the Databus Configurator and add your related Credentials/Topics:
- Username:
edge
- Password:
edge
- Topic:
ie/#
- Permission:
Publish and Subscribe
- Username:
- Deploy configuration to device
In this section, we will configure the communication between the two acquisition devices (Energy1 and Energy2) and the aggregation device (Shopfloor-to-Cloud).
To do this, follow these steps:
-
Go to Industrial Edge Management UI > Data Connections and open DataXess.
-
It doesn't matter which device you select to launch the app. The configuration will be done centrally for all devices at once.
- Start the configuration by creating a new group
- Add a group name and description and add all 3 devices to it. Make sure to select the central device as the "Aggregator Device" and click "Save".
- Click on one of the setting symbols of your new created group to configure the data that get's exchanged. Select the topics
ie/d/j/simatic/v1/iefc/dp/r/#
andie/m/j/simatic/v1/iefc/dp
for both acquistion devices.
- DataXess will automatically create new topics on the aggregator device were the data will be published.
- Click "Deploy".
- Configure a new user that will be used to subscribe and publish to the configured topics and click "Validate",
If everything was configured correctly, all devices should have a green status. Also, the general connection status msut be in green as well, as shown:
In this section, the necessary configurations will be made to establish communication with the cloud (Insights Hub).
All the following steps for this option will be performed in the "Common Configurator" app on the Aggregation Device (Shopfloor-to-cloud).
-
Go to Edge Device UI > Apps, open Common Configurator. Then, go to Store Data.
-
Click on "Integrate"
-
Confirm the integration in the popup window
Common Configurator needs a connection to the Databus and to Insights Hub.
You need to have a Insights Hub account and create certificates to allow a connection from the Common Configurator.
-
Configure the Databus credentials under "Settings > Databus credentials"
-
Save the configuration
-
Proceed with configuring the Insights Hub connection by clicking "Add" button.
-
Select the Target type. Those are required to allow the Common Configurator to interact with Insights Hubs REST-API.
You need to fill those 3 sections in order to get a proper interaction with Insights Hub:
- Credentials for the application.
- Certificate Credentials.
- Advanced Configuration.
Credentials for the application
In this section, how to fill this information will be explained:
To allow Common Configurator to update the asset model in Insights Hub, The IH Tenant Administrator has to create a Technical User and add the following roles:
- mdsp:core:assetmanagement.admin
- mdsp:core:assetmodeler.fullaccess
- mdsp:core:mindconnect.fullaccess
To do this, go to Insights Hub UI > Settings:
Go to User Management > Technical Users:
Select Create technical user:
Assign a name and click on "Create technical user":
The following tab will appear. Make sure to save the generated password and assign the previously described roles:
Now assign the required information as follows:
- Name: Shopfloor-to-Cloud
- App Id: enter the technical user you created
- Password: enter the technical user generated password
Certificate Credentials.
In this section, how to fill this information will be explained:
To do this, go to Insights Hub UI > Asset Manager:
Then, go to Asset Manager > Connectivity > MQTT Certificates:
Click on "Create a new certificate":
Now, select the type of authentication:
Create the certificate name and enter the author email:
As soon as you click on the "Create & Download" button, the following files will be automatically downloaded:
- Certificate file (.pem)
- Certificate key file (.key)
Now assign the required information as follows:
- Tenant: enter your Insights Hub Tenant you can find this in your Insights Hub URL "https://[tenant].[region].mindsphere.io/home"
- Device name: enter your device name, for this case, it was named "Shopfloor-to-Cloud"
- Certificate: upload the .pem file
- Key: upload the .key file
- Region enter your region you can find this in your Insights Hub URL "https://[tenant].[region].mindsphere.io/home"
- Broker URL: mindconnectmqtt.eu1.mindsphere.io
- Broker Port: 8883
Advanced Configuration
In this section, how to fill this information will be explained:
Assign the required information as follows:
- Insights Hub Broker Root CA: upload the .pem file, for this case, you can leave in blank
- Publishing interval in seconds: enter the period of time between each publication of data collected by the connected device
- MQTT QoS: enter the message delivery guarantee level to the MQTT protocol
Important
More information can be found in the Common Configurator documentation and here. Information on how to create connector certificates can be found here, here and here.
-
Click "Save". The connection will be established and you should see a green status in the Insights Hub connection on the Common Configurator "Home" window:
-
Go to "Define Data > Organize" to create an Asset Model and connect the variables
-
Add the following structure:
Important
Check the "Storage" and "Cloud Sync" checkbox for each variable
-
Deploy the configuration. The incoming data from Energy1 and Energy2 will now be stored in the integrated IIH Essentials. Under "Store Data" you can see the created Asset model and the datapoints.
In Insights Hub Energy Manager, you should now also see your data structure from Common Configurator.
Up to this point, the following steps have been completed:
-
Communication has been established between the Southbound devices (Energy1 and Energy2) and the Northbound device (Shopfloor-to-Cloud).
-
Communication has been established between the Northbound device (Shopfloor-to-Cloud) and the cloud (Insights Hub).
From here onwards, the Energy Manager application hosted in the cloud will be used to create a dashboard with the preprocessed data sourced from the Northbound device.
This Energy Manager will be setup in here