Disclosure of Invention
Therefore, it is necessary to provide a method, an electronic cigarette, a storage medium, and a device for counting smoking times of an electronic cigarette with more accurate statistics, in order to solve the problem that the conventional electronic cigarette is inaccurate in counting smoking times.
A statistical method for smoking times of an electronic cigarette comprises the following steps:
when the condition that the electronic cigarette starts to be smoked is detected, detecting the temperature of the atomization cavity;
determining a fluctuation temperature difference when the electronic cigarette starts to be smoked based on the detected temperature of the atomization cavity;
and when the fluctuation temperature difference meets the smoking temperature change condition, counting the smoking times of the electronic cigarette.
According to the electronic cigarette smoking frequency statistical method, the electronic cigarette smoking starting condition is detected, the smoking action of a user is pre-judged, when the electronic cigarette smoking starting condition is met, the user performs the preparation action of starting smoking, then the temperature in the atomization cavity is detected to obtain the fluctuation temperature difference, whether the user really performs the smoking action is further judged through whether the fluctuation temperature difference meets the smoking temperature change condition, so that the user is judged to perform the smoking action after the electronic cigarette smoking starting condition and the temperature change condition are met, the electronic cigarette smoking frequency is counted, and the counting accuracy is improved. Meanwhile, for the electronic cigarette with small air flow during smoking, the fluctuation temperature difference can be determined by detecting the temperature of the atomizing cavity, so that the smoking times can be accurately counted, the negative pressure does not need to be sensed, and the accuracy of smoking time counting is effectively improved.
In one embodiment, before it is detected that the electronic cigarette smoking start condition is satisfied, the method further includes the following steps:
after the electronic cigarette is electrified, the temperature in the atomizing cavity is heated to a preset temperature.
In one embodiment, when the condition that the electronic cigarette starts to be smoked is detected, the temperature in the atomizing cavity is differenced with the preset temperature to obtain the fluctuation temperature difference.
In one embodiment, the smoking temperature change condition is determined to be satisfied when the fluctuating temperature difference is greater than a maximum value of a predetermined normal temperature difference range.
In one embodiment, any one of the following two items is included:
when detecting that the ambient light intensity of the environment where the electronic cigarette holder is located is smaller than a preset light intensity threshold value, judging that the electronic cigarette starting smoking condition is met;
when the human body infrared signal is detected to exist in the preset distance range of the electronic cigarette holder, the electronic cigarette is judged to meet the condition that the electronic cigarette starts to be smoked.
In one embodiment, the electronic cigarette is determined to start smoking when it is detected that the ambient light intensity of the environment where the electronic cigarette holder is located is less than a predetermined light intensity threshold value, and the duration of the time when the ambient light intensity is less than the predetermined light intensity threshold value is within a normal smoking time range.
In one embodiment, a first interrupt signal is sent when the ambient light intensity of the environment where the electronic cigarette holder is located is detected to be less than a predetermined light intensity threshold value, and the electronic cigarette smoking starting condition is determined to be met when the first interrupt signal is received; and sending a second interrupt signal when detecting that the intensity of the ambient light of the environment where the electronic cigarette is located is greater than or equal to a preset light intensity threshold value, and judging that the electronic cigarette does not meet the smoking starting condition when receiving the second interrupt signal.
An electronic cigarette, comprising:
the temperature detection module is used for detecting the temperature of the atomization cavity when the condition that the electronic cigarette starts to be smoked is detected;
the fluctuation temperature difference detection module is used for determining the fluctuation temperature difference when the electronic cigarette starts to be smoked based on the detected temperature of the atomization cavity;
and the counting module is used for counting the smoking times of the electronic cigarette when the fluctuation temperature difference meets the smoking temperature change condition.
A storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the above-mentioned method.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method when executing the program.
Detailed Description
To facilitate an understanding of the invention, the invention will now be described more fully with reference to the accompanying drawings. Preferred embodiments of the present invention are shown in the drawings. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
It will be understood that when an element is referred to as being "secured to" another element, it can be directly on the other element or intervening elements may also be present. When an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may also be present.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
As shown in fig. 1, the method for counting smoking times of an electronic cigarette according to an embodiment of the present invention includes the following steps:
step S120, when the condition that the electronic cigarette starts to be smoked is detected, detecting the temperature of the atomization cavity;
the electronic cigarette smoking starting condition is detected to make a pre-judgment on electronic cigarette smoking, and if the electronic cigarette smoking starting condition is met, the user is indicated to perform a preparation action when smoking is started. And when the user smoked the electron cigarette, inhaled the outside air atomizing chamber through breathing in, because of the temperature of outside air is different with the temperature in the atomizing chamber, the temperature in the atomizing chamber can be influenced to the outside air of inhaling. Therefore, when the condition that the electronic cigarette starts to be smoked is met, the temperature of the atomization cavity is detected, and the smoking condition of the electronic cigarette can be accurately reflected.
Specifically, step S110 is also included before step S120.
Step S110, after the electronic cigarette is powered on, the temperature in the atomization cavity is heated to a preset temperature, and the atomization cavity is preheated. Optionally, the predetermined temperature is 220 degrees celsius.
Further, step S120 includes any one of step S121 and step S123:
step S121, when detecting that the ambient light intensity of the environment where the electronic cigarette holder is located is smaller than a preset light intensity threshold value, judging that the electronic cigarette smoking starting condition is met;
specifically, a light sensor is arranged at the cigarette holder of the electronic cigarette, and the light intensity of the environment where the cigarette holder is located is detected through the light sensor. When a user smokes, the mouth is close to the suction nozzle, light rays at the suction nozzle are shielded, and light intensity is weakened. When the ambient light intensity of the environment where the suction nozzle is located is smaller than the preset light intensity threshold value, the fact that the mouth of the user is close to the cigarette holder means that the user starts to prepare for smoking, and the condition that the electronic cigarette starts to be smoked is met.
Further, when it is detected that the intensity of ambient light of the environment where the electronic cigarette holder is located is smaller than a predetermined light intensity threshold value, and the duration of the intensity of the ambient light smaller than the predetermined light intensity threshold value is within a normal smoking time range, it is determined that the electronic cigarette smoking starting condition is met.
In the case where the duration of the ambient light intensity below the predetermined light intensity threshold is too long or too short to be acceptable for normal smoking, the user is considered likely to perform a puff only if the duration of the ambient light intensity below the predetermined light intensity threshold is within the normal smoking time period. Therefore, when the ambient light intensity and the duration smaller than the preset light intensity threshold both meet the requirements, the electronic cigarette smoking starting condition is judged to be met, other judgment that the ambient light intensity does not meet the requirements can be eliminated, and the judgment accuracy is improved. Alternatively, normal smoking time ranges from 1-15s, and a duration of less ambient light intensity of more than 15s or less than 1s is considered not to be the case during normal smoking.
And S123, when detecting that the human body infrared signal exists in the preset range of the electronic cigarette holder, judging that the electronic cigarette starts to be smoked, wherein the preset range of the electronic cigarette holder meets the smoking starting condition.
Specifically, set up infrared sensor at electron cigarette holder department, when user's mouth was close to the electron cigarette suction nozzle, infrared sensor alright detect human infrared signal, alright judge that the electron cigarette begins the suction condition.
Step S140, determining the fluctuation temperature when the electronic cigarette starts to be smoked based on the detected temperature of the atomization cavity;
the temperature in the atomizing chamber can change along with the change of surrounding environment, inhales when the user and inhales the atomizing chamber with the outside air after, the temperature of atomizing intracavity can appear great fluctuation, so confirm the fluctuation difference in temperature when satisfying the electron cigarette and begin the suction condition, alright response whether have after the user begins the smoking inhale the atomizing chamber with the outside air, whether produced the action of real suction.
Specifically, when the condition that the electronic cigarette starts to be smoked is detected to be met, the temperature of the atomizing cavity is differed from the preset temperature to obtain the fluctuation temperature difference. Namely, the temperature of the atomizing cavity is detected to deviate from the preset temperature, and the fluctuation temperature difference is obtained.
And step S160, counting the smoking times of the electronic cigarette when the fluctuation temperature difference meets the smoking temperature change condition.
The temperature of atomizing intracavity can change when the smoking, and when the fluctuation difference in temperature accorded with the smoking temperature change condition, the outside air was inhaled the atomizing chamber, alright judge that the user has carried out the suction action, then counts, counts out electron cigarette suction number of times.
Specifically, when the fluctuation temperature difference is larger than the maximum value of the predetermined normal temperature difference range, it is determined that the smoking temperature change condition is satisfied. After the electron cigarette circular telegram, through heating element with the temperature heating of atomizing intracavity to predetermined temperature, the temperature of atomizing intracavity is undulant about the predetermined temperature by a small margin when normally not smoking, and the temperature in atomizing intracavity can the decline by a wide margin deviate from the predetermined temperature when smoking electron cigarette, and the fluctuation difference in temperature can be greater than the maximum value of predetermined normal difference in temperature scope, alright judgement this moment satisfies the smoking temperature change condition, the temperature variation when according with the smoking. Optionally, the normal temperature difference range has a maximum value of 5 degrees celsius.
According to the electronic cigarette smoking frequency statistical method, the electronic cigarette smoking starting condition is detected, the smoking action of a user is pre-judged, when the electronic cigarette smoking starting condition is met, the user performs the preparation action of starting smoking, then the temperature in the atomization cavity is detected to obtain the fluctuation temperature difference, whether the user really performs the smoking action is further judged through whether the fluctuation temperature difference meets the smoking temperature change condition, so that the user is judged to perform the smoking action after the electronic cigarette smoking starting condition and the temperature change condition are met, the electronic cigarette smoking frequency is counted, and the counting accuracy is improved. Meanwhile, for the electronic cigarette with small air flow during smoking, the fluctuation temperature difference can be determined by detecting the temperature of the atomizing cavity, so that the smoking times can be accurately counted, the negative pressure does not need to be sensed, and the accuracy of smoking time counting is effectively improved.
In another embodiment, in step S121, a first interrupt signal is sent when it is detected that the intensity of ambient light in the environment where the electronic cigarette holder is located is less than a predetermined light intensity threshold, it is determined that the smoking start condition of the electronic cigarette is satisfied when the first interrupt signal is received, a second interrupt signal is sent when the intensity of ambient light in the environment where the electronic cigarette is located is greater than or equal to the predetermined light intensity threshold, and it is determined that the smoking start condition of the electronic cigarette is not satisfied when the second interrupt signal is received. When the mouth of a user is close to the cigarette holder, the light at the cigarette holder is shielded to reduce the intensity of ambient light to be less than a preset light intensity threshold value, the user is considered to start smoking to send out a first interrupt signal, the condition that the electronic cigarette starts smoking is met, and whether the fluctuation temperature difference meets the smoking temperature change condition or not can be further judged after the first interrupt signal is received, so that whether the user inhales air to bring the external air into the atomizing cavity or not is further judged. When the mouth of the user is far away from the cigarette holder, the light at the cigarette holder is not shielded, and when the ambient light intensity of the environment where the cigarette holder is located is increased to be larger than or equal to the maximum threshold value, the smoker is considered to stop smoking and send out a second interrupt signal, so that the condition that the electronic cigarette starts to be smoked is judged to be not met, and the next judgment is not needed.
As shown in fig. 2, anelectronic cigarette 100 in an embodiment of the present invention includes:
thetemperature detection module 10 is used for detecting the temperature of the atomization cavity when the electronic cigarette starts to be smoked;
the fluctuation temperaturedifference detection module 30 is used for determining the fluctuation temperature difference when the electronic cigarette starts to be smoked based on the detected temperature of the atomization cavity;
and thecounting module 50 is used for counting the smoking times of the electronic cigarette when the fluctuation temperature difference meets the smoking temperature change condition.
Above-mentionedelectron cigarette 100 is throughtemperature detection module 10, undulant difference intemperature detection module 30 andcount module 50 statistics suction number of times, andtemperature detection module 10 detects the temperature in atomizing chamber when satisfying the electron cigarette and begin the suction condition, then detects undulant difference in temperature through undulant difference intemperature detection module 30, counts the electron cigarette suction number of times throughcount module 50 when undulant difference in temperature satisfies smoking temperature variation condition at last. So, when satisfying the electronic cigarette and starting suction condition and smoking temperature variation condition in the testing process, whether can accurately judge the user through undulant difference in temperature and carried out the suction action, to the less electronic cigarette of air flow, need not count the suction number of times through atmospheric pressure, avoid because the less difficult statistical error that produces of response of atmospheric pressure, improve the rate of accuracy of statistics.
Further, theelectronic cigarette 100 further includes a display module 70 for displaying the smoking times of the electronic cigarette, so that the user can intuitively obtain the information of the smoking times of the electronic cigarette.
A storage medium on which a computer program is stored, the program being operable when executed by a processor to perform the above method, the computer readable storage medium comprising ROM, RAM, a magnetic disk, an optical disk, etc.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the steps of the method being performed when the program is executed by the processor.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.