Electronic cigarette device, system, smoking amount control method and storage medium
Technical field
The present embodiments relate to electronic cigarette field more particularly to a kind of electronic cigarette device, system, smoking amount control methods
And storage medium.
Background technique
With the improvement of living standards, and health of people demand raising, many places are in densely populated public area
Absolutely no smoking for domain or predeterminable area, and offender usually has fine.For smoker, need first to determine to smoking current
Whether scene can smoke and current scene is in the influence to surrounding of smoking.In the occasion that can be smoked, civilized smoker
Can be with the conscious adjustment flue gas flow of difference of scene, but the consciousness of many smoker's this respects is more weak, Er Qiesui
Smoking progress will forget about adjust flue gas flow, it is all bad to the influence of oneself and surrounding in this way.It is therefore desirable to provide
A kind of electronic cigarette device that can control flue gas flow.
Summary of the invention
The embodiment of the invention provides a kind of electronic cigarette device, system, smoking amount control method and storage mediums, to solve
Smoker is difficult the problem of effectively adjusting flue gas flow with the difference of scene by the consciousness and will of itself.
In a first aspect, the embodiment of the invention provides a kind of electronic cigarette devices, comprising:
Smoke pipe, for exporting flue gas in starting state;
Cigarette holder is set on the smoke pipe, for exporting flue gas from smoke pipe;
Valve is set on the cigarette holder, for controlling the flue gas flow of smoke pipe;
Control module connects the valve, for obtaining valve control instruction of the valve under current scene automatically, and holds
The row valve control instruction is with the flux of control valve, to adjust flue gas flow.
Further, the control module is automatically from the valve control instruction of valve described in acquisition for mobile terminal.
Second aspect, the embodiment of the invention also provides a kind of electronic cigarette systems, comprising:
Mobile terminal, the configuration information for being inputted according to user determines current scene, and is worked as according to current scene determination
Preceding flue gas flow, and the valve control instruction for being used for control valve is generated according to the current flue gas flow;
Electronic cigarette device described in first aspect, for from the acquisition for mobile terminal and executing valve control and referring to
It enables, to adjust flue gas flow.
Further, the configuration information is that the current scene of smoking cessation plan or user's input that user formulates or user set
The fixed current scene obtained by GPS positioning.
Further, the current scene is company, family, smoking seat or smoking cessation plan execution phase.
The third aspect, the embodiment of the invention also provides a kind of tobacco control methods, applied to electricity described in second aspect
Mobile terminal in sub- cigarette system;Include:
The scene configuration information of user's input is obtained, and current scene is determined according to the scene configuration information;
Current flue gas flow is determined according to current scene, and is generated according to the current flue gas flow for control valve
Valve control instruction, so that the electronic cigarette device exports current flue gas flow when executing the valve control instruction.
Further, described that current flue gas flow is determined according to current scene, and generated and used according to the current flue gas flow
In the valve control instruction of control valve, so that the electronic cigarette device exports current flue gas when executing the valve control instruction
After flow, further includes:
It obtains current flue gas flow and is presetting the information that changes with time in statistical time, to determine user in default statistics
Smoking capacity in time.
Further, the configuration information is smoking cessation plan, and the smoking cessation plan includes the default suction in default statistical time
Smoke, it is described that current flue gas flow is determined according to current scene, comprising:
Current flue gas flow is determined according to the default smoking capacity in the default statistical time of smoking cessation in the works;
Correspondingly, described generate the valve control instruction for being used for control valve according to the current flue gas flow, so that institute
It states after exporting current flue gas flow when electronic cigarette device executes the valve control instruction, further includes:
Change information of the current flue gas flow in default statistical time is obtained, and is generated in real time according to the change information
The smoking capacity of user taken in;
If the smoking capacity taken in reaches default smoking capacity, the current corresponding flue gas flow of valve control instruction is
Zero.
Further, the change information for obtaining current flue gas flow in default statistical time, and according to the variation
Information is generated in real time after the smoking capacity of user taken in default statistical time, further includes:
If the smoking capacity taken in reaches the preset percentage of default smoking capacity, prompt life is sent to electronic cigarette device
It enables, so that the electronic cigarette device exports prompt information according to the prompt command, the prompt information is to reduce flue gas flow,
And/or caution sound and/or indicator light flash.
Fourth aspect, it is described the embodiment of the invention also provides a kind of storage medium comprising computer executable instructions
Computer executable instructions as computer processor when being executed for executing tobacco control method described in the third aspect.
The technical solution of electronic cigarette device provided in an embodiment of the present invention, including smoke pipe, cigarette holder, valve and control module,
Smoke pipe is used to export flue gas in starting state;Cigarette holder is set on smoke pipe, for exporting flue gas from smoke pipe;Valve is set to cigarette holder
On, for controlling the flue gas flow of smoke pipe;Control module connecting valve, for obtaining valve automatically in the valve control of current scene
System instruction, and valve control instruction is executed with the flux of control valve, to adjust flue gas flow.Pass through the valve of different scenes
Control instruction allows the flux of electronic cigarette device autocontrol valve under different scenes, and then controls flue gas flow, is not necessarily to
User's de-regulation consciously.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing does one and simply introduces, it should be apparent that, drawings in the following description are some embodiments of the invention, for this
For the those of ordinary skill of field, without creative efforts, it can also be obtained according to these attached drawings others
Attached drawing.
Fig. 1 is the schematic diagram for the electronic cigarette device that the embodiment of the present invention one provides;
Fig. 2 is the communication scheme of the electronic cigarette device that the embodiment of the present invention one provides and mobile terminal;
Fig. 3 is the schematic diagram of electronic cigarette system provided by Embodiment 2 of the present invention;
Fig. 4 is the flow chart for the tobacco control method that the embodiment of the present invention three provides;
Fig. 5 is the flow chart for the tobacco control device that the embodiment of the present invention four provides;
Fig. 6 is the flow chart for the terminal device that the embodiment of the present invention five provides.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, hereinafter with reference to attached in the embodiment of the present invention
Figure, clearly and completely describes technical solution of the present invention by embodiment, it is clear that described embodiment is the present invention one
Section Example, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not doing
Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.
Embodiment one
Fig. 1 is the schematic diagram of electronic cigarette device provided in an embodiment of the present invention.As depicted in figs. 1 and 2, the electronic cigarette device
Including smoke pipe 101, cigarette holder 102, valve 103 and control module 104, smoke pipe 101 is used to export flue gas in starting state;Cigarette holder
102 are set on smoke pipe 101, for exporting flue gas from smoke pipe 101;Valve 103 is set on cigarette holder 102, for controlling smoke pipe
Flue gas flow;Control module 104, connecting valve 103 refer to for obtaining valve control of the valve 103 under current scene automatically
It enables, and executes valve control instruction with the flux of control valve 103, to adjust flue gas flow.
Occur to smoke caused by ignoring smoking scene because of user in order to prevent awkward, the electronic cigarette device of the present embodiment
Control module 104 can obtain the valve control instruction under current scene from mobile terminal 2 automatically, then execute valve control
Instruction, so that cigarette holder exports flue gas flow corresponding with the valve control instruction, certainly, which is also that current scene can
The flue gas flow of receiving.
Wherein, control module 104 is communicated by way of near-field communication with mobile terminal 2, such as bluetooth, sound wave
Deng.
Wherein, the producing method of current scene can be the smoking cessation plan execution phase that user formulates in mobile terminal, or use
In the current scene of mobile terminal input, also or the current scene obtained by GPS positioning that be arranged in mobile terminal of user, use
The current scene that family input or GPS positioning obtain can be company, family, smoking seat etc..
The technical solution of electronic cigarette device provided in an embodiment of the present invention, including smoke pipe, cigarette holder, valve and control module,
Smoke pipe is used to export flue gas in starting state;Cigarette holder is set on smoke pipe, for exporting flue gas from smoke pipe;Valve is set to cigarette holder
On, for controlling the flue gas flow of smoke pipe;Control module connecting valve, for obtaining valve automatically in the valve control of current scene
System instruction, and valve control instruction is executed with the flux of control valve, to adjust flue gas flow.Pass through the valve of different scenes
Control instruction, can be in the flux of autocontrol valve under different scenes, and then controls flue gas flow, consciously without user
De-regulation
Embodiment two
Fig. 3 is the schematic diagram of electronic cigarette system provided by Embodiment 2 of the present invention, which includes mobile terminal 2 and aforementioned
Electronic cigarette device 1 described in embodiment, mobile terminal 2 are used to determine current scene, and root according to the configuration information that user inputs
Current flue gas flow is determined according to current scene, and is generated according to current flue gas flow and referred to for the valve control of control valve
It enables;Electronic cigarette device 1 is used to obtain from mobile terminal 2 and executes valve control instruction to adjust flue gas flow.
Mobile terminal 2 needs first to obtain the scene configuration information of user's input, then before determining valve control command
Current scene is determined according to scene configuration information;Current flue gas flow is determined according to current scene, and according to current flue gas flow
The valve control instruction for being used for control valve is generated, so that electronic cigarette device exports current flue gas stream when executing valve control instruction
Amount.
Wherein, configuration information is smoking cessation plan execution phase or current scene title, and also or user is arranged in mobile terminal
The current scene obtained by GPS positioning, user's input or the obtained current scene of GPS positioning can be company, family, smoking
Area etc..
In order to obtain the smoking capacity of user, the also real-time recording valve door control instruction institute of the mobile terminal of the present embodiment is right
The flue gas flow answered is changed with time information with generating flue gas flow, change curve is specifically rendered as, by seeking flue gas stream
The real-time smoking capacity of user can be obtained in area corresponding to amount-time change curve.So that working as user's smoking capacity
When reaching the default smoking capacity in default statistical time, mobile terminal then exports prompt letter to the control module of electrical smoking device
Flue gas flow can be become zero speech prompt information or color tips information by breath, the prompt information.With default statistics
Time is to illustrate for one day, if prompt information is to become zero flue gas flow, when user's smoking capacity reaches the default of the same day
When smoking capacity, valve control instruction becomes zero electrical smoking device by flue gas flow automatically, forces limitation user's smoking;If
Prompt information is auditory tone cues, and prompt tone is then exported when smoking capacity reaches default smoking capacity on the day of user, and user is prompted to stop
Smoking;If prompt information is color tips, when the smoking capacity on the day of user reaches default smoking capacity, then pass through red instruction
Lamp exports prompt information, while becomes zero flue gas flow.
In order to improve user experience, smoking capacity of the mobile terminal of the present embodiment on the day of user reaches default smoking capacity
When preset percentage, the flue gas flow of user in some scenarios is gradually reduced by valve control instruction, on the one hand prolong
On the other hand the smoking period of long user makes user have more specific understanding to the smoking capacity on the same day, avoid stopping flue gas suddenly
Flow causes the irritability psychology of the biggish smoker of smoking addiction.
It is understood that if mobile terminal determines that current scene is not suitable for smoking, for example, be dense population areas or
Non-smoking area also generates the prompt information that should not be smoked while generating the valve control instruction that corresponding flue gas flow is zero, should
Prompt information is sound or indicator light flashing lamp, even if such user has a movement of smoking, flue gas flow be also be zero, will not make
User violates smoking ban regulation, while prompting user by voice prompt or indicator light, and user is made to recognize that current occasion is not suitable for
Smoking.
The embodiment of the present invention generates the valve control instruction of control valve, electronic cigarette by mobile terminal according to usage scenario
The control module of device then controls flue gas flow, avoids user in different fields according to valve control instruction control valve flux
Close the embarrassing phenomenon occurred by smoking.
Embodiment three
Fig. 4 is the flow chart for the tobacco control method that the embodiment of the present invention three provides.The technical solution of the present embodiment is applicable in
In make automatically user the case where different scenes are using different smoking regimes.This method is specifically included by mobile terminal execution
Following steps:
S101, the scene configuration information for obtaining user's input, and current scene is determined according to scene configuration information.
Mobile terminal needs first to obtain the scene configuration information of user's input, then before determining valve control command
Current scene is determined according to scene configuration information.
Wherein, configuration information is smoking cessation plan execution phase or current scene title, and also or user is arranged in mobile terminal
The current scene obtained by GPS positioning, user's input or the obtained current scene of GPS positioning can be company, family, smoking
Area etc..
S102, current flue gas flow is determined according to current scene, and generated according to current flue gas flow and be used for control valve
Valve control instruction so that electronic cigarette device execute valve control instruction when export current flue gas flow.
In order to obtain the smoking capacity of user, the also real-time recording valve door control instruction institute of the mobile terminal of the present embodiment is right
The flue gas flow answered is changed with time information with generating flue gas flow, change curve is specifically rendered as, by seeking flue gas stream
Area corresponding to amount-time change curve, the real-time smoking capacity of available user.So that working as the smoking of user
When amount reaches the default smoking capacity in default statistical time, mobile terminal exports prompt letter to the control module of electrical smoking device
Flue gas flow can be become zero speech prompt information or color tips information by breath, the prompt information.With default statistics
Time is to illustrate for one day, if prompt information is to become zero flue gas flow, when user's smoking capacity reaches the default of the same day
When smoking capacity, valve control instruction becomes zero electrical smoking device by flue gas flow automatically, forces limitation user's smoking;If
Prompt information is auditory tone cues, and prompt tone is then exported when smoking capacity reaches default smoking capacity on the day of user, and user is prompted to stop
Smoking;If prompt information is color tips, when the smoking capacity on the day of user reaches default smoking capacity, then pass through red instruction
Lamp exports prompt information, while becomes zero flue gas flow.
In order to improve user experience, smoking capacity of the mobile terminal of the present embodiment on the day of user reaches default smoking capacity
When preset percentage, the flue gas flow of user in some scenarios is gradually reduced by valve control instruction, on the one hand prolong
On the other hand the smoking period of long user makes user have more specific understanding to the smoking capacity on the same day, avoid stopping flue gas suddenly
Flow causes the irritability psychology of the biggish smoker of smoking addiction.
It is understood that if mobile terminal determines that current scene is not suitable for smoking, for example, be dense population areas or
Non-smoking area also generates the prompt information that should not be smoked while generating the valve control instruction that corresponding flue gas flow is zero, should
Prompt information is sound or indicator light, even if such user has a movement of smoking, flue gas flow be also be zero, not will use family and disobey
Anti- smoking ban regulation, while user is prompted by voice prompt or indicator light, so that user is recognized that current occasion is not suitable for smoking.
The technical solution of tobacco control method provided in an embodiment of the present invention is generated by mobile terminal according to usage scenario
The valve control instruction of control valve, the control module of electronic cigarette device is according to valve control instruction control valve flux, then
Flue gas flow is controlled, the embarrassing phenomenon for avoiding user from occurring in different occasions by smoking.
Example IV
Fig. 5 is the structural block diagram for the tobacco control device that the embodiment of the present invention four provides.The device is for executing above-mentioned
Tobacco control method provided by embodiment of anticipating, the device are chosen as software or hardware realization.The device includes:
Input module 21 is determined for obtaining the scene configuration information of user's input, and according to the scene configuration information
Current scene;
Output module 22, for determining current flue gas flow according to current scene, and it is raw according to the current flue gas flow
At the valve control instruction for control valve, so that output is current when the electronic cigarette device executes the valve control instruction
Flue gas flow.
Compared to the prior art, tobacco control device provided in an embodiment of the present invention is by mobile terminal according to usage scenario
Generate the valve control instruction of control valve, the control module of electronic cigarette device according to valve control instruction control valve flux,
Then flue gas flow is controlled, the embarrassing phenomenon for avoiding user from occurring in different occasions by smoking.
Smoking control provided by any embodiment of the invention can be performed in tobacco control device provided by the embodiment of the present invention
Method processed has the corresponding functional module of execution method and beneficial effect.
Embodiment five
Fig. 6 is the structural schematic diagram for the terminal device that the embodiment of the present invention five provides, as shown in fig. 6, the terminal device packet
Include processor 201, memory 202, input unit 203 and output device 204;The quantity of processor 201 can in terminal device
Be it is one or more, in Fig. 6 by taking a processor 201 as an example;Processor 201, memory 202, input in terminal device
Device 203 and output device 204 can be connected by bus or other modes, in Fig. 6 for being connected by bus.
Memory 202 is used as a kind of computer readable storage medium, can be used for storing software program, journey can be performed in computer
Sequence and module, if the corresponding program instruction/module of tobacco control method in the embodiment of the present invention is (for example, input module 21
With output module 22).Software program, instruction and the module that processor 201 is stored in memory 202 by operation, thus
The various function application and data processing for executing terminal device, that is, realize above-mentioned tobacco control method.
Memory 202 can mainly include storing program area and storage data area, wherein storing program area can store operation system
Application program needed for system, at least one function;Storage data area, which can be stored, uses created data etc. according to terminal.This
Outside, memory 202 may include high-speed random access memory, can also include nonvolatile memory, for example, at least one
Disk memory, flush memory device or other non-volatile solid state memory parts.In some instances, memory 202 can be into one
Step includes the memory remotely located relative to processor 201, these remote memories can be set by network connection to terminal
It is standby.The example of above-mentioned network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Input unit 203 can be used for receiving the number or character information of input, and generates and set with the user of terminal device
It sets and the related key signals of function control inputs.
Output device 204 may include the display terminals such as display screen, for example, the display screen of user terminal.
Embodiment six
The embodiment of the present invention six also provides a kind of storage medium comprising computer executable instructions, and the computer can be held
Row instruction is used to execute a kind of tobacco control method when being executed by computer processor, this method comprises:
The scene configuration information of user's input is obtained, and current scene is determined according to the scene configuration information;
Current flue gas flow is determined according to current scene, and is generated according to the current flue gas flow for control valve
Valve control instruction, so that the electronic cigarette device exports current flue gas flow when executing the valve control instruction.
Certainly, a kind of storage medium comprising computer executable instructions, computer provided by the embodiment of the present invention
The method operation that executable instruction is not limited to the described above, can also be performed tobacco control provided by any embodiment of the invention
Relevant operation in method.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention
It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but in many cases, the former is more
Good embodiment.Based on this understanding, technical solution of the present invention substantially in other words contributes to the prior art
Part can be embodied in the form of software products, which can store in computer readable storage medium
In, floppy disk, read-only memory (Read-Only Memory, abbreviation ROM), random access memory (Random such as computer
Access Memory, abbreviation RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are used so that a calculating
Machine terminal device (can be personal computer, server or network-termination device etc.) executes each embodiment institute of the present invention
The tobacco control method stated.
It is worth noting that, included each unit and module are only pressed in the embodiment of above-mentioned tobacco control device
It is divided, but is not limited to the above division according to function logic, as long as corresponding functions can be realized;In addition,
The specific name of each functional unit is also only for convenience of distinguishing each other, the protection scope being not intended to restrict the invention.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that
The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention
It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also
It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.