Patent Description:
Electronic cigarette is a product which can heat atomization substrates such as nicotine to generate an aerosol for a user to inhale. The electronic cigarette generally includes an atomizer and a power device. The power device supplies power to the atomizer so that the atomizer heats the atomization substrate to generate an aerosol. The atomizer and the power device can be in detachable connection, also can be in undetachable connection.

For the atomizer and the power device that are in detachable connection, it is easy to install different models or brands of atomizers and power devices together for use, which will easily cause confusions and errors in electronic cigarette functions and affect user experience and merchants' interests.

Therefore, how to prevent the mixed use of the atomizer and the power device is an urgent technical problem to be solved at present. <CIT> relates to an electronic cigarette control chip and an electronic cigarette including the chip. <CIT> relates to a unit including a built-in central processing unit (CPU) and an image forming apparatus using the same. <CIT> relates to new technologies for controlling operation of an electronic vapor device.

The embodiment of the present disclosure aims to provide an electronic cigarette control method and an electronic cigarette, which can effectively prevent the mixed use of an atomizer and a power device through an identity authentication of the atomizer and the power device.

In order to solve the above technical problem, the present invention provides a control method for an electronic cigarette according to claim <NUM>; further, the present invention provides a control device for an electronic cigarette according to claim <NUM>; further, the present invention provides an electronic cigarette according to claim <NUM>;.

Optionally, before the step of acquiring a second identity authentication code from the encryption authentication unit, the method further includes:
sending the random challenge data to the encryption authentication unit, so that the encryption authentication unit performs a calculation on the random challenge data, the prestored atomizer information and a prestored second key according to a prestored second encryption algorithm, to generate the second identity authentication code.

Optionally, the prestored first encryption algorithm and the prestored second encryption algorithm are both secure Hash algorithms.

Optionally, the first identity authentication code and the second identity authentication code are both information validation codes or MAC codes.

Optionally, the prestored atomizer information includes manufacturer information, version information, production information and a tobacco liquid type.

Optionally, the step of performing identity authentication according to the first identity authentication code and the second identity authentication code includes:.

Optionally, the prestored atomizer information includes an available number of puffs, an available smoking duration and an available amount of tobacco liquid, wherein the method further includes:.

Optionally, the method further includes:
when the available amount of tobacco liquid is less than a preset threshold, controlling the electronic cigarette to stop working or controlling the electronic cigarette to give a prompt.

In order to solve the above technical problem, the embodiment of the present disclosure employs another technical scheme as follows. A control device for an electronic cigarette is provided, the electronic cigarette includes an atomizer and a power device, the atomizer is provided with an encryption authentication unit, the power device is provided with a control unit, and when the atomizer is connected to the power device, the encryption authentication unit is in communication connection with the control unit;
the control device of the electronic cigarette includes:.

Optionally, the device further includes:
a sending module configured for sending the random challenge data to the encryption authentication unit before acquiring a second identity authentication code from the encryption authentication unit, so that the encryption authentication unit performs a calculation on the random challenge data, the prestored atomizer information and a prestored second key according to a prestored second encryption algorithm, to generate the second identity authentication code.

Optionally, the first control module specifically includes:.

Optionally, the prestored atomizer information includes an available number of puffs, an available smoking duration and an available amount of tobacco liquid, wherein the device further includes:.

Optionally, the device further includes:
a second control module configured for controlling the electronic cigarette to stop working or controlling the electronic cigarette to give a prompt when the available amount of tobacco liquid is less than a preset threshold.

In order to solve the above technical problem, the embodiment of the present disclosure employs another technical scheme as follows. An electronic cigarette is provided, which includes:.

The embodiment of the present disclosure has the following beneficial effects: different from the existing technology, the embodiment of the present disclosure provides an electronic cigarette control method and an electronic cigarette. The control method for the electronic cigarette controls the electronic cigarette to activate or prohibits the electronic cigarette to activate through performing identity authentication for a generated first identity authentication code and a second identity authentication code acquired from an encryption authentication unit; when the identity authentication is passed, the atomizer is matched with the power device and the electronic cigarette is controlled to activate; when the identity authentication is not passed, the atomizer is not matched with the power device and the electronic cigarette is prohibited to activate; this method effectively prevents the mixed use of the atomizer and the power device, improves user experience and guarantees merchants' interests.

