CN116094088A - Electric quantity display method and device - Google Patents

Electric quantity display method and device Download PDF

Info

Publication number
CN116094088A
CN116094088A CN202211581958.5A CN202211581958A CN116094088A CN 116094088 A CN116094088 A CN 116094088A CN 202211581958 A CN202211581958 A CN 202211581958A CN 116094088 A CN116094088 A CN 116094088A
Authority
CN
China
Prior art keywords
electric quantity
battery
determining
duration
battery display
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211581958.5A
Other languages
Chinese (zh)
Inventor
陈春林
郭黎
尹值坤
孟凡迪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Sushi Technology Co Ltd
Original Assignee
Shenzhen Sushi Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Sushi Technology Co Ltd filed Critical Shenzhen Sushi Technology Co Ltd
Priority to CN202211581958.5A priority Critical patent/CN116094088A/en
Publication of CN116094088A publication Critical patent/CN116094088A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0047Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with monitoring or indicating devices or circuits
    • H02J7/0048Detection of remaining charge capacity or state of charge [SOC]
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
    • G01R31/371Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC] with remote indication, e.g. on external chargers
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
    • G01R31/382Arrangements for monitoring battery or accumulator variables, e.g. SoC
    • G01R31/3835Arrangements for monitoring battery or accumulator variables, e.g. SoC involving only voltage measurements
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0047Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with monitoring or indicating devices or circuits

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The invention discloses an electric quantity display method and device. Wherein the method comprises the following steps: determining the actual battery power and the initial battery display power of the target equipment; determining a first duration from the initial battery display electric quantity to a first preset battery display electric quantity according to the actual battery electric quantity; determining a second time period from the initial battery display electric quantity to the target battery display electric quantity according to the initial battery display electric quantity and the first time period; and adjusting the battery display electric quantity of the target equipment according to the second time length. The invention solves the technical problems of jump of the display value of the electric quantity, inaccurate electric quantity display and overlong display time of the unit electric quantity in the related technology when the electric quantity is displayed.

Description

Electric quantity display method and device
Technical Field
The invention relates to the field of batteries, in particular to an electric quantity display method and device.
Background
At present, a shaver, a hair clipper, a charger and the like all use lithium batteries for power supply, the requirement of timely and accurately displaying the electric quantity of the lithium batteries is very wide in generation and activity, but in the related technology, the current percentage corresponding to the battery voltage is determined and displayed mainly according to the battery charging and discharging curve, however, the problems that the electric quantity display jump is caused by different battery voltages of loads when the lithium batteries are discharged, the electric quantity display is inaccurate due to the fact that the battery voltage is low when the lithium batteries are charged, and the unit electric quantity display time is overlong due to the fact that the voltage change of the batteries is small when the platform voltage are used are solved, and stable and reliable electric quantity display cannot be guaranteed.
Disclosure of Invention
The embodiment of the invention provides an electric quantity display method and device, which at least solve one of the technical problems of jump of a display value of electric quantity, inaccurate electric quantity display and overlong display time of unit electric quantity in the related technology when the electric quantity is displayed.
According to an aspect of an embodiment of the present invention, there is provided an electricity quantity display method including: determining the actual battery power and the initial battery display power of the target equipment; determining a first duration from the initial battery display electric quantity to a first preset battery display electric quantity according to the actual battery electric quantity; determining a second time period when the battery display electric quantity of the target device changes from the initial battery display electric quantity to the target battery display electric quantity according to the initial battery display electric quantity and the first time period; and adjusting the battery display electric quantity of the target equipment according to the second duration.
Optionally, the determining the actual battery power of the target device includes: determining a real-time battery voltage of the target device; and determining the actual electric quantity of the battery of the target equipment according to the real-time battery voltage.
Optionally, the determining the actual battery power of the target device according to the real-time battery voltage includes: determining an electric quantity change state of the target equipment; determining a target curve corresponding to the target equipment in the electric quantity change state, wherein the target curve is a relation curve between the battery voltage of the target equipment and the actual battery electric quantity; and determining the actual electric quantity of the battery of the target equipment from the target curve according to the real-time battery voltage.
Optionally, the determining, according to the actual battery power, a first duration for changing the battery power of the target device from the initial battery power to a first predetermined battery power includes: determining a third duration and a first difference between the first preset battery display electric quantity and the actual battery electric quantity; and determining the first duration from the initial battery display electric quantity to the first preset battery display electric quantity according to the first difference value and the third duration.
Optionally, the determining the third duration includes: determining a second predetermined battery display level of the target device; and determining the third time period, wherein the third time period is a time period when the battery display electric quantity of the target device changes from the second preset battery display electric quantity to the first preset battery display electric quantity.
Optionally, the determining the third duration includes: determining a rate of change of the electrical quantity of the target device; and determining the third duration according to the electric quantity change rate.
Optionally, the determining the third duration includes: acquiring a pre-stored time length and a fourth time length, wherein the pre-stored time length is a time length from the change of the battery display electric quantity of the target device from the second preset battery display electric quantity to the first preset battery display electric quantity, and the fourth time length is a time length from the change of the battery display electric quantity of the target device from the second preset battery display electric quantity to the first preset battery display electric quantity, which is determined according to an electric quantity change rate; determining a second difference between the pre-stored time length and the fourth time length; and determining the third time length according to the second difference value, the fourth time length and the pre-stored time length.
Optionally, the determining the third duration according to the second difference, the fourth duration and the pre-stored duration includes at least one of the following: determining the pre-stored duration as the third duration under the condition that the second difference value is larger than a preset threshold value; determining the fourth duration as the third duration and updating the pre-stored duration when the second difference value is less than or equal to the predetermined threshold value; and under the condition that the second difference value is smaller than or equal to the preset threshold value, determining the average value duration of the fourth duration and the preset duration as the third duration, and updating the pre-stored duration.
Optionally, the determining, according to the initial battery display power and the first duration, a second duration for changing the battery display power of the target device from the initial battery display power to the target battery display power includes: determining a third difference between the first predetermined battery display power and the initial battery display power; and determining the second time period from the initial battery display electric quantity to the target battery display electric quantity according to the first time period and the third difference value.
According to an aspect of an embodiment of the present invention, there is provided an electric quantity display device including: the first determining module is used for determining the actual battery power and the initial battery display power of the target equipment; the second determining module is used for determining a first duration from the initial battery display electric quantity to a first preset battery display electric quantity according to the actual battery electric quantity; the third determining module is used for determining a second duration from the initial battery display electric quantity to the target battery display electric quantity of the target device according to the initial battery display electric quantity and the first duration; and the adjusting module is used for adjusting the battery display electric quantity of the target equipment according to the second duration.
In the embodiment of the invention, the battery actual electric quantity and the initial battery display electric quantity of the target equipment are determined firstly, then the first time length from the initial battery display electric quantity to the first preset battery display electric quantity is determined according to the battery actual electric quantity, then the second time length from the initial battery display electric quantity to the target battery display electric quantity is determined according to the initial battery display electric quantity and the first time length, and then the battery display electric quantity of the target equipment is adjusted according to the second time length, so that the purpose of stable electric quantity display change is achieved. The battery display electric quantity of the target equipment is regulated according to the second time length, the second time length is obtained according to the actual electric quantity of the battery, the initial battery display electric quantity and the first time length, and as known, the electric quantity change is related to the electric quantity and the time length, and the battery display electric quantity of the target equipment can be obtained according to time stable conversion instead of direct battery voltage of the target equipment, so that the stability and the accuracy of the battery display electric quantity change can be ensured in the change process of the battery display electric quantity of the target equipment, and the technical problems of jump of the display value of the electric quantity, inaccurate electric quantity display and overlong display time of the unit electric quantity in the related technology are solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
FIG. 1 is a flow chart of a power display method according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method provided by an alternative embodiment of the present invention;
fig. 3 is a block diagram of a power display device according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
According to an embodiment of the present invention, there is provided an embodiment of a power display method, it being noted that the steps shown in the flowcharts of the drawings may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that herein.
Fig. 1 is a flowchart of a power display method according to an embodiment of the present invention, as shown in fig. 1, the method includes the steps of:
step S102, determining the actual battery power and the initial battery display power of the target equipment;
step S104, determining a first duration from the initial battery display electric quantity to a first preset battery display electric quantity according to the actual battery electric quantity;
step S106, determining a second time period from the initial battery display electric quantity to the target battery display electric quantity according to the initial battery display electric quantity and the first time period;
step S108, according to the second duration, the battery display electric quantity of the target device is adjusted.
Through the steps, the actual battery electric quantity and the initial battery display electric quantity of the target equipment are determined, then the first time length from the initial battery display electric quantity to the first preset battery display electric quantity is determined according to the actual battery electric quantity, then the second time length from the initial battery display electric quantity to the target battery display electric quantity is determined according to the initial battery display electric quantity and the first time length, and then the battery display electric quantity of the target equipment is adjusted according to the second time length, so that the purpose of stable electric quantity display change is achieved. The battery display electric quantity of the target equipment is regulated according to the second time length, the second time length is obtained according to the actual electric quantity of the battery, the initial battery display electric quantity and the first time length, and as known, the electric quantity change is related to the electric quantity and the time length, and the battery display electric quantity of the target equipment can be obtained according to time stable conversion instead of direct battery voltage of the target equipment, so that the stability and the accuracy of the battery display electric quantity change can be ensured in the change process of the battery display electric quantity of the target equipment, and the technical problems of jump of the display value of the electric quantity, inaccurate electric quantity display and overlong display time of the unit electric quantity in the related technology are solved.
It should be noted that, in the present application, the actual battery power of the target device is expressed in terms of percentage from the initial battery display power. The actual battery level of the target device may be different from the initial battery display level. Because the effect achieved by the present application is to make the power continuously change, there may be a different situation between the actual power of the battery of the target device and the initial battery display power.
For example, when the real-time battery voltage of the target device jumps or is in a virtual high state, the determined actual battery power of the target device may jump or be in a virtual high state, but the actual battery power of the target device is not directly displayed on the target device, so that the jump or the virtual high of the display voltage of the target battery of the target device can be effectively prevented, and the stability of the change of the display voltage of the target battery is ensured.
As an alternative embodiment, the actual battery level of the target device is determined along with the initial battery display level. There are many ways to determine the actual battery power of the target device, for example, the actual battery power may be obtained by using the battery voltage. Since the battery power can be determined according to the battery voltage, the real-time battery voltage of the target device is collected, so that the actual battery power of the target device can be determined, specifically, the following steps can be adopted: and determining the real-time battery voltage of the target equipment, and determining the actual battery electric quantity of the target equipment according to the real-time battery voltage. The actual battery electric quantity and the initial battery display electric quantity are determined, so that the initial battery display electric quantity can be adjusted according to the actual battery electric quantity.
As an alternative embodiment, when determining the actual battery power of the target device according to the real-time battery voltage, the actual battery power of the target device may also be determined in various manners, for example, by a relationship between the battery voltage and the actual battery power, by a relationship table between the battery voltage and the actual battery power, or the like. Taking the determination of the relationship between the battery voltage and the actual battery charge as an example, the following steps may be taken: and determining the electric quantity change state of the target equipment, wherein the electric quantity change state comprises an electric quantity increase state, namely a charging state, and an electric quantity decrease state, namely a discharging state. And determining a target curve corresponding to the target equipment in the state of electric quantity change, wherein the target curve is a relation curve between the battery voltage of the target equipment and the actual battery electric quantity, and determining the actual battery electric quantity of the target equipment from the target curve according to the real-time battery voltage. Because the relation between the battery voltage of the target device and the actual battery power is mostly nonlinear, the actual battery power is determined in a relation curve mode, so that the determined actual battery power is more accurate.
As an alternative embodiment, the first duration of time for which the battery display power of the target device is changed from the initial battery display power to the first predetermined battery display power is determined according to the actual battery power. The first predetermined battery display power is represented as the power which is finally reached by the actual power of the battery and the initial battery display power. For example, in the process of charging the target device, the first preset battery display electric quantity is full electric quantity; in the discharging process of the target equipment, the first preset battery display electric quantity is zero electric quantity. The first duration is a duration when the battery display power of the target device changes from the initial battery display power to the full power in the process of charging the target device, and the first duration is a duration when the battery display power of the target device changes from the initial battery display power to the zero power in the process of discharging the target device. By determining the first time length, subsequent data can be conveniently processed.
Alternatively, there are many ways to determine the first duration. For example, a third duration is determined, and a first difference between the first predetermined battery display power and the actual battery power is indicated as the power to be charged or discharged. And determining a first time period when the battery display electric quantity of the target device changes from the initial battery display electric quantity to the first preset battery display electric quantity according to the first difference value and the third time period. For example, a percentage of the first difference value to the total displayed power may be determined, and a first time period for which the battery displayed power of the target device changes from the initial battery displayed power to the first predetermined battery displayed power may be determined based on the percentage and the third time period. The third duration is a duration from the change of the battery display power of the target device from the second preset battery display power to the first preset battery display power. For example, the length of time that the charge has reached from one limit state to the other is displayed for the battery. The time length of the electric quantity to be charged or discharged is determined through the electric quantity to be charged or discharged and the time length of the total electric quantity to be charged or discharged. By determining the first time length in this way, it can be ensured that the first time length is accurate.
Alternatively, there are many ways to determine the third time period. For example, a second predetermined battery display level of the target device may be determined, and a third duration may be determined, where the third duration is a duration in which the battery display level of the target device changes from the second predetermined battery display level to the first predetermined battery display level. The third time length acquired by the method can be stored data, and can be directly called, so that the method is more convenient and quick. For another example, a rate of change of the power of the target device may be determined, and the third duration may be determined based on the rate of change of the power. By the method, the third time length is obtained through the electric quantity change rate, so that the third time length is more accurate. Different excellent effects can be achieved by different ways of determining the third duration. The method and the device can be used for carrying out custom setting according to actual application and scenes, so that the scenes of the application are widened, and the applicability and flexibility of the application are improved.
As an optional embodiment, when determining the third duration, for example, a pre-stored duration and a fourth duration may be obtained, where the pre-stored duration is a duration in which the battery display power of the target device in the history changes from the second predetermined battery display power to the first predetermined battery display power, that is, a duration in which the battery display power in the history reaches from one limit state to another limit state, and the fourth duration is a duration in which the battery display power of the target device determined according to the power change rate changes from the second predetermined battery display power to the first predetermined battery display power, that is, a duration in which the battery display power determined according to the power change rate reaches from one limit state to another limit state; determining a second difference value between the pre-stored time length and the fourth time length; according to the second difference value, the fourth time length and the pre-stored time length, the third time length can be accurately determined.
As an alternative embodiment, the third duration is determined according to the second difference, the fourth duration and the pre-stored duration, and the method includes at least one of the following: under the condition that the second difference value is larger than a preset threshold value, namely under the condition that the fourth time length is larger than the pre-stored time length, determining that the pre-stored time length is the third time length, in this case, indicating that the fourth time length determined according to the electric quantity change rate is larger than the pre-stored time length, determining that the fourth time length is inaccurate, and determining that the pre-stored time length is the third time length can avoid the influence of the inaccurate fourth time length on the third time length and can ensure that the third time length is accurate; under the condition that the second difference value is smaller than or equal to a preset threshold value, namely under the condition that the fourth time length is smaller than the pre-stored time length, determining that the fourth time length is the third time length, and updating the pre-stored time length, wherein under the condition that the fourth time length determined according to the electric quantity change rate is accurate, determining that the fourth time length is the third time length, updating the third time length by using the newly determined and accurate fourth time length, timely obtaining the accurate third time length, and adapting to the condition that the battery is aged along with the service time and the total charge and discharge time is changed; under the condition that the second difference value is smaller than or equal to a preset threshold value, namely under the condition that the difference between the fourth time length and the preset time length is smaller, determining that the average value time length of the fourth time length and the preset time length is the third time length, and updating the preset time length, under the condition that the fourth time length determined according to the electric quantity change rate is accurate, determining that the average value time length of the fourth time length and the preset time length is the third time length, updating the third time length by using the newly determined and accurate fourth time length and the preset time length, and obtaining the third time length is accurate and can adapt to the condition that the battery is aged along with the service time and the total charge and discharge time is changed.
As an alternative embodiment, when determining, according to the initial battery display power and the first time period, that the battery display power of the target device changes from the initial battery display power to the second time period of the target battery display power, the following manner may be further adopted: and determining a third difference value between the first preset battery display electric quantity and the initial battery display electric quantity, namely, a difference value between the battery display electric quantity and the electric quantity which is finally about to arrive. And determining a second time period from the initial battery display electric quantity to the target battery display electric quantity according to the first time period and the third difference value. The target battery display electric quantity can be obtained according to a fixed value, and can be set in a self-defining mode. For example, when the initial battery display power is 80%, the power may be set to 1% as a fixed value, that is, the power may be set to 81% as a fixed value when the fixed value is 1% with respect to the initial display power change, that is, 81%, or the like. The battery display electric quantity of the target device can be adjusted according to the second time length by setting the target battery display electric quantity and determining the second time length from the initial battery display electric quantity to the target battery display electric quantity.
It should be noted that after the second duration is determined, there may be multiple processing manners for displaying the electric quantity of the battery of the target device. For example, the battery display power of the target device may be continuously adjusted according to the second duration until the battery display power is changed from the initial battery display power to the first predetermined battery display power, so that the calculation amount in the whole process can be reduced. For another example, after the battery display power of the target device changes from the initial battery display power to the target battery display power, the above process is repeated again, and a new second duration is redetermined, that is, after the first duration from 80% to 81% is determined, the above steps are repeated, and a new first duration from 81% to 82% is determined, so that the duration can be ensured to be accurate. For another example, a predetermined threshold may be set, where the predetermined threshold may be a time or an electric quantity, and after the predetermined threshold is reached, the above process is repeated again to redefine a new second duration, so that a reasonable trade-off between the calculated amount and the accuracy can be made.
Based on the foregoing embodiments and optional embodiments, an optional implementation is provided, and is specifically described below.
In the method, the total charging process time from 0% to 100% and the total discharging process time from 100% to 0% of the razor are 100s, the initial display electric quantity is 81%, the actual electric quantity of the battery is 80%, and the target battery display electric quantity can be the electric quantity obtained according to a fixed value of 1% for example.
FIG. 2 is a flow chart of a method provided by an alternative embodiment of the present invention, as shown in FIG. 2, and described below:
s1, determining the battery voltage of a battery in a shaver;
s2, detecting whether a charging signal exists or not at regular time, and determining the charging and discharging states of the shaver;
s2.1, in the case of the charging state, performing charging management, and executing the following operations:
s2.1.1, determining a target curve of a battery in the shaver in a charged state, wherein the target curve is a relation curve of battery voltage of the battery in the shaver and actual battery electric quantity;
s2.1.2, determining initial display electric quantity of the shaver, and determining actual electric quantity of the shaver from a target curve according to battery voltage;
s2.1.3, determining the total charging time length from the initial display electric quantity to the full electric quantity of the display electric quantity of the shaver according to the actual electric quantity of the shaver, wherein the total charging time length is the time length required by charging from the actual electric quantity to the full electric quantity;
s2.1.4, determining a first charging time length required to be consumed for every increase of a fixed value in the process of displaying electric quantity of the shaver from initial electric quantity to full electric quantity according to the total charging time length;
s2.1.5, judging whether a first charging duration required by the constant charging value electric quantity is reached or not;
s2.1.6, after the first charging period, adjusting the display electric quantity of the shaver from the initial display electric quantity to the target battery display electric quantity.
S2.2, in the case of a discharge state, performing discharge management, and executing the following operations:
s2.2.1, determining a target curve of the battery in the shaver in a discharging state, wherein the target curve is a relation curve of the battery voltage of the battery in the shaver and the actual battery electric quantity;
s2.2.2, determining initial display electric quantity of the shaver, and determining actual electric quantity of the shaver from a target curve according to battery voltage;
s2.2.3, determining the total discharge time length from the initial display electric quantity to the zero electric quantity of the display electric quantity of the shaver according to the actual electric quantity of the shaver, wherein the total discharge time length is the time length required by discharging the actual electric quantity to the zero electric quantity;
s2.2.4, determining a first discharge duration required to be consumed for reducing a fixed value in the process of displaying electric quantity of the shaver from initial electric quantity to zero electric quantity according to the total discharge duration;
s2.2.5, judging whether a first discharge duration required by the discharge fixed value electric quantity is reached or not;
s2.2.6, after the first discharging time period elapses, the displayed electric quantity of the shaver is adjusted from the initial displayed electric quantity to the target battery displayed electric quantity.
By way of example, a detailed description of the flow chart in FIG. 2 is as follows:
s1, determining the battery voltage of a battery in a shaver;
s2, detecting whether a charging signal exists or not at regular time, and determining the charging and discharging states of the shaver;
s2.1, in the case of the charging state, performing charging management, and executing the following operations:
s2.1.1, determining a target curve of a battery in the shaver in a charged state, wherein the target curve is a relation curve of battery voltage of the battery in the shaver and actual battery electric quantity;
s2.1.2, determining that the initial display electric quantity of the shaver is 81%, and determining that the actual electric quantity of the shaver is 80% from a target curve according to the battery voltage;
s2.1.3, determining that the total charging time length from 81% of the initial display electric quantity to 100% of the full electric quantity of the shaver is 20s according to 80% of the actual electric quantity of the shaver, wherein the total charging time length is the time length required for 80% of the actual electric quantity to 100% of the full electric quantity;
it should be noted that the calculation process is: (100-80) 100/100=20, the total charging duration can be determined to be 20s.
S2.1.4 according to the total charging duration of 20s, determining that a first charging duration required to be consumed for 1% increase (corresponding to the constant value above) of 1% in the process of determining that the displayed electric quantity of the shaver is from 81% of the initial displayed electric quantity to 100% of the full electric quantity is about 1.05s;
it should be noted that the calculation process is: 20/(100-81) 100/100=1.05 …, the first charge duration required to increase by 1% is determined to be about 1.05s.
S2.1.5, judging whether a first charging duration required for charging 1% of the electric quantity is reached or not;
s2.1.6 after 1.05s, the displayed charge of the razor was adjusted from 81% to 82% of the initial displayed charge (corresponding to the target battery displayed charge above).
S2.2, in the case of a discharge state, performing discharge management, and executing the following operations:
s2.2.1, determining a target curve of the battery in the shaver in a discharging state, wherein the target curve is a relation curve of the battery voltage of the battery in the shaver and the actual battery electric quantity;
s2.2.2, determining that the initial display electric quantity of the shaver is 81%, and determining that the actual electric quantity of the shaver is 80% from a target curve according to the battery voltage;
s2.2.3, determining that the total discharge time length of the display electric quantity of the shaver from 81% of the initial display electric quantity to 0% of the zero electric quantity is 80s according to the actual electric quantity 80% of the shaver, wherein the total discharge time length is the time length required for 80% of the actual electric quantity to 0% of the zero electric quantity;
it should be noted that the calculation process is: (80-0) 100/100=80%, and the total discharge duration is 80s.
S2.2.4, according to the total discharge duration 80s, determining that the first discharge duration required to be consumed for reducing the display electric quantity of the shaver by 1% (corresponding to the constant value above) is about 0.98s in the process of from 81% of the initial display electric quantity to 0% of the zero electric quantity;
it should be noted that the calculation process is: 80/(81-0) 100/100=0.98 …, the first discharge time period required for 1% reduction can be determined to be about 0.98s.
S2.2.5, judging whether a first discharge duration required by the discharge fixed value electric quantity is reached or not;
s2.2.6 after 0.98s, the displayed charge of the razor was adjusted from 81% to 80% of the initial displayed charge (corresponding to the target battery displayed charge above).
By the above alternative embodiments, at least the following advantages may be achieved: the battery voltage and time combination mode can be used for managing and displaying the battery electric quantity, and the problems of electric quantity display jump, inaccurate electric quantity display and overlong unit electric quantity display time are effectively solved.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present invention is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present invention. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present invention.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method of the various embodiments of the present invention.
Example 2
According to an embodiment of the present invention, there is further provided an apparatus for implementing the above power display method, and fig. 3 is a block diagram of a power display apparatus according to an embodiment of the present invention, as shown in fig. 3, where the apparatus includes: the first determination module 302, the second determination module 304, the third determination module 306, and the adjustment module 308 are described in detail below.
A first determining module 302, configured to determine an actual battery power of the target device and an initial battery display power; the second determining module 304 is connected to the first determining module 302, and is configured to determine, according to the actual battery power, a first duration of time when the battery display power of the target device changes from the initial battery display power to the first predetermined battery display power; a third determining module 306, coupled to the second determining module 304, for determining a second time period when the battery display power of the target device changes from the initial battery display power to the target battery display power according to the initial battery display power and the first time period; an adjusting module 308, coupled to the third determining module 306, for adjusting the battery display power of the target device according to the second duration
It should be noted that the first determining module 302, the second determining module 304, the third determining module 306 and the adjusting module 308 correspond to steps S102 to S108 in implementing the power display method, and the plurality of modules are the same as examples and application scenarios implemented by the corresponding steps, but are not limited to those disclosed in the above embodiment 1.
Example 3
According to another aspect of the embodiment of the present invention, there is also provided an electronic device including: a processor; a memory for storing processor-executable instructions, wherein the processor is configured to execute the instructions to implement the power display method of any of the above.
Example 4
According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium, which when executed by a processor of an electronic device, causes the electronic device to perform the power display method of any one of the above.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology content may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of units may be a logic function division, and there may be another division manner in actual implementation, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method of the various embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.

Claims (10)

1. An electric quantity display method, characterized by comprising:
determining the actual battery power and the initial battery display power of the target equipment;
determining a first duration from the initial battery display electric quantity to a first preset battery display electric quantity according to the actual battery electric quantity;
determining a second time period when the battery display electric quantity of the target device changes from the initial battery display electric quantity to the target battery display electric quantity according to the initial battery display electric quantity and the first time period;
and adjusting the battery display electric quantity of the target equipment according to the second duration.
2. The method of claim 1, wherein the determining the actual battery level of the target device comprises:
determining a real-time battery voltage of the target device;
and determining the actual electric quantity of the battery of the target equipment according to the real-time battery voltage.
3. The method of claim 2, wherein said determining said actual battery level of said target device as a function of said real-time battery voltage comprises:
determining an electric quantity change state of the target equipment;
determining a target curve corresponding to the target equipment in the electric quantity change state, wherein the target curve is a relation curve between the battery voltage of the target equipment and the actual battery electric quantity;
and determining the actual electric quantity of the battery of the target equipment from the target curve according to the real-time battery voltage.
4. The method of claim 1, wherein determining a first duration for which the battery display power of the target device changes from the initial battery display power to a first predetermined battery display power based on the battery actual power comprises:
determining a third duration and a first difference between the first preset battery display electric quantity and the actual battery electric quantity;
and determining the first duration from the initial battery display electric quantity to the first preset battery display electric quantity according to the first difference value and the third duration.
5. The method of claim 4, wherein the determining the third time period comprises:
determining a second predetermined battery display level of the target device;
and determining the third time period, wherein the third time period is a time period when the battery display electric quantity of the target device changes from the second preset battery display electric quantity to the first preset battery display electric quantity.
6. The method of claim 4, wherein the determining the third duration comprises:
determining a rate of change of the electrical quantity of the target device;
and determining the third duration according to the electric quantity change rate.
7. The method of claim 5, wherein the determining the third duration comprises:
acquiring a pre-stored time length and a fourth time length, wherein the pre-stored time length is a time length from the change of the battery display electric quantity of the target device from the second preset battery display electric quantity to the first preset battery display electric quantity, and the fourth time length is a time length from the change of the battery display electric quantity of the target device from the second preset battery display electric quantity to the first preset battery display electric quantity, which is determined according to an electric quantity change rate;
determining a second difference between the pre-stored time length and the fourth time length;
and determining the third time length according to the second difference value, the fourth time length and the pre-stored time length.
8. The method of claim 7, wherein said determining said third time period from said second difference value, said fourth time period and said pre-stored time period, comprises at least one of:
determining the pre-stored duration as the third duration under the condition that the second difference value is larger than a preset threshold value;
determining the fourth duration as the third duration and updating the pre-stored duration when the second difference value is less than or equal to the predetermined threshold value;
and under the condition that the second difference value is smaller than or equal to the preset threshold value, determining the average value duration of the fourth duration and the preset duration as the third duration, and updating the pre-stored duration.
9. The method according to any one of claims 1 to 8, wherein determining a second period of time for which the battery display power of the target device changes from the initial battery display power to a target battery display power according to the initial battery display power and the first period of time includes:
determining a third difference between the first predetermined battery display power and the initial battery display power;
and determining the second time period from the initial battery display electric quantity to the target battery display electric quantity according to the first time period and the third difference value.
10. An electric quantity display device, characterized by comprising:
the first determining module is used for determining the actual battery power and the initial battery display power of the target equipment;
the second determining module is used for determining a first duration from the initial battery display electric quantity to a first preset battery display electric quantity according to the actual battery electric quantity;
the third determining module is used for determining a second duration from the initial battery display electric quantity to the target battery display electric quantity of the target device according to the initial battery display electric quantity and the first duration;
and the adjusting module is used for adjusting the battery display electric quantity of the target equipment according to the second duration.
CN202211581958.5A 2022-12-09 2022-12-09 Electric quantity display method and device Pending CN116094088A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211581958.5A CN116094088A (en) 2022-12-09 2022-12-09 Electric quantity display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211581958.5A CN116094088A (en) 2022-12-09 2022-12-09 Electric quantity display method and device

Publications (1)

Publication Number Publication Date
CN116094088A true CN116094088A (en) 2023-05-09

Family

ID=86209301

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211581958.5A Pending CN116094088A (en) 2022-12-09 2022-12-09 Electric quantity display method and device

Country Status (1)

Country Link
CN (1) CN116094088A (en)

Similar Documents

Publication Publication Date Title
US10345382B2 (en) Method and terminal for displaying battery power
CN111751737B (en) Self-discharge current calculation method, device and equipment of power battery and storage medium
CN113030742B (en) Method, device and equipment for estimating battery capacity
CN104301499B (en) Battery capacity of mobile terminal log analysis methodology, device, platform and mobile terminal
CN111781507B (en) SOC value display method and device and energy storage system
CN106249168B (en) A kind of battery curve modification method and device
JP2014025738A (en) Residual capacity estimation device
CN112858938B (en) Electric quantity calculation method and device, storage medium and electronic equipment
EP4283819A1 (en) Storage battery management device, storage battery management method, and program
CN114552617A (en) Charging method, device, equipment and storage medium for user side energy storage system
CN116323288A (en) Method and device for determining display state of charge and battery management chip
CN113595174A (en) Battery management method, device, equipment and server
CN111987719B (en) Method and device for bidding electric vehicle aggregator to participate in frequency modulation
CN111130177B (en) Management method, system and device of BBU
CN112477696A (en) Current control method and device for slow charging
CN114801868A (en) Method, device, equipment and medium for dynamically correcting available power of battery
CN116094088A (en) Electric quantity display method and device
CN112072737A (en) Charging method and device, electronic equipment and computer readable storage medium
CN108983100B (en) Method and device for processing residual electric quantity of battery
CN116811658A (en) Method, system, equipment and medium for determining low-temperature charging compensation time of electric vehicle
CN110707729A (en) Method and device for analyzing multi-region primary frequency modulation condition and storage medium
CN116154896A (en) Battery balance control method and device of energy storage system, terminal and storage medium
US10877101B2 (en) Method for determining parameters of an electrochemical energy store in a computer-aided manner
CN112332484B (en) Battery charging control method and device, storage medium and electronic equipment
CN113352939A (en) Remaining power determination method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination