CN110897206A - Electronic cigarette mouth number statistical method, control device, equipment and storage medium - Google Patents

Electronic cigarette mouth number statistical method, control device, equipment and storage medium Download PDF

Info

Publication number
CN110897206A
CN110897206A CN201911054548.3A CN201911054548A CN110897206A CN 110897206 A CN110897206 A CN 110897206A CN 201911054548 A CN201911054548 A CN 201911054548A CN 110897206 A CN110897206 A CN 110897206A
Authority
CN
China
Prior art keywords
resistance
value
average value
electronic cigarette
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911054548.3A
Other languages
Chinese (zh)
Inventor
钟诚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Yunxi Intelligence Co ltd
Original Assignee
Shenzhen Yunxi Intelligence Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Yunxi Intelligence Co ltd filed Critical Shenzhen Yunxi Intelligence Co ltd
Priority to CN201911054548.3A priority Critical patent/CN110897206A/en
Publication of CN110897206A publication Critical patent/CN110897206A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Control Of Resistance Heating (AREA)

Abstract

The invention discloses an electronic cigarette mouth number counting method, a control device, equipment and a storage medium, which are used for counting the electronic cigarette mouth number, wherein the method comprises the following steps: acquiring a first resistance average value of the current period of the resistance circular queue; comparing the first resistance average value with an initial resistance average value; and if the first difference value of the first resistance value average value larger than the initial resistance value average value is larger than a preset counting threshold value, adding one to the number of the electronic cigarette mouths. According to the rising amplitude of the resistance average value in the current period circular queue compared with the initial resistance average value, the basis for judging the number of ports is used, the port counting accuracy can be improved, and the error is smaller.

Description

Electronic cigarette mouth number statistical method, control device, equipment and storage medium
Technical Field
The invention relates to the technical field of intelligent smoking set, in particular to an electronic cigarette mouth number statistical method, a control device, equipment and a storage medium.
Background
With the environmental protection concept being more and more deeply focused and the heating non-combustion electronic smoking set being more and more popular, the existing statistical function of the number of gaps of products of a plurality of brands in the field of low-temperature heating non-combustion electronic smoking is ensured that a user can not excessively smoke only by limiting the smoking time to a relatively short time, even if the statistical function of the number of gaps is provided, the applied smoking gap number detection method mainly detects smoking actions by detecting whether the temperature is reduced to a certain extent or not through a temperature sensor, but the method for counting the number of gaps is not high in sensitivity, obviously uneconomical and large in statistical error.
Disclosure of Invention
The invention mainly aims to provide an electronic cigarette mouth number statistical method, a control device, equipment and a storage medium, aiming at realizing high-precision statistics by changing the control method, not adding an additional temperature sensor, and only detecting smoking actions according to the resistance value change of a system during smoking.
The invention provides a statistical method of electronic cigarette mouth number,
acquiring a first resistance value average value of a current period of a resistance value circular queue, wherein the resistance value circular queue is a queue of the resistance values of the heating elements of the electronic cigarette and is periodically updated;
comparing the first resistance average value with an initial resistance average value, wherein the initial resistance average value is a resistance average value set according to a preset rule;
and if the first difference value of the first resistance value average value larger than the initial resistance value average value is larger than a preset counting threshold value, adding one to the number of the electronic cigarette mouths.
Further, before the step of comparing the first average value of the resistance value with the initial average value of the resistance value, the method includes:
judging whether the first resistance average value is less than or equal to a second resistance average value of the resistance circular queue in the previous period or not;
if so, updating the first resistance average value to a new initial resistance average value, and generating a command for stopping executing the comparison between the first resistance average value and the initial resistance average value;
and if not, generating a command for executing the comparison between the first resistance average value and the initial resistance average value.
Further, if the first difference that the current resistance average value is greater than the initial resistance average value is greater than a preset counting threshold, after the step of adding one to the number of electronic cigarette mouths, the method includes:
recording the peak value in the average value of the resistance values of the resistance value circular queue which continuously rises after the current period;
comparing the third resistance average value of the resistance circular queue after the period corresponding to the peak value with the peak value in sequence;
and when the difference value of the peak value larger than the third resistance value average value is larger than a preset second difference value, clearing the resistance values in the circular queue, and entering the flow of counting the number of the electronic cigarette mouths at the next time.
Further, if the first difference that the first resistance average value is greater than the initial resistance average value is greater than a preset counting threshold, after the step of adding one to the number of electronic cigarette mouths, the method includes:
judging whether the current accumulated port number reaches a preset closing threshold value;
if yes, the heating body is closed to heat, and the current cigarette is sucked.
Further, if the first difference that the first resistance average value is greater than the initial resistance average value is greater than a preset counting threshold, after the step of adding one to the number of electronic cigarette mouths, the method includes:
judging whether the current heating time reaches the preset total heating time or not;
if yes, the heating body is closed to heat, and the current cigarette is sucked.
Further, before the step of obtaining the first average value of the resistance value of the current period of the resistance value circular queue, the method includes:
acquiring a signal for opening the electronic cigarette;
and preheating the electronic cigarette according to a preset heating resistance value.
Further, the step of preheating the electronic cigarette according to a preset heating resistance value includes: heating the electronic cigarette according to the heating resistance value in a first preset time period;
adjusting the temperature of the electronic cigarette in a PID mode;
and when the temperature reaches a preset requirement, sending a smoking reminding signal, and entering the flow of counting the number of the electronic cigarette mouths.
The application also provides an electron cigarette controlling means, includes: the electronic cigarette heating unit comprises an obtaining unit, a judging unit and a control unit, wherein the obtaining unit is used for obtaining a first resistance average value of a current period of a resistance circular queue, the resistance circular queue is a queue of the resistance of the electronic cigarette heating unit, and the resistance circular queue is updated periodically;
the comparison unit is used for comparing the first resistance average value with an initial resistance average value, wherein the initial resistance average value is a resistance average value set according to a preset rule;
and the accumulation unit is used for accumulating and adding one to the number of the electronic cigarette mouths if a first difference value of the first resistance average value larger than the initial resistance average value is larger than a preset counting threshold value.
The application also provides an electronic cigarette device, which comprises a memory and a processor, wherein the memory stores a computer program, and the processor realizes the steps of any one of the methods when executing the computer program.
The present application also proposes a computer-readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method of any of the above.
The electronic cigarette mouth number statistical method, the control device, the equipment and the storage medium provided by the invention have the following beneficial effects:
the method comprises the steps of adopting a heating body material with good forward linear coefficient as a heating body, obtaining temperature change by detecting the change of resistance values and combining a TCR algorithm, adopting a PID control method to monitor the temperature in the electronic cigarette, periodically updating the resistance values by an MCU (micro control unit) through establishing a circular queue, enqueuing the latest resistance values, replacing the oldest numerical value in the queue, recalculating the conduction duration and the closing duration of a heating channel of the heating body according to the updated resistance values, conducting and closing operation repeatedly in the total heating duration range, and taking the rising amplitude of the average value of the resistance values in the current periodic circular queue compared with the average value of the initial resistance values as the basis of fracture number judgment, so that the statistical accuracy of the number of the fractures can be improved, and the error is smaller.
Drawings
FIG. 1 is a schematic flow chart illustrating a method for counting the number of electronic cigarette holes according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an electronic cigarette control device according to an embodiment of the present invention;
fig. 3 is a block diagram illustrating a structure of an electronic smoking device according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that all directional indicators (such as upper, lower, left, right, front and rear … …) in the embodiment of the present invention are only used to explain the relative position relationship between the components, the movement situation, etc. in a specific posture (as shown in the drawings), and if the specific posture is changed, the directional indicator is changed accordingly, and the connection may be a direct connection or an indirect connection.
In addition, the descriptions related to "first", "second", etc. in the present invention are only for descriptive purposes and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
Referring to fig. 1, a flow chart of a method for counting the number of electronic cigarette holes according to an embodiment of the present invention is shown;
fig. 2 is a schematic structural diagram of an electronic cigarette control device according to an embodiment of the present invention;
fig. 3 is a block diagram illustrating a structure of an electronic smoking device according to an embodiment of the present invention.
An electronic cigarette mouth counting method comprises the following steps:
step S1: acquiring a first resistance value average value of a current period of a resistance value circular queue, wherein the resistance value circular queue is a queue of the resistance values of the heating elements of the electronic cigarette and is periodically updated;
step S2: comparing the first resistance average value with an initial resistance average value, wherein the initial resistance average value is a resistance average value set according to a preset rule;
step S3: and if the first difference value of the first resistance value average value which is larger than the initial resistance value average value is larger than a preset counting threshold value, adding one to the number of the electronic cigarette mouths.
As the step S1, the obtaining method may be implemented by hardware and software, first, a ceramic heating rod with good forward linear Coefficient is used as a heating element, a Resistance value detection module is used to detect a real-time Resistance value Of the ceramic heating rod, the real-time Resistance value is converted into a Temperature according to a TCR (Temperature Coefficient Of Resistance) operation method, a PID (Proportion Integration Differentiation-integral-Differentiation controller) is used to regulate and control the Temperature, a periodically updated Resistance value is stored in a cyclic queue in the MCU to form a Resistance value cyclic queue, and the MCU then obtains a first average value Of the Resistance values Of the current period from the Resistance value cyclic queue; at first, the MCU receives a starting signal, the starting signal is output at full power, the resistance value is fully conducted, namely the resistance value stored in the resistance value circulating queue is the maximum value in the preheating stage, and all the values are consistent.
As shown in steps S2 and S3, the predetermined rule and the predetermined count threshold may be programmed and imported by a computer, a weighted recursive average filtering method is used to calculate the average value of the queue elements, the first average value of the resistance values in the resistance value circular queue is compared with the initial average value of the resistance values, and when the first difference is greater than the predetermined count threshold, the number of the ports is added up by one.
In the embodiment, a ceramic heating rod with good forward linear coefficient is used as a heating body, a resistance value detection module is used for detecting the real-time resistance value of the ceramic heating rod, the real-time resistance value is converted into temperature according to a TCR operation method, the temperature inside the electronic cigarette is monitored, a temperature sensor is abandoned, and the cost is reduced; after the electronic cigarette is sucked, the interior of the electronic cigarette is inevitably cooled, proportional integral differentiation is carried out by adopting a PID control method, finally, duty ratio is output to regulate and control resistance value so as to control temperature, a circular queue is established and a real-time resistance value is queued, a first resistance value average value in the current period in the real-time monitored circular queue is compared with an initial resistance value, and if the rising amplitude reaches a preset counting threshold value, the number of the mouths is added by one; accumulating the number of the mouths, and when the accumulated number of the mouths reaches a preset closing threshold value or the total heating time reaches the total heating time, closing the power supply and ending the heating work of the current electronic cigarette; the rising amplitude of the resistance value is used as the basis for judging the port number, the port number statistical accuracy is greatly improved, and the error is smaller.
In other embodiments, an HIC thick-film heating tube, a metal heating rod, a ceramic heating sheet and a metal heating sheet can be used as the heating body.
In one embodiment, after receiving the start signal, the MCU detects whether the power voltage is under-voltage, and if so, turns off the output and performs a fault prompt; and reading the resistance value of the heating element and judging whether the heating path is abnormal or not, if so, closing the output and carrying out fault prompt.
In one embodiment, by adding the power management module, after a user operates a key to start heating, the functional key module gives an instruction for starting heating to the MCU user, after receiving the heating instruction, the MCU detects whether the voltage of the battery is under-voltage or not, then detects whether the resistance value of the heating element is abnormal or not, and whether the heating path is normal or not, and if the resistance value is abnormal, the MCU gives an alarm through an LED.
In one embodiment, after the heating is started, whether the heating is finished is detected, if the heating is finished, the average value of the first resistance value of the current period is read, whether the output of the output circuit is abnormal is detected, and if the output is abnormal, an alarm is given and the heating is quitted; and if the current cycle of the heating element is normal, the heating element heating channel is closed, the MCU sends a signal, periodically updates the resistance value, stores the latest resistance value into the cyclic queue, replaces the oldest resistance value in the cyclic queue, calculates the average value of the first resistance value of the current cycle of the cyclic queue in real time and records the average value of the second resistance value calculated in the last cycle.
In an embodiment, before the step S2 of comparing the first resistance average value with the initial resistance average value, the method includes:
s201, judging whether the first resistance average value is less than or equal to a second resistance average value of the resistance circular queue in the previous period;
s202, if yes, updating the first resistance average value into a new initial resistance average value, and generating a command for stopping executing the comparison between the first resistance average value and the initial resistance average value;
and S203, if not, generating a command for executing the comparison between the first resistance average value and the initial resistance average value.
As described in the above steps S201 to S203, the resistance values in the MCU circular queue are periodically updated, the MCU reads the first average resistance value of the current period and the second average resistance value of the previous period in the resistance value circular queue, and determines after comparing the first average resistance value with the second average resistance value in the above step S201, step S202 is performed, if the first average resistance value is smaller than the second average resistance value, the first average resistance value is set as the initial average resistance value of the next period, and steps S201 and S202 are repeated until the first average resistance value of the current period is larger than the average resistance value of the previous period, the average resistance value of the previous period is set as the initial average resistance value, and step S203 is performed, that is, the command of comparing the first average resistance value with the initial average resistance value is generated.
In one embodiment, if the first difference that the first resistance average value is greater than the initial resistance average value is greater than the predetermined count threshold, after the step S3 of adding one to the number of electronic cigarette mouths, the method includes:
s301, recording a peak value in the average value of the resistance values of the resistance value circular queue which continuously rises after the current period;
s302, sequentially comparing the third resistance average value of the resistance circular queue after the period corresponding to the peak value with the peak value;
and S303, when the difference value of the peak value larger than the average value of the third resistance values is larger than a preset second difference value, clearing the resistance values in the circular queue, and entering the flow of counting the number of the electronic cigarette mouths at the next time.
As described in the foregoing steps S301 to S303, the MCU periodically updates the resistance value, and due to the characteristics of PID for temperature regulation and good forward linear coefficient of the HIC thick film heating tube, when the pumping force is large, the temperature drop amplitude is large, and in order to quickly raise the temperature, the resistance value is rapidly increased, and when the amplitude of the first resistance value average value of the circular queue in the current period, which is increased compared with the initial resistance value average value, exceeds the counting threshold, the number of ports is added by one; after the port number is accumulated and added by one, the average value of the resistance values of the circular queue is still in an ascending stage, and even if the difference value between the average value of the resistance values and the initial resistance value exceeds a counting threshold value, the counting is not repeated; performing step S301 and step S302, when the peak value is greater than the difference of the third resistance average value of the resistance circular queue but does not reach the preset second difference value, even if the resistance average value of the resistance circular queue rises again and the rising amplitude reaches the preset counting threshold value, no more counting is repeated; and when the difference value of the peak value larger than the average value of the third resistance values is larger than a preset second difference value, clearing the resistance values in the circular queue, and entering the flow of counting the number of the electronic cigarette mouths at the next time.
In an embodiment, if the first difference that the first resistance average value is greater than the initial resistance average value is greater than the predetermined count threshold, after the step S3 of adding one to the number of electronic cigarette mouths, the method includes:
s304, judging whether the current accumulated port number reaches a preset closing threshold value;
and S305, if so, closing the heating body to heat and finishing the current smoking of the cigarette.
As described in steps S304 and S305, the closing threshold is set by the developer at the previous stage of programming through the computer, and if the system detects that the current number of ports has not reached the preset closing threshold, steps S1 to S3 are repeated; the limitation of the number of the mouths can avoid excessive smoking.
In an embodiment, if the first difference that the first resistance average value is greater than the initial resistance average value is greater than the predetermined count threshold, after the step S3 of adding one to the number of electronic cigarette mouths, the method includes:
s306, judging whether the current heating time reaches the preset total heating time;
and S307, if so, closing the heating body to heat and finishing the current smoking of the cigarette.
As described in the above steps S306 and S305, the total heating time period is already set by the developer in the earlier stage of programming through the computer, and if the system detects that the current heating time period has not reached the preset total heating time period, the above steps S1 to S3 are repeated; the limitation of the total heating time can avoid excessive smoking.
In this embodiment, whether to end the heating of the current cigarette is judged through two different judging modes, so that the use safety and smoking of the electronic cigarette device are ensured not to be excessive.
In one embodiment, the step S1 of obtaining the first average value of the resistance value of the current cycle of the resistance value circular queue includes:
s101, acquiring a signal for opening the electronic cigarette;
and S102, preheating the electronic cigarette according to a preset heating resistance value.
As described in the above steps S101 and S102, after the MCU obtains the signal that the electronic cigarette is turned on, the heating element outputs full power to make the temperature reach the smokable temperature as soon as possible, and the temperature rises with the rise of the resistance value.
In an embodiment, the step S102 of preheating the electronic cigarette according to a preset heating resistance value includes: heating the electronic cigarette according to the heating resistance value in a first preset time period; adjusting the temperature of the electronic cigarette in a PID mode; when the temperature reaches the preset requirement, a 'smoking available' reminding signal is sent out, and the flow of electronic cigarette mouth number statistics is entered.
In the embodiment, a ceramic heating rod with good forward linear coefficient is used as a heating body, a resistance value detection module is used for detecting the real-time resistance value of the ceramic heating rod, the real-time resistance value is converted into temperature according to a TCR operation method, the temperature inside the electronic cigarette is monitored, a temperature sensor is abandoned, and the cost is reduced; after the smoking, no matter the strength, the inside of the electronic cigarette is liable to be cooled, a PID control method is adopted to control the temperature, the MCU periodically updates the resistance value, the latest resistance value is queued, the oldest value of the queue is replaced, the first resistance value average value of the resistance value circular queue of the current period monitored in real time is compared with the initial resistance value average value, and if the rising amplitude reaches the preset threshold value, the number of the ports is added by one; recalculating the conduction time of the heating passage of the heating element and the closing time of the heating passage of the heating element according to the updated resistance value, performing repeated conduction and closing operation within the range of the total heating time, accumulating the opening number, and turning off the power supply to finish the heating work of the current electronic cigarette when the accumulated opening number reaches a preset closing threshold or the total heating time reaches the total heating time; the rising amplitude of the duty ratio is used as a basis for judging the number of ports, the statistical accuracy of the number of ports is greatly improved, and the error is smaller.
Referring to fig. 2, the present application also provides an electronic cigarette control device, including:
the obtaining unit 10 is configured to obtain a first resistance average value of a current period of a resistance circular queue, where the resistance circular queue is a queue of resistances of the electronic cigarette heater, and the resistance circular queue is updated periodically;
a comparing unit 20, configured to compare the first average resistance value with an initial average resistance value, where the initial average resistance value is an average resistance value set according to a preset rule;
and the accumulation unit 30 is configured to add one to the number of electronic cigarette mouths if a first difference value that the first resistance average value is greater than the initial resistance average value is greater than a preset counting threshold.
In the obtaining unit 10, the obtaining method may be implemented by hardware and software, and includes firstly using a ceramic heating rod with a good forward linear coefficient as a heating element, detecting a real-time resistance value of the ceramic heating rod by using a resistance value detection module, converting the real-time resistance value into a temperature according to a TCR operation method, regulating and controlling the temperature by using PID, storing a periodically updated resistance value into a circulation queue in the MCU to form a resistance value circulation queue, and obtaining a first resistance value average value of a current period from the resistance value circulation queue by the MCU.
In the comparing unit 20, the preset rule and the preset counting threshold may be programmed and imported by a computer, a weighted recursive average filtering method is used to calculate a duty ratio average value, and the first resistance value average value in the resistance value circular queue of the current period is compared with the initial resistance value average value.
In the above-mentioned accumulation unit 30, when the first difference value that the first resistance average value in the resistance circular queue of the current period is greater than the initial resistance average value is greater than the preset counting threshold, the number of ports is accumulated by one; if the first difference value does not reach the preset counting threshold value, returning to the obtaining unit again, comparing the latest updated resistance value average value in the resistance value circular queue with the resistance value average value of the last period in the comparing unit, and finally accumulating in the accumulating unit; when the number of the openings accumulated in the accumulation unit reaches a preset closing threshold value, the power output to the heating element is stopped, and the electronic smoking set is closed.
In other embodiments, a HIC thick film heating tube, a metal heating rod, a metal heating sheet, a ceramic heating sheet, or the like may be used as the heating element.
In one embodiment, the electronic cigarette control device further includes:
the first judging unit is used for judging whether the first resistance average value is less than or equal to a second resistance average value of the resistance circular queue in the previous period or not;
a first generating unit, if yes, updating the first resistance average value to a new initial resistance average value, and generating a command for stopping executing the step of comparing the first resistance average value with the initial resistance average value; if not, generating a command for executing the comparison between the first resistance average value and the initial resistance average value.
In this embodiment, due to the characteristic of PID controlling temperature, the resistance value in the MCU cycle queue is periodically updated, the MCU reads the first average value of the resistance value in the current period and the second average value of the resistance value in the previous period in the resistance value cycle queue, the first judgment unit compares the first resistance average value with the second resistance average value and then judges, the first generation unit generates a command, if the first resistance average value is smaller than the second resistance average value, setting the first resistance average value as the initial resistance average value of the next period, repeating the above-mentioned first judging unit and generating unit until the first resistance average value of the current period is larger than the resistance average value of the previous period, setting the resistance average value of the previous period as the initial resistance average value, the first generation unit generates a command to execute the "comparison of the first resistance average value with the initial resistance average value".
In one embodiment, the electronic cigarette control device further includes:
the recording unit is used for recording the peak value in the average value of the resistance values of the resistance value circular queue which continuously rises after the current period;
the peak value comparison unit is used for sequentially comparing the third resistance value average value of the resistance value circular queue after the period corresponding to the peak value with the peak value;
and the second judgment unit is used for emptying the resistance values in the circular queue when the difference value of the peak value larger than the third resistance value average value is larger than a preset second difference value, and entering the flow of counting the number of the electronic cigarette mouths at the next time.
In the embodiment, the MCU periodically updates the resistance value, and due to the characteristics of PID control and the good forward linear coefficient of the HIC thick film heat pipe, when the rising amplitude of the first resistance value average value of the circular queue in the current period exceeds the counting threshold compared to the initial resistance value average value, the port number is added by one; after the port number is accumulated and added by one, the average value of the resistance values of the resistance value circular queue is still in an ascending stage, and even if the difference value between the average value of the resistance values and the initial resistance value exceeds a counting threshold value, the counting is not repeated; the peak value comparison unit compares the data recorded in the recording unit, then the second judgment unit judges, and when the difference value of the peak value larger than the third resistance value average value of the resistance value circular queue does not reach the preset second difference value, even if the resistance value average value of the resistance value circular queue rises again and the rising amplitude reaches the preset counting threshold value, the counting is not repeated; and when the difference value of the peak value larger than the average value of the third resistance values is larger than a preset second difference value, clearing the resistance values in the circular queue, and entering the flow of counting the number of the electronic cigarette mouths at the next time.
In one embodiment, the electronic cigarette control device further includes:
the third judging unit is used for judging whether the current accumulated port number reaches a preset closing threshold value;
if so, the second generation means issues a command to turn off the heating element to heat and end the current cigarette.
In this embodiment, the closing threshold is already set by the developer at an earlier stage when the developer writes a program through a computer, and if the third determining unit determines that the current port number does not reach the preset closing threshold, the comparing unit repeatedly compares the values in the obtaining unit, and the port number is added by one when the current port number reaches the preset counting threshold; the limitation of the number of the mouths can avoid excessive smoking.
In one embodiment, the electronic cigarette control device further includes:
the fourth judging unit is used for judging whether the current heating time reaches the preset total heating time;
and a third generating unit for closing the heating body and heating to finish the current smoking of the cigarette if the cigarette is smoked.
In this embodiment, the total heating time period is already set by a developer in an earlier stage when a program is written by a computer, and if the third determining unit determines that the current heating time period does not reach the preset total heating time period, the comparing unit repeatedly compares the values in the obtaining unit, and the number is cumulatively increased by one when the preset counting threshold is reached; the limitation of the number of the mouths can avoid excessive smoking.
In this embodiment, whether to end the heating of the current cigarette is judged through two different judging modes, so that the use safety and smoking of the electronic cigarette device are ensured not to be excessive.
In one embodiment, the electronic cigarette control device further includes:
the signal acquisition unit is used for acquiring a signal for opening the electronic cigarette;
and the heating unit preheats the electronic cigarette according to a preset heating resistance value.
In this embodiment, after the MCU obtains the signal that the electronic cigarette is turned on, in order to make the temperature reach the temperature that can be sucked as soon as possible, the heating element performs full power output, and the temperature rises with the rise of the resistance value.
In one embodiment, the electronic cigarette control device further includes:
the signal sending unit is used for heating the electronic cigarette according to the heating resistance value in a first preset time period; adjusting the temperature of the electronic cigarette in a PID mode; when the temperature reaches the preset requirement, the signal sending unit sends a smoking reminding signal and enters the flow of counting the number of the electronic cigarette mouths.
With reference to fig. 3, the present application further proposes an electronic cigarette device comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the above methods when executing the computer program. The computer designed processor described above is used to provide computing and control capabilities. The memory comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the nonvolatile storage medium. The database is used for storing periodically updated resistance values and temporary data, such as initial resistance value average values, first resistance value average values, second resistance value average values, third resistance value average values, peak values and the like. The computer program is executed by a processor to realize an electronic cigarette number statistical method.
The processor executes the electronic cigarette mouth number statistical method and comprises the following steps: acquiring a first resistance value average value of a current period of a resistance value circular queue, wherein the resistance value circular queue is a queue of the resistance values of the heating elements of the electronic cigarette and is periodically updated; comparing the first resistance average value with an initial resistance average value, wherein the initial resistance average value is a resistance average value set according to a preset rule; and if the first difference value of the first resistance value average value which is larger than the initial resistance value average value is larger than a preset counting threshold value, adding one to the number of the electronic cigarette mouths.
In an embodiment, the step of comparing the first average value of the resistance value with the initial average value of the resistance value includes: judging whether the first resistance average value is less than or equal to a second resistance average value of the resistance circular queue of the previous period or not; if so, updating the first resistance average value to a new initial resistance average value, and generating a command for stopping executing the comparison between the first resistance average value and the initial resistance average value; if not, generating a command for executing the command of comparing the first average occupancy value with the initial average resistance value.
In one embodiment, if the first difference that the current resistance average value is greater than the initial resistance average value is greater than a preset counting threshold, the step of adding one to the number of electronic cigarette mouths includes: recording the peak value in the average value of the resistance values of the resistance value circular queue which continuously rises after the current period; comparing the third resistance average value of the resistance circular queue after the period corresponding to the peak value with the peak value in sequence; and when the difference value of the peak value larger than the average value of the third resistance values is larger than a preset second difference value, clearing the resistance values in the circular queue, and entering the flow of counting the number of the electronic cigarette mouths at the next time.
In one embodiment, if the first difference value that the first resistance average value is greater than the initial resistance average value is greater than a preset counting threshold, the step of adding one to the number of electronic cigarette mouths includes: judging whether the current accumulated port number reaches a preset closing threshold value; if yes, the heating body is closed to heat, and the current cigarette is sucked.
In one embodiment, if the first difference value that the first resistance average value is greater than the initial resistance average value is greater than a preset counting threshold, the step of adding one to the number of electronic cigarette mouths includes: judging whether the current heating time reaches the preset total heating time or not; if yes, the heating body is closed to heat, and the current cigarette is sucked.
In one embodiment, the step of obtaining the first average value of the resistance value of the current cycle of the resistance value circular queue includes: acquiring a signal for opening the electronic cigarette; and preheating the electronic cigarette according to a preset heating resistance value.
In an embodiment, the step of preheating the electronic cigarette according to a preset heating resistance value includes: heating the electronic cigarette according to the heating resistance value in a first preset time period; adjusting the temperature of the electronic cigarette in a PID mode; when the temperature reaches the preset requirement, a 'smoking available' reminding signal is sent out, and the flow of electronic cigarette mouth number statistics is entered.
The present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements an electronic cigarette mouth count statistics method, specifically: acquiring a first resistance value average value of a current period of a resistance value circular queue, wherein the resistance value circular queue is a queue of the output resistance values of the electronic cigarette and is periodically updated; comparing the first resistance average value with an initial resistance average value, wherein the initial resistance average value is a resistance average value set according to a preset rule; and if the first difference value of the first resistance value average value which is larger than the initial resistance value average value is larger than a preset counting threshold value, adding one to the number of the electronic cigarette mouths.
According to the electronic cigarette port number statistical method based on output resistance value change, the HIC thick film heating pipe with good forward linear coefficient is used as a heating body, the real-time resistance value of the HIC thick film heating pipe is detected by the resistance value detection module, the real-time resistance value is converted into temperature according to the TCR operation method, the temperature inside the electronic cigarette is monitored, a temperature sensor is abandoned, and the cost is reduced; after the smoking, no matter the strength, the inside of the electronic cigarette is liable to be cooled, a PID control method is adopted to control the temperature, a circular queue is established and a real-time resistance value is queued, a first resistance value average value of the circular queue in the current period monitored in real time is compared with an initial resistance value average value, and if the rising amplitude reaches a preset counting threshold value, the number of the mouths is accumulated by one; accumulating the number of the mouths, and when the accumulated number of the mouths reaches a preset closing threshold value or the total heating time reaches the total heating time, closing the power supply and ending the heating work of the current electronic cigarette; the rising amplitude of the duty ratio is used as a basis for judging the number of ports, the statistical accuracy of the number of ports is greatly improved, and the error is smaller.
In one embodiment, the step of comparing the first average resistance value with the initial average resistance value by the processor comprises: judging whether the first resistance average value is less than or equal to a second resistance average value of the resistance circular queue of the previous period or not; if so, updating the first resistance average value to a new initial resistance average value, and generating a command for stopping executing the comparison between the first resistance average value and the initial resistance average value; if not, generating a command for executing the comparison between the first resistance average value and the initial resistance average value.
In one embodiment, the processor, after the step of adding one to the number of electronic cigarette mouths if the first difference value that the first resistance average value is greater than the initial resistance average value is greater than a preset counting threshold, includes: recording the peak value in the average value of the resistance values of the resistance value circular queue which continuously rises after the current period; comparing the third resistance average value of the resistance circular queue after the period corresponding to the peak value with the peak value in sequence; and when the difference value of the peak value larger than the average value of the third resistance values is larger than a preset second difference value, clearing the resistance values in the circular queue, and entering the flow of counting the number of the electronic cigarette mouths at the next time.
In one embodiment, the processor, after the step of adding one to the number of electronic cigarette mouths if the first difference value that the first resistance average value is greater than the initial resistance average value is greater than a preset counting threshold, includes: judging whether the current accumulated port number reaches a preset closing threshold value; if yes, the heating body is closed to heat, and the current cigarette is sucked.
In one embodiment, the processor, after the step of adding one to the number of electronic cigarette mouths if the first difference value that the first resistance average value is greater than the initial resistance average value is greater than a preset counting threshold, includes: judging whether the current heating time reaches the preset total heating time or not; if yes, the heating body is closed to heat, and the current cigarette is sucked.
In an embodiment, before the step of obtaining the average value of the first resistance value of the current period of the duty cycle circular queue by the processor, the method includes: acquiring a signal for opening the electronic cigarette; and preheating the electronic cigarette according to a preset heating resistance value.
In one embodiment, the step of preheating the electronic cigarette by the processor according to a preset heating resistance value includes: heating the electronic cigarette according to the heating resistance value in a first preset time period; adjusting the temperature of the electronic cigarette in a PID mode; when the temperature reaches the preset requirement, a 'smoking available' reminding signal is sent out, and the flow of electronic cigarette mouth number statistics is entered.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium provided herein and used in the examples may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double-rate SDRAM (SSRSDRAM), Enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. The statistical method of the number of the electronic cigarette mouths is characterized in that,
acquiring a first resistance value average value of a current period of a resistance value circular queue, wherein the resistance value circular queue is a queue for storing the resistance value of the heating element of the electronic cigarette, and the resistance value circular queue is periodically updated;
comparing the first resistance average value with an initial resistance average value, wherein the initial resistance average value is a resistance average value set according to a preset rule;
and if the first difference value of the first resistance value average value larger than the initial resistance value average value is larger than a preset counting threshold value, adding one to the number of the electronic cigarette mouths.
2. The method of claim 1, wherein the step of comparing the first average value of the resistance value with the initial average value of the resistance value is preceded by the step of:
judging whether the first resistance average value is less than or equal to a second resistance average value of the resistance circular queue in the previous period or not;
if so, updating the first resistance average value to a new initial resistance average value, and generating a command for stopping executing the comparison between the first resistance average value and the initial resistance average value;
and if not, generating a command for executing the comparison between the first resistance average value and the initial resistance average value.
3. The method according to claim 1, wherein if the first difference that the average value of the current resistance is greater than the average value of the initial resistance is greater than a predetermined count threshold, the step of adding one to the number of electronic cigarettes comprises:
recording the peak value in the average value of the resistance values of the resistance value circular queue which continuously rises after the current period;
comparing the third resistance average value of the resistance circular queue after the period corresponding to the peak value with the peak value in sequence;
and when the difference value of the peak value larger than the third resistance value average value is larger than a preset second difference value, clearing the resistance values in the circular queue, and entering the flow of counting the number of the electronic cigarette mouths at the next time.
4. The method according to claim 1, wherein if the first difference that the first resistance average is greater than the initial resistance average is greater than a predetermined count threshold, the step of adding one to the number of e-cigarettes comprises:
judging whether the current accumulated port number reaches a preset closing threshold value;
if yes, the heating body is closed to heat, and the current cigarette is sucked.
5. The method according to claim 1, wherein if the first difference that the first resistance average is greater than the initial resistance average is greater than a predetermined count threshold, the step of adding one to the number of e-cigarettes comprises:
judging whether the current heating time reaches the preset total heating time or not;
if yes, the heating body is closed to heat, and the current cigarette is sucked.
6. The method according to claim 1, wherein the step of obtaining the first average value of the resistance value of the current period of the resistance value circular queue is preceded by:
acquiring a signal for opening the electronic cigarette;
and preheating the electronic cigarette according to a preset heating resistance value.
7. The method according to claim 6, wherein the step of preheating the electronic cigarette according to a preset heating resistance value comprises: heating the electronic cigarette according to the heating resistance value in a first preset time period;
adjusting the temperature of the electronic cigarette in a PID mode;
and when the temperature reaches a preset requirement, sending a smoking reminding signal, and entering the flow of counting the number of the electronic cigarette mouths.
8. An electronic cigarette control device, comprising:
the electronic cigarette processing device comprises an acquisition unit, a processing unit and a control unit, wherein the acquisition unit is used for acquiring a first resistance average value of a current period of a resistance circular queue, the resistance circular queue is a queue of the resistance of the electronic cigarette, and the resistance circular queue is updated periodically;
the comparison unit is used for comparing the first resistance average value with an initial resistance average value, wherein the initial resistance average value is a resistance average value set according to a preset rule;
and the accumulation unit is used for accumulating and adding one to the number of the electronic cigarette mouths if a first difference value of the first resistance average value larger than the initial resistance average value is larger than a preset counting threshold value.
9. An electronic vaping device comprising a memory and a processor, the memory storing a computer program, characterised in that the processor, when executing the computer program, implements the steps of the method of any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN201911054548.3A 2019-10-31 2019-10-31 Electronic cigarette mouth number statistical method, control device, equipment and storage medium Pending CN110897206A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911054548.3A CN110897206A (en) 2019-10-31 2019-10-31 Electronic cigarette mouth number statistical method, control device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911054548.3A CN110897206A (en) 2019-10-31 2019-10-31 Electronic cigarette mouth number statistical method, control device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110897206A true CN110897206A (en) 2020-03-24

