CN113472057A - Double-battery power supply method and device and electronic equipment - Google Patents

Double-battery power supply method and device and electronic equipment Download PDF

Info

Publication number
CN113472057A
CN113472057A CN202110927913.8A CN202110927913A CN113472057A CN 113472057 A CN113472057 A CN 113472057A CN 202110927913 A CN202110927913 A CN 202110927913A CN 113472057 A CN113472057 A CN 113472057A
Authority
CN
China
Prior art keywords
battery
electronic equipment
power
power supply
electronic device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110927913.8A
Other languages
Chinese (zh)
Inventor
唐荣兴
侯晓辉
汤鑫
黄海峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hiscene Information Technology Co Ltd
Original Assignee
Hiscene Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hiscene Information Technology Co Ltd filed Critical Hiscene Information Technology Co Ltd
Priority to CN202110927913.8A priority Critical patent/CN113472057A/en
Publication of CN113472057A publication Critical patent/CN113472057A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/36Arrangements using end-cell switching
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/007Regulation of charging or discharging current or voltage
    • H02J7/007188Regulation of charging or discharging current or voltage the charge cycle being controlled or terminated in response to non-electric parameters
    • H02J7/007192Regulation of charging or discharging current or voltage the charge cycle being controlled or terminated in response to non-electric parameters in response to temperature
    • H02J7/007194Regulation of charging or discharging current or voltage the charge cycle being controlled or terminated in response to non-electric parameters in response to temperature of the battery
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/34Parallel operation in networks using both storage and other dc sources, e.g. providing buffering
    • H02J7/342The other DC source being a battery actively interacting with the first one, i.e. battery to battery charging

Abstract

The embodiment of the invention provides a double-battery power supply method, a double-battery power supply device and electronic equipment, wherein the method comprises the following steps: detecting whether a first battery is connected to the electronic equipment; if the first battery is connected to the electronic equipment, controlling the first battery to supply power to the electronic equipment; and if the first battery is not connected to the electronic equipment, controlling a second battery to supply power to the electronic equipment. The invention can realize the quick replacement of the first battery under the condition of no power failure during shutdown, and improves the cruising ability of the electronic equipment.

Description

Double-battery power supply method and device and electronic equipment
Technical Field
The invention relates to the technical field of power supply of electronic equipment, in particular to a double-battery power supply method and device and electronic equipment.
Background
Since a general electronic device has only one battery to supply power to its system load, if there is only one battery in a battery-replaceable electronic device, the electronic device cannot be used because the battery is not supplied when the battery is replaced by disassembling and assembling the battery.
Disclosure of Invention
The embodiment of the invention provides a double-battery power supply method and device and electronic equipment, which are used for solving the problem that the electronic equipment cannot be continuously used when a battery is used up and replaced in the prior art.
In a first aspect, an embodiment of the present invention provides a dual-battery power supply method, which is applied to an electronic device, and the method includes:
detecting whether a first battery is connected to the electronic equipment;
if the first battery is connected to the electronic equipment, controlling the first battery to supply power to the electronic equipment;
if the first battery is not connected to the electronic equipment, controlling a second battery to supply power to the electronic equipment;
wherein the first battery is a replaceable battery with respect to the electronic device and the second battery is a non-replaceable battery with respect to the electronic device.
In a possible implementation manner, if the first battery is connected to the electronic device, the controlling the first battery to supply power to the electronic device further includes:
continuously detecting whether the current electric quantity of the second battery is smaller than a second preset threshold value;
and if the current electric quantity of the second battery is smaller than the second preset threshold value, controlling the first battery to charge the second battery while supplying power to the electronic equipment.
In one possible implementation, the method further includes:
after the first battery is detected to be connected to the electronic equipment, continuously judging whether the current electric quantity of the first battery is larger than a first preset threshold value; and if the current electric quantity of the first battery is smaller than or equal to the first preset threshold value, prompting a user to charge the first battery.
In one possible implementation, the manner of charging the first battery includes any one of the following first to third:
the first item: the first battery is charged online, and the first battery is controlled to supply power to the electronic equipment while being charged;
the second term is: the first battery is charged off line, and the second battery is controlled to supply power to the electronic equipment;
the third item: and replacing the first battery, and controlling a new first battery to supply power to the electronic equipment after detecting that the new first battery is accessed.
In a possible implementation manner, the online charging of the first battery, and the controlling the first battery to supply power to the electronic device while being charged further includes:
continuously detecting whether the current electric quantity of the second battery is smaller than a second preset threshold value;
and under the condition that the current electric quantity of the second battery is smaller than the second preset threshold value, controlling the first battery to charge the second battery while supplying power to the electronic equipment.
In a possible implementation manner, the step of replacing the first battery and controlling a new first battery to supply power to the electronic device after detecting that the new first battery is accessed further includes:
continuously detecting whether the current electric quantity of the second battery is smaller than a second preset threshold value;
and under the condition that the current electric quantity of the second battery is smaller than the second preset threshold value, controlling the new first battery to charge the second battery while supplying power to the electronic equipment.
In one possible implementation, the rated capacity of the first battery is greater than the rated capacity of the second battery.
In one possible implementation, the method further includes:
continuously detecting whether the temperature of the first battery is greater than a first preset temperature threshold value and/or continuously detecting whether the temperature of the second battery is greater than a second preset temperature threshold value;
and if the temperature of the first battery is greater than the first preset temperature threshold and/or the temperature of the second battery is greater than the second preset temperature threshold, starting a corresponding temperature protection mechanism.
In one possible implementation, the initiating the corresponding temperature protection mechanism includes any one of:
continuously detecting whether the temperature of the second battery is greater than a second preset temperature threshold value or not during the period that the first battery charges the second battery; when the temperature of the second battery is greater than the second preset temperature threshold value, controlling the first battery to stop charging the second battery;
continuously detecting whether the temperature of the first battery is greater than a first preset temperature threshold value or not during the period that the first battery supplies power to the electronic equipment; when the temperature of the first battery is greater than the first preset temperature threshold, controlling the first battery to stop supplying power to the electronic equipment or controlling a system to be shut down;
continuously detecting whether the temperature of the second battery is greater than a second preset temperature threshold value or not during the period that the second battery supplies power to the electronic equipment; when the temperature of the second battery is greater than the second preset temperature threshold, controlling the second battery to stop supplying power to the electronic equipment or controlling a system to be shut down;
continuously detecting whether the temperature of the first battery is greater than the first preset temperature threshold value or not during the online charging of the first battery; and when the temperature of the first battery is greater than the first preset temperature threshold value, controlling the first battery to stop charging.
In one possible implementation, the method further includes:
after the electronic equipment is connected with a peripheral, the first battery is controlled to supply power to the electronic equipment and the peripheral at the same time.
In a second aspect, an embodiment of the present invention further provides a dual-battery power supply method, applied to an electronic device, including:
if the forced switching signal is not received, executing the double-battery power supply method according to any one of the above steps;
and if a forced switching signal is received, carrying out corresponding control processing according to the forced switching signal.
In a possible implementation manner, the step of performing corresponding control processing according to the forced switching signal if the forced switching signal is received includes:
and if the received forced switching signal is a signal for forcibly switching to the power supply of a second battery, controlling the second battery to supply power to the electronic equipment.
In a possible implementation manner, the step of performing corresponding control processing according to the forced switching signal if the forced switching signal is received includes:
and if the received forced switching signal is a signal for forcibly switching to the power supply of the first battery, controlling the first battery to supply power to the electronic equipment.
In a third aspect, an embodiment of the present invention further provides a dual-battery power supply apparatus, which is applied to an electronic device, where the apparatus includes:
the detection module is used for detecting whether the first battery is connected to the electronic equipment or not;
the control module is used for controlling the first battery to supply power to the electronic equipment if the first battery is connected with the electronic equipment, and controlling the second battery to supply power to the electronic equipment if the first battery is not connected with the electronic equipment;
wherein the first battery is a replaceable battery with respect to the electronic device and the second battery is a non-replaceable battery with respect to the electronic device.
In a fourth aspect, applied to an electronic device, an embodiment of the present invention further provides a dual-battery power supply apparatus, where the apparatus includes:
a power supply module for executing the steps of the dual battery power supply method according to any one of the above mentioned items when a forced switching signal is not received;
and the switching module is used for carrying out corresponding control processing according to the forced switching signal when receiving the forced switching signal.
In a fifth aspect, an embodiment of the present invention further provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the steps of the dual battery power supply method according to any one of the above items.
In a sixth aspect, embodiments of the present invention further provide a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the dual battery power supply method according to any one of the above.
According to the double-battery power supply method, the double-battery power supply device and the electronic equipment, the first replaceable battery or the second non-replaceable battery is arranged to supply power to the electronic equipment, so that the first battery can be quickly replaced under the condition of no power failure after shutdown, and the cruising ability of the electronic equipment is improved.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a schematic flow chart of a dual battery power supply method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of temperature detection of a first battery and a second battery according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of a forced handover process according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of supplying power to an OTG device according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a dual battery power supply circuit provided by an embodiment of the present invention;
FIG. 6 is a schematic diagram of a first cell in-place detection unit according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a battery switching unit provided by an embodiment of the present invention without considering a forced switching situation;
FIG. 8 is a schematic diagram of a battery switching unit considering a forced switching situation according to an embodiment of the present invention;
fig. 9 is a schematic diagram of an external charger access unit for charging according to an embodiment of the present invention;
fig. 10 is a schematic diagram of a charging management unit according to an embodiment of the present invention;
fig. 11 is a schematic diagram of supplying power to an OTG power supply unit according to an embodiment of the present invention;
FIG. 12 is a schematic diagram of a dual battery power supply for an electronic device according to an embodiment of the present invention;
FIG. 13 is a second schematic structural diagram of a dual-battery power supply device according to an embodiment of the present invention
Fig. 14 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," and the like in the description and in the claims, and in the drawings described above, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein.
The embodiment of the invention provides a double-battery power supply method, a double-battery power supply device and electronic equipment, which are used for solving the problem that the electronic equipment cannot be continuously used when batteries are used up and replaced in the prior art.
Illustratively, the dual-battery power supply method and device provided by the embodiment of the invention can be applied to the fields of intelligent wearable equipment and the like.
The dual battery power supply method, apparatus and electronic device of the present invention are described below with reference to fig. 1-14.
Fig. 1 is a schematic flow chart of a dual-battery power supply method according to an embodiment of the present invention, as shown in fig. 1. The invention discloses a double-battery power supply method, which comprises the following steps:
step 101, detecting whether the first battery is connected to the electronic device.
Illustratively, the first battery is a replaceable battery with respect to the electronic device.
If the first battery is connected to the electronic device, step 102 is executed.
If the first battery is not connected to the electronic device, step 103 is executed.
And step 102, controlling the first battery to supply power to the electronic equipment.
And 103, controlling the second battery to supply power to the electronic equipment.
Illustratively, the second battery is a non-replaceable battery with respect to the electronic device.
Illustratively, the rated capacity of the first battery is larger than that of the second battery, such as the rated capacity of the first battery is 5000mAh, and the rated capacity of the second battery is 300 mAh.
It should be noted that the present invention uses the first battery and the second battery to supply power to the electronic device. The second battery is fixedly installed in the electronic device, and the second battery is not replaceable in normal use of the electronic device, but the first battery is not fixedly installed in the electronic device but replaceable relative to the electronic device, for example, the first battery is replaced by plugging, detaching and the like in normal use of the electronic device. In some embodiments, the electronic device is of a modular design, and the first battery forms a separate module that is connected to the electronic device by a connection cord, which can significantly reduce the size of the electronic device. In other embodiments, the electronic device is designed as a single unit, the first battery is detachably mounted to the electronic device, and the first battery can be pulled out from the electronic device through a switch, a locking structure, and the like. The manner of mounting the first battery to the electronic device is only an example, and is not limited herein.
And, when first battery electric quantity is not enough and need to be changed new first battery, for example, through pulling out first battery and change new first battery, electronic equipment accessible second battery supplies power to electronic equipment to realized not shutting down under the circumstances that does not fall the power, quick replacement first battery has promoted electronic equipment's duration.
The method for supplying power to a dual battery according to an embodiment of the present invention is described below with reference to specific embodiments.
The first embodiment is as follows:
the embodiment of the invention provides a double-battery power supply method, which comprises the following steps:
in some embodiments, if the first battery has been connected to the electronic device, controlling the first battery to supply power to the electronic device further includes: continuously detecting whether the current electric quantity of the second battery is smaller than a second preset threshold value; and if the current electric quantity of the second battery is smaller than the second preset threshold value, controlling the first battery to charge the second battery while supplying power to the electronic equipment. For example, after the electronic device is powered on, the system detects whether the first battery has been connected to the electronic device. If the first battery is not connected to the electronic equipment, the second battery supplies power to the electronic equipment, and preferably, the system prompts a user to insert the first battery; if the first battery is connected to the electronic equipment, controlling the first battery to supply power to the electronic equipment, and meanwhile, continuously detecting whether the current electric quantity of the second battery is smaller than a second preset threshold value by the system; if the current equivalent of the second battery is smaller than the second preset threshold value, which indicates that the second battery needs to be charged, the first battery is controlled to charge the second battery while supplying power to the electronic equipment, so that the situation that the electronic equipment cannot be supplied with power due to insufficient electric quantity of the second battery when the first battery is not connected to the electronic equipment is avoided; and if the current electric quantity of the second battery is greater than or equal to a second preset threshold value, the second battery does not need to be charged. Illustratively, the first battery charges the second battery to an electric quantity preset by the system.
In some embodiments, after it is detected that the first battery is connected to the electronic device, it is continuously determined whether the current electric quantity of the first battery is greater than a first preset threshold; and if the current electric quantity of the first battery is smaller than or equal to the first preset threshold value, prompting a user to charge the first battery. For example, after it is detected that the first battery is connected to the electronic device, it is continuously determined whether the current electric quantity of the first battery is greater than a first preset threshold; if the current electric quantity of the first battery is larger than a first preset threshold value, the current electric quantity of the first battery is sufficient and does not need to be charged, and the first battery continues to supply power for the electronic equipment; and if the current electric quantity of the first battery is smaller than or equal to the first preset threshold value, the current electric quantity of the first battery is insufficient, and the first battery needs to be charged, prompting a user to charge the first battery. In some embodiments, after the electronic device is powered on, the system starts to detect the electric quantity of the first battery and/or the second battery in real time; in other embodiments, after the power of the first battery is greater than the first preset threshold or after the first battery is connected to the electronic device, the system starts to detect the power of the second battery in real time, which is not limited herein.
In some embodiments, the manner of charging the first battery includes any one of the following first to third:
the first item: and charging the first battery online, and controlling the first battery to supply power to the electronic equipment while being charged.
Illustratively, the online charging of the first battery, the controlling the first battery to supply power to the electronic device while being charged further includes: continuously detecting whether the current electric quantity of the second battery is smaller than a second preset threshold value; and under the condition that the current electric quantity of the second battery is smaller than the second preset threshold value, controlling the first battery to charge the second battery while supplying power to the electronic equipment. For example, when the current electric quantity of the first battery is less than or equal to the first preset threshold, the first battery may be charged in an online manner such as an external charging line or an external mobile power source, at this time, since the first battery is still connected to the electronic device, the first battery is controlled to supply power to the electronic device while being charged, and during this period, when it is detected that the current electric quantity of the second battery is less than the second preset threshold, the first battery is controlled to supply power to the electronic device while being charged, and simultaneously, the second battery is also charged.
The second term is: the first battery is charged off line, and the second battery is controlled to supply power to the electronic equipment; for example, when the current electric quantity of the first battery is less than or equal to the first preset threshold, the first battery is pulled out/detached from the electronic device, and the first battery can be charged in an offline manner such as an external charging dock, and at this time, the second battery supplies power to the electronic device because the first battery is not connected to the electronic device.
The third item: and when the first battery is replaced, controlling a new first battery to supply power to the electronic equipment after the fact that the new first battery is connected is detected.
Illustratively, the step of replacing the first battery and controlling a new first battery to supply power to the electronic device after detecting that the new first battery is accessed further comprises: continuously detecting whether the current electric quantity of the second battery is smaller than a second preset threshold value; and under the condition that the current electric quantity of the second battery is smaller than the second preset threshold value, controlling the new first battery to charge the second battery while supplying power to the electronic equipment. For example, when the current electric quantity of the first battery is less than or equal to the first preset threshold, the first battery may be replaced with a new first battery by pulling out/detaching or the like. And controlling the second battery to supply power to the electronic equipment during the replacement of the first battery because the first battery/new first battery is not connected to the electronic equipment. And when the current electric quantity of the second battery is detected to be smaller than the second preset threshold value, the new first battery is controlled to supply power to the electronic equipment and charge the second battery. Wherein the new first battery has a higher charge than the first battery. The third item is different from the second item in that the electronic device in the second item only has the second battery, and the electronic device in the third item has the second battery and the new first battery, so that the third item is that the new first battery supplies power to the electronic device, and the second item is that the second battery supplies power to the electronic device.
The first embodiment provides that the electronic equipment is powered by the first battery when the first battery is connected into the electronic equipment, and the electronic equipment is powered by the second battery when the first battery is not connected into the electronic equipment. The first electronic is charged in three ways (online, offline, and replaced), and the second battery is charged by the first battery.
Therefore, the purpose of charging the first battery and/or the second battery is to normally supply power to the electronic device, so that the problem of system power failure caused by insufficient electric quantity of the second battery and incapability of supplying power to the electronic device when the first battery is not connected to the electronic device is solved.
Example two:
because the electronic equipment is powered by the first battery or the second battery uninterruptedly after being started, if the temperature of the first battery or the second battery is too high, the working efficiency and the service life of the battery and the normal use of the electronic equipment are affected, and therefore, the working temperature of the first battery and/or the second battery needs to be detected in real time.
In some embodiments, it is continuously detected whether the temperature of the first battery is greater than a first preset temperature threshold and/or it is continuously detected whether the temperature of the second battery is greater than a second preset temperature threshold; and if the temperature of the first battery is greater than the first preset temperature threshold and/or the temperature of the second battery is greater than the second preset temperature threshold, starting a corresponding temperature protection mechanism. The first preset temperature threshold and the second preset temperature threshold may be the same or different. The temperature protection mechanism includes, but is not limited to, stopping power supply, stopping charging, controlling the electronic device to shut down, and the like. The temperature of the first battery and/or the second battery is continuously detected, which may be after the electronic device is powered on, or after the first battery and/or the second battery starts to be charged or powered, which is not limited herein. For example, it may be possible to continuously detect only whether the temperature of the first battery is greater than a first preset temperature threshold, and not detect whether the temperature of the second battery is greater than a second preset temperature threshold; when the temperature of the first battery is greater than a first preset temperature threshold value, starting a corresponding temperature protection mechanism; for another example, it may only be continuously detected whether the temperature of the second battery is greater than the second preset temperature threshold, and it is not detected whether the temperature of the first battery is greater than the first preset temperature threshold; when the temperature of the second battery is greater than a second preset temperature threshold value, starting a corresponding temperature protection mechanism; for example, it is possible to continuously detect whether the temperature of the second battery is greater than the second preset temperature threshold while continuously detecting whether the temperature of the first battery is greater than the first preset temperature threshold. And when the temperature of the first battery is greater than a first preset temperature threshold value or when the temperature of the second battery is greater than a second preset temperature threshold value, starting a corresponding temperature protection mechanism.
Fig. 2 is a schematic flow chart of simultaneously detecting the temperatures of the first battery and the second battery according to an embodiment of the present invention. The double-battery power supply method provided by the embodiment of the invention further comprises the following steps:
step 301, the electronic device is powered on.
Step 302, continuously detecting whether the temperature of a first battery of the electronic device is greater than a first preset temperature threshold.
If the temperature of the first battery is greater than the first predetermined temperature threshold, go to step 304.
Step 303, continuously detecting whether the temperature of the second battery is greater than a second preset temperature threshold.
If the temperature of the second battery is greater than the second preset temperature threshold, step 304 is executed. At step 304, a corresponding temperature protection mechanism is initiated.
Fig. 2 shows an example in which the temperature of the first battery and the temperature of the second battery are detected at the same time, but in another embodiment of the present invention, the temperature of the first battery and the temperature of the second battery may not be detected at the same time.
In some embodiments, said initiating a respective temperature protection mechanism comprises any one of: the first item: continuously detecting whether the temperature of the second battery is greater than a second preset temperature threshold value or not during the period that the first battery charges the second battery; and when the temperature of the second battery is greater than the second preset temperature threshold value, controlling the first battery to stop charging the second battery. The second term is: continuously detecting whether the temperature of the first battery is greater than a first preset temperature threshold value or not during the period that the first battery supplies power to the electronic equipment; and when the temperature of the first battery is greater than the first preset temperature threshold value, controlling the first battery to stop supplying power to the electronic equipment or controlling a system to be shut down. The third item: continuously detecting whether the temperature of the second battery is greater than a second preset temperature threshold value or not during the period that the second battery supplies power to the electronic equipment; and when the temperature of the second battery is greater than the second preset temperature threshold value, controlling the second battery to stop supplying power to the electronic equipment or controlling a system to be shut down. Continuously detecting whether the temperature of the first battery is greater than a first preset temperature threshold value or not during online charging of the first battery; and when the temperature of the first battery is greater than the first preset temperature threshold value, controlling the first battery to stop charging.
In some embodiments, after the electronic device is powered on, the system starts to detect the temperature of the first battery and/or the second battery in real time. In other embodiments, the system begins to detect the temperature of the first battery and/or the second battery in real time after the first battery and/or the second battery begin to charge or power.
For example, during the period when the first battery charges the second battery, for example, when the current electric quantity of the second battery is smaller than a second preset threshold, the first battery charges the second battery, and if the temperature of the second battery is greater than the second preset temperature threshold, a corresponding temperature protection mechanism is started, for example, the first battery is controlled to stop charging the second battery.
For another example, during the period that the first battery supplies power to the electronic device, if the first battery is connected to the electronic device, the first battery supplies power to the electronic device, and if the temperature of the first battery is greater than the first preset temperature threshold, the corresponding temperature protection mechanism is started, for example, the first battery is controlled to stop supplying power to the electronic device or the system is controlled to shut down. For another example, during the period that the second battery supplies power to the electronic device, if the first battery is not connected to the electronic device, the second battery supplies power to the electronic device, and if the temperature of the second battery is greater than a second preset temperature threshold, a corresponding temperature protection mechanism is started, for example, the second battery is controlled to stop supplying power to the electronic device or the system is controlled to shut down.
For another example, when the first battery is charged online, if the current electric quantity of the first battery is less than or equal to a first preset threshold, the first battery is selected to be charged in an online manner such as an external charging line or a charger, and if the temperature of the first battery is greater than the first preset temperature threshold, the charging of the first battery is stopped. For example, when the first battery is charged online, and the electronic device is powered by the first battery and the second battery is charged by the first battery, it is also necessary to detect the temperature of the first battery and/or the second battery in real time, and if the real-time temperature of the first battery is greater than the first preset temperature threshold and/or the real-time temperature of the second battery is greater than the second preset temperature threshold, applying a temperature protection mechanism to the first battery and/or the second battery includes any one of stopping charging the first battery, stopping power supply to the electronic device, controlling a system to shut down, and stopping charging the second battery, which may be specifically set according to actual needs, and the present invention is not limited thereto.
The embodiment of the invention provides the temperature protection mechanism function of the double-battery power supply method, and the safety protection of the double batteries during charging or power supply of electronic equipment can be realized.
Example three:
in some special cases, such as the first battery or the second battery is overcharged or overdischarged. The overcharging means that the battery is charged continuously after reaching a full-charge state; over-discharge means that the battery continues to discharge after being normally discharged to a cut-off voltage. In either case, the life of the dual battery and the normal use of the electronic device are affected. Therefore, it is necessary to provide a protection mechanism for forcing the switching signal in the embodiments of the present invention.
Fig. 3 is a schematic flow chart of a forced handover process according to an embodiment of the present invention, as shown in fig. 3. The double-battery power supply method provided by the embodiment of the invention comprises the following steps:
step 401, the electronic device is powered on.
In step 402, if the forced switching signal is not received, step 403 is executed.
Step 403, performing the steps of the dual battery power supply method according to the first embodiment and/or the second embodiment, which are not described herein again.
In step 404, if a forced switching signal is received, step 405 is executed.
Step 405, performing corresponding control processing according to the forced switching signal.
Alternatively, the forced switching signal may be a forced switching signal set by the system according to a special situation, for example, a forced switching signal corresponding to a situation that the first battery or the second battery is overcharged or overdischarged, or may be a forced switching signal manually selected, for example, a forced switching signal corresponding to a situation that a user of the electronic device forcibly selects the first battery or the second battery to supply power, which is not limited in the embodiment of the present invention.
In some embodiments, after the first battery is in an over-discharge condition (for example, the voltage of the first battery is 0V), or after the user of the electronic device selects the second battery to supply power, even if the first battery is connected to the electronic device or the second battery is in the over-discharge condition, the system receives a forced switching signal for forcibly switching the second battery to supply power, and the system controls the second battery to supply power to the electronic device; during, if the current electric quantity of second battery is less than when the second presets the threshold value or the second battery is in the overdischarge condition, can directly charge the second battery through online mode such as external charging wire or treasured that charges. In other embodiments, after the second battery is in an over-discharge condition (for example, the voltage of the second battery is 0V), or after the user of the electronic device selects the first battery to supply power, even if the first battery is not connected to the electronic device or the first battery is in an over-discharge state, the system receives a forced switching signal for forcibly switching the first battery to supply power, and the system controls the first battery to supply power to the electronic device; meanwhile, if the current electric quantity of the first battery is smaller than a first preset threshold value or the first battery is in an over-discharge state, the first battery can be charged in an online mode such as an external charging wire or a charger; furthermore, when the current electric quantity of the second battery is smaller than a second preset threshold value during the period that the first battery supplies power to the electronic device, the first battery is controlled to charge the second battery while supplying power to the electronic device.
Therefore, the forced switching protection mechanism provided by the third embodiment considers the special situations (such as overcharge, overdischarge, and the like) encountered by the first battery and the second battery during the operation and the situation of manual selection operation by the user, which is beneficial to prolonging the service lives of the first battery and the second battery and the normal use of the electronic device.
Example four:
OTG (On-The-Go) is a technology developed in recent years, and is mainly applied to connection between different devices or mobile devices to exchange data. The electronic equipment provided by the embodiment of the invention has an OTG function. Therefore, after the electronic device starts the OTG function, the first battery according to the embodiment of the present invention may be used to supply power to the OTG device.
Fig. 4 is a schematic flowchart of the power supply to the OTG device according to the embodiment of the present invention, as described in fig. 4. The double-battery power supply method of the embodiment of the invention further comprises the following steps:
step 501, the electronic device is powered on.
Step 502, detecting whether an OTG device is inserted.
If an OTG device is plugged in, step 503 is executed.
And step 503, controlling the first battery to supply power to the electronic device and also supply power to the OTG device.
For the first to fourth embodiments, the embodiment of the present invention further provides schematic diagrams of corresponding dual battery power supply circuits for specific description.
Fig. 5 is a schematic diagram of a dual battery power supply circuit provided by an embodiment of the present invention, as shown in fig. 5. A dual battery power supply circuit 600 for an electronic device includes a first battery 601, a second battery 602, an OTG power supply unit 603, a first battery level detection unit 604, a first battery temperature detection unit 605, a first battery presence detection unit 606, a battery switching unit 607, a charging management unit 608, a second battery level detection unit 609, a second battery temperature detection unit 614, a power management unit 610, a CPU control unit 611, a charging control unit 612, and an external charger access unit 613.
The first battery 601 is electrically connected to the OTG power supply unit 603, the first battery power detection unit 604, the first battery temperature detection unit 605, the first battery presence detection unit 606, the battery switching unit 607, the power management unit 610, and the charging management unit 608.
The second battery 602 is electrically connected to the battery switching unit 607, the charging management unit 608, the second battery power detection unit 609, and the second battery temperature detection unit 614.
The power management unit 610 is electrically connected to the first battery level detection unit 604, the first battery temperature detection unit 605, the first battery 601, the battery switching unit 607, the second battery level detection unit 609, the second battery temperature detection unit 614, the CPU control unit 611, and the charging control unit 612, respectively.
The CPU control unit 611 is electrically connected to the first battery presence detection unit 606, the battery switching unit 607, the charging management unit 608, the power management unit 610, the charging control unit 612, and the external charger access unit 613, respectively.
As can be seen from fig. 5, the first battery 601 is used for supplying power to the OTG device through the OTG power supply unit 603, for supplying power to the electronic device through the battery switching unit 607, and for charging the second battery 602 through the charging management unit 608. The second battery 602 is used to supply power to the electronic device through the battery switching unit 607. The charging management unit 608 is used for performing charging management on the second battery 602. The power management unit 610 is configured to detect temperatures of the second battery 602 and the first battery 601, and detect power levels of the first battery 601 and the second battery 602 in real time through the first battery power detection unit 604 and the second battery power detection unit 609. The power management unit 610 is used for power management of the electronic device through the battery switching unit 607. The power management unit 610 is configured to charge the first battery 601 or the second battery 602 through the charge control unit 612. The CPU control unit 611 is configured to detect whether the first battery is connected to the electronic device through the first battery presence detection unit 606. The CPU control unit 611 is used to perform power supply battery switching by controlling the battery switching unit 607. The CPU control unit 611 is configured to control the charging management unit 608 to perform charging management on the second battery 602. The CPU control unit 611 is configured to perform charger access detection for the external charger access unit 613. The CPU control unit 611 is configured to perform charger input conduction control on the charging control unit 612.
The first battery presence detection unit 606, the battery switching unit 607, the external charger access unit 613, the charging management unit 608, the OTG power supply unit 603, and the like in fig. 5 will be described in detail below with reference to fig. 6 to 11.
Illustratively, the circuit of the first battery presence detecting unit 606 is shown in fig. 6, and the first battery presence detecting unit 606 is configured to detect whether the first battery has been connected, for example, whether the first battery is in place. If the first battery is connected, the enable generator in the first battery presence detection unit 606 outputs an enable signal to the high-low level switching circuit, which causes the input level of the GPIO1 interface of the CPU control unit 611 to change, so that the CPU control unit 611 can detect whether the first battery is connected.
It should be noted that the GPIO1 interface is only an example, and may also be a GPIO2 interface or other interfaces, which are specifically set according to actual circuit requirements, and the present invention is not limited to the GPIO1 interface.
Illustratively, if the embodiment of the present invention does not consider the case of forced switching described in the third embodiment, the circuit of the battery switching unit 607 in fig. 5 for performing the first and second battery switching is shown in fig. 7:
the battery switching unit 607 includes an enable generator, a switching circuit, a first switch, and a second switch. If the first battery 601 has been connected to the electronic device, the first battery 601 drives the enable generator in the battery switching unit 607, the enable generator outputs a signal to the switching circuit, and the switching circuit outputs the enable required for turning on the first switch of the first battery to supply power to the electronic device, so as to control the first battery 601 to supply power to the electronic device. If the first battery 601 is not connected to the electronic device, the switching circuit outputs the enable required for turning on the second switch for supplying power to the electronic device by the second battery, and controls the second battery 602 to supply power to the electronic device.
Exemplarily, if the embodiment of the present invention considers the case of forced switching shown in the third embodiment, the circuit of the battery switching unit 607 in fig. 5 for performing the first and second battery switching is shown in fig. 8:
the battery switching unit 607 includes an enable generator, a first stage comparison circuit, a second stage comparison circuit, a first high-low level switching circuit, a second high-low level switching circuit, a third high-low level switching circuit, a first switch, and a second switch. The first battery 601 drives the enable generator, the enable generator outputs a signal to the first stage of comparison circuit, and the CPU control unit 611 sends a signal to the first high-low level switching circuit in the battery switching unit 607 through the GPIO2 interface, the signal of the GPIO2 interface does not change with the connection or the disconnection of the first battery, and the first high-low level switching circuit also outputs a signal to the first stage of comparison circuit for comparison. The first-stage comparison circuit outputs a signal to the second-stage comparison circuit after comparison, the second-stage comparison circuit compares the signal with a signal output by a GPIO3 interface of the CPU control unit 611, the signal output by the GPIO3 interface cannot change along with the connection or the extraction of the first battery 601, and the second-stage comparison circuit outputs a signal to the switching circuit after comparison. The second high-low level switching circuit and the third high-low level switching circuit are used to satisfy logic switching requirements (such as level amplitude or high-low requirements), and if one or more high-low level switching circuits can satisfy the logic switching requirements, one or more high-low level switching circuits may also be used, where the number of the high-low level switching circuits is not limited herein.
Illustratively, the GPIO2 interface may output a forcing signal for forcing a switch to a second battery by which the electronic device is powered. When the second battery supplies power to the electronic device through the forced switching signal, if the current electric quantity of the second battery is smaller than the second preset threshold value or the second battery is in an over-discharge state, the second battery can be directly charged through an external charging wire or an external mobile power supply, and the second battery does not need to be charged by the first battery like the embodiment.
It should be noted that the forcing signal output through the GPIO2 interface is used to force the second battery to be switched to supply power to the electronic device, even if the second battery is in an overdischarged state, or even if the first battery is connected to the electronic device (whether the first battery is overdischarged or not), the forcing signal can be forced to be switched to the second battery.
For example, the GPIO3 interface may output a forcing signal for forcing the switching to the first battery to supply power to the electronic device from the first battery, and the first battery may be forced to be switched to the first battery even if the first battery is not connected to the electronic device, or the first battery is in an over-discharge state, or the first battery cannot identify whether the first battery is connected to the electronic device by the presence detection unit 606. When the first battery supplies power to the electronic equipment through the forced switching signal, if the current electric quantity of the first battery is smaller than a first preset threshold value or the first battery is in an over-discharge state, the first battery is directly charged through an external charging line or an external mobile power supply, and further, when the first battery supplies power to the electronic equipment through the forced switching signal and the current electric quantity of the second battery is smaller than a second preset threshold value, the first battery is controlled to charge the second battery while supplying power to the electronic equipment.
Illustratively, if neither the GPIO2 interface nor the GPIO3 interface outputs the forcing signal, when the first battery is connected to the electronic device, the switching circuit outputs an enable signal required to turn on the switch for powering the electronic device by the first battery, and the electronic device is powered by the first battery at this time; when the first battery is not connected with the electronic equipment, the switching circuit outputs an enabling signal required by a switch for conducting the second battery to supply power to the electronic equipment, and at the moment, the second battery supplies power to the electronic equipment.
It should be noted that the interfaces GPIO2 and GPIO3 are only examples, and may be other interfaces, which are specifically set according to actual circuit requirements, and the present invention is not limited to the interfaces GPIO2 and GPIO 3.
Illustratively, the power management unit 610 shown in fig. 5 acquires the power of the first battery 601 in real time through the first battery power detection unit 604. If the power management unit 610 detects that the electric quantity of the first battery 601 is smaller than the first preset threshold, it prompts the user to charge the first battery 601. If the first battery is replaced by a new first battery, the CPU control unit 611 obtains that the first battery is already pulled out through the first battery presence detection unit 606, and the CPU control unit 611 controls the battery switching unit 607 to switch the power supply of the electronic device to the power supply of the second battery 602, so as to ensure that the electronic device is not powered off and is not powered down during the replacement of the first battery (as shown in fig. 7). If the first battery 601 is charged by an external charging line or an external mobile power source, the CPU control unit may detect whether the charger is connected through the external charger access unit 613, and the process of charging through the external charger access unit 613 in fig. 5 is shown in fig. 9.
In fig. 9, when the charger is connected, the external charger connection unit 613 sends a signal to the GPIO4 interface of the CPU control unit 611, and the GPIO5 interface of the CPU control unit 611 controls the high-low level switching circuit to output an enable signal required to turn on the switch for charging the external charger to the charging control unit 612, and then charges the currently used battery (the first battery 601 or the second battery 602) through the power management unit 610.
The power management unit 610 acquires the power of the second battery 602 in real time through the second battery power detection unit 609. In some embodiments, after the electronic device is powered on, the power management unit 610 shown in fig. 5 may detect the power of the second battery in real time (regardless of whether the power of the first battery is sufficient or not). If the second battery 602 needs to be charged, in the absence of the forced switching signal, the CPU control unit 611 controls the charging management unit 608 to charge the second battery 602 through the charging management unit 608 by the first battery 601 (as shown in fig. 10).
It should be noted that the interfaces GPIO4 and GPIO5 are only examples, and may be other interfaces, which are specifically set according to actual circuit requirements, and the present invention is not limited to the interfaces GPIO4 and GPIO 5.
In fig. 10, the GPIO6 interface of the CPU control unit 611 is electrically connected to the enable terminal of the step-up DCDC converter (which represents a device that converts a dc power supply of a certain voltage level into a dc power supply of another voltage level) to control the enable of the step-up DCDC converter through the GPIO6 interface; the GPIO7 interface of the CPU control unit 611 is electrically connected to the enable terminal of the charging management unit 608, and is configured to output an enable signal to the charging management unit 608. The first battery 601 is electrically connected to an input terminal of the step-up DCDC converter. The output terminal of the boost DCDC converter is electrically connected to the input terminal of the charge management unit 608 to output a voltage signal for charging the second battery 602. When the GPIO7 interface of the CPU control unit 611 outputs an enable signal to the charge management unit 608, the first battery 601 starts charging the second battery 602. After acquiring the electric quantity of the second battery 602, the power management unit 610 notifies the CPU control unit 611, and the CPU control unit 611 controls the electric quantity charged by the second battery 602 through the GPIO6 interface and the GPIO7 interface.
It should be noted that the interfaces GPIO6 and GPIO7 are only examples, and may be other interfaces, which are specifically set according to actual circuit requirements, and the present invention is not limited to the interfaces GPIO6 and GPIO 7. For example, the power management unit 610 shown in fig. 5 acquires the temperature of the first battery 601 in real time through the first battery temperature detection unit 605, and the power management unit 610 may also acquire the temperature of the second battery 602 in real time through the second battery temperature detection unit 614. The temperature protection mechanism as described in the second embodiment above is then adopted according to the current temperatures of the first battery 601 and the second battery 602.
Exemplarily, a power supply flow of the OTG power supply unit 603 illustrated in fig. 5 is illustrated in fig. 11. After the electronic device starts the OTG function, the OTG power supply unit 603 supplies power to the OTG device, and the first battery 601 directly supplies power to the OTG power supply unit 603.
Fig. 11 shows that the first battery 601 is electrically connected to an input terminal of the switch, a CPIO8 interface of the CPU control unit 611 is electrically connected to an enable terminal of the high-low level switching circuit and an enable terminal of the boost DCDC converter, respectively, an output terminal of the high-low level switching circuit is connected to the enable terminal of the switch, an input terminal of the boost DCDC converter is connected to an output terminal of the switch, and an output terminal of the boost DCDC converter is electrically connected to the OTG device.
When detecting that an OTG device is connected, the CPU control unit 611 outputs an enable signal to the high-low level switching circuit and the boost DCDC converter through the GPIO8 interface, the high-low level switching circuit outputs the enable signal to the on-switch of the first battery, and outputs the voltage of the first battery to the input end of the boost DCDC converter through the output end of the switch, and the boost DCDC converter boosts the voltage to a preset voltage value (for example, 5V) and outputs the voltage to the OTG device through the electronic device interface.
It should be noted that the GPIO8 interface is only an example, and may be other interfaces, which are specifically set according to actual circuit requirements, and the present invention is not limited to the GPIO8 interface.
In summary, the circuit diagrams provided in fig. 5 to fig. 11 are used to illustrate the method for supplying power to two batteries according to the embodiment of the present invention.
The dual battery power supply apparatus provided by the embodiment of the present invention is described below, and the dual battery power supply apparatus described below and the dual battery power supply method described above may be referred to correspondingly.
Fig. 12 is a schematic diagram of a dual-battery power supply structure for an electronic device according to an embodiment of the present invention, as shown in fig. 12. A dual battery powered device 1300 includes a detection module 1310 and a control module 1320. Wherein the content of the first and second substances,
a detecting module 1310 configured to detect whether the first battery has been connected to the electronic device.
A control module 1320, configured to control the first battery to power the electronic device if the first battery has been connected to the electronic device, and control the second battery to power the electronic device if the first battery has not been connected to the electronic device.
Optionally, the first battery is a replaceable battery with respect to the electronic device, and the second battery is a non-replaceable battery with respect to the electronic device.
Illustratively, the detecting module 1310 is further configured to:
and continuously detecting whether the current electric quantity of the second battery is smaller than a second preset threshold value.
Illustratively, the control module 1320 is further configured to:
and if the current electric quantity of the second battery is smaller than the second preset threshold value, controlling the first battery to charge the second battery while supplying power to the electronic equipment.
Illustratively, the control module 1320 is further configured to:
and if the current electric quantity of the first battery is smaller than or equal to the first preset threshold value, prompting a user to charge the first battery.
For example, the manner of charging the first battery may include any one of the following first to third:
the first item: the first battery is charged online, and the first battery is controlled to supply power to the electronic equipment while being charged;
the second term is: the first battery is charged off line, and the second battery is controlled to supply power to the electronic equipment;
the third item: and when the first battery is replaced, controlling a new first battery to supply power to the electronic equipment after the fact that the new first battery is connected is detected.
Illustratively, the control module 1320 is further configured to:
and under the condition that the current electric quantity of the second battery is smaller than the second preset threshold value, controlling the first battery to charge the second battery while supplying power to the electronic equipment.
Illustratively, the rated capacity of the first battery is larger than the rated capacity of the second battery.
Illustratively, the detecting module 1310 is further configured to:
and continuously detecting whether the temperature of the first battery is greater than a first preset temperature threshold value and/or continuously detecting whether the temperature of the second battery is greater than a second preset temperature threshold value.
Illustratively, the control module 1320 is further configured to:
and if the temperature of the first battery is greater than the first preset temperature threshold and/or the temperature of the second battery is greater than the second preset temperature threshold, starting a corresponding temperature protection mechanism.
Illustratively, the control module 1320 is further configured to:
continuously detecting whether the temperature of the second battery is greater than a second preset temperature threshold value or not during the period that the first battery charges the second battery; when the temperature of the second battery is greater than the second preset temperature threshold value, controlling the first battery to stop charging the second battery;
continuously detecting whether the temperature of the first battery is greater than a first preset temperature threshold value or not during the period that the first battery supplies power to the electronic equipment; when the temperature of the first battery is greater than the first preset temperature threshold, controlling the first battery to stop supplying power to the electronic equipment or controlling a system to be shut down;
continuously detecting whether the temperature of the second battery is greater than a second preset temperature threshold value or not during the period that the second battery supplies power to the electronic equipment; when the temperature of the second battery is greater than the second preset temperature threshold, controlling the second battery to stop supplying power to the electronic equipment or controlling a system to be shut down;
continuously detecting whether the temperature of the first battery is greater than the first preset temperature threshold value during the online charging of the first battery. And when the temperature of the first battery is greater than the first preset temperature threshold value, controlling the first battery to stop charging.
Illustratively, the control module 1320 is further configured to:
after the electronic equipment is connected with a peripheral, the first battery is controlled to supply power to the electronic equipment and the peripheral at the same time.
Fig. 12 described above illustrates an embodiment of the dual battery power supplying apparatus in which the forced switching signal is not considered, and fig. 13 illustrates an embodiment of the dual battery power supplying apparatus in which the forced switching is considered.
Fig. 13 is a second schematic structural diagram of a dual-battery power supply device according to an embodiment of the present invention, as shown in fig. 13. A dual battery powered device 1400 comprising a power module 1410 and a switching module 1420, wherein,
the power supply module 1410 is configured to execute the steps of the dual battery power supply method as described above when the forced switching signal is not received.
Specifically, the power supply module 1410 includes the detection module 1310 and the control module 1320 described above, and the detection module 1310 and the control module 1320 perform the corresponding steps described above.
The switching module 1420 is configured to perform corresponding control processing according to the forced switching signal when the forced switching signal is received.
Illustratively, the switching module 1420 is further configured to:
and if the received forced switching signal is a signal for forcibly switching to the power supply of a second battery, controlling the second battery to supply power to the electronic equipment.
Illustratively, the switching module 1420 is further configured to:
and if the received forced switching signal is a signal for forcibly switching to the power supply of the first battery, controlling the first battery to supply power to the electronic equipment.
Fig. 14 illustrates a physical structure diagram of an electronic device, and as shown in fig. 14, the electronic device may include: a processor (processor)1510, a communication interface (communications interface)1520, a memory (memory)1530 and a communication bus 1540, wherein the processor 1510, the communication interface 1520 and the memory 1530 communicate with each other via the communication bus 1540. The processor 1510 may invoke logic instructions in the memory 1530 to perform the dual battery power method described above, the method comprising:
detecting whether a first battery is connected to the electronic equipment;
if the first battery is connected to the electronic equipment, controlling the first battery to supply power to the electronic equipment;
if the first battery is not connected to the electronic equipment, controlling a second battery to supply power to the electronic equipment;
wherein the first battery is a replaceable battery with respect to the electronic device and the second battery is a non-replaceable battery with respect to the electronic device.
Illustratively, the method may also include:
if the forced switching signal is not received, executing the step of the double-battery power supply method;
and if a forced switching signal is received, carrying out corresponding control processing according to the forced switching signal.
In addition, the logic instructions in the memory 1530 may be implemented in the form of software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
In another aspect, the present invention also provides a computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the above-mentioned dual battery power supply method provided by the above-mentioned methods.
In yet another aspect, the present invention also provides a non-transitory computer-readable storage medium having stored thereon a computer program, which when executed by a processor is implemented to perform the above-mentioned dual battery power supply method provided in each of the above.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (17)

1. A dual-battery power supply method is applied to electronic equipment, and is characterized by comprising the following steps:
detecting whether a first battery is connected to the electronic equipment;
if the first battery is connected to the electronic equipment, controlling the first battery to supply power to the electronic equipment;
if the first battery is not connected to the electronic equipment, controlling a second battery to supply power to the electronic equipment;
wherein the first battery is a replaceable battery with respect to the electronic device and the second battery is a non-replaceable battery with respect to the electronic device.
2. The dual-battery power supply method of claim 1, wherein the controlling the first battery to supply power to the electronic device if the first battery is connected to the electronic device further comprises:
continuously detecting whether the current electric quantity of the second battery is smaller than a second preset threshold value;
and if the current electric quantity of the second battery is smaller than the second preset threshold value, controlling the first battery to charge the second battery while supplying power to the electronic equipment.
3. The dual battery power supply method of claim 1, further comprising:
after the first battery is detected to be connected to the electronic equipment, continuously judging whether the current electric quantity of the first battery is larger than a first preset threshold value; and if the current electric quantity of the first battery is smaller than or equal to the first preset threshold value, prompting a user to charge the first battery.
4. The dual battery power supply method according to claim 3, wherein the manner of charging the first battery includes any one of the following first to third:
the first item: the first battery is charged online, and the first battery is controlled to supply power to the electronic equipment while being charged;
the second term is: the first battery is charged off line, and the second battery is controlled to supply power to the electronic equipment;
the third item: and replacing the first battery, and controlling a new first battery to supply power to the electronic equipment after detecting that the new first battery is accessed.
5. The dual battery power supply method of claim 4, wherein the online charging of the first battery, the controlling the first battery to supply power to the electronic device while being charged further comprises:
continuously detecting whether the current electric quantity of the second battery is smaller than a second preset threshold value;
and under the condition that the current electric quantity of the second battery is smaller than the second preset threshold value, controlling the first battery to charge the second battery while supplying power to the electronic equipment.
6. The dual battery power supply method of claim 4, wherein the step of replacing the first battery and controlling a new first battery to power the electronic device upon detecting that the new first battery is accessed further comprises:
continuously detecting whether the current electric quantity of the second battery is smaller than a second preset threshold value;
and under the condition that the current electric quantity of the second battery is smaller than the second preset threshold value, controlling the new first battery to charge the second battery while supplying power to the electronic equipment.
7. The dual battery power supply method of claim 1, wherein a rated capacity of the first battery is greater than a rated capacity of the second battery.
8. The dual battery power supply method according to any one of claims 1-6, wherein the method further comprises:
continuously detecting whether the temperature of the first battery is greater than a first preset temperature threshold value and/or continuously detecting whether the temperature of the second battery is greater than a second preset temperature threshold value;
and if the temperature of the first battery is greater than the first preset temperature threshold and/or the temperature of the second battery is greater than the second preset temperature threshold, starting a corresponding temperature protection mechanism.
9. The dual battery power supply method of claim 8, wherein said initiating a corresponding temperature protection mechanism comprises any of:
continuously detecting whether the temperature of the second battery is greater than a second preset temperature threshold value or not during the period that the first battery charges the second battery; when the temperature of the second battery is greater than the second preset temperature threshold value, controlling the first battery to stop charging the second battery;
continuously detecting whether the temperature of the first battery is greater than a first preset temperature threshold value or not during the period that the first battery supplies power to the electronic equipment; when the temperature of the first battery is greater than the first preset temperature threshold, controlling the first battery to stop supplying power to the electronic equipment or controlling a system to be shut down;
continuously detecting whether the temperature of the second battery is greater than a second preset temperature threshold value or not during the period that the second battery supplies power to the electronic equipment; when the temperature of the second battery is greater than the second preset temperature threshold, controlling the second battery to stop supplying power to the electronic equipment or controlling a system to be shut down;
continuously detecting whether the temperature of the first battery is greater than the first preset temperature threshold value or not during the online charging of the first battery; and when the temperature of the first battery is greater than the first preset temperature threshold value, controlling the first battery to stop charging.
10. The dual battery power supply method of claim 1, further comprising:
after the electronic equipment is connected with a peripheral, the first battery is controlled to supply power to the electronic equipment and the peripheral at the same time.
11. A double-battery power supply method is applied to electronic equipment and is characterized by comprising the following steps:
-if no forced switching signal is received, performing the steps of the dual battery power supply method according to any of the preceding claims 1-10;
and if a forced switching signal is received, carrying out corresponding control processing according to the forced switching signal.
12. The dual-battery power supply method according to claim 11, wherein the step of performing the corresponding control processing according to the forced switching signal if the forced switching signal is received comprises:
and if the received forced switching signal is a signal for forcibly switching to the power supply of a second battery, controlling the second battery to supply power to the electronic equipment.
13. The dual-battery power supply method according to claim 11, wherein the step of performing the corresponding control processing according to the forced switching signal if the forced switching signal is received comprises:
and if the received forced switching signal is a signal for forcibly switching to the power supply of the first battery, controlling the first battery to supply power to the electronic equipment.
14. A dual battery power supply apparatus for an electronic device, the apparatus comprising:
the detection module is used for detecting whether the first battery is connected to the electronic equipment or not;
the control module is used for controlling the first battery to supply power to the electronic equipment if the first battery is connected with the electronic equipment, and controlling the second battery to supply power to the electronic equipment if the first battery is not connected with the electronic equipment;
wherein the first battery is a replaceable battery with respect to the electronic device and the second battery is a non-replaceable battery with respect to the electronic device.
15. A dual battery power supply apparatus for an electronic device, the apparatus comprising:
a power supply module for performing the steps of the dual battery power supply method according to any one of claims 1-10 above when a forced switching signal is not received;
and the switching module is used for carrying out corresponding control processing according to the forced switching signal when receiving the forced switching signal.
16. An electronic device comprising a memory, a processor and a computer program stored on the memory and running on the processor, characterized in that the steps of the dual battery power method according to any of claims 1 to 10 are implemented when the processor executes the program.
17. An electronic device comprising a memory, a processor and a computer program stored on the memory and running on the processor, characterized in that the steps of the dual battery power method according to any of claims 11 to 13 are implemented when the processor executes the program.
CN202110927913.8A 2021-08-11 2021-08-11 Double-battery power supply method and device and electronic equipment Pending CN113472057A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110927913.8A CN113472057A (en) 2021-08-11 2021-08-11 Double-battery power supply method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110927913.8A CN113472057A (en) 2021-08-11 2021-08-11 Double-battery power supply method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN113472057A true CN113472057A (en) 2021-10-01

