Generation method and device of power supply topological structure, early warning method and device, equipment and medium

By obtaining the node attributes in the power supply topology, identifying and correcting topology anomalies, and generating an accurate power supply topology, the problem of incomplete topology anomaly identification in the existing technology is solved, and efficient and accurate topology management of the power supply system is achieved.

CN120675071APending Publication Date: 2025-09-19CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510947578.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-09
Publication Date
2025-09-19

AI Technical Summary

Technical Problem

The existing technology relies solely on single power data for topology identification, resulting in blind spots in identification and the inability to identify non-power-related topology anomalies. This leads to incomplete identification of power supply topology anomalies, incomplete error correction, low topology credibility, and the need for manual secondary verification.

Method used

By obtaining the node attributes in the power supply topology, including the on-off signals and power supply of the switch nodes, and the energized signals and power consumption of the device nodes, topology anomalies are identified, and topology corrections are performed using dummy loads and dummy devices to generate an accurate power supply topology.

Benefits of technology

It achieves comprehensive identification and error correction of the power supply topology, improves the accuracy of the power supply topology, reduces the need for manual verification, and improves the reliability and efficiency of the power supply system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120675071A_ABST
    Figure CN120675071A_ABST
Patent Text Reader

Abstract

The invention provides a power supply topological structure generation method, a power supply abnormity early warning method and device, electronic equipment and a computer readable storage medium, and relates to the technical field of power distribution topological structures. The generation method comprises the steps that a power supply topological structure is acquired, the power supply topological structure comprises switch nodes and node attributes of equipment nodes, the node attributes of the switch nodes comprise on-off signals and power supply quantity, and the node attributes of the equipment nodes comprise electrified signals and power consumption quantity; identifying topology abnormity of the power supply topology structure; and carrying out topology correction on the topology abnormity of the power supply topology structure to obtain a target power supply topology structure. The invention aims to at least solve the problems of incomplete error correction, low topology credibility and need of manual secondary check caused by incomplete power supply topology anomaly identification coverage in the related technology. The method is suitable for topology correction and anomaly recognition scenes.
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 topology structures, and in particular to a method for generating a power supply topology structure, an early warning method and device for power supply anomalies, an electronic device, and a computer-readable storage medium. Background Art

[0002] Currently, the power connection of power equipment is very complicated after it is connected to the grid, and power equipment is usually systematically managed and inspected through the topology structure.

[0003] However, current topology anomaly identification relies solely on single-source power data, resulting in blind spots and the inability to identify non-power-related topology anomalies. Consequently, power supply topology anomaly identification is incomplete, leading to incomplete error correction and low topology reliability, requiring manual secondary verification. Summary of the Invention

[0004] The technical problem to be solved by the present invention is to address the above-mentioned deficiencies in the prior art and provide a method for generating a power supply topology structure, an early warning method for power supply anomalies, a device, an electronic device and a computer-readable storage medium. The method can realize the accurate and effective generation of the power supply topology structure.

[0005] In a first aspect, the present invention provides a method for generating a power supply topology structure, comprising: obtaining a power supply topology structure, wherein the power supply topology structure includes node attributes of a switch node and a device node, the node attributes of the switch node include an on / off signal and a power supply amount, and the node attributes of the device node include a powered signal and power consumption; identifying topological anomalies of the power supply topology structure; performing topological correction on the topological anomalies of the power supply topology structure to obtain a target power supply topology structure.

[0006] Preferably, obtaining the power supply topology structure specifically includes: obtaining the device information, device association information, power connection configuration information, live signals and power consumption of all devices, the on-off signals and power supply of all switches, wherein the power connection configuration information includes the switches through which power is transmitted between the device itself and the power supply and their connection relationship; determining the switches and devices as switch nodes and device nodes respectively; determining the on-off signals and power supply as node attributes of the switch nodes, and determining the live signals and power consumption as node attributes of the device nodes; based on the device association information and power connection configuration information, associating the device nodes and switch nodes to generate the power supply topology structure.

[0007] Preferably, the device information includes: location information, the name of the building to which it belongs, the room number to which it belongs, and the device tag; the device association information includes an upstream device tag and a downstream device tag; after the switch and the device are respectively determined as switch nodes and device nodes, and before the device nodes and switch nodes are associated based on the device association information and the power connection configuration information to generate the power supply topology structure, the method for generating the power supply topology structure also includes: naming the device node based on the location information, the name of the building to which it belongs, the room number to which it belongs, the device tag, the upstream device tag, and the downstream device tag; determining the level of the switch node corresponding to the i-th switch through which power is transmitted between the device itself and the power supply as the i-th level, and naming the switch node according to the level of the device tag and the switch node, where i = 1, 2, ..., N, and N represents a positive integer greater than 1.

[0008] Preferably, the on-off signal includes one of the following: on and off, the energized signal includes one of the following: energized and non-energized, and the topological anomaly of the power supply topology structure is identified, specifically including: judging whether the on-off signals of the first node and the second node are on and off in sequence, wherein the first node refers to any switch node in the power supply topology structure, and the second node refers to the switch node connected to the first node; in response to the on-off signals of the first node and the second node being on and off in sequence, determining that the topological anomaly includes the first node and the second node; judging whether the energized signal of the third node and the on-off signal of the fourth node are energized and off in sequence , wherein the third node refers to any device node in the power supply topology structure, and the fourth node refers to the switch node connected to the third node; in response to the energized signal of the third node and the on-off signal of the fourth node being energized and off respectively, it is determined that the topology abnormality includes the third node and the fourth node; it is judged whether the power difference between the power supply of the first node and the power consumption of the fifth node is greater than a preset value, wherein the fifth node refers to all device nodes connected to the first node; in response to the power difference between the power supply of the first node and the power consumption of the fifth node being greater than a preset value, it is determined that the topology abnormality includes the first node and the fifth node.

[0009] Preferably, the topology anomaly of the power supply topology structure is topologically corrected to obtain the target power supply topology structure, specifically including: in response to the topology anomaly including a first node, the switch corresponding to the first node is connected to a dummy load with a preset power consumption, and the switch node corresponding to the switch whose power supply increment is equal to the preset power consumption is determined as the switch node connected to the first node in the target power supply topology structure; in response to the topology anomaly including a third node, the dummy load with a preset power consumption and the device corresponding to the third node are connected in parallel, and the switch node corresponding to the switch whose power supply increment is equal to the preset power consumption is determined as the switch node connected to the third node in the target power supply topology structure; in response to the topology anomaly including a fifth node, the dummy load with a preset power consumption and the device corresponding to the sixth node are connected in parallel, and the switch node corresponding to the switch whose power supply increment is equal to the preset power consumption is determined as the switch node connected to the sixth node in the target power supply topology structure, wherein the sixth node refers to any device node in the fifth node.