Family

ID=69816043

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911054548.3A Pending CN110897206A (en) 2019-10-31 2019-10-31 Electronic cigarette mouth number statistical method, control device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110897206A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112471612A (en) * 2020-12-18 2021-03-12 惠州市沛格斯科技有限公司 Method and device for judging smoking opening number of electronic cigarette, electronic cigarette and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015196354A1 (en) * 2014-06-24 2015-12-30 深圳麦克韦尔股份有限公司 Electronic cigarette and control method therefor
CN105955094A (en) * 2015-12-25 2016-09-21 深圳瀚星翔科技有限公司 Power regulation control circuit of electronic cigarette
WO2017156743A1 (en) * 2016-03-17 2017-09-21 深圳麦克韦尔股份有限公司 Electronic cigarette control circuit, control method and electronic cigarette
CN108064428A (en) * 2017-03-20 2018-05-22 深圳中兴力维技术有限公司 A kind of lead-acid accumulator activation method and its system
CN108459536A (en) * 2018-01-31 2018-08-28 深圳瀚星翔科技有限公司 A kind of control method and control device of electronic cigarette puff count
CN108563255A (en) * 2018-02-28 2018-09-21 深圳瀚星翔科技有限公司 A kind of temperature control circuit, electronic cigarette temperature control method and computer readable storage medium
CN109414062A (en) * 2016-06-27 2019-03-01 日本烟草产业株式会社 Fragrance inhalator smoke grenade and fragrance inhalator with the fragrance inhalator smoke grenade
CN109892699A (en) * 2017-12-08 2019-06-18 深圳市赛尔美电子科技有限公司 Electronic cigarette smoking frequency counting method, electronic cigarette, storage medium and equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015196354A1 (en) * 2014-06-24 2015-12-30 深圳麦克韦尔股份有限公司 Electronic cigarette and control method therefor
CN105955094A (en) * 2015-12-25 2016-09-21 深圳瀚星翔科技有限公司 Power regulation control circuit of electronic cigarette
WO2017156743A1 (en) * 2016-03-17 2017-09-21 深圳麦克韦尔股份有限公司 Electronic cigarette control circuit, control method and electronic cigarette
CN109414062A (en) * 2016-06-27 2019-03-01 日本烟草产业株式会社 Fragrance inhalator smoke grenade and fragrance inhalator with the fragrance inhalator smoke grenade
CN108064428A (en) * 2017-03-20 2018-05-22 深圳中兴力维技术有限公司 A kind of lead-acid accumulator activation method and its system
CN109892699A (en) * 2017-12-08 2019-06-18 深圳市赛尔美电子科技有限公司 Electronic cigarette smoking frequency counting method, electronic cigarette, storage medium and equipment
CN108459536A (en) * 2018-01-31 2018-08-28 深圳瀚星翔科技有限公司 A kind of control method and control device of electronic cigarette puff count
CN108563255A (en) * 2018-02-28 2018-09-21 深圳瀚星翔科技有限公司 A kind of temperature control circuit, electronic cigarette temperature control method and computer readable storage medium

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
中国自行车协会组织: "《电动自行车装配工(初级、中级)》", 31 January 2009, pages: 51 - 52 *
刘家瑾 等: "《煤田测井资料数字处理》", 31 March 1993, 煤炭工业出版社, pages: 28 - 40 *
华敏: "《最新电阻器优化设计与制造新技术及性能测试实用手册 第1卷》", 31 August 2007, 电子科技出版社, pages: 191 - 197 *
李固强 等: "《大学物理实验》", 30 June 2016, 北京邮电大学出版社, pages: 9 - 22 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112471612A (en) * 2020-12-18 2021-03-12 惠州市沛格斯科技有限公司 Method and device for judging smoking opening number of electronic cigarette, electronic cigarette and storage medium

Similar Documents

Publication Publication Date Title
EP2625580B1 (en) Method for adjusting a temperature of a sensor element
CN111165914B (en) Heating method and device for atomizer, computer equipment and storage medium
US6906288B2 (en) Method and device for controlling the heating of glow plugs in a diesel engine
CN104713241A (en) Water heater and control method and control device thereof
JP5075701B2 (en) Control device and power estimation method
CN109631243B (en) Environmental temperature monitoring method, device and unit
KR20170078387A (en) Method and apparatus for managing sensors
US9267209B2 (en) Sacrificial anode control
CN111075583B (en) Closed-loop control method and system for natural gas engine rear oxygen sensor
CN110897206A (en) Electronic cigarette mouth number statistical method, control device, equipment and storage medium
CN113587338A (en) Compressor exhaust temperature control method and device and air conditioner
JP6580264B2 (en) Air conditioning control device, air conditioning control method, air conditioning system, and air-conditioned house
CN108980985A (en) Electric heater fault alarm method, electric heater fault alarm device, computer equipment and storage medium
CN110897207A (en) Electronic cigarette mouth counting method, control device, equipment and storage medium
CN113483919A (en) Temperature calibration method, system, storage medium and electronic equipment
CN110782547A (en) Wake-up processing method and device for vehicle-mounted module, electronic equipment and storage medium
JP2005084896A (en) On-vehicle electronic control device
CN109085865B (en) Temperature control method and device for equipment, storage medium and control system
JP2014209824A (en) Interrupting device
CN111000294B (en) Heating method and device of atomizer, computer equipment and storage medium
JP7314880B2 (en) BATTERY DIAGNOSTIC APPARATUS, METHOD, PROGRAM AND VEHICLE
CN112032980B (en) Control method of air conditioner
IL299746A (en) Nicotine electronic vaping devices having nicotine pre-vapor formulation level detection and auto shutdown
CN110173754A (en) A kind of temprature control method and device
JP2017103962A (en) Power supply control device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200324