WO2020047813A1 - Heating temperature control method and apparatus based on electronic cigarette, and electronic cigarette device - Google Patents

Heating temperature control method and apparatus based on electronic cigarette, and electronic cigarette device Download PDF

Info

Publication number
WO2020047813A1
WO2020047813A1 PCT/CN2018/104489 CN2018104489W WO2020047813A1 WO 2020047813 A1 WO2020047813 A1 WO 2020047813A1 CN 2018104489 W CN2018104489 W CN 2018104489W WO 2020047813 A1 WO2020047813 A1 WO 2020047813A1
Authority
WO
WIPO (PCT)
Prior art keywords
value
electronic cigarette
target
duty cycle
heating
Prior art date
Application number
PCT/CN2018/104489
Other languages
French (fr)
Chinese (zh)
Inventor
朱智鹏
段磊
周军
薛团委
胡鹏
李涛
Original Assignee
深圳市丽福科技有限责任公司
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 深圳市丽福科技有限责任公司 filed Critical 深圳市丽福科技有限责任公司
Priority to PCT/CN2018/104489 priority Critical patent/WO2020047813A1/en
Publication of WO2020047813A1 publication Critical patent/WO2020047813A1/en

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A24TOBACCO; CIGARS; CIGARETTES; SIMULATED SMOKING DEVICES; SMOKERS' REQUISITES
    • A24FSMOKERS' REQUISITES; MATCH BOXES; SIMULATED SMOKING DEVICES
    • A24F47/00Smokers' requisites not otherwise provided for

Definitions

  • the present invention relates to the field of computer technology, and in particular, to a method and device for controlling heating temperature based on an electronic cigarette, an electronic cigarette device, and a computer-readable medium.
  • E-cigarette is an electronic product that mimics cigarettes and has a look and taste similar to cigarettes.
  • the heating type electronic cigarette is heating tobacco instead of burning for smokers to smoke, that is, heating the tobacco at low temperature to evaporate nicotine and spices to obtain the same true tobacco flavor and taste as smoking real tobacco.
  • the corresponding control of the heating temperature is very important, because different heating temperatures heat the smokeable material (such as tobacco shreds) to different degrees, thus corresponding to different Suction taste.
  • the smokeable material such as tobacco shreds
  • the same preset is used for all users. Heating temperature, which leads to a poor user experience for some users.
  • an electronic cigarette-based heating temperature control method which can control the temperature of the electronic cigarette according to the needs of the user, realizes the flexibility of the heating temperature control, and improves the user experience.
  • An electronic cigarette-based heating temperature control method is based on an electronic cigarette device.
  • the electronic cigarette device includes a PWM output terminal and a heating element connected to the PWM output terminal.
  • the heating element is used to emit heat to the electronic cigarette device.
  • the smokeable material in the electronic cigarette device is heated for users to smoke;
  • the method includes:
  • the heating temperature of the heating element of the electronic cigarette device is adjusted according to the target PWM adjustment mode.
  • the electronic cigarette device is connected to a terminal device
  • the receiving heating temperature control instruction further includes:
  • the heating temperature instruction is generated by the terminal device by detecting a heating temperature control operation input by a user.
  • the receiving heating temperature control instruction further includes:
  • determining the target PWM adjustment method corresponding to the heating temperature control instruction according to the target temperature value and the current temperature value further includes:
  • the adjusting the heating temperature of a heating element of the electronic cigarette device according to the target PWM adjustment method further includes:
  • the PWM output from the PWM output terminal of the electronic cigarette device is adjusted according to the target duty cycle adjustment value.
  • adjusting the PWM output from the PWM output terminal of the electronic cigarette device according to the target duty cycle adjustment value further includes:
  • the output duty cycle value is a buffered duty cycle value, and the target duty cycle adjustment value is set to 0;
  • the target duty cycle adjustment value is set to the buffered duty cycle value.
  • determining the target duty cycle adjustment value according to the current duty cycle value, the current temperature value, and a preset target temperature value further includes:
  • a difference quantization value, the first difference quantization value is a value between 0 and 1;
  • An electronic cigarette-based heating temperature control device is based on an electronic cigarette device.
  • the electronic cigarette device includes a PWM output terminal and a heating element connected to the PWM output terminal.
  • the heating element is used to emit heat to the electronic cigarette.
  • the smokeable material in the electronic cigarette device is heated for users to smoke;
  • the device includes:
  • a control instruction receiving module configured to receive an input heating temperature control instruction and determine a target temperature value corresponding to the heating temperature control instruction
  • a temperature detection module configured to obtain a current temperature value of the heating element
  • An adjustment determination module configured to determine a target PWM adjustment mode corresponding to the heating temperature control instruction according to the target temperature value and the current temperature value;
  • a temperature adjustment module is configured to adjust a heating temperature of a heating element of the electronic cigarette device according to the target PWM adjustment mode.
  • control instruction receiving module is further configured to receive a heating temperature control instruction sent by a terminal device connected to the electronic cigarette device;
  • the control instruction receiving module is further configured to detect a pressing operation input through a peripheral button provided on the electronic cigarette device, and determine a heating temperature control instruction corresponding to the pressing operation.
  • an electronic cigarette device including a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein the processor executes all The computer program implements the method as described above.
  • a computer-readable storage medium which includes computer instructions, and when the computer instructions are run on a computer, the computer is caused to execute the method described above.
  • the magnitude of the duty cycle of the PWM output from the PWM output terminal for supplying power to the heating element is adjusted, compared with other At that time, the accuracy of the heating temperature control could be improved by adjusting the PWM duty cycle, thereby further improving the user's smoking taste in the use of electronic cigarette devices and improving the user experience.
  • FIG. 1 is a schematic structural diagram of an electronic cigarette device according to an embodiment
  • FIG. 2 is a schematic flowchart of an electronic cigarette-based heating temperature control method according to an embodiment
  • FIG. 3 is a schematic diagram of an instruction input interface for adjusting a heating temperature on a mobile terminal according to an embodiment
  • FIG. 4 is a schematic flowchart of obtaining a heating temperature of an electronic cigarette device according to an embodiment
  • FIG. 5 is a schematic diagram of a circuit for obtaining a heating temperature in an electronic cigarette device according to an embodiment
  • FIG. 6 is a schematic flowchart of determining a target duty cycle adjustment value in an embodiment
  • FIG. 7 is a schematic structural diagram of an electronic cigarette-based heating temperature control device according to an embodiment.
  • a heating temperature control method based on the electronic cigarette is proposed, and the implementation of this method can depend on
  • the computer program can run on a computer system based on the Von Neumann system.
  • the computer program can be an application program based on the heating temperature control of an electronic cigarette device, for example, integrated in a single-chip microcomputer of an electronic cigarette rod Control program for controlling heating temperature.
  • the electronic cigarette device may be an electronic cigarette rod of a heating type electronic cigarette, which may contain a smokeable material such as cut tobacco, and may The smokable material is heated for suction by a user.
  • the electronic cigarette device includes a heating circuit, and the heating circuit includes a heating element, and the heating element may be a heating resistor, for example, a thermistor or a load resistor.
  • the heating element is powered by a heating circuit, so that the heating electrons generate heat to heat the smokable material placed in the electronic cigarette device for users to smoke.
  • the power supply of the heating circuit is realized by PWM (Pulse Width Modulation, pulse width modulation) output, that is, the power supply circuit connected to the heating circuit outputs heating pulses to heat the heating circuit.
  • PWM Pulse Width Modulation, pulse width modulation
  • the circuit is powered, that is, the input of the heating circuit is connected to the PWM output (ie, the output of the power supply circuit).
  • different PWM pulse widths correspond to different output powers, so that the output power of the heating circuit is also different. Therefore, when the power of the heating circuit needs to be adjusted, the PWM The pulse width is adjusted to the power of the heating circuit, thereby achieving the adjustment of the temperature of the heating element.
  • the foregoing electronic cigarette-based heating temperature control method includes the following steps S102-S108:
  • Step S102 Receive an input heating temperature control instruction, and determine a target temperature value corresponding to the heating temperature control instruction.
  • the heating temperature control instruction is an instruction received by the control unit of the electronic cigarette device to control the temperature of a heating element (for example, a heating resistor) included in the electronic cigarette device.
  • This instruction is used to instruct the control unit to adjust the power supply output (for example, the duty ratio of the PWM output) in the electronic cigarette device, so as to achieve the purpose of controlling the temperature of the heating element.
  • the heating temperature control instruction includes the specific temperature value (target temperature value) for temperature control, or the direction and amplitude of temperature adjustment, and can be set according to the specific application scenario.
  • a physical button (or a peripheral button) is provided on the electronic cigarette device, and the user can input a corresponding heating temperature control instruction through the button, for example, when the button is in the first position In the case of heating, the preset first temperature is used as the target temperature value for heating, and when the button is in the second position, the preset second temperature is used as the target temperature value for heating.
  • the pressing operation corresponding to the heating temperature control instruction may also correspond to different pressing times, frequencies, and the like, and according to the preset correspondence between the pressing operation and the heating temperature control instruction, it is detected that After the pressing operation input through the peripheral button, a heating temperature control instruction corresponding to the detected pressing operation is determined, so that the control unit can control the corresponding module of the electronic cigarette device to perform related operations according to the heating temperature control instruction.
  • the electronic cigarette device is further provided with a communication module (for example, a limited communication module, a WIFI module, a Bluetooth module, a Zigee module, etc.), and the electronic cigarette device can communicate with other terminals through the communication module.
  • the device establishes a communication connection, and the related devices communicate through the communication connection (for example, data transmission, instruction transmission, etc.).
  • the electronic cigarette device can establish Bluetooth communication with a mobile terminal (for example, a mobile phone) through a Bluetooth module (Bluetooth chip), and the mobile phone and the electronic cigarette device can communicate through the established Bluetooth communication. Perform specific information exchange.
  • the user can control the heating temperature of the electronic cigarette device through the terminal device connected to the electronic cigarette device, for example, the heating temperature control instruction can be input through an APP corresponding to the electronic cigarette device installed on the terminal device.
  • FIG. 3 shows an application scenario of a control APP of an electronic cigarette device installed on a mobile phone.
  • the user can input the corresponding target temperature value or adjust the amplitude through the input box of the target temperature adjustment as shown in Fig. 3.
  • the mobile phone After detecting the user's operation, the mobile phone obtains the text entered by the user in the input box to generate heating.
  • the temperature control command is sent to the electronic cigarette device.
  • the corresponding target temperature value can be obtained directly from the heating temperature control instruction; if the heating temperature control instruction includes temperature adjustment In the case of direction and amplitude, obtain the corresponding temperature adjustment direction and amplitude, and determine the target temperature value in this adjustment according to the currently set heating temperature value.
  • Step S104 Acquire a current temperature value of the heating element.
  • a heating element is generally a resistor and a thermistor for a heating element, it corresponds to different resistance values under different temperature conditions, that is, the resistance value and There is a one-to-one correspondence between heating temperatures. Therefore, in this embodiment, the current resistance value of the heating element can be obtained by measuring the resistance value.
  • the step of obtaining the current temperature value of the heating element further includes steps S1021-S1022 as shown in FIG. 4:
  • Step S1021 detecting a current resistance value at both ends of the heating element
  • Step S1022 Determine a temperature value corresponding to the current resistance value as the current temperature value according to a preset temperature resistance correspondence relationship between the resistance value and the temperature value.
  • the calculation of the temperature is performed by measuring the resistance value of the resistor, and the heating resistor itself is a thermistor, so the temperature can be obtained by measuring the resistance value of the heating resistor.
  • the resistance and temperature of the heating resistor can be measured by a circuit as shown in FIG. 5.
  • RL is the load (heating component), and the R_DET_EN terminal is usually low voltage.
  • R_DET_EN is controlled by the chip to high voltage, Q1 is turned on, and the chip reads both ends of the sampling resistor R1 ( The voltages from A and B), that is, the ADC values at V_OUT and V_OUT_DET are N 1 and N 2 respectively .
  • the R_DET_EN terminal is low voltage to close Q1, and then pass
  • the purpose of detecting the current temperature value of the heating resistor is to control the heating temperature of the electronic cigarette, and in order to improve the control accuracy, the current temperature value needs to be detected in real time or at a higher frequency.
  • the step of obtaining the current temperature value of the heating resistor is periodically performed according to a preset time period value, for example, according to a 100 mS The above step S102 is executed periodically.
  • Step S106 Determine a target PWM adjustment mode corresponding to the heating temperature control instruction according to the target temperature value and the current temperature value.
  • the adjustment of the heating temperature of the electronic cigarette device is embodied by the adjustment of the duty cycle of the PWM output.
  • the temperature adjustment situation needs to be determined according to the foregoing and current temperature values, and a preset target temperature value, and the current duty cycle value of the PWM output needs to be determined.
  • Target duty cycle adjustment value for PWM duty cycle adjustment may be a target value for adjusting the PWM duty cycle in this adjustment.
  • step S106 further includes steps S1062-S1064 as shown in FIG. 6:
  • Step S1062 detecting that the current duty ratio of the PWM output terminal is the current duty value
  • Step S1064 Determine a target duty cycle adjustment value according to the current duty cycle value, the current temperature value, and the target temperature value, and use the target duty cycle adjustment value as the target PWM adjustment mode.
  • the output PWM duty cycle determines the output power, that is, different PWM duty cycles correspond to different heating powers for the heating circuit, that is, different heating temperatures. Therefore, when there is a gap between the current temperature value and the preset target temperature value, the output power can be controlled by controlling the PWM duty cycle to achieve the control of the heating temperature.
  • the current situation of the PWM duty cycle needs to be known first, and then the PWM duty cycle is adjusted.
  • the detection of the current PWM duty cycle is performed by measuring the current PWM duty cycle of the PWM output terminal, that is, the current duty cycle value.
  • the PWM adjustment mode is the process of adjusting the duty cycle of the PWM output of the electronic cigarette device, and the next step is to adjust the target duty cycle adjustment value of the PWM adjustment.
  • Step S108 Adjust the heating temperature of the heating element of the electronic cigarette device according to the target PWM adjustment mode.
  • the PWM output from the PWM output terminal of the electronic cigarette device can be adjusted according to the target PWM adjustment mode.
  • the above-mentioned adjusting the heating temperature of a heating element of the electronic cigarette device according to the target PWM adjustment method further includes: adjusting the electronic device according to the target duty cycle adjustment value. The PWM output from the PWM output of the cigarette device is adjusted.
  • the PWM output at the PWM output terminal can be adjusted according to the target duty cycle adjustment value, that is, the magnitude of the PWM duty cycle after adjustment is the target occupation Air ratio adjustment value.
  • the target temperature value is a preset temperature value for optimal suction taste.
  • the target temperature value can be set to 320 degrees, or the user can also customize settings according to his own requirements for suction taste.
  • the target temperature value for example, for users who like heavy taste, you can set a higher target temperature value, such as 360 degrees.
  • the specific process of adjusting the PWM duty cycle can be determined according to the current duty cycle and the specific size and situation of the current temperature value.
  • the target duty cycle adjustment value is set to 0.
  • the specific process of adjusting the PWM duty cycle is: when the current duty cycle value is 0 and the acquired current temperature value is less than or equal to the target temperature value, adjusting the target duty cycle The value is set to the buffer duty cycle value.
  • the specific size of the current PWM duty cycle needs to be stored, so that when the specific value of the PWM duty cycle is set later, it can be determined that it is closer to the target temperature value.
  • the PWM duty cycle improves the user experience. Therefore, when the duty cycle is 0, if the detected current temperature value is greater than or equal to the target temperature value, the PWM duty cycle is maintained at 0; if the detected current temperature value is less than or equal to the target temperature value , You need to adjust the PWM duty cycle. Therefore, set the target duty cycle adjustment value to the buffered duty cycle value, that is, the value of the stored duty cycle before the last time the PWM duty cycle was cleared. .
  • the target duty cycle adjustment value D N is set
  • the PWM duty cycle is adjusted to a size corresponding to the buffered duty cycle value D ′, so as to control the heating temperature of the electronic cigarette around the optimal target temperature.
  • the preset target temperature is: calculating the temperature difference between the target temperature value and the current temperature value as the first difference value, and according to the correspondence between the preset difference value and the quantized value To obtain a first difference quantization value corresponding to the first difference value, and the first difference quantization value is a value between 0 and 1; and obtaining the target temperature value and The quantized value corresponding to the obtained temperature difference value of the heating temperature value is used as the second difference quantized value; and the quantized value is determined according to the current duty cycle value, the first difference quantized value, and the second difference quantized value Target duty cycle adjustment value.
  • the determining the target duty cycle adjustment value according to the current duty cycle value, the first difference quantization value, and the second difference quantization value is specifically:
  • D N D N-1 + 2E N -E N-1
  • D N is the target duty cycle adjustment value
  • D N-1 is the current duty cycle value
  • E N is the first difference quantization value
  • E N-1 is the second difference The value is quantized.
  • the PWM duty cycle The ratio is adjusted, but the amplitude of the adjustment is the current duty cycle value plus twice the difference quantization value, and subtracting the previous difference quantization value.
  • the difference quantization value is a quantization value between 0 and 1 based on the difference between the detected current temperature value and the target temperature value. For example, if the difference value is 5 ° C, the difference is The value quantization value is set to 2%.
  • the first difference quantization value E N represents the difference between the detected current temperature value and the target temperature value in this adjustment (that is, the N-th adjustment).
  • the second difference quantization value E N-1 represents the difference between the detected current temperature value and the target temperature value in the current adjustment (that is, the N-1th adjustment or the last adjustment).
  • the difference quantization value corresponding to the difference is the difference quantization value corresponding to the difference.
  • the determination of the target duty cycle adjustment value can be determined according to the following formula:
  • the adjustment range of the PWM duty cycle is added to the original PWM duty cycle.
  • the twice the quantized value of the temperature difference detected during the current adjustment and subtracting the quantized value of the temperature difference detected during the last adjustment is PID (proportion-integral-derivative, ratio, integral, Differential control) adjustment.
  • PID proportion-integral-derivative, ratio, integral, Differential control
  • the correspondence between the difference between the current temperature value and the target temperature value, and the difference quantization value may be used.
  • it may be a linear function, a non-linear function, or a step function. .
  • the difference between the current temperature value and the target temperature value can be a step function.
  • function definition For example, use the following function definition:
  • E is the difference quantization value
  • the correspondence between the difference between the current temperature value and the target temperature value, and the difference quantization value can be any positive correlation function.
  • the electronic cigarette device includes a heating circuit, the heating circuit includes a heating element, an input terminal of the heating circuit is connected to a PWM output terminal, and the heating element is powered by the heating circuit to place the electronic cigarette
  • the smokeable material in the device is heated for suction by the user.
  • the foregoing electronic cigarette-based heating temperature control device includes:
  • a control instruction receiving module 102 configured to receive an input heating temperature control instruction and determine a target temperature value corresponding to the heating temperature control instruction
  • a temperature detection module 104 configured to obtain a current temperature value of the heating element
  • An adjustment determining module 106 configured to determine a target PWM adjustment mode corresponding to the heating temperature control instruction according to the target temperature value and the current temperature value;
  • the temperature adjustment module 108 is configured to adjust a heating temperature of a heating element of the electronic cigarette device according to the target PWM adjustment mode.
  • control instruction receiving module 102 is further configured to receive a heating temperature control instruction sent by a terminal device connected to the electronic cigarette device; or, the control instruction receiving module 102 is further configured to detect whether the The pressing operation of the external button input provided on the electronic cigarette device is described, and a heating temperature control instruction corresponding to the pressing operation is determined.
  • the adjustment determining module 106 is further configured to detect that the current output duty ratio of the PWM output terminal is a current duty cycle value; according to the current duty cycle value and the current temperature value
  • the target temperature value determines a target duty cycle adjustment value, and the target duty cycle adjustment value is used as the target PWM adjustment mode;
  • the temperature adjustment module 108 is further configured to perform an adjustment on the electronic cigarette according to the target duty cycle adjustment value.
  • the PWM output from the device's PWM output is adjusted.
  • the adjustment determining module 106 is further configured to: when the current temperature value is greater than the target temperature value, and a first difference between the current temperature value and the target temperature value When the preset difference threshold is exceeded, the current output duty cycle value of the PWM output terminal is acquired as a buffered duty cycle value, and the target duty cycle adjustment value is set to 0; when the current duty cycle value is If the obtained current temperature value is less than or equal to the target temperature value, the target duty cycle adjustment value is set to the buffer duty cycle value.
  • the adjustment determination module 106 is further configured to calculate a temperature difference between the target temperature value and the current temperature value as a first difference value, according to a preset difference value and quantization A corresponding relationship between the values, to obtain a first difference quantization value corresponding to the first difference value, and the first difference quantization value is a value between 0 and 1;
  • the quantized value corresponding to the target temperature value and the obtained temperature difference between the heating temperature values is used as the second difference quantized value; according to the current duty cycle value, the first difference quantized value, and the second difference
  • the value quantization value determines the target duty cycle adjustment value.
  • the magnitude of the duty cycle of the PWM output from the PWM output terminal for supplying power to the heating element is adjusted, compared with other At that time, the accuracy of the heating temperature control could be improved by adjusting the PWM duty cycle, thereby further improving the user's smoking taste in the use of electronic cigarette devices and improving the user experience.
  • all or part can be implemented by software, hardware, firmware, or any combination thereof.
  • a software program When implemented using a software program, it may be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, a data center, and the like that includes one or more available medium integration.
  • the available medium may be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (Solid State Disk (SSD)), and the like.
  • an electronic cigarette device that implements the above-mentioned electronic cigarette-based heating temperature control method and device includes a memory, a processor, and a memory, and a computer program that can be run on the processor is stored in the memory.
  • the processor executes the corresponding computer program, the related functions of the above-mentioned electronic cigarette-based heating temperature control method and device are realized.

Abstract

A heating temperature control method based on an electronic cigarette. The method is based on an electronic cigarette device. The electronic cigarette device comprises a PWM output end and a heating element connected to the PWM output end, the heating element being used for releasing heat for heating a smokable material placed in the electronic cigarette device so that a user can perform smoking. The method comprises: receiving an input heating temperature control instruction, and determining a target temperature value corresponding to the heating temperature control instruction; obtaining the current temperature value of the heating element; determining a target PWM adjustment mode corresponding to the heating temperature control instruction according to the target temperature value and the current temperature value; and adjusting the heating temperature of the heating element of the electronic cigarette device according to the target PWM adjustment mode.

Description

基于电子烟的加热温度控制方法及装置、电子烟设备Electronic cigarette-based heating temperature control method and device, and electronic cigarette equipment 技术领域Technical field
本发明涉及计算机技术领域,尤其涉及一种基于电子烟的加热温度控制方法及装置、电子烟设备、计算机可读介质。The present invention relates to the field of computer technology, and in particular, to a method and device for controlling heating temperature based on an electronic cigarette, an electronic cigarette device, and a computer-readable medium.
背景技术Background technique
电子烟是一种模仿卷烟的电子产品,有着与卷烟类似的外观和味道。而加热型电子烟是对烟草进行加热来取代燃烧,以供吸烟者进行吸食,即对烟草进行低温加热来蒸发出尼古丁以及香料,以得到与抽真烟一样的真实烟草香味和口感。E-cigarette is an electronic product that mimics cigarettes and has a look and taste similar to cigarettes. The heating type electronic cigarette is heating tobacco instead of burning for smokers to smoke, that is, heating the tobacco at low temperature to evaporate nicotine and spices to obtain the same true tobacco flavor and taste as smoking real tobacco.
也就是说,对于加热型电子烟来讲,其对应的加热温度的控制是非常重要的,因为不同的加热温度对可抽吸材料(如烟丝)进行加热的程度不一样,从而对应了不同的抽吸口感。对于不同的用户来讲,可能某部分客户偏好于低温加热的抽吸口感,部分客户偏好于高温加热的抽吸口感,而一般的电子烟产品中,对于所有的用户均采用相同的预设的加热温度,这就导致了部分用户的使用体验不佳。That is to say, for heating electronic cigarettes, the corresponding control of the heating temperature is very important, because different heating temperatures heat the smokeable material (such as tobacco shreds) to different degrees, thus corresponding to different Suction taste. For different users, some customers may prefer the low-temperature heating suction taste, and some customers prefer the high-temperature heating suction taste. In the general electronic cigarette products, the same preset is used for all users. Heating temperature, which leads to a poor user experience for some users.
也就是说,在相关技术方案中,对于电子烟的加热温度,多采用统一的预设的温度进行加热,这种温度控制的方案存在加热温度控制的灵活性不足的问题,使得用户的使用体验不佳。That is to say, in the related technical solutions, for the heating temperature of the electronic cigarette, a uniform preset temperature is often used for heating. This temperature control solution has the problem of insufficient flexibility of the heating temperature control, which makes the user experience Not good.
发明内容Summary of the Invention
基于此,在本发明中,提出了一种基于电子烟的加热温度控制方法,可以根据用户需求对电子烟的温度进行控制,实现了加热温度控制的灵活性,提升了用户体验。Based on this, in the present invention, an electronic cigarette-based heating temperature control method is proposed, which can control the temperature of the electronic cigarette according to the needs of the user, realizes the flexibility of the heating temperature control, and improves the user experience.
一种基于电子烟的加热温度控制方法,基于一电子烟设备,所述电子烟设备包括PWM输出端以及与所述PWM输出端连接的发热元件,所述发热元件用于发出热量给放置在所述电子烟设备中的可抽吸材料加热以供用户进行抽吸;An electronic cigarette-based heating temperature control method is based on an electronic cigarette device. The electronic cigarette device includes a PWM output terminal and a heating element connected to the PWM output terminal. The heating element is used to emit heat to the electronic cigarette device. The smokeable material in the electronic cigarette device is heated for users to smoke;
所述方法包括:The method includes:
接收输入的加热温度控制指令,确定与所述加热温度控制指令对应的目标温度值;Receiving an input heating temperature control instruction, and determining a target temperature value corresponding to the heating temperature control instruction;
获取所述发热元件的当前温度值;Obtaining a current temperature value of the heating element;
根据所述目标温度值与所述当前温度值确定与所述加热温度控制指令对应的目标 PWM调节方式;Determining a target PWM adjustment mode corresponding to the heating temperature control instruction according to the target temperature value and the current temperature value;
根据所述目标PWM调节方式对所述电子烟设备的发热元件进行加热温度的调节。The heating temperature of the heating element of the electronic cigarette device is adjusted according to the target PWM adjustment mode.
可选的,所述电子烟设备与一终端设备连接;Optionally, the electronic cigarette device is connected to a terminal device;
所述接收输入的加热温度控制指令,还包括:The receiving heating temperature control instruction further includes:
接收所述终端设备发送的加热温度控制指令,所述加热温度指令由所述终端设备通过检测用户输入的加热温度控制操作并生成。Receiving a heating temperature control instruction sent by the terminal device, and the heating temperature instruction is generated by the terminal device by detecting a heating temperature control operation input by a user.
可选的,所述接收输入的加热温度控制指令,还包括:Optionally, the receiving heating temperature control instruction further includes:
检测通过所述电子烟设备上设置的外设按钮输入的按压操作,确定与所述按压操作对应的加热温度控制指令。Detecting a pressing operation input through a peripheral button provided on the electronic cigarette device, and determining a heating temperature control instruction corresponding to the pressing operation.
可选的,所述根据所述目标温度值与所述当前温度值确定与所述加热温度控制指令对应的目标PWM调节方式,还包括:Optionally, determining the target PWM adjustment method corresponding to the heating temperature control instruction according to the target temperature value and the current temperature value further includes:
检测所述PWM输出端当前输出的占空比大小为当前占空比值;Detecting that a current duty ratio of the PWM output terminal is a current duty ratio value;
根据所述当前占空比值和所述当前温度值、目标温度值确定目标占空比调节值,将所述目标占空比调节值作为所述目标PWM调节方式;Determining a target duty cycle adjustment value according to the current duty cycle value, the current temperature value, and the target temperature value, and using the target duty cycle adjustment value as the target PWM adjustment mode;
所述根据所述目标PWM调节方式对所述电子烟设备的发热元件进行加热温度的调节,还包括:The adjusting the heating temperature of a heating element of the electronic cigarette device according to the target PWM adjustment method further includes:
根据所述目标占空比调节值对所述电子烟设备的PWM输出端输出的PWM进行调节。The PWM output from the PWM output terminal of the electronic cigarette device is adjusted according to the target duty cycle adjustment value.
可选的,所述根据所述目标占空比调节值对所述电子烟设备的PWM输出端输出的PWM进行调节,还包括:Optionally, adjusting the PWM output from the PWM output terminal of the electronic cigarette device according to the target duty cycle adjustment value further includes:
在所述当前温度值大于所述目标温度值、且所述当前温度值与所述目标温度值之间的第一差值超过预设的差值阈值的情况下,获取所述PWM输出端当前输出的占空比值为缓存占空比值,将所述目标占空比调节值设置为0;When the current temperature value is greater than the target temperature value, and a first difference between the current temperature value and the target temperature value exceeds a preset difference threshold, obtaining the current value of the PWM output terminal The output duty cycle value is a buffered duty cycle value, and the target duty cycle adjustment value is set to 0;
在所述当前占空比值为0、且所述获取到的当前温度值小于或等于所述目标温度值的情况下,将所述目标占空比调节值设置为所述缓存占空比值。When the current duty cycle value is 0 and the acquired current temperature value is less than or equal to the target temperature value, the target duty cycle adjustment value is set to the buffered duty cycle value.
可选的,所述根据所述当前占空比值和所述当前温度值、预设的目标温度值确定目标占空比调节值,还包括:Optionally, determining the target duty cycle adjustment value according to the current duty cycle value, the current temperature value, and a preset target temperature value further includes:
计算所述目标温度值与所述当前温度值之间的温度差值作为第一差值,根据预设的差值与量化值之间的对应关系,获取与所述第一差值对应的第一差值量化值,第一差值量化值为0到1之间的数值;Calculate a temperature difference between the target temperature value and the current temperature value as a first difference value, and obtain a first correspondence value corresponding to the first difference value according to a preset correspondence between a difference value and a quantized value. A difference quantization value, the first difference quantization value is a value between 0 and 1;
获取上一次对PWM进行调节的过程中与所述目标温度值与获取到的加热温度值的温度差值对应的量化值作为第二差值量化值;Obtaining a quantized value corresponding to the temperature difference between the target temperature value and the obtained heating temperature value during the last adjustment of the PWM as the second difference quantized value;
根据所述当前占空比值和所述第一差值量化值、所述第二差值量化值确定所述目标占空比调节值。Determining the target duty cycle adjustment value according to the current duty cycle value, the first difference quantization value, and the second difference quantization value.
一种基于电子烟的加热温度控制装置,基于一电子烟设备,所述电子烟设备包括PWM输出端以及与所述PWM输出端连接的发热元件,所述发热元件用于发出热量给放置在所述电子烟设备中的可抽吸材料加热以供用户进行抽吸;An electronic cigarette-based heating temperature control device is based on an electronic cigarette device. The electronic cigarette device includes a PWM output terminal and a heating element connected to the PWM output terminal. The heating element is used to emit heat to the electronic cigarette. The smokeable material in the electronic cigarette device is heated for users to smoke;
所述装置包括:The device includes:
控制指令接收模块,用于接收输入的加热温度控制指令,确定与所述加热温度控制指令对应的目标温度值;A control instruction receiving module, configured to receive an input heating temperature control instruction and determine a target temperature value corresponding to the heating temperature control instruction;
温度检测模块,用于获取所述发热元件的当前温度值;A temperature detection module, configured to obtain a current temperature value of the heating element;
调节确定模块,用于根据所述目标温度值与所述当前温度值确定与所述加热温度控制指令对应的目标PWM调节方式;An adjustment determination module, configured to determine a target PWM adjustment mode corresponding to the heating temperature control instruction according to the target temperature value and the current temperature value;
温度调节模块,用于根据所述目标PWM调节方式对所述电子烟设备的发热元件进行加热温度的调节。A temperature adjustment module is configured to adjust a heating temperature of a heating element of the electronic cigarette device according to the target PWM adjustment mode.
可选的,所述控制指令接收模块还用于接收与所述电子烟设备连接的终端设备发送的加热温度控制指令;Optionally, the control instruction receiving module is further configured to receive a heating temperature control instruction sent by a terminal device connected to the electronic cigarette device;
或,or,
所述控制指令接收模块还用于检测通过所述电子烟设备上设置的外设按钮输入的按压操作,并确定与所述按压操作对应的加热温度控制指令。The control instruction receiving module is further configured to detect a pressing operation input through a peripheral button provided on the electronic cigarette device, and determine a heating temperature control instruction corresponding to the pressing operation.
在另一个部分中,还提供了一种电子烟设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如前所述所述的方法。In another part, an electronic cigarette device is also provided, including a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein the processor executes all The computer program implements the method as described above.
在另一个可选的实施例中,还提供了一种计算机可读存储介质,包括计算机指令,当所述计算机指令在计算机上运行时,使得计算机执行如前所述的方法。In another optional embodiment, a computer-readable storage medium is also provided, which includes computer instructions, and when the computer instructions are run on a computer, the computer is caused to execute the method described above.
实施本发明实施例,将具有如下有益效果:Implementing the embodiments of the present invention will have the following beneficial effects:
采用了上述基于电子烟的加热温度控制方法和装置之后,在用户使用烤烟型电子烟设备时,在通过加热电阻对放置在电子烟设备中的例如烟丝等可抽吸材料进行加热的过程中,用户可以通过电子烟设备本身或者与电子烟设备连接的外部终端设备对电子烟的加热温度 进行控制,从而使得用户可以对电子烟的加热温度进行自定义的调整,例如采用更高、或更低的温度进行加热以获取不同的抽吸体验,提高了加热温度调整的灵活性。并且,在本实施例中,在对电子烟的加热温度进行调整的过程中,是通过对发热元件进行电能供应的PWM输出端所输出的PWM的占空比的大小进行调节的,相对于其他的温度调节当时,通过PWM占空比的调节可以提高加热温度控制的精准度,从而进一步的提升了用户在使用电子烟设备中的抽吸口感,提升用户体验。After adopting the above-mentioned electronic cigarette-based heating temperature control method and device, when a user uses a flue-cured tobacco electronic cigarette device, in the process of heating a smokeable material such as tobacco shreds placed in the electronic cigarette device through a heating resistor, The user can control the heating temperature of the electronic cigarette through the electronic cigarette device itself or an external terminal device connected to the electronic cigarette device, so that the user can customize the heating temperature of the electronic cigarette, for example, using a higher or lower temperature The heating temperature is adjusted to obtain different suction experiences, which improves the flexibility of heating temperature adjustment. Moreover, in this embodiment, in the process of adjusting the heating temperature of the electronic cigarette, the magnitude of the duty cycle of the PWM output from the PWM output terminal for supplying power to the heating element is adjusted, compared with other At that time, the accuracy of the heating temperature control could be improved by adjusting the PWM duty cycle, thereby further improving the user's smoking taste in the use of electronic cigarette devices and improving the user experience.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly explain the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description are merely These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without paying creative labor.
其中:among them:
图1为一个实施例中一种电子烟设备的结构示意图;FIG. 1 is a schematic structural diagram of an electronic cigarette device according to an embodiment; FIG.
图2为一个实施例中一种基于电子烟的加热温度控制方法的流程示意图;FIG. 2 is a schematic flowchart of an electronic cigarette-based heating temperature control method according to an embodiment; FIG.
图3为一个实施例中移动终端上对加热温度进行调节的指令输入界面示意图;3 is a schematic diagram of an instruction input interface for adjusting a heating temperature on a mobile terminal according to an embodiment;
图4为一个实施例中电子烟设备的加热温度获取的流程示意图;4 is a schematic flowchart of obtaining a heating temperature of an electronic cigarette device according to an embodiment;
图5为一个实施例中电子烟设备中加热温度获取的电路示意图;5 is a schematic diagram of a circuit for obtaining a heating temperature in an electronic cigarette device according to an embodiment;
图6为一个实施例中目标占空比调节值确定的流程示意图;6 is a schematic flowchart of determining a target duty cycle adjustment value in an embodiment;
图7为一个实施例中一种基于电子烟的加热温度控制装置的结构示意图。FIG. 7 is a schematic structural diagram of an electronic cigarette-based heating temperature control device according to an embodiment.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In the following, the technical solutions in the embodiments of the present invention will be clearly and completely described with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
为解决传统技术中对加热型电子烟的加热温度的控制存在控制准确率不足的技术问题,在本实施例中,特提出了一种基于电子烟的加热温度控制方法,该方法的实现可依赖于计算机程序,该计算机程序可运行于基于冯诺依曼体系的计算机系统之上,该计算机程序可 以是基于电子烟设备的加热温度控制的应用程序,例如,集成在电子烟烟杆的单片机中对加热温度进行控制的控制程序。In order to solve the technical problem that the heating temperature of the heating type electronic cigarette has insufficient control accuracy in the conventional technology, in this embodiment, a heating temperature control method based on the electronic cigarette is proposed, and the implementation of this method can depend on In a computer program, the computer program can run on a computer system based on the Von Neumann system. The computer program can be an application program based on the heating temperature control of an electronic cigarette device, for example, integrated in a single-chip microcomputer of an electronic cigarette rod Control program for controlling heating temperature.
具体的,上述基于电子烟的加热温度控制方法的实现和执行基于一电子烟设备,该电子烟设备可以是加热型电子烟的电子烟烟杆,可以容纳例如烟丝等可抽吸材料,并且可以对该可抽吸材料进行加热以供用户进行抽吸。如图1所示,该电子烟设备包括加热电路,所述加热电路包括发热元件,该发热元件可以为加热电阻,例如,为热敏电阻或负载电阻。并且,通过加热电路给发热元件供电,从而使得所述加热电子发热以给放置在所述电子烟设备中的可抽吸材料加热以供用户进行抽吸。需要说明的是,在本实施例中,加热电路的供电是通过PWM(Pulse Width Modulation,脉冲宽度调制)输出来实现的,也就是说,与加热电路连接的供电电路通过输出PWM脉冲来给加热电路供电,也就是说,加热电路的输入端与PWM输出端(即供电电路的输出端)连接。Specifically, the implementation and execution of the above-mentioned electronic cigarette-based heating temperature control method are based on an electronic cigarette device. The electronic cigarette device may be an electronic cigarette rod of a heating type electronic cigarette, which may contain a smokeable material such as cut tobacco, and may The smokable material is heated for suction by a user. As shown in FIG. 1, the electronic cigarette device includes a heating circuit, and the heating circuit includes a heating element, and the heating element may be a heating resistor, for example, a thermistor or a load resistor. In addition, the heating element is powered by a heating circuit, so that the heating electrons generate heat to heat the smokable material placed in the electronic cigarette device for users to smoke. It should be noted that, in this embodiment, the power supply of the heating circuit is realized by PWM (Pulse Width Modulation, pulse width modulation) output, that is, the power supply circuit connected to the heating circuit outputs heating pulses to heat the heating circuit. The circuit is powered, that is, the input of the heating circuit is connected to the PWM output (ie, the output of the power supply circuit).
需要说明的是,在本实施例中,不同的PWM脉宽对应了不同的输出功率,从而对加热电路的输出功率也不相同,因此,在需要对加热电路的功率进行调节的时候可以通过PWM脉宽的调节来对加热电路的功率,从而实现对发热元件的温度的调节。It should be noted that in this embodiment, different PWM pulse widths correspond to different output powers, so that the output power of the heating circuit is also different. Therefore, when the power of the heating circuit needs to be adjusted, the PWM The pulse width is adjusted to the power of the heating circuit, thereby achieving the adjustment of the temperature of the heating element.
具体的,如图2所示,上述基于电子烟的加热温度控制方法包括如下步骤S102-S108:Specifically, as shown in FIG. 2, the foregoing electronic cigarette-based heating temperature control method includes the following steps S102-S108:
步骤S102:接收输入的加热温度控制指令,确定与所述加热温度控制指令对应的目标温度值。Step S102: Receive an input heating temperature control instruction, and determine a target temperature value corresponding to the heating temperature control instruction.
加热温度控制指令为电子烟设备的控制单元接收到的针对电子烟设备中包含的发热元件(例如,加热电阻)的温度进行控制的指令。该指令是用于指示控制单元调节电子烟设备中的供电输出(例如,PWM输出的占空比大小),从而达到对发热元件的温度控制的目的。The heating temperature control instruction is an instruction received by the control unit of the electronic cigarette device to control the temperature of a heating element (for example, a heating resistor) included in the electronic cigarette device. This instruction is used to instruct the control unit to adjust the power supply output (for example, the duty ratio of the PWM output) in the electronic cigarette device, so as to achieve the purpose of controlling the temperature of the heating element.
一般来讲,加热温度控制指令中包含了对于温度控制的具体温度值(目标温度值)、或温度调节的方向和幅值,并且可以根据具体的应用场景进行设置。Generally speaking, the heating temperature control instruction includes the specific temperature value (target temperature value) for temperature control, or the direction and amplitude of temperature adjustment, and can be set according to the specific application scenario.
具体的,在一个可选的实施例中,在电子烟设备上设置有实体按键(或外设按钮),用户可以通过该按钮来输入相应的加热温度控制指令,例如,在按钮处于第一位置的情况下,采用预设的第一温度作为目标温度值进行加热,在按钮处于第二位置的情况下,采用预设的第二温度作为目标温度值进行加热。另外,在其他实施例中,与加热温度控制指令对应的按压操作还可以对应了不同的按压次数、频次等,并且根据预设的按压操作与加热温度控制指令之间的对应关系,在检测到了通过外设按钮输入的按压操作之后,确定与检测到 的按压操作对应的加热温度控制指令,从而使得控制单元可以根据该加热温度控制指令控制电子烟设备的相应模块执行相关操作。Specifically, in an optional embodiment, a physical button (or a peripheral button) is provided on the electronic cigarette device, and the user can input a corresponding heating temperature control instruction through the button, for example, when the button is in the first position In the case of heating, the preset first temperature is used as the target temperature value for heating, and when the button is in the second position, the preset second temperature is used as the target temperature value for heating. In addition, in other embodiments, the pressing operation corresponding to the heating temperature control instruction may also correspond to different pressing times, frequencies, and the like, and according to the preset correspondence between the pressing operation and the heating temperature control instruction, it is detected that After the pressing operation input through the peripheral button, a heating temperature control instruction corresponding to the detected pressing operation is determined, so that the control unit can control the corresponding module of the electronic cigarette device to perform related operations according to the heating temperature control instruction.
在另一个可选的实施例中,在电子烟设备上还设置有通信模块(例如,有限通讯模块、WIFI模块、蓝牙模块、Zigee模块等),并且电子烟设备可以通过该通讯模块与其他终端设备建立通讯连接,并相关之间通过该通讯连接进行通讯(例如,数据的传输、指令的发送等)。在一个具体的实施例中,电子烟设备可以通过蓝牙模块(蓝牙芯片)与移动终端(例如,手机)来建立蓝牙通讯,并且该手机与电子烟设备之间可以通过该建立起来的蓝牙通讯来进行具体的信息的交换。In another optional embodiment, the electronic cigarette device is further provided with a communication module (for example, a limited communication module, a WIFI module, a Bluetooth module, a Zigee module, etc.), and the electronic cigarette device can communicate with other terminals through the communication module. The device establishes a communication connection, and the related devices communicate through the communication connection (for example, data transmission, instruction transmission, etc.). In a specific embodiment, the electronic cigarette device can establish Bluetooth communication with a mobile terminal (for example, a mobile phone) through a Bluetooth module (Bluetooth chip), and the mobile phone and the electronic cigarette device can communicate through the established Bluetooth communication. Perform specific information exchange.
用户可以通过与电子烟设备连接的终端设备来对电子烟设备的加热温度进行控制,例如,可以通过安装在终端设备上的与电子烟设备对应的APP来输入加热温度控制指令。The user can control the heating temperature of the electronic cigarette device through the terminal device connected to the electronic cigarette device, for example, the heating temperature control instruction can be input through an APP corresponding to the electronic cigarette device installed on the terminal device.
在如图3所示的应用场景中,图3展示了在手机上安装的电子烟设备的控制APP的应用场景。用户可以通过如图3所示的目标温度调节的输入框来输入相应的目标温度值、或者调节幅值等,手机在检测到了用户的操作之后,获取用户在输入框中输入的文本来生成加热温度控制指令,并发送给电子烟设备。In the application scenario shown in FIG. 3, FIG. 3 shows an application scenario of a control APP of an electronic cigarette device installed on a mobile phone. The user can input the corresponding target temperature value or adjust the amplitude through the input box of the target temperature adjustment as shown in Fig. 3. After detecting the user's operation, the mobile phone obtains the text entered by the user in the input box to generate heating. The temperature control command is sent to the electronic cigarette device.
在加热温度控制指令中包含了需要进行调节的最终的目标温度值的情况下,直接从加热温度控制指令中获取相应的目标温度值即可;如果,在加热温度控制指令中包含的是温度调节方向及幅值的情况下,获取相应的温度调节方向、幅值,并根据当前设置的加热温度值来确定本次调节中的目标温度值。In the case where the heating target temperature control instruction includes the final target temperature value to be adjusted, the corresponding target temperature value can be obtained directly from the heating temperature control instruction; if the heating temperature control instruction includes temperature adjustment In the case of direction and amplitude, obtain the corresponding temperature adjustment direction and amplitude, and determine the target temperature value in this adjustment according to the currently set heating temperature value.
步骤S104:获取所述发热元件的当前温度值。Step S104: Acquire a current temperature value of the heating element.
在一个具体的实施例中,因为对于发热元件来讲,一般的发热元件为电阻,且为热敏电阻,其在不同的温度情况下,对应了不同的阻值,也就是说,电阻值与加热温度之间存在一一对应关系。因此,在本实施例中,可以通过电阻值的测量来获取发热元件当前的电阻值。In a specific embodiment, because a heating element is generally a resistor and a thermistor for a heating element, it corresponds to different resistance values under different temperature conditions, that is, the resistance value and There is a one-to-one correspondence between heating temperatures. Therefore, in this embodiment, the current resistance value of the heating element can be obtained by measuring the resistance value.
在一个具体的实施例中,上述获取所述发热元件的当前温度值的步骤还包括如图4所示的步骤S1021-S1022:In a specific embodiment, the step of obtaining the current temperature value of the heating element further includes steps S1021-S1022 as shown in FIG. 4:
步骤S1021:检测所述发热元件两端的当前电阻值;Step S1021: detecting a current resistance value at both ends of the heating element;
步骤S1022:根据预设的电阻值与温度值之间的温阻对应关系确定与所述当前电阻值对应的温度值作为所述当前温度值。Step S1022: Determine a temperature value corresponding to the current resistance value as the current temperature value according to a preset temperature resistance correspondence relationship between the resistance value and the temperature value.
也就是说,在本实施例中,温度的计算是通过对电阻的电阻值的测算来完成的,而加 热电阻本身为热敏电阻,因此可以通过测量加热电阻的电阻值来获知其温度。That is, in this embodiment, the calculation of the temperature is performed by measuring the resistance value of the resistor, and the heating resistor itself is a thermistor, so the temperature can be obtained by measuring the resistance value of the heating resistor.
在一个具体的实施例中,可以通过如图5所示的电路来实现对加热电阻的电阻以及温度的测量。如图5所示,图中RL为负载(发热元件),平时R_DET_EN端为低电压,检测负载电阻RL时,R_DET_EN被芯片控制为高电压,Q1导通,芯片读取采样电阻R1两端(A和B)出的电压,即为V_OUT和V_OUT_DET两处的ADC值分别为N 1、N 2,读取完毕R_DET_EN端为低电压关闭Q1,然后通过 In a specific embodiment, the resistance and temperature of the heating resistor can be measured by a circuit as shown in FIG. 5. As shown in Figure 5, RL is the load (heating component), and the R_DET_EN terminal is usually low voltage. When the load resistance RL is detected, R_DET_EN is controlled by the chip to high voltage, Q1 is turned on, and the chip reads both ends of the sampling resistor R1 ( The voltages from A and B), that is, the ADC values at V_OUT and V_OUT_DET are N 1 and N 2 respectively . After reading, the R_DET_EN terminal is low voltage to close Q1, and then pass
Figure PCTCN2018104489-appb-000001
Figure PCTCN2018104489-appb-000001
计算负载电阻值,然后在根据做成负载的发热元件的温阻关系计算出对应的温度,此温度即为发热元件的当前温度值。Calculate the load resistance value, and then calculate the corresponding temperature based on the temperature-resistance relationship of the heating element that makes the load. This temperature is the current temperature value of the heating element.
在本实施例中,对加热电阻当前温度值进行检测的目的是为了对电子烟的加热温度进行控制,而为了提高控制精度,需要实时地或者较高频率的对当前温度值进行检测。例如,在一个实施例中,为了提高温度控制的有效性和精准度,按照预设的时间周期值,周期性的执行所述获取所述加热电阻的当前温度值的步骤,例如,按照100mS的周期执行上述步骤S102。In this embodiment, the purpose of detecting the current temperature value of the heating resistor is to control the heating temperature of the electronic cigarette, and in order to improve the control accuracy, the current temperature value needs to be detected in real time or at a higher frequency. For example, in one embodiment, in order to improve the effectiveness and accuracy of temperature control, the step of obtaining the current temperature value of the heating resistor is periodically performed according to a preset time period value, for example, according to a 100 mS The above step S102 is executed periodically.
步骤S106:根据所述目标温度值与所述当前温度值确定与所述加热温度控制指令对应的目标PWM调节方式。Step S106: Determine a target PWM adjustment mode corresponding to the heating temperature control instruction according to the target temperature value and the current temperature value.
如前所述,对于电子烟设备的加热温度的调节体现为PWM输出的占空比的调节。并且,在考虑如何对PWM输出进行调节的过程中,既需要考虑到当前温度值以及目标温度值之间的差值以及具体的值,还需要考虑当前的PWM占空比的大小,因此,在确定当前需要对PWM占空比调节的具体调节时,需要根据前述以及当前温度值、以及预设的目标温度值来确定温度调整的情况,并且,还需要根据PWM输出当前占空比值来确定需要进行PWM占空比调节的目标占空比调节值。例如,目标占空比调节值可以为在本次调节中对PWM占空比进行调节的目标值。As mentioned earlier, the adjustment of the heating temperature of the electronic cigarette device is embodied by the adjustment of the duty cycle of the PWM output. In addition, when considering how to adjust the PWM output, it is necessary to consider both the current temperature and the difference between the target temperature and the specific value, as well as the current PWM duty cycle. Therefore, in When determining the specific adjustment of the PWM duty cycle adjustment currently required, the temperature adjustment situation needs to be determined according to the foregoing and current temperature values, and a preset target temperature value, and the current duty cycle value of the PWM output needs to be determined. Target duty cycle adjustment value for PWM duty cycle adjustment. For example, the target duty cycle adjustment value may be a target value for adjusting the PWM duty cycle in this adjustment.
在一个具体的实施例中,上述步骤S106还包括如图6所示的步骤S1062-S1064:In a specific embodiment, the above step S106 further includes steps S1062-S1064 as shown in FIG. 6:
步骤S1062:检测所述PWM输出端当前输出的占空比大小为当前占空比值;Step S1062: detecting that the current duty ratio of the PWM output terminal is the current duty value;
步骤S1064:根据所述当前占空比值和所述当前温度值、目标温度值确定目标占空比调节值,将所述目标占空比调节值作为所述目标PWM调节方式。Step S1064: Determine a target duty cycle adjustment value according to the current duty cycle value, the current temperature value, and the target temperature value, and use the target duty cycle adjustment value as the target PWM adjustment mode.
输出的PWM占空比决定了输出的功率,也就是说,不同的PWM占空比对于加热电 路来讲对应了不同的加热功率,也即对应了不同的加热温度。因此,在当前温度值与预设的目标温度值之间存在差距的情况下,可以通过控制PWM占空比来控制输出功率从而来实现对于加热温度的控制。The output PWM duty cycle determines the output power, that is, different PWM duty cycles correspond to different heating powers for the heating circuit, that is, different heating temperatures. Therefore, when there is a gap between the current temperature value and the preset target temperature value, the output power can be controlled by controlling the PWM duty cycle to achieve the control of the heating temperature.
而对于PWM占空比的控制和调节,首先需要获知当前的PWM占空比的情况,然后对PWM占空比进行调节。For the control and adjustment of the PWM duty cycle, the current situation of the PWM duty cycle needs to be known first, and then the PWM duty cycle is adjusted.
在本实施例中,对于当前的PWM占空比的检测是通过对PWM输出端当前输出的PWM的占空比大小来完成的,即当前占空比值。In this embodiment, the detection of the current PWM duty cycle is performed by measuring the current PWM duty cycle of the PWM output terminal, that is, the current duty cycle value.
在一个具体的实施例中,PWM调节方式即为对电子烟设备的PWM输出的占空比进行调节的过程中,下一步对于PWM调节的目标占空比调节值。In a specific embodiment, the PWM adjustment mode is the process of adjusting the duty cycle of the PWM output of the electronic cigarette device, and the next step is to adjust the target duty cycle adjustment value of the PWM adjustment.
步骤S108:根据所述目标PWM调节方式对所述电子烟设备的发热元件进行加热温度的调节。Step S108: Adjust the heating temperature of the heating element of the electronic cigarette device according to the target PWM adjustment mode.
在目标PWM调节方式确定之后,即可根据目标PWM调节方式对电子烟设备的PWM输出端中输出的PWM进行调节。After the target PWM adjustment mode is determined, the PWM output from the PWM output terminal of the electronic cigarette device can be adjusted according to the target PWM adjustment mode.
具体的,在一个具体的实施例中,上述根据所述目标PWM调节方式对所述电子烟设备的发热元件进行加热温度的调节,还包括:根据所述目标占空比调节值对所述电子烟设备的PWM输出端输出的PWM进行调节。Specifically, in a specific embodiment, the above-mentioned adjusting the heating temperature of a heating element of the electronic cigarette device according to the target PWM adjustment method further includes: adjusting the electronic device according to the target duty cycle adjustment value. The PWM output from the PWM output of the cigarette device is adjusted.
也就是说,在目标占空比调节值确定之后,即可根据目标占空比调节值对PWM输出端输出的PWM进行调节,也就是说,调节之后的PWM占空比的大小即为目标占空比调节值。That is, after the target duty cycle adjustment value is determined, the PWM output at the PWM output terminal can be adjusted according to the target duty cycle adjustment value, that is, the magnitude of the PWM duty cycle after adjustment is the target occupation Air ratio adjustment value.
其中,需要指出的是,目标温度值为预设的最佳抽吸口感的温度值,例如,可以设置目标温度值为320度,或者用户还可以根据自己对于抽吸口感的要求,自定义设置目标温度值,例如,对于喜欢浓重口感的用户,可以设置一个比较高的目标温度值,如360度。It should be noted that the target temperature value is a preset temperature value for optimal suction taste. For example, the target temperature value can be set to 320 degrees, or the user can also customize settings according to his own requirements for suction taste. The target temperature value, for example, for users who like heavy taste, you can set a higher target temperature value, such as 360 degrees.
如下,对PWM占空比的调节的具体过程可以根据当前的占空比的大小以及当前温度值的具体大小、分情况进行确定。As follows, the specific process of adjusting the PWM duty cycle can be determined according to the current duty cycle and the specific size and situation of the current temperature value.
在一个具体的实施例中,在所述当前温度值大于所述目标温度值、且所述第一差值超过预设的差值阈值的情况下,获取所述PWM输出端当前输出的占空比值为缓存占空比值;将所述目标占空比调节值设置为0。In a specific embodiment, when the current temperature value is greater than the target temperature value and the first difference value exceeds a preset difference threshold value, obtaining a duty of the current output of the PWM output terminal The ratio is a buffered duty cycle value; the target duty cycle adjustment value is set to 0.
也就是说,在当前占空比值D N-1≠0,且当前温度值T N-1>T t+T E的情况下(其中,T t为目标温度值,T E为预设的差值阈值),将目标占空比调节值设置为0,即将PWM输出清0, 以便降低发热元件的温度。 That is, in the case where the current duty cycle value D N-1 ≠ 0 and the current temperature value T N-1 > T t + T E (where T t is the target temperature value and T E is the preset difference Value threshold), set the target duty cycle adjustment value to 0, that is, clear the PWM output to 0, in order to reduce the temperature of the heating element.
在占空比为0或者将占空比的设置为0之后,在据所述当前占空比值和所述当前温度值、预设的目标温度值确定目标占空比调节值的过程中,对PWM占空比进行调节的具体过程为:在所述当前占空比值为0、且所述获取到的当前温度值小于或等于所述目标温度值的情况下,将所述目标占空比调节值设置为所述缓存占空比值。After the duty cycle is 0 or the duty cycle is set to 0, in the process of determining a target duty cycle adjustment value according to the current duty cycle value, the current temperature value, and a preset target temperature value, The specific process of adjusting the PWM duty cycle is: when the current duty cycle value is 0 and the acquired current temperature value is less than or equal to the target temperature value, adjusting the target duty cycle The value is set to the buffer duty cycle value.
也就是说,在将PWM占空比清零之前,还需要将当前的PWM占空比的具体大小进行存储,以便后续在设置PWM占空比的具体值时,能确定与目标温度值较为接近的PWM占空比,提高用户的使用体验。因此,在占空比为0的情况下,如果检测到的当前温度值大于或等于目标温度值,则保持PWM占空比为0的状态;如果检测到的当前温度值小于或等于目标温度值,则需要对PWM占空比进行调节,因此,将目标占空比调节值设置为缓存的占空比值,即为上一次对PWM占空比执行清零操作之前的存储的占空比的值。In other words, before clearing the PWM duty cycle, the specific size of the current PWM duty cycle needs to be stored, so that when the specific value of the PWM duty cycle is set later, it can be determined that it is closer to the target temperature value. The PWM duty cycle improves the user experience. Therefore, when the duty cycle is 0, if the detected current temperature value is greater than or equal to the target temperature value, the PWM duty cycle is maintained at 0; if the detected current temperature value is less than or equal to the target temperature value , You need to adjust the PWM duty cycle. Therefore, set the target duty cycle adjustment value to the buffered duty cycle value, that is, the value of the stored duty cycle before the last time the PWM duty cycle was cleared. .
也即,在当前占空比值D N-1=0,且当前温度值T N-1<T t的情况下(其中,T t为目标温度值),将目标占空比调节值D N设置为缓存的占空比值D′,即将PWM占空比调节为与缓存的占空比值D′对应的大小,以便控制电子烟的加热温度在最佳的目标温度左右。 That is, when the current duty cycle value D N-1 = 0 and the current temperature value T N-1 <T t (where T t is the target temperature value), the target duty cycle adjustment value D N is set For the buffered duty cycle value D ′, the PWM duty cycle is adjusted to a size corresponding to the buffered duty cycle value D ′, so as to control the heating temperature of the electronic cigarette around the optimal target temperature.
在另一个可选的实施例中,当前温度值小于或等于目标温度值且占空比不为0的情况下,上述根据所述当前占空比值和所述当前温度值、预设的目标温度值确定目标占空比调节值的过程为:计算所述目标温度值与所述当前温度值之间的温度差值作为第一差值,根据预设的差值与量化值之间的对应关系,获取与所述第一差值对应的第一差值量化值,第一差值量化值为0到1之间的数值;获取上一次对PWM进行调节的过程中与所述目标温度值与获取到的加热温度值的温度差值对应的量化值作为第二差值量化值;根据所述当前占空比值和所述第一差值量化值、所述第二差值量化值确定所述目标占空比调节值。In another optional embodiment, when the current temperature value is less than or equal to the target temperature value and the duty cycle is not 0, the foregoing according to the current duty cycle value and the current temperature value, the preset target temperature The process of determining the target duty cycle adjustment value by value is: calculating the temperature difference between the target temperature value and the current temperature value as the first difference value, and according to the correspondence between the preset difference value and the quantized value To obtain a first difference quantization value corresponding to the first difference value, and the first difference quantization value is a value between 0 and 1; and obtaining the target temperature value and The quantized value corresponding to the obtained temperature difference value of the heating temperature value is used as the second difference quantized value; and the quantized value is determined according to the current duty cycle value, the first difference quantized value, and the second difference quantized value Target duty cycle adjustment value.
且,其中,根据所述当前占空比值和所述第一差值量化值、所述第二差值量化值确定所述目标占空比调节值,具体为:And, the determining the target duty cycle adjustment value according to the current duty cycle value, the first difference quantization value, and the second difference quantization value is specifically:
根据公式According to formula
D N=D N-1+2E N-E N-1 D N = D N-1 + 2E N -E N-1
计算所述目标占空比调节值,其中,D N为目标占空比调节值,D N-1为当前占空比值,E N为第一差值量化值,E N-1为第二差值量化值。 Calculate the target duty cycle adjustment value, where D N is the target duty cycle adjustment value, D N-1 is the current duty cycle value, E N is the first difference quantization value, and E N-1 is the second difference The value is quantized.
也就是说,在当前占空比值不为0,且当前温度值小于目标温度值或者没有超过目标 温度一定范围(例如,比目标温度值大了不到5℃)的情况下,对PWM占空比进行调节,但是调节的幅度为当前占空比值加上两倍的差值量化值、并减去上一次的差值量化值。其中,差值量化值为根据检测到的当前温度值与目标温度值之间的差值给出的一个0到1之间的量化值,例如,在差值为5℃的情况下,将差值量化值设置为2%。That is, if the current duty cycle value is not 0, and the current temperature value is less than the target temperature value or does not exceed a certain range of the target temperature (for example, less than 5 ° C greater than the target temperature value), the PWM duty cycle The ratio is adjusted, but the amplitude of the adjustment is the current duty cycle value plus twice the difference quantization value, and subtracting the previous difference quantization value. The difference quantization value is a quantization value between 0 and 1 based on the difference between the detected current temperature value and the target temperature value. For example, if the difference value is 5 ° C, the difference is The value quantization value is set to 2%.
需要说明的是,在本实施例中,第一差值量化值E N代表的是本次调节(即第N次调节)中,检测到的当前温度值与目标温度值之间的差值所对应的差值量化值;第二差值量化值E N-1代表的是本次调节(即第N-1次调节或上一次调节)中,检测到的当前温度值与目标温度值之间的差值所对应的差值量化值。 It should be noted that, in this embodiment, the first difference quantization value E N represents the difference between the detected current temperature value and the target temperature value in this adjustment (that is, the N-th adjustment). The corresponding difference quantization value; the second difference quantization value E N-1 represents the difference between the detected current temperature value and the target temperature value in the current adjustment (that is, the N-1th adjustment or the last adjustment). The difference quantization value corresponding to the difference.
如前所述,目标占空比调节值的确定可以按照如下公式进行确定:As mentioned earlier, the determination of the target duty cycle adjustment value can be determined according to the following formula:
Figure PCTCN2018104489-appb-000002
Figure PCTCN2018104489-appb-000002
也就是说,在当前的PWM占空比不为0且加热电阻当前的温度不超过目标温度一定范围的情况下,对PWM占空比的调节幅度为在原来的PWM占空比的基础上加上两倍的本次调节的检测到的温度差值的量化值并减去上一次调节的过程中检测到的温度差值的量化值,即为PID(proportion-integral-derivative,比例、积分、微分控制)调节。而在加热电阻的温度超过目标温度一定范围的情况下,将PWM占空比设置为0;且在当前PWM占空比不为0的情况下,获取该PWM占空比的具体值为缓存值。而在PWM占空比清零之后,当加热电阻的温度下降到目标温度时,价格清零之前的PWM占空比进行恢复,并重新启动PID调节。In other words, when the current PWM duty cycle is not 0 and the current temperature of the heating resistor does not exceed a certain range of the target temperature, the adjustment range of the PWM duty cycle is added to the original PWM duty cycle. The twice the quantized value of the temperature difference detected during the current adjustment and subtracting the quantized value of the temperature difference detected during the last adjustment is PID (proportion-integral-derivative, ratio, integral, Differential control) adjustment. When the temperature of the heating resistor exceeds a certain range of the target temperature, the PWM duty cycle is set to 0; and when the current PWM duty cycle is not 0, the specific value of the PWM duty cycle is obtained as a buffer value. . After the PWM duty cycle is cleared, when the temperature of the heating resistor drops to the target temperature, the PWM duty cycle before the price is cleared is restored and the PID adjustment is restarted.
在一个具体的实施例中,可以对当前温度值与目标温度值之间的差值、与差值量化值之间的对应关系,例如,可以为线性函数或者非线性函数,也可以为阶梯函数。In a specific embodiment, the correspondence between the difference between the current temperature value and the target temperature value, and the difference quantization value may be used. For example, it may be a linear function, a non-linear function, or a step function. .
在一个具体的实施例中,为了避免细微的温度差别所带来的频繁的PWM占空比的调节对电子烟处理器所带来的负担,当前温度值与目标温度值之间的差值值、与差值量化值之间的对应关系可以采用阶梯函数。例如,采用如下的函数定义:In a specific embodiment, in order to avoid the burden caused by frequent PWM duty cycle adjustments caused by slight temperature differences on the electronic cigarette processor, the difference between the current temperature value and the target temperature value The corresponding relationship between the and quantization values of the difference can be a step function. For example, use the following function definition:
Figure PCTCN2018104489-appb-000003
Figure PCTCN2018104489-appb-000003
其中,E为差值量化值,ΔT为目标温度值与当前温度值之间的差值,即:ΔT=T t-T NAmong them, E is the difference quantization value, and ΔT is the difference between the target temperature value and the current temperature value, that is: ΔT = T t -T N.
在其他实施例中,当前温度值与目标温度值之间的差值值、与差值量化值之间的对应关系可以采用任何的正相关的函数。In other embodiments, the correspondence between the difference between the current temperature value and the target temperature value, and the difference quantization value can be any positive correlation function.
此外,为解决传统技术中对加热型电子烟的加热温度的控制存在控制准确率不足的技术问题,在一个实施例中,如图7所示,还提出了一种基于电子烟的加热温度控制装置,该电子烟设备包括加热电路,所述加热电路包括发热元件,所述加热电路的输入端与PWM输出端连接;通过所述加热电路给所述发热元件供电以给放置在所述电子烟设备中的可抽吸材料加热以供用户进行抽吸。In addition, in order to solve the technical problem that the control accuracy of the heating temperature of the heating type electronic cigarette is insufficient in the conventional technology, in one embodiment, as shown in FIG. 7, a heating temperature control based on the electronic cigarette is also proposed. Device, the electronic cigarette device includes a heating circuit, the heating circuit includes a heating element, an input terminal of the heating circuit is connected to a PWM output terminal, and the heating element is powered by the heating circuit to place the electronic cigarette The smokeable material in the device is heated for suction by the user.
具体的,如图6所示,上述基于电子烟的加热温度控制装置包括:Specifically, as shown in FIG. 6, the foregoing electronic cigarette-based heating temperature control device includes:
控制指令接收模块102,用于接收输入的加热温度控制指令,确定与所述加热温度控制指令对应的目标温度值;A control instruction receiving module 102, configured to receive an input heating temperature control instruction and determine a target temperature value corresponding to the heating temperature control instruction;
温度检测模块104,用于获取所述发热元件的当前温度值;A temperature detection module 104, configured to obtain a current temperature value of the heating element;
调节确定模块106,用于根据所述目标温度值与所述当前温度值确定与所述加热温度控制指令对应的目标PWM调节方式;An adjustment determining module 106, configured to determine a target PWM adjustment mode corresponding to the heating temperature control instruction according to the target temperature value and the current temperature value;
温度调节模块108,用于根据所述目标PWM调节方式对所述电子烟设备的发热元件进行加热温度的调节。The temperature adjustment module 108 is configured to adjust a heating temperature of a heating element of the electronic cigarette device according to the target PWM adjustment mode.
可选的,在其中一个实施例中,控制指令接收模块102还用于接收与所述电子烟设备连接的终端设备发送的加热温度控制指令;或,控制指令接收模块102还用于检测通过所述电子烟设备上设置的外设按钮输入的按压操作,并确定与所述按压操作对应的加热温度控制指令。Optionally, in one of the embodiments, the control instruction receiving module 102 is further configured to receive a heating temperature control instruction sent by a terminal device connected to the electronic cigarette device; or, the control instruction receiving module 102 is further configured to detect whether the The pressing operation of the external button input provided on the electronic cigarette device is described, and a heating temperature control instruction corresponding to the pressing operation is determined.
可选的,在其中一个实施例中,调节确定模块106还用于检测所述PWM输出端当前输出的占空比大小为当前占空比值;根据所述当前占空比值和所述当前温度值、目标温度值确定目标占空比调节值,将所述目标占空比调节值作为所述目标PWM调节方式;温度调节模块108还用于根据所述目标占空比调节值对所述电子烟设备的PWM输出端输出的PWM进行调节。Optionally, in one of the embodiments, the adjustment determining module 106 is further configured to detect that the current output duty ratio of the PWM output terminal is a current duty cycle value; according to the current duty cycle value and the current temperature value The target temperature value determines a target duty cycle adjustment value, and the target duty cycle adjustment value is used as the target PWM adjustment mode; the temperature adjustment module 108 is further configured to perform an adjustment on the electronic cigarette according to the target duty cycle adjustment value. The PWM output from the device's PWM output is adjusted.
可选的,在其中一个实施例中,调节确定模块106还用于在所述当前温度值大于所述目标温度值、且所述当前温度值与所述目标温度值之间的第一差值超过预设的差值阈值的情况下,获取所述PWM输出端当前输出的占空比值为缓存占空比值,将所述目标占空比 调节值设置为0;在所述当前占空比值为0、且所述获取到的当前温度值小于或等于所述目标温度值的情况下,将所述目标占空比调节值设置为所述缓存占空比值。Optionally, in one of the embodiments, the adjustment determining module 106 is further configured to: when the current temperature value is greater than the target temperature value, and a first difference between the current temperature value and the target temperature value When the preset difference threshold is exceeded, the current output duty cycle value of the PWM output terminal is acquired as a buffered duty cycle value, and the target duty cycle adjustment value is set to 0; when the current duty cycle value is If the obtained current temperature value is less than or equal to the target temperature value, the target duty cycle adjustment value is set to the buffer duty cycle value.
可选的,在其中一个实施例中,调节确定模块106还用于计算所述目标温度值与所述当前温度值之间的温度差值作为第一差值,根据预设的差值与量化值之间的对应关系,获取与所述第一差值对应的第一差值量化值,第一差值量化值为0到1之间的数值;获取上一次对PWM进行调节的过程中与所述目标温度值与获取到的加热温度值的温度差值对应的量化值作为第二差值量化值;根据所述当前占空比值和所述第一差值量化值、所述第二差值量化值确定所述目标占空比调节值。Optionally, in one of the embodiments, the adjustment determination module 106 is further configured to calculate a temperature difference between the target temperature value and the current temperature value as a first difference value, according to a preset difference value and quantization A corresponding relationship between the values, to obtain a first difference quantization value corresponding to the first difference value, and the first difference quantization value is a value between 0 and 1; The quantized value corresponding to the target temperature value and the obtained temperature difference between the heating temperature values is used as the second difference quantized value; according to the current duty cycle value, the first difference quantized value, and the second difference The value quantization value determines the target duty cycle adjustment value.
实施本发明实施例,将具有如下有益效果:Implementing the embodiments of the present invention will have the following beneficial effects:
采用了上述基于电子烟的加热温度控制方法和装置之后,在用户使用烤烟型电子烟设备时,在通过加热电阻对放置在电子烟设备中的例如烟丝等可抽吸材料进行加热的过程中,用户可以通过电子烟设备本身或者与电子烟设备连接的外部终端设备对电子烟的加热温度进行控制,从而使得用户可以对电子烟的加热温度进行自定义的调整,例如采用更高、或更低的温度进行加热以获取不同的抽吸体验,提高了加热温度调整的灵活性。并且,在本实施例中,在对电子烟的加热温度进行调整的过程中,是通过对发热元件进行电能供应的PWM输出端所输出的PWM的占空比的大小进行调节的,相对于其他的温度调节当时,通过PWM占空比的调节可以提高加热温度控制的精准度,从而进一步的提升了用户在使用电子烟设备中的抽吸口感,提升用户体验。After adopting the above-mentioned electronic cigarette-based heating temperature control method and device, when a user uses a flue-cured tobacco electronic cigarette device, in the process of heating a smokeable material such as tobacco shreds placed in the electronic cigarette device through a heating resistor, The user can control the heating temperature of the electronic cigarette through the electronic cigarette device itself or an external terminal device connected to the electronic cigarette device, so that the user can customize the heating temperature of the electronic cigarette, for example, using a higher or lower temperature The heating temperature is adjusted to obtain different suction experiences, which improves the flexibility of heating temperature adjustment. Moreover, in this embodiment, in the process of adjusting the heating temperature of the electronic cigarette, the magnitude of the duty cycle of the PWM output from the PWM output terminal for supplying power to the heating element is adjusted, compared with other At that time, the accuracy of the heating temperature control could be improved by adjusting the PWM duty cycle, thereby further improving the user's smoking taste in the use of electronic cigarette devices and improving the user experience.
在上述实施例中,可以全部或部分的通过软件、硬件、固件或者其任意组合来实现。当使用软件程序实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本发明实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或半导体介质(例如固态硬盘Solid State Disk(SSD))等。In the above embodiments, all or part can be implemented by software, hardware, firmware, or any combination thereof. When implemented using a software program, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions according to the embodiments of the present invention are wholly or partially generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, a data center, and the like that includes one or more available medium integration. The available medium may be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (Solid State Disk (SSD)), and the like.
进一步的,在本实施例中,实现上述基于电子烟的加热温度控制方法和装置的电子烟设备包括存储器、处理器及存储器,并且在存储器上存储有可在所述处理器上运行的计算 机程序,在处理器执行相应的计算机程序时实现实现上述基于电子烟的加热温度控制方法和装置的相关功能。Further, in this embodiment, an electronic cigarette device that implements the above-mentioned electronic cigarette-based heating temperature control method and device includes a memory, a processor, and a memory, and a computer program that can be run on the processor is stored in the memory. When the processor executes the corresponding computer program, the related functions of the above-mentioned electronic cigarette-based heating temperature control method and device are realized.
以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。The above disclosure is only the preferred embodiments of the present invention, and of course, the scope of the rights of the present invention cannot be limited by this. Therefore, equivalent changes made according to the claims of the present invention still fall within the scope of the present invention.

Claims (10)

  1. 一种基于电子烟的加热温度控制方法,其特征在于,所述方法基于一电子烟设备,所述电子烟设备包括PWM输出端以及与所述PWM输出端连接的发热元件,所述发热元件用于发出热量给放置在所述电子烟设备中的可抽吸材料加热以供用户进行抽吸;An electronic cigarette-based heating temperature control method, characterized in that the method is based on an electronic cigarette device, the electronic cigarette device includes a PWM output terminal and a heating element connected to the PWM output terminal, and the heating element is used for Emitting heat to heat the smokeable material placed in the electronic cigarette device for users to smoke;
    所述方法包括:The method includes:
    接收输入的加热温度控制指令,确定与所述加热温度控制指令对应的目标温度值;Receiving an input heating temperature control instruction, and determining a target temperature value corresponding to the heating temperature control instruction;
    获取所述发热元件的当前温度值;Obtaining a current temperature value of the heating element;
    根据所述目标温度值与所述当前温度值确定与所述加热温度控制指令对应的目标PWM调节方式;Determining a target PWM adjustment mode corresponding to the heating temperature control instruction according to the target temperature value and the current temperature value;
    根据所述目标PWM调节方式对所述电子烟设备的发热元件进行加热温度的调节。The heating temperature of the heating element of the electronic cigarette device is adjusted according to the target PWM adjustment mode.
  2. 根据权利要求1所述的基于电子烟的加热温度控制方法,其特征在于,所述电子烟设备与一终端设备连接;The electronic cigarette-based heating temperature control method according to claim 1, wherein the electronic cigarette device is connected to a terminal device;
    所述接收输入的加热温度控制指令,还包括:The receiving heating temperature control instruction further includes:
    接收所述终端设备发送的加热温度控制指令,所述加热温度指令由所述终端设备通过检测用户输入的加热温度控制操作并生成。Receiving a heating temperature control instruction sent by the terminal device, and the heating temperature instruction is generated by the terminal device by detecting a heating temperature control operation input by a user.
  3. 根据权利要求1所述的基于电子烟的加热温度控制方法,其特征在于,所述接收输入的加热温度控制指令,还包括:The electronic cigarette-based heating temperature control method according to claim 1, wherein the receiving the input heating temperature control instruction further comprises:
    检测通过所述电子烟设备上设置的外设按钮输入的按压操作,确定与所述按压操作对应的加热温度控制指令。Detecting a pressing operation input through a peripheral button provided on the electronic cigarette device, and determining a heating temperature control instruction corresponding to the pressing operation.
  4. 根据权利要求1所述的基于电子烟的加热温度控制方法,其特征在于,所述根据所述目标温度值与所述当前温度值确定与所述加热温度控制指令对应的目标PWM调节方式,还包括:The electronic cigarette-based heating temperature control method according to claim 1, wherein the determining a target PWM adjustment method corresponding to the heating temperature control instruction according to the target temperature value and the current temperature value, and include:
    检测所述PWM输出端当前输出的占空比大小为当前占空比值;Detecting that a current duty ratio of the PWM output terminal is a current duty ratio value;
    根据所述当前占空比值和所述当前温度值、目标温度值确定目标占空比调节值,将所述目标占空比调节值作为所述目标PWM调节方式;Determining a target duty cycle adjustment value according to the current duty cycle value, the current temperature value, and the target temperature value, and using the target duty cycle adjustment value as the target PWM adjustment mode;
    所述根据所述目标PWM调节方式对所述电子烟设备的发热元件进行加热温度的调节,还包括:The adjusting the heating temperature of a heating element of the electronic cigarette device according to the target PWM adjustment method further includes:
    根据所述目标占空比调节值对所述电子烟设备的PWM输出端输出的PWM进行调节。The PWM output from the PWM output terminal of the electronic cigarette device is adjusted according to the target duty cycle adjustment value.
  5. 根据权利要求4所述的基于电子烟的加热温度控制方法,其特征在于,所述根据所 述目标占空比调节值对所述电子烟设备的PWM输出端输出的PWM进行调节,还包括:The electronic cigarette-based heating temperature control method according to claim 4, wherein the adjusting the PWM output from the PWM output terminal of the electronic cigarette device according to the target duty cycle adjustment value further comprises:
    在所述当前温度值大于所述目标温度值、且所述当前温度值与所述目标温度值之间的第一差值超过预设的差值阈值的情况下,获取所述PWM输出端当前输出的占空比值为缓存占空比值,将所述目标占空比调节值设置为0;When the current temperature value is greater than the target temperature value, and a first difference between the current temperature value and the target temperature value exceeds a preset difference threshold, obtaining the current value of the PWM output terminal The output duty cycle value is a buffered duty cycle value, and the target duty cycle adjustment value is set to 0;
    在所述当前占空比值为0、且所述获取到的当前温度值小于或等于所述目标温度值的情况下,将所述目标占空比调节值设置为所述缓存占空比值。When the current duty cycle value is 0 and the acquired current temperature value is less than or equal to the target temperature value, the target duty cycle adjustment value is set to the buffered duty cycle value.
  6. 根据权利要求5所述的基于电子烟的加热温度控制方法,其特征在于,所述根据所述当前占空比值和所述当前温度值、预设的目标温度值确定目标占空比调节值,还包括:The electronic cigarette-based heating temperature control method according to claim 5, wherein the target duty cycle adjustment value is determined according to the current duty cycle value, the current temperature value, and a preset target temperature value, Also includes:
    计算所述目标温度值与所述当前温度值之间的温度差值作为第一差值,根据预设的差值与量化值之间的对应关系,获取与所述第一差值对应的第一差值量化值,第一差值量化值为0到1之间的数值;Calculate a temperature difference between the target temperature value and the current temperature value as a first difference value, and obtain a first correspondence value corresponding to the first difference value according to a preset correspondence between a difference value and a quantized value. A difference quantization value, the first difference quantization value is a value between 0 and 1;
    获取上一次对PWM进行调节的过程中与所述目标温度值与获取到的加热温度值的温度差值对应的量化值作为第二差值量化值;Obtaining a quantized value corresponding to the temperature difference between the target temperature value and the obtained heating temperature value during the last adjustment of the PWM as the second difference quantized value;
    根据所述当前占空比值和所述第一差值量化值、所述第二差值量化值确定所述目标占空比调节值。Determining the target duty cycle adjustment value according to the current duty cycle value, the first difference quantization value, and the second difference quantization value.
  7. 一种基于电子烟的加热温度控制装置,其特征在于,基于一电子烟设备,所述电子烟设备包括PWM输出端以及与所述PWM输出端连接的发热元件,所述发热元件用于发出热量给放置在所述电子烟设备中的可抽吸材料加热以供用户进行抽吸;An electronic cigarette-based heating temperature control device is characterized in that based on an electronic cigarette device, the electronic cigarette device includes a PWM output terminal and a heating element connected to the PWM output terminal, and the heating element is used to emit heat Heating the smokeable material placed in the electronic cigarette device for users to smoke;
    所述装置包括:The device includes:
    控制指令接收模块,用于接收输入的加热温度控制指令,确定与所述加热温度控制指令对应的目标温度值;A control instruction receiving module, configured to receive an input heating temperature control instruction and determine a target temperature value corresponding to the heating temperature control instruction;
    温度检测模块,用于获取所述发热元件的当前温度值;A temperature detection module, configured to obtain a current temperature value of the heating element;
    调节确定模块,用于根据所述目标温度值与所述当前温度值确定与所述加热温度控制指令对应的目标PWM调节方式;An adjustment determination module, configured to determine a target PWM adjustment mode corresponding to the heating temperature control instruction according to the target temperature value and the current temperature value;
    温度调节模块,用于根据所述目标PWM调节方式对所述电子烟设备的发热元件进行加热温度的调节。A temperature adjustment module is configured to adjust a heating temperature of a heating element of the electronic cigarette device according to the target PWM adjustment mode.
  8. 根据权利要求7所述的基于电子烟的加热温度控制装置,其特征在于,所述控制指令接收模块还用于接收与所述电子烟设备连接的终端设备发送的加热温度控制指令;The electronic cigarette-based heating temperature control device according to claim 7, wherein the control instruction receiving module is further configured to receive a heating temperature control instruction sent by a terminal device connected to the electronic cigarette device;
    或,or,
    所述控制指令接收模块还用于检测通过所述电子烟设备上设置的外设按钮输入的按压操作,并确定与所述按压操作对应的加热温度控制指令。The control instruction receiving module is further configured to detect a pressing operation input through a peripheral button provided on the electronic cigarette device, and determine a heating temperature control instruction corresponding to the pressing operation.
  9. 一种电子烟设备,其特征在于,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现权利要求1-6中任一项权利要求所述的方法。An electronic cigarette device includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and is characterized in that the processor is implemented when the processor executes the computer program. A method as claimed in any one of claims 1-6.
  10. 一种计算机可读存储介质,包括计算机指令,当所述计算机指令在计算机上运行时,使得计算机执行如权利要求1-6所述的方法。A computer-readable storage medium includes computer instructions, and when the computer instructions are run on a computer, the computer is caused to execute the method according to claims 1-6.
