Power message processing method and device, electronic equipment and medium

By receiving and processing power messages in the power system and determining the processing strategy according to the protocol type, the problem of low real-time data processing efficiency in the prior art is solved, and resource utilization and message processing efficiency are improved.

CN119865537APending Publication Date: 2025-04-22BEIJING SIFANG JIBAO ENG TECH +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411905728.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-23
Publication Date
2025-04-22

AI Technical Summary

Technical Problem

The prior art is difficult to realize real-time data processing in the power system, and the resource utilization rate is low, resulting in low efficiency of power equipment when processing massive messages.

Method used

By receiving power messages sent by power equipment, the protocol type is judged based on the communication protocol encoding value in the message, and the processing strategy is determined based on the type, and the wave recording message analysis engine or a preset message management unit is used for processing, and resource allocation and task segmentation are optimized to improve processing efficiency.

Benefits of technology

Real-time processing of massive messages is realized, the utilization rate of core processors and related resources is improved, and the power equipment can process more message information per unit time, reducing the delay in network message processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119865537A_ABST
    Figure CN119865537A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to the technical field of power message processing, and provides a power message processing method and device, electronic equipment and a medium, and the method comprises the steps: receiving a power message sent by power equipment, and the power message carries a communication protocol coding value; judging a protocol type of the power message based on a communication protocol coded value in the power message; determining a processing strategy for the power message based on the protocol type; and processing the power message based on the processing strategy. Therefore, by optimizing the message processing process, the utilization rate of the core processor and related resources during message processing is improved, so that the power equipment can process more message information in unit time, and the network message processing delay degree is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power message processing, and in particular to a power message processing method, device, electronic equipment and medium. Background Art

[0002] In recent years, with the vigorous promotion of smart substations by power companies, the scale of power grids has been expanding. In order to meet the increasingly high automation requirements of power systems, there are more and more various state detection devices in the power grid, and these detection devices generate massive real-time data streams during operation. In theory, by analyzing massive amounts of power grid data, effective monitoring of the power grid status can be achieved, and even further combined with the relationship topology between various power devices and various systems to analyze performance indicators, and then predict power failure risk factors.

[0003] However, in the context of massive data, if we need to analyze these massive data to obtain the deep characteristics of the power grid, we usually need to use more complex data analysis methods, such as the currently more common artificial intelligence algorithms. In response to the computing power requirements of massive data and artificial intelligence algorithms, the common solution is to use supercomputers with powerful computing power or to offload computing power through the distributed functions of cloud platforms.

[0004] However, in power scenarios, functions such as fault diagnosis and analysis belong to data processing scenarios with high real-time requirements. The long-distance transmission of data makes it difficult for supercomputers or cloud platforms to cope with such scenarios. Although terminal power devices are close to the site, they are limited by computing performance. Most terminal power devices can only perform simple threshold comparisons on the received detection data and cannot further analyze complex fault information.

[0005] With the popularization of cloud computing technology in power grid systems, massive power grid data is no longer a bottleneck for power data processing, but it is difficult to meet the high real-time requirements. At the same time, the existing parallel task allocation mechanism of the power system usually allocates resources in the form of common processing cores or processes, which is not conducive to the utilization of critical resources during task processing.

[0006] An existing AI-based power data evaluation method and perception system uses advanced data analysis technology and artificial intelligence algorithms to deeply mine and analyze the operation data, load data, power generation data, etc. of the power system, and then finds the links and equipment with high energy consumption in the power grid, and then proposes targeted optimization and improvement. The solution uses cloud computing servers as the main computing units to meet the computing requirements of artificial intelligence algorithms for data cleaning, model training, model evaluation, and function deployment. Based on security considerations, the cloud computing servers of the power system are usually not directly connected to various power devices. The relevant detection data must be transmitted from the power network to the cloud computing server through the data processing center and related database systems. The multiple forwarding of data makes it difficult for the system to play the value of real-time data collection. Another multi-data stream real-time processing solution for power big data In order to further improve the processing speed of various data for power devices with limited computing power, data processing is divided into four time windows, namely data IO, buffer data window, sliding data window, and storage data window. The four time windows can be asynchronously processed by different hardware processing units. For asynchronous data processing tasks, this solution has a significant performance improvement effect. However, for repetitive and relatively simple tasks, such as those that only require simple threshold comparisons, using this solution will result in a lot of extra time overhead due to the sliding of the timing window. Summary of the invention

