New energy centralized control station data interaction method, system and device and storage medium

By designing communication programs between the new energy centralized control station and the factory station for data packaging and processing, supporting multiple transmission protocols and encryption processing, the diversity, security and stability problems in data interaction are solved, and the data is realized Reliable transmission and efficient management, adapting to the large-scale data needs of new energy plants and stations.

CN119094485APending Publication Date: 2024-12-06YANCHI ZHONGYING CHUANGNENG NEW ENERGY CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411185455.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-27
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

The data interaction between the new energy centralized control station and multiple factory stations faces data diversity and complexity, standardization and interoperability, data security and privacy protection, data communication stability and reliability, and technical implementation difficulty and cost. question.

Method used

A new energy centralized control station data interaction method was designed, using communication programs to package, send and receive data between the new energy plant station and the centralized control station, supporting a variety of transmission protocols, including TCP and UDP, and has encryption, Compression and unpacking processing, ensuring the reliability and flexibility of data transmission through memory queueing and file caching mechanisms.

Benefits of technology

It realizes the safe and reliable data transmission, adapts to the dedicated power network, supports the transmission of super large packets, meets the demand for 100,000 to 100,000 to 100,000 test points in the new energy plant station, ensures the real-time and accuracy of data transmission, and reduces the Technology implementation and maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119094485A_ABST
    Figure CN119094485A_ABST
Patent Text Reader

Abstract

The invention discloses a new energy centralized control station data interaction method, system and device and a storage medium, and the method comprises the steps: starting a communication program at a new energy plant station and a centralized control station, reading the measurement point data of a plant station database through an upper application of the communication program, and packaging and providing the measurement point data to a sending cache; the sending cache puts the data packet into a memory queue, and if the queue is full, the queue is emptied and stored into a file cache; extracting the data packet from the sending cache, determining a sending target according to message header information, and putting the sending target into a sending plug-in; the sending plug-in carries out sending data processing, and calls a corresponding interface connection sending subpackage; a receiver starts an independent receiving thread for each interface connection, when a message is received, whether the message is correct or not is checked firstly, then the message is put into a receiving plug-in, and received data processing is completed according to configuration; and when all the sub-packets of one message are received, the receiving plug-in recombines all the sub-packets into a combined packet and returns the combined packet to the corresponding upper-layer application. The interaction method is safe, reliable and flexible in expansion.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of data processing of new energy power plants, and specifically relates to a data interaction method, system, equipment and storage medium of a new energy centralized control station. Background Art

[0002] Unlike traditional hydropower and thermal power, new energy power plants occupy a large area, are far away from cities, and are easy to maintain and can be unmanned. Therefore, the planning strategy for new energy plants in the new era is more based on multiple plants and one centralized control station. The operation and maintenance personnel are located in the centralized control station, monitoring the operation of each plant in real time through the network, and arranging maintenance in time according to the faults reported by the network. In this mode, a safe, efficient and reliable data interaction system needs to be designed for new energy plants.

[0003] With the rapid development of the new energy industry, the number and scale of new energy stations are increasing, and the traditional decentralized monitoring and management model can no longer meet the operational needs of enterprises. In order to achieve efficient, stable and sustainable energy supply, new energy plants and stations need to build an integrated centralized monitoring and operation management platform to promote digital and intelligent construction.

[0004] The centralized control station relies on information technology and an integrated platform to centrally control, remotely monitor and conduct comprehensive data analysis on multiple new energy sites. In this process, data interaction is a key link, which enables the operating status, production data and other information of each plant and station to be transmitted to the centralized control station in real time and accurately for centralized processing. The specific process of data interaction usually includes data acquisition, data transmission, data processing, command issuance and feedback confirmation, among which data acquisition refers to the real-time collection and upload of production and operation data of each new energy site to the centralized control station through sensors, collectors and other equipment. Data transmission refers to the transmission of the collected data to the data center of the centralized control station through a communication network (such as 5G, Ethernet, optical communication, etc.). Data processing refers to the processing and analysis of the received data by the data center of the centralized control station to form decision support information. Command issuance refers to the issuance of control instructions or instructions to adjust operating parameters by the centralized control station to each plant and station based on the data processing results. Feedback confirmation refers to the execution of corresponding operations by each plant and station after receiving the instructions, and the feedback of the execution results to the centralized control station for confirmation.

