CN116319989A - Data exchange method, system, equipment and medium of industrial control system - Google Patents

Data exchange method, system, equipment and medium of industrial control system Download PDF

Info

Publication number
CN116319989A
CN116319989A CN202310314070.3A CN202310314070A CN116319989A CN 116319989 A CN116319989 A CN 116319989A CN 202310314070 A CN202310314070 A CN 202310314070A CN 116319989 A CN116319989 A CN 116319989A
Authority
CN
China
Prior art keywords
message
subscription
data
information
control system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310314070.3A
Other languages
Chinese (zh)
Inventor
宋美艳
张津
刘畅
李心怡
杨柳
高少华
张昇
王珩
孙浩沩
李家港
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Thermal Power Research Institute Co Ltd
Original Assignee
Xian Thermal Power Research Institute Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xian Thermal Power Research Institute Co Ltd filed Critical Xian Thermal Power Research Institute Co Ltd
Priority to CN202310314070.3A priority Critical patent/CN116319989A/en
Publication of CN116319989A publication Critical patent/CN116319989A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a data exchange method, a system, equipment and a medium of an industrial control system, which comprise the following steps: s1, acquiring subscription topic information of each subsystem, acquiring exchange data corresponding to the subscription topic information from an industrial control system, and sending the subscription topic information and the exchange data to a thread pool; s2, the thread pool packages the received subscription subject information and the corresponding exchange data into a message, and sends the message to a message middleware; wherein, the message middleware adopts a publish/subscribe mode; s3, the message middleware stores the received message in a message queue; s4, the message middleware forwards the message stored in the message queue to a corresponding subsystem according to the subscription topic information in the message. The invention solves the problem that the existing data communication mode can not meet the data distribution requirement of the SCADA system and the interconnection between the systems is difficult.

Description

