Resistance measurement method and apparatus for vaporizer, electronic vaporization device, and storage medium
A resistance measurement method for a vaporizer includes: reading a resistance value of the vaporizer every first preset time to obtain a first preset number of first resistance values; starting the vaporizer and lasting for a second preset time; reading the resistance value of the vaporizer every third preset time to obtain a second preset number of second resistance values; and calculating an average of the first resistance value and the second resistance value as an initial resistance value of the vaporizer.
1 . A resistance measurement method for a vaporizer, comprising:
reading, from a processor, a resistance value of the vaporizer every first preset time before starting the vaporizer to obtain a first preset number of first resistance values;
after obtaining the first preset number of first resistance values, starting the vaporizer and lasting for a second preset time;
after starting the vaporizer, reading the resistance value of the vaporizer every third preset time to obtain a second preset number of second resistance values; and
calculating an average of all of the first resistance values and all of the second resistance values as an initial resistance value of the vaporizer.
2 . The method of claim 1 , further comprising, before starting the vaporizer and lasting for the second preset time:
determining a fluctuation range of the first resistance value; and
performing, if the fluctuation range of the first resistance value is within a preset fluctuation range: starting the vaporizer and lasting for a second preset time; and
determining that a state of the vaporizer is abnormal and generating corresponding alarm information if the fluctuation range of the first resistance value is not within the preset fluctuation range.
3 . The method of claim 2 , wherein determining the fluctuation range of the first resistance value comprises:
calculating a difference between adjacent first resistance values to obtain a plurality of differences; and
calculating the fluctuation range of the first resistance value according to the plurality of differences.
4 . The method of claim 2 , wherein a number of the first resistance values used to determine the fluctuation range of the first resistance value is a natural number greater than or equal to 3.
5 . The method of claim 1 , further comprising, after starting the vaporizer and lasting for the second preset time and before reading the resistance value of the vaporizer every third preset time to obtain the second preset number of second resistance values:
reading the resistance value of the vaporizer to obtain a third resistance; and
performing, if the third resistance is within a preset resistance range: reading the resistance value of the vaporizer every third preset time to obtain a second preset number of second resistance values; and
generating corresponding alarm information if the third resistance is not within the preset resistance range.
6 . The method of claim 5 , wherein the preset resistance range is set such that the third resistance corresponds to a resistance increase of 20 mΩ to 50 mΩ after the vaporizer continues to operate for the second preset time.
7 . The method of claim 1 , further comprising, before calculating the average of the first resistance value and the second resistance value as the initial resistance value of the vaporizer:
determining an average of the first resistance value and an average of the second resistance value; and
performing, if a difference between the average of the first resistance value and the average of the second resistance value is within a preset difference range: calculating an average of the first resistance value and the second resistance value as the initial resistance value of the vaporizer; and
generating corresponding alarm information if the difference between the average of the first resistance value and the average of the second resistance value is not within the preset difference range.
8 . The method of claim 1 , further comprising, before reading the resistance value of the vaporizer every first preset time to obtain the first preset number of first resistance values:
detecting a port level of a processor in an electronic vaporization device to which the vaporizer belongs; and
performing, upon detecting that the port level of the processor drops: reading a resistance value of the vaporizer every first preset time to obtain a first preset number of first resistance values.
9 . The method of claim 1 , further comprising:
acquiring a current ambient temperature through an ambient temperature sensor; and
calibrating a temperature parameter in a reference temperature resistance parameter of the vaporizer as the current ambient temperature.
10 . An electronic vaporization device, comprising:
a memory storing a computer program; and
a processor,
wherein, when the processor executes the computer program, the method of claim 1 is implemented.
11 . One or more non-transitory computer-readable storage mediums having processor-executable instructions stored thereon, wherein the processor-executable instructions, when executed, facilitate the method of claim 1 .
12 . A resistance measurement apparatus for a vaporizer, comprising:
a first resistance value acquisition module configured to read, from a processor, a resistance value of the vaporizer every first preset time before starting the vaporizer to obtain a first preset number of first resistance values;
a vaporizer starting module configured to start the vaporizer and last for a second preset time after the first preset number of first resistance values are obtained;
a second resistance value acquisition module configured to read the resistance value of the vaporizer every third preset time to obtain a second preset number of second resistance values after the vaporizer is started; and
a calculation module configured to calculate an average of all of the first resistance values and all of the second resistance values as an initial resistance value of the vaporizer.
13 . A resistance measurement method for a vaporizer, comprising:
reading a resistance value of the vaporizer every first preset time to obtain a first preset number of first resistance values;
starting the vaporizer and lasting for a second preset time;
reading the resistance value of the vaporizer every third preset time to obtain a second preset number of second resistance values;
calculating an average of all of the first resistance values and the second resistance values as an initial resistance value of the vaporizer; and
before reading the resistance value of the vaporizer every first preset time to obtain the first preset number of first resistance values:
detecting a port level of a processor in an electronic vaporization device to which the vaporizer belongs; and
performing, upon detecting that the port level of the processor drops: reading a resistance value of the vaporizer every first preset time to obtain a first preset number of first resistance values.
14 . The method of claim 13 , further comprising, before starting the vaporizer and lasting for the second preset time:
determining a fluctuation range of the first resistance value; and
performing, if the fluctuation range of the first resistance value is within a preset fluctuation range: starting the vaporizer and lasting for a second preset time; and
determining that a state of the vaporizer is abnormal and generating corresponding alarm information if the fluctuation range of the first resistance value is not within the preset fluctuation range.
15 . The method of claim 14 , wherein determining the fluctuation range of the first resistance value comprises:
calculating a difference between adjacent first resistance values to obtain a plurality of differences; and
calculating the fluctuation range of the first resistance value according to the plurality of differences.
16 . The method of claim 13 , further comprising, after starting the vaporizer and lasting for the second preset time and before reading the resistance value of the vaporizer every third preset time to obtain the second preset number of second resistance values:
reading the resistance value of the vaporizer to obtain a third resistance; and
performing, if the third resistance is within a preset resistance range: reading the resistance value of the vaporizer every third preset time to obtain a second preset number of second resistance values; and
generating corresponding alarm information if the third resistance is not within the preset resistance range.
17 . The method of claim 13 , further comprising, before calculating the average of the first resistance value and the second resistance value as the initial resistance value of the vaporizer:
determining an average of the first resistance value and an average of the second resistance value; and
performing, if a difference between the average of the first resistance value and the average of the second resistance value is within a preset difference range: calculating an average of the first resistance value and the second resistance value as the initial resistance value of the vaporizer; and
generating corresponding alarm information if the difference between the average of the first resistance value and the average of the second resistance value is not within the preset difference range.
18 . The method of claim 13 , further comprising:
acquiring a current ambient temperature through an ambient temperature sensor; and
calibrating a temperature parameter in a reference temperature resistance parameter of the vaporizer as the current ambient temperature.
19 . An electronic vaporization device, comprising:
a memory storing a computer program; and
a processor,
wherein, when the processor executes the computer program, the method of claim 13 is implemented.
20 . One or more non-transitory computer-readable storage mediums having processor-executable instructions stored thereon, wherein the processor-executable instructions, when executed, facilitate the method of claim 13 .