[0007] The present invention provides a power message processing method, device, electronic device and medium, which are used to solve the defects of the prior art that data processing cannot be performed in real time or resources are wasted, realize real-time processing of massive messages, and improve the utilization rate of the core processor and related resources during the message processing.

[0008] The present invention provides a method for processing electric power messages, comprising: Receiving a power message sent by a power device, wherein the power message carries a communication protocol coding value; Determining a protocol type of the power message based on a communication protocol code value in the power message; Determining a processing strategy for the power message based on the protocol type; The power message is processed based on the processing strategy.

[0009] In a possible implementation, the method further includes: If the protocol type is a wave recording message protocol, determining the processing strategy is to process the wave recording message through a wave recording message analysis engine; If the protocol type is other normal messages, determining the processing strategy is to process the other normal messages through a preset message management unit; If the protocol type is other abnormal messages, the processing strategy is determined to process the other abnormal messages through a preset abnormal processing process.

[0010] In a possible implementation, the method further includes: If it is determined that the processing strategy is to process the wave recording message through the wave recording message analysis engine, semantic analysis is performed on the wave recording message to determine a plurality of key parameters of the wave recording message; Performing data synchronization processing on the wave recording data corresponding to the wave recording message based on the multiple key parameters; Perform abnormality detection on the waveform corresponding to the recorded data after data synchronization processing; The abnormality of the electric power equipment is repaired according to the recorded data corresponding to the waveform of the detected abnormality.

[0011] In a possible implementation, the method further includes: Generate synchronous processing tasks for recorded wave data; Dividing the recording data synchronization processing task into a plurality of task entities based on the plurality of key parameters; Based on the processing requirements corresponding to each task entity, corresponding processing resources are allocated to perform data synchronization processing.

[0012] In a possible implementation, the method further includes: When the load of the processing resources allocated to a task entity exceeds the load threshold, query the idle processing resources; Migrate the task entity to the idle processing resource to perform data synchronization processing.

[0013] In a possible implementation, the method further includes: When the data synchronization processing of a task entity is completed, the corresponding processing resources are re-marked as unoccupied; Detect whether the processing resources required by the task entity to be processed match the processing resources marked as unoccupied; If so, the handle of the processing resource marked as unoccupied is transmitted to the task entity to be processed for registration, and data synchronization processing is performed on the task entity to be processed through the processing resource in the unoccupied state.

[0014] The present invention also provides a power message processing device, comprising the following modules: A receiving module, used for receiving a power message sent by the power equipment, wherein the power message carries a communication protocol coding value; A judgment module, used for judging the protocol type of the power message based on the communication protocol code value in the power message; A determination module, configured to determine a processing strategy for the power message based on the protocol type; A processing module is used to process the power message based on the processing strategy.

[0015] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the power message processing method as described in any one of the above is implemented.

[0016] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the power message processing method as described in any one of the above is implemented.

[0017] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the power message processing method as described in any one of the above is implemented.

[0018] The power message processing method, device, electronic device and medium provided by the present invention receive power messages sent by power equipment, wherein the power messages carry communication protocol coding values; determine the protocol type of the power messages based on the communication protocol coding values ​​in the power messages; determine the processing strategy for the power messages based on the protocol type; and process the power messages based on the processing strategy. Compared with the defects of the prior art that data processing cannot be performed in real time or resources are wasted, this solution improves the utilization rate of the core processor and related resources during message processing by optimizing the message processing process, thereby enabling the power equipment to process more message information per unit time and reduce the degree of delay in network message processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0020] Figure 1 It is one of the flow charts of the power message processing method provided by the present invention.

[0021] Figure 2 This is the second flow chart of the power message processing method provided by the present invention.

[0022] Figure 3 This is the wave recording message flow diagram provided by the present invention.

[0023] Figure 4It is a structural schematic diagram of the power message processing device provided by the present invention.

[0024] Figure 5 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0025] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0026] To facilitate understanding of the embodiments of the present invention, specific embodiments will be further explained below in conjunction with the accompanying drawings. The embodiments do not constitute a limitation on the embodiments of the present invention.

[0027] Figure 1 This is one of the flow charts of the power message processing method provided by the present invention, such as Figure 1 As shown, the method includes the following: S11. Receive an electric power message sent by an electric power device, wherein the electric power message carries a communication protocol coding value.

[0028] Power equipment (such as smart meters, protection relays, etc.) generates and sends power messages containing specific information. These messages are transmitted to the monitoring system or control center through communication channels such as but not limited to twisted pair, optical fiber, cable, and electromagnetic waves. Power messages usually contain necessary data, such as measurement values, control commands, etc., as well as a key field - the communication protocol code value, which is used to identify the type of communication protocol followed by the message.

[0029] S12. Determine the protocol type of the power message based on the communication protocol coding value in the power message.

[0030] After receiving the power message, the system needs to parse the message to determine its protocol type. In the message structure of the power communication protocol, there is usually a field dedicated to identifying the protocol type, which is the protocol encoding value. It is a predefined value used to distinguish different communication protocols. For example, in the IEC 60870-5-104 protocol (IEC 104), different types of messages (such as startup messages, confirmation messages, etc.) have different encoding values. By matching this encoding value, the system can identify which power communication protocol the message follows.

[0031] S13. Determine a processing strategy for the power message based on the protocol type.

[0032] S14. Process the power message based on the processing strategy.

[0033] After determining the protocol type of the power message, the system will determine how to process the message based on the protocol type. Different protocols may require different processing strategies. For example, the message of the wave recording message protocol needs to be processed by the wave recording message analysis engine for the next step, while other normal messages are processed by the corresponding message analysis or application or management unit. If the message has anomalies such as protocol encoding errors and checksum errors, it will be stored and managed according to the abnormal process.

[0034] The embodiment of the present invention mainly processes waveform recording messages. Since the semantic expression of waveform information exists in various forms, the message analysis module analyzes important information such as time stamp, sampling frequency, trigger point time, sampling value, etc. based on the received waveform recording message.

[0035] After the semantic information in the recording message has been parsed, synchronization processing needs to be completed because the sampling frequency, trigger point time, etc. of different devices and different types of sampling data are different, so that the data of each channel can be processed within the same time scale range; if each channel cannot complete the necessary synchronization, corresponding exception processing is performed.

[0036] In order to give full play to the parallel computing advantages of hardware devices such as multi-core CPUs, GPUs and FPGAs, the waveform message analysis engine can choose to divide the data processing links into different processing modules, each of which corresponds to a task entity.

[0037] Furthermore, each task entity can be allocated to different processing cores such as CPU, GPU or FPGA according to its different requirements for real-time performance, computing rate, throughput, etc., and combined with the hardware design of the device itself. For example, task entities with complex single-body calculations and high computing rates are preferentially allocated to processing cores such as CPUs with strong computing power, while parallel computing task entities with simpler tasks and high throughput can be preferentially allocated to processing cores such as GPUs with strong parallel processing capabilities; task entities with higher real-time requirements can be preferentially allocated to processing cores such as FPGAs with better real-time performance.

[0038] Furthermore, if some processing cores cannot be allocated preferentially due to high loads, and other processing cores have idle computing resources, the task entity can be moved to other processing cores for processing.

[0039] Furthermore, in order to reduce the long-term occupation of resources by a single processing core, during the network message processing, the relevant resources required for processing are no longer directly allocated to the entire processing process, but are allocated to relevant task entities with the smallest granularity.

