[go: up one dir, main page]

WO2018028316A1 - Terminal charging control method, device and terminal - Google Patents

Terminal charging control method, device and terminal Download PDF

Info

Publication number
WO2018028316A1
WO2018028316A1 PCT/CN2017/089803 CN2017089803W WO2018028316A1 WO 2018028316 A1 WO2018028316 A1 WO 2018028316A1 CN 2017089803 W CN2017089803 W CN 2017089803W WO 2018028316 A1 WO2018028316 A1 WO 2018028316A1
Authority
WO
WIPO (PCT)
Prior art keywords
battery
power supply
current
charged
terminal
Prior art date
Application number
PCT/CN2017/089803
Other languages
French (fr)
Chinese (zh)
Inventor
张亚森
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2018028316A1 publication Critical patent/WO2018028316A1/en

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/0013Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries acting upon several batteries simultaneously or sequentially
    • H02J7/0014Circuits for equalisation of charge between batteries
    • H02J7/0016Circuits for equalisation of charge between batteries using shunting, discharge or bypass circuits
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries

Definitions

  • This application relates to, but is not limited to, the field of electronic technology.
  • the backup battery is to configure an externally rechargeable battery for the mobile terminal, and its main purpose is to prolong the use time of the mobile terminal.
  • the backup battery is gradually eliminated due to problems such as inconvenient carrying, and the related art mobile terminals are generally A battery is used to power the system.
  • the related art mobile terminal can directly supply power to the system by the external power supply when the power is too low, the system is in an operating state, but the external power supply may be unstable, such as the negative caused by the external power supply.
  • the situation of surge or transient high voltage will greatly affect the stability of the system and threaten the safety of the mobile terminal. Therefore, in the case of only one battery, it is not a good practice to directly supply the mobile terminal system for long-term power supply from the external power supply during the charging process, and should be avoided as much as possible.
  • the invention provides a terminal charging control method, device and terminal, so as to solve the related art, only one battery is set to supply power to the terminal, and the charging noise is easily introduced into the system through the power supply during simultaneous charging and power supply, thereby affecting the system. Reliability and stability issues.
  • a terminal charging control method includes:
  • selecting the current battery to be charged and the current power supply battery from the terminal battery including:
  • N an integer greater than or equal to 2
  • K an integer greater than or equal to 0
  • the charging the current battery to be charged, and supplying power to the system of the terminal by using the current power supply battery includes:
  • Charging the current battery to be charged disconnecting an electrical connection between the current battery to be charged and a system power supply interface of the terminal during charging, and connecting the current power supply when the K is greater than 0 A battery and the system power supply interface supply power to the terminal.
  • the charging condition is: M batteries that have the lowest power in the N batteries.
  • the selecting the K batteries as the current power supply battery includes:
  • the method before the selecting the K batteries as the current power supply battery, the method further includes:
  • the method further includes: controlling to disconnect an electrical connection between the external power supply and the system power supply interface.
  • the method further includes:
  • the first preset switching condition includes: the voltage value of the current power supply battery is less than or equal to the first preset threshold, and the first preset threshold value indicates that the current power supply battery is in a low battery state. .
  • the method further includes:
  • each of the currently to-be-charged batteries that meet the second preset switching condition is switched to the current power supply battery, and is not currently performed. Reselect the battery to be charged in the charged battery.
  • the second preset switching condition includes: the voltage value of the current battery to be charged is greater than or equal to a second preset threshold, and the second preset threshold indicates that the current battery to be charged is fully charged.
  • a terminal charging control device includes:
  • Select the module set to: select the current battery to be charged and the current power supply battery from the terminal battery;
  • control module configured to: charge the current battery to be charged selected by the selection module, and supply the current power supply battery selected by the selection module to the system of the terminal.
  • the selecting module selects the current battery to be charged and the current power supply battery, include:
  • N an integer greater than or equal to 2
  • K an integer greater than or equal to 0
  • the control module charges the current battery to be charged, and supplies power to the system of the terminal through the current power supply battery, including:
  • Charging the current battery to be charged disconnecting an electrical connection between the current battery to be charged and a system power supply interface of the terminal during charging, and connecting the current power supply when the K is greater than 0 A battery and the system power supply interface supply power to the terminal.
  • a terminal includes: N batteries configured with a charging function, a system power supply interface, and a controller; each of the batteries has a charging branch connected to an external power supply and a power supply branch connected to the power supply interface of the system; Providing, on each of the charging branch and each of the power supply branches, a first switching unit for controlling the switching of the branch;
  • the controller is configured to: select, from each of the batteries, a battery that currently meets the charging condition as the current battery to be charged, and select the number M of the current battery to be charged to be greater than or equal to 1, and less than or An integer equal to N, and selecting K batteries as the current power supply battery, the current power supply battery being different from the current battery to be charged; N being an integer greater than or equal to 2, and K being an integer greater than or equal to 0;
  • the controller is further configured to: disconnect the power supply branch of the current battery to be charged by controlling the corresponding first switch unit to conduct the charging branch of the current battery to be charged, and when the K is greater than 0 And turning on the power supply branch of the current power supply battery, and disconnecting the charging branch of the current power supply battery.
  • the terminal further includes: a voltage monitoring circuit
  • the voltage monitoring circuit is configured to: monitor a voltage value of the current power supply battery, and transmit the monitoring result to the controller;
  • the controller is further configured to: when the voltage value of the current power supply battery is less than or equal to the first pre When the threshold is set, the power supply branch of the current power supply battery is disconnected by controlling the corresponding first switch unit, and the power supply battery is reselected from the current battery to be charged, and the power supply of the reselected power supply battery is turned on. a branch and disconnecting a charging branch of the reselected power supply battery; the first predetermined threshold value indicating that the current power supply battery is in a low battery state.
  • the voltage monitoring circuit is further configured to: monitor a voltage value of the current battery to be charged, and transmit the monitoring result to the controller;
  • the controller is further configured to: when the voltage value of the current battery to be charged is greater than or equal to a second preset threshold, disconnect the charging branch of the current battery to be charged by controlling the corresponding first switch unit, Passing the power supply branch of the current battery to be charged; and reselecting the battery to be charged from the NM batteries that are not currently being charged, and controlling to turn on the reselected charging branch of the battery to be charged, disconnecting the re Selecting a power supply branch of the battery to be charged; the second preset threshold indicates that the current battery to be charged is fully charged.
  • the terminal further includes:
  • An external power supply branch for connecting an external power supply to the system power supply interface, the external power supply branch is provided with a second switch unit, and the second switch unit is closed by default;
  • the controller is further configured to: when the selection result of the controller is K greater than 0, control to disconnect the second switching unit.
  • a computer readable storage medium storing computer executable instructions for executing a terminal charging control method according to any one of the above, when the processor executes the computer executable instructions .
  • the terminal charging control method, device and terminal provided by the embodiment of the present invention, by setting a plurality of batteries configured with a charging function in the terminal, selecting different batteries as the current battery to be charged and the current power supply battery when charging is performed, While the battery to be charged is being charged, the current power supply battery is used to supply power to the terminal system, which avoids the problem that the current battery to be charged needs to supply power to the terminal system while charging, thereby avoiding noise or miscellaneous charging of the current battery to be charged.
  • the problem that the wave is introduced into the terminal system through power supply improves the reliability and stability of the terminal system, ensures the security of the terminal, and improves the user experience.
  • FIG. 1 is a flowchart of a terminal charging control method according to an embodiment of the present invention
  • FIG. 2 is a flowchart of another terminal charging control method according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of a terminal charging control apparatus according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of another terminal charging control apparatus according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a terminal according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of another terminal according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram of still another terminal according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic structural diagram of still another terminal according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic structural diagram of a charging control circuit of a smart phone according to an embodiment of the present invention.
  • FIG. 10 is a flow chart of a charging process of the smartphone shown in FIG. 9.
  • FIG. 11 is a flow chart showing another charging process of the smartphone shown in FIG.
  • FIG. 1 A flowchart of a method for controlling a terminal charging according to an embodiment of the present invention, which may be operated by a terminal charging control device, where the method includes the following steps, namely, S110 to S120:
  • the problem of the related art is that only one battery is provided, this battery is being charged.
  • the terminal system must be powered to ensure that the terminal system is in operation.
  • the noise or clutter on the charging side is mainly caused by the power adapter, the charging chip and the charging path. No matter how much the cost is to design the power adapter, the charging chip and the charging path, the noise and clutter caused by these three devices are Can not be eliminated.
  • the related art battery charging cannot be performed separately from the three devices, that is, the related technology cannot eliminate the noise from the noise source. Therefore, in order to avoid these noises or clutter being introduced into the system, only the two processes of charging and power supply can be managed.
  • the related technology can directly supply power to the terminal system through the external power supply.
  • the two processes of power supply and battery charging of the terminal system are separated.
  • the instability of the external power supply it will have a great negative impact on the security of the terminal system.
  • the negative surge generated by the external power supply may cause the terminal system to lose power, and the instantaneous high voltage may even cause the terminal. Irreducible damage, so it is an industry consensus to avoid using external power supply when it is possible to avoid direct power supply from an external power supply. Therefore, related technologies can only endure battery charging while ensuring terminal safety. The noise brought by the system.
  • the terminal charging control method provided by the embodiment of the present invention is applicable to a terminal configured with multiple batteries. It is assumed that the terminal is configured with N batteries, and N is an integer greater than or equal to 2.
  • the N batteries are all configured with charging. Functional batteries, common rechargeable batteries include lithium batteries and nickel-metal hydride batteries. Alternatively, the N batteries may be either a lithium battery or a nickel hydrogen battery, or a lithium battery and a nickel hydrogen battery may be combined in any ratio.
  • the power supply will generally supply power to the system of the terminal to ensure normal operation of the system. Therefore, the current power supply battery for power supply and the current battery to be charged for charging can be selected before charging.
  • the charging condition when the current battery to be charged is selected, the charging condition may be selected according to the charging condition, and the charging condition may be preset, for example, selecting the M batteries with the lowest current current capacity as the current battery to be charged, In practical applications, M can be an integer greater than zero.
  • the charging condition may also be a battery whose electric quantity is lower than a preset threshold.
  • the selection mechanism is different. The first one is determined by the developer of the terminal system or the user, and the number of currently selected batteries to be charged is certain. And the second is The condition for becoming the current battery to be charged is set in advance, and the number of currently selected batteries to be charged is indefinite.
  • the battery with the voltage value greater than the first preset threshold may be selected from the N batteries of the terminal as the current power supply battery, first The preset threshold is the lowest voltage that can power the terminal, that is, the first preset threshold indicates that the current powered battery is in a low battery state.
  • the terminal charging control device in the embodiment of the present invention is the terminal itself, the terminal system may need to be in an operating state when the method is implemented, that is, the power supply needs to be provided before the current power supply battery is selected.
  • the related technology can be used to allow the external power supply to temporarily supply power to the terminal system; or a temporary battery such as a replaceable button battery can be set inside the terminal.
  • the temporary battery is not used normally, only to determine that the terminal needs to be charged, and to supply power to the terminal system during the period when the terminal determines the current battery.
  • the system in the operating state described in the embodiment of the present invention does not refer to the power-on state, and refers to the state in which the terminal system controls certain processes, but the interface presented to the user may still be in the shutdown state.
  • S120 Charging the current battery to be charged, and supplying power to the system of the terminal through the current power supply battery.
  • the number of current power supply batteries selected by using the first preset threshold as a selection factor is, for example, K, K is an integer greater than or equal to 0; and K batteries are selected as current Before the battery is powered, the method provided by the embodiment of the present invention may further include: controlling an external power supply to communicate with the system power supply interface to supply power to the terminal.
  • the battery that can be directly configured by the terminal to be charged is configured to supply power to the terminal to ensure the system is running.
  • the method may further include: controlling an electrical connection between the external power supply and the system power supply interface.
  • the power supply of the terminal can be switched to the power supply battery. If the external power supply is directly connected to the power supply interface of the terminal system, then the electrical connection between the system power supply interface and the external power supply can be disconnected. And the selected current power supply battery is connected to the system power supply interface.
  • the current power supply battery cannot be selected to supply power to the terminal system, that is, K is equal to 0.
  • the external power supply or the terminal temporary battery can still be used for power supply before the current chargeable battery charge exceeds the first preset threshold.
  • the terminal since the terminal is charging, whether it is the current battery to be charged in the charging state or the current battery in the power supply state, its power is changing. When the change reaches a certain level, some batteries are not. It is suitable for the battery to be charged or the current battery. For example, before the current battery to be charged is charged, the voltage value of the current power supply battery has been lower than the first preset threshold, and the terminal cannot be continuously powered. If the current power supply battery is not replaced, the terminal system will not continue to operate, so despite this The charging of the battery to be charged is not completed, but as long as the voltage of the battery to be charged is higher than the first preset threshold, the current battery to be charged should be switched to the current battery, and the current battery should be switched to the current battery.
  • the current battery to be charged should be switched to the current battery after the current charging of the battery to be charged is completed. , switch the current power supply battery to the current battery to be charged.
  • FIG. 2 is a flowchart of another terminal charging control method according to an embodiment of the present invention.
  • the terminal charging control method provided by the embodiment of the present invention may further include the following steps, namely, S130 ⁇ S150:
  • the monitoring object includes the current power supply battery and the current battery to be charged. There is no strict timing limitation for the monitoring of the two. In practical applications, when the current battery to be charged and the current power supply battery are selected, the terminal charging control device is current. The voltages of the battery to be charged and the current battery are separately monitored.
  • the voltage of the current power supply battery satisfies the first preset switching condition, indicating that the current power supply battery is no longer suitable for powering the terminal.
  • the terminal charging control device can reselect the power supply battery from the current battery to be charged. Power the terminal.
  • the first preset switching condition may include: the current power supply battery voltage value is less than or equal to a first preset threshold, and the first preset threshold value indicates that the current power supply battery is in a low power state. If the current voltage value of the battery to be charged also satisfies the first preset switching condition, it indicates that the current battery to be charged is not suitable for power supply. At this time, the terminal charging control device can also be from the current battery that is neither to be charged nor powered. The battery is selected from the battery, or the external power supply can continue to supply power to the terminal until the current battery to be charged is higher than the first preset threshold, and then switched to be powered by the current battery to be charged.
  • the second preset switching condition may include: the current value of the battery to be charged is greater than or equal to a second preset threshold, where the second preset threshold indicates that the current battery to be charged is fully charged.
  • the second preset threshold indicates that the charging is completed, this does not mean that the power of the terminal is 100%, because the second preset threshold may be set by the developer in the setting development terminal, or may be customized by the user. For example, if the developer or the user manually sets the battery power to be greater than 96%, the charging is completed.
  • the battery can continue to be charged at this time, in the embodiment of the present invention, when the current battery to be charged is greater than 96%, Switch it to the current battery and reselect the battery to be charged from the battery that is currently not fully charged.
  • the range of choice may be the current battery, or those that are neither the current battery to be charged nor the current battery.
  • the terminal charging control method provided by the embodiment of the present invention distinguishes between the current battery to be charged and the current power supply battery at the same time, and ensures that the battery does not need to supply power to the terminal at the same time when charging a battery, thereby effectively avoiding
  • the problem that noise or clutter for charging the battery to be charged is introduced into the terminal system through power supply improves the reliability and stability of the terminal system, ensures the security of the terminal, and improves the user experience.
  • the terminal charging control method provided by the embodiment of the present invention can monitor the voltage of the current power supply battery. If the voltage value of the current power supply battery meets the first preset switching condition, the current power supply battery can be reselected. When the battery is low and cannot continue to supply power, the terminal system can be continued by switching other batteries as the power supply battery.
  • the method for controlling the terminal charging according to the embodiment of the present invention further monitors the voltage value of the battery to be charged, and immediately switches to another battery for charging after the current charging of the battery to be charged is completed, thereby avoiding wasting charging time and improving charging efficiency.
  • FIG. 3 is a schematic structural diagram of a terminal charging control apparatus according to an embodiment of the present invention.
  • the terminal charging control apparatus 20 provided by the embodiment of the present invention may include: a selecting module 210 and a control module 220.
  • the selection module 210 is configured to: select a current battery to be charged and a current power supply battery from the terminal battery.
  • the related art Since the related art has a problem in that only one battery is provided, the battery is also supplied with power to the terminal system while charging to ensure that the terminal system is in operation. This causes the two processes of charging and power supply to be related to each other. When power is supplied, it is easy to introduce noise and clutter on the charging side into the terminal system, thereby affecting the terminal system.
  • the noise or clutter on the charging side is mainly caused by the power adapter, the charging chip and the charging path. No matter how much the cost is to design the power adapter, the charging chip and the charging path, the noise and clutter caused by these three devices are Can not be eliminated.
  • the related art battery charging cannot be performed separately from the three devices, that is, the related technology cannot eliminate the noise from the noise source. Therefore, in order to avoid these noises or clutter being introduced into the system, only the two processes of charging and power supply can be managed.
  • the related technology can directly supply power to the terminal system through the external power supply.
  • the two processes of power supply and battery charging of the terminal system are separated.
  • the instability of the external power supply it will have a great negative impact on the security of the terminal system.
  • the negative surge generated by the external power supply may cause the terminal system to lose power, and the instantaneous high voltage may even cause the terminal. Irreducible damage, so it is an industry consensus to avoid using external power supply when it is possible to avoid direct power supply from an external power supply. Therefore, related technologies can only endure battery charging while ensuring terminal safety. The noise brought by the system.
  • the terminal charging control device 20 is applicable to a terminal configured with multiple batteries. It is assumed that the terminal is configured with N batteries, and N is an integer greater than or equal to 2, and the N The batteries are all equipped with a rechargeable battery. Common rechargeable batteries include lithium batteries and nickel-metal hydride batteries. Alternatively, the N batteries may be either a lithium battery or a nickel hydrogen battery, or a lithium battery and a nickel hydrogen battery may be combined in any ratio. At the same time of charging, the power supply will generally supply power to the system of the terminal to ensure normal operation of the system. Therefore, prior to charging, the selection module 210 can first select the current powered battery for powering and the current battery to be charged for charging.
  • the charging condition when the selection module 210 selects the current rechargeable battery, the charging condition may be selected according to the charging condition, and the charging condition may be preset, for example, selecting the M batteries with the lowest current current capacity as the current battery to be charged. In practical applications, M can be an integer greater than zero. Alternatively, the charging condition may also be a battery whose electric quantity is lower than a preset threshold. In the case of the above two charging conditions, the selection mechanism is different. The first one is determined by the developer of the terminal system or the user, and the number of currently selected batteries to be charged is certain. The second type is pre-set to the condition of the current battery to be charged, and the number of currently selected batteries to be charged is variable.
  • the selection module 210 selects the current power supply battery
  • the battery whose voltage value is greater than the first preset threshold may be selected from the N batteries of the terminal as the current power supply battery
  • the first pre-preparation Let the threshold be the lowest voltage that can power the terminal, that is, the first preset threshold indicates that the current power supply battery is in a low battery state.
  • the terminal system may need to be in an operating state when the method is implemented, that is, it needs to be provided before the current power supply battery is selected.
  • the power supply is used for the terminal system to start running.
  • the external power supply can be used to temporarily supply power to the terminal system in the related art manner.
  • a temporary battery such as a replaceable button battery can also be disposed inside the terminal. The temporary battery is not used normally, only to determine that the terminal needs to be charged, and to supply power to the terminal system during the period when the terminal determines the current battery.
  • the system in the operating state described in the embodiment of the present invention does not refer to the power-on state, and refers to the state in which the terminal system controls certain processes, but the interface presented to the user may still be in the shutdown state.
  • the control module 220 is configured to: charge the current battery to be charged selected by the selection module 210, and supply power to the system of the terminal by the current power supply battery selected by the selection module 210.
  • the first preset threshold is selected as a selection factor.
  • the number of the current power supply battery is, for example, K, and K is an integer greater than or equal to 0.
  • the control module 220 is further configured to: The external power supply is connected to the system power supply interface to supply power to the terminal.
  • the battery that can be directly configured by the terminal to be charged is configured to supply power to the terminal to ensure the system is running.
  • the control module 220 is further configured to: control an electrical connection between the external power supply and the system power supply interface. In an actual application, the control module 220 can switch the power supply of the terminal to the power supply battery. If the external power supply is directly connected to the power supply interface of the terminal system, the control module 220 can disconnect the system power supply interface and the external power supply. The electrical connection between the power sources, and the selected current power supply battery is connected to the system power supply interface.
  • the current power supply battery cannot be selected to supply power to the terminal system, that is, K is equal to 0.
  • the external power supply or the terminal temporary battery may be used to supply power before the current chargeable battery charge exceeds the first preset threshold.
  • the terminal since the terminal is charging, whether it is the current battery to be charged in the charging state or the current battery in the power supply state, its power is changing. When the change reaches a certain level, some batteries are not. It is suitable for the battery to be charged or the current battery. For example, before the current battery to be charged is charged, the voltage value of the current power supply battery has been lower than the first preset threshold, and the terminal cannot be continuously powered. If the current power supply battery is not replaced, the terminal system will not continue to operate, so despite this The charging of the battery to be charged is not completed, but as long as the voltage of the battery to be charged is higher than the first preset threshold, the current battery to be charged should be switched to the current battery, and the current battery should be switched to the current battery.
  • the current battery to be charged should be switched to the current battery after the current charging of the battery to be charged is completed. , switch the current power supply battery to the current battery to be charged.
  • FIG. 4 is a schematic structural diagram of another terminal charging control apparatus according to an embodiment of the present invention.
  • the terminal charging control apparatus 20 provided by the embodiment of the present invention includes, in addition to the structure of the foregoing embodiment of the present invention, in order to make an immediate switching action according to the condition of each battery power.
  • the monitoring module 230 may be further included.
  • the monitoring module 230 is configured to: monitor the voltage of the terminal battery.
  • the monitoring module 230 monitors the object including the current power supply battery and the current battery to be charged. There is no strict timing limitation for the monitoring of the two. In practical applications, when the current battery to be charged and the current power supply battery are selected, the monitoring module 230 can The voltages of the current battery to be charged and the current battery are separately monitored.
  • the control module 220 in the embodiment of the present invention is further configured to: when the monitoring module 230 detects that the voltage of the current power supply battery meets the first preset switching condition, disconnect each current power supply battery and system that meets the first preset condition. The electrical connection between the power supply interfaces, and the power supply battery is reselected from the current battery to be charged to supply power to the terminal.
  • the voltage of the current power supply battery meets the first preset switching condition, indicating that the current power supply battery is no longer suitable for powering the terminal.
  • the monitoring module 230 can notify the control module 220 that it can be from the current battery to be charged. Reselect the power supply battery to power the terminal.
  • the first preset switching condition may include: the current power supply battery voltage value is less than or equal to a first preset threshold, and the first preset threshold value indicates that the current power supply battery is in a low power state. If the current voltage value of the battery to be charged also satisfies the first preset switching condition, it indicates that the current battery to be charged is also not suitable for power supply. At this time, the control module 220 can also be from the current battery that is neither the battery to be charged nor the power supply battery. The power supply battery is selected in the battery, or the external power supply may continue to supply power to the terminal until the current battery to be charged is higher than the first preset threshold, and then switched to be powered by the current battery to be charged.
  • the control module 220 in the embodiment of the present invention is further configured to: when the monitoring module 230 detects that the voltage of the battery to be charged meets the second preset switching condition, each current battery to be charged that meets the second preset switching condition is Switch to the current power supply battery and reselect the battery to be charged from the NM batteries that are not currently being charged.
  • the second preset switching condition may include: the current value of the battery to be charged is greater than or equal to a second preset threshold, where the second preset threshold indicates that the current battery to be charged is fully charged.
  • the second preset threshold indicates that the charging is completed, this does not mean that the power of the terminal is 100%, because the second preset threshold may be set by the developer in the setting development terminal, or may be customized by the user. , for example, developers or users artificially set the battery level When the battery is more than 96%, the charging is completed.
  • the battery can continue to be charged at this time, in the embodiment of the present invention, when the current battery to be charged is greater than 96%, it can be switched to the current power supply battery, and from the current Reselect the battery to be charged in the battery that has not been charged.
  • the control module 220 may select a range of current power supply batteries or those that are neither the current battery to be charged nor the current power supply battery.
  • the terminal charging control device 20 provided in the embodiment of the present invention may be deployed on the terminal, wherein the functions of the selecting module 210 and the control module 220 may be implemented by a computer program, and the corresponding computer program is stored in the memory of the terminal, and the terminal is The controller reads the corresponding program code from the memory to implement the corresponding function, and the function of the monitoring module 230 can be implemented by the hardware circuit.
  • the reference voltage may be a first preset threshold or a second preset threshold.
  • the first preset threshold may be selected to set the reference voltage, and if the current battery to be charged is to be monitored, Then, the reference voltage of the corresponding comparison circuit can be set to a second preset threshold. Normally, the comparator outputs a low level. When it detects that the voltage value satisfies the first preset switching condition or the second preset switching condition, it can output a high level to the controller, and the controller receives the The output of the comparison circuit determines the corresponding processing strategy.
  • the terminal charging control device provided by the embodiment of the present invention distinguishes between the current battery to be charged and the current power supply battery at the same time, and ensures that the battery does not need to supply power to the terminal at the same time when charging a battery, thereby effectively avoiding
  • the problem that noise or clutter for charging the battery to be charged is introduced into the terminal system through power supply improves the reliability and stability of the terminal system, ensures the security of the terminal, and improves the user experience.
  • the terminal charging control device provided by the embodiment of the present invention monitors the voltage of the current power supply battery. If the voltage value of the current power supply battery meets the first preset switching condition, the current power supply battery can be reselected. When the battery is low and cannot continue to supply power, the terminal system can be continued by switching other batteries as the power supply battery.
  • the terminal charging control device provided by the embodiment of the present invention further monitors the voltage value of the battery to be charged, and immediately switches to another battery for charging after the current charging of the battery to be charged is completed, thereby avoiding wasting charging time. Improve charging efficiency.
  • the embodiment of the present invention further provides a terminal.
  • FIG. 5 it is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • the terminal provided by the embodiment of the present invention is provided with a plurality of batteries 40 configured with a charging function.
  • the battery 40 has a charging branch 41 connected to an external power supply and a power supply branch 42 connected to the system power supply interface for power supply.
  • Two first switching units 411 and 421 are provided on the charging branch 41 and the power supply branch 42, respectively.
  • the first switching unit 411 and the first switching unit 421 are used to control the on and off of the charging branch 41 and the power supply branch 42, respectively.
  • FIG. 6 is a schematic structural diagram of another terminal according to an embodiment of the present invention.
  • the terminal provided by the embodiment of the present invention includes a controller 51 and a system power supply interface 522 in addition to the plurality of batteries 40.
  • the system power supply interface 522 is connected to the power supply, and is configured to supply power to the controller 51, a display screen (not shown), an audio input and output unit (not shown), or a communication unit (not shown).
  • FIG. 7 is a schematic structural diagram of still another terminal according to an embodiment of the present invention.
  • the terminal may be configured as a power management unit 52 including a system power supply interface 522.
  • the power management unit 52 is configured to receive power under the control of the controller 51 and provide appropriate power required to operate the various components and components.
  • each battery 40 is numbered in the manner of 40A, 40B, 40C, etc., those skilled in the art should understand that A, B, C, etc. only distinguish different batteries, and cannot represent the battery itself.
  • the controller 51 selects, from the batteries 40A, 40B, 40C, ..., the battery that currently meets the charging condition as the current battery to be charged, and when selecting the current battery to be charged, the controller 51 can perform according to the charging condition, and the charging condition is determined by the terminal developer or It is preset by the user. For example, the M battery with the lowest current capacity is set as the current battery to be charged. In practical applications, M can be an integer greater than 0.
  • the charging condition may also be a battery whose electric quantity is lower than a preset threshold.
  • the selection mechanism is different. The first one is to preset the number of selections, and the number of currently selected batteries to be charged is certain; and the second type is preset. As the condition of the current battery to be charged, the number of currently selected batteries to be charged is variable.
  • the controller 51 further selects, from the N batteries 40A, 40B, 40C, . . . , the battery whose voltage value is greater than the first preset threshold as the current power supply battery.
  • the first preset threshold is the lowest voltage that can power the terminal, that is, the first preset threshold indicates that the current powered battery is in a low battery state. Assuming that the number of currently powered batteries selected by the controller 51 is K, then K is an integer greater than or equal to zero.
  • the power supply is provided for the terminal system to start running before the controller 51 selects the current power supply battery.
  • a temporary battery can be set inside the terminal, such as Replaceable button batteries, etc.
  • the temporary battery is not used normally, only the monitoring terminal needs to be charged, and the terminal system is powered during the period when the terminal determines the power supply battery.
  • the terminal further includes an external power supply branch, the external power supply branch is used to connect the system power supply interface 522 and the external power supply, and the external power supply branch is provided with a corresponding second switch unit.
  • the second switch unit is configured to: control the on and off of the external power supply branch. In the default state, the second switching unit is in the closed state unless the controller 52 performs the disconnection control.
  • the system described in the embodiment of the present invention is not in the power-on state, and refers to the state in which the terminal system controls certain processes, but the interface presented to the user may still be in the shutdown state.
  • the controller 51 selects the first preset threshold as the selection factor, for example, the number of current power supply batteries is K, and K is an integer greater than or equal to 0; Before the current power supply battery, the controller 51 in the embodiment of the present invention is further configured to: control the external power supply to communicate with the system power supply interface to supply power to the terminal.
  • the controller 51 can control the switching unit of the selected power supply battery of the current power supply battery to be closed, and then turn off the second switching unit.
  • the controller 51 cannot select the current power supply battery to supply power to the terminal system, that is, K is equal to 0, where In this case, the external power supply can still be used before the current chargeable battery charge exceeds the first preset threshold, and the controller 51 does not turn off the second switch unit during this period.
  • FIG. 8 is a schematic structural diagram of still another terminal according to an embodiment of the present invention.
  • the terminal includes a controller 51 and a plurality of batteries (40A, 40B,
  • the voltage monitoring unit 53 may further include: a voltage monitoring unit 53 that monitors the current power supply battery and the current battery to be charged, and the monitoring of the two is not performed. Strict timing limitation. In practical applications, when the current battery to be charged and the power supply battery are selected, the voltage monitoring unit 53 separately monitors the voltages of the current battery to be charged and the current power supply battery.
  • the controller 51 in the embodiment of the present invention is further configured to: when the voltage monitoring unit 53 detects that the voltage of the current power supply battery meets the first preset switching condition, disconnect each current power supply battery that meets the first preset condition and The electrical connection between the system power supply interfaces, and the power supply battery is reselected from the current battery to be charged to supply power to the terminal; in practical applications, the controller 51 disconnects the power supply branch of the current power supply battery by controlling the corresponding first switch unit. And reselecting the power supply battery from the current battery to be charged, turning on the power supply branch of the reselected power supply battery, and disconnecting the charging branch of the reselected power supply battery; the first preset threshold value indicates the current power supply battery In a low battery state.
  • the voltage of the current power supply battery satisfies the first preset switching condition, indicating that the current power supply battery is no longer suitable for powering the terminal.
  • the controller 51 can also reselect the power supply battery from the current battery to be charged. Power the terminal.
  • the first preset switching condition may include: the current power supply battery voltage value is less than or equal to a first preset threshold, and the first preset threshold value indicates that the current power supply battery is in a low power state. If the current voltage value of the battery to be charged also satisfies the first preset switching condition, it indicates that the current battery to be charged is also not suitable for power supply. At this time, the controller 51 can also be from the current battery that is neither the battery to be charged nor the power supply battery. The power supply battery is selected in the battery, or the external power supply may continue to supply power to the terminal until the current battery to be charged is higher than the first preset threshold, and then switched to be powered by the current battery to be charged.
  • the controller 51 in the embodiment of the present invention is further configured to: when the voltage monitoring unit 53 detects that the voltage of the battery to be charged meets the second preset switching condition, each current to be charged that satisfies the second preset switching condition The battery is switched to the current power supply battery, and the battery to be charged is reselected from the NM batteries that are not currently being charged; in practical applications, the controller 51 disconnects the charging branch of the current battery to be charged by controlling the corresponding first switch unit.
  • the second preset threshold indicates that the current battery to be charged is fully charged.
  • the second preset switching condition may include: the current value of the battery to be charged is greater than or equal to a second preset threshold, where the second preset threshold indicates that the current battery to be charged is fully charged.
  • the second preset threshold indicates that the charging is completed, this does not mean that the power of the terminal is 100%, because the second preset threshold may be set by the developer in the setting development terminal, or may be customized by the user. For example, if the developer or the user manually sets the battery power to be greater than 96%, the charging is completed.
  • the battery can continue to be charged at this time, in the embodiment of the present invention, when the current battery to be charged is greater than 96%, Switch it to the current battery and reselect the battery to be charged from the battery that is currently not fully charged.
  • the range selected by the controller 51 may be the current power supply battery, or those that are neither the current battery to be charged nor the current battery.
  • the embodiment of the present invention provides an implementation manner of the voltage monitoring unit 53.
  • the comparison circuit is configured as the voltage monitoring unit 53.
  • the reference voltage of the comparison circuit may be a first preset threshold or a second preset threshold.
  • the first preset threshold may be selected to set the reference voltage, and if the voltage of the current battery to be charged is to be monitored, the reference voltage of the corresponding comparison circuit may be set to the second preset threshold.
  • the comparator Normally, the comparator outputs a low level, and when it detects that the voltage value of the battery satisfies the first preset switching condition or the second preset switching condition, it can output a high level to the controller 51, and the controller 51 A corresponding processing strategy is determined based on the output of the received comparison circuit.
  • the controller selects the current battery to be charged and the power supply battery, thereby realizing the separation of the two processes of charging and powering the battery, thereby avoiding charging by the power supply.
  • the noise or clutter is introduced into the system to ensure the stability and reliability of the system.
  • the voltage monitoring unit is further disposed to monitor the voltage of the current battery to be charged and the power supply battery in real time. It is found that the power supply battery is insufficient or the battery to be charged can be switched when the charging is completed, thereby ensuring the system complete control of the charging process and ensuring that the charging time is not wasted.
  • FIG. 9 is a schematic structural diagram of a charging control circuit of a smart phone according to an embodiment
  • FIG. 10 is a flowchart of a charging process of the smart phone shown in FIG.
  • the power adapter 70 in the embodiment of the present invention does not belong to a smart phone, and it is only an accessory used when the smartphone is charged.
  • the embodiment of the present invention is not particularly limited, and a power adapter generally used in the related art may be used.
  • the embodiment of the present invention does not discharge other types of power adapters, and as technology advances, Future universal power adapters may also differ from the various power adapters that are commercially available and sold in the related art, but those skilled in the art will appreciate that such power adapters should also be encompassed within the scope of the present embodiments.
  • the charging chip 81 in the embodiment of the present invention may employ an integrated circuit (integrated circuit, IC for short) with charging path management, and includes a power supply output (OUT) that can be directly connected to the system power supply interface 861 of the power management unit 86.
  • the interface 811 and a charging output (OUT) interface 812 for connecting to the battery charging branch, the charging chip 81 with charging path management can ensure that the smartphone battery is in the feeding state, and after connecting with the external power supply, the smart phone The system can be started.
  • the battery pack 82 includes two batteries, which are a first battery 821 and a second battery 822, respectively, where the first battery 821 and the second battery 822 respectively include a battery charging interface and a battery power supply interface.
  • the control unit 83 is the core of the smart phone in the embodiment of the present invention.
  • the control unit 83 includes a first switch SW1, a second switch SW2, a third switch SW3, a fourth switch SW4, a fifth switch SW5, and a microcontroller MCU (Microcontroller Unit). ) 831.
  • Each switch is controlled by the microcontroller 831, wherein the operation of the microcontroller 831 requires the support of an external power supply since the smartphone is charged in the off state, so the fifth switch SW5 is in the closed state by default.
  • Each switch on the control unit 83 can also be controlled by a General Purpose Input Output (GPIO) on the smartphone system.
  • GPIO General Purpose Input Output
  • the voltage monitoring circuit 84 is configured to monitor the voltages of the first battery 821 and the second battery 822, and return the shoulder monitoring results to the microcontroller 831.
  • the smart phone further includes an anti-backflow circuit 85, and the anti-backflow circuit 85 is configured to prevent current from flowing between the two batteries, resulting in abnormality of the system.
  • the anti-backflow circuit here can be implemented by using a diode, a MOS tube or an anti-current reflow chip.
  • the fifth switch SW5 is closed by default, after the charging chip 81 in the smart phone is connected to the external power supply through the power adapter 70, the external power source can be output to the smart phone power management unit 86 through the power output interface 811 of the charging chip 81.
  • the system power supply interface supplies power to the smartphone system to ensure that the microcontroller 831 is activated.
  • the microcontroller 831 obtains the monitoring result of the voltage monitoring circuit 85.
  • the voltage monitoring circuit 84 can transmit the monitoring result to the microcontroller 831 in real time, so that the microcontroller 831 can timely perform corresponding control actions for various situations in the charging process of the smart phone.
  • the microcontroller 831 determines whether the voltage value of the first battery 821 or the second battery 822 is greater than the startup voltage according to the monitoring result.
  • the determining process of the microcontroller 831 in S902 is substantially determining whether there is a voltage value in the two batteries that is sufficient to supply power to the smart phone; if the determination result is yes, executing S903, and if the determination result is no, continuing The external power supply is used to power the smartphone.
  • the microcontroller 831 determines whether the voltage value of the first battery 821 is higher than the voltage value of the second battery 822.
  • the determination of this step will determine whether the first battery is powered or the second battery; if the determination is yes, then S904 is performed, and if the determination is no, then S905 is performed.
  • the microcontroller 831 controls to close the third switch SW3 and the second switch SW2, and then turns off the first switch SW1, the fourth switch SW4, and the fifth switch SW5.
  • the microcontroller 831 controls to close the first switch SW1 and the fourth switch SW4, and then turns off the third switch SW3 and the second switch SW2 and the fifth switch SW5.
  • FIG. 11 is a flow chart of another charging process of the smart phone shown in FIG. 9. The following describes the monitoring process in the charging process in conjunction with FIG.
  • S1001 The microcontroller determines whether the voltage value of the current power supply battery is less than the startup voltage.
  • the judgment of the microcontroller is based on the real-time monitoring results from the voltage monitoring circuit. If the result of the determination is YES, S1002 is executed, and if the result of the determination is No, S1003 is executed.
  • S1002 The microcontroller determines whether the voltage value of the current battery to be charged is less than the startup voltage.
  • S1003 The microcontroller determines whether the current battery to be charged is fully charged.
  • S1004 The microcontroller controls to close the fifth switch, and disconnects the power supply branch of the current power supply battery; and then continues to execute S1002.
  • S1005 The microcontroller controls to turn on the power supply branch of the battery to be charged, disconnect the charging branch, disconnect the power supply branch of the power supply battery, turn on the charging branch, and then continue to execute S1001.
  • S1006 The microcontroller determines whether the current power supply battery is fully charged.
  • the system defaults SW3 and SW4 to be turned on. This is to ensure that the system discharges both batteries without any state of plugging the charger, ensuring the system. Can start normally.
  • the microcontroller 831 needs to determine whether the first batteries 821 and 822 are both smaller than the startup voltage. If the determination result is yes, the startup is stopped, and the user is prompted to charge through the display unit or the alarm unit.
  • the system of the smartphone turns on the default SW1 and SW5 in the initial state, so if the first battery or the second battery can supply power, the SW5 needs to be disconnected.
  • the two batteries can be powered at the same time. Because of the presence of the reverse irrigation circuit 85, there is no interference between the two batteries, the output current with high voltage is large, and the output current with low voltage is small.
  • the control system is shut down. If the shutdown voltage threshold is not reached, the system works normally.
  • the smart phone when two batteries are set, when the battery needs to be charged, the current battery to be charged and the power supply battery are selected by the microcontroller, thereby realizing the separation of the two processes of charging and powering the battery, and avoiding the power supply.
  • the problem of introducing charging noise or clutter into the system ensures the stability and reliability of the system.
  • An embodiment of the present invention further provides a computer readable storage medium having stored therein computer executable instructions, and when the processor executes the computer executable instructions, performing the following operations, namely, S1 to S2:
  • performing the step of S1 may include:
  • the battery that currently meets the charging condition is selected as the current battery to be charged, and the number M of the currently selected batteries to be charged is an integer greater than or equal to 1, and less than or equal to N.
  • K batteries as the current power supply battery, the current power supply battery is different from the current battery to be charged; N is an integer greater than or equal to 2, and K is an integer greater than or equal to 0
  • the steps of performing S2 may include:
  • the current battery to be charged is charged, and the electrical connection between the current battery to be charged and the system power supply interface of the terminal is disconnected during charging, and when K is greater than 0, the current power supply battery and the system power supply interface are connected to supply power to the terminal.
  • performing the step of selecting K batteries as the current power supply battery may include:
  • the battery whose voltage value is greater than the first preset threshold is selected as the current power supply battery, and the first preset threshold indicates that the current power supply battery is in the low battery state.
  • the method further includes: controlling to disconnect the electrical connection between the external power supply and the system power supply interface.
  • the first preset switching condition includes: the current power supply battery voltage value is less than or equal to a first preset threshold, and the first preset threshold value indicates that the current power supply battery is in a low power state.
  • the second preset switching condition includes: the voltage value of the current battery to be charged is greater than or equal to a second preset threshold, and the second preset threshold indicates that the current battery to be charged is fully charged.
  • all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
  • the device/function module/functional unit in the above embodiments may be implemented by using a general-purpose computing device, which may be concentrated on a single computing device or distributed in multiple computing devices. On the network.
  • the device/function module/functional unit in the above embodiment When the device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
  • the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • a plurality of batteries configured with a charging function are disposed in the terminal, and different batteries are selected as the current battery to be charged and the current power supply battery when charging, and the current power supply is used while charging the current battery to be charged.
  • the battery supplies power to the terminal system, which avoids the problem that the current battery to be charged needs to supply power to the terminal system while charging, and therefore avoids the problem that the noise or clutter of charging the current battery to be charged is introduced into the terminal system through the power supply, thereby improving the problem.
  • the reliability and stability of the terminal system ensure the security of the terminal and improve the user experience.

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Secondary Cells (AREA)