[0010] In a second aspect, the present invention also provides an early warning method for power supply anomalies, comprising: obtaining a target power supply topology structure, wherein the target power supply topology structure is generated by the power supply topology structure generation method provided by the first aspect, the target power supply topology structure includes node attributes of switch nodes and device nodes, the node attributes of switch nodes include on-off signals and power supply amounts, and the node attributes of device nodes include energized signals and power consumption; identifying power supply anomalies of the target power supply topology structure; and performing an abnormal early warning on the power supply anomalies of the target power supply topology structure.

[0011] Preferably, the on-off signal includes the following: on and off, and the energized signal includes the following: energized and unenergized, and identifying the power supply anomaly of the target power supply topology structure specifically includes: judging whether the on-off signals of the first node and the second node are off and on in sequence, wherein the first node refers to any switch node in the target power supply topology structure, and the second node refers to the switch node connected to the first node; in response to the on-off signals of the first node and the second node being off and on in sequence, determining that the power supply anomaly includes the first node and the second node; judging whether the energized signal of the third node and the on-off signal of the fourth node are unenergized and on in sequence, wherein the third node refers to any device node in the target power supply topology structure, and the fourth node refers to the switch node connected to the third node; in response to the energized signal of the third node and the on-off signal of the fourth node being unenergized and on in sequence, determining that the power supply anomaly includes the third node and the fourth node.

[0012] In a third aspect, the present invention also provides a device for generating a power supply topology structure, comprising a first acquisition module, a first identification module and a correction module. The first acquisition module is used to acquire the power supply topology structure, wherein the power supply topology structure includes node attributes of switch nodes and device nodes, the node attributes of switch nodes include on-off signals and power supply amounts, and the node attributes of device nodes include energized signals and power consumption. The first identification module is connected to the first acquisition module and is used to identify topological anomalies of the power supply topology structure. The correction module is connected to the first identification module and is used to perform topological correction on the topological anomalies of the power supply topology structure to obtain the target power supply topology structure.

[0013] In a fourth aspect, the present invention also provides an early warning device for power supply anomalies, comprising a second acquisition module, a second identification module and an early warning module. The second acquisition module is used to acquire a target power supply topology structure, wherein the target power supply topology structure is generated by the power supply topology structure generation device provided by the third aspect. The target power supply topology structure includes node attributes of switch nodes and device nodes. The node attributes of switch nodes include on-off signals and power supply amounts, and the node attributes of device nodes include energized signals and power consumption. The second identification module is connected to the second acquisition module and is used to identify power supply anomalies of the target power supply topology structure. The early warning module is connected to the second identification module and is used to provide an abnormal early warning for power supply anomalies of the target power supply topology structure.

[0014] In a fifth aspect, the present invention also provides an electronic device comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to implement the power supply topology generation method provided in the first aspect or the power supply anomaly warning method provided in the second aspect.

[0015] In a sixth aspect, the present invention further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it implements the power supply topology generation method provided in the first aspect or the power supply anomaly warning method provided in the second aspect.

[0016] The present invention provides a method for generating a power supply topology, a method for warning of power supply anomalies, an apparatus, an electronic device, and a computer-readable storage medium. By using on / off signals, power supply quantity, energized signals, and power consumption, a three-level error correction mechanism is established: detecting switch state conflicts, detecting devices with abnormal power consumption, and detecting power supply-consumption imbalances. This mechanism can comprehensively identify topology anomalies, thereby comprehensively correcting the power supply topology and improving its accuracy. Therefore, the present invention can accurately and efficiently generate a power supply topology. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 This is a flow chart of a method for generating a power supply topology structure according to embodiment 1 of the present invention;

[0018] Figure 2 This is an example diagram of a switch of a device in Example 1 of the present invention;

[0019] Figure 3 This is an example diagram of a switch of another device in Example 1 of the present invention;

[0020] Figure 4 This is an example diagram of the naming information of the device node in Example 1 of the present invention;

[0021] Figure 5 This is a first example diagram of the on-off signal of the switch in Example 1 of the present invention;

[0022] Figure 6 This is a second example diagram of the on-off signal of the switch in Example 1 of the present invention;

[0023] Figure 7 This is a third example diagram of the on-off signal of the switch in Example 1 of the present invention;

[0024] Figure 8 This is a fourth example diagram of the on-off signal of the switch in Example 1 of the present invention;

[0025] Figure 9 This is a first example diagram of topology correction in Example 1 of the present invention;

[0026] Figure 10 This is a second example diagram of topology correction in Example 1 of the present invention;

[0027] Figure 11 This is a third example diagram of topology correction in Example 1 of the present invention;

[0028] Figure 12 This is a flow chart of a method for early warning of power supply anomalies according to embodiment 2 of the present invention;

[0029] Figure 13 This is a flow chart of a method for early warning of power supply anomalies according to embodiment 3 of the present invention;

[0030] Figure 14 This is a schematic structural diagram of a device for generating a power supply topology structure according to embodiment 4 of the present invention;

[0031] Figure 15 This is a structural diagram of a power supply abnormality early warning device according to Example 5 of the present invention. DETAILED DESCRIPTION

[0032] In order to enable those skilled in the art to better understand the technical solutions of the present invention, the embodiments of the present invention will be described in further detail below with reference to the accompanying drawings.

[0033] It should be understood that the specific embodiments and drawings described herein are only used to explain the present invention rather than to limit the present invention.

[0034] It is understood that, in the absence of conflict, the various embodiments of the present invention and the various features in the embodiments may be combined with each other.

[0035] It can be understood that, for the convenience of description, the drawings of the present invention only show parts related to the present invention, while parts unrelated to the present invention are not shown in the drawings.

[0036] It can be understood that each unit and module involved in the embodiments of the present invention may correspond to only one physical structure, or may be composed of multiple physical structures, or multiple units and modules may be integrated into one physical structure.

[0037] It will be understood that, without conflict, the functions and steps marked in the flowcharts and block diagrams of the present invention may occur in an order different from that marked in the drawings.

[0038] It is understood that the flowcharts and block diagrams of the present invention illustrate the possible architectures, functions, and operations of the systems, devices, equipment, and methods according to various embodiments of the present invention. Each box in the flowchart or block diagram may represent a unit, module, program segment, or code, which contains executable instructions for implementing the specified functions. Moreover, each box or combination of boxes in the block diagram and flowchart may be implemented using a hardware-based system that implements the specified functions, or may be implemented using a combination of hardware and computer instructions.

[0039] It can be understood that the units and modules involved in the embodiments of the present invention can be implemented by software or hardware. For example, the units and modules can be located in a processor.

[0040] Example 1:

[0041] like Figure 1 As shown, this embodiment provides a method for generating a power supply topology structure, including:

[0042] S101, obtaining a power supply topology structure, wherein the power supply topology structure includes node attributes of switch nodes and device nodes, the node attributes of the switch nodes include on / off signals and power supply amounts, and the node attributes of the device nodes include energized signals and power consumption.

[0043] In this embodiment, the power supply topology refers to the physical connection method and network layout between devices and switches during the process of transmitting and distributing electrical energy from the power source to end-user load devices. Devices include, but are not limited to, power supply devices and load devices. Power supply devices include, but are not limited to, high-voltage distribution equipment, low-voltage distribution equipment, transformers, UPS (Uninterruptible Power Supply), and primary and standby power supply input devices. A switch node refers to the node corresponding to a switch in the power supply topology, and a device node refers to the node corresponding to a device in the power supply topology.

[0044] Specifically, S101: obtaining a power supply topology structure, including steps S1011 to S1014:

[0045] S1011, obtain the device information, device association information, power connection configuration information, power signals and power consumption, on-off signals and power supply of all switches of all devices, among which the power connection configuration information includes the switches through which power is transmitted between the device itself and the power supply and their connection relationship.

[0046] Specifically, the device information includes location information, building name, room number and device tag, and the device association information includes an upper-link device tag and a lower-link device tag.

[0047] Specifically, the on-off signal includes one of the following: on and off, and the energized signal includes one of the following: energized and de-energized.

[0048] In this embodiment, the device association information refers to the connection relationship between the device itself and other devices. Each device that needs to access the network (i.e., join the power supply network) is assigned a network access label, and the device information management system generates its own device label for each device. After the device wiring configuration is completed, it is necessary to take a photo, scan, and upload the device label of the device itself and the device label of the connected device (including the upper and lower devices). After scanning and uploading the device label of the device itself and the device label of the connected device, the device information management system can be used to query and verify the device itself and the connected device to avoid label errors of the device itself and the connected device; if the verification is correct, the device information, device association information, live signal and power consumption of the device are obtained, and the device information, device association information, live signal and power consumption of the device are updated to the device management system; if there is an error in the verification, return to the device information management system to correct the device information (i.e., the device label of the device itself and the connected device), and take a photo, scan, upload, query and verify again.

[0049] Each device is connected to at least one switch. Therefore, after the device wiring configuration is completed, this embodiment also obtains the device's power connection configuration information and the switch's on / off signal and power supply, and uploads the power connection configuration information and the switch's on / off signal and power supply to the device information management system for storage. Figure 2 As shown, the two switches connecting the devices can be divided into switches at the power input end and switches at the power output end. According to the relationship between the devices connected to the two switches and the current, the switch at the power input end is used to control the current flowing to the current device (i.e. Figure 2 The switch at the power output is used to control the current flowing out of the current device (i.e. Figure 2 Output power in). And a device connected to a switch such as Figure 3 shown.

[0050] This embodiment takes the power supply network of a communication room including high-voltage distribution equipment, low-voltage distribution equipment, transformers, UPS, load equipment and their switches as an example, and obtains equipment information, equipment association information, power connection configuration information, live signals and power consumption of the high-voltage distribution equipment, low-voltage distribution equipment, transformers, UPS, load equipment, as well as the on-off signals and power supply of the switches of the high-voltage distribution equipment, low-voltage distribution equipment, transformers, UPS, and load equipment from the equipment information management system.

[0051] It should be noted that since a device may be a power supply directly connected to a power source or a load connected to multiple power supplies, the number of upstream and downstream devices in each device varies, leading to a varying number of upstream and downstream device tags. To address the difficulty in managing an excessive number of upstream and downstream device tags, this embodiment further consolidates these excessively large numbers of upstream and downstream device tags into upstream and downstream device group tags, respectively. These upstream and downstream device group tags are used to represent multiple upstream and downstream device tags, respectively.

[0052] S1012: Determine the switch and the device as a switch node and a device node respectively.

[0053] S1013 , determining the on / off signal and the power supply as node attributes of the switch node, and determining the energized signal and the power consumption as node attributes of the device node.

[0054] In this embodiment, high-voltage power distribution equipment, low-voltage power distribution equipment, transformers, UPS, load equipment, and their switches are respectively determined as device nodes and switch nodes. Device information, device association information, power connection configuration information, energized signals, and power consumption of the high-voltage power distribution equipment, low-voltage power distribution equipment, transformers, UPS, and load equipment are determined as node attributes of the device nodes. The on / off signals and power consumption of the switches of the high-voltage power distribution equipment, low-voltage power distribution equipment, transformers, UPS, and load equipment are determined as node attributes of the switch nodes.

[0055] S1014 , based on the device association information and the power connection configuration information, associate the device nodes and the switch nodes to generate a power supply topology.

[0056] In this embodiment, the low-voltage power distribution equipment includes but is not limited to: low-voltage power distribution equipment 1 (i.e., LVDS-Main), low-voltage power distribution equipment 2 (i.e., LVDS-UPSInput) and low-voltage power distribution equipment 3 (i.e., LVDS-UPSOutput), and the load equipment includes but is not limited to: load equipment 1 (i.e., LOAD-DB-Server), load equipment 2 (i.e., LOAD-Network-Core) and load equipment 3 (i.e., LOAD-CRAC-2) as an example. Table 1 shows the equipment association information and power connection configuration information of the high-voltage distribution equipment (i.e., HVD-1), low-voltage distribution equipment, transformer (i.e., TX-1), UPS (i.e., UPS-1), and load equipment. SW-HVD-In refers to the 10 kV vacuum circuit breaker (main incoming line switch) of HVD-1, SW-TX-HV refers to the load switch on the high-voltage side of TX-1, SW-TX-LV refers to the frame circuit breaker on the low-voltage side of TX-1, SW-LVDS-Main-In refers to the main incoming line frame circuit breaker of LVDS-Main, SW-LVDS-Feed-UPS refers to the outgoing line circuit breaker of LVDS-Main (feeding to LVDS-UPSInput), SW-LVDS-Feed-CRAC2 refers to the outgoing line circuit breaker of LVDS-Main (feeding to LOAD-CRAC-2), SW-LVDS-UPSInput-In refers to the main incoming line frame circuit breaker of LVDS-UPSInput, and SW-UPS-Input Refers to the UPS-1 input circuit breaker, SW-UPS-Output refers to the UPS-1 output circuit breaker, SW-LVDS-UPSOutput-In refers to the LVDS-UPSOutput main incoming frame circuit breaker, SW-LVDS-Feed-DBServer refers to the LVDS-UPSOutput outgoing circuit breaker (feeding power to LOAD-DB-Server), SW-LVDS-Feed-NetCore refers to the LVDS-UPSOutput outgoing circuit breaker (feeding power to LOAD-Network-Core), SW-Load-CRAC2-In refers to the LOAD-CRAC-2 main power input switch / circuit breaker, SW-Load-DBServer-In refers to the LOAD-DB-Server cabinet main input switch / circuit breaker, and SW-Load-NetCore-In refers to the LOAD-Network-Core cabinet main input switch / circuit breaker.

[0057] Table 1 Equipment association information and power connection configuration information

[0058]

[0059]

