Disclosure of Invention
The invention aims to provide a self-distribution method of a topology file of a power distribution network protection and control system based on 5G, and the self-distribution method of the topology file can be used for solving the technical problem of rapidly realizing the self-distribution of the topology file adaptive to a topology structure.
In order to achieve the purpose, the invention adopts the following technical scheme:
a self-distribution method of topology files of a power distribution network protection and control system based on 5G comprises the steps that in the power distribution network protection and control system, each device is configured and communicated through built-in topology files to form a system network;
selecting any equipment in a system network, taking the equipment as an initial distribution device, automatically diffusing and distributing topology files, and performing self-distribution and updating on the topology files;
after receiving the topology files, all devices in the system network automatically backup the previous topology files;
all devices in the system network enter a waiting state after receiving the topology file, and are uniformly verified after all the devices enter the waiting state;
after the verification is finished, all the devices in the system network enter a state of waiting for updating, and after the verification of all the devices is passed, the topology files are uniformly updated;
before all the devices in the system network are checked, all the devices are not stopped and are continuously in a normal working state, and after the updating is finished, all the devices are immediately put into a new system network to operate.
Preferably, the topology file is a unique descriptive file describing a system topology diagram and a connection mode, and the topology structure of the power distribution network protection and control system is changed by changing the topology file of each device.
Preferably, after the updating process fails or the updating is successful, the dispensing device is started to pop up to display the related reminding information.
Preferably, when the self-distribution topology file is updated, it is determined that the communication is normal, the topology file of a certain device is updated, and the device is used as an initial point to distribute the topology file to the devices connected to the device according to the current system network.
Preferably, when an application error occurs in the system network formed according to the new topology file, the power distribution network protection and control system automatically backs to the previous normal system network according to the previous topology file backed up by each device.
Preferably, when some equipment does not enter the waiting state within a preset time, it indicates that the topology distribution task is abnormal, and some devices cannot normally send or receive the topology file, and at this time, the error information is returned to the initial distribution device, and the initial distribution device pops the window to prompt and quits the topology updating process.
Preferably, after all the devices receive the topology file, the devices exit from the waiting state and perform file verification;
any one device sends a new topology file identification code to all devices adjacent to the device, receives verification information sent by all adjacent devices and conducts verification; when all the checks pass, the equipment enters a state of waiting for updating;
after all the devices pass the verification and enter a waiting updating state, all the devices synchronously start updating the topology files;
after the updating is finished, all the equipment sends updating success information to the initial distribution device, and after the initial distribution device receives the updating success information of all the equipment, the topological information of the pop-up window display system is updated successfully;
preferably, when no equipment sends the update success information or receives the update failure information within a preset time, the equipment sends the update error information to the initial distribution device, the initial distribution device pops up the window to prompt and quit the topology update process, and the power distribution network protection and control system automatically returns to the previous normal system network according to the previous topology file backed up by each equipment.
Preferably, the system network communicates via a 5G network.
The invention relates to a topology file self-distribution method of a 5G-based power distribution network protection and control system, which solves the technical problem of quickly realizing the self-distribution of topology files adaptive to a topology structure, reduces the power failure time, shortens the construction period, saves the maintenance cost, and shortens the time for updating the topology structure of the power distribution network protection and control system by the self-distribution mode of the topology files, and the automatic distribution mode of 5G communication greatly saves the labor cost and the time cost when the files are updated; the mechanism of file check and file backup adopted by the invention greatly ensures the reliability of the system when the file is updated.
Detailed Description
The self-distribution method of the topology files of the power distribution network protection and control system based on 5G shown in the figures 1-2 comprises the steps that in the power distribution network protection and control system, each device is configured and communicated through the built-in topology files to form a system network;
selecting any equipment in a system network, taking the equipment as an initial distribution device, automatically diffusing and distributing topology files, and performing self-distribution and updating on the topology files;
after receiving the topology files, all devices in the system network automatically backup the previous topology files;
all devices in the system network enter a waiting state after receiving the topology file, and are uniformly verified after all the devices enter the waiting state;
after the verification is finished, all the devices in the system network enter a state of waiting for updating, and after the verification of all the devices is passed, the topology files are uniformly updated;
before all the devices in the system network are checked, all the devices are not stopped and are continuously in a normal working state, and after the updating is finished, all the devices are immediately put into a new system network to operate.
The invention does not need to select a host for issuing or manually issuing, can deal with different topological structures in a self-issuing mode, automatically returns after file distribution or updating fails, and has extremely short necessary updating downtime and convenient and visual updating reports.
The topology file distribution method does not need to select a host to command file distribution of the whole set of system or a technician to manually update topology files of all devices in the system, but selects any device in a system network as a starting position to distribute, and any equipment is not allowed to repeatedly receive the topology files; after receiving the topology file, the device quits the function of receiving the topology file within a specified short time, and prevents the mutual conduction of peer devices in the annular communication link from causing local dead circulation of the distribution of the topology file.
Preferably, the topology file is a unique descriptive file describing a system topology diagram and a connection mode, and the topology structure of the power distribution network protection and control system is changed by changing the topology file of each device.
Preferably, after the updating process fails or the updating is successful, the dispensing device is started to pop up to display the related reminding information.
Preferably, when the self-distribution topology file is updated, it is determined that the communication is normal, the topology file of a certain device is updated, and the device is used as an initial point to distribute the topology file to the devices connected to the device according to the current system network.
Preferably, when an application error occurs in a system network formed according to the new topology file, the power distribution network protection and control system automatically backs to a previous normal system network according to a previous topology file backed up by each device, so that damage to a system topology structure after update failure is avoided.
Preferably, when some equipment does not enter the waiting state within a preset time, it indicates that the topology distribution task is abnormal, and some devices cannot normally send or receive the topology file, and at this time, the error information is returned to the initial distribution device, and the initial distribution device pops the window to prompt and quits the topology updating process.
Preferably, after all the devices receive the topology file, the devices exit from the waiting state and perform file verification;
any one device sends a new topology file identification code to all devices adjacent to the device, receives verification information sent by all adjacent devices and conducts verification; when all the checks pass, the equipment enters a state of waiting for updating;
after all the devices pass the verification and enter a waiting updating state, all the devices synchronously start updating the topology files;
after the updating is finished, all the equipment sends updating success information to the initial distribution device, and after the initial distribution device receives the updating success information of all the equipment, the topological information of the pop-up window display system is updated successfully;
preferably, when no equipment sends the update success information or receives the update failure information within a preset time, the equipment sends the update error information to the initial distribution device, the initial distribution device pops up the window to prompt and quit the topology update process, and the power distribution network protection and control system automatically returns to the previous normal system network according to the previous topology file backed up by each equipment.
Preferably, the system network communicates via a 5G network.
The equipment of the invention does not start updating immediately after receiving the topology file, but enters a waiting state to wait for all devices to receive the topology file, thereby preventing system errors caused by two topology structures in the network.
Fig. 2 shows a specific application flow in this embodiment, which specifically includes the following steps:
step 1: in the power distribution network protection and control system, all equipment is configured and communicated through a built-in system topology file to form a network, and the topology file is a unique descriptive file for describing a system topology graph and a connection mode, so that only the topology file of each equipment needs to be changed when the topology structure of the system is changed;
step 2: the topological structure of the system is changed, one device does not need to be appointed to serve as a host for issuing or all devices do not need to be updated respectively, and each device can serve as an issuing point for self-distribution topological update;
as shown in fig. 1, it is assumed that a node C is an initiation point of topology file distribution, i.e., an initiation distribution apparatus;
and step 3: when the communication is normal, the topology file of a certain device is updated, and the topology file is distributed to the devices connected to the topology file according to the current topology network, in this embodiment, the self-distribution circuit of the topology file is:
C→B→A;
C→D→F→H→J→K;
C→D→E→G→I;
and 4, step 4: either device is not allowed to repeatedly receive topology files. After receiving the topology file, the device quits the function of receiving the topology file within a designated short time, and local dead circulation of distribution of the topology file caused by mutual conduction of devices on the same level in the ring communication link is prevented.
And 5: after each device receives the topology files, the previous topology files are automatically backed up, and when the application of a new topology network is wrong, the power distribution network protection and control system automatically returns to the previous normal network, so that the system topology network is prevented from being broken down.
Step 6: the equipment does not start updating immediately after receiving the topology files, but enters a waiting state to wait for all the devices to receive the topology files, so that system errors caused by two topology structures in the network are prevented.
And 7: if the device does not enter the waiting state in the appointed time, the topology distribution task is abnormal, and the device cannot normally send or receive the topology file, the error information is returned to the device initiating the distribution of the topology file, and the pop-up window prompts and exits the topology updating process.
And 8: and after all the devices receive the topology file, the devices exit from the waiting state to check the file. Each device sends new topology file identification codes to all adjacent devices of the device, and receives verification information sent by all adjacent devices. And when all the verification of the device passes, the device enters a state of waiting for updating.
And step 9: if the device does not enter a waiting updating state or the verification fails within the appointed time, returning error information to the equipment initiating the distribution of the topology file, and prompting and exiting the topology updating process through a popup window.
Step 10: and after all the devices pass the verification and enter the updating waiting state, all the devices synchronously start updating the topology file. After the short-time restart is finished, the topology file of the power distribution network protection and control system is updated, all the devices send topology file updating success information to the device initiating topology file distribution, and the device displays that the topology information of the system is updated successfully through popup windows after receiving all the device updating success marks.
Step 11: if the device does not send the successful updating information or receives the failure updating information within the appointed time, the error information is returned to the equipment initiating the distribution of the topology file, and the topology updating process is prompted and quitted by a popup window and is restored to the backup topology network.
The invention relates to a topology file self-distribution method of a 5G-based power distribution network protection and control system, which solves the technical problem of quickly realizing the self-distribution of topology files adaptive to a topology structure, reduces the power failure time, shortens the construction period, saves the maintenance cost, and shortens the time for updating the topology structure of the power distribution network protection and control system by the self-distribution mode of the topology files, and the automatic distribution mode of 5G communication greatly saves the labor cost and the time cost when the files are updated; the mechanism of file check and file backup adopted by the invention greatly ensures the reliability of the system when the file is updated.
In the present invention, any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. A more specific, non-exhaustive list of examples of the computer-readable medium would include the following: an electronic device having one or more electrical connections for wiring, a portable computer diskette drive, a random access memory RAM, a read-only memory ROM, an erasable programmable read-only memory EPROM or flash memory, an optical fiber device, and a portable compact disc read-only memory CDROM. Further, the computer readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, any one or combination of the following techniques, as are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a programmable gate array PGA, a field programmable gate array FPGA, or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
Although embodiments of the present invention have been shown and described above, it should be understood that the above embodiments are illustrative and not restrictive, and that various changes, modifications, substitutions and alterations can be made herein by those having ordinary skill in the art without departing from the scope of the present invention.