Multi-source heterogeneous data transmission method, client, server and system based on OPC UA protocol
By comparing and generating multi-source heterogeneous data and labeling information, the problem that the OPC UA server cannot detect data abnormalities in time is solved, and timely abnormal judgment and effective data analysis of the data consumption client are realized.
Patent Information
- Application Number
- CN202411208118.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2025-08-22
- Estimated Expiration
- 2044-08-30
AI Technical Summary
In multi-source heterogeneous systems, the OPC UA server cannot detect data abnormalities in time, resulting in the data consumption client being unable to obtain abnormalities in time, affecting the accuracy of decision-making.
By comparing multi-source heterogeneous raw data, marking information is generated and added to the data, preprocessing data is formed, and returned to the OPC UA server and the data consumption client to mark the status information of the data.
Timely abnormal judgment of multi-source heterogeneous data is achieved, invalid data analysis is avoided, and the effectiveness and accuracy of data analysis is improved.
Smart Images

Figure CN119172431B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of industrial automation technology, and in particular to a multi-source heterogeneous data transmission method based on the OPC UA protocol, a data preprocessing client, an OPC UA server, and a multi-source heterogeneous data transmission system based on the OPC UA protocol. Background Art
[0002] In modern industrial automation, OPC UA (OLE for Process Control Unified Architecture) is a widely used communication protocol. It is a technical specification for communication between different devices and systems. Through OPC UA, different devices and systems can communicate and share data, achieving more efficient industrial automation.
[0003] In OPC UA server software (abbreviated as "OPC server"), data source systems publish data to the OPC server through a data publishing mechanism, and data consuming clients subscribe to data from the OPC server through a data subscription mechanism. Although the OPC UA server provides multiple timeout mechanisms, such as client request timeout (Operation Timeout), default session timeout (Default Session Timeout), and session timeout, to determine the online or offline status of data sources, in scenarios with multi-source heterogeneous data sources, especially when the sampling periods of various system parameters are not completely consistent, if some data suddenly cannot be updated due to sensor or device anomalies during data transmission, the OPC server will still retain the last normal data before the disconnection. Regardless of whether the data consuming client uses polling or subscription to read data, it will not be able to filter out the abnormally disconnected data and issue an alarm. This may result in users not being notified of the abnormal situation in a timely manner, delaying the abnormality resolution time. Furthermore, data analysts may use invalid data for analysis and process, resulting in incorrect analysis results, which in turn affects decision makers' ability to make correct decisions.
[0004] Therefore, how to timely detect data anomalies of the OPC server has become a technical problem that needs to be solved urgently by those skilled in the art. Summary of the Invention
[0005] The present invention provides a multi-source heterogeneous data transmission method based on the OPC UA protocol, a data preprocessing client, an OPC UA server, and a multi-source heterogeneous data transmission system based on the OPC UA protocol, which solves the problem in the related art that data anomalies of the OPC server cannot be discovered in time.
[0006] As a first aspect of the present invention, a multi-source heterogeneous data transmission method based on the OPC UA protocol is provided, which includes:
[0007] Sending a data subscription instruction to an OPC UA server to periodically obtain multi-source heterogeneous raw data of a multi-source heterogeneous system, wherein the multi-source heterogeneous raw data includes at least raw parameter values and raw heartbeat values, and the OPC UA server is capable of storing the multi-source heterogeneous raw data of each multi-source heterogeneous system in a raw data unit of a corresponding heterogeneous data group;
[0008] Determining the status information of the multi-source heterogeneous raw data based on a comparison result of the multi-source heterogeneous raw data of the current period and the multi-source heterogeneous raw data of the previous period;
[0009] Generating tag information according to the state information of the multi-source heterogeneous original data, and adding the tag information to the multi-source heterogeneous original data to obtain multi-source heterogeneous pre-processed data, wherein the tag information can at least tag time information and state information of the multi-source heterogeneous original data;
[0010] The multi-source heterogeneous pre-processed data is returned to the OPC UA server. The OPC UA server can store the multi-source heterogeneous pre-processed data in the pre-processed data unit of the corresponding heterogeneous data group. The OPC UA server can also return the multi-source heterogeneous pre-processed data in the pre-processed data unit of the corresponding heterogeneous data group to the data consumption client upon receiving the multi-source heterogeneous data request from the data consumption client.
[0011] Furthermore, the state information of the multi-source heterogeneous raw data is determined based on the comparison result of the multi-source heterogeneous raw data of the current cycle with the multi-source heterogeneous raw data of the previous cycle, including:
[0012] Start the multi-source heterogeneous raw data timeout counter and compare the multi-source heterogeneous raw data of the current cycle with the multi-source heterogeneous raw data of the previous cycle;
[0013] If the multi-source heterogeneous raw data of the current cycle is the same as the multi-source heterogeneous raw data of the previous cycle, the status information of the multi-source heterogeneous raw data of the current cycle is determined according to the count value of the multi-source heterogeneous raw data timeout counter and the abnormality judgment number threshold;
[0014] If the multi-source heterogeneous raw data of the current cycle is different from the multi-source heterogeneous raw data of the previous cycle, it is determined that the multi-source heterogeneous raw data of the current cycle is normal, and the multi-source heterogeneous raw data timeout counter is cleared.
[0015] Furthermore, if the multi-source heterogeneous raw data of the current cycle is the same as the multi-source heterogeneous raw data of the previous cycle, the status information of the multi-source heterogeneous raw data of the current cycle is determined according to the count value of the multi-source heterogeneous raw data timeout counter and the abnormality judgment number threshold, including:
[0016] If the original parameter value of the current cycle is consistent with the original parameter value of the previous cycle, the count value of the original parameter value timeout counter is compared with the abnormality judgment number threshold;
[0017] If the count value of the original parameter value timeout counter is less than the abnormality judgment number threshold, wait for the original parameter value of the next cycle;
[0018] If the count value of the original parameter value timeout counter is not less than the abnormality judgment number threshold, it is determined that the original parameter value of the current cycle is abnormal;
[0019] If the original heartbeat value of the current cycle is consistent with the original heartbeat value of the previous cycle, the count value of the original heartbeat value timeout counter is compared with the abnormality judgment number threshold;
[0020] If the count value of the original heartbeat value timeout counter is less than the abnormal judgment number threshold, wait for the original heartbeat value of the next cycle;
[0021] If the count value of the original heartbeat value timeout counter is not less than the abnormality judgment number threshold, it is determined that the original heartbeat value of the current cycle is abnormal.
[0022] Furthermore, tag information is generated according to the state information of the multi-source heterogeneous original data, and the tag information is added to the multi-source heterogeneous original data to obtain multi-source heterogeneous pre-processed data, wherein the tag information is capable of at least tagging time information and state information of the multi-source heterogeneous original data, including:
[0023] When it is determined that the original parameter value of the current cycle is normal, generating parameter normal marking information, the parameter normal marking information including the parameter timestamp and the parameter status bit normal marking value;
[0024] When it is determined that the original parameter value of the current cycle is abnormal, parameter abnormality mark information is generated, wherein the parameter abnormality mark information includes a parameter timestamp and a parameter status bit abnormality mark value;
[0025] The parameter normal mark information or the parameter abnormal mark information is added to the original parameter value of the current cycle to obtain the preprocessing parameter value of the current cycle.
[0026] Furthermore, tag information is generated according to the state information of the multi-source heterogeneous original data, and the tag information is added to the multi-source heterogeneous original data to obtain multi-source heterogeneous pre-processed data, wherein the tag information is capable of at least tagging time information and state information of the multi-source heterogeneous original data, including:
[0027] When it is determined that the original heartbeat value of the current cycle is normal, generating heartbeat non-abnormal marking information according to the preprocessing parameter value of the current cycle, the heartbeat non-abnormal marking information including a heartbeat timestamp and a heartbeat status bit non-abnormal marking value;
[0028] When it is determined that the original heartbeat value of the current cycle is abnormal, heartbeat abnormality marking information is generated, wherein the heartbeat abnormality marking information includes a heartbeat timestamp and a heartbeat status bit abnormality marking value;
[0029] The heartbeat non-abnormal mark information or the heartbeat abnormal mark information is added to the original heartbeat value of the current cycle to obtain the preprocessed heartbeat value of the current cycle.
[0030] Furthermore, when it is determined that the original heartbeat value of the current cycle is normal, heartbeat non-abnormal marking information is generated according to the preprocessing parameter value of the current cycle, including:
[0031] When it is determined that the original heartbeat value of the current cycle is normal, if the preprocessing parameter value of the current cycle includes parameter normal mark information, generating heartbeat normal mark information, wherein the heartbeat normal mark information includes a heartbeat timestamp and a heartbeat status bit normal mark value;
[0032] When it is determined that the original heartbeat value of the current cycle is normal, if the preprocessing parameter value of the current cycle includes parameter abnormality mark information, heartbeat to be determined mark information is generated, and the heartbeat to be determined mark information includes a heartbeat timestamp and a heartbeat status bit to be determined mark value.
[0033] As another aspect of the present invention, a multi-source heterogeneous data transmission method based on the OPC UA protocol is provided, which includes:
[0034] Acquire multi-source heterogeneous raw data of at least one multi-source heterogeneous system, and store the multi-source heterogeneous raw data of each multi-source heterogeneous system into a raw data unit of a corresponding heterogeneous data group;
[0035] Receive a data subscription instruction from a data preprocessing client, and periodically send multi-source heterogeneous raw data of a multi-source heterogeneous system to the data preprocessing client, wherein the multi-source heterogeneous raw data includes at least original parameter values and original heartbeat values; the data preprocessing client is capable of determining state information of the multi-source heterogeneous raw data based on a comparison result of the multi-source heterogeneous raw data of a current period with the multi-source heterogeneous raw data of a previous period, and is capable of generating tag information based on the state information of the multi-source heterogeneous raw data, and adding the tag information to the multi-source heterogeneous raw data to obtain multi-source heterogeneous preprocessed data, wherein the tag information is capable of at least tagging time information and state information of the multi-source heterogeneous raw data;
[0036] Receive the multi-source heterogeneous pre-processed data returned by the data pre-processing client, and store the multi-source heterogeneous pre-processed data in a pre-processed data unit of a corresponding heterogeneous data group;
[0037] A multi-source heterogeneous data request from a data consumption client is received, and the multi-source heterogeneous pre-processed data in the pre-processed data unit of the corresponding heterogeneous data group is returned to the data consumption client.
[0038] As another aspect of the present invention, a data preprocessing client is provided for implementing the multi-source heterogeneous data transmission method based on the OPC UA protocol described above, which includes:
[0039] A sending module, configured to send a data subscription instruction to an OPC UA server to periodically obtain multi-source heterogeneous raw data of a multi-source heterogeneous system, wherein the multi-source heterogeneous raw data includes at least raw parameter values and raw heartbeat values, and the OPC UA server is capable of storing the multi-source heterogeneous raw data of each multi-source heterogeneous system in a raw data unit of a corresponding heterogeneous data group;
[0040] A determination module, configured to determine status information of the multi-source heterogeneous raw data based on a comparison result of the multi-source heterogeneous raw data of the current cycle with the multi-source heterogeneous raw data of the previous cycle;
[0041] a marking module, configured to generate marking information according to the state information of the multi-source heterogeneous original data, and add the marking information to the multi-source heterogeneous original data to obtain multi-source heterogeneous pre-processed data, wherein the marking information can at least mark time information and state information of the multi-source heterogeneous original data;
[0042] A return module is used to return the multi-source heterogeneous pre-processed data to the OPC UA server. The OPC UA server can store the multi-source heterogeneous pre-processed data in the pre-processed data unit of the corresponding heterogeneous data group. The OPC UA server can also return the multi-source heterogeneous pre-processed data in the pre-processed data unit of the corresponding heterogeneous data group to the data consumption client when receiving a multi-source heterogeneous data request from the data consumption client.
[0043] As another aspect of the present invention, an OPC UA server is provided for implementing the multi-source heterogeneous data transmission method based on the OPC UA protocol described above, which includes:
[0044] An acquisition module is configured to acquire multi-source heterogeneous raw data of at least one multi-source heterogeneous system, and store the multi-source heterogeneous raw data of each multi-source heterogeneous system into a raw data unit of a corresponding heterogeneous data group;
[0045] A first receiving module is configured to receive a data subscription instruction from a data preprocessing client and periodically send multi-source heterogeneous raw data of a multi-source heterogeneous system to the data preprocessing client, wherein the multi-source heterogeneous raw data includes at least original parameter values and original heartbeat values; the data preprocessing client is capable of determining state information of the multi-source heterogeneous raw data based on a comparison result of the multi-source heterogeneous raw data of a current period with the multi-source heterogeneous raw data of a previous period, and is capable of generating tag information based on the state information of the multi-source heterogeneous raw data, and adding the tag information to the multi-source heterogeneous raw data to obtain multi-source heterogeneous preprocessed data, wherein the tag information is capable of at least tagging time information and state information of the multi-source heterogeneous raw data;
[0046] A second receiving module is configured to receive the multi-source heterogeneous pre-processed data returned by the data pre-processing client, and store the multi-source heterogeneous pre-processed data in a pre-processed data unit of a corresponding heterogeneous data group;
[0047] The third receiving module is configured to receive a multi-source heterogeneous data request from a data consumption client, and return the multi-source heterogeneous pre-processed data in the pre-processed data unit of the corresponding heterogeneous data group to the data consumption client.
[0048] As another aspect of the present invention, a multi-source heterogeneous data transmission system based on the OPC UA protocol is provided, comprising: a multi-source heterogeneous system, a data consumption client, the data pre-processing client described above, and the OPC UA server described above, wherein the multi-source heterogeneous system, the data consumption client, and the data pre-processing client are all communicatively connected to the OPC UA server;
[0049] The multi-source heterogeneous system is used to send multi-source heterogeneous original data to the OPC UA server, wherein the multi-source heterogeneous original data includes at least original parameter values and original heartbeat values;
[0050] The data preprocessing client is used to obtain multi-source heterogeneous original data, and can compare the multi-source heterogeneous original data of two adjacent periods and obtain multi-source heterogeneous preprocessed data according to the comparison results;
[0051] The OPC UA server is used to store the multi-source heterogeneous raw data of each multi-source heterogeneous system into the raw data unit of the corresponding heterogeneous data group, and is capable of storing the multi-source heterogeneous pre-processed data into the pre-processed data unit of the corresponding heterogeneous data group;
[0052] The data consumption client is used to obtain the multi-source heterogeneous pre-processed data from the OPC UA server.
[0053] The multi-source heterogeneous data transmission method based on the OPC UA protocol provided by the present invention compares the multi-source heterogeneous raw data to determine the status information of the multi-source heterogeneous raw data, generates tag information based on the status information, and adds the tag information to the multi-source heterogeneous raw data to obtain multi-source heterogeneous pre-processed data. Finally, the multi-source heterogeneous pre-processed data is returned to the OPC UA server. When the OPC UA server receives a multi-source heterogeneous data request from a data consumer client, the multi-source heterogeneous pre-processed data can be returned to the data consumer client. This multi-source heterogeneous data transmission method based on the OPC UA protocol can timely determine whether the multi-source heterogeneous raw data has anomalies by pre-processing the multi-source heterogeneous raw data, and can mark the status information of the multi-source heterogeneous raw data so that the data consumer client can obtain the multi-source heterogeneous raw data with the status tag, thereby enabling the data consumer client to promptly grasp the data anomalies and avoid using invalid data for analysis and utilization, saving manpower and material resources and improving the effectiveness and accuracy of data analysis and utilization. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present invention, but do not constitute a limitation of the present invention.
[0055] Figure 1 This is a flow chart of an embodiment of the multi-source heterogeneous data transmission method based on the OPC UA protocol provided by the present invention.
[0056] Figure 2 This is a flow chart of the method for determining status information of multi-source heterogeneous original data provided by the present invention.
[0057] Figure 3A flowchart of an implementation method for obtaining multi-source heterogeneous preprocessed data provided by the present invention.
[0058] Figure 4a This is a schematic diagram of the format of the original parameter value provided by the present invention after adding parameter normal marking information.
[0059] Figure 4b A schematic diagram of the format of the original parameter value provided by the present invention after adding parameter abnormality mark information.
[0060] Figure 4c This is a schematic diagram of the format of the original heartbeat value provided by the present invention after adding heartbeat non-abnormal mark information or heartbeat abnormal mark information.
[0061] Figure 5 A flowchart of another embodiment of the present invention for obtaining multi-source heterogeneous pre-processed data.
[0062] Figure 6 This is a flowchart of another embodiment of the multi-source heterogeneous data transmission method based on the OPC UA protocol provided by the present invention.
[0063] Figure 7 This is a structural block diagram of the data preprocessing client provided by the present invention.
[0064] Figure 8 This is a structural block diagram of the OPC UA server provided by the present invention.
[0065] Figure 9 This is a structural block diagram of the multi-source heterogeneous data transmission system based on the OPC UA protocol provided by the present invention.
[0066] Figure 10 This is the overall workflow diagram of the multi-source heterogeneous data transmission system based on the OPC UA protocol provided by the present invention.
[0067] Figure 11 This is a schematic diagram of the format of the original heartbeat value and the original parameter value after preprocessing by the data preprocessing client provided by the present invention.
[0068] Figure 12 This is a specific workflow diagram of the data preprocessing client provided by the present invention.
[0069] Figure 13 This is a schematic diagram of the original parameter value labels and numerical display provided by the present invention.
[0070] Figure 14 This is a schematic diagram showing the preprocessing parameter labels and values provided by the present invention.
[0071] Figure 15The data consumption client provided by the present invention subscribes to and analyzes preprocessing parameter values and heartbeat values and displays a schematic diagram. DETAILED DESCRIPTION
[0072] It should be noted that, in the absence of conflict, the embodiments and features of the embodiments of the present invention may be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0073] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.
[0074] It should be noted that the terms "first," "second," and the like in the specification and claims of the present invention and the accompanying drawings are used to distinguish similar objects and are not necessarily used to describe a particular order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate for the embodiments of the present invention described herein. In addition, the terms "including," "having," and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus comprising a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units that are not explicitly listed or that are inherent to these processes, methods, products, or apparatuses.
[0075] In the existing technology, when multi-source heterogeneous data is transmitted based on the OPC UA protocol, data disconnection may occur due to abnormalities in the underlying sensors or equipment, resulting in the inability to perceive abnormal situations in a timely manner or even invalid data being analyzed and utilized.
[0076] Based on this, in this embodiment, a multi-source heterogeneous data transmission method based on the OPC UA protocol is provided. The multi-source heterogeneous data transmission method based on the OPC UA protocol is applied to the data preprocessing client. Figure 1 FIG. 1 is a flowchart of a multi-source heterogeneous data transmission method based on the OPC UA protocol according to an embodiment of the present invention. Figure 1 Shown, including:
[0077] S100: Sending a data subscription instruction to an OPC UA server to periodically obtain multi-source heterogeneous raw data of a multi-source heterogeneous system, where the multi-source heterogeneous raw data includes at least raw parameter values and raw heartbeat values. The OPC UA server is capable of storing the multi-source heterogeneous raw data of each multi-source heterogeneous system in a raw data unit of a corresponding heterogeneous data group.
[0078] In an embodiment of the present invention, a data preprocessing client sends a data subscription instruction to an OPC UA server to subscribe to multi-source heterogeneous raw data. It should be noted that the multi-source heterogeneous raw data may specifically include raw parameter values and raw heartbeat values. A heterogeneous data group is provided in the OPC UA server to store the multi-source heterogeneous data. The heterogeneous data group may specifically include raw data units and preprocessed data units. The multi-source heterogeneous raw data is stored in the raw data units of the heterogeneous data group.
[0079] S200, determining state information of the multi-source heterogeneous raw data based on a comparison result of the multi-source heterogeneous raw data of the current cycle with the multi-source heterogeneous raw data of the previous cycle;
[0080] In an embodiment of the present invention, since the data preprocessing client can periodically obtain multi-source heterogeneous original data, it can compare the multi-source heterogeneous original data of the current period with the multi-source heterogeneous original data of the previous period, and determine whether there are any anomalies in the multi-source heterogeneous original data based on the comparison results.
[0081] S300, generating tag information according to the state information of the multi-source heterogeneous original data, and adding the tag information to the multi-source heterogeneous original data to obtain multi-source heterogeneous pre-processed data, wherein the tag information can at least tag time information and state information of the multi-source heterogeneous original data;
[0082] In an embodiment of the present invention, after determining the status information of the multi-source heterogeneous original data, tag information is generated based on the determined status information, and the tag information is added to the corresponding multi-source heterogeneous original data to obtain multi-source heterogeneous preprocessed data, that is, the multi-source heterogeneous preprocessed data is specifically composed of the multi-source heterogeneous original data and its corresponding tag information.
[0083] S400. Return the multi-source heterogeneous pre-processed data to the OPC UA server. The OPC UA server can store the multi-source heterogeneous pre-processed data in the pre-processed data unit of the corresponding heterogeneous data group. The OPC UA server can also return the multi-source heterogeneous pre-processed data in the pre-processed data unit of the corresponding heterogeneous data group to the data consuming client upon receiving a multi-source heterogeneous data request from the data consuming client.
[0084] Specifically, the data preprocessing client returns the multi-source heterogeneous preprocessed data to the OPC UA server, and the OPC UA server can store the multi-source heterogeneous preprocessed data in the preprocessing unit of the heterogeneous data group. When the OPC UA server receives the multi-source heterogeneous data request from the data consumption client, it can return the multi-source heterogeneous preprocessed data in the preprocessing data unit to the data consumption client.
[0085] In summary, the multi-source heterogeneous data transmission method based on the OPC UA protocol provided by the present invention compares the multi-source heterogeneous original data to determine the status information of the multi-source heterogeneous original data, generates tag information based on the status information, and adds the tag information to the multi-source heterogeneous original data to obtain multi-source heterogeneous pre-processed data. Finally, the multi-source heterogeneous pre-processed data is returned to the OPC UA server. When the OPC UA server receives a multi-source heterogeneous data request from a data consumer client, it can return the multi-source heterogeneous pre-processed data to the data consumer client. This multi-source heterogeneous data transmission method based on the OPC UA protocol can timely determine whether there are any abnormalities in the multi-source heterogeneous original data by performing pre-processing operations on the multi-source heterogeneous original data, and can mark the status information of the multi-source heterogeneous original data so that the data consumer client can obtain the multi-source heterogeneous original data with the status tag, thereby enabling the data consumer client to timely grasp the data abnormalities and avoid using invalid data for analysis and utilization, saving manpower and material resources and improving the effectiveness and accuracy of data analysis and utilization.
[0086] In the embodiment of the present invention, the status information of the multi-source heterogeneous original data is determined according to the comparison result of the multi-source heterogeneous original data of the current cycle and the multi-source heterogeneous original data of the previous cycle, such as Figure 2 Shown, including:
[0087] S210: Start a multi-source heterogeneous raw data timeout counter and compare the multi-source heterogeneous raw data of the current cycle with the multi-source heterogeneous raw data of the previous cycle;
[0088] In an embodiment of the present invention, a multi-source heterogeneous original parameter value timeout counter and a multi-source heterogeneous original heartbeat value timeout counter are respectively started. Specifically, the multi-source heterogeneous original parameter value of the current cycle is compared with the multi-source heterogeneous original parameter value of the previous cycle, and the multi-source heterogeneous heartbeat value of the current cycle is compared with the multi-source heterogeneous heartbeat value of the previous cycle.
[0089] S220: If the multi-source heterogeneous raw data of the current cycle is the same as the multi-source heterogeneous raw data of the previous cycle, determine the status information of the multi-source heterogeneous raw data of the current cycle according to the count value of the multi-source heterogeneous raw data timeout counter and the abnormality judgment number threshold;
[0090] In an embodiment of the present invention, when the multi-source heterogeneous original data of the current period is the same as the multi-source heterogeneous original data of the previous period, it means that the multi-source heterogeneous original data has not been updated normally, and there may be an abnormality. At this time, it is necessary to further judge in combination with the multi-source heterogeneous original data timeout counter to determine the status information of the multi-source heterogeneous original data of the current period.
[0091] Specifically, if the multi-source heterogeneous raw data of the current cycle is the same as the multi-source heterogeneous raw data of the previous cycle, the status information of the multi-source heterogeneous raw data of the current cycle is determined according to the count value of the multi-source heterogeneous raw data timeout counter and the abnormality judgment number threshold, including:
[0092] 1) If the original parameter value of the current cycle is consistent with the original parameter value of the previous cycle, the count value of the original parameter value timeout counter is compared with the abnormality judgment number threshold;
[0093] In the embodiment of the present invention, if the original parameter value of the current cycle is consistent with the original parameter value of the previous cycle, it is necessary to further compare the count value of the original parameter value timeout counter with the abnormality judgment number threshold.
[0094] 2) If the count value of the original parameter value timeout counter is less than the abnormality judgment number threshold, wait for the original parameter value of the next cycle;
[0095] For example, if the abnormality judgment threshold is 3, and the count value of the original parameter value timeout counter of the current cycle is 2, then the count value of the original parameter value timeout counter is less than the abnormality judgment threshold. At this time, the subsequent operation is skipped, that is, it is currently impossible to determine whether it is abnormal, and it is necessary to wait for the next cycle for further determination. That is, after the original parameter value of the next cycle is received, the same judgment method as above is performed to facilitate further determination. For example, after the original parameter value of the next cycle is received, the original parameter value of the next cycle is consistent with the original parameter value of the current cycle, and the count value of the original parameter value timeout counter becomes 3, then it can be determined that the original parameter value of the next cycle is abnormal.
[0096] 3) If the count value of the original parameter value timeout counter is not less than the abnormality judgment number threshold, it is determined that the original parameter value of the current cycle is abnormal;
[0097] In the embodiment of the present invention, if the count value of the original parameter value timeout counter is 3 and the abnormality judgment number threshold is 3, it is determined that the original parameter value of the current cycle is abnormal.
[0098] 4) If the original heartbeat value of the current cycle is consistent with the original heartbeat value of the previous cycle, the count value of the original heartbeat value timeout counter is compared with the abnormality judgment number threshold;
[0099] When judging the state of the original heartbeat value, the judgment is made based on the count value of the original heartbeat value timeout counter.
[0100] That is, when the original heartbeat value of the current cycle is the same as the original heartbeat value of the previous cycle, it is necessary to determine whether the count value of the original heartbeat value timeout counter is greater than the abnormality judgment number threshold.
[0101] 5) If the count value of the original heartbeat value timeout counter is less than the abnormal judgment number threshold, wait for the original heartbeat value of the next cycle;
[0102] Specifically, if the count value of the original heartbeat value timeout counter is 2 and the abnormal judgment threshold is 3, it is temporarily impossible to determine whether the original heartbeat value of the current cycle is abnormal. At this time, subsequent operations are skipped and the judgment is continued after the next original heartbeat value.
[0103] 6) If the count value of the original heartbeat value timeout counter is not less than the abnormality judgment number threshold, it is determined that the original heartbeat value of the current cycle is abnormal.
[0104] Specifically, if the count value of the original heartbeat value timeout counter is 3 and the abnormality judgment number threshold is 3, it is determined that the original heartbeat value of the current cycle is abnormal.
[0105] S230: If the multi-source heterogeneous raw data of the current cycle is different from the multi-source heterogeneous raw data of the previous cycle, determine that the multi-source heterogeneous raw data of the current cycle is normal, and clear the multi-source heterogeneous raw data timeout counter.
[0106] It should be understood that if the original parameter value of the current cycle is different from the original parameter value of the previous cycle, it is determined that the original parameter value of the current cycle is updated normally, that is, the original parameter value of the current cycle is normal, and the count value of the original parameter value timeout counter is cleared to zero; if the original heartbeat value of the current cycle is different from the original heartbeat value of the previous cycle, it is determined that the original heartbeat value of the current cycle is updated normally, that is, the original heartbeat value of the current cycle is normal, and the count value of the original heartbeat value timeout counter is cleared to zero.
[0107] In an embodiment of the present invention, tag information is generated according to the state information of the multi-source heterogeneous original data, and the tag information is added to the multi-source heterogeneous original data to obtain multi-source heterogeneous pre-processed data. The tag information can at least mark the time information and state information of the multi-source heterogeneous original data, such as Figure 3 Shown, including:
[0108] S310: When it is determined that the original parameter value of the current cycle is normal, generate parameter normal flag information, where the parameter normal flag information includes a parameter timestamp and a parameter status bit normal flag value;
[0109] In an embodiment of the present invention, when the original parameter value of the current period is inconsistent with the original parameter value of the previous period after comparison, it is considered that the original parameter value of the current period is normally updated. At this time, parameter normal mark information can be generated. Specifically, the parameter normal mark information can include a parameter timestamp and a parameter status bit normal mark value. Here, the parameter status bit normal mark value can be 1.
[0110] S320: When it is determined that the original parameter value of the current cycle is abnormal, generate parameter abnormality marking information, where the parameter abnormality marking information includes a parameter timestamp and a parameter status bit abnormality marking value;
[0111] When the original parameter value of the current cycle is consistent with the original parameter value of the previous cycle, the original parameter value of the current cycle is considered to be abnormal. At this time, the count value of the original parameter value timeout counter corresponding to the original parameter value of the current cycle needs to be increased by 1, and then the count value of the original parameter value timeout counter is judged whether it is less than the abnormal judgment number threshold. If it is less, the subsequent operations are skipped. If it is not less than, the original parameter value of the current cycle is considered to be abnormal, that is, the original parameter value of the current cycle is unreliable. At this time, parameter abnormality marking information is generated. The parameter abnormality marking information can specifically include the parameter timestamp and the parameter status bit abnormality marking value. The parameter status bit abnormality marking value here can specifically be 3.
[0112] S330: Add the parameter normal mark information or the parameter abnormal mark information to the original parameter value of the current cycle to obtain the preprocessing parameter value of the current cycle.
[0113] In the embodiment of the present invention, when it is determined that the original parameter value of the current cycle is normal, the parameter normal flag information is added to the original parameter value of the current cycle, such as Figure 4a As shown in FIG, it is a format diagram of the preprocessing parameter value when the original parameter value is normal, that is, the preprocessing parameter value is the result of adding a timestamp and a status bit to the original parameter value. Since this is the parameter normal mark information, the status bit of the preprocessing parameter value at this time can be specifically 1. When it is determined that the original parameter value of the current cycle is abnormal, the parameter abnormality mark information is added to the original parameter value of the current cycle, such as Figure 4b The figure shows a format diagram of the preprocessing parameter value when the original parameter value is abnormal, that is, the preprocessing parameter value is the result of adding a timestamp and a status bit to the original parameter value. Since it is parameter abnormality marking information at this time, the status bit of the preprocessing parameter value at this time can specifically be 3. It should be noted here that the parameter value in the preprocessing parameter value when the original parameter value is abnormal must be set to blank, that is, the parameter value in the preprocessing parameter value at the time of abnormality finally stored in the preprocessing unit of the OPC UA server is specifically set to blank, and the original abnormal original parameter value stored in the original data unit must be replaced by the initial default value of the parameter, that is, the initial default value of the parameter is written to the position of the original parameter value in the original data unit, so that the data preprocessing client can subscribe to the latest data in a timely manner when the original parameter returns to normal.
[0114] Therefore, when the embodiment of the present invention transmits the original parameter value, if the original parameter value of the current cycle is inconsistent with the original parameter value of the previous cycle, it is considered that the parameter value is updated normally, and the timeout counter count value corresponding to the parameter is checked at the same time. If the count value is greater than 0, the count value needs to be cleared to 0 to avoid incorrect judgment next time. When the status of the original parameter values in the multi-source heterogeneous system is all determined (that is, the status bit is 1 or 3), the data preprocessing client forwards all preprocessing parameter values to the OPC UA server. When the update status of some parameters is temporarily uncertain (that is, the timeout counter count value of the parameter is less than the number of abnormal judgments), only the preprocessing parameter value with a determined status is forwarded. When the parameter status bit is 3, the format of the preprocessed value is "local timestamp, parameter value is empty, status bit", such as Figure 4b shown.
[0115] In an embodiment of the present invention, tag information is generated according to the state information of the multi-source heterogeneous original data, and the tag information is added to the multi-source heterogeneous original data to obtain multi-source heterogeneous pre-processed data. The tag information can at least mark the time information and state information of the multi-source heterogeneous original data, such as Figure 5 Shown, including:
[0116] S510: When it is determined that the original heartbeat value of the current cycle is normal, generate heartbeat non-abnormal marking information according to the preprocessing parameter value of the current cycle, wherein the heartbeat non-abnormal marking information includes a heartbeat timestamp and a heartbeat status bit non-abnormal marking value;
[0117] In this embodiment of the present invention, the heartbeat update period for each multi-source heterogeneous system is set to 1 second, the threshold for determining the number of connection status anomalies for each system is set to 3, and both the heartbeat update period and the number of status anomaly determinations are written to the data preprocessing client configuration file. A status subscription timeout timer is set for each multi-source heterogeneous system, with a timer interval of 1 second, to periodically check whether the original heartbeat value is updated normally.
[0118] In an embodiment of the present invention, if the original heartbeat value of the current cycle is compared with the original heartbeat value of the previous cycle and they are inconsistent, it is considered that the original heartbeat value of the current cycle is updated normally, and the heartbeat non-abnormal mark information is generated. At this time, the non-abnormal mark value of the heartbeat status bit is 1 or 2, and whether it is specifically 1 or 2 requires further judgment to determine.
[0119] S520: When it is determined that the original heartbeat value of the current cycle is abnormal, generate heartbeat abnormality marking information, where the heartbeat abnormality marking information includes a heartbeat timestamp and a heartbeat status bit abnormality marking value;
[0120] If the original heartbeat value of the current cycle is consistent with the original heartbeat value of the previous cycle after comparison, the original heartbeat value of the current cycle is considered to be abnormal. At this time, the count value of the original heartbeat value timeout counter is increased by 1, and then the count value of the original heartbeat value timeout counter is compared with the abnormal judgment number threshold. If the count value of the original heartbeat value timeout counter is less than the abnormal judgment number threshold, the subsequent operation is skipped. If it is not less than, it is determined that the original heartbeat value of the current cycle is abnormal, that is, the original heartbeat value of the current cycle is unreliable. Based on this, the heartbeat abnormality mark information is generated. The heartbeat status bit abnormal mark value in the heartbeat abnormality mark information can specifically be 3.
[0121] S530: Add the heartbeat non-abnormal mark information or the heartbeat abnormal mark information to the original heartbeat value of the current cycle to obtain a preprocessed heartbeat value of the current cycle.
[0122] The heartbeat non-abnormal mark information or the heartbeat abnormal mark information is added to the original heartbeat value of the current cycle to obtain the pre-processed heartbeat value of the current cycle. Specifically, the format of the pre-processed heartbeat value is the original heartbeat value with the timestamp and heartbeat status bit added, such as Figure 4c shown.
[0123] It should be noted that the current heartbeat value is inconsistent with the previous value. It is considered that the heartbeat value is updated normally. At the same time, the count value of the system status timeout counter is checked. If the count value is greater than 0, the count value needs to be set to 0 to avoid erroneous judgment next time.
[0124] In addition, when the connection status of all multi-source heterogeneous systems is determined (that is, the status bit is 1 or 3), the data preprocessing client forwards all preprocessing heartbeat values to the OPC UA server. When the update status of some heartbeats is temporarily uncertain (that is, the timeout counter count value of the heartbeat value is less than the number of abnormal judgments), only the preprocessing heartbeat values with a determined status are forwarded.
[0125] More specifically, when it is determined that the original heartbeat value of the current cycle is normal, generating heartbeat non-abnormal marking information according to the preprocessing parameter value of the current cycle includes:
[0126] When it is determined that the original heartbeat value of the current cycle is normal, if the preprocessing parameter value of the current cycle includes parameter normal mark information, generating heartbeat normal mark information, wherein the heartbeat normal mark information includes a heartbeat timestamp and a heartbeat status bit normal mark value;
[0127] When it is determined that the original heartbeat value of the current cycle is normal, if the preprocessing parameter value of the current cycle includes parameter abnormality mark information, heartbeat to be determined mark information is generated, and the heartbeat to be determined mark information includes a heartbeat timestamp and a heartbeat status bit to be determined mark value.
[0128] It should be understood that when determining that the original heartbeat value of the current cycle is normal, the determination of the heartbeat status bit in the heartbeat non-abnormal mark information also needs to be judged in combination with the preprocessing parameter value.
[0129] Specifically, when the preprocessing client makes a judgment on the original heartbeat value of the subscription system, if the original heartbeat value of the current cycle is inconsistent with the original heartbeat value of the previous cycle, it is considered that the original heartbeat value of the current cycle is updated normally. At the same time, it is also necessary to count the status bits in the preprocessing parameter values corresponding to all parameters in the system to calculate the status bits of the preprocessing heartbeat value, that is, if the status bits of all preprocessing parameter values are 1, then the status bit in the heartbeat value after preprocessing of the system is 1; if the status bits of some parameters are 1 and the status bits of other parameters are 3, or the status bits of all parameters are 3, then the status bit in the preprocessing heartbeat value of the system is 2. That is, as mentioned above, if the original heartbeat value of the current cycle is inconsistent with the original heartbeat value of the previous cycle after comparison, the non-abnormal mark value of the heartbeat status bit is 1 or 2, and whether it is 1 or 2 is determined according to the status bits of the preprocessing parameter values described herein.
[0130] In an embodiment of the present invention, the preprocessing client judges and packages the original heartbeat value of the system, and writes the preprocessed heartbeat value to the preprocessed status tag corresponding to the system in the OPC UA server status group. The format of the preprocessed heartbeat value is "local timestamp, original heartbeat value, status bit".
[0131] In an embodiment of the present invention, the OPC UA server receives a data subscription instruction from a data consumption client, and returns the multi-source heterogeneous pre-processed data in the pre-processed data unit of the heterogeneous data group to the data consumption client.
[0132] In summary, the multi-source heterogeneous data transmission method based on the OPC UA protocol provided by the present invention, by pre-processing the heartbeat value of the multi-source heterogeneous system, enables the data consumption client to timely grasp the system connection status and the parameter update status within the system, thereby improving the timeliness of identifying system and parameter abnormalities; by pre-processing the original value of the parameter, it can timely judge the abnormality of some parameters, and at the same time, by adding timestamps and status bits, the data consumption client can timely detect the abnormality and remind relevant personnel to handle it, thereby improving the diagnosis capability and handling efficiency of multi-source heterogeneous system data abnormality; by pre-processing the original value of the parameter, the data consumption client can timely grasp the abnormality of the system data, avoid the system from using invalid data for analysis and utilization, save manpower and material resources, and improve the effectiveness and accuracy of data analysis and utilization. Therefore, the multi-source heterogeneous data transmission method based on the OPC UA protocol provided by the present invention can solve the problem that when some parameters in the data source of the multi-source heterogeneous system are not updated in time or are accidentally disconnected, the OPC UA server retains the last normal data, resulting in the data consumer being unable to detect the abnormality in time.
[0133] As another embodiment of the present invention, a multi-source heterogeneous data transmission method based on the OPC UA protocol is provided, which is applied to an OPC UA server, wherein: Figure 6 Shown, including:
[0134] S10, acquiring multi-source heterogeneous raw data of at least one multi-source heterogeneous system, and storing the multi-source heterogeneous raw data of each multi-source heterogeneous system into the raw data unit of the corresponding heterogeneous data group;
[0135] In an embodiment of the present invention, an OPC UA server is capable of connecting to multiple multi-source heterogeneous systems. Therefore, multiple heterogeneous data groups matching the multi-source heterogeneous systems can be created on the OPC UA server. For example, if there are currently N multi-source heterogeneous systems, then N heterogeneous data groups are created, that is, a heterogeneous data group is created for each multi-source heterogeneous system. Each heterogeneous data group includes an original data unit and a pre-processed data unit. The original data unit is used to store multi-source heterogeneous original data, and the pre-processed data unit is used to store multi-source heterogeneous pre-processed data. The multi-source heterogeneous original data specifically stored in the original data unit includes original parameter values and original heartbeat values, and the multi-source heterogeneous pre-processed data stored in the pre-processed data unit includes pre-processed parameter values and pre-processed heartbeat values. The original parameter values and original heartbeat values of the original data unit are both accompanied by original data tags, and the pre-processed parameter values and pre-processed heartbeat values of the pre-processed data unit are both accompanied by pre-processed data tags.
[0136] It should be noted here that the number and type of the original parameter values in the original data unit are consistent with the actual parameter number and type of the multi-source heterogeneous system, and the data of the preprocessed parameter values in the preprocessed data unit are consistent with the actual parameter data, but the parameter type of the preprocessed parameter values in the preprocessed data unit is String.
[0137] S20. Receive a data subscription instruction from a data preprocessing client, and periodically send multi-source heterogeneous raw data of a multi-source heterogeneous system to the data preprocessing client, where the multi-source heterogeneous raw data includes at least original parameter values and original heartbeat values; the data preprocessing client is capable of determining state information of the multi-source heterogeneous raw data based on a comparison result between the multi-source heterogeneous raw data of a current period and the multi-source heterogeneous raw data of a previous period, and is capable of generating tag information based on the state information of the multi-source heterogeneous raw data, and adding the tag information to the multi-source heterogeneous raw data to obtain multi-source heterogeneous preprocessed data, where the tag information is capable of at least tagging time information and state information of the multi-source heterogeneous raw data;
[0138] In an embodiment of the present invention, the OPC UA server receives a data subscription instruction from a data preprocessing client, and the data preprocessing client can preprocess multi-source heterogeneous raw data.
[0139] S30, receiving the multi-source heterogeneous pre-processed data returned by the data pre-processing client, and storing the multi-source heterogeneous pre-processed data in a pre-processed data unit of a corresponding heterogeneous data group;
[0140] Specifically, the multi-source heterogeneous pre-processed data returned by the data pre-processing client is stored in the data pre-processing unit.
[0141] S40 , receiving a multi-source heterogeneous data request from a data consumption client, and returning the multi-source heterogeneous pre-processed data in the pre-processed data unit of the corresponding heterogeneous data group to the data consumption client.
[0142] It should be understood that the data consumption client obtains the data of various multi-source heterogeneous systems on the OPC UA server by subscription, and extracts the timestamp, original parameter value and status bit by obtaining the pre-processed parameter value, and judges whether the original parameter value is credible based on the status bit, that is, if the status bit is 1, the original parameter value is credible, and if it is 3, it is not credible; for the pre-processed heartbeat value, the original heartbeat value and status bit are obtained by parsing the pre-processed heartbeat value, and judges whether the system connection is normal and the status of the parameters in the system based on the status bit, that is, if the status bit is 1, the system connection is normal and all parameters are normal, if the status bit is 2, the system connection is normal but some parameters are updated abnormally, and if the status bit is 3, the system connection is abnormal and all parameter updates are abnormal.
[0143] Therefore, the multi-source heterogeneous data transmission method based on the OPC UA protocol provided by the present invention compares the multi-source heterogeneous original data to determine the status information of the multi-source heterogeneous original data, generates tag information based on the status information, and adds the tag information to the multi-source heterogeneous original data to obtain multi-source heterogeneous pre-processed data. Finally, the multi-source heterogeneous pre-processed data is returned to the OPC UA server. When the OPC UA server receives a multi-source heterogeneous data request from a data consumption client, the multi-source heterogeneous pre-processed data can be returned to the data consumption client. This multi-source heterogeneous data transmission method based on the OPC UA protocol can timely determine whether the multi-source heterogeneous original data has an abnormality by performing pre-processing operations on the multi-source heterogeneous original data, and can mark the status information of the multi-source heterogeneous original data so that the data consumption client can obtain the multi-source heterogeneous original data with the status tag, thereby enabling the data consumption client to timely grasp the data abnormality and avoid using invalid data for analysis and utilization, saving manpower and material resources and improving the effectiveness and accuracy of data analysis and utilization.
[0144] As another embodiment of the present invention, a data preprocessing client is provided for implementing the multi-source heterogeneous data transmission method based on the OPC UA protocol as described above, wherein Figure 7 As shown, the data pre-processing client 100 includes:
[0145] a sending module 110, configured to send a data subscription instruction to an OPC UA server to periodically obtain multi-source heterogeneous raw data of a multi-source heterogeneous system, wherein the multi-source heterogeneous raw data includes at least raw parameter values and raw heartbeat values, and wherein the OPC UA server is capable of storing the multi-source heterogeneous raw data of each multi-source heterogeneous system in a raw data unit of a corresponding heterogeneous data group;
[0146] A determination module 120 is configured to determine status information of the multi-source heterogeneous raw data based on a comparison result between the multi-source heterogeneous raw data of a current cycle and the multi-source heterogeneous raw data of a previous cycle;
[0147] a marking module 130 for generating marking information according to the state information of the multi-source heterogeneous original data, and adding the marking information to the multi-source heterogeneous original data to obtain multi-source heterogeneous pre-processed data, wherein the marking information can at least mark time information and state information of the multi-source heterogeneous original data;
[0148] The return module 140 is used to return the multi-source heterogeneous pre-processed data to the OPC UA server. The OPC UA server can store the multi-source heterogeneous pre-processed data in the pre-processed data unit of the corresponding heterogeneous data group. The OPC UA server can also return the multi-source heterogeneous pre-processed data in the pre-processed data unit of the corresponding heterogeneous data group to the data consumption client when receiving a multi-source heterogeneous data request from the data consumption client.
[0149] The data preprocessing client provided by the present invention compares multi-source heterogeneous raw data to determine the status information of the multi-source heterogeneous raw data, generates tag information based on the status information, and adds the tag information to the multi-source heterogeneous raw data to obtain multi-source heterogeneous preprocessed data. Finally, the multi-source heterogeneous preprocessed data is returned to the OPC UA server. When the OPC UA server receives a multi-source heterogeneous data request from the data consumption client, the multi-source heterogeneous preprocessed data can be returned to the data consumption client. This data preprocessing client can promptly determine whether the multi-source heterogeneous raw data has any abnormalities by performing preprocessing operations on the multi-source heterogeneous raw data, and can mark the status information of the multi-source heterogeneous raw data so that the data consumption client can obtain the multi-source heterogeneous raw data with the status mark, thereby enabling the data consumption client to promptly grasp the data abnormalities and avoid using invalid data for analysis and utilization, saving manpower and material resources and improving the effectiveness and accuracy of data analysis and utilization.
[0150] It should be understood that after the data preprocessing client is started, it subscribes to data from multi-source heterogeneous systems according to system classification, and starts the parameter subscription timeout timer at the same time. The parameter timing interval is the shortest update cycle of the parameters in this system. The timer is used to regularly determine whether the latest subscribed value of the parameter is consistent with the previous value. If not, it is considered that the parameter value is updated normally, that is, the parameter status bit is 1. At the same time, the subscription timeout counter count value of the parameter is checked. If it is not 0, it is set to 0, and then the local timestamp is read, and the original parameter value is packaged into the format of "local timestamp, original parameter value, status bit", and then written to the corresponding preprocessing parameter tag on the OPC UA server; if it is consistent, it is considered that the parameter value update is abnormal, and the timeout counter corresponding to the parameter is counted by 1, and then it is determined whether the timeout counter count value is less than the number of abnormal judgments of the parameter. If it is less, the subsequent operations are skipped. If it is not less, the parameter status bit is 3, and then the local timestamp is read, and the original parameter value is packaged into the format of "local timestamp, original parameter value, status bit", and then written to the OPC The corresponding pre-processing parameter tag on the UA server is written, and the initial default value of the parameter is written to the original parameter tag corresponding to the parameter on the OPC UA server.
[0151] In an embodiment of the present invention, if the parameter value subscribed to by the pre-processing client is equal to the initial default value of the parameter, then when packaging, the original setting of the parameter is assumed to be empty, and the format after packaging is "local timestamp, original parameter value set to empty, status bit", thereby avoiding affecting the data consumption client's acceptance of the original value of the parameter.
[0152] In addition, after the data preprocessing client is started, it subscribes to the heartbeat values of multi-source heterogeneous systems according to system classification, and starts the heartbeat status subscription timeout timer at the same time. The timing interval is 1s. This timer is used to regularly determine whether the heartbeat value of the latest parameter subscription is consistent with the previous heartbeat value. If not, the system heartbeat value is considered to be updated normally, and the preprocessed status bit is 1 or 2. Then, the preprocessed status bits of all parameters under the system are checked. If all are 1, the status bit of the heartbeat value is 1, otherwise it is 2; if they are consistent, the system status timeout counter is counted by 1, and then it is determined whether the value of the system timeout counter is less than the number of system status abnormality judgments. If it is less than, the subsequent operations are skipped. If it is not less than, the current state of the system is considered abnormal, the heartbeat value is unreliable, and the preprocessed status bit is 3. Then the original heartbeat value is packaged. The format after packaging is "local timestamp, original heartbeat value, status bit". The packaged preprocessed heartbeat value is written to the preprocessing status tag corresponding to the system in the OPC UA server status group.
[0153] Regarding the specific working principle of the data preprocessing client provided by the present invention, reference can be made to the description of the multi-source heterogeneous data transmission method based on the OPCUA protocol in the previous text, which will not be repeated here.
[0154] As another embodiment of the present invention, an OPC UA server is provided for implementing the multi-source heterogeneous data transmission method based on the OPC UA protocol as described above, wherein Figure 8 As shown, the OPC UA server 200 includes:
[0155] An acquisition module 210 is configured to acquire multi-source heterogeneous raw data of at least one multi-source heterogeneous system, and store the multi-source heterogeneous raw data of each multi-source heterogeneous system into a raw data unit of a corresponding heterogeneous data group;
[0156] A first receiving module 220 is configured to receive a data subscription instruction from a data preprocessing client and periodically send multi-source heterogeneous raw data of a multi-source heterogeneous system to the data preprocessing client, wherein the multi-source heterogeneous raw data includes at least original parameter values and original heartbeat values; the data preprocessing client is capable of determining state information of the multi-source heterogeneous raw data based on a comparison result between the multi-source heterogeneous raw data of a current period and the multi-source heterogeneous raw data of a previous period, and is capable of generating tag information based on the state information of the multi-source heterogeneous raw data, and adding the tag information to the multi-source heterogeneous raw data to obtain multi-source heterogeneous preprocessed data, wherein the tag information is capable of at least tagging time information and state information of the multi-source heterogeneous raw data;
[0157] A second receiving module 230 is configured to receive the multi-source heterogeneous pre-processed data returned by the data pre-processing client, and store the multi-source heterogeneous pre-processed data in a pre-processed data unit of a corresponding heterogeneous data group;
[0158] The third receiving module 240 is configured to receive a multi-source heterogeneous data request from a data consumption client, and return the multi-source heterogeneous pre-processed data in the pre-processed data unit of the corresponding heterogeneous data group to the data consumption client.
[0159] In summary, the OPC UA server provided by the present invention compares the multi-source heterogeneous raw data to determine the status information of the multi-source heterogeneous raw data, generates tag information based on the status information, and adds the tag information to the multi-source heterogeneous raw data to obtain multi-source heterogeneous pre-processed data. Finally, the multi-source heterogeneous pre-processed data is returned to the OPC UA server. When the OPC UA server receives a multi-source heterogeneous data request from a data consumption client, it can return the multi-source heterogeneous pre-processed data to the data consumption client. This OPC UA server can promptly determine whether there are any abnormalities in the multi-source heterogeneous raw data by performing pre-processing operations on the multi-source heterogeneous raw data, and can mark the status information of the multi-source heterogeneous raw data so that the data consumption client can obtain the multi-source heterogeneous raw data with the status mark, thereby enabling the data consumption client to promptly grasp the data abnormalities and avoid using invalid data for analysis and utilization, saving manpower and material resources and improving the effectiveness and accuracy of data analysis and utilization.
[0160] The specific working principle and process of the OPC UA server provided by the present invention can be referred to the description of the multi-source heterogeneous data transmission method based on the OPC UA protocol above, which will not be repeated here.
[0161] As another embodiment of the present invention, a multi-source heterogeneous data transmission system 10 based on the OPC UA protocol is provided, wherein Figure 9As shown, it includes: a multi-source heterogeneous system 300, a data consumption client 400, the data pre-processing client 100 mentioned above, and the OPC UA server 200 mentioned above, and the multi-source heterogeneous system 300, the data consumption client 400, and the data pre-processing client 100 are all communicatively connected to the OPC UA server 200;
[0162] The multi-source heterogeneous system 300 is used to send multi-source heterogeneous original data to the OPC UA server, where the multi-source heterogeneous original data at least includes original parameter values and original heartbeat values;
[0163] The data preprocessing client 100 is used to obtain multi-source heterogeneous original data, and can compare the multi-source heterogeneous original data of two adjacent cycles and obtain multi-source heterogeneous preprocessed data according to the comparison result;
[0164] The OPC UA server 200 is used to store the multi-source heterogeneous raw data of each multi-source heterogeneous system into the raw data unit of the corresponding heterogeneous data group, and is capable of storing the multi-source heterogeneous pre-processed data into the pre-processed data unit of the corresponding heterogeneous data group;
[0165] The data consumption client 400 is used to obtain the multi-source heterogeneous pre-processed data from the OPC UA server.
[0166] The following combination Figures 10 to 12 The specific working process of the multi-source heterogeneous data transmission system based on the OPC UA protocol provided by the present invention is described in detail. Figure 10 The figure shows the overall workflow of the multi-source heterogeneous data transmission system based on the OPC UA protocol.
[0167] A heterogeneous data group matching the multi-source heterogeneous system is created on the OPC UA server 200. The heterogeneous data group includes an original data unit and a pre-processed data unit. The original data unit is used to store original parameter values and original heartbeat values, and the pre-processed data unit is used to store pre-processed parameter values and pre-processed heartbeat values. Then, the multi-source heterogeneous system writes the original parameter values and original heartbeat values to the OPC UA server. The original parameter values of each system are written according to the normal update cycle, and the original heartbeat values of the system are written to two values 0 and 1 in a 1s cycle.
[0168] In an embodiment of the present invention, there may be N multi-source heterogeneous systems, and the parameter update cycles within each multi-source heterogeneous system are not completely consistent. Kepware software is used as the OPC UA server software. This software is a data communication software that complies with the OPC protocol and is widely used in the field of industrial automation. On the OPC UA server, one status group (StatusGroup) and N parameter groups (ParameterGroup_1, ParameterGroup_2, ..., ParameterGroup_N) are created. The status group contains N original status tags and pre-processed status tags, namely Status_1, Status_2, ..., Status_N (all of type UInt16) and Status_1_S, Status_2_S, ..., Status_N_S (all of type String). The number and type of original parameter tags (Parameter) in each parameter group are consistent with the number and type of actual parameters in the multi-source heterogeneous system. The number of pre-processed parameter tags (Parameter_S) is consistent with the actual number of parameters, but the parameter type is String.
[0169] N multi-source heterogeneous systems write original parameter values and heartbeat values to the OPC UA server. The original parameter values are written according to the normal update cycle, and the original heartbeat values are written alternately as 0 and 1 at a 1s interval.
[0170] like Figure 12 The following is a detailed workflow diagram of the data preprocessing client. The data preprocessing client 100 subscribes to the original parameter values and original heartbeat values of the multi-source heterogeneous system 300 from the OPC UA server 200 and uses the parameter subscription timeout timer to determine the original parameter values. This involves comparing the current value with the previous value. If they do not match, the parameter update is considered normal, and a timestamp and status bit are added for packetization. The packetized data is then sent to the preprocessed data unit corresponding to the parameter on the OPC UA server, while the parameter timeout counter is cleared to 0. If they match, the timeout counter is compared with the number of abnormality determinations. If the former is less than the latter, subsequent operations are skipped and the next cycle of value determination is awaited to avoid misjudgments of parameter status due to factors such as network interference and delays. If the former is greater than or equal to the latter, the parameter status is considered abnormal. The parameter value is then packetized with a timestamp and status bit, while the current parameter value is cleared for packetization. After packetization is complete, the preprocessed parameter value is sent to the corresponding preprocessed data unit on the OPC UA server.
[0171] The heartbeat subscription timeout timer is used to judge the original heartbeat value of the system, that is, to compare the current heartbeat value with the previous heartbeat value. If they are inconsistent, it is considered normal, but the status bit of the heartbeat needs to be determined in combination with the status of all parameters in the corresponding system. Then, the timestamp and status bit are added for packaging, and the pre-processed heartbeat value after packaging is sent to the corresponding pre-processed data unit on the OPC UA server, and the timeout counter value of the system heartbeat is cleared to 0 at the same time; if they are consistent, the heartbeat timeout counter value is compared with the number of abnormal judgments. If the former is less than the latter, the subsequent operations are skipped and the heartbeat value judgment of the next cycle is waited for to avoid misjudgment of the heartbeat status due to factors such as network interference and delay. If the former is greater than or equal to the latter, the system heartbeat is considered abnormal, and the status position is 3. Then the timestamp and status bit are added to the original heartbeat value for packaging. After the packaging is completed, the data is sent to the corresponding pre-processed data unit on the OPC UA server. Figure 11 , which is a schematic diagram of the format of the original heartbeat value and the original parameter value after preprocessing by the data preprocessing client.
[0172] It's important to note that the data preprocessing client software's configuration file configures the parameter attributes for each multi-source heterogeneous system, including information such as parameter name, parameter code, parameter tag (i.e., the corresponding tag on the OPC UA server), update cycle, and number of exception detections. It also configures the initial default values for each parameter type. Furthermore, since the preprocessing client and OPC UA server are deployed on the same computer, the timestamps on the preprocessing client and the OPC UA server are maintained by default.
[0173] The data consumption client 400 is used to subscribe to the preprocessing parameter values and preprocessing heartbeat values on the OPC UA server 200. For the subscribed preprocessing parameter values, it is determined whether the parameter is normal based on the status bit. If normal, the original value of the parameter is parsed and analyzed and utilized. Otherwise, an alarm is issued for the parameter status to prompt relevant personnel to handle it in time; for the subscribed preprocessing heartbeat values, it is determined whether the system heartbeat is normal based on the status bit. If normal, the original heartbeat value of the system is parsed and analyzed and utilized. Otherwise, an alarm is issued for the system connection status to prompt relevant personnel to handle it in time.
[0174] It should be noted that, in an embodiment of the present invention, data preprocessing software can be written in C# language to obtain a data preprocessing client, and the client can be deployed as a service on the computer where the OPC UA server is located to run. After the preprocessing software is started, it automatically subscribes to the original parameter values and original heartbeat values of each multi-source heterogeneous system, and performs a preprocessing operation on the original parameter value, that is, the original parameter value is compared with the previous value to determine its status, and then a timestamp and status bit are added, and written to the preprocessing data unit corresponding to the OPC UA server; a preprocessing operation is performed on the original heartbeat value, that is, the current heartbeat value is compared with the previous value, and the status bit of the original heartbeat value is determined in combination with the status bits of all parameters in the system, and then a timestamp and status bit are added to the current heartbeat value, and then written to the preprocessing data unit corresponding to the OPC UA server.
[0175] Specifically, the data consumption client software (i.e., the integrated information integration processing system) is written in C#, which subscribes to the pre-processing parameter tags and pre-processing heartbeat tags on the OPCUA server, obtains the original parameter values and original heartbeat values of the multi-source heterogeneous system, and judges the parameter update status and system connection status based on its status bit, so as to achieve the goal of being able to timely judge the status of multi-source heterogeneous data. Figure 13 This is a schematic diagram showing the original parameter value labels and numerical values, such as Figure 14 This is a schematic diagram showing the labels and values of preprocessing parameters, such as Figure 15 Subscribe to and parse preprocessing parameter values and heartbeat values for data consumption clients and display a schematic diagram.
[0176] In summary, the multi-source heterogeneous data transmission system based on the OPC UA protocol provided by the present invention subscribes to the original parameter values and original heartbeat values of the multi-source heterogeneous system through a data preprocessing client, and then regularly compares the original parameter values and heartbeat values with the previous values through a timer, and combines timeout counters and abnormal judgment times to accurately judge the real-time status of the multi-source heterogeneous system parameters and heartbeats, thereby solving the problem that when multi-source heterogeneous data is transmitted based on the OPC UA protocol, the data is disconnected due to abnormalities in the underlying sensors or equipment, and the data consumption client cannot perceive in time or even invalid data is analyzed and utilized, thereby improving the diagnosis capability and handling efficiency of data abnormalities in the multi-source heterogeneous system, and improving the effectiveness and accuracy of data analysis and utilization.
[0177] Regarding the specific working process of the multi-source heterogeneous data transmission system based on the OPC UA protocol provided by the present invention, reference can be made to the description of the multi-source heterogeneous data transmission method based on the OPC UA protocol above, which will not be repeated here.
[0178] It will be understood that the above embodiments are merely exemplary embodiments for illustrating the principles of the present invention, and the present invention is not limited thereto. Those skilled in the art will appreciate that various modifications and improvements can be made without departing from the spirit and substance of the present invention, and such modifications and improvements are also considered to be within the scope of protection of the present invention.
Claims
1. A multi-source heterogeneous data transmission method based on the OPC UA protocol, characterized in that: include: Sending a data subscription instruction to an OPC UA server to periodically obtain multi-source heterogeneous raw data of a multi-source heterogeneous system, wherein the multi-source heterogeneous raw data includes at least raw parameter values and raw heartbeat values, and the OPC UA server is capable of storing the multi-source heterogeneous raw data of each multi-source heterogeneous system in a raw data unit of a corresponding heterogeneous data group; Determining the status information of the multi-source heterogeneous raw data based on a comparison result of the multi-source heterogeneous raw data of the current period and the multi-source heterogeneous raw data of the previous period; Generating tag information according to the state information of the multi-source heterogeneous original data, and adding the tag information to the multi-source heterogeneous original data to obtain multi-source heterogeneous pre-processed data, wherein the tag information can at least tag time information and state information of the multi-source heterogeneous original data; Returning the multi-source heterogeneous pre-processed data to the OPC UA server, the OPC UA server being capable of storing the multi-source heterogeneous pre-processed data in a pre-processed data unit of a corresponding heterogeneous data group. The OPC UA server is also capable of returning the multi-source heterogeneous pre-processed data in the pre-processed data unit of the corresponding heterogeneous data group to the data consuming client upon receiving a multi-source heterogeneous data request from the data consuming client; The state information of the multi-source heterogeneous raw data is determined based on the comparison result of the multi-source heterogeneous raw data of the current cycle with the multi-source heterogeneous raw data of the previous cycle, including: Start the multi-source heterogeneous raw data timeout counter and compare the multi-source heterogeneous raw data of the current cycle with the multi-source heterogeneous raw data of the previous cycle; If the multi-source heterogeneous raw data of the current cycle is the same as the multi-source heterogeneous raw data of the previous cycle, the status information of the multi-source heterogeneous raw data of the current cycle is determined according to the count value of the multi-source heterogeneous raw data timeout counter and the abnormality judgment number threshold; If the multi-source heterogeneous raw data of the current cycle is different from the multi-source heterogeneous raw data of the previous cycle, it is determined that the multi-source heterogeneous raw data of the current cycle is normal, and the multi-source heterogeneous raw data timeout counter is cleared; If the multi-source heterogeneous raw data of the current cycle is the same as the multi-source heterogeneous raw data of the previous cycle, the status information of the multi-source heterogeneous raw data of the current cycle is determined according to the count value of the multi-source heterogeneous raw data timeout counter and the abnormality judgment number threshold, including: If the original parameter value of the current cycle is consistent with the original parameter value of the previous cycle, the count value of the original parameter value timeout counter is compared with the abnormality judgment number threshold; If the count value of the original parameter value timeout counter is less than the abnormality judgment number threshold, wait for the original parameter value of the next cycle; If the count value of the original parameter value timeout counter is not less than the abnormality judgment number threshold, it is determined that the original parameter value of the current cycle is abnormal; If the original heartbeat value of the current cycle is consistent with the original heartbeat value of the previous cycle, the count value of the original heartbeat value timeout counter is compared with the abnormality judgment number threshold; If the count value of the original heartbeat value timeout counter is less than the abnormal judgment number threshold, wait for the original heartbeat value of the next cycle; If the count value of the original heartbeat value timeout counter is not less than the abnormality judgment number threshold, it is determined that the original heartbeat value of the current cycle is abnormal.
2. The multi-source heterogeneous data transmission method based on the OPC UA protocol according to claim 1 is characterized in that: Generating tag information according to the state information of the multi-source heterogeneous original data, and adding the tag information to the multi-source heterogeneous original data to obtain multi-source heterogeneous pre-processed data, wherein the tag information is capable of at least tagging time information and state information of the multi-source heterogeneous original data, includes: When it is determined that the original parameter value of the current cycle is normal, generating parameter normal marking information, the parameter normal marking information including the parameter timestamp and the parameter status bit normal marking value; When it is determined that the original parameter value of the current cycle is abnormal, parameter abnormality mark information is generated, wherein the parameter abnormality mark information includes a parameter timestamp and a parameter status bit abnormality mark value; The parameter normal mark information or the parameter abnormal mark information is added to the original parameter value of the current cycle to obtain the preprocessing parameter value of the current cycle.
3. The multi-source heterogeneous data transmission method based on the OPC UA protocol according to claim 1 is characterized in that: Generating tag information according to the state information of the multi-source heterogeneous original data, and adding the tag information to the multi-source heterogeneous original data to obtain multi-source heterogeneous pre-processed data, wherein the tag information is capable of at least tagging time information and state information of the multi-source heterogeneous original data, includes: When it is determined that the original heartbeat value of the current cycle is normal, generating heartbeat non-abnormal marking information according to the preprocessing parameter value of the current cycle, the heartbeat non-abnormal marking information including a heartbeat timestamp and a heartbeat status bit non-abnormal marking value; When it is determined that the original heartbeat value of the current cycle is abnormal, heartbeat abnormality marking information is generated, wherein the heartbeat abnormality marking information includes a heartbeat timestamp and a heartbeat status bit abnormality marking value; The heartbeat non-abnormal mark information or the heartbeat abnormal mark information is added to the original heartbeat value of the current cycle to obtain the preprocessed heartbeat value of the current cycle.
4. The multi-source heterogeneous data transmission method based on the OPC UA protocol according to claim 3 is characterized in that: When the original heartbeat value of the current cycle is determined to be normal, heartbeat non-abnormal marking information is generated according to the preprocessing parameter value of the current cycle, including: When it is determined that the original heartbeat value of the current cycle is normal, if the preprocessing parameter value of the current cycle includes parameter normal mark information, generating heartbeat normal mark information, wherein the heartbeat normal mark information includes a heartbeat timestamp and a heartbeat status bit normal mark value; When it is determined that the original heartbeat value of the current cycle is normal, if the preprocessing parameter value of the current cycle includes parameter abnormality mark information, heartbeat to be determined mark information is generated, and the heartbeat to be determined mark information includes a heartbeat timestamp and a heartbeat status bit to be determined mark value.
5. A multi-source heterogeneous data transmission method based on the OPC UA protocol, characterized in that: include: Acquire multi-source heterogeneous raw data of at least one multi-source heterogeneous system, and store the multi-source heterogeneous raw data of each multi-source heterogeneous system into a raw data unit of a corresponding heterogeneous data group; Receive a data subscription instruction from a data preprocessing client, and periodically send multi-source heterogeneous original data of a multi-source heterogeneous system to the data preprocessing client, wherein the multi-source heterogeneous original data includes at least original parameter values and original heartbeat values; The data preprocessing client is capable of determining state information of the multi-source heterogeneous raw data based on a comparison result between the multi-source heterogeneous raw data of a current period and the multi-source heterogeneous raw data of a previous period, and is capable of generating tag information based on the state information of the multi-source heterogeneous raw data, and adding the tag information to the multi-source heterogeneous raw data to obtain multi-source heterogeneous preprocessed data, wherein the tag information is capable of at least tagging time information and state information of the multi-source heterogeneous raw data; Receive the multi-source heterogeneous pre-processed data returned by the data pre-processing client, and store the multi-source heterogeneous pre-processed data in a pre-processed data unit of a corresponding heterogeneous data group; Receiving a multi-source heterogeneous data request from a data consumption client, and returning the multi-source heterogeneous pre-processed data in the pre-processed data unit of the corresponding heterogeneous data group to the data consumption client; The state information of the multi-source heterogeneous raw data is determined based on the comparison result of the multi-source heterogeneous raw data of the current cycle with the multi-source heterogeneous raw data of the previous cycle, including: Start the multi-source heterogeneous raw data timeout counter and compare the multi-source heterogeneous raw data of the current cycle with the multi-source heterogeneous raw data of the previous cycle; If the multi-source heterogeneous raw data of the current cycle is the same as the multi-source heterogeneous raw data of the previous cycle, the status information of the multi-source heterogeneous raw data of the current cycle is determined according to the count value of the multi-source heterogeneous raw data timeout counter and the abnormality judgment number threshold; If the multi-source heterogeneous raw data of the current cycle is different from the multi-source heterogeneous raw data of the previous cycle, it is determined that the multi-source heterogeneous raw data of the current cycle is normal, and the multi-source heterogeneous raw data timeout counter is cleared; If the multi-source heterogeneous raw data of the current cycle is the same as the multi-source heterogeneous raw data of the previous cycle, the status information of the multi-source heterogeneous raw data of the current cycle is determined according to the count value of the multi-source heterogeneous raw data timeout counter and the abnormality judgment number threshold, including: If the original parameter value of the current cycle is consistent with the original parameter value of the previous cycle, the count value of the original parameter value timeout counter is compared with the abnormality judgment number threshold; If the count value of the original parameter value timeout counter is less than the abnormality judgment number threshold, wait for the original parameter value of the next cycle; If the count value of the original parameter value timeout counter is not less than the abnormality judgment number threshold, it is determined that the original parameter value of the current cycle is abnormal; If the original heartbeat value of the current cycle is consistent with the original heartbeat value of the previous cycle, the count value of the original heartbeat value timeout counter is compared with the abnormality judgment number threshold; If the count value of the original heartbeat value timeout counter is less than the abnormal judgment number threshold, wait for the original heartbeat value of the next cycle; If the count value of the original heartbeat value timeout counter is not less than the abnormality judgment number threshold, it is determined that the original heartbeat value of the current cycle is abnormal.
6. A data preprocessing client, used to implement the multi-source heterogeneous data transmission method based on the OPC UA protocol according to any one of claims 1 to 4, characterized in that: include: a sending module, configured to send a data subscription instruction to an OPC UA server to periodically obtain multi-source heterogeneous raw data of a multi-source heterogeneous system, wherein the multi-source heterogeneous raw data includes at least raw parameter values and raw heartbeat values, and the OPC UA server is capable of storing the multi-source heterogeneous raw data of each multi-source heterogeneous system in a raw data unit of a corresponding heterogeneous data group; A determination module, configured to determine status information of the multi-source heterogeneous raw data based on a comparison result of the multi-source heterogeneous raw data of the current cycle with the multi-source heterogeneous raw data of the previous cycle; a marking module, configured to generate marking information according to the state information of the multi-source heterogeneous original data, and add the marking information to the multi-source heterogeneous original data to obtain multi-source heterogeneous pre-processed data, wherein the marking information can at least mark time information and state information of the multi-source heterogeneous original data; A return module is used to return the multi-source heterogeneous pre-processed data to the OPC UA server. The OPC UA server can store the multi-source heterogeneous pre-processed data in the pre-processed data unit of the corresponding heterogeneous data group. The OPC UA server can also return the multi-source heterogeneous pre-processed data in the pre-processed data unit of the corresponding heterogeneous data group to the data consumption client when receiving a multi-source heterogeneous data request from the data consumption client.
7. An OPC UA server, used to implement the multi-source heterogeneous data transmission method based on the OPC UA protocol according to claim 5, characterized in that: include: An acquisition module is configured to acquire multi-source heterogeneous raw data of at least one multi-source heterogeneous system, and store the multi-source heterogeneous raw data of each multi-source heterogeneous system into a raw data unit of a corresponding heterogeneous data group; A first receiving module is configured to receive a data subscription instruction from a data preprocessing client and periodically send multi-source heterogeneous original data of a multi-source heterogeneous system to the data preprocessing client, wherein the multi-source heterogeneous original data includes at least original parameter values and original heartbeat values; The data preprocessing client is capable of determining state information of the multi-source heterogeneous raw data based on a comparison result between the multi-source heterogeneous raw data of a current period and the multi-source heterogeneous raw data of a previous period, and is capable of generating tag information based on the state information of the multi-source heterogeneous raw data, and adding the tag information to the multi-source heterogeneous raw data to obtain multi-source heterogeneous preprocessed data, wherein the tag information is capable of at least tagging time information and state information of the multi-source heterogeneous raw data; A second receiving module is configured to receive the multi-source heterogeneous pre-processed data returned by the data pre-processing client, and store the multi-source heterogeneous pre-processed data in a pre-processed data unit of a corresponding heterogeneous data group; The third receiving module is configured to receive a multi-source heterogeneous data request from a data consumption client, and return the multi-source heterogeneous pre-processed data in the pre-processed data unit of the corresponding heterogeneous data group to the data consumption client.
8. A multi-source heterogeneous data transmission system based on the OPC UA protocol, characterized in that: include: A multi-source heterogeneous system, a data consumption client, the data pre-processing client according to claim 6, and the OPC UA server according to claim 7, wherein the multi-source heterogeneous system, the data consumption client, and the data pre-processing client are all communicatively connected to the OPC UA server; The multi-source heterogeneous system is used to send multi-source heterogeneous original data to the OPC UA server, where the multi-source heterogeneous original data includes at least original parameter values and original heartbeat values; The data preprocessing client is used to obtain multi-source heterogeneous original data, and can compare the multi-source heterogeneous original data of two adjacent periods and obtain multi-source heterogeneous preprocessed data according to the comparison results; The OPC UA server is used to store the multi-source heterogeneous raw data of each multi-source heterogeneous system into the raw data unit of the corresponding heterogeneous data group, and is capable of storing the multi-source heterogeneous pre-processed data into the pre-processed data unit of the corresponding heterogeneous data group; The data consumption client is used to obtain the multi-source heterogeneous pre-processed data from the OPC UA server.
Citation Information
Patent Citations
Safety protection platform and method for industrial platform software and DCS system
CN118550266A