CN112180897B - Relay protection/measurement and control device automatic test system and method based on universal test template - Google Patents

Relay protection/measurement and control device automatic test system and method based on universal test template Download PDF

Info

Publication number
CN112180897B
CN112180897B CN202011025324.2A CN202011025324A CN112180897B CN 112180897 B CN112180897 B CN 112180897B CN 202011025324 A CN202011025324 A CN 202011025324A CN 112180897 B CN112180897 B CN 112180897B
Authority
CN
China
Prior art keywords
test
template
code segment
automatic
automatic test
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011025324.2A
Other languages
Chinese (zh)
Other versions
CN112180897A (en
Inventor
李辉
潘华
毛文奇
张孝军
黎刚
周挺
彭铖
韩忠晖
欧阳帆
朱维钧
余斌
梁文武
严亚兵
徐浩
李刚
臧欣
王善诺
尹超勇
吴晋波
洪权
刘志豪
许立强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Corp of China SGCC
Electric Power Research Institute of State Grid Hunan Electric Power Co Ltd
State Grid Hunan Electric Power Co Ltd
Original Assignee
State Grid Corp of China SGCC
Electric Power Research Institute of State Grid Hunan Electric Power Co Ltd
State Grid Hunan Electric Power Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by State Grid Corp of China SGCC, Electric Power Research Institute of State Grid Hunan Electric Power Co Ltd, State Grid Hunan Electric Power Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN202011025324.2A priority Critical patent/CN112180897B/en
Publication of CN112180897A publication Critical patent/CN112180897A/en
Application granted granted Critical
Publication of CN112180897B publication Critical patent/CN112180897B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0208Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system
    • G05B23/0213Modular or universal configuration of the monitoring system, e.g. monitoring system having modules that may be combined to build monitoring program; monitoring system that can be applied to legacy systems; adaptable monitoring system; using different communication protocols
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/327Testing of circuit interrupters, switches or circuit-breakers
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24065Real time diagnostics

Abstract

The invention discloses an automatic test system and method for a relay protection/measurement and control device based on a universal test template, and the automatic test system comprises a cloud server, an automatic test platform and a tester with a wireless communication function, wherein the automatic test platform is connected through a wireless network, the tester is connected with a tested relay protection device or a tested measurement and control device and used for MMS protocol communication, issuing voltage and current excitation quantity and collecting feedback action result information according to the test template, generating a test report according to the issuing voltage and current excitation quantity and the collecting feedback action result information, and the automatic test platform is connected with the cloud server and used for uploading and downloading the test template and the test report. The invention can realize the automatic test of the secondary equipment compatible with different equipment and test manufacturers, so that the operation and maintenance of the secondary equipment of the intelligent substation are more intelligent and efficient, and the data sharing is realized.

Description

Relay protection/measurement and control device automatic test system and method based on universal test template
Technical Field
The invention relates to the field of testing of secondary equipment of an intelligent substation, in particular to an automatic testing system and method of a relay protection/measurement and control device based on a universal testing template, which are used for testing the relay protection/measurement and control device of the intelligent substation.
Background
The ubiquitous power internet of things is an intelligent service system which is around each link of a power system, fully applies modern information technologies such as mobile interconnection, artificial intelligence and the like and advanced communication technologies to realize the mutual object interconnection and the man-machine interaction of each link of the power system, and has the characteristics of comprehensive state sensing, efficient information processing and convenient and flexible application. The national power grid company starts the third-generation intelligent substation test point construction work in 2018, combines an intelligent station detection technology with an advanced information technology and a communication technology to form a high-efficiency intelligent secondary equipment maintenance method, improves operation and maintenance efficiency, provides a detection method for intelligent operation and maintenance, realizes data sharing, and provides basic technology support for three-type two-network. In order to solve the problems, a key link is the test of the secondary equipment of the intelligent substation.
At present, a test for a relay protection/measurement and control device of an intelligent substation is a software program for performing one-click automatic detection on a secondary device. After the automatic testing technology is started, part of clients adopt an automatic testing mode for testing, and the automatic testing mode automatically sets testing parameters and automatically generates a testing report through leading in a testing template mode. However, the automatic test template has two problems: 1) a plurality of automatic test manufacturers exist, each automatic test template is different, automatic test platforms of all manufacturers are different, and the test templates cannot be used universally; 2) the automatic test template of each manufacturer is stored locally, the sharing property is lacked, the automatic test program of each manufacturer is controlled by the version lacking of the test template and is developed based on the own test equipment of the manufacturer, the test template formed by the test program can only be used by the manufacturer, the universality is not realized, the automatic test program and the test template of each manufacturer have the characteristics of privacy and non-public property, and the automatic test program calculation method or the test template is placed in the own running computer or other control host of the manufacturer and is not disclosed to the outside.
Disclosure of Invention
The technical problems to be solved by the invention are as follows: aiming at the problems in the prior art, the invention provides an automatic test system and method for a relay protection/measurement and control device based on a universal test template, which can realize the automatic test of secondary equipment compatible with different equipment and test manufacturers, so that the operation and maintenance of the secondary equipment of an intelligent substation are more intelligent and efficient, and the system and method have data sharing property.
In order to solve the technical problems, the invention adopts the technical scheme that:
the utility model provides a relay protection measurement and control device automatic test system based on general test template, includes cloud ware, the automatic test platform who links to each other through wireless network and the tester that possesses wireless communication function, the tester links to each other with the relay protection device or the measurement and control device that are tested and is used for carrying out the MMS stipulation communication, sends down voltage current excitation volume and gathers feedback action result information according to test template to according to sending down voltage current excitation volume and gathering feedback action result information and generating test report, automatic test platform and cloud ware link to each other and are used for uploading, download test template and test report.
In addition, the invention also provides an application method of the relay protection/measurement and control device automatic test system based on the universal test template, which comprises the following steps of executing automatic test for the tested relay protection device or measurement and control device:
1) the automatic test platform initiates an authorization request to the cloud server, and if the authorization request passes, the next step is executed; otherwise, ending and exiting;
2) the automatic test platform inquires a matched test template in the cloud server according to the manufacturer and the device model of the tested relay protection device or the tested measurement and control device, if the inquiry is successful, the matched target test template is selected to be downloaded, and the next step is skipped to be executed; otherwise, ending and exiting;
3) the automatic test platform analyzes the target test template to identify the required code segments, and downloads the required code segments to the local from the cloud server;
4) the automatic test platform automatically executes a test flow in the target test template according to data flow information in the target test template so as to issue voltage and current excitation quantities to a tested relay protection device or a tested measurement and control device through a tester, collect feedback action result information of the tested relay protection device or the tested measurement and control device and finally complete calling of each code segment;
5) and automatically generating a test report according to the transmitted voltage and current excitation quantity and the collected feedback action result information.
Optionally, the code fragment in step 3) includes at least one of a functional interface code fragment, an MMS reduction code fragment, and a fixed value code fragment.
Optionally, the code segment communicates with the tester or the cloud server based on at least one communication mode of a socket, HTTP, HTTPs, and GRPC.
Optionally, the automatic test platform records a receiving state of the feedback action result information of each code segment through the identification map, adds a record in the identification map and records an initial execution time when executing each code segment, queries whether each record is overtime through a poller, adds a re-mark to the record and retries to execute the corresponding code segment if the record is overtime and does not receive the feedback action result information, and queries whether each record is overtime through another poller, determines that the corresponding code segment is failed to execute if the record is overtime, and ends and exits.
Optionally, the detailed steps of step 4) include:
4.1) the automatic test platform reads a code segment from the target test template in a traversing way to be used as a current code segment, and if the traversing is finished, the step 5) is skipped to be executed; otherwise, executing the next step;
4.2) if the current code segment is a functional interface code segment, the automatic test platform sends standardized test data in a communication mode provided by the current code segment, the tester sends voltage and current excitation quantity to a tested relay protection device or a tested measurement and control device according to the received functional parameters and collects feedback action result information, the feedback action result information is fed back to the current code segment, and the current code segment converts the received feedback action result information into standardized test result data and feeds back the standardized test result data to the automatic test platform; if the current code segment is an MMS protocol code segment, the automatic test platform sends a read and write operation communication command for carrying out with the tested relay protection device or the tested measurement and control device through a communication mode provided by the current code segment, the tester completes the switching convention of the test function of the tested relay protection device or the tested measurement and control device according to the received read and write operation communication command and feeds back feedback action result information to the current code segment, and the current code segment converts the received feedback action result information into standardized test result data and feeds back the standardized test result data to the automatic test platform; if the current code segment is a fixed value code segment, the automatic test platform automatically matches the fixed value in the test template with the fixed value in the MMS communication model of the tested relay protection device or the tested measurement and control device through the tester to be accurately used for successfully executing MMS communication protocol commands, including the automatic matching of the fixed value, the control word, the pressing plate and the like, and the tester feeds back the automatic matching result information to the current code segment; the current code segment converts the received feedback action result information into standardized test result data and feeds the standardized test result data back to the automatic test platform; the jump performs step 4.1).
Optionally, before the step 1), the method further includes the steps of generating a new test template and uploading to a cloud server:
A1) the automatic test platform initiates an authorization request to the cloud server, and if the authorization request passes, the next step is executed; otherwise, ending and exiting;
A2) the automatic test platform calls a communication code segment of the cloud server, uploads a new test template of the tested relay protection device or the tested measurement and control device through the communication code segment, and attaches a corresponding manufacturer and a device model of the tested relay protection device or the tested measurement and control device;
A3) and storing the new test template into a test template library by the cloud server, determining the ID of the new test template, and recording the mapping relation between the ID and the corresponding manufacturer and device model for inquiry.
Optionally, the new test template in step a2) is an encrypted test template, and the step of decrypting the encrypted test template is further included when the automatic test platform parses the target test template in step 3).
Optionally, before the step 1), the method further includes the steps of modifying the original test template and uploading the test template to the cloud server again:
B1) the automatic test platform initiates an authorization request to the cloud server, and if the authorization request passes, the next step is executed; otherwise, ending and exiting;
B2) the automatic test platform inquires a matched test template in the cloud server according to the manufacturer and the device model of the tested relay protection device or the tested measurement and control device, if the inquiry is successful, the matched target test template is selected to be downloaded, and the next step is skipped to be executed; otherwise, ending and exiting;
B3) the automatic test platform analyzes the target test template to identify the required code segments, and downloads the required code segments to the local from the cloud server; after the user finishes editing, skipping to execute the next step;
B4) the automatic test platform calls a communication code segment of the cloud server, and uploads an edited new test template through the communication code segment;
B5) and storing the edited new test template in a test template library by the cloud server, determining a new ID of the test template library, and establishing a mapping relation between the new ID and the corresponding manufacturer and device model for query.
Optionally, the new test template edited in step B4) is an encrypted test template, and the step of decrypting the encrypted test template is further included when the automatic test platform parses the target test template in step 3).
Compared with the prior art, the invention has the following advantages: the automatic test system of the relay protection/measurement and control device based on the universal test template is characterized in that a cloud server is made into an open interface and can be called to store a test template and a test report, the open interface is open to the outside, the formed test template is also a test template with a standard definition interface and is placed in the test template for calling and use by various manufacturers, the test template can be checked and controlled conveniently, relay protection/measurement and control devices of different manufacturers and models can carry out MMS protocol communication according to the corresponding test template, send voltage and current excitation quantity and collect feedback action result information according to the test template, and generate the test report according to the send voltage and current excitation quantity and the collected feedback action result information, so that the automatic test of secondary equipment compatible with different equipment and test manufacturers can be realized, the operation and maintenance of the secondary equipment of an intelligent transformer substation are more intelligent, and the test report can be generated according to the send voltage and current excitation quantity and the collected feedback action result information The method is more efficient and has data sharing performance.
Drawings
Fig. 1 is a schematic structural diagram of a system according to an embodiment of the present invention.
Fig. 2 is a schematic structural diagram of a plurality of automatic test platforms connected to a cloud server in the embodiment of the present invention.
FIG. 3 is a flowchart illustrating an embodiment of performing an automatic test.
Fig. 4 is a schematic flowchart of a process of generating a new test template and uploading the new test template to a cloud server in the embodiment of the present invention.
Fig. 5 is a schematic flowchart of modifying an original test template and uploading the test template to a cloud server again in the embodiment of the present invention.
Detailed Description
The automatic test system of the relay protection/measurement and control device based on the universal test template is further described in detail below by taking the PCS931 high-voltage line protection device of the nanrui relay protection as an example. The automatic relay protection/measurement and control device testing system based on the universal testing template can be applied to various relay protection/measurement and control devices, and is realized and dependent on the relay protection/measurement and control devices of specific models.
As shown in fig. 1, the automatic testing system of the relay protection/measurement and control device based on the universal testing template in the embodiment includes a cloud server, an automatic testing platform connected through a wireless network and a tester with a wireless communication function, wherein the tester is connected with a tested relay protection device or a tested measurement and control device for MMS protocol communication, issuing voltage and current excitation quantities and collecting feedback action result information according to the testing template, and generating a testing report according to the issuing voltage and current excitation quantities and collecting feedback action result information, and the automatic testing platform is connected with the cloud server for uploading and downloading the testing template and the testing report. In the automatic testing system of the relay protection/measurement and control device based on the universal testing template, the cloud server is made into a mode that an open interface can be called to store the testing template and the testing report, the testing template is open to the outside, the formed testing template is also a testing template with a standard definition interface and is stored in the testing template for being called by various manufacturers, so that the testing template can be checked and controlled, versions of the testing template can be controlled, relay protection/measurement and control devices of different manufacturers and models can carry out MMS protocol communication according to the corresponding testing template, send voltage and current excitation quantity and collect feedback action result information according to the testing template, and generate the testing report according to the send voltage and current excitation quantity and the collected feedback action result information, so that the automatic testing of secondary equipment compatible with different equipment and testing manufacturers can be realized, the operation and maintenance of the secondary equipment of an intelligent substation are more intelligent, and the testing report can be generated according to the operation and maintenance of the secondary equipment of the intelligent substation, The method is more efficient and has data sharing performance. As shown in fig. 2, different automatic test platforms may access the cloud server via authorization, may upload and download test templates, may issue voltage and current excitation amounts and collect feedback action result information based on the test templates, and may generate a test report according to the issued voltage and current excitation amounts and the collected feedback action result information and upload the test report to the cloud server.
As shown in fig. 3, this embodiment further provides an application method of the relay protection/measurement and control device automatic test system based on the general test template, including the following steps of performing an automatic test on a tested relay protection device or measurement and control device:
1) the automatic test platform initiates an authorization request to the cloud server, and if the authorization request passes, the next step is executed; otherwise, ending and exiting;
2) the automatic test platform inquires a matched test template in the cloud server according to the manufacturer and the device model of the tested relay protection device or the tested measurement and control device, if the inquiry is successful, the matched target test template is selected to be downloaded, and the next step is skipped to be executed; otherwise, ending and exiting;
3) the automatic test platform analyzes the target test template to identify the required code segments, and downloads the required code segments to the local from the cloud server;
4) the automatic test platform automatically executes a test flow in the target test template according to data flow information in the target test template so as to issue voltage and current excitation quantities to a tested relay protection device or a tested measurement and control device through a tester, collect feedback action result information of the tested relay protection device or the tested measurement and control device and finally complete calling of each code segment;
5) and automatically generating a test report according to the transmitted voltage and current excitation quantity and the collected feedback action result information.
In the step 1), an automatic test platform communicates with a cloud test template library system through internet communication service and authorization management, initiates an authorization request to a cloud server, and jumps to execute the next step if the authorization request passes; otherwise, end and exit.
In the step 2), the automatic test platform queries and acquires information such as classification, model and name of all templates which pass the current audit; and inquiring the matched test template in the cloud server according to the manufacturer and the device model of the tested relay protection device or the tested measurement and control device, and selecting to download the matched target test template if the inquiry is successful. As an optional implementation manner, if the query is unsuccessful, in this embodiment, the step of editing and uploading the test template is directly performed, so that a user can quickly establish a test template corresponding to the relay protection device or the measurement and control device. In this embodiment, in step 2), when the automatic test platform queries a matched test template in the cloud server according to a manufacturer and a device model of a tested relay protection device or measurement and control device, a test template query communication command is transmitted to a cloud server program and parameter information including a device manufacturer (NRJB), a device model (PCS931), a tester model (PNF801) and the like is included, and the server completes traversal query operation of a target test template in a database by analyzing the type and the parameters of the communication command. The server program returns the query result to the automatic test platform, the returned result may be a plurality of test template commands, the user selects the most appropriate test template in combination with the current application scene, and sends the test template and a corresponding code segment downloading command to the cloud server to complete the downloading of the template and the code segment. If no suitable test template is found or the query result is null, sending a test template editing test flow to the server, and downloading a code fragment file which does not exist locally to develop a new test template.
Referring to fig. 2 and 3, the code fragments in step 3) include a functional interface code fragment, an MMS reduction code fragment, a fixed value code fragment, and may be one or two of the above codes. Referring to fig. 2, in addition to the automatic test template library (for storing test templates), the cloud server also stores a functional interface code segment, an MMS protocol code segment, a fixed value code segment that have been called, and also includes a communication code segment (for downloading and uploading test templates), and may also include other designated functional code segments.
Test template, i.e. generic test template file: the part realizes the management of the automatic test overall test flow, for example, the automatic test of a protection device needs various test logic functions, MMS information needs to be called, fixed value information needs to be read or downloaded, a complete progress list in charge of test requirements needs to be formed, and a universal test template is the automatic test flow management.
Functional interface code fragment: the code segment is a type of code segment, has multiple test functions in protection or other secondary equipment tests, and each universal test template file code segment represents the realization of one function, such as a distance protection test function, an overcurrent protection test function, a differential protection test function, a manual output function, a state sequence function, a harmonic output function and the like. Specific parameter values of voltage, current and switching value are defined in each function. And the user calls the code segment to realize functional logic test, and sends down the parameter values of voltage, current, switching value and the like according to the defined parameters. MMS specification code fragment: the intelligent secondary equipment (protection, measurement and control and the like) communicates with the outside by an MMS protocol to realize the interoperation of constant value, remote measurement, remote signaling, remote regulation, remote control and the like, the automatic test is a full-automatic test without manual intervention, the communication with the protection device in the test process is realized by MMS protocol communication, and MMS protocol code segments are necessary parts of the automatic test. Fixed value code fragment: after the fixed value is read by the MMS protocol code segment, the fixed value is a fixed value file of a protection device definition format, the fixed value file defined by the protection device is generally different from fixed value parameters used in a functional interface and can not be matched completely, and the fixed value code segment is a code segment which is obtained by automatically matching and comparing two fixed value formats, searching unmatched items and carrying out correlation modification. Reading or downloading the parameter values is an essential part of the automatic test. Communication code segment: the method is used for realizing the uploading and downloading of the automatic test template. The client can download and call the test template by calling the code segment, and can upload the test template stored by the client to the template library according to the file name format by the code segment. The code segment comprises various functional interfaces and operation functions, the uploading and downloading of the test template are realized through the calling method provided by the embodiment, any automatic test platform can automatically generate test contents and procedures which accord with the automatic test platform by calling the template in the template library, meanwhile, different manufacturers can edit the test template, and the test template is uploaded to the test template library to form a new test template. In this embodiment, the code segment communicates with the tester or the cloud server based on at least one communication method of a socket, HTTP, HTTPs, and GRPC.
The test template library is arranged in the cloud server, the cloud server is connected through internet communication, and template uploading and downloading communication are achieved; the method comprises the following steps of realizing various function codification by using a code fragment technology, and calling a code fragment by a user to realize functional communication and functional interoperation with a template library; the automatic test platform acquires the use permission, can download the test template and call the function code segment, and can also edit and change the automatic test item to generate a new test template and upload the new test template to the test template library; the test template directly sent to the cloud end is downloaded and shared by any other user after being audited by auditors with specific authority, the auditors set unique version numbers for the template after the audit is passed, and the template does not allow any personnel to modify the template after the audit is passed; the user can upgrade the version of the same test template, and the upgraded version also needs to be audited by an auditor to pass, so that the template sharing function is realized.
In this embodiment, the automatic test platform records the receiving state of the feedback action result information of each code segment through the identification map, adds a record in the identification map and records the initial execution time when executing a code segment, and queries whether each record is overtime through a poller, if the record is overtime and the feedback action result information is not received, adds a re-mark to the record and retries to execute the corresponding code segment, and queries whether each record is overtime through another poller, if the record is still overtime, determines that the corresponding code segment is failed to execute, and ends and exits.
Taking a distance protection test as an example, the steps of analyzing the target test template by the automatic test platform to identify a required code segment therein, and downloading the required code segment from the cloud server to the local include: firstly, inquiring whether a local automatic test platform contains a functional interface code segment, an MMS protocol code segment and a fixed value code segment, and if so, continuously searching version information of the local automatic test platform; if the corresponding code segment does not exist, automatically downloading the corresponding code segment from the cloud, and if the version information of the code segment is inconsistent with the version information of the code segment of the cloud server, prompting a user to update the code segment; acquiring current device model information through MMS protocol code fragments; acquiring all information of fixed values, control words, pressing plates and the like in the current device through a fixed value code segment analysis device model, and recording and storing the information; setting information such as a fixed value, a control word, a pressing plate and the like required to be set during distance protection testing in the testing template through the fixed value code segment; setting parameters output by a tester in the test template, such as time before fault, a fault state trigger mode, voltage and current excitation quantity before fault, a fault state short circuit impedance value, a fault state short circuit impedance compensation coefficient and the like, through the functional interface code segment; and setting test result error criteria, such as action time error qualification criteria, absolute error and relative error qualification criteria of action values and the like.
In this embodiment, the detailed steps of step 4) include:
4.1) the automatic test platform reads a code segment from the target test template in a traversing way to be used as a current code segment, and if the traversing is finished, the step 5) is skipped to be executed; otherwise, executing the next step;
4.2) if the current code segment is a functional interface code segment, the automatic test platform sends standardized test data in a communication mode provided by the current code segment, the tester sends voltage and current excitation quantity to a tested relay protection device or a tested measurement and control device according to the received functional parameters and collects feedback action result information, the feedback action result information is fed back to the current code segment, and the current code segment converts the received feedback action result information into standardized test result data and feeds back the standardized test result data to the automatic test platform; if the current code segment is an MMS protocol code segment, the automatic test platform sends a read and write operation communication command for carrying out with the tested relay protection device or the tested measurement and control device through a communication mode provided by the current code segment, the tester completes the switching convention of the test function of the tested relay protection device or the tested measurement and control device according to the received read and write operation communication command and feeds back feedback action result information to the current code segment, and the current code segment converts the received feedback action result information into standardized test result data and feeds back the standardized test result data to the automatic test platform; if the current code segment is a fixed value code segment, the automatic test platform automatically matches the fixed value in the test template with the fixed value in the MMS communication model of the tested relay protection device or the tested measurement and control device through the tester to be accurately used for successfully executing MMS communication protocol commands, including the automatic matching of the fixed value, the control word, the pressing plate and the like, and the tester feeds back the automatic matching result information to the current code segment; the current code segment converts the received feedback action result information into standardized test result data and feeds the standardized test result data back to the automatic test platform; the jump performs step 4.1).
Taking the PCS931 distance protection automatic test as an example, the processing steps include: after the test template is inquired and downloaded, the automatic test platform checks whether the code segments required to be used by the test template exist locally, if not, the corresponding code segments are downloaded to the cloud server; the automatic test platform modifies information such as a measured value, a control word, a pressure plate and the like of the tested device through MMS protocol code fragments so as to be used for distance protection test; the automatic test platform calls the functional interface code segment to control the tester to output corresponding excitation quantity, receives a return result after the test is finished, and transmits the return result to the automatic test platform; the automatic test platform judges according to the return result and the test result in the test template, and completes the automatic generation of the test result;
as shown in fig. 4, step 1) further includes, before generating a new test template and uploading to the cloud server:
A1) the automatic test platform initiates an authorization request to the cloud server, and if the authorization request passes, the next step is executed; otherwise, ending and exiting;
A2) the automatic test platform calls a communication code segment of the cloud server, uploads a new test template of the tested relay protection device or the tested measurement and control device through the communication code segment, and attaches a corresponding manufacturer and a device model of the tested relay protection device or the tested measurement and control device;
A3) and storing the new test template into a test template library by the cloud server, determining the ID of the new test template, and recording the mapping relation between the ID and the corresponding manufacturer and device model for inquiry.
In this embodiment, the new test template in step a2) is an encrypted test template, and the step of decrypting the encrypted test template when the automatic test platform parses the target test template in step 3) further includes.
Before that, a tester checks all functional logics of the device according to the instruction book of the device to be tested; designing a test method and developing a test template according to the tested functional logic; the test template comprises transfer information of standardized test data in the test process and code fragment information called in the test process; and after the development of the test template is finished, the test template is sent to a server side, and after the audit is passed by an auditor, the test template is upgraded into a release test template for use.
As shown in fig. 5, before the step 1), the method further includes the steps of modifying the original test template and uploading the test template to the cloud server again:
B1) the automatic test platform initiates an authorization request to the cloud server, and if the authorization request passes, the next step is executed; otherwise, ending and exiting;
B2) the automatic test platform inquires a matched test template in the cloud server according to the manufacturer and the device model of the tested relay protection device or the tested measurement and control device, if the inquiry is successful, the matched target test template is selected to be downloaded, and the next step is skipped to be executed; otherwise, ending and exiting;
B3) the automatic test platform analyzes the target test template to identify the required code segments, and downloads the required code segments to the local from the cloud server; after the user finishes editing, skipping to execute the next step;
B4) the automatic test platform calls a communication code segment of the cloud server, and uploads an edited new test template through the communication code segment;
B5) and storing the edited new test template in a test template library by the cloud server, determining a new ID of the test template library, and establishing a mapping relation between the new ID and the corresponding manufacturer and device model for query.
In this embodiment, the new test template edited in step B4) is an encrypted test template, and the step of decrypting the encrypted test template is further included when the automatic test platform parses the target test template in step 3).
Similarly, after the modified test template is sent to the cloud server, an auditor audits the test template, if the test template is qualified, the version number of the test template is upgraded, a corresponding version upgrade description is added, and meanwhile, the version is set as a release version for a user to download; the user may download different versions of the same model of test template.
As an alternative embodiment, the step of uploading the test template includes: logging in a cloud server; the method comprises the steps that a local automatic test platform sends a test template uploading command to a cloud server program, wherein the command comprises parameter information such as a test template name, a device manufacturer (NRJB), a device model (PCS931), a tester model (PNF801) and the like, and all parameters of the command have corresponding database tables and are stored in the database; after the database table information is updated successfully, transmitting the test template file to a test template base of a cloud server; and after the test template is uploaded successfully, the information of the default database is not checked, only the personnel with the checking authority can check the test template, and after the personnel with the checking authority of the test template downloads the test template and passes the checking, the template is set as a checking passing type for all users to download.
In this embodiment, a main body for managing the test template is a test template library system, the test template library system is placed in the cloud server, and the template library system mainly includes three parts, namely an internet communication service + authorization management part, a function code fragment and a template. The automatic test platform is communicated with the cloud test template library system through internet communication service and authorization management. The cloud server and the automatic test platform can communicate in a 4G or wireless mode. The automatic test platform realizes various functional operations by acquiring the permission remote calling code segment. The automatic test downloads the code segments to the mobile terminal, and the code segment program is started through the communication protocol to realize various code segment functions. For example: the interface code segment realizes standardized interface conversion, the functional logic code segment realizes protection logic control, the MMS protocol code segment realizes MMS communication function, the constant value code segment realizes constant value real-time modification and constant value matching, and the communication code segment realizes downloading and uploading communication functions of the test template. The code segment provided by the embodiment is to refine and package the functions, and the user can call and combine the functions to realize the automatic test function. The test template library provided by the embodiment provides the function codes and the test templates, does not provide an automatic test function interface, and a user can customize an interface architecture and realize the automatic test function by combining with the function code fragments.
The automatic test platform and the cloud server adopt a grpc remote calling mode, the grpc is a main trunk network flow, and transmitted data comprise various functional code segments and other main description information, including descriptive languages, encryption modes and the like of the code segments. Descriptive language: and code fragment basic information, and determining the called functional code fragment according to the descriptive language. Encryption: the grpc remotely calls the function code segment to realize various communication or other operations, and the encryption is carried out by using BASE 64. After the user calls the function code segment, the function code segment can be locally operated on the mobile terminal and carries out data interaction, and meanwhile, the code segment can still carry out real-time data interaction with the cloud server. Calling mode: the function code segment is designed to meet the diversification and universality of users, and the function code segment called by the users can adopt various transmission modes, such as socket transmission, HTTP, HTTPS or GRPC and the like. The function code fragment applies encryption, and the function code fragment data interaction transmission protocol adopts MD5 encryption. The template calling process provided by the embodiment is based on socket communication to transmit a large amount of information without special marks; the method provided by the embodiment adopts grpc remote calling, and remote calling analysis is added in a template, wherein the remote calling analysis comprises a remote calling IP, a port, remote command characters, an encryption communication transmission medium and a part of automation scripts. Similarly, when acquiring the test template, the mobile terminal should encrypt its existing IP port number and its own parameters related to the mobile terminal by a specific protocol, and remotely call the cloud terminal to acquire the "special" template. The command mode of code segment real-time communication takes socket as an example: the function call adopts a polling mechanism to judge whether the current request is expired, whether the current request is a new message or not, and whether the current request is a new response or not, and polls by recording a marked map (marked map). Whether the current request is expired or not can be checked through a mark in the Map, such as the current request which is expired and not in the Map; whether to request again in a short time, such as requesting again in a short time, will obtain the return value of the same request as the current request flag to use through another poller; after the accumulation of the respective test templates, a huge test template library meeting all field tests can be finally formed. And providing template data for automatic detection of the secondary equipment of the transformer substation.
After the client is authorized, the client can communicate with the cloud test system in a GRCP remote calling mode to realize the access and calling of the test system, download various code segments and realize the functions of the code segments by calling the code segments. The code segment can adopt various calling modes such as socket and the like, and the calling adopts a polling mechanism to judge whether the current request is expired, whether the current request is a new message (message) or not, and whether the current request is a new response (response). Calling the communication code segment to realize downloading and calling of the template file in the template library; necessary functions in the automatic test process are realized by calling MMS protocol codes, constant value codes, interface function codes and the like; and combining the automatic test template with a plurality of functional code fragments to form an automatic test program which can be run by a client, and directly running the automatic test for testing. And after testing, receiving test result data to form a test report.
The client can edit the automatic testing template according to the operation instruction and the format definition of the testing template, and the editing format requirement is consistent with the format of the automatic testing template. The client communicates with the cloud through remote calling, and template uploading and downloading operations are carried out through calling communication code fragments; when the test template is uploaded through the code segment, the new test template is uploaded to the automatic test template library according to the new ID number through the test template encryption processing.
The client communicates with the cloud through remote calling, and template calling and downloading operations are carried out through calling communication code segments; the client can edit the automatic testing template according to the operation instruction and the format definition of the testing template, and the editing format requirement is consistent with the format of the automatic testing template. When the test template is uploaded through the code segment, the test template is encrypted and uploaded to an automatic test template library according to a new ID number.
In summary, the present embodiment is directed to a method for performing an automatic test on a relay protection device or a measurement and control device to be tested, and is characterized in that a test program is packaged in a code segment manner, so as to provide a code segment that can be called, and reduce an application threshold of an automatic test technology. The automatic test template library of the cloud server is used for storing test templates, and after the automatic test template library is formed, each automatic test platform can be connected and communicated with the test template library to download and upload the test templates, so that the purpose of sharing the test templates is achieved. The method realizes the formation of the universal template library for the automatic test of the secondary equipment of the intelligent station, provides a standardized template library for the automatic test of the secondary equipment of the intelligent station, realizes the universality of the existing diversified test templates, and is beneficial to the management of a power grid company on the test templates and the management of an automatic test platform.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-readable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein. The present application is directed to methods, apparatus (systems), and computer program products according to embodiments of the application wherein instructions, which execute via a flowchart and/or a processor of the computer program product, create means for implementing functions specified in the flowchart and/or block diagram block or blocks. These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks. These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above embodiments, and all technical solutions belonging to the idea of the present invention belong to the protection scope of the present invention. It should be noted that modifications and embellishments within the scope of the invention may occur to those skilled in the art without departing from the principle of the invention, and are considered to be within the scope of the invention.

Claims (7)

1. An application method of a relay protection/measurement and control device automatic test system based on a universal test template, it is characterized in that the automatic test system of the relay protection/measurement and control device comprises a cloud server, an automatic test platform and a tester with a wireless communication function, wherein the automatic test platform is connected through a wireless network, the tester is connected with a tested relay protection device or a tested measurement and control device to carry out MMS protocol communication, send down voltage and current excitation quantity according to a test template and collect feedback action result information, and generating a test report according to the transmitted voltage and current excitation quantity and the collected feedback action result information, the automatic test platform is connected with the cloud server for uploading and downloading test templates and test reports, the application method of the automatic testing system of the relay protection/measurement and control device comprises the following steps of executing automatic testing aiming at the tested relay protection device or the tested measurement and control device:
1) the automatic test platform initiates an authorization request to the cloud server, and if the authorization request passes, the next step is executed; otherwise, ending and exiting;
2) the automatic test platform inquires a matched test template in the cloud server according to the manufacturer and the device model of the tested relay protection device or the tested measurement and control device, if the inquiry is successful, the matched target test template is selected to be downloaded, and the next step is skipped to be executed; otherwise, ending and exiting;
3) the automatic test platform analyzes the target test template to identify the required code segments, and downloads the required code segments to the local from the cloud server; the code segments comprise a functional interface code segment, an MMS protocol code segment and a fixed value code segment; the fixed value code segments are code segments which are automatically matched and compared by two fixed value formats, are searched for unmatched items and are subjected to correlation modification;
4) the automatic test platform automatically executes a test flow in the target test template according to data flow information in the target test template so as to issue voltage and current excitation quantities to a tested relay protection device or a tested measurement and control device through a tester, collect feedback action result information of the tested relay protection device or the tested measurement and control device and finally complete calling of each code segment;
5) automatically generating a test report according to the transmitted voltage and current excitation quantity and the collected feedback action result information;
the detailed steps of the step 4) comprise: 4.1) the automatic test platform reads a code segment from the target test template in a traversing way to be used as a current code segment, and if the traversing is finished, the step 5) is skipped to be executed; otherwise, executing the next step; 4.2) if the current code segment is a functional interface code segment, the automatic test platform sends standardized test data in a communication mode provided by the current code segment, the tester sends voltage and current excitation quantity to a tested relay protection device or a tested measurement and control device according to the received functional parameters and collects feedback action result information, the feedback action result information is fed back to the current code segment, and the current code segment converts the received feedback action result information into standardized test result data and feeds back the standardized test result data to the automatic test platform; if the current code segment is an MMS protocol code segment, the automatic test platform sends a read and write operation communication command for carrying out with the tested relay protection device or the tested measurement and control device through a communication mode provided by the current code segment, the tester completes the switching convention of the test function of the tested relay protection device or the tested measurement and control device according to the received read and write operation communication command and feeds back feedback action result information to the current code segment, and the current code segment converts the received feedback action result information into standardized test result data and feeds back the standardized test result data to the automatic test platform; if the current code segment is a fixed value code segment, the automatic test platform automatically matches the fixed value in the test template with the fixed value in the MMS communication model of the tested relay protection device or the tested measurement and control device through the tester to be accurately used for successfully executing MMS communication protocol commands, including the automatic matching of the fixed value, the control word and the pressing plate, and the tester feeds back the automatic matching result information to the current code segment; the current code segment converts the received feedback action result information into standardized test result data and feeds the standardized test result data back to the automatic test platform; the jump performs step 4.1).
2. The application method of the relay protection/measurement and control device automatic test system based on the universal test template as claimed in claim 1, wherein the code segment is communicated with the tester or the cloud server based on at least one communication mode of socket, HTTP, HTTPS, GRPC.
3. The application method of the relay protection/measurement and control device automatic test system based on the universal test template as claimed in claim 2, wherein the automatic test platform records the receiving state of the feedback action result information of each code segment through the identification map, adds a record in the identification map and records the initial execution time every time a code segment is executed, and queries whether each record is overtime through a poller, if the record is overtime and still does not receive the feedback action result information, adds a re-mark to the record and retries to execute the corresponding code segment, and queries whether each record is overtime through another poller, if the record is overtime, determines that the corresponding code segment is failed to be executed, and ends and exits.
4. The application method of the relay protection/measurement and control device automatic test system based on the universal test template as claimed in claim 1, wherein the step 1) is preceded by the steps of generating a new test template and uploading the new test template to a cloud server:
A1) the automatic test platform initiates an authorization request to the cloud server, and if the authorization request passes, the next step is executed; otherwise, ending and exiting;
A2) the automatic test platform calls a communication code segment of the cloud server, uploads a new test template of the tested relay protection device or the tested measurement and control device through the communication code segment, and attaches a corresponding manufacturer and a device model of the tested relay protection device or the tested measurement and control device;
A3) and the cloud server stores the new test template into the test template library, determines the ID of the new test template, and records the mapping relation between the ID and the corresponding manufacturer and device model so as to be convenient for query.
5. The method for applying the automatic test system for the relay protection/measurement and control device based on the universal test template as claimed in claim 4, wherein the new test template in the step A2) is an encrypted test template, and the step of decrypting the encrypted test template is further included when the automatic test platform parses the target test template in the step 3).
6. The application method of the relay protection/measurement and control device automatic test system based on the universal test template as claimed in claim 1, wherein the step 1) is preceded by the step of modifying the original test template and uploading the original test template to the cloud server again:
B1) the automatic test platform initiates an authorization request to the cloud server, and if the authorization request passes, the next step is executed; otherwise, ending and exiting;
B2) the automatic test platform inquires a matched test template in the cloud server according to the manufacturer and the device model of the tested relay protection device or the tested measurement and control device, if the inquiry is successful, the matched target test template is selected to be downloaded, and the next step is skipped to be executed; otherwise, ending and exiting;
B3) the automatic test platform analyzes the target test template to identify the required code segments, and downloads the required code segments to the local from the cloud server; after the user finishes editing, skipping to execute the next step;
B4) the automatic test platform calls a communication code segment of the cloud server, and uploads an edited new test template through the communication code segment;
B5) and storing the edited new test template in a test template library by the cloud server, determining a new ID of the test template library, and establishing a mapping relation between the new ID and the corresponding manufacturer and device model for query.
7. The method for applying the automatic test system for the relay protection/measurement and control device based on the universal test template as claimed in claim 6, wherein the new test template edited in step B4) is an encrypted test template, and the step of decrypting the encrypted test template is further included when the automatic test platform parses the target test template in step 3).
CN202011025324.2A 2020-09-25 2020-09-25 Relay protection/measurement and control device automatic test system and method based on universal test template Active CN112180897B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011025324.2A CN112180897B (en) 2020-09-25 2020-09-25 Relay protection/measurement and control device automatic test system and method based on universal test template

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011025324.2A CN112180897B (en) 2020-09-25 2020-09-25 Relay protection/measurement and control device automatic test system and method based on universal test template

Publications (2)

Publication Number Publication Date
CN112180897A CN112180897A (en) 2021-01-05
CN112180897B true CN112180897B (en) 2021-12-17

Family

ID=73943993

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011025324.2A Active CN112180897B (en) 2020-09-25 2020-09-25 Relay protection/measurement and control device automatic test system and method based on universal test template

Country Status (1)

Country Link
CN (1) CN112180897B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112945596A (en) * 2021-01-26 2021-06-11 青岛海尔电冰箱有限公司 Refrigerator detection method and detection terminal
CN113032128A (en) * 2021-04-20 2021-06-25 北京微纳星空科技有限公司 Multitask control method and device, electronic equipment and storage medium
CN113204199A (en) * 2021-04-26 2021-08-03 武汉卓尔信息科技有限公司 Remote operation and maintenance system and method for industrial equipment
CN113281594B (en) * 2021-05-18 2023-12-22 国网新疆电力有限公司电力科学研究院 System and method for realizing remote intelligent automatic test for relay protection
CN115371349A (en) * 2021-05-21 2022-11-22 青岛海尔特种制冷电器有限公司 Processing method of refrigerator detection information and machine readable storage medium
CN113394778B (en) * 2021-07-08 2022-09-30 国网浙江省电力有限公司温州供电公司 Configuration mode-based system-level debugging system and method for secondary equipment of transformer substation
CN114338281B (en) * 2021-11-11 2023-04-07 广州软件应用技术研究院 Model distribution application design method and system based on edge computing gateway
CN115684787A (en) * 2022-10-28 2023-02-03 国家电网有限公司 Closed-loop test system and method for relay protection equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103412558A (en) * 2013-07-30 2013-11-27 国电南瑞科技股份有限公司 Automatic testing system and method for relay protection measuring and controlling device
WO2014153764A1 (en) * 2013-03-29 2014-10-02 国家电网公司 Method and device for automatic test of relay protection function of intelligent substation
CN104793076A (en) * 2015-04-08 2015-07-22 南京能云电力科技有限公司 Intelligent automatic test system and method
CN105301419A (en) * 2015-12-03 2016-02-03 中国电力科学研究院 Cloud-technology-based automatic test system for protective relaying device
CN105717390A (en) * 2016-01-28 2016-06-29 东南大学 Cloud platform based testing platform and method for intelligent transformer station
CN107085159A (en) * 2017-06-22 2017-08-22 国网江苏省电力公司电力科学研究院 GOOSE based on CCD files is inputted to an automatic test approach
CN107515344A (en) * 2017-10-18 2017-12-26 南京能云电力科技有限公司 Test system and method for a kind of whole station information intelligent of digital transformer substation to point
CN110426589A (en) * 2019-09-10 2019-11-08 南京国电南自电网自动化有限公司 A kind of substation secondary device automatic testing method, server and system based on general-purpose interface template

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9140745B1 (en) * 2014-03-05 2015-09-22 Unigen Corporation System and method for cloud testing and remote monitoring of integrated circuit devices

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014153764A1 (en) * 2013-03-29 2014-10-02 国家电网公司 Method and device for automatic test of relay protection function of intelligent substation
CN103412558A (en) * 2013-07-30 2013-11-27 国电南瑞科技股份有限公司 Automatic testing system and method for relay protection measuring and controlling device
CN104793076A (en) * 2015-04-08 2015-07-22 南京能云电力科技有限公司 Intelligent automatic test system and method
CN105301419A (en) * 2015-12-03 2016-02-03 中国电力科学研究院 Cloud-technology-based automatic test system for protective relaying device
CN105717390A (en) * 2016-01-28 2016-06-29 东南大学 Cloud platform based testing platform and method for intelligent transformer station
CN107085159A (en) * 2017-06-22 2017-08-22 国网江苏省电力公司电力科学研究院 GOOSE based on CCD files is inputted to an automatic test approach
CN107515344A (en) * 2017-10-18 2017-12-26 南京能云电力科技有限公司 Test system and method for a kind of whole station information intelligent of digital transformer substation to point
CN110426589A (en) * 2019-09-10 2019-11-08 南京国电南自电网自动化有限公司 A kind of substation secondary device automatic testing method, server and system based on general-purpose interface template

Also Published As

Publication number Publication date
CN112180897A (en) 2021-01-05

Similar Documents

Publication Publication Date Title
CN112180897B (en) Relay protection/measurement and control device automatic test system and method based on universal test template
CN104793076B (en) Intelligent Auto-Test System and method of testing
CN109218139B (en) Gateway test system
CN104483842B (en) One kind regulation and control one automation main website comparison method
WO2017041406A1 (en) Failure positioning method and device
CN106815681B (en) Transformer substation secondary equipment closed-loop management platform based on two-dimensional code and management system thereof
WO2015090091A1 (en) Method and system for updating optical distribution network (odn) device by using intelligent management terminal
CN108334370A (en) A kind of software auto-increment update upgrade method of distributed test system
CN103678124B (en) Video surveillance platform auto-test method and device based on continuous integrated environment
CN111782635B (en) Data processing method and device, storage medium and electronic device
CN110737584A (en) Service data testing method and device based on block chain and computer equipment
CN110571927A (en) Four-remote signal parameter checking method
CN109861860A (en) A kind of intelligent substation establishes the method and system of actual situation link maps relationship
CN113419920A (en) Real-time monitoring method for joint debugging test process of simulation test system of Internet of things management platform
CN113778903B (en) Method and system for generating test case of power distribution terminal and storage medium
CN113515298A (en) System and method for upgrading and managing power distribution terminal program
CN109683923B (en) Method and system for checking configuration file version of power distribution automation system
CN106301976A (en) A kind of intelligent substation schedule information automated testing method
CN115396352A (en) CMS server-side protocol testing method, system, equipment and storage medium
CN117319433A (en) Intelligent information management system for plane shunting operation
CN112905437A (en) Method and device for testing case and storage medium
CN112165167B (en) Intelligent substation relay protection maintenance auxiliary system and method
CN109829088A (en) A kind of Expressway Mechanical & Electrical Project detection system
CN106301833A (en) A kind of transformer station schedule information method of testing
CN112348454A (en) Intelligent management and control system and method for electrical equipment handover test

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant