CN117674345A - Charging method and electronic equipment - Google Patents

Charging method and electronic equipment Download PDF

Info

Publication number
CN117674345A
CN117674345A CN202311464519.0A CN202311464519A CN117674345A CN 117674345 A CN117674345 A CN 117674345A CN 202311464519 A CN202311464519 A CN 202311464519A CN 117674345 A CN117674345 A CN 117674345A
Authority
CN
China
Prior art keywords
battery
switching device
charging
electric quantity
electronic device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311464519.0A
Other languages
Chinese (zh)
Inventor
霍军军
邓旭同
邵礼泽
官欣
李刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202311464519.0A priority Critical patent/CN117674345A/en
Publication of CN117674345A publication Critical patent/CN117674345A/en
Pending legal-status Critical Current

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

Abstract

The application is applicable to the technical field of terminals and provides a charging method and electronic equipment. The charging method comprises the following steps: monitoring the residual electric quantity of a battery of the electronic equipment under the condition that the electronic equipment is connected with a charger; when the residual electric quantity is equal to a first electric quantity threshold value at a first moment and the first moment is within a first period, a first switching device between a power interface of the electronic equipment and a first node used for connecting a working circuit of the electronic equipment is controlled to be turned off, and a second switching device between the first node and a battery is controlled to be turned on so as to suspend the charging process of the battery; under the condition that the electronic equipment is continuously connected with the charger for a long time, the residual capacity of the battery is kept at the first electric quantity threshold value and is not increased after the charging process of the battery is suspended, so that the possibility that the residual capacity of the battery is rapidly filled is reduced, and the service life of the battery is prolonged.

Description

Charging method and electronic equipment
Technical Field
The application relates to the technical field of terminals, in particular to a charging method and electronic equipment.
Background
In daily life, users often charge electronic devices such as mobile phones for a long time. However, continuously charging the electronic device for a long period of time may result in the battery of the electronic device being in a full charge state for a long period of time, which may accelerate battery aging. In order to slow down the aging speed of the battery and prolong the service life of the battery, the related art provides an intelligent charging mode. In the intelligent charging mode, the electronic device can control the charging circuit of the electronic device to delay the charging of the battery to 100% when the electronic device is identified to be continuously connected with the charger for a long time by learning the charging habit of the user, for example, the electronic device can control the charging circuit to suspend charging of the battery after the remaining power of the battery reaches a preset power threshold, namely, suspend the charging process of the battery, so as to temporarily maintain the remaining power of the battery at the preset power threshold; and the charging circuit can be controlled to continuously fully charge the residual electric quantity of the battery to 100% before the user uses the electronic equipment, so that the time period that the battery is in the full-electric-quantity state can be shortened.
However, in the case of the intelligent charging mode, for example, in a scene of weak communication signals, it cannot be ensured that the remaining capacity of the battery is maintained at the preset capacity threshold value and does not increase after the charging process of the battery is suspended, so that the service life of the battery is not prolonged.
Disclosure of Invention
The embodiment of the application provides a charging method and electronic equipment, which can ensure that the residual electric quantity of a battery is kept at a first electric quantity threshold value and is not increased after the charging process of the battery is suspended, thereby reducing the possibility that the residual electric quantity of the battery is filled quickly and being beneficial to prolonging the service life of the battery.
In a first aspect, an embodiment of the present application provides a charging method, including: monitoring the residual electric quantity of a battery of the electronic equipment under the condition that the electronic equipment is connected with a charger; when the residual electric quantity is equal to the first electric quantity threshold value at the first moment and the first moment is within the first period, the first switching device between the power interface of the electronic equipment and the first node is controlled to be turned off, the second switching device between the first node and the battery is controlled to be turned on, and the first node is also used for connecting a working circuit of the electronic equipment.
The remaining power of the battery may refer to an actual state of charge (SOC) of the battery of the electronic device.
The value of SOC is typically in the form of a percentage that is used to describe the proportion of the available charge of the battery of the electronic device to the nominal capacity. Nominal capacity refers to the theoretical maximum capacity of the battery, i.e. the total electrical energy that the battery is able to provide.
The first time may be any time in the case where the electronic device is connected to the charger.
The first power threshold may be a reference value of a remaining power of the power management module for determining whether to perform the deferred charging operation in the smart charge mode. For example, the first power threshold may be a default remaining power reference value provided by the smart charge mode.
The end time of the first period may be within the target charging period, i.e., the end time of the first period may be earlier than the end time of the target charging period and later than the start time of the target charging period.
The target charging period may be a period in which the electronic device is continuously connected to the charger for a long time and is not used, which is determined from the historical usage data and the historical charging data of the electronic device. The duration of the target charging period may be greater than the normal charging duration required for charging the remaining capacity of the battery from 0 to 100%, that is, the normal charging duration may be used to describe the duration required for charging the remaining capacity of the battery from 0 to 100% in the normal charging mode. The normal charging mode refers to a charging mode corresponding to a case where both the first switching device and the second switching device are in an on state.
Alternatively, the end time of the first period may be determined according to the end time of the target charging period. For example, the time interval between the end time of the first period and the end time of the target charging period may be the first time length, i.e., the end time of the target charging period may be pushed forward by the first time length to obtain the end time of the first period.
Optionally, the end time of the first period may be determined according to the end time of the target charging period, the first power threshold, and the target charging speed. For example, the electronic device may determine a second time period required for the battery to charge from the first power threshold to 100% at the target charging speed, and then push the end time of the first period forward for the second time period to obtain the end time of the first period. The target charging speed may be a charging speed of a charging phase corresponding to the first power threshold.
Specifically, the power management module may monitor a remaining power of a battery of the electronic device when the electronic device is connected to the charger in a case where the intelligent charging mode is turned on. For example, when a charger is connected to a power interface of the electronic device, the power management module may first detect whether an intelligent charging mode of the electronic device is in an on state. When the intelligent charging mode is in an on state, the power management module can start to monitor the residual electric quantity of the battery of the electronic equipment; the power management module may stop monitoring the remaining power of the battery of the electronic device when the power interface of the electronic device is disconnected from the charger.
According to the charging method provided by the embodiment of the application, by monitoring the residual electric quantity of the battery of the electronic equipment under the condition of being connected with the charger, when the residual electric quantity is equal to a first electric quantity threshold value at a first moment and the first moment is in a first period, a first switching device between a power interface of the electronic equipment and a first node used for connecting a working circuit of the electronic equipment is controlled to be turned off, and a second switching device between the first node and the battery is controlled to be turned on so as to suspend the charging process of the battery; therefore, the charging process of the battery can be suspended when the electronic equipment is continuously connected with the charger for a long time and the residual electric quantity of the battery is charged to the first electric quantity threshold value, the time of the battery in a full electric quantity state is shortened, and the service life of the battery is prolonged.
Meanwhile, the charging process of the battery is suspended by adopting a mode of controlling the first switching device to be turned off and controlling the second switching device to be turned on, and as the passage between the charger and the battery is disconnected when the first switching device is turned off, the residual electric quantity of the battery can be ensured to be maintained at the first electric quantity threshold value and not to be increased after the battery is suspended from being charged, so that the possibility that the residual electric quantity of the battery is rapidly full of the battery is reduced, and the service life of the battery is prolonged. Further, since the second switching device is controlled to be turned on when the charging process of the battery is suspended, the battery can supply power to the operating circuit through the second switching device when the power consumption of the operating circuit of the electronic apparatus increases, so that the stability of the operation of the operating circuit can be ensured.
In an optional implementation manner of the first aspect, after controlling the first switching device between the power interface of the electronic device and the first node to be turned off and controlling the second switching device between the first node and the battery to be turned on, the method further includes: and when the residual electric quantity is reduced from the first electric quantity threshold value to be smaller than the first electric quantity threshold value and larger than the second electric quantity threshold value at the second moment, and the second moment is within the first period, the first switching device is kept to be turned off, and the second switching device is kept to be turned on.
Wherein the second time is later than the first time.
The second power threshold may refer to a lower limit value of the remaining power of the battery that enables the remaining power displayed on the user interface to be maintained at the first power threshold. For example, assuming that the remaining power of the battery is in the interval of 78% -80%, the remaining power displayed on the user interface is maintained at 80%, and the second power threshold may be 78%.
According to the charging method provided by the embodiment of the application, when the residual electric quantity of the battery is reduced from the first electric quantity threshold value to be smaller than the first electric quantity threshold value and larger than the second electric quantity threshold value at the second moment and the second moment is within the first period, the residual electric quantity of the battery is only consumed by a small part of a working circuit of the electronic equipment after the charging process of the battery is suspended, and the consumed part is insufficient to enable the residual electric quantity displayed on the user interface of the electronic equipment to change, so that the power management module continuously controls the first switching device to be turned off and continuously controls the second switching device to be turned on, the residual electric quantity displayed on the user interface of the electronic equipment can be kept unchanged, and frequent turn-on and turn-off operations of the first switching device can be avoided.
In an optional implementation manner of the first aspect, after controlling the first switching device between the power interface of the electronic device and the first node to be turned off and controlling the second switching device between the first node and the battery to be turned on, the method further includes: and controlling the first switching device and the second switching device to be conducted under the condition that the residual electric quantity is reduced from the first electric quantity threshold value to be smaller than the second electric quantity threshold value at the third moment. Wherein the third time is later than the second time.
According to the charging method provided by the embodiment of the application, when the residual electric quantity of the battery is reduced from the first electric quantity threshold value to be smaller than the second electric quantity threshold value at the third moment, the residual electric quantity of the battery is consumed more by the working circuit of the electronic equipment after the charging process of the battery is suspended, and the suspension condition of the charging process of the battery is not met any more, so that the power management module is conducted by controlling the first switching device and the second switching device to resume the charging process of the battery, and the charging circuit can continue to charge the battery.
In an optional implementation manner of the first aspect, after monitoring a remaining power of a battery of the electronic device in a case where the electronic device is connected to the charger, the method further includes: and controlling the first switching device and the second switching device to be both conducted under the condition that the residual electric quantity is equal to the first electric quantity threshold value at the first moment and the first moment is not in the first period.
According to the charging method provided by the embodiment of the application, when the residual electric quantity of the battery is equal to the first electric quantity threshold at the first moment and is not in the first period, the residual electric quantity of the battery is indicated to be not in a period of continuous long-time connection with the charger and unused although the residual electric quantity of the battery is already charged to the first electric quantity threshold, so that the power management module can enable the charging circuit to normally charge the battery by controlling the first switching device and the second switching device to be conducted.
In an optional implementation manner of the first aspect, after monitoring a remaining power of a battery of the electronic device in a case where the electronic device is connected to the charger, the method further includes: and controlling the first switching device and the second switching device to be both on under the condition that the residual electric quantity is smaller than the first electric quantity threshold value at the fourth moment and the fourth moment is in the first period.
The fourth time may be any time before the remaining capacity of the battery is not charged to the first capacity threshold after the electronic device is connected to the charger, that is, the fourth time may be earlier than the first time.
In a second aspect, an embodiment of the present application provides an electronic device, including a power interface, a charging circuit, a battery, a working circuit, and a power management module; the charging circuit comprises a first switching device and a second switching device; the first end of the first switching device is connected with the power interface, the second end of the first switching device and the first end of the second switching device are connected to a first node, the first node is also used for connecting a working circuit, the second end of the second switching device is connected with the positive electrode of the battery, the positive electrode of the battery is grounded, and the controlled end of the first switching device and the controlled end of the second switching device are both connected with the power management module; the power management module is configured to perform steps in the charging method according to any implementation manner of the first aspect.
In a third aspect, embodiments of the present application provide a computer-readable storage medium storing a computer-executable program which, when invoked by an electronic device, causes the electronic device to perform steps in a charging method as described in any implementation manner of the first aspect.
In a fourth aspect, embodiments of the present application provide a computer-executable program product which, when run on an electronic device, causes the electronic device to perform the steps in the charging method of any implementation of the first aspect described above.
In a fifth aspect, embodiments of the present application provide a chip system, where the chip system is applied to an electronic device, and the chip system includes a processor, where the processor is coupled to a memory, and the memory is configured to store computer program instructions, and when the processor invokes the computer program instructions, cause the electronic device to implement steps in a charging method according to any implementation manner of the first aspect. The chip system can be a single chip or a chip module composed of a plurality of chips.
It will be appreciated that the advantages of the second to fifth aspects may be found in the relevant description of the first aspect, and are not described here again.
Drawings
FIG. 1 is a schematic diagram of a charging scenario of an electronic device;
fig. 2 is a schematic structural diagram of a charging circuit of an electronic device according to the related art;
fig. 3 is a schematic structural diagram of a charging circuit of another electronic device according to the related art;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to another embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to another embodiment of the present disclosure;
fig. 7 is a schematic circuit diagram of an electronic device according to another embodiment of the present disclosure;
fig. 8 is a schematic flowchart of a charging method according to an embodiment of the present application;
fig. 9 is a schematic diagram of a setting interface of an intelligent charging mode according to an embodiment of the present application;
FIG. 10 is a schematic flow chart of a seed charging method according to another embodiment of the present application;
FIG. 11 is a schematic flow chart of a seed charging method provided in a further embodiment of the present application;
fig. 12 is a schematic diagram of an interaction interface of an electronic device according to an embodiment of the present application.
Detailed Description
It should be noted that the terms used in the implementation section of the embodiments of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the present application. In the description of the embodiments of the present application, unless otherwise indicated, "/" means or, for example, a/B may represent a or B; "and/or" herein is merely an association relationship describing a relationship, meaning that there may be three relationships, e.g., a and/or B, may mean: a exists alone, A and B exist together, and B exists alone. In addition, in the description of the embodiments of the present application, unless otherwise indicated, "a plurality" means two or more, and "at least one", "one or more" means one, two or more.
The terms "first" and "second" are used below for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a definition of "a first", "a second" feature may explicitly or implicitly include one or more of such features.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
In daily life, users often charge electronic devices such as mobile phones for a long time. Fig. 1 shows a schematic diagram of a charging scenario of an electronic device. As shown in (a) and (b) of fig. 1, a user often connects the electronic device with the charger before sleeping at night, and disconnects the electronic device from the charger after waking up the next day, so as to fill the remaining electric quantity of the electronic device to 100% in the sleeping period at night, which is convenient for the next day. However, continuously charging the electronic device for a long period of time may result in the battery of the electronic device being in a full charge state for a long period of time, which may accelerate battery aging.
In order to slow down the aging speed of the battery and prolong the service life of the battery, the related art provides an intelligent charging mode. In the intelligent charging mode, the electronic equipment learns the charging habit of a user, and when the electronic equipment is identified to be continuously connected with the charger for a long time, the charging circuit of the electronic equipment is controlled to delay the charge of the battery to 100%, so that the time when the battery is in a full charge state is shortened. For example, in the smart charge mode, assuming that the electronic device learns that the user will typically charge the electronic device in a period of 23:00 a.m. to 7:00 a.m., the electronic device may control the charging circuit to suspend charging the battery (i.e., suspend the charging process of the battery) when it is recognized that the electronic device is charged in the period and the remaining power of the battery is charged to a preset power threshold (e.g., 80%), so as to temporarily maintain the remaining power of the battery at the preset power threshold; and the charging circuit can be controlled to continue charging the battery (i.e. resume the charging process of the battery) in a short period of time before 7:00 a.m. until the remaining capacity of the battery is full. Therefore, the full-charge requirement of a user on the electronic equipment can be met, the time that the battery is in a full-charge state can be shortened, and the service life of the battery can be prolonged.
In order to facilitate understanding, the charging process of the electronic device in the intelligent charging mode is described in detail below in conjunction with the charging circuit of the electronic device.
Fig. 2 is a schematic structural diagram of a charging circuit of an electronic device according to the related art. As shown in fig. 2, the charging circuit 11 of the electronic device is typically connected between the universal serial bus (universal serial bus, USB) interface 10 and the battery 12 of the electronic device, and the charging circuit 11 is also typically connected with the operating circuit 13 of the electronic device.
In some embodiments, in the case of an electronic device connected to a charger through the USB interface 10, the charging circuit 11 may be configured to convert a voltage obtained from the charger into a charging voltage required by the battery 12 and/or an operating voltage required by the operating circuit 13, to charge the battery 12 and/or to power the operating circuit 13, respectively.
Specifically, the charging circuit 11 may include a first switching device 111, a second switching device 112, and a voltage converter 113.
The first switching device 111, the voltage converter 113, and the second switching device 112 may be sequentially connected between the USB interface 10 of the electronic device and the positive electrode of the battery 12, and one end of the voltage converter 113 connected to the positive electrode of the battery 12 may be further connected to the operating circuit 13 of the electronic device.
Alternatively, in the case where the first switching device 111 and the second switching device 112 are both in the on state, the voltage converter 113 may convert the voltage obtained from the charger into the charging voltage required for the battery 12 and/or the operating voltage required for the operating circuit 13 to charge the battery 12 and/or power the operating circuit 13, respectively; in this case, the battery 12 may supply power to the operation circuit 13. Alternatively, in the case where the first switching device 111 is in an on state and the second switching device 112 is in an off state, the voltage converter 113 may convert the voltage obtained from the charger into an operation voltage required for the operation circuit 13, and supply the operation circuit 13 with power. Alternatively, the battery 12 may supply power to the operating circuit 13 with the first switching device 111 in an off state and the second switching device 112 in an on state.
Based on this, in the smart charge mode, the electronic device typically suspends the charging process of the battery 12 in the following manner:
in an initial stage of charging, the electronic apparatus may control both the first switching device 111 and the second switching device 112 to be turned on; as the charging proceeds, the electronic device may keep the first switching device 111 turned on and control the second switching device 112 to be turned off when detecting that the remaining capacity of the battery 12 is charged to the preset capacity threshold, so as to suspend the charging process of the battery 12, and temporarily maintain the remaining capacity of the battery 12 at the preset capacity threshold; in addition, the electronic device can control the current I output by the voltage converter 113 bus Reduced to a preset limit current (e.g., 100 milliamps). Due to the preset limiting current, the operation is generally only satisfiedThe minimum power requirement of the circuit 13, therefore, the charging method has the following technical problems:
when the electronic device is in a scene where communication signals are weak, such as a basement or a shielding room, and needs to communicate with a base station, the working circuit 13 of the electronic device consumes high power. And after the second switching device 112 is controlled to be turned off, the current I output by the voltage converter 113 bus Smaller, the power consumption requirement of the working circuit 13 in this scenario cannot be met, so, in order to ensure that the working circuit 13 can operate stably, the electronic device will force the second switching device 112 to be turned on to force the battery 12 to supply power to the working circuit 13 at the same time. However, the operating circuit 13 does not consume a relatively high power at any time, and when the power consumption of the operating circuit 13 is reduced, the second switching device 112 is forced to be turned on, so that the current I outputted from the voltage converter 113 bus And also to the battery 12 through the second switching device 112. In order to avoid frequent switching operations of the second switching device 112, the electronic apparatus does not immediately control the second switching device 112 to be turned off when the power consumption of the operating circuit 13 is reduced, but at the current I flowing to the battery 12 batt When the current is greater than the preset cutoff current (e.g., 40 milliamp), the second switching device 112 is controlled to be turned off, which results in that the remaining capacity of the battery 12 continues to rise, and it cannot be ensured that the remaining capacity of the battery 12 is maintained at the preset capacity threshold value and does not increase after the charging process of the battery 12 is suspended, so that the possibility that the remaining capacity of the battery 12 is charged more quickly is increased, which is unfavorable for prolonging the service life of the battery 12. And the technical problem is more prominent on multi-battery electronic equipment for the following reasons:
referring to fig. 3, a schematic structure diagram of a charging circuit of another electronic device according to the related art is provided. As shown in fig. 3, for example, the electronic device includes two parallel batteries 12, and when the wiring lengths between the two batteries 12 and the USB interface 10 are different, the link impedances between the two batteries 12 and the USB interface 10 are different, so that the charging speed of one battery 12 is faster than that of the other battery 12. Thus, the current I output from the voltage converter 113 bus Divided by the reduced power consumption requirement of the operating circuit 13The battery 12 having the faster charging rate charges the battery 12 having the slower charging rate while flowing to the two batteries 12, respectively. For example, assuming that the charging speed of the left battery 12 is faster than that of the right battery 12 in fig. 3, the left battery 12 charges the right battery 12, in which case the current on the left battery 12 flows from the positive electrode of the left battery 12 to the positive electrode common junction A1 of the two batteries 12, and the current on the right battery 12 flows from the positive electrode common junction A1 of the two batteries 12 to the positive electrode of the right battery 12, i.e. the current flowing through the two batteries 12 is opposite in direction, resulting in a total current I on the two batteries 12 batt It takes a long time to reach the preset off-state current, that is, it takes a long time to control the second switching device 112 to turn off again, which further results in a more increased residual capacity of the battery 12, further increasing the possibility that the residual capacity of the battery 12 is more rapidly filled, and being more unfavorable for prolonging the service life of the battery 12.
In view of this, an embodiment of the present application provides a charging method and an electronic device, by monitoring a remaining power of a battery of the electronic device in a case where a charger is connected, when the remaining power is equal to a first power threshold at a first time and the first time is within a first period, controlling a first switching device between a power interface of the electronic device and a first node for connecting a working circuit of the electronic device to be turned off, and controlling a second switching device between the first node and the battery to be turned on, so as to suspend a charging process of the battery; therefore, the charging process of the battery can be suspended when the electronic equipment is continuously connected with the charger for a long time and the residual electric quantity of the battery is charged to the first electric quantity threshold value, the time of the battery in a full electric quantity state is shortened, and the service life of the battery is prolonged.
Meanwhile, the charging process of the battery is suspended by adopting a mode of controlling the first switching device to be turned off and controlling the second switching device to be turned on, and as the passage between the charger and the battery is disconnected when the first switching device is turned off, the residual electric quantity of the battery can be ensured to be maintained at the first electric quantity threshold value and not to be increased after the battery is suspended from being charged, so that the possibility that the residual electric quantity of the battery is rapidly full of the battery is reduced, and the service life of the battery is prolonged. Further, since the second switching device is controlled to be turned on when the charging process of the battery is suspended, the battery can supply power to the operating circuit through the second switching device when the power consumption of the operating circuit of the electronic apparatus increases, so that the stability of the operation of the operating circuit can be ensured.
The charging method provided by the embodiment of the application can be applied to electronic devices such as mobile phones, tablet computers, wearable devices, augmented reality (augmented reality, AR)/Virtual Reality (VR) devices, notebook computers, ultra-mobile personal computer (UMPC), netbooks, personal digital assistants (personal digital assistant, PDA) and the like, and the embodiment of the application does not limit specific types of the electronic devices.
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 4, the electronic device may include a USB interface 10, a charging circuit 11, a battery 12, a working circuit 13, a power management module 14, and the like.
It will be appreciated that the configuration illustrated in fig. 4 does not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The components shown in fig. 4 may be implemented in hardware, software, or a combination of software and hardware.
The USB interface 10 may be an interface conforming to the USB standard specification, specifically may be a Mini USB interface, a Micro USB interface, or a USB Type C interface. The USB interface 10 may be used to connect a charger to charge an electronic device; the method can also be used for transmitting data between the electronic equipment and the peripheral equipment; and can also be used for connecting headphones through which audio is played, etc.
In some embodiments, the charging circuit 11 may include a first switching device 111 and a second switching device 112.
Wherein, a first end of the first switching device 111 may be connected to the USB interface 10, a second end of the first switching device 111 may be connected to the first node B1, the first node B1 may also be used to connect a first end of the second switching device 112 to the working circuit 13, a second end of the second switching device 112 may be connected to a positive electrode of the battery 12, a negative electrode of the battery 12 may be directly grounded or grounded through a resistor, and both a controlled end of the first switching device 111 and a controlled end of the second switching device 112 may be connected to the power management module 14.
The first switching device 111 may include an on state and an off state, for example. Alternatively, the first switching device 111 may enter the on state upon receiving the first on control signal from the power management module 14. With the first switching device 111 in the on state, the path between the USB interface 10 and the first node B1 is turned on. Alternatively, the first switching device 111 may enter the off state upon receiving the first off control signal from the power management module 14. In the case where the first switching device 111 is in the off state, the path between the USB interface 10 and the first node B1 is disconnected.
In a specific application, the first switching device 111 may be a switching device such as a mechanical switch, a triode, or a metal-oxide-semiconductor field-effect transistor (MOSFET), and the specific type of the first switching device 111 is not limited in the embodiments of the present application. Taking the first switching device 111 as an NPN transistor as an example, a collector of the NPN transistor may be used as a first end of the first switching device 111, an emitter of the NPN transistor may be used as a second end of the first switching device 111, and a base of the NPN transistor may be used as a controlled end of the first switching device 111. In this example, the first switching device 111 may enter an on state upon receiving a high level signal from the power management module 14, and the first switching device 111 may enter an off state upon receiving a low level signal from the power management module 14; that is, in this example, the first on control signal may be a high level signal and the first off control signal may be a low level signal.
For example, the second switching device 112 may include an on state and an off state. Alternatively, the second switching device 112 may enter the conductive state upon receiving a second conductive control signal from the power management module 14. With the second switching device 112 in the on state, the path between the first node B1 and the battery 12 is turned on. Alternatively, the second switching device 112 may enter an off state upon receiving a second off control signal from the power management module 14. In the case where the second switching device 112 is in the off state, the path between the first node B1 and the battery 12 is disconnected.
In a specific application, the second switching device 112 may be a mechanical switch, a triode, a metal-oxide-semiconductor field-effect transistor (MOSFET) or other switching device, and the specific type of the second switching device 112 is not limited in the embodiments of the present application. Taking the second switching device 112 as a P-type MOSFET for example, the drain of the P-type MOSFET may be used as the first terminal of the second switching device 112, the source of the P-type MOSFET may be used as the second terminal of the second switching device 112, and the gate of the P-type MOSFET may be used as the controlled terminal of the second switching device 112. In this example, the second switching device 112 may enter a conductive state upon receiving a low level signal from the power management module 14; the second switching device 112 may enter an off state upon receiving a high level signal from the power management module 14; that is, in this example, the second on control signal may be a low level signal and the second off control signal may be a high level signal.
It should be noted that the above examples do not constitute a specific limitation on the first switching device 111 and the second switching device 112, and in other embodiments, the first switching device 111 may be a mechanical switch, a PNP transistor, a PMOS or N-type MOSFET, or the like. The second switching device 112 may be a mechanical switch, an NPN transistor, a PNP transistor, an N-type MOSFET, or the like.
Based on this, in some alternative implementations, in the case that the electronic device is connected to the charger through the USB interface 10, and the first switching device 111 and the second switching device 112 are both in the on state, the charger may directly output the charging voltage required by the battery 12 to charge the battery 12; alternatively, the charger may directly output the operating voltage required by the operating circuit 13 to supply power to the operating circuit 13. In addition, the battery 12 may also power the operating circuitry.
In other alternative implementations, when the electronic device is connected to the charger through the USB interface 10 and the first switching device 111 is in an on state and the second switching device 112 is in an off state, the charger may directly output an operating voltage required by the operating circuit 13 to supply power to the operating circuit 13.
In still other alternative implementations, the battery 12 may power the operating circuit 13 with the first switching device 111 in an off state and the second switching device 112 in an on state.
Referring to fig. 5, in other embodiments, the charging circuit 11 may further include a voltage converter 113.
Alternatively, the voltage converter 113 may be connected between the USB interface 10 and the first switching device 111.
Alternatively, the voltage converter 113 may be connected between the first switching device 111 and the first node B1.
Based on this, in some embodiments, in a case where the electronic device is connected to the charger through the USB interface 10 and the first switching device 111 and the second switching device 112 are both in the on state, the voltage converter 113 may be used to convert the voltage acquired from the charger into the charging voltage required by the battery 12 and/or the operating voltage required by the operating circuit 13, thereby charging the battery 12 and/or supplying power to the operating circuit 13; in this case, the battery 12 may supply power to the operation circuit 13.
In other embodiments, in the case where the electronic device is connected to the charger through the USB interface 10 and the first switching device 111 is in an on state and the second switching device 112 is in an off state, the voltage converter 113 may be used to convert the voltage obtained from the charger into the operation voltage required for the operation circuit 13, so as to supply the operation circuit 13 with power.
By way of example, the voltage converter 113 may include, but is not limited to, a buck (buck) circuit, a boost (boost) circuit, a buck-boost circuit, etc., and the type of the voltage converter 113 is not particularly limited in this application.
The number of batteries 12 may be one or more. For example, in the case where the number of the batteries 12 is plural, the plural batteries 12 may be connected in parallel connection or in series connection. Taking an example that the plurality of batteries 12 are connected in parallel, specifically, the positive electrodes of the plurality of batteries 12 may be commonly connected to the first node B1, and the negative electrode of each battery 12 may be grounded through a resistor, or the negative electrode of each battery 12 may be directly grounded.
Referring to fig. 6, in still other embodiments, in the case that the number of the batteries 12 is plural, a voltage equalizing module 15 may be further disposed between every two adjacent batteries 12. The voltage equalizing module 15 may be used to equalize the voltages of two adjacent batteries 12 so that the voltages across the two adjacent batteries 12 are equal, and thus the voltages across all of the batteries 12 are equal.
Fig. 7 is a schematic circuit diagram of an electronic device according to an embodiment of the present application.
For example, taking the voltage converter 113 as an example, as shown in fig. 7, the buck circuit may include a third switching device S1, a fourth switching device S2, a first inductor L1, and a first capacitor C1, for example.
The first end of the third switching device S1 and the first end of the fourth switching device S2 may be commonly connected and serve as an input end of the buck circuit (i.e., the voltage converter 113), the second end of the fourth switching device S2 may be grounded, the second end of the third switching device S1 may be connected to the first end of the first inductor L1, the second end of the first inductor L1 and the first end of the first capacitor C1 may be commonly connected and serve as an output end of the buck circuit (i.e., the voltage converter 113), the second end of the first capacitor C1 may be grounded, and the controlled end of the third switching device S1 and the controlled end of the fourth switching device S2 may be connected to the power management module 14.
Based on this, the power management module 14 may cause the buck circuit to output the charging voltage required by the battery 12 and/or the operating voltage required by the operating circuit 13 by on-off controlling the third switching device S1 and the fourth switching device S2.
Illustratively, as shown in fig. 7, the voltage balancing module 15 may include a voltage balancing resistor R1 and a fifth switching device S3. The first end of the voltage equalizing resistor R1 may be commonly connected to the first end of the fifth switching device S3 and used as the first end of the voltage equalizing module 15, the second end of the voltage equalizing resistor R1 may be commonly connected to the second end of the fifth switching device S3 and used as the second end of the voltage equalizing module 15, and the controlled end of the fifth switching device S3 may be connected to the power management module 14. Based on this, the power management module can realize voltage equalizing of the adjacent two batteries 12 by on-off control of the fifth switching device S3.
By way of example, as shown in fig. 7, the operating circuit 13 may include, for example, a processor 131, an internal memory 132, a mobile communication module 133, a wireless communication module 134, an antenna 135, an antenna 136, a display screen 137, and the like. The processor 131 may be connected to the internal memory 132, the mobile communication module 133, the wireless communication module 134, the display screen 137, and the like.
Processor 131 may include one or more processing units. The different processing units may be separate devices or may be integrated in one or more processors. A memory may also be provided in the processor 131 for storing instructions and data.
Internal memory 132 may be used to store computer-executable program code. The computer executable program code may include instructions. The internal memory 132 may include a stored program area and a stored data area. The storage program area may store an operating system or an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like. The processor 131 may perform various functional applications of the electronic device and data processing by executing instructions stored in the internal memory 132, and/or instructions stored in a memory provided in the processor 131.
The wireless communication function of the electronic device may be implemented by the mobile communication module 133, the wireless communication module 134, the antenna 135, the antenna 136, the modem processor, the baseband processor, and the like.
By way of example, the mobile communication module 133 may provide a solution for wireless communication including 2G/3G/4G/5G, etc., as applied to electronic devices. The wireless communication module 134 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), and infrared technology (IR) applied to the electronic device 100. The antennas 135 and 136 may be used to transmit and receive electromagnetic wave signals.
In some embodiments, antenna 135 may be coupled to mobile communication module 133 and antenna 136 may be coupled to wireless communication module 134 such that the electronic device may communicate with the network and other devices via wireless communication techniques.
The electronic device may implement display functions through the processor 131 and the display screen 137, etc. For example, information such as the remaining charge or the state of charge of the battery may be displayed through the display screen 137.
The power management module 14 is used for controlling the charge and discharge process of the battery 12, and also for monitoring parameters such as the remaining capacity of the battery, the cycle number of the battery, and the state of health (leakage, impedance) of the battery.
In other embodiments, the power management module 14 may also be disposed in the processor 131.
It should be understood that the connection relationship between the modules illustrated in the embodiments of the present application is only illustrative, and does not limit the structure of the electronic device. In other embodiments of the present application, the electronic device may also use different interfacing manners in the foregoing embodiments, or a combination of multiple interfacing manners.
The charging method provided in the embodiment of the present application is described in detail below.
Referring to fig. 8, a schematic flow chart of a charging method according to an embodiment of the present application is provided. The charging method may be applied to the electronic device shown in fig. 4 to 7. For example, in some embodiments, when the power management module of the electronic device is a discrete component independent of the processor of the electronic device, the execution subject of the charging method may be the power management module of the electronic device shown in fig. 4 to 7. In other embodiments, where the power management module is disposed in a processor of the electronic device, the subject of execution of the charging method may be the processor of the electronic device shown in fig. 7. The charging method is exemplified below by taking an execution subject of the charging method as a power management module of an electronic device.
As shown in fig. 8, the charging method may include S81 to S82, which are described in detail as follows:
s81, monitoring the residual quantity of the battery of the electronic equipment under the condition that the electronic equipment is connected with a charger.
In the embodiment of the application, the charging mode of the electronic device may include an intelligent charging mode. Under the intelligent charging mode, the electronic equipment can control the charging circuit of the electronic equipment to delay the charge of the battery to 100% when the electronic equipment is identified to be continuously connected with the charger for a long time by learning the charging habit of the user, so that the duration that the battery of the electronic equipment is in a full charge state can be shortened, and the service life of the battery can be prolonged.
In some embodiments, the smart charge mode may be a charge mode inherent to the electronic device. That is, the electronic device can enter the intelligent charging mode by default after being connected with the charger without any setting of the charging mode of the electronic device by a user.
Based on this, in a specific implementation manner, monitoring the remaining power of the battery of the electronic device when the electronic device is connected to the charger may include: when a charger is connected to a power interface of the electronic equipment, the power management module starts to monitor the residual electric quantity of a battery of the electronic equipment; when the power interface of the electronic device is disconnected with the charger, the power management module stops monitoring the residual electric quantity of the battery of the electronic device.
The power interface of the electronic device may be a USB interface of the electronic device.
In other embodiments, the smart charge mode may be an alternative charge mode for the electronic device. I.e. the user can choose whether to start the intelligent charging mode according to the actual demand.
For example, please refer to fig. 9, which is a schematic diagram of a setting interface of an intelligent charging mode according to an embodiment of the present application. As shown in (a) of fig. 9, when the user needs to turn on the smart charge mode, the user may perform a first operation with respect to the setting application 91 in the electronic device. The first operation may be, for example, a click operation. The electronic device may display a main setting interface 911 as shown in (b) in fig. 9 in response to the first operation.
As shown in (b) of fig. 9, a battery setting item 9110 may be included in the main setting interface 911. The user may perform a second operation with respect to the battery setting item 9110. The second operation may be, for example, a click operation. The electronic device may display a battery setting interface 912 as shown in (c) in fig. 9 in response to the second operation.
As shown in fig. 9 (c), further battery setting items 9120 may be included in the battery setting interface 912. The user may perform a third operation for more battery setting items 9120. The third operation may be, for example, a click operation. The electronic device may display a further battery setting interface 913 as shown in (d) of fig. 9 in response to the third operation.
As shown in (d) of fig. 9, a first switch control 9130 for turning on or off the smart charge mode may be included in the further battery setting interface 913. The first switch control 9130 can include an on state and an off state. Specifically, in the case where the first switch control 9130 is in the off state, it is explained that the intelligent charging mode is currently in the off state, and in this case, the user may turn on the intelligent charging mode by clicking the first switch control 9130. In the case where the first switch control 9130 is in an on state, it is explained that the smart charge mode is currently in an on state, in which case the user can turn off the smart charge mode by clicking the first switch control 9130.
Based on this, in another specific implementation manner, monitoring the remaining power of the battery of the electronic device when the electronic device is connected to the charger may include: under the condition that the intelligent charging mode is started, the residual electric quantity of the battery of the electronic equipment is monitored under the condition that the electronic equipment is connected with a charger.
Specifically, in this implementation manner, when the power interface of the electronic device has the charger connected thereto, the electronic device may first detect whether the intelligent charging mode is in the on state. Under the condition that the intelligent charging mode is in an on state, the power management module starts to monitor the residual electric quantity of the battery of the electronic equipment; when the power interface of the electronic device is disconnected with the charger, the power management module stops monitoring the residual electric quantity of the battery of the electronic device.
The remaining power of the battery of the electronic device may refer to an actual state of charge (SOC) of the battery of the electronic device. The value of SOC is typically in the form of a percentage that can be used to describe the proportion of the available charge of the battery of the electronic device to the nominal capacity. The nominal capacity may refer to the theoretical maximum capacity of the battery, i.e., the total electrical energy that the battery is capable of providing. The value range of SOC may be [0,100% ]. For example, when soc=0, it may indicate that the battery is in a fully discharged state; when soc=100%, it may be indicated that the battery is in a full state of charge.
In a specific application, the remaining capacity of the battery may be estimated by a power management module of the electronic device based on parameters such as voltage across the battery and/or internal resistance of the battery. It should be noted that, the specific estimation method of the remaining capacity of the battery may refer to the description in the related art, and the embodiments of the present application will not be described in detail.
It will be appreciated that, since the electronic device is generally required to display the remaining power of the battery on the display screen, the operation of estimating the remaining power of the battery may be performed in real time by the power management module after the electronic device is powered on.
In this embodiment of the present application, the purpose of the power management module to monitor the remaining power of the battery of the electronic device when the electronic device is connected to the charger is to determine when the remaining power of the electronic device is charged to the first power threshold in the charging process, so as to further determine whether to perform a deferred charging operation on the battery. The first power threshold may be a reference value of remaining power of the power management module for determining whether to perform the deferred charging operation in the intelligent charging mode.
For example, the first power threshold may be a default reference value for remaining power provided by the smart charge mode, which may be 80%, for example.
In some embodiments, the power management module may perform S82 when the power management module monitors that the remaining power of the battery is equal to the first power threshold at the first time and the first time is within the first period.
The first time may be any time when the electronic device is connected to the charger.
The end time of the first period may be within the target charging period, i.e., the end time of the first period may be earlier than the end time of the target charging period and later than the start time of the target charging period.
The target charging period may be a period in which the electronic device is continuously connected to the charger for a long time and is not used, which is determined by the electronic device according to its historical charging data and historical usage data.
The duration of the target charging period may be greater than a normal charging duration required for charging the remaining capacity of the battery from 0 to 100%, that is, the normal charging duration may be used to describe a duration required for charging the remaining capacity of the battery from 0 to 100% in the normal charging mode. The normal charging mode refers to a charging mode corresponding to a case where both the first switching device and the second switching device are in an on state.
For example, the difference between the duration of the target charging period and the normal charging duration may be greater than or equal to a preset duration threshold. The preset time period threshold may be set according to actual conditions, for example, the preset time period threshold may be 2 hours, that is, the time period of the target charging period may be greater than or equal to 3 hours assuming that the normal charging time period of the battery is 1 hour.
In a specific implementation manner, the electronic device may determine, according to its historical charging data and historical usage data, a candidate period in which a non-use period of the electronic device coincides with a charging period, then select a target candidate period from the candidate periods, where the time length is greater than or equal to a normal charging period and the occurrence frequency is greater than a preset frequency threshold, and determine the target candidate period as the target charging period. The non-use period of the electronic device may refer to a period in which the electronic device is not used by a user. The occurrence frequency may refer to the number of times the corresponding period is determined as a candidate period; the preset frequency threshold may be set according to actual requirements, and is not particularly limited herein. For example, the preset frequency threshold may be 10 times or 20 times, or the like.
For example, assuming that the user charges the electronic device for a period of 23:00 a.m. to 7:00 a.m. at least 10 times more than and does not use the electronic device, the electronic device may determine the period of 23:00 a.m. to 7:00 a.m. as the target charging period.
In an alternative implementation, the end time of the first period may be determined according to the end time of the target charging period. For example, the time interval between the end time of the first period and the end time of the target charging period may be the first time length, i.e., the end time of the target charging period may be pushed forward by the first time length to obtain the end time of the first period. The first duration may be determined according to actual requirements, and is not particularly limited herein. For example, assuming that the end time of the target charging period is 7:00 and the first duration is 1 hour, the electronic device may determine 6:00 as the end time of the first period.
In another alternative implementation, the end time of the first period may be determined according to the end time of the target charging period, the first power threshold, and the target charging speed. For example, the electronic device may determine a second time period required for the battery to charge from the first power threshold to 100% at the target charging speed, and then push the end time of the first period forward for the second time period to obtain the end time of the first period. The target charging speed may be a charging speed of a charging phase corresponding to the first power threshold. The specific determination method regarding the target charging speed may refer to the description in the related art, which is not described in detail herein.
S82, when the residual electric quantity of the battery is equal to a first electric quantity threshold value at a first moment and the first moment is within a first period, controlling a first switching device between a power interface of the electronic equipment and a first node to be turned off and controlling a second switching device between the first node and the battery of the electronic equipment to be turned on.
It is understood that, at the moment when the electronic device is connected to the charger, the remaining power of the battery of the electronic device may be greater than the first power threshold, or may be less than or equal to the first power threshold. If the residual electric quantity of the battery is larger than the first electric quantity threshold value at the moment when the electronic equipment is connected with the charger, the situation that the residual electric quantity of the battery is equal to the first electric quantity threshold value at the first moment does not exist; that is, only when the remaining power of the battery is less than or equal to the first power threshold at the moment when the electronic device is connected to the charger, there is a case that the remaining power of the battery is equal to the first power threshold at the first moment, and therefore, S82 may specifically include:
and under the condition that the residual electric quantity of the battery rises to be equal to a first electric quantity threshold value at a first moment and the first moment is within a first period, controlling a first switching device between a power interface of the electronic equipment and the first node to be turned off, and controlling a second switching device between the first node and the battery of the electronic equipment to be turned on.
In this embodiment, when the remaining power of the battery rises to be equal to the first power threshold at the first time and the first time is within the first period, it is indicated that the electronic device is currently in a period of continuous long-time connection with the charger and not used by the user, and at the same time, the remaining power of the battery is already charged to the first power threshold. In this case, in order to avoid that the remaining capacity of the battery is quickly filled to 100% and the battery is in a full-capacity state for a long time, the power management module may control the first switching device to be turned off and control the second switching device to be turned on, so as to suspend the charging process of the battery, that is, control the charging circuit to suspend charging the battery.
In a specific implementation manner, controlling the first switching device to be turned off may specifically include:
the power management module outputs a first cut-off control signal to a control end of the first switching device.
Wherein the specific form of the first cut-off control signal may be determined according to the specific type of the first switching device. For example, in the case where the first switching device is an NPN transistor, the first off control signal may be a low level signal.
In a specific implementation manner, controlling the second switching device to be turned on may specifically include:
The power management module outputs a second conduction control signal to the control end of the second switching device.
Wherein the specific form of the second on control signal may be determined according to the specific type of the second switching device. For example, in case the second switching device is a P-type MOSFET, the second on control signal may be a low level signal.
It can be appreciated that, in other embodiments, if the remaining capacity of the battery of the electronic device is greater than the first capacity threshold at the moment when the electronic device is connected to the charger, it is generally indicated that the user wants to quickly charge the remaining capacity of the battery to 100%, and the user does not continuously charge the electronic device for a long time, so in this case, the power management module may directly control the charging circuit to normally charge the battery, without performing a deferred charging operation on the battery. That is, in this case, the power management module may directly control both the first switching device and the second switching device to be turned on, so that the charging circuit normally charges the battery.
As can be seen from the above, in the charging method provided by the embodiment of the present application, by monitoring the remaining power of the battery of the electronic device under the condition of being connected to the charger, when the remaining power is equal to the first power threshold at the first time and the first time is within the first period, the first switching device between the power interface of the electronic device and the first node for connecting the working circuit of the electronic device is controlled to be turned off, and the second switching device between the first node and the battery is controlled to be turned on, so as to suspend the charging process of the battery; therefore, the charging process of the battery can be suspended when the electronic equipment is continuously connected with the charger for a long time and the residual electric quantity of the battery is charged to the first electric quantity threshold value, the time of the battery in a full electric quantity state is shortened, and the service life of the battery is prolonged.
Meanwhile, the charging process of the battery is suspended by adopting a mode of controlling the first switching device to be turned off and controlling the second switching device to be turned on, and as the passage between the charger and the battery is disconnected when the first switching device is turned off, the residual electric quantity of the battery can be ensured to be maintained at the first electric quantity threshold value and not to be increased after the battery is suspended from being charged, so that the possibility that the residual electric quantity of the battery is rapidly full of the battery is reduced, and the service life of the battery is prolonged. Further, since the second switching device is controlled to be turned on when the charging process of the battery is suspended, the battery can supply power to the operating circuit through the second switching device when the power consumption of the operating circuit of the electronic apparatus increases, so that the stability of the operation of the operating circuit can be ensured.
Referring to fig. 10, a schematic flow chart of a charging method according to another embodiment of the present application is provided. As shown in fig. 10, in other embodiments, after S82, the charging method may further include S83, or may include S83 and S84.
It will be appreciated that if the power consumption of the operating circuit of the electronic device increases after the charging process of the battery is suspended, the battery automatically supplies power to the operating circuit, which may result in a decrease in the remaining power of the battery.
Alternatively, if the decrease in the remaining power of the battery is small enough to change the remaining power displayed on the user interface of the electronic device, the power management module may continue to suspend the charging process of the battery. Specifically, if the remaining capacity of the battery drops from the first capacity threshold to less than the first capacity threshold and greater than the second capacity threshold at a second time after the first time, and the second time is still within the first period, the power management module may perform S83 as shown in fig. 10.
Wherein the second power threshold is less than the first power threshold. For example, the second power threshold may refer to a lower limit value of the remaining power of the battery capable of maintaining the remaining power displayed on the user interface at the first power threshold unchanged. For example, assuming that the remaining power of the battery is in the interval of 78% -80%, the remaining power displayed on the user interface is maintained at 80%, and the second power threshold may be 78%.
Optionally, if the remaining power of the battery decreases to a greater extent, so that the remaining power displayed on the user interface of the electronic device changes, the power management module may resume the charging process of the battery. Specifically, if the remaining capacity of the battery drops from the first capacity threshold to less than the second capacity threshold at a third time after the second time, the power management module may perform S84 as shown in fig. 10 regardless of whether the third time is within the first period.
And S83, when the residual electric quantity of the battery is reduced from the first electric quantity threshold value to be smaller than the first electric quantity threshold value and larger than the second electric quantity threshold value at the second moment, and the second moment is within the first period, keeping the first switching device to be turned off and keeping the second switching device to be turned on.
In this embodiment, when the remaining power of the battery decreases from the first power threshold to less than the first power threshold and greater than the second power threshold at the second time, and the second time is within the first period, it is indicated that after the charging process of the battery is suspended, the remaining power of the battery is only consumed by a small portion of the operating circuit of the electronic device, and the consumed portion is insufficient to change the remaining power displayed on the user interface of the electronic device, so in this case, the power management module may continuously control the first switching device to be turned off and the second switching device to be turned on. Therefore, the residual electric quantity displayed on the user interface of the electronic equipment can be maintained unchanged, and frequent switching-on and switching-off operation of the first switching device can be avoided.
And S84, controlling the first switching device and the second switching device to be conducted under the condition that the residual electric quantity of the battery is reduced from the first electric quantity threshold value to be smaller than the second electric quantity threshold value at the third moment.
In this embodiment, in the case where the remaining capacity of the battery drops from the first capacity threshold to less than the second capacity threshold at the third moment, it is indicated that after the charging process of the battery is suspended, the remaining capacity of the battery is consumed by the operating circuit of the electronic device more, and the condition that the suspending condition of the charging process of the battery is no longer satisfied is not satisfied, so in this case, the power management module may control both the first switching device and the second switching device to be turned on, so as to resume the charging process of the battery, so that the charging circuit continues to charge the battery until the remaining capacity of the battery is again charged to be equal to the first capacity threshold, and may determine whether to suspend the charging process of the battery according to whether the moment when the remaining capacity of the battery is again charged to the first capacity threshold is within the first period.
In a specific implementation manner, controlling the first switching device to be turned on may specifically include:
the power management module outputs a first conduction control signal to a control end of the first switching device.
Wherein the specific form of the first on control signal may be determined according to the specific type of the first switching device. For example, in the case where the first switching device is an NPN transistor, the first on control signal may be a high level signal.
Referring to fig. 11, a schematic flow chart of a charging method according to another embodiment of the present application is provided. As shown in fig. 11, in still other embodiments, after S81, the charging method may further include S85 or S86, which are described in detail below:
s85, when the residual electric quantity of the battery is equal to the first electric quantity threshold value at the first moment and the first moment is not in the first period, controlling the first switching device and the second switching device to be conducted.
Similarly to S82, in the case where the remaining capacity of the battery is equal to the first capacity threshold at the first time and the first time is not within the first period, controlling both the first switching device and the second switching device to be turned on may specifically include:
and under the condition that the residual electric quantity of the battery rises to be equal to the first electric quantity threshold value at the first moment and the first moment is not in the first period, controlling the first switching device and the second switching device to be conducted.
In this embodiment, when the remaining power of the battery rises to be equal to the first power threshold at the first time, but the first time is not within the first period, it is indicated that the remaining power of the battery is not currently in a period of continuous long-time connection with the charger and is not used although the remaining power of the battery has been charged to the first power threshold. In this case, the power management module may not suspend the charging process of the battery, i.e., the power management module may control the charging circuit to normally charge the battery. Specifically, the power module can charge the battery normally through the charging circuit in a mode of controlling the first switching device and the second switching device to be conducted.
And S86, controlling the first switching device and the second switching device to be conducted under the condition that the residual electric quantity of the battery is smaller than the first electric quantity threshold value at the fourth time and the fourth time is within the first period.
The fourth time may be any time before the remaining capacity of the battery is not charged to the first capacity threshold after the electronic device is connected to the charger, that is, the fourth time may be earlier than the first time.
In this embodiment, after the electronic device is connected to the charger, if the remaining capacity of the battery is not charged to the first capacity threshold, the power management module may not suspend the charging process of the battery, that is, the power management module may control the charging circuit to normally charge the battery. Specifically, the power module can charge the battery normally through the charging circuit in a mode of controlling the first switching device and the second switching device to be conducted.
In the embodiment of the present application, S82 to S84, S85 and S86 are mutually exclusive steps, that is, the power management module does not execute S85 and S86 when S82 to S84 are executed, does not execute S82 to S84 and S86 when S85 is executed, and does not execute S82 to S84 and S85 when S86 is executed.
Referring to fig. 12, in still another embodiment of the present application, after controlling the charging circuit to suspend charging the battery, the electronic device may further display an intelligent charging prompt box 121 in a notification bar of the user interface, where the intelligent charging prompt box 121 may include a text description about intelligent charging protection, a charging resume control 1211, a suspend charging hold control 1212, and so on. The user may resume the charging process of the battery by clicking on the charge resume control 1211.
Based on this, after S82, the charging method may further include the following steps 1 to 2:
step 1, an intelligent charging prompt box is displayed by an indication display screen, wherein the intelligent charging prompt box comprises a charging recovery control.
In this embodiment, after the charging process of the battery is suspended, the power management module may send the first charge state information to the processor of the electronic device. The first state of charge information may be used to describe that the electronic device is in a suspended state of charge.
After receiving the first charging state information from the power management module, the processor can respond to the first charging state information to instruct the display screen to display an intelligent charging prompt box.
And 2, controlling the first switching device and the second switching device to be conducted in response to clicking operation for the charging recovery control.
When a click operation for the charge resume control is detected, the processor of the electronic device may send a resume charge indication to the power management module. The power management module may control both the first switching device and the second switching device to be turned on in response to the resume charge indication to resume a charging process of the battery.
It can be seen from the foregoing that, in the charging method provided by the embodiment of the present application, after the charging process of the battery is suspended, the intelligent charging prompt box is displayed through the indication display screen, and the charging resume control is configured in the intelligent charging prompt box, so that the user can resume the charging process of the battery according to the actual requirement, and the charging experience of the user can be improved.
Based on the same technical idea, the embodiments of the present application further provide a computer-readable storage medium storing a computer-executable program, which when called by a computer, causes the computer to perform one or more steps of any of the method embodiments described above.
Based on the same technical concept, the embodiments of the present application further provide a chip system, including a processor, where the processor is coupled to a memory, and the processor executes a computer executable program stored in the memory, so as to implement one or more steps of any of the method embodiments described above. The chip system can be a single chip or a chip module composed of a plurality of chips.
Based on the same technical idea, the embodiments of the present application further provide a computer executable program product, which when run on an electronic device, causes the electronic device to perform one or more steps of any of the method embodiments described above.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference may be made to related descriptions of other embodiments. It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic of each process, and should not limit the implementation process of the embodiment of the present application in any way.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted across a computer-readable storage medium. The computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a Solid State Disk (SSD)), or the like.
Those of ordinary skill in the art will appreciate that implementing all or part of the above-described method embodiments may be accomplished by a computer program to instruct related hardware, the program may be stored in a computer readable storage medium, and the program may include the above-described method embodiments when executed. And the aforementioned storage medium includes: ROM or random access memory RAM, magnetic or optical disk, etc.
The foregoing is merely a specific implementation of the embodiments of the present application, but the protection scope of the embodiments of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the embodiments of the present application should be covered by the protection scope of the embodiments of the present application. Therefore, the protection scope of the embodiments of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A charging method, comprising:
monitoring the residual electric quantity of a battery of the electronic equipment under the condition that the electronic equipment is connected with a charger;
when the residual electric quantity is equal to a first electric quantity threshold value at a first moment and the first moment is within a first period, a first switching device between a power interface of the electronic equipment and a first node is controlled to be turned off, a second switching device between the first node and the battery is controlled to be turned on, and the first node is also used for being connected with a working circuit of the electronic equipment; and the ending time of the first period is within a target charging period, wherein the target charging period is a period which is determined according to the historical use data and the historical charging data of the electronic equipment, is continuously connected with a charger for a long time and is not used.
2. The charging method according to claim 1, characterized by further comprising, after the first switching device between the power interface of the electronic device and the first node is controlled to be turned off and the second switching device between the first node and the battery is controlled to be turned on:
when the residual electric quantity is reduced from the first electric quantity threshold value to be smaller than the first electric quantity threshold value and larger than a second electric quantity threshold value at a second moment, and the second moment is within the first period, the first switching device is kept to be turned off, and the second switching device is kept to be turned on; the second time is later than the first time.
3. The charging method according to claim 2, characterized by further comprising, after the first switching device between the power interface of the electronic device and the first node is controlled to be turned off and the second switching device between the first node and the battery is controlled to be turned on:
controlling the first switching device and the second switching device to be both conducted under the condition that the residual electric quantity is reduced from the first electric quantity threshold value to be smaller than the second electric quantity threshold value at a third moment; the third time is later than the second time.
4. A charging method according to any one of claims 1 to 3, further comprising, after the monitoring of the remaining capacity of the battery of the electronic device in the case where the electronic device is connected to a charger:
and controlling the first switching device and the second switching device to be both conducted under the condition that the residual electric quantity is equal to a first electric quantity threshold value at a first moment and the first moment is not in the first period.
5. The charging method according to any one of claims 1 to 4, characterized by, after the monitoring of the remaining amount of the battery of the electronic device in the case where the electronic device is connected to a charger, further comprising:
controlling the first switching device and the second switching device to be both on when the residual electric quantity is smaller than the first electric quantity threshold value at a fourth time and the fourth time is within the first period; the fourth time is earlier than the first time.
6. The charging method according to any one of claims 1 to 5, wherein a time interval between an end time of the first period and an end time of the target charging period is a first duration.
7. The charging method according to any one of claims 1 to 5, wherein an end time of the first period is determined from an end time of the target charging period, the first electric quantity threshold value, and a target charging speed; the target charging speed is a charging speed of a charging stage corresponding to the first electric quantity threshold.
8. An electronic device is characterized by comprising a power interface, a charging circuit, a battery, a working circuit and a power management module; the charging circuit comprises a first switching device and a second switching device;
the first end of the first switching device is connected with the power interface, the second end of the first switching device and the first end of the second switching device are connected with a first node, the first node is also used for connecting the working circuit, the second end of the second switching device is connected with the positive electrode of the battery, the positive electrode of the battery is grounded, and the controlled end of the first switching device and the controlled end of the second switching device are both connected with the power management module;
the power management module is configured to perform the steps of the charging method according to any one of claims 1 to 7.
9. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer executable program which, when called by an electronic device, causes the electronic device to perform the steps of the charging method according to any one of claims 1-7.
10. A chip system for application to an electronic device, the chip system comprising a processor coupled to a memory for storing computer program instructions that, when invoked by the processor, cause the electronic device to carry out the steps of the charging method according to any one of claims 1-7.
CN202311464519.0A 2023-11-06 2023-11-06 Charging method and electronic equipment Pending CN117674345A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311464519.0A CN117674345A (en) 2023-11-06 2023-11-06 Charging method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311464519.0A CN117674345A (en) 2023-11-06 2023-11-06 Charging method and electronic equipment

