Method and device for testing sensitivity of air flow sensor

By establishing a target air pressure in the closed state of the air circuit control component during airflow sensor testing, and then powering on the conduction channel after the conditions are met, and using the duration threshold to determine the start-up, the test error caused by air pressure fluctuations is solved, and the test accuracy is improved.

CN123147701APending Publication Date: 2026-11-24SIWEIRUI TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611415895.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-11
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

In the sensitivity test of airflow sensors, instantaneous air pressure fluctuations in the airflow channel can cause false test signals, affecting the accuracy of the test results.

Method used

By establishing a target test air pressure value with the air circuit control device closed, and powering on the airflow sensor under test and opening the airflow channel after the preset air pressure condition is met, the duration of the test result signal is obtained, and the duration threshold is used as the start-up judgment condition to eliminate the influence of instantaneous air pressure fluctuations.

Benefits of technology

This improved the accuracy of airflow sensor sensitivity test results, reduced the probability of misjudging false start signals, and ensured that the test was conducted in a stable air pressure environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123147701A_ABST
    Figure CN123147701A_ABST
Patent Text Reader

Abstract

This application relates to a sensitivity testing method and apparatus for airflow sensors, and specifically to the field of electronic atomization product testing technology. The method includes: with the airflow control component closed, controlling an air pressure source to establish a test air pressure corresponding to the target test air pressure value for the current test; when the test air pressure meets preset air pressure conditions, controlling the airflow sensor under test to power on, and controlling the airflow control component to open the airflow channel; acquiring the test result signal output by the airflow sensor under test, and determining the duration for which the test result signal continuously meets preset valid signal conditions; when the duration reaches a duration threshold, determining that the airflow sensor under test has been activated in this test; and determining the sensitivity of the airflow sensor under test based on the target test air pressure value corresponding to when the airflow sensor under test is determined to be activated. This method can improve the accuracy of the test results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electronic atomization product testing technology, and in particular to a method and apparatus for testing the sensitivity of airflow sensors. Background Technology

[0002] Airflow sensors (e.g., microphones) in e-cigarette products are crucial components, used to detect the user's inhalation. If the airflow sensor's sensitivity is too high, it can easily cause the e-cigarette to self-start, creating a safety risk; if the sensitivity is too low, it will negatively impact the user experience. Therefore, accurate testing of airflow sensor sensitivity is particularly important for the development of e-cigarette products.

[0003] Currently, when testing the sensitivity of airflow sensors, the airflow channel corresponding to the airflow sensor under test will generate a large air pressure fluctuation at the moment the airflow is turned on. This can easily cause the airflow sensor under test to output a false test signal that has been activated, thus generating test errors and ultimately affecting the accuracy of the test results.

[0004] Therefore, improving the accuracy of test results when testing the sensitivity of airflow sensors is a problem that needs to be solved. Summary of the Invention

[0005] Therefore, it is necessary to provide a method, apparatus, computer equipment, computer-readable storage medium, and computer program product for testing the sensitivity of an airflow sensor, in order to improve the accuracy of the test results, addressing the aforementioned technical problems.

[0006] In a first aspect, this application provides a sensitivity testing method for an airflow sensor, applied to a sensitivity testing device for an airflow sensor, the sensitivity testing device including an air pressure source and an air path control component, the method comprising:

[0007] Obtain the target test pressure value corresponding to this round of testing;

[0008] With the air circuit control component closed, the air pressure source is controlled to establish a test air pressure corresponding to the target test air pressure value;

[0009] When the test air pressure meets the preset air pressure conditions, the airflow sensor under test is powered on, and the air circuit control component is controlled to open the airflow channel between the air pressure source and the airflow sensor under test.

[0010] Acquire the test result signal output by the airflow sensor under test, and determine the duration for which the test result signal continuously meets the preset valid signal conditions;

[0011] If the duration reaches a duration threshold, it is determined that the airflow sensor under test is activated in this round of testing; wherein, the duration threshold is greater than the duration of air pressure fluctuations generated after the airflow channel is opened;

[0012] Based on the target test air pressure value corresponding to the start-up of the airflow sensor under test, the sensitivity of the airflow sensor under test is determined; wherein, the sensitivity characterizes the start-up air pressure characterization value of the airflow sensor under test.

[0013] In one embodiment, the preset air pressure conditions include:

[0014] A first permissible error range is determined based on the target test air pressure value;

[0015] Collect the actual air pressure value in the airflow channel between the air pressure source and the air path control component;

[0016] If a predetermined number of consecutive actual air pressure values ​​are all within the first allowable error range, the test air pressure is determined to meet the predetermined air pressure condition.

[0017] In one embodiment, after the steps of controlling the airflow sensor under test to power on and controlling the air path control component to open the airflow channel between the pressure source and the airflow sensor under test when the test air pressure meets the preset air pressure condition, the method further includes:

[0018] Collect the real-time air pressure value in the airflow channel near the end of the airflow sensor to be measured;

[0019] The duration of air pressure fluctuations after the airflow channel is opened is determined based on the real-time air pressure value.

[0020] The duration threshold is determined based on the duration of the air pressure fluctuation.

[0021] In one embodiment, the step of determining the duration of air pressure fluctuations after the airflow channel is opened based on the real-time air pressure value includes:

[0022] Determine the steady-state error range based on the target test air pressure value;

[0023] The moment when the airflow control component activates the airflow channel is determined as the fluctuation start time.

[0024] The real-time air pressure value is continuously collected from the moment the fluctuation begins.

[0025] When multiple consecutive real-time air pressure values ​​are within the steady-state error range, the time corresponding to the first real-time air pressure value among the multiple real-time air pressure values ​​is determined as the fluctuation termination time.

[0026] The duration of the air pressure fluctuation is determined based on the start time and end time of the fluctuation.

[0027] In one embodiment, the step of determining the duration threshold based on the duration of the air pressure fluctuation includes:

[0028] Gain a safety margin;

[0029] The sum of the air pressure fluctuation duration and the safety time margin is determined as the duration threshold.

[0030] In one embodiment, the step of obtaining the target test pressure value corresponding to this round of testing includes:

[0031] Obtain the initial air pressure value, the final air pressure value, and the preset step size;

[0032] The initial air pressure value is determined as the target test air pressure value corresponding to the first round of testing;

[0033] The absolute value of the pressure difference corresponding to the target test pressure value is increased by the preset step size and the number of rounds of testing to obtain the target test pressure value corresponding to the current round of testing;

[0034] The method further includes:

[0035] If the absolute value of the pressure difference between the target test pressure value and the end pressure value is less than or equal to the absolute value of the pressure difference between the end pressure value and the end pressure value, the next round of testing will be performed.

[0036] The test ends when the absolute value of the pressure difference between the target test pressure value and the end pressure value is greater than the absolute value of the pressure difference between the end and end pressure values.

[0037] In one embodiment, the step of obtaining the target test pressure value corresponding to this round of testing includes:

[0038] Obtain multiple preset air pressure values;

[0039] The multiple preset air pressure values ​​are used as the target test air pressure values ​​for each round of testing.

[0040] In one embodiment, the step of determining the sensitivity of the airflow sensor under test based on the target test air pressure value corresponding to the start-up time includes:

[0041] The airflow sensor under test is initially identified as the target test air pressure value corresponding to the start-up, and this is determined as the start-up air pressure characterization value; and / or,

[0042] The target test air pressure value corresponding to the last time the airflow sensor under test was not activated before it was first determined to be activated is obtained, and the activation air pressure threshold range of the airflow sensor under test is determined based on the target test air pressure value corresponding to the last time it was not activated and the target test air pressure value corresponding to the first time it was determined to be activated.

