Electronic cigarette smoking detection method, detection module and electronic cigarette

By setting the reference value in the electronic cigarette and calibrating the sampling period based on the reference clock and the microphone clock, the problem of slow or false detection of smoking detection in standby state of electronic cigarettes is solved, and fast and accurate smoking detection and low power consumption are achieved.

CN114886169BActive Publication Date: 2025-05-02SHENZHEN WISDOM CORE TECH CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210328463.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-31
Publication Date
2025-05-02
Estimated Expiration
2042-03-31

AI Technical Summary

Technical Problem

Existing electronic cigarettes have slower smoking detection response or are incorrectly detected in standby state, which cannot meet the needs of fast and accurate smoking detection, and also has high power consumption requirements.

Method used

By presetting the reference value, calibrating the sampling period based on the reference clock and the microphone clock, the sampling period is adaptively adjusted to improve the response speed and accuracy of smoking detection.

Benefits of technology

It improves the response speed and detection accuracy of electronic cigarette smoking detection, meets the needs of fast and accurate smoking detection, and maintains high detection accuracy under low power consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114886169B_ABST
    Figure CN114886169B_ABST
Patent Text Reader

Abstract

The present invention discloses an electronic cigarette smoking detection method, a detection module and an electronic cigarette, the method comprising the following steps: S1: presetting a reference value, based on the reference value, calibrating the sampling period through a reference clock and a microphone clock; S2: based on the calibrated sampling period, counting the puffs through the reference clock and the microphone clock; S3: judging whether to smoke based on the puff count value and the smoking change threshold; S4: after the smoking is finished, calibrating the sampling period through the reference clock and the microphone clock based on the reference value. The technical solution of the present application can improve the response speed and detection accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electronic cigarettes, and in particular to an electronic cigarette smoking detection method, a detection module and an electronic cigarette. Background Art

[0002] Electronic cigarette products are small in size, and the battery capacity is generally not large, so the standby power consumption requirement is high. However, the electronic cigarette must have a smoking detection function in the standby state. When the user smokes, the smoking action must be detected quickly and accurately, and a wake-up signal must be generated to make the electronic cigarette immediately enter the smoking working mode. Therefore, the smoking detection circuit requires fast and accurate detection of the smoking action, while having strict requirements on power consumption.

[0003] When the user of an existing electronic cigarette smokes, the capacitance value of the capacitive microphone of the electronic cigarette changes, and then the corresponding microphone clock signal frequency changes, that is, the user's smoking action is detected by detecting the change in the microphone clock frequency. According to the low power consumption requirements of electronic cigarettes, after a long period of no smoking action, the electronic cigarette needs to enter a sleep state and turn on a low-power working mode. When the electronic cigarette changes due to changes in external environmental air pressure, or changes in the capacitance value of the capacitive microphone due to aging, etc., the reference microphone clock frequency will change, and the reaction to the smoking action detection will be slow or false detection will occur. Summary of the invention

[0004] To solve the above problems, the present invention provides an electronic cigarette smoking detection method, a detection module and an electronic cigarette, which can improve the response speed and detection accuracy. The specific technical solutions of the present invention are as follows:

[0005] An electronic cigarette smoking detection method comprises the following steps: S1: presetting a reference value, and based on the reference value, calibrating a sampling period by using a reference clock and a microphone clock; S2: based on the calibrated sampling period, counting puffs by using the reference clock and the microphone clock; S3: judging whether smoking has occurred based on the puff count value and a smoking change threshold; S4: after smoking is finished, calibrating the sampling period by using the reference clock and the microphone clock based on the reference value.

[0006] Furthermore, in step S1, based on the reference value, the sampling period is calibrated by the reference clock and the microphone clock, including the following steps: the first counter is counted by the microphone clock, and the second counter is counted by the reference clock; when the first counter counts to the reference value, the first counter and the second counter stop counting; the count value of the second counter is used as the sampling period.

[0007] Further, in step S2, based on the calibrated sampling period, the smoking count is performed by the reference clock and the microphone clock, including the following steps: the second counter is counted by the reference clock, and the first counter is counted by the microphone clock; when the second counter counts to the sampling period, the first counter and the second counter stop counting; the count of the first counter is used as the smoking count value.

[0008] Further, in step S3, judging whether smoking is taking place based on the smoking count value and the smoking change threshold value includes the following steps: performing data processing on the smoking count value, and then comparing the smoking count value after data processing with the smoking change threshold value; if the smoking count value after data processing is greater than the smoking change threshold value, judging that a smoking action is taking place; if the smoking count value after data processing is not greater than the smoking change threshold value, judging that no smoking action is taking place.

[0009] Furthermore, data processing is performed on the smoking count value, and then the processed smoking count value is compared with the smoking change threshold, including the following steps: comparing the smoking count value with a reference value, if the smoking count value is greater than the reference value, determining that no smoking action has been performed, if the smoking count value is not greater than the reference value, bitwise inverting the smoking count value, and then comparing the bitwise inverted smoking count value with the smoking change threshold.

[0010] Furthermore, when the electronic cigarette determines that a smoking action is in progress, it determines its own state. If the electronic cigarette is in working mode, it continues in working mode and enters the next sampling cycle. If the electronic cigarette is in sleep mode, it switches to working mode and enters the next sampling cycle.

[0011] Furthermore, in step S4, after the smoking action is determined to be performed, if the smoking action is not determined again within a set time, the smoking is terminated and the sleep mode is entered.

[0012] Further, in step S4, after smoking is finished and before entering the sleep mode, the sampling period is calibrated based on the reference value by the reference clock and the microphone clock, including the following steps: the first counter is counted by the microphone clock, and the second counter is counted by the reference clock; when the first counter counts to the reference value, the first counter and the second counter stop counting; the count value of the second counter is used as the sampling period.

[0013] A detection module, characterized in that the detection module executes the above-mentioned electronic cigarette smoking detection method, the detection module includes a reference clock unit, a microphone clock unit and a counter unit, the counter unit includes a first counter and a second counter, the reference clock unit is used to increase a fixed reference clock, and the microphone clock unit is used to generate a microphone clock of a corresponding frequency according to the capacitance value of the capacitive microphone of the electronic cigarette.

[0014] An electronic cigarette comprises a control module and the above-mentioned detection module.

[0015] Compared with the existing technology, the beneficial effect of the present invention lies in: the technical solution of the present application sets a fixed reference value, and then after setting the sampling period and smoking ends, based on the reference value, calibrates the sampling period through the reference clock and the microphone clock, so that the sampling period can be adaptively changed based on the change of the frequency of the microphone clock, thereby improving the detection accuracy and response speed. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 It is a schematic diagram of the process of the electronic cigarette smoking detection method of the present invention. DETAILED DESCRIPTION

[0017] Embodiments of the present invention are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions.

[0018] In the description of the present invention, it should be noted that directional words, such as the terms "center", "lateral", "longitudinal", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", etc., indicating directions and positional relationships are based on the directions or positional relationships shown in the accompanying drawings, which are only for the convenience of narrating the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and cannot be understood as limiting the specific scope of protection of the present invention.

[0019] In addition, the terms "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features. Therefore, the definition of "first" and "second" features can explicitly or implicitly include one or more of the features. In the description of the present invention, "at least" means one or more, unless otherwise clearly and specifically defined.

[0020] In the present invention, unless otherwise specified and limited, the terms "assemble", "connect", and "connection" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can also be a mechanical connection; it can be directly connected, or it can be connected through an intermediate medium, or the two elements can be internally connected. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0021] In the invention, unless otherwise specified and limited, a first feature being “above” or “below” a second feature may include that the first and second features are in direct contact, or may include that the first and second features are not in direct contact but are in contact through another feature between them. Moreover, a first feature being “above”, “below”, and “above” a second feature includes that the first feature is directly above or obliquely above the second feature, or simply means that the first feature is higher in level than the second feature. A first feature being “above”, “below”, and “below” a second feature includes that the first feature is directly below or obliquely below the second feature, or simply means that the first feature is lower in level than the second feature.

[0022] The following is a further description of the specific embodiments of the present invention in conjunction with the drawings of the specification, so that the technical solution and its beneficial effects of the present invention are clearer and more explicit. The following description of the embodiments with reference to the drawings is exemplary and intended to explain the present invention, but cannot be understood as limiting the present invention.

[0023] Refer to the attached Figure 1 It can be seen that an electronic cigarette smoking detection method includes the following steps:

[0024] Step S1: The electronic cigarette pre-sets a reference value, and based on the reference value, calibrates the sampling period through the reference clock and the microphone clock. The reference value is a pre-set value, which is mainly set according to the sampling period of actual needs. After the electronic cigarette is turned on, the sampling period is first obtained. The method for obtaining the sampling period for the first time is to use the first counter and the second counter to count based on the frequency of the reference clock and the microphone clock, respectively, to determine the first sampling period. That is, every time the reference clock sends a clock pulse, the second counter counts once, and every time the microphone clock sends a pulse, the first counter counts once. The counting speed of the first counter and the second counter is determined according to the clock pulse interval of the reference clock and the microphone clock. The clock pulse intervals of the reference clock and the microphone clock are different, and the counting speeds of the first counter and the second counter are different.