[0005] At present, the difficulties in data interaction between the centralized control station and multiple plant stations are mainly reflected in the following aspects:

[0006] (1) Data diversity and complexity

[0007] New energy stations include solar energy, wind energy, hydropower and other forms, and their data sources are wide and varied. The data generated by different types of stations (such as wind power, photovoltaic power, hydropower, etc.) are different. These data often include real-time monitoring data, operating status data, equipment failure data and other types. The data volume is huge and presents multi-dimensional and high-frequency characteristics. This diversity and complexity brings technical challenges to the integration, storage and processing of data.

[0008] (2) Data standardization and interoperability

[0009] Due to the differences in the development paths of various new energy technologies and between manufacturers, the data formats are diverse and lack standardization. There are differences in data formats, data protocols, and data interfaces between different stations and systems, which increases the complexity of data interaction and exchange. To achieve cross-platform and cross-system data interaction and sharing, it is necessary to formulate unified data standards and interface specifications, but this process often involves the interests and coordination of multiple parties, which is difficult.

[0010] (3) Data security and privacy protection

[0011] New energy station data involves key information about energy production and operation. Once leaked or used maliciously, it will have a serious impact on the operation of the energy system and national security. Therefore, in the process of data interaction, how to ensure data security and privacy protection is an important and complex task. It is necessary to use encryption technology, permission management mechanism, data desensitization and other means to protect data security. At the same time, it is necessary to establish sound laws, regulations and industry standards to strengthen the supervision and management of data sharing and openness.

[0012] (4) Stability and reliability of data communication

[0013] The number of data monitoring points for on-site equipment of new energy is huge, and the real-time requirements of data are high. The massive data transmission of each power station is gathered to the centralized control center, which puts higher requirements on the reliability of system data communication. However, in practical applications, the stability and reliability of data communication are often affected by many factors, such as network bandwidth, equipment performance, environmental factors, etc. These factors may cause data transmission delays, packet loss or interruptions, affecting the real-time and accuracy of data interaction.

[0014] (5) Technical implementation difficulty and cost considerations

[0015] In order to realize data interaction between the centralized control station and multiple plants and stations, advanced technical means and equipment are needed, such as cloud computing, big data, and the Internet of Things. However, the implementation of these technologies is often accompanied by high costs, including equipment purchase, software development, system integration, etc. At the same time, the speed of technological updates is relatively fast, and resources need to be continuously invested in maintenance and upgrades. This is a considerable burden for new energy companies. Summary of the invention

[0016] The purpose of the present invention is to provide a new energy centralized control station data interaction method, system, device and storage medium to address the problems in the above-mentioned prior art, which has a safe and reliable data transmission mechanism and flexible scalability.

[0017] In order to achieve the above object, the present invention has the following technical solutions:

[0018] In a first aspect, a data interaction method for a new energy centralized control station is provided, comprising:

[0019] The communication program is started at the new energy plant and the centralized control station. The upper layer application of the communication program run by the new energy plant reads the measurement point data in the plant database and packages it to the sending buffer.

[0020] The send buffer puts the data packet into the memory queue. If the queue is full, the queue is cleared and stored in the file buffer;

[0021] Take the data packet from the sending buffer, determine the sending target based on the message header information, and put it into the sending plug-in;

[0022] The sending plug-in processes the sent data and calls the corresponding interface to connect to PlantConnection to send the sub-packet;

[0023] The receiver starts a separate receiving thread for each interface connection PlantConnection. When receiving a message, it first checks whether the message is correct, then puts it into the receiving plug-in and completes the received data processing according to the configuration; when all subpackets of a message have been received, the receiving plug-in reassembles all subpackets into a combined package and returns it to the corresponding upper-level application.

[0024] As a preferred solution, the communication program is compatible with two underlying transmission protocols, TCP and UDP, and has extensibility and can support other transmission protocols according to on-site needs.

[0025] As a preferred solution, in the step of the upper-layer application of the communication program run by the new energy plant station reading the measurement point data in the plant station database, the connection between the new energy plants and stations is abstracted as an interface connection PlantConnection, and the recv and send methods are implemented. The recv and send methods are system calls used in socket programming, which are used to receive and send data through the socket;

[0026] A framework is designed in the communication program to facilitate transmission of upper-layer applications. The real-time library and historical library measurement point sending functions are compiled into a dynamic library, which is then compiled by the current communication program. This enables automatic loading of the transmission method provided by the developer when the program is started.

[0027] As a preferred solution, after the upper-level application of the communication program run by the new energy plant reads the measurement point data in the plant database, a fixed-length message header is designed to realize single-packet sending and receiving when packaging and providing it to the sending cache; a unique message sequence number is determined according to the message content and the message sending and receiving order, and the maximum data load of a single packet is determined according to the parameter configuration maximum data unit MDU, thereby determining the number and order of message unpacking.

[0028] As a preferred solution, the sending plug-in is designed in the transmitter, and the sending plug-in splits the message into small messages of a set length; the sending plug-in supports multiple processing of the message, and selects whether to encrypt, the encryption method, whether to compress and the compression algorithm according to the user configuration, and is combined with the unpacking and reassembly algorithm to form an expandable message processing layer; the steps of the sending plug-in performing sending data processing include: encryption, compression and unpacking; the steps of completing the receiving data processing according to the configuration include: decryption, decompression and reassembly.

[0029] As a preferred solution, when the receiver starts a separate receiving thread for each interface connection PlantConnection, messages from new energy plants with a priority higher than the set standard are received without blocking; a receiving plug-in runs on the receiver, which has the same configuration as the sending plug-in, and has the functions of message reassembly and missed packet retransmission, and completes packet reassembly and missed packet retransmission according to the packet order and total number of packets identified in the message header.

[0030] As a preferred solution, the message sending and receiving cache is designed with a variable-length cache, which can store messages with a maximum length of 16MB, and is dynamically released by the memory queue; and it is combined with a file cache. When the message avalanche or network congestion occurs, some messages are stored in files, and read and resent when the network conditions improve.

[0031] In a second aspect, a new energy centralized control station data interaction system is provided, comprising:

[0032] The upper layer application data reading module is used to start the communication program in the new energy plant and the centralized control station. The upper layer application of the communication program run by the new energy plant reads the measurement point data in the plant database and packages it to the sending buffer;

[0033] The data packet buffer module is used to send the buffer to put the data packet into the memory queue. If the queue is full, the queue is cleared and stored in the file buffer;

[0034] The data packet sending module is used to take out the data packet from the sending buffer, determine the sending target according to the message header information, and put it into the sending plug-in;

[0035] The sub-package sending execution module is used to send the plug-in to process the sent data and call the corresponding interface to connect to PlantConnection to send the sub-package;

[0036] The receiving and subpacketizing module is used by the receiver to start a separate receiving thread for each interface connection PlantConnection. When a message is received, it is first checked whether the message is correct, and then placed in the receiving plug-in to complete the receiving data processing according to the configuration; when all subpackets of a message have been received, the receiving plug-in reassembles all subpackets into a combined package and returns it to the corresponding upper-level application.

[0037] According to a third aspect, an electronic device is provided, including:

[0038] A memory storing at least one instruction; and a processor executing the instruction stored in the memory to implement the new energy centralized control station data interaction method.

[0039] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the data interaction method of the new energy centralized control station is implemented.

[0040] Compared with the prior art, the present invention has at least the following beneficial effects:

