Method, device and equipment for transient homologous recording wave alignment
By acquiring electrical signal data from the waveform recording files of the protection device and the waveform recording device, and performing time correction and interpolation processing, the problem of low reliability of waveform comparison results under different time axes is solved, and more accurate same-source waveform comparison is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CYG SUNRI CO LTD
- Filing Date
- 2023-02-23
- Publication Date
- 2026-05-26
Smart Images

Figure CN116247609B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of power relay protection technology, and in particular to a method, apparatus and equipment for transient co-source waveform comparison. Background Technology
[0002] With the continuous expansion of the construction scale of smart substations, the development of self-diagnostic technology has laid the technical foundation for the condition monitoring of equipment in substations. By fully analyzing and effectively integrating the existing data information within the substation, the data within the substation becomes intelligent, thereby effectively improving the operating efficiency of the substation. Specifically, the changes in various electrical quantities of equipment in the substation before, during, and after a fault are recorded in the waveform data of the protection device and the acquisition unit of the waveform recorder. Therefore, by comparing and cross-checking the redundant measurement information of secondary equipment in the substation, faults and potential hazards in the operation of secondary circuits such as analog sampling, input, and output circuits of secondary equipment can be detected. However, due to the limitations of comparing data from the same source sampled from different devices, factors such as different time axes and inconsistent sampling frequencies can lead to a certain degree of false alarms in the transient same-source data comparison conclusions of different manufacturers. This results in low reliability and false alarms in the transient same-source waveform comparison results. Summary of the Invention
[0003] This application provides a method, apparatus, and device for transient homogeneous waveform comparison, which solves the technical problem of low reliability of transient homogeneous waveform comparison results sampled by protection devices and waveform recording devices when they are not on the same time axis.
[0004] In a first aspect, embodiments of this application provide a method for transient co-source waveform comparison. The method includes: obtaining first waveform data from a waveform file of a protection device, obtained by sampling electrical signals of a target device using a protection waveform channel within a first time period; the first waveform data comprising multiple first data points and a timestamp for each first data point; obtaining second waveform data from a waveform file of a waveform recording device, obtained by sampling electrical signals of the target device using a first sampling waveform channel within the first time period; the first sampling waveform channel being a sampling waveform channel associated with a protection waveform channel among multiple sampling waveform channels included in the waveform recording device; the second waveform data comprising multiple second data points and a timestamp for each second data point; compensating for the timestamp of at least one first data point based on a first time-calibration deviation of the first waveform data; and compensating for the timestamp of at least one second data point based on a second time-calibration deviation of the second waveform data. M first data points are obtained from the compensated first waveform data, and M second data points with the same time scale as the M first data points are obtained from the compensated second waveform data. The M second data points include: second data points with the same time scale as any first data point, and / or, interpolation points with the same time scale as any first data point. Each compensated first data point is compared with the compensated second data points associated with the same time scale.
[0005] This application provides a method for transient same-source waveform comparison. First waveform data, obtained by sampling the electrical signal of the target device from the protection waveform recording channel of the protection device within a first time period, is obtained from the waveform recording file of the protection device. Second waveform data, obtained by sampling the electrical signal of the target device from the first sampling waveform recording channel within the first time period, is also obtained from the waveform recording file of the waveform recording device. In other words, the second waveform data and the first waveform data are waveform data of the same electrical signal. The first sampling waveform recording channel is the sampling waveform recording channel associated with the protection waveform recording channel among multiple sampling waveform recording channels included in the waveform recording device. This allows for the acquisition of waveform data from the sampling waveform recording channel of the protection device and the sampling waveform recording channel in the associated waveform recording device, enabling subsequent comparison of same-source data. Then, the time scale of at least one first data point is compensated based on the first time calibration deviation of the first waveform data, and the time scale of at least one second data point is compensated based on the second time calibration deviation of the second waveform data, so as to reduce the objective deviation between the time scale of the first data point and the second data point, and lay the foundation for locating the second data point with the same time scale as the first data point. M first data points are obtained from the compensated first waveform data, and M second data points with the same time scale as the M first data points are obtained from the compensated second waveform data. The M second data points include: second data points with the same time scale as any first data point, and / or, interpolation points located in the middle of the time scales of two second data points. Then, the M first data points and the M second data points associated with the same time scale are compared. In this way, the first data points associated with the same time scale and the second data points of the same source can be determined, thereby solving the technical problem of low reliability of the transient homogeneous waveform comparison results sampled by the protection device and the waveform recording device under different time axes.
[0006] In one possible implementation of this application, obtaining M first data points from the compensated first waveform data and obtaining M second data points with the same time scale as the M first data points based on the compensated second waveform data includes: when the sampling frequency of the protection device and the sampling frequency of the waveform recording device are inconsistent, obtaining M first data points from the compensated plurality of first data points starting from a reference time scale, wherein the reference time scale is located before the first protection start time and differs from the first protection start time by a preset period, and the first protection start time is the time when the protection device determines that the target equipment has failed. Based on the reference time scale, determining the time deviation between the reference time scale and the deviation time scale, wherein the deviation time scale is located before the second protection start time and differs from the second protection start time by a preset period, and the second protection start time is the time when the waveform recording device determines that the target equipment has failed. Starting from the reference time scale and the time scale determined by the time deviation, obtaining M second data points from the compensated plurality of second data points.
[0007] In one possible implementation of this application, the method provided in this application embodiment may further include, before obtaining the first waveform data obtained by sampling the electrical signal of the target device by the protection waveform channel of the protection device within a first time period from the waveform file of the protection device: establishing a mapping relationship between waveform channels of the same source to be compared, wherein the waveform channels of the same source to be compared are the protection waveform channel of each of one or more protection devices and the corresponding sampling waveform channel in the waveform recording device.
[0008] Accordingly, before obtaining the second waveform data obtained by sampling the electrical signal of the target device by the first sampling waveform channel in the first time period from the waveform file of the waveform recording device, the method provided in this application embodiment further includes: taking the sampling waveform channel associated with the protection waveform channel of the protection device as the first sampling waveform channel according to the identifier of the protection waveform channel of the protection device and the above mapping relationship.
[0009] In one possible implementation of this application, the data point corresponding to the reference time scale is the target first data point. Determining the time deviation between the reference time scale and the deviation time scale based on the reference time scale includes: using a data point in the second waveform data that is identical to the reference time scale, or using a first interpolation point in the second waveform data as the target second data point. The time scale of the first interpolation point is the same as the reference time scale, and the time scale of the first interpolation point is located between the time scales of the two second data points. The time deviation is determined based on the phase value of the target first data point and the phase value of the target second data point.
[0010] In one possible implementation of this application, before determining the time deviation based on the phase values of the target first data point and the target second data point, the method further includes: when using a first interpolation point in the second waveform data as the target second data point, obtaining from the second waveform data the first phase value of the second data point associated with a first time marker, the second phase value of the second data point associated with a second time marker, and the third phase value of the second data point associated with a third time marker, where the first time marker is the time marker of the second data point preceding the reference time marker, the second time marker is the time marker of the first second data point following the reference time marker, and the third time marker is the time marker of the second second data point following the reference time marker. Based on the first time marker, the second time marker, the third time marker, the first phase value, the second phase value, and the third phase value, a second-order Lagrange interpolation algorithm is used to obtain the phase value of the target second data point.
[0011] In one possible implementation of this application, when the first and second data points include analog data points, M second data points are obtained from a plurality of compensated second data points, starting from a time scale determined by a reference time scale and a time deviation. This includes: determining M target time scales based on the time scales and time deviations of the M first data points, using the time scale determined by the reference time scale and time deviation as the starting point, and based on the sampling frequency of the protection device. Based on the M target time scales, second data points associated with each target time scale are obtained from the compensated second waveform data to obtain M second data points. Correspondingly, comparing the M first data points with the M second data points associated with the same time scale includes: obtaining the difference between the M first data points and the M second data points associated with the same time scale. If the difference between N consecutive first data points and the second data points associated with the same time scale is greater than or equal to a first preset threshold, a first alarm message is output.
[0012] In one possible implementation of this application, based on M target time markers, second data points associated with each target time marker are obtained from the compensated second waveform data to obtain M second data points. This includes: if a second data point associated with a target time marker exists in the second waveform data, then the second data point associated with the target time marker is obtained from the second waveform data. If no second data point associated with any target time marker exists in the second waveform data, then a second-order Lagrange interpolation algorithm is used to determine the second data point associated with any target time marker.
[0013] In one possible implementation of this application, when the first data point and the second data point include analog data points, before comparing the M first data points and the M second data points associated with the same time scale, the method further includes: when it is determined that at least one protection device has failed among a plurality of protection devices, and at least one time period is obtained, determining a reference time scale within the first time period.
[0014] In one possible implementation of this application, determining the reference timescale within the first time period includes: parsing the HDR file in the waveform recording file of the protection device to obtain the target time difference between the first protection start time and the third protection start time under the TripInfo node, wherein the third protection time is the time when any of the at least one protection device first determines the equipment fault corresponding to that protection device. The reference timescale is determined based on the first alignment timescale and the target time difference, wherein the first alignment timescale is prior to the third protection start time and differs from the third protection start time by a preset period.
[0015] In one possible implementation of this application, when the first data point and the second data point include switch quantity change points, the switch quantity change points are used to indicate a change in the switch quantity state between two adjacent data points. Comparing M first data points with M second data points associated with the same time point includes: comparing the change points of the first switch quantities of the M first data points with the change points of the second switch quantities of the M second data points associated with the same time point to obtain the change time difference between the change points of the M first switch quantities and the change points of the M second switch quantities associated with the same time point. If any change time difference is greater than or equal to a second preset threshold, a second warning message is output.
[0016] Secondly, embodiments of this application provide a device for transient same-source waveform comparison. This device can implement the method in the first aspect or any possible implementation of the first aspect, and therefore can also achieve the beneficial effects of the first aspect or any possible implementation of the first aspect. The device can be an electronic device, or a device that supports the implementation of the method in the first aspect or any possible implementation of the first aspect, such as a waveform recording device or a management module within a waveform recording device. The device can implement the above method through software, hardware, or hardware executing corresponding software.
[0017] As an example, this application provides a device for transient co-source waveform comparison. The device is an electronic device or an electronic device. The device includes an acquisition unit, a compensation unit, and a comparison unit. The acquisition unit is used to acquire first waveform data obtained from the waveform file of the protection device by sampling the electrical signal of the target device through the protection waveform channel within a first time period. The first waveform data includes multiple first data points and a timestamp for each first data point. The acquisition unit is also used to acquire second waveform data obtained from the waveform file of the waveform recording device by sampling the electrical signal of the target device through a first sampling waveform channel within the first time period. The first sampling waveform channel is one of the multiple sampling waveform channels included in the waveform recording device that is compatible with the protection waveform recording. The sampling and recording channel is associated with a channel. The second recording data includes multiple second data points and a time stamp for each second data point. A compensation unit is used to compensate for the time stamp of at least one first data point based on the first time calibration deviation of the first recording data, and to compensate for the time stamp of at least one second data point based on the second time calibration deviation of the second recording data. An acquisition unit is also used to acquire M first data points from the compensated first recording data, and to acquire M second data points with the same time stamp as the M first data points based on the compensated second recording data. The M second data points include: second data points with the same time stamp as any first data point, and / or, interpolation points with the same time stamp as any first data point. A comparison unit is used to compare the M first data points with the M second data points associated with the same time stamp.
[0018] In one possible implementation of this application, the acquisition unit is further configured to acquire M first data points from a plurality of compensated first data points, starting from a reference time scale, when the sampling frequency of the protection device and the sampling frequency of the waveform recording device are inconsistent.
[0019] In one possible implementation of this application, the transient co-source waveform comparison device further includes a determining unit. The determining unit is used to determine the time deviation between a reference time scale and a deviation time scale based on a reference time scale. The deviation time scale is located before the second protection start time and differs from the second protection start time by a preset period. The second protection start time is the time when the waveform recording device determines that the target equipment has failed.
[0020] In one possible implementation of this application, the acquisition unit is further configured to acquire M second data points from a plurality of compensated second data points, starting from a time scale determined by a reference time scale and a time deviation.
[0021] In one possible implementation of this application, the determining unit is further configured to use the data point in the second waveform data that is the same as the reference time mark or the first interpolation point in the second waveform data as the target second data point, wherein the time mark of the first interpolation point is the same as the reference time mark and the time mark of the first interpolation point is located in the middle of the time marks of the two second data points, and to determine the time deviation based on the phase value of the target first data point and the phase value of the target second data point.
[0022] In one possible implementation of this application, the acquisition unit is further configured to acquire, when taking the first interpolation point in the second waveform data as the target second data point, the first phase value of the second data point associated with the first time mark, the second phase value of the second data point associated with the second time mark, and the third phase value of the second data point associated with the third time mark from the second waveform data, wherein the first time mark is the time mark of the second data point preceding the reference time mark, the second time mark is the time mark of the first second data point following the reference time mark, and the third time mark is the time mark of the second second data point following the reference time mark.
[0023] In one possible implementation of this application, the determining unit is further configured to obtain the phase value of the target second data point using a second-order Lagrange interpolation algorithm based on the first time scale, the second time scale, the third time scale, the first phase value, the second phase value, and the third phase value.
[0024] In one possible implementation of this application, the determining unit is further configured to determine M target time markers based on the time markers and time deviations of the M first data points, using the time markers determined by the reference time markers and time deviations as the starting point, and according to the sampling frequency of the protection device, obtain the second data points associated with each target time marker from the compensated second waveform data based on the M target time markers, so as to obtain the M second data points.
[0025] In one possible implementation of this application, the comparison unit is further configured to obtain the difference between M first data points and M second data points associated with the same time point, and output a first alarm message when the difference between N consecutive first data points and second data points associated with the same time point is greater than or equal to a first preset threshold.
[0026] In one possible implementation of this application, the determining unit is further configured to determine a reference time scale within a first time period when, in the case of determining that at least one of the protection devices has failed, at least one time period has been obtained.
[0027] In one possible implementation of this application, the determining unit is further configured to parse the HDR file in the waveform recording file of the protection device to obtain the target time difference between the first protection start time and the third protection start time under the TripInfo node. The third protection time is the time when any protection device first determines the equipment fault corresponding to any protection device. A reference time scale is determined based on the first alignment time scale and the target time difference. The first alignment time scale is located before the third protection start time and is different from the third protection start time by a preset period.
[0028] In one possible implementation of this application, the comparison unit is further configured to compare the change points of the first switch quantities of M first data points with the change points of the second switch quantities of M second data points associated with the same time scale, to obtain the change time difference between the change points of the M first switch quantities and the change points of the M second switch quantities associated with the same time scale, and to output a second warning message if any change time difference is greater than or equal to a second preset threshold.
[0029] Thirdly, embodiments of this application provide a computer-readable storage medium storing a computer program or instructions that, when executed on a computer, cause the computer to perform a transient homologous waveform comparison method as described in any of the possible implementations of the first aspect.
[0030] Fourthly, embodiments of this application provide a computer program product including instructions that, when executed on a computer, cause the computer to perform a transient homologous waveform comparison method described in the first aspect or various possible implementations of the first aspect. Attached Figure Description
[0031] Figure 1 This application provides a practical application scenario for transient homogeneous waveform comparison.
[0032] Figure 2 This is a schematic diagram of the structure of a waveform recording device provided in an embodiment of this application;
[0033] Figure 3 A flowchart illustrating a transient homologous waveform comparison method provided in this application embodiment;
[0034] Figure 4 A flowchart illustrating another transient homologous waveform comparison method provided in this application embodiment;
[0035] Figure 5 This is a schematic diagram illustrating the acquisition of a first interpolation point, provided in an embodiment of this application.
[0036] Figure 6This application provides a schematic diagram of determining a second data point according to an embodiment of the present application.
[0037] Figure 7 A schematic diagram illustrating the determination of homologous waveform comparisons provided in an embodiment of this application;
[0038] Figure 8 A schematic diagram of the structure of a transient homogeneous waveform comparison device provided in an embodiment of this application;
[0039] Figure 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0040] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.
[0041] Before introducing the embodiments of this application, the relevant terms involved in this application are first defined as follows:
[0042] (1) Protection device: When a fault occurs in a power component (such as a line, transformer, busbar, etc.) in the power system, it can send a trip command to the controlled circuit breaker so that the faulty component is disconnected from the power system in time, and at the same time issue a warning signal.
[0043] (2) Waveform recording device: namely, fault waveform recording device, which is used to automatically and accurately record the changes of various electrical quantities before, during and after the fault when a fault occurs in the system. By analyzing and comparing these electrical quantities, it plays an important role in analyzing and handling accidents, judging whether the protection is operating correctly and improving the safe operation level of the power system.
[0044] (3) Transient co-source waveform recording: Transient refers to the electrical signal when a fault occurs; transient waveform recording is the process of recording the changes in the relevant electrical signals of the system when a fault occurs. The data in this state is crucial for analyzing system faults; transient co-source waveform recording is the data sampled by the protection device and the waveform recording device from the same source when the equipment fails. The transient co-source waveform recording data sampled by the protection device and the waveform recording device can be mutually verified to verify the accuracy of their fault records. If an anomaly is found in the record, it can also reflect that there may be an anomaly in the relevant circuit of its channel, and can promptly prompt the discovery of system anomalies.
[0045] (4) Secondary equipment: Auxiliary equipment for monitoring, measuring, controlling, regulating and protecting the primary equipment of the power system, such as various electrical instruments, relays and automatic control equipment.
[0046] (5) Network Time Protocol (NTP): A protocol used to synchronize computer time. It can synchronize computers with their servers or clock sources. It can provide high-precision time correction and aims to provide accurate and robust time services in disordered network environments.
[0047] With the continuous expansion of the construction scale of smart substations and the accumulation of operational experience, the development of self-diagnostic technology has laid a technical foundation for the condition monitoring of equipment in substations. By intelligently operating and maintaining substations, and by fully analyzing and effectively integrating existing data within the substation, the data within the substation can be made intelligent, thereby effectively improving the operating efficiency of the substation. Specifically, the changes in various electrical quantities of equipment in the substation before, during, and after a fault are recorded in the waveform data of both the protection device and the waveform recording device. Specifically, when a fault occurs, the protection device and the waveform recording device sample and record electrical signals from the same source. Therefore, by comparing and cross-checking the redundant measurement information of secondary equipment in the substation, faults and potential hazards in the operation of secondary circuits, such as analog sampling, input, and output circuits, can be detected.
[0048] Therefore, comparing and cross-verifying redundant measurement information of secondary equipment in substations can reveal operational faults and potential hazards in secondary circuits, such as analog sampling, input, and output circuits. However, in existing technologies, due to limitations such as different time axes and inconsistent sampling frequencies, the comparison of transient data from the same source can lead to a certain degree of false alarms in the comparison results from different manufacturers. This results in low reliability and false alarms in the transient waveform comparison results.
[0049] Therefore, the solution provided in this application is a method, system, and device for transient co-source waveform comparison, which is used to solve the technical problem of low reliability of transient co-source waveform comparison results sampled by protection devices and waveform recording devices under different time axes.
[0050] like Figure 1 As shown, Figure 1 This application illustrates a practical application scenario of transient homogeneous waveform comparison provided by an embodiment of the present application, including: target device 100, waveform recording device 200, and one or more protection devices 300.
[0051] It should be explained that the protection device 300 has multiple protection recording channels, each of which is used to collect data of the electrical signals in the target device 100 that correspond to the protection recording channel of the protection device.
[0052] Different protection devices collect different electrical signals from the target equipment through their protection recording channels, as shown in Table 1.
[0053] Table 1. Electrical signals corresponding to the protection recording channels of the protection device.
[0054]
[0055] For example, the target device 100 can be a busbar, main transformer, line, etc. in a power system.
[0056] As an example, such as Figure 2 As shown, the waveform recording device 200 includes a sampling unit 210 and a management unit 220. The sampling unit 210 can be used to acquire data of the electrical signal corresponding to the sampling waveform recording channel in the sampling waveform recording channel.
[0057] It should be explained that different waveform recording devices collect different electrical signals from the target device through their sampling and recording channels, as shown in Table 2.
[0058] Table 2. Electrical signals corresponding to the sampling and recording channels of the waveform recording device.
[0059]
[0060]
[0061] The management unit 220 can be used to acquire waveform data of electrical signals before and after the target device 100 malfunctions, including waveform data of the sampling waveform channel and waveform data of the protection waveform channel; of course, the management unit 220 can also acquire the test timing deviation of the waveform data based on the timing of the device where the waveform data is located, such as a protection device or a waveform recording device, and then compensate for the waveform data.
[0062] It should be explained that, in actual application scenarios, the management unit 220 can be an industrial-grade computer, or it can be an embedded system device in the waveform recording device 200. This application embodiment does not limit this.
[0063] To illustrate the technical solution described in this application, specific embodiments are provided below.
[0064] In this application embodiment, the specific structure of the executing entity of the transient same-source waveform comparison method is not particularly limited, as long as it can communicate according to the transient same-source waveform comparison method of this application embodiment by running a program that records the transient same-source waveform comparison method of this application embodiment. For example, the executing entity of the transient same-source waveform comparison method provided in this application embodiment can be a functional module in an electronic device that can call and execute a program, or it can be a device for transient same-source waveform comparison applied in an electronic device.
[0065] As one possible implementation, the electronic device may be a waveform recording device 200, or a management unit 220 in the waveform recording device 200, but this application embodiment does not limit this.
[0066] The following embodiments use an electronic device as an example to describe the implementation of the transient same-source waveform comparison method.
[0067] like Figure 3 As shown, Figure 3 This paper illustrates a flowchart of a transient homologous waveform comparison method provided in an embodiment of this application, including:
[0068] Step 310: The electronic device obtains the first waveform data obtained by sampling the electrical signal of the target device by the protection waveform recording channel of the protection device within the first time period from the waveform recording file of the protection device.
[0069] It should be explained that the first time period is a preset time range before and after the time of the target device's fault recorded by the protection recording channel. This preset time range can be a default configuration or a manually configured one. As an example, the preset time range can be configured to be 2 seconds. Then, the first time period can start 2 seconds before the time of the target device's fault and end 2 seconds after the time of the target device's fault. For example, if the time when the target device's fault is detected is 2022-01-12 10:15:00, then the first time period can be 2022-01-12 10:14:58 to 2022-01-12 10:15:02.
[0070] The first waveform data includes multiple first data points and a time stamp for each first data point. It should be explained that each first data point contains the instantaneous value, effective value, phase value, and amplitude of the electrical signal corresponding to that data point.
[0071] It is understood that the data attributes of the first waveform data sampled by the protection waveform recording channel of the protection device depend on the data attributes of the electrical signals of the target device corresponding to the protection waveform recording channel. The electrical signals can be current or voltage. The first data point is any data point in the first waveform data obtained by the protection waveform recording channel recording the electrical signals in the first time period before and after the fault occurs in the target device. The first waveform data includes first data points associated with different time scales before and after the fault in the target device. Similarly, the second waveform data described below in the embodiments of this application can be referred to the description of the first waveform data herein.
[0072] Step 320: The electronic device obtains the second waveform data obtained by sampling the electrical signal of the target device by the first sampling waveform channel in the first time period from the waveform recording file of the waveform recording device.
[0073] The second waveform data includes multiple second data points and a time stamp for each second data point. It can be understood that each second data point also contains the instantaneous value, effective value, phase value, and amplitude of the electrical signal corresponding to that data point.
[0074] The first sampling and recording channel is the sampling and recording channel associated with the protection recording channel among the multiple sampling and recording channels included in the recording device.
[0075] It should be explained that, since the protection device and the waveform recording device are two different devices, and in practical applications, the number of sampling waveform recording channels in the waveform recording device is greater than the number of sampling waveform recording channels in the protection device, and the arrangement order of the protection waveform recording channels in the protection device and the sampling waveform recording channels in the waveform recording device may be different, in order to find the protection waveform recording channel that samples the same electrical signal and the corresponding first sampling waveform recording channel, and thus determine the content of the second waveform recording data, the electronic device needs to know the mapping relationship between the protection waveform recording channels of the protection device and the sampling waveform recording channels of the waveform recording device. In this embodiment, this mapping relationship can be configured by the electronic device itself, or it can be obtained by the electronic device from other devices; this embodiment does not limit this.
[0076] As an example, Table 3 shows a list of mapping relationships between the protection recording channel and the sampling recording channel.
[0077] Table 3 Mapping relationship between protection recording channel and sampling recording channel
[0078] Protect the recording channel Sampling and recording channels M protection device protects the recording channel A Sampling and recording channel A M protection device protects the recording channel B Sampling and recording channel B M protection device protects the recording channel C Sampling and recording channel C N protection device protects the recording channel A Sampling and recording channel D N protection device protects the waveform recording channel B Sampling and recording channel E N protection device protects the recording channel C Sampling and recording channel F
[0079] Step 330: The electronic device compensates for the time scale of at least one first data point based on the first time measurement correction deviation of the first waveform data, and compensates for the time scale of at least one second data point based on the second time measurement correction deviation of the second waveform data.
[0080] Since the protection device and the waveform recording device are two different physical devices, their timing will deviate. Therefore, there will be a time discrepancy between the time the protection device determines the target equipment malfunction and the time the waveform recording device determines the malfunction. Consequently, the data points in the first and second waveform recordings will also have a time discrepancy. Therefore, the electronic equipment needs to compensate for the time stamps of the first and second waveform recordings to reduce the objective discrepancy between the time stamps of the first and second data points, laying the foundation for subsequently locating the second data point with the same time stamp as the first data point.
[0081] It should be explained that electronic devices can obtain the first and second time synchronization deviations through NTP (Network Time Protocol) time synchronization network technology.
[0082] Specifically, the electronic device records a first time-correction deviation data set for the protection device and a second time-correction deviation data set for the waveform recording device. The first time-correction deviation data set contains the time-correction deviation of a first data point associated with each time marker, and the second time-correction deviation data set contains the time-correction deviation of a second data point associated with each time marker. Since the data volume of the first and second time-correction deviation data sets is extremely large, the electronic device can determine the first time-correction deviation of the first data point within a first preset time range before and after the first protection activation time, based on the acquired first protection activation time, to compensate for the time marker of the first data point in the first waveform recording data. The first preset time range can be a manually configured time range or a default configured time range. For example, the electronic device can determine the first time-correction deviation within a 1s (out of 2s) range before and after the first protection activation time. Similarly, the electronic device can determine the second time-correction deviation of the second data point within a first preset time range before and after the acquired second protection activation time, to compensate for the time marker of the second data point in the second waveform recording data.
[0083] The first protection activation time is the time when the target equipment malfunctions, as determined by the protection device, and the second protection activation time is the time when the target equipment malfunctions, as determined by the waveform recording device. It should be noted that since the times when the target equipment malfunctions, as determined by the protection device and the waveform recording device, may be different, the second protection activation time and the first protection activation time may not be the same.
[0084] It should be explained that the protection device contains various protection activation logics, such as increased current, decreased voltage, and changes in the phase angle between current and voltage. When a change in the electrical signal triggers one or more protection activation logics, it indicates that a fault has occurred in the target equipment at that point in time; this point in time is the first protection activation time.
[0085] For a protection device, the first protection start time can be determined in any of the following ways: for example, the time point when the protection device detects a fault in the target device and triggers the protection start signal is taken as the first protection start time; or, when the protection device detects a fault in the target device, it marks the time point when the target device has failed as a time field in the file name of the first waveform data, and the electronic device obtains the first protection start time based on the file name of the first waveform data.
[0086] For a waveform recording device, the time point of the target device's failure can be determined in the following way: for example, when a failure is detected in the target device, the waveform recording device will mark the time point of the failure as a time field in the file name of the second waveform data. The electronic equipment obtains the second protection activation time based on the file name of the second waveform data.
[0087] Step 340: The electronic device obtains M first data points from the compensated first waveform data, and obtains M second data points with the same time scale as the M first data points based on the compensated second waveform data.
[0088] The M second data points include: second data points with the same time scale as any first data point, and / or interpolation points located between the time scales of two second data points. It should be explained that an interpolation point is a new data point determined by an interpolation algorithm between any two data points, based on the function variation of the discrete data, when the given discrete data is limited and insufficient to support the analysis of continuous data, to meet the needs of data processing. Common interpolation algorithms include Lagrange interpolation and Newton interpolation.
[0089] Step 350: The electronic device compares M first data points with M second data points associated with the same time scale.
[0090] This application provides a method for transient same-source waveform comparison. The electronic device obtains first waveform data from the waveform file of the protection device by sampling the electrical signal of the target device via the protection waveform channel within a first time period. It also obtains second waveform data from the waveform file of the waveform recording device by sampling the electrical signal of the target device via the first sampling waveform channel within the first time period. In other words, the second waveform data and the first waveform data are waveform data of the same electrical signal. The first sampling waveform channel is the sampling waveform channel associated with the protection waveform channel among the multiple sampling waveform channels included in the waveform recording device. Thus, the electronic device can collect waveform data from the sampling waveform channel of the protection device and the sampling waveform channel in the associated waveform recording device when the target device malfunctions, for subsequent comparison of the same-source data. Subsequently, the electronic equipment compensates for the time scale of at least one first data point based on the first time calibration deviation of the first waveform data, and compensates for the time scale of at least one second data point based on the second time calibration deviation of the second waveform data, in order to reduce the objective deviation between the time scale of the first data point and the second data point, laying the foundation for subsequent positioning of the second data point with the same time scale as the first data point; M first data points are obtained from the compensated first waveform data, and M second data points with the same time scale as the M first data points are obtained from the compensated second waveform data. The M second data points include: second data points with the same time scale as any first data point, and / or, interpolation points located in the middle of the time scales of two second data points. Then, the M first data points and the M second data points associated with the same time scale are compared. In this way, the first data points associated with the same time scale and the second data points of the same source can be determined, thereby solving the technical problem of low reliability of the transient homogeneous waveform comparison results sampled by the protection device and the waveform recording device under different time axes.
[0091] Typically, the sampling frequencies of the protection device and the waveform recording device are inconsistent. Specifically, the sampling frequency of the protection device may be lower than that of the waveform recording device. This can result in the number of second data points in the second waveform recording data being greater than the number of first data points in the first waveform recording data within the same time period (e.g., the first time period). This can cause the electronic equipment to be unable to compare each compensated first data point with the compensated second data point associated with the same time point. Therefore, as... Figure 4 As shown, Figure 4 The diagram illustrates another transient homologous waveform comparison method provided in this application. In one possible embodiment of this application, step 340 includes the following steps:
[0092] Step 341: When the sampling frequency of the protection device and the sampling frequency of the waveform recording device are inconsistent, the electronic device uses the reference time mark as the starting point to obtain M first data points from the multiple compensated first data points.
[0093] The reference time marker is located before the first protection start time and differs from the first protection start time by a preset period.
[0094] It is understood that the preset cycle can be a default setting or a manually set setting. For example, the preset cycle can be set to one cycle based on the electrical signal of the target device. As an example, the cycle of this electrical signal is 3 seconds, the first protection activation time is 2022-01-12 10:15:00, and the reference time scale is 2022-01-12 10:14:57.
[0095] Step 342: The electronic device determines the time deviation between the reference time scale and the deviation time scale based on the reference time scale.
[0096] The deviation time marker is located before the second protection start time and differs from the second protection start time by a preset period.
[0097] It should be explained that since the start time of the second protection may be different from that of the first protection, the deviation time scale and the reference time scale may also be different.
[0098] Step 343: The electronic device uses the reference time scale and the time scale determined by the time deviation as the starting point to obtain M second data points from the multiple compensated second data points.
[0099] The method for obtaining M second data points from the multiple compensated second data points can be found in the description in the following embodiments, and will not be repeated here.
[0100] Since electronic devices cannot directly obtain the deviation timescale from the waveform recording device in practical applications, they cannot directly determine the time deviation between the reference timescale and the deviation timescale. Therefore, in one possible embodiment of this application, where the data point corresponding to the reference timescale is the target first data point, step 342 above includes:
[0101] Step 3421: The electronic device uses the data point in the second waveform data that is the same as the reference time mark or the first interpolation point in the second waveform data as the target second data point.
[0102] The time scale of the first interpolation point is the same as the reference time scale, and the time scale of the first interpolation point is located between the time scales of the two second data points.
[0103] The method for determining the first interpolation point can be found in the description in the following embodiments, and will not be repeated here.
[0104] Step 3422: The electronic device determines the time deviation based on the phase value of the first data point of the target and the phase value of the second data point of the target.
[0105] As a specific implementation method, step 3422 can be achieved as follows: The electronic device determines the phase difference between the phase value of the first data point and the phase value of the second data point. Then, the electronic device determines the time deviation based on the phase difference.
[0106] As an example, electronic devices can determine time deviations using a phase-to-time algorithm. The formula for this phase-to-time algorithm is:
[0107]
[0108] Where Δt is the time deviation, Δpha is the phase difference, and f is the frequency of the electrical signal.
[0109] Therefore, assuming the phase value of the first data point of the target is ang_p and the phase value of the second data point of the target is ang_s, the formula for obtaining the time deviation is:
[0110]
[0111] Since there may be cases in the second waveform data where there is no second data point associated with a reference time marker, the electronic device needs to determine the phase value of the first interpolation point. Therefore, in one possible embodiment of this application, before step 3422 above, the method provided by this application embodiment further includes: when the first interpolation point in the second waveform data is used as the target second data point, the electronic device obtains from the second waveform data the first phase value of the second data point associated with the first time marker, the second phase value of the second data point associated with the second time marker, and the third phase value of the second data point associated with the third time marker. The electronic device uses a second-order Lagrange interpolation algorithm to obtain the phase value of the target second data point based on the first time marker, the second time marker, the third time marker, the first phase value, the second phase value, and the third phase value.
[0112] The first time marker is the time marker of the second data point preceding the reference time marker, the second time marker is the time marker of the first second data point following the reference time marker, and the third time marker is the time marker of the second second data point following the reference time marker.
[0113] As an example, such as Figure 5The diagram illustrates how to obtain a first interpolation point from second waveform data: When the reference time point t0 is located between the first time point a and the second time point b in the second waveform data, the electronic device obtains the first phase value ang1 of the second data point associated with the first time point a, the second phase value ang2 of the second data point associated with the second time point b, and the third phase value ang3 of the second data point associated with the third time point c. The electronic device obtains the phase value of the first interpolation point according to the second-order Lagrange interpolation algorithm. The formula for the second-order Lagrange interpolation algorithm is:
[0114]
[0115] Where L1 is the value of the interpolation point, t is the time scale of the interpolation point, t1 is the time scale of the data point preceding the interpolation point, t2 is the time scale of the first data point following the interpolation point, t3 is the time scale of the second data point following the interpolation point, A1 is the sampled value of the data point preceding the interpolation point, A2 is the sampled value of the first data point following the interpolation point, and A3 is the sampled value of the second data point following the interpolation point. It can be understood that the numerical attribute of the sampled value can be the phase value of the electrical signal or the instantaneous value of the electrical signal, depending on the numerical attribute of L1 to be obtained.
[0116] Therefore, substituting the first time point a, the second time point b, the third time point c, the reference time point t0, the first phase value ang1, the second phase value ang2, and the third phase value ang3 into the formula of the second-order Lagrange interpolation algorithm, we obtain the phase value ang_s of the first interpolation point as follows:
[0117]
[0118] Since the data recorded by the protection recording channel and the sampling recording channel of the protection device can include analog data and digital data, where analog data includes continuous data such as voltage and current, and digital data is the state value of a digital quantity, and the methods for comparing analog data and digital data are different, therefore, in one possible embodiment of this application, when the first data point and the second data point include analog data points, the above step 343 includes:
[0119] Step 3431: The electronic device determines M target time markers based on the time markers of the M first data points and the time deviation, using the time markers determined by the reference time markers and the time deviations as the starting point, and according to the sampling frequency of the protection device.
[0120] M can be a default value or a manually set value.
[0121] As an example, such as Figure 6The diagram shown illustrates the determination of a second data point. Assuming M is 10, the time scale C0, determined by the sum of the reference time scale and the time deviation, is used as the starting point. Based on the sampling frequency of the protection device, 10 target time scales (C1 to C2) are determined. 10 ).
[0122] Step 3432: The electronic device obtains a second data point associated with each of the target time markers from the compensated second waveform data according to the M target time markers, so as to obtain M second data points.
[0123] As an example, such as Figure 6 The diagram shown illustrates how an electronic device determines a second data point based on 10 target time scales (C1 to C2). 10 ), in the compensated second waveform data (B1~B 24 Find the target timescale (C1~C) 10 The associated second data point. As an example, target time point C3 can find the associated second data point b6, target time point C... 10 The associated second data point B can be found. 19 However, due to the inconsistency between the sampling frequency of the protection device and the sampling frequency of the waveform recording device, the electronic equipment may be unable to find the second data point associated with the target time marker in the second waveform recording data, such as target time markers C1 to C2, and target time markers C4 to C9.
[0124] The method for obtaining the second data point associated with each of the target time markers can be found in the description in the following embodiments, and will not be repeated here.
[0125] Correspondingly, comparing M first data points with M second data points associated with the same time point includes the following method: the electronic device obtains the difference between the M first data points and the M second data points associated with the same time point. If the difference between N consecutive first data points and the second data points associated with the same time point is greater than or equal to a first preset threshold, the electronic device outputs a first alarm message.
[0126] The values of the first preset threshold and N can be default values or manually set values. For example, if the difference between the first data point 1 and the second data point 1 associated with the same time point is less than the first preset threshold, then the first data point 1 and the second data point 1 associated with the same time point can be considered to have normal values for the data point at that time point; if the difference between the first data point 2 and the second data point 2 associated with the same time point is greater than or equal to the first preset threshold, then the first data point 2 and the second data point 2 associated with the same time point can be considered to have abnormal values for the data point at that time point.
[0127] The first warning message is used to indicate that the target device malfunctions within a first time period.
[0128] As an example, such as Figure 7 The diagram shown illustrates a method for determining the alignment of data from the same source: Figure 7 (a) shows the distribution of the 10 first data points on the first time axis, including the first data points associated with the first target time point A1 to the first target time point A. 10 The first associated data point; Figure 7 (b) shows the distribution of 10 second data points on the second time axis, including the second data points associated with target time point C1 to target time point C. 10 The electronic device sequentially compares the differences between the 10 first data points and the second data points associated with the same time point. Assuming N is 4, as shown in the figure, the differences between the first data points associated with the first target time point A1 to the first data points associated with the first target time point A5 and their associated second data points at the same time point are greater than a first preset threshold. Therefore, the electronic device issues a first warning message.
[0129] In one possible embodiment of this application, step 3432 above includes the following two cases:
[0130] Case 1: If a second data point associated with the target time marker exists in the second waveform data, the electronic device will obtain the second data point associated with the target time marker from the second waveform data.
[0131] Case 2: If there is no second data point associated with any target time marker in the second recorded data, the electronic equipment uses the second-order Lagrange interpolation algorithm to determine the second data point associated with any target time marker.
[0132] For example, such as Figure 6 The diagram illustrates one method for determining the second data point: the electronic device uses 10 target time scales (C1 to C2). 10 In the second waveform data, at multiple second data points (B1~B1), 24 In the process, the second data point associated with the target time marker is determined. Specifically, the data points from target time marker C1 to target time marker C... 10 In the middle, the target time point C3 is associated with the second data point B6, and the target time point C... 10 With B1~B 24 The second data point B 19 Related. But as... Figure 6As shown, for target time markers C1 to C2 and C4 to C9, there are no second data points associated with these target time markers in the second waveform data. Therefore, the electronic device uses the second-order Lagrange interpolation algorithm to determine the second data points associated with these target time markers. For example, when the M first data points and M second data points to be acquired are instantaneous voltage values, the electronic device can acquire the instantaneous voltage value U4 of the second data point associated with target time marker C4. The electronic device determines the instantaneous voltage value of B7 as V7, B8 as V8, and B9 as V9. Then, according to the second-order Lagrange interpolation algorithm, the formula for determining the instantaneous voltage value U4 of the second data point associated with target time marker C4 is:
[0133]
[0134] In one possible embodiment of this application, when the first data point and the second data point include switch quantity change points, the switch quantity change points are used to indicate a change in the switch quantity state between two adjacent data points. The comparison of M first data points and M second data points associated with the same time scale includes the following implementation: The electronic device compares the change points of the first switch quantities of the M first data points with the change points of the second switch quantities of the M second data points associated with the same time scale to obtain the change time difference between the change points of the M first switch quantities and the change points of the M second switch quantities associated with the same time scale. If any change time difference is greater than or equal to a second preset threshold, the electronic device outputs a second warning message.
[0135] In this context, the change point of a switch quantity is represented by the states of two switch quantities. The data of the switch quantity indicates whether it is in an open or closed state at the corresponding time scale. The change point of a switch quantity is represented by the switch quantities of two adjacent data points with different states. As an example, if the switch quantity of two adjacent data points D1 is in a closed state and the switch quantity of data point D2 is in an open state, then these two adjacent data points D1 and D2 have changed states; similarly, if the switch quantity of two adjacent data points D1 is in an open state and the switch quantity of data point D2 is in a closed state, then these two adjacent data points D1 and D2 have changed states; if the switch quantities of two adjacent data points have the same state, then these two adjacent data points have no change point.
[0136] The second preset threshold can be a default value or a manually set value. The second warning message is used to indicate that the target device malfunctions within the first time period.
[0137] In one possible embodiment of this application, when the first data point and the second data point include analog data points, before comparing the M first data points and the M second data points associated with the same time scale, the method provided in this application embodiment further includes: when the electronic device determines that the device corresponding to at least one of the multiple protection devices has failed, and at least one time period is obtained, determining a reference time scale within the first time period.
[0138] Understandably, since there may be situations where at least one of the multiple protection devices malfunctions, at least one protection activation time may appear in multiple time periods of the waveform recording file, indicating that the corresponding device has malfunctioned. Therefore, the electronic equipment needs to determine the first time period and the reference time scale within the first time period from multiple time periods. As an example, in the waveform recording file of the protection device or waveform recording device, 0s may be the protection activation time and 3s may be the second protection activation time; therefore, the waveform recording file records data for two protection activations.
[0139] In one possible embodiment of this application, determining the reference time marker within a first time period includes the following method: The electronic device parses the HDR file in the waveform recording file of the protection device to obtain the target time difference between the first protection start time and the third protection start time under the TripInfo node, wherein the third protection time is the time when any of the at least one protection device first determines a device fault corresponding to that protection device. The electronic device determines the reference time marker based on the first alignment time marker and the target time difference, wherein the first alignment time marker is prior to the third protection start time and differs from the third protection start time by a preset period.
[0140] It should be explained that the waveform recording file contains files in various formats, including header files, configuration files, data files, and information files. The HDR file is the header file, used to record the protection activation time information for each instance. The TripInfo node records the protection activation time for each device failure.
[0141] Understandably, given the existence of multiple time periods, the electronic device cannot directly obtain the first protection start time. Therefore, based on the TripInfo node, the electronic device determines the target time difference between the first recorded third protection start time and the first protection start time, as well as the first alignment time scale, thereby determining the reference time scale.
[0142] It is understood that each device, such as a processor, includes corresponding structures and / or software modules to perform the aforementioned functions. Those skilled in the art will readily recognize that, based on the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is implemented in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0143] This application embodiment can divide functional units according to the above method example. For example, each function can be divided into its own functional unit, or two or more functions can be integrated into one processing unit. The integrated unit can be implemented in hardware or as a software functional unit. It should be noted that the unit division in this application embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.
[0144] The above combination Figures 1 to 7 The methods described in the embodiments of this application have been explained. The apparatus for executing the above methods provided in the embodiments of this application is described below. Those skilled in the art will understand that the methods and apparatus can be combined with and referenced in relation to each other. The transient homogeneous waveform comparison apparatus provided in the embodiments of this application can execute the steps performed by the electronic device in the above-described transient homogeneous waveform comparison method.
[0145] When using integrated units Figure 8 The apparatus for transient same-source waveform comparison involved in the above embodiments is shown. The apparatus for transient same-source waveform comparison can be an electronic device or a device applied in an electronic device. The apparatus for transient same-source waveform comparison may include: an acquisition unit 510, a compensation unit 520 and a comparison unit 530.
[0146] In one alternative implementation, the transient homologous waveform comparison device may further include a storage unit for storing the program code and data of the transient homologous waveform comparison device.
[0147] In one example, the device for transient homogeneous waveform comparison is an electronic device, or a chip applied in an electronic device. Acquisition unit 510 is configured to acquire first waveform data obtained from the waveform file of the protection device by sampling the electrical signal of the target device through the protection waveform channel of the protection device within a first time period. The first waveform data includes multiple first data points and a timestamp for each first data point. Acquisition unit 510 is further configured to acquire second waveform data obtained from the waveform file of the waveform recording device by sampling the electrical signal of the target device through the first sampling waveform channel within the first time period. The first sampling waveform channel is the sampling waveform channel associated with the protection waveform channel among the multiple sampling waveform channels included in the waveform recording device. The second waveform data includes multiple second data points and a timestamp for each second data point. Compensation unit 52 0, used to compensate for the time scale of at least one first data point based on the first time calibration deviation of the first waveform data, and to compensate for the time scale of at least one second data point based on the second time calibration deviation of the second waveform data; the acquisition unit 510 is further used to acquire M first data points from the compensated first waveform data, and to acquire M second data points with the same time scale as the M first data points based on the compensated second waveform data, wherein the M second data points include: second data points with the same time scale as any first data point, and / or, interpolation points with the same time scale as any first data point; the comparison unit 530 is used to compare each compensated first data point with the compensated second data point associated with the same time scale.
[0148] In one possible implementation of this application, the acquisition unit 510 is further configured to acquire M first data points from a plurality of compensated first data points, starting from a reference time scale, when the sampling frequency of the protection device and the sampling frequency of the waveform recording device are inconsistent.
[0149] In one possible implementation of this application, the transient co-source waveform comparison device further includes a determining unit. The determining unit is used to determine the time deviation between a reference time scale and a deviation time scale based on a reference time scale. The deviation time scale is located before the second protection start time and differs from the second protection start time by a preset period. The second protection start time is the time when the waveform recording device determines that the target equipment has failed.
[0150] In one possible implementation of this application, the acquisition unit 510 is further configured to acquire M second data points from a plurality of compensated second data points, starting from a reference time scale and a time scale determined by the time deviation.
[0151] In one possible implementation of this application, the determining unit is further configured to use the data point in the second waveform data that is the same as the reference time mark or the first interpolation point in the second waveform data as the target second data point, wherein the time mark of the first interpolation point is the same as the reference time mark and the time mark of the first interpolation point is located in the middle of the time marks of the two second data points, and to determine the time deviation based on the phase value of the target first data point and the phase value of the target second data point.
[0152] In one possible implementation of this application, the acquisition unit 510 is further configured to acquire, when taking the first interpolation point in the second waveform data as the target second data point, the first phase value of the second data point associated with the first time mark, the second phase value of the second data point associated with the second time mark, and the third phase value of the second data point associated with the third time mark from the second waveform data. The first time mark is the time mark of the second data point preceding the reference time mark, the second time mark is the time mark of the first second data point following the reference time mark, and the third time mark is the time mark of the second second data point following the reference time mark.
[0153] In one possible implementation of this application, the determining unit is further configured to obtain the phase value of the target second data point using a second-order Lagrange interpolation algorithm based on the first time scale, the second time scale, the third time scale, the first phase value, the second phase value, and the third phase value.
[0154] In one possible implementation of this application, the determining unit is further configured to determine M target time markers based on the time markers and time deviations of the M first data points, using the time markers determined by the reference time markers and time deviations as the starting point, and according to the sampling frequency of the protection device, obtain the second data points associated with each target time marker from the compensated second waveform data based on the M target time markers, so as to obtain the M second data points.
[0155] In one possible implementation of this application, the comparison unit 530 is further configured to obtain the difference between M first data points and M second data points associated with the same time point, and output a first alarm message when the difference between N consecutive first data points and second data points associated with the same time point is greater than or equal to a first preset threshold.
[0156] In one possible implementation of this application, the determining unit is further configured to determine a reference time scale within a first time period when, in the case of determining that at least one of the protection devices has failed, at least one time period has been obtained.
[0157] In one possible implementation of this application, the determining unit is further configured to parse the HDR file in the waveform recording file of the protection device to obtain the target time difference between the first protection start time and the third protection start time under the TripInfo node. The third protection time is the time when any protection device first determines the equipment fault corresponding to any protection device. A reference time scale is determined based on the first alignment time scale and the target time difference. The first alignment time scale is located before the third protection start time and is different from the third protection start time by a preset period.
[0158] In one possible implementation of this application, the comparison unit 530 is further configured to compare the change points of the first switch quantities of M first data points with the change points of the second switch quantities of M second data points associated with the same time scale, to obtain the change time difference between the change points of the M first switch quantities and the change points of the M second switch quantities associated with the same time scale, and to output a second warning message if any change time difference is greater than or equal to a second preset threshold.
[0159] The processing unit can be a processor or controller, such as a central processing unit, a general-purpose processor, a digital transient waveform comparison device, an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements computational functions, such as a combination of one or more microprocessors, a combination of a digital transient waveform comparison device and a microprocessor, etc. The storage module can be a memory.
[0160] Further reference Figure 9 , Figure 9 This is a schematic diagram of the structure of the electronic device 600 provided in an embodiment of this application. Figure 9 As shown, the electronic device 600 of this embodiment includes: at least one processor 610 ( Figure 9 Only one processor is shown in the diagram. A memory 620 and a computer program 630, such as a data processing program, stored in the memory 620 and executable on at least one processor 610 are also shown. When the processor 610 executes the computer program 630, it implements the steps in any of the above-described method embodiments. When the processor 610 executes the computer program 630, it implements the steps in the embodiments of the above-described data processing methods. When the processor 610 executes the computer program 630, it implements the functions of each module / unit in the above-described device embodiments, such as... Figure 8 The functions of the acquisition unit 510 to the comparison unit 530 are shown.
[0161] Optional, such as Figure 9The structure of the illustrated electronic device 600 may further include a memory, which may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but not limited thereto. The memory may also be integrated with the processor.
[0162] The memory stores computer execution instructions for implementing the scheme of this application, and the execution is controlled by the processor. The processor executes the computer execution instructions stored in the memory, thereby implementing the transient homogeneous waveform comparison method provided in the following embodiments of this application.
[0163] Optionally, the computer execution instructions in the embodiments of this application may also be referred to as application code, and the embodiments of this application do not specifically limit this.
[0164] On the one hand, a computer-readable storage medium is provided, in which instructions are stored, which, when executed, implement as follows: Figure 9 The function performed by electronic device 600.
[0165] On the one hand, a computer program product including instructions is provided, wherein the computer program product includes instructions that, when executed, implement such... Figure 9 The function performed by electronic device 600.
[0166] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instructions are loaded and executed on a computer, the processes or functions described in the embodiments of this application are performed entirely or partially. The computer can be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user equipment, or other programmable device. The computer program or instructions can be stored in a computer-readable storage medium or transferred from one computer-readable storage medium to another. For example, the computer program or instructions can be transferred from one website, computer, server, or data center to another website, computer, server, or data center via wired or wireless means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium, such as a floppy disk, hard disk, or magnetic tape; it can also be an optical medium, such as a digital video disc (DVD); or it can be a semiconductor medium, such as a solid-state drive (SSD).
[0167] Although this application has been described herein in conjunction with various embodiments, those skilled in the art, by reviewing the accompanying drawings, the disclosure, and the appended claims, will understand and implement other variations of the disclosed embodiments in carrying out the claimed application. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude multiple instances. A single processor or other unit can implement several functions listed in the claims. While different dependent claims may recite certain measures, this does not mean that these measures cannot be combined to produce good results.
[0168] Although this application has been described in conjunction with specific features and embodiments, it is obvious that various modifications and combinations can be made thereto without departing from the spirit and scope of this application. Accordingly, this specification and drawings are merely exemplary illustrations of this application as defined by the appended claims, and are considered to cover any and all modifications, variations, combinations, or equivalents within the scope of this application. Clearly, those skilled in the art can make various alterations and modifications to this application without departing from the spirit and scope of this application. Thus, if such modifications and modifications of this application fall within the scope of the claims of this application and their equivalents, this application is also intended to include such modifications and modifications.
Claims
1. A transient method for comparing waveforms from the same source, characterized in that, include: The first waveform data obtained from the waveform recording file of the protection device is obtained by sampling the electrical signal of the target device through the protection waveform recording channel of the protection device within a first time period. The first waveform data includes multiple first data points and a time stamp for each first data point. The second waveform data obtained from the waveform recording file of the waveform recording device is obtained by sampling the electrical signal of the target device by the first sampling waveform recording channel during the first time period. The first sampling waveform recording channel is the sampling waveform recording channel associated with the protection waveform recording channel among the multiple sampling waveform recording channels included in the waveform recording device. The second waveform data includes multiple second data points and a time stamp for each second data point. The time stamp of at least one first data point is compensated based on the first time measurement and time correction deviation of the first waveform data, and the time stamp of at least one second data point is compensated based on the second time measurement and time correction deviation of the second waveform data; M first data points are obtained from the compensated first waveform data, and M second data points with the same time scale as the M first data points are obtained from the compensated second waveform data. The M second data points include: second data points with the same time scale as any of the first data points, and / or, interpolation points located between the time scales of two second data points. Compare M first data points with M second data points associated with the same time point; M first data points are obtained from the compensated first waveform data, and M second data points with the same time scale as the M first data points are obtained from the compensated second waveform data, including: When the sampling frequency of the protection device and the sampling frequency of the waveform recording device are inconsistent, M first data points are obtained from the multiple first data points after compensation, with the reference time mark as the starting point. The reference time mark is located before the first protection start time and differs from the first protection start time by a preset period. The first protection start time is the time when the protection device determines that the target equipment has failed. Based on the reference time scale, the time deviation between the reference time scale and the deviation time scale is determined. The deviation time scale is located before the second protection start time and differs from the second protection start time by the preset period. The second protection start time is the time when the waveform recording device determines that the target equipment has failed. Starting from the reference time scale and the time scale determined by the time deviation, M second data points are obtained from the multiple compensated second data points.
2. The method according to claim 1, characterized in that, The data point corresponding to the reference time scale is the target first data point. Based on the reference time scale, the time deviation between the reference time scale and the deviation time scale is determined, including: The data point in the second waveform data that is the same as the reference time mark, or the first interpolation point in the second waveform data, is used as the target second data point. The time mark of the first interpolation point is the same as the reference time mark, and the time mark of the first interpolation point is located between the time marks of the two second data points. The time deviation is determined based on the phase value of the first data point of the target and the phase value of the second data point of the target.
3. The method according to claim 2, characterized in that, Before determining the time deviation based on the phase value of the first target data point and the phase value of the second target data point, the method further includes: When the first interpolation point in the second waveform data is used as the target second data point, the first phase value of the second data point associated with the first time marker, the second phase value of the second data point associated with the second time marker, and the third phase value of the second data point associated with the third time marker are obtained from the second waveform data. The first time marker is the time marker of the second data point preceding the reference time marker, the second time marker is the time marker of the first second data point following the reference time marker, and the third time marker is the time marker of the second second data point following the reference time marker. The phase value of the target second data point is obtained by using the first time marker, the second time marker, the third time marker, the first phase value, the second phase value, and the third phase value, and the second-order Lagrange interpolation algorithm.
4. The method according to claim 2 or 3, characterized in that, include: When the first data point and the second data point include analog data points. Starting from the reference time scale and the time scale determined by the time deviation, M second data points are obtained from the compensated plurality of second data points, including: Based on the time scales of the M first data points and the time deviation, taking the time scale determined by the reference time scale and the time deviation as the starting point, and based on the sampling frequency of the protection device, M target time scales are determined; If a second data point associated with the target time marker exists in the second waveform data, then the second data point associated with the target time marker is obtained from the second waveform data; If no second data point associated with any of the target time markers exists in the second recorded waveform data, then a second-order Lagrange interpolation algorithm is used to determine the second data point associated with any of the target time markers; accordingly, Comparing M first data points with M second data points associated with the same time point includes: Obtain the difference between M first data points and M second data points associated with the same time point; If the difference between N consecutive first data points and second data points associated with the same time point is greater than or equal to a first preset threshold, a first alarm message is output.
5. The method according to any one of claims 1 to 3, characterized in that, When the first data point and the second data point include analog data points, and when at least one of the protection devices is determined to have a fault in its corresponding equipment, and at least one time period is obtained, Before comparing the M first data points with the M second data points associated with the same time point, the method further includes: When it is determined that at least one of the protection devices has failed, and at least one time period is obtained, the reference time marker within the first time period is determined, wherein the first time period is any one of the at least one time period.
6. The method according to claim 5, characterized in that, Determining the reference time scale within the first time period includes: Analyze the HDR file in the waveform recording file of the protection device to obtain the target time difference between the first protection start time and the third protection start time under the TripInfo node. The third protection start time is the time when any protection device in at least one of the protection devices first determines the equipment fault corresponding to the protection device. The reference time marker is determined based on the first alignment time marker and the target time difference. The first alignment time marker is located before the third protection start time and is different from the third protection start time by the preset period.
7. The method according to claim 2 or 3, characterized in that, include: When the first data point and the second data point include a switch quantity change point, the switch quantity change point is used to indicate a change in the switch quantity state between two adjacent data points. Comparing M first data points with M second data points associated with the same time point includes: By comparing the change points of the first switch quantities of M first data points with the change points of the second switch quantities of M second data points associated with the same time scale, the time difference of change between the change points of the M first switch quantities and the change points of the M second switch quantities associated with the same time scale is obtained. If any of the displacement time differences is greater than or equal to the second preset threshold, a second warning message is output.
8. A device for transient homogeneous waveform comparison, characterized in that, include: The acquisition unit is used to acquire first waveform data obtained by sampling the electrical signal of the target device by the protection waveform recording channel of the protection device within a first time period from the waveform recording file of the protection device. The first waveform data includes multiple first data points and a time stamp of each first data point. The acquisition unit is further configured to acquire second waveform data obtained from the waveform file of the waveform recording device by sampling the electrical signal of the target device by the first sampling waveform recording channel during the first time period. The first sampling waveform recording channel is the sampling waveform recording channel associated with the protection waveform recording channel among the multiple sampling waveform recording channels included in the waveform recording device. The second waveform data includes multiple second data points and a time stamp for each second data point. The compensation unit is used to compensate for the time stamp of at least one of the first data points based on the first time synchronization deviation of the first waveform data, and to compensate for the time stamp of at least one of the second data points based on the second time synchronization deviation of the second waveform data; The acquisition unit is further configured to acquire M first data points from the compensated first waveform data, and to acquire M second data points with the same time scale as the M first data points based on the compensated second waveform data. The M second data points include: second data points with the same time scale as any of the first data points, and / or, interpolation points with the same time scale as any of the first data points. The comparison unit is used to compare M first data points with M second data points associated with the same time point; The acquisition unit is further configured to acquire M first data points from the compensated plurality of first data points, starting from a reference time marker, when the sampling frequency of the protection device and the sampling frequency of the waveform recording device are inconsistent. The reference time marker is located before the first protection start time and differs from the first protection start time by a preset period. The first protection start time is the time when the protection device determines that the target device has failed. The transient homogeneous waveform comparison device also includes a determination unit; The determining unit is configured to determine the time deviation between the reference time scale and the deviation time scale based on the reference time scale, wherein the deviation time scale is located before the second protection start time and differs from the second protection start time by the preset period, and the second protection start time is the time when the waveform recording device determines that the target equipment has failed. The acquisition unit is further configured to acquire M second data points from the multiple compensated second data points, starting from the reference time scale and the time scale determined by the time deviation.
9. An electronic device, characterized in that, The method includes a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that the processor, when executing the computer program, implements the method as described in any one of claims 1 to 7.