Method for establishing communication between a first digital twin and a second digital twin
Patent Information
- Application Number
- EP2022822510
- Authority / Receiving Office
- EP · EP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-12-21
- Filing Date
- 2022-11-28
- Publication Date
- 2024-10-30
AI Technical Summary
Communication between digital twins with non-standard interfaces requires significant manual effort for mapping data formats and semantics, making it challenging to establish effective interaction, especially when updates such as firmware updates need to be synchronized across different interfaces.
A method that enables communication between two digital twins by creating a mapping model based on the comparison and analysis of their REST-based APIs, using a K1 algorithm to recognize patterns and translate data transfer between them, allowing for mutual understanding and interpretation of technical and semantic requirements.
Facilitates seamless communication between digital twins by creating a mapping model that acts as an interpreter, reducing the effort required for data mapping and enabling efficient synchronization of updates across different interfaces, and can be applied to any number of digital twins.
Smart Images

Figure 1.1
Abstract
Description
[0001] Method for establishing communication between a first digital twin and a second digital twin
[0002] The invention relates to a method for establishing communication between a first digital twin and a second digital twin, wherein a first REST-based API is assigned to the first digital twin and a second REST-based API is assigned to the second digital twin.
[0003] Automation components used in industrial plants are already known from the state of the art. For example, field devices are used as automation components, which are used in process automation technology as well as in production automation technology. In principle, field devices refer to all devices that are used close to the process and that provide or process-relevant information. Field devices are used to record and / or influence process variables. Measuring devices or sensors are used to record process variables. These are used, for example, for pressure and temperature measurement, conductivity measurement, flow measurement, pH measurement, level measurement, etc. and record the corresponding process variables pressure, temperature, conductivity, pH value, level, flow, etc. Actuators are used to influence process variables.These include, for example, pumps or valves that can influence the flow of a fluid in a pipe or the fill level in a container. In addition to the field devices mentioned above, automation components also include gateways, edge devices, remote I / Os, wireless adapters, and generally devices located at the field level.
[0004] A large number of such automation components are produced and distributed by the Endress+Hauser Group.
[0005] In modern industrial plants, field devices are usually connected to higher-level units via communication networks such as fieldbuses (Profibus®, Foundation® Fieldbus, HART®, etc.). These higher-level units are usually control systems (DCS) or control units, such as a PLC (programmable logic controller). The higher-level units are used, among other things, for process control, process visualization, process monitoring and for commissioning the field devices. The measured values recorded by the field devices, particularly sensors, are transmitted via the respective bus system to one (or possibly several) higher-level units. In addition, data transmission from the higher-level unit to the field devices via the bus system is also required, particularly for the configuration and parameterization of field devices and for controlling actuators.
[0006] In the context of Industry 4.0, or IoT ("Industrial Internet of Things"), the data generated by field devices is often collected directly from the field using so-called data conversion units, known as "edge devices" or "cloud gateways," and automatically transmitted to a central cloud-enabled database (also simply referred to as the "cloud"), which hosts one or more applications. These applications, which offer functions for visualizing and further processing the data stored in the database, can be accessed by a user via the internet.
[0007] It is planned that there will be a digital twin for each of the automation components in the system. A digital twin, also called a digital image, is a virtual representation of the automation component that has the identical configuration, parameter values, current device status, algorithms, etc. of the automation component. The digital twin thus has all relevant properties of the automation component, which fully describe the automation component for its intended purpose. It is planned that the automation component and the digital twin will always be identical with regard to the relevant properties. A change in the properties of the automation component leads to synchronization (via Industry 4.0 or IoT technologies), so that the properties of the digital twin are updated accordingly.
[0008] However, digital twins exist not only for automation components, but can be created for any physical or digital object. For example, applications (software programs) that are run from a cloud, for example, are also intended to have an associated digital twin that fully describes the respective application in terms of its functionality.
[0009] As of today, there are various types of digital twins. These predominantly have non-standardized interfaces. Communication between such digital twins requires a significant amount of mapping effort, i.e., the process of making the data provided by one interface accessible to the other interface in terms of format and semantics. This mapping must be maintained manually. Updates, such as firmware updates on the automation component side, must therefore also be implemented in the corresponding interface. It is not enough for the interfaces of two digital twins to be REST-based, for example; they must also share the same semantics.
[0010] Based on this problem, the invention is based on the object of presenting a method that allows mutual communication between two digital twins that are unknown to each other.
[0011] The object is achieved by a method for establishing communication between a first digital twin and a second digital twin, wherein a first REST-based API is assigned to the first digital twin and wherein a second REST-based API is assigned to the second digital twin, comprising:
[0012] Sending a request to at least one endpoint of the first API and receiving at least one response from the first API;
[0013] Sending a request to at least one endpoint of the second API and receiving at least one response from the second API;
[0014] Comparing and analyzing the at least one response of the first API with the at least one response of the second API;
[0015] Creating at least one mapping model based on the comparison and analysis, wherein the mapping model contains semantic and technical requirements of the first API and the second API; and
[0016] Using the mapping model for mutual communication between the first digital twin and the second digital twin, whereby the mapping model translates a data transmission from one of the two digital twins conforming to the technical and semantic requirements of the API of the other of the two digital twins.
[0017] The method according to the invention thus allows for mapping between the two digital twins for mutual communication. The semantics and format of the responses and / or the expected inputs at the endpoints are learned from both APIs. The resulting mapping model then serves as a kind of interpreter between the first digital twin and the second digital twin.
[0018] REST (“Representational State Transfer”) represents a unified concept of a software architecture for distributed systems, especially web services.
[0019] An API (“Application Programming Interface”) is an interface that allows applications to communicate with each other. A REST-based API is therefore an API built on the REST architecture and is used primarily for machine-to-machine communication. Using such a REST-based API, it is possible to request information from an application, for example, via an HTTP request. The HTTP request is directed to dedicated endpoints of the API.
[0020] An endpoint is, in simple terms, one end of a communication channel. When an API interacts with another system, the points of contact of this communication are considered endpoints. An API consists of a multitude of endpoints that can be addressed. There are types of endpoints that can be queried using a request ("GET", "READ", etc.) and return information in response. The response has API-specific technology, logic, and semantics. Other types of endpoints can receive commands ("PUT", "WRITE", etc.) that allow a value to be written to or set in the application connected to the API. The command must conform to the API's specified technology, logic, and semantics.
[0021] The mapping model can be configured to regulate communication between more than two digital twins. The method according to the invention can thus be applied to any number of digital twins.
[0022] According to an advantageous embodiment of the method according to the invention, at least a list of at least some of all endpoints of the first API and the second API is created in advance by reading the corresponding first API or second API. The respective API is thus queried and, in response to the query, provides the endpoints that are later queried in the method according to the invention.
[0023] An advantageous embodiment of the method according to the invention provides that the response from the first API and / or the second API contains additional information, which is used for the comparison and analysis steps. The additional information, also called "payload," can, for example, be additional information provided by the corresponding digital twin. If a digital twin relates to an automation component, for example, the additional information can contain diagnostic or status data, particularly in the form of a string.
[0024] In an advantageous embodiment of the method according to the invention, a cloud application is used for the steps of comparing, analyzing, and creating the mapping model. The cloud application accesses the APIs of both digital twins and sends the corresponding requests to the available endpoints. The cloud application can advantageously be a so-called "API mapper" or a communication broker.
[0025] The plan is to use a KL algorithm for the steps of comparing, analyzing, and creating the mapping model. The KL algorithm is trained with appropriate training data and is trained to recognize patterns or known structures in the responses contained in the APIs in order to identify the functionality, structure, and semantics of the respective endpoints.
[0026] For the steps of comparing, analyzing, and creating the mapping model, the KL algorithm preferably accesses additional information from an instance assigned or assignable to the cloud application, wherein the instance is a classification model, in particular based on ECLASS, or a continuously expandable database containing a plurality of further mapping models and associated responses from further APIs.
[0027] Furthermore, the AI algorithm can be configured to update the created mapping model whenever the instance has new additional information. Over time, the mapping model is thus continuously refined, increasing its accuracy and reliability.
[0028] According to an advantageous embodiment of the method according to the invention, it is provided that the first API and / or second API is used to send the request and a web service is used to receive the corresponding response. A web service is a standard for machine-to-machine communication used by the cloud application that accesses the respective APIs.
[0029] According to a first advantageous variant of the method according to the invention, it is provided that the first digital twin refers to a first field device of the automation component.
[0030] In an advantageous embodiment of the first variant of the method according to the invention, it is provided that the second digital twin relates to a second automation component, or wherein the second digital twin relates to an application, in particular to a cloud application.
[0031] According to a second advantageous variant of the method according to the invention, it is provided that the first digital twin relates to a first application, in particular to a cloud application, and wherein the second digital twin relates to a second application, in particular to a cloud application.
[0032] Examples of automation components, in particular field devices and network devices such as gateways, edge devices, etc., have already been listed in the introductory part of the description.
[0033] An application, also called application software, is a computer program that performs functions that do not affect the system on which it is running. Such an application does not necessarily have to be run from a cloud, but can, in principle, be deployed on any system or host, as long as it can establish a connection with its digital twin. The system or host can be a server, a PC, a mobile device (smartphone, tablet, etc.), or similar.
[0034] The invention is explained in more detail with reference to the following figure. It shows
[0035] Fig. 1 : an embodiment of the method according to the invention.
[0036] Fig. 1 shows an exemplary application of the method according to the invention. Two digital twins DT1, DT2 are provided for this purpose. The digital twins DT1, DT2 are located on a cloud or a server and can be contacted via the Internet. In this example, the first digital twin DT1 refers to an automation component, more precisely a field device in the form of a temperature sensor. The second digital twin DT2 refers to another automation component, more precisely a field device in the form of a temperature sensor from a different manufacturer.
[0037] To communicate with the digital twins DT1 and DT2, each digital twin DT1 and DT2 is assigned a REST-based API (API1 and API2). Both APIs (API1 and API2) differ in the structure and semantics of the expected commands and output data, so they cannot easily communicate with each other.
[0038] To establish mutual communication, a cloud application (CA) is used. The cloud application (CA) can communicate with the APIs API1 and API2 of the digital twins DT1 and DT2 via web services.
[0039] In a preceding process step, the cloud application CA sends a request to both APIs AP11 and API2, requesting them to provide all endpoints ("GET", "READ", etc.) that a requester can use to obtain data from the respective temperature sensor, as well as those endpoints ("PUT", "WRITE", etc.) that can be used to send commands. The APIs API1 and API2 then provide the cloud application CA with lists of the corresponding endpoints.
[0040] In a first step a), the cloud application CA specifically queries the individual endpoints of the API API1 of the first digital twin DT1. For example, the following endpoint can be queried:
[0041] “GET_SENSOR_DATE (Device ID)”
[0042] In response, the API API1 returns the following first string:
[0043] “23D65H2, 36.43, 16-12-2021 13:32:09, OK”
[0044] In a second process step b), the cloud application CA specifically queries the individual endpoints of the API2 of the first digital twin DT2. For example, the following endpoint can be queried:
[0045] “READ_Data (Device ID Vendor ID)”
[0046] In response, the API API2 returns the following second string:
[0047] “F43G456, 33xx, 35.56, 1 , OK, 3F7, 16.13.35 2021 / 12 / 16”
[0048] The two character strings are stored. Subsequently, in process steps c) to e), multiple instances and / or methods are accessed sequentially or simultaneously. A KL algorithm (step d)), based in particular on machine learning, is used, which analyzes the individual character strings and the semantics and form of the responses to create a mapping model (MO). Such a mapping model (MO) contains the technology, form, and semantics of the two APIs AP11 and API2, or their individual endpoints, and allows for mutual translation of messages according to the requirements of the APIs AP11 and API2.
[0049] One or more existing mapping models stored in a database DB can be accessed (process step c). Recognized patterns in the character strings can be identified and interpreted using additional information stored in an external instance IN (e.g., ECLASS classifications). After the analysis is complete, the mapping model MO is available. This model lists the individual formats and semantics of the endpoints of both APIs API1 and API2.
[0050] The endpoint of the API API1 of the first digital twin DT1 requested in this example, which returned the first string as a response, follows the following structure:
[0051] “Device ID, measured value (PV), timestamp, device status”.
[0052] The endpoint of the API API2 of the second digital twin DT2 requested in this example, which returned the second string as a response, follows the following structure:
[0053] “Device ID, Vendor ID, measured value (PV), TemperatureJJNIT, Health-Status_IO-Link_Master, Timestamp”
[0054] The mapping model MO also contains a mapping between the two APIs AP11 and API2 of the digital twins DT1 and DT2, creating a communication interface between the digital twins DT1 and DT2 on a technical and semantic level. For example, it recognizes that both endpoints essentially allow the same statement about the respective temperature sensor.
[0055] It is also noted that while the structure and semantics of both endpoints are similar, they do not have quite the same number of passed and output parameters. The syntax for the timestamp also differs. API 1 uses the format "DD-MM-YYYY HH:ii:ss," whereas REST API 2 uses the following notation: "hh.ii.ss YYYY / mm / dd."
[0056] While REST API 2 uses the parameter “TemperatureJJN IT” to specify, for example, whether the measured value is “degrees Celsius” or “Fahrenheit”, there is no corresponding parameter in the endpoint of API1 .
[0057] However, the AP11 of the first digital twin DT1 offers another endpoint:
[0058] “GET_ALL_DEVICE_CONFIGURATION_VALUES”
[0059] This also includes the current setting for the temperature value.
[0060] All of this must now be taught to the API2 of the second digital twin, DT2. This means it must understand the semantics and logical structure of API1 of the first digital twin, DT1. In case of doubt, "dummy" or "default values" would have to be generated to execute a method of the other API if the corresponding values are not available.
[0061] Example: The API2 of the second digital twin DT2 requests the health status of the connected IO-Link master. However, this value may not be known. Consequently, a dummy value is generated that represents "Device OK."
[0062] All these rules and assignments are contained in the mapping model MO. The mapping model MO can thus be considered a kind of interpreter between the two digital twins DT1 and DT2.
[0063] For an example of communication between digital twins, a third digital twin is introduced (not shown). This third digital twin refers to a temperature controller. Using the method according to the invention, the API of this digital twin is queried and the semantics and form of the following endpoint are determined:
[0064] “WRITEJNPUTS”
[0065] This endpoint allows you to write setpoints and actual values to the temperature controller. The temperature controller expects a string of the form:
[0066] “Device ID, Role (“Setpoint, Actual Value, Control Deviation”), Actual Value, TemperatureJJNIT, Timestamp”
[0067] The mapping model MO now contains an assignment of the first and second digital twins DT1, DT2 to the third digital twin. This makes it possible, for example, to create a control loop. For this, the third digital twin requires the setpoints of the temperature sensors assigned to the digital twins DT1, DT2 according to the endpoint mentioned above. These are contained in the "Measured Value (PV)" expressions of the respective endpoints. The mapping model MO now identifies all expressions required by the endpoint of the API of the third twin (Device ID, "Setpoint", etc.), identifies the corresponding values in the endpoints of the two APIs API1, API2 and creates a corresponding character string that is sent to the "WRITE_INPUTS" endpoint of the API of the third digital twin. This can be processed directly because it has the correct format and semantics.
[0068] In an alternative example, the second digital twin DT2 refers to another cloud application, for example, an asset management system. This system expects regular updates to the device status of the temperature sensor assigned to the first digital twin DT1. The mapping model allows, on the one hand, the requests from the second digital twin for the device status to be prepared according to the requirements of the respective endpoint of API1. On the other hand, the response from the endpoint of the API1 API of the first digital twin is prepared using the mapping model MO in such a way that it meets the requirements of the corresponding endpoint (for example, a "PUT_DATA" command) and the device status can be correctly stored in the additional cloud application.
[0069] List of reference symbols a), b) . d) Process steps
[0070] API1 first REST-based API API2 second REST-based API
[0071] CA Cloud Application
[0072] DB database
[0073] DT1 first digital twin
[0074] DT2 second digital twin IN instance
[0075] Kl Kl algorithm
[0076] MO mapping model
Claims
Patent claims 1. Method for establishing communication between a first digital twin (DT1) and a second digital twin (DT2), wherein the first digital twin (DT1) is assigned a first REST-based API (API1) and wherein the second digital twin (DT2) is assigned a second REST-based API (API2), comprising: Sending a request to at least one endpoint of the first API (API1) and receiving at least one response from the first API (API1); Sending a request to at least one endpoint of the second API (API2) and receiving at least one response from the second API (API1); Comparing and analyzing at least one response from the first API (API1) with at least one response from the second API (API2); Creating at least one mapping model (MO) by comparing and analyzing, wherein the mapping model (MO) contains semantic and technical requirements of the first API (API1) and the second API (API2); and using the mapping model (MO) for mutual communication between the first digital twin (DT1) and the second digital twin (DT2), wherein the mapping model (MO) translates a data transmission from one of the two digital twins (DT1, DT2) in accordance with the technical and semantic requirements of the API (API1, API2) of the other of the two digital twins (DT1, DT2).
2. Method according to claim 1, wherein at least a list of at least a part of all endpoints of the first API (API1) and the second API (API2) is created in advance by reading the corresponding first API (API1) or second API (API2).
3. Method according to claim 1 or 2, wherein the response of the first API (API1) and / or the second API (API2) includes additional information which is used for the steps of comparing and analyzing.
4. Method according to at least one of the preceding claims, wherein the steps of comparing, analyzing and creating the mapping model (MO) are performed by a cloud application (CA).
5. Method according to claim 4, wherein the cloud application (CA) uses a KL algorithm (Kl) for the steps of comparing, analyzing and creating the mapping model (MO).
6. Method according to claim 5, wherein the KL algorithm (Kl) accesses additional information from an instance (IN) associated or assignable to the cloud application (CA) for the steps of comparing, analyzing and creating the mapping model (MO), wherein the instance (IN) is a classification model, in particular based on ECLASS, or a continuously expandable database (DB) containing a plurality of further mapping models (MO) and associated responses from further APIs.
7. Method according to claim 6, wherein the Kl algorithm (Kl) updates the created mapping model (MO) if the instance (IN) has new additional information.
8. Method according to at least one of the preceding claims, wherein a first API (API1) and / or second API (API2) is used for sending the request and a web service is used for receiving the corresponding response.
9. Method according to at least one of the preceding claims, wherein the first digital twin (DT1) relates to a first automation component.
10. The method according to claim 9, wherein the second digital twin (DT2) relates to a second automation component, or wherein the second digital twin (DT2) relates to an application, in particular a cloud application.
11. Method according to at least one of claims 1 to 8, wherein the first digital twin (DT1) relates to a first application, in particular to a cloud application, and wherein the second digital twin (DT2) relates to a second application, in particular to a cloud application.
