WO2017114253A1 - 一种供电方法及装置 - Google Patents

一种供电方法及装置 Download PDF

Info

Publication number
WO2017114253A1
WO2017114253A1 PCT/CN2016/111249 CN2016111249W WO2017114253A1 WO 2017114253 A1 WO2017114253 A1 WO 2017114253A1 CN 2016111249 W CN2016111249 W CN 2016111249W WO 2017114253 A1 WO2017114253 A1 WO 2017114253A1
Authority
WO
WIPO (PCT)
Prior art keywords
battery
voltage
auxiliary
auxiliary battery
currently
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2016/111249
Other languages
English (en)
French (fr)
Inventor
姜訢
陈兴龙
田明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Asu Tech Co Ltd
Qingdao Haier Co Ltd
Original Assignee
Beijing Asu Tech Co Ltd
Qingdao Haier Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Asu Tech Co Ltd, Qingdao Haier Co Ltd filed Critical Beijing Asu Tech Co Ltd
Publication of WO2017114253A1 publication Critical patent/WO2017114253A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JELECTRIC POWER NETWORKS; CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J9/00Circuit arrangements for emergency or stand-by power supply, e.g. for emergency lighting
    • H02J9/04Circuit arrangements for emergency or stand-by power supply, e.g. for emergency lighting in which the distribution system is disconnected from the normal source and connected to a standby source
    • H02J9/06Circuit arrangements for emergency or stand-by power supply, e.g. for emergency lighting in which the distribution system is disconnected from the normal source and connected to a standby source with automatic change-over, e.g. UPS systems
    • H02J9/061Circuit arrangements for emergency or stand-by power supply, e.g. for emergency lighting in which the distribution system is disconnected from the normal source and connected to a standby source with automatic change-over, e.g. UPS systems for DC powered loads
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JELECTRIC POWER NETWORKS; CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or discharging batteries or for supplying loads from batteries
    • H02J7/865Battery or charger load switching, e.g. concurrent charging and load supply
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JELECTRIC POWER NETWORKS; CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J9/00Circuit arrangements for emergency or stand-by power supply, e.g. for emergency lighting
    • H02J9/04Circuit arrangements for emergency or stand-by power supply, e.g. for emergency lighting in which the distribution system is disconnected from the normal source and connected to a standby source
    • H02J9/06Circuit arrangements for emergency or stand-by power supply, e.g. for emergency lighting in which the distribution system is disconnected from the normal source and connected to a standby source with automatic change-over, e.g. UPS systems
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Definitions

  • the present invention relates to the field of electrical energy storage technologies, and in particular, to a power supply method and apparatus.
  • watches For wearable products, for example, watches generally have only one battery inside, which powers the watch to ensure the normal operation of the watch. However, once the voltage of the battery is insufficient to meet the demand for the power of the watch, that is, the battery has insufficient endurance, the product may not work properly.
  • the purpose of the embodiments of the present invention is to provide a power supply method and device to solve the problem that the existing wearable device is not easy to work due to insufficient power.
  • the specific technical solutions are as follows:
  • an embodiment of the present invention provides a power supply method, which is applied to a terminal, where the terminal is provided with a main battery installation position and at least one auxiliary battery installation position, and the main battery installation position is installed with a main battery, and the auxiliary battery
  • the mounting position is for installing a pluggable auxiliary battery, and the method includes the following steps:
  • the first battery having the largest voltage value is selected from the main battery and the auxiliary battery currently in the inserted state as the current power supply battery, and the terminal is powered by the current power supply battery.
  • the first battery having the largest voltage value is selected from the main battery and the auxiliary battery currently in the inserted state as the current power supply battery, and the power is supplied to the terminal through the current power supply battery.
  • the method also includes:
  • a register is further disposed in the terminal, where
  • the first battery having the largest voltage value is selected from the main battery and the auxiliary battery that is currently in the inserted state as the current power supply battery, and the current power supply battery is used to supply power to the terminal, including:
  • the method further includes: detecting the auxiliary battery installation state of the auxiliary battery installation position, and determining whether the installation state of the auxiliary battery of the auxiliary battery installation position is changed, the method further includes:
  • the third battery is selected, and the third battery is Powering the terminal, and acquiring a voltage of the main battery and a voltage of the auxiliary battery currently in an inserted state, and selecting a fourth battery whose voltage value is second only to the third battery, and storing the first battery in the register
  • the information is replaced with information of the fourth battery.
  • the method further includes:
  • the voltage of the main battery and the auxiliary battery that is currently in the inserted state are acquired. Voltage, and selecting a fifth battery having the largest voltage value and a voltage value from the main battery and the auxiliary battery currently in the inserted state, second only to the sixth battery of the fifth battery Pooling, and replacing information stored in the register with information of the fifth battery and information of the sixth battery;
  • the method further includes:
  • a seventh battery having the smallest voltage value is selected from the main battery and the auxiliary battery currently in the inserted state as the current rechargeable battery, and charges the current rechargeable battery.
  • the method further includes:
  • the eighth battery is the current rechargeable battery and charges the current rechargeable battery.
  • a register is further disposed in the terminal, where
  • the seventh battery having the smallest voltage value is selected from the main battery and the auxiliary battery currently in the inserted state as the current rechargeable battery, and is charged to the current rechargeable battery, including:
  • Selecting a seventh battery having the smallest voltage value and a ninth battery having the second smallest voltage value from the main battery and the auxiliary battery currently in the inserted state, and the information of the seventh battery and the information of the ninth battery are both Storing in the register, using the seventh battery as a current rechargeable battery, and charging the current rechargeable battery;
  • the method further includes: after detecting the auxiliary battery installation state of the auxiliary battery installation position, determining whether the installation state of the auxiliary battery of the auxiliary battery installation position is changed, the method further includes:
  • the charging is stopped, and the voltage of the main battery and the voltage of the auxiliary battery currently in the inserted state are obtained, and the selected voltage value is only greater than the first A tenth battery of seven batteries, and replacing information of the ninth battery stored in the register with information of the tenth battery.
  • the method further includes:
  • the eleventh battery and the current rechargeable battery are different batteries, determining whether a difference between a voltage of the current rechargeable battery and a voltage of the eleventh battery is greater than the charging differential threshold;
  • the method further includes:
  • the main battery and the auxiliary battery currently in an inserted state serve as the current rechargeable battery, and are charged to the main battery and the auxiliary battery currently in an inserted state at a constant voltage.
  • the method further includes:
  • the main battery and the auxiliary battery currently in the inserted state are divided into a plurality of battery packs, and the plurality of battery packs are arranged according to a preset charging sequence, wherein the constant voltage charging voltages of the respective batteries in the same battery pack are the same;
  • each battery pack is sequentially used as a current rechargeable battery pack, and each battery in the current rechargeable battery pack is charged.
  • each battery pack is sequentially used as a current rechargeable battery pack, and each battery in the current rechargeable battery pack is charged, including:
  • the embodiment of the present invention further provides a power supply device, which is applied to a terminal, the terminal is provided with a main battery installation position and at least one auxiliary battery installation position, and the main battery installation position is installed with a main battery,
  • the auxiliary battery mounting position is for mounting a pluggable auxiliary battery, the device comprising:
  • a first detecting module configured to detect an auxiliary battery installation state of the auxiliary battery mounting position, and determine an auxiliary battery that is currently in an inserted state
  • a first acquiring module configured to acquire a voltage of the main battery and a voltage of an auxiliary battery that is currently in an inserted state
  • the first power supply module is configured to select, as the current power supply battery, the first battery having the largest voltage value from the main battery and the auxiliary battery currently in the inserted state, and supply power to the terminal through the current power supply battery.
  • the above apparatus further includes:
  • a second detecting module configured to detect an auxiliary battery installation state of the auxiliary battery installation position, and determine whether the installation state of the auxiliary battery of the auxiliary battery installation position changes;
  • a first selecting module configured to periodically acquire a voltage of the main battery and a voltage of an auxiliary battery that is currently in an inserted state, without changing a mounting state of the auxiliary battery of the auxiliary battery mounting position, and Selecting a second battery having the largest voltage value among the main battery and the auxiliary battery currently in the inserted state;
  • a first determining module configured to determine, when the second battery and the first battery are different batteries, whether a difference between a voltage of the second battery and a voltage of the first battery is greater than a preset Supply voltage difference threshold;
  • a second power supply module configured to determine that the second battery is the current power supply battery when the difference between the voltage of the second battery and the voltage of the first battery is greater than the supply voltage difference threshold, and pass the current The power supply battery supplies power to the terminal.
  • a register is further disposed in the terminal, where
  • the first power supply module is specifically configured to select, from the main battery and the auxiliary battery currently in an inserted state, a first battery having a largest voltage value and a third battery having a voltage value second only to the first battery,
  • the information of the first battery and the information of the third battery are both stored in the register, and the first battery is used as the current power supply battery, and the terminal is powered by the current power supply battery;
  • the device also includes:
  • a third power supply module configured to: if the current power supply battery is the first auxiliary battery, and detect that the first auxiliary battery is pulled out, select the third battery according to the information stored in the register, The third battery supplies power to the terminal, and acquires a voltage of the main battery and a voltage of an auxiliary battery that is currently in an inserted state, and selects a fourth battery whose voltage value is second only to the third battery, and the register is The information of the first battery stored therein is replaced with the information of the fourth battery.
  • the above apparatus further includes:
  • a first information updating module configured to: if the second auxiliary battery that is not the current power supply battery is detected to be pulled out from the auxiliary battery installation position, or the second auxiliary battery is inserted into the auxiliary battery installation position, obtain the voltage of the main battery And a voltage of the auxiliary battery currently in the inserted state, and selecting a fifth battery having the largest voltage value and a voltage value next to the sixth battery of the fifth battery from the main battery and the auxiliary battery currently in the inserted state, And replacing the information stored in the register with the information of the fifth battery and the information of the sixth battery;
  • a second determining module configured to determine, when the fifth battery and the current power supply battery are different batteries, whether a difference between a voltage of the fifth battery and a current power supply battery is greater than the supply voltage difference Threshold value
  • a fourth power supply module configured to supply power to the terminal by using the fifth battery when a difference between a voltage of the fifth battery and a current power supply battery is greater than the supply voltage difference threshold.
  • the above apparatus further includes;
  • the first charging module is configured to select, as the current rechargeable battery, the seventh battery having the smallest voltage value from the main battery and the auxiliary battery currently in the inserted state, and charge the current rechargeable battery.
  • the above apparatus further includes:
  • a third detecting module configured to detect an auxiliary battery installation state of the auxiliary battery installation position, and determine whether the installation state of the auxiliary battery of the auxiliary battery installation position changes;
  • a second selecting module configured to periodically acquire a voltage of the main battery and a voltage of an auxiliary battery that is currently in an inserted state, and select an eighth lowest voltage value from the main battery and the auxiliary battery currently in an inserted state battery;
  • a third determining module configured to determine, when the seventh battery and the eighth battery are different batteries, whether a difference between a voltage of the seventh battery and a voltage of the eighth battery is greater than a preset Charging pressure difference threshold;
  • a second charging module configured to determine that the eighth battery is the current rechargeable battery when the difference between the voltage of the seventh battery and the voltage of the eighth battery is greater than the charging differential threshold The rechargeable battery is charged.
  • a register is further disposed in the terminal, where
  • the first charging module is specifically configured to select, from the main battery and the auxiliary battery currently in an inserted state, a seventh battery having a smallest voltage value and a ninth battery having a second smallest voltage value, and the information of the seventh battery And the information of the ninth battery is stored in the register, the seventh battery is used as a current rechargeable battery, and the current rechargeable battery is charged;
  • the device also includes:
  • a second information updating module configured to stop charging when detecting that the third auxiliary battery being charged is pulled out from the auxiliary battery mounting position, and acquire a voltage of the main battery and a voltage of the auxiliary battery that is currently in an inserted state, The tenth battery whose voltage value is only larger than the seventh battery is selected, and the information of the ninth battery stored in the register is replaced with the information of the tenth battery.
  • the above apparatus further includes:
  • a third information updating module configured to acquire a voltage of the main battery when the fourth auxiliary battery that is not the current rechargeable battery is detected to be pulled out from the auxiliary battery mounting position or the fourth auxiliary battery is inserted into the auxiliary battery mounting position
  • the voltage of the auxiliary battery currently in the inserted state, and the eleventh battery having the smallest voltage value and the voltage value selected from the main battery and the auxiliary battery currently in the inserted state are only larger than the twelfth battery of the eleventh battery And replacing information stored in the register with information of the eleventh battery and the twelfth battery;
  • a fourth determining module configured to determine, when the eleventh battery and the current rechargeable battery are different batteries, whether a difference between a voltage of the current rechargeable battery and a voltage of the eleventh battery is greater than the charging Differential pressure threshold
  • a third charging module configured to charge the eleventh battery when a difference between a current voltage of the rechargeable battery and a voltage of the eleventh battery is greater than the charging differential threshold.
  • the above apparatus further includes:
  • a fourth charging module configured to: when the voltage of the main battery and the voltage of the auxiliary battery currently in the inserted state reach a respective constant voltage charging voltage, and the constant voltage of the main battery and the auxiliary battery currently in the inserted state When the charging voltages are all the same, both the main battery and the auxiliary battery currently in the inserted state are used as the current rechargeable battery, and the main battery and the auxiliary battery currently in the inserted state are charged at a constant voltage.
  • the above apparatus further includes:
  • a sequential arrangement module configured to: when the voltage of the main battery and the voltage of the auxiliary battery currently in the inserted state reach the respective constant voltage charging voltages, and the constant voltage charging voltages of the batteries are not completely the same, according to the constant voltage charging Differentiating the voltage, dividing the main battery and the auxiliary battery currently in the inserted state into a plurality of battery packs, and arranging the plurality of battery packs according to a preset charging sequence, wherein each battery in the same battery pack is constant The voltage of the charging voltage is the same;
  • the sequential charging module is configured to sequentially use each battery pack as a current rechargeable battery pack according to the charging sequence, and charge each battery in the current rechargeable battery pack.
  • the sequential charging module includes:
  • a fifth charging module configured to charge each battery in the current rechargeable battery pack
  • a fourth detecting module configured to detect whether the current rechargeable battery pack is the last battery pack when the charging current of each battery in the current rechargeable battery pack is less than the respective charging cutoff current
  • the execution module is configured to end charging all the battery packs when the current rechargeable battery pack is the last set of battery packs; otherwise, charge each battery in the next set of battery packs.
  • Embodiments of the present invention provide a power supply method and apparatus.
  • the power supply method comprises the steps of: detecting an auxiliary battery installation state of the auxiliary battery installation position, determining an auxiliary battery currently in an inserted state; acquiring a voltage of the main battery and a voltage of the auxiliary battery currently in an inserted state; from the main battery and the current
  • the first battery having the largest voltage value is selected as the current power supply battery in the auxiliary battery in the inserted state, and the power is supplied to the terminal through the current power supply battery.
  • a terminal such as a watch, has only one battery.
  • the terminal may be installed with a main body battery and a plurality of pluggable auxiliary batteries, and the terminal may be the highest voltage value of the main battery and the auxiliary battery currently in the inserted state.
  • a battery is used to supply power, which can better ensure that the selection scheme of the power supply battery is always the optimal solution, that is, the battery that supplies power to the terminal is always the most abundant battery in the available battery, and finally ensures the normality of the terminal. jobs.
  • FIG. 1 is a schematic structural diagram of a circuit for implementing a power supply method according to an embodiment of the present invention.
  • FIG. 2 is a flowchart of a power supply method according to an embodiment of the present invention.
  • FIG. 3 is still another flowchart of a power supply method according to an embodiment of the present invention.
  • FIG. 4 is still another flowchart of a power supply method according to an embodiment of the present invention.
  • FIG. 5 is still another flowchart of a power supply method according to an embodiment of the present invention.
  • FIG. 6 is a structural block diagram of a power supply device according to an embodiment of the present invention.
  • Embodiments of the present invention provide a power supply method.
  • the power supply method can be applied to the terminal.
  • the terminal is provided with a main battery mounting position and at least one auxiliary battery mounting position, the main battery mounting position is provided with a main battery, and the auxiliary battery mounting position is for installing a pluggable auxiliary battery.
  • the terminal may be a wearable device, such as a watch type wearable device, and the auxiliary battery mounting position may be set on the watchband of the watch type wearable device.
  • the number of the auxiliary battery installation positions may be one, two or more, and the specific number may be determined according to actual conditions, which is not limited in this embodiment.
  • FIG. 1 a schematic structural diagram of a circuit for implementing a power supply method provided by an embodiment of the present invention is shown.
  • the circuit has a controller 1 and a plurality of circuit units.
  • Each circuit unit has a battery mounting position 3, a diode 4, a first switch 5 and a second switch 6, the battery mounting position 3, the diode 4 and the first switch 5 are connected in series, and the second switch 6 is connected in parallel with the diode 4, and It can be considered that the battery mounting position 3 in the circuit unit closest to the controller 1 is the main battery mounting position, the main battery is installed in the main battery mounting position, and the battery mounting position 3 in the remaining circuit units is the auxiliary battery mounting position.
  • the auxiliary battery mounting position is for installing a pluggable non-main battery, that is, an auxiliary battery.
  • a pluggable non-main battery that is, an auxiliary battery.
  • the battery mounting position 3 in the circuit unit closest to the controller 1 is an auxiliary battery mounting position, and the remaining circuit units are
  • a battery installation position 3 is a main battery installation position, which is not limited in this embodiment.
  • the diode 4 can be a Schottky diode.
  • the power supply method includes the following steps:
  • step S201 the auxiliary battery installation state of the auxiliary battery installation position is detected, and the auxiliary battery currently in the inserted state is determined.
  • the operation of detecting the auxiliary battery installation state of the auxiliary battery installation position can be realized by the controller 1.
  • the level signal of the ID pin of the auxiliary battery mounting bit will change. Specifically, when the auxiliary battery is inserted into an auxiliary battery mounting position, the level signal of the ID pin of the auxiliary battery mounting bit will be high to low; on the contrary, when the auxiliary battery is pulled out from a certain auxiliary battery mounting position The level signal of the ID pin of the auxiliary battery mounting bit will be low to high.
  • the controller 1 can know the installation state of the auxiliary battery of the auxiliary battery installation position according to the change of the level signal of the ID pin of the auxiliary battery installation position, thereby determining which auxiliary battery installation positions are installed with the auxiliary battery in the current state. Which auxiliary battery installation positions do not have an auxiliary battery installed, which determines which auxiliary batteries are currently plugged in.
  • Step S202 acquiring the voltage of the main battery and the voltage of the auxiliary battery currently in the inserted state.
  • the operation of the voltage of the main battery and the voltage of the auxiliary battery currently in the inserted state can also be realized by the controller 1.
  • Step S203 selecting the first battery with the largest voltage value from the main battery and the auxiliary battery currently in the inserted state as the current power supply battery, and supplying power to the terminal through the current power supply battery.
  • the first switch 5 in each circuit unit is typically in a closed state.
  • the controller 1 selects the first battery with the largest voltage value and uses the first battery as the current power supply battery.
  • the first battery has two alternative power supply schemes: one power supply scheme is that the second switch 6 is disconnected, and the current flows sequentially through the battery mounting position 3 and the diode 4 where the first battery is located.
  • the first switch 5 to supply power to the terminal, at this time there will be a voltage drop of about 0.3V on the diode 4, which can be simply understood as: the voltage of the circuit unit has been lost without actually starting the power supply;
  • Another power supply scheme is that the second switch 6 is closed, at which time the second switch 6 shorts the diode 4, and the current flows sequentially through the battery mounting position 3, the second switch 6, and the first switch 5 on which the first battery is mounted. Power is supplied to the terminal, and there is no voltage drop across the second switch 6.
  • the latter is a better power supply scheme, and the power supply efficiency is higher.
  • the controller 1 selects the first battery, the controller 1 places the second switch 6 on the circuit unit where the first battery is located in a closed state, and other available circuit units (ie, circuits other than the first battery) Outside the unit, the second switch 6 on the circuit unit in which the battery is mounted in the battery mounting position 3 is placed in the off state.
  • the battery mounting position 3 in the circuit unit closest to the controller 1 in FIG. 1 is the main battery mounting position, and the main battery mounting position is provided with the main battery, and the battery mounting position in the other two circuit units is the auxiliary battery mounting position.
  • the controller 1 has detected that the auxiliary battery is installed in both of the auxiliary battery mounting positions.
  • the controller 1 acquires the voltage of the main battery and the voltages of the two auxiliary batteries, assuming that the voltage of the main battery is 3.5V, and the voltage of the auxiliary battery farthest from the controller 1 is 3.4V, and the voltage of the other auxiliary battery At 3.8V, controller 1 will select the auxiliary battery with a voltage of 3.8V.
  • the auxiliary battery will be used as the current power supply battery.
  • Controller 1 will control the circuit unit where the auxiliary battery with the voltage value of 3.8V is located.
  • the second switch 6 is closed, and the second switch 6 on the other two circuit units is in an off state, so that the auxiliary battery having a voltage of 3.8V supplies power to the terminal, and at the same time, the voltage of the auxiliary battery due to the voltage value of 3.8V
  • the value is the largest, so the circuit unit in which the auxiliary battery is located will suppress the other two circuit units, so that the other two circuit units cannot supply power to the terminal.
  • the voltage of the auxiliary battery may be reduced from 3.8V to 3.05V.
  • the circuit unit where the main battery is located may The terminal provides a voltage of 3.2V, and the circuit unit where the other auxiliary battery is located can provide a voltage of 3.1V to the terminal. It can be seen that the circuit unit where the main battery is located and the circuit unit where the auxiliary battery is located can supply the voltage to the terminal. Both are greater than the voltage of the current power supply battery. At this time, the three batteries can supply power to the terminal together to ensure the normal operation of the terminal.
  • a terminal such as a watch
  • the terminal may be installed with a main body battery and a plurality of pluggable auxiliary batteries, and the terminal may be the highest voltage value of the main battery and the auxiliary battery currently in the inserted state.
  • a battery is used to supply power, which can better ensure that the selection scheme of the power supply battery is always the optimal solution, that is, the battery that supplies power to the terminal is always the most abundant battery in the available battery, and finally ensures the normality of the terminal. jobs.
  • FIG. 3 another flowchart of a power supply method according to an embodiment of the present invention is shown. As shown in FIG. 3, the method includes the following steps:
  • Step S301 detecting the auxiliary battery installation state of the auxiliary battery installation position, and determining the auxiliary battery currently in the inserted state.
  • step S302 the voltage of the main battery and the voltage of the auxiliary battery currently in the inserted state are acquired.
  • Step S303 selecting the first battery having the largest voltage value from the main battery and the auxiliary battery currently in the inserted state as the current power supply battery, and supplying power to the terminal through the current power supply battery.
  • the steps S301 to S303 are the same as the steps S201 to S203, and the specific implementation process is referred to the above description, and details are not described herein again.
  • Step S304 detecting the auxiliary battery installation state of the auxiliary battery installation position, determining whether the installation state of the auxiliary battery of the auxiliary battery installation position changes, and if there is no change, executing step S305.
  • the controller 1 detects that the level signal of the ID pin of the at least one auxiliary battery mounting bit changes, that is, the installation state of the auxiliary battery of the auxiliary battery mounting position changes, and vice versa, the auxiliary battery is installed.
  • the installation status of the auxiliary battery of the bit has not changed.
  • Step S305 periodically acquiring the voltage of the main battery and the voltage of the auxiliary battery currently in the inserted state, and selecting the second battery having the largest voltage value from the main battery and the auxiliary battery currently in the inserted state.
  • the specific period value of the voltage of the main battery and the voltage of the auxiliary battery that is currently in the inserted state may be 10 seconds.
  • the specific value of the period value is limited to 10 seconds, which may be determined according to actual conditions. There is no limit to this.
  • the voltage of the first battery gradually decreases.
  • the power supply time of the first battery is short and the power consumption is small
  • the voltage of the main battery periodically acquired and the voltage of the auxiliary battery currently in the inserted state it may be found that the first battery is still the battery with the largest voltage value.
  • the first battery and the second battery are the same battery; when the power supply time of the first battery is long and the power consumption is large, the first battery may not be the battery with the largest voltage value.
  • the battery and the second battery are not the same battery.
  • step S306 if the second battery and the first battery are different batteries, it is determined whether the difference between the voltage of the second battery and the voltage of the first battery is greater than a preset voltage difference threshold. If yes, step S307 is performed. .
  • Step S307 determining that the second battery is the current power supply battery, and supplying power to the terminal through the current power supply battery.
  • the value of the voltage difference threshold may be a constant, for example, 0.3 V.
  • the value of the voltage difference threshold is not limited to 0.3 V, and may be determined according to actual conditions, which is not limited in this embodiment.
  • the second battery when the difference between the voltage of the second battery and the voltage of the first battery is greater than the voltage difference threshold, for example, when the difference between the two is greater than 0.3V, it indicates that the first battery has been consumed in the power supply process. More power, at this time, using the first battery to supply power is not the optimal power supply scheme, so the second battery can be used to supply power to the terminal.
  • the second battery has two alternative power supply schemes. For details, refer to the two power supply schemes for supplying power to the terminal through the first battery, and details are not described herein.
  • the controller 1 can control the second switch 6 in the circuit unit where the second battery is located to be closed, while controlling the second switch 6 in the circuit unit where the remaining batteries are located to be disconnected, so that the second battery will be higher.
  • the power supply efficiency supplies power to the terminal.
  • the power supply method provided by the embodiment of the present invention can ensure that the battery that supplies power to the terminal is always a battery with a large voltage value, thereby reliably ensuring the normal operation of the terminal.
  • each auxiliary battery can be pulled out from the auxiliary battery mounting position or inserted into the auxiliary battery mounting position at any time, when any auxiliary battery is pulled out from the auxiliary battery mounting position.
  • step S304 determines that the mounting state of the auxiliary battery of the auxiliary battery mounting position has changed.
  • changes in the mounting state of the auxiliary battery of the auxiliary battery mounting position can be divided into two different cases. The specific implementation process of these two cases will be described below.
  • the current power supply battery is an auxiliary battery
  • the auxiliary battery is pulled out from the auxiliary battery installation position.
  • the controller 1 needs to be based on its internal pre-defined software program, from the battery that can be used for power supply, that is, the main battery and the auxiliary battery that is currently in the inserted state.
  • a battery is selected to supply power to the terminal, but since the controller 1 selects the power supply battery according to the software-defined method, it usually takes a long time, and the terminal will not work normally during the time when the battery is selected.
  • a register can also be set in the terminal.
  • the circuit may further have an integrated circuit 2, which is connected to the controller 1, and the register may be located in the integrated circuit 2.
  • integrated circuit 2 can have an integrated circuit controller and digital logic control circuitry.
  • the first battery having the largest voltage value is selected as the current power supply battery from the main battery and the auxiliary battery currently in the inserted state, and the current power supply battery is used to supply power to the terminal, including:
  • the information of the first battery may include a voltage of the first battery and a circuit unit where the first battery is located.
  • the information of the third battery may include the voltage of the third battery and the circuit unit in which the third battery is located.
  • the method may further include the following steps:
  • the third battery is selected, the third battery is used to supply power to the terminal, and the voltage of the main battery is obtained.
  • the voltage of the auxiliary battery currently in the inserted state, from which the fourth battery having the voltage value next to the third battery is selected, and the information of the first battery stored in the register is replaced with the information of the fourth battery.
  • the voltage of the main battery and the voltage of the auxiliary battery currently in the inserted state are obtained, and the fourth battery whose voltage value is second only to the third battery is selected, and the information of the first battery stored in the register is replaced with the information of the fourth battery.
  • the operation can be implemented by the controller 1.
  • the controller 1 detects that the first auxiliary battery being powered is suddenly pulled out, the circuit unit where the first auxiliary battery is located is It is impossible to supply power to the terminal.
  • the controller 1 selects the optimal circuit unit in the circuit unit that can supply power to the terminal in the current state according to the information stored in the register, that is, the circuit unit where the third battery is located supplies power to the terminal.
  • the controller 1 can directly select the third battery to supply power to the terminal according to the information stored in the register, and the process is implemented in pure hardware manner without using software. The operation is implemented, so the time required for the process is very short, much less than the time required to select another power supply battery through the program defined by the internal software of the controller 1, thereby effectively ensuring the normal operation of the terminal.
  • the second case the auxiliary battery is pulled out of the auxiliary battery mounting position or inserted into the auxiliary battery mounting position, and the auxiliary battery is not the current power supply battery.
  • the method may further include the following steps:
  • the voltage of the main battery and the voltage of the auxiliary battery currently in the inserted state are obtained. And selecting, from the main battery and the auxiliary battery currently in the inserted state, the fifth battery having the largest voltage value and the sixth battery having the voltage value next to the fifth battery, and replacing the information stored in the register with the information of the fifth battery. And the information of the sixth battery.
  • the information of the fifth battery may include a voltage of the fifth battery and a circuit unit where the fifth battery is located.
  • the information of the sixth battery may include the voltage of the sixth battery and the circuit unit where the sixth battery is located.
  • the fifth battery and the current power supply battery are different batteries, it is determined whether the difference between the voltage of the fifth battery and the current voltage of the power supply battery is greater than a supply voltage difference threshold.
  • the fifth battery is usually the current power supply battery.
  • the fifth battery and the current power supply battery are not the same battery, if the voltage of the second auxiliary battery is current and current If the difference between the voltages of the power supply batteries is greater than the voltage difference threshold, it indicates that the second auxiliary battery is used for power supply, which is the preferred power supply solution. Therefore, the power supply can be performed by the circuit unit where the second auxiliary battery is located.
  • FIG. 4 another flow chart of the power supply method provided by the embodiment of the present invention is shown. As shown in FIG. 4, the method includes the following steps:
  • step S401 the auxiliary battery installation state of the auxiliary battery installation position is detected, and the auxiliary battery currently in the inserted state is determined.
  • Step S402 acquiring the voltage of the main battery and the voltage of the auxiliary battery currently in the inserted state.
  • Step S403 selecting the first battery having the largest voltage value from the main battery and the auxiliary battery currently in the inserted state as the current power supply battery, and supplying power to the terminal through the current power supply battery.
  • the steps S401 to S403 are the same as the steps S201 to S203, and the specific implementation process is referred to the above description, and details are not described herein again.
  • Step S404 selecting a seventh battery having the smallest voltage value from the main battery and the auxiliary battery currently in the inserted state as the current rechargeable battery, and charging the current rechargeable battery.
  • the voltage of the batteries may not be sufficient to supply power to the terminal normally, in order to ensure that the batteries can be normally powered when the terminal is working, Charge these batteries.
  • a seventh battery having the smallest voltage value may be selected from the battery to be charged, and the seventh battery is charged.
  • the voltage value of the seventh battery will gradually increase.
  • the voltage of the seventh battery can reach the lowest voltage value that normally supplies power to the terminal. .
  • FIG. 5 another flow chart of the power supply method provided by the embodiment of the present invention is shown. As shown in FIG. 5, the method includes the following steps:
  • step S501 the auxiliary battery installation state of the auxiliary battery installation position is detected, and the auxiliary battery currently in the inserted state is determined.
  • Step S502 obtaining the voltage of the main battery and the voltage of the auxiliary battery currently in the inserted state.
  • Step S503 selecting the first battery having the largest voltage value from the main battery and the auxiliary battery currently in the inserted state as the current power supply battery, and supplying power to the terminal through the current power supply battery.
  • Step S504 selecting a seventh battery having the smallest voltage value from the main battery and the auxiliary battery currently in the inserted state as the current rechargeable battery, and charging the current rechargeable battery.
  • steps S501 to S504 are the same as the steps S401 to S404, and the specific implementation process is referred to the above description, and details are not described herein again.
  • Step S505 detecting the auxiliary battery installation state of the auxiliary battery installation position, determining whether the installation state of the auxiliary battery of the auxiliary battery installation position changes, and if there is no change, executing step S506.
  • the controller 1 detects that the level signal of the ID pin of the at least one auxiliary battery mounting bit changes, that is, the installation state of the auxiliary battery of the auxiliary battery mounting position changes, and vice versa, the auxiliary battery is installed.
  • the installation status of the auxiliary battery of the bit has not changed.
  • Step S506 periodically acquiring the voltage of the main battery and the voltage of the auxiliary battery currently in the inserted state, and selecting the eighth battery having the smallest voltage value from the main battery and the auxiliary battery currently in the inserted state.
  • the specific period value of the voltage of the main battery and the voltage of the auxiliary battery that is currently in the inserted state may be 10 seconds.
  • the specific value of the period value is limited to 10 seconds, which may be determined according to actual conditions. There is no limit to this.
  • the voltage of the seventh battery gradually increases.
  • the charging time of the seventh battery is short, according to the voltage of the main battery periodically acquired and the voltage of the auxiliary battery currently in the inserted state, it may be found that the seventh battery is still the battery with the smallest voltage value, and the seventh battery at this time
  • the eighth battery is the same battery; when the charging time of the seventh battery is long, it may be found that the seventh battery will no longer be the battery with the smallest voltage value, and the seventh battery and the eighth battery are not the same battery.
  • step S507 if the seventh battery and the eighth battery are different batteries, it is determined whether the difference between the voltage of the seventh battery and the voltage of the eighth battery is greater than a preset charging differential threshold. If yes, step S508 is performed. .
  • Step S508 determining that the eighth battery is the current rechargeable battery and charging the current rechargeable battery.
  • the charging pressure difference threshold may be a constant, for example, 0.3 V.
  • the value of the charging pressure difference threshold is not limited to 0.3 V, and may be determined according to the time situation, which is not limited in this embodiment.
  • the seventh battery when the difference between the voltage of the seventh battery and the voltage of the eighth battery is greater than the charging differential threshold, for example, when the difference between the two is greater than 0.3V, the seventh battery is not the battery with the smallest voltage value.
  • the current rechargeable battery can be switched from the seventh battery to the eighth battery, that is, the battery with the lowest current voltage value.
  • the controller 1 controls the second switch 6 in the circuit unit where the eighth battery is located to be closed, and controls the second switch 6 in the circuit unit where the remaining batteries are located to be disconnected, so that the external power supply can be more efficient. Charge the eighth battery.
  • this embodiment can better ensure that the voltages of the batteries that can be currently charged are relatively balanced, and there is no case where one battery is always charged, and the remaining batteries are always in an uncharged state.
  • a register may be further disposed in the terminal.
  • the circuit may further include an integrated circuit 2, and the integrated circuit 2 is connected to the controller 1, and the register may be located in the integrated circuit.
  • the integrated circuit 2 may have an integrated circuit controller and a digital logic control circuit.
  • the seventh battery with the smallest voltage value is selected as the current rechargeable battery from the main battery and the auxiliary battery currently in the inserted state, and the current rechargeable battery is charged, including:
  • the seventh battery acts as the current rechargeable battery and charges the current rechargeable battery.
  • the information of the seventh battery may include a voltage of the seventh battery and a circuit unit where the seventh battery is located.
  • the information of the ninth battery may include the voltage of the ninth battery and the circuit unit where the ninth battery is located.
  • the method may further include the following steps;
  • the information of the tenth battery may include a voltage of the tenth battery and a circuit unit where the tenth battery is located.
  • the information stored in the register can be updated in real time, so that the information stored in the register is always the voltage value of the currently chargeable battery. The smallest of the two batteries.
  • the auxiliary battery installation state of the auxiliary battery installation position is detected, and the auxiliary battery installation position is determined.
  • the method may further include the following steps;
  • the fourth auxiliary battery of the non-current rechargeable battery is pulled out from the auxiliary battery mounting position or the fourth auxiliary battery is inserted into the auxiliary battery mounting position, the voltage of the main battery and the voltage of the auxiliary battery currently in the inserted state are obtained, And selecting the eleventh battery with the smallest voltage value and the twelfth battery whose voltage value is only larger than the eleventh battery from the main battery and the auxiliary battery currently in the inserted state, and replacing the information stored in the register with the eleventh battery And the information of the twelfth battery.
  • the information of the eleventh battery may include the voltage of the eleventh battery and the circuit unit where the eleventh battery is located.
  • the circuit unit in which the twelfth battery is located may include the voltage of the twelfth battery and the circuit unit in which the twelfth battery is located.
  • the eleventh battery and the current rechargeable battery are different batteries, it is judged whether the difference between the current rechargeable battery voltage and the eleventh battery voltage is greater than the charging differential pressure threshold.
  • the eleventh battery when the fourth auxiliary battery is pulled out from the auxiliary battery mounting position, the eleventh battery is usually the current rechargeable battery, when the fourth auxiliary battery is inserted into the auxiliary battery mounting position, and the voltage of the second auxiliary battery When the time is relatively small, the eleventh battery is not the same battery as the current rechargeable battery. If the difference between the current rechargeable battery voltage and the eleventh battery voltage is greater than the charging differential pressure threshold, the eleventh battery is It is the battery with the lowest voltage value, that is, the battery that needs to be charged most, so it can be charged to the circuit unit where the eleventh battery is located.
  • the method may further include:
  • the main battery and the current The auxiliary battery in the inserted state acts as the current rechargeable battery and charges the main battery and the auxiliary battery currently in the inserted state at a constant voltage.
  • the method may further include:
  • the auxiliary battery currently in the inserted state is divided into a plurality of battery packs, and the plurality of battery packs are arranged in a preset charging sequence, wherein the constant voltage charging voltages of the respective batteries in the same battery pack are the same.
  • each battery pack is sequentially used as the current rechargeable battery pack, and each battery in the current rechargeable battery pack is charged.
  • the preset charging sequence may be in the order of constant voltage charging voltage from small to large, for example, a battery pack having a minimum constant voltage charging voltage as a first group of rechargeable battery packs, and a battery having a second constant voltage charging voltage.
  • the group uses the battery pack with the third smallest constant voltage charging voltage as the third group of rechargeable battery packs, and so on.
  • the preset charging sequence may also be in accordance with the order of the constant voltage charging voltage, or other ordering, and may be determined according to actual conditions, which is not limited in this embodiment.
  • each battery pack is sequentially used as the current rechargeable battery pack according to the charging sequence, and each battery in the current rechargeable battery pack is charged, including:
  • the number of rechargeable battery packs may be plural.
  • the first group of rechargeable battery packs are first charged. If the charging currents of the batteries in the first group of rechargeable battery packs are less than the respective charging cutoff currents, then the first group of rechargeable battery packs has been charged, and then It is detected whether the first group of rechargeable battery packs is the last group of rechargeable battery packs, and if so, the charging is terminated, and if not, the second group of rechargeable battery packs is charged. As the charging process of the second group of rechargeable battery packs proceeds, the amount of power of each battery in the second group of rechargeable battery packs will gradually increase, and the charging currents of the batteries in the second group of rechargeable battery packs are less than the respective charging.
  • the current When the current is off, it indicates that the second group of rechargeable battery packs have been charged, and then it is detected whether the second group of rechargeable battery packs is the last group of rechargeable battery packs. If yes, the charging is terminated. If not, the third group of rechargeable battery packs is charged. Charge it. The subsequent charging process is deduced by analogy and will not be described here.
  • controller 1 needs to be initialized.
  • the controller 1 will have its internal analog-to-digital conversion channels in one-to-one correspondence with the respective batteries, that is, the GP1_ADC1 corresponds to the main battery, and the GP2_ADC1 corresponds to the first auxiliary battery, ..., GPn_ADC1 and the n-th One auxiliary battery corresponds to complete the initialization of the controller 1.
  • the controller 1 acquires the voltage value of the main battery and the auxiliary battery that is currently in the inserted state, that is, reads the voltage value of the battery of GP1_ADC1 to GPn_ADC1, and selects the circuit unit IDx where the battery GPx_ADC1 having the largest voltage value is located.
  • the register in integrated circuit 2 can be The discharge state of the circuit, the battery IDx having the largest voltage value, the battery IDx_Next having the second largest voltage, and the circuit unit connected to the entire circuit are periodically stored.
  • the controller 1 may further have a timer. After the circuit unit in which the GPx_ADC1 is located is supplied with power to the terminal, the controller 1 detects the value of each IDm, thereby judging whether or not the mounting state of the auxiliary battery of the auxiliary battery mounting position changes depending on whether or not the value of each IDm changes.
  • the timer can be controlled to read the voltage of the main battery and the auxiliary battery currently in the inserted state every S seconds, and select The battery with the largest voltage value.
  • the voltage value of GPx_ADC1 will gradually decrease.
  • the battery with the largest current voltage value will no longer be GPx_ADC1, and the battery with the largest current voltage value and GPx_ADC1
  • the difference will be greater than the supply voltage difference threshold, for example, 0.3V.
  • the currently powered circuit unit can be switched from GPx_ADC1 to the circuit unit where the battery with the largest voltage value is located to ensure the normal operation of the terminal.
  • the controller 1 detects a change in the value of any of the IDm, it indicates that the auxiliary battery is pulled out from the auxiliary battery mounting position or inserted into the auxiliary battery mounting position. Specifically, if the controller 1 detects that the circuit unit whose IDm has changed is the circuit unit where the current power supply battery is located, and the auxiliary battery currently being powered is pulled out from the auxiliary battery installation position, the auxiliary battery cannot continue to When the terminal is powered, the controller 1 selects the circuit unit where the second largest battery IDx_Next is located to supply power to the terminal according to the information stored in the register, so as to ensure the normal operation of the terminal and update the information in the register to store the information in the register. The information is always the battery IDx with the highest voltage value in the current state, the battery IDx_Next with the second largest voltage, and the circuit unit connected in the entire circuit.
  • the circuit unit whose IDm changes is the circuit unit where the current power supply battery is located
  • the information inside the register will be updated so that the internal storage is always the two highest voltage values in the battery that can supply power to the terminal in the current state.
  • Information of the battery and then determining whether the difference between the voltage of the battery having the largest voltage value and the voltage of the current power supply battery is greater than the supply voltage difference threshold, that is, 0.3 V, and if so, the circuit unit where the battery having the largest voltage value is located to the terminal Power is supplied to ensure that the battery being powered is always the most fully charged battery.
  • the controller 1 will have its internal analog-to-digital conversion channels in one-to-one correspondence with the respective batteries, that is, the GP1_ADC1 corresponds to the main battery, and the GP2_ADC1 corresponds to the first auxiliary battery, ..., GPn_ADC1 and the n-th One auxiliary battery corresponds to complete the initialization of the controller 1.
  • the controller 1 acquires the voltage value of the main battery and the auxiliary battery that is currently in the inserted state, that is, reads the voltage value of the battery of GP1_ADC1 to GPn_ADC1, and selects the circuit unit IDx where the battery GPx_ADC1 having the largest voltage value is located. Record the voltage of GPx_ADC1 as Vmin, record the circuit unit where the second smallest battery is located as IDx_Next, and charge the circuit unit where GPx_ADC1 is located. At the same time, the register in integrated circuit 2 will periodically store the charging state of the circuit. The battery IDx with the smallest voltage value, the battery IDx_Next with the second smallest voltage, and the circuit unit connected to the entire circuit.
  • the controller 1 may further have a timer. After selecting the circuit unit where GPx_ADC1 is located to supply power to the terminal, The controller 1 detects the value of each IDm, and determines whether or not the mounting state of the auxiliary battery of the auxiliary battery mounting position changes depending on whether or not the value of each IDm changes.
  • each IDm does not change, it means that no auxiliary battery is inserted or removed.
  • the timer can be controlled to read the voltage of the main battery and the auxiliary battery currently in the inserted state every S seconds, and select The battery with the lowest voltage value. As the circuit unit where GPx_ADC1 is located is continuously charged, the voltage value of GPx_ADC1 will gradually increase.
  • the battery with the lowest current voltage value will no longer be GPx_ADC1, and the battery with the lowest current voltage value and GPx_ADC1 The difference will be greater than the charge differential threshold, for example 0.3V, at which point the currently charged circuit unit can be switched from GPx_ADC1 to the circuit unit where the battery with the lowest voltage value is located.
  • the charge differential threshold for example 0.3V
  • the controller 1 detects a change in the value of any of the IDm, it indicates that the auxiliary battery is pulled out from the auxiliary battery mounting position or inserted into the auxiliary battery mounting position. Specifically, if the controller 1 detects that the circuit unit whose IDm changes is the circuit unit where the current rechargeable battery is located, the current rechargeable battery stops charging, and the register updates its internally stored information to change the current state voltage value. The information of the smallest two batteries is stored inside.
  • the register stores the information of the two batteries with the lowest voltage value of the main battery and the battery currently in the inserted state in the internal to replace the original information. Next, it is judged whether the voltage of the current rechargeable battery and the voltage of the battery having the smallest voltage value is greater than the charging differential pressure threshold, that is, 0.3 V, and if so, charging the circuit unit where the battery having the smallest voltage value is located.
  • the main battery and the auxiliary battery currently in the inserted state are grouped and a list is created, and these batteries are built.
  • the groups are the first group of battery packs GHG_GRP1, the second group of battery packs GHG_GRP2, ..., the constant voltage charging voltages of the batteries in the same battery pack are the same, and the timer is set for a time period, for example, 20 minutes.
  • the second switch 6 of the circuit unit is turned on to charge the current rechargeable battery pack.
  • Element if yes, end charging, if not, remove the current battery pack from the rechargeable battery pack list and point GHG_GRP to the next element in the rechargeable battery pack list to charge the next set of rechargeable battery packs .
  • the charging current Icharging of each battery in the current rechargeable battery pack is not less than the respective charging cutoff current Iterminal, it is determined whether the time period set by the timer, that is, 20 minutes has arrived, and if not, continues to the battery pack. Charging; if it has arrived, it is determined whether the battery pack is the last element in the rechargeable battery pack list, and if not, the GHG_GRP is directed to the next element in the rechargeable battery pack to charge the next set of rechargeable battery packs, If not, continue charging the battery pack.
  • the power supply method provided by the embodiment of the present invention can ensure that the battery that supplies power to the terminal is always the most abundant battery in the available battery, and finally ensures the normal operation of the terminal.
  • FIG. 6 a block diagram of a power supply device according to an embodiment of the present invention is shown.
  • the power supply device can be applied to a terminal, the terminal is provided with a main battery installation position and at least one auxiliary battery installation position, the main battery installation position is installed with a main battery, and the auxiliary battery installation position is for installing a pluggable auxiliary battery.
  • the device includes:
  • the first detecting module 61 is configured to detect an auxiliary battery installation state of the auxiliary battery installation position, and determine an auxiliary battery that is currently in an inserted state;
  • a first obtaining module 62 configured to acquire a voltage of the main battery and a voltage of the auxiliary battery that is currently in an inserted state
  • the first power supply module 63 is configured to select, as the current power supply battery, the first battery having the largest voltage value from the main battery and the auxiliary battery currently in the inserted state, and supply power to the terminal through the current power supply battery.
  • the power supply device is a device based on the foregoing power supply method, and the specific implementation process thereof may be referred to the foregoing description, and details are not described herein again.
  • the device based on the method also has a corresponding technical effect.
  • the above apparatus further includes:
  • a second detecting module configured to detect an auxiliary battery installation state of the auxiliary battery mounting position, and determine an auxiliary battery of the auxiliary battery mounting position Whether the installation status has changed;
  • a first selecting module configured to periodically acquire the voltage of the main battery and the voltage of the auxiliary battery currently in the inserted state without changing the installation state of the auxiliary battery of the auxiliary battery mounting position, and from the main battery and currently in the Selecting a second battery having the largest voltage value among the auxiliary batteries in the inserted state;
  • a first determining module configured to determine, when the second battery and the first battery are different batteries, whether a difference between a voltage of the second battery and a voltage of the first battery is greater than a preset supply voltage difference threshold;
  • the second power supply module is configured to determine that the second battery is the current power supply battery when the difference between the voltage of the second battery and the voltage of the first battery is greater than the voltage difference threshold, and supply power to the terminal through the current power supply battery.
  • a register is further disposed in the terminal, wherein
  • the first power supply module is specifically configured to select a first battery having the largest voltage value and a third battery whose voltage value is second only to the first battery from the main battery and the auxiliary battery currently in the inserted state, and the information of the first battery and the third
  • the battery information is stored in the register, and the first battery is used as the current power supply battery, and the terminal is powered by the current power supply battery;
  • the device also includes:
  • a third power supply module configured to: if the current power supply battery is the first auxiliary battery, and detect that the first auxiliary battery is pulled out, the integrated circuit selects the third battery according to the information stored in the register, and uses the third battery to the terminal Powering, and obtaining the voltage of the main battery and the voltage of the auxiliary battery currently in the inserted state, selecting the fourth battery whose voltage value is second only to the third battery, and replacing the information of the first battery stored in the register with the fourth battery information.
  • the above apparatus further includes;
  • a first information updating module configured to: if the second auxiliary battery that is not the current power supply battery is detected to be pulled out from the auxiliary battery installation position, or the second auxiliary battery is inserted into the auxiliary battery installation position, obtain the voltage of the main battery and the current The voltage of the auxiliary battery in the inserted state, and the fifth battery having the largest voltage value and the sixth battery having the voltage value next to the fifth battery are selected from the main battery and the auxiliary battery currently in the inserted state, and stored in the register The information is replaced with the information of the fifth battery and the information of the sixth battery;
  • a second determining module configured to determine, when the fifth battery and the current power supply battery are different batteries, whether the difference between the voltage of the fifth battery and the current power supply battery is greater than a supply voltage difference threshold;
  • the fourth power supply module is configured to supply power to the terminal through the fifth battery when the difference between the voltage of the fifth battery and the voltage of the current power supply battery is greater than the voltage difference threshold.
  • the above apparatus further includes;
  • the first charging module is configured to select, as the current rechargeable battery, the seventh battery with the smallest voltage value from the main battery and the auxiliary battery currently in the inserted state, and charge the current rechargeable battery.
  • the above apparatus further includes:
  • the third detecting module is configured to detect an auxiliary battery installation state of the auxiliary battery installation position, and determine whether the installation state of the auxiliary battery of the auxiliary battery installation position changes;
  • a second selecting module configured to periodically acquire a voltage of the main battery and a voltage of the auxiliary battery currently in the inserted state, and select an eighth battery having the smallest voltage value from the main battery and the auxiliary battery currently in the inserted state;
  • a third determining module configured to determine, when the seventh battery and the eighth battery are different batteries, whether a difference between a voltage of the seventh battery and a voltage of the eighth battery is greater than a preset charging differential threshold;
  • the second charging module is configured to determine that the eighth battery is the current rechargeable battery and charge the current rechargeable battery when the difference between the voltage of the seventh battery and the voltage of the eighth battery is greater than the charging differential threshold.
  • a register is further disposed in the terminal, wherein
  • the first charging module is specifically configured to select a seventh battery having the smallest voltage value and a ninth battery having the second smallest voltage value from the main battery and the auxiliary battery currently in the inserted state, and the information of the seventh battery and the information of the ninth battery All are stored in the register, the seventh battery is used as the current rechargeable battery, and the current rechargeable battery is charged;
  • the device also includes:
  • a second information updating module configured to stop charging when detecting that the third auxiliary battery being charged is pulled out from the auxiliary battery mounting position, and obtain a voltage of the main battery and a voltage of the auxiliary battery currently in an inserted state, and select a voltage The value is only greater than the tenth battery of the seventh battery, and the information of the ninth battery stored in the register is replaced with the information of the tenth battery.
  • the above apparatus further includes:
  • a third information updating module configured to remove the fourth auxiliary battery that is not the current rechargeable battery from the auxiliary battery installation position or When the fourth auxiliary battery is inserted into the auxiliary battery mounting position, the voltage of the main battery and the voltage of the auxiliary battery currently in the inserted state are obtained, and the eleventh battery having the smallest voltage value is selected from the main battery and the auxiliary battery currently in the inserted state. And the voltage value is only greater than the twelfth battery of the eleventh battery, and the information stored in the register is replaced with the information of the eleventh battery and the twelfth battery;
  • a fourth determining module configured to determine whether a difference between a voltage of the current rechargeable battery and a voltage of the eleventh battery is greater than a charging differential threshold when the eleventh battery and the current rechargeable battery are different batteries;
  • a third charging module configured to charge the eleventh battery when a difference between a current voltage of the rechargeable battery and a voltage of the eleventh battery is greater than a charging differential threshold.
  • the above apparatus further includes:
  • a fourth charging module configured to: when the voltage of the main battery and the auxiliary battery currently in the inserted state reach the respective constant voltage charging voltages, and the constant voltage charging voltage of the main battery and the auxiliary battery currently in the inserted state are uniform At the same time, both the main battery and the auxiliary battery currently in the inserted state are used as the current rechargeable battery, and the main battery and the auxiliary battery currently in the inserted state are charged at a constant voltage.
  • the above apparatus further includes:
  • the sequential arrangement module is configured to: when the voltage of the main battery and the voltage of the auxiliary battery currently in the inserted state reach the respective constant voltage charging voltages, and the constant voltage charging voltages of the batteries are not completely the same, according to the constant voltage charging voltage Differently, the main battery and the auxiliary battery currently in the inserted state are divided into a plurality of battery packs, and the plurality of battery packs are arranged according to a preset charging sequence, wherein the constant voltage charging voltages of the respective batteries in the same battery pack are different. the same;
  • the sequential charging module is configured to sequentially use each battery pack as the current rechargeable battery pack according to the charging sequence, and charge each battery in the current rechargeable battery pack.
  • the sequential charging module comprises:
  • a fifth charging module configured to charge each battery in the current rechargeable battery pack
  • a fourth detecting module configured to detect whether the current rechargeable battery pack is the last battery pack when the charging current of each battery in the current rechargeable battery pack is less than the respective charging cutoff current
  • the execution module is configured to end charging all the battery packs when the current rechargeable battery pack is the last set of battery packs; otherwise, charge each battery in the next set of battery packs.
  • the power supply device provided by the embodiment of the present invention can ensure that the battery that supplies power to the terminal is always the most abundant battery in the available battery, and finally the normal operation of the terminal is better ensured.

