CN114176267B - Electronic cigarette gesture control method, device, equipment and storage medium - Google Patents

Electronic cigarette gesture control method, device, equipment and storage medium Download PDF

Info

Publication number
CN114176267B
CN114176267B CN202010959168.0A CN202010959168A CN114176267B CN 114176267 B CN114176267 B CN 114176267B CN 202010959168 A CN202010959168 A CN 202010959168A CN 114176267 B CN114176267 B CN 114176267B
Authority
CN
China
Prior art keywords
electronic cigarette
gesture
axial direction
control
acceleration
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.)
Active
Application number
CN202010959168.0A
Other languages
Chinese (zh)
Other versions
CN114176267A (en
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 Leiyan Technology Co ltd
Original Assignee
Shenzhen Leiyan Technology 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 Leiyan Technology Co ltd filed Critical Shenzhen Leiyan Technology Co ltd
Priority to CN202010959168.0A priority Critical patent/CN114176267B/en
Publication of CN114176267A publication Critical patent/CN114176267A/en
Application granted granted Critical
Publication of CN114176267B publication Critical patent/CN114176267B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • AHUMAN NECESSITIES
    • A24TOBACCO; CIGARS; CIGARETTES; SIMULATED SMOKING DEVICES; SMOKERS' REQUISITES
    • A24FSMOKERS' REQUISITES; MATCH BOXES; SIMULATED SMOKING DEVICES
    • A24F40/00Electrically operated smoking devices; Component parts thereof; Manufacture thereof; Maintenance or testing thereof; Charging means specially adapted therefor
    • A24F40/50Control or monitoring
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/017Gesture based interaction, e.g. based on a set of recognized hand gestures

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention belongs to the technical field of electronic cigarettes, and provides an electronic cigarette gesture control method and device, an electronic cigarette and a storage medium. The gesture control method of the electronic cigarette comprises the steps of obtaining acceleration values of the electronic cigarette in a first axial direction and/or a second axial direction and/or a third axial direction; identifying a control gesture of a user according to the acceleration value; controlling the working state of the electronic cigarette according to the control gesture; wherein the first axial direction, the second axial direction and the third axial direction are perpendicular to each other. The invention further comprises a device, an electronic cigarette and a storage medium for executing the method. The invention can make the user more convenient and flexible to control the electronic cigarette to increase the interest of the user.

Description

Electronic cigarette gesture control method, device, equipment and storage medium
Technical Field
The invention relates to the technical field of electronic cigarettes, in particular to an electronic cigarette gesture control method, device and equipment and a storage medium.
Background
Electronic cigarettes are a new type of electronic products that have the same taste as ordinary cigarettes. Because the electronic cigarette heats tobacco tar through the atomizing device to generate smokeable smoke, compared with the traditional cigarette, the electronic cigarette does not burn, so that harmful components such as tar, suspended particles and the like in the traditional cigarette are avoided, harm to others and pollution to the environment caused by the traditional cigarette can be reduced, and the electronic cigarette is healthier and environment-friendly compared with the traditional cigarette.
An atomization device is arranged in a cigarette bullet of the electronic cigarette, and after being atomized, tobacco tar in the cigarette bullet is mixed with air entering the cigarette bullet by the atomization device to form smoke, and the smoke flows into a smoking opening of a cigarette holder by the cigarette bullet for a user to inhale. When a user uses the electronic cigarette, the user inhales from the cigarette holder, negative pressure is generated in the electronic cigarette, and air outside the electronic cigarette can enter the cigarette bullet to be mixed with atomized tobacco tar.
In order to meet different requirements of users, the working state of the electronic cigarette can be controlled. For example, the electronic cigarette is controlled to be opened and closed, the heating power of the atomizing device in the electronic cigarette is controlled, the lighting state of the indicator lamp arranged on the electronic cigarette is controlled, the voice prompt of the electronic cigarette is controlled, and the like. But at present, the electronic cigarette is often controlled by adopting a key manner, so that a user is required to accurately trigger the corresponding key, the control is inconvenient, and the operation interestingness is low.
Disclosure of Invention
In view of the above, the embodiments of the present invention provide a method, an apparatus, a device, and a storage medium for controlling an electronic cigarette gesture, which are used for solving the technical problems of inconvenient control and low operation interest in the electronic cigarette control method in the prior art.
The technical scheme adopted by the invention is as follows:
in a first aspect, the present invention provides an electronic cigarette gesture control method, where the method includes:
acquiring acceleration values of the electronic cigarette in a first axial direction and/or a second axial direction and/or a third axial direction;
identifying a control gesture of a user according to the acceleration value;
controlling the working state of the electronic cigarette according to the control gesture;
wherein the first axial direction, the second axial direction and the third axial direction are perpendicular to each other.
Preferably, the control gesture of the user is identified according to the magnitude of the acceleration value and/or the positive and negative change rule of the acceleration value of the electronic cigarette in the first axial direction and/or the second axial direction and/or the third axial direction.
Preferably, the control gesture includes a gesture for driving the electronic cigarette to rotate for a preset number of turns, and the identifying the control gesture of the user according to the acceleration value further includes:
when the absolute value of the acceleration value in one axial direction is larger than a first threshold value, taking the axial direction as a first reference direction, starting timing and monitoring the acceleration values in the two remaining axial directions;
if the absolute value of the acceleration value of one of the two remaining axial directions is larger than a first threshold value, continuing to monitor, taking the axial direction as a second reference direction, and otherwise ending the detection;
if the positive and negative of the acceleration value of the first reference direction are detected to change (Q-1) times within the second preset time, and the positive and negative of the acceleration value of the second reference direction are detected to change Q times, judging that the control gesture is a control gesture rotating for Q circles, wherein q=Q/2, and Q is a positive even number greater than or equal to 2.
Preferably, the control gesture includes a gesture of shaking the electronic cigarette, and identifying the control gesture of the user according to the acceleration value further includes:
taking the axial direction as a first reference direction when the absolute value of the acceleration value in the axial direction is detected to be larger than a first threshold value, and starting timing at the same time;
and judging the control gesture as a shaking gesture when the frequency of detecting positive and negative changes of the acceleration value of the first reference direction exceeds a second threshold value.
Preferably, the control gesture includes a gesture for driving the electronic cigarette to rotate for a preset number of turns or a gesture for shaking the electronic cigarette, and in the working state of controlling the electronic cigarette according to the control gesture, the heating power of the electronic cigarette is controlled according to the number of turns of the electronic cigarette or the frequency of shaking the electronic cigarette.
Preferably, when the number of turns of the electronic cigarette or the frequency of shaking the electronic cigarette reaches a third threshold, controlling the electronic cigarette to enter a preset working mode, wherein the preset working mode comprises:
acquiring preset parameters; the preset parameters comprise preset power P of the electronic cigarette s First weight W 1 Second weight W 2
Acquiring a first average airflow of the last n times of sucking the electronic cigaretteFlow rateWherein n is a positive integer;
obtaining a second average airflow velocity of the last m times of sucking the electronic cigaretteWherein m is a positive integer, and m>n;
Calculating theoretical airflow velocity according to formula
According to the formulaCalculating theoretical power P;
and adjusting the power of the electronic cigarette according to the theoretical power P.
Preferably, in the working state of the electronic cigarette controlled according to the control gesture, the on-off state of the electronic cigarette is controlled according to the direction and the acceleration of the control gesture.
In a second aspect, the present invention further provides an electronic cigarette gesture control device, where the device includes:
the acceleration value acquisition module is used for acquiring acceleration values of the electronic cigarette in at least two axial directions among a first axial direction, a second axial direction and a third axial direction;
the control gesture recognition module is used for recognizing a control gesture of a user according to the acceleration value;
and the electronic cigarette control module is used for controlling the working state of the electronic cigarette according to the control gesture.
Wherein the first axial direction, the second axial direction and the third axial direction are perpendicular to each other.
In a third aspect, the present invention provides an electronic cigarette, comprising: at least one processor, at least one memory, and computer program instructions stored in the memory, which when executed by the processor, implement the method of the first aspect.
In a fourth aspect, the invention also provides a storage medium having stored thereon computer program instructions, characterized in that the method of the first aspect is implemented when said computer program instructions are executed by a processor.
The beneficial effects are that: according to the electronic cigarette gesture control method, the electronic cigarette gesture control device, the electronic cigarette and the storage medium, gestures of a user are recognized by utilizing acceleration values in three mutually perpendicular axial directions, and the working state of the electronic cigarette is controlled according to the recognized gestures. The electronic cigarette can be conveniently and flexibly controlled by a user, the interestingness of the electronic cigarette in the use process is also improved, the gesture of the user is identified by adopting acceleration values in three axial directions, the data required to be acquired is less, the identification algorithm is simple, the calculated amount is small, and the quick identification of the control gesture is facilitated.
Drawings
In order to more clearly illustrate the technical solution of the embodiments of the present invention, the drawings required to be used in the embodiments of the present invention will be briefly described, and it is within the scope of the present invention to obtain other drawings according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of a gesture control method of an electronic cigarette in embodiment 1 of the present invention;
fig. 2 is a schematic structural diagram of an electronic cigarette according to the present invention;
FIG. 3 is a flow chart of recognizing a control turn control gesture according to the present invention;
FIG. 4 is a schematic diagram showing the positive and negative states of the acceleration values in the first reference direction during a rotation of the electronic cigarette;
FIG. 5 is a schematic diagram showing the positive and negative states of the acceleration values in the second reference direction during one rotation of the electronic cigarette;
FIG. 6 is a flow chart of recognizing a shake control gesture according to the present invention;
FIG. 7 is a flow chart of a control gesture set by a user according to the present invention;
FIG. 8 is a block diagram of an electronic cigarette gesture control device according to the present invention;
fig. 9 is a block diagram of a hardware circuit of the electronic cigarette of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more clear, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. In the description of the present invention, it should be understood that the terms "center," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," and the like indicate orientations or positional relationships based on the orientation or positional relationships shown in the drawings, merely to facilitate description of the present application and simplify the description, and do not indicate or imply that the devices or elements referred to must have a specific orientation, be configured and operated in a specific orientation, and thus should not be construed as limiting the present invention. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element. If not conflicting, the embodiments of the present invention and the features of the embodiments may be combined with each other, which are all within the protection scope of the present invention.
It should be noted that, the power of the electronic cigarette and the heating power of the electronic cigarette referred to in the present application may be used interchangeably.
Example 1:
as shown in fig. 1, embodiment 1 of the present invention discloses a gesture control method for an electronic cigarette, which includes:
s1: acquiring acceleration values of the electronic cigarette in at least two axial directions among a first axial direction, a second axial direction and a third axial direction;
s2: identifying a control gesture of a user according to the acceleration value;
s3: controlling the working state of the electronic cigarette according to the control gesture;
wherein the first axial direction, the second axial direction and the third axial direction are perpendicular to each other.
When using the electronic cigarette of this embodiment, the electronic cigarette user holds the electronic cigarette with his hand, and then makes some specific gestures, such as shaking the electronic cigarette, driving the electronic cigarette to turn around, driving the electronic cigarette to move along a certain direction, and so on. After the electronic cigarette recognizes gestures of a user, the working state of the electronic cigarette is changed according to the gestures.
In a specific implementation, the first axial direction, the second axial direction and the third axial direction are perpendicular to each other to form a space rectangular coordinate system, and at least one acceleration sensor is respectively arranged in the three axial directions. As shown in fig. 2, a general electronic cigarette is composed of a cartridge 300 and a tobacco rod 200, and an acceleration sensor may be disposed on a PCB board of the tobacco rod 200 in a specific implementation.
Therefore, when a user holds the electronic cigarette and makes corresponding gesture actions, the acceleration sensors in all axial directions can detect the acceleration values in the three axial directions, so that the movement condition of the electronic cigarette in the three-dimensional space is perceived. At present, three axial acceleration sensors and three axial angular rate sensors are often adopted to recognize gestures, but the angular rate sensors have higher cost, and an algorithm for recognizing the gestures by utilizing the acceleration sensors and the angular rate sensors is complex, and particularly, the gesture resolving process takes longer time and occupies large system resources. In the control method of the embodiment, the angular rate sensor is omitted, the three acceleration sensors are arranged along the three mutually perpendicular axial directions, acceleration values of the three axial directions are collected in the process that the user operates the electronic cigarette to finish gesture actions, and the control gesture of the user is identified according to the change rule of the acceleration values. The control method only needs three axial acceleration values and does not need to carry out operation processing on the angular rates of the three axial directions, so that the data transmission and data processing quantity is small, the processing process is simpler, and the gestures of a user can be rapidly and accurately identified.
After accurately identifying the gesture of the user, the electronic cigarette can change the working state according to the gesture of the user, and the control mode does not need the user to find the corresponding key on the electronic cigarette, so that the control of the electronic cigarette is more convenient and flexible, the control mode is more random than the key control mode, and the interestingness of the electronic cigarette product in the use process is improved.
According to the embodiment, the control gesture of the user is identified according to the acceleration value of the electronic cigarette in the first axial direction and/or the second axial direction and/or the third axial direction and/or the positive and negative change rule of the acceleration value. The acceleration values or the changes of the three axial directions when the user drives the electronic cigarette to move through the gestures, the acceleration and the distance of the movement of the electronic cigarette can be calculated through the changes of the three axial acceleration values, and the direction of the movement of the electronic cigarette can be obtained through the magnitude relation and the positive and negative changes of the three axial acceleration, so that the gestures of the user can be recognized simply and rapidly.
As shown in fig. 3, a specific identification method may be:
the control gestures comprise gestures for driving the electronic cigarette to rotate for a preset number of turns, and the control gestures for identifying the user according to the acceleration value further comprise:
s21: when the absolute value of the acceleration value in one axial direction is larger than a first threshold value, taking the axial direction as a first reference direction, starting timing and monitoring the acceleration values in the two remaining axial directions;
the first threshold value can be obtained according to a use habit or an experimental test, and the first threshold value corresponds to an initial acceleration value when a user starts to drive the electronic cigarette to rotate.
S22: if the absolute value of the acceleration value of one of the two remaining axial directions is larger than a first threshold value, continuing to monitor, taking the axial direction as a second reference direction, and otherwise ending the detection;
only one detected acceleration value in one axial direction meets the requirement and cannot indicate that the electronic cigarette is doing the rotating motion, so that timing is started after the absolute value of the detected acceleration value in one axial direction exceeds a set threshold value, the other two axial directions are detected immediately, and whether the acceleration values in the other two axial directions change or not is judged. If the absolute values of the accelerations in the other two axial directions do not exceed the first threshold value within a prescribed time from the timing moment, the electronic cigarette is indicated to move only in one direction and does not rotate, and therefore detection is ended. I.e. it is only possible for the e-cigarette to turn if it is detected that the absolute value of the acceleration values in at least two axial directions exceeds a set threshold.
S23: if the positive and negative occurrence (Q-1) of the acceleration value in the first reference direction and the positive and negative occurrence (Q-1) of the acceleration value in the second direction are detected within the second preset time, judging that the control gesture is a control gesture rotating for Q circles, wherein q=Q/2, and Q is a positive even number greater than or equal to 2.
As shown in fig. 4 and 5, the axial direction in which the x direction is located is the first reference direction, the acceleration value detected in the first reference direction when the electronic cigarette moves in the x direction is positive, and the acceleration value detected in the first reference direction when the electronic cigarette moves in the direction opposite to the x direction is negative. The axial direction of the y direction is a second reference direction, the acceleration value detected in the second reference direction when the electronic cigarette moves in the y direction is positive, and the acceleration value detected in the second reference direction when the electronic cigarette moves in the direction opposite to the y direction is negative.
As shown in fig. 4, in the first reference direction, the change rule of the acceleration changes from negative to positive, which changes positive and negative 1 time, and as shown in fig. 5, the change rule of the acceleration in the second reference direction changes from positive to negative to positive, which changes positive and negative 2 times, q=2. Q=2/2=1, i.e. the recognized gesture is a control gesture of one turn.
For example, in the first reference direction, the change rule of the acceleration changes from negative to positive, from positive to negative, from negative to positive, and from positive to negative 3 times, and in the second reference direction, the change rule of the acceleration changes from positive to negative, from negative to positive, and from positive to negative, and from negative to positive, and from positive to negative, is changed 4 times, and q=4. Q=4/2=2, i.e. the recognized gesture is a control gesture rotating two turns.
As the method only needs to detect the acceleration and the positive and negative change conditions, the acquired parameters are few, the gesture recognition algorithm is simple, and the occupation of system resources is relatively less.
As shown in fig. 6, the control gesture includes a gesture for shaking the electronic cigarette, and identifying the control gesture of the user according to the acceleration value further includes:
s201: taking the axial direction as a first reference direction when the absolute value of the acceleration value in the axial direction is detected to be larger than a first threshold value, and starting timing at the same time;
and when the absolute value of the acceleration value is detected to be larger than the first threshold value as the starting time of the shaking gesture, timing is performed. And monitoring the positive and negative conditions of the acceleration value of the first reference direction.
S202: and judging the control gesture as a shaking gesture when the frequency of detecting positive and negative changes of the acceleration value of the first reference direction exceeds a second threshold value.
The frequency of detecting the positive and negative changes of the acceleration value of the first reference direction meets a preset value, and the fact that the user shakes the electronic cigarette is indicated. The frequency of the positive and negative changes may be set according to the number of times the acceleration value is positively and negatively changed within the set period of time. If no change in the positive or negative of the acceleration value is detected within a predetermined time, the monitoring is stopped until the next time the absolute value of the acceleration value in one axial direction is detected to be larger than the first threshold value, and the monitoring is restarted.
The gesture of shaking the electronic cigarette is identified by adopting the frequency of positive and negative changes of the acceleration value, the acquired data are less, the algorithm is simple, and the gesture of shaking can be identified rapidly and accurately.
Example 2
In this embodiment, the control gesture includes a gesture for driving the electronic cigarette to rotate a preset number of turns or a gesture for shaking the electronic cigarette, and in a working state of controlling the electronic cigarette according to the control gesture, the heating power of the electronic cigarette is controlled according to the number of turns of the electronic cigarette rotating or the frequency of shaking the electronic cigarette.
The more turns the e-cigarette is rotated, the more power the e-cigarette is heated, and the higher the frequency of shaking, for example, the more power the e-cigarette is heated. The gesture of rotating or shaking is adopted to control the heating power of the electronic cigarette, so that the electronic cigarette is convenient and quick, and the user brings a certain interest.
Various lights can be arranged on the electronic cigarette and distributed at different positions of the electronic cigarette, and the lights can emit the same or different colors. And controlling the lighting state of the lamplight of the electronic cigarette according to the direction and the acceleration of the control gesture in the working state of the control electronic cigarette according to the control gesture. For example, gestures in different directions may illuminate different colors of lights. The faster the acceleration of the gesture, the higher the brightness of the light. The faster the acceleration of the gesture, the greater the number of lights illuminated, etc. The gesture mode is adopted to control the lighting state of the electronic cigarette, so that the lighting state is more convenient and quicker than key control, and the interest brought to a user is higher.
In the working state of the electronic cigarette controlled according to the control gesture, the on-off state of the electronic cigarette can be controlled according to the direction and the acceleration of the control gesture. For example, when the control gesture is a movement in a certain direction, the electronic cigarette is in an on state, and when the control gesture is a movement in the opposite direction, the electronic cigarette is in an off state. For example, when the acceleration reaches a certain set value, the electronic cigarette is switched between an on state and an off state.
As shown in fig. 7, further, before S1, acquiring the acceleration value of the electronic cigarette in the first axial direction and/or the second axial direction and/or the third axial direction further includes:
s01: acquiring set gesture control parameters;
s02: and establishing a corresponding relation between the control gesture and the working state of the electronic cigarette according to the gesture control parameters.
And S3, controlling the working state of the electronic cigarette according to the corresponding relation in the working state of the electronic cigarette according to the control gesture.
The gesture control parameters are what gestures are adopted to control which working state of the electronic cigarette. The control method of the embodiment allows the user to select what gesture is used to control the working state of the electronic cigarette, for example, the user can select whether to control the heating power of the electronic cigarette by using the number of turns of the turn or the frequency of shaking the electronic cigarette, and the user can also select whether to control the switch of the electronic cigarette by using the direction of the gesture or the acceleration of the gesture.
Example 3
In the foregoing manner, the control gesture includes a gesture for driving the electronic cigarette to rotate a preset number of turns or a gesture for shaking the electronic cigarette, and in the working state of controlling the electronic cigarette according to the control gesture, the heating power of the electronic cigarette is controlled according to the number of turns of the electronic cigarette or the frequency of shaking the electronic cigarette. Specifically, when the number of turns of the electronic cigarette or the frequency of shaking the electronic cigarette reaches a third threshold, the electronic cigarette is controlled to enter a preset working mode, and the power of the electronic cigarette can be adjusted according to the suction habit of a user in the preset mode. The preset working modes comprise:
acquiring preset parameters; the preset parameters comprise preset power P of the electronic cigarette s First weight W 1 Second weight W 2
Obtaining a first average airflow velocity of the last n times of sucking the electronic cigaretteWherein n is a positive integer;
obtaining the last m times of sucking the electronic cigaretteTwo average airflow velocityWherein m is a positive integer, and m>n;
According to the formulaCalculating a theoretical airflow velocity V;
according to the formulaCalculating theoretical power P;
and adjusting the power of the electronic cigarette according to the theoretical power P.
Specifically, the preset power of the electronic cigarette refers to the power at the time of the next suction. If the user cannot automatically adjust the power of the electronic cigarette, the preset power is the fixed power of the electronic cigarette in design; if the user can manually adjust the power of the electronic cigarette, the preset power is the power set by the user when the next suction is performed.
First weight W 1 Second weight W 2 Is a real number. In a preferred embodiment of the invention, the first weight W 1 Second weight W 2 The values of the (C) are all larger than 0. In a preferred embodiment of the invention, the first weight W 1 And a second weight W 2 The sum is 1. For example, a first weight W 1 Equal to 0.2, a second weight W 2 Equal to 0.8.
When the user uses the electronic cigarette, the heating components such as the heating wire or the atomizing core of the electronic cigarette start to work by sucking the electronic cigarette, and when the sucking is finished, the heating components such as the heating wire or the atomizing core stop to work. Therefore, unless specifically described, the suction of the electronic cigarette 1 time referred to herein refers to a process from the start to the stop of the operation of the heating member.
The last n puffs of the e-cigarette means that the e-cigarette is smoked n times closest to the time interval between the next puffs of the e-cigarette. Similarly, the last m puffs of the e-cigarette means that the e-cigarette is smoked m times closest to the time interval in which the e-cigarette is smoked next. For example, the electronic cigarette is smoked 5 times in total, and is respectively marked as a first time of smoking, a second time of smoking, a third time of smoking, a fourth time of smoking and a fifth time of smoking according to time sequence, then the last 2 times of smoking refers to the fourth time of smoking and the fifth time of smoking, and the last 4 times of smoking refers to the second time of smoking, the third time of smoking, the fourth time of smoking and the fifth time of smoking. The last 1 puff of the e-cigarette is referred to as the fifth puff.
When a user sucks the electronic cigarette, the user sucks smoke through the flow of gas in the airflow channel of the electronic cigarette. Thus, the flow rate of the gas flow referred to herein refers to the flow rate of the gas in the flow path of the e-cigarette. The gas flow rate may be detected by a gas sensor, such as a gas flow rate sensor, or a gas flow meter in combination with a timer may be used to obtain the gas flow rate. Of course, it will be understood by those skilled in the art that the average airflow rate referred to herein may be an arithmetic average, i.e., the sum of the airflow rates from each puff divided by the number of puffs. The average airflow rate may also be a weighted average, i.e., the airflow rates for each puff may be weighted differently.
First average airflow rate for last n puffs of the e-cigaretteFor characterizing short-term habits of the user. n is a positive integer, and in a preferred embodiment of the invention n is 15. Of course, the specific value of n is not particularly limited in the present invention.
Second average airflow velocity for last m puffs of the e-cigaretteFor characterizing the long-term habits of the user. m is a positive integer, and the value needs to be greater than n, in a preferred embodiment of the present invention, m is the total number of times of smoking of the electronic cigarette.
Thus, when the first average airflow velocityAnd a second average airflow rate->When they are not equal, it is indicated that the short-term habit and the long-term habit of the user are not the same, and thus it is determined that the user wants to change the amount of smoke sucked by changing the force of suction (i.e., airflow rate).
At this time, the formula is passedAnd estimating the airflow velocity of the electronic cigarette sucked by the user next time to obtain a theoretical airflow velocity V. Obviously, when the first average airflow velocity +.>Greater than the second average airflow rate->(meaning that the user increases the suction force), the theoretical airflow rate V will be greater than the second average airflow rate +.>Thus according to the formulaThe calculated theoretical power P is larger than the preset power, so that the power of the electronic cigarette is improved, and the electronic cigarette is ensured to generate more smoke for a user to inhale. When the first average airflow velocity +>Less than the second average airflow rate->(meaning that the user reduces the suction force) the theoretical airflow rate V will be smaller than the second average airflow rate +.>Thus according to the formulaThe calculated theoretical power P is smaller than the preset power, so that the power of the electronic cigarette is reduced, the problem that a user cannot timely absorb a large amount of smoke due to small suction force is avoided, and the consumption of tobacco tar and power is reduced. In summary, the embodiment of the invention realizes automatic adjustment of the power of the electronic cigarette according to the suction habit of the user, and greatly improves the user experience.
Further, a first average airflow velocityThe method can be obtained by adopting the following technical scheme, and comprises the following steps.
Acquiring a first airflow velocity V of the electronic cigarette sucked for 1 last time 1
Obtaining a third average airflow velocity of the electronic cigarette sucked for n-1 times except the electronic cigarette sucked for 1 time recently in the electronic cigarette sucked for n times recently
According to the formulaCalculating said first average airflow rate +.>
Wherein the preset parameters further comprise a third weight W 3 And a fourth weight W 4 . Third weight W 3 And a fourth weight W 4 Are real numbers. In a preferred embodiment of the invention, the third weight W 3 And a fourth weight W 4 The values of the (C) are all larger than 0. In a preferred embodiment of the invention, the third weight W 3 And a fourth weightW 4 The sum is 1. For example, a third weight W 3 Equal to 0.1, fourth weight W 4 Equal to 0.9.
As described above, if the electronic cigarette is smoked 5 times, the first, second, third, fourth and fifth puffs are respectively marked according to the time sequence. When the value of n is 4, the electronic cigarettes sucked for n-1 times except the electronic cigarette sucked for 1 time recently in the electronic cigarette are referred to as second suction, third suction and fourth suction.
Third average airflow velocityThe detection method is the same as that of the previous embodiment, and the detection can be performed by a gas sensor, which is not repeated here.
Therefore, the embodiment of the invention acquires the first airflow velocity V of the last 1 times of sucking the electronic cigarette 1 And a third average airflow velocityAnd respectively obtaining the weights corresponding to them to determine a first average airflow velocity +.>Obviously, the first average airflow rate +.>To a great extent by a third weight W 3 And a fourth weight W 4 The theoretical airflow velocity V of the electronic cigarette sucked by the user next time can be correspondingly changed according to the determined adjustment weight. If the theoretical airflow velocity V is expected to be mainly determined by the first airflow velocity V of the last 1 suction of the electronic cigarette 1 The third weight W is determined 3 Setting larger makes the power adjustment more sensitive; if the expected theoretical airflow velocity V is determined primarily by the average airflow velocity of the last n puffs of the e-cigarette, a fourth weight W may be applied 4 The setting is larger so that the power adjustment is determined by the average of n puffs, i.e. the power adjustment is smoother, reducing false adjustments.
Further, a second average airflow rateThe method can adopt the following technical scheme for acquisition, and comprises the following steps.
Obtaining fourth average airflow velocity of m-n times of sucking the electronic cigarette except the last n times of sucking the electronic cigarette in the last m times of sucking the electronic cigarette
According to the formulaCalculating the second average airflow velocity +.>
Wherein the preset parameters further comprise a fifth weight W 5 And a sixth weight W 6 . Fifth weight W 5 And a sixth weight W 6 Are real numbers. In a preferred embodiment of the invention, the fifth weight W 5 And a sixth weight W 6 The values of the (C) are all larger than 0. In a preferred embodiment of the invention, the fifth weight W 5 And a sixth weight W 6 The sum is 1. For example, a fifth weight W 5 Equal to 0.05, a sixth weight W 6 Equal to 0.95.
As described above, if the electronic cigarette is smoked 5 times, the first, second, third, fourth and fifth puffs are respectively marked according to the time sequence. When the value of n is 2 and the value of m is 4, the m-n times of sucking the electronic cigarette except the n times of sucking the electronic cigarette in the last m times of sucking the electronic cigarette refers to the second sucking and the third sucking.
Wherein,first average airflow velocityThe manner of determining (c) has been described in detail in the foregoing embodiments, and is not repeated here. Fourth average airflow velocity->The detection may be performed by a gas sensor.
The embodiment of the invention acquires the first average airflow velocity of the electronic cigarette sucked for the last n timesAnd a fourth average airflow rate->And respectively obtaining the weights corresponding to them to determine the second average airflow velocity +.>Obviously, the second average airflow rate +.>To a great extent by a fifth weight W 5 And a sixth weight W 6 The theoretical airflow velocity V of the electronic cigarette sucked by the user next time can be correspondingly changed according to the determined adjustment weight. If the expected theoretical airflow velocity V is determined primarily by the first average airflow velocity (i.e., short term habit) of the last n puffs of the e-cigarette, a fifth weight W may be applied 5 Setting larger makes the power adjustment more sensitive; if the expected theoretical airflow velocity V is determined primarily by the average airflow velocity (i.e., long term habit) of the last m puffs of the e-cigarette, a sixth weight W may be applied 6 The power adjustment is set larger, so that the power adjustment is determined by the average value of m times of suction, namely, the power adjustment is more stable, and the error adjustment is reduced.
Furthermore, the power curve obtained by fitting can be used for adjusting the power of the electronic cigarette, and the method specifically comprises the following steps.
Setting a plurality of sampling points every second to detect and obtain a plurality of first airflow velocity V 1
According to a plurality of said first gas flow rates V 1 Determining a plurality of first average airflow rates respectivelyA plurality of second average airflow rates->
According to a plurality of first average airflow ratesA plurality of second average airflow rates->Determining a plurality of said theoretical airflow velocities V;
according to a plurality of said theoretical airflow velocity V, a plurality of second average airflow velocityDetermining a plurality of theoretical powers P;
fitting a plurality of theoretical powers P to obtain a power curve;
and adjusting the power of the electronic cigarette according to the power curve.
As previously mentioned, the airflow rate may be detected by a gas sensor. Thus, the first airflow velocity V can be measured by setting a plurality of sampling points (e.g., 10) per second 1 And (5) detecting. Obviously, the greater the number of sampling points, the greater the corresponding sampling data, thereby making the power adjustment more accurate.
In the foregoing embodiment, it is illustrated that the first average airflow rate may be calculated by the formula And (5) performing calculation. Therefore, if the last 1 times of sucking the electronic cigarette is 2 seconds, 5 sampling points are set every second, 10 first average airflow velocity +.>The 10 first average gas flow rates are recorded as +.>
Further, based on the formulaIt was confirmed that 10 second average air flow rates were respectively designated +.>Wherein (1)>By->Calculated out->By->Calculated …, < >>From the following componentsFrom the calculation.
Thus, based on the formulaCan determine 10 theoretical airflow velocity VIs denoted as V 0j J=1, 2, …,10. Wherein V is 01 By->And->Calculated, V 02 By->And->Calculated, …, V 010 By->Andand (5) calculating to obtain the product.
Further, based on the formulaCan determine 10 theoretical powers P, respectively denoted as P j J=1, 2, …,10. Wherein P is 1 From V 01 And->Calculated, P2 is defined by V 02 And->Calculated, …, P 10 From V 010 And->And (5) calculating to obtain the product.
At this time, a power curve can be obtained by fitting 10 theoretical powers. Therefore, in the next electronic cigarette sucking process, the power of the electronic cigarette changes along with the power curve, and the sucking experience of the user is greatly improved.
Example 4
Referring to fig. 8, the present embodiment provides an electronic cigarette gesture control device, which includes:
the acceleration value acquisition module is used for acquiring acceleration values of the electronic cigarette in at least two axial directions among a first axial direction, a second axial direction and a third axial direction;
the control gesture recognition module is used for recognizing a control gesture of a user according to the acceleration value;
and the electronic cigarette control module is used for controlling the working state of the electronic cigarette according to the control gesture.
Wherein the first axial direction, the second axial direction and the third axial direction are perpendicular to each other.
The control gesture recognition module further includes:
the first reference direction acceleration detection module is used for taking one axial direction as a first reference direction when the absolute value of the acceleration value of the axial direction is detected to be larger than a first threshold value, and starting timing and monitoring the acceleration values of the two remaining axial directions;
the second reference direction acceleration monitoring module is used for continuing monitoring if the absolute value of the acceleration value of one of the two remaining axial directions is larger than a first threshold value in the first preset time, taking the axial direction as a second reference direction, and ending detection if the absolute value of the acceleration value of the one of the two remaining axial directions is not larger than the first threshold value;
and the rotation number determining module is used for judging the control gesture as a control gesture rotating for Q circles if the first reference direction is detected to change (Q-1) times and the positive and negative acceleration values of the second direction change Q times within the second preset time, wherein q=Q/2 is a positive even number greater than or equal to 2.
Example 5
In addition, the electronic cigarette gesture control method of the embodiment of the invention described in connection with fig. 1 can be implemented by an electronic cigarette gesture control device. Fig. 9 shows a schematic hardware structure of an electronic cigarette gesture control device according to an embodiment of the present invention.
The electronic cigarette gesture control device may include a processor 401 and a memory 402 storing computer program instructions.
In particular, the processor 401 described above may include a Central Processing Unit (CPU), or an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or may be configured as one or more integrated circuits implementing embodiments of the present invention.
Memory 402 may include mass storage for data or instructions. By way of example, and not limitation, memory 402 may comprise a Hard Disk Drive (HDD), floppy Disk Drive, flash memory, optical Disk, magneto-optical Disk, magnetic tape, or universal serial bus (Universal Serial Bus, USB) Drive, or a combination of two or more of the foregoing. Memory 402 may include removable or non-removable (or fixed) media, where appropriate. Memory 402 may be internal or external to the data processing apparatus, where appropriate. In a particular embodiment, the memory 402 is a non-volatile solid state memory. In a particular embodiment, the memory 402 includes Read Only Memory (ROM). The ROM may be mask programmed ROM, programmable ROM (PROM), erasable PROM (EPROM), electrically Erasable PROM (EEPROM), electrically rewritable ROM (EAROM), or flash memory, or a combination of two or more of these, where appropriate.
The processor 401 implements the data addressing method of random area printing in any of the above embodiments by reading and executing computer program instructions stored in the memory 402.
The e-cigarette gesture control device may also include a communication interface 403 and a bus 410 in one example. As shown in fig. 6, the processor 401, the memory 402, and the communication interface 403 are connected by a bus 410 and perform communication with each other.
The communication interface 403 is mainly used to implement communication between each module, device, unit and/or apparatus in the embodiment of the present invention.
Bus 410 includes hardware, software, or both, coupling components for fractional ink volume output to each other. By way of example, and not limitation, the buses may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an infiniband interconnect, a Low Pin Count (LPC) bus, a memory bus, a micro channel architecture (MCa) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a video electronics standards association local (VLB) bus, or other suitable bus, or a combination of two or more of the above. Bus 410 may include one or more buses, where appropriate. Although embodiments of the invention have been described and illustrated with respect to a particular bus, the invention contemplates any suitable bus or interconnect.
Example 6
In addition, in combination with the electronic cigarette gesture control method in the above embodiment, the embodiment of the invention may be implemented by providing a computer readable storage medium. The computer readable storage medium has stored thereon computer program instructions; the computer program instructions, when executed by the processor, implement any one of the electronic cigarette gesture control methods of the above embodiments.
The above is a detailed description of the electronic cigarette gesture control method, the device, the equipment and the storage medium provided by the embodiment of the invention.
It should be understood that the invention is not limited to the particular arrangements and instrumentality described above and shown in the drawings. For the sake of brevity, a detailed description of known methods is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method processes of the present invention are not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between steps, after appreciating the spirit of the present invention.
The functional blocks shown in the above-described structural block diagrams may be implemented in hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic circuit, an Application Specific Integrated Circuit (ASIC), suitable firmware, a plug-in, a function card, or the like. When implemented in software, the elements of the invention are the programs or code segments used to perform the required tasks. The program or code segments may be stored in a machine readable medium or transmitted over transmission media or communication links by a data signal carried in a carrier wave. A "machine-readable medium" may include any medium that can store or transfer information. Examples of machine-readable media include electronic circuitry, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio Frequency (RF) links, and the like. The code segments may be downloaded via computer networks such as the internet, intranets, etc.
It should also be noted that the exemplary embodiments mentioned in this disclosure describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above-described steps, that is, the steps may be performed in the order mentioned in the embodiments, or may be performed in a different order from the order in the embodiments, or several steps may be performed simultaneously.
In the foregoing, only the specific embodiments of the present invention are described, and it will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the systems, modules and units described above may refer to the corresponding processes in the foregoing method embodiments, which are not repeated herein. It should be understood that the scope of the present invention is not limited thereto, and any equivalent modifications or substitutions can be easily made by those skilled in the art within the technical scope of the present invention, and they should be included in the scope of the present invention.

Claims (7)

1. The electronic cigarette gesture control method is characterized by comprising the following steps of:
acquiring acceleration values of the electronic cigarette in a first axial direction, a second axial direction and a third axial direction;
identifying a control gesture of a user according to the acceleration value;
controlling the working state of the electronic cigarette according to the control gesture;
wherein the first axial direction, the second axial direction and the third axial direction are mutually perpendicular;
recognizing a control gesture of a user according to the acceleration values of the electronic cigarette in the first axial direction, the second axial direction and the third axial direction and positive and negative change rules of the acceleration values;
the control gestures comprise gestures for driving the electronic cigarette to rotate for a preset number of turns, and the control gestures for identifying the user according to the acceleration value further comprise:
when the absolute value of the acceleration value in one axial direction is larger than a first threshold value, taking the axial direction as a first reference direction, starting timing and monitoring the acceleration values in the two remaining axial directions;
if the absolute value of the acceleration value of one of the two remaining axial directions is larger than a first threshold value, continuing to monitor, taking the axial direction as a second reference direction, and otherwise ending the detection;
if the positive and negative of the acceleration value of the first reference direction are detected to change (Q-1) times within the second preset time, and the positive and negative of the acceleration value of the second reference direction are detected to change Q times, judging that the control gesture is a control gesture rotating for Q circles, wherein q=Q/2, and Q is a positive even number greater than or equal to 2.
2. The electronic cigarette gesture control method of claim 1, wherein the control gesture comprises a gesture to shake the electronic cigarette, and wherein identifying the control gesture of the user based on the acceleration value further comprises:
taking the axial direction as a first reference direction when the absolute value of the acceleration value in the axial direction is detected to be larger than a first threshold value, and starting timing at the same time;
and judging the control gesture as a shaking gesture when the frequency of detecting positive and negative changes of the acceleration value of the first reference direction exceeds a second threshold value.
3. The electronic cigarette gesture control method according to claim 2, wherein in the operation state of controlling the electronic cigarette according to the control gesture, the heating power of the electronic cigarette is controlled according to the number of turns of the electronic cigarette or the frequency of shaking the electronic cigarette.
4. The electronic cigarette gesture control method according to claim 3, wherein when the number of turns of the electronic cigarette or the frequency of shaking the electronic cigarette reaches a third threshold, the electronic cigarette is controlled to enter a preset working mode, and the preset working mode includes:
acquiring preset parameters; the preset parameters comprise preset power P of the electronic cigarette s First weight W 1 Second weight W 2
Obtaining a first average airflow velocity of the last n times of sucking the electronic cigaretteWherein n is a positive integer;
obtaining a second average airflow velocity of the last m times of sucking the electronic cigaretteWherein m is a positive integer, and m>n;
According to the formulaCalculating a theoretical airflow velocity V;
according to the formulaCalculating theoretical power P;
and adjusting the power of the electronic cigarette according to the theoretical power P.
5. The electronic cigarette gesture control method according to claim 1 or 2, wherein in the operation state of controlling the electronic cigarette according to the control gesture, the on-off state of the electronic cigarette is controlled according to the direction and the acceleration of the control gesture.
6. An electronic cigarette, comprising: at least one processor, at least one memory, and computer program instructions stored in the memory, which when executed by the processor, implement the method of any one of claims 1-5.
7. A storage medium having stored thereon computer program instructions, which when executed by a processor, implement the method of any of claims 1-5.
CN202010959168.0A 2020-09-14 2020-09-14 Electronic cigarette gesture control method, device, equipment and storage medium Active CN114176267B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010959168.0A CN114176267B (en) 2020-09-14 2020-09-14 Electronic cigarette gesture control method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010959168.0A CN114176267B (en) 2020-09-14 2020-09-14 Electronic cigarette gesture control method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114176267A CN114176267A (en) 2022-03-15
CN114176267B true CN114176267B (en) 2024-03-19

Family

ID=80539652

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010959168.0A Active CN114176267B (en) 2020-09-14 2020-09-14 Electronic cigarette gesture control method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114176267B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109393565A (en) * 2017-08-17 2019-03-01 常州市派腾电子技术服务有限公司 Electronic cigarette control method, device and electronic cigarette
CN110301681A (en) * 2019-08-07 2019-10-08 深圳市讴可电子科技有限公司 A kind of control method of electronic cigarette, device, electronic cigarette and storage medium
CN110353318A (en) * 2019-08-20 2019-10-22 深圳迈美特科技有限公司 A kind of electronic cigarette and its control method
CN110959917A (en) * 2019-06-27 2020-04-07 深圳雾芯科技有限公司 Electronic atomizer device and method of operation

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120254809A1 (en) * 2011-03-31 2012-10-04 Nokia Corporation Method and apparatus for motion gesture recognition
GB201410171D0 (en) * 2014-06-09 2014-07-23 Nicoventures Holdings Ltd Electronic vapour provision system
US11147315B2 (en) * 2016-07-25 2021-10-19 Fontem Holdings 1 B.V. Controlling an operation of an electronic cigarette

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109393565A (en) * 2017-08-17 2019-03-01 常州市派腾电子技术服务有限公司 Electronic cigarette control method, device and electronic cigarette
CN110959917A (en) * 2019-06-27 2020-04-07 深圳雾芯科技有限公司 Electronic atomizer device and method of operation
CN110301681A (en) * 2019-08-07 2019-10-08 深圳市讴可电子科技有限公司 A kind of control method of electronic cigarette, device, electronic cigarette and storage medium
CN110353318A (en) * 2019-08-20 2019-10-22 深圳迈美特科技有限公司 A kind of electronic cigarette and its control method

Also Published As

Publication number Publication date
CN114176267A (en) 2022-03-15

Similar Documents

Publication Publication Date Title
CN112006338B (en) Power adjusting method and device of electronic cigarette, storage medium and electronic cigarette
WO2021077840A1 (en) Gesture control method and apparatus
JP5466435B2 (en) Information processing program and information processing apparatus
US11458385B2 (en) Storage medium storing information processing program, information processing system, information processing apparatus and information processing method
CN109892699B (en) Electronic cigarette smoking frequency counting method, electronic cigarette, storage medium and equipment
CN109361985B (en) TWS earphone wearing detection method and system, electronic device and storage medium
US7698097B2 (en) Method for controlling a pedometer based on the use of inertial sensors and pedometer implementing the method
EP3832437A1 (en) System and method for tracking a passive wand and actuating an effect based on a detected wand path
US10596461B2 (en) Information processing system, case, and cardboard member
US8690673B2 (en) Game apparatus, storage medium, game controlling method and game system
CN109480333A (en) Show the method and electronic cigarette of nicotine soakage
CN112833502A (en) Air cleaning device and intelligent management system
CN114176267B (en) Electronic cigarette gesture control method, device, equipment and storage medium
RU2012117525A (en) THROWNED GAME CONTROL, METHOD OF ITS USE AND MANUFACTURE
WO2018014420A1 (en) Light-emitting target recognition-based unmanned aerial vehicle tracking control system and method
CN105370606B (en) Intelligent electric fan and its control method
CN107568804A (en) Cigarette holder, electronic cigarette and its control method
CN109998178B (en) Electronic cigarette and method for detecting number of smoking openings of electronic cigarette
US20200082590A1 (en) Vehicle and control method thereof
KR20180067885A (en) Dust sensor and operating method thereof
KR20170056054A (en) Smoking removable control device
CN106020364A (en) Smart bracelet with searching function of mute mobile phone and hand gesture recognition method
KR102017953B1 (en) Cleaning method using augmented reality and System thereof
KR101477644B1 (en) System for monitoring smoking and device thereof
EP3881283B1 (en) System and method for sweet spot detection

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
GR01 Patent grant
GR01 Patent grant