One or more embodiments are illustrated through the image(s) in corresponding drawing(s). These illustrations do not form restrictions to the embodiments. Elements in the drawings with a same reference number are expressed as similar elements, and the images in the drawings do not form restrictions unless otherwise stated.

To make the purpose, the technical scheme and the advantages of the disclosure more apparent, a clear and complete description is provided to the technical scheme in the embodiment of the present disclosure in conjunction with the drawings in the embodiment of the present disclosure. Obviously, the embodiments described hereinafter are simply part embodiments of the present disclosure, but all the embodiments. All other embodiments obtained by the ordinary skill in the art based on the embodiments in the present disclosure without creative work are intended to be included in the scope of protection of the present disclosure.

It is to be noted that when an element is described as "fixed on" another element, it may be directly on the another element, or there might be one or more intermediate elements between them. When one element is described as "connected to" another element, it may be directly connected to the another element, or there might be one or more intermediate elements between them. Terms "vertical", "horizontal", "left", "right" and similar expressions used in this description are merely for illustration.

In addition, technical features involved in each embodiment of the present disclosure described below can be combined mutually if no conflict is incurred.

Referring to <FIG>, which is a structure diagram of an electronic cigarette provided in an embodiment of the present disclosure. The electronic cigarette <NUM> includes: an atomizer <NUM> and a power device <NUM>, the atomizer <NUM> and the power device <NUM> are in detachable connection, the power device <NUM> is configured for supplying power to the atomizer <NUM>, and the atomizer <NUM> is heated according to the electrical energy provided by the power device <NUM> so as to heat an atomization substate to generate an aerosol.

Specifically, the atomizer <NUM> is provided with an encryption authentication unit <NUM> and a heating element <NUM>.

The encryption authentication unit <NUM> is provided at an end part of one end of the atomizer <NUM> for connecting to the power device <NUM>, and includes an encryption module <NUM>, a storage module <NUM> and a Printed Circuit Board (PCB) <NUM>, wherein the encryption module <NUM> is connected to the storage module <NUM>.

Herein, the encryption module <NUM> is an encryption chip; the storage module <NUM> is a memory chip or a memory space in the encryption chip.

Referring to <FIG>, when the storage module <NUM> is a memory chip, both the encryption chip and the memory chip are arranged on the PCB <NUM>.

Referring to <FIG>, when the storage module <NUM> is a memory space in the encryption chip, the encryption chip is arranged on the PCB <NUM>.

The encryption module <NUM> is configured for storing a prestored second key and a prestored second encryption algorithm and is further configured for generating a second identity authentication code.

The storage module <NUM> is configured for storing prestored atomizer information, wherein the prestored atomizer information includes manufacturer information, version information, production information, a tobacco liquid type, an available number of puffs, an available smoking duration, an available amount of tobacco liquid, etc..

The heating element <NUM> is arranged inside the atomizer <NUM>. The heating element <NUM> may be an element capable of being electrified to generate heat, such as a heating coil, a heating piece, etc., and is configured for atomizing an atomization substrate to generate an aerosol after being heated.

When the atomizer <NUM> is connected to the power device <NUM>, both the encryption authentication unit <NUM> and the heating element <NUM> are connected and conducted to the power device <NUM>; the power device <NUM> can supply power to the encryption authentication unit <NUM> and the heating element <NUM>, such that the encryption authentication unit <NUM> can carry out the method of generating a second identity authentication code; the heating element <NUM> can be heated to heat an atomization substrate to generate an aerosol.

The power device <NUM> includes a control unit <NUM>, a power supply <NUM> and a connection piece <NUM>, wherein the control unit <NUM>, the power supply <NUM> and the connection piece <NUM> are mutually connected.

