Relay protection device test method and system, electronic equipment and storage medium

Through the target communication channel built with the PCIE interface in the relay protection device test equipment, the problems of low data transmission rate and poor real-time performance of existing test equipment are solved, and efficient and accurate data transmission and test results evaluation are achieved.

CN119575167APending Publication Date: 2025-03-07CHINA SOUTHERN POWER GRID COMPANY

Patent Information

Application Number
CN202411763151.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-03
Publication Date
2025-03-07

AI Technical Summary

Technical Problem

The data transmission rate of existing relay protection device testing equipment is low, unable to meet the needs of large-scale data high-speed transmission, and has poor real-time and anti-interference capabilities.

Method used

The test equipment collects the operating data of the relay protection device and encapsulates it, uses the PCIE interface to build a target communication channel, sends the encapsulated data packets to the test host for verification and storage, and parses the data in the test host to determine the operating status of the relay protection device.

Benefits of technology

It shortens data transmission time, improves testing efficiency, ensures real-time and accuracy of data, and provides strong support for the performance evaluation of relay protection devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119575167A_ABST
    Figure CN119575167A_ABST
Patent Text Reader

Abstract

The invention discloses a relay protection device testing method and system, electronic equipment and a storage medium. The method comprises the following steps: acquiring operation data of the relay protection device under different test conditions through test equipment, and packaging the operation data according to a preset packaging format; sending the packaged operation data to the test host in the form of a data packet through the target communication channel by the test equipment; wherein the target communication channel is constructed based on a peripheral component interconnection rapid bus PCIE interface of the test host and a PCIE communication module of the test equipment; verifying the received data packet through the test host, and storing the verified data packet in a data buffer area of the test host; and analyzing the packaged operation data in the data packet in the data buffer area through the test host, and determining whether the relay protection device is in a normal operation state or not according to the operation data obtained after analysis. According to the scheme, the data transmission time can be shortened, and the test efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electric power technology, and in particular to a relay protection device testing method, system, electronic equipment and storage medium. Background Art

[0002] Relay protection devices are important equipment in power systems. They are used to quickly cut off faulty circuits when a fault occurs in the power system to protect other parts of the power system from damage. In order to ensure that the relay protection devices can work normally under various working conditions, they need to be tested and calibrated regularly. Traditional relay protection device test equipment usually uses Ethernet communication, USB interface, serial communication and parallel communication for data transmission and processing. However, the transmission rate of Ethernet and USB interfaces is low and cannot meet the needs of large-scale high-speed data transmission. The real-time performance and anti-interference ability of serial communication and parallel communication are poor. Summary of the invention

[0003] The present application provides a relay protection device testing method, system, electronic device and storage medium, which can shorten data transmission time, improve test efficiency, ensure the real-time and accuracy of data, and provide strong support for the performance evaluation of relay protection devices.

[0004] According to one aspect of the present application, a method for testing a relay protection device is provided, the method comprising:

[0005] Collecting the operating data of the relay protection device under different test conditions through the test equipment, and packaging the operating data according to a preset packaging format;

[0006] The test device sends the packaged operation data to the test host in the form of a data packet through a target communication channel; wherein the target communication channel is constructed based on a peripheral component interconnection fast bus PCIE interface of the test host and a PCIE communication module of the test device;

[0007] Verifying the received data packets through the test host, and storing the verified data packets in the data buffer of the test host;

[0008] The test host parses the encapsulated operating data in the data packet in the data buffer, and determines whether the relay protection device is in a normal operating state based on the operating data obtained after the analysis.

[0009] According to another aspect of the present application, a relay protection device test system is provided, the system comprising a test device and a test host;

[0010] The test equipment is used to collect the operating data of the relay protection device under different test conditions, and package the operating data according to a preset packaging format;

[0011] The test device is also used to send the packaged operation data to the test host in the form of a data packet through a target communication channel; wherein the target communication channel is constructed based on a peripheral component interconnection fast bus PCIE interface of the test host and a PCIE communication module of the test device;

[0012] The test host is used to verify the received data packets and store the verified data packets in the data buffer of the test host;

[0013] The test host is also used to parse the encapsulated operating data in the data packet in the data buffer, and determine whether the relay protection device is in a normal operating state based on the operating data obtained after the analysis.

[0014] According to another aspect of the present application, an electronic device is provided, the electronic device comprising:

[0015] at least one processor; and

[0016] a memory communicatively connected to the at least one processor; wherein,

[0017] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the relay protection device testing method described in any embodiment of the present invention.

[0018] According to another aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the relay protection device testing method described in any embodiment of the present invention when executed.

[0019] The technical solution of the embodiment of the present application is to collect the operating data of the relay protection device under different test conditions through the test equipment, and encapsulate the operating data according to the preset encapsulation format; the test equipment sends the encapsulated operating data to the test host in the form of a data packet through the target communication channel; wherein the target communication channel is constructed based on the PCIE interface of the test host and the PCIE communication module of the test equipment; the test host verifies the received data packet and stores the verified data packet in the data buffer of the test host; the test host parses the encapsulated operating data in the data packet in the data buffer, and determines whether the relay protection device is in a normal operating state according to the operating data obtained after parsing. The technical solution of the embodiment of the present application is to transmit the operating data encapsulated in the preset encapsulation format from the test equipment to the test host in the form of a data packet by adopting the target communication channel constructed by the PCIE interface of the test host and the PCIE communication module of the test equipment, and verify the data packet during the transmission process, which can shorten the data transmission time, improve the test efficiency, ensure the real-time and accuracy of the data, and provide strong support for the performance evaluation of the relay protection device.

[0020] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0022] Figure 1 is a flow chart of a relay protection device testing method provided according to Embodiment 1 of the present application;

[0023] Figure 2 is a flow chart of a relay protection device testing method provided according to Embodiment 2 of the present application;

[0024] Figure 3 It is a structural schematic diagram of a relay protection device test system provided according to the third embodiment of the present application;

[0025] Figure 4 It is a schematic diagram of the structure of an electronic device for implementing the relay protection device testing method of an embodiment of the present application. DETAILED DESCRIPTION

[0026] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0028] Embodiment 1

[0029] Figure 1 A flowchart of a relay protection device testing method is provided for the first embodiment of the present application. This embodiment is applicable to the case of testing a relay protection device. The method can be executed by a relay protection device testing system, and the relay protection device testing system can be implemented in the form of hardware and / or software. Figure 1 As shown, the method includes:

[0030] S110. Collect operating data of the relay protection device under different test conditions through the test equipment, and package the operating data according to a preset packaging format.

[0031] Among them, the relay protection device is a vital safety equipment in the power system. When a fault occurs in the protected power system component, the relay protection device can quickly and accurately issue a tripping command to the circuit breaker closest to the faulty component, so that the faulty component can be disconnected from the power system in time, minimizing damage to the power system component itself and reducing the impact on the safe power supply of the power system.

[0032] Among them, the preset encapsulation format includes a data identifier, a collection timestamp and data length information. The data identifier is used to determine the data type of the running data, the collection timestamp is used to determine the data collection time of the running data, and the data length information is used to determine the number of data bytes of the running data.

[0033] In an embodiment of the present application, the operation data of the relay protection device, such as voltage parameters, current parameters and action time parameters, can be collected through the internal test circuit of the test equipment. Among them, the voltage parameter can reflect the potential difference in the circuit, and can be used to determine the electrical environment in which the relay protection device is located, and judge whether there is abnormal voltage fluctuation in the relay protection device. The current parameter can reflect the flow of charge in the circuit, and can be used to analyze the working state of the relay protection device under different load conditions. The action time parameter records the time from the detection of the fault signal to the actual triggering of the protection action of the relay protection device, and can be used to evaluate the response speed and protection performance of the relay protection device. After collecting the operation data of the relay protection device under different test conditions, the data type, data collection time and number of data bytes of the operation data can be determined according to the preset packaging format, and the operation data can be packaged according to the data type, data collection time and number of data bytes of the operation data, so as to facilitate the subsequent classification of the operation data, restoration according to the time series and integrity verification.

[0034] S120, the test device sends the packaged operation data to the test host in the form of a data packet through a target communication channel; wherein the target communication channel is constructed based on a peripheral component interconnection fast bus PCIE interface of the test host and a PCIE communication module of the test device.

[0035] Among them, the peripheral component interconnect express bus PCIE is a standard that supports high-speed serial computer expansion bus, adopts high-speed serial transmission mode, and can transmit a large amount of data from the sending end to the receiving end in a very short time. In an embodiment of the present application, a target communication channel can be constructed based on the PCIE interface of the test host and the PCIE communication module of the test equipment to realize the transmission of operation data through the PCIE network. It should be noted that the memory capacity of the test host should ensure that there is enough space to store a large amount of operation data transmitted through the target communication channel, and the processor CPU of the test host should ensure that there is enough processing power to process the large amount of stored operation data to improve the test efficiency. The PCIE communication module of the test equipment should match the electrical characteristics and signal transmission protocol of the PCIE interface of the test host.

[0036] In the embodiment of the present application, the PCIE communication module of the test device is connected to the internal test circuit of the test device. After the operation data collected by the internal test circuit is packaged, the packaged operation data can be transmitted to the test host through the target communication channel with the help of the PCIE communication module, so as to realize the transmission of operation data through the PCIE network, and meet the requirements of the relay protection device test for data timeliness and large data volume transmission. At the same time, when transmitting the packaged operation data, a data packet-based transmission method can be adopted, and the PCIE address of the test host can be carried in the header information of the data packet to ensure the accurate transmission of the packaged operation data in the PCIE network, and the correct identification and processing of the received packaged operation data by the test host.

[0037] Optionally, before the packaged operation data is sent to the test host in the form of a data packet through the target communication channel by the test device, it also includes: configuring the PCIE link path and PCIE transmission rate of the target communication channel; and setting a data buffer on the test host and the test device respectively.

[0038] Among them, PCIE link channel refers to the number of channels that can simultaneously transmit data on the physical level of the PCIE link, and PCIE transmission rate refers to the data transmission rate when data is transmitted through the PCIE link channel. The data buffer is used to temporarily store the data to be transmitted or received during the data transmission process, and plays the role of data cache, thereby ensuring the consistency and stability of data transmission, and avoiding problems such as data loss or transmission interruption that may occur due to the mismatch between data processing speed and transmission speed.

[0039] In the embodiment of the present application, for the PCIE link path, the link path can be set to a suitable value according to the specific test requirements, and common optional values ​​are such as x4, x8, x12, x16, etc. For example, if the amount of data involved in the relay protection test is relatively large and the transmission speed is required to be high, and the overall system hardware resources can support a relatively wider link communication, then the link path can be set to x16, so that more data transmission channels can be opened at the same time, thereby effectively improving the parallel processing capability of running data transmission and speeding up the running data transmission speed. For the PCIE transmission rate, in order to ensure that the high-speed transmission advantage of the PCIE network can be fully utilized, the PCIE transmission rate needs to be set to the highest stable rate that the current hardware device can support, so as to avoid the situation where the data transmission efficiency is low due to the transmission rate being set too low. For the data buffer, it is necessary to first estimate the maximum data flow during the test according to the acquisition frequency of the various parameters of the relay protection device during the test, the type of data acquisition, the multiple test items that may be carried out at the same time, and the interval time of data transmission, and then determine the size of the data buffer according to the estimated maximum data flow to ensure that the needs of temporary data storage are met.

[0040] S130 , verifying the received data packets through the test host, and storing the verified data packets in the data buffer of the test host.

[0041] In an embodiment of the present application, after the packaged operation data is sent to the test host in the form of a data packet through the target communication channel by the test device, the test host needs to verify the received data packet. Optionally, the packet header information of the received data packet can be obtained to verify whether the data packet is correctly transmitted to the corresponding test host. Afterwards, the verified data packet is stored in the data buffer of the test host for the test host to parse and process the packaged operation data later. By verifying the received data packet, it can be ensured that the test host correctly identifies and processes the received packaged operation data.

[0042] S140, parsing the encapsulated operating data in the data packet in the data buffer through the test host, and determining whether the relay protection device is in a normal operating state according to the operating data obtained after the parsing.

[0043] In the embodiment of the present application, the encapsulated operation data in the data packet in the data buffer can be parsed by the test host. Specifically, first, the data acquisition time of the operation data can be extracted from the encapsulated operation data. The data acquisition time accurately records the specific time when the operation data is collected at the test equipment end. Its accuracy can be set according to the actual test requirements. By obtaining the data acquisition time, the time series generated by the operation data can be clearly restored in the subsequent analysis, which is helpful for analyzing the working state changes of the relay protection device at different times, judging the change trend of parameters, and performing data time series comparison and other operations. Secondly, the content of the operation data can be extracted from the encapsulated operation data. The content of the operation data covers the specific values ​​of various parameters of the relay protection device, such as voltage parameters, current parameters, action time parameters, etc. Finally, the data type of the operation data can be extracted from the encapsulated operation data to classify and store the parsed operation data. Afterwards, it can be determined whether the relay protection device is in a normal operating state based on the operation data obtained after parsing. Specifically, it can be determined whether the relay protection device is in a normal operating state by comparing and analyzing the various parameters in the operation data with the established standard values. For example, if the voltage value is within the pre-set normal operating voltage range and the fluctuation range is small, the current value also conforms to the expected stable state, and parameters such as the action time meet the requirements of relevant specifications, it can be determined that the relay protection device is in a normal working state; if the voltage fluctuates beyond the normal range, the current value changes suddenly, or the action time deviates from the standard duration, it can be determined that the relay protection device is in an abnormal working state.

[0044] Optionally, the method further includes: classifying the operating data obtained after analysis according to the test items by the test host, and storing each type of operating data according to the data collection time; drawing a change curve of the operating data over time for each type of operating data by the test host, and analyzing the change curve to determine the performance, stability, action characteristics and response time of the relay protection device in different test scenarios.

[0045] In the embodiment of the present application, since the relay protection device test involves multiple different test items, each project has different key test purposes. Therefore, the operation data obtained after parsing can be classified according to the test items, and the relevant data under the same project can be integrated together to facilitate the subsequent independent analysis and comprehensive evaluation of specific projects. At the same time. Each type of operation data can be stored in different regions according to the data acquisition time to accurately restore the sequence of the operation data generation, and clearly present the changes in the operation status of the relay protection device at different times. There is a certain flexibility in the selection of storage media. The test host can store data on a variety of common storage media such as local hard disks and solid-state hard disks. Afterwards, the test host can draw a change curve of the operation data over time for each type of operation data, and analyze the change curve to determine the performance, stability, action characteristics and response time of the relay protection device in different test scenarios. For example, drawing software or data analysis tools can be used to draw curves of voltage change over time and current change over time. These change curves can intuitively show the fluctuations, change trends and the relationship between the voltage and current in the entire test process. By comprehensively analyzing these change curves, the performance and stability of the relay protection device in different test scenarios can be determined.

[0046] The technical solution of the embodiment of the present application is to collect the operating data of the relay protection device under different test conditions through the test equipment, and encapsulate the operating data according to the preset encapsulation format; the test equipment sends the encapsulated operating data to the test host in the form of a data packet through the target communication channel; wherein the target communication channel is constructed based on the PCIE interface of the peripheral component interconnection fast bus of the test host and the PCIE communication module of the test equipment; the test host verifies the received data packet and stores the verified data packet in the data buffer of the test host; the test host parses the encapsulated operating data in the data packet in the data buffer, and determines whether the relay protection device is in a normal operating state according to the operating data obtained after parsing. The technical solution of the embodiment of the present application is to transmit the operating data encapsulated in the preset encapsulation format from the test equipment to the test host in the form of a data packet by adopting the target communication channel constructed by the PCIE interface of the test host and the PCIE communication module of the test equipment, and verify the data packet during the transmission process, which can shorten the data transmission time, improve the test efficiency, ensure the real-time and accuracy of the data, and provide strong support for the performance evaluation of the relay protection device.

[0047] Embodiment 2

[0048] Figure 2This is a flow chart of a relay protection device testing method provided in the second embodiment of the present application. The present embodiment is optimized based on the above embodiment. For solutions not described in detail in the present embodiment, please refer to the above embodiment. Figure 2 As shown, the method includes:

[0049] S210. Collect operating data of the relay protection device under different test conditions through the test equipment, and package the operating data according to a preset packaging format.

[0050] Optionally, the operating data is encapsulated according to a preset encapsulation format, including: determining the data type of the operating data according to the data identifier, determining the data collection time of the operating data according to the collection timestamp, and determining the number of data bytes of the operating data according to the data length information; encapsulating the operating data according to the data type, the data collection time and the number of data bytes.

[0051] In the embodiment of the present application, the data type of the operation data can be determined according to the data identifier, the data collection time of the operation data can be determined according to the collection timestamp, and the number of data bytes of the operation data can be determined according to the data length information, and the operation data can be packaged according to the data type, data collection time and data byte number. Among them, the accuracy of the data collection time can be set according to actual needs, such as accurate to milliseconds or even higher microseconds. By determining the data type of the operation data according to the data identifier, different types of operation data can be quickly and accurately distinguished and classified, so that after the operation data is transmitted to the test host, the test host can know which type of parameter the received operation data specifically belongs to according to the data type, thereby facilitating subsequent targeted processing. By determining the data collection time of the operation data according to the collection timestamp, the time series generated by the operation data can be restored in the subsequent data processing process, which is of great significance for analyzing the working state changes of the relay protection device at different times, judging the change trend of parameters, and performing data time series comparison operations. By determining the number of data bytes of the operation data according to the data length information, when the test host receives the operation data, it can judge whether the operation data is completely received according to the number of data bytes to avoid data missing or redundant situations.

[0052] S220 , the test device sends the packaged operation data to the test host in the form of a data packet through the target communication channel.

[0053] Optionally, the test device sends the encapsulated operating data to the test host in the form of a data packet through the target communication channel, including: using the PCIE address of the test host and the data packet length as a packet header, the encapsulated operating data as a data payload, and the verification information of the data packet as a packet tail to generate a data packet; and sending the generated data packet to the PCIE interface of the test host through the PCIE communication module of the test device.

[0054] In the embodiment of the present application, a data packet is a basic unit of data transmission, and its internal structure includes three parts: a packet header, a data load, and a packet tail. Among them, the packet header contains the PCIE address of the test host and the length of the data packet. The PCIE address of the test host clearly specifies the address to which the data packet is to be transmitted. This address is the unique identifier of the test host in the entire PCIE network environment. The data packet can find the corresponding test host in the PCIE network topology structure by relying on the PCIE address of the test host. The data load part is the encapsulated test data, which contains the specific values ​​of the voltage parameters, current parameters, action time parameters, etc. of the relay protection device and auxiliary information such as data acquisition time and data type. These data are transmitted from the test equipment to the test host via the PCIE network, providing a data basis for data analysis, processing, and performance evaluation of the relay protection device on the test host. The check information in the packet tail is calculated by the CRC check algorithm for the data packet. When the data packet arrives at the test host, the test host calculates again with the same algorithm, and compares the result with the packet tail check information. If they are consistent, it can be preliminarily judged that the data packet transmission is complete. If they are inconsistent, it means that there may be problems in the transmission process and it needs to be investigated and processed. After the data packet is generated, the generated data packet can be sent to the PCIE interface of the test host through the PCIE communication module of the test device.

[0055] S230: Verify the received data packets through the test host, and store the verified data packets in the data buffer of the test host.

[0056] Optionally, the received data packet is verified by the test host, and the verified data packet is stored in the data buffer of the test host, including: verifying the PCIE address and data packet length in the packet header of the data packet; treating the verified data packet as a valid data packet, and storing the valid data packet in a data buffer area pre-configured in the test host.

[0057] In the embodiment of the present application, when the test host is in normal operation and the PCIE interface is in the listening receiving mode, it starts to receive the data packet sent from the test device through the PCIE interface. When the data packet starts to be transmitted, the test host will immediately check the PCIE address and data packet length in the packet header of the data packet. Specifically, first, verify whether the PCIE address is the local address. When the PCIE address accurately points to the test host, it can be ensured that the data packet is sent to the test host and has the necessity of receiving and processing. Secondly, verify the data packet length in the packet header of the data packet. The data packet length clearly identifies the total amount of data covered by the data packet from beginning to end, which is measured in bytes. During the receiving process, the test host will compare the actual amount of data received with the data packet length indicated in the packet header to determine whether the data packet remains intact during the transmission process, and whether there is data loss or additional increase. After that, the data packet that has passed the verification can be used as a valid data packet, and then the test host will store the valid data packet in a pre-set data buffer.

[0058] Optionally, the received data packets are verified by the test host, and the verified data packets are stored in the data buffer of the test host, which also includes: in the process of the test host receiving the data packets, the data flow of the PCIE interface of the peripheral component interconnection fast bus is monitored in real time; and the size of the data buffer is adjusted according to the corresponding preset scheme determined according to the data flow.

[0059] In an embodiment of the present application, the test host can automatically adjust the size of its internal data buffer according to the real-time data flow situation, so that the system can flexibly respond to data transmission requirements under different test conditions, and avoid data overflow or transmission stagnation caused by a fixed buffer size. Specifically, the test host monitors the current data flow situation in real time by monitoring the data transmission rate of the PCIE interface, the number and frequency of received data packets, etc. Exemplarily, a traffic monitor is set to count the number of received data packets and the total number of bytes every 1 millisecond. Afterwards, according to the monitored data flow situation, the corresponding preset scheme is determined to adjust the size of the data buffer. Optionally, the preset scheme includes the following: 1. Fixed increment adjustment, when the data flow exceeds the first preset threshold, the data buffer size increases by a preset fixed value; when the data flow is lower than the second preset threshold, the data buffer size decreases by a preset fixed value. Exemplarily, when the data flow exceeds 10G, the data buffer size is increased by 128M. 2. Proportional adjustment, according to the actual size of the real-time data flow, the size of the data buffer is dynamically adjusted according to a certain proportion. Exemplarily, for every 1G increase in data flow, the buffer size increases by 2%. 3. Intelligent prediction, combining historical data flow data, using machine learning algorithms to predict future data flow trends, and adjusting the data buffer size accordingly. Exemplarily, a time series prediction model is used to predict the data flow in the next 1 second, and the data buffer is adjusted in advance to cope with possible traffic peaks. In an embodiment of the present application, a larger memory pool will be pre-allocated in the test host memory, from which data buffers are dynamically allocated or released according to actual needs, so as to ensure rapid expansion when data flow suddenly increases, while avoiding unnecessary memory waste. When the traffic monitor detects an abnormal increase in data flow, the buffer expansion operation is immediately triggered. It should be noted that if the data flow remains at a peak for a long time, the system will generate an alarm message to prompt the tester to check whether the test environment or test equipment is normal to avoid data errors caused by equipment failure.

[0060] S240, parsing the encapsulated operating data in the data packet in the data buffer through the test host, and determining whether the relay protection device is in a normal operating state according to the operating data obtained after the parsing.

[0061] S250, analyzing the operating data obtained after parsing through the test host, and generating feedback information according to the analysis result.

[0062] In the embodiment of the present application, the operating data obtained after the analysis can also be analyzed by the test host, and feedback information can be generated according to the analysis results, and the test parameters of the test equipment can be adjusted in real time according to the feedback information to ensure the accuracy and reliability of the test. For example, if it is found that the current value is always lower than the expected normal range and has a large difference from the normal current range, it can be analyzed to determine that the current test signal amplitude is set too low, and feedback information related to adjusting the test signal amplitude can be generated; if the frequency of the collected voltage and current parameter data changes too fast, at this time, it exceeds the effective analysis and processing range and will also affect the accuracy of the performance evaluation, and feedback information to appropriately reduce the collection frequency can be generated.

[0063] S260: Send the feedback information to the test device through the target communication channel via the test host, so that the test device can adjust the test parameters according to the feedback information.

[0064] In an embodiment of the present application, after generating feedback information according to the analysis result, the feedback information can be sent to the test equipment through the target communication channel by the test host, so that the test equipment can adjust the test parameters according to the feedback information, so as to optimize the subsequent test process, improve the flexibility and adaptability of the test process, and help to more accurately evaluate and improve the performance of the relay protection device. Specifically, after generating the feedback information, the test host transmits the feedback information and the data packet to the test equipment in the form of a PCIE interface, and after the test equipment receives the data packet containing the feedback information, the data packet is verified to ensure that the received feedback information is complete and accurate for this test equipment. After confirming that the feedback information is correct, the test equipment makes corresponding adjustments to the subsequent test operations according to the content of the feedback information. Exemplarily, if the feedback information requires a change in the acquisition frequency, the test equipment sets and adjusts the relevant components such as the internal timer or the sampling control circuit according to the new acquisition frequency value in the feedback information, so that subsequent data acquisition is performed according to the new frequency standard. If the feedback information requires adjustment of the test signal amplitude, the test device accurately adjusts the test signal amplitude according to the amplitude adjustment value in the feedback information through the internal signal generating circuit or power amplifier circuit and other related components. For example, if the original test signal amplitude is 5V and it is recommended to be adjusted to 8V, the test device controls the related circuit components to change the output test signal amplitude to 8V. Optionally, when setting the PCIE link of the target communication channel, it can be ensured that the link supports full-duplex mode. The full-duplex mode can ensure that data will not be delayed during transmission due to unidirectional transmission on the link. While the test device collects and sends running data to the test host, it can receive feedback information returned by the test host, so that after receiving the feedback information, the test device can make real-time adjustments to subsequent test operations, such as changing the acquisition frequency or adjusting the test signal amplitude. This mode ensures the rapid transmission of feedback information and ensures real-time control during the test process.

[0065] The technical solution of the embodiment of the present application is to collect the operation data of the relay protection device under different test conditions through the test equipment, and encapsulate the operation data according to the preset encapsulation format; send the encapsulated operation data to the test host through the target communication channel in the form of a data packet through the test equipment; verify the received data packet through the test host, and store the verified data packet in the data buffer of the test host; parse the encapsulated operation data in the data packet in the data buffer through the test host, and determine whether the relay protection device is in a normal operating state according to the operation data obtained after parsing; analyze the operation data obtained after parsing through the test host, and generate feedback information according to the analysis result; send the feedback information to the test equipment through the target communication channel through the test host, so that the test equipment can adjust the test parameters according to the feedback information. The technical solution of the embodiment of the present application is to transmit the operation data encapsulated in the preset encapsulation format from the test equipment to the test host in the form of a data packet by adopting the target communication channel constructed by the PCIE interface of the test host and the PCIE communication module of the test equipment, and verify the data packet during the transmission process, which can shorten the data transmission time, improve the test efficiency, ensure the real-time and accuracy of the data, and provide strong support for the performance evaluation of the relay protection device. At the same time, feedback information can be generated based on the operating data obtained after analysis to adjust the test parameters of the test equipment, so as to optimize subsequent test operations and improve the accuracy and reliability of the test results.

[0066] Embodiment 3

[0067] Figure 3 This is a schematic diagram of the structure of a relay protection device test system provided in Example 3 of the present application. Figure 3 As shown, the relay protection device test system 300 includes a test device 310 and a test host 320;

[0068] The test device 310 is used to collect the operating data of the relay protection device under different test conditions, and package the operating data according to a preset packaging format;

[0069] The test device 310 is also used to send the packaged operation data to the test host 320 in the form of a data packet through a target communication channel; wherein the target communication channel is constructed based on the peripheral component interconnection fast bus PCIE interface of the test host 320 and the PCIE communication module of the test device 310;

[0070] The test host 320 is used to verify the received data packets and store the verified data packets in the data buffer of the test host 320;

[0071] The test host 320 is further used to parse the encapsulated operating data in the data packet in the data buffer, and determine whether the relay protection device is in a normal operating state according to the operating data obtained after the parsing.

[0072] Optionally, the preset encapsulation format includes a data identifier, a collection timestamp, and data length information, and the test device 310 is specifically used for:

[0073] Determine the data type of the operation data according to the data identifier, determine the data collection time of the operation data according to the collection timestamp, and determine the number of data bytes of the operation data according to the data length information;

[0074] The operation data is packaged according to the data type, the data collection time and the number of data bytes.

[0075] Optionally, the testing device 310 is further specifically used for:

[0076] A data packet is generated by using the PCIE address and data packet length of the test host 320 as a packet header, the encapsulated running data as a data payload, and the check information of the data packet as a packet tail;

[0077] The generated data packet is sent to the PCIE interface of the test host 320 through the PCIE communication module of the test device 310 .

[0078] Optionally, the test host 320 is specifically used for:

[0079] Verifying the PCIE address and data packet length in the packet header of the data packet;

[0080] The data packets that pass the verification are regarded as valid data packets, and the valid data packets are stored in a data buffer area pre-configured in the test host 320 .

[0081] Optionally, the test host 320 is further specifically used for:

[0082] In the process of the test host 320 receiving the data packet, the data flow of the peripheral component interconnection fast bus PCIE interface is monitored in real time;

[0083] A corresponding preset solution is determined according to the data flow situation to adjust the size of the data buffer.

[0084] Optionally, the test host 320 is further used to analyze the operation data obtained after parsing, and generate feedback information according to the analysis results;

[0085] The test host 320 is further configured to send the feedback information to the test device through the target communication channel, so that the test device can adjust the test parameters according to the feedback information.

[0086] Optionally, the test host 320 is further used to classify the operation data obtained after the analysis according to the test items, and store each type of operation data according to the data collection time;

[0087] The test host 320 is also used to draw a curve of the operation data changing over time for each type of operation data, and analyze the change curve to determine the performance, stability, action characteristics and response time of the relay protection device in different test scenarios.

[0088] The relay protection device testing system provided in the embodiment of the present application can execute the relay protection device testing method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0089] Embodiment 4

[0090] Figure 4 A schematic diagram of an electronic device 10 that can be used to implement an embodiment of the present application is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0091] like Figure 4 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0092] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0093] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 11 executes the various methods and processes described above, such as a relay protection device testing method.

[0094] In some embodiments, the relay protection device test method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the relay protection device test method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the relay protection device test method in any other appropriate manner (e.g., by means of firmware).

[0095] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0096] The computer programs for implementing the methods of the present application may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer programs are executed by the processor, the functions / operations specified in the flow charts and / or block diagrams are implemented. The computer programs may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0097] In the context of the present application, a computer readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device or equipment. A computer readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer readable storage medium may be a machine readable signal medium. A more specific example of a machine readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0098] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0099] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0100] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0101] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document is not limited here.

[0102] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of this application.

Claims

1. A method for testing a relay protection device, characterized in that: The method comprises: Collecting the operating data of the relay protection device under different test conditions through the test equipment, and packaging the operating data according to a preset packaging format; The test device sends the packaged operation data to the test host in the form of a data packet through a target communication channel; wherein the target communication channel is constructed based on a peripheral component interconnection fast bus PCIE interface of the test host and a PCIE communication module of the test device; Verifying the received data packets through the test host, and storing the verified data packets in the data buffer of the test host; The test host parses the encapsulated operating data in the data packet in the data buffer, and determines whether the relay protection device is in a normal operating state based on the operating data obtained after the analysis.

2. The method according to claim 1, characterized in that The preset encapsulation format includes data identification, acquisition timestamp and data length information; The operation data is packaged according to a preset packaging format, including: Determine the data type of the operation data according to the data identifier, determine the data collection time of the operation data according to the collection timestamp, and determine the number of data bytes of the operation data according to the data length information; The operation data is packaged according to the data type, the data collection time and the number of data bytes.

3. The method according to claim 1, characterized in that The test device sends the packaged operation data to the test host in the form of a data packet through the target communication channel, including: The PCIE address and data packet length of the test host are used as a packet header, the encapsulated running data is used as a data payload, and the check information of the data packet is used as a packet tail to generate a data packet; The generated data packet is sent to the PCIE interface of the test host through the PCIE communication module of the test device.

4. The method according to claim 1, characterized in that: Verifying the received data packets by the test host and storing the verified data packets in the data buffer of the test host, including: Verifying the PCIE address and data packet length in the packet header of the data packet; The data packets that pass the verification are regarded as valid data packets, and the valid data packets are stored in a data buffer area pre-configured in the test host.

5. The method according to claim 1, characterized in that The test host verifies the received data packets and stores the verified data packets in the data buffer of the test host, further comprising: In the process of receiving the data packet by the test host, the data flow of the PCIE interface of the peripheral component interconnection fast bus is monitored in real time; A corresponding preset solution is determined according to the data flow situation to adjust the size of the data buffer.

6. The method according to claim 1, characterized in that After determining whether the relay protection device is in a normal operating state according to the operating data obtained after the analysis, the method further includes: Analyzing the operating data obtained after parsing through the test host, and generating feedback information according to the analysis results; The test host sends the feedback information to the test device through the target communication channel, so that the test device can adjust the test parameters according to the feedback information.

7. The method according to claim 1, characterized in that The method further comprises: The test host classifies the operation data obtained after the analysis according to the test items, and stores each type of operation data according to the data collection time; The test host draws a curve of the operating data changing over time for each type of operating data, and analyzes the curve to determine the performance, stability, action characteristics and response time of the relay protection device in different test scenarios.

8. A relay protection device test system, characterized in that: The system includes a test device and a test host; The test equipment is used to collect the operating data of the relay protection device under different test conditions, and package the operating data according to a preset packaging format; The test device is also used to send the packaged operation data to the test host in the form of a data packet through a target communication channel; wherein the target communication channel is constructed based on a peripheral component interconnection fast bus PCIE interface of the test host and a PCIE communication module of the test device; The test host is used to verify the received data packets and store the verified data packets in the data buffer of the test host; The test host is also used to parse the encapsulated operating data in the data packet in the data buffer, and determine whether the relay protection device is in a normal operating state based on the operating data obtained after the analysis.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the relay protection device testing method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the relay protection device testing method according to any one of claims 1 to 7 when executed.

Citation Information

Patent Citations

  • Automatic detection system and detection method for intelligent substation relay protection testing device

    CN103823199A

  • Transformer substation relay protection testing system

    CN104569678A

  • Solar radio burst variable resolution spectrum device based on high speed AD acquisition card and method thereof

    CN106124859A

  • Handheld phase detector

    CN106324372A

  • Automatic test system and test method for intelligent substation protection device

    CN110579658A

Cited By

  • Multi-parameter intelligent monitoring and risk early warning system and method for landfill

    CN120722826A

  • A system and method for landfill multi-parameter intelligent monitoring and risk early warning

    CN120722826B