CN110875610A - Electronic equipment power supply method and device, electronic equipment and storage medium - Google Patents
Electronic equipment power supply method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN110875610A CN110875610A CN201811003335.3A CN201811003335A CN110875610A CN 110875610 A CN110875610 A CN 110875610A CN 201811003335 A CN201811003335 A CN 201811003335A CN 110875610 A CN110875610 A CN 110875610A
- Authority
- CN
- China
- Prior art keywords
- battery
- power supply
- life
- service life
- electric quantity
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 68
- 230000005611 electricity Effects 0.000 claims description 34
- 230000002159 abnormal effect Effects 0.000 claims description 27
- 230000002441 reversible effect Effects 0.000 claims description 22
- 238000001514 detection method Methods 0.000 description 35
- 230000005856 abnormality Effects 0.000 description 20
- 239000000446 fuel Substances 0.000 description 13
- 230000000903 blocking effect Effects 0.000 description 12
- 238000010586 diagram Methods 0.000 description 8
- 238000004891 communication Methods 0.000 description 5
- 238000007599 discharging Methods 0.000 description 5
- 230000032683 aging Effects 0.000 description 4
- 230000008859 change Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 230000003993 interaction Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- WHXSMMKQMYFTQS-UHFFFAOYSA-N Lithium Chemical compound [Li] WHXSMMKQMYFTQS-UHFFFAOYSA-N 0.000 description 2
- 230000009471 action Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 229910052744 lithium Inorganic materials 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 230000002411 adverse Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000009977 dual effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005265 energy consumption Methods 0.000 description 1
- 230000005669 field effect Effects 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000002035 prolonged effect Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
- 230000008054 signal transmission Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
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/0063—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with circuits adapted for supplying loads from the battery
-
- 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
-
- 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/36—Arrangements using end-cell switching
Landscapes
- Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
- Secondary Cells (AREA)
Abstract
The embodiment of the disclosure discloses an electronic equipment power supply method and device, electronic equipment and a storage medium. The method comprises the following steps: obtaining a first battery life of a first battery and obtaining a second battery life of a second battery; determining a difference between the first battery life and the second battery life according to the first battery life and the second battery life; and if the service life difference value is larger than the service life difference threshold value, supplying power by using the battery with the long service life in the first battery and the second battery.
Description
Technical Field
The present disclosure relates to the field of electronic technologies, but not limited to the field of electronic technologies, and in particular, to a method and an apparatus for supplying power to an electronic device, and a storage medium.
Background
The power consumption of the electronic device is provided by electric energy, for example, a battery is generally used for providing electric energy in mobile devices such as a mobile phone, a tablet computer, or a smart band. But the battery capacity directly determines the maximum cruising power of the electronic device. In order to improve the cruising ability of electronic equipment, especially the cruising ability of mobile equipment, in the related art, some electronic equipment is provided with two batteries, when the batteries are used for supplying power to the equipment, the electric quantities of the two batteries are compared, and if the electric quantity difference is greater than a specific value, the battery with larger electric quantity is preferentially adopted for supplying power. By adopting the mode, the cruising ability of the electronic equipment is improved to a certain extent, and the standby time of the electronic equipment is prolonged. But one of the two cells ages significantly faster than the other; resulting in a problem of imbalance in the life span of the battery.
Disclosure of Invention
The embodiment of the disclosure is expected to provide an electronic device power supply method and device, an electronic device and a storage medium.
The technical scheme of the disclosure is realized as follows:
an electronic device power supply method comprising:
obtaining a first battery life of a first battery and obtaining a second battery life of a second battery;
determining a difference between the first battery life and the second battery life according to the first battery life and the second battery life;
and if the service life difference value meets a preset condition, selecting the first battery or the second battery to supply power.
An electronic device power supply apparatus comprising:
the first acquisition module is used for acquiring the first battery life of the first battery and acquiring the second battery life of the second battery;
the first determining module is used for determining the service life difference value of the first battery and the second battery according to the first battery service life and the second battery service life;
and the power supply module is used for selecting the first battery or the second battery to supply power if the service life difference value meets a preset condition. .
An electronic device, comprising:
the circuit board is provided with a processor and a system power supply pin;
a first battery cell having a first electrode and a second electrode,
the input end of the first power supply circuit is connected with the output end of the first battery, and the output end of the first power supply circuit is connected with the system power supply pin;
a second battery for storing a second electric power to be supplied to the battery,
the input end of the second power supply circuit is connected with the output end of the second battery, and the output end of the second power supply circuit is connected with the system power supply pin;
a first reverse cut-off device on the first power supply circuit for preventing the second battery from supplying power to the first battery;
a second reverse cut-off device on the second power supply circuit for preventing the first battery from supplying power to the second battery
And the processing module is connected with the first power supply circuit and the second power supply circuit and used for selecting the first battery or the second battery to supply power if the service life difference value of the first battery and the second battery meets a preset condition.
An electronic device, comprising:
a memory;
and the processor is connected with the memory and is used for realizing the power supply method of the electronic equipment by executing the computer executable instructions stored on the memory.
A computer storage medium having stored thereon computer-executable instructions; after being executed, the computer-executable instructions can realize the power supply method of the electronic equipment.
The electronic equipment power supply method provided by the embodiment of the disclosure can acquire the battery life of two batteries when the double batteries are used for supplying power, and selects the battery with a long battery life for preferential power supply according to the calculation of the battery life difference, so that the problem that a certain battery is frequently selected because the batteries for supplying power are simply selected according to the electric quantity in the related technology, the reduction rate of the battery life of the two batteries is not matched, and the battery life is unbalanced can be solved. In the embodiment of the present disclosure, the battery for supplying power to the electronic device is selected according to the battery life, so that the problem of unbalanced battery life of the plurality of batteries for supplying power to the electronic device can be solved well, and the balance of the battery life of 2 or more than 2 batteries is improved.
Drawings
Fig. 1A is a schematic flowchart of a first method for supplying power to an electronic device according to an embodiment of the present disclosure;
fig. 1B is a schematic flowchart of a second method for supplying power to an electronic device according to an embodiment of the disclosure
Fig. 2 is a schematic flowchart of a third method for supplying power to an electronic device according to an embodiment of the disclosure;
fig. 3A is a schematic flowchart of a fourth method for supplying power to an electronic device according to an embodiment of the disclosure;
fig. 3B is a schematic flowchart of a fifth method for supplying power to an electronic device according to an embodiment of the disclosure;
fig. 3C is a schematic flowchart of a sixth method for supplying power to an electronic device according to an embodiment of the disclosure;
fig. 4 is a schematic structural diagram of a power supply apparatus for an electronic device according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of another electronic device power supply apparatus provided in the embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of another electronic device provided in the embodiment of the present disclosure;
fig. 8 is a schematic flowchart of a seventh method for supplying power to an electronic device according to an embodiment of the present disclosure;
fig. 9 is a schematic flowchart of an eighth method for supplying power to an electronic device according to an embodiment of the present disclosure;
fig. 10 is a schematic structural diagram of another electronic device provided in an embodiment of the present disclosure;
fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 12 is a schematic structural diagram of a protection circuit according to an embodiment of the disclosure;
fig. 13 is a schematic flowchart of a ninth electronic device power supply method according to an embodiment of the disclosure;
fig. 14 is a schematic flowchart of a tenth electronic device power supply method according to an embodiment of the disclosure;
fig. 15 is a charging schematic diagram of a battery charging according to an embodiment of the disclosure.
Detailed Description
The technical solution of the present disclosure is further described in detail below with reference to the drawings and specific embodiments of the specification.
As shown in fig. 1A, the present embodiment provides a power supply method for an electronic device, including:
step S110: obtaining a first battery life of a first battery and obtaining a second battery life of a second battery;
step S120: determining a difference between the first battery life and the second battery life according to the first battery life and the second battery life;
step S130: and if the service life difference value meets a preset condition, selecting the first battery or the second battery to supply power.
The power supply method of the electronic equipment can be applied to various electronic equipment powered by the storage battery. The electronic device may include: a mobile device. The mobile device may include: vehicle-mounted mobile equipment and man-mounted mobile equipment. The in-vehicle mobile device may be an electronic device mounted on various vehicles, for example, a navigation device. The human-borne device may include: mobile phones, tablet computers, wearable devices, and the like; the wearable device may include: smart band or smart watch, etc.
The first battery and the second battery are two independent batteries which can respectively supply power to the electronic equipment. For example, the first battery and the second battery are two batteries in the same electronic device, or the first battery and the second battery are two batteries connected to the same electronic device.
The first battery and the second battery may be batteries with the same battery parameters, or batteries with different battery parameters. For example, batteries of the same battery parameters may include: the batteries with the same type and the same calibrated capacity are from the same manufacturer. Batteries with different battery parameters may include: batteries of different types from the same manufacturer, batteries from different manufacturers.
The battery parameters of the first battery and the second battery can be different, but the power supply parameters can be the same, so that the first battery and the second battery can be mutually standby batteries. The power supply parameters herein may include: supply voltage and/or supply current to be able to supply the same electronic device with the voltage or current it requires.
For example, the power supply pins of the first battery and the second battery are connected to the system power supply pin of the electronic device, so that the first battery and the second battery can provide the electronic device with the electric quantity required for generating power consumption through the connection of the power supply pins and the system power supply pin. The system power supply pin may be provided on a main board of the electronic device, and the main board of the electronic device supplies the voltage or the current required by each functional unit through conversion of the power supply circuit or the like after receiving power supply from the first battery or the second battery.
In the present embodiment, the battery lives of the first battery and the second battery are respectively obtained, and for the sake of distinction and convenience, the battery life of the first battery is collectively referred to as the first battery life, and the battery life of the second battery is collectively referred to as the second battery life in the present embodiment.
The calculation formula of the first battery life and the second battery life may be as follows:
the first battery life is equal to the current capacity of the first battery/the calibrated capacity of the first battery;
and the second battery life is the current capacity of the second battery/the calibrated capacity of the second battery.
The current capacity of the first battery is the maximum electric quantity which can be charged by the first battery currently; the calibrated capacity of the first battery is the standard capacity set when the first battery leaves a factory. Similarly, the current capacity of the second battery is the maximum electric quantity which can be charged by the second battery; the calibrated capacity of the second battery is the standard capacity set when the second battery leaves the factory.
The more severely a battery ages or has a shorter endurance, the shorter the battery life of the battery. The longer the battery is used or the higher the frequency of use, the more severe the aging and the lower the battery life.
And if the first battery life is longer than the second battery life, the first battery is a battery with a long battery life, and the second battery is a battery with a short battery life. And if the first battery life is shorter than the second battery life, the second battery is a battery with a long battery life, and the first battery is a battery with a short battery life. In the disclosed embodiment, the high battery life and the low battery life are compared by battery life.
As shown in fig. 1B, the step S130 may include a step S131; the step S131 may include:
if the service life difference value is larger than a service life difference threshold value, a first battery with a long service life is used for supplying power; wherein the first battery is within a set discharge temperature operating interval.
The life difference threshold may include: the preset threshold value may be a threshold value received from another device; or dynamically learning and determining by using a learning model built in the electronic equipment.
The value range of the life difference threshold value can be 0 or a positive number; if the service life difference threshold is 0, the service lives of the two batteries are inconsistent, and the battery with the long service life is directly used for supplying power. If the life difference threshold is positive, for example, the life difference threshold may be p × q; the q may be a current capacity of the first battery or the second battery, or a weighted average of current capacities of the first battery and the second battery, or a median of current capacities of the first battery and the second battery; in summary, the q may be determined according to the current capacity of the first battery and/or the second battery. P is a number between 0 and 1 and can be: 2% -3% or 2% -5% etc.
If the value of the life difference threshold is 0, the step S130 may include: and if the difference of the first battery life minus the second battery life is greater than zero, selecting a first battery for power supply.
If the life difference threshold is set to a positive number, ping-pong switching between the first battery and the second battery can be avoided.
If the two batteries supply power, one is defaulted as a main battery, and the other is defaulted as an auxiliary battery. If the electronic equipment is restarted or the difference value of the electric quantities of the two batteries is not large, the main battery is preferentially selected to supply power, so that the use frequency of the main battery is greatly improved; on the other hand, the user sees that the electric quantity of a certain battery has descended a lot or two total electric quantities of battery have descended a lot, just supply power to the battery again, so, can make main battery and reserve battery's electric quantity difference reduce, owing to select for use the priority of main battery, can the preferred main battery power supply of selecting for use again, so, can make main battery age rapidly, than assisting the ageing degree of battery height and ageing fast, the battery life-span imbalance of main battery and auxiliary battery just has produced. In the present embodiment, when it is considered which battery is used for power supply, the battery life is considered, and if the difference in battery life between the two batteries is greater than the life difference threshold, the battery with the longer battery life is used for power supply. Therefore, when the battery for supplying power to the electronic equipment is selected, the service life of the battery is taken as a reference factor and is not simply selected based on the current electric quantity or the electric quantity difference, so that the phenomenon of unbalanced service life caused by repeatedly selecting the battery with low service life for supplying power can be reduced, and the balance of the service life of the battery between the first battery and the second battery is improved.
In some embodiments, the reference priority for battery life is higher than the reference priority for power; in this way, a battery with a low battery life is repeatedly selected as a power supply battery to supply power to the electronic device without considering the battery life or giving priority to the amount of power. For example, if the difference between the first battery life and the second battery life is greater than the difference threshold, as long as the current electric quantity of the first battery is not too low (e.g., lower than the preset electric quantity value), the first battery may be selected to supply power currently even if the current electric quantity of the second battery is higher than the current electric quantity of the first battery; to achieve a balance of battery life of the first and second batteries.
In some embodiments, the step S110 may include: the method comprises the steps of executing a prime number step S110 and a prime number step S120 every time a battery of the electronic device is charged, and switching settings of a primary main battery and a secondary battery according to a service life difference calculated in the step S120 in the step S130; and then the selected main battery supplies power. Therefore, by means of the method, the problem of unbalanced service life of the battery caused by fixing a certain battery for supplying power can be reduced, and the service life balance of the first battery and the second battery connected or contained in the electronic equipment is improved.
For example, the step S130 may include:
setting the battery with long service life as a main battery and setting the battery with short service life as an auxiliary battery; before the main battery or the auxiliary battery is replaced based on the service life of the battery next time, if the current electric quantity of the main battery is not too low or abnormal in power supply, the main battery is preferentially used for supplying power, so that the power supply of the battery with long service life is realized on one hand, and the balance of the service life of the battery can be well realized on the other hand.
The step S130 may include: the processor or power supply controller of the electronic device controls which battery supplies power based on the battery life of the two batteries.
The power supply in the embodiments of the present disclosure is to provide electric energy.
Powering with a battery having a high battery life at step S130 may include:
switching on the power supply connection of the battery with long service life and switching off the power supply connection of the battery with short service life;
the power supply of the battery with long service life is enabled, and the power supply of the battery with short service life is disabled.
Thus, the battery with long battery life is enabled, the power supply connection is conducted, and power can be successfully supplied to the electronic equipment. At the same time, the battery-powered connection with a low battery life is disabled and disconnected by the battery with a low battery life, so that the power supply of the battery with a low battery life can be avoided.
Thus, the battery life of the battery can be gradually reduced by the power supply of the battery with long battery life; and the battery with short service life can be maintained or the shortening speed of the service life of the battery can be slowed down by the non-power supply of the battery with short service life, so that the balance of the service life of the battery is gradually achieved.
In some embodiments, as shown in fig. 2, the method further comprises:
step S140: if the service life difference value is smaller than or equal to the service life difference threshold value, utilizing a second battery with low battery life in the first battery and the second battery to supply power; and the second battery which is selected to supply power is in a set discharge temperature working interval.
If the service life difference value is smaller than or equal to the service life difference threshold value, the second battery with the low battery service life can be used for supplying power, and the selected second battery for supplying power works in the set discharge temperature working interval, so that power supply abnormity of the battery for supplying power caused by overhigh or overlow discharge temperature is reduced.
In some embodiments, as shown in fig. 3A, the method further comprises:
step S141:
and if the current electric quantity of the first battery with the long service life is lower than the electric quantity threshold value and the current electric quantity of the second battery with the short service life is higher than the electric quantity threshold value, the second battery is used for supplying power.
In other embodiments, the method further comprises:
step S142: and the current electric quantity ratio of the first battery with the long service life is lower than a ratio threshold, and the current electric quantity ratio of the second battery with the short service life is higher than the ratio threshold, so that the second battery is used for supplying power.
In still other embodiments, the method further comprises:
step S143: and the power supply voltage of the first battery with long battery life is lower than a voltage threshold, and the power supply voltage of the second battery with short battery life is not lower than the voltage threshold, and the second battery is used for supplying power.
Thus, in some embodiments, the method may comprise:
and if the power supply parameter value of the battery with the long service life is lower than the preset parameter value and the second power supply parameter value of the battery with the short service life is not lower than the preset parameter value, utilizing the battery with the short service life to supply power.
In this embodiment, the power supply parameter value may be various parameters representing the current electric quantity or the current power supply condition of the corresponding battery, for example, the power supply parameter value may be the current electric quantity, the current electric quantity ratio, or the power supply voltage of the first battery or the second battery directly.
If the battery with the current small electric quantity is used for continuously supplying power, the power supply problems of low power supply voltage, small power supply current and the like can be caused. If the power supply voltage is low or the power supply battery is small, the operating frequency of the electronic device may be reduced, so that the response rate of the electronic device may be affected, and in order to avoid the problem of poor user experience, in this embodiment, if the current electric quantity of the battery with a long battery life is reduced to be less than a preset electric quantity value, and if the current electric quantity of the battery with a short battery life is higher than the preset electric quantity value, the battery with a short battery life is used for supplying power, so as to ensure normal power supply of the electronic device.
In some embodiments, if the power supply parameter value of the battery with a long battery life is lower than a preset parameter value, and the second power supply parameter value of the battery with a short battery life is not lower than the preset parameter value, the power supply by using the battery with a short battery life includes:
and if the current electric quantity of the battery with the long service life is lower than a preset electric quantity value and the current electric quantity of the battery with the short service life is higher than the preset electric quantity value, the battery with the short service life is utilized for supplying power.
For example, the current capacity of the battery with a long battery life is: the amount of electricity stored by the battery at the current moment; if the amount of electricity is lower than a predetermined amount of electricity, the predetermined amount of electricity may be a predetermined amount of electricity consumed by the battery, for example, the predetermined amount of electricity may be: q (1%) or Q (5%); the Q may be a current capacity of the corresponding battery.
In other embodiments, if the power supply parameter value of the battery with a long battery life is lower than a preset parameter value, and the second power supply parameter value of the battery with a short battery life is not lower than the preset parameter value, the supplying power by using the battery with a short battery life may include:
and the current electric quantity ratio of the battery with the long service life is lower than a first ratio threshold, and the current electric quantity ratio of the battery with the short service life is higher than the first ratio threshold, so that the battery with the short service life is used for supplying power.
The current electric quantity ratio is as follows: current charge/current capacity.
The first ratio threshold may be a preset electric quantity ratio, for example, 1%, 5%, or 6%.
In some further embodiments, if the power supply parameter value of the battery with a long battery life is lower than a preset parameter value, and the second power supply parameter value of the battery with a short battery life is not lower than the preset parameter value, the supplying power by using the battery with a short battery life may include:
the power supply voltage of the battery with long service life is lower than the preset voltage, the power supply voltage of the battery with short service life is not lower than the preset voltage, and the battery with short service life is used for supplying power.
The voltage supplied by the battery to the electronic device is generally a predetermined value, for example, 3.3V, 5.5V or other voltages. If the current capacity of the battery is insufficient, the output voltage may not reach the preset value. In this embodiment, the preset voltage may be a system voltage of the electronic device, and in order to avoid affecting normal operation of the electronic device, when a supply voltage of a battery with a long battery life is lower than the preset voltage and a supply voltage of a battery with a short battery life is higher than the preset voltage, the battery with a short battery life is used for supplying power.
In summary, in the embodiment of the present disclosure, if the electronic device currently utilizes a battery with a long battery life to supply power, and detects that a power supply parameter value of the battery with the long battery life is lower than a preset parameter value, and a second power supply parameter value of the battery with the short battery life is not lower than the preset parameter value, a processor or a power supply circuit of the electronic device automatically switches the currently-supplied battery; therefore, the problem that the working frequency of the electronic equipment is reduced due to the fact that the current electric quantity is too low and the battery is powered is solved, the performance stability of the electronic equipment is improved, and meanwhile the high cruising ability of the double batteries is fully utilized.
In some embodiments, as shown in fig. 3B, the method further comprises:
step S101: detecting a first state parameter of a first battery with a long service life;
step S102: if the first state parameter indicates that the first battery is abnormally powered, a second battery with a low battery life is used for powering;
step S103: re-detecting the first state parameter of the first battery with the long service life at intervals of preset duration;
step S104: and if the redetected first state parameter shows that the battery with the long service life is normally powered, switching to the first battery for power supply.
If the service life difference value is larger than a service life difference threshold value and the first state parameter indicates that the battery with the long service life is normally powered, the first battery with the long service life is used for supplying power; otherwise, a second battery with a low battery life is used for supplying power. And if the detected first state parameter indicates that the first battery is normally powered, switching back to the power supply by using the first battery so as to better balance the battery life among the batteries.
If the first state parameter indicates that the battery has a high battery life and is abnormally powered, for example, the battery temperature is too high, the battery temperature of the battery can be recovered to the normal temperature after a period of time; for another example, the supply voltage or the supply current fluctuates, but after a certain period of time, the supply voltage or the supply current of the battery returns to normal. At this time, in order to achieve the balance of the battery life between the two batteries as much as possible, in the embodiment of the present disclosure, the first state parameter with a high battery life is detected again after a preset time interval. And if the first state parameter of the repeated detection shows that the battery with the long service life is normally powered, switching back to the power supply of the battery with the long service life.
In some embodiments, as shown in fig. 3C, the method may further comprise:
step S201: detecting a second state parameter of the battery with low battery life;
step S202: if the first state parameter indicates that the first battery with the long battery life is abnormal in power supply, and the second state parameter indicates that the second battery with the short battery life is abnormal in power supply, detecting the first state parameter of the first battery with the long battery life again;
step S203: and if the redetected first state parameter shows that the first battery with the long service life supplies power normally, supplying power by using the first battery with the long service life.
In this embodiment, the first state parameter may be: a parameter describing a power supply state of the first battery, or a parameter describing an attribute state of the first battery.
In some embodiments, the first state parameter may include: the battery temperature of the first battery during power supply is referred to as the first battery temperature in the embodiment of the present disclosure.
In other embodiments, the first state parameter may include, in addition to a battery temperature when the battery is powered: the output level of the battery identification pin; when the battery is normally powered and the battery is abnormally powered, the output levels of the battery identification pins are different. Assuming that a battery for supplying power to the current electronic equipment is a first battery, determining that the battery needs to be switched to a second battery for subsequent power supply according to parameters such as battery life and/or battery capacity, and detecting that the level of the battery is detected by the non-output representation of a battery identification pin of the second battery needing to be switched, namely the second battery is not detected, if the second battery is not detected, the second battery may not be installed or the battery is installed loosely and the like, and if the battery is switched to the second battery for power supply, a phenomenon that the normal power supply cannot be performed is generated; thereby causing the phenomena of shutdown of the electronic equipment due to power failure and the like.
In still other embodiments, the first state parameter may further include: power supply parameters such as power supply voltage and/or power supply current during power supply; if the power supply connection of a certain battery is broken, or the electronic device is in the process of maintenance or the power supply connection is short-circuited due to collision, the power supply voltage and/or the power supply current may be too large or too small. Therefore, the battery with abnormal power supply parameters is used for supplying power, so that on one hand, the battery can be damaged, and the service life of the battery is shortened; on the other hand, abnormal use of the electronic device, such as system burn-out or automatic shutdown of the electronic device, may occur. Therefore, in the embodiment of the present application, the state parameter is also detected before the first battery or the second battery is used for supplying power. For example, at least a first state parameter of a battery having a high battery life is detected. If the first state parameter indicates that the power supply of the battery is normal, the battery with the long battery life can be directly used for supplying power without detecting the state parameter of the battery with the short battery life.
In summary, in the present embodiment, the state parameters of the battery include: battery temperature, but is not limited to battery temperature.
For example, the first state parameters include: a first battery temperature at which the first battery supplies power; the second state parameter of the second battery includes: a second battery temperature at which the second battery is powered.
In some embodiments, the battery temperature may be between-20 and 60 degrees celsius when the battery is powered, and if the battery temperature is above 60 degrees celsius or below-20 degrees celsius, this indicates a battery powered difference.
In other embodiments, the normal temperature of the battery power supply may be set between 10 and 45 degrees celsius, and if the battery temperature is higher than 45 degrees celsius, the battery temperature may be considered too high, and the battery life may be affected much more negatively by continuing to supply power. If the battery temperature is less than 10 degrees celsius, the battery temperature may be considered too low, which, although may continue to provide power, may also have a negative impact on battery life. When the power is supplied at 10 degrees celsius or more or 45 degrees celsius, the power may be unstable, and the operating system or the overall operation performance of the electronic device may be adversely affected. In this way, in the present embodiment, the battery temperature other than 10 to 45 degrees celsius may be regarded as the power supply abnormal temperature, and the battery temperature between 10 and 45 degrees celsius may be regarded as the power supply normal temperature. Of course, the above are only examples, and the specific temperature interval in which power supply is normal may be set according to performance parameters and power supply requirements of different batteries.
In some embodiments, the first status parameter and the second status parameter are sequentially detected, for example, the first status parameter is detected first, and if the first status parameter indicates that the battery with a long battery life is normally powered, the second status parameter is not detected. And if the first state parameter indicates that the battery with long service life is abnormal in power supply, detecting the second state parameter. Thus, if the battery power supply abnormality is a large probability event relative to the battery power supply normality, unnecessary detection of the second state parameter can be reduced.
In other embodiments, the first state parameter and the second state parameter may be detected separately, independent of each other, or may not have a certain precedence relationship. For example, the processor of the electronic device controls the sensors to detect the state parameters of the two batteries simultaneously, and thus, the synchronous detection of the first state parameter and the second state parameter can be realized. If the first state parameter and the second state parameter are detected synchronously, when the second state parameter needs to be used, temporary detection is not needed, and therefore when the first state parameter indicates that power supply is abnormal, whether the corresponding battery supplies power normally can be judged according to the detected second state parameter.
A thermistor connected to the battery may be provided in the vicinity of the battery when detecting the temperature of the battery; the resistance value of the thermistor changes along with the change of the temperature, so that the battery temperature of the corresponding battery can be calculated based on the first corresponding relation between the thermistor and the temperature and the second corresponding relation between the current and the resistance value of the thermistor by providing a certain voltage to the thermistor and detecting the current flowing on the thermistor.
In other embodiments, a temperature sensor which is packaged and can directly output a temperature value can be arranged in or on the battery.
In summary, there are many ways to detect the battery temperature. While the detection of other state parameters, for example the detection of the supply voltage or supply current, can be detected by a voltmeter or an ammeter.
Therefore, the first state parameter of the first battery with the long service life is detected without interval preset time, if the second state parameter of the second battery indicates that the second battery is abnormal in discharge, the first state parameter of the first battery is detected again, and if the first state parameter indicates that the first battery is normal in power supply, the first battery is switched to the first battery for power supply, so that the normal power supply is ensured on one hand, and the balance of the service lives of the batteries can be realized as far as possible on the other hand.
In some embodiments, the method further comprises:
re-detecting the first state parameter of the battery with long service life after a preset time interval;
and if the redetected first state parameter shows that the battery with the long service life is normally powered, switching to the battery with the long service life for powering.
In some embodiments, the method further comprises:
if the first state parameter indicates that the battery with the long service life is abnormal in power supply and the second state parameter indicates that the battery with the short service life is abnormal in power supply, detecting the first state parameter of the battery with the long service life again;
and if the redetected first state parameter shows that the battery with the long service life is normally powered, utilizing the battery with the long service life to supply power.
If the first state parameter and the second state parameter respectively indicate the corresponding power supply abnormality, which may be caused by the abnormality of the state parameter detection or the abnormality of the reading of the state parameter, in order to eliminate the abnormality and determine the power supply abnormality, at least the first state parameter may be re-detected. Of course, sometimes the power supply abnormality of the battery may be short time, may be caused by reasons such as the rear cover of the electronic device is not folded, and if the reasons are eliminated, the power supply of the battery is automatically recovered to be normal. In order to reduce the occurrence of the above phenomenon, by means of re-detection or re-reading, if the re-detected first state parameter indicates that the battery with a long battery life is normally powered, the battery with the long battery life is used for supplying power.
In some embodiments, the method further comprises:
if the first state parameters of the preset number are continuously detected to indicate that the battery power supply with the long service life is abnormal, executing a first abnormal processing operation;
and/or the presence of a gas in the gas,
and if the second state parameters of the preset number are continuously detected, the batteries with the low battery life are indicated, and second exception handling operation is executed.
For example, the detection of the first state parameter for 3 or 4 consecutive times indicates a battery power supply abnormality with a low battery life, which may indicate that the state or attribute of the battery itself is abnormal, or that the power supply circuit of the battery is abnormal, etc. Therefore, in the present embodiment, a first exception handling operation is performed; the first exception handling operation may include: outputting a first abnormality indication that the battery is abnormal; and restarting the electronic equipment to solve the power supply abnormality caused by parameter configuration such as battery initialization parameter configuration error.
The first exception handling operation may further comprise: starting battery abnormality detection, locating abnormal points of power supply abnormality, and the like.
The first exception handling operation may further include: and reporting predetermined parameters to the cloud server, for example, the first state parameters and the like which are continuously detected for multiple times, and judging whether the battery is abnormal or not by the cloud server.
In summary, the first exception handling operation may be: various operations for excluding the power supply abnormality.
In the present embodiment, the plurality of second state parameters, which are also continuously detected, indicate a battery-powered abnormality in which the battery life is low, and an abnormality processing operation, which is referred to as a second abnormality processing operation for the purpose of distinction from a battery in which the battery life is high, is also performed. The first and second exception handling operations may be the same or different.
In some embodiments, if it is determined that the power supply abnormality of a certain battery is due to a fault of the battery itself, the abnormality flag may be used in the power supply control logic of the electronic device to indicate the abnormality of the battery, so that the electronic device may actively select a normal battery for power supply, and if the abnormality flag indicates that one of the batteries is abnormal, in order to prolong the standby time, operations such as calculating the battery life may not be performed any more, thereby reducing power consumption caused by the operations and accelerating aging of the battery.
In some embodiments, the step S110 may include:
determining a first current capacity of the first battery and a second current capacity of the second battery;
and respectively acquiring the first battery life and the second battery life according to the first current capacity and the second current capacity.
The current capacity of the first battery is: the current full charge of the first battery; the current capacity of the second battery is: the current full charge of the second battery. A full battery indicates that the battery will not continue to store power, and that the stored power will not continue to rise, even if the battery continues to be charged.
The electric quantity when the electric quantities of the first battery and the second battery are fully charged can represent the current capacity of the first battery and the current capacity of the second battery; therefore, in the present embodiment, the first battery life and the second battery life are obtained if the first battery and the second battery are fully charged.
The first current capacity of the first battery and the second current capacity of the second battery are obtained, the first calibration capacity and the second calibration capacity can be obtained through the models of the first battery and the second battery, and the service life of the first battery and the service life of the second battery can be calculated quickly and simply.
In this embodiment, the first battery life is equal to a first calibrated capacity over a first current capacity ratio; the second battery life is equal to a second calibrated capacity over a second current capacity ratio.
The first calibration capacity is the chargeable standard electric quantity of the first battery; the second calibration capacity is the standard electric quantity which can be charged by the second battery.
The first calibration capacity and the second calibration capacity may be parameters written in a storage medium of the electronic device in advance, so that the first calibration capacity and the second calibration capacity may be determined by querying or the like.
The acquiring the first battery life and the second battery life according to the state of full charge of the first battery and the second battery includes:
determining a first electric quantity at the charging starting moment of the first battery and a second electric quantity at the charging starting moment of the second battery;
determining a third electric quantity charged by the first battery and a fourth electric quantity charged by the second battery;
calculating a first current capacity of the first battery based on the first electric quantity and the third electric quantity, and calculating a second current capacity of the second battery based on the second electric quantity and the fourth electric quantity;
determining the first battery life based on the first current capacity and a first calibration capacity, and determining a second battery life based on the second current capacity and a second calibration capacity, wherein the first calibration capacity is a standard electric quantity chargeable to the first battery; the second calibration capacity is the standard electric quantity which can be charged by the second battery.
Said determining of the first and second electrical quantities may be an estimated electrical quantity. For example, the electronic device estimates the amounts of power of the first battery and the second battery at the charging start time according to the power supply conditions of the batteries. The electric quantity at the initial charging moment of the first battery is first electric quantity; the electric quantity at the initial charging moment of the second battery is the second electric quantity.
After the first electric quantity and the second electric quantity are determined, the charging electric quantity of the first battery can be detected or calculated; the charging capacity of the second battery can also be detected or calculated; thus, the third electric quantity charged by the first battery and the fourth electric quantity charged by the second battery are respectively obtained.
The sum of the first electric quantity and the third electric quantity may be: the full-charged electric quantity of the first battery is the first current electric quantity;
the sum of the second electric quantity and the fourth electric quantity may be: and the full electric quantity of the second battery is the second current electric quantity.
In calculating the third electric quantity or the fourth electric quantity, the following formula may be adopted:
Qrfor the charging capacity of the battery at the present moment, T1K (T1) is the current coefficient of the battery at the current moment, a (i) is the current coefficient of the battery at the current moment, i (T) is the current at the time T, and T epsilon (0, T2](ii) a The charging current is positive and the discharging current is negative. 0 denotes the charge start time of the battery, T2At the moment when the battery is fully charged, then Q is setrThe third electric quantity or the fourth electric quantity when the corresponding battery is fully charged.
Of course, the above is only one way to calculate the third electric quantity or the fourth electric quantity, and in a specific implementation process, there are many ways to calculate the third electric quantity or the fourth electric quantity, and the calculation is not limited to any of the ways. For example, in some embodiments, the effect of battery temperature on the current coefficient may also be ignored, and the current coefficient set to a constant.
The method further comprises the following steps:
determining whether the first electric quantity meets a first preset condition and whether the second electric quantity meets a second preset condition;
the determining a first electric quantity at the first battery charging start time and a second electric quantity at the second battery charging start time includes:
if the first electric quantity meets the first preset condition, determining the third electric quantity;
and if the second electric quantity meets the second preset condition, determining the fourth electric quantity.
In some embodiments, since the first and second electric quantities are estimated at the time of determining the first and second battery lives, in order to ensure the accuracy of the first and second current capacities and the accuracy of the first and second battery lives, in this embodiment, the determination of the third and fourth electric quantities is started only when the first and second electric quantities respectively satisfy the corresponding preset conditions, which is equivalent to the determination of the first and second battery lives.
Optionally, the determining whether the first electric quantity meets a first preset condition and the second electric quantity meets a second preset condition includes:
determining whether an electric quantity ratio corresponding to the first electric quantity is smaller than a second electric quantity ratio;
and determining whether the electric quantity ratio corresponding to the second electric quantity is smaller than a third electric quantity ratio.
The electric quantity ratio corresponding to the first electric quantity may be: the ratio of the first electric quantity at the charging start time of the first battery to the charging capacity after the charging of the previous time is finished.
The electric quantity ratio corresponding to the second electric quantity may be: and the ratio of the second electric quantity at the charging start time of the battery to the charging capacity after the charging of the previous time is finished.
In some embodiments, the second electric quantity ratio and the third electric quantity ratio may be the same electric quantity ratio, so that the electric quantity ratios for determining whether the first battery meets the first preset condition and determining whether the second battery meets the second preset condition are the same. In this manner, only one charge ratio field or byte may be configured within the electronic device to store the charge ratio. If the same electric quantity ratio is adopted, the electric quantity ratios for correspondingly judging whether the first battery meets the first preset condition and judging whether the second battery meets the second preset condition are necessarily equal.
In other embodiments, the second electric quantity ratio and the third electric quantity ratio may be stored corresponding to two different bytes or fields, and at this time, the second electric quantity ratio or the third electric quantity ratio may be preset, and the second electric quantity ratio and the third electric quantity ratio may be equal or unequal.
In some embodiments, the second electric quantity ratio value and the third electric quantity ratio value may range from: 0% to 20%, e.g., 5% to 15%, etc. The second electric quantity ratio and the third electric quantity ratio are set to be 5% -15%, so that on one hand, the influence of the estimated first electric quantity and the second electric quantity on the current capacity accuracy can be reduced as much as possible; on the other hand, the execution of the battery life determination step may be well-suited to be improved with respect to a too low setting (e.g., setting between 0% and 2%), thereby triggering the electronic device to automatically adjust the currently mainly powered battery according to the re-determined battery life, so as to better balance the battery life between different batteries.
As shown in fig. 4, the present embodiment provides an electronic device power supply apparatus, including:
a first obtaining module 110, configured to obtain a first battery life of a first battery and obtain a second battery life of a second battery;
a first determining module 120, configured to determine a difference between the lifetimes of the first battery and the second battery according to the first battery lifetime and the second battery lifetime;
and the power supply module 130 is configured to select the first battery or the second battery to supply power if the life difference value meets a preset condition.
In some embodiments, the power supply module 130 may be configured to supply power by using a battery with a long battery life in the first battery and the second battery if the difference in life is greater than a difference in life threshold.
The power supply device of the electronic device can be applied to the corresponding electronic device, and the foregoing embodiments can be referred to for the relevant description of the electronic device.
In some embodiments, the first obtaining module 110, the first determining module 120, and the power supplying module 130 may correspond to program modules, and when executed by the processor, the first obtaining module, the first determining module 120, and the power supplying module can perform obtaining of the battery life, determining of the life difference, and controlling the first battery or the second battery to supply power to the electronic device.
In other embodiments, the first obtaining module 110, the second determining module 105, and the power supply module 130 may include specific hardware or a combination of hardware and software; for example, the first obtaining module 110 may correspond to an electricity meter for calculating battery life, a current capacity for detecting the calculated battery life, and the like. For another example, the second determining module 105 may include: and a calculator. The power supply module 130 may include a power supply controller, or a complex programmable logic circuit or a field programmable logic circuit, etc.
The power supply module 130 is further configured to supply power by using a first battery with a long battery life in the first battery and the second battery if the life difference value is greater than a life difference threshold; wherein the first battery is within a set discharge temperature operating interval.
In some embodiments, the power supply module 130 is further configured to supply power by using a second battery with a low battery life of the first battery and the second battery if the life difference value is less than or equal to a life difference threshold; and the second battery which is selected to supply power is in a set discharge temperature working interval.
In some embodiments, the power supply module 130 is further configured to supply power by using the second battery if the current power of the first battery with a long battery life is lower than the power threshold and the current power of the second battery with a short battery life is higher than the power threshold.
In some embodiments, the power supply module 130 is further configured to supply power by using the second battery when the current power ratio of the first battery with a high battery life is lower than a ratio threshold and the current power ratio of the second battery with a low battery life is higher than the ratio threshold;
in some embodiments, the power supply module 130 is further configured to supply power by using the second battery, where the power supply voltage of the first battery with long battery life is lower than a voltage threshold, and the power supply voltage of the second battery with short battery life is not lower than the voltage threshold.
In some embodiments, the apparatus further comprises:
a first detection module configured to detect a first state parameter of a first battery having a high battery life;
the power supply module is further configured to supply power by using a second battery with a low battery life if the first state parameter indicates that the first battery is abnormally supplied with power;
the first detection module is configured to detect the first state parameter of the first battery with the long service life again after a preset time interval;
the power supply module is further configured to switch to supply power by using the first battery if the redetected first state parameter indicates that the first battery with the long battery life is normally supplied with power.
The device further comprises:
a second detection module configured to detect a second state parameter of a second battery having a low battery life;
the first detection module is configured to detect a first state parameter of a first battery with a long battery life again if the first state parameter indicates that the first battery with the long battery life is abnormal in power supply and the second state parameter indicates that the second battery with the short battery life is abnormal in power supply;
the power supply module 130 is further configured to utilize the first battery with a long battery life to supply power if the redetected first state parameter indicates that the first battery with a long battery life is supplying power normally.
In some embodiments, the apparatus further comprises:
the power supply module 130 is further configured to supply power by using the battery with a short battery life if the power supply parameter value of the battery with a long battery life is lower than a preset parameter value and the second power supply parameter value of the battery with a short battery life is not lower than the preset parameter value.
In some embodiments, the power supply module 130 is specifically configured to perform at least one of the following:
if the current electric quantity of the battery with long service life is lower than a preset electric quantity value and the current electric quantity of the battery with short service life is higher than the preset electric quantity value, the battery with short service life is used for supplying power;
or,
the current electric quantity ratio of the battery with long battery life is lower than a first ratio threshold, the current electric quantity ratio of the battery with short battery life is higher than the first ratio threshold, and the battery with short battery life is used for supplying power
Or,
the power supply voltage of the battery with long service life is lower than the preset voltage, the power supply voltage of the battery with short service life is not lower than the preset voltage, and the battery with short service life is used for supplying power.
In other embodiments, as shown in fig. 5, the apparatus further comprises:
a first detection module 101, configured to detect a first state parameter of a battery with a long battery life;
the power supply module 130 is specifically configured to utilize the battery with a long battery life to supply power if the life difference is greater than the life difference threshold and the first state parameter indicates that the battery with a long battery life is normally supplied with power.
In still other embodiments, the apparatus further comprises:
a second detection module 102, configured to detect a second state parameter of a battery with a low battery life;
the power supply module 130 is further configured to utilize the battery with the low battery life to supply power if the first state parameter indicates that the battery with the high battery life is abnormally supplied power and the second state parameter indicates that the battery with the low battery life is normally supplied power.
In some embodiments, the first state parameter comprises: a first battery temperature at which the first battery supplies power; the second state parameter includes: a second battery temperature at which the second battery is powered.
In still other embodiments, the apparatus further comprises:
the first detection module 101 is further configured to detect a first state parameter of the battery with a long battery life again after a preset time interval;
the power supply module 130 is configured to switch to supply power by using the battery with a long battery life if the redetected first state parameter indicates that the battery with a long battery life is supplying power normally.
In certain embodiments, the apparatus further comprises:
the first detection module 101 is further configured to detect a first state parameter of the battery with a long battery life again if the first state parameter indicates that the battery with a long battery life is abnormal in power supply, and the second state parameter indicates that the battery with a short battery life is abnormal in power supply;
the power supply module 130 is further configured to utilize the battery with the long battery life to supply power if the redetected first state parameter indicates that the battery with the long battery life is normally supplied with power.
In still other embodiments, the apparatus further comprises:
the first exception handling module 103 is configured to, if a predetermined number of first state parameters are continuously detected, indicate that the battery has a long service life and is powered abnormally, execute a first exception handling operation;
and/or the presence of a gas in the gas,
and the second exception handling module 104 is configured to execute a second exception handling operation if a predetermined number of the second state parameters are continuously detected, where the second state parameters indicate that the battery has a low life.
In a specific embodiment, the first obtaining module 110 is specifically configured to determine a first current capacity of the first battery and a second current capacity of the second battery; and respectively acquiring the first battery life and the second battery life according to the first current capacity and the second current capacity.
In some further embodiments, the first obtaining module 110 is specifically configured to determine a first electric quantity at a first battery charging start time, and determine a second electric quantity at a second battery charging start time; determining a third electric quantity charged by the first battery, and determining a fourth electric quantity charged by the second battery; calculating the first current capacity of the first battery based on the first and third electric quantities, and calculating the second current capacity of the second battery based on the second and fourth electric quantities.
In certain embodiments, the apparatus further comprises:
a second determining module 105, configured to determine whether the first electric quantity meets a first preset condition and whether the second electric quantity meets a second preset condition;
the first obtaining module 110 is specifically configured to determine the third electric quantity if the first electric quantity meets the first preset condition; and if the second electric quantity meets the second preset condition, determining the fourth electric quantity.
In some further embodiments, the first obtaining module 110 is specifically configured to determine whether an electric quantity ratio corresponding to the first electric quantity is smaller than a second electric quantity ratio; and determining whether the electric quantity ratio corresponding to the second electric quantity is smaller than a third electric quantity ratio.
As shown in fig. 6, the present embodiment provides an electronic apparatus including:
a memory;
and the processor is connected with the memory and is used for realizing the power supply method of the electronic equipment provided by one or more of the technical schemes by executing the computer executable instructions stored on the memory.
The memory may include various storage media that store the computer-executable instructions; the computer-executable instructions may include: source code or object code, etc.
The processor may include various types of integrated chips, controllers, or processing units, etc. The processing unit may include: a central processing unit and a micro-processing unit. The controller may include: a digital signal processor, etc.
In some embodiments, the processor may be connected to the memory via a bus, which may include, for example: integrated circuit bus (I)2C) Alternatively, a serial peripheral interface bus (SPI).
In other embodiments, the processor may be connected to the memory via a General Purpose Input Output (GPIO).
The processor implements the electronic device power supply method applied in one or more of the above technical solutions through execution of computer-executable instructions, so as to select a battery for power supply based on battery life.
In some embodiments, the electronic device may be as shown in fig. 6, including a communication interface and a human-machine interaction interface; the communication interface can be used for information interaction between the electronic equipment and other equipment. The communication interface may be: various types of antennas or network interfaces.
The human-computer interaction interface may include: various interfaces for information interaction between a person and an electronic device, such as a keyboard or a mouse.
As shown in fig. 7, the present embodiment further provides an electronic device, including:
the circuit board is provided with a processor and a system power supply pin;
a first battery cell having a first electrode and a second electrode,
the input end of the first power supply circuit is connected with the output end of the first battery, and the output end of the first power supply circuit is connected with the system power supply pin;
a second battery for storing a second electric power to be supplied to the battery,
the input end of the second power supply circuit is connected with the output end of the second battery, and the output end of the second power supply circuit is connected with the system power supply pin;
a first reverse cut-off device on the first power supply circuit for preventing the second battery from supplying power to the first battery;
a second reverse cut-off device on the second power supply circuit for preventing the first battery from supplying power to the second battery;
and the processing module is connected with the first power supply circuit and the second power supply circuit and used for selecting the first battery or the second battery to supply power if the service life difference value of the first battery and the second battery meets a preset condition.
The circuit board may be any circuit board included in an electronic device, such as a Printed Circuit Board (PCB). The circuit board may be a motherboard of a central processing unit provided with the electronic device. And the circuit board is provided with a system power supply pin for receiving power supply of the battery from the system power supply pin by various energy consumption components.
The processing module can be various electronic elements or combination of electronic elements with information processing or signal control. For example, the processing module may include: the microprocessor, the digital signal processor, the programmable device or the application specific integrated circuit can be a device with low power consumption, is connected with the first battery and the second battery, is simultaneously connected with the first power supply circuit or the second power supply circuit, and can be used for controlling the connection and disconnection of the first power supply circuit or the second power supply circuit so as to select the first battery or the second battery for power supply.
In this embodiment, the first battery and the second battery are both provided in the same electronic apparatus.
Because the output ends of the first battery and the second battery are connected to the system power supply pin through the corresponding power supply circuits, if the electric quantity of the second battery is lower than that of the first battery, a voltage difference exists between the first battery and the second battery, and the voltage difference can enable the battery with high electric quantity to supply power to the battery with low electric quantity.
In the present embodiment, the first reverse blocking device and the second direction blocking device are used on the one hand to prevent mutual power supply between the batteries. For example, when the electronic device switches the battery for supplying power, in order to avoid the power supply of the electronic device in the switching process, the power supply circuit of the battery for supplying power by the target is switched on, and the power supply circuit of the battery for supplying power by the source is switched off after the power supply circuit of the battery for supplying power by the target is switched on.
On the other hand, many devices such as transistors or triodes are used in the first and second power supply circuits, and when the power supply circuit of the corresponding battery is disconnected, the disconnection is achieved by the input on-voltage or on-current, for example, the drain and source of the transistor are only because there is not enough gate-source voltage to temporarily interrupt the current, but if the source voltage is higher than the drain, reverse conduction may occur, and a current backflow phenomenon may occur, so in this embodiment, the mutual charging phenomenon between the batteries due to the current backflow of the voltage difference is also prevented by the arrangement of the first and second reverse blocking devices.
In this embodiment, the first reverse blocking device may include: a diode, etc. In other embodiments, the first reverse blocking device may be a packaged chip with a reverse blocking function, for example, in some embodiments, the first reverse blocking device may include: controlled switch tube and control circuit, this controlled switch tube can include: a field effect transistor (MOS transistor). The controlled switching tube may include: a control terminal, an input terminal and an output terminal; the control end is connected with the control circuit, the input end is connected with the first battery, and the output end can be connected with the system power supply pin. The control circuit can be used for generating a control level, and the high and low of the control level directly determine that the input end of the controlled switch tube is communicated with the output end. If the first battery does not supply power, the control level may be a low level that controls the input terminal and the output terminal to be non-conductive, otherwise, a high level is output. The same second reverse blocking device may also include: a controlled switch tube and a control circuit. In some embodiments, the first reverse blocking device and the controlled switches of the first reverse blocking device are connected to the same control circuit. The control circuit comprises two output ends, namely a first output end connected with the first reverse cut-off device and a second output end connected with the second reverse cut-off device. In some embodiments, the control circuit may generate a first control signal, the first output terminal is connected to the first control signal, the first output terminal may directly output the first control signal, and a second output terminal is connected to the control circuit in parallel with the first output terminal. Assuming that a circuit where the first output end is located is a first path; the circuit where the second output end is located is a second path; the first path and the second path are connected in parallel, and the connection of the first path and the second path is divided from the same level output point; the second path is one more inverter than the first path. In this way it is ensured that the control signals of the controlled switches, which output different reverse blocking devices respectively, are always reversed. That is, if the first control signal is at a high level, the second control signal is at a low level; if the first control signal is at a low level, the second control signal is at a high level. Therefore, when the first reverse cut-off device allows the first battery to supply power under the action of high level, the current for cutting off the second battery is also injected into the first battery; the second reverse cut-off device prohibits the second battery from supplying power under the action of low level and also injects the current for cutting off the first battery into the second battery.
In some embodiments, the electronic device further comprises:
a charging interface;
the input end of the first charging circuit is connected with the charging interface, and the output end of the first charging circuit is connected with the first battery and used for charging the first battery;
the input end of the second charging circuit is connected with the charging interface, and the output end of the second charging circuit is connected with the second battery and used for charging the second battery;
the first electricity meter is connected with the first charging circuit and used for detecting the charging electric quantity of the first battery;
and the second electricity meter is connected with the second charging circuit and used for detecting the charging electric quantity of the first battery.
In some embodiments, the charging interface may be various types of wired charging interfaces, such as a mini Universal Serial Bus (mini USB) or the like.
In some embodiments, the charging interface may also be: a wireless charging interface, for example, an electronic device that is charged using a wireless charging technology, may include a charging interface that enables wireless charging.
In this embodiment, the first battery and the second battery may share one charging interface, so that when a current is input to the charging interface, the charging interface is shunted to the first battery and the second battery to charge the first battery and the second battery respectively.
The charging interface may be connected to a power supply for charging the first battery and the second battery, for example, a power supply socket connected to the commercial power, an external charging power supply (e.g., a mobile charger), or a personal computer, which may provide current input.
In this embodiment, the electronic device further incorporates a first electricity meter and a second electricity meter. When the first battery is charged, the first electricity meter and the first battery can be connected on the first charging circuit in parallel, so that two paths of current on the first charging circuit respectively flow into the first battery and the first electricity meter, and the first electricity meter performs integral operation in a charging time interval or records the change of current of the first electricity meter according to the electric quantity divided by the first electricity meter, so that the calculation of the third electric quantity can be facilitated. Similarly, when the second battery is charged, the second electricity meter and the second battery can be connected in parallel on the second charging circuit, so that the current on the second charging circuit is divided into two paths to respectively flow into the second battery and the second electricity meter, and the second electricity meter performs integral operation in a charging period or records the change of the current of the second electricity meter according to the divided electricity quantity of the second electricity meter, so that the fourth electricity quantity can be conveniently calculated.
In some embodiments, the first enable pin enabling the charging of the first battery may be a first enable pin of the first power supply circuit, and the first power supply circuit is enabled or disabled to enable or disable the power supply of the first battery. For example, the first enable pin receives a first enable signal of a first level to enable the power supply of the first battery; the first enabling pin receives a first enabling signal of a second level to enable the power supply of the first battery. The first level is not equal to the second level.
The first enabling pin for enabling the second battery to be charged can be a second enabling pin of the second power supply circuit, and the first power supply circuit is enabled or disabled, so that the purpose of enabling the second battery to be supplied or disabling the second battery to be supplied is achieved. For example, the second enable pin receives a second enable signal of a third level, and enables power supply of the second battery; the second enable pin receives a second enable signal of a fourth level to enable the power supply of the second battery. The third level is not equal to the fourth level.
The first enable signal and the second enable signal may be provided by a central processing unit or a power supply controller of the electronic device.
In some embodiments, the first level is equal to the third level; the fourth level is equal to the third level. As such, the second enable signal may be an inverse of the first enable signal. The central processor or the power supply controller may generate only the first enable signal; the first enabling signal is input into a multiplexer, and two paths of first enabling signals are output; and inputting one of the two output first enable signals to an inverter, and outputting a second enable signal opposite to the first enable signal by the inverter.
If the output pins of the first enabling signal and the second enabling signal are GPIO pins, the levels corresponding to the first enabling signal and the second enabling signal are set to be equal, and the use of one GPIO pin of the central processing unit or the power supply controller can be reduced.
In this embodiment, the first enable signal and the second enable signal may be selected as GPIO signals transmitted by GPIO pins, and the logic for generating the GPIO signals is relatively simple and the transmission rate is higher for GPIO signal transmission relative to bus signals transmitted by a bus.
The disclosed embodiments also provide a computer storage medium having computer-executable instructions stored thereon; after the computer-executable instructions are executed, the electronic equipment power supply method provided by one or more of the technical schemes can be used; for example,
several specific examples are provided below in connection with any of the embodiments described above:
example 1:
the present example provides a dual-battery power supply method, which can improve the utilization rate of a battery, ensure the normal operation of each power consumption module in a terminal, and achieve the balance of the service life of the battery.
As shown in fig. 8, the method provided by this example may be as follows:
detecting the battery life of the first battery and the battery life of the second battery, and calculating to obtain a life difference value; the life difference here is the battery life of the first battery minus the battery life of the second battery; in other cases, the life difference may be the battery life of the second battery minus the life of the first battery;
if the service life difference value is detected to be larger than a preset threshold value, and the first battery is in a power supply state currently and the second battery is in a non-power supply state, switching the states of the first battery and the second battery; in some cases, the life difference preset threshold is set to 0 by default.
Returning to the operation of detecting the difference in the life of the first battery and the second battery; that is, the battery life of the first battery is longer than the battery life of the second battery, and the first battery is preferentially used to supply power to the system.
In short, if it is detected that the life difference value is greater than the life difference threshold value and when the first battery is in a power supply state and the second battery is in a non-power supply state, the states of the first battery and the second battery are switched. The states here may include: a powered state or a non-powered state.
Fig. 9 shows a specific flow of the power supply method for electronic equipment provided by this example, which includes:
detecting and recording the battery life of the first battery and the battery life of the second battery;
judging whether the service life difference value of the first battery and the second battery is larger than a preset threshold value or not;
if yes, enabling the first battery to serve as a power supply battery for supplying power to the system;
and if not, enabling the second battery to be used as a power supply battery for supplying power to the system.
The present example provides an electronic device, which may be various types of fixed terminals or mobile terminals. For example, as shown in fig. 10, the electronic device may include:
a battery life detection module, corresponding to the aforementioned first obtaining module 110, configured to detect battery lives of the first battery and the second battery, respectively.
The life difference detection module may correspond to the aforementioned first determination module 120, and the life difference calculation module may be configured to calculate a life difference between the first battery and the second battery.
A power supply path control module, which may be a component of the aforementioned power supply module 130, where the battery power supply control module may be configured to control and switch the first battery or the second battery to supply power to the system;
and the battery temperature detection module is used for detecting the battery temperature.
An embodiment of the present example also provides an electronic device, including: the device comprises a charging module and an electricity meter module.
The charging module may include: the first charging submodule and the second charging submodule; the fuel gauge module may include: the first fuel gauge sub-module and the second fuel gauge sub-module.
The intelligent energy meter comprises a first battery, a first charging submodule, a first fuel gauge submodule, a first battery temperature detection module, a second battery, a second charging submodule, a second fuel gauge submodule, a second battery temperature detection module, a switch switching module and a processor module.
The first charging submodule is used for charging the first battery, and the first fuel gauge submodule is used for calculating the electric quantity of the first battery; the first battery temperature detection module is used for detecting the temperature of the first battery. And calculating the service life of the first battery through the first charging submodule and the first fuel gauge submodule. For example, a first battery temperature detection module detects the temperature of the first battery in real time.
The second charging submodule is used for charging the first battery, and the second electricity meter submodule is used for calculating the electric quantity of the second battery; the second battery temperature detection module is used for detecting the temperature of the second battery. The service life of the second battery is calculated through the second charging module and the second electricity meter module. For example, the second battery temperature detection module detects the temperature of the second battery in real time.
The first battery temperature detection module in this example may be an integral part of the aforementioned first detection module; the second battery temperature detection module may be a component of the aforementioned second detection module.
The method for calculating and obtaining the real charging capacity of the battery by the ampere-hour integration method comprises the following steps:
Qrfor the charging capacity of the battery at the present moment, T1K (T1) is the current coefficient of the battery at the current moment, a (i) is the current coefficient of the battery at the current moment, i (T) is the current at the time T, and T epsilon (0, T2](ii) a The charging current is positive and the discharging current is negative. 0 denotes the charge start time of the battery, T2At the moment when the battery is fully charged, then Q is setrThe third electric quantity or the fourth electric quantity when the corresponding battery is fully charged.
Battery life is current capacity/calibration capacity.
The switch switching module is used for controlling the first battery or the second battery to supply power to the system; the processor module is used for calculating the service lives of the first battery and the second battery and further calculating the service life difference value of the first battery and the second battery.
The present example technique keeps the difference in life of the two batteries within a certain range after a long period of use, and the performance of the two batteries remains close, thereby improving the performance of the overall battery system.
The charging module is used for respectively charging the first battery and the second battery;
the electric quantity meter module is used for respectively counting the electric quantity of the first battery and the electric quantity of the second battery;
the battery life detection module is used for respectively detecting the battery life of the first battery and the second battery, detecting the charging current and the charging time through the fuel gauge, and integrating the charging current in time to obtain the real capacity of the battery, wherein the battery life is the electric quantity during full charge/the calibrated battery electric quantity;
the battery temperature detection module is used for respectively detecting the battery temperatures of the first battery and the second battery and obtaining the battery temperature by detecting the voltage of the NTC end of the thermistor of the battery;
the power supply path module is used for respectively controlling the power supply paths of the first battery or the second battery and controlling the battery output to supply power to the system by using the GPIO pin.
Example 2:
as shown IN fig. 11, USB _ IN is a Universal Serial Bus (USB) interface or an input of a charger; VBAT _ SYS may be provided as a system power output connected to a system power pin.
The positive electrode of the battery is connected to a Vin pin of a power supply control chip (for example, an LTC4412 chip), and Vout is output; and an Enable (Enable) pin is used as an Enable signal input pin for turning on the power supply control chip. The enabling signal is low level and indicates that the power supply control chip is enabled; the Status pin outputs a state signal for conducting and supplying power to the battery; the Status (Status) pin is high to indicate that the LTC4412 chip is enabled, the battery is input through the Vin pin, and the Vout pin outputs electric energy to supply power to the system.
The Enable pin is connected to a GPIO pin of the processor, and the Enable of the LTC4412 chip is controlled through the high and low levels of the GPIO pin.
The LTC4412 chip has a reverse blocking function to prevent a current backflow problem between the first battery and the second battery due to a voltage difference. The LTC4412 chip here is a component structure on the first power supply circuit and the second power supply circuit.
In some cases, the power supply control chip is not limited to the LTC4412, but may be other control chips; the LTC4412 chip is selected to have the characteristic of low power consumption, and the LTC4412 chip has the characteristic of low power consumption due to low quiescent current.
The first charging module is used for charging the first battery, and the second charging module is used for charging the second battery; the electricity meter A is used for detecting and calculating the electricity quantity of the first battery, and the electricity meter A is used for detecting and calculating the electricity quantity of the second battery.
In fig. 11, the fuel gauge a corresponds to the aforementioned first fuel gauge submodule, and the fuel gauge B corresponds to the aforementioned second fuel gauge submodule.
Example 3:
the method comprises the steps that the service lives of a first battery and a second battery are detected respectively, the service life difference value of the first battery and the second battery is obtained through calculation, if the service life difference value of the first battery and the second battery is detected to be larger than a preset threshold value, the first battery is enabled to supply power to a system, the second battery is closed to supply power to the system, and the first battery is adopted to supply power to the system; and if the difference value of the service lives of the first battery and the second battery is detected to be smaller than the preset threshold value, enabling the second battery to supply power to the system, closing the first battery to supply power to the system, and supplying power to the system by adopting the second battery. In particular, the preset threshold value is 0 in this example, that is, the preset threshold value is used for determining the life sizes of the first battery and the second battery.
As shown in fig. 12, the battery used in the electronic device may be divided into a lithium battery cell and an external protection circuit, and the protection circuit mainly includes an ntc (negative Temperature coefficient) thermistor for detecting the Temperature of the battery and a battery ID pin; BAT _ OUT is the positive output of the battery, BAT _ ID is used for detecting the ID of the battery, and THERM _ BIAS is connected with the reference system voltage. The THERM pin is used for detecting the voltage of the NTC thermistor end and connected with the ADC pin of the system, and the system detects the voltage of the NTC resistor of the battery through the THERM pin so as to monitor the temperature of the battery.
The temperature range of the working environment for discharging lithium batteries adopted by electronic equipment is generally-20 ℃ to +60 ℃. Particularly, the dual battery terminal, the first battery and the second battery each have a battery temperature detection pin, and the battery temperatures of the first battery and the second battery are detected by the first charging module and the second charging module, respectively. The discharge temperature working interval of the battery is set to be-20 ℃ to +60 ℃, and the discharge temperature working interval of the battery can be set to be-15 ℃ to +55 ℃ in order to effectively protect the battery.
As shown in fig. 13, the power supply method of the electronic device provided by this example may include:
respectively detecting and recording the service lives of the first battery and the second battery, calculating the service life difference value of the first battery and the second battery,
detecting whether the service life difference value of the first battery and the second battery is larger than a preset threshold value or not;
if yes, detecting whether the temperature of the first battery is in a set discharge temperature working interval or not; if the temperature of the first battery is detected to be within the discharging temperature working interval, enabling the first battery to supply power to a system, closing a second battery to supply power to the system, and supplying power to the system by adopting the first battery;
if not, whether the temperature of the second battery is within a set discharge temperature working interval or not is detected, if the temperature of the second battery is within the discharge temperature working interval, the second battery is enabled to supply power to the system, the first battery is closed to supply power to the system, and the second battery is adopted to supply power to the system.
And if the temperature of the first battery is detected to exceed the set discharge temperature working interval again and the temperature of the second battery exceeds the set discharge temperature working interval, the system is shut down.
As shown in fig. 14, when it is detected that the difference between the service lives of the first battery and the second battery is greater than the preset threshold value and the temperature of the first battery is detected to be within the set discharge temperature operating interval, the first battery is enabled to supply power to the system, and the first battery is used to supply power to the system; if the first battery detects that the electric quantity of the first battery is reduced to 1% or the power supply voltage is less than 3.4V in the system power supply process, the second battery is enabled to supply power to the system, the first battery is closed to supply power to the system, and the second battery is adopted to supply power to the system.
In some cases, as shown in fig. 14, the method further comprises:
before enabling the second battery to supply power to the system, detecting whether the temperature of the second battery is within a preset discharging temperature working interval, if so, enabling the second battery to supply power to the system, and closing a power supply path of the first battery after enabling the second battery; if not, the system is shut down.
The battery life detection module is used for respectively detecting the battery life of the first battery and the second battery, detecting the charging current and the charging time through the fuel gauge, and integrating the charging current in time to obtain the real capacity of the battery, wherein the battery life is the electric quantity during full charge/the calibrated battery electric quantity; in this example, the real-time real capacity of the battery after a period of use is calculated by using the full charge capacity. The battery life of the first battery and the second battery were calculated by the following method, respectively, at the initial battery capacity (< 15%) learned at the time of charging.
Estimated capacity Q of initial charging during charging learning0+ initial charge to full charger;
Initial charge estimated capacity Q during charge learning0Initial charge capacity percentage and last learned capacity Q at full charge of real batteryr-1;
The change in charge from the initial charge to full battery charge can be seen in fig. 15.
The initial charge to full charge is as follows:
particularly, the battery is charged in the temperature range of 0 ℃ to 45 ℃ at normal temperature, the current coefficient K (T) takes a value of 1, and the current coefficient a (i) takes a value of 1. The charging current and the charging time are counted by a charging module or an electricity meter module, and the charging module is used for counting in the example.
In addition, the amount of electricity Q at the time of full charge of the battery is learned for the first battery and the second battery1r、Q2rAnd the last learned electric quantity Q when the real battery is fully charged1r-1、Q2r-1Are recorded in the memory ROM, respectively.
The power supply access module is used for respectively controlling the power supply access of the first battery or the second battery, the GPIO pin is used for controlling the battery output to supply power to the system, and the control logic of the power supply access module is shown in the following table:
the level states "0" and "1" are different in this example; the level state "0" may correspond to the aforementioned low level; the level state "1" may correspond to the aforementioned high level.
In this embodiment, the power supply controller of the first battery and the power supply controller of the second battery respectively include an enable pin and a status pin, an input of an enable signal of the enable pin controls whether the corresponding controller enables the corresponding battery, and an output of the status pin indicates whether the current corresponding battery is powered.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all functional units in the embodiments of the present disclosure may be integrated into one processing module, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present disclosure, but the scope of the present disclosure is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present disclosure, and all the changes or substitutions should be covered within the scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.
Claims (14)
1. A method for powering an electronic device, comprising:
obtaining a first battery life of a first battery and obtaining a second battery life of a second battery;
determining a difference between the first battery life and the second battery life according to the first battery life and the second battery life;
and if the service life difference value meets a preset condition, selecting the first battery or the second battery to supply power.
2. The method of claim 1,
if the life difference value meets a preset condition, selecting the first battery or the second battery for power supply, including:
if the service life difference value is larger than a service life difference threshold value, a first battery with a long service life is used for supplying power; wherein the first battery is within a set discharge temperature operating interval.
3. The method of claim 1, further comprising:
if the life difference value meets a preset condition, selecting the first battery or the second battery for power supply, including:
if the service life difference value is smaller than or equal to the service life difference threshold value, utilizing a second battery with low battery life in the first battery and the second battery to supply power; and the second battery which is selected to supply power is in a set discharge temperature working interval.
4. The method of claim 2,
the method further comprises the following steps:
and if the current electric quantity of the first battery with the long service life is lower than the electric quantity threshold value and the current electric quantity of the second battery with the short service life is higher than the electric quantity threshold value, the second battery is used for supplying power.
5. The method of claim 2,
the method further comprises the following steps:
and the current electric quantity ratio of the first battery with the long service life is lower than a ratio threshold, and the current electric quantity ratio of the second battery with the short service life is higher than the ratio threshold, so that the second battery is used for supplying power.
6. The method of claim 2, further comprising:
and the power supply voltage of the first battery with long battery life is lower than a voltage threshold, and the power supply voltage of the second battery with short battery life is not lower than the voltage threshold, and the second battery is used for supplying power.
7. The method of claim 2, further comprising:
detecting a first state parameter of a first battery with a long battery life;
if the first state parameter indicates that the first battery is abnormally powered, a second battery with a low battery life is used for powering;
re-detecting the first state parameter of the first battery with the long service life at intervals of preset duration;
and if the redetected first state parameter shows that the first battery with the long service life is normally powered, switching to the first battery for power supply.
8. The method of claim 7, further comprising:
detecting a second state parameter of a second battery having a low battery life;
if the first state parameter indicates that the first battery with the long battery life is abnormal in power supply, and the second state parameter indicates that the second battery with the short battery life is abnormal in power supply, detecting the first state parameter of the first battery with the long battery life again;
and if the redetected first state parameter shows that the first battery with the long service life supplies power normally, supplying power by using the first battery with the long service life.
9. The method of claim 8, further comprising:
if the first state parameters of the preset number are continuously detected to indicate that the battery power supply with the long service life is abnormal, executing a first abnormal processing operation;
and/or the presence of a gas in the gas,
and if the second state parameters of the preset number are continuously detected, the batteries with the low battery life are indicated, and second exception handling operation is executed.
10. An electronic device power supply apparatus, comprising:
the first acquisition module is used for acquiring the first battery life of the first battery and acquiring the second battery life of the second battery;
the first determining module is used for determining the service life difference value of the first battery and the second battery according to the first battery service life and the second battery service life;
and the power supply module is used for selecting the first battery or the second battery to supply power if the service life difference value meets a preset condition.
11. An electronic device, comprising:
a memory;
a processor coupled to the memory for implementing the method provided by any of claims 1 to 9 by executing computer-executable instructions stored on the memory.
12. An electronic device, comprising:
the circuit board is provided with a processor and a system power supply pin;
a first battery cell having a first electrode and a second electrode,
the input end of the first power supply circuit is connected with the output end of the first battery, and the output end of the first power supply circuit is connected with the system power supply pin;
a second battery for storing a second electric power to be supplied to the battery,
the input end of the second power supply circuit is connected with the output end of the second battery, and the output end of the second power supply circuit is connected with the system power supply pin;
a first reverse cut-off device on the first power supply circuit for preventing the second battery from supplying power to the first battery;
a second reverse cut-off device on the second power supply circuit for preventing the first battery from supplying power to the second battery
And the processing module is connected with the first power supply circuit and the second power supply circuit and used for selecting the first battery or the second battery to supply power if the service life difference value of the first battery and the second battery meets a preset condition.
13. The electronic device of claim 12,
a charging interface;
the input end of the first charging circuit is connected with the charging interface, and the output end of the first charging circuit is connected with the first battery and used for charging the first battery;
the input end of the second charging circuit is connected with the charging interface, and the output end of the second charging circuit is connected with the second battery and used for charging the second battery;
the first electricity meter is connected with the first charging circuit and used for detecting the charging electric quantity of the first battery;
and the second electricity meter is connected with the second charging circuit and used for detecting the charging electric quantity of the first battery.
14. A computer storage medium having stored thereon computer-executable instructions; the computer-executable instructions, when executed, enable the method provided by any of claims 1 to 9 to be carried out.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811003335.3A CN110875610A (en) | 2018-08-30 | 2018-08-30 | Electronic equipment power supply method and device, electronic equipment and storage medium |
PCT/CN2019/090672 WO2020042715A1 (en) | 2018-08-30 | 2019-06-11 | Electronic device power supply method and apparatus, electronic device, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811003335.3A CN110875610A (en) | 2018-08-30 | 2018-08-30 | Electronic equipment power supply method and device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110875610A true CN110875610A (en) | 2020-03-10 |
Family
ID=69643377
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811003335.3A Pending CN110875610A (en) | 2018-08-30 | 2018-08-30 | Electronic equipment power supply method and device, electronic equipment and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110875610A (en) |
WO (1) | WO2020042715A1 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113311268A (en) * | 2021-05-27 | 2021-08-27 | 浙江华消科技有限公司 | Method, device, equipment and medium for detecting service life of infrared emission tube |
TWI771899B (en) * | 2021-02-05 | 2022-07-21 | 亞東學校財團法人亞東科技大學 | System of automatically measuring battery and evaluating lifetime of battery |
TWI837987B (en) * | 2022-12-05 | 2024-04-01 | 光陽工業股份有限公司 | Vehicle starting methods based on battery state and electric vehicles thereof, and computer program products |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002062954A (en) * | 2000-08-23 | 2002-02-28 | Matsushita Electric Ind Co Ltd | Portable information terminal |
JP2010028876A (en) * | 2008-07-15 | 2010-02-04 | Lenovo Singapore Pte Ltd | Charging/discharging system and portable computer |
CN102222949A (en) * | 2011-06-13 | 2011-10-19 | 惠州Tcl移动通信有限公司 | Device and method for managing batteries |
US20110260689A1 (en) * | 2010-04-22 | 2011-10-27 | Kabushiki Kaisha Toshiba | Information processing apparatus and charge and discharge control method |
CN103828178A (en) * | 2011-09-21 | 2014-05-28 | 丰田自动车株式会社 | Vehicle battery control device and vehicle battery control method |
CN107943263A (en) * | 2017-12-04 | 2018-04-20 | 合肥联宝信息技术有限公司 | The power control method and device of a kind of electronic equipment |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101471572B (en) * | 2007-12-28 | 2011-11-30 | 上海晨兴希姆通电子科技有限公司 | Uninterrupted power system for mobile phone and power supply method thereof |
CN105305514A (en) * | 2014-06-23 | 2016-02-03 | 中兴通讯股份有限公司 | Method and device for charging battery |
CN105141001B (en) * | 2015-09-23 | 2017-10-27 | 刘奇 | A kind of battery unit fills the control method and its system of power supply and the method for supplying power to of battery unit |
CN105429236B (en) * | 2015-12-25 | 2018-07-10 | 华南理工大学 | A kind of balance control method of power battery pack based on current forecasting |
-
2018
- 2018-08-30 CN CN201811003335.3A patent/CN110875610A/en active Pending
-
2019
- 2019-06-11 WO PCT/CN2019/090672 patent/WO2020042715A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002062954A (en) * | 2000-08-23 | 2002-02-28 | Matsushita Electric Ind Co Ltd | Portable information terminal |
JP2010028876A (en) * | 2008-07-15 | 2010-02-04 | Lenovo Singapore Pte Ltd | Charging/discharging system and portable computer |
US20110260689A1 (en) * | 2010-04-22 | 2011-10-27 | Kabushiki Kaisha Toshiba | Information processing apparatus and charge and discharge control method |
CN102222949A (en) * | 2011-06-13 | 2011-10-19 | 惠州Tcl移动通信有限公司 | Device and method for managing batteries |
CN103828178A (en) * | 2011-09-21 | 2014-05-28 | 丰田自动车株式会社 | Vehicle battery control device and vehicle battery control method |
CN107943263A (en) * | 2017-12-04 | 2018-04-20 | 合肥联宝信息技术有限公司 | The power control method and device of a kind of electronic equipment |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI771899B (en) * | 2021-02-05 | 2022-07-21 | 亞東學校財團法人亞東科技大學 | System of automatically measuring battery and evaluating lifetime of battery |
CN113311268A (en) * | 2021-05-27 | 2021-08-27 | 浙江华消科技有限公司 | Method, device, equipment and medium for detecting service life of infrared emission tube |
TWI837987B (en) * | 2022-12-05 | 2024-04-01 | 光陽工業股份有限公司 | Vehicle starting methods based on battery state and electric vehicles thereof, and computer program products |
Also Published As
Publication number | Publication date |
---|---|
WO2020042715A1 (en) | 2020-03-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10522882B2 (en) | Semiconductor device, battery pack, and mobile terminal with multi-speed CPU | |
US8880913B2 (en) | Battery management and protection system using a controller to load safety and configuration parameters into dedicated registers during startup and performing battery protection scans during startup independently of a CPU | |
KR100987606B1 (en) | Apparatus and method for correcting measurements of remaining capacity of battery pack | |
US8957639B2 (en) | Event system and timekeeping for battery management and protection system | |
CN101465557B (en) | Portable device and battery pack for the same | |
US20110260689A1 (en) | Information processing apparatus and charge and discharge control method | |
US11188135B2 (en) | Battery controller, electronic device, battery pack, and battery controlling method | |
EP3546961B1 (en) | Battery leakage current detection method, device and circuit | |
TW201315090A (en) | Controllers, systems and methods for controlling battery management systems | |
JP6041040B2 (en) | Storage battery, storage battery control method, control device, and control method | |
US20160041230A1 (en) | Backup battery | |
KR102490936B1 (en) | Apparatus and method for monitoring auxiliary battery of vehicle | |
CN110875610A (en) | Electronic equipment power supply method and device, electronic equipment and storage medium | |
GB2563311A (en) | Circuits, systems and methods for protecting batteries | |
US20120098498A1 (en) | Battery pack, semiconductor device, portable apparatus and method of reporting full charge | |
US8711534B2 (en) | Battery power management system and method | |
KR102353853B1 (en) | Sensor board with battery life management | |
JP6862092B2 (en) | Semiconductor device, battery monitoring system and battery monitoring method | |
US20230022867A1 (en) | Smart battery device, and electronic device thereof | |
KR20210034373A (en) | Apparatus and method for managing battery and system for managing battery including the same | |
JP2021035286A (en) | Charge control method, charge control device, charging device, and charging system | |
US20180212444A1 (en) | Battery module and battery system having the same | |
CN112448448B (en) | Charging control method, device, earphone, electronic device and readable storage medium | |
US9305452B2 (en) | Battery over-charge and over-discharge protection system and battery protection method able to release a protection state | |
KR102408066B1 (en) | Apparatus for diagnosing pack current measurement unit |
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 |