Family

ID=77866509

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110927913.8A Pending CN113472057A (en) 2021-08-11 2021-08-11 Double-battery power supply method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN113472057A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105914839A (en) * 2016-05-31 2016-08-31 深圳埃蒙克斯科技有限公司 Double-cell mobile phone and cell control method and system thereof
CN107910911A (en) * 2015-03-09 2018-04-13 广东欧珀移动通信有限公司 A kind of charge control method, terminal and computer-readable storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107910911A (en) * 2015-03-09 2018-04-13 广东欧珀移动通信有限公司 A kind of charge control method, terminal and computer-readable storage medium
CN105914839A (en) * 2016-05-31 2016-08-31 深圳埃蒙克斯科技有限公司 Double-cell mobile phone and cell control method and system thereof

Similar Documents

Publication Publication Date Title
CN107749648B (en) Mobile terminal
CN108124498B (en) Equalizing circuit, device to be charged and charging control method
EP3309924B1 (en) A terminal with two charging circuits
CN103107569B (en) The method of executive system power management and device
US8793518B2 (en) Systems and methods for providing supplemental power to battery powered information handling systems
EP2180573B1 (en) System and method for controlling charging of battery of portable terminal
CN103777730A (en) Power management circuit and method thereof
CN104701937B (en) charging method, terminal device and adapter
US9306418B2 (en) Uninterruptible power-supply apparatus and method of using the same
JP3143670U (en) Battery structure for portable electronic devices
CN105829990A (en) Method and apparatus for charging electronic device with USB connection
CN114448010A (en) Charging and discharging control system and method and battery pack
WO2018028316A1 (en) Terminal charging control method, device and terminal
JP5613135B2 (en) Battery unit for portable terminal device and power supply method
US20170005509A1 (en) Battery charger
CN110994769A (en) Double-battery system and mobile terminal equipment
WO2013147489A1 (en) Charger for blocking standby power and method of controlling same
US6137268A (en) System with limited long-time-averaged battery charging rate
CN113472057A (en) Double-battery power supply method and device and electronic equipment
CN102299550A (en) Power supply method of electronic device
CN217135180U (en) Processing circuit based on voltage input condition and electronic product
CN115811116A (en) Self-adaptive power supply management system and method and energy storage power supply
CN205141819U (en) Electric power redundancy system
JP2014030358A (en) Battery unit for supplying power to electric/electronic apparatuses and method for supplying power
CN109004708B (en) Charging equipment and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 201210 7th Floor, No. 1, Lane 5005, Shenjiang Road, China (Shanghai) Pilot Free Trade Zone, Pudong New Area, Shanghai

Applicant after: HISCENE INFORMATION TECHNOLOGY Co.,Ltd.

Address before: Room 501 / 503-505, 570 shengxia Road, China (Shanghai) pilot Free Trade Zone, Pudong New Area, Shanghai, 201203

Applicant before: HISCENE INFORMATION TECHNOLOGY Co.,Ltd.