[0041] The upper-layer application of the communication program run by the new energy plant reads the measurement point data in the plant database, packages it and provides it to the sending cache. The communication program adapts to the data communication needs of the new energy field station and the centralized control station, can ensure the safe and reliable transmission of data, and supports multiple transmission protocols, adapts to the special requirements of the power-specific network, and the upper-layer application development is flexible and convenient, allowing the sending of ultra-large messages, and adapting to the data volume of 100,000 to 1 million measurement points in the new energy plant. The sending cache puts the data packet into the memory queue. If the queue is full, the queue is cleared and stored in the file cache. During the sending process, the data packet is taken out of the sending cache, the sending target is determined according to the message header information, and the sending plug-in is put in. The sending plug-in processes the sending data and calls the corresponding interface to connect to PlantConnection to send the sub-packet. Compression, encryption and other methods can be flexibly added during the sending process, with flexible scalability. During the receiving process, the receiver starts a separate receiving thread for each interface connection PlantConnection. When a message is received, it first checks whether the message is correct, then puts it into the receiving plug-in, and completes the receiving data processing according to the configuration; when all subpackets of a message have been received, the receiving plug-in reorganizes all subpackets into a combined package and returns it to the corresponding upper-level application. The module layered design is adopted in the data packet sending and receiving process, and it has a reliable data transmission mechanism. The data interaction method of the new energy centralized control station of the present invention designs an application layer message management mechanism, which can reliably send a maximum single package of 16MB messages, meeting the needs of new energy plants for transmitting a large amount of measurement point data. At the same time, an application layer packet loss return mechanism can be set to ensure reliable message delivery, as well as flow control and file caching mechanisms to solve the reliable transmission of messages in the case of network interruption and limited network speed. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0043] Figure 1 Flowchart of the data interaction method of the new energy centralized control station according to an embodiment of the present invention. DETAILED DESCRIPTION

[0044] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, ordinary technicians in this field can also obtain other embodiments without making creative work.

[0045] The communication between the centralized control station and the field station is a key link in the operation and maintenance management of new energy plants and stations. It ensures the real-time transmission of data, the timely issuance of instructions, and the remote monitoring and processing of faults. Designing a safe, efficient and reliable data interaction system for new energy plants and stations is the key to ensuring smooth communication, real-time monitoring and efficient operation and maintenance between multiple plants and stations and the centralized control station. The communication between the centralized control station and the field station is achieved through wired or wireless means, following a unified communication protocol and process. During the communication process, it is necessary to pay attention to the security, real-time and stability of the data to ensure the normal operation and efficient operation and maintenance of new energy plants and stations.

[0046] See also Figure 1 The embodiment of the present invention proposes a data interaction method for a new energy centralized control station, comprising the following steps:

[0047] S1. Start the communication program at the new energy plant and the centralized control station. The upper layer application of the communication program run by the new energy plant reads the measurement point data in the plant database and packages it to the sending buffer.

[0048] S2, the sending buffer puts the data packet into the memory queue. If the queue is full, the queue is cleared and stored in the file cache;

[0049] S3, take out the data packet from the sending buffer, determine the sending target according to the message header information, and put it into the sending plug-in;

[0050] S4, the sending plug-in processes the sent data and calls the corresponding interface to connect to PlantConnection to send the sub-packet;

[0051] S5. The receiver starts a separate receiving thread for each interface connection PlantConnection. When receiving a message, it first checks whether the message is correct, then puts it into the receiving plug-in and completes the received data processing according to the configuration; when all sub-packets of a message have been received, the receiving plug-in reassembles all sub-packets into a combined package and returns it to the corresponding upper-layer application.

[0052] In a possible implementation, the name IP and plant type of the communication new energy plant, the name and plant type of the local plant, the number of upper-layer application threads started and flow control information are filled in the configuration file and saved.

[0053] In the step of the upper-level application of the communication program run by the new energy plant reading the measurement point data in the plant database, the connection between the new energy plants is abstracted as an interface connection PlantConnection, and the recv and send methods are implemented. The recv and send methods are system calls used in socket programming, which are used to receive and send data through the socket.

[0054] Interface connection PlantConnection refers to a specific network connection or system interface, which is used to realize data exchange or communication between different systems or devices.

[0055] Furthermore, the communication program of the embodiment of the present invention is compatible with two underlying transmission protocols, TCP and UDP, and has extensibility and can support other transmission protocols according to on-site needs.

