Carrier integration algorithm for online detection of sensor
Real-time online detection of sensors is achieved through a carrier integration algorithm, which solves the problem of requiring additional structural devices in existing technologies, simplifies equipment design, and improves detection efficiency and accuracy.
Patent Information
- Application Number
- CN202511688295.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-18
- Publication Date
- 2026-02-10
AI Technical Summary
Existing technologies require additional structural devices to detect the online status of sensors, resulting in complex device designs and making miniaturization difficult.
A carrier integration algorithm for online sensor detection is adopted. Through signal conditioning, integration, data processing and carrier level judgment modules, real-time online detection of sensors is achieved, including the detection of chemical type sensors such as positive current, negative current, positive bias voltage and negative bias voltage.
Real-time online detection of sensors can be achieved without additional structural devices, simplifying equipment design and improving detection efficiency and accuracy.
Smart Images

Figure CN121502123A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of gas detection technology, and in particular to a carrier integration algorithm for online sensor detection. Background Technology
[0002] With societal progress, gas detection technology is being applied more widely. Some industries have raised requirements regarding the online and operational status of sensors, demanding clear indications even when sensors are offline. To address this, gas detection engineers have proposed various detection methods, such as the commonly used switch detection method. This method involves designing a switch structure at the sensor's installation location. When the sensor is installed correctly, the switch structure is engaged, providing a low-level detection signal. When the sensor is not installed correctly, the switch structure is disengaged, providing a high-level signal. This signal is received by the microcontroller's AD port, and the high / low level indicates whether the sensor is offline. The advantages of this method are its simplicity, clear detection signal, and definitive online / offline status. The disadvantages are the need for an additional structure, which is difficult to incorporate into compact portable devices at the sensor's installation location. Summary of the Invention
[0003] To address the shortcomings of the aforementioned background technology, this invention proposes a carrier integration algorithm for online sensor detection. This algorithm enables real-time online detection of chemical sensors such as positive current sensors, negative current sensors, positive bias sensors, and negative bias sensors, as well as three-electrode or four-electrode sensors, without the need for a switching structure.
[0004] To achieve the above objectives, the technical solution of the present invention is as follows:
[0005] A carrier integration algorithm for online sensor detection includes an online sensor detection system, the online sensor detection system comprising...
[0006] The signal conditioning module converts the sensor signal into a corresponding voltage signal and performs proportional scaling to form the P proportional signal Vt in PI control;
[0007] The integral module calculates the integral of Vt to form the integral signal Va in PI control;
[0008] The data processing module discriminates the integral signal Va, compares it with the preset voltage Vz, and forms a reference signal Vaz, a high-level determination signal Vah, and a low-level determination signal Val.
[0009] The carrier level judgment module calculates the absolute value of the difference between Vaz and Vah, Vdh, and the absolute value of the difference between Vaz and Val, Vdl. Based on whether the absolute values of the differences between Vdh and Vdl meet the error requirements, it determines whether the sensor is online. At the same time, based on the sequence values of Vaz, Vah, and Val, it provides the waveform signal required by the carrier generation module.
[0010] The carrier generation module sends out the corresponding waveform signal Vwf according to the received level command. The waveform signal Vwf passes through the sensor and is fed back to the input of the signal conditioning module to start the next round of online detection.
[0011] As an improvement to the above technical solution, starting at a certain moment tz, the signal conditioning module outputs a signal Vt, and the integration module integrates Vt, with the integration time being... ,but Integrating, we get Va: ;
[0012] The data processing module performs discrimination on the integral signal Va:
[0013] when In the first case, Vaz = Vz, and within time Tc, Tc = te - tz + , The set value is k, which is a fixed coefficient value. At the same time, the carrier level judgment module gives the Vaz signal, the carrier generation module outputs the signal Vwf, and the corresponding waveform Vwf is generated according to the signal Vaz. Vwf is returned to the input of the signal conditioning module through the sensor, and the sensor is determined to be online.
[0014] when hour, As a preset value, dimensionless, then Vaz = Va / k; the data processing module initializes Vah and Val, Vah = Vz + Val = Vz; the carrier level judgment module identifies the signal as Vah and sends the Vah signal to the carrier generation module through the sensor, which then feeds it back to the input of the signal conditioning module.
[0015] As an improvement to the above technical solution, integration is performed during the period from time ts to tm, and the integration time is... ,but Integrating, we get Va: ;
[0016] Data processing module, when If so, repeat the judgment in the first case; otherwise, Vah = Va / k, Val = Vz- The carrier level judgment module identifies the signal as Val and sends the Val signal to the carrier generation module, which generates the corresponding carrier Vwf. The Vwf signal is then fed back to the input of the signal conditioning module via a sensor.
[0017] As an improvement to the above technical solution, integration is performed during the period from time tm to te, and the integration time is... ,but Integrating, we get Va: ;
[0018] Data processing module, when If the condition is met, then repeat the judgment in the first case; otherwise, Val = Va / k.
[0019] Carrier level determination module, formula At the time of establishment, the sensor is online, Vaz = Vz, and the time... Then, proceed to the next judgment cycle; formula If the condition is not met, the sensor goes offline, Vaz = Vz, and the next judgment cycle begins.
[0020] Compared with the prior art, the advantages and positive effects of this invention are:
[0021] The carrier integration algorithm for online sensor detection of the present invention does not require a switching structure device and can perform real-time online detection of chemical sensors such as positive current sensors, negative current sensors, positive bias voltage sensors, and negative bias voltage sensors, as well as three-electrode or four-electrode sensors. Attached Figure Description
[0022] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0023] Figure 1 This is a schematic diagram of the closed-loop control process of the present invention;
[0024] Figure 2 This is a schematic diagram of the carrier integration algorithm of the present invention. Detailed Implementation
[0025] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, any modifications, equivalent substitutions, improvements, etc., made by those skilled in the art to all other embodiments obtained without creative effort should be included within the protection scope of the present invention.
[0026] Example 1: The carrier integration algorithm for online sensor detection of the present invention includes an online sensor detection system, such as... Figure 1 As shown, the online sensor detection system includes:
[0027] The signal conditioning module converts the sensor signal into a corresponding voltage signal and performs proportional scaling to form the P proportional signal Vt in PI control;
[0028] The integral module calculates the integral of Vt to form the integral signal Va in PI control;
[0029] The data processing module discriminates the integral signal Va, compares it with the preset voltage Vz, and forms a reference signal Vaz, a high-level determination signal Vah, and a low-level determination signal Val.
[0030] The carrier level judgment module calculates the absolute value of the difference between Vaz and Vah, Vdh, and the absolute value of the difference between Vaz and Val, Vdl. Based on whether the absolute values of the differences between Vdh and Vdl meet the error requirements, it determines whether the sensor is online. At the same time, based on the sequence values of Vaz, Vah, and Val, it provides the waveform signal required by the carrier generation module.
[0031] The carrier generation module sends out the corresponding waveform signal Vwf according to the received level command. The waveform signal Vwf passes through the sensor and is fed back to the input of the signal conditioning module to start the next round of online detection.
[0032] The signal conditioning module, integration module, data processing module, carrier level judgment module, and carrier generation module are connected in sequence. The signal conditioning module is connected to the output terminal W of the sensor device and receives the weak voltage signal output by the sensor device. The carrier generation module is connected to the input terminal C of the sensor device and transmits the modulated carrier signal to the sensor device. The carrier signal is superimposed on the weak voltage signal output by the sensor device. After being loaded by the sensor device, the carrier signal is transmitted to the signal conditioning module. At the same time, the sensor device feeds back the superimposed carrier signal to the carrier generation module through the R terminal for waveform tracking of the carrier signal output by the carrier generation module itself.
[0033] Example 2: This application provides a specific implementation method. In the following implementation method, the system power supply of the peripheral circuit is 5.0V, and the unified reference ground voltage is 0V.
[0034] Step 1: Initialize values: yh = 3.75V, yz = 2.5V, yl = 1.25V, for use in... Figure 2 The y-axis voltage indication at a certain moment , , , , , , , , ts, tm, and tm are intermediate times on x, used for analyzing and calculating time values.
[0035] Step 2: Va integral sampling, the algorithm is as shown in equation (5), where Vti is the value of Vt at the corresponding time, and n is... The number of counts within a time period, i=1,2,3; here n=10, k=n.
[0036] (5)
[0037] Step 3: The tz time begins. Within a given time period, collect Va; if Proceed to step 7; otherwise, Vaz = Vz, Vah = Vz + The carrier generation module outputs the signal Vwf corresponding to Vah.
[0038] Step 4: Starting at time ts, Within a given time period, Va was collected. Proceed to step 7; otherwise, Vah = Va, Val = Vz- The carrier generation module outputs the signal Vwf corresponding to Val.
[0039] Step 5: The tm time begins. Within a given time period, Va was collected. Proceed to step 7; otherwise, Val = Va.
[0040] Step 6: Calculate whether equation (4) is true. If equation (4) is not true, the sensor is offline. Give the sensor offline information, Vaz=Vz, skip step 7 and directly enter the next judgment cycle; if equation (4) is true, the sensor is online, proceed to step 7.
[0041] Step 7: The sensor is determined to be online within time Tc=3s. During this period, the carrier generation module outputs the corresponding Vwf waveform according to the output Vz signal and feeds it back to the output of the signal conditioning module. After time Tc, the online detection of the next cycle is performed.
[0042] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A carrier integration algorithm for online sensor detection, characterized in that: Including an online sensor detection system, the online sensor detection system includes The signal conditioning module converts the sensor signal into a corresponding voltage signal and performs proportional scaling to form the P proportional signal Vt in PI control; The integral module calculates the integral of Vt to form the integral signal Va in PI control; The data processing module discriminates the integral signal Va, compares it with the preset voltage Vz, and forms a reference signal Vaz, a high-level determination signal Vah, and a low-level determination signal Val. The carrier level judgment module calculates the absolute value of the difference between Vaz and Vah, Vdh, and the absolute value of the difference between Vaz and Val, Vdl. Based on whether the absolute values of the differences between Vdh and Vdl meet the error requirements, it determines whether the sensor is online. At the same time, based on the sequence values of Vaz, Vah, and Val, it provides the waveform signal required by the carrier generation module. The carrier generation module sends out the corresponding waveform signal Vwf according to the received level command. The waveform signal Vwf passes through the sensor and is fed back to the input of the signal conditioning module to start the next round of online detection.
2. The carrier integration algorithm for online sensor detection as described in claim 1, characterized in that: At a certain moment tz, the signal conditioning module outputs a signal Vt, and the integrator module integrates Vt. The integration time is... ,but Integrating, we get Va: ; The data processing module performs discrimination on the integral signal Va: when In the first case, Vaz = Vz, and within time Tc, Tc = te - tz + , The set value is k, which is a fixed coefficient value. At the same time, the carrier level judgment module gives the Vaz signal, the carrier generation module outputs the signal Vwf, and the corresponding waveform Vwf is generated according to the signal Vaz. Vwf is returned to the input of the signal conditioning module through the sensor, and the sensor is determined to be online. when hour, As a preset value, dimensionless, then Vaz = Va / k; the data processing module initializes Vah and Val, Vah = Vz + Val = Vz; the carrier level judgment module identifies the signal as Vah and sends the Vah signal to the carrier generation module through the sensor, which then feeds it back to the input of the signal conditioning module.
3. The carrier integration algorithm for online sensor detection as described in claim 1, characterized in that: Integrate over the period from time ts to tm, the integration time is... ,but Integrating, we get Va: ; Data processing module, when If so, repeat the judgment in the first case; otherwise, Vah = Va / k, Val = Vz- ; The carrier level judgment module identifies the signal as Val and sends the Val signal to the carrier generation module, which generates the corresponding carrier Vwf. The Vwf signal is then fed back to the input of the signal conditioning module via a sensor.
4. The carrier integration algorithm for online sensor detection as described in claim 1, characterized in that: Integrate over the period from time tm to te, integration time ,but Integrating, we get Va: ; Data processing module, when If the condition is met, then repeat the judgment in the first case; otherwise, Val = Va / k. Carrier level determination module, formula At the time of establishment, the sensor is online, Vaz = Vz, and the time... Then, proceed to the next judgment cycle; formula If the condition is not met, the sensor goes offline, Vaz = Vz, and the next judgment cycle begins.