Universal large data volume communication device and method
By using embedded central processing unit and FPGA in the DCS system of thermal power plants, combined with multiple network cards and data synchronization modules, the system stability and security issues are solved, and data transmission and real-time closed-loop control of multiple protocols are realized. Meets the communication needs of thermal power plants.
Patent Information
- Application Number
- CN202111334134.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-11
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2041-11-11
AI Technical Summary
The existing technology has poor stability and security problems in the DCS systems of thermal power plants, which cannot meet the requirements of intelligent and big data closed-loop control, and lacks communication cards that support multiple standard protocols.
A general large-data communication device was designed, using an embedded central processor and FPGA, combining multiple network cards and data synchronization modules to achieve real-time and security of data transmission, and supports OPC UA, ModbusTCP, IEC61850 and other protocols, through PCI-E channel and third-party data interface perform data processing and verification.
It realizes stable and secure data communication of DCS systems in thermal power plants, meets the requirements of real-time closed-loop control, provides data transmission of multiple protocols, improves the controllability and compatibility of the system, and solves data transmission and security issues.
Smart Images

Figure CN114070897B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of DCS communication technology, and in particular to a general large data volume communication device and method. Background Art
[0002] Thermal power plants previously relied on deploying an OPC interface on the host computer and using one-way data isolation devices such as a gateway to allow only production data from Area 1 to be transmitted externally, while data from Areas 2 or 3 was prohibited from being transmitted to Area 1. With the development of intelligent and big data technologies, more and more intelligent control commands need to be transmitted to Area 1 to achieve closed-loop operations. This presents the following challenges:
[0003] If a host computer is used for processing, both the hardware and software of the DCS system cannot be controlled, and the stability and security are poor.
[0004] Since the host computer does not use a hardware real-time operating system, the intelligent and big data closed-loop control implemented in the host computer cannot meet the requirements of DCS control in thermal power plants.
[0005] Currently, there is no universal embedded communication card that can provide data transmission supporting multiple standard protocols for thermal power DCS. Summary of the Invention
[0006] In order to overcome the problems existing in the above-mentioned prior art, the purpose of the present invention is to provide a universal large data communication device and method, which is stable and safe, and can realize data communication of the DCS of a thermal power plant and meet the control requirements of the DCS of the thermal power plant.
[0007] In order to achieve the above object, the present invention adopts the following technical solutions:
[0008] A general-purpose large-volume communication device includes a first communication module, the first communication module including a first embedded central processing unit, a first FPGA, a first network card, a second network card, and a first third-party data communication interface; the first embedded central processing unit, the first network card, the second network card, and the first third-party data communication interface are all communicatively connected to the first FPGA;
[0009] The first network card is connected to a first redundant network in the generating units in the thermal power plant, and the second network card is connected to a second redundant network in the generating units in the thermal power plant.
[0010] A further improvement of the present invention is that the device also includes a second communication module, the second communication module includes a second central processing unit, a second FPGA, a second data synchronization module and a second third-party data communication interface; the second embedded central processing unit, the second data synchronization module and the second third-party data communication interface are all communicatively connected to the second FPGA; the first communication module also includes a first data synchronization module, and the first data synchronization module is connected to the second data synchronization module.
[0011] A further improvement of the present invention is that the second communication module further includes a third network card connected to the second FPGA.
[0012] A further improvement of the present invention is that the second communication module further includes a fourth network card connected to the second FPGA.
[0013] A further improvement of the present invention is that the first embedded central processing unit is connected to the first FPGA via a PCI-E channel.
[0014] A further improvement of the present invention is that the first third-party data communication interface is connected to the Ethernet network of the third-party platform.
[0015] A further improvement of the present invention is that the first FPGA includes a receiving data storage buffer and a sending data storage buffer.
[0016] Based on the communication method of the device described above, the first third-party data communication interface sends a received standard data packet sent by the third party to the first FPGA and performs a first-level data security check. If the first-level data security check passes, the standard data packet is stored in the first FPGA's receive data storage buffer. If the first-level data security check succeeds, the read / write flag of the first FPGA's receive data storage buffer is modified. If the first-level data security check fails, the received standard data packet sent by the third party is discarded.
[0017] The first embedded central processing unit determines whether a new standard data packet is stored based on the read-write flag of the first FPGA's received data storage buffer. If the read-write flag changes, it is determined that a new standard data packet is stored, and the new standard data packet is converted into a private data packet, and a secondary data security check code is generated. The secondary data security check code is then filled into the private data packet, and the private data packet filled with the secondary data security check code is sent to the DCS through the first network card and the second network card.
[0018] A further improvement of the present invention is that when the first network card and the second network card receive a private data packet sent by the DCS, the first network card and the second network card transmit the received private data packet to the first FPGA, and the first FPGA performs a secondary data security check on the private data packet. When the secondary data security check passes, the private data packet is stored in the transmission data storage buffer of the first FPGA;
[0019] The first embedded central processing unit determines the read and write flags of the first FPGA's send data storage buffer in real time. If the read and write flags change, it is determined that a new standard data packet is stored. When it is determined that a new private data packet is stored, the new private data packet is converted into a standard data packet and a first-level data security verification code is generated. After the first-level data security verification code is filled into the standard data packet, the standard data packet is taken out of the first FPGA's send data storage buffer through the first third-party data communication interface and sent to the third party.
[0020] A further improvement of the present invention is that, based on the priority of the fault level and the principle of defaulting the first communication module as the primary, the first communication module is judged or defaulted as the primary module for sending and receiving data, and the second communication module is the secondary module for receiving data.
[0021] Compared with the prior art, the present invention has the following beneficial effects:
[0022] In the present invention, data transmission to a third party is directly performed through the first embedded central processing unit and the first FPGA, providing better real-time data communication, meeting the real-time requirements of the third party for closed-loop control, and being able to provide data transmission of multiple standard protocols for the thermal power DCS control system. Using an FPGA and an embedded central processing unit, in conjunction with a domestic real-time operating system and a private data structure to process data is safer than directly processing data using a general protocol through a Linux operating system on a general host computer. In addition, the hardware, operating system, data structure, etc. are all independently controllable, and can meet the requirements of the DCS control of a thermal power plant. The device of the present invention can flexibly support the parsing of general protocols such as OPC UA, ModbusTCP, IEC61850, 104, and 103, solving the problem of real-time transmission and security of large amounts of general data.
[0023] Furthermore, a flexible configuration mode of the first communication module and the second communication module is adopted to realize two communication modes, single communication and redundant communication, so as to better be compatible with more third-party data collection requirements.
[0024] Furthermore, in the present invention, either the first or second communication module can provide communication functions for large-scale data transmission and closed-loop control. The combination of the first and second communication modules can provide more stable large-scale data transmission and closed-loop control functions. Because third-party communication configurations vary, the device of the present invention can be configured for single-card operation or redundant operation based on actual site conditions. If the third party only supports single-channel data transmission, single-card operation is configured to complete data acquisition and closed-loop control. If the third party supports dual-channel redundant data transmission, the device is configured to operate in redundant mode to improve system stability. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 This is a block diagram of a device for general large data volume communication based on the TCP / IP protocol of a thermal power plant according to the present invention.
[0026] Figure 2 The figure is a device block diagram of two communication modules.
[0027] In the figure, 11 is the first central processing unit, 12 is the first FPGA, 13 is the first network card, 14 is the second network card, 15 is the first data synchronization module, 16 is the first third-party data communication interface, 21 is the second central processing unit, 22 is the second FPGA, 23 is the third network card, 24 is the fourth network card, 25 is the second data synchronization module, and 26 is the second third-party data communication interface. DETAILED DESCRIPTION
[0028] The present invention will be described in detail below with reference to the accompanying drawings.
[0029] See also Figure 1 and Figure 2 The present invention provides a general large-scale data communication device based on the TCP / IP protocol for thermal power plants, including a first communication module. The first communication module includes a first embedded central processing unit 11, a first FPGA 12, a first network card 13, a second network card 14, a first data synchronization module 15, and a first third-party data communication interface 16; the first embedded central processing unit 11, the first network card 13, the second network card 14, the first data synchronization module 15, and the first third-party data communication interface 16 are all communicatively connected to the first FPGA 12.
[0030] Data is transmitted via the first network card 13 with the first redundant network (denoted as network A) of a unit in the thermal power plant; and via the second network card 14 with the second redundant network (denoted as network B) of the same unit in the thermal power plant.
[0031] The first data synchronization module 15 is used to achieve data synchronization between two redundant devices in the redundant configuration mode, ensure the hot standby operation mode in the redundant mode, and improve the stability of the thermal power plant's data communication function to the third party.
[0032] The first FPGA 12 includes a private data packet storage buffer and a received data storage buffer.
[0033] The communication method based on the above device includes: a process of forwarding third-party data to DCS and a process of forwarding DCS data to a third party.
[0034] The third-party data forwarding DCS process includes the following steps:
[0035] After powering on, the first communication module or the second communication module uses the standard ModbusTCP communication protocol by default. This protocol can also be changed by the user to one of the standard communication protocols including OPC UA, IEC61850, 104, and 103. Each time the supported communication protocol is changed, the device needs to be powered on again to apply the new setting.
[0036] After power-on, the data acquisition thread, data processing thread, data sending thread and data synchronization thread are started respectively.
[0037] When the data acquisition thread runs for the first time, the standard protocol communication port is opened, the buffer for storing received data of the first FPGA12 is initialized, and the receiving thread is set to blocking mode. When the first third-party data communication interface 16 receives the standard data packet sent by the third party, the standard data packet sent by the third party is stored in the received data storage buffer of the first FPGA12. The standard data packet sent by the third party fills the received data storage buffer of the first FPGA12 in a circular storage manner.
[0038] When the data processing thread first runs, the first embedded central processor 11 initializes the private data packet storage buffer, then periodically checks the read / write flag of the received data storage buffer in real time. Based on the read / write flag of the received data storage buffer, it determines whether a new data packet has been received. If a new data packet has been received, the data processing thread passes the new data packet to the corresponding standard protocol parsing module according to the previously selected standard protocol. These standard protocol parsing modules perform a primary data security check according to their respective standard protocol requirements. If the primary data security check succeeds, the read / write flag of the received data storage buffer of the first FPGA 12 is directly modified. Otherwise, the new data packet is directly discarded. If the primary data security check passes, the standard protocol parsing module fills the received new data packet into the private data packet structure. After the new private data packet is filled, a security check code for the private data packet is generated and written into the CRC field of the private data packet. The CRC field in the private data packet serves as the secondary data security check for the device. After the CRC field in the private data packet is filled, the read / write flag of the received data storage buffer is modified, preparing for the next received data processing. Simultaneously, the private data packet with the security check code for the private data packet written in the CRC field is stored in the private data packet storage buffer and the private data packet read flag is set. At this point, the general protocol data can be converted to the device's private protocol.
[0039] Data sending thread: The first embedded central processor 11 periodically and in real time determines whether there is a new private data packet stored in the private data packet storage buffer according to the read-write flag of the private data packet storage buffer. If a new private data packet is stored, the new private data packet is taken out from the private data packet storage buffer through the first network card 13 and the second network card 14 and sent to the DCS. After sending, the read-write flag of the private data packet buffer is modified to prepare for the next data packet processing.
[0040] The process of forwarding DCS data to a third party is the opposite of the above method. First, the DCS data is collected and stored in the first FPGA12 through the first network card 13 and the second network card 14. The first FPGA12 performs a secondary data security check to determine whether it is correct. If correct, it generates a primary data security check code. The first FPGA12 converts the data into a standard protocol data packet and fills in the primary data security check code. The data is then handed over to the data sending thread to be sent to the third party through the first third-party data communication interface 16.
[0041] The receiving thread first receives a standard Modbus protocol data packet through the first network card 13 and the second network card 14. After passing the first-level CRC check on the received standard Modbus packet, it enters the unpacking function. The unpacking function places the received data after verification into a circular buffer and simultaneously modifies the read and write subscripts to prepare for the next storage. The sending thread then compares the changes in the read and write subscripts, reads the unsent data from the circular buffer, and then packages it according to the above-mentioned private data packet structure. The CRC field in the private data packet is filled into the private data packet structure. After undergoing the first-level data security check and the second-level data security check, the security of the data transmission of this communication device is guaranteed.
[0042] Among them, the private data packet structure is shown in Table 1:
[0043] Table 1 Private data packet structure
[0044] Baotou length length Baotou data CRC wrap tail 7AA7 Len Len 7AA7 Data 。。。 A77A
[0045] The first third-party data communication interface 16 is used to connect to the Ethernet network of the third-party platform.
[0046] When receiving data from a third party, the first third-party data communication interface 16 receives a standard Modbus protocol data packet and transmits the received standard Modbus protocol data packet to the first FPGA 12. The first FPGA 12 performs a first-level data security check on the received standard Modbus protocol data packet, places the standard Modbus protocol data packet that passes the check into the circular buffer of the first FPGA 12, and modifies the read subscript and write subscript; after comparing the changes in the read subscript and write subscript, the unsent data in the circular buffer is read out and packaged according to the private data packet structure to generate a second-level data security check code, and the second-level data security check code is filled in the corresponding position in the private data packet.
[0047] When sending data to a third party, the first network card 13 and the second network card 14 receive the private protocol data packet sent by the DCS and transmit the DCS private protocol data packet to the first FPGA 12. The first FPGA 12 performs a secondary data security check on the received DCS private protocol data packet, places the DCS private protocol data packet that passes the check into the circular buffer of the first FPGA 12, and modifies the read subscript and write subscript. After comparing the changes in the read subscript and write subscript, the unsent data in the circular buffer is read out and packaged according to the standard Modbus data packet structure to generate a primary data security check code, and the primary data security check code is filled in the corresponding position in the standard Modbus data packet.
[0048] The present invention further comprises a second communication module having the same structure as the first communication module, and a redundant communication connection is adopted between the first communication module and the second communication module.
[0049] The second communication module includes a second central processing unit 21, a second FPGA 22, a third network card 23, a fourth network card 24, a second data synchronization module 25, and a second third-party data communication interface 26. The second embedded central processing unit 21, the third network card 23, the fourth network card 24, the second data synchronization module 25, and the second third-party data communication interface 26 are all communicatively connected to the second FPGA 22.
[0050] The first embedded central processing unit 11 is connected to the first FPGA 12 through a high-speed PCI-E channel. Since the first embedded central processing unit 11 cannot provide four gigabit network cards, the present device expands four gigabit network ports through the first FPGA 12, wherein the first network card 13 and the second network card 14 are used for data acquisition between the present device and other controllers, the first third-party data communication interface 16 is used for data communication with a third party, and the first data synchronization module 15 is used for data synchronization with the second communication module.
[0051] In the present invention, either the first or second communication module can provide communication functions for large-scale data transmission and closed-loop control. The combination of the first and second communication modules can provide more stable large-scale data transmission and closed-loop control functions. Because third-party communication configurations vary, this device can be configured for single-card operation or redundant operation based on actual site conditions. If the third party only supports single-channel data transmission, a single card is configured to complete data acquisition and closed-loop control. If the third party supports dual-channel redundant data transmission, the device is configured to operate in redundant mode, improving system stability.
[0052] Since the third party does not support the redundant data transmission mode, this device is configured to operate in a single communication module mode: when only the first communication module is used, after the first communication module is powered on, the first embedded central processor 11 starts the data acquisition thread, the data sending thread, and the data synchronization thread. The first embedded central processor 11 initializes the first FPGA 12. After initializing the first FPGA 12, the first third-party data communication interface 16 is expanded. At this time, the power-on is completed.
[0053] Data acquisition thread: After collecting the data sent by the third party through the first third-party data communication interface 16, it is passed to the first FPGA12. The data processing thread obtains and processes the data from the first FPGA12 and forwards it to the first embedded central processor 11 through shared memory. After the first embedded central processor 11 obtains the data, it passes it to the first FPGA12. The first FPGA12 forwards it to the DCS through the first network card 13 and the second network card 14.
[0054] Data sending thread: After receiving the DCS sending data through the first network card 13 and the second network card 14, it is passed to the first FPGA12. The data processing thread obtains and processes the data from the first FPGA12, and then passes the data from the first FPGA12 to the first embedded central processing unit 11 through shared memory. After the first embedded central processing unit 11 obtains the data, it passes it to the first FPGA12. The first FPGA12 sends the data to the third party through the first third-party data communication interface 16.
[0055] Data synchronization thread: After the first and second communication modules are started, the first communication module is determined or defaulted to be the primary module and the second communication module as the secondary module based on the fault level priority and the principle of defaulting to the first communication module as the primary module. The primary module is responsible for sending and receiving data, while the secondary module only receives data. If a single communication module is operating, this data synchronization thread will run idle.
[0056] The first data synchronization module 15 in the primary module transmits necessary data to the second data synchronization module 25 in the secondary module, and the secondary module then transmits the received data to the second embedded central processor 21, thereby achieving a mutual hot standby operation mode.
[0057] If the third party supports redundant data transmission mode, the device is configured to operate in redundant mode: when the first communication module and the second communication module are used at the same time, the first communication module and the second communication module are powered on in the same way.
[0058] like Figure 1 As shown, in the present invention, the first network card 13 and the second network card 14 are connected to the A network and the B network of the thermal power plant unit, and the first third-party data communication interface 16 is connected to the third-party data platform. The third-party data platform can collect a large amount of real-time unit operation data and transmit it to the third-party data platform through the first third-party data communication interface 16. The third-party data platform can also write the processed data back to the running unit in a closed loop, realizing the practical significance of third-party guidance and control. If the third-party data platform supports dual-path redundant data links, the device can be configured to operate in a redundant mode. Similarly, the second communication module is also connected to the A network and the B network of the thermal power plant unit through the third network card 23 and the fourth network card 24, and is connected to the third-party system through the first third-party data communication interface 16. The same principle applies, except that the second communication module only collects data and does not process any closed-loop control instructions. The first communication module and the second communication module perform master-slave judgment according to the fault priority method and the principle that the first communication module is the main one under the same conditions. During processing, the main module transmits data such as instructions, status and intermediate variables to the second data synchronization module 25 through the first data synchronization module 15, so that the data sections of the first communication module and the second communication module remain consistent in any execution cycle, achieving the purpose of hot standby and fast switching.
[0059] This device solves the problem of secure communication of large amounts of data between the DCS system of a thermal power plant and a third party.
Claims
1. General purpose large data communication device, It is characterized in that The first communication module comprises a first embedded central processing unit (11), a first FPGA (12), a first network card (13), a second network card (14) and a first third-party data communication interface (16); the first embedded central processing unit (11), the first network card (13), the second network card (14) and the first third-party data communication interface (16) are all communicatively connected to the first FPGA (12); The first network card (13) is connected to a first redundant network in a unit in the thermal power plant, and the second network card (14) is connected to a second redundant network in a unit in the thermal power plant; The device further comprises a second communication module, the second communication module comprising a second embedded central processing unit (21), a second FPGA (22), a second data synchronization module (25) and a second third-party data communication interface (26); the second embedded central processing unit (21), the second data synchronization module (25) and the second third-party data communication interface (26) are all communicatively connected to the second FPGA (22); the first communication module further comprises a first data synchronization module (15), the first data synchronization module (15) is connected to the second data synchronization module (25); The first data synchronization module (15) is used to realize data synchronization between the first redundant network and the second redundant network in a redundant configuration mode; The first embedded central processing unit (11) is connected to the first FPGA (12) via a PCI-E channel; The first FPGA (12) comprises a receiving data storage buffer and a sending data storage buffer.
2. The general purpose large data volume communication device according to claim 1, It is characterized in that The second communication module also includes a third network card (23) connected to the second FPGA (22).
3. The general purpose large data volume communication device according to claim 2, It is characterized in that The second communication module also includes a fourth network card (24) connected to the second FPGA (22).
4. The general purpose large data volume communication device according to claim 1, It is characterized in that The first third-party data communication interface (16) is connected to the Ethernet network of the third-party platform.
5. A communication method based on the device according to claim 1, It is characterized in that The first third-party data communication interface (16) sends the received standard data packet sent by the third party to the first FPGA (12) and performs a first-level data security check. When the first-level data security check passes, the standard data packet is stored in the receiving data storage buffer of the first FPGA (12); when the first-level data security check succeeds, the read / write flag of the receiving data storage buffer of the first FPGA is modified; when the first-level data security check fails, the received standard data packet sent by the third party is discarded; The first embedded central processor (11) determines whether a new standard data packet is stored according to the read / write flag of the received data storage buffer of the first FPGA (12); if the read / write flag changes, it is determined that a new standard data packet is stored, the new standard data packet is converted into a private data packet, and a secondary data security check code is generated, the secondary data security check code is then filled into the private data packet, and the private data packet filled with the secondary data security check code is sent to the DCS via the first network card (13) and the second network card (14); When the first network card (13) and the second network card (14) receive a private data packet sent by the DCS, the first network card (13) and the second network card (14) transmit the received private data packet to the first FPGA (12), and the first FPGA (12) performs a secondary data security check on the private data packet, and stores the private data packet in a sending data storage buffer of the first FPGA (12) when the secondary data security check passes; The first embedded central processing unit (11) determines in real time the read / write flag of the transmission data storage buffer of the first FPGA (12); if the read / write flag changes, it is determined that a new private data packet is stored; when it is determined that a new private data packet is stored, the new private data packet is converted into a standard data packet and a first-level data security check code is generated; after the first-level data security check code is filled into the standard data packet, the standard data packet is taken out from the transmission data storage buffer of the first FPGA (12) through the first third-party data communication interface (16) and sent to a third party.
6. The communication method according to claim 5, It is characterized in that According to the priority of the fault level and the principle of defaulting the first communication module as primary, it is determined or defaulted that the first communication module is the primary module for data transmission and reception, and the second communication module is the secondary module for data reception.