Herein, the control unit <NUM> may be an electronic component capable of completing coordination and command system work, such as a controller.

The control unit <NUM> is configured for storing a prestored first encryption algorithm and a prestored first key, and is further configured for carrying out the electronic cigarette control method to perform identity authentication for the atomizer <NUM> and the power device <NUM> and to control the operation state of the electronic cigarette according to the identity authentication result.

The power supply <NUM> may be a chemical power supply, for example, a dry cell, a lead-acid accumulator, a lithium-ion battery, etc.; when the atomizer <NUM> is connected to the power device <NUM>, the power supply <NUM> is configured for supplying power to the atomizer <NUM>, such that the atomizer <NUM> heats an atomization substrate to generate an aerosol.

The connection piece <NUM> is arranged at an end part of one end of the power device <NUM> for connecting to the atomizer <NUM>; the connection piece <NUM> may be a component capable of realizing circuit conduction, such as a spring plunger, an elastic piece and a golden finger.

When the atomizer <NUM> is connected to the power device <NUM>, the encryption authentication unit <NUM> is connected to the connection piece <NUM>, such that the encryption authentication unit <NUM> is conducted to the power supply <NUM> and the control unit <NUM> through the connection piece <NUM>; meanwhile, the power supply <NUM> can supply power to the encryption authentication unit <NUM>, the encryption authentication unit <NUM> is in communication connection with the control unit <NUM> (as shown in <FIG>), such that the control unit <NUM> can perform identity authentication using a second identity authentication code generated by the encryption authentication unit <NUM>; the heating element <NUM> is connected to the power supply <NUM>, and the control unit <NUM> controls the power output from the power supply <NUM> to the heating element <NUM>, so as to control the heating condition of the heating element <NUM>, that is, to control the operation state of the electronic cigarette, including controlling the electronic cigarette to activate and prohibiting the electronic cigarette to activate.

Herein, the encryption authentication unit <NUM> can perform wired communication connection or wireless communication connection with the control unit <NUM>. The wired communication connection includes I2C bus, <NUM>-Wie bus and the like; and the wireless the wired communication connection includes Bluetooth, <NUM>, <NUM>, WiFI and the like.

After the encryption authentication unit <NUM> is in communication connection with the control unit <NUM>, the control unit <NUM> carries out the electronic cigarette control method, to perform identity authentication for the atomizer <NUM> and the power device <NUM> and control the operation state of the electronic cigarette according to the identity authentication result. Specifically:.

the control unit <NUM> generates a first identity authentication code, and acquires a second identity authentication code from the encryption authentication unit <NUM>, and then the control unit <NUM> performs identity authentication according to the first identity authentication code and the second identity authentication code, controls the electronic cigarette to activate if the identity authentication is passed, and prohibits the electronic cigarette to activate if the identity authentication is not passed.

Herein, the step of the control unit <NUM> generating a first identity authentication code specifically includes: the control unit <NUM> generates a random challenge data, and acquires prestored atomizer information from the encryption authentication unit <NUM>, wherein the prestored atomizer information includes manufacturer information, version information, production information, a tobacco liquid type ,etc.; and then the control unit <NUM> performs a calculation on the random challenge data, the acquired prestored atomizer information and a prestored first key according to a prestored first encryption algorithm, to generate the first identity authentication code.

Meanwhile, the control unit <NUM> further sends the generated random challenge data to the encryption authentication unit <NUM>, so that the encryption authentication unit <NUM> performs a calculation on the prestored atomizer information, a prestored second key and the received random challenge data according to a prestored second encryption algorithm, to generate the second identity authentication code; meanwhile, the second identity authentication code generated by the encryption authentication unit <NUM> is the second identity authentication code that the control unit <NUM> needs to acquire.

During the process of the encryption authentication unit <NUM> generating the second identity authentication code, the prestored atomizer information includes manufacturer information, version information, production information, a tobacco liquid type, etc..

Further, the prestored first encryption algorithm and the prestored second encryption algorithm are both secure Hash algorithms (SHA). Preferably, the first encryption algorithm and the second encryption algorithm are SHA-<NUM>.

The first identity authentication code and the second identity authentication code are information validation codes or MAC codes, which are both calculated based on the prestored atomizer information; therefore, the first identity authentication code and the second identity authentication code represent the identity of one same atomizer. The first identity authentication code is calculated at the power device <NUM> end through the prestored first key and the acquired prestored atomizer information, while the second identity authentication code is calculated at the atomizer <NUM> end through the prestored second key and the prestored atomizer information, that is to say, the first identity authentication code and the second identity authentication code represent the identity of the atomizer from the power device <NUM> end and the atomizer <NUM> end respectively; when the first identity authentication code and the second identity authentication code are matched, the prestored first key and the prestored second key are matched, which indicates that the power device <NUM> and the atomizer <NUM> are matched; therefore, the identity authentication of the power device <NUM> and the atomizer <NUM> can be performed through the first identity authentication code and the second identity authentication code.

Preferably, the power device <NUM> and the atomizer <NUM> are determined to be matched when the prestored first key and the prestored second key are totally the same; meanwhile, the first identity authentication code and the second identity authentication code should be totally the same. Therefore, the step of the control unit <NUM> performing identity authentication according to the first identity authentication code and the second identity authentication code specifically includes:.

the control unit <NUM> compares the first identity authentication code with the second identity authentication code; if the first identity authentication code and the second identity authentication code are consistent, the identity authentication is passed; the control unit <NUM> controls the power supply <NUM> to output a specified power to the heating element <NUM> to enable the heating element <NUM> to be heated, then the electronic cigarette is activated; if the first identity authentication code and the second identity authentication code are inconsistent, the identity authentication is not passed; the control unit <NUM> controls the power supply <NUM> to output a zero power to the heating element <NUM> to enable the heating element <NUM> not to be heated, then the electronic cigarette is prohibited to activate.

Further, the control unit <NUM> generates a first identity authentication code and acquires a second identity authentication code from the encryption authentication unit <NUM> when receiving an activation command, and then completes the identity authentication of the atomizer <NUM> and the power device <NUM>. Herein, the activation command is a command generated when a user presses an ignition button of the electronic cigarette.

Of course, in some alternative embodiments, the control unit <NUM> can generate a first identity authentication code and acquire a second identity authentication code from the encryption authentication unit <NUM> when it is in communication connection with the encryption authentication unit <NUM>, and then completes the identity authentication of the atomizer <NUM> and the power device <NUM>.

Of course, in some other alternative embodiments, the control unit <NUM> can generate a first identity authentication code and acquire a second identity authentication code from the encryption authentication unit <NUM> according to a preset time interval, and then completes the identity authentication of the atomizer <NUM> and the power device <NUM>.

Further, if the identity authentication is passed, when the control unit <NUM> controls the electronic cigarette to activate, the control unit <NUM> can acquire a number of times of smoking, a working duration of the atomizer and a working power of the atomizer, and calculate a tobacco liquid consumption according to the working duration of the atomizer and the working power of the atomizer; and then the control unit <NUM> updates the acquired prestored atomizer information, including the available number of puffs, the available smoking duration and the available amount of tobacco liquid, according to the acquired number of times of smoking, the acquired working duration of the atomizer and the calculated tobacco liquid consumption.

Further, after the control unit <NUM> updates the available number of puffs, the available smoking duration and the available amount of tobacco liquid, it sends the available number of puffs, the available smoking duration and the available amount of tobacco liquid that are updated to the encryption authentication unit <NUM> to store, so as to replace the available number of puffs, the available smoking duration and the available amount of tobacco liquid that are originally stored in the encryption authentication unit <NUM>.

Further, each time the control unit <NUM> turns on the electronic cigarette or turns off the electronic cigarette, the control unit <NUM> acquires the available amount of tobacco liquid stored in the encryption authentication unit <NUM>, and compares the acquired available amount of tobacco liquid with a preset threshold; when the available amount of tobacco liquid is less than the preset threshold, the control unit <NUM> controls the electronic cigarette to stop working, that is, the control unit <NUM> controls the power supply <NUM> to output a zero power to the heating element <NUM>.