Landscapes

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

Abstract

一种供电方法及装置。所述方法包括:检测辅助电池安装位的辅助电池安装状态,确定当前处于插入状态的辅助电池(S201);获取这些电池的电压;选取电压值最大的第一电池作为当前的供电电池,通过当前的供电电池向终端供电(S203)。现有技术中,终端仅有一块电池,即使该电池的电量非常低,该终端也只能由这块电池来供电,这样会影响到该产品的正常使用。在所述供电方法及装置中,终端可以安装有一块主体电池和多块可插拔的辅助电池,并且,该终端可以由这些电池中电压值最大的第一电池来供电,这样可以较好地保证供电电池的选取方案始终为最优的方案,即向终端供电的电池始终为可用的电池中电量最为充足的电池,最终较好地保证了终端的正常工作。

Description

一种供电方法及装置
本申请要求了申请日为2015年12月31日,申请号为201511032684.4,发明名称为“一种供电方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及电能存储技术领域,特别是涉及一种供电方法及装置。
背景技术
对于可穿戴类产品而言,例如,手表,其内部一般仅具有一块电池,该电池为手表供电,以保证手表的正常工作。但是,一旦该电池的电压不足以满足手表对电量的需求,即该电池的续航能力不足,就会导致该产品无法正常工作。
发明内容
本发明实施例的目的在于提供一种供电方法和装置,以解决现有的可穿戴类设备容易由于电量不足而无法正常工作的问题。具体技术方案如下:
一方面,本发明实施例提供了一种供电方法,应用于终端,所述终端设置有主体电池安装位和至少一个辅助电池安装位,所述主体电池安装位安装有主体电池,所述辅助电池安装位用于安装可插拔的辅助电池,所述方法包括如下步骤:
检测所述辅助电池安装位的辅助电池安装状态,确定当前处于插入状态的辅助电池;
获取所述主体电池的电压和当前处于插入状态的辅助电池的电压;
从所述主体电池和当前处于插入状态的辅助电池中选取电压值最大的第一电池作为当前的供电电池,通过当前的供电电池向所述终端供电。
进一步地,上述方法中,所述从所述主体电池和当前处于插入状态的辅助电池中选取电压值最大的第一电池作为当前的供电电池,通过当前的供电电池向所述终端供电后,所述方法还包括:
检测所述辅助电池安装位的辅助电池安装状态,判断所述辅助电池安装位的辅助电池的安装状态是否有变化;
若无变化,周期性地获取所述主体电池的电压和当前处于插入状态的辅助电池的电压,并从所述主体电池和当前处于插入状态的辅助电池中选取电压值最大的第二电池;
在所述第二电池与所述第一电池为不同电池的情况下,判断所述第二电池的电压与所述第一电池的电压的差值是否大于预设的供电压差阈值;
若为是,确定所述第二电池为当前的供电电池,并通过当前的供电电池向所述终端供电。
进一步地,上述方法中,所述终端内还设置有寄存器,其中,
所述从所述主体电池和当前处于插入状态的辅助电池中选取电压值最大的第一电池作为当前的供电电池,通过当前的供电电池向所述终端供电,包括:
从所述主体电池和当前处于插入状态的辅助电池中选取电压值最大的第一电池和电压值仅次于所述第一电池的第三电池,将所述第一电池的信息和所述第三电池的信息均存储于所述寄存器内,并将所述第一电池作为当前的供电电池,通过当前的供电电池向所述终端供电;
所述检测所述辅助电池安装位的辅助电池安装状态,判断所述辅助电池安装位的辅助电池的安装状态是否有变化后,所述方法还包括:
若当前的供电电池为第一辅助电池,且检测到所述第一辅助电池被拔出时,根据所述寄存器内存储的信息,选取所述第三电池,通过所述第三电池向所述终端供电,并获取所述主体电池的电压和当前处于插入状态的辅助电池的电压,从中选取电压值仅次于所述第三电池的第四电池,将所述寄存器内存储的第一电池的信息替换为所述第四电池的信息。
进一步地,上述方法中,所述检测所述辅助电池安装位的辅助电池安装状态,判断所述辅助电池安装位的辅助电池的安装状态是否有变化后,所述方法还包括:
若检测到非当前供电电池的第二辅助电池被从辅助电池安装位中拔出,或者第二辅助电池被插入辅助电池安装位中,获取所述主体电池的电压和当前处于插入状态的辅助电池的电压,并从所述主体电池和当前处于插入状态的辅助电池中选取电压值最大的第五电池和电压值仅次于所述第五电池的第六电 池,并将所述寄存器内存储的信息替换为所述第五电池的信息和第六电池的信息;
在所述第五电池与当前的供电电池为不同电池的情况下,判断所述第五电池的电压与当前的供电电池的电压的差值是否大于所述供电压差阈值;
若为是,通过所述第五电池向所述终端供电。
进一步地,上述方法中,所述获取所述主体电池的电压和当前处于插入状态的辅助电池的电压后,所述方法还包括;
从所述主体电池和当前处于插入状态的辅助电池中选取电压值最小的第七电池作为当前的充电电池,并向当前的充电电池充电。
进一步地,上述方法中,所述选取电压值最小的第七电池作为当前的充电电池,并向当前的充电电池充电后,所述方法还包括:
检测所述辅助电池安装位的辅助电池安装状态,判断所述辅助电池安装位的辅助电池的安装状态是否有变化;
若无变化,周期性地获取所述主体电池的电压和当前处于插入状态的辅助电池的电压,并从所述主体电池和当前处于插入状态的辅助电池中选取电压值最小的第八电池;
在所述第七电池与所述第八电池为不同电池的情况下,判断所述第七电池的电压与所述第八电池的电压的差值是否大于预设的充电压差阈值;
若为是,确定所述第八电池为当前的充电电池,并向当前的充电电池充电。
进一步地,上述方法中,所述终端内还设置有寄存器,其中,
所述从所述主体电池和当前处于插入状态的辅助电池中选取电压值最小的第七电池作为当前的充电电池,并向当前的充电电池充电,包括:
从所述主体电池和当前处于插入状态的辅助电池中选取电压值最小的第七电池和电压值第二小的第九电池,将所述第七电池的信息和所述第九电池的信息均存储于所述寄存器内,将所述第七电池作为当前的充电电池,并向当前的充电电池充电;
所述检测所述辅助电池安装位的辅助电池安装状态,判断所述辅助电池安装位的辅助电池的安装状态是否有变化后,所述方法还包括;
若检测到正在充电的第三辅助电池被从辅助电池安装位拔出时,停止充电,并获取所述主体电池的电压和当前处于插入状态的辅助电池的电压,选取电压值仅大于所述第七电池的第十电池,并将所述寄存器内存储的第九电池的信息替换为所述第十电池的信息。
进一步地,上述方法中,所述检测所述辅助电池安装位的辅助电池安装状态,判断所述辅助电池安装位的辅助电池的安装状态是否有变化后,所述方法还包括;
若检测到非当前充电电池的第四辅助电池被从辅助电池安装位中拔出或者第四辅助电池插入辅助电池安装位中时,获取所述主体电池的电压和当前处于插入状态的辅助电池的电压,并从所述主体电池和当前处于插入状态的辅助电池中选取电压值最小的第十一电池和电压值仅大于所述第十一电池的第十二电池,并将所述寄存器内存储的信息替换为所述第十一电池和所述第十二电池的信息;
在所述第十一电池与当前的充电电池为不同电池的情况下,判断当前的充电电池的电压与所述第十一电池的电压的差值是否大于所述充电压差阈值;
若为是,向所述第十一电池充电。
进一步地,上述方法中,所述若为是,确定所述第八电池为当前的充电电池,并向当前的充电电池充电后,所述方法还包括:
当所述主体电池的电压和当前处于插入状态的辅助电池的电压均达到各自的恒压充电电压,并且,所述主体电池和当前处于插入状态的辅助电池的恒压充电电压均相同时,将所述主体电池和当前处于插入状态的辅助电池均作为当前的充电电池,并向所述主体电池和当前处于插入状态的辅助电池恒压充电。
进一步地,上述方法中,所述若为是,确定所述第八电池为当前的充电电池,并向当前的充电电池充电后,所述方法还包括:
当所述主体电池的电压和当前处于插入状态的辅助电池的电压均达到各自的恒压充电电压,并且,各电池的恒压充电电压不完全相同时,按照恒压充电电压的不同,将所述主体电池和当前处于插入状态的辅助电池分为多个电池组,并将多个电池组按照预设的充电顺序排列,其中,同一个电池组内的各个电池的恒压充电电压均相同;
按照所述充电顺序,依次将各电池组作为当前的充电电池组,并对当前的充电电池组内的各电池进行充电。
进一步地,上述方法中,所述按照所述充电顺序,依次将各电池组作为当前的充电电池组,并对当前的充电电池组内的各电池进行充电,包括:
对当前的充电电池组内的各电池进行充电;
当当前的充电电池组内的各电池的充电电流均小于各自的充电截止电流时,检测当前的充电电池组是否为最后一组电池组;
如果是,则结束对所有电池组的充电,如果不是,则对下一组电池组内的各电池进行充电。
另一方面,本发明实施例还提供了一种供电装置,应用于终端,所述终端设置有主体电池安装位和至少一个辅助电池安装位,所述主体电池安装位安装有主体电池,所述辅助电池安装位用于安装可插拔的辅助电池,所述装置包括:
第一检测模块,用于检测所述辅助电池安装位的辅助电池安装状态,确定当前处于插入状态的辅助电池;
第一获取模块,用于获取所述主体电池的电压和当前处于插入状态的辅助电池的电压;
第一供电模块,用于从所述主体电池和当前处于插入状态的辅助电池中选取电压值最大的第一电池作为当前的供电电池,通过当前的供电电池向所述终端供电。
进一步地,上述装置还包括:
第二检测模块,用于检测所述辅助电池安装位的辅助电池安装状态,判断所述辅助电池安装位的辅助电池的安装状态是否有变化;
第一选取模块,用于在所述辅助电池安装位的辅助电池的安装状态无变化的情况下,周期性地获取所述主体电池的电压和当前处于插入状态的辅助电池的电压,并从所述主体电池和当前处于插入状态的辅助电池中选取电压值最大的第二电池;
第一判断模块,用于在所述第二电池与所述第一电池为不同电池的情况下,判断所述第二电池的电压与所述第一电池的电压的差值是否大于预设的供电压差阈值;
第二供电模块,用于在所述第二电池的电压与所述第一电池的电压的差值大于所述供电压差阈值时,确定所述第二电池为当前的供电电池,并通过当前的供电电池向所述终端供电。
进一步地,上述装置中,所述终端内还设置有寄存器,其中,
所述第一供电模块具体用于从所述主体电池和当前处于插入状态的辅助电池中选取电压值最大的第一电池和电压值仅次于所述第一电池的第三电池,将所述第一电池的信息和所述第三电池的信息均存储于所述寄存器内,并将所述第一电池作为当前的供电电池,通过当前的供电电池向所述终端供电;
所述装置还包括:
第三供电模块,用于若当前的供电电池为第一辅助电池,且检测到所述第一辅助电池被拔出时,根据所述寄存器内存储的信息,选取所述第三电池,通过所述第三电池向所述终端供电,并获取所述主体电池的电压和当前处于插入状态的辅助电池的电压,从中选取电压值仅次于所述第三电池的第四电池,将所述寄存器内存储的第一电池的信息替换为所述第四电池的信息。
进一步地,上述装置还包括:
第一信息更新模块,用于若检测到非当前供电电池的第二辅助电池被从辅助电池安装位中拔出,或者第二辅助电池被插入辅助电池安装位中,获取所述主体电池的电压和当前处于插入状态的辅助电池的电压,并从所述主体电池和当前处于插入状态的辅助电池中选取电压值最大的第五电池和电压值仅次于所述第五电池的第六电池,并将所述寄存器内存储的信息替换为所述第五电池的信息和第六电池的信息;
第二判断模块,用于在所述第五电池与当前的供电电池为不同电池的情况下,判断所述第五电池的电压与当前的供电电池的电压的差值是否大于所述供电压差阈值;
第四供电模块,用于在所述第五电池的电压与当前的供电电池的电压的差值大于所述供电压差阈值时,通过所述第五电池向所述终端供电。
进一步地,上述装置还包括;
第一充电模块,用于从所述主体电池和当前处于插入状态的辅助电池中选取电压值最小的第七电池作为当前的充电电池,并向当前的充电电池充电。
进一步地,上述装置还包括:
第三检测模块,用于检测所述辅助电池安装位的辅助电池安装状态,判断所述辅助电池安装位的辅助电池的安装状态是否有变化;
第二选取模块,用于周期性地获取所述主体电池的电压和当前处于插入状态的辅助电池的电压,并从所述主体电池和当前处于插入状态的辅助电池中选取电压值最小的第八电池;
第三判断模块,用于在所述第七电池与所述第八电池为不同电池的情况下,判断所述第七电池的电压与所述第八电池的电压的差值是否大于预设的充电压差阈值;
第二充电模块,用于在所述第七电池的电压与所述第八电池的电压的差值大于所述充电压差阈值时,确定所述第八电池为当前的充电电池,并向当前的充电电池充电。
进一步地,上述装置中,所述终端内还设置有寄存器,其中,
所述第一充电模块具体用于从所述主体电池和当前处于插入状态的辅助电池中选取电压值最小的第七电池和电压值第二小的第九电池,将所述第七电池的信息和所述第九电池的信息均存储于所述寄存器内,将所述第七电池作为当前的充电电池,并向当前的充电电池充电;
所述装置还包括:
第二信息更新模块,用于若检测到正在充电的第三辅助电池被从辅助电池安装位拔出时,停止充电,并获取所述主体电池的电压和当前处于插入状态的辅助电池的电压,选取电压值仅大于所述第七电池的第十电池,并将所述寄存器内存储的第九电池的信息替换为所述第十电池的信息。
进一步地,上述装置还包括:
第三信息更新模块,用于若检测到非当前充电电池的第四辅助电池被从辅助电池安装位中拔出或者第四辅助电池插入辅助电池安装位中时,获取所述主体电池的电压和当前处于插入状态的辅助电池的电压,并从所述主体电池和当前处于插入状态的辅助电池中选取电压值最小的第十一电池和电压值仅大于所述第十一电池的第十二电池,并将所述寄存器内存储的信息替换为所述第十一电池和所述第十二电池的信息;
第四判断模块,用于在所述第十一电池与当前的充电电池为不同电池的情况下,判断当前的充电电池的电压与所述第十一电池的电压的差值是否大于所述充电压差阈值;
第三充电模块,用于在当前的充电电池的电压与所述第十一电池的电压的差值大于所述充电压差阈值时,向所述第十一电池充电。
进一步地,上述装置还包括:
第四充电模块,用于当所述主体电池的电压和当前处于插入状态的辅助电池的电压均达到各自的恒压充电电压,并且,所述主体电池和当前处于插入状态的辅助电池的恒压充电电压均相同时,将所述主体电池和当前处于插入状态的辅助电池均作为当前的充电电池,并向所述主体电池和当前处于插入状态的辅助电池恒压充电。
进一步地,上述装置还包括:
顺序排列模块,用于当所述主体电池的电压和当前处于插入状态的辅助电池的电压均达到各自的恒压充电电压,并且,各电池的恒压充电电压不完全相同时,按照恒压充电电压的不同,将所述主体电池和当前处于插入状态的辅助电池分为多个电池组,并将多个电池组按照预设的充电顺序排列,其中,同一个电池组内的各个电池的恒压充电电压均相同;
顺序充电模块,用于按照所述充电顺序,依次将各电池组作为当前的充电电池组,并对当前的充电电池组内的各电池进行充电。
进一步地,上述装置,所述顺序充电模块包括:
第五充电模块,用于对当前的充电电池组内的各电池进行充电;
第四检测模块,用于当当前的充电电池组内的各电池的充电电流均小于各自的充电截止电流时,检测当前的充电电池组是否为最后一组电池组;
执行模块,用于在当前的充电电池组为最后一组电池组时,结束对所有电池组的充电,否则,对下一组电池组内的各电池进行充电。
本发明实施例提供了一种供电方法及装置。其中,该供电方法包括如下步骤:检测辅助电池安装位的辅助电池安装状态,确定当前处于插入状态的辅助电池;获取主体电池的电压和当前处于插入状态的辅助电池的电压;从主体电池和当前处于插入状态的辅助电池中选取电压值最大的第一电池作为当前的供电电池,通过当前的供电电池向终端供电。可以看出,现有技术中,终端,例如手表仅具有一块电池, 即使该电池的电量非常低,该终端也只能由这块电池来供电,这样很有可能会由于该电池的续航能力不足而影响到该产品的正常使用。相比较而言,本发明实施例中,终端可以安装有一块主体电池和多块可插拔的辅助电池,并且,该终端可以由主体电池和当前处于插入状态的辅助电池中电压值最大的第一电池来供电,这样可以较好地保证供电电池的选取方案始终为最优的方案,即向终端供电的电池始终为可用的电池中电量最为充足的电池,最终较好地保证了终端的正常工作。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为实现本发明实施例提供的供电方法的电路的结构示意图。
图2为本发明实施例提供的供电方法的流程图。
图3为本发明实施例提供的供电方法的又一流程图。
图4为本发明实施例提供的供电方法的又一流程图。
图5为本发明实施例提供的供电方法的又一流程图。
图6为本发明实施例提供的供电装置的结构框图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
供电方法实施例:
本发明实施例提供了一种供电方法。其中,该供电方法可以应用于终端。该终端设置有主体电池安装位和至少一个辅助电池安装位,主体电池安装位安装有主体电池,辅助电池安装位用于安装可插拔的辅助电池。本实施例中,该终端可以为一可穿戴设备,例如手表型可穿戴设备等,辅助电池安装位可以设置于该手表型可穿戴设备的表带上。具体实施时,辅助电池安装位的数量可以为一个、两个或者多个,其具体数量可以根据实际情况来确定,本实施例对此不做任何限定。
参见图1,图中示出了实现本发明实施例提供的供电方法的电路的一种结构示意图。如图1所示,该电路中具有控制器1和多个电路单元。每个电路单元中都具有电池安装位3、二极管4、第一开关5和第二开关6,电池安装位3、二极管4和第一开关5依次串联,第二开关6与二极管4并联,并且,可以认为最靠近控制器1的电路单元中的电池安装位3为主体电池安装位,该主体电池安装位中安装有主体电池,其余的电路单元中的电池安装位3均为辅助电池安装位,该辅助电池安装位用于安装可插拔的非主体电池,即辅助电池,当然也可以认为最靠近控制器1的电路单元中的电池安装位3为辅助电池安装位,其余电路单元中的某一个电池安装位3为主体电池安装位,本实施例对此不做任何限定。具体实施时,二极管4可以为肖特基二极管。下述实施例均以图1中的电路图为基础对本发明实施例提供的供电方法进行说明。
参见图2,图中示出了本发明实施例提供的供电方法的流程图。如图2所示,该供电方法包括如下步骤:
步骤S201,检测辅助电池安装位的辅助电池安装状态,确定当前处于插入状态的辅助电池。
其中,检测辅助电池安装位的辅助电池安装状态的操作可以通过控制器1来实现。本实施例中,当辅助电池插入或拔出辅助电池安装位时,该辅助电池安装位的ID引脚的电平信号将会发生变化。具体地,当辅助电池插入到某一辅助电池安装位时,该辅助电池安装位的ID引脚的电平信号将会由高到低;相反,当辅助电池从某一辅助电池安装位拔出时,该辅助电池安装位的ID引脚的电平信号将会由低到高。这样,控制器1根据辅助电池安装位的ID引脚的电平信号的变化即可获知辅助电池安装位的辅助电池的安装状态,从而确定当前状态下哪些辅助电池安装位中安装有辅助电池,哪些辅助电池安装位未安装辅助电池,进而确定了当前有哪些辅助电池处于插入状态。
步骤S202,获取主体电池的电压和当前处于插入状态的辅助电池的电压。
具体地,主体电池的电压和当前处于插入状态的辅助电池的电压的获取操作也可以通过控制器1来实现。
步骤S203,从主体电池和当前处于插入状态的辅助电池中选取电压值最大的第一电池作为当前的供电电池,通过当前的供电电池向终端供电。一般而言,对于图1中的电路来说,各电路单元中的第一开关5通常处于闭合状态。具体实施时,控制器1在获取了主体电池的电压和当前处于插入状态的辅助电池的电压后,控制器1会选取电压值最大的第一电池,将第一电池作为当前的供电电池。当通过第一电池向终端供电时,第一电池有两种可选的供电方案:一种供电方案是第二开关6断开,电流依次流经第一电池所在的电池安装位3、二极管4和第一开关5以向终端供电,此时二极管4上会存在着0.3V左右的压降,这种情况可以简单理解为:还未真正开始供电的情况下电路单元的电压已有了损失;另一种供电方案是第二开关6闭合,这时第二开关6将二级管4短路,电流依次流经安装有第一电池的电池安装位3、第二开关6和第一开关5以向终端供电,第二开关6上不存在压降。很明显,对于各电路单元而言,以上两种供电方式中,由于后者不存在二极管4上的压降,故后者是较佳的供电方案,其供电效率更高。因此,当控制器1选取第一电池之后,控制器1会将第一电池所在的电路单元上的第二开关6置于闭合状态,而其他可用的电路单元(即除了第一电池所在的电路单元外,电池安装位3中安装有电池的电路单元)上的第二开关6则置于断开状态。
下面以一个具体的例子来说明图1中的电路的具体工作原理。
假如图1中最靠近控制器1的电路单元中的电池安装位3为主体电池安装位,且该主体电池安装位安装有主体电池,另外两个电路单元中的电池安装位为辅助电池安装位,且控制器1已经检测到这两个辅助电池安装位中均安装有辅助电池。接下来,控制器1会获取主体电池的电压和两个辅助电池的电压,假设主体电池的电压为3.5V,离控制器1最远的辅助电池的电压为3.4V,另一个辅助电池的电压为3.8V,这时,控制器1会选出电压值为3.8V的辅助电池,将该辅助电池作为当前的供电电池,控制器1会控制电压值为3.8V的辅助电池所在的电路单元上的第二开关6闭合,而另外两个电路单元上的第二开关6处于断开状态,这样电压值为3.8V的辅助电池向终端供电,同时,由于电压值为3.8V的辅助电池的电压值最大,故该辅助电池所在的电路单元将会抑制另外的两个电路单元,从而使另外的两个电路单元无法向终端供电。随着电压值为3.8V的辅助电池的不断供电,该辅助电池的电压可能会由3.8V减少到3.05V,由于二极管4上存在着0.3V左右的压降,主体电池所在的电路单元可以向终端提供3.2V的电压,而另一个辅助电池所在的电路单元可以向终端提供3.1V的电压,可以看出,主体电池所在的电路单元和另一个辅助电池所在的电路单元可以向终端提供的电压均大于当前供电电池的电压,此时三个电池可以一同向终端供电,以保证终端的正常工作。
可以看出,现有技术中,终端,例如手表仅具有一块电池,即使该电池的电量非常低,该终端也只能由这块电池来供电,这样很有可能会由于该电池的续航能力不足而影响到该产品的正常使用。相比较而言,本发明实施例中,终端可以安装有一块主体电池和多块可插拔的辅助电池,并且,该终端可以由主体电池和当前处于插入状态的辅助电池中电压值最大的第一电池来供电,这样可以较好地保证供电电池的选取方案始终为最优的方案,即向终端供电的电池始终为可用的电池中电量最为充足的电池,最终较好地保证了终端的正常工作。
参见图3,图中示出了本发明实施例提供的供电方法的又一流程图。如图3所示,该方法包括如下步骤:
步骤S301,检测辅助电池安装位的辅助电池安装状态,确定当前处于插入状态的辅助电池。
步骤S302,获取主体电池的电压和当前处于插入状态的辅助电池的电压。
步骤S303,从主体电池和当前处于插入状态的辅助电池中选取电压值最大的第一电池作为当前的供电电池,通过当前的供电电池向终端供电。
其中,步骤S301至步骤S303与步骤S201至步骤S203相同,其具体实施过程参照上述说明即可,在此不再赘述。
步骤S304,检测辅助电池安装位的辅助电池安装状态,判断辅助电池安装位的辅助电池的安装状态是否有变化,若无变化,执行步骤S305。
具体地,当控制器1检测到至少一个辅助电池安装位的ID引脚的电平信号发生变化时,即说明辅助电池安装位的辅助电池的安装状态发生了变化,反之,则说明辅助电池安装位的辅助电池的安装状态未发生变化。
步骤S305,周期性地获取主体电池的电压和当前处于插入状态的辅助电池的电压,并从主体电池和当前处于插入状态的辅助电池中选取电压值最大的第二电池。
其中,获取主体电池的电压和当前处于插入状态的辅助电池的电压的具体周期值可以为10秒,当然,上述周期值的具体取值并限于10秒,具体可以根据实际情况来确定,本实施对此不做任何限定。
本实施例中,在辅助电池安装位的辅助电池的安装状态未发生变化的情况下,随着第一电池不断地向终端供电,第一电池的电压会逐渐减小。当第一电池的供电时间较短、电量消耗较少时,根据周期性获取的主体电池的电压以及当前处于插入状态的辅助电池的电压,可能会发现第一电池仍然为电压值最大的电池,此时第一电池和第二电池为同一块电池;当第一电池的供电时间较长、电量消耗较大时,可能会发现第一电池将不再是电压值最大的电池,此时第一电池和第二电池不是同一块电池。
步骤S306,在第二电池与第一电池为不同电池的情况下,判断第二电池的电压与第一电池的电压的差值是否大于预设的供电压差阈值,若为是,执行步骤S307。
步骤S307,确定第二电池为当前的供电电池,并通过当前的供电电池向终端供电。
其中,供电压差阈值可以为一个常数,例如0.3V,当然,供电压差阈值的取值并不限于0.3V,具体可以根据实际情况来确定,本实施例对此不做任何限定。
本实施例中,当第二电池的电压与第一电池的电压的差值大于供电压差阈值时,例如两者的差值大于0.3V时,则说明第一电池在供电过程中已经消耗了较多的电量,此时选用第一电池来进行供电已经不是最优的供电方案了,因此可以选用第二电池向终端供电。当通过第二电池向终端进行供电时,第二电池也有两种可选的供电方案,具体可以参照通过第一电池向终端供电的两种供电方案,在此不再赘述。此时,控制器1可以控制第二电池所在的电路单元中的第二开关6闭合,同时控制其余电池所在的电路单元中的第二开关6断开,这样,第二电池将会以较高的供电效率向终端供电。
可以看出,本发明实施例提供的供电方法可以保证向终端供电的电池始终为电压值较大的电池,从而可靠地保证了终端的正常工作。
上述实施例中,由于辅助电池均为可插拔的电池,各辅助电池可以随时从辅助电池安装位拔出或者插入到辅助电池安装位中,当任一辅助电池从辅助电池安装位中拔出或者插入到辅助电池安装位中时,步骤S304即会判定辅助电池安装位的辅助电池的安装状态发生了变化。一般而言,辅助电池安装位的辅助电池的安装状态发生变化可以分为两种不同的情况。下面分别对这两种情况的具体实施过程进行说明。
第一种情况:当前的供电电池为辅助电池,且该辅助电池被从辅助电池安装位中拔出。
这时,该辅助电池将无法继续为终端供电,通常情况下,控制器1需要根据其内部预先定义的软件程序,从可以用于供电的电池,即主体电池和当前处于插入状态的辅助电池中另外选取一个电池来为终端供电,但是由于控制器1根据软件定义的方法选择供电电池时通常要耗费较长的时间,在选择电池的这段时间内,终端将无法正常地工作。
为了较好地解决这个问题,终端内还可以设置有寄存器。具体地,如图1所示,该电路中还可以具有一个集成电路2,该集成电路2与控制器1相连接,寄存器可以位于集成电路2内。具体地,集成电路2可以具有集成电路控制器和数字逻辑控制电路。其中,从主体电池和当前处于插入状态的辅助电池中选取电压值最大的第一电池作为当前的供电电池,通过当前的供电电池向终端供电,包括:
从主体电池和当前处于插入状态的辅助电池中选取电压值最大的第一电池和电压值仅次于第一电池的第三电池,将第一电池的信息和第三电池的信息均存储于寄存器内,并将第一电池作为当前的供电电池,通过当前的供电电池向终端供电。
具体地,第一电池的信息可以包括第一电池的电压和第一电池所在的电路单元。类似地,第三电池的信息可以包括第三电池的电压和第三电池所在的电路单元。
此时,检测辅助电池安装位的辅助电池安装状态,判断辅助电池安装位的辅助电池的安装状态是否有变化后,该方法还可以包括如下步骤:
若当前的供电电池为第一辅助电池,且检测到第一辅助电池被拔出时,根据寄存器内存储的信息,选取第三电池,通过第三电池向终端供电,并获取主体电池的电压和当前处于插入状态的辅助电池的电压,从中选取电压值仅次于第三电池的第四电池,将寄存器内存储的第一电池的信息替换为第四电池的信息。
其中,获取主体电池的电压和当前处于插入状态的辅助电池的电压,从中选取电压值仅次于第三电池的第四电池,将寄存器内存储的第一电池的信息替换为第四电池的信息的操作均可以通过控制器1来实现。当控制器1检测到正在供电的第一辅助电池突然被拔出时,此时第一辅助电池所在的电路单元就 不可能向终端供电了,控制器1会根据寄存器内存储的信息,选取当前状态下可向终端供电的电路单元中最优的电路单元,即第三电池所在的电路单元向终端供电。
可以看出,由于第一辅助电池被拔出时,控制器1可以直接根据寄存器内存储的信息,直接选择第三电池来向终端供电,该过程是以纯硬件的方式实现的,不需要通过软件操作来实现,故该过程所需花费的时间非常短,远小于通过控制器1内部软件定义的程序来选择另一供电电池所需花费的时间,从而有效地保证了终端的正常工作。
第二种情况:辅助电池被从辅助电池安装位中拔出或者插入到辅助电池安装位中,并且,该辅助电池非当前的供电电池。
这时,第一电池仍然可以向终端正常供电,不过电压值仅次于第一电池的可能就不是第三电池。此时,检测辅助电池安装位的辅助电池安装状态,判断辅助电池安装位的辅助电池的安装状态是否有变化后,该方法还可以包括如下步骤:
若检测到非当前供电电池的第二辅助电池被从辅助电池安装位中拔出,或者第二辅助电池被插入辅助电池安装位中,获取主体电池的电压和当前处于插入状态的辅助电池的电压,并从主体电池和当前处于插入状态的辅助电池中选取电压值最大的第五电池和电压值仅次于第五电池的第六电池,并将寄存器内存储的信息替换为第五电池的信息和第六电池的信息。
具体地,第五电池的信息可以包括第五电池的电压和第五电池所在的电路单元。类似地,第六电池的信息可以包括第六电池的电压和第六电池所在的电路单元。本实施例中,通过将寄存器内存储的信息替换为第五电池的信息和第六电池的信息,可以实时地更新寄存器内存储的信息,从而使寄存器内存储的信息始终为当前可向终端供电的电池中电压值最大的两个电池。
在第五电池与当前的供电电池为不同电池的情况下,判断第五电池的电压与当前的供电电池的电压的差值是否大于供电压差阈值。
若为是,通过第五电池向终端供电。
具体地,当第二辅助电池被从辅助电池安装位中拔出时,第五电池通常就是当前的供电电池。当第二辅助电池被插入辅助电池安装位中,且第二辅助电池的电压比较大时,第五电池与当前的供电电池就不是同一块电池,若此时第二辅助电池的电压与当前的供电电池的电压的差值大于供电压差阈值,则说明此时选用第二辅助电池来进行供电才是较佳的供电方案,因此可以通过第二辅助电池所在的电路单元来进行供电。
参见图4,图中示出了本发明实施例提供的供电方法的又一流程图。如图4所示,该方法包括如下步骤:
步骤S401,检测辅助电池安装位的辅助电池安装状态,确定当前处于插入状态的辅助电池。
步骤S402,获取主体电池的电压和当前处于插入状态的辅助电池的电压。
步骤S403,从主体电池和当前处于插入状态的辅助电池中选取电压值最大的第一电池作为当前的供电电池,通过当前的供电电池向终端供电。
其中,步骤S401至步骤S403与步骤S201至步骤S203相同,其具体实施过程参照上述说明即可,在此不再赘述。
步骤S404,从主体电池和当前处于插入状态的辅助电池中选取电压值最小的第七电池作为当前的充电电池,并向当前的充电电池充电。
本实施例中,当主体电池和当前处于插入状态的辅助电池的电压值均较小时,这些电池的电压可能不足以向终端正常供电,为了保证在终端工作时,这些电池能够正常地供电,需要向这些电池进行充电。在实际充电时,可以从待充电电池中选取一个电压值最小的第七电池,并向第七电池进行充电。这样,随着充电过程的进行,第七电池的电压值将会逐渐增加,当第七电池的电压值增加到某一值时,第七电池的电压即可达到向终端正常供电的最低电压值。
参见图5,图中示出了本发明实施例提供的供电方法的又一流程图。如图5所示,该方法包括如下步骤:
步骤S501,检测辅助电池安装位的辅助电池安装状态,确定当前处于插入状态的辅助电池。
步骤S502,获取主体电池的电压和当前处于插入状态的辅助电池的电压。
步骤S503,从主体电池和当前处于插入状态的辅助电池中选取电压值最大的第一电池作为当前的供电电池,通过当前的供电电池向终端供电。
步骤S504,从主体电池和当前处于插入状态的辅助电池中选取电压值最小的第七电池作为当前的充电电池,并向当前的充电电池充电。
其中,步骤S501至步骤S504与步骤S401至步骤S404相同,其具体实施过程参照上述说明即可,在此不再赘述。
步骤S505,检测辅助电池安装位的辅助电池安装状态,判断辅助电池安装位的辅助电池的安装状态是否有变化,若无变化,执行步骤S506。
具体地,当控制器1检测到至少一个辅助电池安装位的ID引脚的电平信号发生变化时,即说明辅助电池安装位的辅助电池的安装状态发生了变化,反之,则说明辅助电池安装位的辅助电池的安装状态未发生变化。
步骤S506,周期性地获取主体电池的电压和当前处于插入状态的辅助电池的电压,并从主体电池和当前处于插入状态的辅助电池中选取电压值最小的第八电池。
其中,获取主体电池的电压和当前处于插入状态的辅助电池的电压的具体周期值可以为10秒,当然,上述周期值的具体取值并限于10秒,具体可以根据实际情况来确定,本实施对此不做任何限定。
本实施例中,在辅助电池安装位的辅助电池的安装状态未发生变化的情况下,随着第七电池不断地被充电,第七电池的电压会逐渐增大。当第七电池的充电时间较短时,根据周期性获取的主体电池的电压以及当前处于插入状态的辅助电池的电压,可能会发现第七电池仍然为电压值最小的电池,此时第七电池和第八电池为同一块电池;当第七电池的充电时间较长时,可能会发现第七电池将不再是电压值最小的电池,此时第七电池和第八电池不是同一块电池。
步骤S507,在第七电池与第八电池为不同电池的情况下,判断第七电池的电压与第八电池的电压的差值是否大于预设的充电压差阈值,若为是,执行步骤S508。
步骤S508,确定第八电池为当前的充电电池,并向当前的充电电池充电。
其中,充电压差阈值可以为一个常数,例如0.3V,当然,充电压差阈值的取值并不限于0.3V,具体可以根据时间情况来确定,本实施例对此不做任何限定。
本实施例中,当第七电池的电压和第八电池的电压的差值大于充电压差阈值时,例如两者的差值大于0.3V时,则说明第七电池已经不是电压值最小的电池,此时可以将当前的充电电池由第七电池切换为第八电池,即当前电压值最小的电池。这时,控制器1会控制第八电池所在的电路单元中的第二开关6闭合,同时控制其余电池所在的电路单元中的第二开关6断开,这样,外接电源可以以较高的效率向第八电池充电。
可以看出,本实施例可以较好地保证当前可以被充电的各电池的电压较为均衡,不会出现一个电池一直被充电,而其余电池一直处于未充电状态的情况。
上述实施例中,终端内还可以设置有一寄存器,具体地,如图1所示,该电路中还可以具有一个集成电路2,该集成电路2与控制器1相连接,寄存器可以位于该集成电路内。具体地,集成电路2内可以具有集成电路控制器和数字逻辑控制电路。其中,从主体电池和当前处于插入状态的辅助电池中选取电压值最小的第七电池作为当前的充电电池,并向当前的充电电池充电,包括:
从主体电池和当前处于插入状态的辅助电池中选取电压值最小的第七电池和电压值第二小的第九电池,将第七电池的信息和第九电池的信息均存储于寄存器内,将第七电池作为当前的充电电池,并向当前的充电电池充电。
具体地,第七电池的信息可以包括第七电池的电压和第七电池所在的电路单元。类似地,第九电池的信息可以包括第九电池的电压和第九电池所在的电路单元。
此时,检测所述辅助电池安装位的辅助电池安装状态,判断辅助电池安装位的辅助电池的安装状态是否有变化后,该方法还可以包括如下步骤;
若检测到正在充电的第三辅助电池被从辅助电池安装位拔出时,停止充电,并获取主体电池的电压和当前处于插入状态的辅助电池的电压,选取电压值仅大于第七电池的第十电池,并将寄存器内存储的第九电池的信息替换为第十电池的信息。
其中,第十电池的信息可以包括第十电池的电压和第十电池所在的电路单元。具体实施时,通过将寄存器内存储的第九电池的信息替换为第十电池的信息,可以实时地更新寄存器内存储的信息,从而使寄存器内存储的信息始终为当前可以充电的电池中电压值最小的两个电池。
进一步地,上述实施例中,检测辅助电池安装位的辅助电池安装状态,判断辅助电池安装位的辅助 电池的安装状态是否有变化后,该方法还可以包括如下步骤;
若检测到非当前充电电池的第四辅助电池被从辅助电池安装位中拔出或者第四辅助电池插入辅助电池安装位中时,获取主体电池的电压和当前处于插入状态的辅助电池的电压,并从主体电池和当前处于插入状态的辅助电池中选取电压值最小的第十一电池和电压值仅大于第十一电池的第十二电池,并将寄存器内存储的信息替换为第十一电池和第十二电池的信息。
具体地,第十一电池的信息可以包括第十一电池的电压和第十一电池所在的电路单元。类似地,第十二电池所在的电路单元可以包括第十二电池的电压和第十二电池所在的电路单元。本实施例中,通过将寄存器内存储的信息替换为第十一电池和第十二电池的信息,可以实时地更新寄存器内存储的信息,从而使寄存器内存储的信息始终为当前可充电的电池中电压值最小的两个电池。
在第十一电池与当前的充电电池为不同电池的情况下,判断当前的充电电池的电压与第十一电池的电压的差值是否大于充电压差阈值。
若为是,向第十一电池充电。
具体地,当第四辅助电池被从辅助电池安装位中拔出时,第十一电池通常就是当前的充电电池,当第四辅助电池被插入辅助电池安装位中,且第二辅助电池的电压比较小时,第十一电池与当前的充电电池就不是同一块电池,若此时当前的充电电池的电压与第十一电池的电压的差值大于充电压差阈值,则说明第十一电池才是电压值最小的电池,即最需要充电的电池,故此时可以向第十一电池所在的电路单元进行充电。
上述实施例中,步骤S508之后,该方法还可以包括:
当主体电池的电压和当前处于插入状态的辅助电池的电压均达到各自的恒压充电电压,并且,主体电池和当前处于插入状态的辅助电池的恒压充电电压均相同时,将主体电池和当前处于插入状态的辅助电池均作为当前的充电电池,并向主体电池和当前处于插入状态的辅助电池恒压充电。
上述实施例中,步骤S508之后,该方法还可以包括:
当主体电池的电压和当前处于插入状态的辅助电池的电压均达到各自的恒压充电电压,并且,各电池的恒压充电电压不完全相同时,按照恒压充电电压的不同,将主体电池和当前处于插入状态的辅助电池分为多个电池组,并将多个电池组按照预设的充电顺序排列,其中,同一个电池组内的各个电池的恒压充电电压均相同。
按照充电顺序,依次将各电池组作为当前的充电电池组,并对当前的充电电池组内的各电池进行充电。
具体地,预设的充电顺序可以为依照恒压充电电压由小到大的顺序,例如将恒压充电电压最小的电池组作为第一组充电电池组,将恒压充电电压第二小的电池组作为第二组充电电池组,将恒压充电电压第三小的电池组作为第三组充电电池组,依此类推。当然,预设的充电顺序也可以依照恒压充电电压由大到小的顺序或者是其他的排列顺序,具体可以根据实际情况来确定,本实施例对此不做任何限定。
进一步地,上述实施例中,按照充电顺序,依次将各电池组作为当前的充电电池组,并对当前的充电电池组内的各电池进行充电,包括:
对当前的充电电池组内的各电池进行充电;
当当前的充电电池组内的各电池的充电电流均小于各自的充电截止电流时,检测当前的充电电池组是否为最后一组电池组;
如果是,则结束对所有电池组的充电,如果不是,则对下一组电池组内的各电池进行充电。
具体地,充电电池组的数量可能为多个。实际充电时,首先对第一组充电电池组进行充电,若第一组充电电池组内的各电池的充电电流均小于各自的充电截止电流,则说明第一组充电电池组已充电完成,然后检测第一组充电电池组是否为最后一组充电电池组,若是,则结束充电,若不是,则对第二组充电电池组进行充电。随着第二组充电电池组的充电过程的进行,第二组充电电池组内的各电池的电量将会逐渐增加,当第二组充电电池组内的各电池的充电电流均小于各自的充电截止电流时,则说明第二组充电电池组已充电完成,然后检测第二组充电电池组是否为最后一组充电电池组,若是,则结束充电,若不是,则对第三组充电电池组进行充电。后续充电过程以此类推,在此不再赘述。
下面先对本发明实施例提供的供电方法中的放电过程进行详细的说明。
首先需要对控制器1进行初始化。具体实施时,首先将Discharging=1设置为放电标志位有效,将Charging=0设置为充电标志位无效。接着读取各辅助电池安装位的输入接口的状态,对于各辅助电池安 装位的输入接口来说,若IDm=0,则表示与该辅助电池安装位相对应的辅助电池处于插入状态,这时控制器1会控制该辅助电池安装位所在的电路单元中的GPm_CTL1=1,以将该辅助电池安装位的放电标志位设置为有效;若IDm=1,则表示与该辅助电池安装位相对应的辅助电池处于拔出状态,这时控制器1会控制该辅助电池安装位所在的电路单元中的GPm_CTL1=0,以将该辅助电池安装位的放电标志位设置为无效。接下来控制器1会将其内部的各模数转换通道与各个电池一一对应,即将GP1_ADC1与主体电池相对应,将GP2_ADC1与第一块辅助电池相对应,……,将GPn_ADC1与第n-1块辅助电池相对应,以完成控制器1的初始化。
在初始化完成之后,控制器1会获取主体电池和当前处于插入状态的辅助电池的电压值,即读取GP1_ADC1到GPn_ADC1的电池的电压值,并从中选取电压值最大的电池GPx_ADC1所在的电路单元IDx,设置GPx_CTL2=1,将GPx_ADC1的电压记为Vmax,将电压仅次于GPx_ADC1的电池所在的电路单元记录为IDx_Next,并通过GPx_ADC1所在的电路单元向终端供电,同时,集成电路2内的寄存器可以周期性地存储电路的放电状态、电压值最大的电池IDx、电压第二大的电池IDx_Next以及连接在整个电路中的电路单元。
本实施例中,控制器1内还可以具有一定时器。在选择GPx_ADC1所在的电路单元向终端供电后,控制器1会检测各IDm的值,从而根据各IDm的值是否发生变化来判断辅助电池安装位的辅助电池的安装状态是否有变化。
若各IDm的值均未发生变化,则说明没有辅助电池被插入或者拔出,此时可以控制该定时器每间隔S秒读取主体电池和当前处于插入状态的辅助电池的电压,并选取其中电压值最大的电池。随着GPx_ADC1所在的电路单元的持续供电,GPx_ADC1的电压值将会逐渐较小,到某一时刻时,当前电压值最大的电池将不再为GPx_ADC1,并且,当前电压值最大的电池与GPx_ADC1的差值将大于供电压差阈值,例如0.3V,此时可以将当前供电的电路单元由GPx_ADC1切换到电压值最大的电池所在的电路单元,以保证终端的正常工作。
若控制器1检测到任一IDm的值发生变化,则说明有辅助电池被从辅助电池安装位中拔出或插入到辅助电池安装位中。具体地,若控制器1检测到IDm发生变化的电路单元为当前的供电电池所在的电路单元,且当前正在供电的辅助电池被从辅助电池安装位中拔出时,该辅助电池将无法继续向终端供电,控制器1会根据寄存器中存储的信息,选取电压第二大的电池IDx_Next所在的电路单元向终端供电,以保证终端的正常工作,同时更新寄存器内的信息,以使寄存器内存储的信息始终为当前状态下电压值最大的电池IDx、电压第二大的电池IDx_Next以及连接在整个电路中的电路单元。
若IDm发生变化的电路单元为非当前供电电池所在的电路单元,此时寄存器内部的信息会得到更新,以使其内部存储的始终为当前状态下可向终端供电的电池中电压值最大的两个电池的信息,接着,判断电压值最大的电池的电压与当前的供电电池的电压的差值是否大于供电压差阈值,即0.3V,若是,通过电压值最大的电池所在的电路单元向终端供电,从而保证供电的电池始终为电量最为充足的电池。
接下来对本发明实施例提供的供电方法的充电过程进行详细说明。
首先需要对控制器1进行初始化。具体实施时,首先将Discharging=0设置为放电标志位无效,将Charging=1设置为充电标志位有效。接着读取各辅助电池安装位的输入接口的状态,对于各辅助电池安装位的输入接口来说,若IDm=0,则表示与该辅助电池安装位相对应的辅助电池处于插入状态,这时控制器1会控制该辅助电池安装位所在的电路单元中的GPm_CTL1=1,以将该辅助电池安装位的充电标志位设置为有效;若IDm=1,则表示与该辅助电池安装位相对应的辅助电池处于拔出状态,这时控制器1会控制该辅助电池安装位所在的电路单元中的GPm_CTL1=0,以将该辅助电池安装位的充电标志位设置为无效。接下来控制器1会将其内部的各模数转换通道与各个电池一一对应,即将GP1_ADC1与主体电池相对应,将GP2_ADC1与第一块辅助电池相对应,……,将GPn_ADC1与第n-1块辅助电池相对应,以完成控制器1的初始化。
在初始化完成之后,控制器1会获取主体电池和当前处于插入状态的辅助电池的电压值,即读取GP1_ADC1到GPn_ADC1的电池的电压值,并从中选取电压值最大的电池GPx_ADC1所在的电路单元IDx,将GPx_ADC1的电压记为Vmin,将电压第二小的电池所在的电路单元记录为IDx_Next,并向GPx_ADC1所在的电路单元充电,同时,集成电路2内的寄存器将周期性地存储电路的充电状态、电压值最小的电池IDx、电压第二小的电池IDx_Next以及连接在整个电路中的电路单元。
本实施例中,控制器1内还可以具有一定时器。在选择GPx_ADC1所在的电路单元向终端供电后, 控制器1会检测各IDm的值,从而根据各IDm的值是否发生变化来判断辅助电池安装位的辅助电池的安装状态是否有变化。
若各IDm的值均未发生变化,则说明没有辅助电池被插入或者拔出,此时可以控制该定时器每间隔S秒读取主体电池和当前处于插入状态的辅助电池的电压,并选取其中电压值最小的电池。随着GPx_ADC1所在的电路单元的持续充电,GPx_ADC1的电压值将会逐渐增大,到某一时刻时,当前电压值最小的电池将不再为GPx_ADC1,并且,当前电压值最小的电池与GPx_ADC1的差值将大于充电压差阈值,例如0.3V,此时可以将当前充电的电路单元由GPx_ADC1切换到电压值最小的电池所在的电路单元。
若控制器1检测到任一IDm的值发生变化,则说明有辅助电池被从辅助电池安装位中拔出或插入到辅助电池安装位中。具体地,若控制器1检测到IDm发生变化的电路单元为当前的充电电池所在的电路单元,则当前的充电电池会停止充电,寄存器会更新其内部存储的信息,以将当前状态下电压值最小的两个电池的信息存储于其内部。
若IDm发生变化的电路单元为非当前充电电池所在的电路单元,此时寄存器会将主体电池和当前处于插入状态的电池中电压值最小的两个电池的信息存储于其内部,以替换原来的信息。接着,判断当前的充电电池的电压与电压值最小的电池的电压是否大于充电压差阈值,即0.3V,若是,向电压值最小的电池所在的电路单元充电。
在主体电池和当前处于插入状态的辅助电池中,当电压值最小的电池经过充电,使其电压值达到自身的恒压充电电压时,判断所有电池的恒压充电电压是否相同,若相同,则令GP1_CTL1=1,GP1_CTL2=1,GP2_CTL1=1,GP2_CTL2=1,……GPn_CTL1=1和GPn_CTL2=1,以使主体电池和当前处于插入状态的辅助电池均进行恒压充电。若电压值最小的电池经充电达到其自身的恒压充电电压,且所有电池的恒压充电电压不完全相同时,将主体电池和当前处于插入状态的辅助电池进行分组并建立一个列表,这些电池组分别为第一组电池组GHG_GRP1、第二组电池组GHG_GRP2……,同一个电池组内的各电池的恒压充电电压相同,并且,为定时器设置一个时间周期,例如20分钟。接着令GHG_GRP1=1,即将第一组电池组作为当前的充电电池组,使第一组电池组内的各电池所在的电路单元的第二开关6闭合,而其他电池组内的各电池所在的电路单元的第二开关6打开,以对当前的充电电池组进行充电。当当前的充电电池组内的各电池的充电电流Icharging小于各自的充电截止电流Iterminal时,说明该电池组已经充好电了,此时可以判断该电池组是否为充电电池组列表中的最后一个元素,若是,则结束充电,若不是,则将当前的电池组从充电电池组列表中移除,并使GHG_GRP指向充电电池组列表中的下一个元素,以对下一组充电电池组进行充电。当当前的充电电池组内的各电池的充电电流Icharging不小于各自的充电截止电流Iterminal时,判断定时器设置的时间周期,即20分钟是否已经到达,若未达到,则继续对该电池组进行充电;若已到达,则判断该电池组是否为充电电池组列表中的最后一个元素,若不是,则使GHG_GRP指向充电电池组中的下一个元素,以对下一组充电电池组进行充电,如果不是,则继续对该电池组进行充电。
综上,本发明实施例提供的供电方法可以保证向终端供电的电池始终为可用的电池中电量最为充足的电池,最终较好地保证了终端的正常工作。
供电装置实施例:
参见图6,图中示出了本发明实施例提供的供电装置的结构框图。该供电装置可以应用于终端,终端设置有主体电池安装位和至少一个辅助电池安装位,主体电池安装位安装有主体电池,辅助电池安装位用于安装可插拔的辅助电池。如图6所示,该装置包括:
第一检测模块61,用于检测辅助电池安装位的辅助电池安装状态,确定当前处于插入状态的辅助电池;
第一获取模块62,用于获取主体电池的电压和当前处于插入状态的辅助电池的电压;
第一供电模块63,用于从主体电池和当前处于插入状态的辅助电池中选取电压值最大的第一电池作为当前的供电电池,通过当前的供电电池向终端供电。
由于该供电装置为基于上述供电方法的装置,其具体实施过程参照上述说明即可,在此不再赘述。
由于供电方法具有上述技术效果,故基于该方法的装置也具有相应的技术效果。
进一步地,上述装置还包括:
第二检测模块,用于检测辅助电池安装位的辅助电池安装状态,判断辅助电池安装位的辅助电池的 安装状态是否有变化;
第一选取模块,用于在辅助电池安装位的辅助电池的安装状态无变化的情况下,周期性地获取主体电池的电压和当前处于插入状态的辅助电池的电压,并从主体电池和当前处于插入状态的辅助电池中选取电压值最大的第二电池;
第一判断模块,用于在第二电池与第一电池为不同电池的情况下,判断第二电池的电压与第一电池的电压的差值是否大于预设的供电压差阈值;
第二供电模块,用于在第二电池的电压与第一电池的电压的差值大于供电压差阈值时,确定第二电池为当前的供电电池,并通过当前的供电电池向终端供电。
进一步地,上述装置中,终端内还设置有寄存器,其中,
第一供电模块具体用于从主体电池和当前处于插入状态的辅助电池中选取电压值最大的第一电池和电压值仅次于第一电池的第三电池,将第一电池的信息和第三电池的信息均存储于寄存器内,并将第一电池作为当前的供电电池,通过当前的供电电池向终端供电;
该装置还包括:
第三供电模块,用于若当前的供电电池为第一辅助电池,且检测到第一辅助电池被拔出时,集成电路根据寄存器内存储的信息,选取第三电池,通过第三电池向终端供电,并获取主体电池的电压和当前处于插入状态的辅助电池的电压,从中选取电压值仅次于第三电池的第四电池,将寄存器内存储的第一电池的信息替换为第四电池的信息。
进一步地,上述装置还包括;
第一信息更新模块,用于若检测到非当前供电电池的第二辅助电池被从辅助电池安装位中拔出,或者第二辅助电池被插入辅助电池安装位中,获取主体电池的电压和当前处于插入状态的辅助电池的电压,并从主体电池和当前处于插入状态的辅助电池中选取电压值最大的第五电池和电压值仅次于第五电池的第六电池,并将寄存器内存储的信息替换为第五电池的信息和第六电池的信息;
第二判断模块,用于在第五电池与当前的供电电池为不同电池的情况下,判断第五电池的电压与当前的供电电池的电压的差值是否大于供电压差阈值;
第四供电模块,用于在第五电池的电压与当前的供电电池的电压的差值大于供电压差阈值时,通过第五电池向终端供电。
进一步地,上述装置还包括;
第一充电模块,用于从主体电池和当前处于插入状态的辅助电池中选取电压值最小的第七电池作为当前的充电电池,并向当前的充电电池充电。
进一步地,上述装置还包括:
第三检测模块,用于检测辅助电池安装位的辅助电池安装状态,判断辅助电池安装位的辅助电池的安装状态是否有变化;
第二选取模块,用于周期性地获取主体电池的电压和当前处于插入状态的辅助电池的电压,并从主体电池和当前处于插入状态的辅助电池中选取电压值最小的第八电池;
第三判断模块,用于在第七电池与第八电池为不同电池的情况下,判断第七电池的电压与第八电池的电压的差值是否大于预设的充电压差阈值;
第二充电模块,用于在第七电池的电压与第八电池的电压的差值大于充电压差阈值时,确定第八电池为当前的充电电池,并向当前的充电电池充电。
进一步地,上述装置中,终端内还设置有寄存器,其中,
第一充电模块具体用于从主体电池和当前处于插入状态的辅助电池中选取电压值最小的第七电池和电压值第二小的第九电池,将第七电池的信息和第九电池的信息均存储于寄存器内,将第七电池作为当前的充电电池,并向当前的充电电池充电;
该装置还包括:
第二信息更新模块,用于若检测到正在充电的第三辅助电池被从辅助电池安装位拔出时,停止充电,并获取主体电池的电压和当前处于插入状态的辅助电池的电压,选取电压值仅大于第七电池的第十电池,并将寄存器内存储的第九电池的信息替换为第十电池的信息。
进一步地,上述装置还包括:
第三信息更新模块,用于若检测到非当前充电电池的第四辅助电池被从辅助电池安装位中拔出或者 第四辅助电池插入辅助电池安装位中时,获取主体电池的电压和当前处于插入状态的辅助电池的电压,并从主体电池和当前处于插入状态的辅助电池中选取电压值最小的第十一电池和电压值仅大于第十一电池的第十二电池,并将寄存器内存储的信息替换为第十一电池和第十二电池的信息;
第四判断模块,用于在第十一电池与当前的充电电池为不同电池的情况下,判断当前的充电电池的电压与第十一电池的电压的差值是否大于充电压差阈值;
第三充电模块,用于在当前的充电电池的电压与第十一电池的电压的差值大于充电压差阈值时,向第十一电池充电。
进一步地,上述装置还包括:
第四充电模块,用于当主体电池的电压和当前处于插入状态的辅助电池的电压均达到各自的恒压充电电压,并且,主体电池和当前处于插入状态的辅助电池的恒压充电电压均相同时,将主体电池和当前处于插入状态的辅助电池均作为当前的充电电池,并向主体电池和当前处于插入状态的辅助电池恒压充电。
进一步地,上述装置还包括:
顺序排列模块,用于当主体电池的电压和当前处于插入状态的辅助电池的电压均达到各自的恒压充电电压,并且,各电池的恒压充电电压不完全相同时,按照恒压充电电压的不同,将主体电池和当前处于插入状态的辅助电池分为多个电池组,并将多个电池组按照预设的充电顺序排列,其中,同一个电池组内的各个电池的恒压充电电压均相同;
顺序充电模块,用于按照充电顺序,依次将各电池组作为当前的充电电池组,并对当前的充电电池组内的各电池进行充电。
进一步地,上述装置中,顺序充电模块包括:
第五充电模块,用于对当前的充电电池组内的各电池进行充电;
第四检测模块,用于当当前的充电电池组内的各电池的充电电流均小于各自的充电截止电流时,检测当前的充电电池组是否为最后一组电池组;
执行模块,用于在当前的充电电池组为最后一组电池组时,结束对所有电池组的充电,否则,对下一组电池组内的各电池进行充电。
综上,本发明实施例提供的供电装置可以保证向终端供电的电池始终为可用的电池中电量最为充足的电池,最终较好地保证了终端的正常工作。
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。
本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
以上所述仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本发明的保护范围内。