[0040] Furthermore, during the network message processing process, after a single task entity has completed processing the relevant tasks, it can choose to directly release the resources it occupies and return them to the system for use by other task entities. It can also directly transfer the relevant resource permissions to the subsequent task entity when the subsequent tasks require the relevant resources, thereby reducing the number of resource application and release times.

[0041] Optionally, after the recorded data of each channel are synchronized, the synchronized time-value data pairs and the corresponding communication channel numbers may be stored to facilitate non-real-time analysis of the power grid data.

[0042] When the recorded data of each channel is synchronized, further analysis can be performed based on the synchronized data to determine whether it meets the specifications, such as common voltage or current frequency, amplitude, phase, and equipment switching quantity and other important information; if there is an abnormal situation, the corresponding exception processing is performed.

[0043] The power message processing method, device, electronic device and medium provided by the present invention receive a power message sent by a power device, wherein the power message carries a communication protocol coding value; judge the protocol type of the power message based on the communication protocol coding value in the power message; determine a processing strategy for the power message based on the protocol type; and process the power message based on the processing strategy. Compared with the prior art, the cloud computing server of the power system usually cannot be directly connected to various power devices. The relevant detection data must be transmitted from the power network to the cloud computing server through the data processing center and related database systems. The multiple forwarding of data makes it difficult for the system to play the value of real-time data collection, or for repetitive and relatively simple tasks, the multi-data stream real-time processing solution of power big data divides data processing into four timing windows such as data IO, buffer data window, sliding data window, and storage data window. Asynchronous processing by different hardware processing units will cause a lot of additional time overhead due to the sliding of the timing window. The disadvantage is that this solution optimizes the message processing process, improves the utilization rate of the core processor and related resources during message processing, and thus enables the power equipment to process more message information per unit time and reduce the degree of network message processing delay.

[0044] Figure 2 This is a second flow chart of the power message processing method provided by the present invention, such as Figure 2 As shown, the method includes the following: S21. Receive an electric power message sent by an electric power device, wherein the electric power message carries a communication protocol coding value.

[0045] Power equipment (such as smart meters, protection relays, etc.) generates and sends power messages containing specific information. These messages are transmitted to the monitoring system or control center through communication channels such as but not limited to twisted pair, optical fiber, cable, and electromagnetic waves. Power messages usually contain necessary data, such as measurement values, control commands, etc., as well as a key field - the communication protocol code value, which is used to identify the type of communication protocol followed by the message.

[0046] S22. Determine the protocol type of the power message based on the communication protocol coding value in the power message.

[0047] like Figure 3 As shown in the power message flow diagram, after receiving the power message, the system needs to parse the message to determine its protocol type. In the message structure of the power communication protocol, there is usually a field dedicated to identifying the protocol type, which is the protocol encoding value. It is a predefined value used to distinguish different communication protocols. For example, in the IEC60870-5-104 protocol (IEC 104), different types of messages (such as startup messages, confirmation messages, etc.) have different encoding values. By matching this encoding value, the system can identify which power communication protocol the message follows.

[0048] After determining the protocol type of the power message, the system will determine how to process the message based on the protocol type. Different protocols may require different processing strategies. For example, the message of the wave recording message protocol needs to be processed by the wave recording message analysis engine for the next step, while other normal messages are processed by the corresponding message analysis or application or management unit. If the message has anomalies such as protocol encoding errors and checksum errors, it will be stored and managed according to the abnormal process.

[0049] S23. If the protocol type is a wave recording message protocol, determine that the processing strategy is to process the wave recording message through a wave recording message analysis engine.

[0050] If the protocol type is a wave recording message protocol, the processing strategy is determined to process the wave recording message through a wave recording message analysis engine. The embodiment of the present invention mainly processes the wave recording message. Since there are many forms of semantic expression of waveform information, the message analysis module analyzes the time scale, sampling frequency, trigger point time, sampling value and other important information based on the received wave recording message.

[0051] S24. If it is determined that the processing strategy is to process the wave recording message through the wave recording message analysis engine, a semantic analysis is performed on the wave recording message to determine a plurality of key parameters of the wave recording message.

[0052] If the processing strategy is determined to process the recording message through the recording message analysis engine, the recording message is semantically analyzed. Since the semantic expression of waveform information exists in various forms, multiple key parameter information such as time scale, sampling frequency, trigger point time, sampling value, etc. are analyzed based on the received recording message.

[0053] After the semantic information in the recording message has been parsed, synchronization processing needs to be completed because the sampling frequency, trigger point time, etc. of different devices and different types of sampling data are different, so that the data of each channel can be processed within the same time scale range; if each channel cannot complete the necessary synchronization, corresponding exception processing is performed.

[0054] S25. Perform data synchronization processing on the recording data corresponding to the recording message based on the multiple key parameters.

[0055] Based on the extracted key parameters, the system will perform data synchronization on the recorded data. This step ensures that the data from different channels are aligned in time for more accurate analysis and comparison. Data synchronization is the basis for analyzing recorded data and can improve the accuracy of subsequent data processing.

[0056] In order to give full play to the computing advantages of hardware devices such as multi-core CPU, GPU and FPGA, the waveform message analysis engine can choose to divide the data processing links into different processing modules, and these processing links correspond to a task entity respectively.

[0057] Furthermore, each task entity can be allocated to different processing cores such as CPU, GPU or FPGA according to its different requirements for real-time performance, computing rate, throughput, etc., and combined with the hardware design of the device itself. For example, task entities with complex single-body calculations and high computing rates are preferentially allocated to processing cores such as CPUs with strong computing power, while parallel computing task entities with simpler tasks and high throughput can be preferentially allocated to processing cores such as GPUs with strong parallel processing capabilities; task entities with higher real-time requirements can be preferentially allocated to processing cores such as FPGAs with better real-time performance.

[0058] Furthermore, if some processing cores cannot be allocated preferentially due to high loads, and other processing cores have idle computing resources, the task entity can be moved to other processing cores for processing.

[0059] Furthermore, in order to reduce the long-term occupation of resources by a single processing core, during the network message processing, the relevant resources required for processing are no longer directly allocated to the entire processing process, but are allocated to relevant task entities with the smallest granularity.

[0060] Furthermore, during the network message processing process, after a single task entity has completed processing the relevant tasks, it can choose to directly release the resources it occupies and return them to the system for use by other task entities. It can also directly transfer the relevant resource permissions to the subsequent task entity when the subsequent tasks require the relevant resources, thereby reducing the number of resource application and release times.

[0061] Optionally, after the recorded data of each channel are synchronized, the synchronized time-value data pairs and the corresponding communication channel numbers may be stored to facilitate non-real-time analysis of the power grid data.

[0062] S26, performing abnormality detection on the waveform corresponding to the recorded data after data synchronization processing.

[0063] When the recorded data of each channel is synchronized, further analysis can be performed based on the synchronized data to determine whether it meets the specifications, such as common voltage or current frequency, amplitude, phase, and equipment switching quantity and other important information; if there is an abnormal situation, the corresponding exception processing is performed.

[0064] Optionally, the data of each sampling channel is interpolated through, but not limited to, GUI tools such as Qt and LVGL, and finally displayed on various image display devices. Specifically, the data of each sampling channel (such as voltage, current, etc.) in the power system is displayed in real time in the form of graphics so that users can intuitively observe and analyze the changes in these data. Since the sampled data is discrete, in order to display a continuous waveform on a graphical interface, these data need to be interpolated. Interpolation is used to estimate the value of unknown data points between known data points, so that the waveform looks smoother and more continuous.

[0065] S27, performing abnormal repair on the power equipment according to the recorded waveform data corresponding to the detected abnormal waveform.

[0066] Finally, based on the results of the anomaly detection, the system will take appropriate measures to repair the abnormality of the power equipment, including automated control commands, equipment restart or other maintenance operations, to ensure the stability and safety of the power system.

[0067] In view of the need for current power equipment to process massive network messages, the embodiment of the present invention first divides the complete data message processing task into different task entities under the condition of limited hardware resources, and then allocates core processors to the task entities according to their different computing resource requirements and the status of current hardware resources; at the same time, in order to maximize the work efficiency of the task entities, each task entity occupies resources independently, and each task entity only requires the minimum resources. At the same time, the repeated application and release of resources during the task jump process is avoided by transferring resources.

[0068] If a common parallel task allocation mechanism is adopted, that is, different processing cores independently process a complete network message, the processing core needs to occupy all critical resources related to the network message during its processing of the network message, which will cause the critical resources to become the key limitation of the processing capacity of the processing core. In the embodiment of the present invention, the processing of any network message can be divided into multiple task entities, and a single task entity will only receive or occupy the critical resources required in its processing process, avoiding the processing core directly occupying all resources, thereby improving the processing efficiency of the network message.

[0069] In an embodiment of the present invention, the processing from network message to data is completed, and the transmission process of each data flow is assigned to different task entities. When a single data flow is interrupted due to resource shortage in the middle of a task, if other task entities and the interruption node in the data flow are in different critical paths, other task entities can continue to execute, thereby further reducing the degree of delay in network message processing.

[0070] The power message processing device provided by the present invention is described below. The power message processing device described below and the power message processing method described above can be referred to each other.

[0071] Figure 4 It is a structural schematic diagram of the power message processing device provided by the present invention, which specifically includes: The receiving module 401 is used to receive a power message sent by the power equipment, wherein the power message carries a communication protocol coding value. For detailed description, please refer to the relevant description corresponding to the above method embodiment, which will not be repeated here.

[0072] The judgment module 402 is used to judge the protocol type of the power message based on the communication protocol code value in the power message. For detailed description, please refer to the relevant description corresponding to the above method embodiment, which will not be repeated here.

[0073] The determination module 403 is used to determine a processing strategy for the power message based on the protocol type. For detailed description, please refer to the relevant description corresponding to the above method embodiment, which will not be repeated here.

[0074] The processing module 404 is used to process the power message based on the processing strategy. For detailed description, please refer to the relevant description corresponding to the above method embodiment, which will not be repeated here.

[0075] Figure 5 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 5As shown, the electronic device may include: a processor 810, a communication interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communication interface 820 and the memory 830 communicate with each other through the communication bus 840. The processor 810 may call the logic instructions in the memory 830 to execute the power message processing method, which includes: receiving a power message sent by a power device, wherein the power message carries a communication protocol coding value; judging the protocol type of the power message based on the communication protocol coding value in the power message; determining a processing strategy for the power message based on the protocol type; and processing the power message based on the processing strategy.

[0076] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0077] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the power message processing method provided by the above-mentioned methods, and the method includes: receiving a power message sent by an electric power device, wherein the power message carries a communication protocol coding value; judging the protocol type of the power message based on the communication protocol coding value in the power message; determining a processing strategy for the power message based on the protocol type; and processing the power message based on the processing strategy.

[0078] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the power message processing method provided by the above-mentioned methods, the method comprising: receiving a power message sent by a power device, the power message carrying a communication protocol coding value; judging the protocol type of the power message based on the communication protocol coding value in the power message; determining a processing strategy for the power message based on the protocol type; and processing the power message based on the processing strategy.

[0079] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0080] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0081] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these 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 invention.

Claims

1. A method for processing electric power messages, characterized in that: include: Receiving a power message sent by a power device, wherein the power message carries a communication protocol coding value; Determining a protocol type of the power message based on a communication protocol code value in the power message; Determining a processing strategy for the power message based on the protocol type; The power message is processed based on the processing strategy.

2. The method according to claim 1, characterized in that The determining of a processing strategy for the power message based on the protocol type includes: If the protocol type is a wave recording message protocol, determining that the processing strategy is to process the wave recording message through a wave recording message analysis engine; If the protocol type is other normal messages, determining the processing strategy is to process the other normal messages through a preset message management unit; If the protocol type is other abnormal messages, the processing strategy is determined to process the other abnormal messages through a preset abnormal processing process.