[0043] Secondly, this application also provides a sensitivity testing device for an airflow sensor, the device comprising: an air pressure source, an air path control component, and a hardware control unit, wherein the hardware control unit is connected to the air pressure source and the air path control component respectively;

[0044] The hardware control unit is used to acquire the target test air pressure value corresponding to this round of testing and transmit the target test air pressure value to the air pressure source;

[0045] When the air circuit control component is closed, the air pressure source establishes a test air pressure corresponding to the target test air pressure value and feeds the test air pressure back to the hardware control unit;

[0046] The hardware control unit is further configured to: power on the airflow sensor under test when the test air pressure meets the preset air pressure conditions, and control the air path control component to open the airflow channel between the air pressure source and the airflow sensor under test; after the airflow channel is opened, acquire the test result signal output by the airflow sensor under test, and determine the duration for which the test result signal continuously meets the preset valid signal conditions; when the duration reaches a duration threshold, determine that the airflow sensor under test is activated in this round of testing; wherein, the duration threshold is greater than the duration of air pressure fluctuations generated after the airflow channel is opened; and determine the sensitivity of the airflow sensor under test based on the target test air pressure value corresponding to when the airflow sensor under test is determined to be activated; wherein, the sensitivity characterizes the activation air pressure characterization value of the airflow sensor under test.

[0047] Thirdly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the method steps in any of the embodiments of the first aspect described above.

[0048] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method steps in any of the embodiments of the first aspect described above.

[0049] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, implements the method steps in any of the embodiments of the first aspect described above.

[0050] In the above implementation process, by acquiring the target test air pressure value corresponding to this round of testing, the air pressure source establishes a test air pressure corresponding to the target test air pressure value while the air circuit control device is closed. The airflow sensor under test is only powered on and the airflow channel is opened after the test air pressure meets the preset air pressure condition. This ensures that the airflow sensor under test only enters the testing state when the air pressure has been established to the level corresponding to the target test air pressure value, reducing the application of an uncertain air pressure environment to the airflow sensor under test during the air pressure establishment process. Furthermore, the duration for which the test result signal continuously meets the preset valid signal condition, and whether it reaches a duration threshold, is used as the start-up judgment condition. The duration threshold is greater than the value generated after the airflow channel is opened. The duration of air pressure fluctuations is measured to exclude air pressure fluctuations caused by sudden changes in airflow volume and air pressure redistribution at the moment the airflow channel is opened from the start-up judgment window. This reduces the probability of false triggering and misjudgment caused by the airflow sensor being momentarily impacted by the air pressure fluctuation and outputting a false start-up signal. Only when the duration reaches the duration threshold is the airflow sensor determined to be started, meaning that the airflow sensor continues to output a valid signal after the air pressure returns to stability. The corresponding target test air pressure value at this time is the true start-up air pressure characterization value of the airflow sensor, thus determining the test result of the airflow sensor's sensitivity and improving the accuracy of the sensitivity test results. Attached Figure Description

[0051] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0052] Figure 1 This is a schematic diagram of the structure of a sensitivity testing device for an airflow sensor provided in an embodiment of this application;

[0053] Figure 2 This is a schematic flowchart of a sensitivity testing method for an airflow sensor provided in an embodiment of this application;

[0054] Figure 3 This is a flowchart illustrating a method for determining the duration of air pressure fluctuations provided in an embodiment of this application;

[0055] Figure 4 This is a schematic diagram of the overall process of a sensitivity testing method for an airflow sensor provided in an embodiment of this application;

[0056] Figure 5 This is a schematic diagram of the internal structure of a computer device provided in an embodiment of this application. Detailed Implementation

[0057] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0058] It should be noted that the terms "first," "second," etc., used in this application can be used to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish the first element from the second element. The terms "comprising" and "having," and any variations thereof, used in this application, are intended to cover non-exclusive inclusion. The term "multiple" used in this application refers to two or more. The term "and / or" used in this application refers to one of the embodiments, or any combination of multiple embodiments.

[0059] The sensitivity testing method for airflow sensors provided in this application embodiment can be applied to, for example... Figure 1 In the sensitivity testing device for the airflow sensor shown, Figure 1 This is a schematic diagram of the structure of a sensitivity testing device for an airflow sensor provided in an embodiment of this application. Figure 1 As shown, the sensitivity testing device for an airflow sensor includes a hardware control unit, a pressure source, and an airflow control component. The hardware control unit is connected to both the pressure source and the airflow control component. Furthermore, the device may also include an airflow channel positioned between the pressure source and the airflow sensor under test. The airflow control component is located on the airflow channel and controls the opening and closing of the airflow channel between the pressure source and the airflow sensor according to the control signal sent by the hardware control unit. The pressure source establishes the test pressure, providing a pressure difference for the airflow channel and the airflow sensor. Before each test, the airflow control component is in a closed state, meaning the airflow channel between the pressure source and the airflow sensor is not connected. Taking a normally closed solenoid valve as an example, the airflow control component remains closed when no drive signal is received, and switches to a connected state when a drive signal (such as a drive voltage) is received from the hardware control unit. By controlling the airflow control component, the airflow channel can be cut off during the pressure build-up phase of the pressure source, preventing the test pressure established by the pressure source from acting on the airflow sensor under test, and the airflow channel can be reopened after the pressure is established. Furthermore, the airflow sensor under test is powered off before each round of testing. When performing sensitivity testing on the airflow sensor under test, the hardware control unit executes the airflow sensor sensitivity testing method in the embodiments of this application.

[0060] Figure 2This is a flowchart illustrating a sensitivity testing method for an airflow sensor provided in an embodiment of this application. The sensitivity testing method for an airflow sensor provided in this embodiment can be applied to… Figure 1 The hardware control unit in the sensitivity testing device for the airflow sensor, such as Figure 2 As shown, the method may include steps 201 to 206, wherein:

[0061] Step 201: Obtain the target test pressure value corresponding to this round of testing.

[0062] For example, the hardware control unit may be a circuit board including a microcontroller unit (MCU), which can communicate with both a pressure source and the airflow sensor under test. The pressure source and the airflow sensor under test can be connected via an airflow channel. The hardware control unit may include a communication interface, a power supply terminal, a signal acquisition terminal, and a drive terminal. Specifically, the communication interface may be a TYPE-C interface for connecting to a computer host to enable communication between the hardware control unit and the host computer software; or it may be an RS232 interface for connecting to a pressure source to enable communication between the hardware control unit and the pressure source. The power supply terminal can be used to power the airflow sensor sample and the airflow control components. The signal acquisition terminal can be used to acquire the test result signal output by the airflow sensor. The drive terminal can be used to output a drive signal to the airflow control components.

[0063] As an example, the airflow sensor that needs to be tested for sensitivity is taken as the airflow sensor under test. The airflow sensor under test can be the microphone used to sense the inhalation action in an electronic atomizing product, or other airflow sensors, without limitation. The microphone has an air inlet surface and an air chamber. When the air pressure applied to its air chamber (usually a negative pressure difference) reaches the activation air pressure, the sensing structure such as the diaphragm inside the microphone is activated, causing the microphone to output an effective electrical signal to characterize its activation.

[0064] A pressure source is used to establish the test pressure, providing a pressure difference, such as a negative or positive pressure difference, for the airflow channel and the sensor under test. The pressure source has a pressure outlet, which is connected to the airflow control unit via an air path. The pressure source may also have a communication interface, such as an RS232 interface, which enables bidirectional serial communication between the pressure source and the hardware control unit.

[0065] When performing sensitivity testing on the airflow sensor under test, the user can send a test command to the hardware control unit. This command carries either the target test air pressure value for the current test round or parameters used to determine the target test air pressure value. The hardware control unit can then obtain the target test air pressure value for the current test round based on the user's test command and transmit it to the air pressure source.

[0066] Step 202: With the air circuit control device closed, control the air pressure source to establish the test air pressure corresponding to the target test air pressure value.

[0067] The hardware control unit keeps the air circuit control components in a closed state, at which point the airflow channel between the pressure source and the airflow sensor is cut off. After the hardware control unit transmits the target test pressure value to the pressure source, the pressure source establishes a test pressure corresponding to the target test pressure value. That is, the hardware control unit controls the pressure source to start pressurizing, so that the air pressure in the airflow channel on the outlet side of the pressure source gradually approaches the target test pressure value.

[0068] Taking a target test air pressure value of -150Pa as an example, the air pressure source establishes a negative pressure difference of -150Pa until the pressure difference between the air pressure source and the air path control device reaches -150Pa. By building pressure with the air path control device closed, the probability of the air pressure acting on the airflow sensor under test before stabilizing during the pressure building process can be reduced, thus reducing the probability of interference with the test.

[0069] Step 203: When the test air pressure meets the preset air pressure conditions, control the power-on of the airflow sensor under test, and control the air circuit control component to open the airflow channel between the air pressure source and the airflow sensor under test.

[0070] During or after the pressure build-up process of the pressure source, the pressure source will feed back the test pressure (e.g., the measured pressure at the outlet of the pressure source) to the hardware control unit.

[0071] Furthermore, the hardware control unit determines whether the test air pressure meets the preset air pressure conditions based on the test air pressure fed back by the air pressure source, that is, whether the actual air pressure value in the airflow channel between the air pressure source and the air path control component has reached the level corresponding to the target test air pressure value.

[0072] If the test air pressure meets the preset air pressure condition, the hardware control unit powers on the airflow sensor under test, putting it in a test-ready state, and outputs a drive signal to the air path control component, causing the air path control component to conduct, thereby connecting the airflow channel between the air pressure source and the airflow sensor under test. The test air pressure corresponding to the target test air pressure value is applied to the air chamber of the airflow sensor under test through the airflow channel. If the test air pressure does not meet the preset air pressure condition, it continues to wait for the air pressure source to build up pressure until the test air pressure meets the preset air pressure condition or the pressure build-up timeout occurs.

[0073] Understandably, the order in which the airflow sensor under test is powered on and the airflow control device is turned on can be set as needed. For example, the airflow sensor under test can be powered on first, and then the airflow control device can be turned on, or both can be done simultaneously.

[0074] Step 204: Obtain the test result signal output by the airflow sensor under test, and determine the duration for which the test result signal continuously meets the preset valid signal conditions.

[0075] After the airflow channel is opened, the hardware control unit can continuously collect the test result signal output by the airflow sensor under test at a preset sampling frequency, and determine whether the test result signal at each sampling time meets the preset valid signal conditions.

[0076] Specifically, the preset valid signal condition means that when the test result signal is a voltage signal, if the voltage signal is greater than or equal to a preset voltage threshold, then the test result signal is determined to meet the preset valid signal condition. As an example, the preset voltage threshold can be 1V, 0.5V, or other voltage values; there are no restrictions here. Alternatively, when the test result signal is a digital level signal, if the digital level signal is in a preset valid level state, then the preset valid signal condition is met. As an example, a high level "1" can be preset as the valid level state; that is, when the digital level signal is at a high level, the preset valid signal condition is met, and if the digital level signal is at a low level "0", it is an invalid level state. It should be noted that, according to circuit design conventions, a low level can also be a valid level state, and a high level can be an invalid level state; there are no restrictions here.

[0077] The hardware control unit times the duration for which the test result signal continuously meets the preset valid signal condition. For example, the timing starts from the moment the test result signal first meets the preset valid signal condition. If the test result signal consistently meets the preset valid signal condition during this period, the duration is continuously incremented. If the test result signal fails to meet the preset valid signal condition during this period, the duration is reset to zero and the timing restarts when the preset valid signal condition is met again. This allows the determination of the duration for which the test result signal continuously meets the preset valid signal condition.

[0078] Step 205: If the duration reaches the duration threshold, determine that the airflow sensor under test has been activated in this round of testing.

[0079] Among them, the duration threshold is greater than the duration of air pressure fluctuations generated after the airflow channel is opened.

[0080] For example, at the instant the airflow channel is opened by the airflow control component, the air pressure in the airflow channel will experience a brief fluctuation process due to the sudden change in airflow volume and the compensation adjustment of the air pressure source. For example, it can be manifested as the air pressure first deviating from the target test air pressure value, then overshooting, and finally returning to stability. The time period corresponding to this process is the air pressure fluctuation duration. During this air pressure fluctuation period, the airflow sensor may output a momentary valid signal (false trigger signal) due to the instantaneous air pressure impact. If the airflow sensor is directly determined to be activated based on the momentary valid signal, a misjudgment will occur. Therefore, in this embodiment, the activation determination condition is "the duration reaches the duration threshold", and the duration threshold is greater than the air pressure fluctuation duration. That is, only when the test result signal continuously meets the preset valid signal condition and lasts for a sufficiently long time, which is greater than the air pressure fluctuation duration, is it determined that the airflow sensor has indeed been activated.

[0081] As an example, the duration of air pressure fluctuation is about 0.6 seconds, and the duration threshold can be set to 1.5 seconds. If the instantaneous effective signal generated when the airflow channel is opened only lasts for about 0.2 seconds and then disappears, it will not be judged as activated because its duration is less than the duration threshold. However, when the airflow sensor under test is actually activated after the air pressure stabilizes, its output effective signal can be maintained for a long time, and the duration can reach the duration threshold of 1.5 seconds, thus being accurately judged as activated.

[0082] It should be noted that the embodiment of this application takes a duration threshold of 1.5 seconds as an example. In actual application scenarios, the duration threshold can also be 1.8 seconds, 2 seconds, or other durations. The size of the duration threshold can be adaptively adjusted according to the duration of air pressure fluctuations, and no limitation is made here.

[0083] Step 206: Based on the target test air pressure value corresponding to the start-up of the airflow sensor under test, determine the sensitivity of the airflow sensor under test.

[0084] Sensitivity is characterized by the activation pressure of the airflow sensor under test. The activation pressure is the air pressure value that enables the airflow sensor to activate (i.e., output a valid electrical signal). Taking the negative pressure difference test as an example, the smaller the absolute value of the pressure difference in the activation pressure, the smaller the suction negative pressure is required to activate the airflow sensor, meaning the higher the sensitivity.

[0085] For example, if the airflow sensor under test is determined to be activated in this round of testing, it means that the airflow sensor can be activated under the target test pressure value of the current round. The hardware control unit determines the target test pressure value corresponding to this round of testing as the activation pressure characterization value of the airflow sensor, and uses this activation pressure characterization value as the sensitivity output of the airflow sensor under test. For example, if the airflow sensor under test is determined to be activated in a test round with a target test pressure value of -165 Pa, then the activation pressure characterization value of the airflow sensor under test can be determined to be -165 Pa, that is, the activation pressure characterization value corresponding to its sensitivity is -165 Pa.

[0086] If the airflow sensor under test is not identified as activated in this round of testing, the air circuit control device is shut off, the airflow sensor is powered off, and the target test air pressure value can be adjusted according to the preset air pressure adjustment method to obtain the target test air pressure value for the next round of testing. Then, the next round of testing begins, until the airflow sensor under test is activated or the preset test termination condition is met. When the airflow sensor under test is not identified as activated in this round of testing, the air pressure source is controlled to establish the next target test air pressure while the air circuit control device is closed. This effectively reduces the long-term exposure of the airflow sensor under test to a continuously changing pressure environment, and reduces the impact of reference pressure refresh or environmental adaptation, ensuring that different pressure points use relatively independent test conditions.

[0087] In the above implementation process, by acquiring the target test air pressure value corresponding to this round of testing, the air pressure source establishes a test air pressure corresponding to the target test air pressure value while the air circuit control device is closed. The airflow sensor under test is only powered on and the airflow channel is opened after the test air pressure meets the preset air pressure condition. This ensures that the airflow sensor under test only enters the testing state when the air pressure has been established to the level corresponding to the target test air pressure value, reducing the application of an uncertain air pressure environment to the airflow sensor under test during the air pressure establishment process. Furthermore, the duration for which the test result signal continuously meets the preset valid signal condition, and whether it reaches a duration threshold, is used as the start-up judgment condition. The duration threshold is greater than the value generated after the airflow channel is opened. The duration of air pressure fluctuations is measured to exclude air pressure fluctuations caused by sudden changes in airflow volume and air pressure redistribution at the moment the airflow channel is opened from the start-up judgment window. This reduces the probability of false triggering and misjudgment caused by the airflow sensor being momentarily impacted by the air pressure fluctuation and outputting a false start-up signal. Only when the duration reaches the duration threshold is the airflow sensor determined to be started, meaning that the airflow sensor continues to output a valid signal after the air pressure returns to stability. The corresponding target test air pressure value at this time is the true start-up air pressure characterization value of the airflow sensor, thus determining the test result of the airflow sensor's sensitivity and improving the accuracy of the sensitivity test results.

[0088] In one embodiment, the preset air pressure condition includes: determining a first allowable error range based on the target test air pressure value; collecting the actual air pressure value in the airflow channel between the air pressure source and the air path control component; and determining that the test air pressure meets the preset air pressure condition when a consecutive preset number of actual air pressure values ​​are all within the first allowable error range.

[0089] For example, the hardware control unit can expand a preset first allowable deviation to both sides of the target test air pressure value to obtain a first allowable error range. The first allowable deviation can be set according to the control accuracy of the air pressure source. For example, the first allowable deviation can be set to 1.5 to 2 times the steady-state control accuracy of the air pressure source, or it can be directly set to a fixed value, such as ±3Pa. When the target test air pressure value is -150Pa and the first allowable deviation is ±3Pa, the first allowable error range is [-153Pa, -147Pa].

[0090] The hardware control unit acquires the actual air pressure value in the airflow channel between the air pressure source and the airflow control component in real time. As an example, the air pressure source can transmit the measured pressure at its outlet back to the hardware control unit in real time via a communication interface, which can be an RS232 interface. Since there are no other branches in the airflow path between the air pressure source outlet and the airflow control component, the measured pressure at the air pressure source outlet represents the actual air pressure value in the airflow channel between the air pressure source and the airflow control component.

[0091] As another implementation, a barometer can be installed in the airflow channel between the pressure source and the air path control component. This barometer collects the actual air pressure value and transmits it to the hardware control unit. The hardware control unit compares the collected actual air pressure values ​​for a preset number of consecutive times with a first allowable error range. When all preset number of actual air pressure values ​​are within the first allowable error range, the test air pressure is determined to meet the preset air pressure condition; otherwise, it continues to wait for the pressure source to build up pressure. As an example, the preset number can be 8, 10, 15, or other values, without limitation. By setting a first allowable error range to determine when pressure has been built up, the airflow channel can be opened only after the air pressure has stabilized, reducing the impact of air pressure deviation on the accuracy of the test results.

[0092] In the above implementation process, the first allowable error range is determined by the target test air pressure value, and the collected consecutive preset number of actual air pressure values ​​are compared with this range. Only when the consecutive preset number of actual air pressure values ​​are all within the range is it determined that the test air pressure meets the preset air pressure condition. This can effectively ensure that the actual air pressure values ​​within the continuous time period meet the preset air pressure condition, that is, the air pressure source pressure build-up is completed. This provides a stable air pressure starting point for subsequent start-up determination, effectively reduces the test deviation caused by insufficient air pressure source pressure build-up or pressure build-up overshoot, and helps to improve the reliability of sensitivity test results.

[0093] In one embodiment, after controlling the power-on of the airflow sensor under test and controlling the air path control component to open the airflow channel between the pressure source and the airflow sensor under test when the test air pressure meets the preset air pressure conditions, the method further includes: acquiring the real-time air pressure value in the airflow channel near the end of the airflow sensor under test; determining the duration of air pressure fluctuation after the airflow channel is opened based on the real-time air pressure value; and determining a duration threshold based on the duration of air pressure fluctuation.

[0094] For example, after the control air path controller opens the airflow channel between the pressure source and the airflow sensor to be measured, the hardware control unit can also measure the duration of pressure fluctuation in real time, and then determine the duration threshold based on the determined duration of pressure fluctuation.

[0095] Specifically, the airflow channel is connected to a sensor of the airflow under test and a pressure source at both ends. A barometer can also be installed on the airflow channel, located near the end of the airflow sensor under test and electrically connected to the hardware control unit. The barometer can collect the real-time air pressure value in the airflow channel near the end of the airflow sensor under test and transmit the collected real-time air pressure value to the hardware control unit.

[0096] Because the air pressure near the airflow sensor will experience a fluctuation process of first deviating, then overshooting, and then stabilizing at the moment the airflow channel is opened, by continuously monitoring the real-time air pressure value, this fluctuation process can be completely recorded. That is, by continuously sending the real-time air pressure value through the barometer, the duration of the air pressure fluctuation after the airflow channel is opened can be determined.

[0097] Furthermore, a duration threshold is determined based on the determined duration of the pressure fluctuation. As an example, a safety margin can be added to the duration of the pressure fluctuation to obtain the duration threshold, thereby ensuring that the duration threshold is greater than the duration of the pressure fluctuation.

[0098] In the above implementation process, the actual air pressure fluctuation duration after the airflow channel is turned on is determined by collecting the real-time air pressure value in the airflow channel near the airflow sensor under test, and the duration threshold is determined accordingly. This makes the duration threshold match the actual fluctuation characteristics in the current airflow channel, rather than relying on a fixed empirical value. This can reduce the possibility of misjudging the air pressure fluctuation as a start due to the duration threshold being too small, and also reduce the possibility of missed judgment or long test time due to the duration threshold being too large. This effectively improves the accuracy of the start judgment timing and the test efficiency.

[0099] In one embodiment, Figure 3 This is a flowchart illustrating a method for determining the duration of air pressure fluctuations provided in an embodiment of this application. Figure 3As shown, determining the duration of air pressure fluctuations after the airflow channel is opened based on real-time air pressure values ​​may include the following steps:

[0100] Step 301: Determine the steady-state error range based on the target test air pressure value.

[0101] Step 302: Determine the moment when the airflow channel is opened by the air circuit control component as the fluctuation start time.

[0102] Step 303: Continuously collect real-time air pressure values ​​from the moment the fluctuation begins.

[0103] Step 304: When multiple consecutive real-time air pressure values ​​are all within the steady-state error range, the time corresponding to the first real-time air pressure value among the multiple real-time air pressure values ​​is determined as the time when the fluctuation ends.

[0104] Step 305: Determine the duration of the pressure fluctuation based on the start and end times of the fluctuation.

[0105] For example, the steady-state error range can be determined based on the target test pressure value. The steady-state error range is formed by a preset steady-state allowable deviation centered on the target test pressure value and extending to both sides. The steady-state allowable deviation can be set according to the test accuracy requirements and the control accuracy of the pressure source, for example, ±3Pa. When the target test pressure value is -165Pa and the steady-state allowable deviation is ±3Pa, the steady-state error range is [-168Pa, -162Pa].

[0106] It should be noted that both the steady-state error range and the first permissible error range are allowable deviation ranges determined based on the target test air pressure value. The difference is that the first permissible error range is used to determine whether the air pressure source has built up pressure, while the steady-state error range is used to determine whether the air pressure has returned to stability after the airflow channel is opened. Under the condition that the test accuracy requirements are consistent, the same permissible deviation can be used for both.

[0107] The moment when the hardware control unit outputs a drive signal to the air path control component is the moment when the airflow channel is turned on. The hardware control unit records this moment as the fluctuation start time t0. From the fluctuation start time t0, the hardware control unit continuously collects the real-time air pressure value in the airflow channel through the barometer at a preset sampling frequency (e.g., 100Hz~500Hz) to obtain a real-time air pressure value sequence.

[0108] The hardware control unit continuously monitors the real-time air pressure value sequence from the start time t0 of the fluctuation. When multiple consecutive real-time air pressure values ​​are within the steady-state error range, the time corresponding to the first real-time air pressure value among these values ​​is determined as the end time t1 of the fluctuation. As an example, the multiple consecutive real-time air pressure values ​​can be 20 consecutive sampling points or 30 consecutive sampling points. The number of sampling points can be adaptively set according to the actual scenario and is not limited here.

[0109] Using the assumption that multiple consecutive sampling points are within the steady-state error range as the criterion for judgment can reduce the probability of misjudgment caused by noise interference at individual sampling points, ensuring that the air pressure has indeed returned to stability. The duration of the air pressure fluctuation is determined based on the start time t0 and the end time t1, i.e., air pressure fluctuation duration = t1 - t0.

[0110] In the above implementation process, the steady-state error range is determined based on the target test air pressure value. Then, the moment when the airflow channel is opened by the air path control component is taken as the start time of the fluctuation, and the fact that multiple consecutive real-time air pressure values ​​are within the steady-state error range is taken as the criterion for the end of the fluctuation. Thus, the termination time of the fluctuation is determined and the duration of the air pressure fluctuation is calculated. The continuous multi-point determination of steady state can reduce the probability of misjudging the termination time of the fluctuation due to individual sampling noise, improve the accuracy of the measurement results of the air pressure fluctuation duration, and provide a reliable basis for setting the subsequent duration threshold.

[0111] In one embodiment, the step of determining the duration threshold based on the duration of air pressure fluctuation includes: obtaining a safety time margin; and determining the sum of the duration of air pressure fluctuation and the safety time margin as the duration threshold.

[0112] For example, the hardware control unit can obtain a preset safety time margin and determine the sum of the air pressure fluctuation duration and the safety time margin as the duration threshold.

[0113] The safety time margin is used to cover possible random fluctuations and retain a decision margin. For example, the safety time margin can be pre-stored in the hardware control unit or host computer, or it can be set by the operator, for example, to 0.7 seconds to 1.0 seconds. When the measured air pressure fluctuation duration is 0.6 seconds and the safety time margin is 0.9 seconds, the duration threshold is 1.5 seconds. Since the duration threshold is the air pressure fluctuation duration plus the safety time margin, the duration threshold is necessarily greater than the air pressure fluctuation duration generated after the airflow channel is opened. This reliably excludes air pressure fluctuation periods from the start-up decision window without significantly prolonging the single-round test time or reducing test efficiency due to an excessively large threshold.

[0114] In the above implementation process, a safety time margin is superimposed on the measured air pressure fluctuation duration as a duration threshold, so that the obtained duration threshold can cover abnormal situations such as occasional prolongation or instantaneous overshoot of air pressure fluctuation, further ensuring that the air pressure fluctuation period falls outside the judgment window and improving the accuracy of the start-up timing determination.

[0115] In one embodiment, the step of obtaining the target test pressure value corresponding to the current test round includes: obtaining a starting pressure value, an ending pressure value, and a preset step size; determining the starting pressure value as the target test pressure value corresponding to the first round of testing; increasing the absolute value of the pressure difference corresponding to the target test pressure value according to the preset step size and the number of rounds of testing to obtain the target test pressure value corresponding to the current round of testing. The method further includes: executing the next round of testing if the absolute value of the pressure difference of the target test pressure value is less than or equal to the absolute value of the pressure difference of the ending pressure value; and ending the test if the absolute value of the pressure difference of the target test pressure value is greater than the absolute value of the pressure difference of the ending pressure value.

[0116] For example, the sensitivity testing device for the airflow sensor may also include a host computer, which can be connected to the hardware control unit to provide a human-machine interface, parameter configuration, and test result display. The host computer can run on a computer host, which provides a serial port for communication with the hardware control unit. The host computer software is used to send command signals to the hardware control unit, receive feedback data from the hardware control unit, and display it on the software interface. The host computer software can set multiple test modes, such as fixed value, decreasing, and increasing test modes, and can also set test parameters corresponding to each test mode, such as air pressure value and step size. Among them, the fixed value test mode only measures the airflow sensor at the set pressure difference value; the decreasing and increasing test modes measure the airflow sensor under test in a step-by-step manner. The step-by-step method starts the measurement from the set starting value. If no feedback signal indicating that the airflow sensor under test has been successfully started is received, the measurement is repeated by decreasing or increasing the set step value until the airflow sensor under test is successfully started or the set end value is reached. The software interface can also display the differential pressure value and the trigger signal of the airflow sensor during the measurement process, for example, displayed as 0 or 1, where 0 represents that the airflow sensor was not successfully started and 1 represents that the airflow sensor was successfully started.

[0117] Taking the decreasing test mode as an example, the user can select the decreasing test mode in the host computer software and set the starting air pressure value, ending air pressure value, and preset step size. For example, the starting air pressure value is -150Pa, the ending air pressure value is -200Pa, and the preset step size is 5Pa. The host computer sends the above parameters to the hardware control unit. The hardware control unit determines the starting air pressure value of -150Pa as the target test air pressure value corresponding to the first round of testing, and proceeds according to... Figure 2The process shown executes the first round of testing. If the duration of the airflow sensor under test does not reach the duration threshold in the first round of testing, that is, the airflow sensor under test is not determined to be activated at -150Pa, the hardware control unit increases the absolute value of the pressure difference corresponding to the target test air pressure value according to the preset step size of 5Pa and the number of rounds of testing. That is, the target test air pressure value is adjusted from -150Pa in the first round to -155Pa, that is, the absolute value of the pressure difference is increased from 150Pa to 155Pa, and -155Pa is determined as the target test air pressure value corresponding to this round of testing, and the process returns to steps 201 to 206. If the airflow sensor under test does not activate at -155Pa, and the target test pressure is less than or equal to the ending pressure of -200Pa, the target test pressure will be adjusted to -160Pa, -165Pa, ..., increasing the absolute value of the pressure difference round by round until the airflow sensor under test is activated in a certain round of testing, or the target test pressure is greater than the ending pressure of -200Pa, i.e., the absolute value of the pressure difference reaches 200Pa. If the sensor still does not activate after reaching the ending pressure, it can be determined that the activation pressure of the airflow sensor under test exceeds the current test range, the test will end, and a corresponding prompt will be output. In the above process, each round of testing is conducted according to... Figure 2 The process logic shown is executed such that the start is determined only when the duration reaches the duration threshold, thereby improving the accuracy of the determination results in each round of the stepping process.

[0118] In the above implementation process, starting from the initial air pressure value, the absolute value of the pressure difference is increased step by step according to the preset step size. If the duration does not reach the duration threshold, that is, the airflow sensor under test is not activated, it will automatically advance to the next pressure point. There is no need for manual pressure adjustment and manual interpretation at each test point. It can automatically and continuously complete the measurement of multiple air pressure test points, and quickly switch the airflow sensor from not being activated to the critical air pressure of activation. While ensuring the test consistency under the preset step resolution, it reduces the number of manual operations and improves the test efficiency.

[0119] In one embodiment, the step of obtaining the target test pressure value corresponding to the current test includes: obtaining multiple preset pressure values; and using the multiple preset pressure values ​​as the target test pressure value corresponding to each round of testing.

[0120] For example, a user can select a fixed-value test mode in the host computer software and set multiple preset air pressure values, such as -150Pa, -155Pa, -160Pa, etc. The host computer sends these preset air pressure values ​​to the hardware control unit. The hardware control unit uses each preset air pressure value as the target test air pressure value for each round of testing. That is, in each round of testing, any one of the multiple preset air pressure values ​​can be selected as the target test air pressure value for the current round of testing. The fixed-value test mode is suitable for scenarios such as batch inspection of airflow sensors: for example, in incoming material inspection, it is only necessary to determine whether the airflow sensor under test can reliably start under a specified air pressure value. In this case, the fixed-value test mode can be used to quickly test multiple airflow sensor samples sequentially. Each sample can be judged in one round of testing, without the need to scan the air pressure point by point, resulting in high testing efficiency. If the airflow sensor is determined to be activated at a preset air pressure value, its activation air pressure is determined to be no greater than the level corresponding to the preset air pressure value, and the test result for that round is output. If it is not determined to be activated, a non-activated result is output, and the inspector decides whether to judge the airflow sensor as unqualified or to retest it using another mode according to the inspection standard.

[0121] In the above implementation process, multiple preset air pressure values ​​are used as the target test air pressure values ​​for each round of testing, which can meet the application requirements of repeated testing, batch sample screening or qualification determination of specific air pressure points. Since each round of testing corresponds to the same target test air pressure value, the test conditions are uniform, the test results are highly comparable, and it is convenient to make a horizontal comparison of the startup performance of different airflow sensors or different batches of airflow sensors.

[0122] In one embodiment, the step of determining the sensitivity of the airflow sensor under test based on the target test pressure value corresponding to the start-up time includes: determining the target test pressure value corresponding to the first start-up time of the airflow sensor under test as the start-up pressure characterization value; and / or, obtaining the target test pressure value corresponding to the last time the airflow sensor under test was not started before the first start-up time, and determining the start-up pressure threshold range of the airflow sensor under test based on the target test pressure value corresponding to the last time it was not started and the target test pressure value corresponding to the first start-up time.

[0123] For example, the implementation of determining the sensitivity of the airflow sensor under test based on the target test air pressure value when the airflow sensor under test is determined to be activated can include the following two methods:

[0124] Implementation Method 1: The target test pressure value corresponding to the initial activation of the airflow sensor under test is determined as the activation pressure characterization value. Taking the decreasing test mode as an example, if the airflow sensor under test is not determined to be activated in the test rounds with target test pressure values ​​of -150Pa, -155Pa, and -160Pa, but is determined to be activated for the first time in the test round with a target test pressure value of -165Pa, then -165Pa is determined as the activation pressure characterization value of the airflow sensor under test. This activation pressure characterization value characterizes the sensitivity of the airflow sensor.

[0125] Implementation Method 2: Obtain the target test air pressure value corresponding to the last time the airflow sensor under test was not activated before it was first determined to be activated. Based on the target test air pressure value corresponding to the last time it was not activated and the target test air pressure value corresponding to the first time it was determined to be activated, determine the activation air pressure threshold range of the airflow sensor under test. Taking the test process of the above-mentioned decreasing test mode as an example, when the airflow sensor under test is first activated, the corresponding target test air pressure value is -165 Pa, and when it was last not activated, the corresponding target test air pressure value is -160 Pa. Therefore, the activation air pressure threshold range of the airflow sensor can be determined as [-165 Pa, -160 Pa], that is, the actual activation air pressure of the airflow sensor under test falls within this range, and the width of the range is equal to the preset step size of 5 Pa. By outputting the activation air pressure threshold range, the distribution range of the activation air pressure of the airflow sensor can be characterized, and this range can be determined as the sensitivity of the corresponding airflow sensor.

[0126] It should be noted that the above two implementation methods can be selected for execution or executed simultaneously: that is, both the starting air pressure characterization value and the starting air pressure threshold range can be output. The two can coexist in an "AND / OR" relationship and are both displayed and recorded by the host computer software interface.

[0127] In the above implementation process, the target test air pressure value corresponding to the first determination of startup can be directly determined as the startup air pressure characterization value, or the startup air pressure threshold range can be determined by combining the target test air pressure value corresponding to the last time before startup. The startup air pressure threshold range makes the quantization error caused by the preset step size explicit, and can characterize the startup characteristics of the airflow sensor under test from multiple aspects, thereby improving the accuracy of the test results.

[0128] In another embodiment, the method can also automatically adjust the target test pressure value in an incremental manner to determine the reset pressure at which the airflow sensor under test switches from activation to deactivation during the pressure reduction process. For example, the user selects the incremental test mode in the host computer software and sets the initial pressure value to a strong negative pressure, such as -180 Pa, to ensure that the airflow sensor under test can be activated in the initial state, and the ending pressure value to a weak negative pressure, such as -100 Pa, with a preset step size of 5 Pa. The hardware control unit determines the initial pressure value of -180 Pa as the target test pressure value corresponding to the first round of testing, and then... Figure 2 The process shown executes the first round of testing. Due to the large absolute value of the pressure difference at -180Pa, the airflow sensor under test is usually identified as activated. When the airflow sensor under test is identified as activated, the hardware control unit decreases the absolute value of the pressure difference corresponding to the target test air pressure value according to a preset step size, that is, the target test air pressure value is adjusted from -180Pa to -175Pa, -170Pa, ..., and the test is performed round by round until the airflow sensor under test is no longer identified as activated in a certain round of testing, that is, it switches from activated to not activated. At this time, the target test air pressure value corresponding to the most recent activation in the previous round can be determined as the reset air pressure of the airflow sensor under test, or the interval formed by the target test air pressure value corresponding to the non-activated round and the target test air pressure value of the previous round can be determined as the reset air pressure interval, which is used to characterize the sensitivity characteristics of the airflow sensor under test from another perspective.

[0129] Figure 4 This is a schematic diagram of the overall process of a sensitivity testing method for an airflow sensor provided in an embodiment of this application. As an example, the airflow sensor under test is a microphone sample. Before the test begins, the air pressure source, hardware control unit (circuit board), and computer host (host computer) are powered on. Figure 4 As shown, the microphone sample is arranged in the sample testing area. At this time, the solenoid valve is in the closed state. Open the host computer software, connect the serial port, and select the measurement mode.

[0130] If using a fixed-value test mode, set the target value, for example, -150Pa. Start the test; the air pressure source begins working until the pressure difference between the air pressure source and the solenoid valve reaches -150Pa. Then, the microphone sample is energized, and the solenoid valve opens, stabilizing the pressure difference at the microphone sample end at -150Pa. This stable pressure difference of -150Pa lasts for 5 seconds. After 5 seconds, the microphone and solenoid valve are de-energized. Further, determine if an output signal for a duration of 1.5 seconds is detected; this output signal is the output voltage signal. If an output voltage signal lasting 1.5 seconds is detected, the microphone is successfully activated, signal 1 is returned to the host computer, and the test process ends. If an output voltage signal lasting 1.5 seconds is not detected, the microphone is not activated, signal 0 is returned to the host computer, and the test process ends.

[0131] If using the step mode, taking the decreasing test mode as an example, and setting the corresponding parameters, for example, initial value -150Pa, ending value -200Pa, step value 5Pa. Further, the user clicks the start button on the host computer software to start the test. At this time, the air pressure source starts working until the pressure difference between the air pressure source and the solenoid valve reaches -150Pa. Then the microphone sample is energized, and the solenoid valve is simultaneously energized and opened. The pressure difference at the microphone sample end will also stabilize at -150Pa; the stable pressure difference of -150Pa will last for 5 seconds, after which the microphone and solenoid valve are de-energized. Further, it is determined whether an output signal for a duration period of 1.5 seconds is detected, and the output signal is an output voltage signal. If a 1.5-second continuous output voltage signal is detected, the microphone is successfully activated, signal 1 is returned to the host computer, and the test process ends. If a 1.5-second continuous output voltage signal is not detected, the microphone is not activated, signal 0 is returned to the host computer, and it is determined whether the target value is equal to the end value. If the target value is not equal to the end value, the target value is updated, i.e., the next round target value = the previous round target value - the step value, and the process returns to the step of executing the air pressure source operation until the target value is reached. If the target value is equal to the end value, the test process ends.

[0132] For example, after each round of testing ends and before the next round of testing begins, a test reset process is also included: if the airflow sensor under test is not determined to be activated in this round of testing, or if it needs to enter the next pressure point test after this round of testing ends, the hardware control unit first controls the airflow sensor to be powered off and controls the air path control component to switch to the closed state, thus cutting off the airflow channel again; then, with the air path control component remaining closed, the pressure source is controlled to adjust the test pressure to the target test pressure value of the next round; after the measured pressure in the airflow channel between the pressure source and the air path control component meets the preset pressure condition corresponding to the next target test pressure value, the airflow sensor under test is powered on again, and the air path control component is controlled to open the airflow channel again to start the next round of testing.

[0133] During the pressure holding period, the hardware control unit continuously acquires the test result signal output by the microphone and determines the duration for which the test result signal continuously meets the preset valid signal conditions. It then determines whether this duration reaches a duration threshold, such as 1.5 seconds, which is greater than the duration of air pressure fluctuations generated after the airflow channel is opened. If the duration reaches the duration threshold, the microphone is confirmed to have been successfully activated in this round of testing, and a start signal is returned to the host computer, with the software interface displaying an indicator "1". If the duration does not reach the duration threshold, the microphone is confirmed not to have been activated, and a non-activated signal is returned to the host computer, with the software interface displaying an indicator "0". Subsequently, if the microphone has been activated, or the target test air pressure value for the current round has reached the end air pressure value, the test process ends. If the microphone has not been activated and the target test air pressure value for the current round has not reached the end air pressure value, the target test air pressure value is updated, meaning the target test air pressure value for the next round is equal to the target test air pressure value for the current round minus the step value, corresponding to an increase of 5Pa in the absolute value of the pressure difference. The system then returns to execute the air pressure source pressure building step and enters the next round of testing.

[0134] In the overall process described above, the target test pressure value, measured pressure value, test result signal, start judgment result (0 or 1 identifier), and corresponding timestamp for each round of testing are all recorded by the hardware control unit and stored in the computer host's memory or database via the host computer. Communication data between the pressure source and the hardware control unit, and between the hardware control unit and the host computer, are also recorded and saved, forming a complete test record. For example, data such as bidirectional commands and response logs from RS232 serial communication are included. This record allows for subsequent querying and traceability, enabling the sensitivity testing process and results of each microphone sample to be traced back, facilitating quality traceability and data analysis.

[0135] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages in other steps. It is understood that the steps in different embodiments can be freely combined as needed, and all non-contradictory solutions formed by such combinations are within the scope of protection of this application.

[0136] Based on the same inventive concept, this application also provides a sensitivity testing device for an airflow sensor to implement the sensitivity testing method for the airflow sensor described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations of one or more embodiments of the sensitivity testing device for an airflow sensor provided below can be found in the limitations of the sensitivity testing method for the airflow sensor described above, and will not be repeated here.

[0137] In one exemplary embodiment, Figure 1 The sensitivity testing device for the airflow sensor shown includes: an air pressure source, an air path control component, and a hardware control unit, with the hardware control unit connected to the air pressure source and the air path control component, respectively.

[0138] The hardware control unit is used to acquire the target test air pressure value corresponding to this round of testing and transmit the target test air pressure value to the air pressure source.

[0139] With the air circuit control device closed, the air pressure source establishes a test air pressure corresponding to the target test air pressure value and feeds the test air pressure back to the hardware control unit.

[0140] The hardware control unit is also used to: power on the airflow sensor under test when the test air pressure meets the preset air pressure conditions, and control the air path control component to open the airflow channel between the air pressure source and the airflow sensor under test; after the airflow channel is opened, acquire the test result signal output by the airflow sensor under test, and determine the duration for which the test result signal continuously meets the preset valid signal conditions; when the duration reaches the duration threshold, determine that the airflow sensor under test is activated in this round of testing; wherein, the duration threshold is greater than the duration of air pressure fluctuation generated after the airflow channel is opened; and determine the sensitivity of the airflow sensor under test based on the target test air pressure value corresponding to the activation of the airflow sensor under test; wherein, the sensitivity characterizes the activation air pressure characterization value of the airflow sensor under test.

[0141] In one embodiment, the device further includes a host computer connected to a hardware control unit; the hardware control unit is also used to transmit test result signals to the host computer; the host computer is used to display the identifier corresponding to the test result signals.

[0142] The sensitivity testing device may also include a barometer and a sample carrier assembly. The barometer is connected in series with the airflow channel to collect the air pressure in the airflow channel and output a pressure signal. The barometer can be placed at different locations in the airflow channel. For example, a barometer can be placed downstream of the airflow control component, near the end of the airflow sensor under test, to collect the real-time air pressure value near the end of the airflow sensor under test; or, for example, a barometer can be placed between the pressure source and the airflow control component to collect the actual air pressure value in the airflow channel between the pressure source and the airflow control component.

[0143] It is understandable that the air pressure between the pressure source and the air circuit control components can also be obtained through the pressure sensor of the pressure source itself via its communication interface, and this is not limited here. The barometer is powered by the hardware control unit, and the air pressure signal it collects is transmitted to the hardware control unit.

[0144] The sample carrier assembly is used to carry and fix the airflow sensor sample under test, and to seal and connect the air chamber of the airflow sensor to the airflow channel. Taking a microphone sample as an example, the sample carrier assembly includes a sample placement base, a signal connection base, and a movable cover plate. The sample placement base is connected to the interface at the upper end of the airflow channel through its bottom threaded interface, such as the threaded interface of a copper base pipe, and is fastened to the fixed bracket with screws. The sample placement base can be made of metal and have a coating on its surface for insulation. The sample placement base has two slots, one for placing the signal connection base and the other for placing the microphone silicone. The size of the slot is adapted to the size of the microphone silicone to ensure a seal. The microphone silicone has a through hole in the center, which communicates with the airflow channel through the through hole at the bottom of the sample placement base. The size of the central through hole is adapted to the size of the microphone (e.g., a standard 6mm package) to ensure airtightness during testing. The signal connection base is fastened to the sample placement base with screws. It can be made of acrylic and designed in an L-shape to fix multiple (e.g., three) parallel and non-short-circuited conductive posts (e.g., L-shaped copper posts). During testing, the upper end of the conductive post is connected to multiple wires of the microphone (e.g., microphone power supply positive terminal, microphone power supply negative terminal, microphone signal terminal). The lower end of the conductive post is connected to the hardware control unit through connecting wires, so that the hardware control unit can provide the working voltage to the microphone through the power supply terminal and collect the test result signal output by the microphone through the signal acquisition terminal. The upper end of the signal connection base also has toothed grooves to place and physically isolate the different wires of the microphone, reducing the possibility of short circuits between lines affecting the test results. The movable cover is rotatably mounted (e.g., hinged with screws) on the sample placement base. The movable cover may be made of metal and have a coating. The movable cover has cutout areas, some of which correspond to the toothed grooves on the upper end of the signal connection base, serving as observation windows for viewing the microphone wire connection when the cover is closed. Other cutout areas correspond to the microphone placement position, ensuring that the microphone's air intake remains open to air even when the cover is closed. A boss is provided on the back of the movable cover; when closed, this boss presses against the upper end of the conductive post to ensure a good connection between the microphone wire and the conductive post. A magnet hole is also provided on the front of the movable cover, into which a magnet is placed. When the cover is closed, the magnetic attraction between the magnet and the sample placement base ensures the stability of the connection between the microphone wire and the conductive post. A mounting bracket is used to fix the sample carrier assembly and hardware control unit and can be mounted on the back of the pressure source.

[0145] Each module in the aforementioned airflow sensor sensitivity testing device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the corresponding operations of each module.

[0146] In one exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 5 As shown, Figure 5 This is a schematic diagram of the internal structure of a computer device according to an embodiment of this application. The computer device includes a processor, memory, input / output interfaces (I / O), and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is connected to the system bus via the I / O interfaces. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile 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 non-volatile storage medium. The database stores test data. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communicating with external terminals via a network connection. When the computer program is executed by the processor, it implements a sensitivity testing method for an airflow sensor.

[0147] Those skilled in the art will understand that Figure 5 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0148] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps of the sensitivity testing method for the airflow sensor in any of the above embodiments.

[0149] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps of the sensitivity testing method for the airflow sensor in any of the above embodiments.

[0150] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.

[0151] 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, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.

[0152] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0153] The above embodiments are merely illustrative of several implementation methods of this application, and their descriptions are relatively specific and detailed. However, they should not be construed as limiting the scope of this application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A sensitivity testing method for an airflow sensor, applied to a sensitivity testing device for an airflow sensor, the sensitivity testing device comprising a pressure source and an air path control component, characterized in that, The method includes: Obtain the target test pressure value corresponding to this round of testing; With the air circuit control component closed, the air pressure source is controlled to establish a test air pressure corresponding to the target test air pressure value; When the test air pressure meets the preset air pressure conditions, the airflow sensor under test is powered on, and the air circuit control component is controlled to open the airflow channel between the air pressure source and the airflow sensor under test. Acquire the test result signal output by the airflow sensor under test, and determine the duration for which the test result signal continuously meets the preset valid signal conditions; If the duration reaches a duration threshold, it is determined that the airflow sensor under test is activated in this round of testing; wherein, the duration threshold is greater than the duration of air pressure fluctuations generated after the airflow channel is opened; Based on the target test air pressure value corresponding to the start-up of the airflow sensor under test, the sensitivity of the airflow sensor under test is determined; wherein, the sensitivity characterizes the start-up air pressure characterization value of the airflow sensor under test.

2. The method according to claim 1, characterized in that, The preset air pressure conditions include: A first permissible error range is determined based on the target test air pressure value; Collect the actual air pressure value in the airflow channel between the air pressure source and the air path control component; If a predetermined number of consecutive actual air pressure values ​​are all within the first allowable error range, the test air pressure is determined to meet the predetermined air pressure condition.

3. The method according to claim 1, characterized in that, After the steps of controlling the power-on of the airflow sensor under test and controlling the air path control component to open the airflow channel between the pressure source and the airflow sensor under test when the test air pressure meets the preset air pressure condition, the method further includes: Collect the real-time air pressure value in the airflow channel near the end of the airflow sensor to be measured; The duration of air pressure fluctuations after the airflow channel is opened is determined based on the real-time air pressure value. The duration threshold is determined based on the duration of the air pressure fluctuation.

4. The method according to claim 3, characterized in that, The step of determining the duration of air pressure fluctuations after the airflow channel is opened based on the real-time air pressure value includes: Determine the steady-state error range based on the target test air pressure value; The moment when the airflow control component activates the airflow channel is determined as the fluctuation start time. The real-time air pressure value is continuously collected from the moment the fluctuation begins. When multiple consecutive real-time air pressure values ​​are within the steady-state error range, the time corresponding to the first real-time air pressure value among the multiple real-time air pressure values ​​is determined as the fluctuation termination time. The duration of the air pressure fluctuation is determined based on the start time and end time of the fluctuation.

5. The method according to claim 3, characterized in that, The step of determining the duration threshold based on the duration of the air pressure fluctuation includes: Gain a safety margin; The sum of the air pressure fluctuation duration and the safety time margin is determined as the duration threshold.

6. The method according to claim 1, characterized in that, The step of obtaining the target test pressure value corresponding to this round of testing includes: Obtain the initial air pressure value, the final air pressure value, and the preset step size; The initial air pressure value is determined as the target test air pressure value corresponding to the first round of testing; The absolute value of the pressure difference corresponding to the target test pressure value is increased by the preset step size and the number of rounds of testing to obtain the target test pressure value corresponding to the current round of testing; The method further includes: If the absolute value of the pressure difference between the target test pressure value and the end pressure value is less than or equal to the absolute value of the pressure difference between the end pressure value and the end pressure value, the next round of testing will be performed. The test ends when the absolute value of the pressure difference between the target test pressure value and the end pressure value is greater than the absolute value of the pressure difference between the end and end pressure values.

7. The method according to claim 1, characterized in that, The step of obtaining the target test pressure value corresponding to this round of testing includes: Obtain multiple preset air pressure values; The multiple preset air pressure values ​​are used as the target test air pressure values ​​for each round of testing.

8. The method according to claim 1, characterized in that, The step of determining the sensitivity of the airflow sensor under test based on the target test air pressure value corresponding to the start-up time, includes: The airflow sensor under test is initially identified as the target test air pressure value corresponding to the start-up, and this is determined as the start-up air pressure characterization value; and / or, The target test air pressure value corresponding to the last time the airflow sensor under test was not activated before it was first determined to be activated is obtained, and the activation air pressure threshold range of the airflow sensor under test is determined based on the target test air pressure value corresponding to the last time it was not activated and the target test air pressure value corresponding to the first time it was determined to be activated.

9. A sensitivity testing device for an airflow sensor, characterized in that, The device includes: a pressure source, a gas path control component, and a hardware control unit, wherein the hardware control unit is connected to the pressure source and the gas path control component respectively; The hardware control unit is used to acquire the target test air pressure value corresponding to this round of testing and transmit the target test air pressure value to the air pressure source; When the air circuit control component is closed, the air pressure source establishes a test air pressure corresponding to the target test air pressure value and feeds the test air pressure back to the hardware control unit; The hardware control unit is further configured to: power on the airflow sensor under test when the test air pressure meets the preset air pressure conditions, and control the air path control component to open the airflow channel between the air pressure source and the airflow sensor under test; after the airflow channel is opened, acquire the test result signal output by the airflow sensor under test, and determine the duration for which the test result signal continuously meets the preset valid signal conditions; when the duration reaches a duration threshold, determine that the airflow sensor under test is activated in this round of testing; wherein, the duration threshold is greater than the air pressure fluctuation duration generated after the airflow channel is opened; and determine the sensitivity of the airflow sensor under test based on the target test air pressure value corresponding to the activation of the airflow sensor under test; wherein, the sensitivity characterizes the activation air pressure characterization value of the airflow sensor under test.

10. The apparatus according to claim 9, characterized in that, The device also includes a host computer connected to the hardware control unit; The hardware control unit is also used to transmit the test result signal to the host computer; The host computer is used to display the identifier corresponding to the test result signal.