Skip to content

MindConnect API

Idea

MindConnect Services provide APIs that enables shop floor devices to send data securely and reliably. It allows custom applications (agents) to collect and upload data which shall be stored and used by applications in the cloud.

Access

For accessing this service, you need to have the respective roles listed in MindConnect API roles and scopes.

Agents need a field-side network infrastructure to forward and route outbound HTTPs requests to the Internet.

MindConnect supports multiple agent device classes, strong hardware platforms as well as resource constrained devices. All target agent platforms must comply to the following minimum requirements:

  • HTTP processing
  • TLS
  • JSON parsing
  • JSON Web Token (JWT) generation
  • HMAC generation (preferably SHA2 based hashing)

Users with IP based filtering on their firewall can use the following two static IPs for whitelisting the data upload traffic:

    75.2.111.226
    99.83.250.213

Enabling these two IP addresses is sufficient for agents and clients accessing *.eu1.mindsphere.io.

If the agent or client is using certificate revocation list URLs, these have to be whitelisted in addition. However, this does not cover the interactive login process by Insights Hub/Siemens ID credentials and native access to IDL (AWS S3).

A SSL implementation may want to check the revocation list of Certificate Authorities. If the SSL implementation is trying to get this certificate revocation list at runtime, it needs access to an external URL. It is used for distributing revoked CA certificates by the CA. However, it is more often done by operation system or java updates.

Basics

Data Source Configuration

A data source configuration is needed for interpreting the data it receives from an agent. This configuration contains data sources and data points. Data sources are logical groups, for example, a sensor or a machine, which contains one or more measurable data points, like temperature or pressure.

The data source configuration is defined using the Agent Management Service. For more information, refer to Creating a Data Source Configuration.

Data Point Mapping

Data point mapping is required for storing the data it receives from an agent. This maps the data points from the data source configuration to properties of the digital entity, that represents the agent. When Insights Hub receives data from an agent, it looks up which property the data point is mapped to and stores the data there.

Use the MindConnect Service for defining the data point mapping. For more information, refer to Creating a Data Point Mapping.

Event Mapping

Events originating from the device in the field are sent to Insights Hub using MindConnect APIs. These events are stored in the corresponding agent asset. For example, if a field device is connected to Insights Hub over MCLIB agent, all the events originated from the field device is stored in the MCLIB (core.mclib type) agent. By using event mapping APIs from the agent, these events can now be mapped to appropriate asset in Insights Hub. The API allows you to define mapping criteria. For example, if the event type field source contains “MyMachine”, then map the events to the asset (asset id field in the API). Once the mapping is performed, every time the event of the selected type reaches the agent, the event is automatically stored against the asset. If otherwise, the event remains in the agent itself.

  • If there are no event mappings matching an event, that event will be stored in the agent asset.
  • Multiple mappings can match for an event uploaded. In such a case, all matching mappings will be applied for the event.
  • An asset can have multiple event mappings.
  • Maximum of 50 event mappings can be created per agent.
  • Maximum of 5 event mappings can be created per agent from an event type.

Use the MindConnect Service for defining the event mapping. For more information, refer to Creating Event Mapping.

Data Upload

The MindConnect API allows agents to upload their data to Industrial IoT. This data can be one of the following types:

  • Time Series
  • File
  • Event

The format conforms to a subset of the HTTP multipart specification, but only permits nesting of 2 levels. For more information, refer to Uploading Agent Data.

Standard data types

The MindConnect Service uses standard data types, which allow Industrial IoT to automatically process the data without additional configuration or coding. This means:

  • The API defines how standard data types are transmitted, e.g. how metadata and production data need to be formatted as HTTPs payloads.
  • Standard data types are automatically parsed and the information is stored to (virtual) assets.
  • For each of the standard data types, there is a pre-configured mass data storage available.
  • Data of standard types can be accessed and queried in a standardized way by applications and analytical tools.

The following standard data types for production data are supported:

  • Time Series
    Time Series are data point values that change constantly over time, for example, values from analog sensors like a temperature sensor. This also applies to any other measured values that have an associated timestamp.
  • Events
    Events are based on machine events, for example, emergency stops or machine failures. However, this mechanism can also be used to upload custom notifications, in instances where you do on-site threshold monitoring and want to report a broken threshold.
  • Files
    Files of up to 10 MB can be uploaded per exchange call. The files are attached to the corresponding (virtual) asset, e.g. device log files or complex sensor structures. Files that are uploaded can be referenced by the parent (virtual) asset. The content of these files is not parsed. It requires custom applications or analytical tools to interpret and visualize the data.
  • Data Models
    Data models describe the agent-side asset hierarchy and configuration including measurement points.

Limitations

In order to give optimal performance, MindConnect API provides technical limits on API usage and resources which needs to be incorporated while using it. API technical limits are documented here.

The following are the technical limits for resource usage:

Resource XXS (S4F) XS S M L XL
Max event mapping count per agent 2 50 50 50 50 50
Max event mapping count per agent from an event type 5 5 5 5 5 5
Number of aspect variables to which one datapoint can be mapped 1 5 5 10 10 20

Note

These limits are enforced on Capability Package based environments only.

Features

The MindConnect Service exposes its API to agents for realizing the following tasks:

  • Upload time series
  • Upload files
  • Describe and upload asset data models
  • Upload data of custom data types for custom handling

Example Scenario

The manager of a wind farm wants to collect sensor data of a wind turbine. A developer implements a field application (agent) which collects the sensor data. The agent uses the MindConnect API for uploading the data to Industrial IoT.


Last update: September 23, 2024

Except where otherwise noted, content on this site is licensed under the Development License Agreement.