Method and system for generating SVG topology map based on distribution network topology model

By veraging the abnormal identification and integrity verification of the ledger data in the station area, combined with the download permissions of the PC and browsers, the SVG topology graph generation process is optimized, solving the problems of lag and inefficiency in SVG topology graph generation, real-time update and efficient generation are achieved.

CN116821536BActive Publication Date: 2025-08-22JIANGMEN POWER SUPPLY BUREAU OF GUANGDONG POWER GRID CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310757163.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-26
Publication Date
2025-08-22
Estimated Expiration
2043-06-26

AI Technical Summary

Technical Problem

In the prior art, SVG topology map generation lags behind changes in topology model, resulting in poor real-time monitoring of low-voltage power grids and low generation efficiency.

Method used

By responding to the abnormal movement request of the station ledger, abnormal movement identification and data integrity verification are performed on the abnormal movement ledger data, and downloading them according to the preset trigger cycle, generating the SVG topology map of the abnormal movement station, and using the download permissions of the PC and browser to optimize the generation process.

Benefits of technology

Real-time consistency between the platform ledger and the gallery is achieved, timeliness and efficiency of SVG topology map generation is improved, and browser stuck is avoided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116821536B_ABST
    Figure CN116821536B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of power data processing, and discloses a method and system for generating an SVG topology map based on a distribution network topology model. The method responds to a change request of a substation ledger, identifies the change in the substation ledger data, performs data integrity verification on the change in the substation ledger data, downloads the change in the substation ledger data according to a preset trigger cycle, and generates a corresponding SVG topology map of the change in the substation, thereby generating and updating the SVG topology map of the change in the ledger data in real time, meeting the real-time requirement that the substation ledger is consistent with the map library, and improving the timeliness and efficiency of generating the SVG topology map.
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 data processing, and in particular to a method and system for generating an SVG topology map based on a distribution network topology model. Background Art

[0002] SVG (Scalable Vector Graphics) is an image file format. Its unique feature is that users can directly draw images using code. SVG images can be opened with any text processing tool, and interactive features can be made by changing some of the code. SVG images can also be inserted into HTML and viewed through a browser at any time.

[0003] Currently, generating SVG topology maps requires manual operation, making it difficult to automatically synchronize the map with the real-time changes in the substation ledger. This causes the SVG topology map to lag behind the changes in the topology model, restricting the timeliness requirements of real-time monitoring of the low-voltage power grid. At the same time, each time an SVG topology map generation request is triggered, only an SVG topology map for a single substation can be generated, resulting in low efficiency in generating SVG topology maps. Summary of the Invention

[0004] The present invention provides a method and system for generating an SVG topology map based on a distribution network topology model, which solves the technical problem of low timeliness and efficiency in generating an SVG topology map.

[0005] In view of this, a first aspect of the present invention provides a method for generating an SVG topology map based on a distribution network topology model, comprising the following steps:

[0006] Responding to a request for change in a zone ledger, marking the changed zone ledger data in the zone ledger;

[0007] Perform data integrity check on the changed area ledger data, obtain the changed area ledger data that passes the data integrity check, and proceed to the next step;

[0008] Downloading the abnormal area ledger data according to a preset trigger cycle;

[0009] Generate the corresponding changed area SVG topology map based on the changed area ledger data that has passed the data integrity check.

[0010] Preferably, the method further comprises:

[0011] Setting a status symbol for each area account data in the area account, wherein the initial state of the status symbol is 0;

[0012] When abnormal data appears in the area ledger data, the status symbol jumps to a value of 1.

[0013] Preferably, the steps of performing data integrity check on the changed area ledger data and obtaining the changed area ledger data that passes the data integrity check specifically include:

[0014] Determine whether the station area number in the changed station area ledger data is unique. If it is determined that the station area number in the changed station area ledger data is unique, execute the next step. If it is determined that the station area number in the changed station area ledger data is not unique, call an alarm window to issue an alarm.

[0015] Determine whether the node data and the switch data in the changed area ledger data are in a one-to-one matching relationship. If it is determined that the node data and the switch data in the changed area ledger data are in a one-to-one matching relationship, execute the next step. If it is determined that the node data and the switch data in the changed area ledger data are not in a one-to-one matching relationship, call the alarm window to issue an alarm.

[0016] Determine whether there is a parent-child relationship between switches in the changed area ledger data; if it is determined that there is a parent-child relationship between switches in the changed area ledger data, execute the next step; if it is determined that there is no parent-child relationship between switches in the changed area ledger data, call an alarm window to issue an alarm;

[0017] Obtain the end nodes in each level of the changed substation ledger data, and determine whether the number of the end node is unique. If it is determined that the number of the end node is unique, the changed substation ledger data is determined to be the changed substation ledger data that has passed the data integrity check. If it is determined that the number of the end node is not unique, call the alarm window to issue an alarm.

[0018] Preferably, the step of downloading the changed area ledger data according to a preset trigger period specifically includes:

[0019] Acquire multiple abnormal area ledger data within a complete preset trigger cycle, transmit the multiple abnormal area ledger data to the SVG topology map generation cache queue in a time sequence, and refresh the SVG topology map generation cache queue in real time;

[0020] The health of the SVG topology map generation queue is determined based on the number of changed area ledger data in the SVG topology map generation cache queue, the preset download rate of the SVG topology map, and the current preset cache time of the browser;

[0021] If it is determined that the SVG topology map generation queue is unhealthy, the download permission of the PC system is called to establish multiple download threads, so as to execute data concurrently downloading the abnormal area ledger data in the SVG topology map generation cache queue;

[0022] If it is determined that the SVG topology map generation queue is healthy, the browser's download permission is called to execute data download of the abnormal area ledger data in the SVG topology map generation cache queue.

[0023] Preferably, the step of judging whether the SVG topology map generation queue is healthy based on the number of changed area ledger data in the SVG topology map generation cache queue, the preset download rate of the SVG topology map, and the current preset cache time of the browser specifically includes:

[0024] Determine the download completion time of the SVG topology map generation cache queue according to the number of abnormal area ledger data in the SVG topology map generation cache queue and the preset download rate of the SVG topology map;

[0025] The download completion time of the SVG topology map generation cache queue is compared with the current preset cache time of the browser. If the download completion time of the SVG topology map generation cache queue is greater than the current preset cache time of the browser, the SVG topology map generation queue is determined to be unhealthy. If the download completion time of the SVG topology map generation cache queue is not greater than the current preset cache time of the browser, the SVG topology map generation queue is determined to be healthy.

[0026] In a second aspect, the present invention further provides a system for generating an SVG topology map based on a distribution network topology model, comprising:

[0027] The change response module is used to respond to the change request of the area ledger and mark the change of the area ledger data in the area ledger;

[0028] The data verification module is used to perform data integrity verification on the changed area ledger data and obtain the changed area ledger data that passes the data integrity verification;

[0029] A trigger module, configured to download the changed area ledger data according to a preset trigger period;

[0030] The topology map generation module is used to generate the corresponding changed area SVG topology map based on the changed area ledger data that has passed the data integrity check.

[0031] Preferably, the system further includes:

[0032] A status symbol setting module is used to set a status symbol for each area ledger data in the area ledger, and the initial state of the status symbol is 0;

[0033] The status symbol jump module is used to jump the status symbol to a value of 1 when abnormal data appears in the area ledger data.

[0034] Preferably, the data verification module specifically includes:

[0035] The station number verification module is used to determine whether the station number in the changed station account data is unique. If it is determined that the station number in the changed station account data is unique, the node verification module process is executed. If it is determined that the station number in the changed station account data is not unique, the alarm window is called to issue an alarm.

[0036] A node inspection module is used to determine whether the node data and the switch data in the changed area ledger data are in a one-to-one matching relationship. If it is determined that the node data and the switch data in the changed area ledger data are in a one-to-one matching relationship, the process of the parent-child layer inspection module is executed. If it is determined that the node data and the switch data in the changed area ledger data are not in a one-to-one matching relationship, the alarm window is called to issue an alarm;

[0037] The parent-child layer verification module is used to determine whether there is a parent-child relationship between the switches in the adjacent layers in the changed area ledger data. If it is determined that there is a parent-child relationship between the switches in the changed area ledger data, the process of the terminal node verification module is executed. If it is determined that there is no parent-child relationship between the switches in the changed area ledger data, the alarm window is called to issue an alarm.

[0038] The end node verification module is used to obtain the end nodes in each level of the abnormal substation ledger data, and determine whether the number of the end node is unique. If it is determined that the number of the end node is unique, the abnormal substation ledger data is determined to be abnormal substation ledger data that has passed the data integrity check. If it is determined that the number of the end node is not unique, the alarm window is called to issue an alarm.

[0039] Preferably, the trigger module specifically includes:

[0040] The cache module is used to obtain multiple abnormal area ledger data within a complete preset trigger cycle, transmit the multiple abnormal area ledger data to the SVG topology map generation cache queue in a time sequence, and refresh the SVG topology map generation cache queue in real time;

[0041] The queue health judgment module is used to judge whether the SVG topology map generation queue is healthy based on the number of abnormal area ledger data in the SVG topology map generation cache queue, the preset download rate of the SVG topology map, and the current preset cache time of the browser;

[0042] The first download module is used to call the download authority of the PC system to establish multiple download threads if it is determined that the SVG topology map generation queue is unhealthy, so as to execute data concurrently downloading the abnormal area ledger data in the SVG topology map generation cache queue;

[0043] The second download module is used to call the browser's download authority to execute data download of the abnormal area ledger data in the SVG topology map generation cache queue if it is determined that the SVG topology map generation queue is healthy.

[0044] Preferably, the queue health judgment module specifically includes:

[0045] A download time calculation module is used to determine the download completion time of the SVG topology map generation cache queue based on the number of abnormal area ledger data in the SVG topology map generation cache queue and the preset download rate of the SVG topology map;

[0046] A health assessment module is used to compare the download completion time of the SVG topology map generation cache queue with the current preset cache time of the browser. If the download completion time of the SVG topology map generation cache queue is greater than the current preset cache time of the browser, the SVG topology map generation queue is determined to be unhealthy; if the download completion time of the SVG topology map generation cache queue is not greater than the current preset cache time of the browser, the SVG topology map generation queue is determined to be healthy.

[0047] It can be seen from the above technical solutions that the present invention has the following advantages:

[0048] The present invention responds to the change request of the substation ledger, marks the change of the changed substation ledger data, performs data integrity verification on the changed substation ledger data, downloads the changed substation ledger data according to a preset trigger cycle, and generates a corresponding SVG topology map of the changed substation, thereby generating and updating the real-time SVG topology map of the changed ledger data, meeting the real-time requirement of the substation ledger and the map library, and improving the timeliness and efficiency of generating the SVG topology map. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 A flowchart of a method for generating an SVG topology map based on a distribution network topology model provided by an embodiment of the present invention;

[0050] Figure 2 A schematic diagram of the structure of a system for generating an SVG topology map based on a distribution network topology model provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0051] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the present invention.

[0052] For easier understanding, see Figure 1 The present invention provides a method for generating an SVG topology map based on a distribution network topology model, comprising the following steps:

[0053] Step 1: Respond to the change request of the area ledger and mark the changed area ledger data in the area ledger.

[0054] Among them, the abnormal events of the district ledger can be the creation of a new district, data update or user editing.

[0055] After obtaining the change request of the area ledger, the changed area ledger data in the area ledger is marked as changed.

[0056] It should be noted that the execution entity of this step 1 is usually a web server. The monitoring of abnormal events in this embodiment can be background data monitoring, which is an example of monitoring other than newly built areas rather than a limitation. At the same time, the identification tool in the web server is used to identify the abnormal areas in the ledger.

[0057] Among them, the substation ledger data includes substation address, substation number, node number, node topology relationship and switch status, etc.

[0058] Step 2: Perform data integrity check on the changed area ledger data, obtain the changed area ledger data that passes the data integrity check, and proceed to the next step.

[0059] It should be noted that data integrity verification is an effective operation to monitor whether the ledger data of the changed area is standardized and organized, which can improve the reliability of data and graphics, prevent graphic confusion, reduce data duplication, and improve data reliability.