[0025] As one embodiment, in step S1, based on the reference value, the electronic cigarette calibrates the sampling period through the reference clock and the microphone clock, including the following steps: using the microphone clock to count the first counter, and using the reference clock to count the second counter; when the first counter counts to the reference value, the first counter and the second counter stop counting; the count value of the second counter is used as the sampling period. Preferably, the reference value is 1023, the microphone clock is used to count the first counter, and the reference clock is used to count the second counter, when the first counter counts to 1023, it stops counting, and the second counter also stops counting, at this time, the count value of the second counter is the sampling period.

[0026] Step S2: Based on the calibrated sampling period, the electronic cigarette counts the puffs through the reference clock and the microphone clock. After determining the sampling period, the electronic cigarette will enter the sleep mode to reduce power consumption and perform puff detection at the same time. Regardless of whether the electronic cigarette enters the sleep mode or not, the electronic cigarette will perform puff detection. After determining the sampling period, entering the sleep mode is to reduce power consumption.

[0027] As one embodiment, in step S2, based on the calibrated sampling period, the smoking count is performed by the reference clock and the microphone clock, including the following steps: the second counter is counted by the reference clock, and the first counter is counted by the microphone clock; when the second counter counts to the sampling period, the first counter and the second counter stop counting; the count of the first counter is used as the smoking count value. Even if the first counter and the second counter start counting at the same time, when the second counter counts to the sampling period, the first counter and the second counter stop counting, and at this time, the count value of the first counter is the smoking count value.

[0028] Step S3: Determine whether to smoke based on the smoking count value and the smoking change threshold. Whether to smoke is generally based on the sampling period, using the microphone clock for counting, and then judging the change in the microphone clock signal frequency based on the count value. In order to adapt to a variety of capacitive microphones, the smoking threshold VARY_THRE needs to be flexibly configured. When the smoking count value CNT_REAL of the sampling counter using the microphone clock for counting exceeds the smoking threshold VARY_THRE relative to the reference value CNT_INI (formula: (CNT_INI - CNT_REAL) / CNT_INI> VARY_THRE), it is detected as a smoking action. The smoking change threshold VARY_CNT is configured as the number of frequency change differences, the smoking threshold VARY_THRE is the percentage of change, the reference value is 1023, and VARY_THRE = VARY_CNT / 1023. If the reference value CNT_INI is a fixed value of 1023, the smoking detection formula: (CNT_INI - CNT_REAL) / CNT_INI> VARY_THRE is equivalent to (1023 - CNT_REAL) / 1023 > VARY_CNT / 1023. Eliminating the denominator 1023 on both sides of the formula simplifies it to (1023 - CNT_REAL) > VARY_CNT. Among them, (1023 - CNT_REAL) is represented by the difference DIFF_CNT, which is the difference between the reference value CNT_INI (1023) and the smoking count value CNT_REAL, that is, DIFF_CNT = 1023 - CNT_REAL = ~CNT_REAL. The judgment on whether the smoking change exceeds the smoking change threshold is simplified to the comparison of the bitwise inversion value of the smoking count value CNT_REAL and the smoking change threshold VARY_CNT. The detection method is very simple and the detection accuracy can reach 1 / 1023.

[0029] As one embodiment, in step S3, judging whether smoking is performed based on the smoking count value and the smoking change threshold value includes the following steps: performing data processing on the smoking count value, and then comparing the smoking count value after data processing with the smoking change threshold value, if the smoking count value after data processing is greater than the smoking change threshold value, that is, ~CNT_REAL>VARY_CNT, then it is judged that the smoking action is being performed. If the smoking count value after data processing is not greater than the smoking change threshold value, that is, ~CNT_REAL≤VARY_CNT, then it is judged that the smoking action is not being performed.

[0030] As one embodiment, the smoking count value is processed, and then the processed smoking count value is compared with the smoking change threshold, including the following steps: comparing the smoking count value with the reference value, if the smoking count value is greater than the reference value, it is judged that no smoking action is performed, if the smoking count value is not greater than the reference value, the smoking count value is bitwise inverted, and then the bitwise inverted smoking count value is compared with the smoking change threshold. Because when smoking, the capacitance value of the capacitive microphone increases, and the frequency of the corresponding microphone clock signal becomes smaller. Therefore, when smoking, CNT_REAL will be smaller than 1023, that is, DIFF_CNT is a positive number. If CNT_REAL is greater than 1023, it is directly judged as not smoking, without using the bitwise inversion value of CNT_REAL and the comparison of the smoking change threshold VARY_CNT. First, it is judged whether CNT_REAL is greater than 1023, because the microphone frequency decreases when smoking, so it is definitely not smoking if it is greater than 1023, which may be caused by blowing. Therefore, if CNT_REAL is greater than 1023, it is determined that the person is not smoking. If it is less than 1023, CNT_REAL is inverted and compared with the change threshold VARY_CNT.