Abstract

A terminal charging control method, device and terminal, wherein the terminal comprises: a plurality of batteries equipped having a charging function, a system power supply port, and a controller; the configuration being: selecting batteries meeting a charging condition, from among the various batteries, as a current to-be-charged battery and a current power supplying battery; charging the current to-be-charged battery, and using the current power supplying battery to supply power to a system of the terminal.

Description

终端充电控制方法、装置及终端Terminal charging control method, device and terminal 技术领域Technical field
本申请涉及但不限于电子技术领域。This application relates to, but is not limited to, the field of electronic technology.
背景技术Background technique
在移动终端的发展历程中,很长一段时期内都存在“备用电池”的概念,备用电池是为移动终端配置一块可外置充电的电池,其主要目的是为了延长移动终端的使用时长。但随着移动终端电源的发展,已经能够在体积较小的电池中储蓄足够多的电能,因而在后续的发展过程中备用电池因为携带不便等问题被逐渐淘汰,相关技术的移动终端中普遍都是采用一块电池为系统供电。In the development of mobile terminals, the concept of "backup battery" exists for a long period of time. The backup battery is to configure an externally rechargeable battery for the mobile terminal, and its main purpose is to prolong the use time of the mobile terminal. However, with the development of mobile terminal power, it has been able to save enough power in a small battery. Therefore, in the subsequent development process, the backup battery is gradually eliminated due to problems such as inconvenient carrying, and the related art mobile terminals are generally A battery is used to power the system.
虽然在移动终端上配置一块电池进行供电能够解决备用电池携带不便的问题,但是这也带来了新的问题:在存在备用电池时,移动终端的充电过程可以在移动终端外完成,当充电完成之后再将电池安装到移动终端中为系统供电,这样充电过程中的噪声与杂波不会影响到移动终端的系统。但是当移动终端仅配置一块电池时,该电池在充电的同时还不得不承担为系统供电的责任,因此电源适配器、充电芯片、充电路径上的噪声和杂波在叠加后会被引入到移动终端系统中,从而影响系统的可靠性和稳定性。Although configuring a battery on the mobile terminal for power supply can solve the problem of inconvenience of the backup battery, this also brings a new problem: when there is a backup battery, the charging process of the mobile terminal can be completed outside the mobile terminal, when the charging is completed. The battery is then installed in the mobile terminal to power the system so that noise and clutter during charging do not affect the system of the mobile terminal. However, when the mobile terminal is only equipped with one battery, the battery has to bear the responsibility of powering the system while charging, so the power adapter, the charging chip, the noise on the charging path and the clutter are introduced into the mobile terminal after being superimposed. In the system, which affects the reliability and stability of the system.
虽然相关技术的移动终端在电量过低的时候,可以由外部供电电源直接为系统供电,保证系统处于运行状态,但是由于外部供电电源可能会存在不稳定的情况,例如外部供电电源带来的负向浪涌或者瞬时高压的状况,会极大地影响系统的稳定性,威胁到移动终端的安全。所以在只有一块电池的情况下,充电过程中由外部供电电源直接为移动终端系统长期供电也不是一个好的做法,应当尽量避免。Although the related art mobile terminal can directly supply power to the system by the external power supply when the power is too low, the system is in an operating state, but the external power supply may be unstable, such as the negative caused by the external power supply. The situation of surge or transient high voltage will greatly affect the stability of the system and threaten the safety of the mobile terminal. Therefore, in the case of only one battery, it is not a good practice to directly supply the mobile terminal system for long-term power supply from the external power supply during the charging process, and should be avoided as much as possible.
综上,亟需提出一种终端充电控制方案,用以解决相关技术中仅设置一块电池为移动终端供电,而导致在同时充电与供电时容易将充电的噪声通过供电引入到移动终端系统中,从而影响到移动终端系统的可靠性与稳定性的问题。 In summary, there is a need to provide a terminal charging control scheme for solving the problem that only one battery is provided for the mobile terminal in the related art, and the charging noise is easily introduced into the mobile terminal system through the power supply during simultaneous charging and power supply. Thereby affecting the reliability and stability of the mobile terminal system.
发明概述Summary of invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本文提供一种终端充电控制方法、装置及终端,以解决相关技术中仅设置一块电池为终端供电,而导致在同时充电与供电时容易将充电的噪声通过供电引入到系统中,从而影响系统的可靠性与稳定性的问题。The invention provides a terminal charging control method, device and terminal, so as to solve the related art, only one battery is set to supply power to the terminal, and the charging noise is easily introduced into the system through the power supply during simultaneous charging and power supply, thereby affecting the system. Reliability and stability issues.
一种终端充电控制方法,包括:A terminal charging control method includes:
从终端电池中选择当前待充电电池和当前供电电池;Selecting a current battery to be charged and a current power supply battery from the terminal battery;
对所述当前待充电电池进行充电,并且通过所述当前供电电池为所述终端的系统供电。Charging the current battery to be charged, and powering the system of the terminal through the current power supply battery.
可选地,所述从终端电池中选择当前待充电电池和当前供电电池,包括:Optionally, selecting the current battery to be charged and the current power supply battery from the terminal battery, including:
从终端的N个配置有充电功能的电池中,选择当前满足充电条件的电池作为所述当前待充电电池,选择出的所述当前待充电电池的个数M为大于或等于1,且小于或等于N的整数,并选择K个电池作为所述当前供电电池,所述当前供电电池与所述当前待充电电池不同;N为大于或等于2的整数,K为大于或等于0的整数;Selecting, from the N batteries configured with the charging function of the terminal, the battery that currently meets the charging condition as the current battery to be charged, and selecting the number M of the currently to-be-charged battery to be greater than or equal to 1, and less than or An integer equal to N, and selecting K batteries as the current power supply battery, the current power supply battery being different from the current battery to be charged; N being an integer greater than or equal to 2, and K being an integer greater than or equal to 0;
所述对所述当前待充电电池进行充电,并且通过所述当前供电电池为所述终端的系统供电,包括:The charging the current battery to be charged, and supplying power to the system of the terminal by using the current power supply battery, includes:
对所述当前待充电电池进行充电,在充电过程中断开所述当前待充电电池与所述终端的系统供电接口之间的电连接,并且在所述K大于0时,连通所述当前供电电池与所述系统供电接口为所述终端供电。Charging the current battery to be charged, disconnecting an electrical connection between the current battery to be charged and a system power supply interface of the terminal during charging, and connecting the current power supply when the K is greater than 0 A battery and the system power supply interface supply power to the terminal.
可选地,所述充电条件为:在所述N个电池中当前电量最小的M个电池。Optionally, the charging condition is: M batteries that have the lowest power in the N batteries.
可选地,所述选择K个电池作为所述当前的供电电池,包括:Optionally, the selecting the K batteries as the current power supply battery includes:
从所述终端的N个配置有充电功能的电池中,选择电压值大于第一预设阈值的电池作为所述当前供电电池,所述第一预设阈值表示所述当前供电电池处于低电量状态。 And selecting, from the N batteries configured with the charging function of the terminal, a battery whose voltage value is greater than the first preset threshold as the current power supply battery, where the first preset threshold value indicates that the current power supply battery is in a low battery state. .
可选地,所述选择K个电池作为所述当前的供电电池之前,所述方法还包括:Optionally, before the selecting the K batteries as the current power supply battery, the method further includes:
控制外部供电电源与所述系统供电接口连通为所述终端供电;Controlling an external power supply to communicate with the power supply interface of the system to supply power to the terminal;
当所述K大于0时,所述方法还包括:控制断开所述外部供电电源与所述系统供电接口之间的电连接。When the K is greater than 0, the method further includes: controlling to disconnect an electrical connection between the external power supply and the system power supply interface.
可选地,所述方法还包括:Optionally, the method further includes:
监测所述当前供电电池的电压;Monitoring the voltage of the current power supply battery;
当监测到所述当前供电电池的电压满足第一预设切换条件时,断开满足所述第一预设条件的每个所述当前供电电池与所述系统供电接口之间的电连接,并从当前待充电电池中重新选择供电电池为所述终端供电。When it is detected that the voltage of the current power supply battery meets the first preset switching condition, disconnecting an electrical connection between each of the current power supply battery that meets the first preset condition and the power supply interface of the system, and Reselecting the power supply battery from the current battery to be charged supplies power to the terminal.
可选地,所述第一预设切换条件包括:所述当前供电电池的电压值小于或等于所述第一预设阈值,所述第一预设阈值表示所述当前供电电池处于低电量状态。Optionally, the first preset switching condition includes: the voltage value of the current power supply battery is less than or equal to the first preset threshold, and the first preset threshold value indicates that the current power supply battery is in a low battery state. .
可选地,所述方法还包括:Optionally, the method further includes:
监测所述当前待充电电池的电压;Monitoring the voltage of the current battery to be charged;
当监测到所述当前待充电电池的电压满足第二预设切换条件时,将满足所述第二预设切换条件的每个所述当前待充电电池切换为当前供电电池,并从当前未进行充电的电池中重新选择待充电电池。When it is detected that the voltage of the current battery to be charged satisfies the second preset switching condition, each of the currently to-be-charged batteries that meet the second preset switching condition is switched to the current power supply battery, and is not currently performed. Reselect the battery to be charged in the charged battery.
可选地,所述第二预设切换条件包括:所述当前待充电电池的电压值大于或等于第二预设阈值,所述第二预设阈值表示所述当前待充电电池充电完成。Optionally, the second preset switching condition includes: the voltage value of the current battery to be charged is greater than or equal to a second preset threshold, and the second preset threshold indicates that the current battery to be charged is fully charged.
一种终端充电控制装置,包括:A terminal charging control device includes:
选择模块,设置为:从终端电池中选择当前待充电电池和当前供电电池;Select the module, set to: select the current battery to be charged and the current power supply battery from the terminal battery;
控制模块,设置为:对所述选择模块选择的所述当前待充电电池进行充电,并且通过所述选择模块选择的所述当前供电电池为所述终端的系统供电。And a control module, configured to: charge the current battery to be charged selected by the selection module, and supply the current power supply battery selected by the selection module to the system of the terminal.
可选地,所述选择模块选择所述当前待充电电池和所述当前供电电池, 包括:Optionally, the selecting module selects the current battery to be charged and the current power supply battery, include:
从终端的N个配置有充电功能的电池中,选择当前满足充电条件的电池作为所述当前待充电电池,选择出的所述当前待充电电池的个数M为大于或等于1,且小于或等于N的整数,并选择K个电池作为所述当前供电电池,所述当前供电电池与所述当前待充电电池不同;N为大于或等于2的整数,K为大于或等于0的整数;Selecting, from the N batteries configured with the charging function of the terminal, the battery that currently meets the charging condition as the current battery to be charged, and selecting the number M of the currently to-be-charged battery to be greater than or equal to 1, and less than or An integer equal to N, and selecting K batteries as the current power supply battery, the current power supply battery being different from the current battery to be charged; N being an integer greater than or equal to 2, and K being an integer greater than or equal to 0;
所述控制模块对所述当前待充电电池进行充电,并且通过所述当前供电电池为所述终端的系统供电,包括:The control module charges the current battery to be charged, and supplies power to the system of the terminal through the current power supply battery, including:
对所述当前待充电电池进行充电,在充电过程中断开所述当前待充电电池与所述终端的系统供电接口之间的电连接,并且在所述K大于0时,连通所述当前供电电池与所述系统供电接口为所述终端供电。Charging the current battery to be charged, disconnecting an electrical connection between the current battery to be charged and a system power supply interface of the terminal during charging, and connecting the current power supply when the K is greater than 0 A battery and the system power supply interface supply power to the terminal.
一种终端,包括:N个配置有充电功能的电池、系统供电接口和控制器;每个所述电池具有与外部供电电源连接的充电支路和与所述系统供电接口连接的供电支路;在每个所述充电支路和每个所述供电支路上分别设置有用于控制本支路通断的第一开关单元;A terminal includes: N batteries configured with a charging function, a system power supply interface, and a controller; each of the batteries has a charging branch connected to an external power supply and a power supply branch connected to the power supply interface of the system; Providing, on each of the charging branch and each of the power supply branches, a first switching unit for controlling the switching of the branch;
所述控制器,设置为:从每个所述电池中选择当前满足充电条件的电池作为当前待充电电池,选择出的所述当前待充电电池的个数M为大于或等于1,且小于或等于N的整数,并选择K个电池作为当前供电电池,所述当前供电电池与所述当前待充电电池不同;N为大于或等于2的整数,K为大于或等于0的整数;The controller is configured to: select, from each of the batteries, a battery that currently meets the charging condition as the current battery to be charged, and select the number M of the current battery to be charged to be greater than or equal to 1, and less than or An integer equal to N, and selecting K batteries as the current power supply battery, the current power supply battery being different from the current battery to be charged; N being an integer greater than or equal to 2, and K being an integer greater than or equal to 0;
所述控制器,还设置为:通过控制对应的第一开关单元导通所述当前待充电电池的充电支路,断开所述当前待充电电池的供电支路,并且在所述K大于0时,导通所述当前供电电池的供电支路,断开所述当前供电电池的充电支路。The controller is further configured to: disconnect the power supply branch of the current battery to be charged by controlling the corresponding first switch unit to conduct the charging branch of the current battery to be charged, and when the K is greater than 0 And turning on the power supply branch of the current power supply battery, and disconnecting the charging branch of the current power supply battery.
可选地,所述终端还包括:电压监测电路;Optionally, the terminal further includes: a voltage monitoring circuit;
所述电压监测电路,设置为:监测所述当前供电电池的电压值,并将监测结果传输给所述控制器;The voltage monitoring circuit is configured to: monitor a voltage value of the current power supply battery, and transmit the monitoring result to the controller;
所述控制器,还设置为:当所述当前供电电池的电压值小于等于第一预 设阈值时,通过控制对应的第一开关单元断开所述当前供电电池的供电支路,并从所述当前待充电电池中重新选择供电电池,导通重新选择出的所述供电电池的供电支路,并断开所述重新选择的供电电池的充电支路;所述第一预设阈值表示所述当前供电电池处于低电量状态。The controller is further configured to: when the voltage value of the current power supply battery is less than or equal to the first pre When the threshold is set, the power supply branch of the current power supply battery is disconnected by controlling the corresponding first switch unit, and the power supply battery is reselected from the current battery to be charged, and the power supply of the reselected power supply battery is turned on. a branch and disconnecting a charging branch of the reselected power supply battery; the first predetermined threshold value indicating that the current power supply battery is in a low battery state.
可选地,所述电压监测电路,还设置为:监测所述当前待充电电池的电压值,并将监测结果传输给所述控制器;Optionally, the voltage monitoring circuit is further configured to: monitor a voltage value of the current battery to be charged, and transmit the monitoring result to the controller;
所述控制器,还设置为:当所述当前待充电电池的电压值大于等于第二预设阈值时,通过控制对应的第一开关单元断开所述当前待充电电池的充电支路,导通所述当前待充电电池的供电支路;并从当前未进行充电的N-M个电池中重新选择待充电电池,并控制导通重新选择出的待充电电池的充电支路,断开所述重新选择的待充电电池的供电支路;所述第二预设阈值表示所述当前待充电电池充电完成。The controller is further configured to: when the voltage value of the current battery to be charged is greater than or equal to a second preset threshold, disconnect the charging branch of the current battery to be charged by controlling the corresponding first switch unit, Passing the power supply branch of the current battery to be charged; and reselecting the battery to be charged from the NM batteries that are not currently being charged, and controlling to turn on the reselected charging branch of the battery to be charged, disconnecting the re Selecting a power supply branch of the battery to be charged; the second preset threshold indicates that the current battery to be charged is fully charged.
可选地,所述终端还包括:Optionally, the terminal further includes:
用于连接外部供电电源与所述系统供电接口的外部供电支路,所述外部供电支路上设置有第二开关单元,所述第二开关单元默认为闭合;An external power supply branch for connecting an external power supply to the system power supply interface, the external power supply branch is provided with a second switch unit, and the second switch unit is closed by default;
所述控制器,还设置为:当所述控制器的选择结果为K大于0时,控制断开所述第二开关单元。The controller is further configured to: when the selection result of the controller is K greater than 0, control to disconnect the second switching unit.
一种计算可读机存储介质,所述计算机可读存储介质中存储有计算机可执行指令,处理器执行所述计算机可执行指令时,用于执行上述的任一项所述的终端充电控制方法。A computer readable storage medium storing computer executable instructions for executing a terminal charging control method according to any one of the above, when the processor executes the computer executable instructions .
本发明实施例提供的终端充电控制方法、装置及终端,通过在终端中设置多个配置有充电功能的电池,在进行充电的时候选择不同的电池分别作为当前待充电电池和当前供电电池,对当前待充电电池进行充电的同时采用当前供电电池为终端系统供电,避免了当前待充电电池在充电的同时需要为终端系统供电的问题,因此,避免了对当前待充电电池进行充电的噪声或者杂波通过供电引入终端系统的问题,提高了终端系统的可靠性与稳定性,保证了终端的安全,提高了用户体验。The terminal charging control method, device and terminal provided by the embodiment of the present invention, by setting a plurality of batteries configured with a charging function in the terminal, selecting different batteries as the current battery to be charged and the current power supply battery when charging is performed, While the battery to be charged is being charged, the current power supply battery is used to supply power to the terminal system, which avoids the problem that the current battery to be charged needs to supply power to the terminal system while charging, thereby avoiding noise or miscellaneous charging of the current battery to be charged. The problem that the wave is introduced into the terminal system through power supply improves the reliability and stability of the terminal system, ensures the security of the terminal, and improves the user experience.
在阅读并理解了附图和详细描述后,可以明白其他方面。 Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
图1为本发明实施例提供的一种终端充电控制方法的流程图;FIG. 1 is a flowchart of a terminal charging control method according to an embodiment of the present invention;
图2为本发明实施例提供的另一种终端充电控制方法的流程图;2 is a flowchart of another terminal charging control method according to an embodiment of the present invention;
图3为本发明实施例提供的一种终端充电控制装置的结构示意图;3 is a schematic structural diagram of a terminal charging control apparatus according to an embodiment of the present invention;
图4为本发明实施例提供的另一种终端充电控制装置的结构示意图;4 is a schematic structural diagram of another terminal charging control apparatus according to an embodiment of the present invention;
图5为本发明实施例提供的一种终端的结构示意图;FIG. 5 is a schematic structural diagram of a terminal according to an embodiment of the present disclosure;
图6为本发明实施例提供的另一种终端的结构示意图;FIG. 6 is a schematic structural diagram of another terminal according to an embodiment of the present disclosure;
图7为本发明实施例提供的又一种终端的结构示意图;FIG. 7 is a schematic structural diagram of still another terminal according to an embodiment of the present disclosure;
图8为本发明实施例提供的再一种终端的结构示意图;FIG. 8 is a schematic structural diagram of still another terminal according to an embodiment of the present disclosure;
图9为本实施例提供的智能手机的充电控制电路的结构示意图;FIG. 9 is a schematic structural diagram of a charging control circuit of a smart phone according to an embodiment of the present invention;
图10为图9所示智能手机的一种充电过程的流程图。FIG. 10 is a flow chart of a charging process of the smartphone shown in FIG. 9.
图11为图9所示智能手机的另一种充电过程的流程图。11 is a flow chart showing another charging process of the smartphone shown in FIG.
详述Detailed
下文中将结合附图对本发明的实施方式进行详细说明。需要说明的是,在不冲突的情况下,本文中的实施例及实施例中的特征可以相互任意组合。Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments herein may be arbitrarily combined with each other.
在附图的流程图示出的步骤可以在诸根据一组计算机可执行指令的计算机系统中执行。并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。The steps illustrated in the flowchart of the figures may be executed in a computer system in accordance with a set of computer executable instructions. Also, although logical sequences are shown in the flowcharts, in some cases the steps shown or described may be performed in a different order than the ones described herein.
为了解决相关技术中仅为终端设置一块电池而导致的充电时候容易将充电噪声引入终端系统,影响终端系统可靠性与稳定性的问题,本发明实施例提供一种终端充电控制方法,如图1所示,为本发明实施例提供的一种终端充电控制方法的流程图,该方法可以通过终端充电控制装置运行,该方法包括如下步骤,即S110~S120:In order to solve the problem that the charging noise is easily introduced into the terminal system during charging in the related art, and the reliability and stability of the terminal system are affected, the embodiment of the present invention provides a terminal charging control method, as shown in FIG. 1 . A flowchart of a method for controlling a terminal charging according to an embodiment of the present invention, which may be operated by a terminal charging control device, where the method includes the following steps, namely, S110 to S120:
S110,从终端电池中选择当前待充电电池和当前供电电池。S110. Select a current battery to be charged and a current power supply battery from the terminal battery.
由于相关技术的问题在于仅设置了一块电池,因此这块电池在进行充电 的同时也要对终端系统供电,以保证终端系统处于运行状态。这就导致了充电与供电两个过程相互关联,供电的时候容易将充电侧的噪声、杂波等引入终端系统,从而对终端系统造成影响。充电侧的噪声或者杂波主要是由于电源适配器、充电芯片以及充电路径造成的,无论花费多大的代价来设计完善电源适配器、充电芯片和充电路径,这三个器件带来的噪声和杂波是不可杜绝的。而相关技术的电池充电无法脱离这三个器件单独进行,也就是说相关技术还无法从噪声源头杜绝噪声。因此,为了避免这些噪声或杂波被引入系统中,只能设法将充电与供电两个过程进行分离。Since the problem of the related art is that only one battery is provided, this battery is being charged. At the same time, the terminal system must be powered to ensure that the terminal system is in operation. This causes the two processes of charging and power supply to be related to each other. When power is supplied, it is easy to introduce noise and clutter on the charging side into the terminal system, thereby affecting the terminal system. The noise or clutter on the charging side is mainly caused by the power adapter, the charging chip and the charging path. No matter how much the cost is to design the power adapter, the charging chip and the charging path, the noise and clutter caused by these three devices are Can not be eliminated. The related art battery charging cannot be performed separately from the three devices, that is, the related technology cannot eliminate the noise from the noise source. Therefore, in order to avoid these noises or clutter being introduced into the system, only the two processes of charging and power supply can be managed.
虽然在终端电池电量极低,无法保证系统运行的场景中,相关技术中能够通过外部供电电源直接为终端系统供电,这时候,终端系统的供电和电池充电两个过程是分离的。但是由于外部供电电源不稳定,会对终端系统的安全性造成极大的负面影响,例如外部供电电源供电时所产生的负向浪涌可能会导致终端系统掉电,而瞬时高压甚至会让终端产生不可逆的损害,因此在能够避免直接由外部供电电源供电的情况下尽量不使用外部供电电源供电已经成了业界共识,所以,相关技术只能在保证终端安全性的前提下忍受着电池充电给系统带来的噪声。Although in the scenario where the battery power of the terminal is extremely low and the system cannot be guaranteed, the related technology can directly supply power to the terminal system through the external power supply. At this time, the two processes of power supply and battery charging of the terminal system are separated. However, due to the instability of the external power supply, it will have a great negative impact on the security of the terminal system. For example, the negative surge generated by the external power supply may cause the terminal system to lose power, and the instantaneous high voltage may even cause the terminal. Irreducible damage, so it is an industry consensus to avoid using external power supply when it is possible to avoid direct power supply from an external power supply. Therefore, related technologies can only endure battery charging while ensuring terminal safety. The noise brought by the system.
可选地,本发明实施例提供的终端充电控制方法适用于配置有多块电池的终端,假定终端配置有N个电池,N为大于或等于2的整数,这N个电池都是配置有充电功能的电池,常见的可充电电池包括锂电池和镍氢电池。可选地,这N个电池可以都是锂电池或者镍氢电池,也可以是锂电池和镍氢电池以任意的占比进行组合构成。在充电的同时,一般会有供电电源为终端的系统供电,保证系统正常运行。因此,在进行充电之前可以先选择出用于供电的当前供电电池和用于充电的当前待充电电池。Optionally, the terminal charging control method provided by the embodiment of the present invention is applicable to a terminal configured with multiple batteries. It is assumed that the terminal is configured with N batteries, and N is an integer greater than or equal to 2. The N batteries are all configured with charging. Functional batteries, common rechargeable batteries include lithium batteries and nickel-metal hydride batteries. Alternatively, the N batteries may be either a lithium battery or a nickel hydrogen battery, or a lithium battery and a nickel hydrogen battery may be combined in any ratio. At the same time of charging, the power supply will generally supply power to the system of the terminal to ensure normal operation of the system. Therefore, the current power supply battery for power supply and the current battery to be charged for charging can be selected before charging.
可选地,在本发明实施例中,选择当前待充电电池的时候可以根据充电条件进行选择,充电条件可以为预先设置的,例如:选择当前电量最低的M个电池为当前待充电电池,在实际应用中,M可以为大于0的整数。可选地,充电条件也可以是电量低于预设阈值的电池。在上述两种充电条件的情况下,选择机制是不同的,第一种是由终端系统的开发人员或者是用户预先设置选择个数,则最终选择出的当前待充电电池的个数是一定的;而第二种是 预先设置了成为当前待充电电池的条件,选择出来的当前待充电电池的个数不定。Optionally, in the embodiment of the present invention, when the current battery to be charged is selected, the charging condition may be selected according to the charging condition, and the charging condition may be preset, for example, selecting the M batteries with the lowest current current capacity as the current battery to be charged, In practical applications, M can be an integer greater than zero. Alternatively, the charging condition may also be a battery whose electric quantity is lower than a preset threshold. In the case of the above two charging conditions, the selection mechanism is different. The first one is determined by the developer of the terminal system or the user, and the number of currently selected batteries to be charged is certain. And the second is The condition for becoming the current battery to be charged is set in advance, and the number of currently selected batteries to be charged is indefinite.
可选地,在本发明实施例中,终端充电控制装置选择当前供电电池的时候,可以从终端的N个电池中选择出其中电压值大于第一预设阈值的电池作为当前供电电池,第一预设阈值是能够为终端供电的最低电压,也就是说,第一预设阈值表示该当前供电电池处于低电量状态。Optionally, in the embodiment of the present invention, when the terminal charging control device selects the current power supply battery, the battery with the voltage value greater than the first preset threshold may be selected from the N batteries of the terminal as the current power supply battery, first The preset threshold is the lowest voltage that can power the terminal, that is, the first preset threshold indicates that the current powered battery is in a low battery state.
在实际应用中,如果本发明实施例中终端充电控制装置即为终端本身,那么在实施该方法的时候,终端系统可能需要处于运行状态,也就是说需要在选择出当前供电电池之前就提供电源供终端系统开始运行,为此,可以采用相关技术中的方式,让外部供电电源短暂的为终端系统供电;也可以在终端内部设置一个临时电池,如可更换的纽扣电池等。临时电池平时不使用,仅在确定终端需要充电,到终端确定出当前供电电池的期间内为终端系统供电。本发明实施例描述的系统处于运行状态并不是指开机状态,是指终端系统控制某些进程的状态,但是此时呈现给用户的界面可能依然是关机状态。In a practical application, if the terminal charging control device in the embodiment of the present invention is the terminal itself, the terminal system may need to be in an operating state when the method is implemented, that is, the power supply needs to be provided before the current power supply battery is selected. For the terminal system to start running, for this reason, the related technology can be used to allow the external power supply to temporarily supply power to the terminal system; or a temporary battery such as a replaceable button battery can be set inside the terminal. The temporary battery is not used normally, only to determine that the terminal needs to be charged, and to supply power to the terminal system during the period when the terminal determines the current battery. The system in the operating state described in the embodiment of the present invention does not refer to the power-on state, and refers to the state in which the terminal system controls certain processes, but the interface presented to the user may still be in the shutdown state.
S120,对当前待充电电池进行充电,并且通过当前供电电池为终端的系统供电。S120: Charging the current battery to be charged, and supplying power to the system of the terminal through the current power supply battery.
可选地,在本发明实施例中,将第一预设阈值作为选择因素选择出来的当前供电电池的数目例如为K个,K为大于或等于0的整数;在选择K个电池作为当前的供电电池之前,本发明实施例提供的方法还可以包括:控制外部供电电源与系统供电接口连通为该终端供电。Optionally, in the embodiment of the present invention, the number of current power supply batteries selected by using the first preset threshold as a selection factor is, for example, K, K is an integer greater than or equal to 0; and K batteries are selected as current Before the battery is powered, the method provided by the embodiment of the present invention may further include: controlling an external power supply to communicate with the system power supply interface to supply power to the terminal.
在本发明实施例的一个应用场景中,当K大于0的时候,表征出当前可以直接由终端配置有充电功能的电池来为终端供电,保证系统运行;该应用场景下,本发明实施例提供的方法还可以包括:控制断开外部供电电源与系统供电接口之间的电连接。在实际应用中,可以将终端的供电电源切换为供电电池,如果之前是由外部供电电源直接与终端系统的供电接口连接,那么此时可以断开系统供电接口与外部供电电源之间的电连接,而将选择出的当前供电电池与系统供电接口连通。In an application scenario of the embodiment of the present invention, when K is greater than 0, the battery that can be directly configured by the terminal to be charged is configured to supply power to the terminal to ensure the system is running. The method may further include: controlling an electrical connection between the external power supply and the system power supply interface. In practical applications, the power supply of the terminal can be switched to the power supply battery. If the external power supply is directly connected to the power supply interface of the terminal system, then the electrical connection between the system power supply interface and the external power supply can be disconnected. And the selected current power supply battery is connected to the system power supply interface.
在本发明实施例的一个应用场景中,如果终端所有电池的电压值都低于第一预设阈值,则无法选择出当前供电电池为终端系统供电,即K等于0, 在这种情况下,在当前待充电电池充电电量超过第一预设阈值之前依旧可以采用外部供电电源或者是终端临时电池来供电。In an application scenario of the embodiment of the present invention, if the voltage values of all the terminals of the terminal are lower than the first preset threshold, the current power supply battery cannot be selected to supply power to the terminal system, that is, K is equal to 0. In this case, the external power supply or the terminal temporary battery can still be used for power supply before the current chargeable battery charge exceeds the first preset threshold.
在实际应用中,由于终端在充电期间,无论是处于充电状态的当前待充电电池还是处于供电状态的当前供电电池,其电量都在变化,当这种变化到达一定程度的时候,一些电池就不适合再做当前待充电电池或者当前供电电池了。例如,在当前待充电电池充电完成之前,当前供电电池的电压值已经低于第一预设阈值,无法继续为终端供电,如果不更换当前供电电池,终端系统分将不能继续运行,所以尽管此时当前待充电电池的充电没有完成,但是只要当前待充电电池的电压高于第一预设阈值,则应当将当前待充电电池切换为当前供电电池,而当前供电电池也应当被切换为当前待充电电池进行充电。另外,如果当前待充电电池的电量持续增长,但是当前供电电池的电压一直在第一预设阈值之上,那么在当前待充电电池充电完成之后,也应当将当前待充电电池切换为当前供电电池,将当前供电电池切换为当前待充电电池。In practical applications, since the terminal is charging, whether it is the current battery to be charged in the charging state or the current battery in the power supply state, its power is changing. When the change reaches a certain level, some batteries are not. It is suitable for the battery to be charged or the current battery. For example, before the current battery to be charged is charged, the voltage value of the current power supply battery has been lower than the first preset threshold, and the terminal cannot be continuously powered. If the current power supply battery is not replaced, the terminal system will not continue to operate, so despite this The charging of the battery to be charged is not completed, but as long as the voltage of the battery to be charged is higher than the first preset threshold, the current battery to be charged should be switched to the current battery, and the current battery should be switched to the current battery. Recharge the battery for charging. In addition, if the current battery to be charged continues to increase, but the voltage of the current battery is always above the first preset threshold, then the current battery to be charged should be switched to the current battery after the current charging of the battery to be charged is completed. , switch the current power supply battery to the current battery to be charged.
可选地,图2为本发明实施例提供的另一种终端充电控制方法的流程图。在本发明上述实施例中的基础上,为了让终端充电控制装置根据每个电池电量的情况做出即时的切换动作,本发明实施例提供的终端充电控制方法还可以包括如下步骤,即S130~S150:Optionally, FIG. 2 is a flowchart of another terminal charging control method according to an embodiment of the present invention. On the basis of the above-mentioned embodiments of the present invention, in order to allow the terminal charging control device to perform an immediate switching action according to the condition of each battery power, the terminal charging control method provided by the embodiment of the present invention may further include the following steps, namely, S130~ S150:
S130,对终端电池的电压进行监测。S130, monitoring the voltage of the terminal battery.
监测对象包括当前供电电池与当前待充电电池,对于这两者的监测没有严格时序限制,在实际应用中,可以在选择出当前待充电电池与当前供电电池的时候,终端充电控制装置就对当前待充电电池和当前供电电池的电压分别进行监测。The monitoring object includes the current power supply battery and the current battery to be charged. There is no strict timing limitation for the monitoring of the two. In practical applications, when the current battery to be charged and the current power supply battery are selected, the terminal charging control device is current. The voltages of the battery to be charged and the current battery are separately monitored.
S140,当监测到当前供电电池的电压满足第一预设切换条件时,断开满足第一预设条件的每个当前供电电池与系统供电接口之间的电连接,并从当前待充电电池中重新选择供电电池为终端供电。S140. When it is detected that the voltage of the current power supply battery meets the first preset switching condition, disconnect the electrical connection between each current power supply battery that meets the first preset condition and the system power supply interface, and from the current battery to be charged. Reselect the power supply battery to power the terminal.
当前供电电池的电压满足第一预设切换条件,表示当前供电电池不再适合为终端供电,对于当前供电电池不再适合供电的情况,终端充电控制装置可以从当前待充电电池中重新选择供电电池为终端供电。 The voltage of the current power supply battery satisfies the first preset switching condition, indicating that the current power supply battery is no longer suitable for powering the terminal. For the case where the current power supply battery is no longer suitable for power supply, the terminal charging control device can reselect the power supply battery from the current battery to be charged. Power the terminal.
可选地,在本发明实施例中,第一预设切换条件可以包括:当前供电电池的电压值小于或等于第一预设阈值,该第一预设阈值表示当前供电电池处于低电量状态。如果当前待充电电池的电压值也满足第一预设切换条件,则说明当前待充电电池也不适合供电,这时候,终端充电控制装置还可以从当前既不是待充电电池,又不是供电电池的那些电池中选择供电电池,或者可以采用外部供电电源继续为终端供电,直至当前待充电电池的电量高于第一预设阈值的时候再切换成由当前待充电电池供电。Optionally, in the embodiment of the present invention, the first preset switching condition may include: the current power supply battery voltage value is less than or equal to a first preset threshold, and the first preset threshold value indicates that the current power supply battery is in a low power state. If the current voltage value of the battery to be charged also satisfies the first preset switching condition, it indicates that the current battery to be charged is not suitable for power supply. At this time, the terminal charging control device can also be from the current battery that is neither to be charged nor powered. The battery is selected from the battery, or the external power supply can continue to supply power to the terminal until the current battery to be charged is higher than the first preset threshold, and then switched to be powered by the current battery to be charged.
S150,当监测到当前待充电电池的电压满足第二预设切换条件时,将满足第二预设切换条件的每个当前待充电电池切换为当前供电电池,并从当前未进行充电的N-M个电池中重新选择待充电电池。S150, when it is detected that the voltage of the current battery to be charged satisfies the second preset switching condition, switching each current battery to be charged that meets the second preset switching condition to the current power supply battery, and from the NM currently not charging. Reselect the battery to be charged in the battery.
可选地,在本发明实施例中,第二预设切换条件可以包括:当前待充电电池的电压值大于或等于第二预设阈值,该第二预设阈值表示当前待充电电池充电完成。虽然第二预设阈值表示充电完成,但是这并不意味着终端的电量为100%,因为第二预设阈值可以是由开发人员在设置开发终端设置的,也可以是由用户自定义设置的,例如开发人员或者用户人为地设置电池电量大于96%就表征充电完成,虽然电池此时还可以继续充电,但是在本发明实施例中,当当前待充电电池的电量大于96%的时候就可以将其切换为当前供电电池,并从当前充电未完成的电池中重新选择待充电电池。在实际应用中,选择的范围可以是当前供电电池,也可以是既不是当前待充电电池也不是当前供电电池的那些电池。Optionally, in the embodiment of the present invention, the second preset switching condition may include: the current value of the battery to be charged is greater than or equal to a second preset threshold, where the second preset threshold indicates that the current battery to be charged is fully charged. Although the second preset threshold indicates that the charging is completed, this does not mean that the power of the terminal is 100%, because the second preset threshold may be set by the developer in the setting development terminal, or may be customized by the user. For example, if the developer or the user manually sets the battery power to be greater than 96%, the charging is completed. Although the battery can continue to be charged at this time, in the embodiment of the present invention, when the current battery to be charged is greater than 96%, Switch it to the current battery and reselect the battery to be charged from the battery that is currently not fully charged. In practical applications, the range of choice may be the current battery, or those that are neither the current battery to be charged nor the current battery.
本发明实施例提供的终端充电控制方法,通过对同一时刻的当前待充电电池与当前供电电池进行区分,保证对一块电池进行充电的时候该电池不需要同时为终端供电,因此,有效地避免了对当前待充电电池进行充电的噪声或者杂波通过供电引入终端系统的问题,提高了终端系统的可靠性与稳定性,保证了终端的安全,提高了用户体验。The terminal charging control method provided by the embodiment of the present invention distinguishes between the current battery to be charged and the current power supply battery at the same time, and ensures that the battery does not need to supply power to the terminal at the same time when charging a battery, thereby effectively avoiding The problem that noise or clutter for charging the battery to be charged is introduced into the terminal system through power supply improves the reliability and stability of the terminal system, ensures the security of the terminal, and improves the user experience.
另外,本发明实施例提供的终端充电控制方法,通过对当前供电电池的电压进行监测,如果发现当前供电电池的电压值满足第一预设切换条件时,可以重新选择当前供电电池,在当前供电电池电量不足,无法继续供电的时候,能够通过切换其他电池作为供电电池保证终端系统继续运行。另一方面, 本发明实施例提供的终端充电控制方法,还通过对当前待充电电池的电压值进行监测,在发现当前待充电电池充电完成之后立即切换到位其他电池进行充电,避免浪费充电时间,提高充电效率。In addition, the terminal charging control method provided by the embodiment of the present invention can monitor the voltage of the current power supply battery. If the voltage value of the current power supply battery meets the first preset switching condition, the current power supply battery can be reselected. When the battery is low and cannot continue to supply power, the terminal system can be continued by switching other batteries as the power supply battery. on the other hand, The method for controlling the terminal charging according to the embodiment of the present invention further monitors the voltage value of the battery to be charged, and immediately switches to another battery for charging after the current charging of the battery to be charged is completed, thereby avoiding wasting charging time and improving charging efficiency.
本发明实施例还提供一种终端充电控制装置,该装置可以用于执行本发明上述实施例提供的终端充电控制方法。如图3所示,为本发明实施例提供的一种终端充电控制装置的结构示意图,本发明实施例提供的终端充电控制装置20可以包括:选择模块210和控制模块220。The embodiment of the present invention further provides a terminal charging control apparatus, which can be used to perform the terminal charging control method provided by the above embodiment of the present invention. FIG. 3 is a schematic structural diagram of a terminal charging control apparatus according to an embodiment of the present invention. The terminal charging control apparatus 20 provided by the embodiment of the present invention may include: a selecting module 210 and a control module 220.
其中,选择模块210,设置为:从终端电池中选择当前待充电电池和当前供电电池。The selection module 210 is configured to: select a current battery to be charged and a current power supply battery from the terminal battery.
由于相关技术的问题在于仅设置了一块电池,因此这块电池在进行充电的同时也要对终端系统供电,以保证终端系统处于运行状态。这就导致了充电与供电两个过程相互关联,供电的时候容易将充电侧的噪声、杂波等引入终端系统,从而对终端系统造成影响。充电侧的噪声或者杂波主要是由于电源适配器、充电芯片以及充电路径造成的,无论花费多大的代价来设计完善电源适配器、充电芯片和充电路径,这三个器件带来的噪声和杂波是不可杜绝的。而相关技术的电池充电无法脱离这三个器件单独进行,也就是说相关技术还无法从噪声源头杜绝噪声。因此,为了避免这些噪声或杂波被引入系统中,只能设法将充电与供电两个过程进行分离。Since the related art has a problem in that only one battery is provided, the battery is also supplied with power to the terminal system while charging to ensure that the terminal system is in operation. This causes the two processes of charging and power supply to be related to each other. When power is supplied, it is easy to introduce noise and clutter on the charging side into the terminal system, thereby affecting the terminal system. The noise or clutter on the charging side is mainly caused by the power adapter, the charging chip and the charging path. No matter how much the cost is to design the power adapter, the charging chip and the charging path, the noise and clutter caused by these three devices are Can not be eliminated. The related art battery charging cannot be performed separately from the three devices, that is, the related technology cannot eliminate the noise from the noise source. Therefore, in order to avoid these noises or clutter being introduced into the system, only the two processes of charging and power supply can be managed.
虽然在终端电池电量极低,无法保证系统运行的场景中,相关技术中能够通过外部供电电源直接为终端系统供电,这时候,终端系统的供电和电池充电两个过程是分离的。但是由于外部供电电源不稳定,会对终端系统的安全性造成极大的负面影响,例如外部供电电源供电时所产生的负向浪涌可能会导致终端系统掉电,而瞬时高压甚至会让终端产生不可逆的损害,因此在能够避免直接由外部供电电源供电的情况下尽量不使用外部供电电源供电已经成了业界共识,所以,相关技术只能在保证终端安全性的前提下忍受着电池充电给系统带来的噪声。Although in the scenario where the battery power of the terminal is extremely low and the system cannot be guaranteed, the related technology can directly supply power to the terminal system through the external power supply. At this time, the two processes of power supply and battery charging of the terminal system are separated. However, due to the instability of the external power supply, it will have a great negative impact on the security of the terminal system. For example, the negative surge generated by the external power supply may cause the terminal system to lose power, and the instantaneous high voltage may even cause the terminal. Irreducible damage, so it is an industry consensus to avoid using external power supply when it is possible to avoid direct power supply from an external power supply. Therefore, related technologies can only endure battery charging while ensuring terminal safety. The noise brought by the system.
可选地,本发明实施例提供的终端充电控制装置20适用于配置有多块电池的终端,假定终端配置有N个电池,N为大于或等于2的整数,这N个 电池都是配置有充电功能的电池,常见的可充电电池包括锂电池和镍氢电池。可选地,这N个电池可以都是锂电池或者镍氢电池,也可以是锂电池和镍氢电池以任意的占比进行组合构成。在充电的同时,一般会有供电电源为终端的系统供电,保证系统正常运行。因此,在进行充电之前,选择模块210可以先选择出用于供电的当前供电电池和用于充电的当前待充电电池。Optionally, the terminal charging control device 20 provided by the embodiment of the present invention is applicable to a terminal configured with multiple batteries. It is assumed that the terminal is configured with N batteries, and N is an integer greater than or equal to 2, and the N The batteries are all equipped with a rechargeable battery. Common rechargeable batteries include lithium batteries and nickel-metal hydride batteries. Alternatively, the N batteries may be either a lithium battery or a nickel hydrogen battery, or a lithium battery and a nickel hydrogen battery may be combined in any ratio. At the same time of charging, the power supply will generally supply power to the system of the terminal to ensure normal operation of the system. Therefore, prior to charging, the selection module 210 can first select the current powered battery for powering and the current battery to be charged for charging.
可选地,在本发明实施例中,选择模块210选择当前充电电池的时候可以根据充电条件进行选择,充电条件可以为预先设置的,例如:选择当前电量最低的M个电池为当前待充电电池,在实际应用中,M可以为大于0的整数。可选地,充电条件也可以是电量低于预设阈值的电池。在上述两种充电条件的情况下,选择机制是不同的,第一种是由终端系统的开发人员或者是用户预先设置选择个数,则最终选择出的当前待充电电池的个数是一定的;而第二种是预先设置了成为当前待充电电池的条件,选择出来的当前待充电电池的个数不定。Optionally, in the embodiment of the present invention, when the selection module 210 selects the current rechargeable battery, the charging condition may be selected according to the charging condition, and the charging condition may be preset, for example, selecting the M batteries with the lowest current current capacity as the current battery to be charged. In practical applications, M can be an integer greater than zero. Alternatively, the charging condition may also be a battery whose electric quantity is lower than a preset threshold. In the case of the above two charging conditions, the selection mechanism is different. The first one is determined by the developer of the terminal system or the user, and the number of currently selected batteries to be charged is certain. The second type is pre-set to the condition of the current battery to be charged, and the number of currently selected batteries to be charged is variable.
可选地,在本发明实施例中,选择模块210选择当前供电电池的时候,可以从终端的N个电池中选择出其中电压值大于第一预设阈值的电池作为当前供电电池,第一预设阈值是能够为终端供电的最低电压,也就是说,第一预设阈值表示该当前供电电池处于低电量状态。Optionally, in the embodiment of the present invention, when the selection module 210 selects the current power supply battery, the battery whose voltage value is greater than the first preset threshold may be selected from the N batteries of the terminal as the current power supply battery, the first pre-preparation Let the threshold be the lowest voltage that can power the terminal, that is, the first preset threshold indicates that the current power supply battery is in a low battery state.
在实际应用中,如果本发明实施例中终端充电控制装置20部署在终端上,那么在实施该方法的时候,终端系统可能需要处于运行状态,也就是说需要在选择出当前供电电池之前就提供电源供终端系统开始运行,为此,可以采用相关技术中的方式,让外部供电电源短暂的为终端系统供电;也可以在终端内部设置一个临时电池,如可更换的纽扣电池等。临时电池平时不使用,仅在确定终端需要充电,到终端确定出当前供电电池的期间内为终端系统供电。本发明实施例描述的系统处于运行状态并不是指开机状态,是指终端系统控制某些进程的状态,但是此时呈现给用户的界面可能依然是关机状态。In an actual application, if the terminal charging control device 20 is deployed on the terminal in the embodiment of the present invention, the terminal system may need to be in an operating state when the method is implemented, that is, it needs to be provided before the current power supply battery is selected. The power supply is used for the terminal system to start running. For this reason, the external power supply can be used to temporarily supply power to the terminal system in the related art manner. A temporary battery such as a replaceable button battery can also be disposed inside the terminal. The temporary battery is not used normally, only to determine that the terminal needs to be charged, and to supply power to the terminal system during the period when the terminal determines the current battery. The system in the operating state described in the embodiment of the present invention does not refer to the power-on state, and refers to the state in which the terminal system controls certain processes, but the interface presented to the user may still be in the shutdown state.
控制模块220,设置为:对选择模块210选择的当前待充电电池进行充电,并通过选择模块210选择的当前供电电池为终端的系统供电。The control module 220 is configured to: charge the current battery to be charged selected by the selection module 210, and supply power to the system of the terminal by the current power supply battery selected by the selection module 210.
可选地,在本发明实施例中,将第一预设阈值作为选择因素选择出来的 当前供电电池的数目例如为K个,K为大于或等于0的整数;在选择K个电池作为当前的供电电池之前,本发明实施例提供的装置20中,控制模块220,还设置为:控制外部供电电源与系统供电接口连通为该终端供电。Optionally, in the embodiment of the present invention, the first preset threshold is selected as a selection factor. The number of the current power supply battery is, for example, K, and K is an integer greater than or equal to 0. Before the K battery is selected as the current power supply battery, in the apparatus 20 provided by the embodiment of the present invention, the control module 220 is further configured to: The external power supply is connected to the system power supply interface to supply power to the terminal.
在本发明实施例的一个应用场景中,当K大于0的时候,表征出当前可以直接由终端配置有充电功能的电池来为终端供电,保证系统运行;该应用场景下,本发明实施例提供的控制模块220,还设置为:控制断开外部供电电源与系统供电接口之间的电连接。在实际应用中,控制模块220可以将终端的供电电源切换为供电电池,如果之前是由外部供电电源直接与终端系统的供电接口连接,那么此时控制模块220可以断开系统供电接口与外部供电电源之间的电连接,而将选择出的当前供电电池与系统供电接口连通。In an application scenario of the embodiment of the present invention, when K is greater than 0, the battery that can be directly configured by the terminal to be charged is configured to supply power to the terminal to ensure the system is running. The control module 220 is further configured to: control an electrical connection between the external power supply and the system power supply interface. In an actual application, the control module 220 can switch the power supply of the terminal to the power supply battery. If the external power supply is directly connected to the power supply interface of the terminal system, the control module 220 can disconnect the system power supply interface and the external power supply. The electrical connection between the power sources, and the selected current power supply battery is connected to the system power supply interface.
在本发明实施例的另一个应用场景中,如果终端所有电池的电压值都低于第一预设阈值,则无法选择出当前供电电池为终端系统供电,即K等于0,在这种情况下,在当前待充电电池充电电量超过第一预设阈值之前依旧可以采用外部供电电源或者是终端临时电池来供电。In another application scenario of the embodiment of the present invention, if the voltage values of all the terminals of the terminal are lower than the first preset threshold, the current power supply battery cannot be selected to supply power to the terminal system, that is, K is equal to 0. In this case, The external power supply or the terminal temporary battery may be used to supply power before the current chargeable battery charge exceeds the first preset threshold.
在实际应用中,由于终端在充电期间,无论是处于充电状态的当前待充电电池还是处于供电状态的当前供电电池,其电量都在变化,当这种变化到达一定程度的时候,一些电池就不适合再做当前待充电电池或者当前供电电池了。例如,在当前待充电电池充电完成之前,当前供电电池的电压值已经低于第一预设阈值,无法继续为终端供电,如果不更换当前供电电池,终端系统分将不能继续运行,所以尽管此时当前待充电电池的充电没有完成,但是只要当前待充电电池的电压高于第一预设阈值,则应当将当前待充电电池切换为当前供电电池,而当前供电电池也应当被切换为当前待充电电池进行充电。另外,如果当前待充电电池的电量持续增长,但是当前供电电池的电压一直在第一预设阈值之上,那么在当前待充电电池充电完成之后,也应当将当前待充电电池切换为当前供电电池,将当前供电电池切换为当前待充电电池。In practical applications, since the terminal is charging, whether it is the current battery to be charged in the charging state or the current battery in the power supply state, its power is changing. When the change reaches a certain level, some batteries are not. It is suitable for the battery to be charged or the current battery. For example, before the current battery to be charged is charged, the voltage value of the current power supply battery has been lower than the first preset threshold, and the terminal cannot be continuously powered. If the current power supply battery is not replaced, the terminal system will not continue to operate, so despite this The charging of the battery to be charged is not completed, but as long as the voltage of the battery to be charged is higher than the first preset threshold, the current battery to be charged should be switched to the current battery, and the current battery should be switched to the current battery. Recharge the battery for charging. In addition, if the current battery to be charged continues to increase, but the voltage of the current battery is always above the first preset threshold, then the current battery to be charged should be switched to the current battery after the current charging of the battery to be charged is completed. , switch the current power supply battery to the current battery to be charged.
可选地,图4为本发明实施例提供的另一种终端充电控制装置的结构示意图。在本发明上述实施例中的结构基础上,为了根据每个电池电量的情况做出即时的切换动作,本发明实施例提供的终端充电控制装置20除了包括 选择模块210和控制模块220以外,还可以包括:监测模块230。Optionally, FIG. 4 is a schematic structural diagram of another terminal charging control apparatus according to an embodiment of the present invention. The terminal charging control apparatus 20 provided by the embodiment of the present invention includes, in addition to the structure of the foregoing embodiment of the present invention, in order to make an immediate switching action according to the condition of each battery power. In addition to the selection module 210 and the control module 220, the monitoring module 230 may be further included.
其中,监测模块230,设置为:对终端电池的电压进行监测。The monitoring module 230 is configured to: monitor the voltage of the terminal battery.
监测模块230监测对象包括当前供电电池与当前待充电电池,对于这两者的监测没有严格时序限制,在实际应用中,可以在选择出当前待充电电池与当前供电电池的时候,监测模块230就对当前待充电电池和当前供电电池的电压分别进行监测。The monitoring module 230 monitors the object including the current power supply battery and the current battery to be charged. There is no strict timing limitation for the monitoring of the two. In practical applications, when the current battery to be charged and the current power supply battery are selected, the monitoring module 230 can The voltages of the current battery to be charged and the current battery are separately monitored.
本发明实施例中的控制模块220,还设置为:当监测模块230监测到当前供电电池的电压满足第一预设切换条件时,断开满足第一预设条件的每个当前供电电池与系统供电接口之间的电连接,并从当前待充电电池中重新选择供电电池为终端供电。The control module 220 in the embodiment of the present invention is further configured to: when the monitoring module 230 detects that the voltage of the current power supply battery meets the first preset switching condition, disconnect each current power supply battery and system that meets the first preset condition. The electrical connection between the power supply interfaces, and the power supply battery is reselected from the current battery to be charged to supply power to the terminal.
当前供电电池的电压满足第一预设切换条件,表示当前供电电池不再适合为终端供电,对于当前供电电池不再适合供电的情况,监测模块230可以通知控制模块220可以从当前待充电电池中重新选择供电电池为终端供电。The voltage of the current power supply battery meets the first preset switching condition, indicating that the current power supply battery is no longer suitable for powering the terminal. For the case that the current power supply battery is no longer suitable for power supply, the monitoring module 230 can notify the control module 220 that it can be from the current battery to be charged. Reselect the power supply battery to power the terminal.
可选地,在本发明实施例中,第一预设切换条件可以包括:当前供电电池的电压值小于或等于第一预设阈值,该第一预设阈值表示当前供电电池处于低电量状态。如果当前待充电电池的电压值也满足第一预设切换条件,则说明当前待充电电池也不适合供电,这时候,控制模块220还可以从当前既不是待充电电池,又不是供电电池的那些电池中选择供电电池,或者可以采用外部供电电源继续为终端供电,直至当前待充电电池的电量高于第一预设阈值的时候再切换成由当前待充电电池供电。Optionally, in the embodiment of the present invention, the first preset switching condition may include: the current power supply battery voltage value is less than or equal to a first preset threshold, and the first preset threshold value indicates that the current power supply battery is in a low power state. If the current voltage value of the battery to be charged also satisfies the first preset switching condition, it indicates that the current battery to be charged is also not suitable for power supply. At this time, the control module 220 can also be from the current battery that is neither the battery to be charged nor the power supply battery. The power supply battery is selected in the battery, or the external power supply may continue to supply power to the terminal until the current battery to be charged is higher than the first preset threshold, and then switched to be powered by the current battery to be charged.
本发明实施例中的控制模块220,还设置为:当监测模块230监测到当前待充电电池的电压满足第二预设切换条件时,将满足第二预设切换条件的每个当前待充电电池切换为当前供电电池,并从当前未进行充电的N-M个电池中重新选择待充电电池。The control module 220 in the embodiment of the present invention is further configured to: when the monitoring module 230 detects that the voltage of the battery to be charged meets the second preset switching condition, each current battery to be charged that meets the second preset switching condition is Switch to the current power supply battery and reselect the battery to be charged from the NM batteries that are not currently being charged.
可选地,在本发明实施例中,第二预设切换条件可以包括:当前待充电电池的电压值大于或等于第二预设阈值,该第二预设阈值表示当前待充电电池充电完成。虽然第二预设阈值表示充电完成,但是这并不意味着终端的电量为100%,因为第二预设阈值可以是由开发人员在设置开发终端设置的,也可以是由用户自定义设置的,例如开发人员或者用户人为地设置电池电量 大于96%就表征充电完成,虽然电池此时还可以继续充电,但是在本发明实施例中,当当前待充电电池的电量大于96%的时候就可以将其切换为当前供电电池,并从当前充电未完成的电池中重新选择待充电电池。在实际应用中,控制模块220选择的范围可以是当前供电电池,也可以是既不是当前待充电电池也不是当前供电电池的那些电池。Optionally, in the embodiment of the present invention, the second preset switching condition may include: the current value of the battery to be charged is greater than or equal to a second preset threshold, where the second preset threshold indicates that the current battery to be charged is fully charged. Although the second preset threshold indicates that the charging is completed, this does not mean that the power of the terminal is 100%, because the second preset threshold may be set by the developer in the setting development terminal, or may be customized by the user. , for example, developers or users artificially set the battery level When the battery is more than 96%, the charging is completed. Although the battery can continue to be charged at this time, in the embodiment of the present invention, when the current battery to be charged is greater than 96%, it can be switched to the current power supply battery, and from the current Reselect the battery to be charged in the battery that has not been charged. In practical applications, the control module 220 may select a range of current power supply batteries or those that are neither the current battery to be charged nor the current power supply battery.
本发明实施例中提供的终端充电控制装置20可以部署在终端上,其中,选择模块210和控制模块220的功能可以通过计算机程序实现,将对应的计算机程序存储在终端的内存当中,并由终端的控制器从内存当中读取对应的程序代码来实现对应的功能,而监测模块230的功能则可以由硬件电路来实现,这里给出一种示例:设置比较电路作为监测模块230,比较电路的参考电压可以是第一预设阈值或者第二预设阈值,当一个比较电路需要监测供电电池的电压时,可以选择第一预设阈值设置参考电压,而如果要监测当前待充电电池的电压,则可以将对应比较电路的参考电压设置为第二预设阈值。平常的时候,比较器输出低电平,当其监测到电压值满足第一预设切换条件或者是第二预设切换条件时,其可以输出高电平给控制器,控制器根据接收到的比较电路的输出确定对应的处理策略。The terminal charging control device 20 provided in the embodiment of the present invention may be deployed on the terminal, wherein the functions of the selecting module 210 and the control module 220 may be implemented by a computer program, and the corresponding computer program is stored in the memory of the terminal, and the terminal is The controller reads the corresponding program code from the memory to implement the corresponding function, and the function of the monitoring module 230 can be implemented by the hardware circuit. Here is an example: setting the comparison circuit as the monitoring module 230, comparing the circuit The reference voltage may be a first preset threshold or a second preset threshold. When a comparison circuit needs to monitor the voltage of the power supply battery, the first preset threshold may be selected to set the reference voltage, and if the current battery to be charged is to be monitored, Then, the reference voltage of the corresponding comparison circuit can be set to a second preset threshold. Normally, the comparator outputs a low level. When it detects that the voltage value satisfies the first preset switching condition or the second preset switching condition, it can output a high level to the controller, and the controller receives the The output of the comparison circuit determines the corresponding processing strategy.
本发明实施例提供的终端充电控制装置,通过对同一时刻的当前待充电电池与当前供电电池进行区分,保证对一块电池进行充电的时候该电池不需要同时为终端供电,因此,有效地避免了对当前待充电电池进行充电的噪声或者杂波通过供电引入终端系统的问题,提高了终端系统的可靠性与稳定性,保证了终端的安全,提高了用户体验。The terminal charging control device provided by the embodiment of the present invention distinguishes between the current battery to be charged and the current power supply battery at the same time, and ensures that the battery does not need to supply power to the terminal at the same time when charging a battery, thereby effectively avoiding The problem that noise or clutter for charging the battery to be charged is introduced into the terminal system through power supply improves the reliability and stability of the terminal system, ensures the security of the terminal, and improves the user experience.
另外,本发明实施例提供的终端充电控制装置,通过对当前供电电池的电压进行监测,如果发现当前供电电池的电压值满足第一预设切换条件时,可以重新选择当前供电电池,在当前供电电池电量不足,无法继续供电的时候,能够通过切换其他电池作为供电电池保证终端系统继续运行。另一方面,本发明实施例提供的终端充电控制装置,还通过对当前待充电电池的电压值进行监测,在发现当前待充电电池充电完成之后立即切换到位其他电池进行充电,避免浪费充电时间,提高充电效率。 In addition, the terminal charging control device provided by the embodiment of the present invention monitors the voltage of the current power supply battery. If the voltage value of the current power supply battery meets the first preset switching condition, the current power supply battery can be reselected. When the battery is low and cannot continue to supply power, the terminal system can be continued by switching other batteries as the power supply battery. On the other hand, the terminal charging control device provided by the embodiment of the present invention further monitors the voltage value of the battery to be charged, and immediately switches to another battery for charging after the current charging of the battery to be charged is completed, thereby avoiding wasting charging time. Improve charging efficiency.
本发明实施例还提供一种终端,如图5所示,为本发明实施例提供的一种终端的结构示意图。本发明实施例提供的终端上设置有多块配置有充电功能的电池40,电池40具有与外部供电电源连接的充电支路41和与系统供电接口连接从而实现供电的供电支路42。在充电支路41与供电支路42上分别设置有两个第一开关单元411和421。第一开关单元411和第一开关单元421分别用于控制充电支路41和供电支路42的通断。The embodiment of the present invention further provides a terminal. As shown in FIG. 5, it is a schematic structural diagram of a terminal according to an embodiment of the present invention. The terminal provided by the embodiment of the present invention is provided with a plurality of batteries 40 configured with a charging function. The battery 40 has a charging branch 41 connected to an external power supply and a power supply branch 42 connected to the system power supply interface for power supply. Two first switching units 411 and 421 are provided on the charging branch 41 and the power supply branch 42, respectively. The first switching unit 411 and the first switching unit 421 are used to control the on and off of the charging branch 41 and the power supply branch 42, respectively.
可选地,图6为本发明实施例提供的另一种终端的结构示意图。在图5所示终端的结构基础上,本发明实施例提供的终端除了包括多个电池40以外,还包括:控制器51和系统供电接口522。Optionally, FIG. 6 is a schematic structural diagram of another terminal according to an embodiment of the present invention. Based on the structure of the terminal shown in FIG. 5, the terminal provided by the embodiment of the present invention includes a controller 51 and a system power supply interface 522 in addition to the plurality of batteries 40.
其中,系统供电接口522与供电电源连接,设置为:为控制器51、显示屏(未示出)、音频输入输出单元(未示出)或者通信单元(未示出)等供电。The system power supply interface 522 is connected to the power supply, and is configured to supply power to the controller 51, a display screen (not shown), an audio input and output unit (not shown), or a communication unit (not shown).
可选地,图7为本发明实施例提供的又一种终端的结构示意图。为了便于终端对各个器件的供电进行宏观管理,终端可以设置为包括系统供电接口522的电源管理单元52。电源管理单元52,设置为:在控制器51的控制下接收电能并且提供操作各元件和组件所需的适当的电力。Optionally, FIG. 7 is a schematic structural diagram of still another terminal according to an embodiment of the present invention. In order to facilitate macro management of the power supply of each device by the terminal, the terminal may be configured as a power management unit 52 including a system power supply interface 522. The power management unit 52 is configured to receive power under the control of the controller 51 and provide appropriate power required to operate the various components and components.
为了便于说明,在这里将各个电池40以40A、40B、40C……的方式进行编号,本领域技术人员应当明白的是,A、B、C等仅为了区分不同的电池,并不能代表电池本身的构成或者结构的区别。控制器51从电池40A、40B、40C……中选择当前满足充电条件的电池作为当前待充电电池,选择当前待充电电池的时候,控制器51可以根据充电条件进行,充电条件由终端开发人员或者是用户预先设置完成,例如:设置选择当前电量最低的M个电池为当前待充电电池,在实际应用中,M可以为大于0的整数。可选地,充电条件也可以是电量低于预设阈值的电池。在上述两种充电条件的情况下,选择机制是不同的,第一种是预先设置选择个数,则最终选择出的当前待充电电池的个数是一定的;而第二种是预先设置了成为当前待充电电池的条件,选择出来的当前待充电电池的个数不定。For convenience of explanation, each battery 40 is numbered in the manner of 40A, 40B, 40C, etc., those skilled in the art should understand that A, B, C, etc. only distinguish different batteries, and cannot represent the battery itself. The composition or structure of the difference. The controller 51 selects, from the batteries 40A, 40B, 40C, ..., the battery that currently meets the charging condition as the current battery to be charged, and when selecting the current battery to be charged, the controller 51 can perform according to the charging condition, and the charging condition is determined by the terminal developer or It is preset by the user. For example, the M battery with the lowest current capacity is set as the current battery to be charged. In practical applications, M can be an integer greater than 0. Alternatively, the charging condition may also be a battery whose electric quantity is lower than a preset threshold. In the case of the above two charging conditions, the selection mechanism is different. The first one is to preset the number of selections, and the number of currently selected batteries to be charged is certain; and the second type is preset. As the condition of the current battery to be charged, the number of currently selected batteries to be charged is variable.
可选地,在本发明实施例中,控制器51还会从N个电池40A、40B、40C……中选择出其中电压值大于第一预设阈值的电池作为当前供电电池, 第一预设阈值是能够为终端供电的最低电压,也就是说,第一预设阈值表示该当前供电电池处于低电量状态。假定控制器51选择出的当前供电电池的数目为K,则K为大于或等于0的整数。Optionally, in the embodiment of the present invention, the controller 51 further selects, from the N batteries 40A, 40B, 40C, . . . , the battery whose voltage value is greater than the first preset threshold as the current power supply battery. The first preset threshold is the lowest voltage that can power the terminal, that is, the first preset threshold indicates that the current powered battery is in a low battery state. Assuming that the number of currently powered batteries selected by the controller 51 is K, then K is an integer greater than or equal to zero.
在实际应用中,由于控制器51的工作离不开电源支持,因此在控制器51选择出当前供电电池之前就提供电源供终端系统开始运行,为此,可以在终端内部设置一个临时电池,如可更换的纽扣电池等。临时电池平时不使用,仅在监测终端需要充电,到终端确定出供电电池的期间内为终端系统供电。或者采用相关技术中的方式,让外部供电电源短暂的为终端系统供电。可选地,在这种方式中,终端还包括一条外部供电支路,该外部供电支路用于连接系统供电接口522与外部供电电源,外部供电支路上设置有对应的第二开关单元,第二开关单元设置为:控制该外部供电支路的通断。在默认状态下,第二开关单元处于闭合状态的,除非控制器52进行了断开控制。另外,本发明实施例描述的系统处于运行状态并不是指开机状态,是指终端系统控制某些进程的状态,但是此时呈现给用户的界面可能依然是关机状态。In practical applications, since the operation of the controller 51 is inseparable from the power supply support, the power supply is provided for the terminal system to start running before the controller 51 selects the current power supply battery. To this end, a temporary battery can be set inside the terminal, such as Replaceable button batteries, etc. The temporary battery is not used normally, only the monitoring terminal needs to be charged, and the terminal system is powered during the period when the terminal determines the power supply battery. Or use the method in the related art to let the external power supply briefly supply power to the terminal system. Optionally, in this manner, the terminal further includes an external power supply branch, the external power supply branch is used to connect the system power supply interface 522 and the external power supply, and the external power supply branch is provided with a corresponding second switch unit. The second switch unit is configured to: control the on and off of the external power supply branch. In the default state, the second switching unit is in the closed state unless the controller 52 performs the disconnection control. In addition, the system described in the embodiment of the present invention is not in the power-on state, and refers to the state in which the terminal system controls certain processes, but the interface presented to the user may still be in the shutdown state.
可选地,在本发明实施例中,控制器51将第一预设阈值作为选择因素选择出来的当前供电电池的数目例如为K个,K为大于或等于0的整数;在选择K个电池作为当前的供电电池之前,本发明实施例中的控制器51,还设置为:控制外部供电电源与系统供电接口连通为该终端供电。Optionally, in the embodiment of the present invention, the controller 51 selects the first preset threshold as the selection factor, for example, the number of current power supply batteries is K, and K is an integer greater than or equal to 0; Before the current power supply battery, the controller 51 in the embodiment of the present invention is further configured to: control the external power supply to communicate with the system power supply interface to supply power to the terminal.
在本发明实施例的一个应用场景中,当K大于0的时候,表征出当前可以直接由终端配置有充电功能的电池来为终端供电,保证系统运行。这时控制器51可以控制选择出的当前供电电池的供电支路上开关单元闭合,再此之后断开第二开关单元。In an application scenario of the embodiment of the present invention, when K is greater than 0, it is characterized that a battery that can be directly configured by the terminal to have a charging function is used to supply power to the terminal to ensure system operation. At this time, the controller 51 can control the switching unit of the selected power supply battery of the current power supply battery to be closed, and then turn off the second switching unit.
在本发明实施例的另一个应用场景中,如果终端所有电池的电压值都低于第一预设阈值,则控制器51无法选择出当前供电电池为终端系统供电,即K等于0,在这种情况下,在当前待充电电池充电电量超过第一预设阈值之前依旧可以采用外部供电电源,控制器51在此期间不会关断第二开关单元。In another application scenario of the embodiment of the present invention, if the voltage values of all the terminals of the terminal are lower than the first preset threshold, the controller 51 cannot select the current power supply battery to supply power to the terminal system, that is, K is equal to 0, where In this case, the external power supply can still be used before the current chargeable battery charge exceeds the first preset threshold, and the controller 51 does not turn off the second switch unit during this period.
可选地,图8为本发明实施例提供的再一种终端的结构示意图。在本发明上述实施例的结构基础上,终端除了包括控制器51、多个电池(40A、40B、 40C……)、包括系统供电接口522的电源管理单元52以外,还可以包括:电压监测单元53,该电压监测单元53监测对象包括当前供电电池与当前待充电电池,对于这两者的监测没有严格时序限制,在实际应用中,可以在选择出当前待充电电池与供电电池的时候,电压监测单元53就对当前待充电电池和当前供电电池的电压分别进行监测。Optionally, FIG. 8 is a schematic structural diagram of still another terminal according to an embodiment of the present invention. Based on the structure of the above embodiment of the present invention, the terminal includes a controller 51 and a plurality of batteries (40A, 40B, In addition to the power management unit 52 of the system power supply interface 522, the voltage monitoring unit 53 may further include: a voltage monitoring unit 53 that monitors the current power supply battery and the current battery to be charged, and the monitoring of the two is not performed. Strict timing limitation. In practical applications, when the current battery to be charged and the power supply battery are selected, the voltage monitoring unit 53 separately monitors the voltages of the current battery to be charged and the current power supply battery.
本发明实施例中的控制器51,还设置为:当电压监测单元53检测到当前供电电池的电压满足第一预设切换条件时,断开满足第一预设条件的每个当前供电电池与系统供电接口之间的电连接,并从当前待充电电池中重新选择供电电池为终端供电;在实际应用中,控制器51通过控制对应的第一开关单元断开当前供电电池的供电支路,并从当前待充电电池中重新选择供电电池,导通重新选择出的供电电池的供电支路,并断开重新选择的供电电池的充电支路;该第一预设阈值表示所述当前供电电池处于低电量状态。The controller 51 in the embodiment of the present invention is further configured to: when the voltage monitoring unit 53 detects that the voltage of the current power supply battery meets the first preset switching condition, disconnect each current power supply battery that meets the first preset condition and The electrical connection between the system power supply interfaces, and the power supply battery is reselected from the current battery to be charged to supply power to the terminal; in practical applications, the controller 51 disconnects the power supply branch of the current power supply battery by controlling the corresponding first switch unit. And reselecting the power supply battery from the current battery to be charged, turning on the power supply branch of the reselected power supply battery, and disconnecting the charging branch of the reselected power supply battery; the first preset threshold value indicates the current power supply battery In a low battery state.
当前供电电池的电压满足第一预设切换条件,表示当前供电电池不再适合为终端供电,对于当前供电电池不再适合供电的情况,控制器51还可以从当前待充电电池中重新选择供电电池为终端供电。The voltage of the current power supply battery satisfies the first preset switching condition, indicating that the current power supply battery is no longer suitable for powering the terminal. For the case that the current power supply battery is no longer suitable for power supply, the controller 51 can also reselect the power supply battery from the current battery to be charged. Power the terminal.
可选地,在本发明实施例中,第一预设切换条件可以包括:当前供电电池的电压值小于或等于第一预设阈值,该第一预设阈值表示当前供电电池处于低电量状态。如果当前待充电电池的电压值也满足第一预设切换条件,则说明当前待充电电池也不适合供电,这时候,控制器51还可以从当前既不是待充电电池,又不是供电电池的那些电池中选择供电电池,或者可以采用外部供电电源继续为终端供电,直至当前待充电电池的电量高于第一预设阈值的时候再切换成由当前待充电电池供电。Optionally, in the embodiment of the present invention, the first preset switching condition may include: the current power supply battery voltage value is less than or equal to a first preset threshold, and the first preset threshold value indicates that the current power supply battery is in a low power state. If the current voltage value of the battery to be charged also satisfies the first preset switching condition, it indicates that the current battery to be charged is also not suitable for power supply. At this time, the controller 51 can also be from the current battery that is neither the battery to be charged nor the power supply battery. The power supply battery is selected in the battery, or the external power supply may continue to supply power to the terminal until the current battery to be charged is higher than the first preset threshold, and then switched to be powered by the current battery to be charged.
本发明实施例中的控制器51,还设置为:当电压监测单元53监测到当前待充电电池的电压满足第二预设切换条件时,将满足第二预设切换条件的每个当前待充电电池切换为当前供电电池,并从当前未进行充电的N-M个电池中重新选择待充电电池;在实际应用中,控制器51通过控制对应的第一开关单元断开当前待充电电池的充电支路,导通当前待充电电池的供电支路;并从当前未进行充电的N-M个电池中重新选择待充电电池,并控制导通重新选择出的待充电电池的充电支路,断开重新选择的待充电电池的供电 支路;该第二预设阈值表示所述当前待充电电池充电完成。The controller 51 in the embodiment of the present invention is further configured to: when the voltage monitoring unit 53 detects that the voltage of the battery to be charged meets the second preset switching condition, each current to be charged that satisfies the second preset switching condition The battery is switched to the current power supply battery, and the battery to be charged is reselected from the NM batteries that are not currently being charged; in practical applications, the controller 51 disconnects the charging branch of the current battery to be charged by controlling the corresponding first switch unit. Turning on the power supply branch of the battery to be charged; and reselecting the battery to be charged from the NM batteries that are not currently being charged, and controlling the charging branch of the battery to be charged that is reselected, and disconnecting the reselected Power supply of the battery to be charged The second preset threshold indicates that the current battery to be charged is fully charged.
可选地,在本发明实施例中,第二预设切换条件可以包括:当前待充电电池的电压值大于或等于第二预设阈值,该第二预设阈值表示当前待充电电池充电完成。虽然第二预设阈值表示充电完成,但是这并不意味着终端的电量为100%,因为第二预设阈值可以是由开发人员在设置开发终端设置的,也可以是由用户自定义设置的,例如开发人员或者用户人为地设置电池电量大于96%就表征充电完成,虽然电池此时还可以继续充电,但是在本发明实施例中,当当前待充电电池的电量大于96%的时候就可以将其切换为当前供电电池,并从当前充电未完成的电池中重新选择待充电电池。在实际应用中,控制器51选择的范围可以是当前供电电池,也可以是既不是当前待充电电池也不是当前供电电池的那些电池。Optionally, in the embodiment of the present invention, the second preset switching condition may include: the current value of the battery to be charged is greater than or equal to a second preset threshold, where the second preset threshold indicates that the current battery to be charged is fully charged. Although the second preset threshold indicates that the charging is completed, this does not mean that the power of the terminal is 100%, because the second preset threshold may be set by the developer in the setting development terminal, or may be customized by the user. For example, if the developer or the user manually sets the battery power to be greater than 96%, the charging is completed. Although the battery can continue to be charged at this time, in the embodiment of the present invention, when the current battery to be charged is greater than 96%, Switch it to the current battery and reselect the battery to be charged from the battery that is currently not fully charged. In practical applications, the range selected by the controller 51 may be the current power supply battery, or those that are neither the current battery to be charged nor the current battery.
可选地,本发明实施例提供还一种电压监测单元53的实现方式:设置比较电路作为电压监测单元53,比较电路的参考电压可以是第一预设阈值或者第二预设阈值,当一个比较电路需要监测供电电池的电压时,可以选择第一预设阈值设置参考电压,而如果要监测当前待充电电池的电压,则可以将对应比较电路的参考电压设置为第二预设阈值。平常的时候,比较器输出低电平,当其监测到电池的电压值满足第一预设切换条件或者是第二预设切换条件时,其可以输出高电平给控制器51,控制器51根据接收到的比较电路的输出确定对应的处理策略。Optionally, the embodiment of the present invention provides an implementation manner of the voltage monitoring unit 53. The comparison circuit is configured as the voltage monitoring unit 53. The reference voltage of the comparison circuit may be a first preset threshold or a second preset threshold. When the comparison circuit needs to monitor the voltage of the power supply battery, the first preset threshold may be selected to set the reference voltage, and if the voltage of the current battery to be charged is to be monitored, the reference voltage of the corresponding comparison circuit may be set to the second preset threshold. Normally, the comparator outputs a low level, and when it detects that the voltage value of the battery satisfies the first preset switching condition or the second preset switching condition, it can output a high level to the controller 51, and the controller 51 A corresponding processing strategy is determined based on the output of the received comparison circuit.
本发明实施例提供的终端,通过设置多个电池,在需要充电的时候,由控制器选择当前待充电电池和供电电池,实现了电池充电与供电两个过程的分离,避免了通过供电将充电的噪声或者杂波引入系统的问题,保证了系统的稳定性与可靠性,另外,本发明实施例中终端中还设置了电压监测单元对当前待充电电池与供电电池的电压进行实时监测,当发现供电电池电量不足或者是待充电电池充电完成时可以进行切换,达到了保证系统对充电过程完整控制以及保证不浪费充电时间的效果。According to the terminal provided by the embodiment of the present invention, when a plurality of batteries are provided, when the battery needs to be charged, the controller selects the current battery to be charged and the power supply battery, thereby realizing the separation of the two processes of charging and powering the battery, thereby avoiding charging by the power supply. The noise or clutter is introduced into the system to ensure the stability and reliability of the system. In addition, in the embodiment of the present invention, the voltage monitoring unit is further disposed to monitor the voltage of the current battery to be charged and the power supply battery in real time. It is found that the power supply battery is insufficient or the battery to be charged can be switched when the charging is completed, thereby ensuring the system complete control of the charging process and ensuring that the charging time is not wasted.
在本发明上述实施例提供的终端的结构基础上,本发明实施例以终端为智能手机为例,对智能手机中设置的两块电池的充电情况进行说明,请参考 图9和图10,图9为本实施例提供的智能手机的充电控制电路的结构示意图,图10为图9所示智能手机的一种充电过程的流程图。Based on the structure of the terminal provided by the foregoing embodiment of the present invention, the embodiment of the present invention uses the terminal as a smart phone as an example to describe the charging status of the two batteries set in the smart phone, please refer to 9 and FIG. 10, FIG. 9 is a schematic structural diagram of a charging control circuit of a smart phone according to an embodiment, and FIG. 10 is a flowchart of a charging process of the smart phone shown in FIG.
本发明实施例中的电源适配器70不属于智能手机,其仅仅是智能手机充电时所用到的一个配件而已。对于电源适配器70的型号,本发明实施例并没有特别的限定,可以采用相关技术中通用的电源适配器即可,当然本发明实施例并不排出其他类型的电源适配器,而且随着技术的发展,未来通用电源适配器可能也与相关技术中市面上生产销售的各种电源适配器不同,但本领域技术人员应当明白的是,这些电源适配器也应当涵盖在本实施例的范围内。The power adapter 70 in the embodiment of the present invention does not belong to a smart phone, and it is only an accessory used when the smartphone is charged. For the model of the power adapter 70, the embodiment of the present invention is not particularly limited, and a power adapter generally used in the related art may be used. Of course, the embodiment of the present invention does not discharge other types of power adapters, and as technology advances, Future universal power adapters may also differ from the various power adapters that are commercially available and sold in the related art, but those skilled in the art will appreciate that such power adapters should also be encompassed within the scope of the present embodiments.
本发明实施例中的充电芯片81可以采用带充电路径管理的集成电路(Integrated circuit,简称为:IC),其包括一个直接可以和电源管理单元86中系统供电接口861连接的供电输出(OUT)接口811和一个用于和电池充电支路相连的充电输出(OUT)接口812,带充电路径管理的充电芯片81可以保证智能手机电池处于馈电状态时,其与外部供电电源连接之后,智能手机系统可以启动。The charging chip 81 in the embodiment of the present invention may employ an integrated circuit (integrated circuit, IC for short) with charging path management, and includes a power supply output (OUT) that can be directly connected to the system power supply interface 861 of the power management unit 86. The interface 811 and a charging output (OUT) interface 812 for connecting to the battery charging branch, the charging chip 81 with charging path management can ensure that the smartphone battery is in the feeding state, and after connecting with the external power supply, the smart phone The system can be started.
电池组82包括两块电池,分别是第一电池821和第二电池822,这里的第一电池821与第二电池822分别包括电池充电接口与电池供电接口。The battery pack 82 includes two batteries, which are a first battery 821 and a second battery 822, respectively, where the first battery 821 and the second battery 822 respectively include a battery charging interface and a battery power supply interface.
控制单元83是本发明实施例中智能手机的核心,控制单元83包括第一开关SW1、第二开关SW2、第三开关SW3、第四开关SW4、第五开关SW5以及微控制器MCU(Microcontroller Unit)831。每个开关都受到微控制器831的控制,其中由于智能手机在关机状态下进行充电时,微控制器831的运行需要外部供电电源的支持,因此第五开关SW5默认处于闭合状态。控制单元83上每个开关还可以通过智能手机系统上的通用输入/输出(General Purpose Input Output,简称为:GPIO)控制。The control unit 83 is the core of the smart phone in the embodiment of the present invention. The control unit 83 includes a first switch SW1, a second switch SW2, a third switch SW3, a fourth switch SW4, a fifth switch SW5, and a microcontroller MCU (Microcontroller Unit). ) 831. Each switch is controlled by the microcontroller 831, wherein the operation of the microcontroller 831 requires the support of an external power supply since the smartphone is charged in the off state, so the fifth switch SW5 is in the closed state by default. Each switch on the control unit 83 can also be controlled by a General Purpose Input Output (GPIO) on the smartphone system.
电压监测电路84,设置为:监测第一电池821和第二电池822的电压,并肩监测结果返回给微控制器831。The voltage monitoring circuit 84 is configured to monitor the voltages of the first battery 821 and the second battery 822, and return the shoulder monitoring results to the microcontroller 831.
另外,智能手机还包括防倒灌电路85,防倒灌电路85,设置为:防止两块电池之间的电流倒灌,导致系统异常。这里的防倒灌电路可以使用二极管、MOS管或者防电流倒灌芯片等实现。 In addition, the smart phone further includes an anti-backflow circuit 85, and the anti-backflow circuit 85 is configured to prevent current from flowing between the two batteries, resulting in abnormality of the system. The anti-backflow circuit here can be implemented by using a diode, a MOS tube or an anti-current reflow chip.
由于第五开关SW5是默认闭合的,因此,当智能手机中充电芯片81通过电源适配器70与外部供电电源连接之后,外部电源能够通过充电芯片81的供电输出接口811输出到智能手机电源管理单元86中的系统供电接口,为智能手机的系统供电,保证微控制器831启动。Since the fifth switch SW5 is closed by default, after the charging chip 81 in the smart phone is connected to the external power supply through the power adapter 70, the external power source can be output to the smart phone power management unit 86 through the power output interface 811 of the charging chip 81. The system power supply interface supplies power to the smartphone system to ensure that the microcontroller 831 is activated.
下面结合图10所示的流程图对智能手机的充电过程进行说明:The following describes the charging process of the smartphone in conjunction with the flowchart shown in FIG. 10:
S901、微控制器831获取电压监测电路85的监测结果。S901. The microcontroller 831 obtains the monitoring result of the voltage monitoring circuit 85.
电压监测电路84可以实时将监测结果传输给微控制器831,以供微控制器831能够针对智能手机充电过程中的各种情况及时做出对应的控制动作。The voltage monitoring circuit 84 can transmit the monitoring result to the microcontroller 831 in real time, so that the microcontroller 831 can timely perform corresponding control actions for various situations in the charging process of the smart phone.
S902、微控制器831根据监测结果判断第一电池821或第二电池822的电压值是否大于开机电压。S902. The microcontroller 831 determines whether the voltage value of the first battery 821 or the second battery 822 is greater than the startup voltage according to the monitoring result.
S902中微控制器831的判断过程实质上是确定出两个电池中是否存在电压值还足够为智能手机供电的电压值;如果判断结果为是,则执行S903,如果判断结果为否,则继续采用外部供电电源为智能手机供电。The determining process of the microcontroller 831 in S902 is substantially determining whether there is a voltage value in the two batteries that is sufficient to supply power to the smart phone; if the determination result is yes, executing S903, and if the determination result is no, continuing The external power supply is used to power the smartphone.
S903、微控制器831判断第一电池821的电压值是否高于第二电池822的电压值。S903. The microcontroller 831 determines whether the voltage value of the first battery 821 is higher than the voltage value of the second battery 822.
该步骤的判断将决定到底由第一电池供电还是由第二电池供电;如果判断结果为是,则执行S904,如果判断结果为否,则执行S905。The determination of this step will determine whether the first battery is powered or the second battery; if the determination is yes, then S904 is performed, and if the determination is no, then S905 is performed.
S904、微控制器831控制闭合第三开关SW3和第二开关SW2,然后断开第一开关SW1、第四开关SW4和第五开关SW5。S904. The microcontroller 831 controls to close the third switch SW3 and the second switch SW2, and then turns off the first switch SW1, the fourth switch SW4, and the fifth switch SW5.
S905、微控制器831控制闭合第一开关SW1、第四开关SW4,然后断开第三开关SW3和第二开关SW2和第五开关SW5。S905. The microcontroller 831 controls to close the first switch SW1 and the fourth switch SW4, and then turns off the third switch SW3 and the second switch SW2 and the fifth switch SW5.
举例来说,若假定第一电池821的电压低于第二电池822的电压,则第一电池821会作为当前待充电电池,然后由第二电池822作为当前供电电池。图11为图9所示智能手机的另一种充电过程的流程图,下面结合图11继续对充电过程中的监测过程进行说明。For example, if it is assumed that the voltage of the first battery 821 is lower than the voltage of the second battery 822, the first battery 821 will serve as the current battery to be charged, and then the second battery 822 will serve as the current power supply battery. FIG. 11 is a flow chart of another charging process of the smart phone shown in FIG. 9. The following describes the monitoring process in the charging process in conjunction with FIG.
S1001、微控制器判断当前供电电池的电压值是否小于开机电压。S1001: The microcontroller determines whether the voltage value of the current power supply battery is less than the startup voltage.
微控制器的判断依据来源于电压监测电路的实时监测结果。如果判断结果为是,则执行S1002,如果判断结果为否,则执行S1003。 The judgment of the microcontroller is based on the real-time monitoring results from the voltage monitoring circuit. If the result of the determination is YES, S1002 is executed, and if the result of the determination is No, S1003 is executed.
S1002、微控制器判断当前待充电电池的电压值是否小于开机电压。S1002: The microcontroller determines whether the voltage value of the current battery to be charged is less than the startup voltage.
如果判断结果为是,则说明当前待充电电池的不足以为智能手机供电,执行S1004,如果判断结果为否,则执行S1005。If the result of the determination is yes, it indicates that the current battery to be charged is insufficient to supply power to the smart phone, and S1004 is executed. If the determination result is no, then S1005 is performed.
S1003、微控制器判断当前待充电电池是否充电完成。S1003: The microcontroller determines whether the current battery to be charged is fully charged.
如果判断结果为是,则执行S1006。If the result of the determination is YES, then S1006 is performed.
S1004、微控制器控制闭合第五开关,断开当前供电电池的供电支路;随后继续执行S1002。S1004: The microcontroller controls to close the fifth switch, and disconnects the power supply branch of the current power supply battery; and then continues to execute S1002.
S1005、微控制器控制导通当前待充电电池的供电支路,断开其充电支路,并断开供电电池的供电支路,导通其充电支路,随后继续执行S1001。S1005: The microcontroller controls to turn on the power supply branch of the battery to be charged, disconnect the charging branch, disconnect the power supply branch of the power supply battery, turn on the charging branch, and then continue to execute S1001.
S1006、微控制器判断当前供电电池是否充电完成。S1006: The microcontroller determines whether the current power supply battery is fully charged.
如果判断结果为是,则执行S1007,如果判断结果为否,则执行S1005。If the result of the determination is YES, S1007 is executed, and if the result of the determination is NO, S1005 is executed.
S1007、停止充电。S1007, stop charging.
如果智能手机在不插电源的情况下开机,此时系统默认SW3和SW4是导通的,这样做是为了保证系统在不插充电器的任何状态下两个电池的放电都为通路,保证系统可以正常启动。系统在启动过程中微控制器831需要判断第一电池821和822是否都小于开机电压,如果判断结果为是,则停止启动,并通过显示单元或者告警单元并提示用户充电。智能手机的系统在初始状态下默认SW1和SW5导通,因此如果第一电池或第二电池能够供电,则需要断开SW5。系统运行过程中,两个电池可以同时供电,因为有倒灌电路85的存在,两节电池之间并不会存在干扰,电压高的输出电流大,电压低的输出电流小。If the smart phone is turned on without plugging in the power, the system defaults SW3 and SW4 to be turned on. This is to ensure that the system discharges both batteries without any state of plugging the charger, ensuring the system. Can start normally. During the startup process, the microcontroller 831 needs to determine whether the first batteries 821 and 822 are both smaller than the startup voltage. If the determination result is yes, the startup is stopped, and the user is prompted to charge through the display unit or the alarm unit. The system of the smartphone turns on the default SW1 and SW5 in the initial state, so if the first battery or the second battery can supply power, the SW5 needs to be disconnected. During the operation of the system, the two batteries can be powered at the same time. Because of the presence of the reverse irrigation circuit 85, there is no interference between the two batteries, the output current with high voltage is large, and the output current with low voltage is small.
另外,在系统运行过程中,需要每隔设定时间检测或者实时监测第一电池821和第二电池822的电压,如果都到达关机电压门限,则控制系统关机。如果没有到达关机电压门限,系统正常工作。In addition, during the operation of the system, it is necessary to detect or periodically monitor the voltages of the first battery 821 and the second battery 822 at a set time. If the shutdown voltage threshold is reached, the control system is shut down. If the shutdown voltage threshold is not reached, the system works normally.
本发明实施例提供的智能手机,通过设置两个电池,在需要充电的时候,由微控制器选择当前待充电电池和供电电池,实现了电池充电与供电两个过程的分离,避免了通过供电将充电的噪声或者杂波引入系统的问题,保证了系统的稳定性与可靠性。 According to the smart phone provided by the embodiment of the present invention, when two batteries are set, when the battery needs to be charged, the current battery to be charged and the power supply battery are selected by the microcontroller, thereby realizing the separation of the two processes of charging and powering the battery, and avoiding the power supply. The problem of introducing charging noise or clutter into the system ensures the stability and reliability of the system.
本发明的实施例还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机可执行指令,处理器执行计算机可执行指令时,进行如下操作,即S1~S2:An embodiment of the present invention further provides a computer readable storage medium having stored therein computer executable instructions, and when the processor executes the computer executable instructions, performing the following operations, namely, S1 to S2:
S1,从终端电池中选择当前待充电电池和当前供电电池;S1, selecting a current battery to be charged and a current power supply battery from the terminal battery;
S2,对当前待充电电池进行充电,并且通过当前供电电池为该终端的系统供电。S2, charging the current battery to be charged, and supplying power to the system of the terminal through the current power supply battery.
可选地,在本发明实施例中,上述处理器执行计算机可执行指令时,执行S1的步骤,可以包括:Optionally, in the embodiment of the present invention, when the processor executes the computer executable instruction, performing the step of S1 may include:
从终端的N个配置有充电功能的电池中,选择当前满足充电条件的电池作为当前待充电电池,选择出的当前待充电电池的个数M为大于或等于1,且小于或等于N的整数,并选择K个电池作为当前供电电池,当前供电电池与当前待充电电池不同;N为大于或等于2的整数,K为大于或等于0的整数From the N batteries configured with the charging function, the battery that currently meets the charging condition is selected as the current battery to be charged, and the number M of the currently selected batteries to be charged is an integer greater than or equal to 1, and less than or equal to N. And select K batteries as the current power supply battery, the current power supply battery is different from the current battery to be charged; N is an integer greater than or equal to 2, and K is an integer greater than or equal to 0
执行S2的步骤,可以包括:The steps of performing S2 may include:
对当前待充电电池进行充电,在充电过程中断开当前待充电电池与终端的系统供电接口之间的电连接,并且在K大于0时,连通当前供电电池与系统供电接口为终端供电。The current battery to be charged is charged, and the electrical connection between the current battery to be charged and the system power supply interface of the terminal is disconnected during charging, and when K is greater than 0, the current power supply battery and the system power supply interface are connected to supply power to the terminal.
可选地,在本发明实施例中,上述处理器执行计算机可执行指令时,执行选择K个电池作为当前的供电电池的步骤,可以包括:Optionally, in the embodiment of the present invention, when the processor executes the computer executable instruction, performing the step of selecting K batteries as the current power supply battery may include:
从终端的N个配置有充电功能的电池中,选择电压值大于第一预设阈值的电池作为当前供电电池,第一预设阈值表示当前供电电池处于低电量状态。From the N batteries configured with the charging function, the battery whose voltage value is greater than the first preset threshold is selected as the current power supply battery, and the first preset threshold indicates that the current power supply battery is in the low battery state.
可选地,在本发明实施例中,上述处理器执行计算机可执行指令时,执行选择K个电池作为当前的供电电池之前,还进行如下操作,即S11~S12:Optionally, in the embodiment of the present invention, when the processor executes the computer executable instruction, before performing the selection of the K batteries as the current power supply battery, the following operations are also performed, that is, S11 to S12:
S11,控制外部供电电源与系统供电接口连通为终端供电;S11, controlling the external power supply to communicate with the system power supply interface to supply power to the terminal;
S12,当K大于0时,方法还包括:控制断开外部供电电源与系统供电接口之间的电连接。S12. When K is greater than 0, the method further includes: controlling to disconnect the electrical connection between the external power supply and the system power supply interface.
可选地,在本发明实施例中,上述处理器执行计算机可执行指令时,还 进行如下操作,即S3~S4:Optionally, in the embodiment of the present invention, when the processor executes the computer executable instructions, Perform the following operations, namely S3 to S4:
S3,监测当前供电电池的电压;S3, monitoring the voltage of the current power supply battery;
S4,当监测到当前供电电池的电压满足第一预设切换条件时,断开满足第一预设条件的每个当前供电电池与系统供电接口之间的电连接,并从当前待充电电池中重新选择供电电池为终端供电。S4. When it is detected that the voltage of the current power supply battery meets the first preset switching condition, disconnect the electrical connection between each current power supply battery that meets the first preset condition and the system power supply interface, and from the current battery to be charged. Reselect the power supply battery to power the terminal.
其中,第一预设切换条件包括:当前供电电池的电压值小于或等于第一预设阈值,第一预设阈值表示当前供电电池处于低电量状态。The first preset switching condition includes: the current power supply battery voltage value is less than or equal to a first preset threshold, and the first preset threshold value indicates that the current power supply battery is in a low power state.
可选地,在本发明实施例中,上述处理器执行计算机可执行指令时,还进行如下操作,即S5~S5:Optionally, in the embodiment of the present invention, when the processor executes the computer executable instructions, the following operations are performed, that is, S5 to S5:
S5,监测当前待充电电池的电压;S5, monitoring the current voltage of the battery to be charged;
S6,当监测到当前待充电电池的电压满足第二预设切换条件时,将满足第二预设切换条件的每个当前待充电电池切换为当前供电电池,并从当前未进行充电的电池中重新选择待充电电池。S6, when it is detected that the voltage of the current battery to be charged satisfies the second preset switching condition, switching each current battery to be charged that meets the second preset switching condition to the current power supply battery, and from the currently uncharged battery Reselect the battery to be charged.
其中,第二预设切换条件包括:当前待充电电池的电压值大于或等于第二预设阈值,第二预设阈值表示当前待充电电池充电完成。The second preset switching condition includes: the voltage value of the current battery to be charged is greater than or equal to a second preset threshold, and the second preset threshold indicates that the current battery to be charged is fully charged.
以上内容是结合本发明的可选实施例和可选实施方式对本发明所作的详细说明,不能认定本发明的实施只局限于这些说明。对于本发明所属技术领域的普通技术人员来说,在不脱离本发明实施例构思的前提下,还可以做出若干简单推演或替换,都应当视为属于本发明实施例的保护范围。The above is a detailed description of the present invention in conjunction with the alternative embodiments and alternative embodiments of the present invention. It is to be understood by those skilled in the art that the present invention may be construed as a part of the scope of the present invention without departing from the spirit and scope of the invention.
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(根据系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。One of ordinary skill in the art will appreciate that all or a portion of the steps of the above-described embodiments can be implemented using a computer program flow, which can be stored in a computer readable storage medium on a corresponding hardware platform (according to The system, device, device, device, etc. are executed, and when executed, include one or a combination of the steps of the method embodiments.
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。Alternatively, all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
上述实施例中的装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成 的网络上。The device/function module/functional unit in the above embodiments may be implemented by using a general-purpose computing device, which may be concentrated on a single computing device or distributed in multiple computing devices. On the network.
上述实施例中的装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。When the device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. The above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
工业实用性Industrial applicability
本发明实施例通过在终端中设置多个配置有充电功能的电池,在进行充电的时候选择不同的电池分别作为当前待充电电池和当前供电电池,对当前待充电电池进行充电的同时采用当前供电电池为终端系统供电,避免了当前待充电电池在充电的同时需要为终端系统供电的问题,因此,避免了对当前待充电电池进行充电的噪声或者杂波通过供电引入终端系统的问题,提高了终端系统的可靠性与稳定性,保证了终端的安全,提高了用户体验。 In the embodiment of the present invention, a plurality of batteries configured with a charging function are disposed in the terminal, and different batteries are selected as the current battery to be charged and the current power supply battery when charging, and the current power supply is used while charging the current battery to be charged. The battery supplies power to the terminal system, which avoids the problem that the current battery to be charged needs to supply power to the terminal system while charging, and therefore avoids the problem that the noise or clutter of charging the current battery to be charged is introduced into the terminal system through the power supply, thereby improving the problem. The reliability and stability of the terminal system ensure the security of the terminal and improve the user experience.

Claims (15)

  1. 一种终端充电控制方法,包括:A terminal charging control method includes:
    从终端电池中选择当前待充电电池和当前供电电池;Selecting a current battery to be charged and a current power supply battery from the terminal battery;
    对所述当前待充电电池进行充电,并且通过所述当前供电电池为所述终端的系统供电。Charging the current battery to be charged, and powering the system of the terminal through the current power supply battery.
  2. 根据权利要求1所述的终端充电控制方法,其中,所述从终端电池中选择当前待充电电池和当前供电电池,包括:The terminal charging control method according to claim 1, wherein the selecting the current battery to be charged and the current power supply battery from the terminal battery comprises:
    从终端的N个配置有充电功能的电池中,选择当前满足充电条件的电池作为所述当前待充电电池,选择出的所述当前待充电电池的个数M为大于或等于1,且小于或等于N的整数,并选择K个电池作为所述当前供电电池,所述当前供电电池与所述当前待充电电池不同;N为大于或等于2的整数,K为大于或等于0的整数;Selecting, from the N batteries configured with the charging function of the terminal, the battery that currently meets the charging condition as the current battery to be charged, and selecting the number M of the currently to-be-charged battery to be greater than or equal to 1, and less than or An integer equal to N, and selecting K batteries as the current power supply battery, the current power supply battery being different from the current battery to be charged; N being an integer greater than or equal to 2, and K being an integer greater than or equal to 0;
    所述对所述当前待充电电池进行充电,并且通过所述当前供电电池为所述终端的系统供电,包括:The charging the current battery to be charged, and supplying power to the system of the terminal by using the current power supply battery, includes:
    对所述当前待充电电池进行充电,在充电过程中断开所述当前待充电电池与所述终端的系统供电接口之间的电连接,并且在所述K大于0时,连通所述当前供电电池与所述系统供电接口为所述终端供电。Charging the current battery to be charged, disconnecting an electrical connection between the current battery to be charged and a system power supply interface of the terminal during charging, and connecting the current power supply when the K is greater than 0 A battery and the system power supply interface supply power to the terminal.
  3. 根据权利要求2所述的终端充电控制方法,其中,所述充电条件为:在所述N个电池中当前电量最小的M个电池。The terminal charging control method according to claim 2, wherein the charging condition is: M batteries having the smallest current amount among the N batteries.
  4. 根据权利要求2所述的终端充电控制方法,其中,所述选择K个电池作为所述当前的供电电池,包括:The terminal charging control method according to claim 2, wherein the selecting K batteries as the current power supply battery comprises:
    从所述终端的N个配置有充电功能的电池中,选择电压值大于第一预设阈值的电池作为所述当前供电电池,所述第一预设阈值表示所述当前供电电池处于低电量状态。And selecting, from the N batteries configured with the charging function of the terminal, a battery whose voltage value is greater than the first preset threshold as the current power supply battery, where the first preset threshold value indicates that the current power supply battery is in a low battery state. .
  5. 根据权利要求2所述的终端充电控制方法,其中,所述选择K个电池作为所述当前的供电电池之前,所述方法还包括:The terminal charging control method according to claim 2, wherein the method further comprises: before the selecting the K batteries as the current power supply battery, the method further comprising:
    控制外部供电电源与所述系统供电接口连通为所述终端供电; Controlling an external power supply to communicate with the power supply interface of the system to supply power to the terminal;
    当所述K大于0时,所述方法还包括:控制断开所述外部供电电源与所述系统供电接口之间的电连接。When the K is greater than 0, the method further includes: controlling to disconnect an electrical connection between the external power supply and the system power supply interface.
  6. 根据权利要求1~5中任一项所述的终端充电控制方法,还包括:The terminal charging control method according to any one of claims 1 to 5, further comprising:
    监测所述当前供电电池的电压;Monitoring the voltage of the current power supply battery;
    当监测到所述当前供电电池的电压满足第一预设切换条件时,断开满足所述第一预设条件的每个所述当前供电电池与所述系统供电接口之间的电连接,并从当前待充电电池中重新选择供电电池为所述终端供电。When it is detected that the voltage of the current power supply battery meets the first preset switching condition, disconnecting an electrical connection between each of the current power supply battery that meets the first preset condition and the power supply interface of the system, and Reselecting the power supply battery from the current battery to be charged supplies power to the terminal.
  7. 根据权利要求6所述的终端充电控制方法,其中,所述第一预设切换条件包括:所述当前供电电池的电压值小于或等于所述第一预设阈值,所述第一预设阈值表示所述当前供电电池处于低电量状态。The terminal charging control method according to claim 6, wherein the first preset switching condition comprises: the voltage value of the current power supply battery is less than or equal to the first preset threshold, the first preset threshold It indicates that the current power supply battery is in a low battery state.
  8. 根据权利要求1~5中任一项所述的终端充电控制方法,还包括:The terminal charging control method according to any one of claims 1 to 5, further comprising:
    监测所述当前待充电电池的电压;Monitoring the voltage of the current battery to be charged;
    当监测到所述当前待充电电池的电压满足第二预设切换条件时,将满足所述第二预设切换条件的每个所述当前待充电电池切换为当前供电电池,并从当前未进行充电的电池中重新选择待充电电池。When it is detected that the voltage of the current battery to be charged satisfies the second preset switching condition, each of the currently to-be-charged batteries that meet the second preset switching condition is switched to the current power supply battery, and is not currently performed. Reselect the battery to be charged in the charged battery.
  9. 根据权利要求8所述的终端充电控制方法,其中,所述第二预设切换条件包括:所述当前待充电电池的电压值大于或等于第二预设阈值,所述第二预设阈值表示所述当前待充电电池充电完成。The terminal charging control method according to claim 8, wherein the second preset switching condition comprises: the voltage value of the current battery to be charged is greater than or equal to a second preset threshold, and the second preset threshold is represented by The current battery to be charged is fully charged.
  10. 一种终端充电控制装置,包括:A terminal charging control device includes:
    选择模块,设置为:从终端电池中选择当前待充电电池和当前供电电池;Select the module, set to: select the current battery to be charged and the current power supply battery from the terminal battery;
    控制模块,设置为:对所述选择模块选择的所述当前待充电电池进行充电,并且通过所述选择模块选择的所述当前供电电池为所述终端的系统供电。And a control module, configured to: charge the current battery to be charged selected by the selection module, and supply the current power supply battery selected by the selection module to the system of the terminal.
  11. 根据权利要求10所述的终端充电控制装置,其中,所述选择模块选择所述当前待充电电池和所述当前供电电池,包括:The terminal charging control device according to claim 10, wherein the selecting module selects the current battery to be charged and the current power supply battery, including:
    从终端的N个配置有充电功能的电池中,选择当前满足充电条件的电池作为所述当前待充电电池,选择出的所述当前待充电电池的个数M为大于或 等于1,且小于或等于N的整数,并选择K个电池作为所述当前供电电池,所述当前供电电池与所述当前待充电电池不同;N为大于或等于2的整数,K为大于或等于0的整数;Selecting, from the N batteries configured with the charging function of the terminal, a battery that currently meets the charging condition as the current battery to be charged, and selecting the number M of the currently to-be-charged batteries to be greater than or An integer equal to 1, and less than or equal to N, and K cells are selected as the current power supply battery, the current power supply battery is different from the current battery to be charged; N is an integer greater than or equal to 2, and K is greater than or An integer equal to 0;
    所述控制模块对所述当前待充电电池进行充电,并且通过所述当前供电电池为所述终端的系统供电,包括:The control module charges the current battery to be charged, and supplies power to the system of the terminal through the current power supply battery, including:
    对所述当前待充电电池进行充电,在充电过程中断开所述当前待充电电池与所述终端的系统供电接口之间的电连接,并且在所述K大于0时,连通所述当前供电电池与所述系统供电接口为所述终端供电。Charging the current battery to be charged, disconnecting an electrical connection between the current battery to be charged and a system power supply interface of the terminal during charging, and connecting the current power supply when the K is greater than 0 A battery and the system power supply interface supply power to the terminal.
  12. 一种终端,包括:N个配置有充电功能的电池、系统供电接口和控制器;每个所述电池具有与外部供电电源连接的充电支路和与所述系统供电接口连接的供电支路;在每个所述充电支路和每个所述供电支路上分别设置有用于控制本支路通断的第一开关单元;A terminal includes: N batteries configured with a charging function, a system power supply interface, and a controller; each of the batteries has a charging branch connected to an external power supply and a power supply branch connected to the power supply interface of the system; Providing, on each of the charging branch and each of the power supply branches, a first switching unit for controlling the switching of the branch;
    所述控制器,设置为:从每个所述电池中选择当前满足充电条件的电池作为当前待充电电池,选择出的所述当前待充电电池的个数M为大于或等于1,且小于或等于N的整数,并选择K个电池作为当前供电电池,所述当前供电电池与所述当前待充电电池不同;N为大于或等于2的整数,K为大于或等于0的整数;The controller is configured to: select, from each of the batteries, a battery that currently meets the charging condition as the current battery to be charged, and select the number M of the current battery to be charged to be greater than or equal to 1, and less than or An integer equal to N, and selecting K batteries as the current power supply battery, the current power supply battery being different from the current battery to be charged; N being an integer greater than or equal to 2, and K being an integer greater than or equal to 0;
    所述控制器,还设置为:通过控制对应的第一开关单元导通所述当前待充电电池的充电支路,断开所述当前待充电电池的供电支路,并且在所述K大于0时,导通所述当前供电电池的供电支路,断开所述当前供电电池的充电支路。The controller is further configured to: disconnect the power supply branch of the current battery to be charged by controlling the corresponding first switch unit to conduct the charging branch of the current battery to be charged, and when the K is greater than 0 And turning on the power supply branch of the current power supply battery, and disconnecting the charging branch of the current power supply battery.
  13. 根据权利要求12所述的终端,还包括:电压监测电路;The terminal of claim 12, further comprising: a voltage monitoring circuit;
    所述电压监测电路,设置为:监测所述当前供电电池的电压值,并将监测结果传输给所述控制器;The voltage monitoring circuit is configured to: monitor a voltage value of the current power supply battery, and transmit the monitoring result to the controller;
    所述控制器,还设置为:当所述当前供电电池的电压值小于等于第一预设阈值时,通过控制对应的第一开关单元断开所述当前供电电池的供电支路,并从所述当前待充电电池中重新选择供电电池,导通重新选择出的所述供电电池的供电支路,并断开所述重新选择的供电电池的充电支路;所述第 一预设阈值表示所述当前供电电池处于低电量状态。The controller is further configured to: when the voltage value of the current power supply battery is less than or equal to a first preset threshold, disconnect the power supply branch of the current power supply battery by controlling the corresponding first switch unit, and Reselecting the power supply battery in the current battery to be charged, turning on the reselected power supply branch of the power supply battery, and disconnecting the charging branch of the reselected power supply battery; A preset threshold indicates that the current powered battery is in a low battery state.
  14. 根据权利要求13所述的终端,其中,The terminal according to claim 13, wherein
    所述电压监测电路,还设置为:监测所述当前待充电电池的电压值,并将监测结果传输给所述控制器;The voltage monitoring circuit is further configured to: monitor a voltage value of the current battery to be charged, and transmit the monitoring result to the controller;
    所述控制器,还设置为:当所述当前待充电电池的电压值大于等于第二预设阈值时,通过控制对应的第一开关单元断开所述当前待充电电池的充电支路,导通所述当前待充电电池的供电支路;并从当前未进行充电的N-M个电池中重新选择待充电电池,并控制导通重新选择出的待充电电池的充电支路,断开所述重新选择的待充电电池的供电支路;所述第二预设阈值表示所述当前待充电电池充电完成。The controller is further configured to: when the voltage value of the current battery to be charged is greater than or equal to a second preset threshold, disconnect the charging branch of the current battery to be charged by controlling the corresponding first switch unit, Passing the power supply branch of the current battery to be charged; and reselecting the battery to be charged from the NM batteries that are not currently being charged, and controlling to turn on the reselected charging branch of the battery to be charged, disconnecting the re Selecting a power supply branch of the battery to be charged; the second preset threshold indicates that the current battery to be charged is fully charged.
  15. 根据权利要求12~14中任一项所述的终端,还包括:The terminal according to any one of claims 12 to 14, further comprising:
    用于连接外部供电电源与所述系统供电接口的外部供电支路,所述外部供电支路上设置有第二开关单元,所述第二开关单元默认为闭合;An external power supply branch for connecting an external power supply to the system power supply interface, the external power supply branch is provided with a second switch unit, and the second switch unit is closed by default;
    所述控制器,还设置为:当所述控制器的选择结果为K大于0时,控制断开所述第二开关单元。 The controller is further configured to: when the selection result of the controller is K greater than 0, control to disconnect the second switching unit.
PCT/CN2017/089803 2016-08-11 2017-06-23 Terminal charging control method, device and terminal WO2018028316A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610659438.XA CN107732991A (en) 2016-08-11 2016-08-11 Terminal charge control method, device and terminal
CN201610659438.X 2016-08-11

Publications (1)

Publication Number Publication Date
WO2018028316A1 true WO2018028316A1 (en) 2018-02-15

Family

ID=61162618

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/089803 WO2018028316A1 (en) 2016-08-11 2017-06-23 Terminal charging control method, device and terminal

Country Status (2)

Country Link
CN (1) CN107732991A (en)
WO (1) WO2018028316A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108879892A (en) * 2018-09-20 2018-11-23 山东思科赛德矿业安全工程有限公司 A kind of double cell group automatic switchover power supply system
CN114243846A (en) * 2021-12-22 2022-03-25 歌尔光学科技有限公司 Power supply control method and system, wearable device and computer readable storage medium
CN114336932A (en) * 2021-12-22 2022-04-12 歌尔光学科技有限公司 Power supply control method, system, wearable device, and computer-readable storage medium
CN114788119A (en) * 2020-12-17 2022-07-22 深圳市大疆创新科技有限公司 Movable platform, charging and discharging method of movable platform and storage medium
CN114825553A (en) * 2022-05-25 2022-07-29 深圳市华云电源有限公司 Electric quantity balance control method and system of mobile power supply device
EP4579994A3 (en) * 2023-12-28 2025-08-06 ChinaBridge (Shenzen) Medical Technology Co., Ltd. A power management method, system, device and medium for life support equipment

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110611365A (en) * 2018-06-15 2019-12-24 北京京东尚科信息技术有限公司 Method and device for continuous power supply
CN110932340A (en) * 2018-09-19 2020-03-27 Oppo广东移动通信有限公司 Charging method, split terminal and computer storage medium
CN111987764B (en) * 2020-08-10 2022-03-25 Tcl通讯(宁波)有限公司 Discharge control method and device, storage medium and mobile terminal
CN114977389A (en) * 2022-05-25 2022-08-30 珠海格力电器股份有限公司 Internet of things monitoring equipment battery management method, device and Internet of things monitoring equipment
EP4579993A3 (en) * 2023-12-28 2025-08-06 ChinaBridge (Shenzen) Medical Technology Co., Ltd. External energy storage power supply management method, system, device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080246432A1 (en) * 2007-04-03 2008-10-09 Syspotek Corporation Fuel cell power supply system integrated with rechargeable batteries
CN101867209A (en) * 2010-06-14 2010-10-20 施全元 Self-charging electric vehicle as well as self-charging method and system
CN201878232U (en) * 2010-05-25 2011-06-22 惠州Tcl移动通信有限公司 Mobile phone with double batteries
CN103296744A (en) * 2012-02-22 2013-09-11 叶继伦 Power source for medical equipment and power supply method for same
CN104617652A (en) * 2015-01-21 2015-05-13 国家电网公司 Battery Powered Devices for Portable Terminals

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102222942A (en) * 2010-04-16 2011-10-19 联芯科技有限公司 Power supply circuit and charging method for electronic equipment
CN104218269B (en) * 2014-09-22 2017-02-15 宇龙计算机通信科技(深圳)有限公司 Charging method, charging system and charging terminal
CN104917245A (en) * 2015-06-19 2015-09-16 深圳天珑无线科技有限公司 Charging management circuit, mobile terminal and charging control method of mobile terminal
CN105610215B (en) * 2015-12-01 2018-10-02 深圳市大疆创新科技有限公司 For electric installation, method for controlling power supply and using the movable fixture for electric installation
CN105634055A (en) * 2015-12-30 2016-06-01 宇龙计算机通信科技(深圳)有限公司 Charging control method and charging control device of mobile terminal and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080246432A1 (en) * 2007-04-03 2008-10-09 Syspotek Corporation Fuel cell power supply system integrated with rechargeable batteries
CN201878232U (en) * 2010-05-25 2011-06-22 惠州Tcl移动通信有限公司 Mobile phone with double batteries
CN101867209A (en) * 2010-06-14 2010-10-20 施全元 Self-charging electric vehicle as well as self-charging method and system
CN103296744A (en) * 2012-02-22 2013-09-11 叶继伦 Power source for medical equipment and power supply method for same
CN104617652A (en) * 2015-01-21 2015-05-13 国家电网公司 Battery Powered Devices for Portable Terminals

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108879892A (en) * 2018-09-20 2018-11-23 山东思科赛德矿业安全工程有限公司 A kind of double cell group automatic switchover power supply system
CN108879892B (en) * 2018-09-20 2024-04-19 山东思科赛德矿业安全工程有限公司 Automatic switching power supply system for double battery packs
CN114788119A (en) * 2020-12-17 2022-07-22 深圳市大疆创新科技有限公司 Movable platform, charging and discharging method of movable platform and storage medium
CN114243846A (en) * 2021-12-22 2022-03-25 歌尔光学科技有限公司 Power supply control method and system, wearable device and computer readable storage medium
CN114336932A (en) * 2021-12-22 2022-04-12 歌尔光学科技有限公司 Power supply control method, system, wearable device, and computer-readable storage medium
CN114336932B (en) * 2021-12-22 2024-10-15 歌尔科技有限公司 Power supply control method, system, wearable device and computer readable storage medium
CN114243846B (en) * 2021-12-22 2025-04-08 歌尔科技有限公司 Power supply control method, system, wearable device and computer readable storage medium
CN114825553A (en) * 2022-05-25 2022-07-29 深圳市华云电源有限公司 Electric quantity balance control method and system of mobile power supply device
EP4579994A3 (en) * 2023-12-28 2025-08-06 ChinaBridge (Shenzen) Medical Technology Co., Ltd. A power management method, system, device and medium for life support equipment

Also Published As

Publication number Publication date
CN107732991A (en) 2018-02-23

Similar Documents

Publication Publication Date Title
WO2018028316A1 (en) Terminal charging control method, device and terminal
CN209488195U (en) mobile terminal
EP3312969B1 (en) Charging method and electronic devices
US8841798B2 (en) Method, apparatus for emergency power supply and device associated thereto
TWI603185B (en) Power management apparatus and computer-readable medium
EP2180573B1 (en) System and method for controlling charging of battery of portable terminal
US8816644B2 (en) Interrupting the charging status of a rechargeable battery
CN102623768B (en) Multi-battery charging method and device and handheld mobile terminal
JP2020114172A (en) System for replacement of lead acid batteries
CN110994769A (en) Double-battery system and mobile terminal equipment
CN105429279A (en) Power supply system and power supply method for electric equipment
TWI634722B (en) Control method for battery parallel connection
CN114156971A (en) Energy storage charging and discharging control method, device and equipment and energy storage system
CN107168087A (en) The socket controlling system that a kind of smart home parameter for detecting power-off is preserved and recovered
US9985457B2 (en) Charger for blocking standby power and method of controlling same
CN107005080A (en) A power failure alarm circuit and network equipment
JP2017216789A (en) Power supply
CN206698005U (en) Dual input double startup exports voltage regulation type uninterrupted switch power supply
CN105207279A (en) Charge and discharge circuit and mobile terminal
WO2022126560A1 (en) Movable platform, charging and discharging method therefor, and storage medium
EP2988391B1 (en) Mobile power supply terminal and power supply method therefor
CN112928798B (en) Electric quantity control method and device of energy storage equipment and energy storage equipment
CN112868158A (en) Charging device and charging method
CN113765178B (en) A method for dynamically switching charging modes and related equipment
CN215681911U (en) Power supply switching control circuit, power supply control system and industrial control system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17838446

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17838446

Country of ref document: EP

Kind code of ref document: A1