Data exchange method, system, equipment and medium of industrial control system
Technical Field
The invention relates to the field of industrial control systems, in particular to a data exchange method, a system, equipment and a medium of an industrial control system.
Background
With the continuous promotion of new energy policies, the development of new energy and renewable energy is leapfrog, the construction scale of photovoltaic, hydroelectric and wind power projects is continuously upgraded, the centralized control of ultra-large new energy integrating photovoltaic, hydroelectric, wind power and energy storage is started, and the situation of diversified equipment models, data scale sea quantization and equipment scale expansion is presented. This places higher demands on the data acquisition and monitoring control system (Supervisory Control And Data Acquisition, SCADA, industrial control system, hereinafter referred to as industrial control system), which should be able to afford the acquisition and distribution of large-scale real-time data.
At present, the traditional data communication is realized in a point-to-point mode, the requirement on middleware is relatively simple, and the traditional data communication can be realized by applying middleware such as a public object request proxy architecture (CORBA), and the like, but the exchange efficiency is lower in the mode, and the current requirement of the SCADA system for distributing data cannot be met. And the subsystem designed by each manufacturer has different implementation modes, so that the access mode of data between the industrial control system and the subsystem (namely the data consumer) lacks unified standards, and the interconnection between the systems is difficult.
Disclosure of Invention
The invention aims to provide a data exchange method, a system, equipment and a medium of an industrial control system, which are used for solving the problems that the existing data communication mode cannot meet the data distribution requirement of an SCADA system and the interconnection between the systems is difficult.
The invention is realized by the following technical scheme:
a data exchange method of an industrial control system comprises the following steps:
s1, acquiring subscription topic information of each subsystem, acquiring exchange data corresponding to the subscription topic information from an industrial control system, and sending the subscription topic information and the exchange data to a thread pool;
s2, the thread pool packages the received subscription subject information and the corresponding exchange data into a message, and sends the message to a message middleware; wherein, the message middleware adopts a publish/subscribe mode;
s3, the message middleware stores the received message in a message queue;
s4, the message middleware forwards the message stored in the message queue to a corresponding subsystem according to the subscription topic information in the message.
Preferably, S1 is specifically:
and polling and monitoring subscription topic information of each subsystem, acquiring exchange data corresponding to the subscription topic information from a database of the industrial control system, and sending the subscription topic information and the exchange data to a thread pool.
Preferably, S2 is specifically:
judging whether the thread pool is initialized, if not, initializing the thread pool, adopting a working thread in the thread pool to package the received subscription subject information and corresponding exchange data into a message, and sending the message to a message middleware; and if the subscription topic information is initialized, adopting the working threads in the thread pool to package the received subscription topic information and the corresponding exchange data into a message, and sending the message to a message middleware.
Further, the received subscription topic information and corresponding exchange data are packaged into a message by adopting a working thread in the thread pool, specifically:
the working thread in the thread pool judges the type of the subscription subject information, if the type of the subscription subject information is real-time data, header information is added to corresponding exchange data, and the exchange data, the header information and the subscription subject information are all converted into binary formats and packaged into a message; otherwise, adding additional information for the corresponding exchange data, converting the exchange data, the additional information and the subscription subject information into JSON (JavaScript Object Notation) data format and packaging the data format and the subscription subject information into a message.
Further, the header information comprises a data identifier and a check code; the additional information includes a message identifier, message content, message priority, and message creation time.
Preferably, S3 is specifically: and the message middleware performs validity verification on the received message, analyzes subscription subject information in the message after the verification is successful, and stores the message in a corresponding message queue according to the subscription subject information.
Preferably, S4 specifically includes:
the message middleware receives subscription message codes sent by all subsystems;
and the message middleware analyzes the subscription topic information in the subscription message code, extracts the message containing the subscription topic information corresponding to the subscription topic information in the subscription message code from the message queue and forwards the message to the corresponding subsystem.
A data exchange system for an industrial control system, comprising:
the acquisition module is used for acquiring subscription topic information of each subsystem, acquiring exchange data corresponding to the subscription topic information from the industrial control system and sending the subscription topic information and the exchange data to the thread pool;
the thread pool is used for packaging the received subscription subject information and the corresponding exchange data into a message and sending the message to a message middleware; wherein, the message middleware adopts a publish/subscribe mode;
message middleware for storing the received message in a message queue; and forwarding the message stored in the message queue to a corresponding subsystem according to the subscription topic information in the message.
A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the data exchange method of an industrial control system as described above when the computer program is executed.
A computer readable storage medium storing a computer program which, when executed by a processor, implements the steps of a data exchange method of an industrial control system as described above.
Compared with the prior art, the invention has the following beneficial effects:
the invention adopts the thread pool technology and the message middleware to realize data exchange, the introduction of the thread pool can reduce the system overhead caused by the creation and destruction of a large number of threads, the data exchange efficiency is obviously improved, the point-to-many data exchange mode is realized by combining the thread pool and the message middleware, the data exchange efficiency is improved, and the current requirement of the SCADA system for distributing data can be met. The invention effectively shields the isomerism among different subsystems by using the publishing/subscribing mode of the message middleware, and provides efficient and reliable data exchange.
Furthermore, different types of data are transmitted by using different data formats, because the data volume of real-time data is huge, if the data transmission format is not considered, the load of a server is overlarge, and in this case, the real-time data with huge data volume is transmitted by adopting a binary format to reduce the load of the server, and other data types are transmitted efficiently by adopting a JSON format with moderate data volume.
Drawings
FIG. 1 is a flow chart of the method of the present invention.
Detailed Description
Other advantages and effects of the present invention will become apparent to those skilled in the art from the following disclosure, which describes the embodiments of the present invention with reference to specific examples. The invention may be practiced or carried out in other embodiments that depart from the specific details, and the details of the present description may be modified or varied from the spirit and scope of the present invention.
It is to be understood that reference to one or more method steps in this disclosure does not exclude the presence of other method steps before or after the combination step or the insertion of other method steps between these explicitly mentioned steps, unless otherwise indicated; it should also be understood that the combined connection between one or more devices/means mentioned in the present invention does not exclude that other devices/means may also be present before and after the combined device/means or that other devices/means may also be interposed between these two explicitly mentioned devices/means, unless otherwise indicated. Moreover, unless otherwise indicated, the numbering of the method steps is merely a convenient tool for identifying the method steps and is not intended to limit the order of arrangement of the method steps or to limit the scope of the invention in which the invention may be practiced, as such changes or modifications in their relative relationships may be regarded as within the scope of the invention without substantial modification to the technical matter.
Referring to fig. 1, the data exchange method of the industrial control system of the present invention includes the following steps:
s1, acquiring subscription topic information of each subsystem, acquiring exchange data corresponding to the subscription topic information from an industrial control system, and sending the subscription topic information and the exchange data to a thread pool.
The method comprises the following specific steps:
the monitoring module polls subscription topic information of each subsystem, and sends the subscription topic information to the data pulling module after receiving the subscription topic information, and the data pulling module obtains corresponding exchange data from a database of the industrial control system according to the subscription topic information and sends the subscription topic information and the exchange data to the thread pool. The types of the subscription topic information comprise: real-time data, historical data, alarm messages, log messages, and instruction messages.
S2, the thread pool packages the received subscription subject information and the corresponding exchange data into a message, and sends the message to a message middleware.
The method comprises the following specific steps:
judging whether a thread pool is initialized, if not, initializing the thread pool, taking out an idle working thread from the thread pool, packaging the received subscription subject information and corresponding exchange data into a message, and sending the message to a message middleware; and if the subscription topic information is initialized, the idle working thread is taken out from the thread pool, the received subscription topic information and the corresponding exchange data are packaged into a message, and the message is sent to a message middleware.
The working thread packages the received subscription subject information and corresponding exchange data into a message, specifically: the working thread judges the type of the subscription subject information, if the type of the subscription subject information belongs to real-time data, the corresponding exchange data is added with header information, and the header information comprises a data identifier (indicating that the sent exchange data belongs to data with different types and different attributes) and a check code; converting the exchange data, header information and subscription subject information into binary formats and packaging the binary formats into messages; otherwise, adding additional information to the corresponding exchange data, wherein the additional information comprises a message identifier, message content, message priority and message creation time; all the exchange data, the additional information and the subscription topic information are converted into a JSON data format and packaged together into a message.
And S3, the message middleware stores the received message in a message queue.
The method comprises the following specific steps:
the message middleware adopts a publish/subscribe mode in RabbitMQ, and after the received message is successfully validated, the message middleware analyzes subscription topic information in the message, and stores different messages in corresponding message queues according to the subscription topic information.
S4, the message middleware forwards the message stored in the message queue to a corresponding subsystem according to the subscription topic information in the message.
The method comprises the following specific steps:
the message middleware receives subscription message codes which are sent by all subsystems and used for subscribing data in real time;
after receiving the subscription message codes, the message middleware analyzes subscription topic information in the subscription message codes, and extracts messages containing subscription topic information corresponding to the subscription topic information in the subscription message codes from the message queue;
the extracted information is published to a subsystem corresponding to the subscription data through a message publishing module;
the subsystem receives the corresponding information, the analysis module analyzes the exchange data and stores the exchange data in the database, and then feeds back whether the information is successfully received to the message middleware through an ACK mechanism of the message middleware.
The following are device embodiments of the present invention that may be used to perform method embodiments of the present invention. For details of the device embodiment that are not careless, please refer to the method embodiment of the present invention.
In still another embodiment of the present invention, a data exchange system of an industrial control system is provided, which can be used to implement the data exchange method of an industrial control system, and specifically, the data exchange system of the industrial control system includes:
the acquisition module is used for acquiring subscription topic information of each subsystem, acquiring exchange data corresponding to the subscription topic information from the industrial control system and sending the subscription topic information and the exchange data to the thread pool;
the thread pool is used for packaging the received subscription subject information and the corresponding exchange data into a message and sending the message to a message middleware; wherein, the message middleware adopts a publish/subscribe mode;
message middleware for storing the received message in a message queue; and forwarding the message stored in the message queue to a corresponding subsystem according to the subscription topic information in the message.
The acquisition module comprises a monitoring module and a data pulling module;
the monitoring module is used for polling and monitoring subscription topic information of each subsystem, and sending the subscription topic information to the data pulling module after monitoring the subscription topic information;
and the data pulling module acquires corresponding exchange data from a database of the industrial control system according to the subscription subject message and sends the subscription subject message and the exchange data to the thread pool.
In yet another embodiment of the present invention, a computer device is provided that includes a processor and a memory for storing a computer program including program instructions, the processor for executing the program instructions stored by the computer storage medium. The processor may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field-Programmable gate arrays (FPGAs) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., which are the computational core and control core of the terminal adapted to implement one or more instructions, in particular adapted to load and execute one or more instructions in a computer storage medium to implement a corresponding method flow or a corresponding function; the processor provided by the embodiment of the invention can be used for the operation of the data exchange method of the industrial control system.
In yet another embodiment of the present invention, a storage medium, specifically a computer readable storage medium (Memory), is a Memory device in a computer device, for storing a program and data. It is understood that the computer readable storage medium herein may include both built-in storage media in a computer device and extended storage media supported by the computer device. The computer-readable storage medium provides a storage space storing an operating system of the terminal. Also stored in the memory space are one or more instructions, which may be one or more computer programs (including program code), adapted to be loaded and executed by the processor. The computer readable storage medium herein may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one magnetic disk memory. One or more instructions stored in a computer-readable storage medium may be loaded and executed by a processor to implement the corresponding steps of the data exchange method for an industrial control system in the above embodiments.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical aspects of the present invention and not for limiting the same, and although the present invention has been described in detail with reference to the above embodiments, it should be understood by those of ordinary skill in the art that: modifications and equivalents may be made to the specific embodiments of the invention without departing from the spirit and scope of the invention, which is intended to be covered by the claims.