3. The method according to claim 2, characterized in that The processing of the power message based on the processing strategy includes: If it is determined that the processing strategy is to process the wave recording message through the wave recording message analysis engine, semantic analysis is performed on the wave recording message to determine a plurality of key parameters of the wave recording message; Performing data synchronization processing on the wave recording data corresponding to the wave recording message based on the multiple key parameters; Perform abnormality detection on the waveform corresponding to the recorded data after data synchronization processing; The abnormality of the electric power equipment is repaired according to the recorded data corresponding to the waveform of the detected abnormality.

4. The method according to claim 3, characterized in that The performing data synchronization processing on the wave recording data corresponding to the wave recording message based on the multiple key parameters includes: Generate synchronous processing tasks for recorded wave data; Dividing the recording data synchronization processing task into a plurality of task entities based on the plurality of key parameters; Based on the processing requirements corresponding to each task entity, corresponding processing resources are allocated to perform data synchronization processing.

5. The method according to claim 4, characterized in that The method further comprises: When the load of the processing resources allocated to a task entity exceeds the load threshold, query the idle processing resources; Migrate the task entity to the idle processing resource to perform data synchronization processing.

6. The method according to claim 4, characterized in that The method further comprises: When the data synchronization processing of a task entity is completed, the corresponding processing resources are re-marked as unoccupied; Detect whether the processing resources required by the task entity to be processed match the processing resources marked as unoccupied; If so, the handle of the processing resource marked as unoccupied is transmitted to the task entity to be processed for registration, and data synchronization processing is performed on the task entity to be processed through the processing resource in the unoccupied state.

7. A power message processing device, characterized in that: include: A receiving module, used for receiving a power message sent by the power equipment, wherein the power message carries a communication protocol coding value; A judgment module, used for judging the protocol type of the power message based on the communication protocol code value in the power message; A determination module, configured to determine a processing strategy for the power message based on the protocol type; A processing module is used to process the power message based on the processing strategy.

8. The device according to claim 7, characterized in that The determination module is also used to: if the protocol type is a recording message protocol, determine the processing strategy to process the recording message through a recording message analysis engine; if the protocol type is other normal messages, determine the processing strategy to process the other normal messages through a preset message management unit; if the protocol type is other abnormal messages, determine the processing strategy to process the other abnormal messages through a preset abnormal processing process.

9. The device according to claim 8, characterized in that The processing module is also used to perform semantic analysis on the recording message to determine multiple key parameters of the recording message if it is determined that the processing strategy is to process the recording message through a recording message analysis engine; perform data synchronization processing on the recording data corresponding to the recording message based on the multiple key parameters; perform abnormality detection on the waveform corresponding to the recording data after the data synchronization processing; and perform abnormal repair on the power equipment according to the recording data corresponding to the waveform detected to be abnormal.

10. The device according to claim 9, characterized in that The processing module is also used to generate a recording data synchronization processing task; divide the recording data synchronization processing task into multiple task entities based on the multiple key parameters; and allocate corresponding processing resources to perform data synchronization processing based on the processing requirements corresponding to each task entity.

11. The device according to claim 10, characterized in that The processing module is also used to query idle processing resources when the load of the processing resources allocated to a certain task entity exceeds a load threshold; and migrate the certain task entity to the idle processing resources for data synchronization processing.

12. The device according to claim 11, characterized in that The processing module is also used to re-mark the corresponding processing resources as unoccupied after the data synchronization processing of a task entity is completed; detect whether the processing resources required by the task entity to be processed match the processing resources marked as unoccupied; if so, transfer the handle of the processing resources marked as unoccupied to the task entity to be processed for registration, and perform data synchronization processing on the task entity to be processed through the processing resources in the unoccupied state.

13. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the power message processing method according to any one of claims 1 to 6 is implemented.

14. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the power message processing method according to any one of claims 1 to 6 is implemented.

15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the power message processing method according to any one of claims 1 to 6 is implemented.