Of course, in some embodiments, a prompt device is arranged in the electronic cigarette, and the control unit <NUM> can control the prompt device to give a prompt when the available amount of tobacco liquid is less than the preset threshold. The prompt device may be a loudspeaker capable of making a prompt voice, also may be a buzzer capable of giving an alarm voice, and the like.

Further, in some embodiments, the control unit <NUM> can analyze the smoking habits of a user to generate a smoking report and a healthy smoking suggestion report, according to the number of times of smoking, the working duration of the atomizer, the working power of the atomizer, the tobacco liquid consumption, the tobacco liquid type and the like in each operation process, and sends the generated smoking report and healthy smoking suggestion report to a mobile terminal through establishing a communication connection with the mobile terminal, so that the user can better use the electronic cigarette. Thus, the user experience is improved.

The embodiment of the present disclosure provides an electronic cigarette, wherein an encryption authentication unit is arranged in an atomizer of the electronic cigarette and a control unit is arranged in a power device, and the encryption authentication unit is in communication connection with the control unit when the atomizer is connected to the power device, such that the control unit carries out the electronic cigarette control method to perform identity authentication for the atomizer and the power device, which effectively prevents the mixed use of the atomizer and the power device, improves the user experience and guarantees the merchants' interests.

Referring to <FIG>, which is a flowchart of an electronic cigarette control method provided in an embodiment of the present disclosure; the electronic cigarette control method is applied to an electronic cigarette; the electronic cigarette is the electronic cigarette described in the above embodiments, and the method provided in the embodiment of the present disclosure is carried out by a control unit <NUM> in the electronic cigarette, to perform identity authentication for the atomizer and the power device. The control method for the electronic cigarette includes:
S100: generating a first identity authentication code.

The above first identity authentication code is an information validation code or MAC code generated and calculated at the power device end, which can represent the identity of the atomizer from the power device end.

Referring to <FIG>, the above step of generating a first identity authentication code specifically includes:.

The above prestored first encryption algorithm is a SHA stored in the control unit of the power device. The prestored first encryption algorithm is a SHA-<NUM>.

The SHA-<NUM> is used to perform a calculation on the random challenge data, the prestored atomizer information and the prestored first key to generate the first identity authentication code. Since the random challenge data is randomly generated, the first identity authentication code calculated each time is not a fixed value and varies depending on the random challenge data.

S120: acquiring a second identity authentication code from the encryption authentication unit.

The above second identity authentication code is an information validation code or MAC code generated and calculated at the atomizer end, which can represent the identity of the atomizer from the atomizer end.

Referring to <FIG>, before S120, the control method for the electronic cigarette further includes:
S110: sending the random challenge data to the encryption authentication unit, so that the encryption authentication unit performs a calculation on the random challenge data, the prestored atomizer information and a prestored second key according to a prestored second encryption algorithm, to generate the second identity authentication code.

The above prestored atomizer information is the basic information of the atomizer stored in the encryption authentication unit of the atomizer, including manufacturer information, version information, production information, a tobacco liquid type, etc..

The above prestored second encryption algorithm is a SHA stored in the control unit of the power device. The prestored second encryption algorithm is a SHA-<NUM>.

The SHA-<NUM> is used to perform a calculation on the random challenge data, the prestored atomizer information and the prestored second key to generate the second identity authentication code.

Since the random challenge data is of strong randomness, in order to guarantee that the match between the first identity authentication code and the second identity authentication code is related to the match between the first key and the second key, the random challenge data used to generate the first identity authentication code is sent to the encryption authentication unit, such that the encryption authentication unit calculates the second identity authentication code using the same random challenge data. Meanwhile, if the first identity authentication code is matched with the second identity authentication code, then the prestored first key is matched with the prestored second key, which means the power device is matched with the atomizer; therefore, the identity authentication of the power device <NUM> and the atomizer <NUM> can be performed through the first identity authentication code and the second identity authentication code.

In some embodiments, when an activation command is received, a first identity authentication code is generated and a second identity authentication code is acquired from the encryption authentication unit.

Of course, in some alternative embodiments, when the control unit and the encryption authentication unit are in communication connection, a first identity authentication code is generated and a second identity authentication code is acquired from the encryption authentication unit.

Of course, in some other alternative embodiments, a first identity authentication code is generated and a second identity authentication code is acquired from the encryption authentication unit according to a preset time interval.

S130: performing identity authentication according to the first identity authentication code and the second identity authentication code.

Referring to <FIG>, the above step of performing identity authentication according to the first identity authentication code and the second identity authentication code specifically includes:.

In the embodiment of the present disclosure, the power device and the atomizer are determined to be matched when the prestored first key and the prestored second key are totally the same; meanwhile, the first identity authentication code and the second identity authentication code are the same; therefore, when performing identity authentication according to the first identity authentication code and the second identity authentication code, it is needed to compare whether the first identity authentication code and the second identity authentication code are the same.

S140: judging whether the identity authentication is passed.

S150a: controlling the electronic cigarette to activate if the identity authentication is passed.

S150b: prohibiting the electronic cigarette to activate if the identity authentication is not passed.

It is judged whether the identity authentication is passed through judging whether the first identity authentication code and the second identity authentication code are consistent. If the first identity authentication code and the second identity authentication code are consistent, the identity authentication is passed, and the electronic cigarette is controlled to activate. If the first identity authentication code and the second identity authentication code are inconsistent, the identity authentication is not passed, and the electronic cigarette is prohibited to activate.

Further, referring to <FIG>, in some embodiments, the control method for the electronic cigarette further includes:
S160: when the electronic cigarette is controlled to activate, acquiring a number of times of smoking, a working duration of the atomizer and a working power of the atomizer.

The above number of times of smoking refers to a number of puffs that the user takes during a process from the startup to the shutdown of the electronic cigarette, the number of times of smoking can be calculated through a change curve of air flow, each peak or trough is counted as one time. The number of times of smoking can be acquired using a flow sensor.

The above working duration of the atomizer refers to a time from the user turning on the electronic cigarette to the user turning off the electronic cigarette, the working duration of the atomizer can be acquired using a timer, the time starts timing when the electronic cigarette is turned on and the timer stops timing when the electronic cigarette is turned off, and the difference of time is the working duration of the atomizer.

The above working power of the atomizer refer to a power output from the power supply to the heating element during a process from the startup to the shutdown of the electronic cigarette.

S170: calculating a tobacco liquid consumption according to the working duration of the atomizer and the working power of the atomizer.

The above tobacco liquid consumption refers to an amount of tobacco liquid used during the operation process of the electronic cigarette, and it can be calculated through the working duration of the atomizer and the working power of the atomizer during the current working duration.

S180: updating the available amount of tobacco liquid, the available number of puffs and the available smoking duration according to the tobacco liquid consumption, the number of times of smoking and the working duration of the atomizer.

The prestored atomizer information further includes an available number of puffs, an available smoking duration and an available amount of tobacco liquid.

After the end of each operation process of the electronic cigarette, the available number of puffs in the acquired prestored atomizer information is updated according to the acquired number of times of smoking, specifically, subtracting the number of times of smoking from the available number of puffs; the available smoking duration in the acquired prestored atomizer information is updated according to the acquired working duration of the atomizer, specifically, subtracting the working duration of the atomizer from the available smoking duration; the available amount of tobacco liquid in the acquired prestored atomizer information is updated according to the acquired tobacco liquid consumption, specifically, subtracting the tobacco liquid consumption from the available amount of tobacco liquid.

Then, the available number of puffs, the available smoking duration and the available amount of tobacco liquid that are updated are sent to the encryption authentication unit <NUM> to store, so as to replace the available number of puffs, the available smoking duration and the available amount of tobacco liquid that are originally stored in the encryption authentication unit <NUM>.

Of course, in some embodiments, the method can analyze the smoking habits of a user to generate a smoking report and a healthy smoking suggestion report, according to the number of times of smoking, the working duration of the atomizer, the working power of the atomizer, the tobacco liquid consumption, the tobacco liquid type and the like in each operation process of the electronic cigarette, and sends the generated smoking report and healthy smoking suggestion report to a mobile terminal through establishing a communication connection with the mobile terminal, so that the user can better use the electronic cigarette. Thus, the user experience is improved.

Further, referring to <FIG>, in some embodiments, the control method for the electronic cigarette further includes:
S190: when the available amount of tobacco liquid is less than a preset threshold, controlling the electronic cigarette to stop working or controlling the electronic cigarette to give a prompt.

The above preset threshold is a preset minimum amount of tobacco liquid which can prevent the electronic cigarette from dry burning.

Each time the electronic cigarette is turned on or turned off, the available amount of tobacco liquid stored in the encryption authentication unit is acquired, and the acquired available amount of tobacco liquid is compared with a preset threshold; when the available amount of tobacco liquid is less than the preset threshold, the electronic cigarette is controlled to stop working, or the prompt device is controlled to give a prompt. Herein, the prompt device may be a loudspeaker arranged in the electronic cigarette capable of making a prompt voice, also may be a buzzer arranged in the electronic cigarette capable of giving an alarm voice, and the like.

The embodiment of the present disclosure provides a control method for an electronic cigarette, which controls the electronic cigarette to activate or prohibits the electronic cigarette to activate through performing identity authentication for the generated first identity authentication code and the second identity authentication code acquired from the encryption authentication unit, thus effectively prevents the mixed use of the atomizer and the power device, improves the user experience and guarantees the merchants' interests.

Referring to <FIG>, which is a structure diagram of an electronic cigarette control device provided in an embodiment of the present disclosure. The control device is applied to an electronic cigarette. The electronic cigarette is the electronic cigarette described in the above embodiments, however, the functions of each module of the device provided in the embodiment of the present disclosure are executed by the above control unit, so as to perform identity authentication for the atomizer and the power device. The control device for the electronic cigarette includes:.

Referring to <FIG>, the first generation module <NUM> further includes:.

Referring to <FIG>, the control device for the electronic cigarette further includes:
a sending module <NUM>, which is configured for sending the random challenge data to the encryption authentication unit, so that the encryption authentication unit performs a calculation on the random challenge data, the prestored atomizer information and a prestored second key according to a prestored second encryption algorithm, to generate the second identity authentication code.

Referring to <FIG>, the first control module <NUM> includes:.

Referring to <FIG>, the control device for the electronic cigarette further includes:.

Referring to <FIG>, the control device for the electronic cigarette further includes:
a second control module <NUM>, which is configured for controlling the electronic cigarette to stop working or controlling the electronic cigarette to give a prompt when the available amount of tobacco liquid is less than a preset threshold.

Since the device embodiments and the method embodiments are based on one same idea, the contents of the device embodiments may refer to those of the method embodiments if no conflict is incurred. No repeated description is needed here.

The embodiment of the present disclosure provides a control device for an electronic cigarette, which is capable of effectively preventing the mixed use of the atomizer and the power device, thereby improving the user experience and guaranteeing the merchants' interests.

Referring to <FIG>, which is a diagram of a hardware structure of the control unit shown in <FIG>, the control unit <NUM> is capable of executing the control method described in the above embodiments, and can also implement the functions of each module of the control device described in the above embodiments.

As shown in <FIG>, the control unit <NUM> includes:
one or more processors <NUM> and a memory <NUM>, wherein <FIG> takes one processor <NUM> for example.

The processor <NUM> and the memory <NUM> may be connected through a bus or other modes, and <FIG> takes a bus connection for example.

The memory <NUM>, as a non-volatile computer readable storage medium, may be used for storing non-volatile software programs, non-volatile computer executable programs and modules, for example, a program instruction corresponding to the control method for the electronic cigarette provided in the above embodiment of the present disclosure and a module corresponding to the control device for the electronic cigarette (for example, the first generation module <NUM>, the first acquisition module <NUM> and the first control module <NUM>, etc.). The processor <NUM> executes various function application and data processing of the control method for the electronic cigarette, that is, implementing the control method for the electronic cigarette in the above method embodiment and the functions of each module of the above device embodiment, through running the non-volatile software programs, instructions and modules stored in the memory <NUM>.

The memory <NUM> may include a program storage area and a data storage area, wherein the program storage area can store the application needed by an operating system or at least one function, and the data storage area can store data and the like created according to the control device for the electronic cigarette.

The data storage area further stores preset data, including a prestored first encryption algorithm, a prestored first key and a preset threshold, etc..

In addition, the memory <NUM> may include a high speed random access memory, and may further include a non-volatile memory, for example, at least one disk storage device, a flash memory device or other solid-state non-volatile storage devices. In some embodiments, the memory <NUM> optionally includes a remote memory relative to the processor <NUM>. The remote memory can be connected to the processor <NUM> through a network. Instances of the above network include but not limited to Internet, intranet, local area network, mobile communication network and combinations thereof.

The program instruction and the one or more modules are stored in the memory <NUM> and, when executed by the one or more processors <NUM>, will execute each step of the control method for the electronic cigarette in any one of the above method embodiments, or implement the functions of each module of the control device for the electronic cigarette in any one of the above device embodiments.

The above product can execute the method provided by the embodiment of the present disclosure and has corresponding function modules and beneficial effects to execute the method. Technical details that are not described in detail in the present embodiment can refer to the method provided by the embodiment of the disclosure.

The embodiment of the present disclosure provides a nonvolatile computer readable storage medium, the computer readable storage medium stores a computer executable instruction, and the computer executable instruction is executed by one or more processors (for example, one processor <NUM> in <FIG>) to cause the computer to execute each step of the control method for the electronic cigarette in any one of the above method embodiments, or implement the functions of each module of the control device for the electronic cigarette in any one of the above device embodiments.

The embodiment of the present disclosure further provides a computer program product, the computer program product includes a computer program stored in a nonvolatile computer readable storage medium, and the computer program includes a program instruction, which, when executed by one or more processors (for example, one processor <NUM> in <FIG>), causes the computer to execute each step of the control method for the electronic cigarette in any one of the above method embodiments, or implement the functions of each module of the control device for the electronic cigarette in any one of the above device embodiments.

The device embodiments described above are merely for illustration. The module described as a separate component may be or may not be physically separated; the component, displayed as a module, may be or may not be a physical unit, that is, it may be located at one place, or may be distributed on a plurality of network module units. Part or all modules may be selected to realize the purpose of the embodiment scheme according to actual needs.

Claim 1:
A control method for an electronic cigarette (<NUM>), wherein the electronic cigarette (<NUM>) comprises an atomizer (<NUM>) and a power device (<NUM>), the atomizer (<NUM>) is provided with an encryption authentication unit (<NUM>), the power device (<NUM>) is provided with a control unit, and when the atomizer (<NUM>) is connected to the power device (<NUM>), the encryption authentication unit (<NUM>) is in communication connection with the control unit;
the electronic cigarette control method comprises:
generating a first identity authentication code;
acquiring a second identity authentication code from the encryption authentication unit (<NUM>);
performing identity authentication according to the first identity authentication code and the second identity authentication code, and controlling the electronic cigarette (<NUM>) to activate if the identity authentication is passed; and
prohibiting the electronic cigarette (<NUM>) to activate if the identity authentication is not passed;
characterized in that,
wherein the step of generating a first identity authentication code comprises:
generating (S101) a random challenge data;
acquiring (S102) prestored atomizer information from the encryption authentication unit (<NUM>); and
performing (S103) a calculation on the random challenge data, the prestored atomizer information and a prestored first key according to a prestored first encryption algorithm, to generate the first identity authentication code.