PCT/CN2018/104489 2018-09-07 2018-09-07 Heating temperature control method and apparatus based on electronic cigarette, and electronic cigarette device WO2020047813A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/104489 WO2020047813A1 (en) 2018-09-07 2018-09-07 Heating temperature control method and apparatus based on electronic cigarette, and electronic cigarette device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/104489 WO2020047813A1 (en) 2018-09-07 2018-09-07 Heating temperature control method and apparatus based on electronic cigarette, and electronic cigarette device

Publications (1)

Publication Number Publication Date
WO2020047813A1 true WO2020047813A1 (en) 2020-03-12

Family

ID=69722130

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/104489 WO2020047813A1 (en) 2018-09-07 2018-09-07 Heating temperature control method and apparatus based on electronic cigarette, and electronic cigarette device

Country Status (1)

Country Link
WO (1) WO2020047813A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203789154U (en) * 2014-02-11 2014-08-27 深圳市合元科技有限公司 Electronic cigarette
US20140251324A1 (en) * 2013-03-05 2014-09-11 Zhiyong Xiang Method and device for heating control of an electronic cigarette
CN104950953A (en) * 2015-06-09 2015-09-30 昂纳自动化技术(深圳)有限公司 Electronic cigarette and temperature control method thereof
CN206137198U (en) * 2016-09-26 2017-05-03 深圳市合元科技有限公司 Electron cigarette control system and electron cigarette
US20180090923A1 (en) * 2016-09-26 2018-03-29 Shenzhen First Union Technology Co., Ltd. Ultrasonic atomization control system and electronic cigarette

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140251324A1 (en) * 2013-03-05 2014-09-11 Zhiyong Xiang Method and device for heating control of an electronic cigarette
CN203789154U (en) * 2014-02-11 2014-08-27 深圳市合元科技有限公司 Electronic cigarette
CN104950953A (en) * 2015-06-09 2015-09-30 昂纳自动化技术(深圳)有限公司 Electronic cigarette and temperature control method thereof
CN206137198U (en) * 2016-09-26 2017-05-03 深圳市合元科技有限公司 Electron cigarette control system and electron cigarette
US20180090923A1 (en) * 2016-09-26 2018-03-29 Shenzhen First Union Technology Co., Ltd. Ultrasonic atomization control system and electronic cigarette

