Battery electric quantity display optimization method and device, electronic equipment and storage medium

CN119535253APending Publication Date: 2025-02-28SHENZHEN GEEKVAPE TECH CO LTD
0 Cites 0 Cited by

Patent Information

Application Number
CN202411745217.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-28
Publication Date
2025-02-28

Smart Images

  • Figure CN119535253A_ABST
    Figure CN119535253A_ABST
Patent Text Reader

Abstract

The invention discloses a battery electric quantity display optimization method and device, electronic equipment and a storage medium, and the method comprises the steps: collecting the voltage of a current heating non-combustion appliance at preset intervals; calculating the mean value between the value of the preset multiple of the actual voltage of the heating non-combustion appliance determined last time and the current voltage of the heating non-combustion appliance to obtain the current voltage mean value of the heating non-combustion appliance; judging whether the current voltage mean value accords with a charging and discharging voltage value one-way change rule or not; if it is judged that the charging and discharging voltage value one-way change rule is met, the current average voltage value of the heat-not-burn appliance is determined as the current actual voltage of the heat-not-burn appliance; if it is judged that the charging and discharging voltage value one-way change rule is not met, the actual voltage, determined last time, of the heat-not-burn appliance is determined as the actual voltage of the current heat-not-burn appliance; and determining and displaying the current electric quantity of the heat-not-burn appliance by using the actual voltage of the current heat-not-burn appliance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of battery power display, and in particular to a battery power display optimization method and device, electronic equipment, and storage medium. Background Art

[0002] Currently, when the heating without combustion appliance is turned on, in order to allow the user to understand the battery power of the heating without combustion appliance in real time so as to charge or end charging in time, the current remaining power of the heating without combustion appliance will be displayed in real time through light display or digital tube numbers.

[0003] Since the voltage of the battery of the heating without burning appliance can reflect the remaining power of the battery of the heating without burning appliance, the current method of displaying the power of the heating without burning appliance is mainly to collect the current voltage value of the heating without burning appliance, and then directly use the collected voltage value of the heating without burning appliance to calculate and display the power of the heating without burning appliance.

[0004] However, when the heating without burning device has a large charging and discharging current, the collected voltage value will drop suddenly. When the heating without burning device is charging, the input of charging current will cause the collected voltage value to rise suddenly. In other cases, the collected voltage changes abnormally. Therefore, in these cases, the collected voltage will differ greatly from the actual voltage, resulting in a large difference between the displayed power and the actual power. Moreover, the sudden change in power can be easily mistaken for an abnormality in the heating without burning device. Summary of the invention

[0005] Based on the above-mentioned deficiencies of the prior art, the present application provides a battery power display optimization method and device, electronic device, and storage medium to solve the problem that the prior art cannot guarantee accurate display of power.

[0006] In order to achieve the above objectives, this application provides the following technical solutions:

[0007] The first aspect of the present application provides a battery power display optimization method, comprising:

[0008] At every preset interval, the voltage of the current heating-not-burning appliance is collected;

[0009] Calculating the average of the value of the preset multiple of the actual voltage of the heating without burning appliance determined last time and the current voltage of the heating without burning appliance to obtain the current voltage average of the heating without burning appliance;

[0010] Determining whether the current voltage average value of the heating without burning appliance complies with the unidirectional change rule of the charging and discharging voltage value;

[0011] If it is determined that the current voltage average value of the heating without combustion appliance meets the one-way change rule of the charging and discharging voltage value, the current voltage average value of the heating without combustion appliance is determined as the actual voltage of the heating without combustion appliance at present;

[0012] If it is determined that the current voltage average value of the heating without combustion appliance does not conform to the unidirectional change rule of the charging and discharging voltage value, the actual voltage of the heating without combustion appliance determined last time is determined as the current actual voltage of the heating without combustion appliance;

[0013] The actual voltage of the heating without burning appliance is used to determine and display the current power of the heating without burning appliance.

[0014] Optionally, in the above-mentioned battery power display optimization method, the calculating the average value between the value of the preset multiple of the actual voltage of the heating without burning appliance determined last time and the current voltage of the heating without burning appliance to obtain the current voltage average value of the heating without burning appliance includes:

[0015] Reading the target voltage value stored in the main control chip of the heating without burning appliance to obtain the actual voltage of the heating without burning appliance determined last time;

[0016] Determining the current preset multiple according to the current working state of the heating without burning appliance;

[0017] Calculate the sum of the product of the actual voltage of the heating without combustion appliance determined last time and the current preset multiple and the current voltage of the heating without combustion appliance to obtain the current total voltage value of the heating without combustion appliance;

[0018] The current total voltage value of the heating without burning appliance is divided by the sum of the current preset multiple and 1 to obtain the current voltage average value of the heating without burning appliance.

[0019] Optionally, in the above-mentioned battery power display optimization method, after using the actual voltage of the current heating without burning appliance to determine and display the current power of the heating without burning appliance, it also includes:

[0020] The target voltage value in the memory of the main control chip of the heating without burning appliance is updated by using the actual voltage of the heating without burning appliance at present.

[0021] Optionally, in the above-mentioned battery power display optimization method, the determining whether the current voltage average value of the heating without burning appliance complies with the unidirectional change rule of the charging and discharging voltage value includes:

[0022] Detecting whether the heat-not-burn device is currently in a charging state;

[0023] If it is detected that the heating without burning appliance is currently in a charging state, comparing whether the current voltage average of the heating without burning appliance is higher than the actual voltage of the heating without burning appliance determined last time;

[0024] If the comparison shows that the current voltage average of the heating without combustion appliance is higher than the actual voltage of the heating without combustion appliance determined last time, it is determined that the current voltage average of the heating without combustion appliance complies with the unidirectional change rule of the charging and discharging voltage value;

[0025] If it is detected that the heating without burning appliance is not in a charging state, comparing whether the current voltage average of the heating without burning appliance is lower than the actual voltage of the heating without burning appliance determined last time;

[0026] If the comparison shows that the current voltage average of the heating without combustion appliance is lower than the actual voltage of the heating without combustion appliance determined last time, it is determined that the current voltage average of the heating without combustion appliance complies with the unidirectional change rule of the charging and discharging voltage value.

[0027] Optionally, in the above-mentioned battery power display optimization method, the current power of the heating without burning appliance is determined and displayed by using the actual voltage of the current heating without burning appliance, including:

[0028] Calculating the difference between the actual voltage of the heating without burning appliance and a preset minimum threshold value to obtain a current voltage difference value;

[0029] Calculate the percentage of the current voltage difference and the maximum voltage difference to obtain the current power percentage of the heating without burning appliance; wherein the maximum voltage difference is the difference between the preset maximum threshold and the preset minimum threshold;

[0030] The current battery percentage of the heat-not-burn appliance is displayed.

[0031] The second aspect of the present application provides a battery power display optimization device, comprising:

[0032] A collection unit, used for collecting the current voltage of the heating-not-burning appliance at every preset interval;

[0033] A filtering processing unit, used for calculating the average value between the value of the preset multiple of the actual voltage of the heating without burning appliance determined last time and the current voltage of the heating without burning appliance, to obtain the current voltage average value of the heating without burning appliance;

[0034] A rule judgment unit, used to judge whether the current voltage average value of the heating without burning appliance complies with the unidirectional change rule of the charging and discharging voltage value;

[0035] A first voltage determination unit is used to determine the current voltage average value of the heating without combustion appliance as the actual voltage of the heating without combustion appliance when it is determined that the current voltage average value of the heating without combustion appliance meets the unidirectional change rule of the charging and discharging voltage value;

[0036] A second voltage determination unit is used to determine the actual voltage of the heating without combustion appliance determined last time as the actual voltage of the heating without combustion appliance at present when it is determined that the current voltage average value of the heating without combustion appliance does not meet the unidirectional change rule of the charging and discharging voltage value;

[0037] The power display unit is used to determine and display the current power of the heating without burning appliance by using the actual voltage of the heating without burning appliance at present.

[0038] Optionally, in the above-mentioned battery power display optimization device, the filtering processing unit includes:

[0039] A reading unit, used for reading the target voltage value stored in the main control chip of the heating without burning appliance, and obtaining the actual voltage of the heating without burning appliance determined last time;

[0040] A multiple determination unit, used for determining the current preset multiple according to the current working state of the heating without burning appliance;

[0041] A summing unit, used for calculating the sum of the product of the actual voltage of the heating without burning appliance determined last time multiplied by the current preset multiple and the current voltage of the heating without burning appliance, to obtain the current total voltage value of the heating without burning appliance;

[0042] The mean value calculation unit is used to divide the current total voltage value of the heating without combustion appliance by the sum of the current preset multiple and 1 to obtain the current voltage mean value of the heating without combustion appliance.

[0043] Optionally, in the above-mentioned battery power display optimization device, it also includes:

[0044] An updating unit is used to update the target voltage value in the memory of the main control chip of the heating without burning appliance by using the actual voltage of the heating without burning appliance at present.

[0045] Optionally, in the above-mentioned battery power display optimization device, the rule unit includes:

[0046] A state detection unit, used to detect whether the heating without burning appliance is currently in a charging state;

[0047] A first comparison unit is used for comparing whether a current voltage average of the heating without burning appliance is higher than a last determined actual voltage of the heating without burning appliance when it is detected that the heating without burning appliance is currently in a charging state;

[0048] a second comparison unit, for comparing whether a current voltage average of the heating without combustion appliance is lower than a last determined actual voltage of the heating without combustion appliance when it is detected that the heating without combustion appliance is not in a charging state;

[0049] A result determination unit is used to determine that the current voltage average value of the heating without combustion appliance complies with the unidirectional change rule of the charging and discharging voltage values ​​when the first comparison unit compares and finds that the current voltage average value of the heating without combustion appliance is higher than the actual voltage of the heating without combustion appliance determined last time, or when the second comparison unit compares and finds that the current voltage average value of the heating without combustion appliance is lower than the actual voltage of the heating without combustion appliance determined last time.

[0050] Optionally, in the above-mentioned battery power display optimization device, the power display unit includes:

[0051] A pressure difference calculation unit, used to calculate the difference between the actual voltage of the heating without burning appliance and a preset minimum threshold value, and obtain a current voltage difference value;

[0052] A power calculation unit, used to calculate the percentage of the current voltage difference and the maximum voltage difference, and obtain the current power percentage of the heating without burning appliance; wherein the maximum voltage difference is the difference between a preset maximum threshold and a preset minimum threshold;

[0053] The display unit is used to display the current power percentage of the heating without burning appliance.

[0054] A third aspect of the present application provides an electronic device, including:

[0055] Memory and processor;

[0056] Wherein, the memory is used to store programs;

[0057] The processor is used to execute the program, and when the program is executed, it is specifically used to implement the battery power display optimization method as described in any one of the above items.

[0058] A fourth aspect of the present application provides a computer storage medium for storing a computer program, wherein when the computer program is executed by a processor, the computer program is used to implement a battery power display optimization method as described in any one of the above.

[0059] The present application provides a method for optimizing the display of battery power. At each preset interval, the voltage of the current heating-not-burning appliance is collected, and then the average between the value of the preset multiple of the actual voltage of the heating-not-burning appliance determined last time and the voltage of the current heating-not-burning appliance is calculated to obtain the current voltage average of the heating-not-burning appliance, thereby using the actual voltage of the heating-not-burning appliance determined last time with the preset multiple to filter the voltage of the current heating-not-burning appliance, so that when a voltage mutation occurs, it is filtered to a value close to the actual voltage, but it will not affect the voltage value when no mutation occurs. Then, it is determined whether the current voltage average of the heating-not-burning appliance complies with the one-way change rule of the charging and discharging voltage value. If it is determined that the current voltage average of the heating-not-burning appliance complies with the one-way change rule of the charging and discharging voltage value, the current voltage average of the heating-not-burning appliance is determined as the actual voltage of the current heating-not-burning appliance. If it is determined that the current voltage average of the heating-without-burning appliance does not conform to the unidirectional change rule of the charging and discharging voltage value, the actual voltage of the heating-without-burning appliance determined last time is determined as the actual voltage of the current heating-without-burning appliance, avoiding the use of abnormal voltage to calculate the power. Finally, the actual voltage of the current heating-without-burning appliance is used to determine and display the current power of the heating-without-burning appliance, thereby eliminating voltage mutations through filtering, avoiding sudden changes in power, and avoiding the use of abnormal voltages, thereby effectively improving the accuracy of the displayed power. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0061] Figure 1 A flowchart of a battery power display optimization method provided in an embodiment of the present application;

[0062] Figure 2 A flowchart of a method for calculating a current voltage average value provided in an embodiment of the present application;

[0063] Figure 3 A flowchart of a method for determining whether the current voltage average value complies with the unidirectional change rule of the charge and discharge voltage value provided in an embodiment of the present application;

[0064] Figure 4 A flow chart of a method for determining and displaying the current power of a heat-not-burn appliance provided in an embodiment of the present application;

[0065] Figure 5A schematic diagram of the architecture of a battery power display optimization device provided in an embodiment of the present application;

[0066] Figure 6 A schematic diagram of the architecture of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0067] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0068] In this application, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

[0069] The present application embodiment provides a battery power display optimization method, such as Figure 1 As shown, the following steps are included:

[0070] S101. Collecting the voltage of the current heating without combustion appliance at every preset interval.

[0071] It should be noted that the preset interval time is usually relatively long, for example, 50 ms, so it corresponds to the real-time collection of the voltage of the current heating non-combustion appliance.

[0072] S102, calculating the average value between the preset multiple of the actual voltage of the heating without combustion appliance determined last time and the current voltage of the heating without combustion appliance, and obtaining the current voltage average value of the heating without combustion appliance.

[0073] It should be noted that since the last power level is calculated and displayed based on the actual voltage of the heating without burning appliance determined last time, in order to avoid a sudden change in the heating without burning appliance used to calculate the current, which results in a sudden change in the power level of the heating without burning appliance, in an embodiment of the present application, the actual voltage of the heating without burning appliance determined last time is obtained, and then the actual voltage of the heating without burning appliance determined last time is used to filter the voltage of the current heating without burning appliance.

[0074] In order to effectively filter the collected voltage of the current heating-not-burning appliance so that the voltage of the current heating-not-burning appliance changes normally and evenly, in the embodiment of the present application, the voltage of the current heating-not-burning appliance is filtered by calculating the value of the preset multiple of the actual voltage of the heating-not-burning appliance determined last time, and adding the mean value of the voltage of the current heating-not-burning appliance, which is equivalent to using the historical voltage of the heating-not-burning appliance with the preset multiple number, and averaging the voltage of the current heating-not-burning appliance, so as to use the average value as the actual voltage of the current heating-not-burning appliance. Therefore, when the collected voltage has a sudden change, the voltage is filtered to be close to the actual voltage by the mean filtering method, and when there is no sudden change, the mean filtering will not affect the value of the actual voltage.

[0075] Optionally, in another embodiment of the present application, a specific implementation of step S102 is as follows: Figure 2 As shown, the following steps are included:

[0076] S201, reading the target voltage value stored in the main control chip of the heating without combustion appliance to obtain the actual voltage of the heating without combustion appliance determined last time.

[0077] It should be noted that in order to obtain the actual voltage of the heating-not-burning appliance determined last time and prevent the actual voltage of the heating-not-burning appliance determined last time from being lost due to power failure and restart, a field of a target voltage value is stored in the memory of the main control chip of the heating-not-burning appliance, and the actual voltage of the heating-not-burning appliance determined last time is stored through the field. Specifically, it can be stored in flash. Therefore, by reading the target voltage value stored in the main control chip of the heating-not-burning appliance, the actual voltage of the heating-not-burning appliance determined last time can be obtained.

[0078] Accordingly, in the embodiment of the present application, after executing step S106, that is, after obtaining the actual voltage of the heating-without-combustion device, it is necessary to further execute:

[0079] The target voltage value in the memory of the main control chip of the heating without burning appliance is updated by using the actual voltage of the current heating without burning appliance.

[0080] S202: Determine a current preset multiple according to the current working state of the heating without combustion appliance.

[0081] It should be noted that, considering that the normal voltage variation of the heating-not-burning appliance is different in the charging state, the heating state and the idle state, in order to adapt to the normal voltage variation of the heating-not-burning appliance in different working states, a corresponding preset multiple is set, so that the voltage of the heating-not-burning appliance can be filtered to different degrees according to different working states. For example, for the idle state, that is, the state without heating, it is set to about 10 times, and for the heating state, the voltage drops faster, so it can be set to about 25 times, which can be set specifically according to the output power when it is working.

[0082] Therefore, the current working state of the heating without combustion appliance can be specifically determined, and the preset multiple corresponding to the working state of the heating without combustion appliance can be matched as the current preset multiple.

[0083] S203, calculating the sum of the product of the actual voltage of the heating without combustion appliance determined last time and the current preset multiple and the current voltage of the heating without combustion appliance to obtain the current total voltage value of the heating without combustion appliance.

[0084] S204: Divide the current total voltage value of the heating without combustion appliance by the sum of the current preset multiple and 1 to obtain the current voltage average value of the heating without combustion appliance.

[0085] Since the current total voltage value of the heating without combustion appliance, which is equivalent to the sum of the voltage values ​​corresponding to the current preset multiples and the current voltage value of the heating without combustion appliance, is the sum of the voltages of the current preset multiples plus 1, the current total voltage value of the heating without combustion appliance is divided by the sum of the current preset multiples and 1, and the current average voltage of the heating without combustion appliance can be obtained.

[0086] S103, judging whether the current voltage average value of the heating without burning appliance complies with the unidirectional change rule of the charging and discharging voltage value.

[0087] It should be noted that the one-way change rule of the charge and discharge voltage value means that under normal circumstances, the voltage of the heating without burning appliance changes in one direction, that is, when charging, the voltage will continue to increase with continuous charging, and when discharging, that is, when heating or not working, the voltage will continue to decrease due to the input power for heating and the basic energy consumption of each component. In other words, under normal circumstances, the voltage value can only increase when charging, and the voltage value can only decrease when discharging. Therefore, to avoid abnormal situations, it is necessary to determine whether the current voltage average of the heating without burning appliance meets the one-way change rule of the charge and discharge voltage value.

[0088] Among them, if it is judged that the current voltage average value of the heating-not-burning appliance meets the unidirectional change rule of the charge-discharge voltage value, the voltage change of the heating-not-burning appliance is normal, so the calculated current voltage average value of the heating-not-burning appliance is also normal, and step S104 is executed at this time. If it is judged that the current voltage average value of the heating-not-burning appliance does not meet the unidirectional change rule of the charge-discharge voltage value, it means that the voltage change of the heating-not-burning appliance is abnormal, so the calculated current voltage average value of the heating-not-burning appliance is also normal, and step S105 is executed at this time.

[0089] Optionally, in another embodiment of the present application, a specific implementation of step S103 is as follows: Figure 3 As shown, the following steps are included:

[0090] S301, detecting whether the current heating without burning appliance is in a charging state.

[0091] If it is detected that the current heating without combustion device is in a charging state, step S302 is executed. If it is detected that the current heating without combustion device is not in a charging state, it means that the current heating without combustion device is in a discharging state, so step S303 is executed at this time.

[0092] S302: Compare whether the current voltage average of the heating without combustion appliance is higher than the actual voltage of the heating without combustion appliance determined last time.

[0093] If the comparison shows that the current voltage average of the heating-without-combustion device is higher than the actual voltage of the heating-without-combustion device determined last time, it means that the voltage is increasing normally, that is, it meets the rule that the voltage can only increase in the charging state, so step S304 is executed at this time. If the current voltage average of the heating-without-combustion device is not higher than the actual voltage of the heating-without-combustion device determined last time, it means that the voltage is not increasing normally, so step S305 is executed at this time.

[0094] S303: Compare whether the current voltage average value of the heating without combustion appliance is lower than the actual voltage of the heating without combustion appliance determined last time.

[0095] Since the heating without burning appliance is in a discharge state at this time, the voltage will continue to decrease under normal circumstances, so under normal circumstances, the current voltage average of the heating without burning appliance will be lower than the actual voltage of the heating without burning appliance determined last time. Therefore, if the current voltage average of the heating without burning appliance is lower than the actual voltage of the heating without burning appliance determined last time, step S304 is executed. If the current voltage average of the heating without burning appliance is not lower than the actual voltage of the heating without burning appliance determined last time, it means that it has not decreased normally, and step S305 is executed at this time.

[0096] S304, determining whether the current voltage average value of the heating without combustion appliance complies with the unidirectional change rule of the charging and discharging voltage value.

[0097] S305: Determine that the current voltage average value of the heating without combustion appliance does not comply with the unidirectional change rule of the charging and discharging voltage value.

[0098] S104, determining the current voltage average of the heating without combustion appliance as the actual voltage of the current heating without combustion appliance.

[0099] Since the current voltage average value of the heating without combustion appliance is normal and is a filtered voltage value, it is determined as the actual voltage of the current heating without combustion appliance to avoid voltage mutation.

[0100] S105, determining the actual voltage of the heating without combustion appliance determined last time as the actual voltage of the current heating without combustion appliance.

[0101] Since the actual voltage of the heating-not-burning appliance determined last time is abnormal, it cannot be used as the actual voltage to calculate the power, otherwise the error between the calculated power and the actual power will be greater. In addition, since the determined actual voltage will also be used to calculate the average voltage next time, it will also affect the calculation of the voltage and power next time.

[0102] The collected voltage of the current heating without burning appliance may have a sudden change, which will cause a large difference between the calculated voltage and the actual voltage, thereby causing a sudden change in the displayed power and a large error, so the collected voltage of the current heating without burning appliance cannot be used. However, since the actual voltage of the heating without burning appliance determined last time is the actual voltage of the heating without burning appliance at the last moment, and the normal state of the actual voltage of the heating without burning appliance changes little, the actual voltage of the heating without burning appliance determined last time can also be directly determined as the actual voltage of the current heating without burning appliance, so that the voltage with the smallest error can be obtained, thereby reducing the power display error and preventing sudden power changes.

