Temperature measuring method, aerosol generating device, and storage medium

Storing and reading temperature sampling signals through direct memory access to DMA, the problem of high resource occupation in the prior art is solved, more efficient temperature measurement is achieved, and hardware costs are reduced.

CN119023093APending Publication Date: 2024-11-26SHENZHEN MERIT TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310604516.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-24
Publication Date
2024-11-26

Smart Images

  • Figure CN119023093A_ABST
    Figure CN119023093A_ABST
Patent Text Reader

Abstract

The invention discloses a temperature measuring method, an aerosol generating device and a non-volatile computer readable storage medium. The temperature measuring method is applied to the aerosol generating device, the aerosol generating device comprises a heating element, an oscillating circuit and a controller, the oscillating circuit is configured to generate an alternating magnetic field, the heating element heats an aerosol generating substrate through the alternating magnetic field, and the controller comprises a CPU, a bus, a first storage space and a temperature measuring unit. Storing the temperature sampling signal to a first storage space in a direct memory access mode through a temperature measuring unit; when the preset temperature calculation time is up, the CPU accesses the first storage space through the bus and reads the temperature sampling signal from the first storage space; the CPU calculates the measured temperature of the heating element according to the temperature sampling signal. Compared with the mode of storing the temperature sampling signals through interruption and query, the method has the advantages that the number of times of triggering the interruption of the MCU is small, the real-time performance of the system is improved, the requirement for the performance of the system is low, and the hardware cost can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of temperature measurement technology, and more specifically, to a temperature measurement method, an aerosol generating device, and a non-volatile computer-readable storage medium. Background Art

[0002] At present, the temperature measurement method of the heating element of the aerosol generating device can convert the corresponding temperature value by testing the oscillation feedback amount of the heating element at different temperatures, and the feedback amount can be measured by interruption or query.

[0003] The interrupt method requires the pin of the microcontroller unit of the aerosol generating device to trigger an interrupt, and record the corresponding level jump time during the interrupt process; the query method is to continuously query the status of the pin in a polling manner and record the level jump time; however, due to the high frequency of the temperature measurement sampling signal, it is necessary to frequently send interrupt signals to the bus or frequently query, which occupies a high amount of bus resources and central processing unit resources, thereby affecting the real-time performance of the system, and has high requirements on the performance of the central processing unit bus, and requires more hardware supporting circuits, which is more expensive. Summary of the invention

[0004] Embodiments of the present application provide a temperature measurement method, an aerosol generating device, and a non-volatile computer-readable storage medium.

[0005] The temperature measurement method of the embodiment of the present application is applied to an aerosol generating device, wherein the aerosol generating device includes a heating element, an oscillation circuit and a controller, wherein the oscillation circuit is configured to generate an alternating magnetic field, and the heating element heats an aerosol generating matrix through the alternating magnetic field. The controller includes a CPU, a bus, a first storage space and a temperature measurement unit. The temperature measurement method includes the temperature measurement unit storing a temperature sampling signal in the first storage space through direct memory access (DMA); when a preset temperature calculation time arrives, the CPU accesses the first storage space through the bus and reads the temperature sampling signal from the first storage space; and the CPU calculates the measured temperature of the heating element according to the temperature sampling signal.

[0006] In some embodiments, the temperature sampling signal is responded to by the temperature measurement control signal, the oscillation circuit charges for a preset time, and the preset time is the duration of the temperature measurement control signal; the oscillation circuit is controlled to discharge, and the temperature measurement unit measures the temperature sampling signal of the oscillation circuit during the discharge process.

[0007] In some embodiments, the oscillation circuit is an LC oscillation circuit, the oscillation circuit includes a first inductor and a first capacitor, and the temperature sampling signal includes a voltage signal across the first capacitor during the discharge process of the oscillation circuit.

[0008] In some embodiments, the oscillation circuit is an LC oscillation circuit, the oscillation circuit includes a first inductor and a first capacitor, the temperature sampling signal includes a digital voltage signal, and the digital power supply signal is obtained by obtaining the voltage signal across the first capacitor during the discharge process of the oscillation circuit; the voltage signal is converted into digital form to obtain the digital voltage signal.

