A communication data processing system and method for power system developed based on Java language
By designing a communication data processing system that supports IEC101 and IEC104 protocols in the power system, the problems of telecontrol equipment communication inconsistency and data collection load are solved, automatic data collection and analysis are realized, and the real-time and integrity of the data are ensured. , improving development efficiency.
Patent Information
- Application Number
- CN202111624381.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-28
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2041-12-28
AI Technical Summary
In the existing power system communication data processing developed based on Java language, remote control equipment only supports IEC series communication protocols, which results in the remote production data management system requiring multiple conversions and collections, which cannot form consistency, and a single data collection component leads to data collection Increased load and abnormalities cause data loss.
A power system communication data processing system including IEC communication components is designed. It uses communication control modules, interface components and core modules to support automatic collection and analysis of IEC101 and IEC104 protocols. It connects to the processor for serial port and Ethernet communication to achieve Real-time collection and storage of data reduces data transmission load.
It realizes the automatic collection and analysis of telecontrol device data, provides data caching and alarm functions, reduces development coupling, improves development efficiency, ensures the real-time and integrity of data, and avoids data loss.
Smart Images

Figure CN114301956B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of electric power communication, and specifically relates to a communication data processing system and method for an electric power system developed based on Java language. Background Art
[0002] Java is an object-oriented programming language. It not only absorbs various advantages of C++, but also abandons the difficult-to-understand concepts such as multiple inheritance and pointers in C++. Therefore, Java has two characteristics: powerful functions and simple and easy to use. As a representative of static object-oriented programming languages, Java has excellently implemented object-oriented theory, allowing programmers to perform complex programming with an elegant way of thinking. Single-chip computer systems have appeared in the hardware field. This low-cost system immediately attracted the attention of people in the field of automatic control, because using it can greatly enhance the intelligence of consumer electronic products (such as TV set-top boxes, bread ovens, mobile phones, etc.).
[0003] The power communication network came into being to ensure the safe and stable operation of the power system. It, together with the relay protection and safety and stability control system and dispatching automation system of the power system, is collectively referred to as the three pillars of safe and stable operation of the power system. It is the basis of grid dispatching automation, marketization of network operation and modernization of management; it is an important means to ensure the safe, stable and economic operation of the power grid; it is an important infrastructure of the power system. Since the power communication network has strict requirements on the reliability of communication, the rapidity and accuracy of protection and control information transmission, and the power sector has special resource advantages in developing communications, most power companies in the world have established a dedicated communication network for the power system mainly by self-construction. Entering the era of information and communication technology, the development trend of telecommunication technology is: network business application IP, network switching technology grouping, network infrastructure broadband, network function structure simplification, and integration of three networks.
[0004] Java has developed very fast since its introduction and is one of the most popular programming languages. The reason why Java is widely used and popular is that it has many outstanding features, among which the most important features are as follows: Java is purely object-oriented. It provides primitives such as classes, interfaces and inheritance, supports single inheritance between classes and interfaces, and multiple implementation mechanisms between interfaces and classes; Java fully supports dynamic binding, while C++ only uses dynamic binding for virtual functions. The grammatical structure of Java is similar to that of C and C++, but Java discards the fuzzy concepts of operator overloading and multiple inheritance that are difficult to understand in C++. In particular, Java does not use pointers, but references, and provides an automatic garbage collection mechanism, so that programmers do not have to worry about memory management. Java places special emphasis on security. Before running a Java program, a security check of the code will be performed to ensure that the program will not have the possibility of illegally accessing local resources and file systems, ensuring the security of the program's transmission and operation across the network. Java introduces the concept of virtual machines. The Java virtual machine (JVM) is built on hardware and operating systems to implement the interpretation and execution of Java bytecode files and provide a unified interface for different platforms. This allows Java applications to run on different system platforms, achieving platform independence, which is very suitable for network applications. The Java language supports multi-threading. The so-called multi-threading can be understood as multiple tasks executing concurrently in the program. The synchronization mechanism provided by the Java language can ensure the correct operation of each thread on shared data. Multi-threading can greatly improve the execution efficiency of the program. The Java platform consists of the Java Virtual Machine (Java Virtual Machine) and the Java Application Programming Interface (Application Programming Interface, API). The Java Application Programming Interface provides a standard interface independent of the operating system for Java applications, which can be divided into a basic part and an extended part. After installing a Java platform on the hardware or operating system platform, the Java application can be run. The Java platform has now been embedded in almost all operating systems. In this way, Java programs can be compiled only once and can be run on various systems.
[0005] At present, in the communication data processing for power systems developed based on Java language, the production data of a large number of power generation enterprises are stored in various system equipment in the safety zone I, and the remote monitoring and control of the power system dispatching service are realized through telecontrol equipment. However, considering its safety and the integration of the national power grid, the telecontrol equipment only supports the IEC series communication protocols for external communication. For most remote production data management systems, if they want to obtain real-time production data, they need to convert and collect related equipment and protocols multiple times, which cannot form consistency. Different devices support different protocols and need to be processed differently, which has a great impact on the existing production data management system and remote data reporting system. At the same time, if a single data acquisition component is used, the load of data acquisition will increase, and the acquisition process is prone to interruption or other abnormal conditions, resulting in a large amount of data loss. Therefore, a communication data processing system and method for power systems developed based on Java language are needed to solve the above problems. Summary of the invention
[0006] 1. Technical issues to be resolved
[0007] In order to overcome the above-mentioned defects of the prior art, the present invention provides a communication data processing system and method for an electric power system developed based on the Java language, which solves the problem that the telecontrol equipment only supports the IEC series communication protocols for external communication in consideration of its safety and the integration of the national power grid. For most remote production data management systems, if they want to obtain real-time production data, they need to convert and collect related equipment and protocols for multiple times, and cannot form consistency. In addition, different devices support different protocols. Using a single data acquisition component will increase the load of data acquisition, and the acquisition process is prone to interruption or other abnormal conditions, resulting in a large amount of data loss.
[0008] (II) Technical solution
[0009] To achieve the above-mentioned purpose, the present invention provides the following technical solution: a communication data processing system for an electric power system developed based on Java language, comprising an IEC communication component, wherein the IEC communication component comprises a communication control module, wherein the communication control module is bidirectionally connected to an interface component, wherein the interface component is bidirectionally connected to a core module, and an input end of the core module is connected to an output end of a service interface.
[0010] The core module includes a sending processor, a receiving processor, a message processor, a parsing processor and a connection processor. The output end of the connection processor is connected to the input end of the receiving processor, the output end of the receiving processor is connected to the input end of the parsing processor, the input end of the connection processor is connected to the output end of the sending processor, and the input end of the sending processor is connected to the output end of the message processor.
[0011] As a further solution of the present invention: the connection mode in the connection processor includes serial port connection and network port connection, the connection processor serial port / network port connection mode is connected to the interface component, and the connection processor is bidirectionally connected to the monitoring control system / telecontrol equipment through the interface component and the communication control module.
[0012] As a further solution of the present invention: the interface component includes RAM, Flash, Ethernet interface and USB interface, and the business interface includes data general call, call change, device control and device synchronization.
[0013] As a further solution of the present invention: the communication control module is used to output real-time information according to the setting of the real-time clock and a preset mechanism, and the data receiving interval is 5s / time, and the data received 5s / time is automatically saved to the receiving processor.
[0014] As a further solution of the present invention: the connection processor is used to support two connection modes: serial port and Ethernet communication. The parsing processor includes two modes: IEC101 protocol parsing and IEC104 protocol parsing. The IEC101 protocol parsing supports the assembly and interpretation of 101 protocol messages, and the IEC104 protocol parsing supports the assembly and interpretation of 104 protocol messages.
[0015] As a further solution of the present invention: the device timing interface in the business interface is called manually to calibrate the device time, the device control interface is used to send remote control information to the monitoring control system / telecontrol equipment to adjust the various configurations of the equipment, and the call change interface is an interface for monitoring device data changes, and a socket long connection is established with the application system.
[0016] A method for processing communication data for a power system developed based on Java language, comprising the following steps:
[0017] S1. First, the data call interface in the business interface will call the message processor in the core module in sequence and assemble the data request message. Secondly, the connection processor will be called to establish and reset the connection with the message processor, sending processor, receiving processor and parsing processor until the data return is completed.
[0018] S2. When the interface service is called, the interface service will assemble all the message frame statements of the request target according to the parameters transmitted by the service, and then call the connection processor to send a communication request to the monitoring and control system / telecontrol device to establish a communication connection. After the connection is successful, the request message will be sent to the monitoring and control system / telecontrol device in turn.
[0019] S3. Establish a long connection by resetting the link and calling the change interface, receive the change data message and verify the message. If an error occurs, return the value request link status and re-enter it. If correct, send a confirmation message directly and return the data.
[0020] S4. Secondly, the data request message is sent through the reset link. After receiving the message, it is determined whether there is unfinished data based on the response. If so, continue to send instructions to request subsequent frames and accept subsequent frames. If not, close the connection and start to verify whether the message is correct. When the message verification is correct, parse the message data and return the data to the application until the data return is completed. After each data call and device control request is completed, according to the protocol requirements, the component will continue to send device synchronization requests to complete a complete protocol operation.
[0021] S5. After determining that the message has no subsequent frames, the message is checked. If the message is abnormal and an error occurs, the message corresponding to the abnormal message is directly returned to the application. If it is correct, the message is parsed and the data is returned. After completing the verification and parsing of the message, the configuration is written and the message is sent. After receiving the response, the operation status is returned.
[0022] (III) Beneficial effects
[0023] Compared with the prior art, the present invention has the following beneficial effects:
[0024] 1. In the present invention, by providing a solution for automated collection and analysis of the two protocols of IEC101 and IEC104, after integrating this service into the system, it can support data collection and analysis of telecontrol equipment or power plant monitoring systems, and also provide data caching and alarm functions. By quickly providing each application system with access to the communication protocol components of IEC101 and IEC104, it is only necessary to integrate the SDK of this component into its own application system or a separate collection service, and it will not cause any impact on the existing business logic, reduce coupling, and improve development efficiency.
[0025] 2. In the present invention, the communication control module outputs real-time information according to the setting of the real-time clock and the preset mechanism, and the data receiving interval is 5s / time, and the data received 5s / time is automatically saved to the receiving processor, and the data communication is transmitted through RAM, Flash, Ethernet interface and USB interface to meet the needs of different transmission forms, providing convenience for the real-time release of service information and user demand response of this application, and at the same time, according to the setting of the real-time clock, the data is transmitted in real time according to the preset mechanism to avoid the increase of data collection load leading to data transmission abnormality or large-scale data loss. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 is a schematic block diagram of the system of the present invention;
[0027] Figure 2 It is the business logic flow chart of the present invention;
[0028] Figure 3 This is a flowchart of the present invention when the application is running. DETAILED DESCRIPTION
[0029] The technical solution of this patent is further described in detail below in conjunction with specific implementation methods.
[0030] like Figure 1-3 As shown, the present invention provides a technical solution: a communication data processing system for an electric power system developed based on Java language, including an IEC communication component, the IEC communication component includes a communication control module, the communication control module is bidirectionally connected to the interface component, the interface component is bidirectionally connected to the core module, and the input end of the core module is connected to the output end of the business interface.
[0031] The core module includes a sending processor, a receiving processor, a message processor, a parsing processor and a connection processor. The output end of the connection processor is connected to the input end of the receiving processor, the output end of the receiving processor is connected to the input end of the parsing processor, the input end of the connection processor is connected to the output end of the sending processor, and the input end of the sending processor is connected to the output end of the message processor.
[0032] The connection modes in the connection processor include serial port connection and network port connection. The serial port / network port connection mode of the connection processor is connected to the interface component. The connection processor is bidirectionally connected to the monitoring control system / telecontrol equipment through the interface component and the communication control module.
[0033] The interface components include RAM, Flash, Ethernet interface and USB interface, and the business interfaces include data general call, call change, device control and device synchronization.
[0034] The communication control module is used to output real-time information according to the setting of the real-time clock and the pre-set mechanism, and the receiving data interval is 5s / time, and the data received 5s / time is automatically saved to the receiving processor.
[0035] The connection processor is used to support two connection modes: serial port and Ethernet communication. The parsing processor includes two modes: IEC101 protocol parsing and IEC104 protocol parsing. IEC101 protocol parsing supports the assembly and interpretation of 101 protocol messages, and IEC104 protocol parsing supports the assembly and interpretation of 104 protocol messages.
[0036] The device timing interface in the business interface is called manually to calibrate the device time. The device control interface is used to send remote control information to the monitoring control system / telecontrol equipment and adjust the various configurations of the equipment. The call change interface is used to monitor device data changes. A long socket connection is established with the application system.
[0037] A method for processing communication data for a power system developed based on Java language, comprising the following steps:
[0038] S1. First, the data call interface in the business interface will call the message processor in the core module in sequence and assemble the data request message. Secondly, the connection processor will be called to establish and reset the connection with the message processor, sending processor, receiving processor and parsing processor until the data return is completed.
[0039] S2. When the interface service is called, the interface service will assemble all the message frame statements of the request target according to the parameters transmitted by the service, and then call the connection processor to send a communication request to the monitoring and control system / telecontrol device to establish a communication connection. After the connection is successful, the request message will be sent to the monitoring and control system / telecontrol device in turn.
[0040] S3. Establish a long connection by resetting the link and calling the change interface, receive the change data message and verify the message. If an error occurs, return the value request link status and re-enter it. If correct, send a confirmation message directly and return the data.
[0041] S4. Secondly, the data request message is sent through the reset link. After receiving the message, it is determined whether there is unfinished data based on the response. If so, continue to send instructions to request subsequent frames and accept subsequent frames. If not, close the connection and start to verify whether the message is correct. When the message verification is correct, parse the message data and return the data to the application until the data return is completed. After each data call and device control request is completed, according to the protocol requirements, the component will continue to send device synchronization requests to complete a complete protocol operation.
[0042] S5. After determining that the message has no subsequent frames, the message is checked. If the message is abnormal and an error occurs, the message corresponding to the abnormal message is directly returned to the application. If it is correct, the message is parsed and the data is returned. After completing the verification and parsing of the message, the configuration is written and the message is sent. After receiving the response, the operation status is returned.
[0043] In summary:
[0044] When deploying the application system, the server is connected to the remote control equipment or power plant monitoring system through the serial port or network port. Each time data needs to be collected, the relevant interface of this component can be called and the relevant collection parameters can be passed in. The component can automatically initiate a connection to the remote control equipment or power plant monitoring system, and perform IEC101 and IEC104 protocol communications, automatically assemble request messages, request specified data, and automatically parse the response messages into readable data. When the data communication is completed and the specified data is obtained, the application system interface will be called back to transmit the data to the external data management system. The external data management system sends the specified type of communication parameters to the component, and the component assembles different protocol messages according to different types.
[0045] Through the communication control module, real-time information is output according to the setting of the real-time clock and the pre-set mechanism, and the data receiving interval is 5s / time, and the data received 5s / time is automatically saved to the receiving processor, and data communication is transmitted through RAM, Flash, Ethernet interface and USB interface to meet the needs of different transmission forms, providing convenience for this application to carry out real-time release of service information and respond to user needs. At the same time, according to the setting of the real-time clock and the pre-set mechanism, data is transmitted in real time to avoid abnormal data transmission or large-scale data loss caused by increased data collection load.
[0046] The above describes in detail the preferred implementation of this patent, but this patent is not limited to the above implementation. Various changes can be made within the knowledge scope of ordinary technicians in this field without departing from the purpose of this patent.
Claims
1. A method for processing communication data for an electric power system developed based on Java language, and a system for processing communication data for an electric power system developed based on Java language, wherein the processing system includes an IEC communication component, and is characterized in that: The IEC communication component includes a communication control module, the communication control module is bidirectionally connected to the interface component, the interface component is bidirectionally connected to the core module, and the input end of the core module is connected to the output end of the service interface; The core module includes a sending processor, a receiving processor, a message processor, a parsing processor and a connection processor, wherein the output end of the connection processor is connected to the input end of the receiving processor, the output end of the receiving processor is connected to the input end of the parsing processor, the input end of the connection processor is connected to the output end of the sending processor, and the input end of the sending processor is connected to the output end of the message processor; The connection mode in the connection processor includes a serial port connection and a network port connection. The serial port / network port connection mode of the connection processor is connected to the interface component. The connection processor is bidirectionally connected to the monitoring control system / telecontrol device through the interface component and the communication control module. The connection processor is used to support two connection modes of serial port and Ethernet communication. The parsing processor includes two modes of IEC101 protocol parsing and IEC104 protocol parsing. The IEC101 protocol parsing supports the assembly and interpretation of the messages of the 101 protocol, and the IEC104 protocol parsing supports the assembly and interpretation of the messages of the 104 protocol; The communication data processing method comprises the following steps: S1. First, the data call interface in the business interface will call the message processor in the core module in sequence and assemble the data request message. Then, the connection processor is called to establish and reset the connection with the message processor, the sending processor, the receiving processor and the parsing processor until the data return is completed. S2. When the interface service is called, the interface service will assemble all message frame statements of the request target according to the parameters transmitted by the service, and then call the connection processor to send a communication request to the monitoring control system / telecontrol device to establish a communication connection. After the connection is successful, the request message will be sent to the monitoring control system / telecontrol device in turn; S3. Establish a long connection by resetting the link and calling the change interface, receive the change data message and verify the message. If an error occurs, return the value request link status and re-enter it. If it is correct, send a confirmation message directly and return the data. S4. Secondly, the data request message is sent through the reset link. After receiving the message, it is determined whether there is unfinished data according to the response. If yes, it continues to send instructions to request subsequent frames and accept subsequent frames. If no, it closes the connection and starts to check whether the message is correct. When the message verification is correct, it parses the message data and returns the data to the application until the data return is completed. After each data call and device control request is completed, according to the protocol requirements, the component will continue to send device synchronization requests to complete a complete protocol operation; S5. After determining that the message has no subsequent frames, the message is checked. If the message is abnormal and an error occurs, the message corresponding to the abnormal message is directly returned to the application. If it is correct, the message is parsed and the data is returned. After completing the verification and parsing of the message, the configuration is written and the message is sent. After receiving the response, the operation status is returned.
2. The method for processing communication data for a power system developed based on Java language according to claim 1, characterized in that: The interface components include RAM, Flash, Ethernet interface and USB interface, and the service interface includes data general call, call change, device control and device time synchronization.
3. The method for processing communication data for a power system developed based on Java language according to claim 1, characterized in that: The communication control module is used to output real-time information according to the setting of the real-time clock and the preset mechanism, and the data receiving interval is 5s / time, and the data received 5s / time is automatically saved to the receiving processor.
4. The method for processing communication data for a power system developed based on Java language according to claim 1, characterized in that: The device timing interface in the business interface is called manually to calibrate the device time. The device control interface is used to send remote control information to the monitoring control system / telecontrol equipment to adjust the various configurations of the equipment. The call change interface is an interface for monitoring device data changes. A long socket connection is established with the application system.