[0056] TCP (Transmission Control Protocol) and UDP (User Datagram Protocol) are the two most basic underlying transmission protocols for data exchange on the Internet. TCP and UDP each have their own advantages and applicable scenarios. When choosing which protocol to use, you need to decide based on the specific needs and characteristics of the application. TCP is a connection-oriented, reliable, byte-stream-based transport layer communication protocol. Before data transmission, a TCP connection must be established, and the connection must be released after the data transmission is completed. This connection is one-to-one, so TCP provides reliable data transmission. UDP is a connectionless transmission protocol that does not establish and maintain connections. The sender does not need to establish a connection before sending data, and the receiver does not need to send an acknowledgment after receiving the datagram. Therefore, UDP has a faster transmission speed, but the arrival order, arrival time, and loss of data packets cannot be guaranteed. TCP is suitable for applications that require high reliability and high data integrity, while UDP is suitable for applications that have high real-time requirements and relatively low reliability requirements.

[0057] In a possible implementation, the embodiment of the present invention designs a framework in the communication program to facilitate upper-layer application transmission. The developer compiles the real-time library and historical library measurement point sending functions into a dynamic library, and submits it to the current communication program for compilation, so that the transmission method provided by the developer can be automatically loaded when the program starts.

[0058] The data interaction method of the new energy centralized control station in the embodiment of the present invention designs an application layer message management mechanism, which can reliably send a maximum single-packet 16MB message to meet the needs of the new energy plant for transmitting a large amount of measurement point data. After the upper-layer application of the communication program run by the new energy plant reads the measurement point data in the plant database, it designs a fixed-length message header to realize single-packet transmission and reception when packaging and providing it to the transmission buffer; determines a unique message sequence number based on the message content and the order of message transmission and reception, and determines the maximum data load of a single packet based on the parameter configuration maximum data unit MDU, thereby determining the number and order of message unpacking.

[0059] In a possible implementation, the embodiment of the present invention designs the sending plug-in in the transmitter, and the sending plug-in splits the message into small messages of set length. The sending plug-in supports multiple processing of the message, selects whether to encrypt, encryption method, compression and compression algorithm according to user configuration, and combines the unpacking and reassembly algorithm to form an expandable message processing layer.

[0060] Furthermore, the steps of sending data processing performed by the sending plug-in include: encryption, compression and unpacking, and correspondingly, the steps of receiving data processing completed by the receiving party according to the configuration include: decryption, decompression and reassembly.

[0061] In a possible implementation, when the receiver of the embodiment of the present invention starts a separate receiving thread for each interface connection PlantConnection, it ensures that messages from new energy plants with a priority higher than the set standard are received without blocking. The receiver of the interface connection PlantConnection runs a receiving plug-in, which has the same configuration as the sending plug-in, and has the functions of message reassembly and missed packet retransmission, and completes the packet reassembly and missed packet retransmission according to the packet sequence and total number of packets identified in the message header.

[0062] In one possible implementation, the message receiving and sending cache of the new energy centralized control station data interaction method of the embodiment of the present invention is designed with a variable-length cache, which can store messages with a maximum length of 16MB, and is dynamically released by the memory queue; and is combined with a file cache. When the message avalanche or network congestion occurs, some messages are stored in files, which are read and retransmitted when the network conditions improve.

[0063] The data interaction method of the new energy centralized control station in the embodiment of the present invention designs an application layer packet loss return mechanism to ensure reliable message delivery, and designs a flow control and file caching mechanism to solve the reliable transmission of messages in the case of network interruption and limited network speed.

[0064] Generally, the communication process between the centralized control station and the field station mainly includes data collection, data transmission, data processing and display, and command issuance. During the data collection process, the field station collects real-time operation data, such as voltage, current, power, temperature, etc., through various sensors, instruments and other equipment. During the data transmission process, the collected data is transmitted to the centralized control station by wired or wireless means. During the transmission process, the data may need to be encrypted to improve security. During the data processing and display process, the data received by the centralized control station is processed and displayed to the operation and maintenance personnel through a visual interface. The operation and maintenance personnel can monitor the operating status of each field station in real time and perform remote control or adjustment as needed. During the command issuance process, when an abnormal situation is found or equipment adjustment is required, the operation and maintenance personnel can issue instructions to the new energy plant station on site through the centralized control station. The instructions are transmitted to the field station through the same communication method and protocol and are executed by the corresponding actuator. In order to ensure the security and stability of the communication process, a series of security measures need to be taken. For example, use encryption technology to protect the security of data transmission; set up security equipment such as firewalls to prevent external attacks; regularly conduct security audits and vulnerability repairs on communication equipment and systems. The communication between the centralized control station and the field station needs to follow a unified communication protocol to ensure the correct parsing of data and the accurate execution of instructions. Common communication protocols include international standard protocols such as IEC 61850, Modbus, and OPC UA. These protocols have wide compatibility and interoperability and can meet the communication needs between devices from different manufacturers.