[0060] Based on the device association information and power connection configuration information of the high-voltage distribution equipment (i.e., HVD-1), low-voltage distribution equipment, transformer (i.e., TX-1), UPS (i.e., UPS-1), and load equipment, a global power supply topology is generated. Local power supply topologies can also be generated based on the building name or room number. This embodiment improves the accuracy of the power supply topology by acquiring five dimensions of data: device association information, on / off signals, energized signals, power supply, and power consumption.

[0061] Optionally, after S1012: determining the switch and the device as a switch node and a device node, respectively, and before S1014: associating the device node and the switch node based on the device association information and the power connection configuration information to generate a power supply topology, the method for generating a power supply topology further includes:

[0062] S1015 , naming the device node based on the location information, the building name, the room number, the device tag, the upstream device tag, and the downstream device tag.

[0063] In this embodiment, Figure 4 As shown, the naming information of the device node includes but is not limited to: location information (i.e. Figure 4 Location code in ), building name (i.e. Figure 4 Building name code in ), room number (i.e. Figure 4 Room number code in), device tag (i.e. Figure 4 The local device code in the Figure 4 The upper device (group) code in the Figure 4 Downlink device (group) code in ).

[0064] S1016, determine the level of the switch node corresponding to the i-th switch through which power is transmitted between the device itself and the power supply as the i-th level, and name the switch node according to the device label and the level of the switch node, where i = 1, 2, ..., N, where N represents a positive integer greater than 1.

[0065] In this embodiment, taking the power connection configuration information shown in Table 1 as an example, SW-LVDS-Main-In, SW-LVDS-Feed-UPS, and SW-LVDS-Feed-CRAC2 are all switches of the low-voltage power distribution equipment 1 (i.e., LVDS-Main). According to the switch sequence through which power is transmitted between the low-voltage power distribution equipment 1 and the power supply (i.e., power supply → switch of the high-voltage power distribution equipment → switch of the transformer → switch of the low-voltage power distribution equipment 1), it can be determined that the level of the switch node corresponding to the switch of the low-voltage power distribution equipment 1 is the third level, and then the switch node corresponding to the switch of the low-voltage power distribution equipment 1 can be named LVDS-Main-3. The naming information of the device node in this embodiment integrates the location triplet (building + room + device label) to achieve accurate mapping of the physical location and the logical node. The naming information of the switch node can directly reflect its sequential position in the power supply path, realize the explicitness of the topological path, and facilitate subsequent early warning and planning.

[0066] S102: Identify a topology anomaly in the power supply topology structure.

[0067] In this embodiment, a topological anomaly refers to an error in the topological relationship. For example, in actual conditions, the switch of low-voltage power distribution equipment 1 should be connected to the switches of low-voltage power distribution equipment 2 and low-voltage power distribution equipment 3, respectively. However, the power supply topology shows that the switch of low-voltage power distribution equipment 1 is connected to the switch of low-voltage power distribution equipment 2, and the switch of low-voltage power distribution equipment 2 is connected to the switch of low-voltage power distribution equipment 3. Therefore, in the power supply topology, there is an error in the topological relationship between the switches of low-voltage power distribution equipment 1, low-voltage power distribution equipment 2, and low-voltage power distribution equipment 3. If there is an error in the topological relationship, correspondingly, at least one of the on-off signal, power consumption signal, power supply amount, and power consumption corresponding to the topological relationship will reflect an abnormal situation. Therefore, this embodiment identifies the topological anomaly of the power supply topology by comparing the on-off signal of the switch, the relationship between the on-off signal and the power consumption signal, and the power supply amount and power consumption.

[0068] Specifically, S102: identifying a topology anomaly in the power supply topology structure, including steps S1021 to S1026:

[0069] S1021, determining whether the on / off signals of the first node and the second node are on and off in sequence, wherein the first node refers to any switch node in the power supply topology structure, and the second node refers to the switch node connected to the first node.

[0070] S1022 : In response to the on / off signals of the first node and the second node being on and off in sequence, determining that the topology abnormality includes the first node and the second node.

[0071] In this embodiment, in actual situations, the switch of the low-voltage power distribution equipment 1 is connected to the switches of the low-voltage power distribution equipment 2 and the low-voltage power distribution equipment 3, respectively. Then, the on-off signals of the switches of the low-voltage power distribution equipment 1, the low-voltage power distribution equipment 2 and the low-voltage power distribution equipment 3 should be all on, all off or on, off and off in sequence, such as Figure 5 、 Figure 6 and Figure 7 As shown, the switch of the low-voltage power distribution equipment 1 is Figure 5 、 Figure 6 and Figure 7 The upper switch in the circuit breaker, the switch of the high voltage distribution equipment 2 and the low voltage distribution equipment 3 is Figure 5 、 Figure 6 and Figure 7 The lower switch in .

