CN117277497A - Battery power supply management method and system - Google Patents

Battery power supply management method and system Download PDF

Info

Publication number
CN117277497A
CN117277497A CN202311251877.3A CN202311251877A CN117277497A CN 117277497 A CN117277497 A CN 117277497A CN 202311251877 A CN202311251877 A CN 202311251877A CN 117277497 A CN117277497 A CN 117277497A
Authority
CN
China
Prior art keywords
battery
voltage
power supply
installation position
output
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
CN202311251877.3A
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.)
Wuhan Guide Sensmart Tech Co ltd
Original Assignee
Wuhan Guide Sensmart Tech 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 Wuhan Guide Sensmart Tech Co ltd filed Critical Wuhan Guide Sensmart Tech Co ltd
Priority to CN202311251877.3A priority Critical patent/CN117277497A/en
Publication of CN117277497A publication Critical patent/CN117277497A/en
Pending legal-status Critical Current

Links

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/007Regulation of charging or discharging current or voltage
    • H02J7/00712Regulation of charging or discharging current or voltage the cycle being controlled or terminated in response to electric parameters
    • H02J7/007182Regulation of charging or discharging current or voltage the cycle being controlled or terminated in response to electric parameters in response to battery voltage
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/44Methods for charging or discharging
    • H01M10/441Methods for charging or discharging for several batteries or cells simultaneously or sequentially
    • 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
    • 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]
    • 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/34Parallel operation in networks using both storage and other dc sources, e.g. providing buffering
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Manufacturing & Machinery (AREA)
  • Chemical & Material Sciences (AREA)
  • Chemical Kinetics & Catalysis (AREA)
  • Electrochemistry (AREA)
  • General Chemical & Material Sciences (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The invention discloses a battery power supply management method and a system, which comprise the following steps: judging whether a battery is mounted on the current battery mounting position or not and the working state of the mounted battery according to the initial output voltage values of the battery mounting positions acquired at different moments; obtaining the output voltage of each battery mounting position provided with a battery according to the power supply mode detection result and the working state of the battery; comparing the output voltages of different battery installation positions, and controlling the battery installed in the battery installation position corresponding to the maximum value of the output voltages to supply power to the equipment. According to the invention, switching management of the power supply battery can be realized without shutting down the device, and meanwhile, the situation that the electric quantity data is changed variably due to severe change of the output voltage value of the battery installation position is avoided, so that user experience is improved.

Description

Battery power supply management method and system
Technical Field
The invention relates to the field of power management, in particular to a battery power supply management method and system.
Background
In electronic equipment, two external batteries (such as lithium batteries) are commonly adopted for power supply, the processing mode of electric quantity is commonly processed through the inside of the electric quantity meter, software directly obtains the value processed by the electric quantity meter and displays the value, the situation that a plurality of batteries are freely plugged and unplugged and the software directly obtains the electric quantity from an ADC and processes the electric quantity is not supported at the same time, when the electric quantity of the battery is exhausted, the equipment is required to be powered off firstly, then the equipment is powered on again after the new battery is replaced, so that the operation is continued, and when the capacity of the battery per se is small or the power consumption of the whole equipment is high, the operation of replacing the battery is more frequent.
As described above, in the process of replacing the battery, the device needs to be powered off first, at this time, the device cannot continue to work, and meanwhile, because of the influence of factors such as user operation and peripheral working environment, the change of the prompt information of the battery electric quantity is larger, and the prompt information is reflected in that the numerical value of the battery electric quantity is suddenly high or suddenly low, so that the user experience is poor.
Disclosure of Invention
Aiming at the defects of the prior art, the invention provides a battery power supply management method and a system, which can realize the switching management of a power supply battery without shutting down equipment, and simultaneously avoid the situation of unstable change of electric quantity data caused by severe change of an output voltage value of a battery installation position so as to improve user experience.
In order to achieve the above purpose, the present invention provides the following technical solutions:
in one aspect, a battery power management method is provided, which includes the steps of:
judging whether a battery is mounted on the current battery mounting position or not and the working state of the mounted battery according to the initial output voltage values of the battery mounting positions acquired at different moments;
obtaining the output voltage of each battery mounting position provided with a battery according to the power supply mode detection result and the working state of the battery;
comparing the output voltages of different battery installation positions, and controlling the battery installed in the battery installation position corresponding to the maximum value of the output voltages to supply power to the equipment.
Preferably, the battery is positioned adjacent t according to the current battery installation position k-1 Time t k At the moment ofInitial voltage output values LastVs, vs and bit voltage V k And (3) judging whether the battery is installed at the current battery installation position and the working state of the installed battery.
Preferably, the method for obtaining the output voltage of the battery installation position installed by the battery according to the detection result of the power supply mode and the working state of the battery comprises the following steps:
when the power supply mode detection result shows that the device is acquiring power through the USB power supply mode and the battery is in a just-connected state, detecting whether the ripple voltage change value is larger than a voltage fluctuation threshold value, converting an initial voltage output value of a current battery installation position into an approximate load voltage when the ripple voltage change value is smaller than or equal to the voltage fluctuation threshold value for a plurality of times continuously, and taking the approximate load voltage as an output voltage of the current battery installation position.
Preferably, the method for obtaining the output voltage of the battery installation position installed by the battery according to the detection result of the power supply mode and the working state of the battery comprises the following steps:
when the power supply mode detection result shows that the equipment does not acquire power through the USB power supply mode, and the battery is in a just-connected state, detecting whether the ripple voltage change value is larger than a voltage fluctuation threshold value, and converting an initial voltage output value of a current battery installation position into a load voltage when the ripple voltage change value is smaller than or equal to the voltage fluctuation threshold value for a plurality of times continuously, and taking the load voltage as an output voltage of the current battery installation position.
Preferably, the method for obtaining the output voltage of the battery installation position installed by the battery according to the detection result of the power supply mode and the working state of the battery comprises the following steps:
when the power supply mode detection result display equipment does not acquire power through the USB power supply mode and the battery is in a continuous access state, judging whether the battery is a power supply battery or not;
if the initial voltage output value is the historical minimum value, the initial voltage output value of the current battery installation position is taken as the output voltage of the current battery installation position.
Preferably, detecting whether the ripple voltage variation value is greater than or equal to the voltage fluctuation threshold THRES includes the steps of:
s11, at t m Obtaining an initial voltage output value V of a current battery installation position at a moment m At t m Acquiring an initial voltage output value CurVal of a current battery installation position at a time of delta t;
s12, comparing the voltage fluctuation threshold value THRES with t m Time t m At the time of + [ delta ] t, the initial voltage output value V of the current battery mounting position m Comparing CurVal;
if THRES is greater than or equal to abs (CurVal-V) m ) The larger ripple is not considered to be generated, and step S13 is performed;
s13, t m The initial voltage output value CurVal of the current battery installation position at the time of plus delta t is taken as V m And repeating step S11 and the comparison step of the voltage fluctuation threshold THRES and abs (CurVal-Vm), the repetition number cnt=l.
Preferably, the obtaining of the approximate load voltage includes the following steps:
the power supply mode detection result display equipment acquires power through the USB power supply mode, and the comparison results of continuous K times are that THRES is more than or equal to abs (CurVal-V) m ) When the approximate load voltage is obtained according to the formula (1):
approximate load voltage=v k -lifting voltage (1)
Wherein V is k For K consecutive repetitions of step S11, the voltage fluctuation thresholds THRES and abs (CurVal-V m ) At the last repetition of t m The initial voltage output value of the current battery installation position, which is obtained at the time of delta t, is the difference between the no-load voltage and the load voltage, wherein the load voltage is the output voltage of the battery installation position when the battery supplies power to the equipment, and the no-load voltage is the output voltage of the battery installation position when the battery does not supply power to the equipment.
Preferably, the obtaining of the load voltage includes the following steps:
display of detection results in power supply modeThe equipment does not acquire power through a USB power supply mode, and the comparison results of continuous K times are that THRES is more than or equal to abs (CurVal-V) m ) And (3) obtaining the load voltage according to the formula (2):
load voltage=v k (2)
Wherein V is k For K consecutive repetitions of step S11, the voltage fluctuation thresholds THRES and abs (CurVal-V m ) At the last repetition of t m And obtaining the current initial voltage output value of the current battery installation position at the time of the delta t.
Preferably, when the battery is in a continuous access state, judging whether the battery is a power supply battery or not, including the following steps:
comparing the last output voltages of all the battery mounting positions, and determining the battery in the battery mounting position corresponding to the maximum value of the last output voltage as the power supply battery.
In another aspect, there is also provided a battery power management system, including:
a power supply mode detection unit for performing power supply mode detection on the device to confirm whether the device acquires power through the USB power supply mode;
a voltage acquisition unit mounted on the device for acquiring initial output voltage values of the battery mounting positions at different times;
a state detection unit for judging whether the battery is mounted on the current battery mounting position or not and the working state of the mounted battery according to the initial output voltage values of the battery mounting position acquired at different moments;
the output voltage acquisition unit is used for acquiring the output voltage of the battery installation position installed by the battery according to the detection result of the power supply mode and the working state of the battery;
and the power supply control unit is used for comparing the output voltages of the different battery installation positions and controlling the battery installed in the battery installation position corresponding to the maximum value of the output voltages to supply power to the equipment.
Compared with the prior art, the invention has the following beneficial effects:
according to the invention, the switching management of the power supply battery can be completed only by comparing the output voltages of the installed batteries and selecting the battery with the highest output voltage as the power supply battery, and meanwhile, the electric quantity data observed by a user can be displayed as monotone change, such as monotone decrease, so that the situation that the electric quantity data is changed variably due to the severe change of the output voltage value of the battery installation position is avoided, and the user experience is improved.
Drawings
FIG. 1a is a step diagram of a battery power management method according to the present invention;
FIG. 1b is a flowchart illustrating a method for battery management according to the present invention;
FIG. 2 is a diagram showing steps for determining a historical minimum value according to the present invention;
FIG. 3 is a diagram showing the comparison steps of the ripple voltage variation value and the voltage fluctuation threshold value THRES according to the present invention;
fig. 4 is a schematic diagram of a battery power management system according to the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Example 1:
the embodiment provides a battery power supply management method, which is suitable for an external battery power supply system for supplying power to equipment (including infrared electronic products such as an infrared imager) and comprises N external batteries B1 and B2..BN and M battery mounting positions arranged on the equipment, wherein N is less than or equal to M, M, N is a positive integer greater than or equal to 2, one battery mounting position is only used for mounting one battery, after the corresponding number of batteries are mounted on the battery mounting position, the batteries output voltage through the battery mounting positions so as to realize power supply to the equipment, meanwhile, each battery can be separated from the battery mounting positions (the batteries are separated from the equipment, the batteries can comprise lithium batteries, and further, the equipment can be connected with an external power supply through a USB interface so as to supply power to the equipment through the external power supply.
The device is powered by an external battery to be in a battery power supply mode; the USB power supply is connected with an external power supply, and the external power supply is used for supplying power to the equipment to be in a USB power supply mode.
Further, as shown in fig. 1a-1b, the battery power management method includes the following steps:
s1, detecting a power supply mode of equipment so as to confirm whether the equipment acquires power through a USB power supply mode at a time t through a detection result;
for example, in this embodiment, whether the device is connected to an external power supply through a USB interface may be detected in real time through the GPIO pin;
s2, according to the detection result of the power supply mode, at different moments t 0 、t 1 ...t k The obtained initial output voltage value of the battery installation position judges whether the battery is installed in the current battery installation position and the working state of the installed battery; wherein, the initial voltage output value of the battery installation position can be obtained in real time by a voltage obtaining unit (a common digital-to-analog converter) installed on the equipment, t 0 、t 1 ...t k Is continuous time, and the time interval between two adjacent time is the same;
further, as shown in fig. 2, according to the power supply mode detection result and the initial voltage output value of the battery installation position, it is determined whether the battery is installed at the current battery installation position, and the working state of the installed battery, including the following steps:
if the current battery is installed at the adjacent t k-1 Time t k The initial voltage output values LastVs, vs at the time are each greater than or equal to the bit voltage Vk (i.e., t k-1 At the moment, the initial voltage output value LastVs of the current battery installation position is more than or equal to the bit voltage Vk, t k At the moment, the initial voltage output value Vs of the current battery installation position is larger than or equal to the in-place voltage Vk), the battery is considered to be installed at the current battery installation position, and the batteryIn a continuous access state, the continuous access state means that the battery is continuously installed in the battery installation position, and at t k-1 Time t k The battery is not separated from the battery mounting position at any time; further, the in-place voltage vk=residual voltage + +Δv, where Vk is equal to or less than the shutdown voltage of the device, where the residual voltage refers to the maximum voltage remaining at the voltage input end of the battery installation site after the battery is separated from the battery installation site in the operating state of the device, and the value of Δv (in millivolts (mV)) may be adjusted according to the type of the battery, for example, in this embodiment, the range of the value of Δv may be [0mV,100mV];
If the current battery installation position is t k-1 The initial voltage output value LastVs at time is smaller than the bit voltage Vk at t k The initial voltage output value Vs at the time point is greater than or equal to the bit voltage Vk (i.e., t k-1 At the moment, the initial voltage output value LastVs of the current battery installation bit is less than the bit voltage Vk, t k Under the moment, the initial voltage output value Vs of the current battery installation position is larger than or equal to the in-place voltage Vk), the battery is considered to be installed at the current battery installation position and is in a just-connected state, wherein the just-connected state refers to that the battery is at t k Is being mounted to the battery mounting location at the moment;
if the current battery installation position is t k-1 The initial voltage output value LastVs at the moment is greater than or equal to the bit voltage Vk, at t k The initial voltage output value Vs at the time point is smaller than the bit voltage Vk (i.e., t k-1 At the moment, the initial voltage output value LastVs of the current battery installation position is more than or equal to the bit voltage Vk, t k At the moment, the initial voltage output value Vs of the current battery installation position is less than the bit voltage Vk), then the battery in the current battery installation position is considered to be at t k Is taken out at the moment, and the battery is in a just-separated state, wherein the just-separated state refers to the state that the battery is at t k Separating from the battery mounting position at moment;
if the current battery is installed at the adjacent t k-1 Time t k The initial voltage output value Vs, lastVs at the time point are both smaller than the bit voltage Vk (i.e., t k-1 At the moment, the initial voltage output value LastVs of the current battery installation position is less than that of the current battery installation positionBit voltages Vk, t k At a time, the initial voltage output value Vs < the present bit voltage Vk of the present battery mounting bit), the present battery mounting bit is considered to be in a continuously battery-free state, which is at an adjacent t k-1 Time t k At any time, no battery is mounted in the battery mounting position;
s3, obtaining the output voltage Vo of a battery installation position installed by the battery according to a power supply mode detection result and the working state of the battery, wherein the method specifically comprises the following steps of:
(1) When the power supply mode detection result shows t k At the moment, the device acquires electric power through a USB power supply mode, when the battery is in a just-accessed state, whether the ripple voltage change value is larger than a voltage fluctuation threshold value THRES or not is detected, and when the ripple voltage change value is larger than the voltage fluctuation threshold value THRES, the initial voltage output value of the current battery installation position is not processed; if the ripple voltage change values are smaller than or equal to the voltage fluctuation threshold value THRES for a plurality of times continuously, converting an initial voltage output value of the current battery installation position into an approximate load voltage, and taking the approximate load voltage as an output voltage Vo of the current battery installation position;
the ripple generally occurs in the whole process from the beginning of the battery loading into the battery mounting position to the final stable fixing in the battery mounting position, when the ripple voltage change is greater than or equal to the voltage fluctuation threshold value THRES, the larger ripple is considered to occur, and the larger voltage jitter generated by the larger ripple can cause the situation that the voltage acquisition is inaccurate, so that the initial voltage output value Vs is not processed when the larger ripple is confirmed to occur, and the judgment error is reduced;
(2) When the power supply mode detection result shows t k At the moment, the equipment acquires electric power through a USB power supply mode, and when the battery is in a continuous access state, the initial voltage output value Vs of the current battery installation position is not processed;
(3) When the power supply mode detection result shows t k At the moment, the device acquires power through a USB power supply mode, and when the battery is in a just separated state, the output voltage vo=0 of the current battery mounting position;
(4) When power is suppliedMode detection result shows t k At the moment, the equipment acquires power through a USB power supply mode, and when the battery installation position is in a continuous battery-free state, the initial voltage output value Vs of the current battery installation position is not processed;
(5) When the power supply mode detection result shows t k At the moment, the equipment does not acquire electric power through the USB power supply mode, when the battery is in the just-accessed state, whether the ripple voltage change value is larger than a voltage fluctuation threshold value THRES is detected, and when the ripple voltage change value is larger than the voltage fluctuation threshold value THRES, the initial voltage output value of the current battery installation position is not processed; when the ripple voltage change values are smaller than or equal to the voltage fluctuation threshold value THRES for a plurality of times continuously, taking the initial voltage output value of the current battery installation position as a load voltage, and taking the load voltage as the output voltage Vo of the current battery installation position;
(6) When the power supply mode detection result shows t k At the moment, the equipment does not acquire electric power through the USB power supply mode, and when the battery is in a continuous access state, whether the battery is a power supply battery or not is judged;
if the power supply battery is used, judging t k At the moment, if the initial voltage output value Vs of the current battery installation position is the historical minimum value, taking the initial voltage output value Vs of the current battery installation position as the output voltage Vo of the current battery installation position, and updating the historical minimum value into the initial voltage output value Vs of the current battery installation position;
if the power supply battery is not used, the initial voltage output value Vs of the current battery installation position is not processed;
because the voltage acquisition unit has errors in detection, the output voltage value acquired at different moments is variable, and in addition, a high-power-consumption peripheral device is also arranged in the circuit, when the high-power-consumption peripheral device works, the output voltage of the battery installation position is low, and when the high-power-consumption peripheral device does not work, the output voltage of the battery installation position is raised violently; the change of the factors is finally reflected in that the electric quantity data which can be observed by a user is suddenly high or suddenly low, so that the user experience is poor;
therefore, in this embodiment, at different moments, the historical minimum value is taken as the output voltage Vo of the current battery installation position, so that the electric quantity data observed by the user can be displayed as monotone change, such as monotone decrease, so that the situation that the electric quantity data is changed variably due to the severe change of the output voltage value of the battery installation position is avoided, and the user experience is improved;
(7) When the power supply mode detection result shows t k At the moment, the device does not acquire electric power through the USB power supply mode, and when the battery is in a just separated state, the output voltage vo=0 of the current battery installation position;
(8) When the power supply mode detection result shows t k At the moment, the device does not acquire power through the USB power supply mode, and when the battery installation position is in a continuous battery-free state, the initial voltage output value Vs of the current battery installation position is not processed.
Wherein, the non-processing means that the Vo parameter is not generated.
Further, as shown in fig. 3, detecting whether the ripple voltage variation value is greater than or equal to the voltage fluctuation threshold THRES includes the steps of:
s11, at t m Obtaining an initial voltage output value V of a current battery installation position at a moment m At t m The initial voltage output value CurVal of the current battery installation position is obtained at the moment of delta t, wherein the value range of delta t can be [0ms,1000ms](ms is milliseconds), for example, in this embodiment, Δt takes 500ms, so that after Δt delay, initial voltage output value CurVal is obtained to detect whether the current battery voltage is stable;
s12, comparing the voltage fluctuation threshold value THRES with t m Time t m At the time of + [ delta ] t, the initial voltage output value V of the current battery mounting position m Comparing CurVal;
if THRES < abs (CurVal-V) m ) Then it is considered that a larger ripple is generated; wherein, the value range of the voltage fluctuation threshold value THRES can be 10mV,500mV]For example, in the present embodiment, the voltage fluctuation threshold THRES has a value of 300mV; abs (. Cndot.) represents rounding, abs (CurVal-V) m ) Is the ripple voltage variation value;
if THRES is greater than or equal to abs (CurVal-V) m ) The larger ripple is not considered to be generated, and step S13 is performed;
s13, t m The initial voltage output value CurVal of the current battery installation position at the time of plus delta t is taken as V m (i.e. CurVal=V m ) And repeating step S11 and the comparison step of the voltage fluctuation threshold THRES and abs (CurVal-Vm), the repetition number cnt=l (L is a positive integer, and L is not less than 3);
if the repeated result of each time is THRES not less than abs (CurVal-V m ) The larger ripple wave is not generated, and the battery is stably installed in the battery installation position;
s4, repeating the steps S2-S3 to obtain the output voltage Vo of each battery mounting position where the battery is mounted;
and S5, comparing the output voltages Vo of different battery mounting positions, and controlling the battery mounted in the battery mounting position corresponding to the maximum value of the output voltage Vo to supply power to the equipment.
Therefore, in this embodiment, when power supply management is performed on the battery, the device does not need to be powered off first, only the output voltage of the installed battery is compared, the highest output voltage is selected as the power supply battery (other batteries do not need to be taken out), meanwhile, the historical minimum value is used as the output voltage of the current battery installation position, so that the electric quantity data observed by the user can be displayed as monotonous change, such as monotonous decrease, and the situation that the electric quantity data is changed variably due to the severe change of the output voltage value of the battery installation position is avoided, so that user experience is improved.
Example 2:
the present embodiment differs from embodiment 1 only in that when the ripple voltage variation is less than or equal to the voltage fluctuation threshold THRES, the initial voltage output value of the current battery mounting position is converted into an approximate load voltage, and the approximate load voltage is taken as the output voltage Vo of the current battery mounting position, comprising the steps of:
the detection result of the power supply mode shows that the equipment is acquiring power through the USB power supply mode, and the comparison results of K times (K is more than or equal to 2 and less than or equal to L) are allTHRES≥abs(CurVal-V m ) When the approximate load voltage is obtained according to the formula (1), the approximate load voltage conversion process is completed:
approximate load voltage=v k -lifting voltage (1)
Wherein V is k For K consecutive repetitions of step S11, the voltage fluctuation thresholds THRES and abs (CurVal-V m ) At the last repetition of t m Initial voltage output value of current battery installation position obtained at time of + [ delta ] t (namely CurVal=V at the moment) k ) The lifting voltage is the difference between the no-load voltage and the load voltage, the load voltage is the output voltage of the battery installation position when the battery supplies power to the equipment, the no-load voltage is the output voltage of the battery installation position when the battery does not supply power to the equipment, the no-load voltage and the load voltage can be measured through a preset device and step in advance, and the no-load voltage is higher than the load voltage.
When the ripple voltage variation is less than or equal to the voltage fluctuation threshold THRES, converting an initial voltage output value of the current battery mounting bit into a load voltage, and taking the load voltage as an output voltage Vo of the current battery mounting bit, comprising the steps of:
the detection result of the power supply mode shows that the equipment does not acquire power through the USB power supply mode, and the comparison results of the continuous K times (K is less than or equal to L) are THRES is more than or equal to abs (CurVal-V) m ) And (3) obtaining the load voltage according to the formula (2) to finish the load voltage conversion processing:
load voltage=v k (2)
Wherein V is k For K consecutive repetitions of step S11, the voltage fluctuation thresholds THRES and abs (CurVal-V m ) At the last repetition of t m The current initial voltage output value of the current battery installation bit obtained at the time of + [ delta ] t (i.e., curVal=V at this time) k );
And taking the load voltage as the output voltage Vo of the current battery installation position.
Example 3:
the embodiment is different from embodiment 1 or 2 only in that when the battery is in the continuous access state, it is determined whether the battery is a power supply battery, and the method includes the following steps:
comparing the last output voltages Vo1', vo2'. VoN ' of all the battery mounting positions, and determining the battery in the battery mounting position corresponding to the maximum value of the last output voltage as a power supply battery;
for example, the maximum value in the last output voltages Vo1', vo2'. VoN 'is Vo3', the battery B3 of the battery mount position No. 3 corresponding thereto is determined as the power supply battery.
Further, if the battery B3 is determined to be a power supply battery, then it is determined that t k At the moment, if the initial voltage output value Vs of the No. 3 battery installation position is the historical minimum value, taking the initial voltage output value Vs of the No. 3 battery installation position as the output voltage Vo of the current battery installation position, and updating the initial voltage output value Vs of the current battery installation position into a variable of the historical minimum value; the historical minimum value refers toAt t k The initial voltage output value Vs of the current battery installation position obtained at the moment is obtained at different moments t by the voltage obtaining unit 0 、t 1 ...t k The minimum value of all initial voltage output values obtained below, wherein t 0 The time is when the initial voltage output value of the current battery installation position is acquired for the first time through the voltage acquisition unit after the battery is installed at the current battery installation position.
Example 4:
this embodiment provides a battery power management system for implementing the battery power management method of any one of embodiments 1 to 3, as shown in fig. 4, including:
a power supply mode detection unit 1 for performing power supply mode detection on the device to confirm whether the device obtains power through the USB power supply mode at time t according to the detection result;
a voltage acquisition unit 2, mounted on the device, for at different times t 0 、t 1 ...t k Acquiring an initial output voltage value of a battery installation position;
a state detection unit 3 for detecting according to the power supply modeResults and at different moments t 0 、t 1 ...t k The obtained initial output voltage value of the battery installation position judges whether the battery is installed in the current battery installation position and the working state of the installed battery, and the process is the same as that of the step S2;
an output voltage obtaining unit 4, configured to obtain an output voltage Vo of a battery installation position installed according to a power supply mode detection result and a working state of the battery, where a process is the same as step S3;
and a power supply control unit 5 for comparing the output voltages Vo of the different battery mounting positions, and controlling the battery mounted in the battery mounting position corresponding to the maximum value of the output voltage Vo to supply power to the device.
In summary, according to the present application, only the output voltage of the installed battery is required to be compared, the highest output voltage is selected as the power supply battery, and the switching management of the power supply battery can be completed (other batteries do not need to be taken out), meanwhile, the electric quantity data observed by the user can be displayed as monotone change, such as monotone decrease, so that the situation that the electric quantity data is changed variably due to the severe change of the output voltage value of the battery installation position is avoided, and the user experience is improved.
It should be noted that the technical features in the embodiments 1 to 4 may be arbitrarily combined, and the combined technical solutions all belong to the protection scope of the present application. And, in this document, terms such as "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Although embodiments of the present invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made therein without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

Claims (10)

1. A battery power management method, comprising the steps of:
judging whether a battery is mounted on the current battery mounting position or not and the working state of the mounted battery according to the initial output voltage values of the battery mounting positions acquired at different moments;
obtaining the output voltage of each battery mounting position provided with a battery according to the power supply mode detection result and the working state of the battery;
comparing the output voltages of different battery installation positions, and controlling the battery installed in the battery installation position corresponding to the maximum value of the output voltages to supply power to the equipment.
2. The battery power management method according to claim 1, wherein the battery is located adjacent t according to the current battery installation position k-1 Time t k Initial voltage output values LastVs, vs and bit voltage V at time k And (3) judging whether the battery is installed at the current battery installation position and the working state of the installed battery.
3. The battery power management method as claimed in claim 1, wherein the step of obtaining the output voltage of the battery mounting position where the battery is mounted based on the power mode detection result and the operating state of the battery comprises the steps of:
when the power supply mode detection result shows that the device is acquiring power through the USB power supply mode and the battery is in a just-connected state, detecting whether the ripple voltage change value is larger than a voltage fluctuation threshold value, converting an initial voltage output value of a current battery installation position into an approximate load voltage when the ripple voltage change value is smaller than or equal to the voltage fluctuation threshold value for a plurality of times continuously, and taking the approximate load voltage as an output voltage of the current battery installation position.
4. The battery power management method as claimed in claim 1, wherein the step of obtaining the output voltage of the battery mounting position where the battery is mounted based on the power mode detection result and the operating state of the battery comprises the steps of:
when the power supply mode detection result shows that the equipment does not acquire power through the USB power supply mode, and the battery is in a just-connected state, detecting whether the ripple voltage change value is larger than a voltage fluctuation threshold value, and converting an initial voltage output value of a current battery installation position into a load voltage when the ripple voltage change value is smaller than or equal to the voltage fluctuation threshold value for a plurality of times continuously, and taking the load voltage as an output voltage of the current battery installation position.
5. The battery power management method as claimed in claim 1, wherein the step of obtaining the output voltage of the battery mounting position where the battery is mounted based on the power mode detection result and the operating state of the battery comprises the steps of:
when the power supply mode detection result display equipment does not acquire power through the USB power supply mode and the battery is in a continuous access state, judging whether the battery is a power supply battery or not;
if the initial voltage output value is the historical minimum value, the initial voltage output value of the current battery installation position is taken as the output voltage of the current battery installation position.
6. The battery power management method according to claim 3 or 4, characterized by detecting whether the ripple voltage variation value is greater than or equal to the voltage fluctuation threshold THRES, comprising the steps of:
s11, at t m Obtaining an initial voltage output value V of a current battery installation position at a moment m At t m Acquiring an initial voltage output value CurVal of a current battery installation position at a time of delta t;
s12, comparing the voltage fluctuation threshold value THRES with t m Time t m At the time of + [ delta ] t, the current battery is installedInitial voltage output value V of bit m Comparing CurVal;
if THRES is greater than or equal to abs (CurVal-V) m ) The larger ripple is not considered to be generated, and step S13 is performed;
s13, t m The initial voltage output value CurVal of the current battery installation position at the time of plus delta t is taken as V m And repeating step S11 and the comparison step of the voltage fluctuation threshold THRES and abs (CurVal-Vm), the repetition number cnt=l.
7. The battery power management method according to claim 6, wherein the acquisition of the approximate load voltage includes the steps of:
the power supply mode detection result display equipment acquires power through the USB power supply mode, and the comparison results of continuous K times are that THRES is more than or equal to abs (CurVal-V) m ) When the approximate load voltage is obtained according to the formula (1):
approximate load voltage=v k -lifting voltage (1)
Wherein V is k For K consecutive repetitions of step S11, the voltage fluctuation thresholds THRES and abs (CurVal-V m ) At the last repetition of t m The initial voltage output value of the current battery installation position, which is obtained at the time of delta t, is the difference between the no-load voltage and the load voltage, wherein the load voltage is the output voltage of the battery installation position when the battery supplies power to the equipment, and the no-load voltage is the output voltage of the battery installation position when the battery does not supply power to the equipment.
8. The battery power management method according to claim 6, wherein the acquisition of the load voltage includes the steps of:
in the power supply mode detection result, the device does not acquire power through the USB power supply mode, and the comparison results of the continuous K times are that THRES is more than or equal to abs (CurVal-V m ) And (3) obtaining the load voltage according to the formula (2):
load voltage=v k (2)
Wherein V is k Repeating step S for K consecutive times11 and voltage fluctuation thresholds THRES and abs (CurVal-V) m ) At the last repetition of t m And obtaining the current initial voltage output value of the current battery installation position at the time of the delta t.
9. The battery power management method according to claim 5, wherein the step of determining whether the battery is a power supply battery when the battery is in a continuous access state comprises the steps of:
comparing the last output voltages of all the battery mounting positions, and determining the battery in the battery mounting position corresponding to the maximum value of the last output voltage as the power supply battery.
10. A battery-powered management system, comprising:
a power supply mode detection unit for performing power supply mode detection on the device to confirm whether the device acquires power through the USB power supply mode;
a voltage acquisition unit mounted on the device for acquiring initial output voltage values of the battery mounting positions at different times;
a state detection unit for judging whether the battery is mounted on the current battery mounting position or not and the working state of the mounted battery according to the initial output voltage values of the battery mounting position acquired at different moments;
the output voltage acquisition unit is used for acquiring the output voltage of the battery installation position installed by the battery according to the detection result of the power supply mode and the working state of the battery;
and the power supply control unit is used for comparing the output voltages of the different battery installation positions and controlling the battery installed in the battery installation position corresponding to the maximum value of the output voltages to supply power to the equipment.
CN202311251877.3A 2023-09-26 2023-09-26 Battery power supply management method and system Pending CN117277497A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311251877.3A CN117277497A (en) 2023-09-26 2023-09-26 Battery power supply management method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311251877.3A CN117277497A (en) 2023-09-26 2023-09-26 Battery power supply management method and system

Publications (1)

Publication Number Publication Date
CN117277497A true CN117277497A (en) 2023-12-22

Family

ID=89202169

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311251877.3A Pending CN117277497A (en) 2023-09-26 2023-09-26 Battery power supply management method and system

Country Status (1)

Country Link
CN (1) CN117277497A (en)

Similar Documents

Publication Publication Date Title
JP4733530B2 (en) Portable information terminal device, voltage measuring device, voltage measuring method, and program
CN1199051C (en) Battery level indicator for telephone unit
US6388450B2 (en) Method for determining the state of charge of storage batteries
JP5134967B2 (en) System and method for measuring fuel cell voltage
US7323848B2 (en) Battery charging state arithmetic operation device for calculating charging state of battery, and battery charging state arithmetic operation method
CN101097248A (en) Enhanced-accuracy battery capacity prediction
CN1196796A (en) Battery capacity measuring device
CN102478636A (en) Electric quantity detection method and device for battery
JP2011232345A (en) Method and device for determining deterioration of secondary battery, and power source system
CN112956064A (en) Specific-class industrial battery optimization and repair equipment with battery diagnosis and battery life prediction and artificial intelligence device
CN102782511A (en) Voltage measurement device for assembled battery
CN111781522B (en) Storage battery detection method, equipment and storage medium
Ferrero et al. Low-cost battery monitoring by converter-based electrochemical impedance spectroscopy
JP2007225430A (en) Degradation diagnostic apparatus and method for storage battery, and storage battery system
CN117277497A (en) Battery power supply management method and system
JP2008096166A (en) Battery voltage prediction method, program, state monitoring device, and power supply system
JP2002325371A (en) Voltage detecting apparatus of battery pack
JP4353299B2 (en) Battery learning system
CN111755765A (en) Lithium ion battery variable frequency pulse charging method and system based on real-time detection
CN116488578A (en) Photovoltaic equipment analysis method based on AI visual assistance
JP6345479B2 (en) Power supply inspection apparatus and power supply inspection method
JP2004239748A (en) Residual battery capacity detection method and portable terminal device
EP2423694B1 (en) Process for auto-testing a fully discharged battery, such as double-layer capacitor battery, and circuit for doing the same
US11275120B2 (en) Battery monitoring device
US6396245B1 (en) Method for gauging battery voltage of portable terminal

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