[0009] In some embodiments, the threshold of the analog-to-digital conversion is 0 or a power supply voltage.

[0010] In some implementations, the preset temperature calculation time is the idle time of the CPU.

[0011] In some embodiments, before the step in which the CPU calculates the temperature of the heating element based on the temperature sampling signal, the CPU also includes a step in which the CPU determines whether the value of the temperature sampling signal is within a preset range. If not, the CPU calculates the temperature of the heating element based on the temperature sampling signal read next time.

[0012] In certain embodiments, the temperature measurement method further includes the steps of the CPU calculating a weighted average of preset measured temperatures to obtain an average measured temperature, and controlling the power supplied to the heating element according to the average measured temperature.

[0013] The aerosol generating device of the embodiment of the present application includes a heating element, an oscillation circuit and a controller, the oscillation circuit is configured to generate an alternating magnetic field, the heating element heats the aerosol generating matrix through the alternating magnetic field, the controller includes a CPU, a bus, a first storage space and a temperature measurement unit, the controller is configured to execute the temperature measurement unit to store the temperature sampling signal to the first storage space through direct memory access DMA; when the preset temperature calculation time arrives, the CPU accesses the first storage space through the bus and reads the temperature sampling signal from the first storage space; the CPU calculates the measurement temperature of the heating element according to the temperature sampling signal.

[0014] The computer-readable storage medium of the embodiment of the present application includes a computer program, and when the computer program is executed by a processor, the processor executes the temperature measurement method. The temperature measurement method includes a temperature measurement unit storing a temperature sampling signal to the first storage space through direct memory access DMA; when a preset temperature calculation time arrives, the CPU accesses the first storage space through a bus and reads the temperature sampling signal from the first storage space; the CPU calculates the measured temperature of the heating element according to the temperature sampling signal.

[0015] The temperature measurement method, aerosol generating device and non-volatile computer-readable storage medium of the embodiment of the present application use a temperature measurement unit to store the temperature sampling signal generated by the heating element in the oscillation circuit in the first storage space of the controller by direct memory access DMA. When the preset temperature calculation time arrives, the CPU accesses the first storage space in the controller through the bus to read the temperature sampling signal in the first storage space. Finally, the CPU calculates the measured temperature of the heating element based on the read temperature sampling signal. Compared with storing the temperature sampling signal by interruption and query, the number of interrupt triggers on the microcontroller unit is small, which improves the real-time performance of the system, has low performance requirements for the system, and helps to reduce hardware costs.

[0016] Additional aspects and advantages of the embodiments of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the embodiments of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

[0018] Figure 1 is a flow chart of a temperature measurement method according to certain embodiments of the present application;

[0019] Figure 2 is a schematic diagram of the structure of an aerosol generating device according to certain embodiments of the present application;

[0020] Figure 3 is a schematic diagram of the distribution of temperature sampling signals in certain embodiments of the present application;

[0021] Figure 4 is a schematic diagram of an oscillator circuit of certain embodiments of the present application;

[0022] Figure 5 is a flow chart of a temperature measurement method according to certain embodiments of the present application;

[0023] Figure 6is a flow chart of a temperature measurement method according to certain embodiments of the present application;

[0024] Figure 7 It is a schematic diagram of the connection status of a non-volatile computer-readable storage medium and a processor in certain embodiments of the present application. DETAILED DESCRIPTION

[0025] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals represent the same or similar elements or elements having the same or similar functions from beginning to end. The embodiments described below with reference to the accompanying drawings are optional and are only used to explain the embodiments of the present application, and cannot be understood as limiting the embodiments of the present application.

[0026] See also Figure 1 , Figure 2 and Figure 3 The embodiment of the present application provides a temperature measurement method, which is applied to an aerosol generating device 100, the aerosol generating device 100 includes a heating element 10, an oscillating circuit 20 and a controller 30, the oscillating circuit 20 is configured to generate an alternating magnetic field, the heating element 10 heats the aerosol generating substrate through the alternating magnetic field, the controller 30 includes a CPU, a bus 32, a first storage space 33 and a temperature measuring unit 34, and the method includes the steps of:

[0027] Step 011: The temperature measurement unit 34 stores the temperature sampling signal into the first storage space 33 via direct memory access (DMA);

[0028] Among them, the aerosol generating device 100 is a device that generates aerosol by heating an aerosol generating substrate. The aerosol generating substrate can be a substrate that can release volatile compounds that can form an aerosol. This volatile compound needs to be released by heating the aerosol generating substrate through the heating element 10 included in the aerosol generating device 100. The heating element 10 is located in the alternating magnetic field generated by the oscillation circuit 20 included in the aerosol generating device 100, and the aerosol generating medium is heated by the alternating magnetic field.

[0029] The aerosol generating device 100 also includes a controller 30, which includes a central processing unit 31 (CPU), a bus 32, a first storage space 33 and a temperature measuring unit 34; the bus 32 is a transmission harness composed of wires, and the bus 32 is a public communication trunk for transmitting information between various functional components. The CPU and the first storage space 33 can be connected through the bus 32; the first storage space 33 can be the memory of the aerosol generating device 100, which can be used to store temperature sampling signals; the temperature measuring unit 34 can obtain the temperature sampling signal of the heating element 10 and transmit the temperature sampling signal to the first storage space 33.

[0030] Specifically, the temperature sampling signal may be a pulse signal having a mapping relationship with the temperature of the heating element 10 within a duration. The duration of the temperature sampling signal is obtained by recording the generation time of the rising edge and the falling edge of the temperature sampling signal. The rising edge is the time when the sampling voltage rises to the preset reference voltage, and the falling edge is the time when the sampling voltage falls to the preset reference voltage. The rising edge time and the falling edge time are collectively referred to as the level jump time. In some embodiments, the preset reference voltage may be 0 volts or a power supply voltage (such as Figure 3 The voltages corresponding to T0 and T1 in ). Please refer to Figure 4 The temperature measurement unit 34 includes a timer 341, which can obtain the level jump moment. The temperature measurement unit 34 also includes a register 342, which can store the obtained level jump moment, so that the level jump moment in the register 342 can be transmitted to the target address in the first storage space 33 (such as the address in the memory used to store the temperature sampling signal) through direct memory access (Direct Memory Access, DMA), wherein the register 342 transmits the level jump moment in a manner that when any level jump moment is saved in the register 342, the level jump moment in the register 342 is transmitted to the target address of the memory through the direct memory access function; or, when a preset number (the preset number can be 2, 4, etc.) of level jump moments are saved in the register 342, the level jump moment in the register 342 is transmitted to the target address of the first storage space 33 through the direct memory access function.

[0031] Optionally, when the number of level jump moment stored in the target address in the first storage space 33 reaches a preset number (the preset number may be 2, 4, etc.), the direct memory access function is turned off; or when the direct memory access function is turned on for a preset time (such as the preset time may be 20 microseconds, 30 microseconds, etc.), the direct memory access function is turned off, which can prevent the acquisition of too much level jump moment data and occupy too much storage space.

[0032] Step 012: When the preset temperature calculation time arrives, the CPU accesses the first storage space 33 through the bus 32 and reads the temperature sampling signal from the first storage space 33;

[0033] Specifically, the preset temperature calculation time may be when the CPU in the controller 30 is in an idle state. The idle state of the CPU may be a period when the CPU needs to process a small number of tasks. The CPU accesses the target address in the first storage space 33 through the bus 32 to obtain the level jump moment; or, the preset temperature calculation time may be when the temperature sampling signal in the target address of the first storage space 33 is ready. The temperature sampling signal being ready may be when a preset number of level jump times are stored in the target address of the first storage space 33. The CPU accesses the target address in the first storage space 33 through the bus 32 to obtain the level jump moment; or, the preset temperature calculation time may be after the target address of the first storage space 33 starts to store the level jump moment, and the CPU accesses the target address in the first storage space 33 through the bus 32 every preset time (such as the preset time may be 5 microseconds, 10 microseconds, etc.) to obtain the level jump moment.

[0034] Step 013: The CPU calculates the measured temperature of the heating element 10 according to the temperature sampling signal.

[0035] Specifically, the temperature sampling signal includes a level jump moment, and the CPU can calculate the measured temperature of the heating element 10 according to the acquired level jump moment. The calculation method can be to calculate the difference between the first and the last of the first N (N is an even number greater than 1) level jump moments collected in the CPU, so as to obtain a difference value, and then the obtained difference value can be used based on the mapping relationship between the difference value and the temperature to determine the temperature corresponding to the difference value. For example, please refer to Figure 3, taking the power supply voltage as the preset reference voltage as an example, the CPU collects 4 level jump moments T1, T2, T4, and T5, and subtracts the values ​​of T1 and T2 to obtain a difference a. Finally, the difference a is substituted into the preset function to calculate the value as the measured temperature of the heating element 10, or the difference a is compared with the preset temperature comparison table, so that the measured temperature of the heating element 10 can be obtained; it can also be that the value of T1 and T5 is subtracted to obtain a difference b, and the difference b is substituted into the preset function to calculate the value as the measured temperature of the heating element 10, or the difference b is compared with the preset temperature comparison table, so that the measured temperature of the heating element 10 can be obtained.

[0036] In this way, the temperature sampling signal generated by the heating element 10 in the oscillation circuit is stored in the first storage space 33 of the controller by means of direct memory access DMA through the temperature measurement unit. When the preset temperature calculation time arrives, the CPU accesses the first storage space 33 in the controller 30 through the bus 32, thereby reading the temperature sampling signal in the first storage space 33. Finally, the CPU can calculate the measured temperature of the heating element 10 based on the read temperature sampling signal. Compared with storing the temperature sampling signal by interruption and query, the number of interrupt triggers on the microcontroller unit is small, which improves the real-time performance of the system, has low performance requirements for the system, and helps to reduce hardware costs.

[0037] See also Figure 3 and Figure 4 In some embodiments, the temperature sampling signal is collected in the following manner: in response to the temperature measurement control signal, the oscillation circuit 20 is charged for a preset time, and the preset time is the duration of the temperature measurement control signal; the oscillation circuit 20 is controlled to discharge, and the temperature measurement unit 34 measures the temperature sampling signal of the oscillation circuit 20 during the discharge process.

[0038] Specifically, when the aerosol generating device 100 receives the temperature measurement control signal, it is necessary to measure the temperature of the heating element 10, and the oscillation circuit 20 can be charged based on a preset time, wherein the preset time is the duration of the temperature measurement control signal; after the preset time is reached, the controller 30 needs to control the oscillation circuit 20 to discharge after charging, and then measure the temperature sampling signal related to the temperature of the heating element 10 during the discharge of the oscillation circuit 20.

[0039] For example, the oscillation circuit is an LC oscillation circuit, and the LC oscillation circuit includes a first inductor 21, a first capacitor 22 and a switch 23. When the heating element 10 needs to measure the temperature, the aerosol generating device 100 receives a temperature measurement control signal. At this time, the CPU controls the oscillation circuit 20 to start charging, the switch 23 in the oscillation circuit 20 is closed, and the first capacitor 22 starts to charge; after the temperature measurement control signal stops, the CPU controls the oscillation circuit 20 to start discharging, the switch 23 in the oscillation circuit 20 is disconnected, and the first capacitor 22 starts to discharge to store energy for the first inductor 21. At this time, the timer 341 starts to obtain the rising edge time and the falling edge time, and stores them in the register 342. It should be noted that the timer 341 can be started before the switch 23 is disconnected, but at the time of switch startup, a spike pulse will be generated, causing signal interference, which will affect the sampling accuracy under certain circumstances.

[0040] Please refer again Figure 4 In some embodiments, the oscillation circuit 20 is an LC oscillation circuit 20, the oscillation circuit 20 includes a first inductor 21 and a first capacitor 22, and the temperature sampling signal includes a voltage signal across the first capacitor 22 during the discharge process of the oscillation circuit 20.

[0041] Specifically, the temperature sampling signal includes a voltage signal across the first capacitor 22 during the discharge process of the oscillation circuit 20. The oscillation circuit 20 may be an LC oscillation circuit, and the LC oscillation circuit includes a first inductor 21 and a first capacitor 22. For example, during the discharge process of the LC oscillation circuit, the electric field energy on the first capacitor 22 and the magnetic field energy on the first inductor 21 can be continuously converted into each other. When the discharge of the first capacitor 22 begins, the self-induced electromotive force generated by the first inductor 21 hinders the increase of the current. Therefore, the current in the LC oscillation circuit gradually increases from zero. At this time, the electric field energy on the first capacitor 22 decreases accordingly, and the voltage of the first capacitor 22 decreases. As the current increases, the magnetic field energy of the first inductor 21 gradually increases, and the electric field energy gradually converts into magnetic field energy. The voltage of the first inductor 21 increases. When the discharge of the first capacitor 22 is completed, the current in the LC oscillation circuit reaches the strongest. After the electric field energy is completely converted into magnetic field energy, the current begins to reversely charge the first capacitor 22, and the current begins to weaken, but the first inductor 21 The self-inductance hinders the weakening of the current and generates an electromotive force in the same direction as the original direction, so that the current continues to flow in the original direction to charge the first capacitor 22. During the reverse charging process of the first capacitor 22, the current gradually decreases, the magnetic field energy of the first inductor 21 gradually weakens, and the voltage of the first inductor 21 gradually decreases, so that the voltage across the first capacitor 22 gradually increases, and the electric field energy gradually increases. When the charging is completed, the current is zero, and the magnetic field energy is completely converted into electric field energy. Thereafter, the above transformation process occurs periodically between the current, electric field energy and magnetic field energy in the LC oscillation circuit, and the voltage signal across the first capacitor 22 changes periodically. Since the changing period has a mapping relationship with the temperature of the heating element 10, the voltage signal across the first capacitor 22 can be used as a temperature sampling signal.

[0042] Please refer again Figure 3 In some embodiments, the oscillation circuit 20 is an LC oscillation circuit 20, the oscillation circuit 20 includes a first inductor 21 and a first capacitor 22, the temperature sampling signal includes a digital voltage signal, and the digital voltage signal is obtained in the following manner: obtaining the voltage signal across the first capacitor 22 during the discharge process of the oscillation circuit 20; performing analog-to-digital conversion on the voltage signal to obtain a digital voltage signal.

[0043] Specifically, the oscillation circuit 20 may be an LC oscillation circuit, the LC oscillation circuit includes a first inductor 21 and a first capacitor 22, the temperature sampling signal includes a digital voltage signal, the digital voltage signal may be a square wave signal, the digital voltage signal may be obtained by obtaining an analog voltage signal at both ends of the first capacitor 22 during the discharge process of the oscillation circuit 20, the analog voltage signal may be a sine wave signal, and the digital voltage signal may be obtained by converting the analog voltage signal through a threshold value of analog-to-digital conversion. For example, a plane rectangular coordinate system is established with the horizontal axis as the time length and the vertical axis as the voltage magnitude, the sine wave corresponding to the sine wave signal at both ends of the first capacitor 22 is located in the first quadrant and the fourth quadrant of the plane rectangular coordinate system, and the intersection point obtained by the preset analog-to-digital conversion threshold 0 volt and the sine wave is as shown in FIG. Figure 3 T0 and T3 in, or the intersection of the preset analog-to-digital conversion threshold power supply voltage vin and the sine wave, such as Figure 3 In the example of T1 and T2, the power supply voltage is used as the threshold of analog-to-digital conversion. Figure 3 The length corresponding to a is the length of the square wave, and the corresponding value of the power supply voltage vin is the width of the square wave. By drawing the square wave, a digital voltage signal can be obtained.

