Calibration method, device, equipment and medium for oxygen sensor
By combining an air source, a pure oxygen source, and an altitude sensor, electrical signals and oxygen concentration values are acquired, the target response function is calculated and verified, and the problem of low calibration accuracy of oxygen sensors at increasing altitude is solved, achieving higher calibration accuracy.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- AMBULANC (SHENZHEN) TECH CO LTD
- Filing Date
- 2023-06-12
- Publication Date
- 2026-05-12
AI Technical Summary
Existing oxygen sensors have low calibration accuracy as altitude increases, and the impact of altitude on calibration is not considered.
By ventilating the oxygen sensor's airway with both air and pure oxygen sources, the average electrical signal and oxygen concentration are obtained. Combined with the altitude sensor to obtain the altitude, the target response function is calculated and verified to ensure that the calibration results meet the preset conditions.
This improved the calibration accuracy of oxygen sensors at different altitudes and eliminated the influence of altitude on calibration.
Smart Images

Figure CN116609490B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of oxygen sensor technology, and in particular to a calibration method, apparatus, device, and medium for an oxygen sensor. Background Technology
[0002] Medical ventilation systems such as ventilators or anesthesia machines typically place oxygen sensors in the inspiratory branch to monitor the concentration of oxygen inhaled by the patient. Common oxygen sensors can be categorized into digital and analog output signals. Digital output sensors directly output the detected oxygen concentration; while analog output sensors output an electrical signal that changes linearly with oxygen concentration. Since the electrical signal alone cannot provide a direct and accurate reading of the oxygen concentration value, it needs to be substituted into a formula to calculate the corresponding oxygen concentration value. The formula for linear change is Y = K * X + C (where Y is the oxygen concentration value, X is the electrical signal value, K is the proportionality coefficient, and C is a constant). Therefore, only two precise points need to be determined to obtain the values of the proportionality coefficient and the constant. Oxygen sensors may drift during use, so the proportionality coefficient and constant need to be recalibrated before use. However, current oxygen sensor calibration methods on the market do not consider the impact of altitude on sensor calibration, resulting in lower calibration accuracy at higher altitudes. Summary of the Invention
[0003] This invention provides a calibration method, apparatus, device, and medium for an oxygen sensor to address the problem of the impact of altitude on oxygen sensor calibration in the prior art.
[0004] A calibration method for an oxygen sensor, comprising:
[0005] The air supply continuously ventilates the airway where the oxygen sensor to be calibrated is located for a preset time period, and obtains the average value of the first electrical signal in the first time period and the average value of the second electrical signal in the second time period.
[0006] The airway containing the oxygen sensor to be calibrated is continuously ventilated for a preset time period using a pure oxygen source, and the average value of the third electrical signal during the first time period and the average value of the fourth electrical signal during the second time period are obtained.
[0007] The altitude is obtained by an altitude sensor, and the first oxygen concentration value corresponding to the air source and the second oxygen concentration value corresponding to the pure oxygen source are determined based on the altitude.
[0008] A preset response function is obtained, and a target response function is calculated using a first set of calibration data (average value of the first electrical signal and the first oxygen concentration value) and a second set of calibration data (average value of the third electrical signal and the second oxygen concentration value).
[0009] The target response function is verified by the average value of the second electrical signal and the average value of the fourth electrical signal, respectively, to obtain a first verification result corresponding to the average value of the second electrical signal and a second verification result corresponding to the average value of the fourth electrical signal.
[0010] When the first verification result and the second verification result respectively meet the preset verification conditions, the oxygen sensor is determined to be successfully calibrated.
[0011] A calibration device for an oxygen sensor, comprising:
[0012] An air ventilation module is used to continuously ventilate the airway where the oxygen sensor to be calibrated is located within a preset time period using an air source, and to obtain the average electrical signal value within the first time period and record it as the first average electrical signal value; and to obtain the average electrical signal value within the second time period and record it as the second average electrical signal value.
[0013] The oxygen ventilation module is used to continuously ventilate the airway where the oxygen sensor to be calibrated is located within a preset time period using a pure oxygen source, and to obtain the average electrical signal value within the first time period and record it as the third average electrical signal value; and to obtain the average electrical signal value within the second time period and record it as the fourth average electrical signal value.
[0014] An altitude concentration module is used to acquire altitude through an altitude sensor, and based on the altitude, determine a first oxygen concentration value corresponding to the air source and a second oxygen concentration value corresponding to the pure oxygen source.
[0015] The objective function module is used to obtain a preset response function. It calculates the preset response function using a first set of calibration data (average value of the first electrical signal and the first oxygen concentration value) and a second set of calibration data (average value of the third electrical signal and the second oxygen concentration value) to obtain the objective response function.
[0016] The verification result module is used to verify the target response function using the average value of the second electrical signal and the average value of the fourth electrical signal, respectively, to obtain a first verification result corresponding to the average value of the second electrical signal and a second verification result corresponding to the average value of the fourth electrical signal.
[0017] The calibration confirmation module is used to determine that the oxygen sensor has been successfully calibrated when the first verification result and the second verification result respectively meet the preset verification conditions.
[0018] A controller for performing the above-described calibration method for the oxygen sensor.
[0019] A ventilation device includes an altitude sensor, an oxygen supply channel connected to an oxygen source, and a controller; the oxygen supply channel is equipped with an oxygen sensor; the controller is communicatively connected to the altitude sensor and the oxygen sensor.
[0020] A computer-readable storage medium storing a computer program that, when executed by a controller, implements the above-described calibration method for an oxygen sensor.
[0021] The oxygen sensor calibration method, apparatus, device, and medium provided by this invention continuously ventilate the airway containing the oxygen sensor to be calibrated for a preset time period using an air source and a pure oxygen source. This allows for the calculation of the average values of a first and third electrical signal within a first time period, and the calculation of the average values of a second and fourth electrical signal within a second time period. By incorporating an altitude sensor, the altitude and the first and second oxygen concentration values are determined, thereby eliminating the impact of altitude increase on oxygen sensor calibration and improving the accuracy of oxygen sensor calibration. A preset response function is calculated using the average values of the first and second electrical signals and the first and third and second oxygen concentration values, respectively, to calculate the target response function. The target response function is then verified using the average values of the second and fourth electrical signals, respectively, to calculate the first and second verification results. When the first and second verification results respectively meet the preset verification conditions, the successful calibration of the oxygen sensor is confirmed, thus improving the accuracy of oxygen sensor calibration as altitude changes. Attached Figure Description
[0022] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention 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 flowchart of a calibration method for an oxygen sensor according to an embodiment of the present invention;
[0024] Figure 2 This is a flowchart of step S60 of the oxygen sensor calibration method in one embodiment of the present invention;
[0025] Figure 3 This is a flowchart of step S601 of the oxygen sensor calibration method in one embodiment of the present invention;
[0026] Figure 4This is a schematic block diagram of a calibration device for an oxygen sensor according to an embodiment of the present invention;
[0027] Figure 5 This is a schematic diagram of a computer device according to an embodiment of the present invention. Detailed Implementation
[0028] 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, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0029] This invention provides a calibration method for an oxygen sensor. In one embodiment, as follows: Figure 1 As shown, its technical solution mainly includes the following steps S10-S50:
[0030] S10, continuously ventilate the airway where the oxygen sensor to be calibrated is located within a preset time period using an air source, and obtain the average value of the first electrical signal within the first time period and the average value of the second electrical signal within the second time period.
[0031] Understandably, the preset time period is the ventilation time set according to the actual situation, and in this embodiment, it is set to 120 seconds. The first time period is the period after other gases are eliminated, and is specifically set according to the actual situation, and in this embodiment, it is set to 25 seconds. The second time period is the period from the end of the first time period to the end of ventilation, and is specifically set according to the actual situation, and in this embodiment, it is set to 5 seconds. The first average electrical signal is the average of all electrical signals acquired by the airway in the first time period. The second average electrical signal is the average of all electrical signals acquired by the airway in the second time period. The airway is the inspiratory branch of a ventilation device such as an anesthetic or a ventilator.
[0032] Specifically, an air source is connected to the airway interface corresponding to the airway where the oxygen sensor to be calibrated is located. The air source is activated to release air and continuously ventilate the airway where the oxygen sensor to be calibrated is located for a preset time period. The ventilation time is 120 seconds, and the airflow rate is at least 10 liters per minute. To eliminate the influence of other gases in the airway, the electrical signals corresponding to the air are not statistically analyzed during the first 90 seconds of ventilation to ensure complete removal of gas from the airway where the oxygen sensor to be calibrated is located. Then, the remaining 30 seconds are divided into two time periods, a first time period and a second time period, for statistical analysis of the electrical signals corresponding to the air. First, the values of all electrical signals in the first time period are recorded, i.e., the values of all electrical signals for the air pair from 90 seconds to 115 seconds are statistically analyzed, and the average value of all recorded electrical signals is calculated to obtain the first average electrical signal value for the first time period. Then, the values of all electrical signals in the second time period are recorded, i.e., the values of all electrical signals for the air pair from 115 seconds to 120 seconds are statistically analyzed, and the average value of all recorded electrical signals is calculated to obtain the second average electrical signal value for the second time period.
[0033] S20, continuously ventilate the airway where the oxygen sensor to be calibrated is located within a preset time period using a pure oxygen source, and obtain the average value of the third electrical signal within the first time period and the average value of the fourth electrical signal within the second time period.
[0034] Understandably, the average value of the third electrical signal is the average value of all electrical signals acquired by pure oxygen in the airway during the first time period. The average value of the fourth electrical signal is the average value of all electrical signals acquired by pure oxygen in the airway during the second time period.
[0035] Specifically, a pure oxygen source is connected to the airway interface corresponding to the airway where the oxygen sensor to be calibrated is located. The pure oxygen source is activated to release oxygen and continuously ventilate the airway where the oxygen sensor to be calibrated is located for a preset time period. The ventilation time is 120 seconds, and the airflow rate is at least 10 liters per minute. To eliminate the influence of other gases in the airway, the electrical signal corresponding to pure oxygen is not statistically analyzed during the first 90 seconds of ventilation to ensure complete removal of gases from the airway where the oxygen sensor to be calibrated is located. Then, the remaining 30 seconds are divided into two time periods, a first time period and a second time period, for statistical analysis of the electrical signal corresponding to pure oxygen. First, the values of all electrical signals within the first time period are recorded, that is, the values of all electrical signals corresponding to pure oxygen within the time period from 90 seconds to 115 seconds are statistically analyzed. The average value of all recorded electrical signals corresponding to pure oxygen is then calculated to obtain the average value of the third electrical signal within the first time period. Then, the values of all electrical signals in the second time period are recorded, that is, the values of all electrical signals corresponding to pure oxygen in the time period from 115 seconds to 120 seconds are statistically analyzed, and the average value of all electrical signals corresponding to pure oxygen is calculated to obtain the average value of the fourth electrical signal in the second time period.
[0036] S30: Obtain altitude through an altitude sensor, and determine the first oxygen concentration value corresponding to the air source and the second oxygen concentration value corresponding to the pure oxygen source based on the altitude.
[0037] Understandably, an altitude sensor is a sensor used to measure altitude. Altitude is the current height relative to sea level. The first oxygen concentration value is the oxygen concentration in the air at that altitude. The second oxygen concentration value is the oxygen concentration in pure oxygen at that altitude.
[0038] Specifically, the current altitude is obtained through an altitude sensor connected to the controller. Then, using this altitude, the first oxygen concentration value corresponding to the air source and the second oxygen concentration value corresponding to the pure oxygen source are retrieved from the oxygen concentration characteristic curve. Understandably, the oxygen concentration characteristic curve can also be a table of oxygen concentration values changing with altitude, or a formula for the corresponding oxygen concentration change. For example, the oxygen concentration O2 in the air at an altitude of H is: O2 = 21% - (H / 100 * 0.16%), and the oxygen content decreases by 0.16% for every 100m increase in altitude; the oxygen concentration at sea level is 21%, with an altitude of 0. The second oxygen concentration value is 100%, which is obtained directly.
[0039] S40, Obtain a preset response function, and calculate the preset response function using a first set of calibration data of the average value of the first electrical signal and the first oxygen concentration value, and a second set of calibration data of the average value of the third electrical signal and the second oxygen concentration value, to obtain a target response function.
[0040] Understandably, the preset response function is a formula for the change in electrical signal and oxygen concentration.
[0041] Specifically, the average value of the first electrical signal and the first oxygen concentration value are determined as the first set of calibration data, and the average value of the third electrical signal and the second oxygen concentration value are determined as the second set of calibration data. Then, the proportionality coefficient and constant in the preset response function are calculated using the two sets of calibration data, thereby calculating the proportionality coefficient and constant. Substituting the calculated proportionality coefficient and constant into the preset response function, the formula for the change of oxygen concentration with respect to the electrical signal, i.e., the target response function, can be obtained.
[0042] S50, the target response function is verified by the average value of the second electrical signal and the average value of the fourth electrical signal respectively, to obtain a first verification result corresponding to the average value of the second electrical signal and a second verification result corresponding to the average value of the fourth electrical signal.
[0043] Understandably, the first verification result is the oxygen concentration value corresponding to the average value of the second electrical signal. The second verification result is the oxygen concentration value corresponding to the average value of the fourth electrical signal.
[0044] Specifically, after obtaining the target response function, the average value of the second electrical signal within the second time period is input into the target response function to obtain the first target oxygen concentration value corresponding to the average value of the second electrical signal, and this first target oxygen concentration value is determined as the first verification result corresponding to the average value of the second electrical signal. Similarly, the average value of the fourth electrical signal within the second time period is input into the target response function to obtain the second target oxygen concentration value corresponding to the average value of the fourth electrical signal, and this second target oxygen concentration value is determined as the second verification result corresponding to the average value of the fourth electrical signal.
[0045] S60, when the first verification result and the second verification result respectively meet the preset verification conditions, it is determined that the oxygen sensor has been successfully calibrated.
[0046] Specifically, if the first verification result meets the first preset verification condition and the second verification result meets the second preset verification condition, meaning both verification results simultaneously meet their respective preset verification conditions, the oxygen sensor calibration is determined to be successful. If either or both verification results fail to meet their respective preset verification conditions, meaning the first verification result fails to meet the first preset verification condition and the second verification result meets the second preset verification condition, the oxygen sensor calibration is determined to be unsuccessful. Alternatively, if both the first and second verification results fail to meet the first and second preset verification conditions, the oxygen sensor calibration is determined to be unsuccessful.
[0047] This invention provides a method for continuously ventilating the airway containing the oxygen sensor to be calibrated within a preset time period using both air and pure oxygen sources. This allows for the calculation of the average values of a first and third electrical signal within a first time period, and the calculation of the average values of a second and fourth electrical signal within a second time period. By incorporating an altitude sensor, the invention determines the altitude and the first and second oxygen concentration values, thereby eliminating the impact of altitude increase on oxygen sensor calibration and improving calibration accuracy. A preset response function is calculated using the average values of the first and second electrical signals and the first and third and second oxygen concentration values, respectively, to calculate the target response function. The target response function is then verified using the average values of the second and fourth electrical signals, resulting in the calculation of the first and second verification results. When both the first and second verification results meet preset verification conditions, successful oxygen sensor calibration is confirmed, further improving the accuracy of oxygen sensor calibration as altitude changes.
[0048] In one embodiment, such as Figure 2 As shown, step S30, namely determining the first oxygen concentration value corresponding to the air source based on the altitude, includes:
[0049] S301, Obtain the oxygen concentration characteristic curve corresponding to the altitude.
[0050] S302, find the first oxygen concentration value corresponding to the altitude in the oxygen concentration characteristic curve.
[0051] Understandably, the oxygen concentration characteristic curve refers to the curve showing how oxygen concentration changes with altitude.
[0052] Specifically, after obtaining the altitude, the corresponding oxygen concentration characteristic curve is retrieved, and the first oxygen concentration value corresponding to the altitude is found in the oxygen concentration characteristic curve based on the altitude measured by the altitude sensor. Alternatively, the corresponding oxygen concentration formula can be retrieved, and the altitude can be substituted into the formula to calculate the first oxygen concentration value. Another option is to retrieve the corresponding oxygen concentration table, which includes the oxygen concentration corresponding to each altitude; the first oxygen concentration value is then found in the oxygen concentration table based on the altitude. Thus, in this embodiment, by obtaining the oxygen concentration characteristic curve, the query and determination of the first oxygen concentration value corresponding to each altitude are achieved.
[0053] In one embodiment, before step S60, that is, before the first verification result and the second verification result respectively satisfy the preset verification conditions, the process includes:
[0054] S701, obtain the preset error value.
[0055] S702, the first numerical range obtained based on the first oxygen concentration value and the preset error value is determined as the first preset verification condition, and the second numerical range obtained based on the second oxygen concentration value and the preset error value is determined as the second preset verification condition.
[0056] The preset verification conditions include a first preset verification condition and a second preset verification condition.
[0057] Understandably, the preset error value is the oxygen concentration error caused by the equipment's precision, and this value is determined based on the actual situation.
[0058] Specifically, after obtaining the verification result, a preset error value is acquired. Using the first oxygen concentration value and the preset error value, the difference between the first oxygen concentration value and the preset error value is set as the lower limit node, and the sum of the first oxygen concentration value and the preset error value is set as the upper limit node. Thus, a first numerical range is obtained, and this first numerical range is determined as the first preset verification condition. Similarly, using the second oxygen concentration value and the preset error value, the difference between the second oxygen concentration value and the preset error value is set as the lower limit node, and the sum of the second oxygen concentration value and the preset error value is set as the upper limit node. Thus, a second numerical range is obtained, and this second numerical range is determined as the second preset verification condition. For example, in a specific embodiment, the preset error value is set to E%, the first verification result is set to Res0, and the second verification result is set to Res1. Then, the second numerical range is 100% - E% ≤ Res1 ≤ 100% + E%; and the first numerical range is (21% - H / 100 * 0.16%) - E% ≤ Res0 ≤ (21% - H / 100 * 0.16%) + E%. Thus, in this embodiment, by obtaining the preset error value, the first oxygen concentration value, and the second oxygen concentration value, the determination of the first numerical range and the second numerical range is realized, thereby realizing the determination of the first preset verification condition and the second preset verification condition.
[0059] In one embodiment, such as Figure 3 As shown, in step S60, when the first verification result and the second verification result respectively meet the preset verification conditions, it is determined that the oxygen sensor has been successfully calibrated, including:
[0060] S601, determine whether the first verification result belongs to the first numerical range, and at the same time determine whether the second verification result belongs to the second numerical range.
[0061] S602, when the first verification result is within the first numerical range and the second verification result is within the second numerical range, the oxygen sensor is determined to be successfully calibrated.
[0062] Understandably, the first numerical range is greater than or equal to the difference between the first oxygen concentration value and the preset error value, and less than or equal to the sum of the first oxygen concentration value and the preset error value. The second numerical range is greater than or equal to the difference between the second oxygen concentration value and the preset error value, and less than or equal to the sum of the second oxygen concentration value and the preset error value.
[0063] Specifically, after obtaining the verification results, it is determined that the first verification result is greater than or equal to the first verification value and less than or equal to the second verification value. That is, it is determined whether the first verification result is greater than or equal to the difference between the first oxygen concentration value and the preset error value, and less than or equal to the sum of the first oxygen concentration value and the preset error value, thereby determining whether the first verification result belongs to the first numerical range. Similarly, it is determined that the second verification result is greater than or equal to the third verification value and less than or equal to the fourth verification value. That is, it is determined whether the second verification result is greater than or equal to the difference between the second oxygen concentration value and the preset error value, and less than or equal to the sum of the second oxygen concentration value and the preset error value, thereby determining whether the second verification result belongs to the second numerical range. When the first verification result belongs to the first numerical range and the second verification result belongs to the second numerical range, that is, both verification results simultaneously satisfy the corresponding numerical ranges, the oxygen sensor calibration is determined to be successful. Thus, in this embodiment, by determining whether the first verification result belongs to the first numerical range and simultaneously determining whether the second verification result belongs to the second numerical range, the calibration of the oxygen sensor is determined to be successful when both verification results simultaneously satisfy the corresponding numerical ranges.
[0064] In one embodiment, after step S601, i.e., after determining whether the first verification result belongs to the first numerical range and simultaneously determining whether the second verification result belongs to the second numerical range, the process includes:
[0065] S603, when the first verification result is not within the first numerical range and / or the second verification result is not within the second numerical range, the calibration of the oxygen sensor is determined to have failed.
[0066] Specifically, when the first verification result does not belong to the first numerical range and / or the second verification result does not belong to the second numerical range, that is, when the first verification result meets the first numerical range but the second verification result does not meet the second numerical range, the oxygen sensor calibration is determined to have failed. Alternatively, the oxygen sensor calibration can be determined when the first verification result does not meet the first numerical range but the second verification result meets the second numerical range. It can also be determined when both the first and second verification results do not meet the first and second numerical ranges. Thus, in this embodiment, by determining whether the first verification result belongs to the first numerical range and simultaneously determining whether the second verification result belongs to the second numerical range, the calibration of the oxygen sensor is determined to have failed when either or both verification results do not meet their respective numerical ranges.
[0067] In one embodiment, step S601, namely determining whether the first verification result belongs to the first numerical range, further includes:
[0068] S6011, determine whether the first verification result is greater than or equal to the first verification value, and determine whether the first verification result is less than or equal to the second verification value; the first verification value is the difference between the first oxygen concentration value and the preset error value, and the second verification value is the sum of the first oxygen concentration value and the preset error value.
[0069] S6012, when the first verification result is greater than or equal to the first verification value and the first verification result is less than or equal to the second verification value, the first verification result is confirmed to belong to the first numerical range.
[0070] S6013, when the first verification result is less than the first verification value, or the first verification result is greater than the second verification value, it is confirmed that the first verification result does not belong to the first numerical range.
[0071] Specifically, after obtaining the verification result, it is determined whether the first verification result is greater than or equal to the first verification value and less than or equal to the second verification value. That is, it is determined whether the first verification result is greater than or equal to the difference between the first oxygen concentration value and the preset error value, and less than or equal to the sum of the first oxygen concentration value and the preset error value, thereby determining whether the first verification result belongs to the first numerical range. When the first verification result is greater than or equal to the first verification value and less than or equal to the second verification value, that is, when the first verification result is greater than or equal to the difference between the first oxygen concentration value and the preset error value and less than or equal to the sum of the first oxygen concentration value and the preset error value, it is confirmed that the first verification result belongs to the first numerical range. When the first verification result is less than the first verification value, or greater than the second verification value, that is, when the first verification result is less than the difference between the first oxygen concentration value and the preset error value, or greater than the sum of the first oxygen concentration value and the preset error value, it is confirmed that the first verification result does not belong to the first numerical range. Understandably, the first verification value is the minimum value in the first numerical range, and the second verification value is the maximum value in the first numerical range.
[0072] Thus, in this embodiment, by specifically comparing the size of the first verification result and the first numerical range, the determination of whether the first verification result meets the first numerical range is realized.
[0073] The step of determining whether the second verification result belongs to the second numerical range includes:
[0074] S6014, determine whether the second verification result is greater than or equal to the third verification value, and determine whether the second verification result is less than or equal to the fourth verification value; the third verification value is the difference between the second oxygen concentration value and the preset error value, and the fourth verification value is the sum of the second oxygen concentration value and the preset error value;
[0075] S6015, when the second verification result is greater than or equal to the third verification value and the second verification result is less than or equal to the fourth verification value, it is confirmed that the second verification result belongs to the second value range;
[0076] S6016, when the second verification result is less than the third verification value, or the second verification result is greater than the fourth verification value, it is confirmed that the second verification result does not belong to the second numerical range.
[0077] Specifically, the system determines whether the second verification result is greater than or equal to the third verification value and less than or equal to the fourth verification value. That is, it determines whether the second verification result is greater than or equal to the difference between the second oxygen concentration value and the preset error value, and less than or equal to the sum of the second oxygen concentration value and the preset error value. Then, when the second verification result is greater than or equal to the third verification value and less than or equal to the fourth verification value, that is, when the first verification result is greater than or equal to the difference between the second oxygen concentration value and the preset error value and less than or equal to the sum of the second oxygen concentration value and the preset error value, the first verification result is confirmed to belong to the first numerical range. When the second verification result is less than the third verification value, or greater than the fourth verification value, that is, when the first verification result is less than the difference between the second oxygen concentration value and the preset error value, or greater than the sum of the second oxygen concentration value and the preset error value, the second verification result is confirmed to not belong to the second numerical range. Understandably, the third verification value is the minimum value in the second numerical range, and the fourth verification value is the maximum value in the second numerical range.
[0078] Thus, in this embodiment, by specifically comparing the size of the second verification result and the second numerical range, the determination of whether the second verification result meets the second numerical range is realized.
[0079] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0080] In one embodiment, a calibration device for an oxygen sensor is provided, which corresponds one-to-one with the calibration method for the oxygen sensor in the above embodiments. For example... Figure 4 As shown, the calibration device for this oxygen sensor includes an air ventilation module 10, an oxygen ventilation module 20, an altitude concentration module 30, an objective function module 40, a calibration result module 50, and a calibration confirmation module 60. Detailed descriptions of each functional module are as follows:
[0081] The air ventilation module 10 is used to continuously ventilate the airway where the oxygen sensor to be calibrated is located within a preset time period through an air source, and to obtain the average value of the electrical signal within the first time period and record it as the first average value of the electrical signal; and to obtain the average value of the electrical signal within the second time period and record it as the second average value of the electrical signal.
[0082] The oxygen ventilation module 20 is used to continuously ventilate the airway where the oxygen sensor to be calibrated is located within a preset time period using a pure oxygen source, and to obtain the average electrical signal value within the first time period and record it as the third average electrical signal value; and to obtain the average electrical signal value within the second time period and record it as the fourth average electrical signal value.
[0083] The altitude concentration module 30 is used to acquire altitude through an altitude sensor, and determine a first oxygen concentration value corresponding to the air source and a second oxygen concentration value corresponding to the pure oxygen source based on the altitude.
[0084] The objective function module 40 is used to obtain a preset response function by calculating the preset response function using a first set of calibration data of the average value of the first electrical signal and the first oxygen concentration value, and a second set of calibration data of the average value of the third electrical signal and the second oxygen concentration value, to obtain the objective response function.
[0085] The verification result module 50 is used to verify the target response function by the average value of the second electrical signal and the average value of the fourth electrical signal, respectively, to obtain a first verification result corresponding to the average value of the second electrical signal and a second verification result corresponding to the average value of the fourth electrical signal.
[0086] The calibration confirmation module 60 is used to determine that the oxygen sensor has been successfully calibrated when the first verification result and the second verification result respectively meet the preset verification conditions.
[0087] In one embodiment, the device further includes:
[0088] The display module is used to display the data packets in the buffer of the display device via serial port transmission; wherein the display device refreshes the displayed data packets using a full-screen refresh method.
[0089] In one embodiment, the calibration verification module 60 includes preset verification conditions, which include a first preset verification condition and a second preset verification condition; including:
[0090] Error unit, used to acquire preset error value;
[0091] The verification condition unit is used to determine a first numerical range obtained based on the first oxygen concentration value and the preset error value as a first preset verification condition, and to determine a second numerical range obtained based on the second oxygen concentration value and the preset error value as a second preset verification condition.
[0092] In one embodiment, the calibration verification module 60 further includes:
[0093] The range determination unit is used to determine whether the first verification result belongs to the first numerical range, and at the same time determine whether the second verification result belongs to the second numerical range;
[0094] The calibration success unit is used to determine that the oxygen sensor has been successfully calibrated when the first verification result is within the first numerical range and the second verification result is within the second numerical range.
[0095] In one embodiment, the calibration success unit is configured to include:
[0096] The calibration failure unit is used to determine that the oxygen sensor has failed calibration when the first verification result is not within the first numerical range and / or the second verification result is not within the second numerical range.
[0097] In one embodiment, the range determination unit includes:
[0098] The first judgment subunit is used to determine whether the first verification result is greater than or equal to the first verification value, and to determine whether the first verification result is less than or equal to the second verification value; the first verification value is the difference between the first oxygen concentration value and the preset error value, and the second verification value is the sum of the first oxygen concentration value and the preset error value;
[0099] The first subunit is used to confirm that the first verification result belongs to the first numerical range when the first verification result is greater than or equal to the first verification value and the first verification result is less than or equal to the second verification value.
[0100] The first non-subunit is used to confirm that the first verification result does not belong to the first numerical range when the first verification result is less than the first verification value or the first verification result is greater than the second verification value.
[0101] The range determination unit further includes:
[0102] The second judgment subunit is used to determine whether the second verification result is greater than or equal to the third verification value, and to determine whether the second verification result is less than or equal to the fourth verification value; the third verification value is the difference between the second oxygen concentration value and the preset error value, and the fourth verification value is the sum of the second oxygen concentration value and the preset error value;
[0103] The second subunit is used to confirm that the second verification result belongs to the second numerical range when the second verification result is greater than or equal to the third verification value and the second verification result is less than or equal to the fourth verification value.
[0104] The second non-subunit is used to confirm that the second verification result does not belong to the second numerical range when the second verification result is less than the third verification value or greater than the fourth verification value.
[0105] In one embodiment, the altitude concentration module 30 includes:
[0106] The characteristic curve unit is used to obtain the oxygen concentration characteristic curve corresponding to the altitude.
[0107] The oxygen concentration value unit is used to find the first oxygen concentration value corresponding to the altitude in the oxygen concentration characteristic curve.
[0108] Specific limitations regarding the calibration device for the oxygen sensor can be found in the limitations of the calibration method for the oxygen sensor described above, and will not be repeated here. Each module in the aforementioned oxygen sensor calibration device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in hardware or independently of the controller in the computer device, or stored in software in the memory of the computer device, so that the controller can call and execute the corresponding operations of each module.
[0109] In one embodiment, a ventilator device is provided, the internal structure of which can be shown in the following diagram. Figure 5 As shown, the ventilation device includes a controller, memory, network interface, and database connected via a system bus. The controller provides computing and control capabilities. The memory includes a readable storage medium and internal memory. The readable storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the readable storage medium. The network interface is used for communication with external terminals via a network connection. When executed by the controller, the computer program implements a calibration method for an oxygen sensor.
[0110] In one embodiment, a controller is provided for performing a calibration method for an oxygen sensor as described above.
[0111] In one embodiment, a ventilation device is provided, the ventilation device including an altitude sensor, an oxygen supply channel connected to an oxygen source, and a controller as described above; an oxygen sensor is provided in the oxygen supply channel; the controller is communicatively connected to the altitude sensor and the oxygen sensor.
[0112] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a controller, implements the calibration method for the oxygen sensor described above.
[0113] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided by this invention can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM), etc.
[0114] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is used as an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0115] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included within the protection scope of the present invention.
Claims
1. A calibration method for an oxygen sensor, characterized in that, include: The air supply continuously ventilates the airway where the oxygen sensor to be calibrated is located for a preset time period, and obtains the average value of the first electrical signal in the first time period and the average value of the second electrical signal in the second time period. The airway containing the oxygen sensor to be calibrated is continuously ventilated for a preset time period using a pure oxygen source, and the average value of the third electrical signal during the first time period and the average value of the fourth electrical signal during the second time period are obtained. The altitude is obtained by an altitude sensor, and the first oxygen concentration value corresponding to the air source and the second oxygen concentration value corresponding to the pure oxygen source are determined based on the altitude. A preset response function is obtained, and a target response function is calculated using a first set of calibration data (average value of the first electrical signal and the first oxygen concentration value) and a second set of calibration data (average value of the third electrical signal and the second oxygen concentration value). The target response function is verified by the average value of the second electrical signal and the average value of the fourth electrical signal, respectively, to obtain a first verification result corresponding to the average value of the second electrical signal and a second verification result corresponding to the average value of the fourth electrical signal. When the first verification result and the second verification result respectively meet the preset verification conditions, the oxygen sensor is determined to be successfully calibrated; wherein, the preset verification conditions include a first preset verification condition and a second preset verification condition, the first preset verification condition refers to a first numerical range obtained based on the first oxygen concentration value and a preset error value, and the second preset verification condition refers to a second numerical range obtained based on the second oxygen concentration value and a preset error value.
2. The calibration method for the oxygen sensor as described in claim 1, characterized in that, The step of determining that the oxygen sensor calibration is successful when the first verification result and the second verification result respectively meet the preset verification conditions includes: Determine whether the first verification result belongs to the first numerical range, and simultaneously determine whether the second verification result belongs to the second numerical range; When the first verification result falls within the first numerical range and the second verification result falls within the second numerical range, the oxygen sensor is determined to have been successfully calibrated.
3. The calibration method for the oxygen sensor as described in claim 2, characterized in that, After determining whether the first verification result belongs to the first numerical range and simultaneously determining whether the second verification result belongs to the second numerical range, the method further includes: If the first verification result is not within the first numerical range, and / or the second verification result is not within the second numerical range, the calibration of the oxygen sensor is determined to have failed.
4. The calibration method for the oxygen sensor as described in claim 2, characterized in that, The step of determining whether the first verification result belongs to the first numerical range includes: Determine whether the first verification result is greater than or equal to the first verification value, and determine whether the first verification result is less than or equal to the second verification value; the first verification value is the difference between the first oxygen concentration value and the preset error value, and the second verification value is the sum of the first oxygen concentration value and the preset error value; When the first verification result is greater than or equal to the first verification value and the first verification result is less than or equal to the second verification value, the first verification result is confirmed to belong to the first numerical range. If the first verification result is less than the first verification value, or if the first verification result is greater than the second verification value, it is confirmed that the first verification result does not belong to the first numerical range. The step of determining whether the second verification result belongs to the second numerical range includes: Determine whether the second verification result is greater than or equal to the third verification value, and determine whether the second verification result is less than or equal to the fourth verification value; the third verification value is the difference between the second oxygen concentration value and the preset error value, and the fourth verification value is the sum of the second oxygen concentration value and the preset error value; When the second verification result is greater than or equal to the third verification value and the second verification result is less than or equal to the fourth verification value, it is confirmed that the second verification result belongs to the second value range. If the second verification result is less than the third verification value, or if the second verification result is greater than the fourth verification value, it is confirmed that the second verification result does not belong to the second numerical range.
5. The calibration method for the oxygen sensor as described in claim 1, characterized in that, Determining the first oxygen concentration value corresponding to the air source based on the altitude includes: Obtain the oxygen concentration characteristic curve corresponding to the altitude; The first oxygen concentration value corresponding to the altitude was found in the oxygen concentration characteristic curve.
6. A calibration device for an oxygen sensor, characterized in that, include: An air ventilation module is used to continuously ventilate the airway where the oxygen sensor to be calibrated is located within a preset time period using an air source, and to obtain the average electrical signal value within the first time period and record it as the first average electrical signal value; and to obtain the average electrical signal value within the second time period and record it as the second average electrical signal value. The oxygen ventilation module is used to continuously ventilate the airway where the oxygen sensor to be calibrated is located within a preset time period using a pure oxygen source, and to obtain the average electrical signal value within the first time period and record it as the third average electrical signal value; and to obtain the average electrical signal value within the second time period and record it as the fourth average electrical signal value. An altitude concentration module is used to acquire altitude through an altitude sensor, and based on the altitude, determine a first oxygen concentration value corresponding to the air source and a second oxygen concentration value corresponding to the pure oxygen source. The objective function module is used to obtain a preset response function. It calculates the preset response function using a first set of calibration data (average value of the first electrical signal and the first oxygen concentration value) and a second set of calibration data (average value of the third electrical signal and the second oxygen concentration value) to obtain the objective response function. The verification result module is used to verify the target response function using the average value of the second electrical signal and the average value of the fourth electrical signal, respectively, to obtain a first verification result corresponding to the average value of the second electrical signal and a second verification result corresponding to the average value of the fourth electrical signal. The calibration confirmation module is used to determine that the oxygen sensor has been successfully calibrated when the first verification result and the second verification result respectively meet the preset verification conditions; wherein, the preset verification conditions include a first preset verification condition and a second preset verification condition, the first preset verification condition refers to a first numerical range obtained based on the first oxygen concentration value and a preset error value, and the second preset verification condition refers to a second numerical range obtained based on the second oxygen concentration value and a preset error value.
7. A controller, characterized in that, The controller is used to perform the calibration method for the oxygen sensor as described in any one of claims 1 to 5.
8. A ventilation device, characterized in that, The ventilation device includes an altitude sensor, an oxygen supply channel connected to an oxygen source, and a controller as described in claim 7; the oxygen supply channel is equipped with an oxygen sensor; the controller is communicatively connected to the altitude sensor and the oxygen sensor.
9. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the controller, it implements the calibration method for the oxygen sensor as described in any one of claims 1 to 6.