[0031] As one of the embodiments, the data processing of the smoking count value is bitwise inversion. "One's complement", "inversion", and "bitwise inversion (~)" are three different concepts. Inversion: 0 becomes 1, 1 becomes 0; one's complement: the one's complement of a positive number is itself, and for a negative number, the sign bit remains unchanged and the other bits are inverted (0 becomes 1, 1 becomes 0); bitwise inversion (~): only applicable to binary numbers. That is, for each bit of the binary number, the original value of 1 becomes 0; the original value of 0 becomes 1. When performing a bitwise inversion operation, you must first understand the storage format of binary numbers in memory. Binary numbers are stored in the memory in the form of complement codes. The complement codes of positive and negative numbers are different. The complement and complement codes of positive numbers are themselves. The calculation steps of (~5) are as follows. The original code, the complement code and the complement code of ~5 are all 0000 0101. Take its inversion 1111 1010 (the sign bit is also inverted), the complement code: 1000 0101 (the sign bit remains unchanged, and the rest of the bits are inverted), the complement code: 1000 0110 (the complement code + 1), and the final result is 1000 0110, which is -6. The calculation steps of (~ -10) are as follows: the original code of -10: 1000 1010, the complement of -10: 1111 0101 (the sign bit remains unchanged), the complement of -10: 1111 0110 (the complement + 1), the complement negation: 0000 1001 (the sign bit is negated together), which happens to be a positive number. Then the original code can be obtained to get the final result. Since the complement, complement and original code of a positive number are the same, the final result is 00001001, which is exactly 9 in binary.

[0032] As one of the embodiments, when the electronic cigarette determines that a smoking action is in progress, it determines its own state. If the electronic cigarette is in working mode, it continues in working mode and enters the next sampling cycle. If the electronic cigarette is in sleep mode, it switches to working mode and enters the next sampling cycle.

[0033] Step S4: After the smoking is finished, the sampling period is calibrated by the reference clock and the microphone clock based on the reference value. The end of smoking means that the electronic cigarette suspends its operation, not that the electronic cigarette is turned off and stops working. According to the low power consumption requirement of the electronic cigarette, after a long period of no smoking, the electronic cigarette needs to enter a sleep state and turn on the low power consumption working mode. When the electronic cigarette changes due to the external environmental air pressure, or the capacitance value of the capacitive microphone changes due to aging, the microphone clock frequency will change. In order to eliminate the influence of these factors on smoking detection, ensure high detection accuracy, and prevent false detection. It is necessary to calibrate the smoking detection before sleeping according to the real-time microphone clock frequency to obtain the sampling period based on the changed microphone clock.

[0034] As one embodiment, in step S4, after determining that a smoking action is being performed, if no smoking action is being performed again within a set time, then smoking ends and the sleep mode is entered. In the smoking working mode, it is necessary to continuously detect whether the user is smoking. If the user does not smoke for a long time (which can be defined as 10 seconds or 20 seconds, etc. according to product requirements), it is determined that the current smoking ends.

[0035] As one of the embodiments, in step S4, after smoking is finished and before entering the sleep mode, the sampling period is calibrated based on the reference value by the reference clock and the microphone clock, including the following steps: the first counter is counted by the microphone clock, and the second counter is counted by the reference clock; when the first counter counts to the reference value, the first counter and the second counter stop counting; the count value of the second counter is used as the sampling period. In the state of smoking is finished, before entering the sleep mode, in order to ensure a high detection accuracy, the smoking detection is calibrated, that is, the sampling period is readjusted. The method of adjusting the sampling period is the same as the method of obtaining the sampling period for the first time. After the re-adjustment of the sampling period is completed, it will enter the sleep mode and detect in real time whether there is a new smoking action.

[0036] A detection module, characterized in that the detection module executes the above-mentioned electronic cigarette smoking detection method, the detection module includes a reference clock unit, a microphone clock unit and a counter unit, and the counter unit includes a first counter and a second counter. The reference clock unit is used to increase the fixed reference clock, and the microphone clock unit is used to generate a microphone clock of a corresponding frequency according to the capacitance value of the capacitive microphone of the electronic cigarette. When smoking, the capacitance value of the capacitive microphone increases, and the frequency of the corresponding microphone clock signal decreases.

[0037] An electronic cigarette comprises a control module and the above-mentioned detection module.

[0038] Compared with the existing technology, the beneficial effect of the present invention lies in: the technical solution of the present application sets a fixed reference value, and then after setting the sampling period and smoking ends, based on the reference value, calibrates the sampling period through the reference clock and the microphone clock, so that the sampling period can be adaptively changed based on the change of the frequency of the microphone clock, thereby improving the detection accuracy and response speed.

[0039] In the description of the specification, the description with reference to the terms "one embodiment", "preferably", "example", "specific example" or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention, and the schematic expressions of the above terms in this specification do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner. The connection method connected in the description of the specification has obvious effects and practical effectiveness.

[0040] Through the description of the above structure and principle, technicians in the relevant technical field should understand that the present invention is not limited to the above-mentioned specific implementation methods. Improvements and substitutions based on the present invention using the well-known technology in the field all fall within the protection scope of the present invention and should be defined by the claims.

Claims

1. An electronic cigarette smoking detection method, characterized in that: The method comprises the following steps: S1: Preset the reference value, and calibrate the sampling period based on the reference value through the reference clock and microphone clock; S2: Based on the calibrated sampling period, the cigarette count is performed using the reference clock and the microphone clock; S3: judging whether smoking is performed based on the smoking count value and the smoking change threshold; S4: After smoking is finished, the sampling period is calibrated based on the reference value through the reference clock and the microphone clock; Wherein, in step S3, judging whether smoking is being performed based on the smoking count value and the smoking change threshold value includes the following steps: performing data processing on the smoking count value, and then comparing the smoking count value after the data processing with the smoking change threshold value, if the smoking count value after the data processing is greater than the smoking change threshold value, then judging that the smoking action is being performed, and if the smoking count value after the data processing is not greater than the smoking change threshold value, then judging that the smoking action is not being performed; The method of performing data processing on the smoking count value and then comparing the processed smoking count value with the smoking change threshold value comprises the following steps: comparing the smoking count value with a reference value; if the smoking count value is greater than the reference value, determining that no smoking action has been performed; if the smoking count value is not greater than the reference value, bitwise inverting the smoking count value, and then comparing the bitwise inverted smoking count value with the smoking change threshold value.

2. The electronic cigarette smoking detection method according to claim 1, characterized in that: In step S1, based on the reference value, the sampling period is calibrated by the reference clock and the microphone clock, including the following steps: The first counter is counted by using the microphone clock, and the second counter is counted by using the reference clock; When the first counter counts to the reference value, the first counter and the second counter stop counting; The count value of the second counter is used as the sampling period.

3. The electronic cigarette smoking detection method according to claim 1, characterized in that: In step S2, based on the calibrated sampling period, the cigarette count is performed by using the reference clock and the microphone clock, including the following steps: The second counter is counted by using the reference clock, and the first counter is counted by using the microphone clock; When the second counter counts to the sampling period, the first counter and the second counter stop counting; The count of the first counter is used as the puff count value.

4. The electronic cigarette smoking detection method according to claim 1, characterized in that: When the electronic cigarette determines that a smoking action is in progress, it determines its own state. If the electronic cigarette is in working mode, it continues in working mode and enters the next sampling cycle. If the electronic cigarette is in sleep mode, it switches to working mode and enters the next sampling cycle.

5. The electronic cigarette smoking detection method according to claim 1, characterized in that: In step S4, after the smoking action is determined to be performed, if the smoking action is not determined again within a set time, the smoking is ended and the sleep mode is entered.

6. The electronic cigarette smoking detection method according to claim 5, characterized in that: In step S4, after smoking is finished and before entering the sleep mode, the sampling period is calibrated based on the reference value by using the reference clock and the microphone clock, including the following steps: The first counter is counted by using the microphone clock, and the second counter is counted by using the reference clock; When the first counter counts to the reference value, the first counter and the second counter stop counting; The count value of the second counter is used as the sampling period.

7. A detection module, characterized in that: The detection module executes the electronic cigarette smoking detection method according to any one of claims 1 to 6, and the detection module includes a reference clock unit, a microphone clock unit and a counter unit, the counter unit includes a first counter and a second counter, the reference clock unit is used to increase a fixed reference clock, and the microphone clock unit is used to generate a microphone clock of a corresponding frequency according to the capacitance value of the capacitive microphone of the electronic cigarette.

8. An electronic cigarette, characterized in that: The electronic cigarette comprises a control module and the detection module according to claim 7.

Citation Information

Patent Citations

  • Efficient clock calibration in electronic equipment

    CN101523726A

  • Oil leakage prevention electronic cigarette heating wire driving control circuit and method, chip and electronic cigarette

    CN111067154A