Relay protection automatic verification method and system based on universal test template
By calculating the model similarity of the relay protection device in the preset model library, determining the model to be selected and obtaining its test templates and test items, the problem of the lack of a unified test template for different models of devices is solved, and efficient and accurate testing is achieved.
Patent Information
- Application Number
- CN202411537718.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-31
- Publication Date
- 2025-09-02
- Estimated Expiration
- 2044-10-31
AI Technical Summary
In the prior art, due to the different manufacturers and models of relay protection devices, a unified test template is lacking, making it difficult to efficiently test new or no relay protection devices with test templates.
Obtain the model information of the relay protection device in the preset model library, calculate the model similarity, determine the model to be selected, and obtain its test template and test items, and generate a test template suitable for relay protection devices that have new or no test templates.
Improves the testing efficiency of relay protection devices with new or no test templates, ensuring the accuracy and convenience of the test templates.
Smart Images

Figure CN119535030B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of power grid testing, and in particular to a method and system for automated verification of relay protection based on a universal test template. Background Art
[0002] Relay protection devices are crucial components of power grid systems. Power monitoring platforms receive various action information transmitted by relay protection devices to determine the causes of power grid accidents and conduct manual analysis based on the transmitted process data. To clarify the output content and description of relay protection devices, and to standardize the output of various types of protection information, State Grid Corporation of China has established a series of corporate standards that define the input and output formats for relay protection devices.
[0003] In order to test the operation of the relay protection device, staff are required to test the relay protection device. The current testing method is to use a relay protection tester and a main station of the power automation monitoring system to manually determine the corresponding test template according to the model of the relay protection device, then set the experimental parameters on the test template, and use the relay protection tester to apply analog quantities. However, since there are many manufacturers producing relay protection devices and the models of relay protection devices are different, if some models of relay protection devices do not have corresponding test templates or when there are new models of relay protection devices, it is inconvenient to test the above two relay protection devices, and the test efficiency becomes low. Summary of the Invention
[0004] In order to facilitate the testing of new relay protection devices or relay protection devices without test templates and improve testing efficiency, the present application provides a relay protection automatic verification method and system based on a universal test template.
[0005] In the first aspect, the present application provides a relay protection automation verification method based on a universal test template, which adopts the following technical solutions:
[0006] The relay protection automatic verification method of the universal test template includes:
[0007] Obtaining model information of the relay protection device to be tested, and determining whether the model information is in a preset model library, wherein the preset model library includes multiple existing models of relay protection devices;
[0008] If the model is not in the preset model library, a candidate model is determined from the preset model library based on the model information, where the candidate model is a model whose similarity to the model information reaches a preset threshold;
[0009] Obtaining a candidate test template for each to-be-selected model, and determining a to-be-selected test item in each candidate test template based on the model information and each to-be-selected model;
[0010] A test template for the relay protection device is determined based on the test items to be selected.
[0011] By adopting the above technical solution, the model information of the relay protection device to be tested is obtained. Since the preset model library stores signals of multiple existing relay protection devices, it is first determined whether the model information of the current protection device is in the preset model library. If not, it means that the current relay protection device is a new relay protection device or a protection device without a corresponding test template. Therefore, the model to be selected is determined from the preset model library based on the model information of the current relay protection device. The model to be selected is a model whose similarity with the model information of the current relay protection device reaches a preset threshold, that is, the similarity between the model information and the model in the preset model library is calculated to determine a closer model to be selected. The closeness of the model information to the model information indicates that the test scheme or logic of the relay protection device corresponding to the model to be selected is similar to that of the current relay protection device. Close or consistent, that is, universal, so the model to be selected is determined, and after the model to be selected is determined, the test template of each model to be selected, that is, the candidate test template, is obtained, and the available test items corresponding to the current relay protection device are determined from the candidate test template based on the model information and the same characters in the model to be selected. Finally, the test template of the current relay protection device can be determined based on the determined test items to be selected. By comparing with the models of multiple existing relay protection devices, the model to be selected that is more similar to the model information is determined, and then the test items to be selected are determined based on the candidate test template of the model to be selected, and the test template of the new relay protection device or the relay protection device without a test template is determined more accurately and conveniently, thereby improving the testing efficiency of the new relay protection device or the relay protection device without a test template.
[0012] In another possible implementation, determining a model to be selected from a preset model library based on the model information includes:
[0013] Determine from the preset model library a first model having a character segment with the same characters as the model information, and a number of characters in the character segment reaching a preset character threshold;
[0014] determining a first number of character segments for each first model, and a number of characters within each character segment;
[0015] determining a similarity between each first model and the model information based on the first number and the number of characters;
[0016] The to-be-selected model is determined from the first models based on the similarity.
[0017] In another possible implementation, determining the similarity between each first model and the model information based on the first quantity and the number of characters includes:
[0018] Determine the position of each character segment of each first model, and the number of items to be tested corresponding to each position;
[0019] Determine a second number of items to be tested corresponding to each character segment, and calculate the sum of all the second numbers;
[0020] Determining the total number of characters in all character segments, and calculating a first ratio of the total number of characters to the total number of characters in the model information;
[0021] The similarity between each first model and the model information is calculated based on the first quantity, the sum, the first ratio, and the respective corresponding coefficients.
[0022] In another possible implementation, determining the test items to be selected in each test template based on the model information and each to-be-selected model includes:
[0023] Determine a plurality of to-be-selected model sets based on the model information and the to-be-selected models, wherein all to-be-selected models in each to-be-selected model set have a common character segment with the model information;
[0024] Determine the first test item corresponding to the same character segment from the candidate test template of each candidate model in each candidate model set;
[0025] Determining a first number of occurrences of each first test item in the corresponding set of candidate models, and determining a second ratio of the first number of occurrences to the total number of candidate models in the set of candidate models;
[0026] If there is a first test item that reaches the first preset ratio threshold, the first test item that reaches the preset ratio threshold is determined as the test item to be selected.
[0027] In another possible implementation, determining the test template of the protection device based on the candidate test items includes:
[0028] Get the test data for each test item to be selected;
[0029] Determine the second occurrence number of each test data in the corresponding test item to be selected;
[0030] Determine the target test data with the second largest number of occurrences, and determine the target test data as the preset test data for each test item to be selected;
[0031] Determining the correspondence between the preset test data and the corresponding test items to be selected;
[0032] A test template for the protection device is determined based on the candidate test items, preset test data, and the corresponding relationship.
[0033] In another possible implementation, the method further includes:
[0034] determining a third ratio of a second number of occurrences of the preset test data to the total number of test items to be selected;
[0035] If there is preset test data whose third ratio does not reach the second preset ratio threshold, the preset test data that does not reach the second preset ratio threshold is marked.
[0036] In another possible implementation, the method further includes:
[0037] Obtaining feedback results of the relay protection device for the test template;
[0038] Mapping the feedback result to a preset form to obtain a feedback form, wherein the preset form is generated according to the test template;
[0039] The feedback form is output.
[0040] In a second aspect, the present application provides a relay protection automation verification system based on a universal test template, which adopts the following technical solutions:
[0041] Relay protection automation verification system based on universal test template, including:
[0042] a judgment module, configured to obtain model information of the relay protection device to be tested, and to judge whether the model information is in a preset model library, wherein the preset model library includes models of multiple existing relay protection devices;
[0043] a first determining module, configured to determine a candidate model from the preset model library based on the model information when the candidate model is not in the preset model library, the candidate model being a model whose similarity to the model information reaches a preset threshold;
[0044] A second determination module is configured to obtain a candidate test template for each to-be-selected model, and determine a to-be-selected test item in each candidate test template based on the model information and each to-be-selected model;
[0045] The third determining module is configured to determine a test template for the relay protection device based on the test items to be selected.
[0046] By adopting the above technical solution, the judgment template obtains the model information of the relay protection device to be tested. Since the preset model library stores signals of multiple existing relay protection devices, the judgment module first determines whether the model information of the current protection device is in the preset model library. If not, it means that the current relay protection device is a new relay protection device or a protection device without a corresponding test template. Therefore, the first determination module determines the to-be-selected model from the preset model library according to the model information of the current relay protection device. The to-be-selected model is a model whose similarity with the model information of the current relay protection device reaches a preset threshold, that is, the similarity between the model information and the model in the preset model library is calculated to determine a closer to-be-selected model. The closeness of the to-be-selected model to the model information indicates that the test scheme or logic of the relay protection device corresponding to the to-be-selected model is similar to that of the current relay protection device. It is similar or consistent, that is, universal, so the model to be selected is determined. After the model to be selected is determined, the second determination module obtains the test template of each model to be selected, that is, the candidate test template, and determines the available test items corresponding to the current relay protection device from the candidate test template based on the model information and the same characters in the model to be selected. Finally, the third determination module determines the test template of the current relay protection device based on the determined test items to be selected. By comparing with the models of multiple existing relay protection devices, a model to be selected that is more similar to the model information is determined. Then, the test items to be selected are determined based on the candidate test template of the model to be selected, and the test template of the new relay protection device or the relay protection device without a test template is determined more accurately and conveniently, thereby improving the testing efficiency of the new relay protection device or the relay protection device without a test template.
[0047] In another possible implementation, when the first determining module determines a model to be selected from a preset model library based on the model information, it is specifically configured to:
[0048] Determine from the preset model library a first model having a character segment with the same characters as the model information, and a number of characters in the character segment reaching a preset character threshold;
[0049] determining a first number of character segments for each first model, and a number of characters within each character segment;
[0050] determining a similarity between each first model and the model information based on the first number and the number of characters;
[0051] The to-be-selected model is determined from the first models based on the similarity.
[0052] In another possible implementation, when determining the similarity between each first model and the model information based on the first quantity and the number of characters, the first determining module is specifically configured to:
[0053] Determine the position of each character segment of each first model, and the number of items to be tested corresponding to each position;
[0054] Determine a second number of items to be tested corresponding to each character segment, and calculate the sum of all the second numbers;
[0055] Determining the total number of characters in all character segments, and calculating a first ratio of the total number of characters to the total number of characters in the model information;
[0056] The similarity between each first model and the model information is calculated based on the first quantity, the sum, the first ratio, and the respective corresponding coefficients.
[0057] In another possible implementation, when the second determining module determines the test items to be selected in each test template based on the model information and each to-be-selected model, it is specifically configured to:
[0058] Determine a plurality of to-be-selected model sets based on the model information and the to-be-selected models, wherein all to-be-selected models in each to-be-selected model set have a common character segment with the model information;
[0059] Determine the first test item corresponding to the same character segment from the candidate test template of each candidate model in each candidate model set;
[0060] Determining a first number of occurrences of each first test item in the corresponding set of candidate models, and determining a second ratio of the first number of occurrences to the total number of candidate models in the set of candidate models;
[0061] If there is a first test item that reaches the first preset ratio threshold, the first test item that reaches the preset ratio threshold is determined as the test item to be selected.
[0062] In another possible implementation, when determining the test template of the protection device based on the candidate test items, the third determination module is specifically configured to:
[0063] Get the test data for each test item to be selected;
[0064] Determine the second occurrence number of each test data in the corresponding test item to be selected;
[0065] Determine the target test data with the second largest number of occurrences, and determine the target test data as the preset test data for each test item to be selected;
[0066] Determining the correspondence between the preset test data and the corresponding test items to be selected;
[0067] A test template for the protection device is determined based on the candidate test items, preset test data, and the corresponding relationship.
[0068] In another possible implementation, the system further includes:
[0069] A fourth determining module, configured to determine a third ratio of a second number of occurrences of the preset test data to the total number of test items to be selected;
[0070] The marking module is configured to mark the preset test data that does not reach the second preset ratio threshold when there is preset test data whose third ratio does not reach the second preset ratio threshold.
[0071] In another possible implementation, the system further includes:
[0072] A result acquisition module, used to obtain the feedback result of the relay protection device for the test template;
[0073] A mapping module, configured to map the feedback result to a preset form to obtain a feedback form, wherein the preset form is generated according to a test template;
[0074] An output module is used to output the feedback form.
[0075] In a third aspect, the present application provides a relay protection tester, which adopts the following technical solution:
[0076] A relay protection tester, comprising:
[0077] at least one processor;
[0078] Memory;
[0079] At least one application, wherein at least one application is stored in a memory and configured to be executed by at least one processor, and at least one is configured to: execute the relay protection automation verification method based on a universal test template shown in any possible implementation of the first aspect.
[0080] In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solution:
[0081] A computer-readable storage medium, when the computer program is executed in a computer, causes the computer to execute the relay protection automatic verification method based on a universal test template as described in any one of the first aspects.
[0082] In summary, this application includes at least one of the following beneficial technical effects:
[0083] Obtain the model information of the relay protection device to be tested. Since the preset model library stores signals of multiple existing relay protection devices, first determine whether the model information of the current protection device is in the preset model library. If not, it means that the current relay protection device is a new relay protection device or a protection device without a corresponding test template. Therefore, based on the model information of the current relay protection device, determine the model to be selected from the preset model library. The model to be selected is the model whose similarity with the model information of the current relay protection device reaches a preset threshold, that is, calculate the similarity between the model information and the model in the preset model library to determine a closer model to be selected. The closeness of the model to be selected and the model information indicates that the test scheme or logic of the relay protection device corresponding to the model to be selected is similar, close or consistent with the current relay protection device. , that is, universal, so the model to be selected is determined, and after the model to be selected is determined, the test template of each model to be selected is obtained, that is, the candidate test template, and the available test items corresponding to the current relay protection device are determined from the candidate test template according to the model information and the same characters in the model to be selected, and finally the test template of the current relay protection device is determined according to the determined test items to be selected, and the model to be selected that is more similar to the model information is determined by comparing with the models of multiple existing relay protection devices, and then the test items to be selected are determined according to the candidate test template of the model to be selected, and the test template of the new relay protection device or the relay protection device without a test template is determined more accurately and conveniently, thereby improving the testing efficiency of the new relay protection device or the relay protection device without a test template. BRIEF DESCRIPTION OF THE DRAWINGS
[0084] Figure 1 It is a flow chart of the relay protection automation verification method based on the universal test template in an embodiment of the present application.
[0085] Figure 2 It is a structural diagram of a relay protection automation verification system based on a universal test template in an embodiment of the present application.
[0086] Figure 3 It is a structural diagram of a relay protection tester according to an embodiment of the present application. DETAILED DESCRIPTION
[0087] The present application is further described in detail below with reference to the accompanying drawings.
[0088] After reading this specification, those skilled in the art may make non-creative modifications to this embodiment as needed, but such modifications are protected by patent law as long as they fall within the scope of the claims of this application.
[0089] To make the purpose, technical solutions, and advantages of the embodiments of this application more clear, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0090] In this document, the term "and / or" simply describes a relationship between related objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A exists alone, A and B exist simultaneously, or B exists alone. Furthermore, the character " / " in this document, unless otherwise specified, generally indicates an "or" relationship between the related objects.
[0091] The embodiments of the present application are described in further detail below with reference to the accompanying drawings.
[0092] The embodiment of the present application provides a relay protection automatic verification method based on a universal test template, which is executed by a relay protection tester, such as Figure 1 As shown, the method includes steps S101, S102, S103 and S104, wherein:
[0093] S101, obtaining model information of a relay protection device to be tested, and determining whether the model information is in a preset model library.
[0094] The preset model library includes multiple existing models of relay protection devices.
[0095] In the embodiment of the present application, after the relay protection device and the relay protection tester are connected via a wire, the relay protection tester can send an acquisition instruction to the relay protection device, so that the relay protection device sends its own model information and other information to the relay protection tester after receiving the acquisition instruction. Alternatively, after the wire connection is established, the relay protection device automatically sends its own data, such as the model information, to the relay protection tester.
[0096] Relay protection devices include various types, such as line protection devices, busbar differential protection devices, main transformer protection devices, and generator protection devices. Model information includes the device type, manufacturer, sampling method, tripping method, function code, and other information. For example, the model information for a relay protection device is "PSL-603UA-DA-G-RLDYK," which indicates "intelligent station protection device for double-busbar and 3 / 2 wiring (220kV and above systems)." DA-G indicates State Grid intelligent device, SV sampling, and GOOSE tripping; RLDYK indicates a five-digit function code.
[0097] After obtaining the model information, the relay protection tester calls a preset model library, which stores the model information of multiple existing relay protection devices and other data of the relay protection tester. The relay protection tester matches the model information with the model of each existing relay protection device in the preset model library to determine whether the model information is in the preset model library.
[0098] S102: If the model is not in the preset model library, a model to be selected is determined from the preset model library based on the model information.
[0099] The model to be selected is a model whose similarity with the model information reaches a preset threshold.
[0100] In the embodiment of the present application, if the relay protection tester determines that the model information is located in the preset model library, it means that the relay protection device to be tested is an existing device. The relay protection tester can directly call the test template for the model in the preset model library. The preset model library also stores test templates for various existing protection devices. The test template includes test items, test data corresponding to the test items, and settings for the relay protection device.
[0101] If the relay protection tester determines that the model information is not in the preset model library, it means that the relay protection device is a new product or the protection device is not in the preset model library, that is, no test template exists. However, since there are similarities and the same test logic between relay protection devices, the relay protection tester calculates the similarity between the model information of the current protection device and the models in the preset model library, and thus determines the candidate model whose similarity reaches the preset similarity threshold. The preset similarity threshold serves as the dividing point for whether it is relatively similar. Reaching the preset similarity threshold indicates that the candidate model is relatively close to the model of the current protection device and may have similarities or the same test plan and logic.
[0102] S103: Obtain a candidate test template for each to-be-selected model, and determine a to-be-selected test item in each candidate test template based on the model information and each to-be-selected model.
[0103] In the embodiment of the present application, after the relay protection tester determines the model to be selected, in order to determine the test template of the current protection device based on the test template of the model to be selected, the relay protection tester obtains the test template of each model to be selected, that is, the candidate test template. The candidate test template can be stored in a preset model library or in a cloud server so that the relay protection tester can obtain it. After obtaining the candidate test template, since there are similarities between the model to be selected and the model information, it means that the candidate test template contains the part required for testing the current protection device. Therefore, the relay protection tester can determine the test items to be selected required for testing the current protection device based on the candidate test template of the model to be selected.
[0104] S104: Determine a test template for the relay protection device based on the test items to be selected.
[0105] For the embodiment of the present application, after the relay protection tester determines the test items to be selected, it can map the test items to be selected to the preset template, and each test item to be selected is mapped to the position in the preset template in sequence, thereby obtaining the test template of the current protection device. By calculating the similarity between the model information and each model in the preset model library, the model to be selected that reaches the similarity threshold is determined, and the candidate test template of each model to be selected is obtained. Then, the available test items to be selected in each candidate test template are determined based on the model to be selected and the model information. Finally, the test template of the current protection device can be determined based on the test items to be selected. This makes it more convenient and accurate for the staff to determine the test template of the relay protection device based on the existing test template when testing a new relay protection device or a relay protection device for which a test template does not exist. The staff does not need to set the test template independently, thereby improving the test efficiency.
[0106] In a possible implementation of the embodiment of the present application, in step S102, a model to be selected is determined from a preset model library based on the model information, specifically including step S1021 (not shown in the figure), step S1022 (not shown in the figure), step S1023 (not shown in the figure), and step S1024 (not shown in the figure), wherein:
[0107] S1021: Determine from a preset model library a first model having a character segment with the same characters as the model information, and the number of characters in the character segment reaches a preset character threshold.
[0108] For the embodiment of the present application, the relay protection tester compares each character of the model information with each character of the model in the preset model library one by one, so as to determine whether there is a character segment with the same characters in the model in the preset model library. The preset character threshold is used as a demarcation point with a large number of consecutive identical characters, so the relay protection tester filters the character segments with the same characters. For example, the preset character threshold is 2, so the relay protection tester filters out the character segments with 2 identical characters. If a model has a character segment with the same characters as the model information, and the number of such character segments is at least one, the model is determined to be the first model. The existence of the character segment with the same characters in the first model indicates that there is a part in the test template of the protection device of the first model that is available for the current protection device.
[0109] S1022: Determine the first number of character segments of each first model and the number of characters in each character segment.
[0110] For the embodiment of the present application, after the relay protection tester determines the first model, the more character segments there are in the first model, the closer it is to the model information of the current protection device. The more characters there are in each character segment, the closer it is to the model information of the current protection device. That is, the first number of character segments and the number of characters in each character segment are both important factors affecting whether the first model is closer to the current protection device. Therefore, the relay protection tester counts the number of character segments of each first model to obtain the first number, and counts the characters in each character segment to obtain the number of characters in each character segment.
[0111] S1023: Determine the similarity between each first model and the model information based on the first quantity and the number of characters.
[0112] In the embodiment of the present application, after the relay protection tester determines the character segments with the same characters, it counts the character segments of each first model to obtain a first number. A larger first number indicates a greater similarity to the model information of the current protection device. The relay protection tester determines the number of characters in each character segment. The larger the number of identical characters in each character segment, the more similar it is to the model information of the current protection device. Therefore, after the relay protection tester determines the first number and the number of characters, it can comprehensively determine the similarity between each first model and the model information of the current protection device more accurately.
[0113] S1024: Determine a model to be selected from the first models based on the similarity.
[0114] For the embodiment of the present application, after the relay protection tester determines the similarity of each first model, it can compare and screen the similarity through a preset similarity threshold. Reaching the preset similarity threshold indicates that the model information of the current protection device is relatively close, thereby determining the first model that reaches the preset similarity threshold, that is, the model to be selected. The preset similarity threshold can be set by the staff and stored in the storage medium of the relay protection tester. By determining the character segments with the same characters, and comprehensively determining the similarity of each first model based on the first number of character segments and the number of characters in each character segment, it is more accurate, and it is more convenient and accurate to screen the models to be selected through the preset similarity threshold.
[0115] In a possible implementation of the embodiment of the present application, in step S1023, determining the similarity between each first model and the model information based on the first quantity and the number of characters specifically includes step Sa (not shown in the figure), step Sb (not shown in the figure), step Sc (not shown in the figure), and step Sd (not shown in the figure), wherein:
[0116] Sa, determine the position of each character segment of each first model.
[0117] Among them, each position corresponds to the number of items to be tested.
[0118] In the embodiment of the present application, after the relay protection tester determines the character segment of each first model, it determines the position of each character segment in the first model, such as determining the position of the first character and the last character in each character segment in the first model, and these two positions represent the position of the character segment. Different items to be tested in the test template of the first model correspond to character segments in different positions, so character segments in different positions correspond to different items to be tested in the test template, and the number of items to be tested is also different.
[0119] Sb: Determine a second number of items to be tested corresponding to each character segment, and calculate the sum of all the second numbers.
[0120] In the embodiment of the present application, the relay protection tester determines the position of each character segment and thereby determines a second quantity of the number of items in each character segment, and then sums the second quantities to obtain a total second quantity. A larger total second quantity of the first model test template indicates a larger number of test items that can be used by the current protection device, and a more suitable template is used as a candidate template for determining the test template for the current protection device.
[0121] Sc, determining the total number of characters in all character segments, and calculating a first ratio of the total number of characters to the total number of characters in the model information.
[0122] In the embodiment of the present application, the relay protection tester determines the character segments with the same characters corresponding to each first model, and then counts the characters in each character segment and sums them up to obtain the total number of characters. The greater the total number of characters, the closer and more similar the model information of the current protection device is to the first model. Therefore, the relay protection tester determines a first ratio of the total number of characters to the total number of characters in the model information of the current protection device. The larger the first ratio of the first model, the closer and more similar it is to the model information of the current protection device.
[0123] Sd, calculating the similarity between each first model and the model information based on the first quantity, the sum, the first ratio, and the respective corresponding coefficients.
[0124] For the embodiment of the present application, in summary, the first number of character segments with the same characters in the first model, the sum of the second number of items to be tested corresponding to all character segments, and the first ratio are all key factors affecting the similarity between the first model and the model information of the current protection device, and the degree of influence on the similarity is different. The staff can set different coefficients for the above three through the visual operation interface and store them in the storage medium of the relay protection tester. After the relay protection tester determines the first number, the sum, and the first ratio, it calls the corresponding coefficients for weighted calculation to obtain a score, which represents the similarity. It is more accurate to comprehensively determine the similarity by the first number of character segments with the same characters, the sum of the items to be tested, and the first ratio.
[0125] In one possible implementation of the embodiment of the present application, in step S103, determining the test items to be selected in each test template based on the model information and each to-be-selected model specifically includes:
[0126] S1031: Determine a plurality of candidate model sets based on the model information and the candidate models.
[0127] All the candidate models in each candidate model set have a same character segment as the model information.
[0128] For the embodiment of the present application, there may be multiple candidate models in the preset model library that have the same character segments as the model information of the current protection device. Therefore, the relay protection tester generates a set for each character segment based on all the character segments that have appeared, namely, the candidate model set. Each candidate model in the candidate model set has the same character segment as the model information of the current protection device.
[0129] S1032: Determine the first test item corresponding to the same character segment from the candidate test template of each candidate model in each candidate model set.
[0130] For the embodiment of the present application, each candidate model in the candidate model set has the same character segment, but the test templates corresponding to these candidate models may be different, that is, the character segment of the same character corresponds to different test items in the test templates of different protection devices. Therefore, the relay protection tester selects the first test item at the same character segment in the test template of each candidate model in the set, that is, the candidate test template.
[0131] S1033 , determining a first occurrence number of each first test item in the corresponding set of candidate models, and determining a second ratio of the first occurrence number to the total number of candidate models in the set of candidate models.
[0132] In the embodiment of the present application, after the relay protection tester determines the first test item, it counts the number of times each first test item appears in the set to obtain a first occurrence count, and then determines a second ratio of the first occurrence count to the total number of all candidate models in the set. The larger the second ratio of a first test item, the more suitable the first test item is for testing multiple candidate protection device models, and therefore, the higher the likelihood that the first test item will be used in testing the current protection device.
[0133] S1034: If there is a first test item that reaches the first preset ratio threshold, determine the first test item that reaches the preset ratio threshold as a test item to be selected.
[0134] In the embodiment of the present application, a first preset ratio threshold is stored in the relay protection tester, and the first preset ratio threshold serves as a dividing point for whether the second ratio is larger. After the relay protection tester determines the second ratio of each first test item, it compares the second ratio with the first preset ratio threshold. If there is a first test item that reaches the first preset ratio threshold, then such a first test item is more likely to be adapted to the current protection device, and such a first test item can be determined as a candidate test item. By determining the number of occurrences of each first test item and determining the second ratio, it is more accurate to determine the candidate test item based on the second ratio.
[0135] In a possible implementation of the embodiment of the present application, determining a test template for the protection device based on the test items to be selected in step S104 specifically includes step S1041 (not shown in the figure), step S1042 (not shown in the figure), step S1043 (not shown in the figure), step S1044 (not shown in the figure), and step S1045 (not shown in the figure), wherein:
[0136] S1041: Obtain test data for each test item to be selected.
[0137] In the embodiment of the present application, after the relay protection tester determines the test items to be selected, each of the test items to be selected also has corresponding test data. The test data is data such as numerical values set by other staff members when performing testing operations. The test data corresponding to each test item to be selected can be stored in a preset model library and has a corresponding relationship with the test items in the test template of each test model to be selected. Therefore, the relay protection tester can obtain the test data for each test item to be selected through the preset model library.
[0138] S1042: Determine the second occurrence number of each test data in the corresponding test item to be selected.
[0139] In the embodiment of the present application, since the test items to be selected appear in different test models, the test data set for the same test item in the test operation of different protection devices may be different. Therefore, the relay protection tester determines the second occurrence number of each test data in the corresponding test item to be selected. The greater the second occurrence number, the more common the test data is in the corresponding test item to be selected, and the greater the possibility that the same test data will be used when testing the current protection device.
[0140] S1043: Determine the target test data with the second largest number of occurrences, and determine the target test data as the preset test data for each test item to be selected.
[0141] In the embodiment of the present application, after determining the second occurrence count of each test data item, the relay protection tester sorts the second occurrence counts to determine the target test data item with the largest second occurrence count. That is, the target test data item is determined as the preset test data item for the corresponding test item to be selected, thereby facilitating the use of the target test data item in subsequent testing of the current protection device.
[0142] S1044: Determine the correspondence between the preset test data and the corresponding test items to be selected.
[0143] For the embodiment of the present application, the relay protection tester then determines the correspondence between the preset test data and the corresponding test items to be selected, maps the preset test data and the test items to be selected to obtain the correspondence and stores it in the storage medium of the relay protection tester or the cloud server.
[0144] S1045: Determine a test template for the protection device based on the test items to be selected, the preset test data, and the corresponding relationship.
[0145] In the embodiment of the present application, after the relay protection tester determines the test items to be selected, the preset test data corresponding to the test items to be selected, and the corresponding relationship between the two, the test items to be selected, the preset test data, and the corresponding relationship can be mapped to the preset template. For example, the test items to be selected can be mapped to the preset template in the order of the character positions corresponding to the test items to be selected, and then the preset test data can be mapped according to the corresponding relationship. It is more accurate and convenient to determine the preset test data that is most likely to be used by the current protection device through the test data used for each test item to be selected, and then determine the test template of the current protection device based on the mapping of the test items to the corresponding preset test data to the preset template.
[0146] In a possible implementation of the embodiment of the present application, step S1045 further includes step S105 (not shown in the figure) and step S106 (not shown in the figure), wherein:
[0147] S105: Determine a third ratio of a second occurrence number of the preset test data to the total number of test items to be selected.
[0148] S106: If there is preset test data whose third ratio does not reach the second preset ratio threshold, mark the preset test data that does not reach the second preset ratio threshold.
[0149] For the embodiment of the present application, although the preset test data is the test data with the second largest number of occurrences, the proportion of the preset test data may be small, and there may be other test data whose second number of occurrences is less than but relatively close to the second number of occurrences of the preset test data. Therefore, when this happens, it is impossible to accurately state that the preset test data is most likely to be usable by the current protection device. Therefore, the relay protection tester determines the third ratio of the second number of occurrences of the preset test data to the total number of corresponding test items to be selected.
[0150] The second preset ratio threshold serves as the dividing point for whether the third ratio is larger. The relay protection tester compares the third ratio of the preset test data of each test item with the second preset ratio threshold. If there is preset test data whose third ratio does not reach the second preset ratio threshold, it means that the accuracy of such preset test data as the test data of the current protection device is not high enough. Therefore, the relay protection tester marks the preset test data that does not reach the second preset ratio threshold. Therefore, when subsequent staff use the determined test template of the current protection device for testing, the relay protection tester controls the display device to display the test template to display the marked preset test data differently, such as bolding the marked preset test data, displaying it in other colors, highlighting it, etc., so that the staff can more intuitively see the preset test data with less accuracy, and then modify it.
[0151] In other embodiments, the relay protection tester can also mark the test items corresponding to the preset test data, and then bold, display in other colors, highlight, etc. the marked test items when the test template is subsequently displayed. It is also possible to add other test data corresponding to the test items to the preset test data marked in the test template of the current protection device, and when the test template is displayed on the display device, other test data that has appeared in the test item is displayed next to the marked preset test data, thereby facilitating reference and modification by the staff.
[0152] In a possible implementation of the embodiment of the present application, step S104 further includes step S107 (not shown in the figure), step S108 (not shown in the figure), and step S109 (not shown in the figure), wherein:
[0153] S107, obtaining feedback results of the relay protection device for the test template.
[0154] For the embodiment of the present application, when the staff uses the determined test template to test the current relay protection device, the data generated by the current relay protection device for the test template is fed back to the relay protection tester, so that the relay protection tester obtains the feedback results.
[0155] S108: Map the feedback result to a preset form to obtain a feedback form.
[0156] Among them, the preset form is generated based on the test template.
[0157] In the embodiment of the present application, after the relay protection tester determines the test template for the current relay protection device, it generates a prediction form based on the order of each test item in the test template. The relay protection tester then maps the feedback results to the corresponding test items in the preset form based on the test items corresponding to the feedback results, thereby generating a feedback form.
[0158] Specifically, the feedback form can be in Word format, Excel format, or other formats.
[0159] S109: Output feedback form.
[0160] In the embodiment of the present application, after the relay protection tester determines the feedback form, it can control the display device to display the feedback form, or send the feedback form to the terminal device of the staff, or upload the feedback form to the cloud server. The relay protection tester can also be connected to a printing device to print out the feedback form by controlling the printing device. In the above manner, the feedback results are mapped to the preset form to obtain the feedback form, and finally the feedback form is output to facilitate the staff to view the test results.
[0161] The above embodiment introduces the relay protection automation verification method based on the universal test template from the perspective of the method flow. The following embodiment introduces the relay protection automation verification system based on the universal test template from the perspective of the virtual module or virtual unit. For details, please see the following embodiment.
[0162] The embodiment of the present application provides a relay protection automation verification system 20 based on a universal test template, such as Figure 2 As shown, the relay protection automation verification system 20 based on the universal test template may specifically include:
[0163] The judgment module 201 is used to obtain the model information of the relay protection device to be tested and determine whether the model information is in a preset model library, which includes multiple existing models of relay protection devices;
[0164] A first determining module 202 is configured to determine a candidate model from the preset model library based on the model information when the candidate model is not in the preset model library, where the candidate model is a model whose similarity to the model information reaches a preset threshold;
[0165] The second determining module 203 is configured to obtain a candidate test template for each to-be-selected model, and determine the to-be-selected test items in each candidate test template based on the model information and each to-be-selected model;
[0166] The third determining module 204 is configured to determine a test template for the relay protection device based on the test items to be selected.
[0167] The embodiment of the present application discloses a relay protection automation verification system 20 based on a universal test template, wherein the judgment template 201 obtains the model information of the relay protection device to be tested. Since the preset model library stores signals of multiple existing relay protection devices, the judgment module 201 first determines whether the model information of the current protection device is in the preset model library. If not, it means that the current relay protection device is a new relay protection device or a protection device without a corresponding test template. Therefore, the first determination module 202 determines the to-be-selected model from the preset model library according to the model information of the current relay protection device. The to-be-selected model is a model whose similarity with the model information of the current relay protection device reaches a preset threshold, that is, the similarity between the model information and the model in the preset model library is calculated to determine a relatively close to-be-selected model. The closeness of the to-be-selected model to the model information indicates that the test method of the relay protection device corresponding to the to-be-selected model is good. The scheme or logic is similar to or consistent with the current relay protection device, that is, it is universal, so the model to be selected is determined. After the model to be selected is determined, the second determination module 203 obtains the test template of each model to be selected, that is, the candidate test template, and determines the available test items corresponding to the current relay protection device from the candidate test template based on the model information and the same characters in the model to be selected. Finally, the third determination module 204 determines the test template of the current relay protection device based on the determined test items to be selected. By comparing with the models of multiple existing relay protection devices, a model to be selected that is more similar to the model information is determined, and then the test items to be selected are determined based on the candidate test template of the model to be selected, and the test template of the new relay protection device or the relay protection device without a test template is determined more accurately and conveniently, thereby improving the testing efficiency of the new relay protection device or the relay protection device without a test template.
[0168] In a possible implementation of the embodiment of the present application, when the first determination module 202 determines a model to be selected from a preset model library based on the model information, it is specifically configured to:
[0169] Determine from the preset model library the first model having a character segment with the same characters as the model information and a number of characters in the character segment reaching a preset character threshold;
[0170] determining a first number of character segments for each first model, and a number of characters within each character segment;
[0171] determining a similarity between each first model and the model information based on the first quantity and the number of characters;
[0172] A model to be selected is determined from the first models based on the similarity.
[0173] In one possible implementation of the embodiment of the present application, when the first determining module 202 determines the similarity between each first model and the model information based on the first quantity and the number of characters, it is specifically configured to:
[0174] Determine the position of each character segment of each first model, and the number of items to be tested corresponding to each position;
[0175] Determine a second number of items to be tested corresponding to each character segment, and calculate the sum of all the second numbers;
[0176] Determining the total number of characters in all character segments, and calculating a first ratio of the total number of characters to the total number of characters in the model information;
[0177] The similarity between each first model and the model information is calculated based on the first quantity, the sum, the first ratio, and the respective corresponding coefficients.
[0178] In one possible implementation of the embodiment of the present application, when the second determining module 203 determines the test items to be selected in each test template based on the model information and each to-be-selected model, it is specifically configured to:
[0179] Determine multiple candidate model sets based on the model information and the candidate models, wherein all the candidate models in each candidate model set have a common character segment with the model information;
[0180] Determine the first test item corresponding to the same character segment from the candidate test template of each candidate model in each candidate model set;
[0181] Determining a first number of occurrences of each first test item in the corresponding set of candidate models, and determining a second ratio of the first number of occurrences to the total number of candidate models in the set of candidate models;
[0182] If there is a first test item that reaches the first preset ratio threshold, the first test item that reaches the preset ratio threshold is determined as a test item to be selected.
[0183] In one possible implementation of the embodiment of the present application, when the third determining module 204 determines the test template of the protection device based on the test items to be selected, it is specifically configured to:
[0184] Get the test data for each test item to be selected;
[0185] Determine the second occurrence number of each test data in the corresponding test item to be selected;
[0186] Determine the target test data with the second largest number of occurrences, and determine the target test data as the preset test data for each test item to be selected;
[0187] Determine the correspondence between the preset test data and the corresponding test items to be selected;
[0188] A test template for the protection device is determined based on the test items to be selected, the preset test data, and the corresponding relationships.
[0189] In a possible implementation of the embodiment of the present application, the system 20 further includes:
[0190] A fourth determining module, configured to determine a third ratio of a second number of occurrences of the preset test data to the total number of test items to be selected;
[0191] The marking module is configured to mark the preset test data that does not reach the second preset ratio threshold when there is preset test data whose third ratio does not reach the second preset ratio threshold.
[0192] In a possible implementation of the embodiment of the present application, the system 20 further includes:
[0193] A result acquisition module is used to obtain the feedback results of the relay protection device for the test template;
[0194] A mapping module is used to map the feedback results to a preset form to obtain a feedback form. The preset form is generated according to the test template;
[0195] Output module, used to output feedback form.
[0196] In the embodiment of the present application, the first determination module 202, the second determination module 203, the third determination module 204 and the fourth determination module can be the same determination module, different determination modules, or different determination modules, which is not limited here.
[0197] Technicians in the relevant field can clearly understand that for the convenience and simplicity of description, the specific working process of the relay protection automation verification system 20 based on the universal test template described above can refer to the corresponding process in the aforementioned method embodiment and will not be repeated here.
[0198] The embodiment of the present application provides a relay protection tester, such as Figure 3 As shown, Figure 3The relay protection tester 30 shown includes a processor 301 and a memory 303. The processor 301 and the memory 303 are connected, for example, via a bus 302. Optionally, the relay protection tester 30 may further include a transceiver 304. It should be noted that in actual applications, the number of transceivers 304 is not limited to one, and the structure of the relay protection tester 30 does not constitute a limitation on the embodiments of the present application.
[0199] Processor 301 can be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic device, transistor logic device, hardware component, or any combination thereof. It can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 301 can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0200] Bus 302 may include a path for transmitting information between the above components. Bus 302 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. Bus 302 may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, Figure 3 Only one thick line is used in the diagram, but it does not mean that there is only one bus or one type of bus.
[0201] The memory 303 may be a ROM (Read Only Memory) or other type of static storage device that can store static information and instructions, a RAM (Random Access Memory) or other type of dynamic storage device that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.
[0202] The memory 303 is used to store application code for executing the solution of the present application, and the execution is controlled by the processor 301. The processor 301 is used to execute the application code stored in the memory 303 to implement the content shown in the above method embodiment.
[0203] Relay protection testers include, but are not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), and in-vehicle terminals (e.g., in-vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Servers are also possible. Figure 3 The relay protection tester shown is merely an example and should not limit the functions and scope of use of the embodiments of the present application.
[0204] An embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer-readable storage medium is run on a computer, the computer can execute the corresponding contents of the aforementioned method embodiment. Compared with the related art, in the embodiment of the present application, the model information of the relay protection device to be tested is obtained. Since the preset model library stores the signals of multiple existing relay protection devices, it is first determined whether the model information of the current protection device is in the preset model library. If it does not exist, it means that the current relay protection device is a new relay protection device or a protection device without a corresponding test template. Therefore, according to the model information of the current relay protection device, a candidate model is determined from the preset model library. The candidate model is a model whose similarity with the model information of the current relay protection device reaches a preset threshold, that is, the similarity between the model information and the model in the preset model library is calculated to determine a candidate model that is closer. The proximity of the candidate model to the model information indicates that the test scheme or logic of the relay protection device corresponding to the candidate model is similar to that of the current relay protection device. Similar or consistent, that is, universal, so the model to be selected is determined, and after the model to be selected is determined, the test template of each model to be selected, that is, the candidate test template, is obtained, and the available test items corresponding to the current relay protection device are determined from the candidate test template based on the model information and the same characters in the model to be selected. Finally, the test template of the current relay protection device can be determined based on the determined test items to be selected. By comparing with the models of multiple existing relay protection devices, the model to be selected that is more similar to the model information is determined, and then the test items to be selected are determined based on the candidate test template of the model to be selected, and the test template of the new relay protection device or the relay protection device without a test template is determined more accurately and conveniently, thereby improving the testing efficiency of the new relay protection device or the relay protection device without a test template.
[0205] It should be understood that although the steps in the flowcharts of the accompanying drawings are shown in sequence as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some of the steps in the flowcharts of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
[0206] The above description is only part of the implementation methods of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A relay protection automation verification method based on a universal test template, characterized in that: include: Obtain model information of the relay protection device to be tested, and determine whether the model information is in a preset model library, the preset model library including multiple existing relay protection device models; if it is not in the preset model library, determine a candidate model from the preset model library based on the model information, the candidate model being a model whose similarity with the model information reaches a preset threshold; obtain a candidate test template for each candidate model, and determine a candidate test item in each candidate test template based on the model information and each candidate model; Determining a test template for the relay protection device based on the test items to be selected; The method of determining the model to be selected from the preset model library based on the model information includes: determining from the preset model library a first model having a character segment with the same characters as the model information and the number of characters in the character segment reaching a preset character threshold; determining the first number of character segments of each first model and the number of characters in each character segment; determining the similarity between each first model and the model information based on the first number and the number of characters; determining the model to be selected from the first model based on the similarity; the method of determining the similarity between each first model and the model information based on the first number and the number of characters includes: determining the position of each character segment of each first model, and the number of items to be tested corresponding to each position; determining the second number of the number of items to be tested corresponding to each character segment, and calculating the sum of all the second numbers; determining the total number of characters of all character segments, and calculating the first ratio of the total number of characters to the total number of characters of the model information; calculating the similarity between each first model and the model information based on the first number, the sum, the first ratio and the corresponding coefficients.
2. The relay protection automatic verification method based on the universal test template according to claim 1 is characterized in that: The method of determining the test items to be selected in each test template based on the model information and each to-be-selected model includes: determining multiple to-be-selected model sets based on the model information and the to-be-selected models, wherein all the to-be-selected models in each to-be-selected model set have a same character segment as the model information; determining the first test item corresponding to the same character segment from the candidate test template of each to-be-selected model in each to-be-selected model set; determining the first number of occurrences of each first test item in the corresponding to-be-selected model set, and determining the second ratio of the first number of occurrences to the total number of to-be-selected models in the to-be-selected model set; if there is a first test item that reaches a first preset ratio threshold, then determining the first test item that reaches the preset ratio threshold as the to-be-selected test item.
3. The relay protection automatic verification method based on the universal test template according to claim 2 is characterized in that: The method of determining the test template of the protection device based on the test items to be selected includes: obtaining test data for each test item to be selected; determining the second number of occurrences of each test data in the corresponding test item to be selected; determining the target test data with the largest second number of occurrences, and determining the target test data as the preset test data for each test item to be selected; determining the corresponding relationship between the preset test data and the corresponding test item to be selected; and determining the test template of the protection device based on the test items to be selected, the preset test data, and the corresponding relationship.
4. The relay protection automatic verification method based on the universal test template according to claim 3 is characterized in that: The method also includes: determining a third ratio of a second occurrence number of the preset test data to the total number of test items to be selected; if there is preset test data whose third ratio does not reach a second preset ratio threshold, marking the preset test data that does not reach the second preset ratio threshold.
5. The relay protection automatic verification method based on a universal test template according to claim 1 is characterized in that: The method further includes: obtaining feedback results of the relay protection device for the test template; mapping the feedback results to a preset form to obtain a feedback form, wherein the preset form is generated according to the test template; and outputting the feedback form.
6. The relay protection automation verification system based on the universal test template is characterized by: include: a judgment module, configured to obtain model information of the relay protection device to be tested, and to judge whether the model information is in a preset model library, wherein the preset model library includes models of multiple existing relay protection devices; A first determination module is used to determine a candidate model from the preset model library based on the model information when the candidate model is not in the preset model library, the candidate model being a model whose similarity with the model information reaches a preset threshold; wherein, determining the candidate model from the preset model library based on the model information includes determining from the preset model library a first model having a character segment with the same characters as the model information, and the number of characters in the character segment reaches a preset character threshold; determining a first number of character segments of each first model, and the number of characters in each character segment; determining the similarity of each first model to the model information based on the first number and the number of characters degree; determining the to-be-selected model from the first model based on the similarity; determining the similarity between each first model and the model information based on the first quantity and the number of characters, including determining the position of each character segment of each first model, and the number of items to be tested corresponding to each position; determining a second number of the number of items to be tested corresponding to each character segment, and calculating the sum of all the second numbers; determining the total number of characters in all character segments, and calculating a first ratio of the total number of characters to the total number of characters in the model information; calculating the similarity between each first model and the model information based on the first quantity, the sum, the first ratio, and the respective corresponding coefficients; A second determination module is configured to obtain a candidate test template for each to-be-selected model, and determine a to-be-selected test item in each candidate test template based on the model information and each to-be-selected model; The third determining module is configured to determine a test template for the relay protection device based on the test items to be selected.
7. A relay protection tester, characterized in that: It includes: at least one processor; Memory; At least one application, wherein the at least one application is stored in the memory and configured to be executed by the at least one processor, and the at least one application is used to execute the relay protection automation verification method based on the universal test template according to any one of claims 1 to 5.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed in a computer, the computer is caused to execute the relay protection automatic verification method based on a universal test template according to any one of claims 1 to 5.
Citation Information
Patent Citations
Data verification and automatic configuration method for relay protection model
CN109473945A
Parameter sharing method and system for relay protection setting, terminal and storage medium
CN113097965A