CN103035966B - Battery charge-discharge control method and electronic equipment - Google Patents

Battery charge-discharge control method and electronic equipment Download PDF

Info

Publication number
CN103035966B
CN103035966B CN201110298243.4A CN201110298243A CN103035966B CN 103035966 B CN103035966 B CN 103035966B CN 201110298243 A CN201110298243 A CN 201110298243A CN 103035966 B CN103035966 B CN 103035966B
Authority
CN
China
Prior art keywords
battery
control unit
shell
electric quantity
power adapter
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.)
Active
Application number
CN201110298243.4A
Other languages
Chinese (zh)
Other versions
CN103035966A (en
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201110298243.4A priority Critical patent/CN103035966B/en
Publication of CN103035966A publication Critical patent/CN103035966A/en
Application granted granted Critical
Publication of CN103035966B publication Critical patent/CN103035966B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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

Landscapes

  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The invention discloses a battery charge-discharge control method and electronic equipment. The electronic equipment comprises a first battery, a second battery, a first shell with an input unit, a second shell with a display unit and a first control unit, and a third shell with a second control unit. The method comprises the following steps of: judging a working mode of the electronic equipment to obtain a first judgment result, and determining to use the first control unit or the second control unit to control a battery charge-discharge process under the working mode according to the first judgment result; judging whether a power adapter is accessed or not to obtain a second judgment result, and carrying out charge-discharge control on the first battery and/or the second battery through the determined control unit. When the method is applied to controlling the battery charge-discharge process, an independent control chip has no need to be arranged, and different charge-discharge control processes are adopted aiming at different working modes of the electronic equipment, so that the control process is simple, and the charge-discharge process is flexible.

Description

Battery charging and discharging control method and electronic equipment
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a battery charging/discharging control method and an electronic device.
Background
In order to improve the battery power supply capability of the portable terminal, two batteries are arranged in the conventional portable terminal, and the standby time of the portable terminal is prolonged by controlling the charging and discharging of the double batteries. Taking a notebook computer as an example, a battery is usually disposed in a host portion where a keyboard is located, and a battery is disposed in a portion where a display screen is located. When carrying out double cell charge-discharge control, need set up dedicated charging chip among the prior art, on two batteries all were connected to this charging chip, the charging chip is integrated on the mainboard usually, and the module that will charge when charging inserts.
Therefore, in the prior art, when the charging and discharging of two batteries are controlled, the two chips need to be simultaneously controlled through the charging chip, and the charging process is not flexible; particularly, for a portable terminal with dual systems, the portable terminal may be separated into a PAD device (a portion where a display screen is located) and a BASE device (a portion where a host computer is located) which are used separately, but when performing charge and discharge control, the two devices need to be combined into the portable terminal to charge and discharge a battery, and the respective control units of the two devices are required to control a charging chip simultaneously in the charge and discharge process, so that the control process is complicated, and the charge and discharge process is not flexible.
Disclosure of Invention
The embodiment of the application provides a battery charging and discharging control method and electronic equipment, and aims to solve the problems that in the prior art, charging and discharging of two batteries can only be controlled simultaneously in a portable terminal combination state, so that the charging and discharging control process is complicated, and the control process is inflexible.
In order to solve the technical problem, the embodiment of the application discloses the following technical scheme:
a battery charge and discharge control method is applied to electronic equipment at least provided with a first battery and a second battery, wherein the electronic equipment at least comprises a first shell provided with an input unit, a second shell provided with a display unit and a first control unit, and a third shell provided with a second control unit, the first shell, the second shell and the third shell can be separated from each other, and the electronic equipment has multiple working modes; the battery charge and discharge control method comprises the following steps:
judging the working mode of the electronic equipment, obtaining a first judgment result, and determining to use a first control unit or a second control unit to control the charging and discharging process of the battery in the working mode according to the first judgment result;
and judging whether a power adapter is accessed, obtaining a second judgment result, and performing charge and discharge control on the first battery and/or the second battery through the determined control unit according to the second judgment result.
The first battery is disposed in the first housing and the second battery is disposed in the second housing; or,
the first battery is disposed in the third case, and the second battery is disposed in the second case.
The working modes comprise:
a first mode in which the first casing and the second casing are used simultaneously, a second mode in which the first casing and the third casing are used simultaneously, and a third mode in which the first casing, the second casing, and the third casing are used simultaneously.
When the electronic device is determined to be in a first mode, determining that the first control unit controls the battery charging and discharging process in the first mode, and controlling the charging and discharging of the first battery and/or the second battery through the determined control unit according to the second determination result includes:
when the second judgment result is that no power adapter is accessed, triggering the first control unit to judge whether the electric quantity of a first battery arranged in the first shell exceeds a preset threshold value, if so, supplying power to the system through the first battery, otherwise, supplying power to the system through a second battery arranged in the second shell;
when the second judgment result is that the power adapter is accessed, triggering a first control unit to control the power adapter to supply power to the system; when the first control unit is triggered to judge that the electric quantity of a second battery arranged in the second shell is not full, the second battery is charged through the power adapter until the electric quantity of the second battery is full; when the first control unit is triggered to judge that the electric quantity of the second power supply arranged in the second shell is full, whether the electric quantity of the first battery arranged in the first shell is full is judged, and if the electric quantity of the first battery is not full, the first battery is charged through the power adapter until the electric quantity of the first battery is full.
When the electronic device is determined to be in a second mode, determining that the second control unit controls the battery charging and discharging process in the second mode, wherein the controlling, according to the second determination result, the charging and discharging of the first battery and/or the second battery through the determined control unit includes:
when the second judgment result is that no power adapter is accessed, triggering a second control unit to control a first battery arranged in the first shell to supply power for the system;
when the second judgment result is that the power adapter is accessed, triggering a second control unit to control the power adapter to supply power to the system; and triggering the second control unit to judge whether the electric quantity of the first battery arranged in the first shell is full, and if not, charging the first battery through the power adapter until the electric quantity of the first battery is full.
When the electronic device is determined to be in a third mode, determining that the second control unit controls the battery charging and discharging process in the third mode, wherein the controlling, according to the second determination result, the charging and discharging of the first battery and/or the second battery through the determined control unit includes:
when the second judgment result is that no power adapter is accessed, triggering a second control unit to judge whether the electric quantity of a first battery arranged in a first shell exceeds a preset threshold value, if so, supplying power to the system through the first battery, otherwise, supplying power to the system through a second battery arranged in a second shell;
when the second judgment result is that the power adapter is accessed, triggering a second control unit to control the power adapter to supply power to the system; when the second control unit is triggered to judge that the electric quantity of a second battery arranged in the second shell is not full, the second battery is charged through the power adapter until the electric quantity of the second battery is full; when the second control unit is triggered to judge that the electric quantity of the power supply arranged in the second shell is full, whether the electric quantity of the first battery arranged in the first shell is full is judged, and if the electric quantity of the first battery is not full, the first battery is charged through the power adapter until the electric quantity of the first battery is full.
The operating mode further includes:
a fourth mode in which the first housing is used alone, and a fifth mode in which the second housing is used alone.
Further comprising:
when the electronic equipment is judged to be in the fourth mode, judging whether a power adapter is accessed, if so, judging whether the electric quantity of a first battery arranged in a first shell is full, and if not, charging the first battery through the power adapter until the electric quantity of the first battery is full; if no power adapter is connected, controlling a first battery arranged in the first shell to discharge;
and when the electronic equipment is judged to be in the fifth mode, controlling a second battery arranged in the second shell to discharge.
An electronic device, the electronic device includes at least a first battery and a second battery, and further includes a first housing having an input unit, a second housing having a display unit and a first control unit, and a third housing having a second control unit, wherein the first housing, the second housing, and the third housing are separable from each other, the electronic device having a plurality of operation modes; the electronic device further includes:
the working mode determining unit is used for judging the working mode of the electronic equipment, obtaining a first judgment result and determining to use the first control unit or the second control unit to control the charging and discharging process of the battery under the working mode according to the first judgment result;
and the charge and discharge control unit is used for judging whether a power adapter is accessed or not, obtaining a second judgment result, and performing charge and discharge control on the first battery and/or the second battery through the determined control unit according to the second judgment result.
The first battery is disposed in a first housing and the second battery is disposed in the second housing; alternatively, the first battery is disposed in the third case, and the second battery is disposed in the second case;
the working modes comprise: a first mode in which the first casing and the second casing are used simultaneously, a second mode in which the first casing and the third casing are used simultaneously, and a third mode in which the first casing, the second casing, and the third casing are used simultaneously.
The working mode determining unit is specifically configured to determine that the first control unit controls a battery charging and discharging process in a first mode when it is determined that the electronic device is in the first mode;
the charge and discharge control unit includes:
the first trigger unit is used for triggering the first control unit to judge whether the electric quantity of a first battery arranged in the first shell exceeds a preset threshold value or not when the second judgment result is that no power adapter is accessed, if so, the first battery is used for supplying power to the system, and otherwise, the second battery arranged in the second shell is used for supplying power to the system;
the second trigger unit is used for triggering the first control unit to control the power adapter to supply power to the system when the second judgment result is that the power adapter is accessed; when the first control unit is triggered to judge that the electric quantity of a second battery arranged in the second shell is not full, the second battery is charged through the power adapter until the electric quantity of the second battery is full; when the first control unit is triggered to judge that the electric quantity of the second power supply arranged in the second shell is full, whether the electric quantity of the first battery arranged in the first shell is full is judged, and if the electric quantity of the first battery is not full, the first battery is charged through the power adapter until the electric quantity of the first battery is full.
The working mode determining unit is specifically configured to determine that the second control unit controls the battery charging and discharging process in a second mode when it is determined that the electronic device is in the second mode;
the charge and discharge control unit includes:
the third triggering unit is used for triggering the second control unit to control the first battery arranged in the first shell to supply power to the system when the second judgment result is that no power adapter is connected;
the fourth triggering unit is used for triggering the second control unit to control the power adapter to supply power to the system when the second judgment result is that the power adapter is accessed; and triggering the second control unit to judge whether the electric quantity of the first battery arranged in the first shell is full, and if not, charging the first battery through the power adapter until the electric quantity of the first battery is full.
The working mode determining unit is specifically configured to determine that the second control unit controls a battery charging and discharging process in a third mode when it is determined that the electronic device is in the third mode;
the charge and discharge control unit includes:
the fifth triggering unit is used for triggering the second control unit to judge whether the electric quantity of the first battery arranged in the first shell exceeds a preset threshold value or not when the second judgment result is that no power adapter is accessed, if so, the first battery is used for supplying power to the system, and otherwise, the second battery arranged in the second shell is used for supplying power to the system;
the sixth triggering unit is used for triggering the second control unit to control the power adapter to supply power to the system when the second judgment result is that the power adapter is accessed; when the second control unit is triggered to judge that the electric quantity of a second battery arranged in the second shell is not full, the second battery is charged through the power adapter until the electric quantity of the second battery is full; when the second control unit is triggered to judge that the electric quantity of the power supply arranged in the second shell is full, whether the electric quantity of the first battery arranged in the first shell is full is judged, and if the electric quantity of the first battery is not full, the first battery is charged through the power adapter until the electric quantity of the first battery is full.
The operating mode further includes: a fourth mode in which the first housing is used alone, a fifth mode in which the second housing is used alone;
the charging and discharging control unit is further used for judging whether a power adapter is connected when the electronic equipment is judged to be in the fourth mode, judging whether the electric quantity of a first battery arranged in the first shell is full if the power adapter is connected, and charging the first battery through the power adapter until the electric quantity of the first battery is full if the first battery is not full; if no power adapter is connected, controlling a first battery arranged in the first shell to discharge;
and the charge and discharge control unit is further used for controlling a second battery arranged in the second shell to discharge when the electronic equipment is judged to be in the fifth mode.
It can be seen from the foregoing embodiments that, in the embodiments of the present application, the electronic device includes a first battery and a second battery, and further includes a first housing having an input unit, a second housing having a display unit and a first control unit, and a third housing having a second control unit, when performing charge and discharge control, first determining an operating mode of the electronic device to obtain a first determination result, determining whether to use the first control unit or the second control unit to control a charge and discharge process of the battery in a current operating mode according to the first determination result, then determining whether a power adapter is connected to obtain a second determination result, and performing charge and discharge control on the first battery and/or the second battery through the determined control unit according to the second determination result. When the embodiment of the application is used for controlling the charging and discharging process of the battery, an independent control chip is not required to be arranged, and different charging and discharging control processes are adopted according to different working modes of the electronic equipment, so that the control process is simple, and the charging and discharging process is flexible.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
Fig. 1 is a flowchart of a first embodiment of a battery charge and discharge control method according to the present application;
fig. 2 is a schematic diagram of an internal structure of an electronic device to which an embodiment of the method of the present application is applied;
FIG. 3 is a flowchart illustrating a second embodiment of a battery charge/discharge control method according to the present invention;
FIG. 4 is a flowchart illustrating a battery charging/discharging control method according to a third embodiment of the present invention;
FIG. 5 is a flowchart illustrating a fourth embodiment of a method for controlling charging and discharging of a battery according to the present invention;
fig. 6 is a flowchart of a fifth embodiment of a battery charge/discharge control method according to the present application;
FIG. 7 is a block diagram of an embodiment of an electronic device of the present application.
Detailed Description
The following embodiments of the invention provide a battery charge and discharge control method and an electronic device.
In order to make the technical solutions in the embodiments of the present invention better understood and make the above objects, features and advantages of the embodiments of the present invention more comprehensible, the technical solutions in the embodiments of the present invention are described in further detail below with reference to the accompanying drawings.
The electronic device in the embodiment of the present application has at least a first battery and a second battery, and the electronic device further includes at least a first housing (e.g., a keyboard) having an input unit, a second housing (e.g., a PANEL device) having a display unit and a first control unit, and a third housing (BASE device) having a second control unit, wherein the first housing, the second housing, and the third housing can be separated from each other or combined together to operate, and the electronic device has a plurality of operation modes according to different combination states.
Wherein, first battery and second battery can set up in a flexible way, include: the first battery is arranged in the first shell, and the second battery is arranged in the second shell; alternatively, the first battery is disposed in the third case, and the second battery is disposed in the second case.
The working mode of the electronic device in the embodiment of the application may include: a first mode in which the first casing and the second casing are used simultaneously, a second mode in which the first casing and the third casing are used simultaneously, and a third mode in which the first casing, the second casing, and the third casing are used simultaneously. Further, the method can also comprise the following steps: a fourth mode in which the first housing is used alone, and a fifth mode in which the second housing is used alone.
Referring to fig. 1, a flowchart of a battery charge and discharge control method according to a first embodiment of the present application is shown:
step 101: and judging the working mode of the electronic equipment to obtain a first judgment result.
Step 102: and determining to use the first control unit or the second control unit to control the charging and discharging process of the battery in the working mode according to the first judgment result.
Step 103: and judging whether a power adapter is accessed or not, and obtaining a second judgment result.
Step 104: and according to a second judgment result, carrying out charge and discharge control on the first battery and/or the second battery through the determined control unit.
Referring to fig. 2, a schematic diagram of an internal structure of an electronic device to which the method of the present application is applied is shown:
the electronic device includes: a keyboard device as a first housing, a PANEL device as a second housing, and a BASE device as a third housing. The keyboard equipment is internally provided with a first battery, the PANEL equipment is internally provided with a second battery, the PANEL equipment is internally provided with a first control unit UC unit, and the BASE equipment is internally provided with a second control unit EC unit. Fig. 2 shows the operation state in which the keyboard device, the PANEL device, and the BASE device are connected together.
The BASE device includes a first hardware system, such as a hardware system based on an X86 architecture or an ARM architecture processor, runs a first operating system, such as a desktop device operating system (e.g., Windows, Linux, or MacOS, etc.) or a portable device operating system (e.g., Android, Symbian, or iOS, etc.), the PANEL device includes a second hardware system, such as a hardware system based on an X86 architecture or an ARM architecture processor, runs a second operating system, such as a desktop device operating system (e.g., Windows, Linux, or MacOS, etc.) or a portable device operating system (e.g., Android, Symbian, or iOS, etc.). It can be seen that the first hardware system and the second hardware system may be based on the same architecture or may be based on different architectures; the first operating system and the second operating system may be the same type of operating system or different types of operating systems. Preferably, the BASE device is a device based on an X86 architecture processor and running a Windows operating system, and the PANEL device is a device based on an ARM architecture processor and running an Android operating system.
Referring to fig. 3, a flowchart of a second embodiment of the battery charge and discharge control method according to the present application is shown, and the embodiment describes in detail a process of performing charge and discharge control by combining a keyboard device and a PANEL device with the electronic device structure shown in fig. 2:
step 301: and judging that the electronic equipment is in the first mode.
Step 302: it is determined that the charging and discharging process of the battery is controlled by the UC unit of the PANEL apparatus.
Step 303: judging whether a power adapter is accessed, if not, executing step 304; if yes, go to step 308.
Step 304: the UC unit reads the power of the first battery in the keyboard device.
Step 305: judging whether the electric quantity of the first battery exceeds a preset threshold value, if so, executing a step 306; otherwise, step 307 is executed.
Step 306: and the UC unit controls the first battery to supply power to the system, and the current process is ended.
Step 307: and the UC unit controls the second battery to supply power to the system, and the current process is ended.
Step 308: and the UC unit controls the power adapter to supply power to the system and reads the electric quantity of the first battery and the second battery.
Step 309: judging whether the electric quantity of the second battery is full, if yes, executing step 311; otherwise, step 310 is performed.
Step 310: the UC unit controls the power adapter to charge the second battery and returns to step 309.
Step 311: judging whether the electric quantity of the first battery is full, if so, executing step 313; otherwise, step 312 is performed.
Step 312: the UC unit controls the power adapter to charge the first battery, and returns to step 311.
Step 313: and the UC unit controls the power adapter to stop charging, and the current flow is ended.
Referring to fig. 4, a flowchart of a third embodiment of the battery charge and discharge control method according to the present application is shown, and the process of performing charge and discharge control by combining the BASE device and the keyboard device is described in detail in this embodiment with reference to the electronic device structure shown in fig. 2:
step 401: and judging that the electronic equipment is in the second mode.
Step 402: it is determined that the charge and discharge process of the battery is controlled by the EC unit of the BASE device.
Step 403: judging whether a power adapter is accessed, if not, executing a step 404; if yes, go to step 405.
Step 404: and the EC unit controls a first battery in the keyboard equipment to supply power for the system, and the current process is ended.
Step 405: the EC unit controls the power adapter to supply power to the system and reads the power of the first battery.
Step 406: judging whether the electric quantity of the first battery is full, if so, executing step 408; otherwise, step 407 is executed.
Step 407: the EC unit controls the power adapter to charge the first battery and returns to step 406.
Step 408: and the EC unit controls the power adapter to stop charging, and the current flow is ended.
Referring to fig. 5, a flowchart of a fourth embodiment of the battery charge and discharge control method according to the present application is shown, and the embodiment describes in detail a process of performing charge and discharge control by combining a keyboard device, a PANEL device, and a BASE device with reference to the electronic device structure shown in fig. 2:
step 501: and judging that the electronic equipment is in the third mode.
Step 502: it is determined that the charge and discharge process of the battery is controlled by the EC unit of the BASE device.
Step 503: judging whether a power adapter is accessed, if not, executing step 504; if yes, go to step 508.
Step 504: the EC unit reads the power level of the first battery in the keyboard device.
Step 505: judging whether the electric quantity of the first battery exceeds a preset threshold value, if so, executing a step 506; otherwise, go to step 507.
Step 506: and the EC unit controls the first battery to supply power to the system, and the current process is ended.
Step 507: and the EC unit controls the second battery to supply power to the system, and the current process is ended.
Step 508: the EC unit controls the power adapter to supply power to the system and reads the electric quantity of the first battery and the second battery.
Step 509: judging whether the electric quantity of the second battery is full, if so, executing step 511; otherwise, step 510 is performed.
Step 510: the EC unit controls the power adapter to charge the second battery and returns to step 509.
Step 511: judging whether the electric quantity of the first battery is full, if so, executing step 513; otherwise, step 512 is performed.
Step 512: the EC unit controls the power adapter to charge the first battery, and returns to step 511.
Step 513: and the EC unit controls the power adapter to stop charging, and the current flow is ended.
Referring to fig. 6, a flowchart of a fifth embodiment of the battery charge and discharge control method according to the present application is shown, and this embodiment describes in detail a process of charge and discharge control when the keyboard device is used alone, in conjunction with the electronic device structure shown in fig. 2:
step 601: and judging that the electronic equipment is in the fourth mode.
Step 602: judging whether a power adapter is accessed, if so, executing step 603; otherwise, step 606 is performed.
Step 603: judging whether the electric quantity of a first battery in the keyboard equipment is full, if so, executing a step 604; otherwise, step 605 is executed.
Step 604: the power adapter stops charging the first battery, and the current flow is ended.
Step 605: the first battery is charged through the power adapter and the process returns to step 603.
Step 606: and discharging the first battery, and ending the current process.
In addition to the foregoing charge and discharge control processes in the four operation modes of the electronic device shown in fig. 3 to fig. 6, when the PANEL device is used alone, the electronic device is in the fifth mode, at this time, the second battery in the PANEL device supplies power to the system, if the PANEL device can be connected to the power adapter, the power adapter can supply power to the PANEL device, and charge the second battery, if the PANEL device cannot be connected to the power adapter, the second battery can supply power to the PANEL device until the power is exhausted, and then the keyboard device or the keyboard device and the BASE device can be connected to perform charging in the manner described in the foregoing embodiment, which is not described again here.
Corresponding to the embodiment of the battery charging and discharging control method, the application also provides an embodiment of the electronic device applying the embodiment of the battery charging and discharging control method.
Referring to fig. 7, a block diagram of an embodiment of an electronic device according to the present application is shown:
the electronic device includes: a first housing 710 having an input unit 711, a second housing 720 having a display unit 721 and a first control unit 722, and a third housing 730 having a second control unit 731, wherein the first housing 710, the second housing 720, and the third housing 730 can be separated from or combined with each other; a first battery 740 and a second battery 750 are also included.
Wherein the first battery 740 is disposed in a first housing and the second battery 750 is disposed in a second housing; alternatively, the first battery 740 is disposed in the third case, and the second battery 750 is disposed in the second case. For convenience of example, fig. 7 illustrates a case in which the first battery 740 is disposed in the first case and the second battery 750 is disposed in the second case.
The electronic device further includes:
a working mode determining unit 760, configured to determine a working mode of the electronic device, obtain a first determination result, and determine to control a battery charging/discharging process in the working mode by using a first control unit or a second control unit according to the first determination result;
and the charge and discharge control unit 770 is configured to determine whether a power adapter is connected, obtain a second determination result, and perform charge and discharge control on the first battery and/or the second battery through the determined control unit according to the second determination result.
Wherein the operation mode may include: a first mode in which the first casing and the second casing are used simultaneously, a second mode in which the first casing and the third casing are used simultaneously, and a third mode in which the first casing, the second casing, and the third casing are used simultaneously.
Specifically, the working mode determining unit 760 is specifically configured to determine that the first control unit controls the battery charging and discharging process in a first mode when it is determined that the electronic device is in the first mode;
the charge and discharge control unit 770 may include (not shown in fig. 7): the first trigger unit is used for triggering the first control unit to judge whether the electric quantity of a first battery arranged in the first shell exceeds a preset threshold value or not when the second judgment result is that no power adapter is accessed, if so, the first battery is used for supplying power to the system, and otherwise, the second battery arranged in the second shell is used for supplying power to the system; the second trigger unit is used for triggering the first control unit to control the power adapter to supply power to the system when the second judgment result is that the power adapter is accessed; when the first control unit is triggered to judge that the electric quantity of a second battery arranged in the second shell is not full, the second battery is charged through the power adapter until the electric quantity of the second battery is full; when the first control unit is triggered to judge that the electric quantity of the second power supply arranged in the second shell is full, whether the electric quantity of the first battery arranged in the first shell is full is judged, and if the electric quantity of the first battery is not full, the first battery is charged through the power adapter until the electric quantity of the first battery is full.
Specifically, the operating mode determining unit 760 is specifically configured to determine that the second control unit controls the battery charging and discharging process in a second mode when it is determined that the electronic device is in the second mode;
the charge and discharge control unit 770 may include (not shown in fig. 7): the third triggering unit is used for triggering the second control unit to control the first battery arranged in the first shell to supply power to the system when the second judgment result is that no power adapter is connected; the fourth triggering unit is used for triggering the second control unit to control the power adapter to supply power to the system when the second judgment result is that the power adapter is accessed; and triggering the second control unit to judge whether the electric quantity of the first battery arranged in the first shell is full, and if not, charging the first battery through the power adapter until the electric quantity of the first battery is full.
Specifically, the working mode determining unit 760 is specifically configured to determine that the second control unit controls the battery charging and discharging process in a third mode when it is determined that the electronic device is in the third mode;
the charge and discharge control unit 770 may include (not shown in fig. 7): the fifth triggering unit is used for triggering the second control unit to judge whether the electric quantity of the first battery arranged in the first shell exceeds a preset threshold value or not when the second judgment result is that no power adapter is accessed, if so, the first battery is used for supplying power to the system, and otherwise, the second battery arranged in the second shell is used for supplying power to the system; the sixth triggering unit is used for triggering the second control unit to control the power adapter to supply power to the system when the second judgment result is that the power adapter is accessed; when the second control unit is triggered to judge that the electric quantity of a second battery arranged in the second shell is not full, the second battery is charged through the power adapter until the electric quantity of the second battery is full; when the second control unit is triggered to judge that the electric quantity of the power supply arranged in the second shell is full, whether the electric quantity of the first battery arranged in the first shell is full is judged, and if the electric quantity of the first battery is not full, the first battery is charged through the power adapter until the electric quantity of the first battery is full.
Further, the operation mode may further include: a fourth mode in which the first housing is used alone, a fifth mode in which the second housing is used alone;
the charge and discharge control unit 770 is further configured to determine whether a power adapter is connected when the electronic device is determined to be in the fourth mode, determine whether the electric quantity of a first battery disposed in the first housing is full if the power adapter is connected, and charge the first battery through the power adapter until the electric quantity of the first battery is full if the first battery is not full; if no power adapter is connected, controlling a first battery arranged in the first shell to discharge;
the charge and discharge control unit 770 is further configured to control the second battery disposed in the second housing to discharge when it is determined that the electronic device is in the fifth mode.
As can be seen from the description of the above embodiments, in the embodiment of the present application, the electronic device includes a first battery and a second battery, and further includes a first housing having an input unit, a second housing having a display unit and a first control unit, and a third housing having a second control unit, when performing charge and discharge control, first determining an operating mode of the electronic device to obtain a first determination result, determining whether to control a charge and discharge process of the battery in a current operating mode using the first control unit or the second control unit according to the first determination result, then determining whether a power adapter is connected to obtain a second determination result, and performing charge and discharge control on the first battery and/or the second battery through the determined control unit according to the second determination result. When the embodiment of the application is used for controlling the charging and discharging process of the battery, an independent control chip is not required to be arranged, and different charging and discharging control processes are adopted according to different working modes of the electronic equipment, so that the control process is simple, and the charging and discharging process is flexible.
Those skilled in the art will readily appreciate that the techniques of the embodiments of the present invention may be implemented as software plus a required general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be essentially or partially implemented in the form of a software product, which may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above-described embodiments of the present invention do not limit the scope of the present invention. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (14)

1. A battery charge and discharge control method is characterized in that the method is applied to electronic equipment at least provided with a first battery and a second battery, the electronic equipment at least comprises a first shell provided with an input unit, a second shell provided with a display unit and a first control unit, and a third shell provided with a second control unit, wherein the first shell, the second shell and the third shell can be separated from each other, and the electronic equipment has a plurality of working modes; the battery charge and discharge control method comprises the following steps:
judging the working mode of the electronic equipment, obtaining a first judgment result, and determining to use a first control unit or a second control unit to control the charging and discharging process of the battery in the working mode according to the first judgment result;
and judging whether a power adapter is accessed, obtaining a second judgment result, and performing charge and discharge control on the first battery and/or the second battery through the determined control unit according to the second judgment result.
2. The method of claim 1,
the first battery is disposed in the first housing and the second battery is disposed in the second housing; or,
the first battery is disposed in the third case, and the second battery is disposed in the second case.
3. The method according to claim 1 or 2, wherein the operating mode comprises:
a first mode in which the first casing and the second casing are used simultaneously, a second mode in which the first casing and the third casing are used simultaneously, and a third mode in which the first casing, the second casing, and the third casing are used simultaneously.
4. The method according to claim 3, wherein when the electronic device is determined to be in a first mode, determining that the first control unit controls the battery charging and discharging process in the first mode, and wherein controlling the charging and discharging of the first battery and/or the second battery through the determined control unit according to the second determination result comprises:
when the second judgment result is that no power adapter is accessed, triggering the first control unit to judge whether the electric quantity of a first battery arranged in the first shell exceeds a preset threshold value, if so, supplying power to the system through the first battery, otherwise, supplying power to the system through a second battery arranged in the second shell;
when the second judgment result is that the power adapter is accessed, triggering a first control unit to control the power adapter to supply power to the system; when the first control unit is triggered to judge that the electric quantity of a second battery arranged in the second shell is not full, the second battery is charged through the power adapter until the electric quantity of the second battery is full; when the first control unit is triggered to judge that the electric quantity of the second power supply arranged in the second shell is full, whether the electric quantity of the first battery arranged in the first shell is full is judged, and if the electric quantity of the first battery is not full, the first battery is charged through the power adapter until the electric quantity of the first battery is full.
5. The method according to claim 3, wherein when the electronic device is determined to be in a second mode, determining that the second control unit controls the battery charging and discharging process in the second mode, and wherein controlling the charging and discharging of the first battery and/or the second battery through the determined control unit according to the second determination result comprises:
when the second judgment result is that no power adapter is accessed, triggering a second control unit to control a first battery arranged in the first shell to supply power for the system;
when the second judgment result is that the power adapter is accessed, triggering a second control unit to control the power adapter to supply power to the system; and triggering the second control unit to judge whether the electric quantity of the first battery arranged in the first shell is full, and if not, charging the first battery through the power adapter until the electric quantity of the first battery is full.
6. The method according to claim 3, wherein when the electronic device is determined to be in a third mode, determining that the second control unit controls the battery charging and discharging process in the third mode, and wherein controlling the charging and discharging of the first battery and/or the second battery through the determined control unit according to the second determination result comprises:
when the second judgment result is that no power adapter is accessed, triggering a second control unit to judge whether the electric quantity of a first battery arranged in a first shell exceeds a preset threshold value, if so, supplying power to the system through the first battery, otherwise, supplying power to the system through a second battery arranged in a second shell;
when the second judgment result is that the power adapter is accessed, triggering a second control unit to control the power adapter to supply power to the system; when the second control unit is triggered to judge that the electric quantity of a second battery arranged in the second shell is not full, the second battery is charged through the power adapter until the electric quantity of the second battery is full; when the second control unit is triggered to judge that the electric quantity of the power supply arranged in the second shell is full, whether the electric quantity of the first battery arranged in the first shell is full is judged, and if the electric quantity of the first battery is not full, the first battery is charged through the power adapter until the electric quantity of the first battery is full.
7. The method of claim 3, wherein the operational mode further comprises:
a fourth mode in which the first housing is used alone, and a fifth mode in which the second housing is used alone.
8. The method of claim 7, further comprising:
when the electronic equipment is judged to be in the fourth mode, judging whether a power adapter is accessed, if so, judging whether the electric quantity of a first battery arranged in a first shell is full, and if not, charging the first battery through the power adapter until the electric quantity of the first battery is full; if no power adapter is connected, controlling a first battery arranged in the first shell to discharge;
and when the electronic equipment is judged to be in the fifth mode, controlling a second battery arranged in the second shell to discharge.
9. An electronic device, characterized in that the electronic device comprises at least a first battery and a second battery, and further comprises a first housing having an input unit, a second housing having a display unit and a first control unit, and a third housing having a second control unit, wherein the first housing, the second housing, and the third housing are separable from each other, the electronic device has a plurality of operation modes; the electronic device further includes:
the working mode determining unit is used for judging the working mode of the electronic equipment, obtaining a first judgment result and determining to use the first control unit or the second control unit to control the charging and discharging process of the battery under the working mode according to the first judgment result;
and the charge and discharge control unit is used for judging whether a power adapter is accessed or not, obtaining a second judgment result, and performing charge and discharge control on the first battery and/or the second battery through the determined control unit according to the second judgment result.
10. The electronic device of claim 9, wherein the first battery is disposed in a first housing and the second battery is disposed in a second housing; alternatively, the first battery is disposed in the third case, and the second battery is disposed in the second case;
the working modes comprise: a first mode in which the first casing and the second casing are used simultaneously, a second mode in which the first casing and the third casing are used simultaneously, and a third mode in which the first casing, the second casing, and the third casing are used simultaneously.
11. The electronic device of claim 10,
the working mode determining unit is specifically configured to determine that the first control unit controls a battery charging and discharging process in a first mode when it is determined that the electronic device is in the first mode;
the charge and discharge control unit includes:
the first trigger unit is used for triggering the first control unit to judge whether the electric quantity of a first battery arranged in the first shell exceeds a preset threshold value or not when the second judgment result is that no power adapter is accessed, if so, the first battery is used for supplying power to the system, and otherwise, the second battery arranged in the second shell is used for supplying power to the system;
the second trigger unit is used for triggering the first control unit to control the power adapter to supply power to the system when the second judgment result is that the power adapter is accessed; when the first control unit is triggered to judge that the electric quantity of a second battery arranged in the second shell is not full, the second battery is charged through the power adapter until the electric quantity of the second battery is full; when the first control unit is triggered to judge that the electric quantity of the second power supply arranged in the second shell is full, whether the electric quantity of the first battery arranged in the first shell is full is judged, and if the electric quantity of the first battery is not full, the first battery is charged through the power adapter until the electric quantity of the first battery is full.
12. The electronic device of claim 10,
the working mode determining unit is specifically configured to determine that the second control unit controls the battery charging and discharging process in a second mode when it is determined that the electronic device is in the second mode;
the charge and discharge control unit includes:
the third triggering unit is used for triggering the second control unit to control the first battery arranged in the first shell to supply power to the system when the second judgment result is that no power adapter is connected;
the fourth triggering unit is used for triggering the second control unit to control the power adapter to supply power to the system when the second judgment result is that the power adapter is accessed; and triggering the second control unit to judge whether the electric quantity of the first battery arranged in the first shell is full, and if not, charging the first battery through the power adapter until the electric quantity of the first battery is full.
13. The electronic device of claim 10,
the working mode determining unit is specifically configured to determine that the second control unit controls a battery charging and discharging process in a third mode when it is determined that the electronic device is in the third mode;
the charge and discharge control unit includes:
the fifth triggering unit is used for triggering the second control unit to judge whether the electric quantity of the first battery arranged in the first shell exceeds a preset threshold value or not when the second judgment result is that no power adapter is accessed, if so, the first battery is used for supplying power to the system, and otherwise, the second battery arranged in the second shell is used for supplying power to the system;
the sixth triggering unit is used for triggering the second control unit to control the power adapter to supply power to the system when the second judgment result is that the power adapter is accessed; when the second control unit is triggered to judge that the electric quantity of a second battery arranged in the second shell is not full, the second battery is charged through the power adapter until the electric quantity of the second battery is full; when the second control unit is triggered to judge that the electric quantity of the power supply arranged in the second shell is full, whether the electric quantity of the first battery arranged in the first shell is full is judged, and if the electric quantity of the first battery is not full, the first battery is charged through the power adapter until the electric quantity of the first battery is full.
14. The electronic device of claim 10, wherein the operational mode further comprises: a fourth mode in which the first housing is used alone, a fifth mode in which the second housing is used alone;
the charging and discharging control unit is further used for judging whether a power adapter is connected when the electronic equipment is judged to be in the fourth mode, judging whether the electric quantity of a first battery arranged in the first shell is full if the power adapter is connected, and charging the first battery through the power adapter until the electric quantity of the first battery is full if the first battery is not full; if no power adapter is connected, controlling a first battery arranged in the first shell to discharge;
and the charge and discharge control unit is further used for controlling a second battery arranged in the second shell to discharge when the electronic equipment is judged to be in the fifth mode.
CN201110298243.4A 2011-09-29 2011-09-29 Battery charge-discharge control method and electronic equipment Active CN103035966B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110298243.4A CN103035966B (en) 2011-09-29 2011-09-29 Battery charge-discharge control method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110298243.4A CN103035966B (en) 2011-09-29 2011-09-29 Battery charge-discharge control method and electronic equipment

Publications (2)

Publication Number Publication Date
CN103035966A CN103035966A (en) 2013-04-10
CN103035966B true CN103035966B (en) 2015-06-03

Family

ID=48022615

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110298243.4A Active CN103035966B (en) 2011-09-29 2011-09-29 Battery charge-discharge control method and electronic equipment

Country Status (1)

Country Link
CN (1) CN103035966B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106787025B (en) 2014-01-28 2019-05-10 Oppo广东移动通信有限公司 Charge mode switching circuit and method
EP3866301A1 (en) 2014-01-28 2021-08-18 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Power adapter and terminal
CN108155678A (en) * 2016-12-02 2018-06-12 富泰华工业(深圳)有限公司 Electronic device and the method for controlling the electronic device charge and discharge
CN106990824A (en) * 2017-04-24 2017-07-28 合肥宝龙达信息技术有限公司 A kind of double cell management method and system applied on two-in-one notebook
CN107171395A (en) * 2017-06-26 2017-09-15 联想(北京)有限公司 A kind of charge/discharge control method, controller and electronic equipment
CN109066892B (en) * 2018-09-10 2021-02-05 Oppo广东移动通信有限公司 Split screen electronic equipment charging circuit and charging control method
CN109378868B (en) * 2018-09-14 2021-05-14 Oppo广东移动通信有限公司 Electronic equipment power supply circuit and electronic equipment
CN109450058A (en) * 2019-01-11 2019-03-08 深圳市迷购网络科技有限公司 Earphone charging method, earphone and computer readable storage medium
CN115549232B (en) * 2022-04-21 2024-03-22 荣耀终端有限公司 Charging method and device of electronic equipment, electronic equipment and keyboard

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1808336A (en) * 2005-01-20 2006-07-26 英业达股份有限公司 Charging management method and system
CN101350436A (en) * 2007-07-20 2009-01-21 深圳市顶星数码网络技术有限公司 Intelligent control method for charging battery of notebook computer
CN101677143A (en) * 2008-09-19 2010-03-24 联想(北京)有限公司 Mobile terminal charging control method and mobile terminals
CN101939892A (en) * 2008-02-19 2011-01-05 丰田自动车株式会社 Vehicle and method for estimating charged state of secondary battery

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3730414B2 (en) * 1998-07-15 2006-01-05 株式会社東芝 Computer and power supply control method thereof
US20090001928A1 (en) * 2007-06-27 2009-01-01 John Arthur Fee Transformation of battery charger to power source using signature adapters
JP2010011682A (en) * 2008-06-30 2010-01-14 Toshiba Corp Information processor, battery unit, battery charging method, and program
US20110095728A1 (en) * 2009-10-28 2011-04-28 Superior Communications, Inc. Method and apparatus for recharging batteries in a more efficient manner
JP2011151891A (en) * 2010-01-19 2011-08-04 Sony Corp Method and apparatus for charging secondary battery
KR20110090212A (en) * 2010-02-03 2011-08-10 삼성전자주식회사 Apparatus and method for reducing time to charge battery in portable device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1808336A (en) * 2005-01-20 2006-07-26 英业达股份有限公司 Charging management method and system
CN101350436A (en) * 2007-07-20 2009-01-21 深圳市顶星数码网络技术有限公司 Intelligent control method for charging battery of notebook computer
CN101939892A (en) * 2008-02-19 2011-01-05 丰田自动车株式会社 Vehicle and method for estimating charged state of secondary battery
CN101677143A (en) * 2008-09-19 2010-03-24 联想(北京)有限公司 Mobile terminal charging control method and mobile terminals

Also Published As

Publication number Publication date
CN103035966A (en) 2013-04-10

Similar Documents

Publication Publication Date Title
CN103035966B (en) Battery charge-discharge control method and electronic equipment
JP4940326B2 (en) Charging device, electronic device, and charging method
CN101728859B (en) Mobile terminals and system and method for sharing batteries between same
US9753094B2 (en) Battery performance under high temperature exposure
US20180366967A1 (en) Charging device and charging method
CN102577021B (en) Mobile terminal device, power supply system, and power supply method and power supply program for mobile terminal device
JP2005168103A (en) Battery pack, electrical apparatus, computer device, battery control method, power supply method, and program
JP2014524232A (en) Power supply apparatus and method, and user apparatus
CN103207656B (en) Computer with integrated and its method for managing power supply
CN103248763A (en) Communication method and mobile terminal
CN1996701A (en) Battery charging management system and method
CN103326078A (en) Mobile device charging method and system
CN103034547B (en) Based on electronic equipment operation method and the electronic equipment of battery
US9450440B2 (en) High capacity batteries with on-demand fast charge capability
US20140055097A1 (en) Electronic device system and battery pack
EP2730994B1 (en) Charging and discharging management device and mobile terminal
CN109256825B (en) Charging method and electronic device
CN104113104A (en) Charging method and system
US20170093181A1 (en) Charging control method and apparatus, terminal and computer storage medium
CN103257597B (en) Control method and electronic equipment
KR100713850B1 (en) Battery pack, portable electronic apparatus, and control method thereof
CN115549232A (en) Charging method and device of electronic equipment, electronic equipment and keyboard
CN103872397A (en) Charging method and electronic device
EP2725680B1 (en) Electronic device and power supplying control method thereof
US9507400B2 (en) Information handling system battery charge management to support quick start

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant