Real-time transmission method, system and device of power grid system data and medium

By setting up multiple data acquisition terminals, processing terminals, dispatch terminals and topological analysis terminals in the power grid system, we ensure that the combined message is transmitted and analyzed in chronological order, and the problem of insufficient timing and timeliness of data processing in traditional distribution networks is solved. It realizes efficient data processing and secure grid monitoring.

CN119209887APending Publication Date: 2024-12-27ZHUHAI XUJIZHI ELECTRIFIED WIRE NETING AUTOMATIONCO
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Traditional distribution network data processing methods cannot ensure the timeliness and timing of data transmission and processing at the same time, especially in extreme weather, which may lead to inaccurate system topology analysis and processing bottlenecks and fault information, causing security risks.

Method used

Design a real-time transmission method of power grid system data, and collect and process distribution information through the collaborative work of multiple data acquisition terminals, data processing terminals, dispatch terminals and topological analysis terminals to ensure that the combined messages are transmitted and analyzed in chronological order, and realize Parallel topological analysis.

Benefits of technology

It improves the data transmission speed and topological analysis speed, ensures the timing of data processing, avoids the problem of inconsistent equipment status and system status, and improves the accuracy and security of power grid monitoring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119209887A_ABST
    Figure CN119209887A_ABST
Patent Text Reader

Abstract

The invention provides a real-time transmission method, system and device for power grid system data and a medium. The system comprises a plurality of data acquisition ends, a plurality of data processing ends, a scheduling end and a plurality of topology analysis ends. The method specifically comprises the following steps: each data acquisition end obtains a plurality of pieces of power distribution information, and transmits each piece of power distribution information to a corresponding data processing end according to a preset distribution rule; the data processing end obtains a combination and separation message from the power distribution information and transmits the combination and separation message to the scheduling end; the scheduling end transmits the combination and separation messages to topology analysis ends one by one according to a time sequence, and one topology analysis end only receives one combination and separation message; and all the topology analysis ends analyze the range of the power distribution equipment influenced by the combination and separation messages, and update the combination and separation messages stored in the power grid system according to the influence range and the time sequence. According to the method, the parallel topology analysis of the power grid associated region is realized, and meanwhile, the time sequence and timeliness of the topology analysis are ensured.
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 distribution network data processing, and in particular to a real-time transmission method, system, device and medium for power grid system data. Background Art

[0002] The power grid system is huge, with many points and wide areas, and a complex operating environment. At the same time, it directly connects devices and users, and generates a large amount of device and user data during operation. The most important message in the power grid system is the closing and opening message. The closing and opening message includes information such as the equipment that has switching operations in the power grid system and the time when the switching operations of each device occurred. With the increase of power grid equipment, the amount of closing and opening information has also increased significantly. Usually, the processing method for such a large amount of data is to use multi-service or instance method to process the data in parallel. This processing method can process a large amount of distribution information in a short time and ensure the timeliness of processing. However, this processing method cannot guarantee the timing of data processing in the power grid system. Therefore, in the traditional distribution network data processing, due to the complex relationship between the distribution network lines, it is impossible to process them by graph or line, and real-time topology analysis is generally performed sequentially. When the distribution network encounters extreme weather such as thunderstorms, heavy rains, etc., multiple distribution network faults will occur simultaneously, and the switch-on and switch-off information of multiple devices will change several times in a short period of time, resulting in a processing bottleneck in the system topology analysis during this period, and may even cause the power grid system to process the switch-on and switch-off information in an incorrect order, making the actual equipment status on site inconsistent with the equipment status displayed on the system, which will cause the power grid monitoring and maintenance personnel to obtain incorrect fault information, causing safety risks. Therefore, a data processing method is urgently needed to ensure the timeliness and sequence of data transmission and processing when the power grid system transmits a large amount of information. Summary of the invention

[0003] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention proposes a real-time transmission method, a power grid system, a device and a medium for power grid system data, which can ensure the timeliness and timing of data transmission and processing.

[0004] In a first aspect, an embodiment of the present invention provides a real-time transmission method for power grid system data, which is applied to a real-time transmission system for power grid system data, wherein the system includes multiple data acquisition terminals, multiple data processing terminals, a dispatching terminal, and multiple topology analysis terminals, wherein the data acquisition terminal is used to collect power distribution information of the power grid system; the data processing terminal is communicatively connected to the data acquisition terminal, the dispatching terminal is communicatively connected to the data processing terminal, and the topology analysis terminal is communicatively connected to the dispatching terminal; the method includes:

[0005] Each of the data collection terminals acquires a number of pieces of power distribution information, and transmits each piece of power distribution information to the corresponding data processing terminal according to a preset allocation rule;

[0006] The data processing end obtains the on / off message from the power distribution information, and transmits the on / off message to the dispatching end;

[0007] The scheduling end transmits the combine / split messages to the topology analysis end one by one in the time sequence of the combine / split messages, wherein one topology analysis end only receives one combine / split message;

[0008] All the topology analysis terminals analyze the scope of the power distribution equipment affected by the switching message, and update the switching message stored in the power grid system according to the affected scope and time sequence.

[0009] In some embodiments of the present invention, the step of each of the data acquisition terminals acquiring a plurality of pieces of power distribution information and transmitting each piece of the power distribution information to the corresponding data processing terminal according to a preset allocation rule comprises:

[0010] Each of the data collection terminals obtains a number of pieces of power distribution information, and pre-processes the obtained power distribution information according to the business type of the power distribution information;

[0011] Each of the data acquisition terminals respectively obtains a message subject corresponding to each piece of the power distribution information, and transmits the power distribution information to the data processing terminal corresponding to the message subject.

[0012] In some embodiments of the present invention, the step of each of the data acquisition terminals respectively acquiring a message subject corresponding to each piece of the power distribution information, and transmitting the power distribution information to the data processing terminal corresponding to the message subject, comprises:

[0013] Each of the data collection terminals obtains the terminal identification of the data processing terminal respectively;

[0014] Each of the data collection terminals obtains the index identifier of the corresponding message topic from the monitoring topic table according to the terminal identifier, wherein all the index identifiers in the monitoring topic table correspond to one terminal identifier;

[0015] According to the index identifier, each of the data acquisition terminals obtains the message subject corresponding to each piece of the power distribution information, and transmits the power distribution information to the data processing terminal corresponding to the message subject.

[0016] In some embodiments of the present invention, the step of the data processing end acquiring the on / off message from the power distribution information and transmitting the on / off message to the dispatching end includes:

[0017] The data processing end obtains the on / off message and the global number of the on / off message from the power distribution information, wherein the global number is used to represent the occurrence time sequence of the on / off message, and the smaller the global number, the earlier the corresponding on / off message occurs;

[0018] The data processing end transmits the combine / split message and the global number corresponding to the combine / split message to the scheduling end.

[0019] In some embodiments of the present invention, the step of the scheduling end transmitting the combine / split messages to the topology analysis end one by one in the time sequence in which the combine / split messages occur includes:

[0020] The scheduling end obtains the combine / split message and a first number corresponding to the combine / split message;

[0021] Before the scheduling end transmits the combine / split message to the topology analysis end, the scheduling end determines whether the first number is only greater than a second number, wherein the second number is the global number corresponding to the sent combine / split message;

[0022] The size of the first number and the second number is determined. When the first number is only greater than the second number, the scheduling end transmits the combine / divide message to the topology analysis end.

[0023] In some embodiments of the present invention, the step of the scheduling end transmitting the combine / split messages to the topology analysis end one by one in the time sequence in which the combine / split messages occur, further includes:

[0024] If the first number is not only greater than the second number, the scheduling end writes the combination and division message corresponding to the first number into a cache;

[0025] The scheduling end obtains the combine / split messages one by one and transmits them to the topology analysis end, and compares the first number with the newly obtained third number of the combine / split message until the first number is only greater than the third number;

[0026] When the first number is only greater than the third number, the combine / split message corresponding to the first number is transmitted to the topology analysis terminal.

[0027] In some embodiments of the present invention, the steps of analyzing the scope of the power distribution equipment affected by the switching message and updating the switching message stored in the power grid system according to the affected scope and time sequence include:

[0028] Each of the topology analysis terminals determines the overlap between the influence range of the first message obtained by itself and the influence range of the second message obtained by other topology analysis terminals;

[0029] When the global number of the first message is greater than the global number of the second message, updating the overlapping part in the closing and opening messages stored in the power grid system to be the same as the first message;

[0030] When the global number of the first message is smaller than the global number of the second message, the overlapping part in the closing and opening messages stored in the power grid system is updated to be the same as the second message.

[0031] In a second aspect, an embodiment of the present invention provides a real-time transmission system for power grid system data, the system comprising multiple data acquisition terminals, multiple data processing terminals, a scheduling terminal and multiple topology analysis terminals, the data acquisition terminal being used to acquire power distribution information of the power grid system; the data processing terminal being communicatively connected to the data acquisition terminal, the scheduling terminal being communicatively connected to the data processing terminal, and the topology analysis terminal being communicatively connected to the scheduling terminal; the system being used to execute the real-time transmission method for power grid system data described in the embodiments of the above aspects.

[0032] In a third aspect, an embodiment of the present invention provides a computer device comprising a memory and a processor, wherein the memory is used to store at least one program, and the processor is used to load the at least one program to execute the real-time transmission method of power grid system data described in the embodiment of the above aspect.

[0033] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, which stores a program executable by a processor, and when the program executable by the processor is executed by the processor, it is used to execute the real-time transmission method of power grid system data as described in the above-mentioned embodiment.

[0034] The real-time transmission method of power grid system data according to an embodiment of the present invention has at least the following beneficial effects: the real-time transmission method of power grid system data provided by the present invention transmits the distribution information obtained by multiple data acquisition terminals set up in the system to a fixed data processing terminal, so that each data processing terminal only processes distribution information of fixed frequency and quantity during data transmission, and improves the data transmission speed through parallel transmission; at the same time, the distribution information is transmitted in chronological order to the topology analysis terminal through the scheduling terminal for topology analysis, thereby realizing parallel topology analysis of distribution network associated areas, improving the analysis speed while ensuring the timing of topology analysis. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 is a flow chart of a method for real-time transmission of power grid system data provided by an embodiment of the present invention;

[0036] Figure 2is a schematic block diagram of a real-time transmission system for power grid system data provided by an embodiment of the present invention;

[0037] Figure 3 It is a simplified diagram of the processing flow of a data acquisition end and a data processing end provided by an embodiment of the present invention;

[0038] Figure 4 is a simplified diagram of the processing flow of the dispatching end provided by an embodiment of the present invention;

[0039] Figure 5 This is a simplified diagram of the processing logic of the topology analysis terminal provided by an embodiment of the present invention.

[0040] Figure 6 It is a structural diagram of a computer device provided by another embodiment of the present invention. DETAILED DESCRIPTION

[0041] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.

[0042] In the description of the present invention, it should be understood that descriptions involving orientations, such as up, down, front, back, left, right, etc., and orientations or positional relationships indicated are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.

[0043] In the description of the present invention, "several" means one or more, "more" means more than two, "greater than", "less than", "exceed" etc. are understood as not including the number itself, and "above", "below", "within" etc. are understood as including the number itself. If there is a description of "first" or "second", it is only used for the purpose of distinguishing the technical features, and cannot be understood as indicating or implying the relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.

[0044] In the description of the present invention, unless otherwise clearly defined, terms such as setting, installing, connecting, etc. should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in the present invention based on the specific content of the technical solution.

[0045] An embodiment of the present invention provides a real-time transmission method for power grid system data, in which power distribution information acquired by multiple data acquisition terminals arranged in the system is transmitted to a fixed data processing terminal, so that each data processing terminal only processes power distribution information of a fixed frequency and quantity during data transmission, thereby improving the data transmission speed through parallel transmission; at the same time, the power distribution information is transmitted in chronological order to a topology analysis terminal through a scheduling terminal for topology analysis, thereby realizing parallel topology analysis of distribution network-related areas, improving the analysis speed while ensuring the timing of the topology analysis.

[0046] The concepts mentioned in the present invention are explained below:

[0047] On / off messages: On / off messages in a power grid system usually refer to data and instructions related to switch operations. These messages can indicate the switch status of each device in the power grid system. Power grid maintenance personnel need to obtain accurate on / off messages in real time to prevent safety accidents when maintaining equipment.

[0048] Red is: Remote Dict ionary Server, an open source, C-language, network-enabled, memory-based, and persistent log-based, key-value pair storage database that provides APIs in multiple languages;

[0049] Atomicity of Redis: Atomicity means that an operation cannot be interrupted. Even if there are multiple operations, they will either all succeed or all fail. There will be no partial success and partial failure. The reason why Redis operations can guarantee atomicity is that all operations it provides are atomic operations. Transactions in Redis are also atomic operations. All commands in a transaction will be serialized and executed in order during the transaction execution process.

[0050] The control method of the embodiment of the present invention is further described below based on the accompanying drawings.

[0051] Reference Figure 1-2 , Figure 5 , Figure 1 A flowchart of a method for real-time transmission of power grid system data provided by an embodiment of the present invention, Figure 2 The present invention is a schematic block diagram of a real-time transmission system for power grid system data provided by an embodiment of the present invention. The system includes multiple data acquisition terminals, multiple data processing terminals, a dispatching terminal and multiple topology analysis terminals. The data acquisition terminal is used to collect power distribution information of the power grid system; the data processing terminal is connected to the data acquisition terminal in communication, the dispatching terminal is connected to the data processing terminal in communication, and the topology analysis terminal is connected to the dispatching terminal in communication; the method includes:

[0052] Step S100, each data collection terminal obtains a number of power distribution information, and transmits each power distribution information to a corresponding data processing terminal according to a preset distribution rule;

[0053] Step S200, the data processing end obtains the on / off message from the power distribution information, and transmits the on / off message to the dispatching end;

[0054] Step S300, the scheduling end transmits the combine / split messages to the topology analysis end one by one in the time sequence of the combine / split messages, wherein one topology analysis end only receives one combine / split message;

[0055] Step S400: All topology analysis terminals analyze the scope of power distribution equipment affected by the switching message, and update the switching messages stored in the power grid system according to the affected scope and time sequence.

[0056] It should be noted that in step S100, in order to obtain relevant data of power distribution equipment in various places, a data acquisition terminal is set at each node of each electrical equipment in the power grid system to obtain relevant operating parameters of various electrical equipment, and multiple data processing terminals are set at the downstream of data processing to realize rapid processing of a large amount of power distribution information. It can be understood that the type and data of the power distribution information collected by each data acquisition terminal may be different. For example, as shown in the figure, the power grid system includes data acquisition terminals 1 to N and data distribution terminals 1 to N. Each data acquisition terminal identifies the acquired power distribution information. For example, in the figure, the power distribution information acquired by data acquisition terminal 1 is identified as Term1, Term2, and Term3, the power distribution information acquired by data acquisition terminal 2 is identified as Term6, and the power distribution information acquired by data acquisition terminal 3 is identified as Term4 and Term5, and so on until the power distribution information acquired by data acquisition terminal N is also identified accordingly. The allocation rules of data identification can be set according to the rules of data type, terminal location, etc. Further, in order to ensure the transmission speed of the power distribution information, after the data acquisition terminals 1 to N obtain the power distribution information, they will transmit the power distribution information with the corresponding identifier to the fixed data processing terminal according to the pre-set allocation rules, and fixedly transmit Term1 and Term2 to the data processing terminal 1, Term3 and Term6 to the data processing terminal 2, Term4 and Term5 to the data processing terminal 3, and so on until all the power distribution information is transmitted to the data processing terminal; it can be understood that the distribution rules of the power distribution information are pre-set, so after the first allocation is completed, a large amount of data can be directly transmitted in parallel without additional scheduling adjustments, and each data processing terminal only receives the power distribution information transmitted by the fixed type and fixed data acquisition terminal. In step S200, the power grid system obtains all types of data, but the closing and opening information contains the switch status information of various types of equipment in the power grid. In order to prevent the power grid system from saving erroneous closing and opening messages, the data processing terminal needs to filter out the closing and opening messages from a large amount of power distribution information and transmit them to the downstream scheduling terminal and topology analysis terminal. In step S300 to step S400, the dispatching end is used to receive the splitting and combining messages sent by the data processing end and transmit them to the topology analysis end for analysis. In this process, in order to reduce the processing pressure of the topology analysis end, the dispatching end sorts the splitting and combining messages in chronological order based on the time information of the splitting and combining messages themselves, and sends them to the topology analysis end in sequence. Figure 2 In the topology analysis terminals 1 to N shown in FIG, and in order to improve the analysis speed, each topology analysis terminal only performs an impact range analysis of the close / open message. The impact range analysis includes the range of switch devices affected by the close / open message, for example Figure 5As shown in , the closing and opening message with global number m affects the device status of devices A, B, C, D, and E, and the closing and opening message with global number m affects the device status of devices C, D, E, F, and G. The topology analysis end will also change the status of the device corresponding to the closing and opening messages according to the order in which the messages occur, so that the device-related information stored in the power grid system is closest to the query time.

[0057] It should be noted that in step S100 to step S400, the embodiment of the present invention transmits the power distribution information in parallel by associating the corresponding power distribution information with the data processing end, so that each data acquisition end and the data processing end only processes a small part of all the real-time data in the process of transmitting data. This parallel transmission method improves the data transmission speed; at the same time, the scheduling end transmits the closing and opening messages to the topology analysis end in chronological order to ensure the timing of the closing and opening message transmission; multiple topology analysis ends simultaneously analyze to ensure the speed of the impact range analysis. Based on the above mechanism, the topology analysis service provided by the system supports multi-instance concurrent processing, meets the demand for system topology analysis and processing capabilities when multiple distribution network faults occur at the same time, and enables users to query the latest equipment status information of each distribution equipment when querying related information at any time.

[0058] Reference Figure 2-3 In some embodiments of the present invention, each of the data acquisition terminals acquires a plurality of pieces of power distribution information, and transmits each piece of power distribution information to the corresponding data processing terminal according to a preset allocation rule, further including but not limited to the following steps:

[0059] Step S110, each data collection terminal obtains a number of power distribution information, and pre-processes the obtained power distribution information according to the business type of the power distribution information;

[0060] Step S120, each data collection end respectively obtains the message subject corresponding to each power distribution information, and transmits the power distribution information to the data processing end corresponding to the message subject.

[0061] It should be noted that in steps S110 to S120, in order to ensure that the data collection end transmits a fixed type and amount of power distribution information to a fixed data processing end, the embodiment of the present invention classifies the power distribution information by business type, and different power distribution information communicates with downstream services through different Kafka message topics, for example Figure 2Term1 and Term2 correspond to Topic1, Term3 and Term6 correspond to Topic2, and Term4 and Term5 correspond to Topic3. The data collection end uses multi-threading technology to pre-process data of different business data to improve the data concurrent processing capability. The naming rules of the Kafka message topics for each business have been defined during the design of the basic system. Each distribution information follows this rule to create and subscribe to the Kafka message topic. When the power grid system is started, it can create message topics between each data collection end and the data processing end according to the naming rules, and at the same time subscribe to the message topics that the distribution information needs to obtain from other businesses, which improves the speed of data transmission and the efficiency of data processing.

[0062] Reference Figure 2-3 In some embodiments of the present invention, each data acquisition terminal respectively obtains a message subject corresponding to each power distribution information, and transmits the power distribution information to a data processing terminal corresponding to the message subject, including:

[0063] Step S121, each data collection end obtains the terminal identification of the data processing end respectively;

[0064] Step S122, each data collection terminal obtains the index identifier of the corresponding message topic from the monitoring topic table according to the terminal identifier, wherein all index identifiers in the monitoring topic table correspond to one terminal identifier;

[0065] Step S123: According to the index identifier, each data collection terminal obtains the message subject corresponding to each power distribution information, and transmits the power distribution information to the data processing terminal corresponding to the message subject.

[0066] It should be noted that in step S121 to step S123, the embodiment of the present invention communicates with the downstream service through the kafka message topic, and realizes the scheduling and processing of the power distribution message. In order to realize the timeliness and timing of information transmission, it is necessary to schedule and allocate the power distribution information first to ensure that the same terminal information is sent to a fixed instance of the downstream service. The specific implementation method is as follows: Referring to the figure, each downstream data processing terminal is first numbered 1 to N. When the service is started, the data processing terminal dynamically specifies the topic to which the terminal subscribes, and the message topic carries the numbering information. If the total number of data processing terminals is N, the message topic number subscribed by each terminal is guaranteed to be non-duplicate and is stored in the data processing service monitoring topic table in the scheduling mechanism cache in sequence according to the service startup order; when the data acquisition terminal selects the message topic to send a message, it is based on formula D idx =X hc %N Get the index of the message subject in the table, and then get the corresponding message subject. hc is the hash value of the terminal identifier X, and the remainder D idxIt is the index identifier of each message topic in the D table. Through the correspondence between the index identifier and the terminal identifier, each data processing terminal processes fixed power distribution information and loads fixed terminal static cache information, which greatly improves the data processing capability and can realize dynamic scaling of instances according to the load size.

[0067] Reference Figure 2-3 In some embodiments of the present invention, the step of obtaining the closing and opening message from the power distribution information and transmitting the closing and opening message to the dispatching end includes:

[0068] Step S210: The data processing end obtains the closing / opening message and the global number of the closing / opening message from the power distribution information, wherein the global number is used to represent the occurrence time sequence of the closing / opening message, and the smaller the global number, the earlier the corresponding closing / opening message occurs;

[0069] Step S220: The data processing end transmits the combine / split message and the global number corresponding to the combine / split message to the scheduling end.

[0070] It should be noted that the data processing flow at the data processing end is as follows Figure 3 As shown, in step S210 to step S220, the data processing end needs to generate a global number with a time sequence for the merge / split message when processing the merge / split message, so as to send the merge / split message to the topology server for processing in a time sequence. In one embodiment of the present invention, the atomic characteristics of redis are used, and the data processing end generates a global number with a time sequence for the merge / split message of the whole system while processing the merge / split message, and sends the number to the topology server for processing in a time sequence through the scheduling end.

[0071] Reference Figure 4 In some embodiments of the present invention, the scheduling end transmits the merge and split messages to the topology analysis end one by one in the time sequence of the merge and split messages, including:

[0072] Step S310, the dispatching end obtains the close / open message and the first number corresponding to the close / open message;

[0073] Step S320: Before the dispatching end transmits the combine / split message to the topology analysis end, it is determined whether the first number is only greater than the second number, wherein the second number is the global number corresponding to the sent combine / split message;

[0074] Step S330: determine the size of the first number and the second number. When the first number is only slightly larger than the second number, the scheduling end transmits a merge / divide message to the topology analysis end.

[0075] It should be noted that, in steps S310 to S330, the dispatching end of the embodiment of the present invention is run independently, and the processing logic of the dispatching end is as follows: Figure 4As shown, it is used to receive the split-join message sent by the data processing end, wherein the information body transmitted to the scheduling end includes the split-join message and the global number corresponding to the split-join message. In order to ensure the timing of the split-join message transmission to the topology analysis end, the scheduling end needs to ensure that the message before the current message number has been sent when sending the message. The guarantee mechanism is implemented through the cache mechanism in the service. The specific process is shown as follows: Referring to the figure, the information body transmitted by the data processing end is first stored in the cache, and then transmitted to the topology analysis end in chronological order; after the scheduling end transmits the previous split-join message from the cache to the topology analysis end, the global number of the split-join message that has been transmitted, that is, the first number, will be recorded; then, when the scheduling end transmits a subsequent split-join message to the topology analysis end, the global number of the currently transmitted split-join message, that is, the second number, will be compared with the first number; at this time, in order to ensure the order of transmission, the first number is less than and only less than the second number. For example, if the first number of the previously sent split-join message is 99, it is necessary to ensure that the second number of the currently sent split-join message is 100, otherwise the subsequent topology analysis may cause confusion in the topology analysis. It can be understood that, based on the above logic, when the scheduling end receives the first split message sent by the data processing end, the second number of the previously sent global message is missing. At this time, the previously sent second number can be regarded as 0, and the first number of the first global message sent by the scheduling end is 1. The subsequent loop execution of steps S310 to S330 can realize the sending of global messages one by one in chronological order.

[0076] Reference Figure 4 In some embodiments of the present invention, the scheduling end transmits the split messages to the topology analysis end one by one in the time sequence in which the split messages occur, and further includes:

[0077] Step S331, if the first number is not greater than the second number, the dispatching end writes the combined and divided message corresponding to the first number into the cache;

[0078] Step S332, the scheduling end obtains the combine / split messages one by one and transmits them to the topology analysis end, and compares the first number with the third number of the newly obtained combine / split message until the first number is only greater than the third number;

[0079] Step S333: when the first number is only greater than the third number, the combine / divide message corresponding to the first number is transmitted to the topology analysis terminal.

[0080] It should be noted that in steps S331 to S333, since the power distribution information processed by each data processing end is limited by the hardware performance and data volume of the data processing end itself, and there is an upper limit to the ability of the dispatching end to process parallel information, each data processing end processes the power distribution information at different speeds, which will cause the combination and separation message with a smaller global number to arrive at the dispatching end later than the combination and separation message with a larger global number. For example, the first number of the combination and separation message sent first is 99, and the global number of the combination and separation message stored in the cache is 102, and the combination and separation messages numbered 100 and 101 are still being processed by the data processing end. In this case, the dispatching end can temporarily postpone the sending of the global message numbered 102 by means of opening a waiting area in the cache, until the global messages numbered 100 and 101 (i.e., the third number in step S332) are sent in sequence, and then transmit the global message numbered 102.

[0081] Reference Figure 5 In some embodiments of the present invention, all topology analysis terminals analyze the impact range of the close / open message, and update the close / open message stored in the power grid system according to the impact range and time sequence, including:

[0082] Step S410, each topology analysis end determines the overlap between the influence range of the first message obtained by itself and the influence range of the second message obtained by other topology analysis ends;

[0083] Step S420: when the global number of the first message is greater than the global number of the second message, the overlapping part of the closing and opening messages stored in the power grid system is updated to be the same as the first message;

[0084] Step S430: When the global number of the first message is smaller than the global number of the second message, the overlapping part of the closing and opening messages stored in the power grid system is updated to be the same as the second message.

[0085] It should be noted that in step S410 to step S430, the processing logic of the dispatching end has ensured that when each closing and opening message is processed, the section before the message occurs has been stored in the redis library of the power grid system; when performing real-time topology analysis, it is only necessary to obtain the message section before the current closing and opening message occurs to ensure that the analysis scope of the current closing and opening message is correct. The specific implementation method is that when the system retrieves the associated device of the closing and opening message, when obtaining the status of the associated device, the state closest to the global number of the current message is taken. When updating the device status, in order to avoid the historical status of the device covering the future status, it is necessary to compare the device status in redis. When the device status stored in redis occurs later than the currently processed device status, it will not be processed into the warehouse. As shown in the figure, the topological analysis ranges of the two merge and split messages are related, and the global numbers are m and n, and m>n. The impact range of the merge and split message with number m is A, B, C, D, E, and the impact range of the merge and split message with number n is C, D, E, F, G. When the m message is processed first, the update range of the n message after topological analysis is F and G, among which C, D, and E in the redis section are caused by the later events and cannot be covered. When the m message is processed later, the update range of the m message after topological analysis is A, B, C, D, E, among which C, D, and E in the redis section are caused by the earlier events and can be covered. In summary, according to the time sequence of message occurrence, the later message can cover the earlier message.

[0086] In the second aspect, an embodiment of the present invention provides a real-time transmission system for power grid system data, the system includes a database and a deep learning library, the power grid system includes multiple data acquisition terminals, multiple data processing terminals, a scheduling terminal and multiple topology analysis terminals, the data processing terminal is communicatively connected to the data acquisition terminal, the scheduling terminal is communicatively connected to the data processing terminal, and the topology analysis terminal is communicatively connected to the scheduling terminal; the system is used to execute the real-time transmission method of power grid system data of the above-mentioned embodiment.

[0087] It should be noted that the embodiment of the present invention constructs a complete basic service framework for real-time data processing of the power grid monitoring system, realizes distributed concurrent processing of real-time data processing through Kafka subscription topics, and solves the performance problems of key nodes in real-time data processing of traditional distribution network systems; it also utilizes multi-cache technology on the scheduling end, and realizes distributed concurrent processing of data through multiple topology analysis ends, which greatly improves the system data processing capability, and has better scalability and superior data processing capability than traditional power grid systems.

[0088] In a third aspect, an embodiment of the present invention provides a computer device including a memory and a processor, wherein the memory is used to store at least one program, and the processor is used to load at least one program to execute the real-time transmission method of power grid system data of the embodiment of the above aspect.

[0089] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, in which a program executable by a processor is stored. When the program executable by the processor is executed by the processor, it is used to execute the real-time transmission method of power grid system data as in the above-mentioned embodiment.

[0090] like Figure 6 As shown, Figure 6 is a structural diagram of a computer device provided by an embodiment of the present invention. The present invention also provides a computer device, including:

[0091] The processor 801 may be implemented by a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;

[0092] The memory 802 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 802 can store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 802, and the processor 801 calls and executes the method of the embodiments of this application;

[0093] Input / output interface 803, used to implement information input and output;

[0094] The communication interface 804 is used to realize the communication interaction between the present apparatus and other devices. The communication can be realized through a wired manner (such as USB, network cable, etc.) or a wireless manner (such as mobile network, WI FI, Bluetooth, etc.);

[0095] A bus 805 that transmits information between the various components of the device (e.g., the processor 801, the memory 802, the input / output interface 803, and the communication interface 804);

[0096] The processor 801 , the memory 802 , the input / output interface 803 and the communication interface 804 are connected to each other in communication within the device via a bus 805 .

[0097] An embodiment of the present application further provides a storage medium, which is a computer-readable storage medium and stores a computer program. When the computer program is executed by a processor, the real-time transmission method of the above-mentioned power grid system data is implemented.

[0098] As a non-transient computer-readable storage medium, the memory can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage devices. In some embodiments, the memory may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. The device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and are implemented to be located in one place, or may also be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.

[0099] It will be appreciated by those skilled in the art that all or some of the steps and systems in the disclosed method above may be implemented as software, firmware, hardware and appropriate combinations thereof. Some physical components or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor or a microprocessor, or may be implemented as hardware, or may be implemented as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or a non-transitory medium) and a communication medium (or a temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that may be used to store desired information and may be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically include computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

[0100] The above is a specific description of the preferred implementation of the present invention, but the present invention is not limited to the above-mentioned implementation mode. Technical personnel familiar with the field can also make various equivalent deformations or substitutions under the shared conditions without violating the spirit of the present invention. These equivalent deformations or substitutions are all included in the scope defined by the claims of the present invention.

Claims

1. A real-time transmission method for power grid system data, characterized in that: A real-time transmission system for power grid system data, the system comprising a plurality of data acquisition terminals, a plurality of data processing terminals, a dispatching terminal and a plurality of topology analysis terminals, the data acquisition terminal being used to collect power distribution information of the power grid system; the data processing terminal being communicatively connected to the data acquisition terminal, the dispatching terminal being communicatively connected to the data processing terminal, and the topology analysis terminal being communicatively connected to the dispatching terminal; the method comprising: Each of the data collection terminals acquires a number of pieces of power distribution information, and transmits each piece of power distribution information to the corresponding data processing terminal according to a preset allocation rule; The data processing end obtains the on / off message from the power distribution information, and transmits the on / off message to the dispatching end; The scheduling end transmits the combine / split messages to the topology analysis end one by one in the time sequence of the combine / split messages, wherein one topology analysis end only receives one combine / split message; All the topology analysis terminals analyze the scope of the power distribution equipment affected by the switching message, and update the switching message stored in the power grid system according to the affected scope and time sequence.

2. The real-time transmission method of power grid system data according to claim 1, characterized in that: The step of each of the data acquisition terminals acquiring a plurality of pieces of power distribution information and transmitting each piece of the power distribution information to the corresponding data processing terminal according to a preset allocation rule comprises: Each of the data collection terminals obtains a number of pieces of the power distribution information, and pre-processes the obtained power distribution information according to the business type of the power distribution information; Each of the data acquisition terminals respectively obtains a message subject corresponding to each piece of the power distribution information, and transmits the power distribution information to the data processing terminal corresponding to the message subject.

3. The real-time transmission method of power grid system data according to claim 2, characterized in that: The step of each of the data acquisition terminals respectively acquiring a message subject corresponding to each piece of the power distribution information, and transmitting the power distribution information to the data processing terminal corresponding to the message subject, comprises: Each of the data collection terminals obtains the terminal identification of the data processing terminal respectively; Each of the data collection terminals obtains the index identifier of the corresponding message topic from the monitoring topic table according to the terminal identifier, wherein all the index identifiers in the monitoring topic table correspond to one terminal identifier; According to the index identifier, each of the data acquisition terminals obtains the message subject corresponding to each piece of the power distribution information, and transmits the power distribution information to the data processing terminal corresponding to the message subject.

4. The real-time transmission method of power grid system data according to claim 1, characterized in that: The step of the data processing end acquiring the on / off message from the power distribution information and transmitting the on / off message to the dispatching end includes: The data processing end obtains the on / off message and the global number of the on / off message from the power distribution information, wherein the global number is used to represent the occurrence time sequence of the on / off message, and the smaller the global number, the earlier the corresponding on / off message occurs; The data processing end transmits the combine / split message and the global number corresponding to the combine / split message to the scheduling end.

5. The real-time transmission method of power grid system data according to claim 4, characterized in that: The step of transmitting the combining and splitting messages to the topology analysis end one by one according to the time sequence of the combining and splitting messages, comprises: The scheduling end obtains the combine / split message and a first number corresponding to the combine / split message; Before the scheduling end transmits the combine / split message to the topology analysis end, the scheduling end determines whether the first number is only greater than a second number, wherein the second number is the global number corresponding to the sent combine / split message; The size of the first number and the second number is determined. When the first number is only greater than the second number, the scheduling end transmits the combine / divide message to the topology analysis end.

6. The real-time transmission method of power grid system data according to claim 5, characterized in that: The step of transmitting the combining and splitting messages to the topology analysis end one by one according to the time sequence of the combining and splitting messages, further includes: If the first number is not only greater than the second number, the scheduling end writes the combination and division message corresponding to the first number into a cache; The scheduling end obtains the combine / split messages one by one and transmits them to the topology analysis end, and compares the first number with the newly obtained third number of the combine / split message until the first number is only greater than the third number; When the first number is only greater than the third number, the combine / split message corresponding to the first number is transmitted to the topology analysis terminal.

7. The real-time transmission method of power grid system data according to claim 5 or 6, characterized in that: The steps of all the topology analysis terminals analyzing the scope of the power distribution equipment affected by the switching message, and updating the switching message stored in the power grid system according to the affected scope and time sequence include: Each of the topology analysis terminals determines the overlap between the influence range of the first message obtained by itself and the influence range of the second message obtained by other topology analysis terminals; When the global number of the first message is greater than the global number of the second message, updating the overlapping part in the closing and opening messages stored in the power grid system to be the same as the first message; When the global number of the first message is smaller than the global number of the second message, the overlapping part in the closing and opening messages stored in the power grid system is updated to be the same as the second message.

8. A real-time transmission system for power grid system data, characterized in that: The system includes multiple data acquisition terminals, multiple data processing terminals, scheduling terminals and multiple topology analysis terminals. The data acquisition terminal is used to collect power distribution information of the power grid system; the data processing terminal is communicatively connected to the data acquisition terminal, the scheduling terminal is communicatively connected to the data processing terminal, and the topology analysis terminal is communicatively connected to the scheduling terminal; the system is used to execute the real-time transmission method of power grid system data described in any one of claims 1-7.

9. A computer device, characterized in that: It comprises a memory and a processor, wherein the memory is used to store at least one program, and the processor is used to load the at least one program to execute the real-time transmission method of power grid system data according to any one of claims 1 to 7.

10. A computer-readable storage medium storing a program executable by a processor, characterized in that: The processor-executable program is used to execute the real-time transmission method of power grid system data as described in any one of claims 1 to 7 when executed by the processor.