[0065] The communication program of the data interaction method of the new energy centralized control station in the embodiment of the present invention is adapted to the needs of data communication between new energy stations and centralized control stations, and can ensure the safe and reliable transmission of data. It supports multiple transmission protocols and adapts to the special requirements of the power-specific network. The upper-layer application development of the communication program is flexible and convenient, allowing the sending of ultra-large messages and adapting to the data volume of hundreds of thousands to millions of measurement points in new energy plants and stations. Compression, encryption and other methods can be flexibly added to data transmission, and the code architecture design allows flexible expansion.

[0066] Another embodiment of the present invention further provides a new energy centralized control station data interaction system, including:

[0067] The upper layer application data reading module is used to start the communication program in the new energy plant and the centralized control station. The upper layer application of the communication program run by the new energy plant reads the measurement point data in the plant database and packages it to the sending buffer;

[0068] The data packet buffer module is used to send the buffer to put the data packet into the memory queue. If the queue is full, the queue is cleared and stored in the file buffer;

[0069] The data packet sending module is used to take out the data packet from the sending buffer, determine the sending target according to the message header information, and put it into the sending plug-in;

[0070] The sub-package sending execution module is used to send the plug-in to process the sent data and call the corresponding interface to connect to PlantConnection to send the sub-package;

[0071] The receiving and subpacketizing module is used by the receiver to start a separate receiving thread for each interface connection PlantConnection. When a message is received, it is first checked whether the message is correct, and then placed in the receiving plug-in to complete the receiving data processing according to the configuration; when all subpackets of a message have been received, the receiving plug-in reassembles all subpackets into a combined package and returns it to the corresponding upper-level application.

[0072] Another embodiment of the present invention further provides an electronic device, including:

[0073] A memory storing at least one instruction; and a processor executing the instruction stored in the memory to implement the new energy centralized control station data interaction method.

[0074] Another embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the data interaction method of the new energy centralized control station is implemented.

[0075] Exemplarily, the instructions stored in the memory may be divided into one or more modules / units, which are stored in a computer-readable storage medium and executed by the processor to complete the data interaction method of the new energy centralized control station described in the present invention. The one or more modules / units may be a series of computer-readable instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program in the server.

[0076] The electronic device may be a computing device such as a smart phone, a notebook, a PDA, and a cloud server. The electronic device may include, but is not limited to, a processor and a memory. Those skilled in the art will appreciate that the electronic device may also include more or fewer components, or a combination of certain components, or different components, for example, the electronic device may also include an input / output device, a network access device, a bus, etc.

[0077] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0078] The memory may be an internal storage unit of the server, such as a hard disk or memory of the server. The memory may also be an external storage device of the server, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the server. Furthermore, the memory may include both an internal storage unit of the server and an external storage device. The memory is used to store the computer-readable instructions and other programs and data required by the server. The memory may also be used to temporarily store data that has been output or is to be output.

[0079] It should be noted that the information interaction, execution process and other contents between the above-mentioned module units are based on the same concept as the method embodiment. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0080] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0081] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the camera device / terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a disk or an optical disk.

[0082] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0083] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A data interaction method for a new energy centralized control station, characterized in that: include: The communication program is started at the new energy plant and the centralized control station. The upper layer application of the communication program run by the new energy plant reads the measurement point data in the plant database and packages it to the sending buffer. The send buffer puts the data packet into the memory queue. If the queue is full, the queue is cleared and stored in the file buffer; Take the data packet from the sending buffer, determine the sending target based on the message header information, and put it into the sending plug-in; The sending plug-in processes the sent data and calls the corresponding interface to connect to PlantConnection to send the sub-packet; The receiver starts a separate receiving thread for each interface connection PlantConnection. When receiving a message, it first checks whether the message is correct, then puts it into the receiving plug-in and completes the received data processing according to the configuration; when all subpackets of a message have been received, the receiving plug-in reassembles all subpackets into a combined package and returns it to the corresponding upper-level application.

2. The data interaction method of the new energy centralized control station according to claim 1 is characterized in that: The communication program is compatible with two underlying transmission protocols, TCP and UDP, and is extensible and can support other transmission protocols according to on-site needs.

3. The data interaction method of the new energy centralized control station according to claim 1 or 2, characterized in that: In the step of reading the measurement point data in the plant database by the upper-layer application of the communication program run by the new energy plant, the connection between the new energy plants is abstracted as an interface connection PlantConnection, and the recv and send methods are implemented. The recv and send methods are system calls used in socket programming, which are used to receive and send data through the socket; Design a framework in the communication program to facilitate transmission of upper-layer applications; Compile the real-time library and historical library measurement point sending functions into a dynamic library and hand it over to the current communication program for compilation, so that the transmission method provided by the developer can be automatically loaded when the program starts.

4. The data interaction method of the new energy centralized control station according to claim 1 is characterized in that: After the upper-layer application of the communication program run by the new energy plant reads the measurement point data in the plant database, it designs a fixed-length message header to realize single-packet sending and receiving when packaging and providing it to the sending buffer; determines the unique message sequence number according to the message content and the message sending and receiving order, and determines the maximum data load of a single packet according to the parameter configuration maximum data unit MDU, thereby determining the number and order of message unpacking.

5. The data interaction method of the new energy centralized control station according to claim 4 is characterized in that: The sending plug-in is designed in the transmitter, and the sending plug-in splits the message into small messages of set length; the sending plug-in supports multiple processing of the message, selects whether to encrypt, the encryption method, whether to compress and the compression algorithm according to the user configuration, and combines the unpacking and reassembly algorithm to form an expandable message processing layer; The steps of sending data processing by the sending plug-in include: encryption, compression and unpacking; the steps of completing receiving data processing according to the configuration include: decryption, decompression and reorganization.

6. The data interaction method of the new energy centralized control station according to claim 1 is characterized in that: When the receiver starts a separate receiving thread for each interface connection PlantConnection, messages from new energy plants with a priority higher than the set standard are received without blocking; a receiving plug-in runs on the receiver, which has the same configuration as the sending plug-in, and has the functions of message reassembly and missed packet retransmission, and completes packet reassembly and missed packet retransmission according to the packet sequence and total number of packets identified in the message header.

7. The data interaction method of the new energy centralized control station according to claim 1 is characterized in that: The message receiving and sending cache is designed with a variable-length cache, which can store messages with a maximum length of 16MB, and is dynamically released by the memory queue; and with file cache, when messages avalanche or network congestion occurs, some messages are stored in files, and read and resent when network conditions improve.

8. A new energy centralized control station data interaction system, characterized in that: include: The upper layer application data reading module is used to start the communication program in the new energy plant and the centralized control station. The upper layer application of the communication program run by the new energy plant reads the measurement point data in the plant database and packages it to the sending buffer; The data packet buffer module is used to send the buffer to put the data packet into the memory queue. If the queue is full, the queue is cleared and stored in the file buffer; The data packet sending module is used to take out the data packet from the sending buffer, determine the sending target according to the message header information, and put it into the sending plug-in; The sub-package sending execution module is used to send the plug-in to process the sent data and call the corresponding interface to connect to PlantConnection to send the sub-package; The receiving and subpacketizing module is used by the receiver to start a separate receiving thread for each interface connection PlantConnection. When a message is received, it is first checked whether the message is correct, and then placed in the receiving plug-in to complete the receiving data processing according to the configuration; when all subpackets of a message have been received, the receiving plug-in reassembles all subpackets into a combined package and returns it to the corresponding upper-level application.

9. An electronic device, characterized in that: include: A memory storing at least one instruction; and A processor executes instructions stored in the memory to implement the new energy centralized control station data interaction method according to any one of claims 1 to 7.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the data interaction method for a new energy centralized control station according to any one of claims 1 to 7 is implemented.