Claims (10)

1. A data exchange method of an industrial control system, comprising:
s1, acquiring subscription topic information of each subsystem, acquiring exchange data corresponding to the subscription topic information from an industrial control system, and sending the subscription topic information and the exchange data to a thread pool;
s2, the thread pool packages the received subscription subject information and the corresponding exchange data into a message, and sends the message to a message middleware; wherein, the message middleware adopts a publish/subscribe mode;
s3, the message middleware stores the received message in a message queue;
s4, the message middleware forwards the message stored in the message queue to a corresponding subsystem according to the subscription topic information in the message.
2. The data exchange method of an industrial control system according to claim 1, wherein S1 specifically is:
and polling and monitoring subscription topic information of each subsystem, acquiring exchange data corresponding to the subscription topic information from a database of the industrial control system, and sending the subscription topic information and the exchange data to a thread pool.
3. The data exchange method of an industrial control system according to claim 1, wherein S2 specifically is:
judging whether the thread pool is initialized, if not, initializing the thread pool, adopting a working thread in the thread pool to package the received subscription subject information and corresponding exchange data into a message, and sending the message to a message middleware; and if the subscription topic information is initialized, adopting the working threads in the thread pool to package the received subscription topic information and the corresponding exchange data into a message, and sending the message to a message middleware.
4. The data exchange method of the industrial control system according to claim 3, wherein the working threads in the thread pool are adopted to package the received subscription subject information and the corresponding exchange data into a message, specifically:
the working thread in the thread pool judges the type of the subscription subject information, if the type of the subscription subject information is real-time data, header information is added to corresponding exchange data, and the exchange data, the header information and the subscription subject information are all converted into binary formats and packaged into a message; otherwise, adding additional information for the corresponding exchange data, converting the exchange data, the additional information and the subscription subject information into a JSON data format, and packaging the JSON data format and the JSON data format into a message.
5. The method for exchanging data with an industrial control system of claim 4, wherein the header information comprises a data identifier and a check code; the additional information includes a message identifier, message content, message priority, and message creation time.
6. The data exchange method of an industrial control system according to claim 1, wherein S3 specifically is: and the message middleware performs validity verification on the received message, analyzes subscription subject information in the message after the verification is successful, and stores the message in a corresponding message queue according to the subscription subject information.
7. The data exchange method of an industrial control system according to claim 1, wherein S4 specifically comprises:
the message middleware receives subscription message codes sent by all subsystems;
and the message middleware analyzes the subscription topic information in the subscription message code, extracts the message containing the subscription topic information corresponding to the subscription topic information in the subscription message code from the message queue and forwards the message to the corresponding subsystem.
8. A data exchange system for an industrial control system, comprising:
the acquisition module is used for acquiring subscription topic information of each subsystem, acquiring exchange data corresponding to the subscription topic information from the industrial control system and sending the subscription topic information and the exchange data to the thread pool;
the thread pool is used for packaging the received subscription subject information and the corresponding exchange data into a message and sending the message to a message middleware; wherein, the message middleware adopts a publish/subscribe mode;
message middleware for storing the received message in a message queue; and forwarding the message stored in the message queue to a corresponding subsystem according to the subscription topic information in the message.
9. Computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the data exchange method of the industrial control system according to any one of claims 1 to 7 when the computer program is executed by the processor.
10. A computer-readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the data exchange method of an industrial control system according to any one of claims 1 to 7.
CN202310314070.3A 2023-03-28 2023-03-28 Data exchange method, system, equipment and medium of industrial control system Pending CN116319989A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310314070.3A CN116319989A (en) 2023-03-28 2023-03-28 Data exchange method, system, equipment and medium of industrial control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310314070.3A CN116319989A (en) 2023-03-28 2023-03-28 Data exchange method, system, equipment and medium of industrial control system

