Parameter detection method and device for heat-not-burn appliance, controller and appliance
By calculating and stored the sampling error of the simulation digital converter in advance in heating non -combustion equipment, and correction of the sampling value during detection, the problem of large sampling values in the existing technology is solved, and the accuracy of parameter detection is improved.
Patent Information
- Application Number
- CN202411317759.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-20
- Publication Date
- 2025-01-28
AI Technical Summary
When existing heating-not-burning instruments detect power supply voltage or heat-generating body resistance, due to the low accuracy of analog-to-digital converters, the sampling value error is large, which reduces the accuracy of parameter detection.
By calculating and stored the sampling error of the simulation digital converter, when the detection is required, read the error and correct the sampling value, and then calculate the target parameter.
By modifying the error of the sample value, the accuracy of heating non -combustion appliances when detecting a power supply voltage or heating body resistance.
Smart Images

Figure CN119375803A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of parameter detection of heat-not-burn appliances, and in particular to a parameter detection method, device, controller and heat-not-burn appliance of a heat-not-burn appliance. Background Art
[0002] At present, when heating-not-burning appliances detect parameters such as power supply voltage or heating element resistance, they usually need to obtain the sampled value output by the analog-to-digital converter and substitute the sampled value into the formula for calculation. However, in order to control hardware costs, the accuracy of the analog-to-digital converters used in most heating-not-burning appliances is not high, which will lead to large errors in the sampled values obtained, thereby reducing the accuracy of parameter detection. Summary of the invention
[0003] In view of this, the embodiments of the present application provide a parameter detection method, device, controller and heating without combustion appliance for a heating without combustion appliance, which can improve the accuracy of parameter detection of the heating without combustion appliance.
[0004] A first aspect of an embodiment of the present application provides a parameter detection method for a heating-not-burning appliance, comprising:
[0005] When detecting a target parameter that needs to be calculated based on a sampled value output by an analog-to-digital converter of the heat-not-burn appliance, reading a stored sampling error of the analog-to-digital converter;
[0006] The sampling value is corrected according to the sampling error, and the target parameter is calculated according to the corrected sampling value.
[0007] In the technical solution of the embodiment of the present application, the sampling error of the analog-to-digital converter of the heating-not-burning appliance is pre-calculated and stored, and then when the target parameter that needs to be calculated according to the sampling value output by the analog-to-digital converter is detected, the sampling error is read, and the acquired sampling value is corrected according to the sampling error, and finally the target parameter is calculated according to the corrected sampling value. Through such a setting, the sampling value of the analog-to-digital converter can be corrected according to the sampling error of the analog-to-digital converter, the error of the acquired sampling value is reduced, and thus the accuracy of the calculated target parameter is improved.
[0008] In one implementation of the embodiment of the present application, the sampling error of the analog-to-digital converter is calculated in the following manner:
[0009] Calculate the actual voltage at the sampling point according to the electrical parameters of the circuit branch where the sampling point of the analog-to-digital converter is located;
[0010] The sampling error of the analog-to-digital converter is calculated based on the sampled voltage and the actual voltage at the sampling point.
[0011] In one implementation of the embodiment of the present application, the circuit branch includes a heating element and a fixed resistor of a heating-not-burning appliance connected in series, one end of the heating element is connected to a power supply and the other end is connected to the fixed resistor, one end of the fixed resistor is connected to the heating element and the other end is grounded, and the sampling point is connected between the heating element and the fixed resistor; according to the electrical parameters of the circuit branch where the sampling point of the analog-to-digital converter is located, the actual voltage of the sampling point is calculated, including:
[0012] Detect the actual current in the circuit branch;
[0013] According to the actual current and the fixed resistance, the actual voltage at the sampling point is calculated.
[0014] In one implementation of the embodiment of the present application, the fixed resistor includes a current sensor and a voltage divider resistor connected in series; detecting the actual current of the circuit branch includes:
[0015] Acquire the current value detected by the current sensor as the actual current of the circuit branch;
[0016] According to the actual current and fixed resistance, the actual voltage at the sampling point is calculated, including:
[0017] The actual voltage at the sampling point is calculated based on the actual current, the resistance of the current sensor, and the voltage divider resistance.
[0018] In another implementation of the embodiment of the present application, the circuit branch includes a heating element and a fixed resistor of a heating non-combustion appliance connected in series, one end of the heating element is connected to a power supply and the other end is connected to the fixed resistor, one end of the fixed resistor is connected to the heating element and the other end is grounded, and the sampling point includes a first sampling point and a second sampling point, the first sampling point is connected between the heating element and the fixed resistor, and the second sampling point is connected to the power supply; according to the electrical parameters of the circuit branch where the sampling point of the analog-to-digital converter is located, the actual voltage of the sampling point is calculated, including:
[0019] Detect the actual current in the circuit branch;
[0020] Calculating the resistance value of the heating element according to the first sampling voltage at the first sampling point, the second sampling voltage at the second sampling point, and the fixed resistance;
[0021] Calculate the actual voltage at the second sampling point according to the actual current, the resistance value of the heating element and the fixed resistance;
[0022] According to the sampling voltage and actual voltage at the sampling point, the sampling error of the analog-to-digital converter is calculated, including:
[0023] A sampling error of the analog-to-digital converter is calculated according to the second sampling voltage at the second sampling point and the actual voltage at the second sampling point.
[0024] In an implementation of the embodiment of the present application, calculating the sampling error of the analog-to-digital converter according to the second sampled voltage at the second sampling point and the actual voltage at the second sampling point includes:
[0025] Correcting the resistance value of the heating element according to the magnitude relationship between the second sampling voltage at the second sampling point and the actual voltage at the second sampling point;
[0026] Calculate the corrected actual voltage of the second sampling point according to the actual current, the corrected resistance value of the heating element and the fixed resistance;
[0027] A sampling error of the analog-to-digital converter is calculated according to the second sampling voltage at the second sampling point and the corrected actual voltage at the second sampling point.
[0028] In one implementation of the embodiment of the present application, the resistance value of the heating element is corrected according to the magnitude relationship between the second sampling voltage at the second sampling point and the actual voltage at the second sampling point, including:
[0029] If the second sampling voltage at the second sampling point is greater than the actual voltage at the second sampling point, reducing the resistance value of the heating element;
[0030] If the second sampling voltage at the second sampling point is less than the actual voltage at the second sampling point, the resistance value of the heating element is increased.
[0031] A second aspect of an embodiment of the present application provides a parameter detection device for a heating-not-burning appliance, comprising:
[0032] An error reading module, used to read the stored sampling error of the analog-to-digital converter when detecting a target parameter that needs to be calculated based on the sampled value output by the analog-to-digital converter of the heating-not-burning appliance;
[0033] The sampling value correction module is used to correct the sampling value according to the sampling error and calculate the target parameter according to the corrected sampling value.
[0034] A third aspect of an embodiment of the present application provides a controller, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the parameter detection method for a heating non-combustion appliance provided in the first aspect of an embodiment of the present application is implemented.
[0035] A fourth aspect of the embodiments of the present application provides a heating without burning appliance, which includes a controller provided in the third aspect of the embodiments of the present application.
[0036] A fifth aspect of an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the parameter detection method of the heating non-combustion appliance provided in the first aspect of the embodiment of the present application.
[0037] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 is a schematic diagram of a heating without burning device provided in an embodiment of the present application;
[0039] Figure 2 It is a flow chart of a parameter detection method of a heating-not-burning appliance provided in an embodiment of the present application;
[0040] Figure 3 It is a schematic diagram of a circuit branch where a sampling point of an analog-to-digital converter provided in an embodiment of the present application is located;
[0041] Figure 4 is a schematic diagram of a circuit branch where a sampling point of another analog-to-digital converter provided in an embodiment of the present application is located;
[0042] Figure 5 It is a schematic diagram of the operation flow of the parameter detection method of the heating non-combustion appliance provided in an embodiment of the present application in an actual application scenario;
[0043] Figure 6 It is a structural framework diagram of a parameter detection device for a heating-not-burning appliance provided in an embodiment of the present application;
[0044] Figure 7 It is a schematic diagram of a controller provided in an embodiment of the present application. DETAILED DESCRIPTION
[0045] In the following description, for the purpose of illustration rather than limitation, specific details such as specific system structures, technologies, etc. are proposed, so as to thoroughly understand the embodiments of the present application. However, it should be clear to those skilled in the art that the present application can also be implemented in other embodiments without these specific details. In other cases, the detailed description of well-known systems, devices, circuits and methods is omitted to prevent unnecessary details from hindering the description of the present application. In addition, in the description of the present application specification and the attached claims, the terms "first", "second", "third" etc. are only used to distinguish the description, and cannot be interpreted as indicating or suggesting relative importance.
[0046] Heat-not-burn appliances often need to detect parameters such as power supply voltage or heating element resistance during use, and these parameters need to be calculated based on the sampled values output by the analog-to-digital converter. Due to hardware cost constraints, the accuracy of the analog-to-digital converters used in most heat-not-burn appliances is not high, and the error of the output sampled values is large, resulting in a decrease in the accuracy of parameter detection.
[0047] In view of the above problems, the embodiments of the present application provide a parameter detection method, device, controller and heating-not-burning appliance for a heating-not-burning appliance. By calculating the sampling error of the analog-to-digital converter, when detecting parameters such as power supply voltage or heating element resistance, the sampling value output by the analog-to-digital converter is first corrected by the sampling error, and the calculation is performed using the corrected sampling value, which can improve the accuracy of parameter detection of the heating-not-burning appliance. For more specific technical implementation details of the embodiments of the present application, please refer to the various embodiments described below.
[0048] like Figure 1 , which is a schematic diagram of a heating without burning appliance provided in an embodiment of the present application. Figure 1 The heating-without-burning device shown includes a controller, an analog-to-digital converter, a heating element, and a battery module, and the controller is electrically connected to the analog-to-digital converter, the heating element, and the battery module, respectively. Among them, the controller can be used to control the temperature of the heating element, and the heating element can be heated up under the control of the controller to bake the aerosol generation matrix. The battery module serves as a power source to provide electrical energy. During the use of the heating-without-burning device, it is often necessary to detect parameters such as the power supply voltage or the resistance of the heating element. When calculating these parameters, it is necessary to obtain the sampled values output by the analog-to-digital converter for calculation. The analog-to-digital converter can be an independent external device relative to the controller, or it can be a device integrated in the controller. For example, assuming that the controller used is a single-chip microcomputer, most single-chip microcomputers can have a built-in analog-to-digital converter.
[0049] It should be understood that the executor of each method embodiment of the present application is a controller provided in the heating without burning appliance, for example, it can be a device such as the main control chip of the heating without burning appliance, and the embodiments of the present application do not impose any restrictions on the specific type of the controller.
[0050] See also Figure 2 , shows a parameter detection method of a heating-not-burning appliance provided in an embodiment of the present application, comprising:
[0051] 201. When detecting a target parameter that needs to be calculated based on a sampled value output by an analog-to-digital converter of the heat-not-burn appliance, reading a stored sampling error of the analog-to-digital converter;
[0052] During the use of the heat-not-burn appliance, it is often necessary to detect parameters such as the power supply voltage or the resistance of the heating element, and these parameters need to be calculated based on the sampled values output by the analog-to-digital converter. Assuming that it is currently necessary to detect the target parameter, the target parameter is any type of parameter that needs to be calculated based on the sampled value output by the analog-to-digital converter, then the stored sampling error of the analog-to-digital converter is first read. In the technical solution of the embodiment of the present application, the sampling error of the analog-to-digital converter (also referred to as the accuracy error or error rate) is pre-calculated, and the sampling error is stored in a storage device such as a register Flash of the heat-not-burn appliance. The calculation method of the sampling error of the analog-to-digital converter is first described below.
[0053] In one implementation of the embodiment of the present application, the sampling error of the analog-to-digital converter is calculated in the following manner:
[0054] (1) Calculating the actual voltage at the sampling point based on the electrical parameters of the circuit branch where the sampling point of the analog-to-digital converter is located;
[0055] (2) Calculate the sampling error of the analog-to-digital converter based on the sampled voltage and the actual voltage at the sampling point.
[0056] Since the sampling error is used to represent the difference between the sampled value output by the analog-to-digital converter and the actual value, the sampling error of the analog-to-digital converter can be calculated by calculating the actual value and then comparing the actual value with the sampled value. In the application field of heating-not-burning appliances, analog-to-digital converters are usually used to convert voltage signals. The pins of the analog-to-digital converter are connected to the circuit of the heating-not-burning appliance. The location of the circuit connection is called the sampling point corresponding to the pin. The current ADC code value can be obtained through the ADC channel number corresponding to the pin. For example, assuming that the analog-to-digital converter uses 12-bit accuracy, the corresponding ADC code value range is 0-2 12 , that is, 0-4096, and the maximum ADC code value is 4096. The maximum ADC code value corresponds to the reference voltage source of the analog-to-digital converter. According to the size of the reference voltage source, the collected ADC code value can be converted into a corresponding voltage to obtain a sampled voltage. In addition, the electrical parameters of the circuit branch where the sampling point of the analog-to-digital converter is located can be detected, such as the current of the circuit branch and the resistance of each component of the circuit branch. These parameters can be used to calculate the actual voltage of the sampling point. Finally, the sampling voltage of the sampling point is compared with the actual voltage, and the difference between the sampling voltage and the actual voltage is evaluated to determine the sampling error of the analog-to-digital converter.
[0057] In one implementation of the embodiment of the present application, the circuit branch includes a heating element and a fixed resistor of a heating-not-burning appliance connected in series, one end of the heating element is connected to a power supply and the other end is connected to the fixed resistor, one end of the fixed resistor is connected to the heating element and the other end is grounded, and the sampling point is connected between the heating element and the fixed resistor; according to the electrical parameters of the circuit branch where the sampling point of the analog-to-digital converter is located, the actual voltage of the sampling point is calculated, including:
[0058] (1) Detect the actual current in the circuit branch;
[0059] (2) Calculate the actual voltage at the sampling point based on the actual current and fixed resistance.
[0060] In this implementation, the circuit branch connected to the sampling point includes a heating element and a fixed resistor of a heating-not-burning appliance connected in series, wherein one end of the heating element is connected to a power supply and the other end is connected to a fixed resistor, and one end of the fixed resistor is connected to the heating element and the other end is grounded. A pin of the analog-to-digital converter is connected between the heating element and the fixed resistor, that is, there is a sampling point between the heating element and the fixed resistor. In order to determine the sampling error of the analog-to-digital converter, it is necessary to calculate the sampling voltage and the actual voltage of the sampling point, wherein the sampling voltage can be obtained by converting the ADC code value of the sampling point, and the actual voltage can be calculated based on the actual current and resistance of the circuit branch. When detecting the actual current of the circuit branch, a current detection device such as a high-precision current sensor can be used, or a corresponding current detection circuit can be added. Since the resistance value of the fixed resistor is known, after the actual current is detected, it is only necessary to calculate the product of the actual current and the resistance value of the fixed resistor to obtain the actual voltage of the sampling point.
[0061] In one implementation of the embodiment of the present application, the fixed resistor includes a current sensor and a voltage divider resistor connected in series; detecting the actual current of the circuit branch includes:
[0062] Acquire the current value detected by the current sensor as the actual current of the circuit branch;
[0063] According to the actual current and fixed resistance, the actual voltage at the sampling point is calculated, including:
[0064] The actual voltage at the sampling point is calculated based on the actual current, the resistance of the current sensor, and the voltage divider resistance.
[0065] In order to control hardware costs, it is only necessary to connect a high-precision current sensor in series in the circuit branch to more accurately detect the actual current of the circuit branch. The resistance value of the current sensor is usually a known fixed value, and a voltage divider resistor with a known resistance value for circuit voltage division is connected in series to form the fixed resistor described above. Since the circuit branch is a series path, the current value detected by the current sensor can be used as the actual current of the circuit branch. When calculating the actual voltage at the sampling point, the calculation is based on the actual current, the resistance of the current sensor, and the voltage divider resistor. Specifically, the actual current is multiplied by the sum of the resistance of the current sensor and the voltage divider resistor.
[0066] like Figure 3 , which is a schematic diagram of a circuit branch where a sampling point of an analog-to-digital converter provided in an embodiment of the present application is located. Figure 3 The circuit branches shown are, from top to bottom, power supply, heating element, current sensor, voltage divider resistor and ground. 电 is the battery voltage of the heating non-combustion appliance, which serves as the reference voltage source of the analog-to-digital converter and corresponds to the full scale, that is, the maximum ADC code value. This example assumes that the maximum ADC code value is 4096. The resistance of the heating element changes in real time and can be measured using R 发热体 Represents the real-time resistance value of the heating element. The resistance value of the high-precision current sensor is a fixed value R1, which is usually in the order of mΩ. The voltage-dividing resistor R0 can usually be selected to be 5.1Ω or 4.7Ω, etc., for voltage division of the circuit. The sampling point is connected between the heating element and the current sensor. It should be noted that there is no restriction on the series connection sequence of the current sensor and the voltage-dividing resistor, that is, the voltage-dividing resistor can also be connected above the current sensor (in this case, the sampling point is connected between the heating element and the voltage-dividing resistor). Assuming that the ADC code value of the sampling point is Y1, Y1 can be converted into a corresponding voltage value according to the reference voltage source, thereby obtaining the sampling voltage of the sampling point, and V 采样 By using a current sensor, the current passing through the current sensor can be detected as the actual current I of the circuit branch. 实际 Since R1 and R0 are known, the actual voltage V at the sampling point can be calculated according to the following formula: 实际 :V 实际 =I 实际 *(R1+R0). Then the sampling voltage V 采样 The actual voltage V 实际 By making a comparison, for example calculating the ratio of the two voltages, the sampling error of the analog-to-digital converter can be determined.
[0067] The above is the content of calculating the sampling error using the sampling value of the sampling point set between the heating element and the fixed resistor. Next, the content of calculating the sampling error using the sampling value of the sampling point set at the power supply end is described.
[0068] In one implementation of the embodiment of the present application, the circuit branch includes a heating element and a fixed resistor of a heating-not-burning appliance connected in series, one end of the heating element is connected to a power supply and the other end is connected to the fixed resistor, one end of the fixed resistor is connected to the heating element and the other end is grounded, and the sampling point includes a first sampling point and a second sampling point, the first sampling point is connected between the heating element and the fixed resistor, and the second sampling point is connected to the power supply; according to the electrical parameters of the circuit branch where the sampling point of the analog-to-digital converter is located, the actual voltage of the sampling point is calculated, including:
[0069] (1) Detect the actual current in the circuit branch;
[0070] (2) calculating the resistance value of the heating element according to the first sampling voltage at the first sampling point, the second sampling voltage at the second sampling point, and the fixed resistance;
[0071] (3) Calculate the actual voltage at the second sampling point based on the actual current, the resistance value of the heating element and the fixed resistance.
[0072] In this implementation, the circuit branch connected to the sampling point also includes a heating element and a fixed resistor of a heating-not-burning appliance connected in series, wherein one end of the heating element is connected to a power supply and the other end is connected to a fixed resistor, and one end of the fixed resistor is connected to the heating element and the other end is grounded. One pin of the analog-to-digital converter is connected between the heating element and the fixed resistor, that is, there is a sampling point between the heating element and the fixed resistor, recorded as the first sampling point, and the other pin is connected to the power supply, that is, there is another sampling point at the position of the power supply, recorded as the second sampling point. In order to determine the sampling error of the analog-to-digital converter, this implementation needs to calculate the sampling voltage and the actual voltage of the second sampling point, wherein the sampling voltage can be obtained according to the ADC code value conversion of the second sampling point, and the actual voltage can be calculated according to the actual current and resistance of the circuit branch. When detecting the actual current of the circuit branch, a current detection device such as a high-precision current sensor can also be used, or a corresponding current detection circuit can be added. When calculating the actual voltage of the second sampling point, in addition to detecting the actual current of the circuit branch, it is also necessary to calculate the total resistance of the circuit branch, which is equal to the sum of the resistance value of the heating element and the fixed resistor, wherein the resistance value of the fixed resistor is known, so only the real-time resistance of the heating element needs to be calculated. Specifically, based on the voltage division principle of the series circuit, the resistance value of the heating element can be calculated according to the first sampling voltage obtained by converting the ADC code value of the first sampling point, the second sampling voltage obtained by converting the ADC code value of the second sampling point, and the resistance value of the fixed resistor. Afterwards, the resistance value of the heating element is added to the resistance value of the fixed resistor to obtain the total resistance and then multiplied by the actual current to calculate the actual voltage of the second sampling point. Finally, the sampling error of the analog-to-digital converter is calculated based on the second sampling voltage of the second sampling point and the actual voltage of the second sampling point.
[0073] like Figure 4 , which is a schematic diagram of a circuit branch where a sampling point of another analog-to-digital converter provided in an embodiment of the present application is located. Figure 4 The circuit branches shown are, from top to bottom, power supply, heating element, current sensor, voltage divider resistor and ground. 电 is the battery voltage of the heating non-combustion appliance, which serves as the reference voltage source of the analog-to-digital converter and corresponds to the full scale, that is, the maximum ADC code value. This example assumes that the maximum ADC code value is 4096. The resistance of the heating element changes in real time and can be measured using R 发热体Represents the real-time resistance value of the heating element. The resistance value of the high-precision current sensor is a fixed value R1, which is usually in the order of mΩ. The voltage-dividing resistor R0 can usually be selected to be 5.1Ω or 4.7Ω, etc., which is used for voltage division of the circuit. The current sensor R1 and the voltage-dividing resistor R0 constitute the above-mentioned fixed resistor. The analog-to-digital converter is connected to two sampling points, where the first sampling point is connected between the heating element and the current sensor, and the second sampling point is connected to the power supply. Assuming that the ADC code value of the first sampling point is Y1, Y1 can be converted into a corresponding voltage value according to the reference voltage source, thereby obtaining the sampling voltage of the first sampling point, and V 采样1 Similarly, assuming that the ADC code value of the second sampling point is Y2, Y2 can be converted into a corresponding voltage value according to the reference voltage source, thereby obtaining the sampling voltage of the second sampling point, which is expressed as V 采样2 By using a current sensor, the current passing through the current sensor can be detected as the actual current I of the circuit branch. 实际 . When calculating the actual voltage V at the second sampling point 实际 When the heating element is used, the resistance R 发热体 , the formula R can be used 发热体 =V 采样2 / (V 采样1 / (R1+R0))-R1-R0 is calculated, and then the formula V 实际 =I 实际 *(R 发热体 +R1+R0) to calculate the actual voltage of the second sampling point. Finally, the sampling voltage V 采样2 The actual voltage V 实际 By comparing the two voltages, the sampling error of the analog-to-digital converter can be determined. For example, the ratio of the two voltages V 采样2 / V 实际 =Y3 / Y2=X, where Y3 is the actual voltage V across the power supply 实际 The ADC code value obtained by reverse deduction, X is the sampling error, which can be recorded in the register of the heating non-combustion appliance.
[0074] In an implementation of the embodiment of the present application, calculating the sampling error of the analog-to-digital converter according to the second sampled voltage at the second sampling point and the actual voltage at the second sampling point includes:
[0075] (1) Correcting the resistance value of the heating element according to the relationship between the second sampling voltage at the second sampling point and the actual voltage at the second sampling point;
[0076] (2) calculating the actual voltage of the second sampling point after correction according to the actual current, the corrected resistance value of the heating element and the fixed resistance;
[0077] (3) Calculating a sampling error of the analog-to-digital converter according to the second sampling voltage at the second sampling point and the corrected actual voltage at the second sampling point.
[0078] The heating element resistance calculation formula R described above 发热体 =V 采样2 / (V 采样1 / (R1+R0))-R1-R0, R1 and R0 can be regarded as real values, but V 采样2 and V 采样1 They are all converted according to the ADC code value of the sampling point, and the ADC code value itself has errors. Therefore, the heating element resistance calculated using this formula also has errors, which will cause the accuracy of the actual voltage of the second sampling point calculated according to the heating element resistance to decrease, and ultimately cause the accuracy of the calculated sampling error to decrease. In order to improve the accuracy of the calculated sampling error, the resistance value of the heating element can be corrected according to the relationship between the second sampling voltage of the second sampling point and the actual voltage of the second sampling point, and the corrected resistance value of the heating element is closer to the actual value. Then, the corrected resistance value of the heating element is substituted into the calculation formula of the actual voltage to calculate the corrected actual voltage of the second sampling point. Finally, the sampling error is calculated based on the second sampling voltage of the second sampling point and the corrected actual voltage of the second sampling point, which can improve the accuracy of the obtained sampling error to a certain extent.
[0079] In one implementation of the embodiment of the present application, the resistance value of the heating element is corrected according to the magnitude relationship between the second sampling voltage at the second sampling point and the actual voltage at the second sampling point, including:
[0080] (1) if the second sampling voltage at the second sampling point is greater than the actual voltage at the second sampling point, reducing the resistance value of the heating element;
[0081] (2) If the second sampling voltage at the second sampling point is less than the actual voltage at the second sampling point, the resistance value of the heating element is increased.
[0082] Generally, there is a difference between the second sampling voltage at the second sampling point and the actual voltage at the second sampling point. If the second sampling voltage at the second sampling point is greater than the actual voltage at the second sampling point, that is, V 采样2 >V 实际 , it means that the second sampling voltage is too large. At this time, the second sampling voltage V can be reduced according to a certain ratio. 采样2 , and then reduce the V 采样2 Substitute it into the calculation formula of the heating element resistance to calculate and obtain the reduced resistance value of the heating element as the corrected resistance value of the heating element. On the contrary, if the second sampling voltage at the second sampling point is less than the actual voltage at the second sampling point, that is, V 采样2 <V 实际, it means that the second sampling voltage is too small. At this time, the second sampling voltage V can be increased according to a certain ratio. 采样2 , and then the increased V 采样2 Substitute it into the calculation formula of the heating element resistance to calculate, and obtain the increased resistance value of the heating element as the corrected resistance value of the heating element. By doing so, the accuracy of the calculated heating element resistance value can be improved to a certain extent, thereby improving the accuracy of calculating the actual voltage of the second sampling point and calculating the sampling error.
[0083] 202. Correct the sampling value according to the sampling error, and calculate the target parameter according to the corrected sampling value.
[0084] After reading the sampling error of the analog-to-digital converter, the sampling value output by the analog-to-digital converter is corrected according to the sampling error, so that the error of the sampling value can be reduced. Afterwards, the target parameter is calculated according to the corrected sampling value, which can improve the accuracy of the calculated target parameter. For example, assuming that the sampling error is X described in the previous article, after obtaining the ADC code value (i.e., the sampling value) of the analog-to-digital converter, the ADC code value can be multiplied by the sampling error X to correct it and obtain the corrected ADC code value. When calculating parameters such as battery voltage or heating element resistance, more accurate parameter calculation results can be obtained by calculating according to the corrected more accurate ADC code value.
[0085] In the technical solution of the embodiment of the present application, the sampling error of the analog-to-digital converter of the heating-not-burning appliance is pre-calculated and stored, and then when the target parameter that needs to be calculated according to the sampling value output by the analog-to-digital converter is detected, the sampling error is read, and the acquired sampling value is corrected according to the sampling error, and finally the target parameter is calculated according to the corrected sampling value. Through such a setting, the sampling value of the analog-to-digital converter can be corrected according to the sampling error of the analog-to-digital converter, the error of the acquired sampling value is reduced, and thus the accuracy of the calculated target parameter is improved.
[0086] To facilitate understanding of the parameter detection method of the heating non-combustion appliance provided in the embodiment of the present application, an actual application scenario is listed below.
[0087] like Figure 5 , which is a schematic diagram of the operation flow of the parameter detection method for a heating non-combustion appliance provided in an embodiment of the present application in an actual application scenario. Figure 5The application scenario shown requires detecting the resistance of the heating element of the heating-not-burning appliance to calculate the current temperature of the heating element. When the user long presses the start button of the heating-not-burning appliance to start the heating module, the heating element resistance calculation function is called for the first time to calculate the resistance of the heating element; the battery voltage calculation function is called to calculate the sampling voltage of the power supply position sampling point; the actual voltage of the power supply position sampling point is calculated by the resistance of the heating element, the resistance of the current sensor, the voltage divider resistance, and the actual current detected by the current sensor; the sampling error X of the analog-to-digital converter is calculated based on the sampling voltage and the actual voltage of the power supply position sampling point, and X is stored; then, the sampling value output by the analog-to-digital converter is multiplied by the sampling error X for correction; when the heating element resistance calculation function is called each time (the calling frequency can be 100ms each time), the corrected sampling value can be used to calculate a more accurate sampling voltage, thereby calculating a more accurate heating element resistance; finally, the current heating element temperature is calculated based on the heating element resistance to achieve temperature control of the heating element.
[0088] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0089] A parameter detection method of a heat-not-burn appliance is mainly described above, and a parameter detection device of a heat-not-burn appliance will be described below.
[0090] See also Figure 6 In the embodiment of the present application, an embodiment of a parameter detection device for a heating-not-burning appliance includes:
[0091] The error reading module 601 is used to read the stored sampling error of the analog-to-digital converter when detecting a target parameter that needs to be calculated based on the sampled value output by the analog-to-digital converter of the heating-not-burning appliance;
[0092] The sampling value correction module 602 is used to correct the sampling value according to the sampling error and calculate the target parameter according to the corrected sampling value.
[0093] In one implementation of the embodiment of the present application, the parameter detection device of the heating non-combustion appliance further includes:
[0094] An actual voltage calculation module, used to calculate the actual voltage of the sampling point according to the electrical parameters of the circuit branch where the sampling point of the analog-to-digital converter is located;
[0095] The sampling error calculation module is used to calculate the sampling error of the analog-to-digital converter according to the sampling voltage and the actual voltage at the sampling point.
[0096] In one implementation of the embodiment of the present application, the circuit branch includes a heating element and a fixed resistor of a heating-not-burning appliance connected in series, one end of the heating element is connected to a power supply and the other end is connected to the fixed resistor, one end of the fixed resistor is connected to the heating element and the other end is grounded, and the sampling point is connected between the heating element and the fixed resistor; the actual voltage calculation module includes:
[0097] A first current detection unit, used to detect an actual current of a circuit branch;
[0098] The first voltage calculation unit is used to calculate the actual voltage of the sampling point according to the actual current and the fixed resistance.
[0099] In one implementation of the embodiment of the present application, the fixed resistor includes a current sensor and a voltage divider resistor connected in series; the first current detection unit includes:
[0100] A current detection subunit, used to obtain a current value detected by a current sensor as an actual current of a circuit branch;
[0101] The first voltage calculation unit includes:
[0102] The voltage calculation subunit is used to calculate the actual voltage at the sampling point according to the actual current, the resistance of the current sensor and the voltage divider resistance.
[0103] In another implementation of the embodiment of the present application, the circuit branch includes a heating element and a fixed resistor of a heating non-combustion appliance connected in series, one end of the heating element is connected to a power supply and the other end is connected to the fixed resistor, one end of the fixed resistor is connected to the heating element and the other end is grounded, the sampling points include a first sampling point and a second sampling point, the first sampling point is connected between the heating element and the fixed resistor, and the second sampling point is connected to the power supply; the actual voltage calculation module includes:
[0104] A second current detection unit, used to detect the actual current of the circuit branch;
[0105] A heating element resistance calculation unit, used for calculating the resistance value of the heating element according to the first sampling voltage at the first sampling point, the second sampling voltage at the second sampling point and the fixed resistance;
[0106] A second voltage calculation unit, used for calculating the actual voltage at the second sampling point according to the actual current, the resistance value of the heating element and the fixed resistance;
[0107] The sampling error calculation module includes:
[0108] The sampling error calculation unit is used to calculate the sampling error of the analog-to-digital converter according to the second sampling voltage at the second sampling point and the actual voltage at the second sampling point.
[0109] In one implementation of the embodiment of the present application, the sampling error calculation unit includes:
[0110] The heating element resistance correction subunit is used to correct the resistance value of the heating element according to the magnitude relationship between the second sampling voltage at the second sampling point and the actual voltage at the second sampling point;
[0111] The actual voltage correction subunit is used to calculate the corrected actual voltage of the second sampling point according to the actual current, the corrected resistance value of the heating element and the fixed resistance;
[0112] The sampling error calculation subunit is used to calculate the sampling error of the analog-to-digital converter according to the second sampling voltage at the second sampling point and the corrected actual voltage at the second sampling point.
[0113] In one implementation of the embodiment of the present application, the heating element resistance correction subunit includes:
[0114] A first resistance correction subunit, configured to reduce the resistance value of the heating element if the second sampling voltage at the second sampling point is greater than the actual voltage at the second sampling point;
[0115] The second resistance correction subunit is used to increase the resistance value of the heating element if the second sampling voltage at the second sampling point is less than the actual voltage at the second sampling point.
[0116] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the parameter detection method of the heating non-combustion appliance as described in any of the above embodiments is implemented.
[0117] Figure 7 is a schematic diagram of a controller provided in an embodiment of the present application. Figure 7 As shown, the controller 7 of this embodiment includes: a processor 70, a memory 71, and a computer program 72 stored in the memory 71 and executable on the processor 70. When the processor 70 executes the computer program 72, the steps in the above-mentioned embodiments of the parameter detection method of the heating non-combustion appliance are implemented, for example Figure 2 Alternatively, when the processor 70 executes the computer program 72, the functions of each module / unit in the above-mentioned device embodiments are realized, for example Figure 6 Functions of modules 601 to 602 are shown.
[0118] The computer program 72 may be divided into one or more modules / units, which are stored in the memory 71 and executed by the processor 70 to complete the present application. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program 72 in the controller 7.
[0119] The processor 70 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0120] The memory 71 may be an internal storage unit of the controller 7, such as a hard disk or memory of the controller 7. The memory 71 may also be an external storage device of the controller 7, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the controller 7. Further, the memory 71 may include both an internal storage unit of the controller 7 and an external storage device. The memory 71 is used to store the computer program and other programs and data required by the controller. The memory 71 may also be used to temporarily store data that has been output or is to be output.
[0121] The present application also provides a heating without burning device, which includes: Figure 7 Controller shown.
[0122] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0123] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0124] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0125] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0126] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the system embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0127] The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of the present application.
[0128] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0129] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0130] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A method for detecting parameters of a heating-not-burning appliance, characterized in that: include: When detecting a target parameter that needs to be calculated based on a sampled value output by an analog-to-digital converter of the heat-not-burn appliance, reading a stored sampling error of the analog-to-digital converter; The sampling value is corrected according to the sampling error, and the target parameter is calculated according to the corrected sampling value.
2. The method according to claim 1, characterized in that The sampling error of the analog-to-digital converter is calculated as follows: Calculating the actual voltage of the sampling point according to the electrical parameters of the circuit branch where the sampling point of the analog-to-digital converter is located; A sampling error of the analog-to-digital converter is calculated according to the sampled voltage at the sampling point and the actual voltage.
3. The method according to claim 2, characterized in that The circuit branch includes a heating element and a fixed resistor of the heating-without-combustion device connected in series, one end of the heating element is connected to a power source and the other end is connected to the fixed resistor, one end of the fixed resistor is connected to the heating element and the other end is grounded, and the sampling point is connected between the heating element and the fixed resistor; The step of calculating the actual voltage of the sampling point according to the electrical parameters of the circuit branch where the sampling point of the analog-to-digital converter is located comprises: detecting an actual current in the circuit branch; The actual voltage at the sampling point is calculated according to the actual current and the fixed resistance.
4. The method according to claim 3, characterized in that The fixed resistor includes a current sensor and a voltage divider resistor connected in series; the detecting the actual current of the circuit branch includes: Acquiring a current value detected by the current sensor as an actual current of the circuit branch; The calculating the actual voltage of the sampling point according to the actual current and the fixed resistance includes: The actual voltage at the sampling point is calculated according to the actual current, the resistance of the current sensor and the voltage-dividing resistance.
5. The method according to claim 2, characterized in that The circuit branch includes a heating element and a fixed resistor of the heating-without-combustion device connected in series, one end of the heating element is connected to a power source and the other end is connected to the fixed resistor, one end of the fixed resistor is connected to the heating element and the other end is grounded, the sampling points include a first sampling point and a second sampling point, the first sampling point is connected between the heating element and the fixed resistor, and the second sampling point is connected to the power source; The step of calculating the actual voltage of the sampling point according to the electrical parameters of the circuit branch where the sampling point of the analog-to-digital converter is located comprises: detecting an actual current in the circuit branch; Calculating the resistance value of the heating element according to the first sampling voltage of the first sampling point, the second sampling voltage of the second sampling point and the fixed resistor; Calculating the actual voltage of the second sampling point according to the actual current, the resistance value of the heating element and the fixed resistance; The calculating the sampling error of the analog-to-digital converter according to the sampled voltage at the sampling point and the actual voltage comprises: A sampling error of the analog-to-digital converter is calculated according to the second sampled voltage at the second sampling point and the actual voltage at the second sampling point.
6. The method according to claim 5, characterized in that The calculating the sampling error of the analog-to-digital converter according to the second sampled voltage at the second sampling point and the actual voltage at the second sampling point comprises: Correcting the resistance value of the heating element according to a magnitude relationship between the second sampling voltage at the second sampling point and the actual voltage at the second sampling point; Calculating a corrected actual voltage at the second sampling point according to the actual current, the corrected resistance value of the heating element and the fixed resistance; A sampling error of the analog-to-digital converter is calculated according to the second sampled voltage at the second sampling point and the corrected actual voltage at the second sampling point.
7. The method according to claim 6, characterized in that The correcting the resistance value of the heating element according to the magnitude relationship between the second sampling voltage at the second sampling point and the actual voltage at the second sampling point includes: If the second sampling voltage at the second sampling point is greater than the actual voltage at the second sampling point, reducing the resistance value of the heating element; If the second sampling voltage at the second sampling point is less than the actual voltage at the second sampling point, the resistance value of the heating element is increased.
8. A parameter detection device for a heating-not-burning appliance, characterized in that: include: An error reading module, used for reading the stored sampling error of the analog-to-digital converter when detecting a target parameter that needs to be calculated based on a sampled value output by the analog-to-digital converter of the heating-not-burning appliance; The sampling value correction module is used to correct the sampling value according to the sampling error and calculate the target parameter according to the corrected sampling value.
9. A controller comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the parameter detection method for the heating non-burning appliance according to any one of claims 1 to 7 is implemented.
10. A heating without burning device, characterized in that: Comprising a controller as claimed in claim 9.