[0060] Step 3: Download the changed area ledger data according to the preset trigger cycle.

[0061] The preset trigger period can be pre-set to automatically trigger when an abnormal event is detected, or automatically trigger at a fixed time, etc.

[0062] In one example, the download operation of the changed area ledger data is triggered at the start time of the trigger period, so that the changed area ledger data is downloaded in real time, which can be downloaded to a browser or PC.

[0063] Step 4: Generate the corresponding SVG topology map of the changed area based on the changed area ledger data that has passed the data integrity check.

[0064] It should be noted that the SVG topology map of the substation area can be generated by using an SVG topology map generation plug-in.

[0065] In a general example, the process of generating an SVG topology map of a substation area includes:

[0066] According to the structure of different nodes contained in the abnormal substation ledger data, SVG graphics elements of corresponding structures are drawn based on the SVG graphic element library; and according to the branch information of each node in the abnormal substation ledger data and the connection relationship between nodes, the node graphics elements and branch graphics elements of the SVG topology map are constructed, and marked with different colors in the graphic element topology map; the node graphics elements and branch graphics elements constructed in the above graphic element topology map are distinguished by different colors according to the operating status, thereby generating SVG graphics elements.

[0067] At the same time, after generating the SVG topology map of the changed area, the changed area with the original identification needs to be replaced.

[0068] This embodiment provides a method for generating an SVG topology map based on a distribution network topology model. The method responds to the change request of the substation ledger, identifies the change of the substation ledger data, performs data integrity verification on the change of the substation ledger data, downloads the change of the substation ledger data according to a preset trigger cycle, and generates a corresponding SVG topology map of the change of the substation, thereby generating and updating the SVG topology map of the change of the ledger data in real time, meeting the real-time requirements of the substation ledger and the gallery, and improving the timeliness and efficiency of generating the SVG topology map.

[0069] In a specific embodiment, the method further comprises:

[0070] S11. Set a status symbol for each area ledger data in the area ledger, and the initial state of the status symbol is 0.

[0071] S12. When abnormal data appears in the area ledger data, the status symbol jumps to 1.

[0072] Among them, the status symbol can be a binary string, which is used as a cache container for the area ledger data through the HashMap data structure. When the data is updated, the background finds the corresponding data in the data cache through the updated ledger number and automatically jumps the corresponding status lock parameter to 1.

[0073] In a specific embodiment, step 2 specifically includes:

[0074] 201. Determine whether the area number in the changed area ledger data is unique. If it is determined that the area number in the changed area ledger data is unique, proceed to the next step. If it is determined that the area number in the changed area ledger data is not unique, call the alarm window to issue an alarm.

[0075] Among them, the substation number and name in the substation ledger should be unique, and it is necessary to verify whether the substation number has the same substation number or substation name. At the same time, the field length of the substation number and name also needs to be checked to determine whether the field length overflows.

[0076] 202. Determine whether the node data and the switch data in the abnormal substation ledger data are in a one-to-one matching relationship. If it is determined that the node data and the switch data in the abnormal substation ledger data are in a one-to-one matching relationship, execute the next step. If it is determined that the node data and the switch data in the abnormal substation ledger data are not in a one-to-one matching relationship, call the alarm window to issue an alarm.

[0077] Among them, the node data and switch data in the substation ledger should be in a one-to-one matching relationship, that is, one node data can only be connected to one switch.

[0078] 203. Determine whether there is a parent-child relationship between the switches in the abnormal substation ledger data. If it is determined that there is a parent-child relationship between the switches in the abnormal substation ledger data, execute the next step. If it is determined that there is no parent-child relationship between the switches in the abnormal substation ledger data, call the alarm window to issue an alarm.

[0079] Among them, the number format of each switch can be "Kxxxxxxxxxxxxxxxxxx" with a total of 19 digits, of which the last 18 digits are numbers, each two digits represents a level, the first digit represents the upper switch it is connected to, and the following digits are all "0".