Publications (1)

Publication Number Publication Date
CN116319989A true CN116319989A (en) 2023-06-23

Family

ID=86803045

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310314070.3A Pending CN116319989A (en) 2023-03-28 2023-03-28 Data exchange method, system, equipment and medium of industrial control system

Country Status (1)

Country Link
CN (1) CN116319989A (en)

Similar Documents

Publication Publication Date Title
CN111818136B (en) Data processing method, device, electronic equipment and computer readable medium
CN112822276B (en) Substation control layer communication method and system, electronic equipment and storage medium
RU2005100866A (en) METHODS AND SYSTEMS OF EXCHANGE OF MESSAGES WITH MOBILE DEVICES
WO2021151312A1 (en) Method for determining inter-service dependency, and related apparatus
CN114124881B (en) Message pushing method based on priority and related device
CN111488257A (en) Cloud service link tracking monitoring method, device, equipment and storage medium
CN112817539A (en) Industrial data storage method and system, electronic device and storage medium
CN116319989A (en) Data exchange method, system, equipment and medium of industrial control system
CN110932393B (en) Substation information protection master station system and data initialization method thereof
CN113965628A (en) Message scheduling method, server and storage medium
CN108924773B (en) Message processing method and device
CN113992644B (en) Internet of things system based on no-service technology and data processing method thereof
CN108075989B (en) Extensible protocol-based load balancing network middleware implementation method
Liu et al. Research on cloud-edge interaction technology of power internet of things based on MQTT protocol
CN112491614B (en) Configuration information online automatic validation method and system for embedded equipment
CN111240867B (en) Information communication system and method
CN112165529A (en) Method, device, equipment and medium for low-cost cross-network data exchange
CN112333262A (en) Data updating prompting method and device, computer equipment and readable storage medium
CN113138861A (en) Message processing method, system and storage medium based on equipment service system
CN106850283B (en) Event-driven cloud AC alarm processing system and method
CN112087373B (en) Message sending method and service device
CN110611652B (en) Data communication method, device, system, computer equipment and storage medium
CN115348321B (en) Data acquisition method and related device based on flow control
WO2024021582A1 (en) Network data plane system, data interaction method, and storage medium
CN114640697B (en) Data processing method, equipment and storage medium for distribution internet of things edge controller

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination