Relay operation time measurement and test result automatic verification method and device
By using multi-channel synchronous acquisition and weighted fusion calculation, combined with real-time environmental parameters, the accuracy problem of relay action time testing in complex environments was solved, automated verification and data traceability were achieved, and the stability and reliability of test results were improved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- STATE GRID XINJIANG ELECTRIC POWER CO LTD CHANGJI POWER SUPPLY CO
- Filing Date
- 2025-09-08
- Publication Date
- 2026-05-12
AI Technical Summary
In existing technologies, relay action time testing lacks multi-channel synchronization and feature fusion methods in complex environments, leading to inaccurate action time determination.
The system employs multi-channel synchronous acquisition of relay input trigger signals, output state voltages, and mechanical contact states. Through timestamp correction and preprocessing, it extracts multi-feature action time information, performs weighted fusion calculations, and dynamically adjusts the judgment criteria in conjunction with real-time environmental parameters to achieve automated verification.
It improves the accuracy and stability of motion time measurement, reduces the impact of noise and interference, enables consistent and reliable test results in complex environments, and supports differential analysis of batch data and historical data traceability.
Smart Images

Figure CN122017541A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of electrical testing technology, and in particular to a method and apparatus for determining relay operating time and automatically verifying test results. Background Technology
[0002] In complex environments, existing traditional relay action time testing relies on single-channel or simple signal acquisition methods, lacking multi-channel synchronization and feature fusion methods, and is easily affected by noise and interference, resulting in inaccurate action time determination.
[0003] Therefore, it is necessary to design a method and device for measuring relay action time and automatically verifying test results to solve the above problems. Summary of the Invention
[0004] The technical problem to be solved by the present invention is to overcome the shortcomings of the prior art and to provide a method and device for measuring relay action time and automatically verifying test results. The invention aims to improve the problem that the prior art lacks multi-channel synchronization and feature fusion methods, is easily affected by noise and interference, and thus leads to inaccurate action time determination.
[0005] The solution adopted by this invention to solve its technical problem is as follows:
[0006] A method for determining relay operating time and automating the verification of test results.
[0007] The method includes the following steps:
[0008] Step S1: Determine the type and key parameters of the relay under test, and configure its input trigger conditions.
[0009] Step S2: Simultaneously acquire the relay's input trigger signal, output state voltage, and mechanical contact state through multiple channels, and perform timestamp correction and preprocessing on the acquired signals to obtain multi-feature action time information, including the following steps:
[0010] Step S21: Set up independent acquisition channels for relay input trigger signal, output status voltage, output status current and mechanical contact status;
[0011] Step S22: Synchronize the acquired signals of each channel using a unified clock or trigger marker for timestamp.
[0012] Step S23: Perform moving average filtering on the acquired signal and mark sampling points that deviate from the mean or exceed the threshold as abnormal;
[0013] Step S24: Organize the processed multi-channel signal into structured data;
[0014] Step S25: Apply edge detection and threshold judgment to the signals acquired from each channel to extract the start point, completion point, and duration features of the action;
[0015] Step S26: Analyze and statistically analyze the time differences between channels to identify and eliminate abnormal features;
[0016] Step S27: The remaining features are weighted and fused according to channel weights to generate multi-feature action time information.
[0017] Step S3: Calculate the relay action time based on multi-feature action time information, and obtain a stable relay action time through cross-validation and anomaly handling, including the following steps:
[0018] Step S31: The multi-feature action time information generated in step S27 is weighted and fused according to the channel feature weights to generate action time values;
[0019] Step S32: Use statistical analysis methods to identify and remove abnormal data, and recalculate the action time for the remaining features;
[0020] Step S33: Output the final calculated relay action time in structured data format.
[0021] Step S4: Based on the relay's operating time and real-time environmental parameters, establish a dynamic standard model to dynamically adjust the relay's operating time judgment standard, and automatically determine whether the relay is qualified. This includes the following steps:
[0022] Step S41: Obtain the real-time environmental parameters of the relay through a sensor or data interface. The real-time environmental parameters include temperature, voltage, and load conditions.
[0023] Step S42: Based on the relay action time and environmental parameters, calculate the adjusted relay action time judgment standard through preset judgment rules or mapping table;
[0024] Step S43: Compare the calculated relay action time with the dynamically adjusted judgment criteria feature by feature;
[0025] Step S44: Generate a pass / fail indicator for the relay based on the comparison result of step S43, and record it in the form of a data structure.
[0026] Step S5: Perform differential analysis on the batch relay action time data that has been judged to identify abnormal or deviant relays, and feed the analysis results back to the triggering conditions, judgment rules and dynamic standard model.
[0027] The relay identification process includes the following steps:
[0028] Step S51: Perform statistical analysis and differential calculation on the operating time data of relays in the same batch to identify deviating or abnormal relays;
[0029] Step S52: Classify the identified abnormal relays according to multi-feature comprehensive analysis.
[0030] Step S6: Record the relay test data, judgment results and analysis results generated in each step in a unified manner, generate a batch report, and support historical data traceability for verification and recording of the entire testing and calibration process.
[0031] As a preferred embodiment of the present invention
[0032] The step of configuring the input triggering conditions in step S1 includes:
[0033] Step S11: Determine the model and key parameters of the relay to be tested, including rated voltage, rated current and contact type;
[0034] Step S12: Set the level, pulse width, and trigger timing of the input trigger signal;
[0035] Step S13: Generate a trigger signal configuration table based on the type of relay under test, so that the configured input trigger conditions match the subsequent multi-channel synchronous acquisition and relay action time measurement process.
[0036] As a preferred embodiment of the present invention
[0037] The step S6 of generating the batch report includes the following steps:
[0038] Step S61: Record the relay action time and judgment result of each relay and batch in the form of a structured data table, and generate a batch report;
[0039] Step S62: Index and trace historical data according to timestamps and batch numbers.
[0040] An automated device for determining relay operating time and verifying test results includes:
[0041] The trigger condition configuration module is used to determine the type and key parameters of the relay under test and generate the input trigger signal configuration;
[0042] The multi-channel acquisition module is used to synchronously acquire the relay's input trigger signal, output status voltage, output status current, and mechanical contact status, and to perform timestamp correction, filtering, and anomaly marking.
[0043] The multi-feature motion time processing module is used to extract the motion start point, completion point and duration features from the acquired signal, and generate multi-feature motion time information through inter-channel fusion;
[0044] The motion time calculation module is used to perform weighted fusion calculations based on multi-feature motion time information, remove abnormal features, and generate stable motion time data.
[0045] The dynamic judgment module is used to adjust the judgment criteria based on the action time and real-time environmental parameters, and to establish a dynamic standard model to automatically generate relay pass or fail indicators.
[0046] The batch analysis module is used to perform differential analysis on batch relay action time data, identify abnormal relays, and feed the analysis results back to the triggering conditions, judgment rules, and dynamic standard model to form a closed loop.
[0047] The data recording module is used to uniformly record relay test data, judgment results and analysis information, generate batch reports, and support historical data traceability.
[0048] As a preferred embodiment of the present invention
[0049] The multi-channel acquisition module includes a relay measurement device.
[0050] The relay measuring device is used to obtain the input trigger signal, output state voltage, output state current, and mechanical contact state of the relay under test.
[0051] The relay measuring device includes an insulating housing, inside which are arranged an electronic switch, an inverter, a battery charging and discharging unit, a central control unit, and a parameter measuring unit.
[0052] The electronic switch is used to control the power-on and power-off of the relay under test.
[0053] The inverter is used to convert the DC power provided by the battery charging and discharging unit into AC power.
[0054] The battery charging and discharging unit is used to provide power to the relay measuring device.
[0055] The central control unit is used to monitor the status and duration of the normally closed / normally open contacts of the relay under test.
[0056] The parameter measurement unit is used to detect the current, voltage, and contact change time of the relay under test, and calculates the relay coil holding power.
[0057] The insulating shell is equipped with three sets of 5-pin aviation plugs.
[0058] As a preferred embodiment of the present invention
[0059] The central control unit uses a single-chip microcomputer STM32F103C8T6.
[0060] As a preferred embodiment of the present invention
[0061] The central control unit and the parameter measurement unit are connected.
[0062] The parameter measurement unit includes an AC voltage control circuit, an AC voltage detection circuit, a DC voltage control circuit, a DC voltage detection circuit, a current control circuit, a current detection circuit, and a contact feedback signal detection circuit.
[0063] As a preferred embodiment of the present invention
[0064] The insulating outer shell also contains a battery voltage detection circuit.
[0065] As a preferred embodiment of the present invention
[0066] The battery charging and discharging unit is equipped with a charging protection circuit.
[0067] As a preferred embodiment of the present invention
[0068] The central control unit is also connected to an alarm circuit.
[0069] Compared with the prior art, the present invention has the following beneficial effects:
[0070] 1. This invention achieves accurate measurement of action time in complex environments by synchronously acquiring relay input trigger signals, output state voltage, output state current, and mechanical contact state with high precision, and by combining weighted fusion of multi-feature action time information. It can effectively reduce the impact of measurement errors and external interference on action time determination. Through multi-channel collaboration and feature fusion, it can comprehensively analyze the action characteristics of different signal sources, thereby improving the stability and reliability of test results.
[0071] 2. This invention dynamically adjusts the relay action time judgment standard based on real-time acquired environmental parameters, such as temperature, voltage, and load conditions, and automatically generates a relay pass or fail mark. This solves the problem of difficulty in judging batch relays under different operating environments. By comparing the action time calculation results with the dynamic standard in real time, abnormal relays can be automatically identified without manual intervention, improving judgment efficiency and ensuring accurate test results under diverse environmental conditions.
[0072] 3. This invention performs differential analysis and anomaly identification on batch relay action time data, and feeds the analysis results back to trigger conditions and judgment rules to form a closed-loop optimization mechanism. The system uniformly records test data and judgment results and generates batch reports, and supports historical data traceability, thus constructing an intelligent closed-loop testing system. Through closed-loop feedback and data index management, test data can be accumulated and analyzed over a long period of time, providing a basis for system optimization and ensuring the transparency and reliability of the testing process and results. Attached Figure Description
[0073] Figure 1 This is a flowchart of an automated verification method for determining relay action time and testing results proposed in this invention;
[0074] Figure 2 This is a structural block diagram of an automated verification device for measuring and testing the action time of a relay, as proposed in this invention.
[0075] Figure 3 This is a schematic diagram of the detection process of the relay measuring device, which is an automated verification device for determining and testing the relay action time according to the present invention.
[0076] Figure 4 This is a schematic diagram of the detection process of the relay measuring device, which is an automated verification device for determining and testing the relay action time according to the present invention.
[0077] Figure 5 This invention relates to an automated verification device for determining and testing the action time of a relay, a relay measuring device, an electronic switch, and an auxiliary contact detection circuit.
[0078] Figure 6 This is a schematic diagram of the central control unit of a relay measuring device for automated verification of relay action time and test results according to the present invention.
[0079] Figure 7 This is a diagram of the inverter terminal interface of a relay measuring device for determining relay operating time and automatically verifying test results according to the present invention.
[0080] Figure 8 This invention relates to an automated verification device for determining relay action time and testing results, and an AC control circuit for a relay measuring device.
[0081] Figure 9 This invention relates to an automated verification device for determining and testing the action time of a relay, and an AC detection circuit for a relay measuring device.
[0082] Figure 10 This invention relates to an automated verification device for determining relay action time and testing results, specifically a DC detection circuit for a relay measuring device.
[0083] Figure 11 This invention relates to an automated verification device for determining and testing relay action time, and a battery voltage detection circuit for a relay measuring device.
[0084] Explanation of reference numerals in the attached figures:
[0085] 101. Trigger condition configuration module,
[0086] 102. Multi-channel acquisition module,
[0087] 103. Multi-feature action time processing module.
[0088] 104. Action Time Calculation Module
[0089] 105. Dynamic determination module.
[0090] 106. Batch Analysis Module
[0091] 107. Data Recording Module. Detailed Implementation
[0092] The specific embodiments of the present invention are described below with reference to the accompanying drawings and examples. Although specific embodiments of the present invention are shown in the drawings, it should be understood that the present invention can be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this invention will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
[0093] It should be noted that the structures, colors, proportions, sizes, etc. shown in the accompanying drawings are only used to complement the content disclosed in the specification, so that those skilled in the art can understand and read them, and are not intended to limit the conditions under which the present invention can be implemented. Any modifications to the structure, changes in the proportions, or adjustments to the size, without affecting the effects and objectives that the present invention can produce, should still fall within the scope of the technical content disclosed in the present invention.
[0094] Furthermore, certain terms are used in the specification to refer to specific components. Those skilled in the art will understand that different terms may be used to refer to the same component. This specification does not distinguish components based on differences in terminology, but rather on differences in their functions. The terms "comprising" or "including" used throughout the specification and claims are open-ended and should be interpreted as "comprising but not limited to." The following descriptions are preferred embodiments for carrying out the invention; however, these descriptions are for the purpose of understanding the general principles of the specification and are not intended to limit the scope of the invention. The scope of protection of this invention is determined by the appended claims.
[0095] To facilitate understanding of the embodiments of the present invention, further explanations and descriptions will be provided below with reference to the accompanying drawings and specific embodiments. The accompanying drawings do not constitute a limitation on the embodiments of the present invention.
[0096] like Figure 1 As shown, a method for determining relay operating time and automatically verifying test results includes the following steps:
[0097] Step S1: Determine the type and key parameters of the relay under test, and configure its input trigger conditions to ensure the synchronization and accuracy of the subsequent action time measurement process.
[0098] Step S2: Simultaneously acquire the input trigger signal, output state voltage, and mechanical contact state of the relay through multiple channels, and perform timestamp correction and preprocessing on the acquired signals to obtain multi-feature action time information.
[0099] Step S3: Calculate the relay action time based on multi-feature action time information, and obtain a stable relay action time through cross-validation and anomaly handling.
[0100] Step S4: Based on the relay's operating time and the relay's real-time environmental parameters, establish a dynamic standard model to dynamically adjust the relay's operating time judgment standard and automatically determine whether the relay is qualified.
[0101] Step S5: Perform differential analysis on the batch relay action time data that have been judged to identify abnormal or deviated relays, and feed the analysis results back to the triggering conditions, judgment rules and dynamic standard model.
[0102] Step S6: Record the relay test data, judgment results and analysis results generated in each step in a unified manner, generate a batch report, and support historical data traceability for verification and recording of the entire testing and calibration process.
[0103] The method of this invention is used to measure and evaluate the operating time of a relay. By collecting and analyzing the relay's input trigger signal, output state voltage, and mechanical contact state, the method achieves quantitative determination of the relay's operating behavior and records and manages the operating time data, providing a reliable basis for relay performance evaluation, product acceptance, and quality control.
[0104] By adopting the above technical solution, high-precision measurement and determination of relay action time in complex environments are achieved. The fusion of multi-channel synchronous acquisition and multi-feature action time information effectively reduces the impact of noise and interference on the measurement results, making the action time determination more accurate and reliable. Through dynamic determination standards, automated verification and batch data differential analysis, consistent and traceable test management can be achieved under different environmental conditions, solving the problem of inaccurate action time determination in complex environments using traditional methods.
[0105] Step S2 includes the following steps:
[0106] Step S21: Set up independent acquisition channels for relay input trigger signal, output status voltage, output status current and mechanical contact status;
[0107] Step S22: Synchronize the acquired signals of each channel using a unified clock or trigger marker for timestamp.
[0108] Step S23: Perform moving average filtering on the acquired signal and mark sampling points that deviate from the mean or exceed the threshold as abnormal;
[0109] Step S24: Organize the processed multi-channel signal into structured data;
[0110] Step S25: Apply edge detection and threshold judgment to the signals acquired from each channel to extract the start point, completion point, and duration features of the action;
[0111] Step S26: Analyze and statistically analyze the time differences between channels to identify and eliminate abnormal features;
[0112] Step S27: The remaining features are weighted and fused according to the channel weights to generate multi-feature action time information.
[0113] In the specific implementation process, to ensure the synchronization and integrity of data from each channel, an independent acquisition channel is set up for each signal type, including relay input trigger signal channel, output voltage channel, current channel, and mechanical contact status channel. Data acquisition for each channel uses a unified clock or trigger marker for timestamp synchronization to ensure time alignment between different channels, thereby facilitating subsequent extraction of action time features and cross-channel analysis.
[0114] After acquiring the signal, the original signal is first preprocessed, including moving average filtering to reduce the impact of random noise on edge recognition. At the same time, sampling points that deviate from the mean or exceed the set threshold are marked as abnormal data points. The processed signal is organized into structured data, which includes the time series of each acquisition channel, signal amplitude and abnormal marking information, and can be directly used for action time feature extraction.
[0115] In the multi-feature motion time information processing stage, key features such as the start point, completion point, and duration of each channel's motion are extracted from the structured data. Edge detection methods can be used during extraction; for example, for voltage or current signals, the rising or falling edge can be used to determine the start and end points of the motion based on threshold values. For mechanical contact states, changes in position sensor signals can be used to determine the start and end times of the motion. After extraction, abnormal features, such as data deviating from the average or standard deviation range, are identified and removed through inter-channel time difference analysis and statistical analysis. The remaining valid features are weighted and fused according to channel weights to generate multi-feature motion time information, which can be achieved using a weighted average formula:
[0116]
[0117] in For the action time characteristics of the i-th channel, Here, n represents the weight of the corresponding channel, and n is the total number of channels. This weighted fusion process ensures that the features of different signal sources are reasonably integrated when calculating the action time, thus providing a complete and structured data foundation for subsequent action time calculation and determination.
[0118] Through the above steps, high-precision synchronous acquisition, anomaly marking, and feature extraction of multi-channel signals can be achieved, and information reflecting the relay action characteristics can be generated, providing data support for action time calculation, judgment, and batch analysis.
[0119] Step S3 includes the following steps:
[0120] Step S31: The multi-feature action time information generated in step S27 is weighted and fused according to the channel feature weights to generate action time values;
[0121] Step S32: Use statistical analysis methods to identify and remove abnormal data, and recalculate the action time for the remaining features;
[0122] Step S33: Output the final calculated relay action time in structured data format.
[0123] In the specific implementation process, features such as the start point, completion point, and duration of the action collected from each channel are used as input. Different weights are assigned based on the importance and reliability of the features of each channel, and a weighted fusion calculation is performed. The weights can be determined based on the noise level of the channel signal, historical measurement accuracy, or channel stability to ensure that key channels have a greater influence in the action time calculation.
[0124] After initially calculating the action time, statistical analysis methods are used to identify anomalies in the features of each channel. In the specific implementation, by calculating the mean and standard deviation of the feature values, features deviating from the mean by more than a preset threshold are identified as anomalies and removed. After removing anomalous features, the remaining features are weighted and fused again to generate the final action time value. This process achieves automatic control of anomalous signals, ensuring the stability and reliability of the calculation results.
[0125] The final action times are output in structured data format, including the start time, completion time, duration, and weighted contribution information for each channel. This structured data can be stored as a data table or database record for subsequent dynamic judgment, batch analysis, and historical tracing.
[0126] This method enables a complete calculation process from multi-channel, multi-feature information to stable action time, providing a reliable data foundation for rapid measurement and verification of relays.
[0127] Step S4 includes the following steps:
[0128] Step S41: Obtain the real-time environmental parameters of the relay through a sensor or data interface. The real-time environmental parameters include temperature, voltage, and load conditions.
[0129] Step S42: Based on the relay action time and environmental parameters, calculate the adjusted relay action time judgment standard through preset judgment rules or mapping table;
[0130] Step S43: Compare the calculated relay action time with the dynamically adjusted judgment criteria feature by feature;
[0131] Step S44: Generate a pass or fail indicator for the relay based on the comparison result of step S43, and record it in the form of a data structure.
[0132] In its implementation, the relay testing system acquires relay operating environment parameters, including operating temperature, power supply voltage fluctuations, and load conditions, through temperature sensors, voltage measurement interfaces, and load detection devices. These environmental parameters, along with the actuation time data, are input to the judgment module, which calculates the allowable range of actuation time using preset rules or a mapping table. The mapping table can be constructed based on historical data and empirical formulas; for example, it can define the allowable actuation time. Through formula Calculation, where T is the nominal operating time of the relay, V is the actual temperature, L is the actual voltage, and f is a correction function obtained based on experience or experimentation to correct for the influence of the environment on the operating time.
[0133] After obtaining the dynamically adjusted action time judgment criteria, the system compares the calculated action time with the standard characteristics. In the specific implementation process, each action characteristic, such as the start time, completion time, and duration of the channel action, is matched and judged against the corresponding adjustment criteria. If the action time is within the allowable range, the characteristic is marked as qualified; otherwise, it is marked as unqualified. The comparison results are summarized to form the overall qualified or unqualified judgment of the relay.
[0134] The final judgment results are recorded in structured data format, including action time, adjusted judgment criteria, and judgment status for each feature. This data can be used for batch relay analysis, quality tracking, and historical data backtracking.
[0135] This process enables the determination of the environmental adaptability of relay operating time, allowing the test results to reflect the performance of the relay under actual operating conditions, and providing a reliable basis for subsequent automated verification and statistical analysis.
[0136] The relay identification process includes the following steps:
[0137] Step S51: Perform statistical analysis and differential calculation on the operating time data of relays in the same batch to identify deviating or abnormal relays;
[0138] Step S52: Classify the identified abnormal relays according to multi-feature comprehensive analysis.
[0139] In the specific implementation process, statistical analysis is performed on the operating time data of the same batch of relays, including calculating the average, variance, and the deviation of the operating time of each channel. Through difference calculation, the deviation of each relay's operating time from the batch average or reference operating time can be obtained. For example, this can be achieved using a formula... Calculation, where Let i be the operating time of the i-th relay. This represents the average batch action time. This is the deviation.
[0140] After differential calculation, the deviation is compared with a preset threshold to identify abnormal relays. Relays with deviations exceeding the threshold are marked as abnormal or deviation units. For the identified abnormal relays, further classification is performed through multi-feature comprehensive analysis, including joint evaluation of features such as the start point, completion point, and duration of the action. In practice, weighted scoring or clustering algorithms can be used to comprehensively calculate the features of each relay to generate the abnormality type or deviation level.
[0141] The analysis results are fed back to the trigger condition configuration module, judgment rules, and dynamic standard model to achieve closed-loop optimization. Based on the characteristics and deviation types of the abnormal relays, the input trigger signal parameters, judgment criteria, or weight configurations are automatically adjusted to make the action time determination more accurate in subsequent batch tests. In practical applications, this process supports batch relay quality management, statistical analysis, and historical data traceability, providing complete data support for rapid relay action time determination and automated verification.
[0142] In another embodiment, the step of configuring the input triggering conditions in step S1 includes:
[0143] Step S11: Determine the model and key parameters of the relay under test. Key parameters include rated voltage, rated current and contact type.
[0144] Step S12: Set the level, pulse width, and trigger timing of the input trigger signal;
[0145] Step S13: Generate a trigger signal configuration table based on the type of relay under test, so that the configured input trigger conditions match the subsequent multi-channel synchronous acquisition and relay action time measurement process.
[0146] In the implementation process, the relay model and key parameters are determined, including the relay's rated voltage, rated current, and contact type. These parameters define the relay's basic operating characteristics and guide the generation of the input trigger signal. The relay type and key parameters can be determined manually, automatically by reading the relay nameplate information, or by obtaining a pre-stored relay model parameter table through a data interface.
[0147] After obtaining the relay type and key parameters, the input trigger signal level, pulse width, and trigger timing are set according to the contact type and electrical characteristics of different relays. This ensures that the trigger signal can excite the relay to operate under specified conditions, and also guarantees that the signals subsequently acquired by multiple channels can accurately reflect the relay's operation process. The input trigger signal can be set using a programmable signal generator, digital interface, or microcontroller drive to adapt to the operating requirements of different relay models.
[0148] A trigger signal configuration table is generated based on the relay type. This table includes trigger level, pulse width, timing parameters, and corresponding relay model information, for use in subsequent test procedures. The configuration table can be generated automatically by software or by pre-setting a template in the test equipment. The trigger signal configuration table not only controls the trigger signal output but also guides the start timing and timestamp marking of multi-channel synchronous acquisition, ensuring that the data acquired by each channel is synchronized in time, thus enabling accurate extraction of characteristic information such as the start point, completion point, and duration of the action.
[0149] By using a trigger signal configuration table, the testing process for different relay models can be managed in a unified manner, achieving standardization of test parameters and automation of the process, while providing basic data support for subsequent action time calculation and dynamic judgment.
[0150] The input trigger signal, output state voltage, output state current and mechanical contact state of the relay are acquired synchronously through multiple channels, and the acquired signals are corrected by timestamp and preprocessed to obtain multi-feature action time information.
[0151] In another embodiment, generating the batch report in step S6 includes the following steps:
[0152] Step S61: Record the relay action time and judgment result of each relay and batch in the form of a structured data table, and generate a batch report;
[0153] Step S62: Index and trace historical data according to timestamps and batch numbers.
[0154] In the specific implementation process, the system organizes the action time, judgment result and anomaly analysis information of each relay and the entire batch in a structured manner, and saves them in the form of tables or databases. These include fields such as relay number, batch number, action start point, action completion point, duration, judgment status and related environmental parameters to ensure that each record has completeness and traceability.
[0155] During the recording process, each data entry is accompanied by a timestamp and batch number to facilitate indexing and management of historical test data. The timestamp marks the specific execution time of the relay test, and the batch number identifies the test sequence of the same group of relays, enabling rapid retrieval and statistical analysis of test records by time or batch. In practice, a relational database or structured data table can be used for storage, with each record using a unique index to ensure data integrity and consistency.
[0156] To further support historical data traceability, the system can provide a query interface or data export function, enabling users to quickly obtain relevant records based on relay number, batch number, or test time range, and perform trend analysis or anomaly backtracking.
[0157] In practical applications, this unified recording mechanism can provide complete verification and recording support for the entire testing process, providing a reliable data foundation for rapid determination and automated verification of relay action time, and ensuring data traceability and continuity of analysis.
[0158] like Figure 2As shown, an automated verification device for measuring and testing relay operating time is provided to address the problem that traditional testing methods cannot simultaneously meet the requirements of high-precision measurement and batch judgment due to the influence of factors such as ambient temperature, voltage fluctuations, and mechanical vibration on relay operating time. The device includes:
[0159] The trigger condition configuration module 101 is used to determine the type and key parameters of the relay under test and generate the input trigger signal configuration;
[0160] The multi-channel acquisition module 102 is used to synchronously acquire the input trigger signal, output state voltage, output state current and mechanical contact state of the relay, and perform timestamp correction, filtering and abnormal marking processing.
[0161] The multi-feature motion time processing module 103 is used to extract motion start point, completion point and duration features from the acquired signal, and generate multi-feature motion time information through inter-channel fusion.
[0162] The motion time calculation module 104 is used to perform weighted fusion calculation based on multi-feature motion time information, remove abnormal features, and generate stable motion time data.
[0163] The dynamic judgment module 105 is used to adjust the judgment criteria according to the action time and real-time environmental parameters, establish a dynamic standard model, and automatically generate relay qualified or unqualified indicators.
[0164] The batch analysis module 106 is used to perform differential analysis on batch relay action time data, identify abnormal relays, and feed the analysis results back to the triggering conditions, judgment rules and dynamic standard model to form a closed loop;
[0165] The data recording module 107 is used to uniformly record relay test data, judgment results and analysis information, generate batch reports, and support historical data traceability.
[0166] First, the trigger condition configuration module determines the model and key parameters of the relay under test, including rated voltage, rated current, and contact type, and generates an input trigger signal configuration based on the relay characteristics. The level, pulse width, and trigger timing of the trigger signal can be set through a configuration table to match the trigger conditions with the subsequent data acquisition and action time calculation process.
[0167] During the multi-channel acquisition phase, the multi-channel acquisition module synchronously acquires relay input trigger signals, output state voltages, output state currents, and mechanical contact states, and performs timestamp correction on the signals of each channel to ensure time consistency of data from different channels. After the acquired signals are processed by moving average filtering and outlier sampling point marking, structured data is formed for subsequent feature extraction and analysis. The multi-feature action time processing module extracts the start point, completion point, and duration features of the action through edge detection, threshold judgment, and time difference analysis between channels, and generates stable multi-feature action time information through channel weighted fusion.
[0168] The action time calculation module performs weighted fusion calculations based on multi-feature action time information and uses statistical analysis methods to remove outlier data, generating stable action time data. It can use weighted average or weighted median calculation formulas, where the weight of each channel feature is determined based on the relay type and channel signal quality to ensure the accuracy of the calculation results. The dynamic judgment module dynamically adjusts the judgment criteria based on the action time and real-time environmental parameters of the relay, including temperature, voltage, and load conditions, through preset rules or mapping tables. It compares these criteria with the calculated action time and automatically generates a pass / fail indicator for the relay, recording it in the form of a data structure.
[0169] The batch analysis module performs differential analysis and statistical calculations on the actuation time data of relays in the same batch, identifies deviating or abnormal relays, and feeds the analysis results back to the trigger condition configuration and dynamic judgment module, thus forming a closed-loop optimization. The data recording module uniformly records relay test data, judgment results, and analysis information, and generates batch reports, while also supporting historical data traceability. Data is managed through timestamps and batch number indexes, enabling retrieval and backtracking analysis by relay number, batch number, or test time, providing complete verification and recording support for the entire testing process.
[0170] In another embodiment, the multi-channel acquisition module includes a relay measuring device for detecting the relay under test and simultaneously acquiring multiple parameters, such as contact state, voltage, and current, to obtain the input trigger signal, output state voltage, output state current, and mechanical contact state of the relay under test.
[0171] The relay measuring device includes an insulating housing, inside which are housed an electronic switch, an inverter, a battery charging / discharging unit, a central control unit, and a parameter measuring unit. The central control unit inside the insulating housing controls the inverter to output controllable power, which in turn controls the electronic switch to power on and off the relay under test. Simultaneously, it detects parameters such as voltage, current, normally open, and normally closed contacts of the relay under test, thereby calculating various test results for the relay.
[0172] like Figure 5As shown, the electronic switch is used to control the power-on and power-off of the relay under test. The solid-state relay is used as the electronic switch in the figure, which enables the weak current signal of the central control unit to control the on and off functions of the high-voltage AC load. The relay (test sample) in the figure is the relay under test.
[0173] like Figure 7 As shown, the inverter is used to convert the DC power provided by the battery charging and discharging unit into AC power. In the figure, the inverter forms a 50HZ AC inverter with the internal transformer of the device through the EG1 terminal. The central control unit sends the corresponding data to the inverter according to the set parameters, so that the inverter outputs the rated voltage of the relay under test.
[0174] The battery charging and discharging unit is used to provide power to the relay measuring device. The central control unit is used to monitor the normally closed / normally open contact status of the relay under test. When a contact status change is detected, the instantaneous values of coil voltage and current are recorded, and the pull-in voltage, pull-in current, release voltage, release current, and operating power parameters of the relay under test are calculated. The parameter measurement unit is used to detect the current, voltage, and contact change time of the relay under test.
[0175] To test various functional parameters of the relay under test, the following procedure is followed:
[0176] like Figure 3 As shown, the functions of pull-in voltage, pull-in current, release voltage, and release current are tested:
[0177] The central control unit controls the inverter's output voltage to gradually increase from 0V, while simultaneously detecting the status of the normally closed and normally open contacts of the relay under test. When the central control unit detects a change in the relay's status, it records the voltage and current at that moment and calculates the current power. At this point, parameters such as the relay's pull-in voltage and pull-in power can be obtained. Then, the central control unit controls the inverter's output voltage to gradually decrease. When it detects another change in the relay's status position, it indicates that the relay has disengaged. The central control unit records the voltage and current at this moment again, and through calculation, it can obtain the relay's release voltage and release current.
[0178] like Figure 4 As shown, the detection of the pull-in time and release time functions is performed.
[0179] Pull-in time measurement: The central control unit first controls the inverter to output the rated voltage of the relay coil under test, then controls the internal electronic switch to supply power to the relay coil under test, and at the same time starts the timer (the central control unit records the time at this moment: T1). When the central control unit detects the change in the state of the relay, it stops the timer (the central control unit records the time at this moment again: T2). The pull-in time is calculated based on the difference between the timers (i.e., pull-in time = T2 - T1).
[0180] Release time measurement: Following the same principle, continue from the previous step. At this point, the relay under test is already in the energized state. Turn off the electronic switch and turn on the timer at the same time, and record the time T3. Since the electronic switch is off, the relay under test is de-energized and separates. When the central control unit detects the auxiliary contact change position again, it indicates that the relay under test has separated. The central control unit closes for a set time and records the time T4. Then, the release time = T4 - T3.
[0181] Once all parameters have been tested, the data is saved and compared with the standard parameters set inside the device. If each parameter is within the standard parameters, the test is passed; if any parameter exceeds the standard, the test fails. The device can also be set to issue an error message via an alarm unit.
[0182] The insulating housing is equipped with three sets of 5-pin aviation connectors.
[0183] In another embodiment, the central control unit uses a single-chip microcomputer STM32F103C8T6 as the core component to control the various functional module circuits to work together to complete the parameter detection of the sample.
[0184] like Figure 6As shown, the central control unit's clock circuit consists of a crystal oscillator X1 and ceramic capacitors C18 and C19. Through the chip's internal frequency circuit, it generates the corresponding basic clock and timer clock. The PC13 pin controls the LED (D12), which flashes once per second to indicate normal system operation. The PA1 pin controls the alarm buzzer, which can be used to generate different alert sounds. PA2 and PA3 pins are the UART2 serial port pins, which, when connected to the LCD touchscreen, can also realize parameter setting, detection result display, and other human-machine interaction functions. PA4 and PA5 pins are for analog data acquisition (ADC). The input pins PA6 and PA7 are analog input pins, used to acquire the AC voltage and current of the AC test sample; PA8 and PA9 are analog input pins, used to acquire the DC voltage and current of the DC relay; PA0 is an analog input pin, used to acquire the current parameters of the AC current-type relay; PA1 is an analog input pin, used to acquire the voltage signal of the internal power supply battery; PA10 and PA11 are serial port 3 (UART3), connected to the inverter's serial port, through which the central control unit communicates with the inverter. Serial communication is used to control different output voltages of the inverter; output voltage range: AC: 0~220V; pin PB12 is the output relay controller signal for controlling the AC current-type relay; pin PB14 is the solid-state relay control signal, used to control the solid-state relay's on / off state (ultimately controlling the AC relay's energization and de-energization); pin PB15 is the MOSFET control signal, used to control the MOSFET's on / off state (ultimately controlling the DC relay's energization and de-energization); pins PA10 and PA11 are the serial port 1 (UART1) pins, this serial port is connected via T... The TL to USB module connects to the PC for communication with the host computer; pins PB3 and PB4 are auxiliary contact feedback signal input pins for AC relays, PB3: normally closed contact feedback signal, PB4: normally open contact feedback signal; pins PB5 and PB6 are auxiliary contact feedback signal input pins for DC relays, PB5: normally closed contact feedback signal, PB6: normally open contact feedback signal; pin PB8 is the inverter enable signal. The inverter can only work when this pin outputs a high level (1); otherwise, the inverter is turned off; capacitors C15 and C16 are chip filter capacitors.
[0185] In another embodiment, the central control unit and the parameter measurement unit are connected.
[0186] The parameter measurement unit includes an AC voltage control circuit, an AC voltage detection circuit, a DC voltage control circuit, a DC voltage detection circuit, a current control circuit, and a current detection circuit.
[0187] AC voltage control circuit such as Figure 8As shown, terminal P2 is the AC output terminal of the inverter, terminal P1 is the relay power supply terminal, BC3213A is a solid-state relay, and the control pin of the central control unit controls the transistor Q1 to turn on and off through resistor R8, so that the solid-state relay turns on and off, thereby controlling the AC relay to turn on and off.
[0188] AC voltage detection circuit, such as Figure 9 As shown, the AC voltage acquisition circuit uses an AC transformer PT1 and voltage divider resistors R1, R2, R4, and R5 to form the high-voltage side, which is connected to the AC relay power supply terminal. The secondary side passes through the sampling resistor R3 to the ADC analog sampling input pin PA4 of the central control unit. The AC relay current passes through the internal wires through the current transformer CT1. The secondary side of CT induces a voltage through the sampling resistor R6 to the analog pin PA5, thus acquiring the AC voltage and AC current values of the relay. The power is then calculated by the central control unit.
[0189] DC voltage detection circuit, such as Figure 10 As shown, D5 is a rectifier bridge that rectifies the AC voltage at the inverter output into DC voltage. After filtering by capacitors C7 and C8, it supplies power to the DC test sample. The central control unit sends a signal to the MOSFET drive optocoupler U3 through the controller pin PB15 and resistor R8 to drive the MOSFET. When PB15 is low, the MOSFET drives optocoupler U3 to conduct, outputting a high level. This outputs a high level and drives MOSFET Q3 to conduct through the current-limiting resistor R3. Terminal P6 is connected to the DC test sample power supply terminal, and the test sample is powered on. At this time, the DC test sample current flows through the current sampling resistor R22. The central control unit collects the voltage across resistor R22 and can calculate the DC test sample current, i.e., DC test sample current = UADC_DCI / 5R. The DC test sample voltage acquisition circuit consists of resistors R10, R12, R19, and R23 forming a voltage divider network, which then connects to the analog acquisition pin PA6 of the central control unit. The DC test sample voltage is: ADC_DCU * R23 * (1 + 600k / 5k).
[0190] In another embodiment, such as Figure 11 As shown, a battery voltage detection circuit is also installed inside the insulating shell, which is internally powered. The battery voltage is divided by voltage divider resistors R54 and R61, and then passes through current limiting resistor R58 to the ADC acquisition pin PB1 of the central control unit. Capacitor C33 acts as a signal filter to prevent signal abrupt changes. The power supply voltage is: ADC2_BAT*(1+100k / 10k).
[0191] In another embodiment, the battery charging and discharging unit is provided with a charging protection circuit.
[0192] In another embodiment, the central control unit is also connected to an alarm circuit. The alarm circuit uses a buzzer for alarm. The central control unit's control pin controls the transistor to turn on and off intermittently through a current-limiting resistor, which causes the buzzer to emit intermittent alert sounds. The buzzer emits different sound effects depending on the time interval of the signal emitted by the central control unit, thus issuing different error alert sounds.
[0193] The preferred embodiments of the present invention have been described in detail above with reference to the accompanying drawings. However, the present invention is not limited to the above embodiments. Although the present invention has been described in detail with reference to the foregoing embodiments, within the scope of knowledge possessed by those skilled in the art, modifications can be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features, without departing from the spirit of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
[0194] Many other changes and modifications can be made without departing from the concept and scope of this invention. It should be understood that this invention is not limited to the specific embodiments, and the scope of this invention is defined by the appended claims.
Claims
1. A method for determining relay operating time and automatically verifying test results. Its features are, The method includes the following steps: Step S1: Determine the type and key parameters of the relay under test, and configure its input trigger conditions. Step S2: Simultaneously acquire the relay's input trigger signal, output state voltage, output state current, and mechanical contact state through multiple channels, and perform timestamp correction and preprocessing on the acquired signals to obtain multi-feature action time information, including the following steps: Step S21: Set up independent acquisition channels for relay input trigger signal, output status voltage, output status current and mechanical contact status; Step S22: Synchronize the acquired signals of each channel using a unified clock or trigger marker for timestamp. Step S23: Perform moving average filtering on the acquired signal and mark sampling points that deviate from the mean or exceed the threshold as abnormal; Step S24: Organize the processed multi-channel signal into structured data; Step S25: Apply edge detection and threshold judgment to the signals acquired from each channel to extract the start point, completion point, and duration features of the action; Step S26: Analyze and statistically analyze the time differences between channels to identify and eliminate abnormal features; Step S27: The remaining features are weighted and fused according to channel weights to generate multi-feature action time information. Step S3: Calculate the relay action time based on multi-feature action time information, and obtain a stable relay action time through cross-validation and anomaly handling, including the following steps: Step S31: The multi-feature action time information generated in step S27 is weighted and fused according to the channel feature weights to generate action time values; Step S32: Use statistical analysis methods to identify and remove abnormal data, and recalculate the action time for the remaining features; Step S33: Output the final calculated relay action time in structured data format. Step S4: Based on the relay's operating time and real-time environmental parameters, establish a dynamic standard model to dynamically adjust the relay's operating time judgment standard, and automatically determine whether the relay is qualified. This includes the following steps: Step S41: Obtain the real-time environmental parameters of the relay through a sensor or data interface. The real-time environmental parameters include temperature, voltage, and load conditions. Step S42: Based on the relay action time and environmental parameters, calculate the adjusted relay action time judgment standard through preset judgment rules or mapping table; Step S43: Compare the calculated relay action time with the dynamically adjusted judgment criteria feature by feature; Step S44: Generate a pass / fail indicator for the relay based on the comparison result of step S43, and record it in the form of a data structure. Step S5: Perform differential analysis on the batch relay action time data that has been judged to identify abnormal or deviant relays, and feed the analysis results back to the triggering conditions, judgment rules and dynamic standard model. The relay identification process includes the following steps: Step S51: Perform statistical analysis and differential calculation on the operating time data of relays in the same batch to identify deviating or abnormal relays; Step S52: Classify the identified abnormal relays according to multi-feature comprehensive analysis. Step S6: Record the relay test data, judgment results and analysis results generated in each step in a unified manner, generate a batch report, and support historical data traceability for verification and recording of the entire testing and calibration process.
2. The method for determining relay operating time and automatically verifying test results as described in claim 1. Its features are, The step of configuring the input triggering conditions in step S1 includes: Step S11: Determine the model and key parameters of the relay to be tested, including rated voltage, rated current and contact type; Step S12: Set the level, pulse width, and trigger timing of the input trigger signal; Step S13: Generate a trigger signal configuration table based on the type of relay under test, so that the configured input trigger conditions match the subsequent multi-channel synchronous acquisition and relay action time measurement process.
3. The method for determining relay operating time and automatically verifying test results as described in claim 2. Its features are, The step S6 of generating the batch report includes the following steps: step S61: Record the relay action time and judgment result of each relay and batch in the form of a structured data table, and generate a batch report; Step S62: Index and trace historical data according to timestamps and batch numbers.
4. An automated verification device for determining relay operating time and testing results. Its features are, include: The trigger condition configuration module is used to determine the type and key parameters of the relay under test and generate the input trigger signal configuration; The multi-channel acquisition module is used to synchronously acquire the relay's input trigger signal, output status voltage, output status current, and mechanical contact status, and to perform timestamp correction, filtering, and anomaly marking. The multi-feature motion time processing module is used to extract the motion start point, completion point and duration features from the acquired signal, and generate multi-feature motion time information through inter-channel fusion; The motion time calculation module is used to perform weighted fusion calculations based on multi-feature motion time information, remove abnormal features, and generate stable motion time data. The dynamic judgment module is used to adjust the judgment criteria based on the action time and real-time environmental parameters, and to establish a dynamic standard model to automatically generate relay pass or fail indicators. The batch analysis module is used to perform differential analysis on batch relay action time data, identify abnormal relays, and feed the analysis results back to the triggering conditions, judgment rules, and dynamic standard model to form a closed loop. The data recording module is used to uniformly record relay test data, judgment results and analysis information, generate batch reports, and support historical data traceability.
5. The automated verification device for relay action time determination and test results as described in claim 4. Its features are, The multi-channel acquisition module includes a relay measurement device. The relay measuring device is used to obtain the input trigger signal, output state voltage, output state current, and mechanical contact state of the relay under test. The relay measuring device includes an insulating housing, inside which are arranged an electronic switch, an inverter, a battery charging and discharging unit, a central control unit, and a parameter measuring unit. The electronic switch is used to control the power-on and power-off of the relay under test. The inverter is used to convert the DC power provided by the battery charging and discharging unit into AC power. The battery charging and discharging unit is used to provide power to the relay measuring device. The central control unit is used to monitor the status and duration of the normally closed / normally open contacts of the relay under test. The parameter measurement unit is used to detect the current, voltage, and contact change time of the relay under test, and calculates the relay coil holding power. The insulating shell is equipped with three sets of 5-pin aviation plugs.
6. The automated verification device for relay action time determination and test results as described in claim 5. Its features are, The central control unit uses a single-chip microcomputer STM32F103C8T6.
7. The automated verification device for relay action time determination and test results as described in claim 6. Its features are, The central control unit and the parameter measurement unit are connected. The parameter measurement unit includes an AC voltage control circuit, an AC voltage detection circuit, an AC voltage control circuit, a DC voltage detection circuit, a current control circuit, a current detection circuit, and a contact feedback signal detection circuit.
8. The automated verification device for relay action time determination and test results as described in claim 6. Its features are, The insulating outer shell also contains a battery voltage detection circuit.
9. The automated verification device for relay action time determination and test results as described in claim 6. Its features are, The battery charging and discharging unit is equipped with a charging protection circuit.
10. The relay action time determination and test result automated verification device as described in claim 6. Its features are, The central control unit is also connected to an alarm circuit.