Test method, system and electronic equipment of regional stability control system and storage medium
By receiving and processing inter-station communication data from the stability control device, generating state sequences and calculating the range of analog quantities, and determining the abrupt change analog quantities, the accuracy problem of regional stability control system testing is solved, and more efficient test result output is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- YUNNAN POWER GRID CO LTD ELECTRIC POWER RES INST
- Filing Date
- 2022-04-27
- Publication Date
- 2026-06-16
AI Technical Summary
The existing regional stability control system testing and experimentation system is not complete enough, and the commissioning quality depends on the experience of on-site commissioning personnel, lacking accuracy and consistency.
The stability control tester receives inter-station communication data from the stability control device under test, generates a state sequence, and the data processing device performs analog quantity calculations, determines the range of analog quantities and sudden change analog quantities, and outputs the test results.
This improves the accuracy and comprehensiveness of regional stability control system testing, reduces reliance on the experience of on-site commissioning personnel, and ensures the reliability of test results.
Smart Images

Figure CN114779742B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of power system technology, and more particularly to a test method, system, electronic device and storage medium for a regional stability control system. Background Technology
[0002] The power system safety and stability control system, or simply the stability control system, is a system comprised of safety and stability control devices at two or more power plants and substations. It is a crucial facility for ensuring the safe and stable operation of the power system. Within a regional stability control system, the stability control devices at each power plant and substation transmit information such as power flow, operating status, and component faults across multiple components within the system via the power system communication network. In the event of a severe grid fault, measures such as generator tripping or load shedding can be implemented to ensure the safe and stable operation of the power system.
[0003] In practical applications, the testing and experimental system for regional stability control systems is not yet complete, and the commissioning quality of stability control devices depends on the experience of on-site commissioning personnel, which is uncertain.
[0004] Therefore, there is an urgent need for a testing method for regional stability control systems to solve the above-mentioned technical problems. Summary of the Invention
[0005] In view of this, embodiments of the present invention provide a testing method, system, electronic device, and storage medium for a regional stability control system, so as to realize the testing of the regional stability control system and improve the accuracy of the test.
[0006] In a first aspect, embodiments of the present invention provide a testing method for a regional stability control system. The testing method is applied to a stability control testing system, which includes a data processing device and a stability control testing instrument. The regional stability control system includes at least one stability control device under test. The method includes:
[0007] The stability tester receives inter-station communication data sent by the stability control device under test, obtains a state sequence based on the inter-station communication data, and sends it to the data processing device; wherein, the state sequence includes multiple analog quantities, and the inter-station communication data includes the state sequence;
[0008] The analog quantities in the state sequence are calculated by the data processing device, and the range of analog quantities is obtained based on the calculation results.
[0009] Based on the range of the analog quantity and the preset threshold, it is determined whether there is a mutation analog quantity in the state sequence. If there is, the test result is obtained based on the mutation analog quantity and the test result is output.
[0010] Secondly, embodiments of the present invention also provide a testing system for a regional stability control system, including a data processing device and a stability control tester, wherein:
[0011] The stability control tester receives inter-station communication data sent by the stability control device under test, obtains a state sequence based on the inter-station communication data, and sends it to the data processing device; the state sequence includes multiple analog quantities, the regional stability control system includes at least one stability control device under test, and the inter-station communication data includes the state sequence;
[0012] The data processing device calculates the analog quantities in the state sequence, obtains the range of analog quantities based on the calculation results, determines whether there is a sudden analog quantity in the state sequence based on the range of analog quantities and a preset threshold, and when it is determined that there is a sudden analog quantity in the state sequence, it obtains the test result based on the sudden analog quantity and outputs the test result.
[0013] Thirdly, embodiments of the present invention also provide an electronic device, the electronic device comprising:
[0014] One or more processors;
[0015] Storage device for storing one or more programs.
[0016] When the one or more programs are executed by the one or more processors, the one or more processors implement the testing method of the regional stability control system as in any embodiment of the present invention.
[0017] Fourthly, embodiments of the present invention also provide a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to perform a test method for a regional stability control system as described in any embodiment of the present invention.
[0018] The technical solution of this invention involves receiving inter-station communication data from the stability control device under test via a stability control tester 420, obtaining a state sequence based on the inter-station communication data, and sending it to a data processing device 410. The data processing device 410 calculates the analog quantities in the state sequence and obtains the range of analog quantities based on the calculation results. Based on the range of analog quantities and a preset threshold, it determines whether there is a sudden change in the analog quantity in the state sequence. If so, it obtains the test result based on the sudden change in the analog quantity and outputs the test result. This technical solution of the present invention enables the testing of the stability control device under test and improves the accuracy of the test. Attached Figure Description
[0019] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0020] in:
[0021] Figure 1 This is a flowchart illustrating a testing method for a regional stability control system according to Embodiment 1 of the present invention;
[0022] Figure 2 This is a communication diagram of a test system for a regional stability control system according to Embodiment 1 of the present invention;
[0023] Figure 3 This is a flowchart illustrating a testing method for a regional stability control system according to Embodiment 1 of the present invention;
[0024] Figure 4 This is a flowchart illustrating a testing method for a regional stability control system according to Embodiment 1 of the present invention;
[0025] Figure 5 This is a flowchart illustrating a testing method for a regional stability control system according to Embodiment 2 of the present invention;
[0026] Figure 6 This is a schematic diagram of the structure of a test system for a regional stability control system according to Embodiment 3 of the present invention;
[0027] Figure 7 This is a schematic diagram of the structure of an electronic device according to Embodiment 4 of the present invention. Detailed Implementation
[0028] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0029] Example 1
[0030] Figure 1 This is a flowchart illustrating a testing method for a regional stability control system provided in an embodiment of the present invention. This embodiment is applicable to testing various stability control devices under test in a regional stability control system. The method can be executed by a testing system for the regional stability control system, which can be implemented in the form of software and / or hardware.
[0031] like Figure 1 As shown, the testing method for the regional stability control system in this embodiment of the invention specifically includes the following steps:
[0032] S110: Receive inter-station communication data sent by the stability control device under test through the stability control tester 420, obtain the state sequence based on the inter-station communication data, and send it to the data processing device 410.
[0033] The state sequence includes multiple analog quantities, and the inter-station communication data includes the state sequence. Analog quantities can refer to voltage, current, power, etc. The test method is applied to the stability control test system, which includes a data processing device 410 and a stability control tester 420. The regional stability control system includes at least one stability control device under test. Inter-station communication data refers to the data sent by the stability control device under test to the stability control device on the other side based on test cases. The regional stability control system of this embodiment includes a master station and an execution station. Therefore, the stability control device under test can be either a master station or an execution station. The master station is used to perform state estimation of the regional power grid, receive load shedding information, unit power information, line or start / stop status information, etc., sent by the execution station at different intervals, and send load shedding amount information, unit shedding command information, etc., to the execution station. The execution station receives load shedding amount information, unit shedding command information, etc., sent by the master station. Optionally, the inter-station communication data between the execution station and the master station can be represented in the form of power and switching quantities. The order in which each type of information is sent is pre-set. For example, inter-station communication data includes load shedding information and generator set shedding command information in sequence. Therefore, the power 1 and power 2 included in the state sequence could mean that power 1 is the load shedding amount and power 2 is the generator set shedding command. The data processing device 410 can be a host computer.
[0034] Specifically, the stability tester 420 receives the inter-station communication data sent by the stability control device under test, filters out the state sequence from the inter-station communication data, and sends the state sequence to the data processing device 410 for processing.
[0035] Furthermore, in this embodiment of the invention, before receiving the inter-station communication data sent by the stability control device under test through the stability control tester 420, the method further includes: sending test cases to the stability control device under test through the stability control tester 420, so that the stability control device under test can feed back inter-station communication data based on the test cases. The test cases include preset local data and preset inter-station data. Preset local data refers to multiple local status data and multiple local input data of the stability control device under test. Preset inter-station data refers to multiple inter-station status data and multiple inter-station input data of the counterpart stability control device. The counterpart stability control device refers to a stability control device that is communicatively connected to the stability control device under test, and the counterpart stability control device includes at least one. The multiple local status data in the preset local data can be represented in the form of a state sequence; similarly, the multiple inter-station status data in the preset inter-station data can also be represented in the form of a state sequence. The preset local data can be used to simulate the operating status of various lines, transformers, or generators within the station of the stability control device under test, and / or equipment fault information. The preset inter-station data can be information such as power flow, operating status and / or equipment failures used to simulate multiple states of the opposing stability control device.
[0036] Specifically, after sending test cases to the device under test (DUT) via the stability control tester 420, the DUT, based on preset local and inter-station data from the test cases, sends feedback inter-station communication data to the counterpart DUT. It should be noted that the stability control tester 420 simulates at least one counterpart DUT that is communicatively connected to the DUT. Therefore, the inter-station communication data sent by the DUT is terminated via the stability control tester 420. See also... Figure 2 The stability tester 420 can simulate at least one counterpart stability device for each stability control device under test. It should be understood that one stability tester 420 can be configured for one stability control device under test, or one stability tester 420 can simulate all counterpart stability devices for all stability control devices under test. Each stability control device under test and its corresponding counterpart stability device have a unique label to avoid confusion.
[0037] For example, such as Figure 2As shown, each under-test (UTP) stability control device is monitored by the data processing device 410, and action message data from each UTP stability control device is received. The stability control tester 420 simulates at least one counterpart stability control device connected to each UTP stability control device via communication. The UTP stability control device 1 sends inter-station communication data to the inter-station module 1 of the stability control tester 420. Then, the inter-station module 1 of the stability control tester 420 feeds back inter-station data corresponding to the inter-station communication data to the UTP stability control device 1. The inter-station communication data sent by the UTP stability control device 1 includes unit switching commands, load switching commands, line connection commands, channel inputs, etc. This data is transmitted to the inter-station module 1 in byte-by-byte format. The inter-station module 1 feeds back the inter-station data corresponding to the inter-station communication data to the UTP stability control device 1, thus forming data communication between the UTP stability control device and the stability control tester.
[0038] Further, see Figure 3 and Figure 4 For testing the regional stability control system, the test environment is first set up to obtain information about each stability control device under test, such as its attribute information (e.g., number, location, whether it is a master station or an execution station). Then, corresponding test cases are set for each stability control device under test. At the start of the test, the data processing device 410 sequentially sends at least one test case to each stability control device under test and drives the stability control tester 420 to send the test cases to the device under test. The stability control tester 420 receives inter-station communication data from the stability control device under test, performs real-time filtering, selects the state sequences that need processing, and transmits the state sequences to the data processing device 410. The data processing device 410 obtains the action message data corresponding to the inter-station communication data. The action message data can be IEC103 messages or IEC61850 messages, and message-side testing is performed. The test results obtained from the state sequence are displayed in the background along with the message verification results. It is then determined whether the test case is the last one. If not, the above steps continue to test the temperature control device under test. If so, it is determined whether there were any failed test cases during the testing process. If so, the cause of the failure is investigated, and it is determined whether the failed test cases should be retested. If the failed test cases are retested, the process returns to the first step, i.e., testing the temperature control device under test based on the failed test cases. If the failed test cases are not retested, a test report is generated, and the test ends. The cause of test failure can be screened manually or by the data processing device 410. For example, different test case failure reasons and corresponding test case failure data can be pre-set, and then the corresponding test case failure reason can be obtained based on the current test case failure data. The cause of test case failure may be inaccurate testing object, such as incorrect data settings of the control device on the opposite side of the temperature control device under test.
[0039] S120. The analog quantity in the state sequence is calculated by the data processing device 410, and the range of the analog quantity is obtained based on the calculation result.
[0040] The calculation method can be to calculate the variance of the analog quantities in the state sequence, or to calculate the mean of the analog quantities in the state sequence. The analog quantity range refers to the constraint on subsequent analog quantities. For example, if the analog quantity is voltage, multiple consecutive voltage values fluctuate within a voltage range.
[0041] Specifically, since the analog quantity is constantly changing, a range can be set for the analog quantity to constrain it in order to test the regional stability control system. However, a fixed range of analog quantities is not applicable to all stability control devices under test. Therefore, the data processing device 410 processes the analog quantity in the state sequence to obtain the range of analog quantities, thereby improving the accuracy of the range determination.
[0042] S130. Based on the analog quantity range and preset threshold, determine whether there is a mutation analog quantity in the state sequence. If there is, obtain the test result based on the mutation analog quantity and output the test result.
[0043] The preset threshold refers to the threshold set based on the analog quantity corresponding to each device under test. For example, for device under test 1, the preset threshold for analog quantity A is XX, and the preset threshold for analog quantity B is YY. For device under test 2, the preset threshold for analog quantity A is ZZ, and the preset threshold for analog quantity B is WW. A sudden change in analog quantity refers to an analog quantity that has changed abruptly, indicating an anomaly in the inter-station communication data sent by the device under test. The test result refers to the result of the test on the device under test, including the sudden change in analog quantity and the corresponding time. For example, voltage 115V, 2022.4.21, 12:22:23; voltage 120V, 2022.4.21, 12:22:24. It should be understood that there can be multiple sudden change in analog quantities.
[0044] Specifically, based on the range of the analog quantity and the preset threshold, the system checks whether there is a sudden change in the analog quantity in the state sequence. If so, it obtains the test result based on the sudden change in the analog quantity and outputs the test result so that the staff can view it and make corresponding adjustments to the control device under test based on the test result.
[0045] Furthermore, in this embodiment of the invention, the state sequence includes multiple analog quantities arranged in chronological order. The data processing device 410 calculates the analog quantities in the state sequence and obtains the analog quantity range based on the calculation results. Based on the analog quantity range and a preset threshold, it is determined whether there is a sudden analog quantity in the state sequence. If so, a test result is obtained based on the sudden analog quantity, including: calculating a first preset number of consecutive analog quantities according to the chronological order and obtaining a first range based on the calculation results; determining whether there is a second preset number of consecutive analog quantities within the first range after the first preset number of analog quantities; if so, determining whether there is a second preset number of consecutive analog quantities within the first range after the second preset number of analog quantities. For a simulated quantity exceeding a preset threshold, the simulated quantity exceeding the preset threshold is referred to as the first simulated quantity. If so, a third preset number of simulated quantities following the first simulated quantity are calculated, and a second range is obtained based on the calculation results. It is then determined whether there is a fourth preset number of consecutive simulated quantities within the second range after the third preset number of simulated quantities. If so, the first simulated quantity among the fourth preset number of consecutive simulated quantities is taken as the second simulated quantity. Multiple simulated quantities between the first and second simulated quantities are taken as mutation simulated quantities. The third preset number is the same as the first preset number, and the fourth preset number is the same as the second preset number. Based on multiple mutation simulated quantities and the time corresponding to each mutation simulated quantity, the test result is obtained.
[0046] The first and third preset quantities can be 24, and the fourth and second preset quantities can be 20.
[0047] Specifically, a first preset number of consecutive analog quantities are calculated according to the time sequence. A first range is obtained based on the calculation results. When a second preset number of consecutive analog quantities exist within the first range after the first preset number of analog quantities, it is determined whether there is an analog quantity exceeding a preset threshold after the second preset number of analog quantities. This analog quantity exceeding the preset threshold is referred to as the first analog quantity. That is, when the second preset number of consecutive analog quantities are stable within the first range, there is a sudden first analog quantity exceeding the preset threshold. If so, a third preset number of analog quantities following the analog quantity exceeding the preset threshold are calculated. A second range is obtained based on the calculation results. When a fourth preset number of consecutive analog quantities exist within the second range after the third preset number of analog quantities, the first analog quantity in the fourth preset number of consecutive analog quantities is taken as the second analog quantity. Multiple analog quantities between the first and second analog quantities are taken as sudden analog quantities. That is, the fourth preset number of analog quantities stabilize within the second range after the sudden analog quantity. In this embodiment of the invention, the sudden analog quantity and the corresponding time for each sudden analog quantity are taken as the test result. It should be noted that the test results include multiple results, each containing multiple simulated mutation quantities and the corresponding time for each simulation quantity. The test results complete the testing of the stability control device under test, allowing personnel to make corresponding adjustments based on the test cases and results. Setting a uniform preset threshold for different stability control devices and different inter-station communication data can lead to inappropriate threshold matching for light and heavy loads, thus reducing test accuracy. However, this embodiment of the invention sets corresponding preset thresholds for each stability control device under test and determines the range of simulated quantities. The simulated mutation quantities are determined by combining the simulated quantity range and the preset thresholds, thereby obtaining the measurement results and improving the accuracy of the measurement results, thus enhancing the accuracy of the test of the stability control device under test.
[0048] Furthermore, in this embodiment of the invention, calculating a first preset number of consecutive analog quantities and obtaining a first range based on the calculation results includes: calculating the variance of the first preset number of analog quantities using a preset algorithm to obtain a first variance; obtaining a first range based on the first variance; calculating a third preset number of analog quantities following the first analog quantities and obtaining a second range based on the calculation results includes: calculating the variance of the third preset number of analog quantities using a preset algorithm to obtain a second variance; obtaining a second range based on the second variance.
[0049] The preset algorithm can be a recursive algorithm, etc. The first range can be determined based on a multiple of the first variance. For example, the first variance can be used as one boundary value of the first range, and three times the first variance can be used as another boundary value of the first range to obtain the first range. Similarly, the second range is obtained using the same principle, which will not be elaborated here.
[0050] Specifically, the mean is calculated from the first preset number of consecutive analog quantities, and then the first variance is obtained. A first range is obtained based on the first variance. Similarly, the variance is calculated from the third preset number of analog quantities that exceed a preset threshold, and a second variance is obtained based on the second variance.
[0051] The technical solution of this invention involves receiving inter-station communication data from the stability control device under test via a stability control tester 420, obtaining a state sequence based on the inter-station communication data, and sending it to a data processing device 410. The data processing device 410 calculates the analog quantities in the state sequence and obtains the range of analog quantities based on the calculation results. Based on the range of analog quantities and a preset threshold, it determines whether there is a sudden change in the analog quantity in the state sequence. If so, it obtains the test result based on the sudden change in the analog quantity and outputs the test result. This technical solution of the present invention enables the testing of the stability control device under test and improves the accuracy of the test.
[0052] Example 2
[0053] Figure 5 This is a flowchart illustrating a testing method for a regional stability control system provided by an embodiment of the present invention. This embodiment adds a message verification step to the optional solutions described in the above embodiments. Technical terms that are the same as or similar to those in the above embodiments will not be repeated.
[0054] like Figure 5 As shown, the testing method for a regional stability control system provided in this embodiment of the invention includes the following steps:
[0055] S210: Receive inter-station communication data sent by the stability control device under test through the stability control tester 420, obtain the state sequence based on the inter-station communication data, and send it to the data processing device 410.
[0056] S220: The data processing device 410 reads the test action message sent by the control device under test, and verifies the test action message based on the preset action message to obtain the message verification result. The test action message corresponds to the inter-station communication data.
[0057] Among them, the action message to be tested refers to the action message corresponding to the inter-station communication data. The preset action message refers to the action message corresponding to the test case. When the stability control device under test is tested using test cases, the data processing device 410 can read the action message to be tested from the stability control device under test at this time when the device sends inter-station communication data based on the test cases. The action message to be tested includes the number of action messages and the time of the action.
[0058] Specifically, the data processing device 410 reads the test action message of the control device under test and compares it with the preset action message, and uses the comparison result as the message verification result.
[0059] Furthermore, in this embodiment of the invention, the action message to be tested includes the fault power; after reading the action message to be tested sent by the stability control device under test through the data processing device 410, the method further includes: comparing the fault power with the theoretical value of the fault power to obtain the error verification result.
[0060] Fault power can refer to status data or the power corresponding to commands such as load shedding. Fault power can also be fault voltage, fault current, etc. The theoretical power fault value refers to the fault power value set when writing test cases.
[0061] Specifically, the fault power is compared with the theoretical fault power value to obtain the error verification result. By obtaining the error verification result, the comprehensiveness of the verification of the stability control device under test is improved.
[0062] Furthermore, in this embodiment of the invention, the data processing device 410 also verifies the correctness of the actions of the stability control device under test based on the action information contained in the action message to be tested and the pre-set action information. For example, the pre-set action information includes actions performed sequentially in chronological order, including action A, action B, and action C. The action information in the action message to be tested includes action A, action C, and action B in chronological order. The data processing device 410 verifies the accuracy of the action information of the stability control device under test and generates an action verification result.
[0063] S230. The analog quantity in the state sequence is calculated by the data processing device 410, and the range of the analog quantity is obtained based on the calculation result.
[0064] S240. Based on the analog quantity range and preset threshold, determine whether there is a mutation analog quantity in the state sequence. If there is, obtain the test result based on the mutation analog quantity and output the test result.
[0065] Furthermore, in this embodiment of the invention, outputting test results includes: outputting the test results in the form of a test report, and / or displaying the test results, message verification results, and error verification results on the interface.
[0066] Specifically, test results can be output in the form of test reports for easy viewing by staff. These reports include test cases, attribute information of the device under test, the output time of each test result, and the content of the test result. Alternatively, each test result can be displayed on the interface in real time. Or, test results, message verification results, and error verification results can be displayed on the interface to improve the display effect and enhance the staff's experience.
[0067] Optionally, the action verification results, message verification results, error verification results, and test results can be used to generate a test report for staff to review.
[0068] Furthermore, in this embodiment of the invention, each device under test (DUT) in the test area stabilization system is tested. The test results and corresponding test cases for each DUT can be displayed on the display interface. There can be up to 42 DUTs. For DUTs employing a framing mechanism, 39 frames of data can be configured. The action messages of the DUTs are transmitted via optical fiber at a fixed packet transmission rate.
[0069] The technical solution of this invention involves a stability control tester 420 receiving inter-station communication data from the stability control device under test, obtaining a state sequence based on the inter-station communication data, and sending it to a data processing device 410. The data processing device 410 reads the action message to be tested sent by the stability control device under test, verifies the action message based on a preset action message, and obtains the message verification result. The data processing device 410 calculates the analog quantities in the state sequence, obtains the analog quantity range based on the calculation result, and determines whether there is a sudden change in the analog quantity in the state sequence based on the analog quantity range and a preset threshold. If so, the test result is obtained based on the sudden change in the analog quantity and output. This technical solution of the present invention enables the testing of a regional stability control system, improving the comprehensiveness and accuracy of the test.
[0070] Example 3
[0071] Figure 6 This is a schematic diagram of the structure of a test system for a regional stability control system provided in an embodiment of the present invention. The test system for a regional stability control system provided in this embodiment of the present invention can execute the test method for a regional stability control system provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects for executing the method. The system includes: a data processing device 410 and a stability control tester 420; wherein:
[0072] The stability control tester 420 receives inter-station communication data sent by the stability control device under test, obtains a state sequence based on the inter-station communication data, and sends it to the data processing device 410. The state sequence includes multiple analog quantities. The regional stability control system includes at least one stability control device under test, and the inter-station communication data includes the state sequence. The data processing device 410 calculates the analog quantities in the state sequence, obtains the analog quantity range based on the calculation results, and determines whether there is a sudden analog quantity in the state sequence based on the analog quantity range and a preset threshold. When it is determined that there is a sudden analog quantity in the state sequence, the test result is obtained based on the sudden analog quantity, and the test result is output.
[0073] Furthermore, the multiple analog quantities in the state sequence are arranged in chronological order; the data processing device 410 is also used to: calculate the first preset number of consecutive analog quantities according to the chronological order, and obtain a first range based on the calculation results; if there are a second preset number of consecutive analog quantities within the first range after the first preset number of analog quantities, then determine whether there are analog quantities exceeding a preset threshold after the second preset number of analog quantities, and refer to the analog quantities exceeding the preset threshold as the first analog quantity; if there are analog quantities exceeding the preset threshold, calculate the third preset number of analog quantities after the first analog quantity, and obtain a second range based on the calculation results; if there are a fourth preset number of consecutive analog quantities within the second range after the third preset number of analog quantities, then take the first analog quantity among the fourth preset number of consecutive analog quantities as the second analog quantity; take the multiple analog quantities between the first and second analog quantities as mutation analog quantities; the third preset number is the same as the first preset number, and the fourth preset number is the same as the second preset number; and obtain the test result based on the multiple mutation analog quantities and the time corresponding to each mutation analog quantity.
[0074] Furthermore, the multiple analog quantities in the state sequence are arranged in chronological order; the data processing device 410 is also used to: calculate the variance of a first preset number of analog quantities using a preset algorithm to obtain a first variance; obtain a first range based on the first variance; calculate the variance of a third preset number of analog quantities using a preset algorithm to obtain a second variance; and obtain a second range based on the second variance.
[0075] Furthermore, the stability control tester 420 is used to: send test cases to the stability control device under test, so that the stability control device under test can feed back inter-station communication data based on the test cases. The test cases include preset local data and preset inter-station data. The preset local data refers to multiple local status data and multiple local input data of the stability control device under test. The preset inter-station data refers to multiple inter-station status data and multiple inter-station input data of the counterpart stability control device. The counterpart stability control device refers to the stability control device that is communicatively connected to the stability control device under test. The counterpart stability control device includes at least one device.
[0076] Furthermore, the data processing device 410 is also used to: read the action message to be tested sent by the control device under test, and verify the action message to be tested based on the preset action message to obtain the message verification result, and the action message to be tested corresponds to the inter-station communication data.
[0077] Furthermore, the message of the action under test includes the fault power; the data processing device 410 is also used to: compare the fault power with the theoretical value of the fault power to obtain the error verification result. Furthermore, the data processing device 410 is also used to: output the test results in the form of a test report, and / or display the test results, message verification results, and error verification results on the interface.
[0078] The technical solution of this invention involves receiving inter-station communication data from the stability control device under test via a stability control tester 420, obtaining a state sequence based on the inter-station communication data, and sending it to a data processing device 410. The data processing device 410 calculates the analog quantities in the state sequence and obtains the range of analog quantities based on the calculation results. Based on the range of analog quantities and a preset threshold, it determines whether there is a sudden change in the analog quantity in the state sequence. If so, it obtains the test result based on the sudden change in the analog quantity and outputs the test result. This technical solution of the present invention enables the testing of the stability control device under test and improves the accuracy of the test.
[0079] It is worth noting that the modules included in the above system are divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be achieved; in addition, the specific names of each functional module are only for easy differentiation and are not used to limit the protection scope of the embodiments of the present invention. It should be understood that the stability tester 420 and the data processing device 410 refer to the functional modules of the system.
[0080] Example 4
[0081] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Figure 7 A block diagram is shown of an exemplary electronic device 50 suitable for implementing embodiments of the present invention. Figure 7 The electronic device 50 shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of the present invention.
[0082] like Figure 7 As shown, the electronic device 50 is represented in the form of a general-purpose computing device. The components of the electronic device 50 may include, but are not limited to: one or more processors or processing units 501, system memory 502, and bus 503 connecting different system components (including system memory 502 and processing unit 501).
[0083] Bus 503 represents one or more of several bus architectures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of the various bus architectures. Examples of these architectures include, but are not limited to, the Industry Standard Architecture (ISA) bus, the Micro Channel Architecture (MAC) bus, the Enhanced ISA bus, the Video Electronics Standards Association (VESA) local bus, and the Peripheral Component Interconnect (PCI) bus.
[0084] Electronic device 50 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by electronic device 50, including volatile and non-volatile media, removable and non-removable media.
[0085] System memory 502 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 504 and / or cache memory 505. Electronic device 50 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 506 may be used to read and write non-removable, non-volatile magnetic media (… Figure 7 Not shown; usually referred to as a "hard drive"). Although Figure 7 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk") and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 503 via one or more data media interfaces. Memory 502 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the embodiments of the present invention.
[0086] A program / utility 508 having a set (at least one) of program modules 507 may be stored, for example, in memory 502. Such program modules 507 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. Program modules 507 typically perform the functions and / or methods described in the embodiments of the present invention.
[0087] Electronic device 50 can also communicate with one or more external devices 509 (e.g., keyboard, pointing device, display 510, etc.), and with one or more devices that enable a user to interact with the electronic device 50, and / or with any device that enables the electronic device 50 to communicate with one or more other computing devices (e.g., network card, modem, etc.). This communication can be performed via input / output (I / O) interface 511. Furthermore, electronic device 50 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 512. As shown, network adapter 512 communicates with other modules of electronic device 50 via bus 503. It should be understood that, although... Figure 7 As not shown, other hardware and / or software modules may be used in conjunction with electronic device 50, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0088] The processing unit 501 executes various functional applications and data processing by running programs stored in the system memory 502, such as implementing the test method of the regional stability control system provided in the embodiments of the present invention.
[0089] Example 5
[0090] This invention also provides a storage medium containing computer-executable instructions. When executed by a computer processor, these instructions are used to perform a test method for a regional stability control system. The test method is applied to a stability control test system, which includes a data processing device 410 and a stability control tester 420. The regional stability control system includes at least one stability control device under test. The method includes: receiving inter-station communication data sent by the stability control device under test through the stability control tester 420; obtaining a state sequence based on the inter-station communication data and sending it to the data processing device 410; wherein the state sequence includes multiple analog quantities, and the inter-station communication data includes the state sequence; calculating the analog quantities in the state sequence through the data processing device 410; obtaining the analog quantity range based on the calculation result; determining whether there is a sudden analog quantity in the state sequence based on the analog quantity range and a preset threshold; if so, obtaining a test result based on the sudden analog quantity and outputting the test result.
[0091] The computer storage medium of this invention can be any combination of one or more computer-readable media. A computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0092] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, capable of sending, propagating, or transmitting programs for use by or in connection with an instruction execution system, apparatus, or device.
[0093] Program code contained on a computer-readable medium may be transmitted using any suitable medium, including—but not limited to—wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.
[0094] Computer program code for performing the operations of embodiments of the present invention can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0095] The above description discloses only preferred embodiments of the present invention and should not be construed as limiting the scope of the present invention. Therefore, equivalent variations made in accordance with the claims of the present invention are still within the scope of the present invention.
Claims
1. A test method for a regional stability control system, characterized in that, The testing method is applied to a stability control testing system, which includes a data processing device and a stability control testing instrument. The regional stability control system includes at least one stability control device under test. The method includes: The stability tester receives inter-station communication data sent by the stability control device under test, obtains a state sequence based on the inter-station communication data, and sends it to the data processing device; wherein, the state sequence includes multiple analog quantities, and the inter-station communication data includes the state sequence; The analog quantities in the state sequence are calculated by the data processing device, and the range of analog quantities is obtained based on the calculation results. Based on the range of the analog quantity and the preset threshold, it is determined whether there is a mutation analog quantity in the state sequence. If there is, the test result is obtained based on the mutation analog quantity and the test result is output. In this state sequence, multiple analog quantities are arranged in chronological order; The process involves calculating the analog quantities in the state sequence using the data processing device, obtaining the analog quantity range based on the calculation results, and determining whether a sudden analog quantity exists in the state sequence based on the analog quantity range and a preset threshold. If such a sudden analog quantity exists, a test result is obtained based on the sudden analog quantity, including: Based on the time sequence, the first preset number of consecutive analog quantities are calculated, and the first range is obtained based on the calculation results. Determine whether, after the first preset number of analog values, there are a second preset number of consecutive analog values within the first range; if so, After determining a second preset number of analog quantities, whether there is an analog quantity exceeding the preset threshold, the analog quantity exceeding the preset threshold is referred to as the first analog quantity; if so, Calculate the third preset number of analog quantities after the first analog quantity, and obtain the second range based on the calculation results; Determine whether, after the third preset number of analog quantities, there exists a fourth preset number of analog quantities within the second range; if so, The first analog quantity among the fourth consecutive preset number of analog quantities is taken as the second analog quantity; Multiple analog quantities between the first and second analog quantities are used as mutation analog quantities; The third preset quantity is the same as the first preset quantity, and the fourth preset quantity is the same as the second preset quantity; The test results are obtained based on multiple mutation simulations and the corresponding time for each mutation simulation.
2. The test method for the regional stability control system according to claim 1, characterized in that, The step of calculating a first preset number of consecutive analog quantities and obtaining a first range based on the calculation results includes: The variance of a first set number of analog quantities is calculated using a preset algorithm to obtain the first variance. The first range is obtained based on the first variance; The calculation of a third preset number of analog quantities following the first analog quantity, and the determination of the second range based on the calculation results, includes: The second variance is obtained by calculating the variance of a third preset number of analog quantities using a preset algorithm; The second range is obtained based on the second variance.
3. The test method for the regional stability control system according to claim 1, characterized in that, Before receiving the inter-station communication data sent by the stability control device under test through the stability control tester, the method further includes: The stability control tester sends test cases to the stability control device under test, so that the stability control device under test can feed back the inter-station communication data based on the test cases. The test cases include preset local data and preset inter-station data. The preset local data refers to multiple local status data and multiple local input data of the stability control device under test. The preset inter-station data refers to multiple inter-station status data and multiple inter-station input data of the counterpart stability control device. The counterpart stability control device refers to the stability control device that is communicatively connected to the stability control device under test. The counterpart stability control device includes at least one device.
4. The test method for the regional stability control system according to claim 1, characterized in that, After receiving the inter-station communication data sent by the stability control device under test through the stability control tester, the method further includes: The data processing device reads the action message to be tested sent by the control device under test, and verifies the action message to be tested based on the preset action message to obtain the message verification result. The action message to be tested corresponds to the inter-station communication data.
5. The test method for the regional stability control system according to claim 4, characterized in that, The action message to be tested includes the fault power; After reading the test action message sent by the test stability control device through the data processing device, the method further includes: The fault power is compared with the theoretical value of the fault power to obtain the error verification result.
6. The test method for the regional stability control system according to claim 5, characterized in that, The output of the test results includes: The test results are output in the form of a test report, and / or the test results, message verification results, and error verification results are displayed on the interface.
7. A testing system for a regional stability control system, characterized in that, Includes data processing equipment and stability testing equipment, among which: The stability control tester receives inter-station communication data sent by the stability control device under test, obtains a state sequence based on the inter-station communication data, and sends it to the data processing device; the state sequence includes multiple analog quantities, the regional stability control system includes at least one stability control device under test, and the inter-station communication data includes the state sequence; The data processing device calculates the analog quantities in the state sequence, obtains the range of analog quantities based on the calculation results, determines whether there is a sudden analog quantity in the state sequence based on the range of analog quantities and a preset threshold, and when it is determined that there is a sudden analog quantity in the state sequence, it obtains a test result based on the sudden analog quantity and outputs the test result. In this state sequence, multiple analog quantities are arranged in chronological order; The data processing device calculates a first preset number of consecutive analog quantities according to time sequence, and obtains a first range based on the calculation results; it then determines whether there is a second preset number of consecutive analog quantities within the first range after the first preset number of analog quantities. If so, it determines whether there is an analog quantity exceeding a preset threshold after the second preset number of analog quantities, and designates the analog quantity exceeding the preset threshold as the first analog quantity. If so, it calculates a third preset number of analog quantities after the first analog quantity, and obtains a second range based on the calculation results; it then determines whether there is a fourth preset number of consecutive analog quantities within the second range after the third preset number of analog quantities. If so, it designates the first analog quantity among the fourth preset number of consecutive analog quantities as the second analog quantity; it designates multiple analog quantities between the first and second analog quantities as abrupt analog quantities; the third preset number is the same as the first preset number, and the fourth preset number is the same as the second preset number; based on the multiple abrupt analog quantities and the time corresponding to each abrupt analog quantity, it obtains a test result.
8. An electronic device, characterized in that, The electronic device includes: One or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the test method for the regional stability control system as described in any one of claims 1-6.
9. A storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to perform a test method for a regional stability control system as described in any one of claims 1-6.