[0080] The parent-child hierarchical relationship between switches at each level is verified by switch numbering. For example, if one switch is numbered K0100000000000000000 and another is numbered K0101000000000000000, the parent switch bound to switch number K010100000000000000 is numbered K01000000000000000. If the topology number of a node data is K0101000000000000000 and the topology number K01000000000000000 does not exist in all node data under this area, it is determined that the switch lacks a parent switch.

[0081] 204. Obtain the end nodes in each level of the abnormal area ledger data, and determine whether the number of the end node is unique. If the number of the end node is unique, the abnormal area ledger data is determined to be abnormal area ledger data that has passed the data integrity check. If the number of the end node is not unique, call the alarm window to issue an alarm.

[0082] Among them, the abnormal ledger data of the changed areas that fail to pass the verification are marked as abnormal for display in the alarm window, so that maintenance personnel can promptly discover and maintain the abnormal ledger changed areas. Subsequently, the erroneous data needs to be adjusted and re-verified to avoid the generation of disordered graphics by non-standard data.

[0083] In a specific embodiment, step 3 specifically includes:

[0084] 301. Acquire multiple abnormal area ledger data within a complete preset trigger cycle, transmit the multiple abnormal area ledger data to the SVG topology map generation cache queue in sequence according to the time sequence relationship, and refresh the SVG topology map generation cache queue in real time.

[0085] Among them, when abnormal events occur in multiple substations at the same time, multiple SVG topology maps need to be generated. At this time, an SVG topology map generation cache queue is established and refreshed in real time. Due to the limitations of the Web server, SVG topology maps usually need to be generated in the SVG topology map cache queue in the order of the queue.

[0086] 302. Determine whether the SVG topology map generation queue is healthy based on the number of abnormal area ledger data in the SVG topology map generation cache queue, the preset download rate of the SVG topology map, and the current preset cache time of the browser.

[0087] It should be noted that the download speed is too slow due to the limited network speed and browser memory problem on the web side, and there is a hidden danger of the web being stuck due to downloading a large number of SVG images, which in turn restricts the real-time monitoring of the low-voltage power grid.

[0088] To this end, this embodiment needs to determine whether the web terminal can meet the download requirements of the SVG topology map generation queue.

[0089] Specifically, step 302 includes:

[0090] 3021. Determine the download completion time of the SVG topology map generation cache queue based on the number of changed area ledger data in the SVG topology map generation cache queue and the preset download rate of the SVG topology map;

[0091] 3022. Compare the download completion time of the SVG topology map generation cache queue with the current preset cache time of the browser. If the download completion time of the SVG topology map generation cache queue is greater than the current preset cache time of the browser, the SVG topology map generation queue is determined to be unhealthy. If the download completion time of the SVG topology map generation cache queue is not greater than the current preset cache time of the browser, the SVG topology map generation queue is determined to be healthy.

[0092] The number of abnormal area ledger data in the cache queue for generating the above-mentioned SVG topology map can be the maximum number of queues within a preset time (such as 10 minutes), and the SVG topology map download rate can be the average rate within a preset time (such as 5 minutes).

[0093] The download completion time of the SVG topology map generation cache queue is determined based on the ratio of the number of abnormal area ledger data in the SVG topology map generation cache queue and the preset download rate of the SVG topology map.

[0094] The health status of the SVG topology map generation cache queue is used to evaluate the web client's ability to generate SVG topology maps. If the health status is poor, the browser may freeze.

[0095] 3023. If it is determined that the SVG topology map generation queue is unhealthy, the download permission of the PC system is called to establish multiple download threads, so as to execute concurrent download of the abnormal area ledger data in the SVG topology map generation cache queue.

[0096] Among them, when the health status is poor, the embodiment of the present invention can use the method of generating SVG topology maps simultaneously on the web and PC sides to improve the efficiency of topology map generation and reduce the pressure on the web side. The web side sends an encrypted request to the paired PC side through the background, activates the underlying download permissions of the PC side system, calls the download permissions of the PC side system to establish multiple download threads, which can be applied to different complex scenarios. At the same time, the topology map of the PC side adopts a concurrent download method, which can complete the generation operations of multiple SVG topology maps at the same time, thereby improving efficiency.

[0097] Among them, when multiple download threads are established by calling the download authority of the PC system, it is necessary to obtain the status symbol of the changed area ledger data. When the status symbol is 0, the corresponding changed area ledger data is moved to the end of the SVG topology map generation cache queue.

[0098] By actively judging the status symbol of the changed area ledger data when concurrently downloading the ledger changed area, when the status parameter is 1, it is judged that the status of the corresponding pending ledger changed area is still being updated or edited by the user. At this time, the corresponding changed area ledger data is moved to the end of the SVG topology map generation cache queue, and the ledgers that have been updated and edited with a status symbol of 1 are generated first. This can improve the efficiency of SVG topology map updates and ensure the immediacy of the updated SVG topology map.

[0099] It should be noted that when the download starts, a download interval is started, which periodically (for example, every 500 milliseconds or so) checks the server for the download status. On the server side, the download should be identified to the user at the start and the status should be returned to the client when asked.

[0100] 3024. If it is determined that the SVG topology map generation queue is healthy, the browser's download permission is called to execute data download of the abnormal area ledger data in the SVG topology map generation cache queue.

[0101] It should be noted that if the SVG topology map generation queue is healthy, it means that the browser can meet the download requirements of the abnormal area ledger data in the SVG topology map generation cache queue without calling the download permission of the PC system.

[0102] The above is a detailed description of an embodiment of a method for generating an SVG topology map based on a distribution network topology model provided by the present invention. The following is a detailed description of an embodiment of a system for generating an SVG topology map based on a distribution network topology model provided by the present invention.

[0103] For easier understanding, see Figure 2 The present invention provides a system for generating an SVG topology map based on a distribution network topology model, comprising:

[0104] The change response module 100 is used to respond to the change request of the area ledger and mark the changed area ledger data in the area ledger;

[0105] The data verification module 200 is used to perform data integrity verification on the changed area ledger data, and obtain the changed area ledger data that passes the data integrity verification;

[0106] The trigger module 300 is used to download the changed area ledger data according to a preset trigger period;

[0107] The topology map generating module 400 is used to generate a corresponding changed area SVG topology map based on the changed area ledger data that has passed the data integrity check.

[0108] In a specific embodiment, the system further includes:

[0109] The status symbol setting module is used to set a status symbol for each area ledger data in the area ledger, and the initial state of the status symbol is 0;

[0110] The status symbol jump module is used to jump the status symbol to 1 when abnormal data appears in the area ledger data.

[0111] In a specific embodiment, the data verification module specifically includes:

[0112] The station number verification module is used to determine whether the station number in the changed station ledger data is unique. If the station number in the changed station ledger data is unique, the node verification module process is executed. If the station number in the changed station ledger data is not unique, the alarm window is called to issue an alarm.

[0113] The node inspection module is used to determine whether the node data and switch data in the changed area ledger data are in a one-to-one matching relationship. If it is determined that the node data and switch data in the changed area ledger data are in a one-to-one matching relationship, the parent-child layer inspection module process is executed. If it is determined that the node data and switch data in the changed area ledger data are not in a one-to-one matching relationship, the alarm window is called to issue an alarm;

[0114] The parent-child layer inspection module is used to determine whether there is a parent-child relationship between the switches in the altered area ledger data. If it is determined that there is a parent-child relationship between the switches in the altered area ledger data, the process of the terminal node inspection module is executed. If it is determined that there is no parent-child relationship between the switches in the altered area ledger data, the alarm window is called to issue an alarm.

[0115] The end node verification module is used to obtain the end nodes in each level of the abnormal area ledger data and determine whether the end node number is unique. If the end node number is determined to be unique, the abnormal area ledger data is determined to be abnormal area ledger data that has passed the data integrity check. If the end node number is determined to be not unique, the alarm window is called to issue an alarm.

[0116] In a specific embodiment, the trigger module specifically includes:

[0117] The cache module is used to obtain multiple abnormal area ledger data within a complete preset trigger cycle, transmit the multiple abnormal area ledger data to the SVG topology map generation cache queue in a time sequence, and refresh the SVG topology map generation cache queue in real time;

[0118] The queue health judgment module is used to judge whether the SVG topology map generation queue is healthy based on the number of abnormal area ledger data in the SVG topology map generation cache queue, the preset download rate of the SVG topology map, and the current preset cache time of the browser;

[0119] The first download module is used to call the download authority of the PC system to establish multiple download threads if it is determined that the SVG topology map generation queue is unhealthy, so as to execute data concurrently downloading the abnormal area ledger data in the SVG topology map generation cache queue;

[0120] The second download module is used to call the browser's download authority to execute data download of the abnormal area ledger data in the SVG topology map generation cache queue if it is determined that the SVG topology map generation queue is healthy.

[0121] In a specific embodiment, the queue health judgment module specifically includes:

[0122] A download time calculation module is used to determine the download completion time of the SVG topology map generation cache queue based on the number of abnormal area ledger data in the SVG topology map generation cache queue and the preset download rate of the SVG topology map;

[0123] The health assessment module is used to compare the download completion time of the SVG topology map generation cache queue with the current preset cache time of the browser. If the download completion time of the SVG topology map generation cache queue is greater than the current preset cache time of the browser, the SVG topology map generation queue is judged to be unhealthy; if the download completion time of the SVG topology map generation cache queue is not greater than the current preset cache time of the browser, the SVG topology map generation queue is judged to be healthy.

[0124] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working process of the system described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0125] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interface, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0126] Units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0127] In addition, the functional units in the various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0128] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims

1. A method for generating an SVG topology map based on a distribution network topology model, characterized in that: The following steps are involved: Responding to a request for change in a zone ledger, marking the changed zone ledger data in the zone ledger; Perform data integrity check on the changed area ledger data, obtain the changed area ledger data that passes the data integrity check, and proceed to the next step; Downloading the abnormal area ledger data according to the preset trigger cycle includes: Acquire multiple abnormal area ledger data within a complete preset trigger cycle, transmit the multiple abnormal area ledger data to the SVG topology map generation cache queue in a time sequence, and refresh the SVG topology map generation cache queue in real time; Determine the download completion time of the SVG topology map generation cache queue according to the number of abnormal area ledger data in the SVG topology map generation cache queue and the preset download rate of the SVG topology map; Comparing the download completion time of the SVG topology map generation cache queue with the current preset cache time of the browser, if the download completion time of the SVG topology map generation cache queue is greater than the current preset cache time of the browser, determining that the SVG topology map generation queue is unhealthy; if the download completion time of the SVG topology map generation cache queue is not greater than the current preset cache time of the browser, determining that the SVG topology map generation queue is healthy; If it is determined that the SVG topology map generation queue is unhealthy, the download permission of the PC system is called to establish multiple download threads, so as to execute data concurrently downloading the abnormal area ledger data in the SVG topology map generation cache queue; If the SVG topology map generation queue is judged to be healthy, the browser's download permission is called to execute data download of the abnormal area ledger data in the SVG topology map generation cache queue; Generate the corresponding changed area SVG topology map based on the changed area ledger data that has passed the data integrity check.

2. The method for generating an SVG topology map based on a distribution network topology model according to claim 1, characterized in that: Also includes: Setting a status symbol for each area account data in the area account, wherein the initial state of the status symbol is 0; When abnormal data appears in the area ledger data, the status symbol jumps to a value of 1.

3. The method for generating an SVG topology map based on a distribution network topology model according to claim 1, characterized in that: The steps for performing data integrity check on the changed area ledger data and obtaining the changed area ledger data that passes the data integrity check include: Determine whether the station area number in the changed station area ledger data is unique. If it is determined that the station area number in the changed station area ledger data is unique, execute the next step. If it is determined that the station area number in the changed station area ledger data is not unique, call an alarm window to issue an alarm. Determine whether the node data and the switch data in the changed area ledger data are in a one-to-one matching relationship. If it is determined that the node data and the switch data in the changed area ledger data are in a one-to-one matching relationship, execute the next step. If it is determined that the node data and the switch data in the changed area ledger data are not in a one-to-one matching relationship, call the alarm window to issue an alarm. Determine whether there is a parent-child relationship between switches in the changed area ledger data; if it is determined that there is a parent-child relationship between switches in the changed area ledger data, execute the next step; if it is determined that there is no parent-child relationship between switches in the changed area ledger data, call an alarm window to issue an alarm; Obtain the end nodes in each level of the changed substation ledger data, and determine whether the number of the end node is unique. If it is determined that the number of the end node is unique, the changed substation ledger data is determined to be the changed substation ledger data that has passed the data integrity check. If it is determined that the number of the end node is not unique, call the alarm window to issue an alarm.

4. A system for generating an SVG topology map based on a distribution network topology model, characterized in that: include: The change response module is used to respond to the change request of the area ledger and mark the change of the area ledger data in the area ledger; The data verification module is used to perform data integrity verification on the changed area ledger data and obtain the changed area ledger data that passes the data integrity verification; A trigger module, configured to download the changed area ledger data according to a preset trigger period; The trigger module specifically includes: The cache module is used to obtain multiple abnormal area ledger data within a complete preset trigger cycle, transmit the multiple abnormal area ledger data to the SVG topology map generation cache queue in a time sequence, and refresh the SVG topology map generation cache queue in real time; A download time calculation module is used to determine the download completion time of the SVG topology map generation cache queue based on the number of abnormal area ledger data in the SVG topology map generation cache queue and the preset download rate of the SVG topology map; A health assessment module is configured to compare the download completion time of the SVG topology map generation cache queue with the current preset cache time of the browser. If the download completion time of the SVG topology map generation cache queue is greater than the current preset cache time of the browser, the SVG topology map generation queue is determined to be unhealthy. If the download completion time of the SVG topology map generation cache queue is not greater than the current preset cache time of the browser, the SVG topology map generation queue is determined to be healthy. The first download module is used to call the download authority of the PC system to establish multiple download threads if it is determined that the SVG topology map generation queue is unhealthy, so as to execute data concurrently downloading the abnormal area ledger data in the SVG topology map generation cache queue; The second download module is used to call the browser's download authority to execute data download of the abnormal area ledger data in the SVG topology map generation cache queue if it is determined that the SVG topology map generation queue is healthy; The topology map generation module is used to generate the corresponding changed area SVG topology map based on the changed area ledger data that has passed the data integrity check.

5. The system for generating an SVG topology map based on a distribution network topology model according to claim 4, characterized in that: Also includes: A status symbol setting module is used to set a status symbol for each area ledger data in the area ledger, and the initial state of the status symbol is 0; The status symbol jump module is used to jump the status symbol to a value of 1 when abnormal data appears in the area ledger data.

6. The system for generating an SVG topology map based on a distribution network topology model according to claim 4, characterized in that: The data verification module specifically includes: The station number verification module is used to determine whether the station number in the changed station account data is unique. If it is determined that the station number in the changed station account data is unique, the node verification module process is executed. If it is determined that the station number in the changed station account data is not unique, the alarm window is called to issue an alarm. A node inspection module is used to determine whether the node data and the switch data in the changed area ledger data are in a one-to-one matching relationship. If it is determined that the node data and the switch data in the changed area ledger data are in a one-to-one matching relationship, the process of the parent-child layer inspection module is executed. If it is determined that the node data and the switch data in the changed area ledger data are not in a one-to-one matching relationship, the alarm window is called to issue an alarm; The parent-child layer verification module is used to determine whether there is a parent-child relationship between the switches in the adjacent layers in the changed area ledger data. If it is determined that there is a parent-child relationship between the switches in the changed area ledger data, the process of the terminal node verification module is executed. If it is determined that there is no parent-child relationship between the switches in the changed area ledger data, the alarm window is called to issue an alarm. The end node verification module is used to obtain the end nodes in each level of the abnormal substation ledger data, and determine whether the number of the end node is unique. If it is determined that the number of the end node is unique, the abnormal substation ledger data is determined to be abnormal substation ledger data that has passed the data integrity check. If it is determined that the number of the end node is not unique, the alarm window is called to issue an alarm.

Citation Information

Patent Citations

  • Power distribution network operation monitoring method based on scalable vector graphics

    CN104951996A

  • Visualized detection method for online abnormal movements of power distribution automation graph and model

    CN105913334A