[0044] See also Figure 5 In some embodiments, before the step of the CPU calculating the temperature of the heating element 10 according to the temperature sampling signal, the step further includes:

[0045] Step 014: The CPU determines whether the value of the temperature sampling signal is within a preset range. If not, the CPU calculates the temperature of the heating element according to the temperature sampling signal read next time.

[0046] Specifically, when the CPU obtains the value of the temperature sampling signal, it needs to judge whether the value of the temperature sampling signal is within the preset range. If the value of the temperature sampling signal is outside the preset range, it is necessary to re-acquire the value of the temperature sampling signal until the value of the temperature sampling signal is within the preset range. The CPU calculates the temperature of the heating element 10 according to the value of the temperature sampling signal within the preset range. For example, the CPU needs to judge the first and second level jump moments (respectively Figure 3 Whether the difference between T1 and T2 in the level jump moment is within the preset range, if the difference at the level jump moment is outside the preset range, it means that the temperature of the heating element 10 is too low or too high, and there is an obvious abnormality, resulting in inaccurate measured temperature. Therefore, the CPU needs to obtain the difference at the level jump moment within the preset range, so as to accurately measure the temperature of the heating element 10.

[0047] See also Figure 6 In some embodiments, the temperature measurement method further comprises:

[0048] Step 015: The CPU calculates the weighted average of the preset measured temperatures to obtain an average measured temperature, and controls the power supplied to the heating element 10 according to the average measured temperature.

[0049] Specifically, after the CPU obtains the measured temperatures of the preset number of heating elements 10, it needs to perform a weighted average calculation on the preset number of measured temperatures. For example, the weights of the weighted average calculation of the preset number of measured temperatures are different. The preset number of measured temperatures can be 4, where the value of the first temperature sampling signal is close to the boundary of the preset range, which means that the first measured temperature is less accurate, and the weight of the first measured temperature is small. The closer the value of the temperature sampling signal of the other measured temperatures is to the center of the preset range, the more accurate the other measured temperatures are, and the weights of the other measured temperatures are large. Alternatively, the weights of the preset number of measured temperatures are equal. For example, if the preset number of measured temperatures is 5, the weight of the weighted average calculation of the measured temperatures is 0.2, so that the average temperature is calculated according to the same weight.

[0050] After the CPU obtains the average measured temperature through calculation, it is necessary to control the power supplied to the heating element 10. For example, if the average temperature obtained reaches the temperature range of the heated aerosol generating substrate, the power supply is stopped; if the average temperature obtained does not reach the temperature range of the heated aerosol generating substrate, the power supply is increased (such as increasing the current, voltage, etc.); or, if the average temperature obtained reaches the temperature range of the heated aerosol generating substrate but does not reach the upper limit of the temperature range, the power supply is reduced (such as reducing the current, voltage, etc.), so that the temperature of the heated aerosol generating substrate increases slowly; if the average temperature obtained reaches the temperature range of the heated aerosol generating substrate but is about to reach the upper limit of the temperature range, the power supply is reduced, so that the temperature increase rate of the heated aerosol generating substrate is less than the cooling rate, so that the temperature of the aerosol generating substrate slowly decreases until the temperature of the aerosol generating substrate reaches the lower limit of the temperature range, and then the power supply is increased again.

[0051] Please refer again Figure 2 The embodiment of the present application also provides an aerosol generating device 100, which includes a heating element 10, an oscillation circuit 20 and a controller 30. The oscillation circuit 20 is configured to generate an alternating magnetic field. The heating element 10 heats the aerosol generating matrix through the alternating magnetic field. The controller 30 includes a CPU, a bus 32, a first storage space 33 and a temperature measuring unit 34. The controller 30 is configured to execute the steps of the temperature measurement method.

[0052] Specifically, the aerosol generating device 100 may be a device that generates aerosol by heating rather than burning an aerosol-forming substrate, such as an electronic cigarette.

[0053] The controller 30 may also execute the steps of the temperature measurement method of any of the above embodiments, which will not be described in detail for the sake of brevity.

[0054] See also Figure 7 The embodiment of the present application also provides a computer-readable storage medium 300 on which a computer program 310 is stored. When the computer program 310 is executed by a processor 320, the steps of the temperature measurement method of any of the above-mentioned embodiments are implemented. For the sake of brevity, they are not repeated here.

[0055] In the description of this specification, the descriptions with reference to the terms "certain embodiments", "in an example", "exemplarily", etc., mean that the specific features, structures, materials or characteristics described in conjunction with the embodiments or examples are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.

[0056] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.

[0057] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are optional and cannot be understood as limitations to the present application. A person skilled in the art can change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A temperature measurement method, characterized in that: The temperature measurement method is applied to an aerosol generating device, the aerosol generating device comprises a heating element, an oscillating circuit and a controller, the oscillating circuit is configured to generate an alternating magnetic field, the heating element heats an aerosol generating substrate through the alternating magnetic field, the controller comprises a CPU, a bus, a first storage space and a temperature measuring unit, and the method comprises the steps of: The temperature measurement unit stores the temperature sampling signal into the first storage space through direct memory access (DMA); When the preset temperature calculation time arrives, the CPU accesses the first storage space through the bus and reads the temperature sampling signal from the first storage space; The CPU calculates the measured temperature of the heating element according to the temperature sampling signal.

2. The temperature measurement method according to claim 1, characterized in that: The temperature sampling signal is collected in the following manner: In response to the temperature measurement control signal, the oscillation circuit charges for a preset time, the preset time being the duration of the temperature measurement control signal; The oscillation circuit is controlled to discharge, and the temperature measurement unit measures a temperature sampling signal of the oscillation circuit during the discharge process.

3. The temperature measurement method according to claim 2, characterized in that: The oscillation circuit is an LC oscillation circuit, the oscillation circuit includes a first inductor and a first capacitor, and the temperature sampling signal includes: The voltage signal across the first capacitor during the discharge process of the oscillation circuit.

4. The temperature measurement method according to claim 2, characterized in that: The oscillation circuit is an LC oscillation circuit, the oscillation circuit includes a first inductor and a first capacitor, the temperature sampling signal includes a digital voltage signal, and the digital voltage signal is obtained in the following manner: Acquiring a voltage signal across the first capacitor during the discharge process of the oscillation circuit; The voltage signal is converted into a digital signal to obtain the digital voltage signal.

5. The temperature measurement method according to claim 4, characterized in that: The threshold of the analog-to-digital conversion is 0 or the power supply voltage.

6. The temperature measurement method according to claim 1, characterized in that: The preset temperature calculation time is the idle time of the CPU.

7. The temperature measurement method according to claim 1, characterized in that: Before the step of the CPU calculating the temperature of the heating element according to the temperature sampling signal, the step further includes: The CPU determines whether the value of the temperature sampling signal is within a preset range. If not, the CPU calculates the temperature of the heating element according to the temperature sampling signal read next time.

8. The temperature measurement method according to claim 1, characterized in that: The method further includes the following steps: the CPU calculates a weighted average of preset measured temperatures to obtain an average measured temperature, and controls the power supplied to the heating element according to the average measured temperature.

9. An aerosol generating device, characterized in that: The aerosol generating device includes a heating element, an oscillation circuit and a controller, wherein the oscillation circuit is configured to generate an alternating magnetic field, and the heating element heats the aerosol generating substrate through the alternating magnetic field. The controller includes a CPU, a bus, a first storage space and a temperature measurement unit, and the controller is configured to perform the steps described in any one of claims 1 to 8.

10. A non-volatile computer-readable storage medium containing a computer program, wherein when the computer program is executed by a processor, the processor is caused to perform the steps of any one of claims 1 to 8.

Citation Information

Cited By

  • Equipment detection method and device, equipment, storage medium and program product

    CN121014954A