Similar Documents

Publication Publication Date Title
CN109247621B (en) Heating temperature control method and device based on electronic cigarette and electronic cigarette equipment
CN108873981B (en) Method and device for controlling heating temperature of electronic cigarette
CN108873976B (en) Temperature control system of electronic cigarette
US10321718B2 (en) Electronic cigarette temperature control system and method, and electronic cigarette with the same
US11896060B2 (en) Electronic cigarette control method, electronic cigarette device, and computer storage medium
US11723414B2 (en) Control method and device, and electronic cigarette
WO2019228155A1 (en) Control method and apparatus for electronic cigarette
CN108464527B (en) Output parameter control method and device
CN108563255B (en) Temperature control circuit, electronic cigarette temperature control method and computer readable storage medium
JP4659850B2 (en) Network monitoring program, network monitoring method, and network monitoring apparatus
WO2016041113A1 (en) Data communication method and data communication system
US20140251324A1 (en) Method and device for heating control of an electronic cigarette
WO2016074473A1 (en) Router signal strength adjustment method and device
CN108181951B (en) Electronic cigarette control circuit and method
KR102376515B1 (en) Method and apparatus for generating aerosols
WO2020029905A1 (en) Control circuit, electronic cigarette and control method for electronic cigarette
CN108576929A (en) The computational methods and system of electronic cigarette electricity
WO2020000150A1 (en) Control method and device for electronic cigarette heating temperature
WO2020047813A1 (en) Heating temperature control method and apparatus based on electronic cigarette, and electronic cigarette device
US10732054B2 (en) Temperature gauge systems for remotely monitoring cooking sessions and methods thereto
US20210195960A1 (en) Control circuit and electronic cigarette
US9749739B2 (en) Protection of a speaker from thermal damage
WO2022021831A1 (en) Mode management method and apparatus, mobile terminal, and computer storage medium
JPWO2015151186A1 (en) Client device, data communication system, data communication method, and program
US20170060206A1 (en) System and method for generating a sustained thermal power envelope for a portable computing device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18932810

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18932810

Country of ref document: EP

Kind code of ref document: A1