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.
Step 202, when the power supply device supplies power to a load, acquiring the electric quantity information of each battery unit.
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.
Step 204, 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 unloaded battery units as a second battery unit; the first battery unit is a battery unit which is currently used for supplying power to a load.
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:
step 302, when a first battery unit supplies power to a load, acquiring a voltage signal of each battery unit.
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.
Step 304, determining whether the voltage signal is higher than a first preset value.
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:
step 402, acquiring power supply priorities of a plurality of battery units.
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.
Step 404, when the electric quantity information of the unloaded battery units all meet a preset condition, selecting the battery unit with the highest power supply priority from the unloaded battery units as a second battery unit.
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:
step 502, controlling to output a first control instruction to the second switch unit, so that the second switch unit is powered on and powered on, and the second battery unit supplies power to a load.
Step 504, the delay control outputs a second control command to the first switch unit, so that the first switch unit is powered off and disconnected.
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:
step 602, when the power supply device supplies power to a load, acquiring power information of each battery unit.
Step 604, when the electric quantity information of the first battery unit does not meet the preset condition, any battery unit with the electric quantity information meeting the preset condition is screened from the unloaded battery units to serve as a second battery unit.
Step 606, respectively outputting a control instruction to a first switch unit connected with the first battery unit and a second switch unit connected with the second battery unit to control the on-off of the first switch unit and the second switch unit, so that the second battery unit supplies power for a load.
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.
Step 608, detecting whether to trigger a charging function of the power supply device.
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.
Step 610, when the charging function of the power supply device is triggered, acquiring a voltage signal of each battery unit.
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:
step 702, screening out at least one battery unit to be charged, of which the voltage signal is lower than a second preset value.
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.
Step 706, detecting a current signal of the third battery 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:
step 802, 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.
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.
Audio circuitry 1160, speaker 1161 and microphone 1162 may provide an audio interface between a user and a cell phone. The audio circuit 1160 may transmit the electrical signal converted from the received audio data to the speaker 1161, and convert the electrical signal into a sound signal for output by the speaker 1161; on the other hand, the microphone 1162 converts the collected sound signal into an electrical signal, and the electrical signal is received by the audio circuit 1160 and converted into audio data, and then the audio data is processed by the audio data output processor 1180, and then the audio data is sent to another mobile phone through the RF circuit 1110, or the audio data is output to the memory 1120 for subsequent processing.
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.