Test system of power monitoring system

By designing a test system including a management platform, DHCP server, simulation measurement and control device and monitoring host to be tested, the problem of low testing efficiency of the monitoring system is solved, and an automated testing process is realized, and testing efficiency and reliability are improved.

CN119892653APending Publication Date: 2025-04-25CYG SUNRI CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In the prior art, the testing efficiency of the monitoring system is low, relies on manual operation, it takes a long time and is prone to errors, and fails to effectively solve the problem of low testing efficiency.

Method used

A test system for power monitoring system is designed, including a management platform, a DHCP server, a simulation measurement and control device and multiple monitoring hosts to be tested. The IP address is allocated through the DHCP server, the management platform sends the monitoring program to be tested, the monitoring host to be tested executes test instructions and generates feedback information, and the management platform records and generates test reports.

Benefits of technology

The automated monitoring system testing process is realized, which reduces manual operations, saves time, improves the efficiency and reliability of testing environment construction, and solves the problem of low testing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119892653A_ABST
    Figure CN119892653A_ABST
Patent Text Reader

Abstract

The invention relates to a test system of an electric power monitoring system. The test system comprises a management platform, a DHCP server, a simulation measurement and control device and a plurality of monitoring hosts to be tested, the DHCP server is used for distributing IP addresses for the monitoring hosts to be tested; the management platform is used for sending a to-be-tested monitoring program to the to-be-tested monitoring host according to an IP address allocated to the to-be-tested monitoring host by the DHCP server; the to-be-tested monitoring host is used for sending a test instruction to the simulation measurement and control device according to the to-be-tested monitoring program; the simulation measurement and control device is used for generating feedback information corresponding to the test instruction according to the test instruction and sending the feedback information to the monitoring host to be tested; and the to-be-tested monitoring host is also used for determining an execution result of the test instruction according to the feedback information and sending the execution result to the management platform. Through the monitoring system testing method and device, the problem that the testing efficiency of the monitoring system is low in the prior art is solved, and the technical effect of improving the testing efficiency of the monitoring system is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of substation automation, and in particular, relates to a test system for a power monitoring system. Background Art

[0002] Whether the monitoring host can correctly monitor the substation is the premise of safe and stable operation of the power grid. Its function of monitoring the substation is realized by the monitoring system carried by the monitoring host. The monitoring system is a system that can realize power dispatching data collection and monitoring. The monitoring system can provide accurate and detailed information on the operating status of the substation, thereby improving the reliability and safety of the power grid operation.

[0003] However, in the related art, the construction of the test environment of the monitoring system carried by the monitoring host often relies on manual operations, including manual installation of the program to be tested, manual configuration of the environment, manual execution of the test, etc. The efficiency of testing the monitoring system in this way is low, and the construction of the test environment will consume a lot of time and be prone to errors.

[0004] Currently, no effective solution has been proposed for the problem of low testing efficiency of monitoring systems in related technologies. Summary of the invention

[0005] The embodiment of the present application provides a testing system for an electric power monitoring system, so as to at least solve the problem of low testing efficiency of the monitoring system in the related art.

[0006] In the first aspect, an embodiment of the present application provides a test system for an electric power monitoring system, comprising: a management platform, a DHCP server, a simulation measurement and control device, and multiple monitoring hosts to be tested, wherein the monitoring host to be tested is a monitoring host in an actual substation operating environment, and the simulation measurement and control device is a measurement and control device that simulates running in the actual substation operating environment; the DHCP server is used to allocate an IP address to each of the monitoring hosts to be tested; the management platform is used to send a monitoring program to be tested to the monitoring host to be tested according to the IP address allocated by the DHCP server to the monitoring host to be tested; the monitoring host to be tested is used to send a test instruction to the simulation measurement and control device according to the monitoring program to be tested; the simulation measurement and control device is used to generate feedback information corresponding to the test instruction according to the test instruction, and send the feedback information to the monitoring host to be tested; the monitoring host to be tested is also used to determine the execution result of the test instruction according to the feedback information, and send the execution result to the management platform.

[0007] In some embodiments, the test instructions include remote control instructions, telesignaling instructions and telemetry instructions; the simulation measurement and control device is also used to generate state quantity information corresponding to the remote control instructions according to the remote control instructions, and send the state quantity information as the feedback information to the monitoring host to be tested; the simulation measurement and control device is also used to generate a state signal corresponding to the telesignaling instruction according to the telesignaling instruction, and send the state signal as the feedback information to the monitoring host to be tested; the simulation measurement and control device is also used to generate analog quantity information corresponding to the telemetry instruction according to the telemetry instruction, and send the analog quantity information as the feedback information to the monitoring host to be tested.

[0008] In some embodiments, the management platform is also used to send a deployment script to the monitoring host to be tested according to the IP address assigned by the DHCP server to the monitoring host to be tested; the monitoring host to be tested is also used to generate a host name corresponding to the monitoring host to be tested according to a preset host name generation rule in response to the IP address assigned by the DHCP server; the deployment script is used to import the IP address and the host name corresponding to the monitoring host to be tested into a preset first configuration database to generate a second configuration database corresponding to the monitoring host to be tested; wherein, the second configuration database is used to provide a configuration file for the monitoring host to be tested when the monitoring host to be tested runs the monitoring program to be tested.