Claims (22)

  1. 一种供电方法,应用于终端,其特征在于,所述终端设置有主体电池安装位和至少一个辅助电池安装位,所述主体电池安装位安装有主体电池,所述辅助电池安装位用于安装可插拔的辅助电池,所述方法包括如下步骤:
    检测所述辅助电池安装位的辅助电池安装状态,确定当前处于插入状态的辅助电池;
    获取所述主体电池的电压和当前处于插入状态的辅助电池的电压;
    从所述主体电池和当前处于插入状态的辅助电池中选取电压值最大的第一电池作为当前的供电电池,通过当前的供电电池向所述终端供电。
  2. 如权利要求1所述的方法,其特征在于,所述从所述主体电池和当前处于插入状态的辅助电池中选取电压值最大的第一电池作为当前的供电电池,通过当前的供电电池向所述终端供电后,所述方法还包括:
    检测所述辅助电池安装位的辅助电池安装状态,判断所述辅助电池安装位的辅助电池的安装状态是否有变化;
    若无变化,周期性地获取所述主体电池的电压和当前处于插入状态的辅助电池的电压,并从所述主体电池和当前处于插入状态的辅助电池中选取电压值最大的第二电池;
    在所述第二电池与所述第一电池为不同电池的情况下,判断所述第二电池的电压与所述第一电池的电压的差值是否大于预设的供电压差阈值;
    若为是,确定所述第二电池为当前的供电电池,并通过当前的供电电池向所述终端供电。
  3. 如权利要求2所述的方法,其特征在于,所述终端内还设置有寄存器,其中,
    所述从所述主体电池和当前处于插入状态的辅助电池中选取电压值最大的第一电池作为当前的供电电池,通过当前的供电电池向所述终端供电,包括:
    从所述主体电池和当前处于插入状态的辅助电池中选取电压值最大的第一电池和电压值仅次于所述第一电池的第三电池,将所述第一电池的信息和所述第三电池的信息均存储于所述寄存器内,并将所述第一电池作为当前的供电电池,通过当前的供电电池向所述终端供电;
    所述检测所述辅助电池安装位的辅助电池安装状态,判断所述辅助电池安装位的辅助电池的安装状态是否有变化后,所述方法还包括:
    若当前的供电电池为第一辅助电池,且检测到所述第一辅助电池被拔出时,根据所述寄存器内存储的信息,选取所述第三电池,通过所述第三电池向所述终端供电,并获取所述主体电池的电压和当前处于插入状态的辅助电池的电压,从中选取电压值仅次于所述第三电池的第四电池,将所述寄存器内存储的第一电池的信息替换为所述第四电池的信息。
  4. 如权利要求3所述的方法,其特征在于,所述检测所述辅助电池安装位的辅助电池安装状态,判断所述辅助电池安装位的辅助电池的安装状态是否有变化后,所述方法还包括:
    若检测到非当前供电电池的第二辅助电池被从辅助电池安装位中拔出,或者第二辅助电池被插入辅助电池安装位中,获取所述主体电池的电压和当前处于插入状态的辅助电池的电压,并从所述主体电池和当前处于插入状态的辅助电池中选取电压值最大的第五电池和电压值仅次于所述第五电池的第六电池,并将所述寄存器内存储的信息替换为所述第五电池的信息和第六电池的信息;
    在所述第五电池与当前的供电电池为不同电池的情况下,判断所述第五电池的电压与当前的供电电池的电压的差值是否大于所述供电压差阈值;
    若为是,通过所述第五电池向所述终端供电。
  5. 如权利要求1所述的方法,其特征在于,所述获取所述主体电池的电压和当前处于插入状态的辅 助电池的电压后,所述方法还包括;
    从所述主体电池和当前处于插入状态的辅助电池中选取电压值最小的第七电池作为当前的充电电池,并向当前的充电电池充电。
  6. 如权利要求5所述的方法,其特征在于,所述选取电压值最小的第七电池作为当前的充电电池,并向当前的充电电池充电后,所述方法还包括:
    检测所述辅助电池安装位的辅助电池安装状态,判断所述辅助电池安装位的辅助电池的安装状态是否有变化;
    若无变化,周期性地获取所述主体电池的电压和当前处于插入状态的辅助电池的电压,并从所述主体电池和当前处于插入状态的辅助电池中选取电压值最小的第八电池;
    在所述第七电池与所述第八电池为不同电池的情况下,判断所述第七电池的电压与所述第八电池的电压的差值是否大于预设的充电压差阈值;
    若为是,确定所述第八电池为当前的充电电池,并向当前的充电电池充电。
  7. 如权利要求6所述的方法,其特征在于,所述终端内还设置有寄存器,其中,
    所述从所述主体电池和当前处于插入状态的辅助电池中选取电压值最小的第七电池作为当前的充电电池,并向当前的充电电池充电,包括:
    从所述主体电池和当前处于插入状态的辅助电池中选取电压值最小的第七电池和电压值第二小的第九电池,将所述第七电池的信息和所述第九电池的信息均存储于所述寄存器内,将所述第七电池作为当前的充电电池,并向当前的充电电池充电;
    所述检测所述辅助电池安装位的辅助电池安装状态,判断所述辅助电池安装位的辅助电池的安装状态是否有变化后,所述方法还包括;
    若检测到正在充电的第三辅助电池被从辅助电池安装位拔出时,停止充电,并获取所述主体电池的电压和当前处于插入状态的辅助电池的电压,选取电压值仅大于所述第七电池的第十电池,并将所述寄存器内存储的第九电池的信息替换为所述第十电池的信息。
  8. 如权利要求7所述的方法,其特征在于,所述检测所述辅助电池安装位的辅助电池安装状态,判断所述辅助电池安装位的辅助电池的安装状态是否有变化后,所述方法还包括;
    若检测到非当前充电电池的第四辅助电池被从辅助电池安装位中拔出或者第四辅助电池插入辅助电池安装位中时,获取所述主体电池的电压和当前处于插入状态的辅助电池的电压,并从所述主体电池和当前处于插入状态的辅助电池中选取电压值最小的第十一电池和电压值仅大于所述第十一电池的第十二电池,并将所述寄存器内存储的信息替换为所述第十一电池和所述第十二电池的信息;
    在所述第十一电池与当前的充电电池为不同电池的情况下,判断当前的充电电池的电压与所述第十一电池的电压的差值是否大于所述充电压差阈值;
    若为是,向所述第十一电池充电。
  9. 如权利要求6所述的方法,其特征在于,所述若为是,确定所述第八电池为当前的充电电池,并向当前的充电电池充电后,所述方法还包括:
    当所述主体电池的电压和当前处于插入状态的辅助电池的电压均达到各自的恒压充电电压,并且,所述主体电池和当前处于插入状态的辅助电池的恒压充电电压均相同时,将所述主体电池和当前处于插入状态的辅助电池均作为当前的充电电池,并向所述主体电池和当前处于插入状态的辅助电池恒压充电。
  10. 如权利要求6所述的方法,其特征在于,所述若为是,确定所述第八电池为当前的充电电池,并向当前的充电电池充电后,所述方法还包括:
    当所述主体电池的电压和当前处于插入状态的辅助电池的电压均达到各自的恒压充电电压,并且, 各电池的恒压充电电压不完全相同时,按照恒压充电电压的不同,将所述主体电池和当前处于插入状态的辅助电池分为多个电池组,并将多个电池组按照预设的充电顺序排列,其中,同一个电池组内的各个电池的恒压充电电压均相同;
    按照所述充电顺序,依次将各电池组作为当前的充电电池组,并对当前的充电电池组内的各电池进行充电。
  11. 如权利要求10所述的方法,其特征在于,所述按照所述充电顺序,依次将各电池组作为当前的充电电池组,并对当前的充电电池组内的各电池进行充电,包括:
    对当前的充电电池组内的各电池进行充电;
    当当前的充电电池组内的各电池的充电电流均小于各自的充电截止电流时,检测当前的充电电池组是否为最后一组电池组;
    如果是,则结束对所有电池组的充电,如果不是,则对下一组电池组内的各电池进行充电。
  12. 一种供电装置,应用于终端,其特征在于,所述终端设置有主体电池安装位和至少一个辅助电池安装位,所述主体电池安装位安装有主体电池,所述辅助电池安装位用于安装可插拔的辅助电池,所述装置包括:
    第一检测模块,用于检测所述辅助电池安装位的辅助电池安装状态,确定当前处于插入状态的辅助电池;
    第一获取模块,用于获取所述主体电池的电压和当前处于插入状态的辅助电池的电压;
    第一供电模块,用于从所述主体电池和当前处于插入状态的辅助电池中选取电压值最大的第一电池作为当前的供电电池,通过当前的供电电池向所述终端供电。
  13. 如权利要求12所述的装置,其特征在于,所述装置还包括:
    第二检测模块,用于检测所述辅助电池安装位的辅助电池安装状态,判断所述辅助电池安装位的辅助电池的安装状态是否有变化;
    第一选取模块,用于在所述辅助电池安装位的辅助电池的安装状态无变化的情况下,周期性地获取所述主体电池的电压和当前处于插入状态的辅助电池的电压,并从所述主体电池和当前处于插入状态的辅助电池中选取电压值最大的第二电池;
    第一判断模块,用于在所述第二电池与所述第一电池为不同电池的情况下,判断所述第二电池的电压与所述第一电池的电压的差值是否大于预设的供电压差阈值;
    第二供电模块,用于在所述第二电池的电压与所述第一电池的电压的差值大于所述供电压差阈值时,确定所述第二电池为当前的供电电池,并通过当前的供电电池向所述终端供电。
  14. 如权利要求13所述的装置,其特征在于,所述终端内还设置有寄存器,其中,
    所述第一供电模块具体用于从所述主体电池和当前处于插入状态的辅助电池中选取电压值最大的第一电池和电压值仅次于所述第一电池的第三电池,将所述第一电池的信息和所述第三电池的信息均存储于所述寄存器内,并将所述第一电池作为当前的供电电池,通过当前的供电电池向所述终端供电;
    所述装置还包括:
    第三供电模块,用于若当前的供电电池为第一辅助电池,且检测到所述第一辅助电池被拔出时,根据所述寄存器内存储的信息,选取所述第三电池,通过所述第三电池向所述终端供电,并获取所述主体电池的电压和当前处于插入状态的辅助电池的电压,从中选取电压值仅次于所述第三电池的第四电池,将所述寄存器内存储的第一电池的信息替换为所述第四电池的信息。
  15. 如权利要求14所述的装置,其特征在于,所述装置还包括:
    第一信息更新模块,用于若检测到非当前供电电池的第二辅助电池被从辅助电池安装位中拔出,或 者第二辅助电池被插入辅助电池安装位中,获取所述主体电池的电压和当前处于插入状态的辅助电池的电压,并从所述主体电池和当前处于插入状态的辅助电池中选取电压值最大的第五电池和电压值仅次于所述第五电池的第六电池,并将所述寄存器内存储的信息替换为所述第五电池的信息和第六电池的信息;
    第二判断模块,用于在所述第五电池与当前的供电电池为不同电池的情况下,判断所述第五电池的电压与当前的供电电池的电压的差值是否大于所述供电压差阈值;
    第四供电模块,用于在所述第五电池的电压与当前的供电电池的电压的差值大于所述供电压差阈值时,通过所述第五电池向所述终端供电。
  16. 如权利要求12所述的装置,其特征在于,所述装置还包括;
    第一充电模块,用于从所述主体电池和当前处于插入状态的辅助电池中选取电压值最小的第七电池作为当前的充电电池,并向当前的充电电池充电。
  17. 如权利要求16所述的装置,其特征在于,所述装置还包括:
    第三检测模块,用于检测所述辅助电池安装位的辅助电池安装状态,判断所述辅助电池安装位的辅助电池的安装状态是否有变化;
    第二选取模块,用于周期性地获取所述主体电池的电压和当前处于插入状态的辅助电池的电压,并从所述主体电池和当前处于插入状态的辅助电池中选取电压值最小的第八电池;
    第三判断模块,用于在所述第七电池与所述第八电池为不同电池的情况下,判断所述第七电池的电压与所述第八电池的电压的差值是否大于预设的充电压差阈值;
    第二充电模块,用于在所述第七电池的电压与所述第八电池的电压的差值大于所述充电压差阈值时,确定所述第八电池为当前的充电电池,并向当前的充电电池充电。
  18. 如权利要求17所述的装置,其特征在于,所述终端内还设置有寄存器,其中,
    所述第一充电模块具体用于从所述主体电池和当前处于插入状态的辅助电池中选取电压值最小的第七电池和电压值第二小的第九电池,将所述第七电池的信息和所述第九电池的信息均存储于所述寄存器内,将所述第七电池作为当前的充电电池,并向当前的充电电池充电;
    所述装置还包括:
    第二信息更新模块,用于若检测到正在充电的第三辅助电池被从辅助电池安装位拔出时,停止充电,并获取所述主体电池的电压和当前处于插入状态的辅助电池的电压,选取电压值仅大于所述第七电池的第十电池,并将所述寄存器内存储的第九电池的信息替换为所述第十电池的信息。
  19. 如权利要求18所述的装置,其特征在于,所述装置还包括:
    第三信息更新模块,用于若检测到非当前充电电池的第四辅助电池被从辅助电池安装位中拔出或者第四辅助电池插入辅助电池安装位中时,获取所述主体电池的电压和当前处于插入状态的辅助电池的电压,并从所述主体电池和当前处于插入状态的辅助电池中选取电压值最小的第十一电池和电压值仅大于所述第十一电池的第十二电池,并将所述寄存器内存储的信息替换为所述第十一电池和所述第十二电池的信息;
    第四判断模块,用于在所述第十一电池与当前的充电电池为不同电池的情况下,判断当前的充电电池的电压与所述第十一电池的电压的差值是否大于所述充电压差阈值;
    第三充电模块,用于在当前的充电电池的电压与所述第十一电池的电压的差值大于所述充电压差阈值时,向所述第十一电池充电。
  20. 如权利要求17所述的装置,其特征在于,所述装置还包括:
    第四充电模块,用于当所述主体电池的电压和当前处于插入状态的辅助电池的电压均达到各自的恒压充电电压,并且,所述主体电池和当前处于插入状态的辅助电池的恒压充电电压均相同时,将所述主 体电池和当前处于插入状态的辅助电池均作为当前的充电电池,并向所述主体电池和当前处于插入状态的辅助电池恒压充电。
  21. 如权利要求17所述的装置,其特征在于,所述装置还包括:
    顺序排列模块,用于当所述主体电池的电压和当前处于插入状态的辅助电池的电压均达到各自的恒压充电电压,并且,各电池的恒压充电电压不完全相同时,按照恒压充电电压的不同,将所述主体电池和当前处于插入状态的辅助电池分为多个电池组,并将多个电池组按照预设的充电顺序排列,其中,同一个电池组内的各个电池的恒压充电电压均相同;
    顺序充电模块,用于按照所述充电顺序,依次将各电池组作为当前的充电电池组,并对当前的充电电池组内的各电池进行充电。
  22. 如权利要求21所述的装置,其特征在于,所述顺序充电模块包括:
    第五充电模块,用于对当前的充电电池组内的各电池进行充电;
    第四检测模块,用于当当前的充电电池组内的各电池的充电电流均小于各自的充电截止电流时,检测当前的充电电池组是否为最后一组电池组;
    执行模块,用于在当前的充电电池组为最后一组电池组时,结束对所有电池组的充电,否则,对下一组电池组内的各电池进行充电。
PCT/CN2016/111249 2015-12-31 2016-12-21 一种供电方法及装置 Ceased WO2017114253A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201511032684.4A CN106612000B (zh) 2015-12-31 2015-12-31 一种供电方法及装置
CN201511032684.4 2015-12-31

Publications (1)

Publication Number Publication Date
WO2017114253A1 true WO2017114253A1 (zh) 2017-07-06

Family

ID=58614537

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/111249 Ceased WO2017114253A1 (zh) 2015-12-31 2016-12-21 一种供电方法及装置

Country Status (2)

Country Link
CN (1) CN106612000B (zh)
WO (1) WO2017114253A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113224803A (zh) * 2020-01-21 2021-08-06 北京小米移动软件有限公司 充电控制方法、装置及存储介质

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107947328B (zh) * 2017-11-28 2024-10-29 浙江力俭新能源科技有限公司 一种可持续供电的供电装置
CN110401242B (zh) * 2019-07-26 2022-11-22 北京晟运能源科技有限公司 多电池并行充电电路、方法及具有该电路的可穿戴设备
CN112448451B (zh) * 2020-11-16 2022-08-02 山东圣阳电源股份有限公司 一种电池组管理系统弱供电方法、装置及电池组管理系统
CN114696387A (zh) * 2020-12-29 2022-07-01 华为技术有限公司 终端的放电控制方法、放电控制器及终端
CN114142548B (zh) * 2021-10-27 2024-01-30 青岛歌尔声学科技有限公司 电子设备的电池切换方法、装置、电子设备及介质
CN113964914B (zh) * 2021-11-08 2023-07-21 深圳市迪浦电子有限公司 一种手机电池电源管理系统及方法
CN116316948A (zh) * 2022-12-30 2023-06-23 广东力科新能源有限公司 多电池无间断切换供电电路和切换方法

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050194932A1 (en) * 2004-03-08 2005-09-08 Nec Corporation Battery switching circuit for a portable communication device, battery switching method therefor, and battery switching program therefor
US7259477B2 (en) * 2003-08-15 2007-08-21 American Power Conversion Corporation Uninterruptible power supply
CN101771293A (zh) * 2009-06-22 2010-07-07 深圳市友利通电子有限公司 一种手执移动终端及其供电装置
CN201690250U (zh) * 2010-05-21 2010-12-29 希姆通信息技术(上海)有限公司 双电池供电装置
CN203166610U (zh) * 2013-03-07 2013-08-28 东莞宇龙通信科技有限公司 一种充电设备及电子终端
CN205335962U (zh) * 2015-12-31 2016-06-22 北京一数科技有限公司 一种穿戴设备

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5684384A (en) * 1995-10-31 1997-11-04 Motorola, Inc. Apparatus and method for discharging and charging a multiple battery arrangement
US20100130263A1 (en) * 2008-11-21 2010-05-27 Edward Zhang System and method for dual power source management
CN103581371B (zh) * 2012-08-10 2017-03-22 中兴通讯股份有限公司 移动终端及其电池的控制方法
KR20140080228A (ko) * 2012-12-20 2014-06-30 주식회사 팬택 듀얼 배터리를 이용한 단말 제어 장치 및 방법

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7259477B2 (en) * 2003-08-15 2007-08-21 American Power Conversion Corporation Uninterruptible power supply
US20050194932A1 (en) * 2004-03-08 2005-09-08 Nec Corporation Battery switching circuit for a portable communication device, battery switching method therefor, and battery switching program therefor
CN101771293A (zh) * 2009-06-22 2010-07-07 深圳市友利通电子有限公司 一种手执移动终端及其供电装置
CN201690250U (zh) * 2010-05-21 2010-12-29 希姆通信息技术(上海)有限公司 双电池供电装置
CN203166610U (zh) * 2013-03-07 2013-08-28 东莞宇龙通信科技有限公司 一种充电设备及电子终端
CN205335962U (zh) * 2015-12-31 2016-06-22 北京一数科技有限公司 一种穿戴设备

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113224803A (zh) * 2020-01-21 2021-08-06 北京小米移动软件有限公司 充电控制方法、装置及存储介质

Also Published As

Publication number Publication date
CN106612000A (zh) 2017-05-03
CN106612000B (zh) 2023-08-25

Similar Documents

Publication Publication Date Title
WO2017114253A1 (zh) 一种供电方法及装置
JP5119307B2 (ja) バッテリーパックの充電制御方法
US8198856B2 (en) Electronic apparatus, charging method therefor, and battery
JP4691140B2 (ja) 充放電システムおよび携帯式コンピュータ
JP5261835B2 (ja) モバイル電子デバイスおよびそのバッテリモジュールの電力管理方法
CN105684260A (zh) 智能的基于上下文的电池充电
JP2012253951A (ja) 電源供給装置、充電方法、充電池モジュール、及び充電装置
CN103869920B (zh) 电池循环和管理
CN100437402C (zh) 数字设备的电源管理设备、系统和方法
EP3618248B1 (en) Recycling capacitance energy from active mode to low power mode
JP5613135B2 (ja) 携帯端末装置の電池ユニットおよび電力の供給方法
CN106462215A (zh) 用于模块化移动电子设备的电力管理的系统和方法
CN111049229A (zh) 一种电子设备、充电控制方法、装置及电源管理芯片
JP4098805B2 (ja) 充放電システムおよび電子機器
WO2017215266A1 (zh) 终端的充电方法和装置
US11476696B2 (en) Charge and discharge control apparatus and electronic device
US10942556B2 (en) Early pre-charge enablement for peak power application in net zero energy devices
CN106873504A (zh) Plc系统
JP5689944B2 (ja) 電気電子機器に電力を供給する電池ユニットおよび電力の供給方法
WO2017154295A1 (ja) 蓄電システム及びパワーコンディショナ
CN113859552B (zh) 一种电池管理系统
CN105939419A (zh) 一种移动终端调整电池总容量的方法及系统
CN102916459A (zh) 充电控制内容的显示方法及电池包
CN203933103U (zh) 具有充电电流自动调整功能的充电电路及电子产品
JP2009240078A (ja) 電源制御装置

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: 16881042

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: 16881042

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 11/07/2019)

122 Ep: pct application non-entry in european phase

Ref document number: 16881042

Country of ref document: EP

Kind code of ref document: A1