Centralized control station operation anti-misoperation automatic checking method, system and equipment
By automatically generating and executing test case scripts, real-time matching and sorting, automatic verification of the operation and error prevention rules of centralized control stations is achieved, solving the problems of low efficiency and poor accuracy of traditional manual calibration, and significantly improving the operation and maintenance efficiency of the power grid and security.
Patent Information
- Application Number
- CN202411410540.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-10
- Publication Date
- 2025-02-18
AI Technical Summary
Traditional centralized control stations operate and prevent miscalculation and rely on manual experience. They are very labor-intensive, time-consuming and labor-intensive, and are prone to misjudgment or omissions, making it difficult to meet the needs of modern power grids for safe and efficient operation and maintenance.
By obtaining the SCD model file of the centralized control station and the five-defense rule file, the entire site test case script is automatically generated, and the scripts are sorted and run in sequence accordingly with the measurement point information of the entire site, and the remote control request command is automatically sent to compare the error prevention results and expectations. As a result, a verification report is generated.
It realizes comprehensive and efficient automatic calibration of the operational error prevention rules of centralized control stations, significantly improving testing efficiency and accuracy, reducing the cost and error rate of manual testing, and improving the stability and safety of the power grid.
Smart Images

Figure CN119473749A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of centralized control stations, and in particular to a method, system and equipment for automatic error-proofing of centralized control station operations. Background Art
[0002] In today's highly integrated and intelligent power system automation field, the centralized control station is the core hub, and its operation safety and accuracy are directly related to the stable operation and power supply reliability of the entire power grid. With the widespread deployment and application of centralized control station projects around the world, how to effectively implement the operation error prevention and verification mechanism has become a key technical challenge to ensure power grid safety and improve operation and maintenance efficiency.
[0003] Traditionally, the error prevention verification of centralized control station operations relies on the profound experience and careful judgment of operators, involving multiple dimensions such as complex logic verification, signal interlock verification, and topology error prevention. This process is not only labor-intensive, time-consuming and labor-intensive, but also prone to misjudgment or omissions due to human factors, thereby increasing operational risks and potential accidents. Especially when facing large-scale and highly complex power grid structures, the limitations of traditional manual verification methods are particularly prominent, and it is difficult to meet the urgent needs of modern power grids for safe and efficient operation and maintenance. Summary of the invention
[0004] The purpose of the present invention is to provide a method, system and equipment for automatic error-proofing of operation of a centralized control station in order to solve at least one of the above-mentioned technical problems.
[0005] The present invention achieves the above-mentioned purpose through the following technical solutions:
[0006] A method for automatically checking the operation error of a centralized control station, comprising the following steps:
[0007] Obtain the SCD model file and the five-defense rule file of the centralized control station; generate a full-station test case script for the centralized control station based on the SCD model file of the centralized control station and the five-defense rule file;
[0008] Acquire real-time information of all station measurement points, match the real-time information of all station measurement points with the all station test case script of the centralized control station, and sort the test case script according to the matching result;
[0009] Run the test case scripts in sequence according to the sorting; compare the test case script running results with the expected results and generate a verification report.
[0010] Furthermore, the five-defense rule file includes: five-defense data, five-defense rules and references of related measurement points.
[0011] Further, the test case script includes: a forward test case script and a reverse test case script;
[0012] If the initial value of the telesignal point in the forward test case meets the five-defense rules, the expected result of the test case is passed;
[0013] If the initial value of the telesignal point in the reverse test case does not meet the five-defense rule, the expected result of the test case is failure;
[0014] The initial value of the remote signaling point includes the value and quality data of the remote signaling point.
[0015] Furthermore, the test case scripts are sorted according to the matching results, including: putting the test case scripts that meet the initialization conditions in the front, and the test case scripts that meet some or all of the initialization conditions in the back, and marking the telesignaling points that do not meet the initialization conditions.
[0016] Furthermore, the test case script running results are compared with the expected results, including:
[0017] The SCD model file of the centralized control station is loaded and parsed, and initialization is performed according to the test case script, and a remote control command is sent to perform error prevention verification, and an error prevention verification result is obtained.
[0018] An automatic check system for preventing errors in operation of a centralized control station, comprising:
[0019] Test case configuration tool, used to generate the whole station test case script of the centralized control station based on the SCD model file and five-defense rule file of the centralized control station;
[0020] A matching module, used to match the real-time information of all station test points with the whole station test case script of the centralized control station, and sort the test case script according to the matching result;
[0021] The main automatic verification program is used to run the test case scripts in sequence according to the order, automatically send remote control request commands, compare the error prevention results with the expected results and generate a verification report;
[0022] The DLT / 860 simulator is used to load and parse the SCD model file of the centralized control station, respond to the command of the automatic verification main program, and initialize the value and quality of the telesignaling points marked in the test case script that do not meet the initialization conditions;
[0023] An anti-error verification module is used to forward the remote control request command, communicate with the anti-error service, call the anti-error service interface to obtain and forward the anti-error verification result;
[0024] The message engine module is used to realize the communication among the automatic verification main program, the DLT / 860 simulation simulator and the anti-error verification module.
[0025] Furthermore, the matching module is also used to: intercept the real-time library section, and obtain the real-time information of the whole station measurement points according to the real-time library section;
[0026] The test case scripts are sorted according to the matching results, including:
[0027] Put the test case scripts that meet the initialization conditions in the front, and the test case scripts that meet some or all of the initialization conditions in the back, and mark the telesignaling points where the initialization conditions are not met.
[0028] Furthermore, the DLT / 860 simulation simulator responds to the command of the automatic verification main program to initialize the values and qualities of the telesignaling points marked in the test case script that do not meet the initialization conditions.
[0029] Furthermore, the communication protocol of the message engine module adopts IEC104 protocol.
[0030] An electronic device 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 automatically checking the operation error of a centralized control station as described above is implemented.
[0031] The beneficial effects of the present invention are:
[0032] (1) The present invention realizes the automatic generation of test case scripts, which comprehensively covers all the verification functions of the centralized control station operation error prevention, including logic rule error prevention, topology error prevention and signal interlock error prevention, etc. The setting of forward and reverse test cases, as well as the initialization of remote signaling points such as switches and knife switches and the automatic execution of remote control request operations, do not require manual intervention, and the automatic test case scripts are reusable, which significantly improves the test efficiency and accuracy.
[0033] (2) There are a large number of test case scripts covering all operations of the entire centralized control station to prevent error verification. The present invention intelligently sorts these scripts, gives priority to executing the cases whose initialization conditions are met, and marks and initializes the telesignal points whose initialization conditions are not met, thereby effectively reducing the workload of initialization operations during case execution and further improving test efficiency.
[0034] (3) The traditional centralized control station operation error prevention check results are judged only based on the values of remote signal points such as switches and knife switches. The present invention adds the judgment of the quality of the remote signal points, making the operation error prevention check results more scientific and accurate. This improvement helps to discover potential problems and improve the stability and safety of the system.
[0035] (4) When the verification result fails (i.e., the reverse test case fails), the present invention will perform a secondary verification to determine whether the failure reason prompted is consistent with the expected result. If it is consistent, the test is qualified; if it is inconsistent, the test is unqualified. This process ensures the accuracy and reliability of the test results. At the same time, after all test cases are executed, the system will automatically generate a full-station operation error-proof verification report, which greatly reduces the workload, reduces the possibility of misjudgment, and significantly improves the detection efficiency and accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 The process of automatic error-proofing method for centralized control station operation according to an embodiment of the present invention is as follows Figure 1 ;
[0037] Figure 2 The process of automatic error-proofing method for centralized control station operation according to an embodiment of the present invention is as follows Figure 2 ;
[0038] Figure 3 A calibration principle diagram of a method for automatically calibrating the centralized control station to prevent misoperation according to an embodiment of the present invention;
[0039] Figure 4 This is a structural diagram of an automatic error-proofing system for centralized control station operation according to an embodiment of the present invention. DETAILED DESCRIPTION
[0040] The content of 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 content of the present invention, rather than implying any limitation on the scope of the present invention.
[0041] 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.”
[0042] Embodiment 1
[0043] Figure 1 The process of automatic error-proofing method for centralized control station operation according to an embodiment of the present invention is as follows Figure 1 ; Figure 2 The process of automatic error-proofing method for centralized control station operation according to an embodiment of the present invention is as follows Figure 2 ; Figure 3 FIG. 1 is a schematic diagram of a method for automatically checking the operation error prevention of a centralized control station according to an embodiment of the present invention. Figure 1-3 As shown, according to an embodiment of the present invention, a method for automatic error-proofing of centralized control station operation includes the following steps:
[0044] Step S102, obtaining the SCD model file and the five-defense rule file of the centralized control station; generating a centralized control station full-station test case script based on the SCD model file and the five-defense rule file of the centralized control station;
[0045] The five-defense rule file includes: five-defense data, five-defense rules and references of related measurement points.
[0046] Step S104, obtaining real-time information of all station measurement points, matching the real-time information of all station measurement points with the whole station test case script of the centralized control station, and sorting the test case scripts according to the matching results;
[0047] Step S106, running the test case scripts in sequence according to the order; comparing the test case script running results with the expected results, and generating a verification report.
[0048] In this implementation, based on the SCD model file and the five-prevention rule file of the centralized control station, all automatic test case scripts covering the operation error prevention rule library are automatically generated. During the test process, the test is executed according to the test case script, the remote control request command is sent to the error prevention service, the error prevention service interface is called to obtain the verification result and the result is returned, the received error prevention verification result is compared with the expected result in the automatic test case script, and a verification report is generated.
[0049] First, obtain the SCD model file and five-prevention rule file of the centralized control station, which contain the detailed configuration information and error-proof operation rules of the substation. Based on this information, automatically generate a full-station test case script covering all error-proof rules. Subsequently, obtain the information of all station measurement points in real time, match this information with the test case script, and sort the script according to the matching results to ensure the order and logic of the test. Then, execute these test case scripts in sequence according to the sorting, send the remote control request command to the error-proof service, and call the interface of the error-proof service to obtain the verification result. Finally, compare the received error-proof verification result with the expected result in the test case script, and generate a detailed verification report to evaluate the accuracy and reliability of the error-proof system.
[0050] The present invention realizes comprehensive and efficient automatic verification of the error-prevention rules for centralized control station operations by automatically generating test case scripts and real-time information matching. This not only improves the testing efficiency and accuracy of the error-prevention system, but also reduces the cost and error rate of manual testing, thus providing a strong guarantee for the safe and stable operation of the power system.
[0051] According to an embodiment of the present invention, in step S102, the test case script includes: a forward test case script and a reverse test case script;
[0052] If the initial value of the telesignal point in the forward test case meets the five-defense rules, the expected result of the test case is passed;
[0053] If the initial value of the telesignal point in the reverse test case does not meet the five-defense rule, the expected result of the test case is failure;
[0054] The initial value of the telesignaling point includes the value and quality data of the telesignaling point.
[0055] In this implementation, the SCD model file and the five-defense rule file of the entire centralized control station are loaded, and the SCD model file is matched by the five-defense data, five-defense rules and refrence information of the measuring points in the five-defense rule file, and an automatic test case script covering the entire operation error prevention rule library is automatically generated. The test case script includes a forward test case script and a reverse test case script; the automatic test case script includes the initialization (value and quality) of remote signaling points such as switches and knife switches, the initialization of remote control points (remote control point type and remote control value), and the expected result information of the case.
[0056] The present invention automatically generates an automated test set including forward and reverse test case scripts by loading the SCD model file and the five-prevention rule file of the centralized control station. These scripts define in detail the initialization states of the telesignaling points (including values and quality data) and the remote control points, as well as the expected test results, thereby realizing comprehensive automated testing of the operation error prevention rule library, significantly improving the test efficiency and accuracy, and ensuring the rigor and safety of the power system's error-proof operation.
[0057] According to one embodiment of the present invention, step S104 includes: arranging the test case scripts that meet the initialization conditions in the front, arranging the test case scripts that meet some or all of the initialization conditions in the back, and marking the telesignaling points that do not meet the initialization conditions.
[0058] In this implementation, the real-time library section will be intercepted first. This step is to obtain the real-time information of all measuring points in the current substation. This information includes the value of the measuring point and the quality data, which are important bases for judging the status of the measuring point. Subsequently, the acquired real-time information is matched with all the test case scripts generated previously. This process mainly compares the status of the real-time measuring point with the preset initialization conditions in the test case script. After the matching is completed, the system will sort the scripts according to the satisfaction of the initialization conditions of the test case scripts. For those test case scripts whose initialization conditions of key measuring points such as switches and knife switches are all met, they are placed at the front of the execution queue, because the execution of these scripts does not require the re-initialization of these measuring points, which improves the test efficiency; for those test case scripts whose initialization conditions are partially met or all are not met, they are placed at the back of the execution queue, and the telesignal points that do not meet the initialization conditions are clearly marked for subsequent analysis and processing.
[0059] The present invention obtains the real-time information of the substation measuring points by intercepting the real-time library section, and matches and sorts the information with the initialization conditions of the test case script, and preferentially executes the scripts that meet the initialization conditions of the key measuring points to improve the test efficiency. At the same time, the remote signal points that do not meet the conditions are marked for subsequent processing, which significantly improves the intelligence and efficiency of the test process and ensures the comprehensiveness and accuracy of the error prevention system verification.
[0060] According to one embodiment of the present invention, step S106 includes:
[0061] Load and parse the SCD model file, initialize according to the test case script, send remote control commands for error prevention verification, and obtain error prevention verification results.
[0062] In this implementation, the SCD model file is loaded and parsed, and then the initialization settings are performed according to the preset test case script. According to the specific information of the test case (such as the name), the state quantity initialization operation is performed on the telesignaling points (such as the status of switches, knife switches, etc.) that do not meet the initialization conditions, and the results of the initialization operation are fed back. Send a remote control command to perform a check to prevent misoperation, and obtain the result of the anti-misoperation check. The anti-misoperation check result will then be compared and analyzed with the expected result in the test case script, and a corresponding check report will be generated. Specifically, if the quality of the initialized telesignaling point is abnormal, the test fails, the check report is recorded, and the next automatic test case script is executed; if the quality of the initialized telesignaling point is normal, the remote control request command is automatically sent according to the preset test case script; determine whether the anti-misoperation check result is consistent with the expected result. If the result is consistent, the test passes; if the result is inconsistent, the test fails.
[0063] The present invention loads and parses the SCD model file, initializes the telesignal point status according to the test case script, sends the remote control command for error prevention verification, and compares the analysis result with the expectation, thereby realizing automated testing and generating a verification report, thereby improving the test efficiency and accuracy.
[0064] The present invention automatically generates test case scripts by acquiring the SCD model file and five-prevention rule file of the centralized control station, and matches the measurement point information of the entire station in real time to sort and run the scripts in sequence; by comparing the running results of the test case scripts with the expected results, the automatic error-proof verification of the operation of the centralized control station is realized, and a verification report is generated, which effectively improves the accuracy of error-proof operation and the test efficiency.
[0065] Embodiment 2
[0066] Figure 4 This is a structural diagram of the automatic error-proofing system for centralized control station operation according to one embodiment of the present invention. Figure 1-4As shown, according to an embodiment of the present invention, a method for automatic error-proofing of centralized control station operation includes the following steps:
[0067] Step 1: Use the test case configuration tool to load and parse the SCD model file and five-defense rule file of the centralized control station; the five-defense rule file contains five-defense data, five-defense rules and references of related measurement points;
[0068] The test case configuration tool matches the SCD model file through the five-defense data, five-defense rules, and reference information of the measuring points, and automatically generates a test case script for the entire centralized control station; the test cases are divided into forward test cases and reverse test cases. The initial value (value and quality) of the telesignal point in the forward test case script meets the five-defense rules in the five-defense rule file, and the expected result of the test case should be passed. The initial value (value and quality) of the telesignal point in the reverse test case script does not meet the five-defense rules in the five-defense rule file, and the expected result of the test case should be failed.
[0069] Specifically, based on the reference information of the measuring point, the corresponding switches, knife switches and other telesignaling points in the SCD model file are matched as participating quantities, and the telesignaling points are initialized and defined, including the value and quality of the telesignaling points;
[0070] The five-defense remote signaling participation quantity and rule conditions in the five-defense rules constitute the preset switches, knife switches and other remote signaling points and their values and qualities in the test script. The remote control points associated with the five-defense remote signaling points are the remote control points in the test script; the remote control points associated with the five-defense remote signaling points are the participation quantities, which mainly define the remote control value and remote control type; according to whether the five-defense rule information meets the expected results of the automatic generation of use cases, it is used for result verification. Automatically generate automatic test case scripts in XML format, one test case script corresponds to one test function, and establish multiple test case scripts to cover all functions of the centralized control station operation error prevention.
[0071] Intercept the real-time library section, obtain the real-time information of all station measurement points and match it with all test case scripts, sort the test case scripts, put the test case scripts that meet the initialization conditions in the front, and the test cases that meet some or all initialization conditions are not met in the back, and mark the telesignaling points that do not meet the initialization conditions;
[0072] During the matching process, it is necessary to compare the real-time values and quality of the initialization points in the test case script;
[0073] The following three automated test case scripts illustrate the functionality:
[0074] ① The name of the automatic test case script 1 is "Earth switch position (normal data quality)_Allow switch closing.xml", and the specific content is as follows:
[0075] 263 switch position, value 0, normal quality;
[0076] 2631 switch position, value is 0, quality is normal;
[0077] 2632 switch position, value is 0, quality is normal;
[0078] 2633 switch position, value is 0, quality is normal;
[0079] 26330 grounding switch position, value is 0, quality is normal;
[0080] 26340 grounding switch position, value is 0, quality is normal;
[0081] 26350 grounding switch position, value is 0, quality is normal;
[0082] 263 switch remote control, remote control value is 1, double point remote control;
[0083] Expected result: wOpCmdState=0.
[0084] wOpCmdState indicates the returned information of the operation error prevention check result, as follows:
[0085] Operation error prevention check result return information wOpCmdState illustrate 0 success 1 fail 2 warn
[0086] ② The name of the automatic test case script 2 is "Earth switch position (data quality abnormality)_Forbidden to close the switch.xml", and the specific content is as follows:
[0087] 263 switch position, value 0, normal quality;
[0088] 2631 switch position, value is 0, quality is invalid;
[0089] 2632 switch position, value is 0, quality is invalid;
[0090] 2633 switch position, value is 0, quality is invalid;
[0091] 26330 grounding switch position, value is 0, quality is invalid;
[0092] 26340 grounding switch position, value is 0, quality is invalid;
[0093] 26350 grounding switch position, value is 0, quality is invalid;
[0094] 263 switch remote control, remote control value is 1, double point remote control;
[0095] ③ The name of automatic test case script 3 is "grounding switch closed (normal data quality)_forbidden to close switch.xml", and the specific content is as follows:
[0096] 263 switch position, value 0, normal quality;
[0097] 2631 switch position, value is 0, quality is normal;
[0098] 2632 switch position, value is 0, quality is normal;
[0099] 2633 switch position, value is 0, quality is normal;
[0100] 26330 grounding switch position, value is 1, quality is normal;
[0101] 26340 grounding switch position, value is 1, quality is normal;
[0102] 26350 grounding switch position, value is 0, quality is normal;
[0103] 263 switch remote control, remote control value is 1, double point remote control;
[0104] Expected result: wOpCmdState = 1;
[0105] MessageResult="Rule 1 does not satisfy the following items: DD26330 combined, DD26340 combined, DZ2631 divided, DZ2633 divided; Rule 2 does not satisfy the following items: DD26330 combined, DD26340 combined, DZ2632 divided, DZ2633".
[0106] After sorting, the order of the three automatic test case scripts is case ①, case ②, and case ③;
[0107] Among them, due to the abnormal data quality of use case ②, the main program has priority judgment, and directly judges it as unqualified when the quality is abnormal, so there is no expectation. The operation error prevention check result return information in use case ① represents the error prevention program return result of the normal use case (including forward use case and reverse use case), and the expected results returned by the error prevention program are applicable to this table.
[0108] Step 2: The message engine module and the automatic verification main program, DLT / 860 simulator, and the anti-error verification module use the IEC104 protocol for communication, and the communication is normal. If the communication is abnormal, a message prompt will be printed.
[0109] Step 3: Automatically verify that the main program loads use cases ①, ②, and ③ in step 1 in sequence according to the order. Click the Start Execution button, and the main program automatically executes use case ① in sequence. The name of use case ①: "Grounding switch position (normal data quality)_Allow switch closing.xml" is sent to the DLT / 860 simulator through the message engine module.
[0110] Step 4: The DLT / 860 simulator loads and parses the SCD file of the centralized control station. After receiving the use case name sent by the message engine, it initializes according to the test case and returns the initialization result information to the automatic verification main program through the message engine module.
[0111] 263 switch position, value 0, normal quality;
[0112] 2631 switch position, value is 0, quality is normal;
[0113] 2632 switch position, value is 0, quality is normal;
[0114] 2633 switch position, value is 0, quality is normal;
[0115] 26330 grounding switch position, value is 0, quality is normal;
[0116] 26340 grounding switch position, value is 0, quality is normal;
[0117] 26350 grounding switch position, value is 0, quality is normal;
[0118] Step 5: After the automatic verification main program receives the initialization information, it determines that the quality of the remote signal points such as switches and knife switches in step 3 is normal, and sends the "263 switch remote control, remote control value 1, dual-point remote control" command according to the automatic test case preset, and sends the remote control command to the anti-error verification module through the message engine module.
[0119] Step 6: The anti-error verification module forwards the remote control request command to the anti-error service, calls the anti-error service interface, and sends the anti-error service verification result to the automatic verification main program through the message engine module;
[0120] Step 7: The automatic verification main program compares the error prevention check result with the expected value (wOpCmdState=0):
[0121] If the error prevention check result wOpCmdState=0, the test is passed and the test report is recorded.
[0122] If the error prevention check result wOpCmdState≠0, the test fails and a test report is recorded.
[0123] After use case ① is executed, execute use case ② according to steps 3 to 7:
[0124] When the execution of use case ② reaches step 5, because the quality of the data initialized in use case ② is invalid, the main automatic verification program determines that this use case test fails, records the test report, and the execution of use case ② ends. That is, the quality of the initialized telesignal point is abnormal, the test fails, the verification report is recorded, and the next automatic test case script is executed.
[0125] After the execution of use case ② is completed, execute use case ③ according to steps 3 to 7:
[0126] The automatic verification main program compares the error prevention check result with the expectation (wOpCmdState=1; MessageResult="Rule 1 does not satisfy the following items: DD26330 is in place, DD26340 is in place, DZ2631 is in place, DZ2633 is in place; Rule 2 does not satisfy the following items: DD26330 is in place, DD26340 is in place, DZ2632 is in place, DZ2633");
[0127] wOpCmdState≠1, the test fails, and a test report is recorded;
[0128] wOpCmdState=1,MessageResult≠“Rule 1 does not satisfy the following items: DD26330 is in place, DD26340 is in place, DZ2631 is in place, DZ2633 is in place; Rule 2 does not satisfy the following items: DD26330 is in place, DD26340 is in place, DZ2632 is in place, DZ2633”, the test fails, and the test report is recorded;
[0129] wOpCmdState = 1, MessageResult = "Rule 1 does not satisfy the following items: DD26330 is in place, DD26340 is in place, DZ2631 is in place, DZ2633 is in place; Rule 2 does not satisfy the following items: DD26330 is in place, DD26340 is in place, DZ2632 is in place, DZ2633", the test is passed, and the test report is recorded.
[0130] After the execution of use cases ①, ②, and ③, a verification report is generated. The verification report shows the test results of each use case and displays the specific reasons if the test fails.
[0131] Embodiment 3
[0132] like Figure 4 As shown, according to one embodiment of the present invention, a centralized control station operation error prevention automatic verification system includes:
[0133] Test case configuration tool, used to generate the whole station test case script of the centralized control station based on the SCD model file and five-defense rule file of the centralized control station;
[0134] The matching module is used to match the real-time information of all station test points with the test case scripts of the centralized control station, and sort the test case scripts according to the matching results;
[0135] The main automatic verification program is used to run the test case scripts in sequence according to the order, automatically send remote control request commands, compare the error prevention results with the expected results and generate a verification report;
[0136] DLT / 860 simulator, used to load and parse the SCD model file of the centralized control station, respond to the command of the automatic verification main program, and initialize the value and quality of the telesignaling points marked in the test case script that do not meet the initialization conditions;
[0137] The error prevention verification module is used to forward the remote control request command, communicate with the error prevention service, call the error prevention service interface to obtain and forward the error prevention verification result;
[0138] The message engine module is used to realize the communication between the automatic verification main program, the DLT / 860 simulation simulator, and the anti-error verification module.
[0139] Preferably, the communication protocol of the message engine module adopts IEC104 protocol.
[0140] In this implementation, the centralized control station operates an anti-error automatic verification system, including: a test case configuration tool, a matching module, an automatic verification main program, a DLT / 860 simulation simulator, an anti-error verification module, and a message engine module.
[0141] The five-defense rule file includes five-defense data, five-defense rules and reference information of measuring points. The test case configuration tool loads and parses the SCD model file and five-defense rule file of the centralized control station, matches the five-defense rule file with the SCD model file of the centralized control station, and automatically generates the test case script of the entire centralized control station based on the reference information of the measuring points. The test case script includes: initialization of remote signal points such as switches and knife switches (values and qualities), initialization of remote control points (remote control point types and remote control values), and initialization of expected results. Specifically, the five-defense remote signal participation quantity and rule conditions in the five-defense rules constitute the preset switches, knife switches and other remote signal points and their values and qualities in the test script. The remote control points associated with the five-defense remote signal points are the remote control points in the test script; the test cases are divided into forward test cases and reverse test cases. The initial value (value and quality) of the remote signal point in the forward test case script meets the five-defense rules in the five-defense file, and the expected result of the test case should be passed. The initial value (value and quality) of the remote signal point in the reverse test case script does not meet the five-defense rules in the five-defense rule file, and the expected result of the test case should be failed.
[0142] The matching module matches the real-time information of all station test points with the test case scripts of the centralized control station, and sorts the test case scripts according to the matching results;
[0143] The automatic verification main program runs the test case scripts in sequence according to the order, automatically sends the remote control request command, compares the error prevention result with the expected result and generates a verification report. Specifically, the automatic verification main program loads and runs the test case script, transmits the case information to the message engine module by transmitting the test case name, and the message engine module forwards the test case name to the DLT / 860 simulation simulator.
[0144] The DLT / 860 simulator loads and parses the SCD model file of the centralized control station, responds to the command of the automatic verification main program, and initializes the value and quality of the telesignal points that do not meet the initialization conditions according to the content of the automatic test case script. After receiving the message, the telesignal points such as switches and knife switches that do not meet the initialization conditions marked by the automatic test case script are initialized (including telesignal values and quality), and the initialization results are returned to the automatic verification main program through the message engine module.
[0145] After receiving the DLT / 860 simulator initialization completion message, the automatic verification main program makes a judgment. If the quality of the initialized telesignal point is abnormal, the test fails, the verification report is recorded, and the next automatic test case script is executed; if the quality of the initialized telesignal point is normal, the remote control request command is automatically sent according to the preset test case script. Based on the initialization result, the automatic verification main program sends the remote control request command to the anti-error verification module through the message engine module. The anti-error verification module communicates with the message engine module through the IEC104 protocol and forwards the remote control request command.
[0146] The anti-error verification module sends the remote control request command to the anti-error service through the message bus, calls the anti-error service interface to obtain the anti-error verification result, and sends the anti-error verification result to the automatic verification main program through the message engine module.
[0147] The automatic verification main program compares the received error-proofing verification results with the expected results in the automatic test case script. If the results are consistent, the test is passed; if the results are inconsistent, the test fails and a verification report is generated.
[0148] Message engine module: responsible for the communication of the entire automatic verification system, including the automatic verification main program, DLT / 860 simulator, anti-error verification module, etc. The communication protocol adopts IEC104 protocol.
[0149] The present invention integrates test case configuration, real-time information matching, automatic verification, simulation, error prevention verification and message communication modules, and uses the IEC104 protocol to achieve efficient communication. It can automatically generate and execute test case scripts, automatically initialize remote signal points that do not meet the conditions, automatically verify error prevention results and expected results, significantly improve the accuracy and safety of centralized control station operations, and automatically generate verification reports to optimize operation and maintenance management.
[0150] According to an embodiment of the present invention, the matching module is further used to: intercept the real-time library section, and obtain the real-time information of all station measurement points according to the real-time library section;
[0151] Sort the test case scripts according to the matching results, including:
[0152] Put the test case scripts that meet the initialization conditions in the front, and the test case scripts that meet some or all of the initialization conditions in the back, and mark the telesignaling points where the initialization conditions are not met.
[0153] In this implementation, the matching module intercepts the real-time library section, obtains the real-time information (value and quality) of all the measuring points in the entire station, matches it with all the test case scripts, sorts all the test case scripts, and puts the test case scripts that meet all the initialization conditions of switches, knife switches, etc. in the front row, and the cases that partially meet the initialization conditions or do not meet all the initialization conditions in the back row, and marks the telesignal points that do not meet the initialization conditions.
[0154] The matching module of the present invention obtains the real-time information of all the measuring points of the whole station by intercepting the real-time library section and matches it with the test case script, thereby realizing the intelligent sorting of the test case script, giving priority to executing the scripts that meet all the initialization conditions, and marking the telesignaling points that do not meet the conditions, thereby effectively improving the test efficiency and accuracy, and providing strong support for the automatic error-proof verification of the operation of the centralized control station.
[0155] According to one embodiment of the present invention, the DLT / 860 simulation simulator responds to the command of the automatic verification main program to initialize the value and quality of the remote signaling point marked in the test case script that does not meet the initialization condition.
[0156] In this implementation, the automatic verification main program loads and runs the test case script, and sends the case message to the DLT / 860 simulator through the message engine module. The DLT / 860 simulator loads and parses the SCD model file of the centralized control station, and initializes it according to the test case script name sent by the automatic verification main program. It initializes the switches, knife switches and other telesignals that do not meet the initialization requirements in the test case script (including telesignal values and quality), and transmits the initialization results to the automatic verification main program through the message engine module.
[0157] The DLT / 860 simulation simulator of the present invention can respond to the instructions of the automatic verification main program, accurately initialize the remote signal points that do not meet the conditions in the test case script, ensure the accuracy of the test environment, and realize real-time communication with the automatic verification main program through the message engine module, thereby improving the efficiency and reliability of the automatic verification of the centralized control station operation to prevent errors.
[0158] Embodiment 4
[0159] like Figure 1-4 As shown, according to one embodiment of the present invention, a centralized control station operation error prevention automatic verification system includes:
[0160] Test case configuration tool: load the SCD file and five-prevention rule file of the centralized control station, and automatically generate an automatic test case script covering the entire operation error prevention rule library by matching the five-prevention data, five-prevention rules, and reference information of the measurement points in the five-prevention rule file with the SCD model file. The test case script includes forward test case script and reverse test case script; the automatic test case script includes the initialization (value and quality) of remote signal points such as switches and knife switches, the initialization of remote control points (remote control point type and remote control value), and the initialization of expected results.
[0161] Matching module: Sort all test case scripts, put the cases that meet the initialization conditions in the front, and the cases that partially or completely meet the initialization conditions in the back, and mark the telesignal points that do not meet the initialization conditions.
[0162] Message engine module: responsible for the communication of the entire automatic verification system, including the automatic verification main program, DLT / 860 simulator, anti-error verification module, etc. The communication protocol adopts IEC104 protocol.
[0163] Automatic verification main program: load and execute automatic test case scripts, automatically send remote control request commands, compare error prevention results with expected results and generate verification reports.
[0164] DLT / 860 simulator: loads and parses the SCD model file of the centralized control station, responds to the automatic verification main program command, and initializes the value and quality of the telesignaling points marked in the test case script that do not meet the initialization conditions.
[0165] Anti-error verification module: communicates with the message engine module through the IEC104 protocol and forwards the remote control request command, communicates with the anti-error service through the message bus, calls the anti-error service interface to obtain and forward the anti-error verification result.
[0166] The present invention automatically generates automatic test case scripts covering all the anti-error verification functions of the centralized control station, sorts the test case scripts and executes them in sequence, judges the quality and compares the results to obtain the final verification result and generates a verification report, thus reducing the manual operation of engineering personnel, reducing the workload and the possibility of errors, avoiding misjudgment, and making the operation anti-error verification result more scientific and accurate.
[0167] Embodiment 5
[0168] According to one embodiment of the present invention, an electronic device includes a processor, a memory, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the method for automatically checking the operation errors of any centralized control station of the present invention is implemented.
[0169] According to one embodiment of the present invention, a computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for automatically checking the operation errors of any centralized control station of the present invention is implemented.
[0170] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described systems, devices and media can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0171] 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 (but not limited to) technical features with similar functions disclosed in the present application.
[0172] It should be understood that the size of the serial numbers of each step in the content of the invention and the embodiments 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 embodiments of the present invention.
Claims
1. A method for automatic error-proofing of centralized control station operation, characterized in that: The following steps are involved: Obtain the SCD model file and the five-defense rule file of the centralized control station; generate a full-station test case script for the centralized control station based on the SCD model file of the centralized control station and the five-defense rule file; Acquire real-time information of all station measurement points, match the real-time information of all station measurement points with the all station test case script of the centralized control station, and sort the test case script according to the matching result; Run the test case scripts in sequence according to the sorting; Compare the test case script running results with the expected results and generate a verification report.
2. The method for automatic error-proofing of centralized control station operation according to claim 1, characterized in that: The five-defense rule file includes: five-defense data, five-defense rules and references to related measurement points.
3. The method for automatic error-proofing of centralized control station operation according to claim 2, characterized in that: The test case script includes: a forward test case script and a reverse test case script; If the initial value of the telesignal point in the forward test case meets the five-defense rules, the expected result of the test case is passed; If the initial value of the telesignal point in the reverse test case does not meet the five-defense rule, the expected result of the test case is failure; The initial value of the remote signaling point includes the value and quality data of the remote signaling point.
4. The method for automatic error-proofing of centralized control station operation according to claim 1, characterized in that: The test case scripts are sorted according to the matching results, including: putting the test case scripts that meet the initialization conditions in the front, and the test case scripts that meet some or all of the initialization conditions in the back, and marking the telesignaling points that do not meet the initialization conditions.
5. The method for automatic error-proofing of centralized control station operation according to claim 1, characterized in that: Compare the test case script running results with the expected results, including: The SCD model file of the centralized control station is loaded and parsed, and initialization is performed according to the test case script, and a remote control command is sent to perform error prevention verification, and an error prevention verification result is obtained.
6. An automatic check system for preventing errors in operation of a centralized control station, characterized in that: include: Test case configuration tool, used to generate the whole station test case script of the centralized control station based on the SCD model file and five-defense rule file of the centralized control station; A matching module, used to match the real-time information of all station test points with the whole station test case script of the centralized control station, and sort the test case script according to the matching result; The main automatic verification program is used to run the test case scripts in sequence according to the order, automatically send remote control request commands, compare the error prevention results with the expected results and generate a verification report; The DLT / 860 simulator is used to load and parse the SCD model file of the centralized control station, respond to the command of the automatic verification main program, and initialize the value and quality of the telesignaling points marked in the test case script that do not meet the initialization conditions; An anti-error verification module is used to forward the remote control request command, communicate with the anti-error service, call the anti-error service interface to obtain and forward the anti-error verification result; The message engine module is used to realize the communication among the automatic verification main program, the DLT / 860 simulation simulator and the anti-error verification module.
7. The automatic check system for preventing errors in operation of a centralized control station according to claim 6 is characterized in that: The matching module is also used to: intercept the real-time library section, and obtain the real-time information of the whole station measurement points according to the real-time library section; The test case scripts are sorted according to the matching results, including: Put the test case scripts that meet the initialization conditions in the front, and the test case scripts that meet some or all of the initialization conditions in the back, and mark the telesignaling points where the initialization conditions are not met.
8. The automatic check system for preventing errors in operation of a centralized control station according to claim 6 is characterized in that: The DLT / 860 simulation simulator responds to the command of the automatic verification main program to initialize the value and quality of the remote signaling point marked in the test case script that does not meet the initialization condition.
9. The automatic check system for preventing errors in operation of a centralized control station according to claim 6 is characterized in that: The communication protocol of the message engine module adopts the IEC104 protocol.
10. An electronic device, characterized in that: It includes 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 automatic error-proofing of operation of a centralized control station as described in any one of claims 1 to 5 is implemented.