CN108649658B - Multi-battery switching method, power supply device and electronic equipment - Google Patents
Multi-battery switching method, power supply device and electronic equipment Download PDFInfo
- Publication number
- CN108649658B CN108649658B CN201810614818.0A CN201810614818A CN108649658B CN 108649658 B CN108649658 B CN 108649658B CN 201810614818 A CN201810614818 A CN 201810614818A CN 108649658 B CN108649658 B CN 108649658B
- Authority
- CN
- China
- Prior art keywords
- battery
- battery unit
- unit
- power supply
- units
- 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.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/0013—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries acting upon several batteries simultaneously or sequentially
- H02J7/0024—Parallel/serial switching of connection of batteries to charge or load circuit
Landscapes
- Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
Abstract
The embodiment of the application provides a multi-battery switching method, a power supply device and electronic equipment, wherein the method comprises the following steps: when the power supply device supplies power to the load, acquiring the electric quantity information of each battery unit; when the electric quantity information of the first battery unit does not accord with the preset condition, screening any battery unit with the electric quantity information according with the preset condition from the idle battery units as a second battery unit; the first battery unit is a battery unit which supplies power for the load at present; the control instructions are respectively output to the first switch unit connected with the first battery unit and the second switch unit connected with the second battery unit so as to control the on-off of the first switch unit and the second switch unit, the second battery unit supplies power to a load, switching among the multiple battery units can be controlled, independent power supply of each battery unit is achieved, meanwhile, the battery capacity is increased by arranging the multiple battery units, and the duration and the service life are prolonged.
Description
Technical Field
The present disclosure relates to the field of charging and discharging technologies, and in particular, to a multi-battery switching method, a power supply device, and an electronic device.
Background
The general electronic equipment mainly adopts a single battery for power supply, the capacity of the electronic equipment is limited, and the use scene is limited; when the double batteries are adopted for power supply, the discharge characteristics of the batteries are also obviously different due to different capacities of the main batteries and the auxiliary batteries; in the process of controlling the switching of the main battery and the auxiliary battery, the system is easy to power down. When the main battery and the auxiliary battery supply power to the system at the same time, the two batteries have mutual charging and discharging processes, and particularly when one of the batteries is invalid, the service life of the batteries and the performance of the system are seriously influenced.
Disclosure of Invention
The embodiment of the application provides a multi-battery switching method, a power supply device and electronic equipment, which can control switching among multiple battery units and realize independent power supply of each battery unit.
A multi-battery switching method is suitable for a power supply device, the power supply device comprises a plurality of battery units and a plurality of switch units which are connected with the battery units in a one-to-one correspondence mode, and the battery units are used for storing electric energy and supplying power to loads; the method comprises the following steps:
when the power supply device supplies power to a load, acquiring the electric quantity information of each battery unit;
when the electric quantity information of the first battery unit does not accord with the preset condition, screening any battery unit of which the electric quantity information accords with the preset condition from the idle battery units as a second battery unit; the first battery unit is a battery unit which supplies power for a load at present;
and respectively outputting control instructions to a first switch unit connected with the first battery unit and a second switch unit connected with the second battery unit so as to control the on-off of the first switch unit and the second switch unit and enable the second battery unit to supply power for a load.
A power supply device comprising:
a plurality of battery cells for supplying power to a load and storing electrical energy;
the switch units are connected with the battery units in a one-to-one correspondence manner;
the sampling detection circuit is respectively connected with the plurality of battery units and is used for detecting the electric quantity information of each battery unit;
the main controller is respectively connected with the sampling detection circuit and the plurality of switch units, and is used for receiving the detection result of the sampling detection circuit, screening any battery unit of which the electric quantity information accords with the preset condition from idle-load battery units as a second battery unit when judging that the electric quantity information of the first battery unit does not accord with the preset condition according to the detection result, and respectively outputting a control instruction to the first switch unit connected with the first battery unit and the second switch unit connected with the second battery unit so as to control the on-off of the first switch unit and the second switch unit and enable the second battery unit to supply power for a load; the first battery unit is a battery unit which is currently used for supplying power to a load.
An electronic device comprises the power supply device, and the power supply device is used for supplying power to the electronic device.
An electronic device comprises a plurality of battery units, a plurality of switch units, a memory and a processor, wherein the switch units are connected with the battery units in a one-to-one correspondence manner; the processor is respectively connected with the plurality of battery units, the plurality of switch units and the memory; the memory has stored therein a computer program which, when executed by the processor, causes the processor to perform the steps of the multi-cell switching method.
The multi-battery switching method, the power supply device and the electronic equipment can acquire the electric quantity information of each battery unit; when the electric quantity information of the first battery unit does not accord with the preset condition, screening any battery unit with the electric quantity information according with the preset condition from the idle battery units as a second battery unit; respectively outputting control instructions to a first switch unit connected with the first battery unit and a second switch unit connected with the second battery unit so as to control the on-off of the first switch unit and the second switch unit and enable the second battery unit to supply power for a load; the switching among the multiple battery units can be controlled, independent power supply of each battery unit is achieved, the power supply of each battery unit for a load can be independently controlled, mutual interference is avoided, meanwhile, the battery capacity is increased by arranging the multiple battery units, and the duration of endurance and use is prolonged.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a diagram of an exemplary embodiment of a multi-cell switching method;
FIG. 2 is a flow diagram of a method for multi-cell switching in one embodiment;
fig. 3 is a flowchart illustrating acquiring information of an electric quantity of each battery unit when the power supply device supplies power to a load according to an embodiment;
fig. 4 is a flowchart for screening any battery unit with the electric quantity information meeting a preset condition from unloaded battery units as a second battery unit in one embodiment;
fig. 5 is a flowchart illustrating that in one embodiment, control commands are respectively output to a first switch unit connected to the first battery unit and a second switch unit connected to the second battery unit to control on/off of the first switch unit and the second switch unit, so that the second battery unit supplies power to a load;
FIG. 6 is a flow chart of a method for multi-cell switching in another embodiment;
FIG. 7 is a flowchart illustrating sequentially and independently charging a plurality of battery cells having voltage signals lower than a second predetermined value according to charging priorities in one embodiment;
FIG. 8 is a flow chart illustrating sequential independent charging of the remaining battery cells to be charged according to the charging priority in one embodiment;
FIG. 9 is a block diagram showing the structure of a power supply device according to an embodiment;
FIG. 10 is a block diagram showing the construction of a power supply apparatus according to another embodiment;
fig. 11 is a block diagram of a partial structure of a mobile phone related to an electronic device provided in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
It will be understood that, as used herein, the terms "first," "second," and the like may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, a first battery cell may be referred to as a second battery cell, and similarly, a second battery cell may be referred to as a first battery cell, without departing from the scope of the present application. The first battery cell and the second battery cell are both battery cells, but are not the same battery cell.
Referring to fig. 1, the power supply device 100 includes a plurality of battery units 110 and a plurality of switch units 120 connected to the plurality of battery units 110 in a one-to-one correspondence, where the plurality of battery units 110 are used to store electric energy and supply power to a load. One battery unit is correspondingly connected with one switch unit, and the switch unit receives a control instruction and controls the on-off of the switch unit so as to supply power to the battery unit correspondingly connected with the switch unit for a load or charge the battery unit.
The load may be an electronic device that can incorporate the power supply device, for example, any terminal device such as a mobile terminal, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, and a wearable device.
Specifically, the battery type of the battery unit may include at least one of a lead-acid battery, a nickel-metal hydride battery, a sodium-sulfur battery, a flow battery, a super capacitor, a lithium battery, and a flexible battery. The battery types of the plurality of battery units may be the same or different. Further, the types of the batteries in the same battery unit are the same, and the number of the batteries included in the same battery unit may be 1, 2, 3 or more, and if the number of the batteries is greater than 1, the batteries in the battery units are connected in series. For example, when there are three battery units, the first battery unit is a lithium battery unit, the second battery unit is a lithium battery unit, and the third battery unit is a flexible battery unit. The number of the lithium batteries included in the lithium battery unit is two, and the number of the flexible batteries included in the flexible battery unit is 1.
Specifically, the switching unit may be at least one of a diode, a triode, a relay, a thyristor, a MOS transistor, and an IGBT. That is, the switch types of the plurality of switch units may be the same or different.
In the present application, a plurality is understood to mean at least 2 (2 or more), that is, 2, 3 or even more.
Fig. 2 is a flow diagram of a multi-cell switching method in one embodiment. In one embodiment, the multi-battery switching method includes steps 202 to 206.
When the load is started and the power supply device needs to supply power, any one of the switch units needs to be controlled to be powered on, so that the battery unit which is powered on supplies power to the load through the charging loop.
When the power supply device supplies power to a load, further, the electric quantity information of each battery unit can be collected based on a sampling detection circuit of the power supply device, wherein the sampling detection circuit is used for collecting a voltage signal of each battery unit, and the electric quantity information of each battery unit is obtained according to the voltage signal.
Specifically, the battery unit currently supplying power to the load may be defined as a first battery unit, and the switch unit connected to the first battery unit is positioned as a first switch unit. Further, the first battery unit may be any one of the plurality of battery units, or the first battery unit may be determined according to a preset power supply priority, where the first battery unit is a battery unit with a highest priority among the power supply priorities.
When the electric quantity information of the first battery unit which supplies power to the load does not accord with the preset condition, any battery unit of which the electric quantity information accords with the preset condition can be screened from the idle battery units to serve as a second battery unit. That is, the electric quantity information of the second battery unit meets the preset condition and is in an idle state. The no-load state is understood to mean that the load is not currently supplied with power. That is, the number of battery units of which the electric quantity information satisfies the preset condition in the unloaded battery unit may be one or more, and when the number of battery units satisfying the preset condition is plural, the second battery unit may be determined from the plural battery units satisfying the preset condition according to the preset rule. The second battery unit can also be understood as a battery unit which is then required to preferentially supply the load.
And step 206, respectively outputting control instructions to a first switch unit connected with the first battery unit and a second switch unit connected with the second battery unit so as to control the on-off of the first switch unit and the second switch unit and enable the second battery unit to supply power for a load.
Wherein the switch unit connected with the first battery unit is positioned as a first switch unit; the switch connected to the second battery cell is defined as a second battery switch. After the second battery unit is determined, the power supply device may output a control command to a first switch unit connected to the first battery unit and a second switch unit connected to the second battery unit to control on/off of the first switch unit and the second switch unit, so that the second battery unit supplies power to the load. Specifically, the first switch unit may be controlled to be powered off and disconnected from the first battery unit, and the second switch unit may be controlled to be powered on and connected to the second battery unit, so that the second battery unit supplies power to the load.
According to the multi-battery switching method in the embodiment of the application, the electric quantity information of each battery unit can be acquired; when the electric quantity information of the first battery unit does not accord with the preset condition, screening any battery unit of which the electric quantity information accords with the preset condition from the idle battery units as a second battery unit; the first battery unit is a battery unit which supplies power for a load at present; respectively outputting control instructions to a first switch unit connected with the first battery unit and a second switch unit connected with the second battery unit so as to control the on-off of the first switch unit and the second switch unit and enable the second battery unit to supply power for a load; the switching among the multiple battery units can be controlled, the independent power supply of each battery unit is realized, namely, each battery unit can be independently controlled to supply power to a load without mutual interference, the over-discharge is prevented, and the service life of each battery in each battery unit is prolonged; meanwhile, by arranging the plurality of battery units, when a certain battery unit is invalid or fails, the power supply path of the battery unit can be cut off, the normal work of the system is ensured, the battery capacity is increased, and the duration of endurance and use is prolonged.
Further, the above steps 202 to 206 may be repeatedly performed until the electric quantity information of all the battery units does not meet the preset condition, and the multi-battery switching method cannot supply power to the load, that is, the power supply device stops supplying power to the load.
Fig. 3 is a flowchart illustrating acquiring information of an electric quantity of each battery unit when the power supply device supplies power to a load according to an embodiment. In one embodiment, the obtaining the power information of each battery unit when the power supply device supplies power to the load includes:
When the first battery switch is powered on, the first battery unit connected with the first battery supplies power to the load, and at the moment, the voltage signal of each battery unit can be collected based on a sampling detection circuit in the power supply device. The sampling detection circuit is respectively connected with the anode of each battery unit, and the cathode of each battery unit is grounded.
The power supply device or the electronic apparatus may acquire the voltage signal of each battery cell acquired by the sampling detection circuit. Furthermore, the magnitude of the first preset value can be judged according to the acquired voltage signal. The first preset value is associated with a power supply requirement of a load (a type of the load) and a capacity of each battery unit, the load is different, the capacity of the battery unit is different, and the corresponding first preset value is also different, for example, when the load is a mobile phone and the battery unit is a lithium battery, the first preset value may be set to be 3.4V. The specific value of the first preset value is not further limited herein.
And acquiring corresponding electric quantity information according to the voltage signal of the current battery unit. Specifically, the correspondence between the voltage signal and the electric quantity information may be acquired according to various battery types and models. For example, when the voltage signal of the lithium battery is lower than 3.4V, it may be determined that the lithium battery has a low capacity and is not sufficient to supply power to the load, and when the voltage signal of the lithium battery is higher than 3.4V, it may be determined that the lithium battery has a sufficient capacity and is capable of supplying power to the load.
When the voltage signal is higher than the first preset value, step 306 is executed, and the electric quantity information meets the preset condition. When the voltage signal is lower than the first preset value, step 308 is executed, and the electric quantity information does not meet the preset condition. The preset condition can be understood as the lowest electric quantity information capable of supplying power to the load; the preset condition may be understood as preset power information capable of supplying power to the load, for example, the preset power information may be 2%, 5% or other values of the total power.
Fig. 4 is a flowchart for screening any battery unit with the electric quantity information meeting the preset condition from empty battery units as a second battery unit in one embodiment. In one embodiment, the screening, from among unloaded battery units, any battery unit whose charge information meets a preset condition as a second battery unit includes:
The power supply priority can be understood as a power supply sequence for sequentially supplying power to the loads when the electric quantity information of all the battery units meets the preset condition, wherein the higher the power supply priority is, the earlier the power supply sequence is. For example, the first battery unit in the present application, which has the highest priority for supplying power, supplies power to the load in the initial state. The power supply priority is divided according to the battery type of each battery unit, and the power supply priority may also be divided according to the battery capacity of each battery unit. For example, in the present embodiment, there are four battery cells, each of which is a lithium battery cell, and the four battery cells may be respectively referred to as battery cell 1, battery cell 2, battery cell 3, and battery cell 4, and their corresponding power supply priorities are, from high to low, priority 4, priority 3, priority 2, and priority 1. That is, the highest priority of power supply corresponding to the battery unit 1 is the priority 4, and the battery unit 1 is the first battery unit and preferentially supplies power to the load.
And when the electric quantity information of the unloaded battery units meets the preset condition, selecting the battery unit with the highest power supply priority from the unloaded battery units as a second battery unit. For example, when the battery unit 1 supplies power to a load for a first battery unit, if the power information of the unloaded battery units (including the battery unit 2, the battery unit 3, and the battery unit 4) all meet the preset condition, the battery unit with the highest power supply priority may be selected from the three battery units of the battery unit 2, the battery unit 3, and the battery unit 4 as a second battery unit. Since the power supply priorities of the battery unit 2, the battery unit 3 and the battery unit 4 are priority 3, priority 2 and priority 1 in this order, the battery unit 2 corresponding to the priority 3 may be used as the second battery unit. When the electric quantity information of the first battery does not meet the preset condition, the second battery unit can be switched to supply power to the load.
Accordingly, when controlling the battery unit 2 to supply power to the load, its battery unit 2 will now be defined as the first battery unit. In the process of supplying power to the battery unit 2, if the power information of the battery unit 2 does not meet the preset condition, the battery unit 3 with the highest power supply priority can be selected from the battery units 3 and 4 as the second battery unit to continue supplying power to the load. Similarly, when the battery unit 3 is controlled to supply power to the load, the battery unit 3 is defined as a first battery unit, and in the power supply process of the battery unit 3, if the power information of the battery unit 3 does not meet the preset condition, the battery unit 4 can be selected as a second battery unit to continue to supply power to the load.
In the multi-battery switching method in the embodiment of the application, the power supply priority is set, and the loads are sequentially supplied with power according to the power supply priority, so that the orderliness and the stability of the power supply process can be ensured.
Fig. 5 is a flowchart of an embodiment of respectively outputting a control command to a first switch unit connected to the first battery unit and a second switch unit connected to the second battery unit to control on/off of the first switch unit and the second switch unit, so that the second battery unit supplies power to a load. In one embodiment, the outputting of the control command to a first switch unit connected to the first battery unit and a second switch unit connected to the second battery unit to control on/off of the first switch unit and the second switch unit, so that the second battery unit supplies power to a load includes:
When the first battery unit supplies power to the load and the electric quantity information of the first battery unit does not accord with the preset condition, a first control instruction is controlled to be output to the second switch unit, so that the second switch unit is electrified and conducted, and the second battery unit supplies power to the load. Meanwhile, the delay control outputs a second control instruction to the first switch unit to enable the first switch unit to be powered off and disconnected. That is, the first control command and the second control command are not issued at the same time, and the second control command is issued with a delay with respect to the first control command, that is, the second control command is later than the issue time of the first control command.
It should be noted that the delay time of the delay control may be set according to actual needs, for example, 2 seconds, 3 seconds, or other values, and the setting of the delay time may ensure that the first battery unit and the second battery unit simultaneously supply power to the load without interference during the delay time.
Specifically, the first control instruction is a high level signal, and the second control instruction is a low level signal. The second switch unit is electrified and conducted by controlling and outputting a high-level signal to the second switch unit, and the second battery unit connected with the second switch unit is connected to the power supply loop so as to supply power to the load. Correspondingly, the control unit outputs a low level signal to the first switch unit, so that the first switch unit is powered off, and a power supply loop for supplying power to the load by the first battery unit is cut off.
Optionally, the first control instruction and the second control instruction are both pulse signals, where the number of the pulse signals is different. For example, on/off logic of each switch unit may be set in advance. For example, when the number of the pulse signals is one, the conduction of the first switch unit is indicated, and when the number of the pulse signals is two, the disconnection of the first switch unit is indicated; for example, when the number of the pulse signals is three, it indicates that the second switching unit is turned on, and when the number of the pulse signals is four, it indicates that the second switching unit is turned off. The number of the pulse signals and the on-off logic of each switch unit can be set according to actual requirements, and no further limitation is made here.
In the embodiment of the application, a delay control method is adopted, and the control logic which is firstly conducted and then disconnected is utilized, so that each battery unit can be ensured to be independently controlled to be connected into a power supply loop to supply power to a load, the switching stability and reliability among the battery units are ensured, the phenomenon of load power failure in the moment of switching can be avoided, and meanwhile, the control logic is simple and reliable.
In one embodiment, the multi-battery switching method further includes a step of outputting a warning signal when the electric quantity information of all the battery units does not meet a preset condition.
Specifically, when the electric quantity information of each battery unit in the plurality of battery units does not accord with the preset condition, the output warning information can be controlled to prompt the user to charge the power supply device or the electronic equipment and charge the power supply device, so that the influence on the use of the user due to insufficient electric quantity is avoided.
Further, if it is detected that an external adapter or a USB is inserted to charge the power supply apparatus, a shutdown operation is performed after a certain time.
Fig. 6 is a flow chart of a multi-cell switching method in another embodiment. In another embodiment, a method for switching multiple batteries:
In the embodiment of the present application, the steps 602 to 606 correspond to the steps 202 to 206 in the previous embodiment one to one, and thus, the description is omitted here.
The electronic equipment with the built-in power supply device can detect whether an external adapter or a USB is connected with the charging device, when the external adapter or the USB is connected with the power supply device, the charging function of the power supply device is considered to be triggered, and if no external equipment capable of charging the power supply device is detected to be accessed, the charging function of the power supply device is considered not to be triggered.
When the power supply device is in a charging state, a voltage signal of each charging unit can be acquired. Specifically, the voltage signal can be acquired by a sampling detection circuit in the power supply device. The sampling detection circuit is respectively connected with the positive electrode of each battery unit, and the negative electrode of each battery unit is grounded.
And 612, sequentially and independently charging the plurality of battery units of which the voltage signals are lower than a second preset value according to the charging priority.
The charging priority can be understood as a reverse order of the power supply priority in the foregoing embodiment, that is, the higher the priority of the power supply priority is, the lower the corresponding charging priority is; the lower the priority of the power supply priority, the higher the corresponding charging priority.
Specifically, a voltage signal of each battery unit may be acquired, the acquired plurality of voltage signals are compared with a second preset value, at least one battery unit with a voltage signal smaller than the second preset value is screened, and the screened at least one battery unit is sequentially charged according to the charging priority. When the voltage signal is smaller than the second preset value, the current battery unit is not in a full-charge state, and the battery unit needs to be charged.
For example, the power supply priorities of the battery unit 1, the battery unit 2, the battery unit 3, and the battery unit 4 are, in order, priority 4, priority 3, priority 2, and priority 1; then, the charging priorities of the battery cell 1, the battery cell 2, the battery cell 3, and the battery cell 4 are priority 1, priority 2, priority 3, and priority 4 in this order. When the voltage signals of the battery unit 1, the battery unit 2, the battery unit 3 and the battery unit 4 are all smaller than the second preset value, it indicates that the battery unit 1, the battery unit 2, the battery unit 3 and the battery unit 4 are all in a non-full state. At this time, the switch unit connected to the battery unit 4 in the power supply device may be controlled to be turned on and off, and the switch unit of another battery unit may be turned off, so that the battery unit 1 may be charged by the external adapter or the USB.
In the embodiment of the application, when the charging function of the power supply device is triggered, the state of each battery unit is detected, the plurality of battery units with the voltage signals lower than the second preset value can be sequentially and independently charged according to the charging priority, and the switching among the plurality of battery units can be controlled in order, safely and reliably according to the charging priority, so that the independent charging of each battery unit is realized, and the charging function is not interfered with each other. Meanwhile, irreversible influence on simultaneous charging of a plurality of battery units caused by overlarge charging current can be avoided.
Fig. 7 is a flowchart illustrating sequentially and independently charging a plurality of battery cells with the voltage signals lower than a second predetermined value according to the charging priority in one embodiment. In one embodiment, the independently charging the plurality of battery units of which the voltage signals are lower than the second preset value according to the charging priority in sequence comprises:
Specifically, a voltage signal of each battery unit may be acquired, the acquired plurality of voltage signals may be compared with a second preset value, and at least one battery unit to be charged, of which the voltage signal is smaller than the second preset value, may be screened out. When the voltage signal is smaller than the second preset value, the current battery unit is not in a full-charge state, and the battery unit needs to be charged.
It should be noted that the second preset value is associated with the power supply requirement of the load (the type of the load) and the capacity of each battery unit, and the second preset value is different when the load is different and the capacity of the battery unit is different. For example, when the load is a mobile phone and the battery unit is a lithium battery, the second preset value may be set to 4.2V. The specific value of the second preset value is not further limited herein.
And 704, taking a third battery unit as a primary charging object according to the charging priority in the at least one battery unit to be charged, and outputting a third control instruction to a third switching unit connected with the third battery unit to enable the third switching unit to be powered on so as to charge the third unit.
If the battery cells to be charged include battery 2, battery cell 3 and battery cell 4. And the charging priorities of the battery cell 2, the battery cell 3, and the battery cell 4 are priority 2, priority 3, and priority 4 in this order. At this time, the battery cell with the highest charging priority is the battery cell 4, and the battery cell 4 is defined as the third battery cell as the primary charging target. Wherein the battery switch 4 connected to the battery cell 4 is defined as a third switching unit. And controlling to output a corresponding third control instruction to the third switching unit, so that the third switching unit is electrified and conducted, and an external adapter or a USB charges the third unit.
And 708, when the current signal is smaller than a third preset value, sequentially and independently charging the remaining battery units to be charged according to the charging priority.
And when the current signal is smaller than the third preset value, the current signal indicates that the current third battery unit is fully charged, the third switch unit can be controlled to be switched off, and the remaining battery units to be charged are sequentially and independently charged according to the charging priority.
It should be noted that the third preset value may be set according to parameters such as a battery type, a battery capacity, and a model of a battery unit currently being charged, that is, the third preset values corresponding to different types, models, and capacities of battery units are different. For example, when the battery cell is a lithium battery cell, the third preset value is close to 0 milliamp, and may be 0.1 milliamp. The specific value of the third preset value is not further limited herein.
In the embodiment of the application, the electronic equipment provided with the power supply device can identify each path of battery unit, detect the electric quantity state of each path of battery unit, reasonably set the charging current of each path of battery unit according to the battery characteristics, independently control the charging control of each battery unit, and avoid the irreversible influence of overcurrent charging on the battery units.
In addition, the third battery unit may be used to supply power to the load by controlling the power supply device during the charging of the third battery.
Fig. 8 is a flowchart illustrating sequentially and independently charging the remaining battery cells to be charged according to the charging priority in one embodiment. In one embodiment, the sequentially and independently charging the remaining battery units to be charged according to the charging priority comprises:
The remaining battery cells to be charged include the battery 2 and the battery cell 3. And the charging priority of the battery unit 2 and the charging priority of the battery unit 3 are the priority 2 and the priority 3 in sequence. At this time, the battery cell with the highest charging priority is the battery cell 3, and the battery cell 3 is defined as the fourth battery cell as the primary charging target.
And 804, controlling to output a third control instruction to a fourth switch unit connected with the fourth battery unit, enabling the fourth switch unit to be electrically conducted, delaying to control to output a fourth control instruction to the third switch unit, enabling the third switch unit to be powered off and disconnected, and charging the fourth battery unit until the current signals of all the battery units are smaller than a third preset value.
Wherein the battery switch 3 connected to the battery cell 3 is defined as a fourth switch unit. And controlling and outputting a corresponding third control instruction to a fourth switching unit, enabling the fourth switching unit to be conducted so as to enable an external adapter or a USB to charge the third unit, and delaying and controlling and outputting a fourth control instruction to the third switching unit so as to enable the third switching unit to be powered off and disconnected, so that the external adapter or the USB charges a fourth battery unit. Repeating the steps 802-804 until the current signals of all the battery units are less than the third preset value, so that the electric quantity of all the battery units reaches a full-charge state.
The delay time of the delay control may be set according to actual needs, for example, 2 seconds, 3 seconds, or other values, and the setting of the delay time may ensure that the third battery cell and the fourth battery cell are charged simultaneously within the delay time without interference.
Specifically, the third control instruction is a high level signal, and the fourth control instruction is a low level signal. And controlling to output a high level signal to a fourth switch unit connected with the fourth battery unit, enabling the fourth switch unit to be conducted, delaying to control to output a low level signal to the third switch unit, enabling the third switch unit to be powered off and disconnected, and further charging the fourth battery unit.
Optionally, the third control instruction and the fourth control instruction are both pulse signals, where the number of the pulse signals is different, and on-off logics of each switch unit may be preset. And will not be described in detail herein.
In the embodiment of the application, a delay control method is adopted, and the control logic which is firstly switched on and then switched off is utilized, so that the external adapter or the USB can independently charge each battery unit, the stability and the reliability of switching among the battery units are ensured, and meanwhile, the control logic is simple and reliable.
It should be understood that although the various steps in the flow charts of fig. 2-8 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-8 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
Fig. 9 is a block diagram showing an internal configuration of a power supply device in one embodiment. The present application further provides a power supply apparatus, including:
a plurality of battery cells 910 for supplying power to a load and storing electrical energy;
a plurality of switch units 920, connected to the plurality of battery units 910 in a one-to-one correspondence;
a sampling detection circuit 930, connected to each of the plurality of battery units 910, for detecting power information of each of the battery units;
the main controller 940 is respectively connected with the sampling detection circuit 930 and the plurality of switch units 920, and is configured to receive a detection result of the sampling detection circuit, screen any battery unit, as a second battery unit, of which the electric quantity information meets a preset condition from idle-loaded battery units when it is determined that the electric quantity information of the first battery unit does not meet the preset condition according to the detection result, and respectively output a control instruction to the first switch unit connected with the first battery unit and the second switch unit connected with the second battery unit, so as to control on/off of the first switch unit and the second switch unit, so that the second battery unit supplies power to a load; the first battery unit is a battery unit which is currently used for supplying power to a load.
The power supply device can acquire the electric quantity information of each battery unit; when the electric quantity information of the first battery unit does not accord with the preset condition, screening any battery unit of which the electric quantity information accords with the preset condition from the idle battery units as a second battery unit; the first battery unit is a battery unit which supplies power for a load at present; respectively outputting control instructions to a first switch unit connected with the first battery unit and a second switch unit connected with the second battery unit so as to control the on-off of the first switch unit and the second switch unit and enable the second battery unit to supply power for a load; the switching among the multiple battery units can be controlled, the independent power supply of each battery unit is realized, namely, each battery unit can be independently controlled to supply power to a load without mutual interference, the over-discharge is prevented, and the service life of each battery in each battery unit is prolonged; meanwhile, by arranging the plurality of battery units, when a certain battery unit is invalid or fails, the power supply path of the battery unit can be cut off, the normal work of the system is ensured, the battery capacity is increased, and the duration of endurance and use is prolonged.
In one embodiment, the battery type of the battery cell may include at least one of a lead-acid battery, a nickel-metal hydride battery, a sodium-sulfur battery, a flow battery, a supercapacitor, a lithium battery, and a flexible battery. The battery types of the plurality of battery units may be the same or different. Further, the types of the batteries in the same battery unit are the same, and the number of the batteries included in the same battery unit may be 1, two, 3 or more, and if the number of the batteries is greater than 1, the batteries in the battery units are connected in series. For example, when there are three battery units, the first battery unit is a lithium battery unit, the second battery unit is a lithium battery unit, and the third battery unit is a flexible battery unit. The number of the lithium batteries included in the lithium battery unit is two, and the number of the flexible batteries included in the flexible battery unit is 1.
In one embodiment, the switching unit may be at least one of a diode, a transistor, a relay, a thyristor, a MOS transistor, and an IGBT. That is, the switch types of the plurality of switch units may be the same or different.
In the present application, a plurality is understood to mean at least 2 (2 or more), that is, 2, 3 or even more.
In one embodiment, the main controller 940 is further configured to obtain a voltage signal of each battery unit when the first battery unit supplies power to the load, and determine whether the voltage signal is higher than a first preset value; when the voltage signal is higher than a first preset value, the electric quantity information accords with the preset condition; and when the voltage signal is lower than a first preset value, the electric quantity information does not accord with the preset condition.
In one embodiment, the main controller 940 is further configured to obtain power supply priorities of the plurality of battery units, and when the electric quantity information of the unloaded battery unit meets a preset condition, a battery unit with a highest power supply priority is selected from the unloaded battery units and used as the second battery unit.
In one embodiment, master 940 also has the function of delay control. Specifically, the main controller 940 may control to output a first control instruction to the second switching unit, so that the second switching unit is powered on and powered on, and the second battery unit supplies power to a load; the master controller 940 delays and controls to output a second control instruction to the first switch unit, so that the first switch unit is powered off and disconnected. It should be noted that the delay time of the delay control may be set according to actual needs, for example, 2 seconds, 3 seconds, or other values, and the setting of the delay time may ensure that the first battery unit and the second battery unit simultaneously supply power to the load without interference during the delay time.
Fig. 10 is a block diagram showing an internal configuration of a power supply device in another embodiment. The power supply device includes a plurality of battery cells 1010 for supplying power to a load and storing electrical energy; a plurality of switch units 1020 connected to the plurality of battery cells 1010 in a one-to-one correspondence; the sampling detection circuit 1030 is respectively connected with the plurality of battery units 1010 and is used for detecting the electric quantity information of each battery unit; the main controller 1040 is respectively connected with the sampling detection circuit 1030 and the plurality of switch units 1020, and is configured to receive a detection result of the sampling detection circuit 1030, screen any battery unit, of which the electric quantity information meets a preset condition, from idle-load battery units as a second battery unit when it is determined according to the detection result that the electric quantity information of the first battery unit does not meet the preset condition, and respectively output a control instruction to the first switch unit connected with the first battery unit and the second switch unit connected with the second battery unit so as to control on/off of the first switch unit and the second switch unit, so that the second battery unit supplies power to a load; the first battery unit is a battery unit which is currently used for supplying power to a load.
The sampling detection circuit 1030 further includes:
the voltage sampling unit 1031 comprises a plurality of detection ports, and each detection port is connected with the positive electrode of the battery unit and is used for acquiring a voltage signal of the battery unit; the voltage signal is used for representing the electric quantity information.
Specifically, the voltage sampling unit 1031 may be a voltage sampling chip, and the voltage sampling chip is provided with a plurality of collecting pins, and each pin is connected to the common terminals of the battery unit and the switch unit, and is used for collecting the voltage signal of the battery unit. For example, when the power supply device includes four battery units and four switch units, the four battery units may be respectively referred to as battery unit 1, battery unit 2, battery unit 3, and battery unit 4; the four switch cells may be denoted as K1, K2, K3, K4, respectively. The anodes of the battery units 1, 2, 3 and 4 are connected corresponding to one ends of the batteries K1, K2, K3 and K4, and the cathodes of the battery units 1, 2, 3 and 4 are grounded. The other ends of K1, K2, K3 and K4 are connected to a load and a master 1040, respectively. The multiple detection ports of the voltage sampling unit 1031 are respectively connected to the positive electrodes of the battery units 1, 2, 3, and 4, and are used for acquiring voltage signals of the battery units 1, 2, 3, and 4.
Further, in an embodiment, the sampling detection circuit 1030 further includes:
and a current sampling unit 1033, connected to the plurality of switch units 1020 and the sampling circuit 1031, respectively, for collecting current signals of the battery cells connected to the switch units when the battery cells are turned on.
The current sampling unit 1033 may be a precision sense resistor. When any one of the switch units 1020 (K1, K2, K3 or K4) is turned on, the precision sense resistor can collect the current signal of the battery cell connected to the switch unit.
Referring to fig. 10, in one embodiment, the power supply device further includes:
and the charging detection circuit 1050 is connected with the main controller 1040 and is used for detecting whether a charging function of the power supply device is triggered.
The charging detection circuit 1050 may detect whether an external adapter or a USB is connected to the charging apparatus, and when an external adapter or a USB is connected to the power supply apparatus, it may determine that the charging function of the power supply apparatus is triggered, and if it is not detected that any external device capable of charging the power supply apparatus is connected, it may determine that the charging function of the power supply apparatus is not triggered.
The main controller 1040 is further configured to, when the charging function of the power supply device is triggered, obtain a voltage signal of each battery unit, and sequentially and independently charge the plurality of battery units, where the voltage signal is lower than a second preset value, according to the charging priority.
The charging priority can be understood as a reverse order of the power supply priority in the foregoing embodiment, that is, the higher the priority of the power supply priority is, the lower the corresponding charging priority is; the lower the priority of the power supply priority, the higher the corresponding charging priority.
In the embodiment of the application, when the charging function of the power supply device is triggered, the state of each battery unit is detected, the plurality of battery units with the voltage signals lower than the second preset value can be sequentially and independently charged according to the charging priority, and the switching among the plurality of battery units can be controlled in order, safely and reliably according to the charging priority, so that the independent charging of each battery unit is realized, and the charging function is not interfered with each other. Meanwhile, irreversible influence on simultaneous charging of a plurality of battery units caused by overlarge charging current can be avoided.
In one embodiment, the master controller 1040 is further configured to screen out at least one battery cell to be charged, where the voltage signal is lower than a second preset value; in the at least one battery unit to be charged, a third battery unit is used as a primary charging object according to the charging priority, and a third control instruction is output to a third switching unit connected with the third battery unit so that the third switching unit is electrified and conducted to charge the third unit; and receiving a current signal of a third battery unit detected by the current sampling unit 1033, and sequentially and independently charging the remaining battery units to be charged according to the charging priority when the current signal is smaller than a third preset value.
In the embodiment of the application, the electronic equipment provided with the power supply device can identify each path of battery unit, detect the electric quantity state of each path of battery unit, reasonably set the charging current of each path of battery unit according to the battery characteristics, independently control the charging control of each battery unit, and avoid the irreversible influence of overcurrent charging on the battery units.
In one embodiment, the master controller 1040 is further configured to determine a fourth battery cell among the remaining battery cells to be charged according to the charging priority, where the fourth battery cell is a current primary charging object; and controlling to output a third control instruction to a fourth switching unit connected with the fourth battery unit, enabling the fourth switching unit to be conducted, delaying to control to output a fourth control instruction to the third switching unit, enabling the third switching unit to be powered off and powered off, and charging the fourth battery unit until the current signals of all the battery units are smaller than a third preset value.
In the embodiment of the application, a delay control method is adopted, and the control logic which is firstly switched on and then switched off is utilized, so that the external adapter or the USB can independently charge each battery unit, the stability and the reliability of switching among the battery units are ensured, and meanwhile, the control logic is simple and reliable.
The division of each module in the power supply device is only used for illustration, and in other embodiments, the power supply device may be divided into different modules as needed to complete all or part of the functions of the power supply device.
For specific limitations of the power supply device, reference may be made to the above limitations of the multi-battery switching method, which are not described herein again. The modules in the power supply device can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
The present application further provides an electronic device, including the power supply device in any of the above embodiments, where the power supply device is configured to supply power to the electronic device.
The embodiment of the application also provides a computer readable storage medium. One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the steps of a multi-battery switching method.
A computer program product containing instructions which, when run on a computer, cause the computer to perform a multi-cell switching method.
The embodiment of the application also provides the electronic equipment. As shown in fig. 11, for convenience of explanation, only the parts related to the embodiments of the present application are shown, and details of the technology are not disclosed, please refer to the method part of the embodiments of the present application. The electronic device may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, a wearable device, and the like, taking the electronic device as the mobile phone as an example:
fig. 11 is a block diagram of a partial structure of a mobile phone related to an electronic device provided in an embodiment of the present application. Referring to fig. 11, the cellular phone includes: radio Frequency (RF) circuitry 1110, memory 1120, input unit 1130, display unit 1140, sensors 1150, audio circuitry 1160, wireless fidelity (WiFi) module 1170, processor 1180, and power supply 1190. Those skilled in the art will appreciate that the handset configuration shown in fig. 11 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The RF circuit 1110 may be configured to receive and transmit signals during information transmission and reception or during a call, and may receive downlink information of a base station and then process the downlink information to the processor 1180; the uplink data may also be transmitted to the base station. Typically, the RF circuitry includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 1110 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE)), e-mail, Short Messaging Service (SMS), and the like.
The memory 1120 may be used to store software programs and modules, and the processor 1180 may execute various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 1120. The memory 1120 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function (such as an application program for a sound playing function, an application program for an image playing function, and the like), and the like; the data storage area may store data (such as audio data, an address book, etc.) created according to the use of the mobile phone, and the like. Further, the memory 1120 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 1130 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone 1100. Specifically, the input unit 1130 may include a touch panel 1131 and other input devices 1132. Touch panel 1131, which may also be referred to as a touch screen, can collect touch operations of a user on or near the touch panel 1131 (for example, operations of the user on or near touch panel 1131 by using any suitable object or accessory such as a finger or a stylus pen), and drive corresponding connection devices according to a preset program. In one embodiment, the touch panel 1131 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 1180, and can receive and execute commands sent by the processor 1180. In addition, the touch panel 1131 can be implemented by using various types, such as resistive, capacitive, infrared, and surface acoustic wave. The input unit 1130 may include other input devices 1132 in addition to the touch panel 1131. In particular, other input devices 1132 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), and the like.
The display unit 1140 may be used to display information input by the user or information provided to the user and various menus of the cellular phone. The display unit 1140 may include a display panel 1141. In one embodiment, the Display panel 1141 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. In one embodiment, touch panel 1131 can cover display panel 1141, and when touch panel 1131 detects a touch operation thereon or nearby, the touch operation is transmitted to processor 1180 to determine the type of touch event, and then processor 1180 provides a corresponding visual output on display panel 1141 according to the type of touch event. Although in fig. 11, the touch panel 1131 and the display panel 1141 are two independent components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 1131 and the display panel 1141 may be integrated to implement the input and output functions of the mobile phone.
The cell phone 1100 can also include at least one sensor 1150, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1141 according to the brightness of ambient light, and the proximity sensor may turn off the display panel 1141 and/or the backlight when the mobile phone moves to the ear. The motion sensor can comprise an acceleration sensor, the acceleration sensor can detect the magnitude of acceleration in each direction, the magnitude and the direction of gravity can be detected when the mobile phone is static, and the motion sensor can be used for identifying the application of the gesture of the mobile phone (such as horizontal and vertical screen switching), the vibration identification related functions (such as pedometer and knocking) and the like; the mobile phone may be provided with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor.
WiFi belongs to short-distance wireless transmission technology, and the cell phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 1170, and provides wireless broadband internet access for the user. Although fig. 11 shows the WiFi module 1170, it is to be understood that it does not necessarily form part of the handset 1100 and may be omitted as desired.
The processor 1180 is a control center of the mobile phone, and is connected to various parts of the whole mobile phone through various interfaces and lines, and executes various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 1120 and calling data stored in the memory 1120, thereby performing overall monitoring of the mobile phone. In one embodiment, the processor 1180 may include one or more processing units. In one embodiment, the processor 1180 may integrate an application processor and a modem processor, wherein the application processor mainly handles operating systems, user interfaces, application programs, and the like; the modem processor handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated within processor 1180.
The cell phone 1100 also includes a power supply 1190 (e.g., a battery) for providing power to various components, which may be logically coupled to the processor 1180 via a power management system, such that the power management system may be configured to manage charging, discharging, and power consumption. The power supply 1190 includes a plurality of battery units and a plurality of switch units connected to the plurality of battery units in a one-to-one correspondence, and the power supply 1190 may be a power supply device in this embodiment of the application.
In one embodiment, the cell phone 1100 may also include a camera, a bluetooth module, and the like.
In the embodiment of the present application, the processor 1180 included in the electronic device implements the steps of the multi-battery switching method when executing the computer program stored in the memory.
Any reference to memory, storage, database, or other medium used herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (12)
1. The switching method of the multiple batteries is applied to a power supply device, and is characterized in that the power supply device comprises a plurality of battery units and a plurality of switch units which are connected with the battery units in a one-to-one correspondence manner, wherein the battery units are used for storing electric energy and supplying power to loads; the method comprises the following steps:
when the power supply device supplies power to a load, acquiring the electric quantity information of each battery unit;
when the electric quantity information of the first battery unit does not accord with the preset condition, screening any battery unit of which the electric quantity information accords with the preset condition from the idle battery units as a second battery unit; the first battery unit is any battery unit which supplies power for a load currently;
controlling to output a first control instruction to a second switch unit, so that the second switch unit is electrified and conducted, and the second battery unit supplies power to a load;
the delay control outputs a second control instruction to the first switch unit to cut off the first switch unit;
detecting whether a charging function of the power supply device is triggered;
when the charging function of the power supply device is triggered, acquiring a voltage signal of each battery unit;
and sequentially and independently charging the plurality of battery units of which the voltage signals are lower than a second preset value according to the charging priority.
2. The method of claim 1, wherein the obtaining the power information of each battery unit when the power supply device supplies power to the load comprises:
when a first battery unit supplies power to a load, acquiring a voltage signal of each battery unit;
judging whether the voltage signal is higher than a first preset value or not;
if so, the electric quantity information accords with the preset condition;
if not, the electric quantity information does not accord with the preset condition.
3. The method of claim 1, wherein the screening any battery unit with the capacity information meeting a preset condition from the unloaded battery units as a second battery unit comprises:
acquiring power supply priorities of a plurality of battery units;
and when the electric quantity information of the unloaded battery units meets the preset condition, selecting the battery unit with the highest power supply priority from the unloaded battery units as a second battery unit.
4. The method of claim 1, wherein the first control command is a high signal and the second control command is a low signal; or the like, or, alternatively,
the first control instruction and the second control instruction are pulse signals, wherein the number of the pulse signals is different.
5. The method of claim 1, further comprising:
and when the electric quantity information of all the battery units does not accord with the preset condition, outputting a warning signal.
6. The method of claim 1, wherein the sequentially and independently charging the plurality of battery cells with the voltage signals lower than the second preset value according to the charging priority comprises:
screening out at least one battery unit to be charged, of which the voltage signal is lower than a second preset value;
a third battery unit is used as a primary charging object in the at least one battery unit to be charged according to the charging priority, so that a third control instruction is output to a third switching unit connected with the third battery unit, the third switching unit is powered on, and the third battery unit is charged;
detecting a current signal of the third battery cell;
and when the current signal is smaller than a third preset value, sequentially and independently charging the remaining battery units to be charged according to the charging priority.
7. The method of claim 6, wherein the sequentially and independently charging the remaining battery cells to be charged according to the charging priority comprises:
determining a fourth battery unit in the remaining battery units to be charged according to the charging priority, wherein the fourth battery unit is a current primary charging object;
and controlling to output a third control instruction to a fourth switching unit connected with the fourth battery unit, enabling the fourth switching unit to be conducted, delaying to control to output a fourth control instruction to the third switching unit, enabling the third switching unit to be powered off and powered off, and charging the fourth battery unit until the current signals of all the battery units are smaller than a third preset value.
8. A power supply device, comprising:
a plurality of battery cells for supplying power to a load and storing electrical energy;
the switch units are connected with the battery units in a one-to-one correspondence manner;
the sampling detection circuit is respectively connected with the plurality of battery units and is used for detecting the electric quantity information of each battery unit;
the main controller is respectively connected with the sampling detection circuit and the plurality of switch units and is used for receiving the detection result of the sampling detection circuit, screening any battery unit with electric quantity information meeting the preset condition from idle-load battery units as a second battery unit when the electric quantity information of the first battery unit is judged not to meet the preset condition according to the detection result, and controlling and outputting a first control instruction to the second switch unit to electrify and conduct the second switch unit so as to supply power to the load by the second battery unit;
the delay control outputs a second control instruction to the first switch unit to cut off the first switch unit; wherein, the first battery unit is the battery unit that is currently for load power supply, wherein, power supply unit still includes:
the charging detection circuit is connected with the main controller and used for detecting whether a charging function of the power supply device is triggered or not;
the main controller is further configured to acquire a voltage signal of each battery unit when the charging function of the power supply device is triggered, and sequentially and independently charge the plurality of battery units of which the voltage signals are lower than a second preset value according to the charging priority.
9. The power supply device of claim 8, wherein the sample detection circuit comprises:
the voltage sampling unit comprises a plurality of detection ports, and each detection port is respectively connected with the positive electrode of the battery unit and is used for acquiring a voltage signal of the battery unit; the voltage signal is used for representing the electric quantity information.
10. The power supply device of claim 9, wherein the sampling detection circuit further comprises:
and the current sampling unit is respectively connected with the plurality of switch units and the sampling circuit and is used for collecting current signals of the battery units connected with the switch units when the battery units are electrified and conducted.
11. An electronic device, comprising the power supply device according to any one of claims 8 to 10, wherein the power supply device is configured to supply power to the electronic device.
12. An electronic device is characterized by comprising a plurality of battery units, a plurality of switch units, a memory and a processor, wherein the switch units are connected with the battery units in a one-to-one correspondence manner; the processor is respectively connected with the plurality of battery units, the plurality of switch units and the memory; the memory has stored therein a computer program which, when executed by the processor, causes the processor to carry out the steps of the method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810614818.0A CN108649658B (en) | 2018-06-14 | 2018-06-14 | Multi-battery switching method, power supply device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810614818.0A CN108649658B (en) | 2018-06-14 | 2018-06-14 | Multi-battery switching method, power supply device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108649658A CN108649658A (en) | 2018-10-12 |
CN108649658B true CN108649658B (en) | 2021-01-12 |
Family
ID=63752546
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810614818.0A Active CN108649658B (en) | 2018-06-14 | 2018-06-14 | Multi-battery switching method, power supply device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108649658B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB2578828B (en) * | 2018-10-22 | 2021-03-10 | O2Micro Inc | Managing power in a portable device comprising multiple batteries |
US11677260B2 (en) | 2018-10-22 | 2023-06-13 | O2Micro Inc. | Managing power in a portable device comprising multiple batteries |
CN109212424B (en) * | 2018-11-13 | 2024-05-07 | 上海艾为电子技术股份有限公司 | Battery full detection circuit, method for detecting battery full and electronic device |
CN109802439B (en) * | 2019-01-28 | 2020-10-02 | 飞依诺科技(苏州)有限公司 | DCDC power grid-connection method and system based on pluggable battery |
CN110308780B (en) * | 2019-07-18 | 2020-10-13 | Oppo(重庆)智能科技有限公司 | Battery management method, system, terminal device and storage medium |
CN111987764B (en) * | 2020-08-10 | 2022-03-25 | Tcl通讯(宁波)有限公司 | Discharge control method and device, storage medium and mobile terminal |
CN113131562B (en) * | 2021-03-10 | 2022-11-25 | 青岛小鸟看看科技有限公司 | Charging control method and device for electronic equipment and electronic equipment |
TWI779618B (en) * | 2021-05-20 | 2022-10-01 | 宏碁股份有限公司 | Battery module for extending service life |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103879365A (en) * | 2014-03-26 | 2014-06-25 | 湖北圣犬电池科技有限公司 | Hybrid power system for controlled vehicles |
CN107565620A (en) * | 2016-06-30 | 2018-01-09 | 北京小米移动软件有限公司 | Charge control method, device, charging equipment and electronic equipment |
-
2018
- 2018-06-14 CN CN201810614818.0A patent/CN108649658B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103879365A (en) * | 2014-03-26 | 2014-06-25 | 湖北圣犬电池科技有限公司 | Hybrid power system for controlled vehicles |
CN107565620A (en) * | 2016-06-30 | 2018-01-09 | 北京小米移动软件有限公司 | Charge control method, device, charging equipment and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN108649658A (en) | 2018-10-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108649658B (en) | Multi-battery switching method, power supply device and electronic equipment | |
CN110797925B (en) | Battery control system and method and electronic equipment | |
US11201359B2 (en) | Charging control method and apparatus, and computer readable storage medium | |
CN108899952B (en) | Multi-battery charging and discharging device and mobile terminal | |
CN110797924B (en) | Battery control system and method and electronic equipment | |
CN106549451B (en) | A kind of wireless charging method and device | |
CN109217411B (en) | Charging method and device and electronic equipment | |
US11476680B2 (en) | Device and method for charging control, electronic device | |
US10663521B2 (en) | Method and device for ascertaining required charging time | |
CN112152275B (en) | Battery charging method and device, electronic equipment and computer readable storage medium | |
CN109217409B (en) | Charging method and device and electronic equipment | |
CN107910912B (en) | Charging circuit and charging method | |
US11050282B2 (en) | Power supply control method and device, storage medium and electronic device | |
CN111478378B (en) | Protection circuit, charging control device and method, and electronic device | |
CN110994052B (en) | Method and device for prolonging battery endurance, storage medium and terminal equipment | |
CN111614131B (en) | Electronic device and discharge control method | |
CN111613762B (en) | Battery pack, electronic device, and charge/discharge control method | |
CN111384754B (en) | Charging method, charging device, storage medium and mobile terminal | |
CN112542867A (en) | Mobile terminal power supply control method and device, terminal equipment and storage medium | |
CN112256610B (en) | Connection control method, system, storage medium and mobile terminal | |
CN112865228A (en) | Battery protection circuit and mobile terminal | |
CN112558749A (en) | Power supply control method and device, storage medium and mobile 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |