A control method and apparatus of an alcohol gas detection device
By dynamically calculating the heating time, the problems of long detection intervals and wasted electricity in alcohol gas detection equipment have been solved, achieving efficient and accurate alcohol detection.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENZHEN HANWEI INTERNET OF THINGS CO LTD
- Filing Date
- 2025-11-11
- Publication Date
- 2026-07-31
AI Technical Summary
Existing alcohol gas detection equipment suffers from waste in detection intervals and accuracy issues, especially due to incomplete evaporation of residual alcohol, leading to inaccurate test results and wasted power.
By dynamically calculating the heating time and combining data obtained from the alcohol sensor and humidity detection circuit, the heating time of the heating circuit is determined to control the temperature change of the internal space, reduce power waste, and suppress residual alcohol levels.
It achieves reduced power waste in a short time, ensures the accuracy of test results, and shortens the test interval to 30s~50s, meeting user needs.
Smart Images

Figure CN121262676B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of alcohol detection technology, and in particular relates to a control method for an alcohol gas detection device and an alcohol gas detection device. Background Technology
[0002] In the field of alcohol testing, during one test, a drunk driver blows a gas containing high levels of alcohol into the alcohol gas detection device. In subsequent tests, the remaining alcohol may cause inaccurate results, necessitating a waiting period for the alcohol to completely evaporate before a second test. This slows down the testing process.
[0003] In related technologies, air is converted into hot air through internal heating via a heating element. The hot air accelerates the evaporation of alcohol, effectively shortening the detection interval of alcohol gas detection equipment. However, excessively long heating times lead to wasted electricity, while excessively short heating times may result in insufficient internal temperature after heating, slow alcohol evaporation, and a higher alcohol residue, affecting the accuracy of subsequent tests. Summary of the Invention
[0004] In view of this, this application provides a control method and an alcohol gas detection device, which can dynamically calculate the appropriate heating time based on the detected alcohol concentration, reduce the waste of electricity in the heating circuit, and suppress the alcohol residue level to an allowable range before the next detection.
[0005] In a first aspect, this application provides a control method for an alcohol gas detection device, comprising: Acquire the target voltage value collected by the alcohol sensor and the humidity value collected by the humidity detection circuit; The target alcohol concentration in the internal space of the alcohol gas detection device is determined based on the target voltage value. Based on the target alcohol concentration and the volume of the internal space, determine the mass of alcohol in the internal space, and based on the volume of the internal space, determine the mass of humid air in the internal space. Obtain the specific heat capacity of alcohol, and determine the specific heat capacity of moist air based on the humidity value; Based on the mass of the alcohol, the mass of the humid air, the specific heat capacity of the alcohol, and the specific heat capacity of the humid air, determine the objective function relationship between the heating time of the heating circuit and the temperature change of the internal space; Based on the target temperature rise and the target function relationship, the target heating time is calculated, and the heating circuit is controlled to heat the internal space for the target heating time.
[0006] In the above method, the appropriate target heating time is dynamically calculated based on the target alcohol concentration detected this time, and the heating circuit is controlled to heat the target in the internal space of the alcohol gas detection device for a certain duration, so that the temperature of the internal space is raised to a suitable temperature. This can reduce the waste of electricity by the heating circuit and suppress the alcohol residue level to an allowable range before the next detection.
[0007] Secondly, this application provides an alcohol gas detection device, including a memory and a processor, wherein the memory is internal memory or external memory of the processor; The memory stores program instructions that, when executed by the processor, cause the alcohol gas detection device to perform the control method for the alcohol gas detection device as described in the first aspect above.
[0008] It is understandable that the beneficial effects of the above two aspects can be found in the relevant description in the first aspect above, and will not be repeated here. Attached Figure Description
[0009] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0010] Figure 1a This is a cross-sectional schematic diagram of the alcohol gas detection device provided in the embodiments of this application.
[0011] Figure 1b This is a schematic diagram of the external appearance of the alcohol gas detection device provided in the embodiments of this application.
[0012] Figure 2 This is a schematic diagram of the circuit structure of the control circuit provided in the embodiment of this application.
[0013] Figure 3 This is a schematic flowchart of the control method for the alcohol gas detection device provided in the embodiments of this application.
[0014] Figure 4 This is a schematic diagram of the structure of the alcohol gas detection device provided in the embodiments of this application. Detailed Implementation
[0015] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.
[0016] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.
[0017] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0018] As used in this application specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if detected [the described condition or event]" may be interpreted, depending on the context, as meaning "once determined," "in response to determination," "once detected [the described condition or event]," or "in response to detection [the described condition or event]."
[0019] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0020] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.
[0021] Figure 1aThis is a cross-sectional schematic diagram of an alcohol gas detection device provided in this application. The device includes a housing 100, an alcohol sensor 200, a printed circuit board 300, and a control circuit 400. The alcohol sensor 200, the printed circuit board 300, and the control circuit 400 are disposed inside the housing, and the alcohol sensor 200 and the control circuit 400 are mounted on the printed circuit board 300. When a user blows air into the alcohol gas detection device, the alcohol gas enters the housing 100, and the alcohol sensor 200 detects the alcohol.
[0022] As one implementation method, such as Figure 1b The diagram shows the external appearance of an alcohol gas detection device provided in this application. The housing 100 of the alcohol gas detection device includes an upper shell and a lower shell, and a communication interface is provided on the housing 100, for example, a Universal Serial Bus (USB) interface. A mobile terminal (such as a mobile phone) can connect to the alcohol gas detection device through this USB interface. In this way, when alcohol detection is not needed, the user can store the alcohol gas detection device away. When alcohol detection is needed, the user can connect the alcohol gas detection device to the mobile terminal through the USB interface. The mobile terminal can power the alcohol gas detection device, and the display screen of the mobile terminal can display the detection result (alcohol concentration). Therefore, this alcohol gas detection device can eliminate the need for a battery and a display screen, making the alcohol gas detection device compact, easy to carry, and meeting the user's daily usage needs.
[0023] As another implementation, the alcohol gas detection device includes a Bluetooth module. After the mobile terminal establishes a Bluetooth connection with the alcohol gas detection device, the alcohol gas detection device can communicate with the mobile terminal through the Bluetooth module.
[0024] Among them, mobile terminals can be devices such as smartphones, smartwatches, smart bracelets, and in-vehicle terminals.
[0025] The alcohol sensor 200 mounted on the printed circuit board 300 is a diffusion-type electrochemical gas sensor. It detects alcohol diffused into the housing 100 and converts the gas concentration signal into a current signal. This current signal is positively correlated with the alcohol content exhaled by the human body inside the housing 100. Generally, the sensitivity of a diffusion-type electrochemical gas sensor is 0.30±0.15uA / ppm, the response time is ≤50s, and the diffusion time is ≤120s. Compared with semiconductor gas sensors, electrochemical gas sensors have advantages such as high accuracy, large range, and good linearity. However, their response speed and gas diffusion speed are slow. For the detection of exhaled alcohol content, the detection interval is usually required to be less than 30s, and the detection interval is between 30s and 50s. Therefore, relying solely on the above-mentioned diffusion-type electrochemical gas sensor 200 cannot meet the requirements.
[0026] Figure 2 A schematic diagram of the control circuit 400 is shown. The control circuit 400 includes a humidity detection circuit 401, a microcontroller unit (MCU) 402, a heating circuit 403, a signal processing circuit 404, and a communication circuit 405. The MCU 402 is electrically connected to the humidity detection circuit 401, the heating circuit 403, the signal processing circuit 404, and the communication circuit 405. The alcohol sensor 200 is electrically connected to the signal processing circuit 404.
[0027] The signal processing circuit 404 converts the current signal output by the alcohol sensor 200 into a voltage signal, which is then fed into the MCU 402. The humidity detection circuit 401 detects the ambient humidity and feeds the humidity signal into the MCU 402. The MCU 402 controls the heating circuit 403 to heat the environment inside the housing 100, thereby accelerating the evaporation of residual alcohol inside the housing and speeding up the desorption time of the alcohol sensor 200. The communication circuit 405 and communication interface transmit the alcohol concentration data processed by the built-in intelligent algorithm of the MCU 402 via UART, Bluetooth, or Wi-Fi for analysis and display by the mobile terminal's APP or computer software, and simultaneously receive start detection commands from the mobile terminal's APP or computer software.
[0028] Figure 3 This application provides a flowchart illustrating a control method for an alcohol gas detection device according to an embodiment of the present application. This control method is applied to… Figure 2 The MCU402 in the text is described in detail below: Step 301: Obtain the target voltage value V2 collected by the alcohol sensor and the humidity value H collected by the humidity detection circuit; Step 302: Determine the target alcohol concentration C in the internal space of the alcohol gas detection device based on the target voltage value V2. 上传 ; Step 303, based on the target alcohol concentration C 上传 Based on the volume Vt of the internal space, determine the mass m1 of the alcohol in the internal space, and determine the mass m2 of the humid air in the internal space based on the volume Vt of the internal space. Step 304: Obtain the alcohol specific heat capacity C1, and determine the humid air specific heat capacity C2 based on the humidity value H; Step 305: Based on the mass m1 of the alcohol, the mass m2 of the humid air, the specific heat capacity C1 of the alcohol, and the specific heat capacity C2 of the humid air, determine the objective function relationship between the heating time t of the heating circuit and the temperature change ΔT of the internal space; Step 306: Calculate the target heating time based on the target temperature rise and the target function relationship, and control the heating circuit to heat the internal space for the target heating time.
[0029] In this embodiment, the alcohol sensor detects alcohol in real time, generating a current signal. The signal processing circuit converts the current signal into a voltage signal and introduces it into the MCU. The MCU has a built-in intelligent algorithm that performs analog-to-digital conversion (ADC) on the voltage signal acquired by the signal processing circuit to obtain the voltage value. The voltage value is then slid into a time window, and the voltage values within the time window are sorted by time in real time. It should be noted that the MCU continuously acquires voltage signals, but it only retains all voltage values Vi (i=1,2,3...n) from the most recent period (e.g., the past 30 seconds). This time window slides as time progresses, with older values being removed and newer values being added. The value of n and the size of the time window are adjusted according to the specific application.
[0030] For example, obtaining the target voltage value V2 collected by the alcohol sensor includes: controlling the alcohol sensor to collect voltage values in real time; and when a start detection command is received, taking the maximum or average value of the voltage value Vi within the current time window as the target voltage value V2.
[0031] After the user blows into the alcohol gas detection device, they can send a start detection command via a mobile terminal or computer. When the MCU receives the start detection command from the mobile terminal or computer through the communication circuit, it uses the maximum or average value of the voltage value Vi within the current time window as the target voltage value V2. Assuming the time window size is 30 seconds, the current time window can be the 30 seconds prior to the moment the start detection command is received. The voltage value Vi within the current time window includes all voltage values collected within the past 30 seconds.
[0032] In some embodiments, the method further includes: When a start detection command is received, the minimum value Vi of the voltage value Vi within the current time window is set. min V01 serves as the reference zero point; The target alcohol concentration C of the internal space of the alcohol gas detection device is determined based on the target voltage value V2. 上传 ,include: The real-time alcohol concentration C is calculated based on the target voltage value V2 and the reference zero point V01. Based on the minimum value Vi of the voltage value Vi within the current time window min The residual alcohol concentration C in the internal space was calculated. 残留 ; According to the residual alcohol concentration C 残留 The compensation concentration Cb was calculated. The sum of the real-time alcohol concentration C and the compensation concentration Cb is taken as the target alcohol concentration C. 上传 .
[0033] Understandably, the zero point of an alcohol sensor (i.e., the voltage reading V0 when there is absolutely no alcohol) is not constant. It drifts slowly with changes in temperature, humidity, and the sensor's own aging. If a fixed V0 is used for calculation, the result will become inaccurate over time. Therefore, the algorithm assumes that within any sufficiently long period of time, there will always be a moment when the air entering the sensor is relatively cleanest (the alcohol concentration is lowest). The voltage value Vi at this moment is... min This is considered the value closest to the true zero point under the current environment. When a start detection command is received, the minimum value Vi within the current time window is selected. min V01 serves as the reference zero point. The real-time alcohol concentration C is calculated based on the target voltage value V2 and the reference zero point V01. Real-time alcohol concentration C = (V2 - V01) * C1 / (V1 - V0), where V0 is the voltage value collected under pure air. V1 and C1 are the voltage values measured at the factory using standard alcohol gas (concentration C1). (V1 - V0) represents the sensitivity of the alcohol sensor to the standard concentration C1. V01 is the new reference zero point Vi obtained above through zero-point tracking. min Upon receiving the start detection command from the mobile terminal, the algorithm immediately locks onto the minimum voltage value Vi within the current time window. min And set it as the reference zero point V01 for this measurement.
[0034] The residual alcohol concentration C inside the housing of the alcohol gas detection device 残留 It can be calculated using the formula: C 残留 = (Vi min -V0)*C1 / (V1-V0). V0 is the voltage value collected under pure air.
[0035] (Vi min -V0): This represents the offset of the current cleanest state relative to the factory baseline. This offset is caused by both residual alcohol and sensor drift. Essentially, this formula uses known sensor sensitivity to deduce an equivalent alcohol concentration from the voltage offset; this concentration is what we consider the residual concentration.
[0036] Compensation concentration Cb = (C 残留)^2 / τ. Where τ is the time-diffusion parameter of the diffusion-type electrochemical sensor, here taken as 240, an empirical parameter. Residual concentration C 残留 When C is very low, its impact on the next measurement is minimal, and the compensation amount Cb is also extremely small. However, when C... 残留 At higher levels, the effect is not linear but grows quadratically, so a quadratic term is needed to more accurately describe this nonlinear disturbance. The target alcohol concentration C is obtained by adding this compensation amount Cb to the real-time alcohol concentration C. 上传 The final result C uploaded to the mobile terminal 上传 This will be closer to the actual concentration of the breath sample taken by the user. While the compensation concentration Cb compensates for some of the impact of residual alcohol and reduces the detection interval, the reduction in the detection interval is limited. Without residual compensation, the target alcohol concentration C must be maintained. 上传 The detection interval is at least 120 seconds, consistent with the concentration of the simulated breath alcohol. After residual compensation, the detection interval for simulating 20mg / 100mL of breath alcohol is reduced to 30 seconds, and for 50mg / 100mL of breath alcohol, it is reduced from 120 seconds to 75 seconds. However, this still does not meet the 30-50 second detection interval requirement that most people can tolerate. Therefore, this embodiment compensates for the influence of residual alcohol by compensating for the concentration Cb, and uses a heating circuit to heat the internal space of the casing to accelerate alcohol diffusion. This allows the detection interval to be controlled between 30 and 50 seconds, so that after one alcohol test, the user only needs to wait 30-50 seconds before testing again, without having to wait too long (alcohol testing usually requires multiple breaths).
[0037] In some embodiments, the mass m1 of the alcohol is equal to the target alcohol concentration C. 上传 The product of the volume Vt of the internal space and the volume of the internal space is divided by 100; the mass m2 of the moist air is equal to the product of the mass of water vapor per cubic meter under standard atmospheric pressure and the volume Vt of the internal space.
[0038] The mass of water vapor per cubic meter under standard atmospheric pressure is 0.58961 kg, a known value that can be preset in the algorithm. Similarly, the volume Vt of the internal space of the alcohol gas detector's casing is also a known value and can be preset in the algorithm. For example, the volume Vt could be 500 ml.
[0039] Optionally, the specific heat capacity of the moist air, C2, is calculated as C2 = (1-H)*Ca + H*Cv, where H is the humidity value, Ca is the preset specific heat capacity of dry air, and Cv is the preset specific heat capacity of water vapor. The humidity value can be obtained through a humidity detection circuit. Ca is the preset specific heat capacity of dry air, which is a known value, typically Ca = 1.01 KJ / (Kg·K). Cv is the preset specific heat capacity of water vapor, which is a known value, typically = 1.88 KJ / (Kg·K).
[0040] In some embodiments, determining the objective function relationship between the heating duration t of the heating circuit and the temperature change ΔT of the internal space based on the mass m1 of the alcohol, the mass m2 of the humid air, the specific heat capacity C1 of the alcohol, and the specific heat capacity C2 of the humid air includes: The mass m of the mixture is calculated based on the mass m1 of the alcohol and the mass m2 of the moist air, wherein the mixture includes the alcohol and the moist air; Calculate the specific heat capacity C of the mixture based on the mass m1 of the alcohol, the mass m2 of the moist air, the specific heat capacity C1 of the alcohol, and the specific heat capacity C2 of the moist air; Obtain the voltage Vcc of the heating element in the heating circuit and the resistance R of the heating element; The objective function relationship is determined based on the mass m of the mixture, the specific heat capacity C of the mixture, the voltage Vcc of the heating element, and the resistance R of the heating element.
[0041] The mixture being heated is a mixture of alcohol and humid air inside the shell. Therefore, it is necessary to calculate the mass (m) and specific heat capacity (C) of the mixture. Here, m = m1 + m2, where m is the mass of the mixture, m1 is the mass of the alcohol, and m2 is the mass of the humid air.
[0042] The specific heat capacity of alcohol, C1, is known to be 2.44 J / g·℃. The calculation method for the specific heat capacity of moist air, C2, can be found in other embodiments and will not be repeated here. The specific heat capacity C of the mixture can be calculated using the weighted average method: C = (m1*C1 + m2*C2) / (m1 + m2).
[0043] The heating circuit includes a heating element, such as a resistor. By energizing the resistor, it heats up, thereby heating the gas inside the space. The heat generated by electric heating is Q = Vcc² * t / R, and this heat is used to heat the mixture inside the casing: Q = m * C * ΔT. The voltage Vcc (a known value) is the voltage applied to the heating element, and the resistance R is the resistance of the heating element. With a fixed voltage Vcc, according to the formula P = Vcc² / R, the smaller the resistance R, the greater the heating power P, and the faster the temperature rises, but at the same time, the higher the current output capability required by the power supply. R is a constant. When the MCU needs to calculate the heating time t, it directly reads this preset R value from the program's memory. The MCU does not need to measure it because it is a known design parameter. m is the mass of the mixture, C is the specific heat capacity of the mixture, ΔT is the temperature change, and t is the heating time.
[0044] For example, based on the formulas Q=Vcc²*t / R and Q=m*C*ΔT, the objective function relationship can be determined as t=(m*C*ΔT*R) / Vcc². Where m is the mass of the mixture, C is the specific heat capacity of the mixture, ΔT is the temperature change, R is the resistance of the heating element, and Vcc is the voltage of the heating element.
[0045] Based on the above formula, the effect of different alcohol concentrations and different heating times on the temperature change ΔT of the internal space of the shell can be calculated. Assuming that the diffusion efficiency of alcohol increases by 40% for every 10°C increase in ΔT, for 50mg / 100mL of alcohol, a 10°C increase in the internal space temperature of the shell can compress the diffusion time to 75*0.60=45s, and a 20°C increase in the shell temperature can compress the diffusion time to 75*0.2=15s. Different target heating times t can be calculated according to the different alcohol concentrations detected and the different requirements of the detection interval.
[0046] For example, the target temperature rise ΔT 目标 The method to obtain this information can be: input the currently measured target alcohol concentration C. 上传 Given the preset detection interval (e.g., 30 seconds), the target temperature rise ΔT required to achieve the target detection interval is calculated by looking up a table and using a model based on physical laws (temperature increases accelerate diffusion). 目标 The target temperature rise ΔT 目标 Substituting the objective function into the equation t=(m*C*ΔT*R) / Vcc², the target heating time can be calculated. The MCU can control the heating circuit to stop heating after the target heating time, thus avoiding wasted electricity.
[0047] In some embodiments, the target alcohol concentration C is calculated. 上传Then, the MCU can use the communication circuit to transmit the target alcohol concentration C. 上传 Send to a mobile terminal or computer so that the mobile terminal or computer displays the target alcohol concentration C. 上传 .
[0048] As can be seen from the above, in the present application, the appropriate target heating time is dynamically calculated based on the target alcohol concentration detected this time, and the heating circuit is controlled to heat the internal space of the alcohol gas detection device for the target heating time, so that the temperature of the internal space is raised to a suitable temperature. This can reduce the waste of electricity by the heating circuit and suppress the alcohol residue level to an allowable range before the next detection.
[0049] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application. Figure 4 This is a schematic diagram of the structure of an alcohol gas detection device provided in one embodiment of this application. Figure 4 As shown, the alcohol gas detection device 4 of this embodiment includes: at least one processor 40 ( Figure 4 Only one is shown in the diagram), memory 41, and embedded program 42 stored in the memory 41 and executable on at least one processor 40. When the processor 40 executes the embedded program 42, it causes the alcohol gas detection device to perform the steps of the control method of the alcohol gas detection device.
[0050] The aforementioned alcohol gas detection device 4 may include, but is not limited to, a processor 40 and a memory 41. Those skilled in the art will understand that... Figure 4 This is merely an example of an alcohol gas detection device 4 and does not constitute a limitation on the alcohol gas detection device 4. It may include more or fewer components than shown, or combine certain components, or different components, such as input / output devices, network access devices, etc.
[0051] The processor 40 may be a Central Processing Unit (CPU), or it may be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor.
[0052] In some embodiments, the aforementioned memory 41 may be an internal storage unit of the alcohol gas detection device 4, such as the Flash or EEPROM inside the processor of the alcohol gas detection device 4. In other embodiments, the aforementioned memory 41 may also be an external storage device of the alcohol gas detection device 4, such as an external Flash or EEPROM equipped on the alcohol gas detection device 4. Furthermore, the aforementioned memory 41 may include both internal storage units and external storage devices of the alcohol gas detection device 4. The aforementioned memory 41 is used to store embedded applications, bootloaders, data, and other programs, such as the program code of the aforementioned embedded applications. The aforementioned memory 41 can also be used to temporarily store data that has been output or will be output. It should be noted that the information interaction and execution process between the above-mentioned devices / units are based on the same concept as the method embodiments of this application. For details on their specific functions and technical effects, please refer to the method embodiments section, and they will not be repeated here.
[0053] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the above device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0054] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0055] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0056] The above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.
Claims
1. A control method for an alcohol gas detection device, characterized in that, include: Acquire the target voltage value collected by the alcohol sensor and the humidity value collected by the humidity detection circuit; The target alcohol concentration in the internal space of the alcohol gas detection device is determined based on the target voltage value. Based on the target alcohol concentration and the volume of the internal space, determine the mass of alcohol in the internal space, and based on the volume of the internal space, determine the mass of humid air in the internal space. Obtain the specific heat capacity of alcohol, and determine the specific heat capacity of moist air based on the humidity value; Based on the mass of the alcohol, the mass of the humid air, the specific heat capacity of the alcohol, and the specific heat capacity of the humid air, determine the objective function relationship between the heating time of the heating circuit and the temperature change of the internal space; Based on the target temperature rise and the target function relationship, the target heating time is calculated, and the heating circuit is controlled to heat the internal space for the target heating time. The step of determining the objective function relationship between the heating duration of the heating circuit and the temperature change of the internal space based on the mass of the alcohol, the mass of the humid air, the specific heat capacity of the alcohol, and the specific heat capacity of the humid air includes: The mass of the mixture is calculated based on the mass of the alcohol and the mass of the humid air, the mixture comprising the alcohol and the humid air; The specific heat capacity of the mixture is calculated based on the mass of the alcohol, the mass of the moist air, the specific heat capacity of the alcohol, and the specific heat capacity of the moist air. Obtain the voltage and resistance of the heating element in the heating circuit; The objective function relationship is determined based on the mass of the mixture, the specific heat capacity of the mixture, the voltage of the heating element, and the resistance of the heating element. The objective function relationship is t = (m*C*ΔT*R) / Vcc 2 Where m is the mass of the mixture, C is the specific heat capacity of the mixture, ΔT is the temperature change, R is the resistance of the heating element, Vcc is the voltage of the heating element, and t is the heating time of the heating circuit.
2. The control method for the alcohol gas detection device as described in claim 1, characterized in that, The acquisition of the target voltage value collected by the alcohol sensor includes: The alcohol sensor is controlled to acquire voltage values in real time. When a start detection command is received, the maximum or average voltage value within the current time window is taken as the target voltage value.
3. The control method for the alcohol gas detection device as described in claim 2, characterized in that, The method further includes: When a start detection command is received, the minimum voltage value within the current time window is taken as the reference zero point; Determining the target alcohol concentration in the internal space of the alcohol gas detection device based on the target voltage value includes: The real-time alcohol concentration is calculated based on the target voltage value and the reference zero point. The residual alcohol concentration in the internal space is calculated based on the minimum voltage value within the current time window. The compensation concentration is calculated based on the residual alcohol concentration. The sum of the real-time alcohol concentration and the compensation concentration is taken as the target alcohol concentration.
4. The control method for the alcohol gas detection device as described in claim 1, characterized in that, The mass of the alcohol is equal to the product of the target alcohol concentration and the volume of the internal space divided by 100; the mass of the humid air is equal to the product of the mass of water vapor per cubic meter under standard atmospheric pressure and the volume of the internal space.
5. The control method for the alcohol gas detection device as described in claim 4, characterized in that, The specific heat capacity of the humid air C2 = (1-H)*Ca+H*Cv, where H is the humidity value, Ca is the preset specific heat capacity of dry air, and Cv is the preset specific heat capacity of water vapor.
6. The control method for the alcohol gas detection device as described in claim 1, characterized in that, The method further includes: The target alcohol concentration is transmitted to a mobile terminal or computer using a communication circuit, so that the mobile terminal or computer displays the target alcohol concentration.
7. An alcohol gas detection device, characterized in that, include: The memory and the processor, wherein the memory is internal memory or external memory of the processor; The memory stores program instructions that, when executed by the processor, cause the alcohol gas detection device to perform the control method of the alcohol gas detection device according to any one of claims 1 to 6.