[0072] In this embodiment, the first node is a switch node corresponding to the switch of the low-voltage power distribution device 3, the second node is a switch node corresponding to the switch of the low-voltage power distribution device 2, and the switch of the low-voltage power distribution device 1 is connected to the switch of the low-voltage power distribution device 2, and the switch of the low-voltage power distribution device 2 is connected to the switch of the low-voltage power distribution device 3. Figure 8 As shown, if the switches of low-voltage power distribution equipment 2 and low-voltage power distribution equipment 3 (i.e. Figure 8 The on-off signals of the switch nodes corresponding to the upper switch and the lower switch in the LV power distribution equipment are off and on in sequence. It can be concluded that there is an unreasonable phenomenon in the transmission of power between the switch nodes corresponding to the switches of the low-voltage power distribution equipment 1, the low-voltage power distribution equipment 2 and the low-voltage power distribution equipment 3, that is, power is transmitted on the line where power cannot be transmitted. Therefore, there must be an error in the topological relationship between the switch nodes corresponding to the switches of the low-voltage power distribution equipment 2 and the low-voltage power distribution equipment 3.

[0073] S1023, determining whether the power signal of the third node and the on / off signal of the fourth node are energized and off in sequence, wherein the third node refers to any device node in the power supply topology structure, and the fourth node refers to the switch node connected to the third node.

[0074] S1024 , in response to the energized signal of the third node and the on / off signal of the fourth node being energized and off in sequence, determining that the topology abnormality includes the third node and the fourth node.

[0075] In this embodiment, similarly, there is an error in the topological relationship between the switch nodes corresponding to the switches of the low-voltage power distribution equipment 2 and the low-voltage power distribution equipment 3. If the on-off signal of the switch of the low-voltage power distribution equipment 2 is off, then there is no power transmission in the line between the switch of the low-voltage power distribution equipment 2 and the low-voltage power distribution equipment 2. Therefore, the energized signal of the low-voltage power distribution equipment 2 should be de-energized. If the energized signal of the low-voltage power distribution equipment 2 is energized, there must be an error in the topological relationship between the device nodes and switch nodes corresponding to the low-voltage power distribution equipment 2 and its switches.

[0076] S1025 , determining whether the power difference between the power supply of the first node and the power consumption of the fifth node is greater than a preset value, where the fifth node refers to all device nodes connected to the first node.

[0077] S1026 : In response to the difference in power supply of the first node and power consumption of the fifth node being greater than a preset value, determining that the topology abnormality includes the first node and the fifth node.

[0078] In this embodiment, taking the example that the on-off signal and the energized signal of the low-voltage power distribution equipment 1 and its switch are both on and energized, the difference in power between the power supply of the switch of the low-voltage power distribution equipment 1 and the power consumption of the low-voltage power distribution equipment 1 should be within the power loss range (that is, less than or equal to the preset value). If the power supply of the switch of the low-voltage power distribution equipment 1 is 145,000 and the power consumption of the low-voltage power distribution equipment 1 is 45,000, it can be seen that the difference in power between the power supply of the switch of the low-voltage power distribution equipment 1 and the power consumption of the low-voltage power distribution equipment 1 is not within the power loss range. Obviously, there are other devices in the switch of the low-voltage power distribution equipment 1.

[0079] If the switches of low-voltage distribution equipment 1, low-voltage distribution equipment 2 and low-voltage distribution equipment 3 in the power supply topology are all switch A, the power supply of switch A is 145000, and the power consumption of low-voltage distribution equipment 1, low-voltage distribution equipment 2 and low-voltage distribution equipment 3 are 14469, 189562 and 5962 respectively, it is obvious that there is an error in the topological relationship between the device nodes corresponding to low-voltage distribution equipment 1, low-voltage distribution equipment 2 and low-voltage distribution equipment 3 and the switch node of switch A.

[0080] It should be noted that, if in actual conditions, the connection relationship, on-off signal, and energized signal of the low-voltage power distribution equipment 1, low-voltage power distribution equipment 2, and low-voltage power distribution equipment 3 and their switches are consistent with those shown in the power supply topology, and the relationship between the power supply and the power consumption is normal, then there is no topological anomaly in the power supply topology. If the on-off signals of the switch nodes corresponding to the switches of the low-voltage power distribution equipment 1 and the low-voltage power distribution equipment 2 in the power supply topology without topological anomaly are on and off in sequence, then a power supply anomaly alarm is issued for the switches of the low-voltage power distribution equipment 1 and the low-voltage power distribution equipment 2; if the energized signals and on-off signals of the device nodes and switch nodes corresponding to the low-voltage power distribution equipment 1 and its switches in the power supply topology without topological anomaly are de-energized and on in sequence, then a power supply anomaly alarm is issued for the low-voltage power distribution equipment 1 and its switches.

[0081] S103 , performing topology correction on the topology anomaly of the power supply topology structure to obtain a target power supply topology structure.

[0082] In this embodiment, a correct topology relationship is obtained by performing a topology relationship check on the topology anomaly of the power supply topology structure; and then, based on the correct topology relationship, a topology correction is performed on the topology anomaly of the power supply topology structure to obtain a target power supply topology structure.

[0083] Specifically, S103: performing topology correction on the topology anomaly of the power supply topology structure to obtain the target power supply topology structure, including steps S1031 to S1033:

[0084] S1031, in response to the topology anomaly including the first node, the switch corresponding to the first node is connected to a dummy load with a preset power consumption, and the switch node corresponding to the switch whose power supply increment is equal to the preset power consumption is determined as the switch node connected to the first node in the target power supply topology structure.

[0085] In this embodiment, the topological relationship between the switch nodes corresponding to the switches of the low-voltage power distribution equipment 2 and the low-voltage power distribution equipment 3 is wrong as an example. Figure 9 As shown, the switch of the low voltage distribution equipment 3 (ie Figure 9 The corresponding lower-level switch in the low-voltage power distribution equipment 1 is connected to a dummy load with a preset power consumption, and the power supply increment of the switch of the low-voltage power distribution equipment 1 is found to be equal to the preset power consumption. The switch node corresponding to the switch of the low-voltage power distribution equipment 1 is corrected to the switch node connected to the upper link of the switch node corresponding to the switch of the low-voltage power distribution equipment 1.

[0086] S1032, in response to the topology anomaly including the third node, a dummy load with a preset power consumption and a device corresponding to the third node are connected in parallel, and the switch node corresponding to the switch whose power supply increment is equal to the preset power consumption is determined as the switch node connected to the third node in the target power supply topology structure.

[0087] In this embodiment, the topological relationship between the device nodes and switch nodes corresponding to the low-voltage power distribution equipment 2 and its switches is wrong as an example. Figure 10 As shown, a dummy load with preset power consumption and a low-voltage power distribution device 2 (i.e. Figure 10 A single device in the low-voltage power distribution device 2), find the switch node corresponding to the switch whose power supply increment is equal to the preset power consumption, and determine the switch node corresponding to the switch whose power supply increment is equal to the preset power consumption as the switch node connected to the low-voltage power distribution device 2.

[0088] S1033, in response to the topology anomaly including the fifth node, a dummy load with a preset power consumption and a device corresponding to the sixth node are connected in parallel, and the switch node corresponding to the switch whose power supply increment is equal to the preset power consumption is determined as the switch node connected to the sixth node in the target power supply topology structure, wherein the sixth node refers to any device node in the fifth node.

[0089] In this embodiment, low-voltage power distribution equipment 1, low-voltage power distribution equipment 2 and low-voltage power distribution equipment 3 are taken as examples. Figure 11 As shown, the dummy loads with preset power consumption and the low-voltage power distribution equipment 1, low-voltage power distribution equipment 2 and low-voltage power distribution equipment 3 (i.e. Figure 11 A single device in the circuit), find the switch node corresponding to the switch whose power supply increment is equal to the preset power consumption, and determine the switch nodes corresponding to the switch whose power supply increment is equal to the preset power consumption as the switch nodes connected to low-voltage distribution equipment 1, low-voltage distribution equipment 2 and low-voltage distribution equipment 3 respectively.

[0090] This embodiment provides a method for generating a power supply topology structure. By using on / off signals, power supply, energized signals, and power consumption, a three-level error correction mechanism is constructed for switch state conflict detection, abnormal power consumption device detection, and power supply-power consumption imbalance detection. This mechanism can comprehensively identify topology anomalies and then comprehensively correct the power supply topology structure, thereby improving the accuracy of the power supply topology structure and accurately and effectively generating the power supply topology structure.

[0091] Example 2:

[0092] like Figure 12 As shown, this embodiment provides a method for early warning of power supply anomalies. The method for early warning of power supply anomalies includes:

[0093] S201 , obtaining a target power supply topology structure, wherein the target power supply topology structure includes node attributes of switch nodes and device nodes, the node attributes of switch nodes include on / off signals and power supply amounts, and the node attributes of device nodes include energized signals and power consumption.

[0094] It should be noted that obtaining the target power supply topology specifically includes: taking the power supply network of the communication room including high-voltage distribution equipment, low-voltage distribution equipment, transformers, UPS, load equipment and their switches as an example, obtaining the equipment information, equipment association information, power connection configuration information, live signals and power consumption of the high-voltage distribution equipment, low-voltage distribution equipment, transformers, UPS, load equipment, as well as the on-off signals and power supply of the switches of the high-voltage distribution equipment, low-voltage distribution equipment, transformers, UPS, and load equipment from the equipment information management system.

[0095] High-voltage power distribution equipment, low-voltage power distribution equipment, transformers, UPS, load equipment, and their switches are identified as device nodes and switch nodes, respectively. Device information, device association information, power connection configuration information, live signals, and power consumption of high-voltage power distribution equipment, low-voltage power distribution equipment, transformers, UPS, and load equipment are identified as device node attributes. On / off signals and power consumption of the switches of high-voltage power distribution equipment, low-voltage power distribution equipment, transformers, UPS, and load equipment are identified as switch node attributes.

[0096] A global power supply topology is generated based on the device association information and power connection configuration information of high-voltage distribution equipment (i.e., HVD-1), low-voltage distribution equipment, transformer (i.e., TX-1), UPS (i.e., UPS-1), and load equipment. A local power supply topology can also be generated based on the building name or room number.

[0097] A topological anomaly refers to an error in the topological relationship. For example, in actual situations, the switch of low-voltage distribution equipment 1 should be connected to the switches of low-voltage distribution equipment 2 and low-voltage distribution equipment 3, respectively. However, the power supply topology shows that the switch of low-voltage distribution equipment 1 is connected to the switch of low-voltage distribution equipment 2, and the switch of low-voltage distribution equipment 2 is connected to the switch of low-voltage distribution equipment 3. Therefore, in the power supply topology, there is an error in the topological relationship between the switches of low-voltage distribution equipment 1, low-voltage distribution equipment 2, and low-voltage distribution equipment 3. If there is an error in the topological relationship, correspondingly, at least one of the on-off signal, power consumption signal, power supply amount, and power consumption corresponding to the topological relationship will reflect an abnormal situation. Therefore, this embodiment identifies the topological anomaly of the power supply topology by comparing the on-off signal of the switch, the relationship between the on-off signal and the power consumption signal, and the power supply amount and power consumption.

[0098] S202: Identify power supply anomalies in the target power supply topology.

[0099] Specifically, the on-off signal includes one of the following: on and off, and the energized signal includes one of the following: energized and de-energized.

[0100] Specifically, S202: identifying power supply anomalies in the target power supply topology, including steps S2021 to S2024:

[0101] S2021, determining whether the on / off signals of the first node and the second node are off and on in sequence, wherein the first node refers to any switch node in the target power supply topology structure, and the second node refers to the switch node connected to the first node.

[0102] S2022 : In response to the on / off signals of the first node and the second node being off and on in sequence, determining that the power supply abnormality includes the first node and the second node.

[0103] S2023, determine whether the power signal of the third node and the on / off signal of the fourth node are de-energized and on respectively, where the third node refers to any device node in the target power supply topology structure, and the fourth node refers to the switch node connected to the third node.

[0104] S2024 , in response to the energized signal of the third node and the on / off signal of the fourth node being de-energized and on in sequence, determining that the power supply abnormality includes the third node and the fourth node.

[0105] S203: Issue an abnormality warning for power supply abnormality of the target power supply topology.

[0106] In this embodiment, if in actual conditions, the connection relationship, on-off signal, and energized signal of the low-voltage power distribution equipment 1, low-voltage power distribution equipment 2, and low-voltage power distribution equipment 3 and their switches are consistent with those shown in the power supply topology, and the relationship between the power supply and the power consumption is normal, then there is no topological anomaly in the power supply topology. If the on-off signals of the switch nodes corresponding to the switches of the low-voltage power distribution equipment 1 and the low-voltage power distribution equipment 2 in the power supply topology without topological anomaly are on and off in sequence, then a power supply anomaly alarm is issued to the switches of the low-voltage power distribution equipment 1 and the low-voltage power distribution equipment 2; if the energized signals and on-off signals of the device nodes and switch nodes corresponding to the low-voltage power distribution equipment 1 and its switches in the power supply topology without topological anomaly are de-energized and on in sequence, then a power supply anomaly alarm is issued to the low-voltage power distribution equipment 1 and its switches.

[0107] The present embodiment provides a method for early warning of power supply anomalies, which can maximize the accuracy of early warning of power supply anomalies through a power supply topology structure after comprehensive error correction, thereby achieving precise and effective early warning of power supply anomalies.

[0108] Example 3:

[0109] like Figure 13 As shown, this embodiment also provides a method for early warning of power supply anomalies. The method for early warning of power supply anomalies includes:

[0110] S301, obtain the device information, device association information, power connection configuration information, power signals and power consumption, on-off signals and power supply of all switches of all devices, wherein the power connection configuration information includes the switches through which power is transmitted between the device itself and the power supply and their connection relationship; determine the switches and devices as switch nodes and device nodes respectively; determine the on-off signals and power supply as node attributes of the switch nodes, and determine the power signals and power consumption as node attributes of the device nodes.

[0111] In this embodiment, the on / off signal and the power consumption signal are Figure 13 Device switch signal in.

[0112] S302, naming the device node based on the location information, the building name, the room number, the device tag, the upstream device tag, and the downstream device tag; determining the level of the switch node corresponding to the i-th switch through which power is transmitted between the device itself and the power source as the i-th level, and naming the switch node according to the device tag and the level of the switch node, where i = 1, 2, ..., N, and N represents a positive integer greater than 1.

[0113] S303 , based on the device association information and the power connection configuration information, associate the device nodes and the switch nodes to generate a power supply topology.

[0114] S304: Identify a topology anomaly in the power supply topology structure.

[0115] In this embodiment, identifying the topological anomaly of the power supply topology structure is Figure 13 The power supply relationship judged in the experiment does not match the actual situation.

[0116] S305 , performing topology correction on the topology anomaly of the power supply topology structure to obtain a target power supply topology structure.

[0117] S306 , identifying a power supply anomaly of the target power supply topology structure; and issuing an anomaly warning for the power supply anomaly of the target power supply topology structure.

[0118] This embodiment provides a power supply anomaly warning method, which uses on / off signals, power supply quantity, energized signals, and power consumption to construct a three-level error correction mechanism for switch state conflict detection, abnormal power consumption device detection, and power supply-power consumption imbalance detection. This mechanism can comprehensively identify topology anomalies, and then comprehensively correct the power supply topology structure, thereby improving the accuracy of the power supply topology structure and accurately and effectively generating the power supply topology structure. Through the power supply topology structure after comprehensive error correction, the accuracy of the power supply anomaly warning can be maximized, and accurate and effective warning of power supply anomalies can be achieved.

[0119] Example 4:

[0120] like Figure 14 As shown, this embodiment also provides a device for generating a power supply topology structure, including a first acquisition module 41, a first identification module 42 and a correction module 43. The first acquisition module 41 is used to obtain the power supply topology structure, wherein the power supply topology structure includes node attributes of switch nodes and device nodes, the node attributes of switch nodes include on-off signals and power supply amounts, and the node attributes of device nodes include energized signals and power consumption. The first identification module 42 is connected to the first acquisition module 41 and is used to identify topological anomalies of the power supply topology structure. The correction module 43 is connected to the first identification module 42 and is used to perform topological correction on the topological anomalies of the power supply topology structure to obtain a target power supply topology structure.

[0121] Specifically, the first acquisition module 41 includes: an acquisition unit 411, a first determination unit 412, a second determination unit 413 and an association unit 414, the acquisition unit 411 is used to obtain the device information, device association information, power connection configuration information, energized signals and power consumption, on-off signals and power supply of all switches of all devices, wherein the power connection configuration information includes the switches through which power is transmitted between the device itself and the power supply and their connection relationship, the first determination unit 412 is used to determine the switches and devices as switch nodes and device nodes respectively, the second determination unit 413 is used to determine the on-off signals and power supply as node attributes of the switch nodes, and determine the energized signals and power consumption as node attributes of the device nodes, the association unit 414 is used to associate device nodes and switch nodes based on the device association information and power connection configuration information to generate a power supply topology.

[0122] Optionally, the first acquisition module 41 also includes: a first naming unit 415 and a second naming unit 416, the first naming unit 415 is used to name the device node based on location information, the building name, the room number, the device tag, the upstream device tag and the downstream device tag, and the second naming unit 416 is used to determine the level of the switch node corresponding to the i-th switch through which power is transmitted between the device itself and the power supply as the i-th level, and name the switch node according to the level of the device tag and the switch node, where i = 1, 2,…, N, and N represents a positive integer greater than 1.

[0123] Specifically, the first identification module 42 includes: a first judgment unit 421, a first response unit 422, a second judgment unit 423, a second response unit 424, a third judgment unit 425 and a third response unit 426, the first judgment unit 421 is used to judge whether the on-off signals of the first node and the second node are on and off in sequence, wherein the first node refers to any switch node in the power supply topology structure, and the second node refers to the switch node connected to the first node, the first response unit 422 is used to respond to the on-off signals of the first node and the second node being on and off in sequence, and determine that the topology abnormality includes the first node and the second node, and the second judgment unit 423 is used to judge whether the on-off signal of the third node and the fourth node are energized. Whether they are energized and disconnected in sequence, wherein the third node refers to any device node in the power supply topology structure, the fourth node refers to the switch node connected to the third node, the second response unit 424 is used to respond to the energized signal of the third node and the on-off signal of the fourth node to be energized and disconnected in sequence, and determine that the topology abnormality includes the third node and the fourth node, the third judgment unit 425 is used to judge whether the power difference between the power supply of the first node and the power consumption of the fifth node is greater than a preset value, wherein the fifth node refers to all device nodes connected to the first node, and the third response unit 426 is used to respond to the power difference between the power supply of the first node and the power consumption of the fifth node is greater than a preset value, and determine that the topology abnormality includes the first node and the fifth node.

[0124] Specifically, the correction module 43 includes: a first correction unit 431, a second correction unit 432 and a third correction unit 433. The first correction unit 431 is used to respond to the topology abnormality including the first node, connect the switch corresponding to the first node to a dummy load with a preset power consumption, and determine the switch node corresponding to the switch whose power supply increment is equal to the preset power consumption as the switch node connected to the first node in the target power supply topology structure; the second correction unit 432 is used to respond to the topology abnormality including the third node, connect the dummy load with a preset power consumption and the device corresponding to the third node in parallel, and determine the switch node corresponding to the switch whose power supply increment is equal to the preset power consumption as the switch node connected to the third node in the target power supply topology structure; the third correction unit 433 is used to respond to the topology abnormality including the fifth node, connect the dummy load with a preset power consumption and the device corresponding to the sixth node in parallel, and determine the switch node corresponding to the switch whose power supply increment is equal to the preset power consumption as the switch node connected to the sixth node in the target power supply topology structure, wherein the sixth node refers to any device node in the fifth node.

[0125] It can be understood that the power supply topology structure generation device provided above executes the power supply topology structure generation method corresponding to the embodiment 1 provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects of the scheme corresponding to the power supply topology structure generation method of the embodiment 1 above, and will not be repeated here.

[0126] Example 5:

[0127] like Figure 15 As shown, this embodiment also provides a power supply anomaly warning device including a second acquisition module 51, a second identification module 52 and an early warning module 53. The second acquisition module 51 is used to obtain the target power supply topology structure, wherein the target power supply topology structure includes node attributes of the switch node and the device node, the node attributes of the switch node include the on-off signal and the power supply amount, and the node attributes of the device node include the energized signal and the power consumption. The second identification module 52 is connected to the second acquisition module 51 and is used to identify the power supply anomaly of the target power supply topology structure. The early warning module 53 is connected to the second identification module 52 and is used to provide an abnormal early warning for the power supply anomaly of the target power supply topology structure.

[0128] Specifically, the second identification module 52 includes: a fourth judgment unit 521, a fourth response unit 522, a fifth judgment unit 523 and a fifth response unit 524, the fourth judgment unit 521 is used to judge whether the on-off signals of the first node and the second node are off and on in sequence, wherein the first node refers to any switch node in the target power supply topology structure, and the second node refers to the switch node connected to the first node, the fourth response unit 522 is used to respond to the on-off signals of the first node and the second node being off and on in sequence, and determine that the power supply anomaly includes the first node and the second node, the fifth judgment unit 523 is used to judge whether the energized signal of the third node and the on-off signal of the fourth node are de-energized and on in sequence, wherein the third node refers to any device node in the target power supply topology structure, and the fourth node refers to the switch node connected to the third node, and the fifth response unit 524 is used to respond to the energized signal of the third node and the on-off signal of the fourth node being de-energized and on in sequence, and determine that the power supply anomaly includes the third node and the fourth node.

[0129] It can be understood that the power supply abnormality warning device provided above executes the power supply abnormality warning method corresponding to the embodiment 2 provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects of the scheme corresponding to the power supply abnormality warning method of the embodiment 2 above, and will not be repeated here.

[0130] Example 6:

[0131] This embodiment also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to implement the power supply topology generation method in the above-mentioned embodiment 1 and the power supply abnormality warning method in embodiment 2 or embodiment 3.

[0132] Example 7:

[0133] This embodiment also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method for generating a power supply topology structure in the above-mentioned embodiment 1 and the method for warning of power supply anomalies in embodiment 2 or embodiment 3 are implemented.

[0134] It will be understood that the above embodiments are merely exemplary embodiments for illustrating the principles of the present invention, and the present invention is not limited thereto. Those skilled in the art will appreciate that various modifications and improvements can be made without departing from the spirit and substance of the present invention, and such modifications and improvements are also considered to be within the scope of protection of the present invention.

Claims

1. A method for generating a power supply topology structure, characterized in that: include: Obtaining a power supply topology structure, wherein the power supply topology structure includes node attributes of switch nodes and device nodes, the node attributes of the switch nodes include on / off signals and power supply amounts, and the node attributes of the device nodes include energized signals and power consumption; Identify topological anomalies in the power supply topology; The topology anomaly of the power supply topology is corrected to obtain the target power supply topology.

2. The method for generating a power supply topology structure according to claim 1, characterized in that: The obtaining of the power supply topology structure specifically includes: Obtain device information, device association information, power connection configuration information, power signals and power consumption, on / off signals of all switches, and power supply of all devices. The power connection configuration information includes the switches through which power is transmitted between the device itself and the power source, and their connection relationships. The switch and the device are identified as a switch node and a device node respectively; Determine the on / off signal and the power supply as node attributes of the switch node, and determine the energized signal and power consumption as node attributes of the device node; Based on the device association information and the power connection configuration information, the device nodes and the switch nodes are associated to generate a power supply topology.

3. The method for generating a power supply topology structure according to claim 2, wherein: The device information includes: location information, building name, room number and device tag; the device association information includes upper-link device tag and lower-link device tag. After determining the switch and the device as the switch node and the device node respectively, and before associating the device node and the switch node based on the device association information and the power connection configuration information to generate the power supply topology structure, the method further includes: Name the device node based on location information, building name, room number, device tag, upstream device tag, and downstream device tag; The level of the switch node corresponding to the i-th switch through which power is transmitted between the device itself and the power supply is determined as the i-th level, and the switch node is named according to the device label and the level of the switch node, where i = 1, 2, ..., N, where N represents a positive integer greater than 1.

4. The method for generating a power supply topology structure according to claim 2, wherein: The on-off signal includes one of the following: on and off, and the charged signal includes one of the following: charged and uncharged. The identifying of topology anomalies in the power supply topology structure specifically includes: Determine whether the on / off signals of the first node and the second node are on and off in sequence, wherein the first node refers to any switch node in the power supply topology structure, and the second node refers to the switch node connected to the first node; In response to the on / off signals of the first node and the second node being on and off in sequence, determining that the topology abnormality includes the first node and the second node; Determining whether a power signal of a third node and an on / off signal of a fourth node are energized and off, respectively, wherein the third node refers to any device node in the power supply topology, and the fourth node refers to a switch node connected to the third node; In response to the energized signal of the third node and the on / off signal of the fourth node being energized and off in sequence, determining that the topology abnormality includes the third node and the fourth node; Determine whether a power difference between the power supply of the first node and the power consumption of the fifth node is greater than a preset value, wherein the fifth node refers to all device nodes connected to the first node; In response to an amount difference between the power supply of the first node and the power consumption of the fifth node being greater than a preset value, it is determined that the topology abnormality includes the first node and the fifth node.

5. The method for generating a power supply topology structure according to claim 4, characterized in that: The topology correction of the topology anomaly of the power supply topology structure to obtain the target power supply topology structure specifically includes: In response to the topology anomaly including the first node, connecting a dummy load with a preset power consumption to a switch corresponding to the first node, and determining a switch node corresponding to a switch whose power supply increment is equal to the preset power consumption as a switch node connected to the first node in the target power supply topology structure; In response to the topology anomaly including a third node, connecting a dummy load with a preset power consumption in parallel with a device corresponding to the third node, and determining a switch node corresponding to a switch whose power supply increment is equal to the preset power consumption as a switch node connected to the third node in the target power supply topology structure; In response to the topology anomaly including the fifth node, a dummy load with a preset power consumption and the device corresponding to the sixth node are connected in parallel, and the switch node corresponding to the switch whose power supply increment is equal to the preset power consumption is determined as the switch node connected to the sixth node in the target power supply topology structure, wherein the sixth node refers to any device node in the fifth node.

6. A method for early warning of power supply anomaly, characterized in that: include: Obtaining a target power supply topology, wherein the target power supply topology is generated by the power supply topology generation method according to any one of claims 1 to 5, and the target power supply topology includes node attributes of switch nodes and device nodes, the node attributes of switch nodes include on / off signals and power supply amounts, and the node attributes of device nodes include energized signals and power consumption; Identify power supply anomalies in the target power supply topology; Provides warning of power supply anomalies in the target power supply topology.

7. The method for early warning of power supply abnormality according to claim 6, characterized in that: The on-off signal includes one of the following: on and off, and the charged signal includes one of the following: charged and uncharged. The identifying of a power supply anomaly in the target power supply topology structure specifically includes: Determine whether the on / off signals of the first node and the second node are off and on in sequence, wherein the first node refers to any switch node in the target power supply topology structure, and the second node refers to the switch node connected to the first node; In response to the on / off signals of the first node and the second node being off and on in sequence, determining that the power supply abnormality includes the first node and the second node; Determine whether a power signal of a third node and an on / off signal of a fourth node are de-energized and on, respectively, where the third node refers to any device node in the target power supply topology, and the fourth node refers to a switch node connected to the third node; In response to the energized signal of the third node and the on / off signal of the fourth node being de-energized and on in sequence, it is determined that the power supply abnormality includes the third node and the fourth node.

8. A device for generating a power supply topology structure, characterized in that: It includes a first acquisition module, a first recognition module and a correction module, The first acquisition module is used to acquire a power supply topology structure, wherein the power supply topology structure includes node attributes of switch nodes and device nodes, the node attributes of switch nodes include on-off signals and power supply, and the node attributes of device nodes include energized signals and power consumption, The first identification module is connected to the first acquisition module and is used to identify topological anomalies of the power supply topology structure. The correction module is connected to the first identification module and is used to perform topology correction on the topology anomaly of the power supply topology structure to obtain a target power supply topology structure.

9. A warning device for abnormal power supply, characterized in that: It includes a second acquisition module, a second identification module and an early warning module. A second acquisition module is configured to acquire a target power supply topology structure, wherein the target power supply topology structure is generated by the power supply topology structure generation device according to claim 8, and the target power supply topology structure includes node attributes of switch nodes and device nodes, the node attributes of switch nodes include on / off signals and power supply amounts, and the node attributes of device nodes include energized signals and power consumption. The second identification module is connected to the second acquisition module and is used to identify power supply anomalies of the target power supply topology structure. The early warning module is connected to the second identification module and is used to issue an abnormality early warning for power supply abnormalities of the target power supply topology structure.

10. An electronic device, characterized in that: It includes a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to implement a method for generating a power supply topology structure as described in any one of claims 1 to 5 or a method for early warning of power supply anomaly as described in any one of claims 6 to 7.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, it implements a method for generating a power supply topology structure as described in any one of claims 1 to 5 or a method for early warning of power supply anomalies as described in any one of claims 6 to 7.