Method and system for generating and diagnosing protocol consistency PIXIT file
By establishing a mapping relationship between relay protection device model files and PIXIT files, diagnostic PIXIT files are generated and verified, solving the problem of batch generation and verification. This achieves automated and intelligent PIXIT file generation and diagnosis, improving testing efficiency and accuracy.
Patent Information
- Application Number
- CN202410847915.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2025-02-21
AI Technical Summary
Existing technologies lack methods for batch generation and correctness verification of PIXIT files, which leads to testing processes being affected by errors in file entry.
By selecting a PIXIT file template and inputting a sample set for training, a mapping relationship between the relay protection device model file and the correct PIXIT file is established, generating the PIXIT file and performing verification and diagnosis, confirming or modifying manually filled-in files.
It achieves fully automated generation and diagnosis of PIXIT files, reducing manpower consumption, saving time, improving testing efficiency, and reducing the impact of file entry errors on the testing process.
Smart Images

Figure CN119494332A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power system protection automation, and in particular to a protocol consistency PIXIT file generation and diagnosis method and system. Background Art
[0002] In the field of automated testing, PIXIT files are widely used as initialization supplementary instructions outside of the model, to describe the optional functions of the device, the specific scope of the precise test, and the parameters of some test contents. Before the relay protection device is tested for consistency of the MMS protocol or the CMS protocol, a PIXIT declaration file is required. Due to the wide variety of device types to be tested by device manufacturers, testers need to spend a lot of time filling out the declaration file, and it is common for PIXIT files to be filled out incorrectly. In the actual testing process, a large part of the failure of the test case is caused by incorrect filling out of the PIXIT file. At present, traditional solutions lack methods for batch generation and correctness verification of PIXIT files. Summary of the invention
[0003] The purpose of the present invention is to solve at least one technical problem in the background technology and to provide a method and system for generating and diagnosing a protocol-consistent PIXIT file.
[0004] To achieve the above object, the present invention provides a protocol consistency PIXIT file generation and diagnosis method, comprising:
[0005] Select the PIXIT file template and enter the sample set under that template;
[0006] Train the sample set and establish the mapping relationship between the relay protection device model file and the correct PIXIT file;
[0007] Inputting a relay protection device model file for which a PIXIT file is to be generated, and generating a PIXIT file according to the mapping relationship;
[0008] Verify and diagnose the PIXIT file filled in manually during the relay protection device test according to the generated PIXIT file;
[0009] Based on the verification diagnosis results, confirm or modify the manually filled PIXIT file to be the correct file.
[0010] According to one aspect of the present invention, the method further includes: directly filling the generated PIXIT file into a blank PIXIT file that is not filled in during the test of the relay protection device.
[0011] According to one aspect of the present invention, the step of selecting a PIXIT file template and inputting a sample set under the template includes:
[0012] Select the template of the protocol conformance PIXIT document to be filled in;
[0013] Input the sample set under the template, the sample set consists of multiple samples, each sample corresponds to a relay protection device, and each sample includes: the relay protection device model file and the PIXIT file correctly filled in under the template.
[0014] According to one aspect of the present invention, the training of the sample set to establish a mapping relationship between the relay protection device model file and the correct PIXIT file includes:
[0015] Extract the PIXIT document questions that need to be filled in the sample;
[0016] Classify all questions according to the completed PIXIT document declaration content;
[0017] Extract the PIXIT file declaration content filled in all samples in the template and the corresponding relay protection device model file;
[0018] Determine the consistency of the PIXIT file declaration content filled in each type of question in each sample or its relevance to the relay protection device model file;
[0019] When the declaration contents are consistent or the declaration contents are related to the relay protection device model file, the PIXIT file declaration contents shall be used as the declaration contents of the corresponding question stem and the corresponding relay protection device model file shall be related.
[0020] According to one aspect of the present invention, all questions are classified according to the filled-in PIXIT file declaration content, including:
[0021] Classify the questions that require multiple-choice judgment into one category;
[0022] Classify questions that state numbers into one category;
[0023] Classify the questions whose content is a string of leaf nodes into one category;
[0024] Classify questions that state that the content is an IP address into one category.
[0025] According to one aspect of the present invention, the verification and diagnosis of the PIXIT file manually filled in during the test of the relay protection device according to the generated PIXIT file is as follows:
[0026] The generated PIXIT file is compared with the manually filled PIXIT file according to the question categories, and a diagnostic report is generated based on the comparison results.
[0027] According to one aspect of the present invention, the step of confirming or modifying the manually filled PIXIT file as a correct file according to the verification diagnosis result includes:
[0028] When the diagnostic report shows no abnormalities, confirm that the manually filled PIXIT file is the correct file;
[0029] When the diagnostic report is abnormal, the manually filled PIXIT file is modified to form a correct file, including:
[0030] Modify the manually filled PIXIT file based on the diagnostic report;
[0031] Output the modified PIXIT file according to the PIXIT file template format;
[0032] The modified PIXIT file and the relay protection device model file are taken as a new sample and stored in the sample set of the PIXIT file template.
[0033] To achieve the above object, the present invention also provides a protocol consistency PIXIT file generation and diagnosis system, comprising:
[0034] Template and sample set input module, select the PIXIT file template and input the sample set under the template;
[0035] The mapping relationship building module trains the sample set and establishes the mapping relationship between the relay protection device model file and the correct PIXIT file;
[0036] A PIXIT file generation module, inputting a relay protection device model file for which a PIXIT file is to be generated, and generating a PIXIT file according to the mapping relationship;
[0037] The verification and diagnosis module verifies and diagnoses the PIXIT file filled in manually during the test of the relay protection device according to the generated PIXIT file;
[0038] The file confirmation and correction module confirms or modifies the manually filled PIXIT file as a correct file based on the verification diagnosis results.
[0039] To achieve the above objectives, the present invention also provides an electronic device, including a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the protocol-consistent PIXIT file generation and diagnosis method as described above.
[0040] To achieve the above object, the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the protocol-consistent PIXIT file generation and diagnosis method as described above is implemented.
[0041] According to the solution of the present invention, the present invention takes into account that in actual situations, testers need to spend a lot of time filling out declaration documents, and in many application environments, due to unfamiliarity with different professional devices or unfamiliarity with the filling format of the file, incorrect filling of PIXIT files often occurs. Through type classification and deep learning, a method for intelligent generation and diagnosis of protocol-consistent PIXIT files is proposed.
[0042] The method of the present invention has the advantages of being fully automated and less time-consuming, can reduce human resource consumption, and complete the batch filling of PIXIT files of the devices to be tested in a relatively short time. The overall method is simple, reliable, and easy to implement, which is beneficial to saving the working time of testers and promoting the automation and intelligence of the entire test process. The present invention can also help testers to perform correctness checks on manually filled PIXIT files and accurately determine the locations of errors, provide alternative outcome plans, and reduce the probability of affecting the test process due to errors in filling in PIXIT files during the test process through error detection and correction steps. The method has good application development prospects in the field of automated testing. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 The flowchart schematically shows a method for generating and diagnosing a protocol-conformant PIXIT file according to an embodiment of the present invention. DETAILED DESCRIPTION
[0044] The present invention will now be discussed with reference to exemplary embodiments. It should be understood that the embodiments discussed are only to enable those skilled in the art to better understand and thus implement the present invention, rather than implying any limitation on the scope of the present invention.
[0045] As used herein, the term “including” and variations thereof are to be interpreted as open-ended terms meaning “including, but not limited to.” The term “based on” is to be interpreted as “based, at least in part, on.” The terms “one embodiment” and “an embodiment” are to be interpreted as “at least one embodiment.”
[0046] Figure 1 The flowchart schematically shows a method for generating and diagnosing a protocol-consistent PIXIT file according to an embodiment of the present invention. Figure 1 As shown, in this embodiment, the protocol consistency PIXIT file generation and diagnosis method includes:
[0047] Select the PIXIT file template and enter the sample set under that template;
[0048] Train the sample set and establish the mapping relationship between the relay protection device model file and the correct PIXIT file;
[0049] Inputting a relay protection device model file for which a PIXIT file is to be generated, and generating a PIXIT file according to the mapping relationship;
[0050] Verify and diagnose the PIXIT file filled in manually during the relay protection device test according to the generated PIXIT file;
[0051] Based on the verification diagnosis results, confirm or modify the manually filled PIXIT file to be the correct file.
[0052] Furthermore, according to an embodiment of the present invention, the present invention further comprises: directly filling the generated PIXIT file into a blank PIXIT file that is not filled in during the test of the relay protection device.
[0053] Further, according to an embodiment of the present invention, selecting a PIXIT file template and inputting a sample set under the template includes:
[0054] Select the template of the protocol conformance PIXIT document to be filled in;
[0055] Input the sample set under the template, the sample set consists of multiple samples, each sample corresponds to a relay protection device, and each sample includes: the relay protection device model file and the PIXIT file correctly filled in under the template.
[0056] Further, according to an embodiment of the present invention, training the sample set to establish a mapping relationship between the relay protection device model file and the correct PIXIT file includes:
[0057] Extract the PIXIT document questions that need to be filled in the sample;
[0058] Classify all questions according to the completed PIXIT document declaration content;
[0059] Extract the PIXIT file declaration content filled in all samples in the template and the corresponding relay protection device model file;
[0060] Determine the consistency of the PIXIT file declaration content filled in each type of question in each sample or its relevance to the relay protection device model file;
[0061] When the declaration contents are consistent or the declaration contents are related to the relay protection device model file, the PIXIT file declaration contents shall be used as the declaration contents of the corresponding question stem and the corresponding relay protection device model file shall be related.
[0062] Further, according to an embodiment of the present invention, all questions are classified according to the filled-in PIXIT file declaration content, including:
[0063] Classify the questions that require multiple-choice judgment into one category;
[0064] Classify questions that state numbers into one category;
[0065] Classify the questions whose content is a string of leaf nodes into one category;
[0066] Classify questions that state that the content is an IP address into one category.
[0067] Further, according to an embodiment of the present invention, the PIXIT file manually filled in during the test of the relay protection device is verified and diagnosed according to the generated PIXIT file as follows:
[0068] The generated PIXIT file is compared with the manually filled PIXIT file according to the question categories, and a diagnostic report is generated based on the comparison results.
[0069] Further, according to an embodiment of the present invention, confirming or modifying the manually filled PIXIT file as a correct file according to the verification diagnosis result includes:
[0070] When the diagnostic report shows no abnormalities, confirm that the manually filled PIXIT file is the correct file;
[0071] When the diagnostic report is abnormal, the manually filled PIXIT file is modified to form a correct file, including:
[0072] Modify the manually filled PIXIT file based on the diagnostic report;
[0073] Output the modified PIXIT file according to the PIXIT file template format;
[0074] The modified PIXIT file and the relay protection device model file are taken as a new sample and stored in the sample set of the PIXIT file template.
[0075] Furthermore, to achieve the above-mentioned purpose, the present invention also provides a protocol consistency PIXIT file generation and diagnosis system, comprising:
[0076] Template and sample set input module, select the PIXIT file template and input the sample set under the template;
[0077] The mapping relationship building module trains the sample set and establishes the mapping relationship between the relay protection device model file and the correct PIXIT file;
[0078] A PIXIT file generation module, inputting a relay protection device model file for which a PIXIT file is to be generated, and generating a PIXIT file according to the mapping relationship;
[0079] The verification and diagnosis module verifies and diagnoses the PIXIT file filled in manually during the test of the relay protection device according to the generated PIXIT file;
[0080] The file confirmation and correction module confirms or modifies the manually filled PIXIT file as a correct file based on the verification diagnosis results.
[0081] Furthermore, according to an embodiment of the present invention, the present invention further comprises: directly filling the generated PIXIT file into a blank PIXIT file that is not filled in during the test of the relay protection device.
[0082] Further, according to an embodiment of the present invention, selecting a PIXIT file template and inputting a sample set under the template includes:
[0083] Select the template of the protocol conformance PIXIT document to be filled in;
[0084] Input the sample set under the template, the sample set consists of multiple samples, each sample corresponds to a relay protection device, and each sample includes: the relay protection device model file and the PIXIT file correctly filled in under the template.
[0085] Further, according to an embodiment of the present invention, training the sample set to establish a mapping relationship between the relay protection device model file and the correct PIXIT file includes:
[0086] Extract the PIXIT document questions that need to be filled in the sample;
[0087] Classify all questions according to the completed PIXIT document declaration content;
[0088] Extract the PIXIT file declaration content filled in all samples in the template and the corresponding relay protection device model file;
[0089] Determine the consistency of the PIXIT file declaration content filled in each type of question in each sample or its relevance to the relay protection device model file;
[0090] When the declaration contents are consistent or the declaration contents are related to the relay protection device model file, the PIXIT file declaration contents shall be used as the declaration contents of the corresponding question stem and the corresponding relay protection device model file shall be related.
[0091] Further, according to an embodiment of the present invention, all questions are classified according to the filled-in PIXIT file declaration content, including:
[0092] Classify the questions that require multiple-choice judgment into one category;
[0093] Classify questions that state numbers into one category;
[0094] Classify the questions whose content is a string of leaf nodes into one category;
[0095] Classify questions that state that the content is an IP address into one category.
[0096] Further, according to an embodiment of the present invention, the PIXIT file manually filled in during the test of the relay protection device is verified and diagnosed according to the generated PIXIT file as follows:
[0097] The generated PIXIT file is compared with the manually filled PIXIT file according to the question categories, and a diagnostic report is generated based on the comparison results.
[0098] Further, according to an embodiment of the present invention, confirming or modifying the manually filled PIXIT file as a correct file according to the verification diagnosis result includes:
[0099] When the diagnostic report shows no abnormalities, confirm that the manually filled PIXIT file is the correct file;
[0100] When the diagnostic report is abnormal, the manually filled PIXIT file is modified to form a correct file, including:
[0101] Modify the manually filled PIXIT file based on the diagnostic report;
[0102] Output the modified PIXIT file according to the PIXIT file template format;
[0103] The modified PIXIT file and the relay protection device model file are taken as a new sample and stored in the sample set of the PIXIT file template.
[0104] Furthermore, to achieve the above-mentioned purpose, the present invention also provides an electronic device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the protocol-consistent PIXIT file generation and diagnosis method as described above is implemented.
[0105] Furthermore, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the protocol-consistent PIXIT file generation and diagnosis method as described above is implemented.
[0106] Furthermore, based on the above-mentioned solution of the present invention, the solution of the present invention is described in detail in the form of a specific embodiment below.
[0107] Example 1
[0108] Combination Figure 1 As shown, this embodiment provides a protocol consistency PIXIT file generation and diagnosis method, which specifically includes the following steps:
[0109] Step 1: Select the PIXIT file template and enter the sample set under the template;
[0110] Step 2: Train the sample set and establish the mapping relationship between the relay protection device model file and the correct PIXIT file;
[0111] Step 3: input the relay protection device model file for which the PIXIT file is to be generated, and generate the PIXIT file according to the mapping relationship;
[0112] Step 4: Verify and diagnose the PIXIT file manually filled in during the test of the relay protection device according to the generated PIXIT file; or, directly fill the generated PIXIT file into a blank PIXIT file that is not filled in during the test of the relay protection device;
[0113] Step 5: Based on the verification diagnosis results, confirm or modify the manually filled PIXIT file to be the correct file.
[0114] Specifically, step 1 of this embodiment includes: selecting a template for the consistency PIXIT file to be filled in; inputting all samples in the sample set under the template, where each sample corresponds to a relay protection device, and is composed of the following two files: a relay protection device model file, and a consistency PIXIT file filled in correctly under the template.
[0115] In this embodiment, the step of training the sample set in step 2 to establish a mapping relationship between the relay protection device model file and the PIXIT file includes:
[0116] Step 2.1: Extract the questions that need to be filled in the PIXIT file in the sample;
[0117] Step 2.2: Categorize all questions;
[0118] Step 2.3: Extract the declaration content filled in the PIXIT file in all samples in the template and the corresponding relay protection device model file;
[0119] Step 2.4: Determine the consistency of the PIXIT file declaration content filled in each type of question stem in each sample or its relevance to the relay protection device model file;
[0120] Step 2.5: When the declaration contents are consistent or the declaration contents are related to the relay protection device model file, the PIXIT file declaration contents shall be used as the declaration contents of the corresponding question stem and the corresponding relay protection device model file shall be related.
[0121] It is further explained that in step 2.2 of this embodiment, all the questions that need to be filled in are classified into the following main categories:
[0122] Category 1: The statement required for this type of question is whether the device under test supports a certain function. The statement required in the PIXIT file is yes or no, as shown in Table 1 below.
[0123]
[0124]
[0125] Table 1
[0126] Category 2: The declaration content that needs to be filled in this type of question is defined in the software program of the device under test, and has little relevance to the relay protection device model file. Under normal circumstances, the content of this category will not change for different devices under test. For example, the time required for a certain behavior or the size or number of conditions to be met, the declaration content that needs to be filled in the PIXIT file is a number, as shown in Table 2 below.
[0127]
[0128]
[0129] Table 2
[0130] Category 3: The declaration required for this type of question is strongly related to the relay protection device model file, with a one-to-one mapping relationship, and each different test device will have a large difference. For example, when testing a leaf node of a signal, the declaration required in the PIXIT file is the index of a point in the device model, as shown in Table 3 below.
[0131]
[0132] Table 3
[0133] Category 4: Some items that are often changed at the test site, such as certain addresses used when testing the device. In this category, the IP address of the device needs to be filled in the PIXIT file, as shown in Table 4 below.
[0134]
[0135]
[0136] Table 4
[0137] It is further explained that the method for classifying all questions in step 2.2 of this embodiment is: judging all the filled-in declaration contents, if the filled-in declaration contents are yes / no, true / false, It is classified as the first category; if the declaration content filled in is a number, it is classified as the second category; if the declaration content filled in is a string of leaf node indexes or consists of special symbols such as letters and numbers, it is classified as the third category (for example, PSL-603UCU-G, PL10001ALD0 / LLN0$dsAin); if the declaration content filled in is an IP address or content that does not exist in the above three situations, it is classified as the fourth category.
[0138] It is further explained that the method for judging the consistency of the PIXIT file declaration content filled in each type of question stem in each sample or the relevance with the relay protection device model file in step 2.4 of this embodiment is as follows:
[0139] Category 1: Since the service functions supported by different types of relay protection devices are generally the same, the content of this part is relatively fixed. After obtaining the declaration content filled in all sample PIXIT files of the template, determine the consistency of the PIXIT file declaration content filled in each type of question stem. If the consistency meets the requirements, it will be used as the declaration content of the question stem; otherwise, it will be attributed to the following category 4 for processing.
[0140] Category 2: This part mostly reflects the constraints for certain functions. Programmers will write them into the code as parameters, so the content of this part is also relatively fixed. After obtaining the declaration content filled in all sample PIXIT files of the template, determine the consistency of the PIXIT file declaration content filled in each type of question stem. If the consistency meets the requirements, it will be used as the declaration content of the question stem; otherwise, it will be classified as Category 4.
[0141] Category 3: The declaration content filled in this part of the PIXIT file has a strong correlation with the relay protection device model file. This embodiment takes the question stem of the PIXIT file, the declaration content filled in the PIXIT file, and the relay protection device model file as a sample, takes all samples under the template as input, and outputs reference results through long-short time memory neural network training.
[0142] Category 4: This part of the content has a smaller impact on the test process than the previous three categories and may change accordingly with the test progress and requirements. For questions in this category and questions derived from categories 1 and 2, this method does not automatically generate declaration content. In the subsequent steps, it is up to the person filling in the answer to decide whether to fill in the answer and what to fill in.
[0143] Further, in this embodiment, in step 3, the relay protection device model file to be generated into the PIXIT file is input, and the PIXIT file is generated according to the mapping relationship, including:
[0144] Step 3.1: Input the relay protection device model file for which the PIXIT file is to be generated;
[0145] Step 3.2: Generate the corresponding correct PIXIT file based on the mapping relationship established in step 2;
[0146] Further, in this embodiment, in step 4, the PIXIT file manually filled in during the test of the relay protection device is verified and diagnosed according to the generated PIXIT file as follows:
[0147] The generated PIXIT file is compared with the manually filled PIXIT file according to the question categories, and a diagnostic report is generated based on the comparison results.
[0148] It is further explained that the rules for generating a diagnostic report based on the comparison results in step 4 of this embodiment are as follows:
[0149] Rule 1: For the contents in categories 1 to 3 divided in step 2.2, if the results of intelligent generation and manual filling are consistent, they will be displayed in normal black font on the human-computer interaction interface. No special processing will be performed;
[0150] Rule 2: For the contents in Category 1 and Category 2 divided in step 2.2, if the results of intelligent generation and manual filling are inconsistent, they will be displayed in red bold font on the human-computer interaction interface, prompting the person filling in the information that there may be errors in the filling and they may need to be modified or confirmed;
[0151] Rule 3: For the content of category 3 divided in step 2.2, if the results of intelligent generation and manual filling are inconsistent, it will be displayed in light blue font on the human-computer interaction interface. This part of the content has a wide range of options, and the declaration content filled in is diverse. Both manual filling and automatic filling may meet the requirements. The tester can choose to keep the original declaration content or select the automatically filled declaration content at his discretion;
[0152] Rule 4: For the cases that are not filled in manually, the intelligently generated part will be underlined in the font of the human-computer interaction interface, and the normal font will be restored after manual confirmation one by one or in batches;
[0153] Rule 5: For the content in Category 4 classified in step 2.2, if it is not filled in manually, it will be displayed in red bold font on the human-computer interaction interface, prompting the filler that this is vacant and needs to be filled in.
[0154] Further, in this embodiment, in step 5, modifying the manually filled PIXIT file to a correct file according to the verification diagnosis result includes:
[0155] Step 5.1: The filling personnel shall modify and improve the input PIXIT file based on the diagnosis report;
[0156] Step 5.2: Output the modified PIXIT file according to the PIXIT file template format;
[0157] Step 5.3: Save the modified PIXIT file and the relay protection device model file as a new sample into the sample set of the template.
[0158] In summary, the embodiment of the present invention proposes a method for intelligent generation and verification diagnosis of protocol-consistent PIXIT files through type classification and deep learning. The method of the present invention has the advantages of full automation and low time consumption. It can complete the batch filling of PIXIT files of the devices to be tested in a shorter time while reducing human resource consumption. The overall method is simple and reliable, easy to implement, and is conducive to saving the working time of testers and promoting the automation and intelligence of the entire test process. The present invention can also help testers to check and verify the manually filled PIXIT files and accurately determine the location of errors and the alternative correct filling methods. Through the steps of error detection and correction, the probability of affecting the test process due to errors in PIXIT file filling during the test is reduced, and it has good application development prospects in the field of automated testing.
[0159] According to the above scheme of the present invention, the present invention takes into account that in actual situations, testers need to spend a lot of time filling out declaration documents, and in many application environments, due to unfamiliarity with different professional devices or unfamiliarity with the filling format of the file, incorrect filling of PIXIT files often occurs. Through type classification and deep learning, a method for intelligent generation and diagnosis of protocol-consistent PIXIT files is proposed.
[0160] The method of the present invention has the advantages of being fully automated and less time-consuming, can reduce human resource consumption, and complete the batch filling of PIXIT files of the devices to be tested in a relatively short time. The overall method is simple, reliable, and easy to implement, which is beneficial to saving the working time of testers and promoting the automation and intelligence of the entire test process. The present invention can also help testers to perform correctness checks on manually filled PIXIT files and accurately determine the locations of errors, provide alternative outcome plans, and reduce the probability of affecting the test process due to errors in filling in PIXIT files during the test process through error detection and correction steps. The method has good application development prospects in the field of automated testing.
[0161] Those skilled in the art will appreciate that the modules and algorithm steps described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0162] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and equipment can refer to the corresponding processes in the aforementioned method implementation methods, and will not be repeated here.
[0163] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0164] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the embodiments of the present invention.
[0165] In addition, each functional module in the embodiment of the present invention may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
[0166] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the energy-saving signal sending / receiving method of each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, ROM, RAM, magnetic disks, or optical disks.
[0167] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the above features are replaced with the technical features with similar functions disclosed in this application (but not limited to) by each other.
[0168] It should be understood that the size of the serial numbers of each step in the content of the invention and the implementation methods of the present invention does not absolutely mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the implementation methods of the present invention.
Claims
1. A method for generating and diagnosing a protocol-consistent PIXIT file, characterized in that: include: Select the PIXIT file template and enter the sample set under that template; Train the sample set and establish the mapping relationship between the relay protection device model file and the correct PIXIT file; Inputting a relay protection device model file for which a PIXIT file is to be generated, and generating a PIXIT file according to the mapping relationship; Verify and diagnose the PIXIT file filled in manually during the relay protection device test according to the generated PIXIT file; Based on the verification diagnosis results, confirm or modify the manually filled PIXIT file to be the correct file.
2. The method for generating and diagnosing a protocol conformance PIXIT file according to claim 1, characterized in that: Also includes: Fill the generated PIXIT file directly into the blank PIXIT file that was not filled in during the relay protection device test.
3. The method for generating and diagnosing a protocol conformance PIXIT file according to claim 1, characterized in that: The step of selecting a PIXIT file template and inputting a sample set under the template includes: Select the template of the protocol conformance PIXIT document to be filled in; Input the sample set under the template, the sample set consists of multiple samples, each sample corresponds to a relay protection device, and each sample includes: the relay protection device model file and the PIXIT file correctly filled in under the template.
4. The method for generating and diagnosing a protocol conformance PIXIT file according to claim 1, characterized in that: The training of the sample set to establish a mapping relationship between the relay protection device model file and the correct PIXIT file includes: Extract the PIXIT document questions that need to be filled in the sample; Classify all questions according to the completed PIXIT document declaration content; Extract the PIXIT file declaration content filled in all samples in the template and the corresponding relay protection device model file; Determine the consistency of the PIXIT file declaration content filled in each type of question in each sample or its relevance to the relay protection device model file; When the declaration contents are consistent or the declaration contents are related to the relay protection device model file, the PIXIT file declaration contents shall be used as the declaration contents of the corresponding question stem and the corresponding relay protection device model file shall be related.
5. The method for generating and diagnosing a protocol-consistent PIXIT file according to claim 4, characterized in that: According to the content of the filled PIXIT file declaration, all questions are classified into categories, including: Classify the questions that require multiple-choice judgment into one category; Classify questions that state numbers into one category; Classify the questions whose content is a string of leaf nodes into one category; Classify questions that state that the content is an IP address into one category.
6. The method for generating and diagnosing a protocol-consistent PIXIT file according to claim 4, characterized in that: The verification and diagnosis of the PIXIT file manually filled in during the test of the relay protection device according to the generated PIXIT file is as follows: The generated PIXIT file is compared with the manually filled PIXIT file according to the question categories, and a diagnostic report is generated based on the comparison results.
7. The method for generating and diagnosing a protocol conformance PIXIT file according to any one of claims 1 to 6, characterized in that: The step of confirming or modifying the manually filled PIXIT file as a correct file according to the verification diagnosis result includes: When the diagnostic report shows no abnormalities, confirm that the manually filled PIXIT file is the correct file; When the diagnostic report is abnormal, the manually filled PIXIT file is modified to form a correct file, including: Modify the manually filled PIXIT file based on the diagnostic report; Output the modified PIXIT file according to the PIXIT file template format; The modified PIXIT file and the relay protection device model file are taken as a new sample and stored in the sample set of the PIXIT file template.
8. Protocol conformance PIXIT file generation and diagnosis system, characterized by: include: Template and sample set input module, select the PIXIT file template and input the sample set under the template; The mapping relationship building module trains the sample set and establishes the mapping relationship between the relay protection device model file and the correct PIXIT file; A PIXIT file generation module, inputting a relay protection device model file for which a PIXIT file is to be generated, and generating a PIXIT file according to the mapping relationship; The verification and diagnosis module verifies and diagnoses the PIXIT file filled in manually during the test of the relay protection device according to the generated PIXIT file; The file confirmation and correction module confirms or modifies the manually filled PIXIT file as a correct file based on the verification diagnosis results.
9. An electronic device, characterized in that The invention comprises a processor, a memory and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the method for generating and diagnosing a protocol-conformant PIXIT file according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for generating and diagnosing a protocol-conformant PIXIT file according to any one of claims 1 to 7 is implemented.