[0103] S106: using the actual voltage of the current heating without combustion appliance, determine the current power of the heating without combustion appliance and display it.

[0104] Specifically, the current remaining power of the heating without burning appliance is calculated using the actual voltage of the heating without burning appliance, and is displayed on the heating without burning appliance.

[0105] Optionally, in another embodiment of the present application, a specific implementation of step S106 is as follows: Figure 4 As shown, the following steps are included:

[0106] S401. Calculate the difference between the actual voltage of the current heating without burning appliance and a preset minimum threshold value to obtain the current voltage difference.

[0107] The preset minimum threshold is the voltage value when the power is at the lowest.

[0108] S402, calculating the percentage of the current voltage difference and the maximum voltage difference to obtain the current power percentage of the heating without burning appliance.

[0109] Among them, the maximum voltage difference is the difference between the preset maximum threshold and the preset minimum threshold. The preset maximum threshold is the voltage value when the power is the highest, that is, the voltage value at 100%, so the difference between the preset maximum threshold and the preset minimum threshold is the difference between the voltage when the power is the highest and the voltage when the power is the lowest, so the percentage of the current voltage difference and the maximum voltage difference is the current power ratio.

[0110] S403, displaying the current power percentage of the heating without burning appliance.

[0111] The embodiment of the present application provides a method for optimizing the display of battery power. At each preset interval, the voltage of the current heating-not-burning appliance is collected, and then the average between the value of the preset multiple of the actual voltage of the heating-not-burning appliance determined last time and the voltage of the current heating-not-burning appliance is calculated to obtain the current voltage average of the heating-not-burning appliance, thereby using the actual voltage of the heating-not-burning appliance determined last time with the preset multiple to filter the voltage of the current heating-not-burning appliance, so that when a voltage mutation occurs, it is filtered to a value close to the actual voltage, but it will not affect the voltage value when no mutation occurs. Then, it is determined whether the current voltage average of the heating-not-burning appliance meets the one-way change rule of the charging and discharging voltage value. If it is determined that the current voltage average of the heating-not-burning appliance meets the one-way change rule of the charging and discharging voltage value, the current voltage average of the heating-not-burning appliance is determined as the actual voltage of the current heating-not-burning appliance. If it is determined that the current voltage average of the heating-without-burning appliance does not conform to the unidirectional change rule of the charging and discharging voltage value, the actual voltage of the heating-without-burning appliance determined last time is determined as the actual voltage of the current heating-without-burning appliance, avoiding the use of abnormal voltage to calculate the power. Finally, the actual voltage of the current heating-without-burning appliance is used to determine and display the current power of the heating-without-burning appliance, thereby eliminating voltage mutations through filtering, avoiding sudden changes in power, and avoiding the use of abnormal voltages, thereby effectively improving the accuracy of the displayed power.

[0112] Another embodiment of the present application provides a battery power display optimization device, such as Figure 5 As shown, including:

[0113] The collecting unit 501 is used for collecting the voltage of the current heating without burning appliance at every preset interval.

[0114] The filtering processing unit 502 is used to calculate the average value between the preset multiple of the actual voltage of the heating without combustion appliance determined last time and the current voltage of the heating without combustion appliance to obtain the current voltage average of the heating without combustion appliance.

[0115] The rule judgment unit 503 is used to judge whether the current voltage average value of the heating without burning appliance complies with the unidirectional change rule of the charging and discharging voltage value.

[0116] The first voltage determination unit 504 is used to determine the current voltage average value of the heating without combustion appliance as the actual voltage of the current heating without combustion appliance when it is determined that the current voltage average value of the heating without combustion appliance meets the unidirectional change rule of the charging and discharging voltage value.

[0117] The second voltage determination unit 505 is used to determine the actual voltage of the heating without combustion appliance determined last time as the actual voltage of the current heating without combustion appliance when it is determined that the current voltage average value of the heating without combustion appliance does not comply with the unidirectional change rule of the charging and discharging voltage value.

[0118] The power display unit 506 is used to determine and display the current power of the heating without burning appliance by using the actual voltage of the heating without burning appliance.

[0119] Optionally, in a battery power display optimization device according to another embodiment of the present application, the filtering processing unit includes:

[0120] The reading unit is used to read the target voltage value stored in the main control chip of the heating without burning appliance to obtain the actual voltage of the heating without burning appliance determined last time.

[0121] The multiple determination unit is used to determine the current preset multiple according to the current working state of the heating without burning appliance.

[0122] The summing unit is used to calculate the sum of the product of the actual voltage of the heating without combustion appliance determined last time multiplied by the current preset multiple and the current voltage of the heating without combustion appliance to obtain the current total voltage value of the heating without combustion appliance.

[0123] The mean value calculation unit is used to divide the current total voltage value of the heating without combustion appliance by the sum of the current preset multiple and 1 to obtain the current voltage mean value of the heating without combustion appliance.

[0124] Optionally, in another embodiment of the battery power display optimization device of the present application, the device further includes:

[0125] The updating unit is used to update the target voltage value in the memory of the main control chip of the heating without burning appliance by using the actual voltage of the current heating without burning appliance.

[0126] Optionally, in a battery power display optimization device according to another embodiment of the present application, the rule unit includes:

[0127] The state detection unit is used to detect whether the current heating without burning appliance is in a charging state.

[0128] The first comparison unit is used to compare whether the current voltage average of the heating without combustion appliance is higher than the actual voltage of the heating without combustion appliance determined last time when it is detected that the heating without combustion appliance is currently in a charging state.

[0129] The second comparison unit is used to compare whether the current voltage average of the heating without combustion appliance is lower than the actual voltage of the heating without combustion appliance determined last time when it is detected that the current heating without combustion appliance is not in a charging state.

[0130] A result determination unit is used to determine that the current voltage average value of the heating without combustion appliance complies with the unidirectional change rule of the charging and discharging voltage values ​​when the first comparison unit compares that the current voltage average value of the heating without combustion appliance is higher than the actual voltage of the heating without combustion appliance determined last time, or when the second comparison unit compares that the current voltage average value of the heating without combustion appliance is lower than the actual voltage of the heating without combustion appliance determined last time.

[0131] Optionally, in a battery power display optimization device according to another embodiment of the present application, a power display unit includes:

[0132] The pressure difference calculation unit is used to calculate the difference between the actual voltage of the current heating without burning appliance and a preset minimum threshold value to obtain the current voltage difference value.

[0133] The power calculation unit is used to calculate the percentage of the current voltage difference and the maximum voltage difference to obtain the current power percentage of the heating without burning appliance. The maximum voltage difference is the difference between the preset maximum threshold and the preset minimum threshold.

[0134] A display unit is used to display the current power percentage of the heat-not-burn appliance.

[0135] It should be noted that the device provided in the above embodiment of the present application may specifically be a heating-without-combustion device. The specific working process of each unit provided in the above embodiment may refer to the corresponding steps in the above method embodiment, and will not be repeated here.

[0136] Another embodiment of the present application provides an electronic device, such as Figure 6 As shown, including:

[0137] Memory 601 and processor 602 .

[0138] The memory 601 is used to store programs.

[0139] The processor 602 is used to execute a program. When the program is executed, it is specifically used to implement the battery power display optimization method provided in any one of the above embodiments.

[0140] Another embodiment of the present application provides a computer storage medium for storing a computer program. When the computer program is executed by a processor, it is used to implement the battery power display optimization method provided in any of the above embodiments.

[0141] Computer storage media includes permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.

[0142] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may 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.

[0143] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A battery power display optimization method, characterized in that: include: At every preset interval, the voltage of the current heating-not-burning appliance is collected; Calculating the average of the value of the preset multiple of the actual voltage of the heating without burning appliance determined last time and the current voltage of the heating without burning appliance to obtain the current voltage average of the heating without burning appliance; Determining whether the current voltage average value of the heating without burning appliance complies with the unidirectional change rule of the charging and discharging voltage value; If it is determined that the current voltage average value of the heating without combustion appliance meets the one-way change rule of the charging and discharging voltage value, the current voltage average value of the heating without combustion appliance is determined as the actual voltage of the heating without combustion appliance at present; If it is determined that the current voltage average value of the heating without combustion appliance does not conform to the unidirectional change rule of the charging and discharging voltage value, the actual voltage of the heating without combustion appliance determined last time is determined as the current actual voltage of the heating without combustion appliance; The actual voltage of the heating without burning appliance is used to determine and display the current power of the heating without burning appliance.

2. The method according to claim 1, characterized in that The calculating the average value between the value of the preset multiple of the actual voltage of the heating without burning appliance determined last time and the current voltage of the heating without burning appliance to obtain the current voltage average value of the heating without burning appliance includes: Reading the target voltage value stored in the main control chip of the heating without burning appliance to obtain the actual voltage of the heating without burning appliance determined last time; Determining the current preset multiple according to the current working state of the heating without burning appliance; Calculate the sum of the product of the actual voltage of the heating without burning appliance determined last time and the current preset multiple and the current voltage of the heating without burning appliance to obtain the current total voltage value of the heating without burning appliance; The current total voltage value of the heating without burning appliance is divided by the sum of the current preset multiple and 1 to obtain the current voltage average value of the heating without burning appliance.

3. The method according to claim 2, characterized in that After determining and displaying the current power of the heating without burning appliance by using the actual voltage of the heating without burning appliance, the method further includes: The target voltage value in the memory of the main control chip of the heating without burning appliance is updated by using the actual voltage of the heating without burning appliance at present.

4. The method according to claim 1, characterized in that: The determining whether the current voltage average value of the heating without burning device complies with the unidirectional change rule of the charging and discharging voltage value includes: Detecting whether the heat-not-burn device is currently in a charging state; If it is detected that the heating without burning appliance is currently in a charging state, comparing whether the current voltage average of the heating without burning appliance is higher than the actual voltage of the heating without burning appliance determined last time; If the comparison shows that the current voltage average value of the heating without combustion appliance is higher than the actual voltage of the heating without combustion appliance determined last time, it is determined that the current voltage average value of the heating without combustion appliance complies with the unidirectional change rule of the charging and discharging voltage value; If it is detected that the heating without burning appliance is not in a charging state, comparing whether the current voltage average of the heating without burning appliance is lower than the actual voltage of the heating without burning appliance determined last time; If the comparison shows that the current voltage average of the heating without combustion appliance is lower than the actual voltage of the heating without combustion appliance determined last time, it is determined that the current voltage average of the heating without combustion appliance complies with the unidirectional change rule of the charging and discharging voltage value.

5. The method according to claim 1, characterized in that The method of using the actual voltage of the heating without burning appliance to determine and display the current power of the heating without burning appliance comprises: Calculating the difference between the actual voltage of the heating without burning appliance and a preset minimum threshold value to obtain a current voltage difference value; Calculate the percentage of the current voltage difference and the maximum voltage difference to obtain the current power percentage of the heating without burning appliance; wherein the maximum voltage difference is the difference between the preset maximum threshold and the preset minimum threshold; The current battery percentage of the heat-not-burn appliance is displayed.

6. A battery power display optimization device, characterized in that: include: A collection unit, used for collecting the current voltage of the heating-not-burning appliance at every preset interval; A filtering processing unit, used for calculating the average value between the value of the preset multiple of the actual voltage of the heating without burning appliance determined last time and the current voltage of the heating without burning appliance, to obtain the current voltage average value of the heating without burning appliance; A rule judgment unit, used to judge whether the current voltage average value of the heating without burning appliance complies with the unidirectional change rule of the charging and discharging voltage value; A first voltage determination unit is used to determine the current voltage average value of the heating without combustion appliance as the actual voltage of the heating without combustion appliance when it is determined that the current voltage average value of the heating without combustion appliance meets the unidirectional change rule of the charging and discharging voltage value; A second voltage determination unit is used to determine the actual voltage of the heating without combustion appliance determined last time as the actual voltage of the heating without combustion appliance at present when it is determined that the current voltage average value of the heating without combustion appliance does not meet the unidirectional change rule of the charging and discharging voltage value; The power display unit is used to determine and display the current power of the heating without burning appliance by using the actual voltage of the heating without burning appliance at present.

7. The device according to claim 6, characterized in that The filtering processing unit comprises: A reading unit, used for reading the target voltage value stored in the main control chip of the heating without burning appliance, and obtaining the actual voltage of the heating without burning appliance determined last time; A multiple determination unit, used for determining the current preset multiple according to the current working state of the heating without burning appliance; A summing unit, used for calculating the sum of the product of the actual voltage of the heating without burning appliance determined last time multiplied by the current preset multiple and the current voltage of the heating without burning appliance, to obtain the current total voltage value of the heating without burning appliance; The mean value calculation unit is used to divide the current total voltage value of the heating without combustion appliance by the sum of the current preset multiple and 1 to obtain the current voltage mean value of the heating without combustion appliance.

8. The device according to claim 7, characterized in that Also includes: An updating unit is used to update the target voltage value in the memory of the main control chip of the heating without burning appliance by using the actual voltage of the heating without burning appliance at present.

9. An electronic device, characterized in that: include: Memory and processor; Wherein, the memory is used to store programs; The processor is used to execute the program, and when the program is executed, it is specifically used to implement the battery power display optimization method as described in any one of claims 1 to 5.

10. A computer storage medium, characterized in that: Used to store a computer program, which, when executed by a processor, is used to implement the battery power display optimization method as described in any one of claims 1 to 5.