Publications (1)

Publication Number Publication Date
CN117674345A true CN117674345A (en) 2024-03-08

Family

ID=90069026

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311464519.0A Pending CN117674345A (en) 2023-11-06 2023-11-06 Charging method and electronic equipment

Country Status (1)

Country Link
CN (1) CN117674345A (en)

Similar Documents

Publication Publication Date Title
KR101445011B1 (en) Power converter with reduced power consumption when toggling between sleep and normal modes during device charging
EP2752775B1 (en) Portable charging apparatus, charging method thereof, and charging system
US9935476B2 (en) Charging mode switching circuit and method
US11749829B2 (en) Series-parallel switching device and battery pack including series-parallel switching device
CN103490389B (en) Battery protecting circuit and system
US11462931B2 (en) Charging method and charging apparatus
WO2020019300A1 (en) Power supply circuit of terminal device, terminal device and power supply method
EP4145669A1 (en) Charging/discharging circuit and electronic device
CN110854939B (en) Method for charging double batteries, electronic device and storage medium
EP4068605A1 (en) Terminal, power supply method therefor, and charge and discharge management circuit
US9244509B2 (en) Uninterruptible power system and power control system thereof
CN114336815A (en) Multi-port charging control method
WO2022218046A1 (en) Battery charging method and electronic device
KR20200079230A (en) Battery electricity supply circuit, charging target device and charging control method
SE515882C2 (en) Electrical power management system and radio communication device comprising such a system
CN109066888B (en) Charging control circuit with temperature protection function and electronic product
KR20220131248A (en) Multi-mode DC-to-DC Power Converter
US11522369B2 (en) Battery management device and mobile terminal
JP2013132184A (en) Charging circuit and electronic equipment using the same
US20130193906A1 (en) Terminals, terminal systems and charging/discharging methods thereof
US10873198B2 (en) Charging mode switching circuit and method
CN117674345A (en) Charging method and electronic equipment
CN112600283B (en) Startup and shutdown circuit
US20230095625A1 (en) Charging Method, Device, and System
US20210050735A1 (en) Charging apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination