A voltage type sensor path fault detection method, system, device and computer readable medium
By adjusting the width and amplitude of the pulse signal, combining autocorrelation calculation and noise energy evaluation, the judgment problem of voltage sensor path fault detection is solved when static zero voltage output is achieved, and a low-cost and cost-effective general detection method is realized. With various voltage sensors, the usability and detection accuracy of equipment are improved.
Patent Information
- Application Number
- CN202111041894.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-07
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2041-09-07
AI Technical Summary
The existing voltage sensor path fault detection method is difficult to determine the fault status when the static zero voltage output is output, and the dedicated detection circuit is costly and easily affects normal voltage acquisition, and the overall cost performance is low.
By selecting the appropriate op-amp power supply level, pulse signals are generated and path attenuation evaluation is performed, pulse width and amplitude are adjusted to match sensor circuits, and path status is judged using autocorrelation calculations and noise energy evaluation to ensure the effectiveness of detection signals and Security.
It realizes low-cost and general fault detection of voltage-type sensor paths, ensuring that detection does not affect normal acquisition, has high cost-effectiveness and wide application value, can identify fault status and quality losses in advance, and improve equipment availability.
Smart Images

Figure CN114047461B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of voltage type sensor path fault detection, and in particular to a voltage type sensor path fault detection method, system, device and computer readable medium. Background Art
[0002] Sensors are the input source of various control systems. Various sensors, especially those with voltage output, have been widely used in all walks of life. The detection of temperature, humidity, pressure, speed, acceleration, gas concentration, element content and other factors are all converted into voltage signals through special electrical, mechanical, physical, chemical and other principles. Therefore, the detection of voltage sensors can be judged by analyzing the characteristics of their output voltage.
[0003] Different types of voltage sensors have a wide range of output voltage and load capacity. Universal detection of such sensors requires adaptive parameter adjustment capabilities to cover a variety of performance.
[0004] Voltage sensors are usually installed in relatively harsh working environments and require real-time testing to ensure their stability and quality. Path fault detection is the most direct method. Sensor front-end conversion failure, electrical output failure, or transmission cable failure will all manifest as path failures. In particular, sensors that are static for a long time and have zero output voltage need to be tested regularly to avoid discovering faults when activating acquisition, which directly affects system operation.
[0005] Due to the above-mentioned specific situations and scenarios, the current voltage-based sensor path fault detection method has the following problems:
[0006] 1) In many scenarios, only when the sensor has voltage output in the dynamic acquisition state, the effective range of its voltage value is identified to determine whether the sensor is in a normal or faulty state; when the sensor outputs zero voltage, it is impossible to determine whether it is in a static acquisition or path fault state.
[0007] 2) Use a dedicated circuit to detect each type of voltage sensor, and then superimpose DC voltage or AC voltage to determine whether the path is normal. This method requires customized hardware and software design for sensor parameters, which requires a lot of development work.
[0008] Various dedicated detection circuits are expensive, and when the detection circuit itself fails, it often affects normal voltage collection, which in turn causes quality problems and makes troubleshooting and positioning difficult, resulting in a low overall cost-effectiveness. Summary of the invention
[0009] In order to address the above-mentioned technical defects in the prior art, the present invention provides a voltage-type sensor path fault detection method, system, device and computer-readable medium, which are used to provide a universal, low-cost solution and device for path status detection of voltage-type sensors, focusing on unified quality management and fault management of sensors in various application scenarios, and can effectively solve the problems in the background technology.
[0010] In order to solve the above technical problems, the technical solutions of the voltage sensor path fault detection method, system and computer readable medium provided by the present invention are as follows:
[0011] In a first aspect, an embodiment of the present invention discloses a method for detecting a voltage-type sensor path fault, the method comprising the following steps:
[0012] According to the output range of the voltage sensor and the cable characteristics, select and determine the power supply level of the operational amplifier in the detection circuit to determine the maximum amplitude of the pulse signal that may be output;
[0013] Output pulse signals according to default settings to evaluate path loss, and ensure effective matching between superimposed signals and sensor equivalent circuits by adjusting pulse width and pulse amplitude;
[0014] Evaluate the background noise energy in the path. When the voltage sensor is effectively output, complete the energy evaluation of the effective signal and subtract the energy of the background noise energy signal.
[0015] After the A / D signal is subtracted from the background noise energy signal, a preliminary path energy judgment is performed. After the preliminary judgment is passed, the standard pulse signal and the detection pulse signal are used for autocorrelation calculation to ensure the consistency of the pulse characteristics, and repeated sampling and judgment are performed multiple times to eliminate external occasional pulse interference.
[0016] In any of the above schemes, it is preferred that in the voltage-type sensor path fault detection method, the pulse signal is generated by a CPU digital output pin, the pulse signal is gain-adjusted by an operational amplifier after DC filtering, and the adjustment multiple is achieved by the CPU controlling a digital resistor.
[0017] In any of the above schemes, it is preferred that in the voltage-type sensor path fault detection method, the pulse signal is decoupled through a capacitor after gain adjustment and sent to a signal transformer, the pulse signal is magnetically isolated by the signal transformer and then superimposed on the output path of the voltage-type sensor, and the voltage-type sensor outputs a voltage value corresponding to the collected amount after conversion.
[0018] In any of the above schemes, it is preferred that in the voltage-type sensor path fault detection method, the digital resistor includes 256 gears, and the CPU generates a rising edge to adjust the gear through digital output, each gear represents a different resistance value and also corresponds to a different amplification factor.
[0019] In any of the above schemes, it is preferred that the voltage-type sensor path fault detection method, the pulse width is 10us, the amplitude is 50% of the full-scale pulse signal of the voltage-type sensor is the default superposition signal, the amplitude of the superposition signal is reduced after the path attenuation, the pulse width is adjusted within 1 to 10us, and the amplitude of the pulse signal is adjusted within 50 to 80% of the full-scale to ensure that the peak-to-peak value of the pulse signal returned to the acquisition end is ≥ 70% of the amplitude of the generating end.
[0020] In any of the above schemes, it is preferred that in the voltage-type sensor path fault detection method, the A / D conversion obtains sampling data, calculates the background noise energy in the path through an integration algorithm, and subtracts the white noise energy in the path, and the white noise energy in the path is calculated by root mean square calculation to obtain the white noise energy in a certain period of time or a certain frequency band. If the remaining energy value is less than the threshold value, it is determined as a path fault. If it is greater than the threshold value, the next step of autocorrelation calculation is performed.
[0021] In any of the above schemes, preferably, in the voltage-type sensor path fault detection method, the autocorrelation calculation comprises the following steps:
[0022] The pulse signal after the path loss evaluation is used as the initial signal, and the collected path pulse signal is used as the related object signal;
[0023] The peak position of the channel pulse signal is determined by amplitude threshold triggering and extreme value search method, and the peaks of the two signals are aligned to perform autocorrelation calculation to obtain the energy peak;
[0024] If the voltage type sensor works in the effective output state for a long time, adjust the amplitude of the superimposed pulse signal according to the amplitude of the output conversion voltage signal to ensure that the voltage after summation is ≤ full scale.
[0025] In any of the above solutions, preferably, in the voltage-type sensor path fault detection method, the autocorrelation calculation further comprises:
[0026] Define the initial reference pulse signal as s(t), and the pulse signal delayed in the channel transmission as s(t-τ), then the autocorrelation function is as follows:
[0027] where t 0 ,t 1Indicates the time domain start and end time of the pulse signal. After the continuous signal is digitally sampled, the pulse width is reflected as n sampling points according to the sampling rate. The initial reference pulse signal is defined as s(k), k = 1, 2, ... n. After the pulse signal delayed in the channel transmission is captured by the threshold and the peak value is queried, it is located as g(k), k = 1, 2, ... n. The autocorrelation calculation in the actual software implementation is as follows:
[0028] Compared with the prior art, the present invention has the following beneficial effects:
[0029] The detection method and device have a fail-safe feature. The failure of a single device such as a digital output device, resistor, capacitor, operational amplifier, etc. will only result in no pulse signal or a failure of pulse signal superposition, and will not affect the path characteristics of the sensor itself. And when a single device fails, the device can quickly identify it based on software judgment, so that it can be replaced and repaired in real time to ensure availability.
[0030] The cost-effective path fault detection method and device for voltage-type sensors described in the present invention are not only applicable to scenarios of long-term standby and periodic conversion, but also to long-term continuous conversion working modes. This method can be used in all application industries of voltage-type sensors when the voltage amplitude is within the safe voltage range of less than 36V and the voltage transmission loss is less than 5V, that is, the cable wiring length is less than 100 meters. Therefore, it has broad application prospects.
[0031] The use of universal hardware circuits combined with software settings can realize the detection of the path status of various voltage-type sensors, has universal application value, and reduces repeated development.
[0032] The regular conversion and collection of many external factors realizes the function of obtaining the status in advance when the sensor is idle. It can not only judge the fault status in advance, but also monitor the attenuation changes and quality trends of the sensor for preventive replacement, thereby improving the overall availability of the device.
[0033] The hardware circuit is simple, the cost is low, and various failure modes will not affect the normal function. It has a high cost-effectiveness and a basis for wide application, and can be used as the preferred solution for path fault detection.
[0034] In a second aspect, a voltage-type sensor path fault detection system includes:
[0035] A selection module is used to select and determine the power supply level of the operational amplifier in the detection circuit according to the output range of the voltage type sensor and the cable characteristics, so as to determine the maximum amplitude that the pulse signal may output;
[0036] An evaluation module, which is used to output a pulse signal according to the default setting, perform a path loss evaluation, and ensure effective matching between the superimposed signal and the sensor equivalent circuit by adjusting the pulse width and pulse amplitude;
[0037] A calculation module is used to evaluate the background noise energy in the path, and when the voltage sensor is a valid output, complete the energy evaluation of the valid signal and subtract the energy of the background noise energy signal;
[0038] The processing module is used to make a preliminary judgment on the energy of the path after subtracting the energy of the background noise energy signal from the A / D signal. After the preliminary judgment is passed, the standard pulse signal and the detection pulse signal are used for autocorrelation calculation to ensure the consistency of the pulse characteristics, and repeated sampling and judgment are performed multiple times to eliminate external occasional pulse interference.
[0039] Compared with the prior art, the present invention has the following beneficial effects:
[0040] The detection method and device have a fail-safe feature. The failure of a single device such as a digital output device, resistor, capacitor, operational amplifier, etc. will only result in no pulse signal or a failure of pulse signal superposition, and will not affect the path characteristics of the sensor itself. And when a single device fails, the device can quickly identify it based on software judgment, so that it can be replaced and repaired in real time to ensure availability.
[0041] The cost-effective path fault detection method and device for voltage-type sensors described in the present invention are not only applicable to scenarios of long-term standby and periodic conversion, but also to long-term continuous conversion working modes. In all application industries of voltage-type sensors, when the voltage amplitude is within the safe voltage range of less than 36V, the voltage transmission loss is less than 5V, that is, the cable wiring length is less than 100 meters, the method and device can be used. Therefore, it has a wide range of application prospects.
[0042] In a third aspect, a voltage-type sensor path fault detection device includes:
[0043] Memory for storing computer programs;
[0044] A processor is used to implement the steps of the voltage-type sensor path fault detection method when executing the computer program.
[0045] In a fourth aspect, a computer readable medium stores a computer program, and when the program is executed by a processor, the voltage-type sensor path fault detection method is implemented.
[0046] Compared with the prior art, the present invention has the following beneficial effects:
[0047] The regular conversion and collection of many external factors enables the function of obtaining the status in advance when the sensor is idle. It can not only judge the fault status in advance, but also monitor the attenuation changes and quality trends of the sensor for preventive replacement, thereby improving the overall availability of the device.
[0048] The hardware circuit is simple, the cost is low, and various failure modes will not affect the normal function. It has a high cost-effectiveness and a basis for wide application, and can be used as the preferred solution for path fault detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] The accompanying drawings are used for further understanding of the present invention and are used to explain the present invention together with the embodiments of the present invention, but do not constitute a limitation of the present invention.
[0050] Figure 1 It is a principle diagram of a voltage type sensor path fault detection method according to the present invention.
[0051] Figure 2 It is a schematic diagram of the processing principle of the voltage type sensor path fault detection method according to the present invention.
[0052] Figure 3 It is a schematic diagram of the processing flow of the voltage type sensor path fault detection method according to the present invention.
[0053] Figure 4 It is a schematic diagram of a voltage type sensor path fault detection device according to the present invention. DETAILED DESCRIPTION
[0054] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0055] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0056] In order to better understand the above technical solution, the technical solution of the present invention will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0057] Example:
[0058] In a first aspect, an embodiment of the present invention discloses a method for detecting a voltage-type sensor path fault, the method comprising the following steps:
[0059] According to the output range of the voltage sensor and the cable characteristics, select and determine the power supply level of the operational amplifier in the detection circuit to determine the maximum amplitude of the pulse signal that may be output;
[0060] Output pulse signals according to default settings to evaluate path loss, and ensure effective matching between superimposed signals and sensor equivalent circuits by adjusting pulse width and pulse amplitude;
[0061] Evaluate the background noise energy in the path. When the voltage sensor is effectively output, complete the energy evaluation of the effective signal and subtract the energy of the background noise energy signal.
[0062] After the A / D signal is subtracted from the background noise energy signal, a preliminary path energy judgment is performed. After the preliminary judgment is passed, the standard pulse signal and the detection pulse signal are used for autocorrelation calculation to ensure the consistency of the pulse characteristics, and repeated sampling and judgment are performed multiple times to eliminate external occasional pulse interference.
[0063] like Figure 1 As shown, in the voltage-type sensor path fault detection method, the pulse signal is generated by the CPU digital output pin, the pulse signal is DC filtered and then gain adjusted by the operational amplifier, and the adjustment multiple is achieved by the CPU controlling the digital resistor.
[0064] like Figure 1 As shown, the voltage-type sensor path fault detection method, the pulse signal is decoupled through a capacitor after gain adjustment, and sent to the signal transformer, the pulse signal is magnetically isolated by the signal transformer and then superimposed on the output path of the voltage-type sensor, the voltage-type sensor outputs a voltage value corresponding to the collected amount after conversion, the digital resistor includes 256 gears, the CPU generates a rising edge to adjust the gear through the digital output, each gear represents a different resistance value, and also corresponds to a different amplification factor.
[0065] like Figures 1 to 3 As shown, the voltage-type sensor path fault detection method, the pulse width is 10us, the amplitude is 50% of the full-scale pulse signal of the voltage-type sensor is the default superposition signal, the amplitude of the superposition signal is reduced after the path attenuation, the pulse width is adjusted within 1 to 10us, and the amplitude of the pulse signal is adjusted within 50 to 80% of the full-scale to ensure that the peak-to-peak value of the pulse signal returned to the acquisition end is ≥ 70% of the amplitude of the generating end.
[0066] like Figures 1 to 3As shown, the voltage-type sensor channel fault detection method, the A / D conversion obtains sampling data, calculates the background noise energy in the channel through an integration algorithm, and subtracts the white noise energy in the channel. The white noise energy in the channel is calculated by RMS calculation to obtain the white noise energy in a certain period of time or a certain frequency band. If the remaining energy value is less than the threshold value, it is determined as a channel fault. If it is greater than the threshold value, the next step of autocorrelation calculation is performed.
[0067] like Figures 1 to 3 As shown, the voltage type sensor path fault detection method, the autocorrelation calculation includes the following steps:
[0068] The pulse signal after the path loss evaluation is used as the initial signal, and the collected path pulse signal is used as the related object signal;
[0069] The peak position of the channel pulse signal is determined by amplitude threshold triggering and extreme value search method, and the peaks of the two signals are aligned to perform autocorrelation calculation to obtain the energy peak;
[0070] If the voltage type sensor works in the effective output state for a long time, adjust the amplitude of the superimposed pulse signal according to the amplitude of the output conversion voltage signal to ensure that the voltage after summation is ≤ full scale.
[0071] like Figures 1 to 3 As shown, in the voltage-type sensor path fault detection method, the autocorrelation calculation further includes:
[0072] Define the initial reference pulse signal as s(t), and the pulse signal delayed in the channel transmission as s(t-τ), then the autocorrelation function is as follows:
[0073] where t 0 ,t 1 Indicates the time domain start and end time of the pulse signal. After the continuous signal is digitally sampled, the pulse width is reflected as n sampling points according to the sampling rate. The initial reference pulse signal is defined as s(k), k = 1, 2, ... n. After the pulse signal delayed in the channel transmission is captured by the threshold and the peak value is queried, it is located as g(k), k = 1, 2, ... n. The autocorrelation calculation in the actual software implementation is as follows:
[0074] Compared with the prior art, the present invention has the following beneficial effects:
[0075] The detection method and device have a fail-safe feature. The failure of a single device such as a digital output device, resistor, capacitor, operational amplifier, etc. will only result in no pulse signal or a failure of pulse signal superposition, and will not affect the path characteristics of the sensor itself. And when a single device fails, the device can quickly identify it based on software judgment, so that it can be replaced and repaired in real time to ensure availability.
[0076] The cost-effective path fault detection method and device for voltage-type sensors described in the present invention are not only applicable to scenarios of long-term standby and periodic conversion, but also to long-term continuous conversion working modes. In all application industries of voltage-type sensors, when the voltage amplitude is within the safe voltage range of less than 36V, the voltage transmission loss is less than 5V, that is, the cable wiring length is less than 100 meters, the method and device can be used. Therefore, it has a wide range of application prospects.
[0077] The use of universal hardware circuits combined with software settings can realize the detection of the path status of various voltage-type sensors, has universal application value, and reduces repeated development.
[0078] The regular conversion and collection of many external factors enables the function of obtaining the status in advance when the sensor is idle. It can not only judge the fault status in advance, but also monitor the attenuation changes and quality trends of the sensor for preventive replacement, thereby improving the overall availability of the device.
[0079] The hardware circuit is simple, the cost is low, and various failure modes will not affect the normal function. It has a high cost-effectiveness and a basis for wide application, and can be used as the preferred solution for path fault detection.
[0080] Aiming at the problems existing in the application of the conventional voltage type sensor path fault detection method and device, the present invention mainly solves the following technical problems:
[0081] 1) Realize the state detection of voltage type sensor at static zero voltage output, and identify fault state or quality loss in advance.
[0082] 2) Use a universal simple circuit, combined with parameter matching and software processing, to achieve universal status detection for various voltage type sensors.
[0083] 3) Ensure that various failures of the detection circuit only affect the detection function itself and will not affect the collection of external variables, thereby achieving cost-effective sensor path detection.
[0084] The method corresponding to the present invention is used to provide a universal, low-cost solution and device for the detection of the path status of voltage-type sensors, focusing on unified quality management and fault management of sensors in various application scenarios. The hardware principle of this method and device is as follows Figure 1 shown.
[0085] The CPU system generates a pulse signal through the digital output (DO) pin, and the pulse width can be set and adjusted by software; the pulse signal is DC filtered and then adjusted by the operational amplifier, and the adjustment multiple is achieved by the CPU controlling the digital resistor. The digital resistor has 256 gears, and the CPU generates a rising edge adjustment gear through the digital output. Each gear represents a different resistance value and corresponds to a different amplification multiple; the pulse signal is decoupled through a capacitor after gain adjustment and sent to the signal transformer. The function of the transformer is signal isolation and signal superposition, and the pulse signal is superimposed on the output path of the sensor after magnetic isolation; the electrical part of the voltage sensor plus the transmission cable can be equivalent to a passive circuit, which consists of a series inductor, a parallel resistor and a capacitor. Because the cable length is relatively short, usually less than 10 meters, the introduced inductance value can be almost ignored.
[0086] After conversion, the voltage type sensor outputs the voltage value corresponding to the collected quantity, and outputs zero voltage when the collected quantity is static. In both states, the pulse signal can be superimposed and the back-end analysis can be performed to confirm whether there is a fault or other abnormality in the sensor path.
[0087] The software detection process includes path attenuation evaluation, path background signal evaluation, pulse signal setting, energy detection, autocorrelation calculation, result judgment, etc. The software processing process is described as follows: Figure 2 shown.
[0088] Because the electrical path of the voltage type sensor is not purely resistive, it is necessary to evaluate the path loss before formal use. The pulse signal with a pulse width of 10us and an amplitude of 50% of the full scale of the sensor is the default superposition signal. The amplitude of the superposition signal is reduced after the path loss. According to the characteristics of each sensor, the pulse width is adjusted within 1 to 10us, and the amplitude of the pulse signal is adjusted within 50 to 80% of the full scale to ensure that the peak-to-peak value of the pulse signal returned to the acquisition end is not less than 70% of the amplitude of the generating end to ensure the effectiveness of the back-end signal processing.
[0089] After the parameters of the pulse signal are determined and set, the superposition of the pulse signal is triggered preferentially when the sensor outputs zero voltage. The signal passes through the electrical path of the sensor and reaches the acquisition end of the processing system.
[0090] In order to effectively detect the characteristics of the pulse signal in the channel, it is necessary to evaluate the background noise in the channel in advance. It is usually believed that there is white noise in the channel, and the noise energy in a certain period of time or a certain frequency band can be calculated through root mean square calculation.
[0091] The processing system obtains the sampled data through A / D conversion, calculates the energy through the integration algorithm, and subtracts the known noise energy. If the remaining energy value is less than the threshold value, it is determined to be a path fault. If it is greater than the threshold value, the next step of autocorrelation calculation is performed.
[0092] If some kind of sudden interference enters the sensor path due to conduction or space radiation, it will also be reflected as a superimposed pulse signal. Therefore, simply using energy detection is prone to misjudgment, resulting in failure to detect fault phenomena. Autocorrelation calculation is required to ensure that the pulses in the path are actively superimposed pulses. The pulse signal after the path attenuation evaluation is used as the initial signal, and the collected path pulse signal is used as the related object signal. First, the peak position of the path pulse signal is determined by the amplitude threshold trigger and extreme value search method, and the peaks of the two signals are aligned for autocorrelation calculation to obtain the energy peak. Considering the attenuation of voltage-type sensors during long-term use, the energy peak shows a downward trend over time, which represents the performance loss and quality trend of the sensor. Based on this prior knowledge, not only the working status of the sensor path can be judged, but also the availability status of the sensor itself can be identified.
[0093] If the sensor works in the effective output state for a long time, the same method as above can be used for detection. It is necessary to adjust the amplitude of the superimposed pulse signal according to the amplitude of the output conversion voltage signal to ensure that the voltage after summation does not exceed the full scale to protect the sensor and the back-end circuit from damage. Similarly, in the evaluation of the path background signal, it is necessary to add the white noise and the conversion output voltage as the background signal and subtract its energy before the judgment process.
[0094] Combined with the above hardware and software design, the detection method has a fail-safe feature. The failure of a single digital output device, resistor, capacitor, operational amplifier, etc. will only result in no pulse signal or pulse signal superposition failure, and will not affect the path characteristics of the sensor itself. And when a single component fails, the device can quickly identify it based on software judgment, so that it can be replaced and repaired in real time to ensure availability.
[0095] In signal processing, the similarity of a signal to itself after a period of delay is called the degree of autocorrelation. Autocorrelation calculation is mainly used for the detection, identification and extraction of specific signals. Define the initial reference pulse signal as s(t), and the pulse signal delayed in the channel transmission as s(t-τ), then the autocorrelation function is as follows:
[0096] where t 0 ,t 1 Indicates the time domain starting and ending time of the pulse signal.
[0097] After the continuous signal is digitally sampled, the pulse width is reflected as n sampling points according to the sampling rate.
[0098] The initial reference pulse signal is defined as s(k), k = 1, 2, ... n. After the pulse signal delayed in the channel transmission is captured by the threshold and the peak value is queried, it is located as g(k), k = 1, 2, ... n. The autocorrelation calculation in the actual software implementation is as follows:
[0099] The cost-effective path fault detection method and device for voltage-type sensors described in the present invention are not only applicable to scenarios of long-term standby and periodic conversion, but also to long-term continuous conversion working modes. In all application industries of voltage-type sensors, when the voltage amplitude is within the safe voltage range of less than 36V, the voltage transmission loss is less than 5V, that is, the cable wiring length is less than 100 meters, the method and device can be used. Therefore, it has a wide range of application prospects.
[0100] When the method and system described in the present invention are applied, the corresponding steps and processes are as follows during specific implementation:
[0101] According to the output range of the voltage sensor and the cable characteristics, select and determine the power supply level of the operational amplifier in the detection circuit to determine the maximum amplitude of the pulse signal that may be output.
[0102] Output pulse signals according to the default settings to evaluate the path loss. By adjusting the pulse width and pulse amplitude, ensure the effective matching of the superimposed signal and the sensor equivalent circuit.
[0103] The noise energy evaluation is completed in advance. When the sensor has a valid output, the energy evaluation of the valid signal is completed synchronously, and the energy of the background signal is subtracted in the actual detection calculation.
[0104] After the A / D signal is subtracted from the background signal energy, a preliminary path energy judgment is performed. This method can quickly complete the identification and detection when a fault occurs, but it cannot rule out occasional external pulse interference.
[0105] After the preliminary judgment is passed, the standard pulse signal and the detection pulse signal are used to perform autocorrelation calculation to ensure the consistency of the pulse characteristics, and repeated sampling and judgment are performed multiple times to eliminate external occasional pulse interference and ensure the validity of the detection results.
[0106] Analyzing the test results not only determines the status of the sensor path, but also outputs the sensor's attenuation information and maintenance suggestions, providing users with reference opinions for quality management of sensors and devices.
[0107] In a second aspect, a voltage-type sensor path fault detection system includes:
[0108] A selection module is used to select and determine the power supply level of the operational amplifier in the detection circuit according to the output range of the voltage type sensor and the cable characteristics, so as to determine the maximum amplitude that the pulse signal may output;
[0109] An evaluation module, which is used to output a pulse signal according to the default setting, perform a path loss evaluation, and ensure effective matching between the superimposed signal and the sensor equivalent circuit by adjusting the pulse width and pulse amplitude;
[0110] A calculation module is used to evaluate the background noise energy in the path, and when the voltage sensor is a valid output, complete the energy evaluation of the valid signal and subtract the energy of the background noise energy signal;
[0111] The processing module is used to make a preliminary judgment on the energy of the path after subtracting the energy of the background noise energy signal from the A / D signal. After the preliminary judgment is passed, the standard pulse signal and the detection pulse signal are used for autocorrelation calculation to ensure the consistency of the pulse characteristics, and repeated sampling and judgment are performed multiple times to eliminate external occasional pulse interference.
[0112] Compared with the prior art, the present invention has the following beneficial effects:
[0113] The detection method and device have a fail-safe feature. The failure of a single device such as a digital output device, resistor, capacitor, operational amplifier, etc. will only result in no pulse signal or a failure of pulse signal superposition, and will not affect the path characteristics of the sensor itself. And when a single device fails, the device can quickly identify it based on software judgment, so that it can be replaced and repaired in real time to ensure availability.
[0114] The cost-effective path fault detection method and device for voltage-type sensors described in the present invention are not only applicable to scenarios of long-term standby and periodic conversion, but also to long-term continuous conversion working modes. In all application industries of voltage-type sensors, when the voltage amplitude is within the safe voltage range of less than 36V, the voltage transmission loss is less than 5V, that is, the cable wiring length is less than 100 meters, the method and device can be used. Therefore, it has a wide range of application prospects.
[0115] Thirdly, Figure 4As shown, a voltage-type sensor path fault detection device includes: a memory for storing a computer program; and a processor for implementing the steps of the voltage-type sensor path fault detection method when executing the computer program.
[0116] The processor is used to control the overall operation of the measuring device to complete all or part of the steps in the above-mentioned voltage sensor path fault detection method. The memory is used to store various types of data to support the operation of the measuring device, and these data may include, for example, instructions for any application or method used to operate on the measuring device, and application-related data, such as contact data, messages sent and received, pictures, audio, video, etc. The memory can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, referred to as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), erasable programmable read-only memory (Erasable Programmable Read-Only Memory, referred to as EPROM), programmable read-only memory (Programmable Read-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic memory, flash memory, magnetic disk or optical disk. The multimedia component may include a screen and an audio component. The screen may be, for example, a touch screen, and the audio component is used to output and / or input audio signals. For example, the audio component may include a microphone for receiving an external audio signal. The received audio signal may be further stored in a memory or sent through a communication component. The audio component also includes at least one speaker for outputting an audio signal. The I / O interface provides an interface between the processor and other interface modules, and the above-mentioned other interface modules may be a keyboard, a mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component is used for wired or wireless communication between the measuring device and other devices. Wireless communication, such as Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G or 4G, or a combination of one or more of them, so the corresponding communication component may include: Wi-Fi module, Bluetooth module, NFC module.
[0117] In an exemplary embodiment, the measuring device can be implemented by one or more application specific integrated circuits (Application Specific Integrated Circuit, referred to as ASIC), digital signal processors (Digital Signal Processor, referred to as DSP), digital signal processing devices (Digital Signal Processing Device, referred to as DSPD), programmable logic devices (Programmable Logic Device, referred to as PLD), field programmable gate arrays (Field Programmable Gate Array, referred to as FPGA), controllers, microcontrollers, microprocessors or other electronic components to execute the above-mentioned voltage-type sensor path fault detection method.
[0118] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, and when the program instructions are executed by a processor, the steps of the above-mentioned voltage-type sensor path fault detection method are implemented. For example, the computer-readable storage medium can be the above-mentioned memory including program instructions, and the above-mentioned program instructions can be executed by a processor of a measuring device to complete the above-mentioned voltage-type sensor path fault detection method.
[0119] Corresponding to the above method embodiment, the embodiment of the present disclosure further provides a readable storage medium. The readable storage medium described below and the voltage-type sensor path fault detection method described above can refer to each other.
[0120] In a fourth aspect, a readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the voltage-type sensor path fault detection method of the above method embodiment are implemented.
[0121] The readable storage medium may specifically be a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, or other readable storage medium that can store program codes.
[0122] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A voltage type sensor path fault detection method, characterized in that: The method comprises the following steps: According to the output range of the voltage sensor and the cable characteristics, select and determine the power supply level of the operational amplifier in the detection circuit to determine the maximum amplitude of the pulse signal that may be output; Output pulse signals according to default settings, conduct path loss evaluation, and ensure effective matching between superimposed signals and sensor equivalent circuits by adjusting pulse width and pulse amplitude; the pulse signals are generated through CPU digital output pins; The pulse signal is DC filtered and then the gain is adjusted by the operational amplifier. The adjustment factor is achieved by the CPU controlling the digital resistor. The pulse signal with a width of 10us and an amplitude of 50% of the full scale of the voltage type sensor is the default superposition signal. The amplitude of the superposition signal is reduced after the channel attenuation. The pulse width is adjusted within 1 to 10us, and the amplitude of the pulse signal is adjusted within 50 to 80% of the full scale to ensure that the peak-to-peak value of the pulse signal returned to the acquisition end is ≥ 70% of the amplitude at the generating end; The pulse signal is decoupled through a capacitor after gain adjustment and sent to a signal transformer. The pulse signal is magnetically isolated by the signal transformer and then superimposed on the output path of the voltage sensor. The voltage sensor converts and outputs a voltage value corresponding to the collected amount. The digital resistor includes 256 gears. The CPU generates a rising edge to adjust the gear through the digital output. Each gear represents a different resistance value and corresponds to a different amplification factor. The background noise energy in the path is evaluated. When the voltage sensor has a valid output, the energy evaluation of the valid signal is completed, and the energy of the background noise energy signal is subtracted; the A / D obtains the output of the voltage sensor, and after subtracting the A / D and background noise energy signals, a preliminary path energy judgment is performed. After the preliminary judgment is passed, the standard pulse signal and the detection pulse signal are used to perform autocorrelation calculation to ensure the consistency of the pulse characteristics, and repeated sampling and judgment are performed multiple times to eliminate external occasional pulse interference, specifically: the A / D conversion obtains the sampling data, the background noise energy in the path is calculated by the integral algorithm, and the white noise energy in the path is subtracted. The white noise energy in the path is calculated by the root mean square calculation to obtain the white noise energy of a certain period of time or a certain frequency band. If the remaining energy value is less than the threshold value, it is determined to be a path fault. If it is greater than the threshold value, the next step of autocorrelation calculation is performed; the autocorrelation calculation includes the following steps: The pulse signal after the path loss evaluation is used as the standard pulse signal, and the collected path pulse signal is used as the detection pulse signal; The peak position of the channel pulse signal is determined by amplitude threshold triggering or extreme value search method, and the peaks of the two signals are aligned to perform autocorrelation calculation to obtain the energy peak; If the voltage type sensor works in the effective output state for a long time, the amplitude of the pulse signal is adjusted according to the amplitude of the output conversion voltage signal to ensure that the voltage after summation is ≤ full scale; the autocorrelation calculation also includes: Define the standard pulse signal as s(t), and the detection pulse signal after delay in the channel transmission as s(t-τ), then the autocorrelation function is as follows: Where t0 and t1 represent the time domain start and end time of the pulse signal. After the continuous signal is digitally sampled, the pulse width is reflected as n sampling points according to the sampling rate. The standard pulse signal is defined as s(k), k = 1, 2, ... n. The pulse signal after the delay in the channel transmission is captured by the threshold and the peak value is searched. The detection pulse signal is defined as g(k), k = 1, 2, ... n. The autocorrelation calculation in the actual software implementation is as follows:
2. A voltage type sensor path fault detection system, characterized in that: The voltage-type sensor path fault detection method as claimed in claim 1 comprises: A selection module is used to select and determine the power supply level of the operational amplifier in the detection circuit according to the output range of the voltage type sensor and the cable characteristics, so as to determine the maximum amplitude that the pulse signal may output; An evaluation module, which is used to output a pulse signal according to the default setting, perform a path loss evaluation, and ensure effective matching between the superimposed signal and the sensor equivalent circuit by adjusting the pulse width and pulse amplitude; A calculation module is used to evaluate the background noise energy in the path, and when the voltage sensor is a valid output, complete the energy evaluation of the valid signal and subtract the energy of the background noise energy signal; The processing module is used to perform a preliminary channel energy judgment after subtracting the A / D and background noise energy signals. After the preliminary judgment is passed, the standard pulse signal and the detection pulse signal are used for autocorrelation calculation to ensure the consistency of the pulse characteristics, and multiple repeated sampling and judgment are performed to eliminate external occasional pulse interference.
3. A voltage type sensor path fault detection device, characterized in that: include: Memory for storing computer programs; A processor is used to implement the steps of the voltage type sensor path fault detection method as claimed in claim 1 when executing the computer program.
4. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the voltage-type sensor path failure detection method as claimed in claim 1 is implemented.
