Method and device for displaying battery charge amount, electrical terminal and storage medium
The method addresses the low accuracy of conventional battery charge meters by calculating and displaying high-precision energy amounts based on updated energy and change speed measurements, enhancing user experience and reducing system power consumption and costs.
Patent Information
- Application Number
- JP2024500349
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2021-08-23
- Filing Date
- 2022-05-27
- Publication Date
- 2025-04-03
- Estimated Expiration
- 2042-05-27
AI Technical Summary
Conventional battery charge meters provide low accuracy, making it difficult for users to perceive rapid changes in battery charge levels and charging speeds, and high-precision meters increase system power consumption and manufacturing costs.
A method for displaying battery charge power that involves starting battery charging, obtaining and updating energy amount and change speed measurements, and calculating and displaying high-precision energy amounts based on these measurements, while adjusting the display accuracy according to the charging power level.
This method allows for a high-precision display of battery charge levels with low-precision remaining meters, improving user experience by enabling timely perception of battery charge changes and reducing system power consumption and manufacturing costs.
Smart Images

Figure 0007656770000001 
Figure 0007656770000002 
Figure 0007656770000003
Abstract
Description
[Technical field]
[0001] This application is filed based on a Chinese patent application bearing application number 202110968002.X and filing date on August 23, 2021, and claims priority to the Chinese patent application, the entire contents of which are hereby incorporated by reference into this application.
[0002] The present application relates to the technical field of electronic devices, and more particularly to a method and device for displaying the charged power of a battery, an electric terminal, and a storage medium thereof. [Background technology]
[0003] Batteries are widely used as power sources for electrical appliances such as mobile phones, tablet computers, laptops, and electric vehicles. With the development of fast charging technology, the charging speed of these electrical appliances is becoming faster and faster. However, the hardware devices of the conventional mainstream fuel gauges can usually only provide power data with an accuracy of 1%. Due to the low accuracy of the power amount of the conventional fuel gauges, it is difficult for users to recognize the rapid change in the amount of power during charging, and it is difficult for them to feel the difference in the charging speed. In the case of conventional high-precision fuel gauges, the fuel gauge itself can provide high-precision power data, but in such high-precision fuel gauges, the software of the electrical appliance needs to read the power amount data frequently and display it on the user interface, and the interaction between the user interface and the fuel gauge hardware device is very frequent, resulting in high system power consumption and even poor system performance. Such high-precision fuel gauges are expensive and require the support of new hardware devices for electrical appliances, which significantly increases the manufacturing cost of electrical appliances. Summary of the Invention [Problem to be solved by the invention]
[0004] The following is a summary of the subject matter described in detail herein, which is not intended to limit the scope of protection of the claims.
[0005] The embodiments of the present application provide a method for displaying the charged power of a battery, and an apparatus, an electric terminal, and a storage medium thereof. [Means for solving the problem]
[0006] In one aspect, an embodiment of the present application provides a method for indicating a charge capacity of a battery, the method comprising: initiating charging of the battery; obtaining a first measured power amount and a first rate of change of the power amount, and setting the first rate of change of the power amount as a current rate of change of the power amount; calculating and displaying a first amount of power based on the first measured amount of power and the current rate of change of the amount of power, the first amount of power having a higher accuracy than the first measured amount of power; When a predetermined update period is reached, determining whether charging is terminated; If charging is not completed, acquiring a second measured amount of power, and calculating and displaying a second amount of power based on the second measured amount of power and the current rate of change in the amount of power, the accuracy of the second amount of power being higher than the accuracy of the second measured amount of power; updating the current rate of change of the amount of power based on the second amount of power and the second measured amount of power to obtain a second rate of change of the amount of power; The method includes a step of acquiring a first measured power amount and a first rate of change of power by setting the second rate of change of power as the current rate of change of power, and returning to the step of setting the first rate of change of power as the current rate of change of power.
[0007] Furthermore, after the step of starting charging of the battery, the method further includes a step of detecting a charging power of the battery, and if the charging power is less than or equal to a predetermined power, acquiring and displaying a third measured amount of power until charging is terminated, wherein the accuracy of the first amount of power and the second amount of power is higher than the accuracy of the third measured amount of power.
[0008] Furthermore, the method further includes a step of stopping the display of the amount of charging energy or displaying completion of charging when charging is completed.
[0009] Further, the step of acquiring the first rate of change of the amount of power includes the steps of acquiring a charging voltage and a charging current at a first time corresponding to the first measured amount of power, and determining the first rate of change of the amount of power based on the charging voltage and the charging current.
[0010] Furthermore, the step of calculating and displaying the first amount of power based on the first measured amount of power and the current rate of change of the amount of power includes the steps of acquiring a first time corresponding to the first measured amount of power, acquiring a display time of the first amount of power, calculating a first time interval between the display time and the first time, and calculating the first amount of power based on the first measured amount of power, the current rate of change of the amount of power, and the first time interval.
[0011] Furthermore, the step of calculating and displaying a second amount of power based on the second measured amount of power and the current rate of change of the amount of power includes the steps of acquiring a first time corresponding to the first measured amount of power, acquiring a second time corresponding to the second measured amount of power, calculating a second time interval between the first time and the second time, and calculating the second amount of power based on the second measured amount of power, the current rate of change of the amount of power and the second time interval.
[0012] Further, the step of updating the current rate of change of the amount of power based on the second amount of power and the second measured amount of power to obtain the second rate of change of the amount of power includes the step of decreasing the current rate of change of the amount of power to obtain the second rate of change of the amount of power when a difference between the second amount of power and the second measured amount of power is greater than a predetermined threshold, and the step of increasing the current rate of change of the amount of power to obtain the second rate of change of the amount of power when a difference between the second measured amount of power and the second amount of power is greater than a predetermined threshold, wherein the predetermined threshold is a positive number.
[0013] In another aspect, embodiments of the present application further provide an apparatus for indicating a charge capacity of a battery, the apparatus comprising: an initiation module configured to initiate charging of the battery; a first acquisition module configured to acquire a first measured power amount and a first rate of change of the power amount, and set the first rate of change of the power amount as a current rate of change of the power amount; a first calculation and display module configured to calculate and display a first amount of power based on the first measured amount of power and the current rate of change of the amount of power, the first calculation and display module having a higher accuracy than the first measured amount of power; a determination module configured to determine whether charging is terminated when a predetermined update period is reached; a second acquisition module configured to acquire a second measured amount of power if charging is not terminated; a second calculation and display module configured to calculate and display a second amount of power based on the second measured amount of power and the current rate of change of the amount of power, the second amount of power having a higher accuracy than the second measured amount of power; an update module configured to update the current rate of change of the amount of power based on the second amount of power and the second measured amount of power to obtain a second rate of change of the amount of power; a feedback module configured to take the second power amount change rate as the current power amount change rate and feed back the current power amount change rate to the first acquisition module.
[0014] In another aspect, an embodiment of the present application further provides an electronic terminal, the electronic terminal including a battery, a power management module, a display module, one or more processors, a memory, and one or more computer programs, the one or more computer programs being stored in the memory, the one or more computer programs including instructions that, when executed by the device, cause the device to perform the display method.
[0015] In another aspect, an embodiment of the present application further provides a storage medium having a processor-executable program stored thereon, the processor-executable program being configured to perform the display method when executed by a processor. [Brief description of the drawings]
[0016] [Figure 1] 4 is a flowchart of a method for displaying the amount of charged power of a battery in an embodiment of the present application. [Diagram 2] FIG. 2 is a schematic diagram of hardware devices related to battery charging in an embodiment of the present application. [Diagram 3] FIG. 4 is a diagram showing the display effect of low-precision power amount in an embodiment of the present application. [Figure 4] FIG. 4 is a diagram showing the display effect of high-precision power consumption in an embodiment of the present application. [Diagram 5] FIG. 4 is a schematic diagram showing the change over time in the power amount display in an embodiment of the present application. [Figure 6] FIG. 2 is a structural schematic diagram of a display device for displaying the charge energy of a battery in an embodiment of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0017] In order to make the objectives, technical solutions and advantages of the present application more clearly comprehensible, the embodiments of the present application are described in detail below with reference to the drawings, in which the embodiments and features of the embodiments of the present application may be arbitrarily combined with each other without contradiction.
[0018] In order to make those skilled in the art better understand the aspects of the present application, the technical solutions in the embodiments of the present application are described below clearly and completely with reference to the drawings in the embodiments of the present application, but it is obvious that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present application without creative labor shall fall within the scope of protection of the present application.
[0019] The terms "first", "second", "third", "fourth", etc. in the specification and claims of this application, as well as in the drawings, are intended to distinguish different objects, rather than to describe a particular order. Furthermore, the terms "comprise" and "have", as well as variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally further include steps or units that are not listed, or may optionally further include other steps or units that are inherent to these processes, methods, products, or apparatus.
[0020] Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described with reference to the embodiment may be included in at least one embodiment of the present application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor does it mean that the embodiments are mutually exclusive of each other, separate or alternative embodiments. The embodiments described herein may be combined with other embodiments.
[0021] In the related art, batteries are widely used as power sources for electrical products such as mobile phones, tablet computers, notebook computers, and electric vehicles, and with the development of fast charging technology, the charging speed of these electrical products is becoming faster and faster. However, the hardware devices of the conventional mainstream fuel gauges can usually only provide power data with an accuracy of 1%. Because the power accuracy of the mainstream fuel gauges in the conventional technology is low, it is difficult for users to recognize the rapid change in power during charging, and it is difficult for users to feel the difference in charging speed. For example, a mobile phone terminal can charge the battery power from 0 to 100% in 40 minutes, which is equivalent to charging 0.04% per second. Because the power accuracy of the conventional low-precision fuel gauge is only 1%, the mobile phone terminal can only display the remaining power of 1%, 11%, and 37%. In this case, the user can only recognize the change in power amount of 1% after about 24 seconds. However, since users usually do not wait 24 seconds in the charging interface, it is difficult for users to feel the change in power amount when plugging in the charger. Similarly, from the perspective of recognizing the difference in charging speed, one mobile phone terminal with a fast charging speed takes 40 minutes to charge the battery power from 0 to 100%, and the power increases by about 1% every 24 seconds, while the other mobile phone terminal with a slow charging speed takes 60 minutes to charge the battery power from 0 to 100%, and the power increases by about 1% every 36 seconds. For these two mobile phones, a user who stays on the charging display interface for less than 24 seconds cannot feel the difference in the charging speed of the two mobile phones. If the power accuracy displayed on the mobile phone terminal can reach 1 / 10000, the mobile phone terminal can display the remaining power of 1.12%, 11.25%, and 37.86%. Similarly, when charging the battery power from 0 to 100% in 40 minutes, the user can visually see that the remaining power of the mobile phone terminal increases by about 4 points in 1 second when plugging in the charger, for example, from 0.05% to 0.09%, or the user can visually see that the remaining power of the mobile phone terminal increases by about 80 points in 20 seconds. High-precision power display allows users to more intuitively feel the difference in charging speeds.On the other hand, in the case of a conventional high-precision fuel gauge, the fuel gauge itself can provide high-precision energy data, but such a high-precision fuel gauge requires the software of the electrical appliance to read the energy data frequently and display it on the user interface, and the interaction between the user interface and the fuel gauge hardware device is very frequent, resulting in high system power consumption and even poor system performance. Such a high-precision fuel gauge is costly and requires the support of new hardware devices of the electrical appliance, which significantly increases the manufacturing cost of the electrical appliance.
[0022] In view of this situation, the present embodiment provides a method and device for displaying the charging energy of a battery, an electric terminal, and a storage medium thereof. Charging of the battery is started, a first measured amount of energy and a first rate of change in the amount of energy are acquired at a first time, the first rate of change in the amount of energy is set as a current rate of change in the amount of energy, and the first amount of energy is calculated and displayed based on the first measured amount of energy and the current rate of change in the amount of energy, and the accuracy of the first amount of energy is higher than that of the first measured amount of energy. This allows a low-accuracy fuel gauge to display a highly accurate amount of energy. When a predetermined update period is reached, it is determined whether charging is completed, and if charging is not completed, a second measured amount of energy at a second time is acquired, and the second amount of energy is calculated and displayed based on the second measured amount of energy and the current rate of change in the amount of energy, and the accuracy of the second amount of energy is higher than that of the second measured amount of energy. and updating the current power amount change rate according to the second power amount and the second measured power amount, obtaining a second power amount change rate, calculating and displaying a first power amount based on the first measured power amount and the current power amount change rate with the second power amount change rate as the current power amount change rate, and returning to the step of: periodically updating the current power amount change rate to prevent a difference between the displayed power amount and the measured power amount value of the fuel gauge from being too large, which is favorable to displaying an accurate high-precision power amount value in real time, which is favorable to a user's timely grasp of the battery power amount and its change, thereby improving the user experience.
[0023] In the embodiment of the present application, as shown in FIG. 1, the method for displaying the amount of charged power of a battery includes the following steps S1 to S7.
[0024] Step S1: Battery charging begins.
[0025] Step S2: A first measured power amount and a first rate of change in power amount are obtained, and the first rate of change in power amount is set as the current rate of change in power amount.
[0026] Step S3: Calculate and display a first amount of power based on the first measured amount of power and the current rate of change in the amount of power, and the first amount of power has a higher accuracy than the accuracy of the first measured amount of power.
[0027] Step S4: When a predetermined update period is reached, it is determined whether or not charging is completed.
[0028] Step S5: If charging is not completed, obtain a second measured amount of power at a second time, calculate and display a second amount of power based on the second measured amount of power and the current rate of change of the amount of power, and the accuracy of the second amount of power is higher than the accuracy of the second measured amount of power.
[0029] Step S6: Update the current power amount change rate based on the second power amount and the second measured power amount to obtain a second power amount change rate.
[0030] Step S7: The second power amount change rate is set as the current power amount change rate, and the process returns to step S2.
[0031] As shown in FIG. 2, the hardware configuration according to the embodiment of the present application mainly includes a power source, a charging plug, a charging cable, and a terminal. The power source may be a normal 220V household power source, or a 380V dedicated power source and charging pile used in electric vehicles. The charging plug and the charging cable may be separate, or may be combined and called a charger. The terminal includes various electric terminals that can be charged, such as mobile phones, tablet computers, electric scooters, and electric vehicles. In step S1, starting charging the battery may be to connect the power source and the terminal using the charging plug and the charging cable to start charging the battery of the terminal. The circuit structure shown in FIG. 2 is not limited to the present application, and may include more or less components than those shown, combine some components, or arrange different components.
[0032] In addition, in an embodiment of the present application, after the start of charging the battery, the method for displaying the charging power of the battery further includes a step of detecting the charging power of the battery, and if the charging power is equal to or less than a predetermined power, acquiring and displaying a third measured power amount until the charging is completed, and the accuracy of the first and second power amounts is higher than the accuracy of the third measured power amount. Detecting the charging power of the battery may be monitoring the operating power of the charger. Whether the charger meets the predetermined power standard of the present application may be determined based on the type information of the charger and the output capability information of the charger. In an embodiment of a mobile phone project of the present application, if a charger is detected to support the PPS (Programmable Power Supply) programmable power supply protocol issued by the USB-IF organization and to have a maximum output of 11V / 5A or more, it is determined to be a high-power charger. If the charging power is less than 55W, it is determined to be not a high-power charger, and in this case, it is not necessary to display the high-precision power amount, and it is sufficient to display it based on the measurement result of the low-precision fuel gauge. In addition, as shown in FIG. 3, when the charging power is equal to or lower than the predetermined power, the third measured power amount is acquired and displayed until the charging is completed, and the accuracy of the first and second power amounts is higher than that of the third measured power amount. Specifically, when the charging power does not meet the standard of the high-power charger, there is no need to display the high-precision power amount, and when the charging power of the battery is smaller than the predetermined power, the display accuracy of the three power amounts of the battery remaining amount indication, charging display, and charging notification on the terminal display is up to a percentile of 37% or the like. In another embodiment of the electric vehicle of the present application, when the charging power source is detected to be a 380V DC power source, it is determined to be a high-power charger, and otherwise it is determined to be not a high-power charger. In short, the high-power standard may be adjusted according to the actual situation of the power source and the terminal. The predetermined power standard of the high power may be set according to the specific situation, and specifically, when the terminal to be charged is different, the predetermined power selected correspondingly is different. The setting of the predetermined power described in the embodiment of the present application is illustrative.
[0033] In step S2, the first measured power amount and the first power amount change rate are obtained, and the first power amount change rate is set as the current power amount change rate. In the embodiment of the present application, for example, a fuel gauge with a low accuracy of up to percentile is used to measure the first measured power amount, which is the remaining amount of the terminal, and the charging voltage and charging current at the first time corresponding to the first measured power amount are obtained, and the first power amount change rate is determined based on the charging voltage and charging current. Specifically, the charging voltage and charging current at the first time corresponding to the first measured power amount are obtained, and the first power amount change rate is calculated accordingly. The calculation of the first power amount change rate mainly uses the capacity information of the battery, and the actual charging voltage and charging current information. The first power amount change rate is represented by V and can be identified by the following function:
[0034] V = f(FC,U,I,delta)
[0035] In the formula, FC represents the battery capacity, and the larger the battery capacity, the higher the unit capacity and the slower the charging speed. U represents the charging voltage, and the higher the charging voltage under the same conditions, the faster the speed. I represents the charging current, and the higher the current under the same conditions, the faster the speed. The value of Delta is a correction parameter for the charging speed, which is used to adjust the charging speed and avoid the difference with the low-precision fuel gauge value being too large. After one update period, if the low-precision power amount is smaller than the high-precision calculated remaining amount value and the difference with the high-precision calculated remaining amount value exceeds a predetermined threshold, delta is positive, indicating that the first power amount change rate V needs to be increased. If the low-precision power amount exceeds the high-precision calculated remaining amount value and the difference with the high-precision calculated remaining amount value exceeds a predetermined threshold, delta is negative, indicating that the first power amount change rate V needs to be decreased. After plugging in the charger and connecting the terminal to the power source to start charging, the initial charging speed and Delta (correction parameter) are determined based on the charging voltage and charging current using a lookup table method. In this step, the first measured power amount measured by the fuel gauge and the calculated first power amount change rate are obtained, and the calculated first power amount change rate is set as the current power amount change rate in the first update period. Thus, the high-precision power amount displayed on the display module of the terminal can be calculated based on the first measured power amount and the current power amount change rate. The high-precision power amount is a power amount with a higher accuracy than the power amount measured by the fuel gauge. If the power amount measured by the fuel gauge is 37%, the high-precision power amount is at least 37.2%. If the accuracy is on the order of 1 / 10000, two decimal places such as 0.01% can be displayed, for example, as shown in FIG. 4, the high-precision power amount is 37.26%. The standard of high-precision display may be set according to specific circumstances. Specifically, when the measurement accuracy of the actual fuel gauge is different, the corresponding high-precision display standard is also different, and it is only necessary to satisfy that the calculated high-precision display power amount is higher than the accuracy of the power amount measured by the fuel gauge. The low-precision power amount measured by the fuel gauge of 37% and the high-precision indicated power amount of 37.2% or 37.26% described in the embodiment of the present application are merely illustrative.
[0036] In step S3, a first power amount is calculated and displayed based on the first measured power amount and the current power amount change rate, and the accuracy of the first power amount is higher than that of the first measured power amount. As shown in FIG. 5, a first power amount change rate V1 of the battery at the first time t1 may be obtained as the current power amount change rate. A first power amount L2 is determined based on the first measured power amount L1, the first power amount change rate v1, and a first time interval (t2-t1) between the current time t2 and the first time t1. Specifically, the first power amount L2 may be calculated by the formula L2=L1+V1×(t2-t1). Through this step, a high-precision power amount can be calculated based on the low-precision power amount and the change rate of the power amount measured by the fuel gauge, and displayed on the display module of the terminal. As a result, when the accuracy of the actual fuel gauge is low, a high-precision power amount display can be realized well, and the charging speed can be well presented, particularly in the case of a terminal project with a fast charging speed, to improve the user experience.
[0037] In step S4, when the predetermined update period is reached, it is determined whether charging is terminated. The predetermined update period may be a period in which the low-precision power amount of the fuel gauge needs to be read again, and this period is relatively long compared to the refresh period of the display module interface of the terminal. In the case of an electrical product such as a mobile phone, a tablet computer, and a notebook computer, the display module may be a built-in screen. In the case of an electrical product such as an electric vehicle, the display module may be a display such as a specially installed Nixie tube. For example, the display module interface of the terminal is refreshed every 50 milliseconds, but the period in which the low-precision power amount of the fuel gauge needs to be read may be 10 seconds, that is, the predetermined update period may be 10 seconds. Because the reading of the fuel gauge consumes more power than the terminal and the refresh rate of the display module interface of the terminal is relatively fast, the increase in the power amount before the predetermined update can be obtained only by calculating the low-precision power amount measured by the fuel gauge and the current power amount change rate, etc. When the predetermined update period is reached, charging is terminated, and in this case, the display of the power amount is stopped or charging completion is displayed. Here, there are two conditions for charging termination, one is to stop charging by unplugging the charger from the mobile phone, and the other is full charge. When either of the two conditions is met, the charging process is terminated. The refresh period and the predetermined update period of the display module interface of the terminal may be set according to specific circumstances. Specifically, different terminals to be charged, etc., will have different correspondingly selected refresh periods and update periods. The display module interface of the terminal described in the embodiment of the present application being refreshed every 50 milliseconds and the predetermined update period being 10 seconds are merely illustrative.
[0038] In step S5, if charging is not completed, when a predetermined update period is reached, the second measured power amount L3 of the fuel gauge is acquired again, and a highly accurate second power amount is calculated and displayed based on the second measured power amount and the current power amount change rate. The step of calculating and displaying the second power amount based on the second measured power amount and the current power amount change rate includes the steps of acquiring a first time t1 corresponding to the first measured power amount, acquiring a second time t3 corresponding to the second measured power amount, calculating a second time interval (t3-t1) between the first time and the second time, and calculating the second power amount L4=L3+V1×(t2-t1) based on the second measured power amount L3, the current power amount change rate V1, and the second time interval (t3-t1). Even after the update period is reached, the second power amount is calculated using the first power amount change rate acquired in step S2, i.e., before updating the current power amount change rate, the power amount is calculated using the previously acquired power amount change rate and displayed in real time.
[0039] In step S6, the current power amount change rate is updated based on the second power amount and the second measured power amount to obtain the second power amount change rate. If the difference between the second power amount and the second measured power amount is greater than a predetermined threshold, the current power amount change rate is decreased to obtain the second power amount change rate. If the difference between the second measured power amount and the second power amount is greater than a predetermined threshold, the current power amount change rate is increased to obtain the second power amount change rate. Here, the predetermined threshold is a positive number.
[0040] In one specific embodiment, the second power amount change rate V2 is calculated using the following scheme: After plugging in the charger to connect the terminal to the power source and starting charging, the first power amount change rate V1 and Delta (correction parameter) of charging may be determined using a lookup table method based on the charging voltage and charging current. Then, after each update period, the charging rate is adjusted based on the difference between the second power amount L4, which is the high-precision power amount calculated in real time, and the second measured power amount L3, which is the low-precision power amount measured by the fuel gauge, and the formula of the second power amount change after adjustment is as follows:
[0041] V2=V1+(L4 / 100-L3)*Delta.
[0042] For example, when plugging in the charger, the low-precision power amount read by the fuel gauge is 20%, and it is determined based on the charging voltage and current that the initial speed is 500 / ms and Delta is 300, in this case, the high-precision power amount after 500 ms is 20.01%, V2=500+(2001 / 100-20)*300=500. After reaching a certain time, if the high-precision power amount is 4011 and the low-precision power amount is 41, V2=500+(4011 / 100-41)*300=800. That is, the high-precision power amount is lagging behind the actual power amount, and in this case, the charging speed needs to be increased.
[0043] In step S7, the second power amount change rate is taken as the current power amount change rate, and the process returns to step S2. When returning to step S3, the second measured power amount measured when the second time of the predetermined update period is reached may be taken as the first measured power amount after the return, and the current power amount change rate after the update (i.e., the second power amount change rate) may be taken as the first power amount change rate. This is repeated until charging is completed. There are two conditions for charging completion, one is to stop charging by unplugging the charger from the mobile phone, and the other is full charge. When either of the two conditions is met, the charging process is completed. According to the technical solution of the present application, when the accuracy of the actual remaining fuel gauge is low, a highly accurate power amount display can be well realized. Especially in the case of a terminal project with a fast charging speed, the charging speed can be well presented, improving the user experience.
[0044] As shown in Fig. 6, an embodiment of the present application further provides an apparatus for displaying the charge energy of a battery, which includes: a starting module 101, a first obtaining module 102, a first calculating and displaying module 103, a judging module 104, a second obtaining module 105, a second calculating and displaying module 106, an updating module 107 and a feedback module 108.
[0045] The initiation module 101 is configured to initiate charging of the battery.
[0046] The first obtaining module 102 is configured to obtain a first measured power amount and a first rate of change of the power amount, and set the first rate of change of the power amount as a current rate of change of the power amount.
[0047] The first calculation and display module 103 is configured to calculate and display a first amount of power based on the first measured amount of power and the current rate of change of the amount of power, the accuracy of the first amount of power being higher than the accuracy of the first measured amount of power.
[0048] The determination module 104 is configured to determine whether charging is terminated when a predetermined update period is reached.
[0049] The second obtaining module 105 is configured to obtain a second measured amount of power if charging is not terminated.
[0050] The second calculation and display module 106 is configured to calculate and display a second amount of power based on the second measured amount of power and the current rate of change of the amount of power, the accuracy of the second amount of power being higher than the accuracy of the second measured amount of power.
[0051] The update module 107 is configured to update the current rate of change of the amount of power based on the second amount of power and the second measured amount of power to obtain a second rate of change of the amount of power.
[0052] The feedback module 108 is configured to take the second power amount change rate as the current power amount change rate and feed back the current power amount change rate to the first acquisition module.
[0053] Similarly, the contents of the above method embodiments are all applicable to this device embodiment. The functions specifically realized by this device embodiment are the same as those of the above method embodiments, and the beneficial effects achieved by the same methods are also the same as those of the above method embodiments.
[0054] An embodiment of the present application further provides an electric terminal, the electric terminal including a battery, a power management module, a display module, one or more processors, a memory, and one or more computer programs, the one or more computer programs being stored in the memory, the one or more computer programs including instructions, which when executed by the electric terminal, cause the electric terminal to perform the display method.
[0055] Similarly, the contents of the above method embodiments can all be applied to the present embodiment of the electrical terminal. The functions specifically realized by the present embodiment of the electrical terminal are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those of the above method embodiments.
[0056] In an embodiment of the present application, a storage medium is further provided, the storage medium storing a processor-executable program, which, when executed by a processor, performs the method for displaying the charged energy of a battery in the embodiment of the present application, and the storage medium can achieve the same technical effect as the method for displaying the charged energy of a battery in the embodiment of the present application.
[0057] The beneficial effects of the present application are as follows: A method for displaying the charging energy of a battery in an embodiment of the present application obtains a first measured energy amount and a first energy amount change rate at a first time, sets the first energy amount change rate as a current energy amount change rate, calculates and displays a first energy amount based on the first measured energy amount and the current energy amount change rate, and the accuracy of the first energy amount is higher than that of the first measured energy amount, thereby realizing a highly accurate displayed energy amount with a low-accuracy fuel gauge. Meanwhile, in order to prevent the difference between the displayed energy amount and the measured energy amount value of the fuel gauge from being too large, the current energy amount change rate is periodically updated, which is advantageous for displaying an accurate and highly accurate energy amount value in real time, which is advantageous for a user to timely grasp the energy amount of the battery and its change, thereby improving the user experience.
[0058] Unless otherwise specified, when a feature is described as being "fixed" or "connected" to another feature, it may be directly fixed or connected to the other feature, or indirectly fixed or connected to the other feature. Furthermore, descriptions such as up, down, left, and right used in this disclosure are merely related to the relative positions of the components of the present disclosure in the accompanying drawings. The singular forms "a kind," "the," and "the" used in this disclosure are also intended to include the plural forms unless the context clearly indicates otherwise. Furthermore, all technical and scientific terms used in this embodiment have the same meaning as commonly understood by those skilled in the art, unless otherwise defined. The terms used in the description of this embodiment are used only to describe certain embodiments and are not used to limit the present application. The term "and / or" used in this embodiment includes any combination of one or more of the associated listed items.
[0059] In addition, in the present disclosure, various elements may be described using terms such as first, second, third, etc., but these elements should not be limited to these terms. These terms are used only to distinguish between elements of the same type. For example, a first element may be referred to as a second element, and similarly, a second element may be referred to as a first element, without departing from the scope of the present disclosure. The use of any and all examples or exemplary expressions (such as "examples," "for example," etc.) according to this embodiment is intended only to better describe the embodiments of the present application, and does not limit the scope of the present application unless otherwise required.
[0060] The embodiments of the present application may be implemented or performed by computer hardware, a combination of hardware and software, or by computer instructions stored in a non-transitory computer-readable memory. The methods may be implemented in a computer program using standard programming techniques, including a non-transitory computer-readable storage medium having a computer program disposed thereon, the storage medium thus configured enabling a computer to operate in a specific, predefined manner according to the methods and figures described in the specific embodiments. Each program may be implemented in a high-level process or object-oriented programming language to communicate with a computer system. However, if desired, the programs may also be implemented in assembly or machine language. In either case, the language may be a compiled or interpreted language. Furthermore, the programs may operate on application-specific integrated circuits programmed for this purpose.
[0061] Moreover, the operations of the processes described in this embodiment may be performed in any suitable order unless otherwise indicated in this embodiment or otherwise clearly contradicted by context. The processes described in this embodiment (or variations and / or combinations thereof) may be performed under the control of one or more computer systems having executable instructions arranged therein, and may be implemented in hardware or a combination thereof as code (e.g., executable instructions, one or more computer programs, or one or more applications) commonly executed by one or more processors. The computer programs include a number of instructions executable by one or more processors.
[0062] Furthermore, the method may be implemented by operably connecting to any type of suitable computing platform, including but not limited to personal computers, minicomputers, mainframes, workstations, network or distributed computing environments, individual or integrated computing platforms, or in communication with a charged particle tool or other imaging device. Each aspect of the present application may be implemented in a non-transitory storage medium or machine-readable code stored in a computer, whether removable or integrated in a computing platform, such as a hard disk, an optically readable and / or writable storage medium, RAM, ROM, etc., that is readable by a programmable computer. The storage medium or device, when read by a computer, may be used to configure and operate the computer to perform the processes described herein. Furthermore, the machine-readable code or a portion thereof may be transmitted over a wired or wireless network. The disclosure described in the present embodiment includes these and other different types of non-transitory computer-readable storage media, if such media includes instructions or programs for performing the above steps in conjunction with a microprocessor or other data processor. The present application also includes the computer itself when programmed according to the methods and techniques described herein.
[0063] The computer program may be applied to input data to perform the functions described herein, and may transform the input data to generate output data that is stored in non-volatile memory. The output information may also be applied to one or more output devices, such as a display. In a preferred embodiment of the present application, the transformed data represents physical and tangible objects, including a particular visual depiction of the physical and tangible objects generated on a display.
[0064] The above are only some examples of the present application, and the present application is not limited to the above embodiments, and any amendments, equivalent replacements, improvements, etc. made within the spirit and principles of the present application as long as they achieve the technical effects of the present application by the same means shall be included in the scope of protection of the present application. Within the scope of protection of the present application, the technical solutions and / or embodiments may have various modifications and changes.
Claims
1. A method for indicating a charging energy amount of a battery, comprising: initiating charging of the battery; obtaining a first measured power amount and a first rate of change of the power amount, and setting the first rate of change of the power amount as a current rate of change of the power amount; calculating and displaying a first amount of power based on the first measured amount of power and the current rate of change of the amount of power, the first amount of power having a higher accuracy than the first measured amount of power; When a predetermined update period is reached, determining whether charging is terminated; if charging is not completed, acquiring a second measured amount of power, and calculating and displaying a second amount of power based on the second measured amount of power and the current rate of change in the amount of power, the accuracy of the second amount of power being higher than the accuracy of the second measured amount of power; updating the current rate of change of the amount of power based on the second amount of power and the second measured amount of power to obtain a second rate of change of the amount of power; a step of acquiring a first measured electric energy and a first rate of change of electric energy by setting the second rate of change of electric energy as the current rate of change of electric energy, and returning to the step of setting the first rate of change of electric energy as the current rate of change of electric energy.
2. After the step of initiating charging of the battery, The method for displaying the charging energy of a battery as described in claim 1, further comprising a step of detecting the charging power of the battery, and if the charging power is equal to or less than a predetermined power, acquiring and displaying a third measured amount of power until charging is completed, wherein the accuracy of the first amount of power and the second amount of power is higher than the accuracy of the third measured amount of power.
3. 2. The method for displaying the amount of charged energy of a battery according to claim 1, further comprising the step of stopping the display of the amount of charged energy or displaying a message indicating that charging is complete when charging is completed.
4. The step of acquiring the first power amount change rate includes: obtaining a charging voltage and a charging current at a first time corresponding to the first measured amount of power; 2. The method for indicating the amount of charged energy of a battery according to claim 1, further comprising the step of: determining the first rate of change in the amount of charged energy based on the charging voltage and the charging current.
5. The step of calculating and displaying the first amount of power based on the first measured amount of power and the current rate of change of the amount of power includes: obtaining a first time corresponding to the first measured amount of power; obtaining a display time of the first power amount; calculating a first time interval between the display time and the first time; 2. The method of claim 1, further comprising: calculating the first amount of power based on the first measured amount of power, the current rate of change of the amount of power, and the first time interval.
6. The step of calculating and displaying a second amount of power based on the second measured amount of power and the current rate of change of the amount of power may further include: obtaining a first time corresponding to the first measured amount of power; obtaining a second time corresponding to the second measured amount of power; calculating a second time interval between the first time and the second time; 2. The method of claim 1, further comprising: calculating the second amount of power based on the second measured amount of power, the current rate of change of the amount of power, and the second time interval.
7. updating the current rate of change of the amount of power based on the second amount of power and the second measured amount of power; The step of obtaining a second rate of change of power comprises: decreasing the current rate of change of the amount of power when a difference between the second amount of power and the second measured amount of power is greater than a predetermined threshold to obtain the second rate of change of the amount of power; and increasing the current rate of change of the power amount to obtain the second rate of change of the power amount when a difference between the second measured power amount and the second power amount is greater than a predetermined threshold. The method for indicating the charged energy of a battery according to claim 1 , wherein the predetermined threshold is a positive number.
8. An indication device for indicating the charge amount of a battery, an initiation module configured to initiate charging of the battery; a first acquisition module configured to acquire a first measured power amount and a first rate of change of the power amount, and set the first rate of change of the power amount as a current rate of change of the power amount; a first calculation and display module configured to calculate and display a first amount of power based on the first measured amount of power and the current rate of change of the amount of power, the first amount of power having a higher accuracy than the first measured amount of power; a determination module configured to determine whether charging is terminated when a predetermined update period is reached; a second acquisition module configured to acquire a second measured amount of power if charging is not terminated; a second calculation and display module configured to calculate and display a second amount of power based on the second measured amount of power and the current rate of change of the amount of power, the second amount of power having a higher accuracy than the second measured amount of power; an update module configured to update the current rate of change of the amount of power based on the second amount of power and the second measured amount of power to obtain a second rate of change of the amount of power; and a feedback module configured to feed back the current rate of change in the amount of change in the amount of change in the second amount of power to the first acquisition module as the current rate of change in the amount of change in the amount of change in the second amount of power.
9. An electrical terminal comprising: An electrical terminal comprising a battery, a power management module, a display module, one or more processors, a memory, and one or more computer programs, the one or more computer programs being stored in the memory, the one or more computer programs comprising instructions, which when executed by the electrical terminal, cause the electrical terminal to perform the method for displaying the amount of charging power of a battery described in any one of claims 1 to 7.
10. A storage medium having a processor-executable program stored therein, the processor-executable program being configured to execute the method for displaying the amount of charge energy of a battery according to any one of claims 1 to 7, when executed by a processor.
Citation Information
Patent Citations
Power display method and device, electronic equipment and computer storage medium
CN110704279A
Electric quantity display method and device, storage medium and electronic equipment
CN112492107A
Battery charging control device
JP1996180906A
Vehicle door control system, on-vehicle door controller, portable terminal, program for on-vehicle door controller, program for portable terminal, charged state notification system, charged state monitoring apparatus, and program for charged state monitoring apparatus
JP2011045231A
Power transmitting apparatus, power receiving apparatus, and methods thereof
US20150364946A1