[0009] In some embodiments, the management platform is also used to perform hash operations on the monitoring program to be tested, the deployment script and the first configuration database to generate a first MD5 verification code, and package the monitoring program to be tested, the deployment script, the first configuration database and the first MD5 verification code into a compressed package file and send it to the monitoring host to be tested; the monitoring host to be tested is also used to decompress the compressed package file, generate a second MD5 verification code according to the decompressed files, and compare the second MD5 verification code with the first MD5 verification code, and send the comparison result to the management platform; the management platform is also used to send a deployment instruction to the monitoring host to be tested if the comparison result is that the verification codes are consistent; and generate an error message if the comparison result is that the verification codes are inconsistent; wherein, the deployment instruction is used to instruct the deployment script to deploy the monitoring program to be tested on the monitoring host to be tested.

[0010] In some embodiments, the deployment script is also used to detect the deployment status of the monitoring program to be tested after the monitoring program to be tested is deployed on the monitoring host to be tested, generate a deployment detection result, and send the deployment detection result to the management platform; the management platform is also used to send an execution instruction to the host to be monitored when the deployment detection result is a successful deployment; wherein the execution instruction is used to instruct the host to be monitored to execute the monitoring program to be tested and generate the test instruction.

[0011] In some embodiments, the management platform includes a communication unit, and the communication unit is used to send the compressed package file to the monitoring host to be tested based on the SFTP protocol; and send the execution instruction to the monitoring host to be tested based on the SSH protocol.

[0012] In some embodiments, the monitoring host to be tested establishes a communication connection with the simulation measurement and control device based on the IEC61850 communication standard; wherein the communication instance number used in the communication connection between the monitoring host to be tested and the simulation measurement and control device is the last digit of the IP address assigned by the DHCP server to the monitoring host to be tested.

[0013] In some embodiments, the communication instance number has a value range of 1 to 18, and the communication instance number corresponding to each of the monitored hosts to be tested is different.

[0014] In some embodiments, the DHCP server and the simulation measurement and control device are both arranged on the management platform.

[0015] In some embodiments, the management platform is further used to generate a test report according to the execution results sent by each of the monitored hosts to be tested.

[0016] Compared with the related art, the test system of the electric power monitoring system provided in the embodiment of the present application allocates an IP address to each monitoring host to be tested through a DHCP server. Subsequently, the management platform can send the monitoring program to be tested to the monitoring host to be tested according to the IP address allocated by the DHCP server; after the monitoring host to be tested receives and executes the monitoring program to be tested, it can send a test instruction to the simulation measurement and control device; the simulation measurement and control device responds to the test instruction sent by the monitoring host to be tested, generates feedback information corresponding to the test instruction, and sends the feedback information to the monitoring host to be tested; the monitoring host to be tested can determine the execution result of the test instruction based on the feedback information, and send the execution result to the management platform. In this way, the monitoring system is tested, and there is no need for the operation and maintenance personnel to manually install the monitoring program, manually configure the environment, and manually perform the test for the monitoring host, thereby saving a lot of time and improving the efficiency and reliability of the test environment. Through this application, the problem of low testing efficiency of the monitoring system in the related art is solved, and the technical effect of improving the testing efficiency of the monitoring system is achieved.

[0017] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0019] Figure 1 is a structural schematic diagram of a test system of a power monitoring system according to an embodiment of the present application;

[0020] Figure 2 is a transmission flow chart of a monitoring program to be tested according to an embodiment of the present application;

[0021] Figure 3 is a deployment flow chart of a monitoring program to be tested according to an embodiment of the present application;

[0022] Figure 4 It is a test flow chart of a test system of a power monitoring system according to an embodiment of the present application.

[0023] Among them, the reference numerals in the figures are:

[0024] 100- management platform; 101- DHCP server; 102- simulation measurement and control device; 110- monitoring host to be tested; 120- switch. DETAILED DESCRIPTION

[0025] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0026] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0027] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0028] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0029] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0030] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0031] Whether the monitoring host can correctly monitor the substation is the premise for the safe and stable operation of the power grid. The function of monitoring the substation is realized by the monitoring system (also called the power monitoring system) carried by the monitoring host. The monitoring system is a system that can realize the data collection and monitoring of power dispatching. The monitoring system can provide accurate and detailed information on the operating status of the substation, thereby improving the reliability and safety of the power grid operation.

[0032] However, the deployment and testing of traditional monitoring systems usually requires manual configuration of IP (Internet Protocol) addresses, setting of network parameters, and loading of test environments. This method is time-consuming and has the risk of configuration errors. In addition, the construction and switching of the test environment are complicated, which affects the efficiency of system development and maintenance. How to achieve rapid and automated deployment of monitoring systems to improve the deployment speed and test accuracy of the test environment has become an urgent problem to be solved.

[0033] In addition, in the related art, the construction of the test environment of the monitoring system carried by the monitoring host often relies on manual operations, including manual installation of the tested program, manual configuration of the environment, manual execution of the test, and manual filling of the test report, etc. The efficiency of testing the monitoring system in this way is low, and the construction of the test environment will take a lot of time and is prone to errors. It is difficult to meet the needs of rapid iteration and upgrading of modern power systems and cannot adapt to the development needs of modern power systems.

[0034] Currently, no effective solution has been proposed for the problem of low testing efficiency of monitoring systems in related technologies.

[0035] In view of this, the test system of the power monitoring system provided in the embodiment of the present application allocates an IP address to each monitoring host to be tested through a DHCP (Dynamic Host Configuration Protocol) server, and then the management platform can send the monitoring program to be tested to the monitoring host to be tested according to the IP address assigned by the DHCP server; after the monitoring host to be tested receives and executes the monitoring program to be tested, it can send a test instruction to the simulation measurement and control device; the simulation measurement and control device responds to the test instruction sent by the monitoring host to be tested, generates feedback information corresponding to the test instruction, and sends the feedback information to the monitoring host to be tested; the monitoring host to be tested can determine the execution result of the test instruction based on the feedback information, and send the execution result to the management platform. In this way, the monitoring system is tested, and there is no need for the operation and maintenance personnel to manually install the monitoring program, manually configure the environment, and manually perform the test for the monitoring host, thereby saving a lot of time and improving the efficiency and reliability of the test environment. Through this application, the problem of low testing efficiency of the monitoring system in the related art is solved, and the technical effect of improving the testing efficiency of the monitoring system is achieved.

[0036] The test system of the power monitoring system provided in the embodiment of the present application can be applied to an actual substation, and the actual substation can be a "three-layer two-network" structure. The "three layers" refer to the station control layer, the interval layer and the process layer, and the "two networks" refer to the station control layer network and the process layer network. The station control layer network and the process layer network are physically independent of each other. Among them, the station control layer equipment includes a monitoring host, a telecontrol workstation, an operator workstation, a timing system, etc., to realize the monitoring, control, alarm and information interaction functions for the entire station equipment, and the interval layer equipment includes a protection device, a measurement and control device and other intelligent devices (such as a fault recorder, etc.). The function of the interval layer equipment is to collect the signal of the primary equipment of this interval and produce protection, control and monitoring effects on the primary equipment, and send the relevant information (such as current value, voltage value, switch position information, etc.) to the station control layer equipment. In addition, the interval layer equipment is also used to receive the control instructions of the station control layer equipment and perform corresponding operations. The process layer equipment includes intelligent terminals and merging units for collecting primary equipment such as transformers, circuit breakers, disconnectors, and electronic transformers. The intelligent terminal and the merging unit convert the AC sampling signal and the DC input and output signal into digital signals on the spot. The three-layer devices exchange data and share information through network communication. The network between the bay layer devices and the station control layer devices is called the station control layer network, and the network between the process layer devices and the bay layer devices is called the process layer network. The station control layer network realizes data transmission within the station control layer and between the station control layer and the bay layer; the process layer network realizes data transmission within the process layer and between the bay layer and the process layer.

[0037] The monitoring host can communicate with the measurement and control device through the station control layer network to monitor the operating status of the substation. Among them, the four remote communications refer to telemetry, telesignaling, remote control and remote adjustment. Telemetry is the electrical quantity (such as voltage value, current value, power, frequency, temperature, etc.) at a node (measurement point) in the substation equipment collected by the measurement and control device and reported to the monitoring host. For example, the measurement and control device collects and reports the voltage value at the XX winding of the XX transformer in the XX interval of the XX substation to the monitoring host; telesignaling is the switch position signal, knife switch position signal, primary equipment alarm signal, protection trip signal, etc. at a certain measurement point in the substation equipment collected by the measurement and control device and reported to the monitoring host. For example, the measurement and control device collects and reports the position signal of the XX isolating switch in the XX interval of the XX substation to the monitoring host. Remote control is remote control, for example, the monitoring host sends a command to close or disconnect a switch or knife switch to the measurement and control device. Remote adjustment is remote adjustment, for example, the monitoring host issues a transformer tap adjustment command to the measurement and control device.

[0038] The following will be combined Figure 1 For an explanation of the test system of the power monitoring system provided by one embodiment of the present application, see Figure 1 , Figure 1 is a schematic diagram of the structure of a test system of a power monitoring system according to an embodiment of the present application. Figure 1 As shown, the test system of the power monitoring system includes: a management platform 100, a DHCP server 101, a simulation measurement and control device 102 and multiple monitoring hosts 110 to be tested, wherein the monitoring host 110 to be tested is a monitoring host in an actual substation operating environment, and the simulation measurement and control device 102 is a measurement and control device that simulates running in an actual substation operating environment; the DHCP server 101 is used to allocate an IP address to each monitoring host 110 to be tested; the management platform 100 is used to send a monitoring program to be tested to the monitoring host 110 to be tested according to the IP address allocated by the DHCP server 101 to the monitoring host 110 to be tested; the monitoring host 110 to be tested is used to send a test instruction to the simulation measurement and control device 102 according to the monitoring program to be tested; the simulation measurement and control device 102 is used to generate feedback information corresponding to the test instruction according to the test instruction, and send the feedback information to the monitoring host 110 to be tested; the monitoring host 110 to be tested is also used to determine the execution result of the test instruction according to the feedback information, and send the execution result to the management platform 100.

[0039] The test system of the electric power monitoring system provided in the embodiment of the present application can be used to test the monitoring host 110 to be tested in the actual substation operating environment. The management platform 100 can exchange data with each monitoring host 110 to be tested through the switch 120, allocate an IP address to each monitoring host 110 to be tested through the DHCP server 101, and deploy the monitoring program to be tested (that is, the monitoring system to be tested) in the monitoring host 110 to be tested based on the IP address allocated by the DHCP server 101 to the monitoring host 110 to be tested. Subsequently, the monitoring host 110 to be tested can execute the monitoring program to be tested and test the simulation measurement and control device 102 (remote control test, remote signal test, telemetry test, etc.). The monitoring host 110 to be tested can also determine the test result (that is, the execution result of the test instruction) based on the feedback information generated by the simulation measurement and control device 102. The management platform 100 is used to generate a test report according to the execution results sent by each monitoring host 110 to be tested.

[0040] In this embodiment, the management platform 100, the DHCP server 101, the simulation measurement and control device 102 and the multiple monitoring hosts 110 to be tested can all be deployed in the server; or, the DHCP server 101 and the simulation measurement and control device 102 can all be set on the management platform 100, while the management platform 100 and the multiple monitoring hosts 110 to be tested are respectively deployed in different servers.

[0041] As an example, the management platform 100 can be equipped with a DHCP server 101 and a simulation measurement and control device 102, and be responsible for data recording, comparison analysis, and the output of test reports to ensure the communication accuracy and data consistency of the test system in functional testing. Among them, the simulation measurement and control device 102 is a measurement and control device that simulates running in the actual substation operating environment, and can truly simulate the four remote communications between the measurement and control device in the actual substation operating environment and the monitoring host.

[0042] The DHCP server 101 can allocate IP addresses to the monitoring host 110 to be tested, and record the IP address allocated to each monitoring host 110 to be tested in the management platform 100 for use in subsequent deployment and testing of the monitoring program to be tested.

[0043] The simulation measurement and control device 102 can be a secondary device based on the IEC61850 communication standard that simulates operation in the actual substation operation environment. The configured secondary device that runs in the actual substation operation environment can be simulated through the secondary device model CID file to obtain the simulation measurement and control device 102. The simulation measurement and control device 102 can monitor the TCP (Transmission Control Protocol) 102 port and wait for the monitoring host 110 to be tested to connect.

[0044] The monitoring host 110 to be tested establishes a communication connection with the simulation measurement and control device 102 based on the IEC61850 communication standard; wherein, the communication instance number used in the communication connection between the monitoring host 110 to be tested and the simulation measurement and control device 102 is the last digit of the IP address assigned by the DHCP server 101 to the monitoring host 110 to be tested, so as to ensure that the enabling process is normal after establishing communication with the simulation measurement and control device 102. Since the general protection and measurement and control equipment supports a maximum instance number of 18, the value range of the communication instance number can be 1 to 18, and the communication instance number corresponding to each monitoring host 110 to be tested is different, thereby supporting the deployment and testing of the monitoring program to be tested for up to 18 monitoring hosts 110 to be tested at the same time.

[0045] In order to deploy the monitoring program to be tested in the monitoring host 110 to be tested, the management platform 100 needs to first send the monitoring program to be tested to the monitoring host 110 to be tested. After the monitoring host 110 to be tested obtains the IP address assigned to it by the DHCP server 101, it enters the waiting state for transmission. In order to ensure the success of file transmission and improve the success rate of automatic deployment of the monitoring program to be tested, it is necessary to design a standardized file transmission process to ensure that the file transmission is complete and reliable and to ensure the smooth completion of the automatic deployment link. Figure 2 The transmission process of the monitoring program to be tested provided by an embodiment of the present application is described in detail. Figure 2 , Figure 2 is a transmission flow chart of a monitoring program to be tested according to an embodiment of the present application, such as Figure 2 As shown, in one embodiment, the transmission process of the monitoring program to be tested includes:

[0046] S201 , the management platform 100 starts the DHCP server 101 .

[0047] In this embodiment, the management platform 100 is used to send a deployment script to the monitoring host 110 under test according to the IP address assigned by the DHCP server 101 to the monitoring host 110 under test. The deployment script is used to deploy the monitoring program under test on the monitoring host 110 under test.

[0048] S202 , the monitored host 110 to be tested sends a DHCP request to the DHCP server 101 .

[0049] S203 , the DHCP server 101 allocates an IP address to the monitoring host 110 under test in response to the DHCP request sent by the monitoring host 110 under test.

[0050] S204, the management platform 100 records the IP address assigned by the DHCP server 101 to the monitoring host 110 to be tested.

[0051] S205 , the management platform 100 generates a monitoring program to be tested, a deployment script, a first configuration database and a first MD5 checksum according to the IP address assigned by the DHCP server 101 to the monitoring host 110 to be tested.

[0052] In this embodiment, the management platform 100 also includes a communication unit. In order to ensure the integrity of each file transmitted to the monitoring host 110 to be tested, the communication unit can perform hash operations on the monitoring program to be tested, the deployment script, and the first configuration database, respectively, to generate a first MD5 verification code. The naming format of the first MD5 verification code can be "Monitor_IP address_md5sum.xml". If the IP address obtained by the monitoring host 110 to be tested is 172.16.50.1, the first MD5 verification code generated by the management platform 100 for it can be named "Monitor_172.16.50.1_md5sum.xml", wherein the file name and file content of the first MD5 verification code are encoded in UTF (Unicode Transformation Format)-8.

[0053] The first MD5 checksum file content may include:

[0054]

[0055]

[0056] S206, the management platform 100 packages the monitoring program to be tested, the deployment script, the first configuration database and the first MD5 checksum into a compressed package file.

[0057] S207, the management platform 100 sends the compressed package file to the monitoring host 110 to be tested.

[0058] In this embodiment, after the first MD5 checksum is generated, the management platform 100 can package the monitoring program to be tested, the deployment script, the first configuration database and the first MD5 checksum into a compressed package file in the "tar.gz" format, and the communication unit sends the compressed package file to the monitoring host to be tested 110 based on the SFTP (Secure File Transfer Protocol) protocol. The standard naming format of the compressed package file can be "Monitor_IP address_Target.tar.gz".

[0059] S208, the management platform 100 sends a decompression instruction to the monitoring host 110 to be tested.

[0060] In this embodiment, after the communication unit sends the compressed package file to the monitoring host 110 to be tested, the communication unit may send a decompression instruction to the monitoring host 110 to be tested based on the SSH (Secure Shell) protocol.

[0061] S209, the monitored host 110 to be tested decompresses the compressed package files, generates a second MD5 check code according to the decompressed files, and compares the second MD5 check code with the first MD5 check code.

[0062] S210 , the monitored host 110 to be tested sends the comparison result to the management platform 100 .

[0063] In this embodiment, after the monitoring host 110 to be tested completes the decompression operation of the compressed package file, it can enter the file integrity verification process. First, a second MD5 verification code is generated according to each decompressed file, and the naming format of the second MD5 verification code can be "Monitor_IP address_md5sum_tmp.xml"; secondly, the second MD5 verification code is compared with the first MD5 verification code, and the comparison result is sent to the management platform 100.

[0064] Among them, if the comparison result is that the verification code is consistent, the monitoring host 110 under test returns the execution value 0 to the management platform 100 through the communication unit, and the management platform 100 responds to the execution value 0 and sends a deployment instruction to the monitoring host 110 under test, instructing the deployment script to deploy the monitoring program under test on the monitoring host 110 under test; if the comparison result is that the verification code is inconsistent, the monitoring host 110 under test returns the execution value 1 to the management platform 100 through the communication unit, and the management platform 100 generates and pops up an error indication message.

[0065] In the above steps S201 to S210, the management platform 100 is used to perform hash operations on the monitoring program to be tested, the deployment script and the first configuration database to generate a first MD5 verification code, and package the monitoring program to be tested, the deployment script, the first configuration database and the first MD5 verification code into a compressed package file and send it to the monitoring host to be tested 110; the monitoring host to be tested 110 is also used to decompress the compressed package file, generate a second MD5 verification code according to the decompressed files, and compare the second MD5 verification code with the first MD5 verification code, and send the comparison result to the management platform 100; the management platform 100 is also used to send a deployment instruction to the monitoring host to be tested 110 when the comparison result is that the verification codes are consistent; and generate an error message when the comparison result is that the verification codes are inconsistent; wherein the deployment instruction is used to instruct the deployment script to deploy the monitoring program to be tested on the monitoring host to be tested 110. In this way, the transmission of the monitoring program to be tested, the deployment script, and the first configuration database is completed. Before the file is transmitted, the first MD5 checksum is generated based on the file to be transmitted (including the monitoring program to be tested, the deployment script, and the first configuration database, etc.) and named with a standardized file name, so that each file has unique integrity verification information before transmission. The first MD5 checksum is packaged with the file to be transmitted and transmitted through the SFTP protocol, which effectively prevents data anomalies caused by transmission loss or damage, and enhances the reliability of subsequent deployment and testing links.

[0066] After completing the transmission and verification of the monitoring program to be tested, you can enter the deployment process of deploying the monitoring program to be tested on the monitoring host 110 to be tested. In order to enable the monitoring program to be tested to run normally in the monitoring host 110 to be tested, it is usually necessary to set the mapping relationship between the host name and the IP address, install the monitoring program to be tested, read the configuration database, set the running environment variables, etc. One or more of the above steps can be executed by the deployment script. Figure 3 For an explanation of the deployment process of the monitoring program to be tested provided by an embodiment of the present application, see Figure 3 , Figure 3 is a deployment flow chart of a monitoring program to be tested according to an embodiment of the present application, such as Figure 3 As shown, in one embodiment, the deployment process of the monitoring program to be tested includes:

[0067] S301 , the monitoring host 110 to be tested generates a host name corresponding to the monitoring host 110 to be tested according to a preset host name generation rule in response to the IP address assigned by the DHCP server 101 .

[0068] In this embodiment, the preset host name generation rule may be "monitor_IP address". For example, the monitoring host 110 to be tested may generate a host name (monitor_172.16.50.1) according to the IP address (for example, 172.16.50.1) assigned by the DHCP server 101, thereby automatically completing the configuration of the mapping relationship between the host name and the IP address.

[0069] S302 , the monitoring host 110 to be tested executes a deployment script, where the deployment script is used to deploy the monitoring program to be tested on the monitoring host 110 to be tested.

[0070] In this embodiment, the deployment script can deploy the monitoring program to be tested on the monitoring host 110 to be tested through PyAutoGUI. As an example, the deployment script first runs the program installation package of the monitoring program to be tested, and determines whether the installation wizard interface appears through PyAutoGUI; then, the click function of PyAutoGUI simulates the mouse clicking the start installation button in the installation wizard interface; finally, the installation progress is detected every 2 seconds through PyAutoGUI, and after the installation is completed, the click function simulates the mouse clicking the installation completion button in the installation wizard interface.

[0071] S303 , the deployment script imports the IP address and host name corresponding to the monitoring host 110 to be tested into a preset first configuration database, and generates a second configuration database corresponding to the monitoring host 110 to be tested.

[0072] In this embodiment, the deployment script can import the first configuration database through the relational database command line import tool. After the import is completed, the deployment script can modify the fields related to the IP address and host name in the first configuration database according to the IP address and host name corresponding to the monitoring host 110 to be tested, so that the fields (or parameters) related to the IP address and host name in the modified first configuration database (i.e., the second configuration database) are consistent with the IP address and host name set by the test system of the power monitoring system provided in the embodiment of the present application.

[0073] In addition, the deployment script can also complete the setting of the running environment variables according to the installation path of the monitoring program to be tested.

[0074] S304 , after the monitoring program to be tested is deployed on the monitoring host 110 to be tested, the deployment script detects the deployment status of the monitoring program to be tested, generates a deployment detection result, and sends the deployment detection result to the management platform 100 .

[0075] In this embodiment, the deployment script can also detect the deployment status of the monitoring program to be tested. Specifically, the deployment script can run the ping -c 1 command to determine whether the returned host name meets the preset host name generation rules; the deployment script can also run the ldd command to determine whether the dynamic library on which the monitoring program to be tested depends for normal operation is missing.

[0076] In this embodiment, the deployment script can also send the deployment detection result to the management platform 100 through the communication unit. The management platform 100 is also used to send an execution instruction to the host to be monitored when the deployment detection result is successful deployment (the host name meets the preset host name generation rule, and the dynamic library on which the monitored program to be tested depends for normal operation is complete); wherein the execution instruction is used to instruct the host to be monitored to execute the monitored program to be tested and generate a test instruction.

[0077] In the above steps S301 to S304, the monitoring host 110 to be tested is used to generate a host name corresponding to the monitoring host 110 to be tested according to a preset host name generation rule in response to the IP address assigned by the DHCP server 101; the deployment script is used to import the IP address and host name corresponding to the monitoring host 110 to be tested into a preset first configuration database to generate a second configuration database corresponding to the monitoring host 110 to be tested; wherein the second configuration database is used to provide a configuration file for the monitoring host 110 to be tested when the monitoring host 110 to be tested runs the monitoring program to be tested; the deployment script is also used to detect the deployment status of the monitoring program to be tested after the monitoring program to be tested is deployed on the monitoring host 110, generate a deployment detection result, and send the deployment detection result to the management platform 100. Completing the deployment of the monitoring program to be tested in this way can make the network configuration of the monitoring program to be tested unnecessary for manual intervention during deployment, avoid errors that may be caused by manual settings, and improve the reliability of automatic deployment of the monitoring program to be tested. In addition, the deployment script uses PyAutoGUI to realize the automatic installation of the monitoring program to be tested. By automated detection and clicking the installation wizard interface, the cumbersome steps of manual installation can be avoided, and the continuous monitoring and feedback of the installation progress can be guaranteed, so that the entire deployment process is smooth and efficient. In addition, the first configuration database is imported through the deployment script, and the configuration adjustment is performed according to the IP assigned by the DHCP server 101 and the host name generated by the monitoring host 110 to be tested. It can be ensured that the fields (or parameters) related to the IP address and host name in the configuration database are consistent with the IP address and host name set by the test system of the power monitoring system provided in the embodiment of the present application, thereby improving the accuracy of the system configuration. Compared with the manual configuration database, the workload of the operation and maintenance personnel is less, and the error rate is lower. Finally, the deployment script feeds back the deployment detection results to the management platform 100 in real time through the communication unit, so that the operation and maintenance personnel can quickly know the deployment status of the monitoring program to be tested, thereby enhancing the transparency of the deployment process and facilitating the operation and maintenance personnel to quickly identify and solve potential problems in the deployment.

[0078] After completing the deployment of the monitoring program to be tested, you can enter the testing process. Figure 4 The test process of the test system of the power monitoring system provided by an embodiment of the present application is described in detail. Figure 4 , Figure 4 is a test flow chart of a test system of a power monitoring system according to an embodiment of the present application, such as Figure 4 As shown, in one embodiment, the testing process includes:

[0079] Step S401: the management platform 100 sends an execution instruction to the monitoring host 110 to be tested.

[0080] Step S402, the monitoring host 110 to be tested executes the monitoring program to be tested in response to the execution instruction, and generates a test instruction, wherein the test instruction includes a remote control instruction, a remote signaling instruction, and a remote measurement instruction.

[0081] Step S403 : the monitoring host 110 to be tested indicates to the management platform 100 that the monitoring program to be tested is executed successfully.

[0082] Step S404: the management platform 100 instructs the monitoring host 110 to start the test.

[0083] Step S405 : the monitoring host 110 to be tested sends a remote control instruction to the simulation measurement and control device 102 .

[0084] In this embodiment, the monitoring program to be tested can simulate the remote control operation through PyAutoGUI and send a remote control instruction to the simulation measurement and control device 102.

[0085] Step S406 , the simulation measurement and control device 102 generates state quantity information corresponding to the remote control instruction according to the remote control instruction, and sends the state quantity information as feedback information to the monitoring host 110 to be tested.

[0086] In this embodiment, after receiving the remote control instruction, the simulation measurement and control device 102 may send the remote control instruction to the management platform 100 , and the management platform 100 records the remote control instruction received by the simulation measurement and control device 102 .

[0087] As an example, the remote control command can be a command sent by the monitored host 110 to the simulation measurement and control device 102 to close or open a switch or knife switch. After receiving the remote control command, the simulation measurement and control device 102 can generate state quantity information corresponding to the remote control command (such as the open or closed state of the switch or knife switch).

[0088] Step S407: the monitoring host 110 to be tested determines the execution result of the remote control instruction according to the state quantity information.

[0089] Step S408 : the monitoring host 110 to be tested sends the execution result of the remote control command to the management platform 100 .

[0090] In this embodiment, the monitoring program to be tested can use PyAutoGUI to detect whether the state quantity information sent by the simulation measurement and control device 102 matches the remote control instruction, thereby determining whether the state quantity information changes correctly, and sending the execution result of the remote control instruction to the management platform 100, which records the execution result of the remote control instruction.

[0091] Step S409 : the monitoring host 110 to be tested sends a remote signaling instruction to the simulation measurement and control device 102 .

[0092] Step S410: the simulation measurement and control device 102 generates a status signal corresponding to the remote signaling instruction according to the remote signaling instruction, and sends the status signal as feedback information to the monitoring host 110 to be tested.

[0093] In this embodiment, the status signal may be a switch position signal, a knife switch position signal, a primary equipment alarm signal, a protection trip signal, etc. at a measuring point in the equipment of the substation required by the telesignaling instruction and reported by the simulation measurement and control device 102 to the monitored host 110 to be tested.

[0094] Step S411, the monitoring host 110 to be tested determines the execution result of the remote signaling instruction according to the status signal.

[0095] Step S412: the monitored host 110 to be tested sends the execution result of the remote signaling instruction to the management platform 100.

[0096] Step S413 : the monitoring host 110 to be tested sends a telemetry instruction to the simulation measurement and control device 102 .

[0097] In step S414, the simulation measurement and control device 102 generates analog quantity information corresponding to the telemetry instruction according to the telemetry instruction, and sends the analog quantity information as feedback information to the monitoring host 110 to be tested.

[0098] Step S415: the monitoring host 110 to be tested determines the execution result of the telemetry instruction according to the analog quantity information.

[0099] In this embodiment, the analog quantity information may be an electrical quantity (such as voltage value, current value, power, frequency, temperature, etc.) at a measuring point in the substation equipment required by the telemetry instruction and reported by the simulation measurement and control device 102 to the monitored host 110 to be tested. The electrical quantity is an analog quantity.

[0100] Step S416 , the monitored host 110 to be tested sends the execution result of the telemetry instruction to the management platform 100 .

[0101] In this embodiment, the management platform 100 is also used to generate a test report based on the execution results (execution results of remote control commands, execution results of remote signaling commands, and execution results of telemetry commands) sent by each monitored host 110 to be tested. The management platform 100 summarizes the above execution results received to generate a readable test report in a specific format.

[0102] Through the above steps S401 to S416, the monitoring program to be tested detects the state quantity information, state signal and analog quantity information sent by the simulation measurement and control device 102 through PyAutoGUI, and completes the test of the processing and display function of the monitoring program to be tested on the state quantity information, state signal and analog quantity information. In addition, by using the management platform 100 to summarize the above execution results and automatically generate a readable test report, repeated manual operations can be greatly reduced, and the test efficiency of the monitoring system and the reliability of the test results can be effectively improved.

[0103] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0104] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0105] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0106] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are only schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

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

[0108] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application 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. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A test system for an electric power monitoring system, characterized in that: include: A management platform, a DHCP server, a simulation measurement and control device, and a plurality of monitoring hosts to be tested, wherein the monitoring host to be tested is a monitoring host in an actual substation operating environment, and the simulation measurement and control device is a measurement and control device that simulates operation in the actual substation operating environment; The DHCP server is used to allocate an IP address to each of the monitoring hosts to be tested; The management platform is used for sending the monitoring program to be tested to the monitoring host to be tested according to the IP address assigned by the DHCP server to the monitoring host to be tested; The monitoring host to be tested is used to send a test instruction to the simulation measurement and control device according to the monitoring program to be tested; The simulation measurement and control device is used to generate feedback information corresponding to the test instruction according to the test instruction, and send the feedback information to the monitoring host to be tested; The monitoring host to be tested is also used to determine the execution result of the test instruction according to the feedback information, and send the execution result to the management platform.

2. The test system of the power monitoring system according to claim 1, characterized in that: The test instructions include remote control instructions, remote signaling instructions and remote measurement instructions; The simulation measurement and control device is also used to generate state quantity information corresponding to the remote control instruction according to the remote control instruction, and send the state quantity information as the feedback information to the monitoring host to be tested; The simulation measurement and control device is also used to generate a state signal corresponding to the remote signal instruction according to the remote signal instruction, and send the state signal as the feedback information to the monitoring host to be tested; The simulation measurement and control device is also used to generate analog quantity information corresponding to the telemetry instruction according to the telemetry instruction, and send the analog quantity information as the feedback information to the monitoring host to be tested.

3. The test system of the power monitoring system according to claim 1, characterized in that: The management platform is also used to send a deployment script to the monitoring host to be tested according to the IP address assigned by the DHCP server to the monitoring host to be tested; The monitoring host to be tested is also used to generate a host name corresponding to the monitoring host to be tested according to a preset host name generation rule in response to the IP address assigned by the DHCP server; The deployment script is used to import the IP address and the host name corresponding to the monitoring host to be tested into a preset first configuration database to generate a second configuration database corresponding to the monitoring host to be tested; wherein the second configuration database is used to provide a configuration file for the monitoring host to be tested when the monitoring host to be tested runs the monitoring program to be tested.

4. The test system of the power monitoring system according to claim 3, characterized in that: The management platform is also used to perform a hash operation on the monitoring program to be tested, the deployment script, and the first configuration database to generate a first MD5 check code, and package the monitoring program to be tested, the deployment script, the first configuration database, and the first MD5 check code into a compressed package file and send it to the monitoring host to be tested; The monitoring host to be tested is further used to decompress the compressed package file, generate a second MD5 check code according to each decompressed file, compare the second MD5 check code with the first MD5 check code, and send the comparison result to the management platform; The management platform is also used to send a deployment instruction to the monitoring host to be tested when the comparison result is that the verification code is consistent; And when the comparison result is that the verification code is inconsistent, an error message is generated; wherein the deployment instruction is used to instruct the deployment script to deploy the monitoring program to be tested on the monitoring host to be tested.

5. The test system of the power monitoring system according to claim 4, characterized in that: The deployment script is also used to detect the deployment status of the monitoring program to be tested, generate a deployment detection result, and send the deployment detection result to the management platform after the monitoring program to be tested is deployed on the monitoring host to be tested; The management platform is also used to send an execution instruction to the host to be monitored when the deployment detection result is successful deployment; wherein the execution instruction is used to instruct the host to be monitored to execute the monitoring program to be tested and generate the test instruction.

6. The test system of the power monitoring system according to claim 5, characterized in that: The management platform includes a communication unit, and the communication unit is used to send the compressed package file to the monitoring host to be tested based on the SFTP protocol; And sending the execution instruction to the monitoring host to be tested based on the SSH protocol.

7. The test system of the power monitoring system according to any one of claims 1 to 6, characterized in that: The monitoring host to be tested establishes a communication connection with the simulation measurement and control device based on the IEC61850 communication standard; wherein the communication instance number used in the communication connection between the monitoring host to be tested and the simulation measurement and control device is the last digit of the IP address assigned by the DHCP server to the monitoring host to be tested.

8. The test system of the power monitoring system according to claim 7, characterized in that: The communication instance number has a value range of 1 to 18, and the communication instance number corresponding to each of the monitored hosts to be tested is different.

9. The test system of the power monitoring system according to any one of claims 1 to 6, characterized in that: The DHCP server and the simulation measurement and control device are both arranged on the management platform.

10. The test system of the power monitoring system according to any one of claims 1 to 6, characterized in that: The management platform is also used to generate a test report according to the execution results sent by each of the monitored hosts to be tested.