CN116094083B - Charging method, device and storage medium - Google Patents

Charging method, device and storage medium Download PDF

Info

Publication number
CN116094083B
CN116094083B CN202210751689.6A CN202210751689A CN116094083B CN 116094083 B CN116094083 B CN 116094083B CN 202210751689 A CN202210751689 A CN 202210751689A CN 116094083 B CN116094083 B CN 116094083B
Authority
CN
China
Prior art keywords
value
temperature
electronic equipment
charging
threshold
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210751689.6A
Other languages
Chinese (zh)
Other versions
CN116094083A (en
Inventor
李鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN202210751689.6A priority Critical patent/CN116094083B/en
Publication of CN116094083A publication Critical patent/CN116094083A/en
Application granted granted Critical
Publication of CN116094083B publication Critical patent/CN116094083B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/007Regulation of charging or discharging current or voltage
    • H02J7/007188Regulation of charging or discharging current or voltage the charge cycle being controlled or terminated in response to non-electric parameters
    • H02J7/007192Regulation of charging or discharging current or voltage the charge cycle being controlled or terminated in response to non-electric parameters in response to temperature
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/44Methods for charging or discharging
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/44Methods for charging or discharging
    • H01M10/443Methods for charging or discharging in response to temperature
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0047Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with monitoring or indicating devices or circuits
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/007Regulation of charging or discharging current or voltage
    • H02J7/00712Regulation of charging or discharging current or voltage the cycle being controlled or terminated in response to electric parameters
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Manufacturing & Machinery (AREA)
  • Chemical & Material Sciences (AREA)
  • Chemical Kinetics & Catalysis (AREA)
  • Electrochemistry (AREA)
  • General Chemical & Material Sciences (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

A charging method, a device and a storage medium relate to the technical field of charging, and the method comprises the following steps: the electronic equipment starts charging; acquiring power consumption of the electronic equipment in charging; when the power consumption is greater than or equal to a first threshold value, judging whether the temperature of the electronic equipment is greater than the first temperature threshold value; when the temperature of the electronic equipment is smaller than or equal to a first temperature threshold value, judging whether the electric quantity of the electronic equipment is larger than the first electric quantity threshold value or not; when the electric quantity of the electronic equipment is smaller than or equal to a first electric quantity threshold value, the electronic equipment is charged by adopting a first current value; and as the charging of the electronic equipment is continuously carried out, when the temperature of the electronic equipment is greater than a first temperature threshold value and is smaller than or equal to a second temperature threshold value, the electronic equipment is charged by adopting a second current value, and the second current value is greater than the lowest charging current value and is smaller than the first current value; and when the temperature of the electronic equipment is larger than the second temperature threshold value, the electronic equipment is charged by adopting the lowest charging current value. And the temperature rise of the electronic equipment is delayed.

Description

Charging method, device and storage medium
Technical Field
The embodiment of the application relates to the technical field of charging, in particular to a charging method, a charging device and a storage medium.
Background
An increasing number of users are accustomed to simultaneously charging an electronic device (e.g., a cell phone, etc.) while using the electronic device.
In some implementations, the charging process of the electronic device includes three phases: constant current precharge, high current constant current charge, and constant voltage charge.
However, when charging is performed based on the existing charging process, the temperature of the electronic device is easily increased faster, and user experience is affected.
Disclosure of Invention
The embodiment of the application provides a charging method, a charging device and a storage medium, relates to the technical field of charging, and is beneficial to delaying the temperature rise of electronic equipment.
In a first aspect, an embodiment of the present application provides a charging method, including: the electronic equipment starts charging; acquiring power consumption of the electronic equipment in charging; when the power consumption is greater than or equal to a first threshold value, judging whether the temperature of the electronic equipment is greater than the first temperature threshold value; when the temperature of the electronic equipment is smaller than or equal to a first temperature threshold value, judging whether the electric quantity of the electronic equipment is larger than the first electric quantity threshold value or not; when the electric quantity of the electronic equipment is larger than a first electric quantity threshold value, the electronic equipment is charged by adopting a lowest charging current value; when the electric quantity of the electronic equipment is smaller than or equal to a first electric quantity threshold value, the electronic equipment is charged by adopting a first current value; and as the charging of the electronic equipment is continuously carried out, when the temperature of the electronic equipment is greater than a first temperature threshold value and is smaller than or equal to a second temperature threshold value, the electronic equipment is charged by adopting a second current value, and the second current value is greater than the lowest charging current value and is smaller than the first current value; and when the temperature of the electronic equipment is larger than the second temperature threshold value, the electronic equipment is charged by adopting the lowest charging current value. Therefore, when the temperature of the electronic equipment is low and the electric quantity is low, larger current is adopted for charging, the electric quantity of the electronic equipment can be improved faster, the electric quantity anxiety during the low electric quantity is effectively reduced, when the temperature of the electronic equipment is increased, the charging current is reduced, the heating value of the electronic equipment is reduced, and therefore the temperature increase of the electronic equipment is effectively delayed.
In one possible implementation, obtaining power consumption of an electronic device in charging includes: acquiring third current values received by the electronic equipment from the charger at N time points and fourth current values received by the battery of the electronic equipment, and obtaining N pairs of third current values and fourth current values which are associated in pairs, wherein N is a natural number; and according to the third current value and the fourth current value of the N pairs, power consumption is realized. Such that the scene of the load of the electronic device can be subsequently identified from the resulting power consumption.
In one possible implementation, the power consumption according to the N pairs of the third current value and the fourth current value includes: respectively calculating the difference value of any pair of third current value and fourth current value of N pairs of third current value and fourth current value to obtain N difference values; and calculating N difference values according to a preset algorithm to obtain power consumption, wherein the preset algorithm comprises any one of the following steps: an averaging algorithm, a screening effective data first, an averaging algorithm and a median algorithm. Such that the scene of the load of the electronic device can be subsequently identified from the resulting power consumption.
In one possible implementation manner, the first current value and/or the second current value are/is learned in advance, and the method further includes: respectively acquiring first process data when the electronic equipment is charged by adopting a first current value and/or second process data when the electronic equipment is charged by adopting a second current value, wherein the first process data comprises a first battery temperature rise value and/or a first shell temperature rise value, and the second process data comprises a second battery temperature rise value and/or a second shell temperature rise value; updating the first current value to a greater value when the first battery temperature rise value is less than or equal to the first temperature rise threshold and/or the first housing temperature rise value is less than or equal to the second temperature rise threshold; or when the first battery temperature rise value is greater than the first temperature rise threshold value, and/or the first shell temperature rise value is greater than the second temperature rise threshold value, updating the first current value to be a smaller value; and/or updating the second current value to a greater value when the second battery temperature increase value is less than or equal to the third temperature increase threshold and/or the second housing temperature increase value is less than or equal to the fourth temperature increase threshold; alternatively, the second current value is updated to a smaller value when the second battery temperature increase value is greater than the third temperature increase threshold and/or the second case temperature increase value is greater than the fourth temperature increase threshold. In the embodiment of the application, the electronic device can update the first current value and/or the second current value once according to the first process data and/or the second process data of the charging process after charging once, so that the charging current which is better in a heavy-load scene can be obtained after updating for many times.
In one possible implementation, the method further includes: when the power consumption is smaller than the first threshold and larger than the second threshold, judging whether the electric quantity of the electronic equipment is larger than the second electric quantity threshold or not; when the electric quantity of the electronic equipment is smaller than or equal to the second electric quantity threshold value, judging whether the temperature of the electronic equipment is larger than a third temperature threshold value or not; when the temperature of the electronic equipment is smaller than or equal to a third temperature threshold value, the electronic equipment is charged by adopting a fifth current value, and the fifth current value is learned in advance; and when the temperature of the electronic equipment is larger than the third temperature threshold value, the electronic equipment is charged by adopting the lowest charging current value. In the embodiment of the application, the charging current of the electronic device is determined according to the electric quantity and the temperature of the electronic device in the medium-load scene, when the electric quantity and the temperature of the electronic device are low, a pre-learned fifth current value is adopted for charging, the fifth current value is larger, so that the charging speed of the electronic device in the medium-load scene is properly improved, the electric quantity of the electronic device is rapidly supplemented to be more than an electric quantity safety line, and when the temperature of the electronic device is higher, the lowest charging current value is adopted for charging, so that the temperature rise of the electronic device in the medium-load scene is delayed.
In one possible implementation, the method further includes: and when the electric quantity of the electronic equipment is larger than the second electric quantity threshold value, the electronic equipment is charged by adopting the lowest charging current value. Therefore, when the electric quantity of the electronic equipment is high, the electronic equipment is charged by adopting a low current value, so that the charging safety of the electronic equipment in a medium-load scene is improved.
In one possible implementation, the method further includes: acquiring third process data when the electronic equipment is charged by adopting a fifth current value, wherein the third process data comprises a third battery temperature rise value, a third shell temperature rise value and/or a first charging duration; when the third battery temperature rise value is less than or equal to the fifth temperature rise threshold, the third housing temperature rise value is less than or equal to the sixth temperature rise threshold, and/or the first charging time length is greater than the first time length threshold, updating the fifth current value to a greater value; alternatively, the fifth current value is updated to a smaller value when the third battery temperature increase value is greater than the fifth temperature increase threshold and/or the third case temperature increase value is greater than the sixth temperature increase threshold. In the embodiment of the application, the electronic device can update the fifth current value once according to the third process data of the charging process after charging once, so that the charging current which is better in the medium-load scene can be obtained after updating for a plurality of times.
In one possible implementation, the method further includes: when the power consumption is smaller than or equal to the second threshold value, judging whether the electric quantity of the electronic equipment is larger than a third electric quantity threshold value or not; when the electric quantity of the electronic equipment is smaller than or equal to the third electric quantity threshold value, judging whether the temperature of the electronic equipment is larger than a fourth temperature threshold value or not; when the temperature of the electronic equipment is smaller than or equal to the fourth temperature threshold value, the electronic equipment is charged by adopting a sixth current value which is learned in advance; and when the temperature of the electronic equipment is greater than the fourth temperature threshold value, the electronic equipment is charged by adopting the lowest charging current value. In this embodiment of the present application, according to the electric quantity and the temperature of the electronic device in the light-load scene, the charging current of the electronic device is determined, when the electric quantity of the electronic device is low and the temperature is low, the sixth current value learned in advance is adopted to charge, so that the charging speed of the electronic device in the light-load scene is properly improved, and the electric quantity of the electronic device is rapidly supplemented to above the electric quantity safety line.
In one possible implementation, the method further includes: and when the electric quantity of the electronic equipment is larger than the third electric quantity threshold value, the electronic equipment is charged by adopting the lowest charging current value. Therefore, when the electric quantity of the electronic equipment is higher, the lower current value is adopted for charging, so that the charging safety of the electronic equipment in a light-load scene is improved.
In one possible implementation, the method further includes: acquiring fourth process data when the electronic equipment is charged by adopting a sixth current value, wherein the fourth process data comprises a fourth battery temperature rise value, a fourth shell temperature rise value and/or a second charging duration; updating the sixth current value to a greater value when the fourth battery temperature increase value is less than or equal to the seventh temperature increase threshold, the fourth housing temperature increase value is less than or equal to the eighth temperature increase threshold, and/or the second charge time length is greater than the second time length threshold; alternatively, the sixth current value is updated to a smaller value when the fourth battery temperature increase value is greater than the seventh temperature increase threshold and/or the fourth case temperature increase value is greater than the eighth temperature increase threshold. In the embodiment of the application, the electronic device can update the sixth current value once according to the fourth process data of the charging process after charging once, so that the charging current which is better in a light-load scene can be obtained after updating for a plurality of times.
In one possible implementation, before the electronic device is charged with the first current value, the method further includes: displaying a first interface, wherein the first interface comprises notification information, a first button and a second button, and the notification information is used for prompting a user whether the electronic equipment enters an intelligent charging regulation mode; responding to the triggering operation of the first button, and enabling the electronic equipment to enter an intelligent charging regulation mode; alternatively, in response to a triggering operation of the second button, the electronic device is charged with the lowest charging current value. And the interactive operation is increased, and the flexibility of the charging mode is improved.
In one possible implementation, during the charging of the electronic device with the first current value, the method further includes: displaying a second interface in response to a pull-down operation of the user, the second interface including notification information and a third button; in response to a triggering operation of the third button, the electronic device is charged with the lowest charging current value. And the interactive operation is increased, and the flexibility of the charging mode is improved.
In one possible implementation, when the power consumption is greater than or equal to the first threshold, before determining whether the temperature of the electronic device is greater than the first temperature threshold, the method further includes: judging whether the electronic equipment is in a bright screen state or not; when the electronic equipment is not in a bright screen state, the electronic equipment is charged by adopting the lowest charging current value; when the power consumption is greater than or equal to a first threshold, determining whether the temperature of the electronic device is greater than the first temperature threshold includes: when the electronic equipment is in a bright screen state and the power consumption is greater than or equal to a first threshold value, judging whether the temperature of the electronic equipment is greater than the first temperature threshold value. In the embodiment of the application, whether the electronic equipment is in the bright screen state is judged before the power consumption is judged, so that the follow-up determination of the charging current under different load scenes based on the bright screen state is facilitated.
In a second aspect, an embodiment of the present application provides a charging device, a processing unit, configured to start charging for an electronic device; the processing unit is used for acquiring the power consumption of the electronic equipment in charging; the processing unit is further used for judging whether the temperature of the electronic equipment is greater than a first temperature threshold value or not when the power consumption is greater than or equal to the first threshold value; the processing unit is further used for judging whether the electric quantity of the electronic equipment is larger than a first electric quantity threshold value or not when the temperature of the electronic equipment is smaller than or equal to the first temperature threshold value; the processing unit is further used for charging the electronic equipment by adopting the lowest charging current value when the electric quantity of the electronic equipment is larger than the first electric quantity threshold value; the processing unit is further used for charging the electronic equipment by adopting a first current value when the electric quantity of the electronic equipment is smaller than or equal to a first electric quantity threshold value; and the processing unit is also used for charging the electronic equipment by adopting a second current value when the temperature of the electronic equipment is larger than the first temperature threshold value and smaller than or equal to the second temperature threshold value along with the continuous charging of the electronic equipment, wherein the second current value is larger than the lowest charging current value and smaller than the first current value; and the processing unit is also used for charging the electronic equipment by adopting the lowest charging current value when the temperature of the electronic equipment is greater than the second temperature threshold value.
In a possible implementation manner, the processing unit is further configured to obtain third current values received by the electronic device from the charger at N time points and fourth current values received by the battery of the electronic device, to obtain N pairs of third current values and fourth current values associated in pairs, where N is a natural number; and the processing unit is also used for consuming power according to the N pairs of third current values and fourth current values.
In a possible implementation manner, the processing unit is further configured to calculate differences between any one pair of the third current value and the fourth current value of the N pairs of the third current value and the fourth current value, to obtain N differences; the processing unit is further configured to calculate power consumption for the N differences according to a preset algorithm, where the preset algorithm includes any one of the following: an averaging algorithm, a screening effective data first, an averaging algorithm and a median algorithm.
In a possible implementation manner, the first current value and/or the second current value are/is learned in advance, and the processing unit is further configured to obtain first process data when the electronic device is charged with the first current value, and/or second process data when the electronic device is charged with the second current value, where the first process data includes a first battery temperature increase value and/or a first housing temperature increase value, and the second process data includes a second battery temperature increase value and/or a second housing temperature increase value; the processing unit is further used for updating the first current value to be a larger value when the first battery temperature rising value is smaller than or equal to a first temperature rising threshold value and/or the first shell temperature rising value is smaller than or equal to a second temperature rising threshold value; or, the processing unit is further configured to update the first current value to be a smaller value when the first battery temperature increase value is greater than the first temperature increase threshold value, and/or when the first housing temperature increase value is greater than the second temperature increase threshold value; and/or the processing unit is further used for updating the second current value to be a larger value when the temperature rise value of the second battery is smaller than or equal to the third temperature rise threshold value and/or the temperature rise value of the second shell is smaller than or equal to the fourth temperature rise threshold value; or, the processing unit is further configured to update the second current value to a smaller value when the second battery temperature increase value is greater than the third temperature increase threshold value and/or the second case temperature increase value is greater than the fourth temperature increase threshold value.
In a possible implementation manner, the processing unit is further configured to determine, when the power consumption is smaller than the first threshold and larger than the second threshold, whether the power quantity of the electronic device is larger than the second power quantity threshold; the processing unit is further configured to determine whether the temperature of the electronic device is greater than a third temperature threshold when the electric quantity of the electronic device is less than or equal to the second electric quantity threshold; the processing unit is further used for charging the electronic equipment by adopting a fifth current value when the temperature of the electronic equipment is smaller than or equal to a third temperature threshold value, wherein the fifth current value is obtained through pre-learning; and the processing unit is also used for charging the electronic equipment by adopting the lowest charging current value when the temperature of the electronic equipment is greater than the third temperature threshold value.
In a possible implementation manner, the processing unit is further configured to charge the electronic device with the lowest charging current value when the power of the electronic device is greater than the second power threshold.
In a possible implementation manner, the processing unit is further configured to obtain third process data when the electronic device is charged with the fifth current value, where the third process data includes a third battery temperature increase value, a third shell temperature increase value, and/or a first charging duration; the processing unit is further used for updating the fifth current value to be a larger value when the temperature rise value of the third battery is smaller than or equal to the fifth temperature rise threshold value, the temperature rise value of the third shell is smaller than or equal to the sixth temperature rise threshold value, and/or the first charging time length is larger than the first time length threshold value; or, the processing unit is further configured to update the fifth current value to be a smaller value when the third battery temperature increase value is greater than the fifth temperature increase threshold value, and/or the third case temperature increase value is greater than the sixth temperature increase threshold value.
In a possible implementation manner, the processing unit is further configured to determine, when the power consumption is less than or equal to the second threshold, whether the power of the electronic device is greater than a third power threshold; the processing unit is further configured to determine whether the temperature of the electronic device is greater than a fourth temperature threshold when the electric quantity of the electronic device is less than or equal to the third electric quantity threshold; the processing unit is further used for charging the electronic equipment by adopting a sixth current value when the temperature of the electronic equipment is smaller than or equal to a fourth temperature threshold value, wherein the sixth current value is obtained by pre-learning; and the processing unit is also used for charging the electronic equipment by adopting the lowest charging current value when the temperature of the electronic equipment is greater than the fourth temperature threshold value.
In a possible implementation manner, the processing unit is further configured to charge the electronic device with the lowest charging current value when the power of the electronic device is greater than the third power threshold.
In a possible implementation manner, the processing unit is further configured to obtain fourth process data when the electronic device is charged with the sixth current value, where the fourth process data includes a fourth battery temperature increase value, a fourth housing temperature increase value, and/or a second charging duration; the processing unit is further used for updating the sixth current value to be a larger value when the temperature rise value of the fourth battery is smaller than or equal to a seventh temperature rise threshold value, the temperature rise value of the fourth shell is smaller than or equal to an eighth temperature rise threshold value, and/or the second charging time length is larger than a second time length threshold value; or, the processing unit is further configured to update the sixth current value to be a smaller value when the fourth battery temperature increase value is greater than the seventh temperature increase threshold value and/or the fourth case temperature increase value is greater than the eighth temperature increase threshold value.
In one possible implementation manner, before the electronic device charges with the first current value, the display unit is configured to display a first interface, where the first interface includes notification information, a first button and a second button, and the notification information is configured to prompt a user whether the electronic device enters an intelligent charging regulation mode; the processing unit is also used for responding to the triggering operation of the first button, and the electronic equipment enters an intelligent charging regulation mode; or, the processing unit is further configured to, in response to a triggering operation of the second button, charge the electronic device with the lowest charging current value.
In one possible implementation manner, during the process that the electronic device is charged by adopting the first current value, the display unit is further used for responding to a pull-down operation of the user to display a second interface, wherein the second interface comprises notification information and a third button; and the processing unit is also used for responding to the triggering operation of the third button, and the electronic equipment is charged by adopting the lowest charging current value.
In one possible implementation manner, the processing unit is further configured to determine whether the electronic device is in a bright screen state; the processing unit is also used for charging the electronic equipment by adopting the lowest charging current value when the electronic equipment is not in the bright screen state; and the processing unit is also used for judging whether the temperature of the electronic equipment is greater than a first temperature threshold value or not when the electronic equipment is in a bright screen state and the power consumption is greater than or equal to the first threshold value.
In a third aspect, embodiments of the present application provide an electronic device, including a processor and a memory, the memory configured to store code instructions; the processor is configured to execute code instructions to cause the electronic device to perform the charging method as described in the first aspect or any one of the possible implementations of the first aspect.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium storing instructions that, when executed, cause a computer to perform a charging method as described in the first aspect or any one of the possible implementations of the first aspect.
In a fifth aspect, a computer program product comprising a computer program which, when run, causes a computer to perform the charging method as described in the first aspect or any one of the possible implementations of the first aspect.
In a sixth aspect, the present application provides a chip or chip system comprising at least one processor and a communication interface, the communication interface and the at least one processor being interconnected by wires, the at least one processor being adapted to execute a computer program or instructions to perform the charging method described in the first aspect or any one of the possible implementations of the first aspect. The communication interface in the chip can be an input/output interface, a pin, a circuit or the like.
It should be understood that, the first aspect of the present application corresponds to the technical solutions of the second aspect to the sixth aspect of the present application, and the beneficial effects obtained by each aspect and the corresponding possible embodiments are similar, and are not repeated. .
Drawings
FIG. 1 is a schematic view of a scene to which the embodiments of the present application are applied;
fig. 2 is a schematic hardware structure of an electronic device according to an embodiment of the present application;
fig. 3 is a schematic software structure of an electronic device according to an embodiment of the present application;
fig. 4 is a schematic flow chart of a charging method according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a heavy-duty scene graph according to an embodiment of the present disclosure;
fig. 6 is a schematic flow chart of a charging method according to an embodiment of the present application;
fig. 7 is a schematic diagram of an original charging strategy of a light-load scene according to an embodiment of the present application;
fig. 8 is a schematic diagram of a policy curve after light-load scene optimization according to an embodiment of the present application;
FIG. 9 is a first interface schematic provided in an embodiment of the present application;
FIG. 10 is a second interface schematic provided in an embodiment of the present application;
fig. 11 is a schematic flow chart of a charging method according to an embodiment of the present application;
fig. 12 is a schematic structural diagram of a charging device according to an embodiment of the present disclosure;
Fig. 13 is a schematic hardware structure of another electronic device according to an embodiment of the present application;
fig. 14 is a schematic structural diagram of a chip according to an embodiment of the present application.
Detailed Description
In order to facilitate the clear description of the technical solutions of the embodiments of the present application, the following simply describes some terms and techniques related to the embodiments of the present application:
1) Light load scene: the method refers to that the electronic equipment closes high-power-consumption application programs, high-power-consumption hardware or limits large-memory application, runs some applications with smaller power consumption, such as weather application, calendar application, clock application and other applications with smaller power consumption.
2) Heavy load scene: the method refers to the electronic equipment starting high-power consumption application programs, high-power consumption hardware or applications with larger power consumption, such as video applications, game applications and the like, which are not limited to large memory applications, for example, the mobile phone is running.
3) Medium-load scene: in the embodiment of the application, the medium-load scene refers to that the power consumption of the electronic device is larger than that in the light-load scene and smaller than that in the heavy-load scene.
4) Other terms
In the embodiments of the present application, the words "first," "second," and the like are used to distinguish between identical or similar items that have substantially the same function and effect. For example, the first chip and the second chip are merely for distinguishing different chips, and the order of the different chips is not limited. It will be appreciated by those of skill in the art that the words "first," "second," and the like do not limit the amount and order of execution, and that the words "first," "second," and the like do not necessarily differ.
It should be noted that, in the embodiments of the present application, words such as "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
In the embodiments of the present application, "at least one" means one or more, and "a plurality" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a alone, a and B together, and B alone, wherein a, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (one) of a, b, or c may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or plural.
An increasing number of users are accustomed to simultaneously charging an electronic device (e.g., a cell phone, etc.) while using the electronic device.
Illustratively, the user uses the cell phone when charging the cell phone, such as using the cell phone to watch video, play games, make a phone call or watch novels, etc.
In some implementations, the charging process of the electronic device includes three phases: constant current precharge, high current constant current charge, and constant voltage charge.
Illustratively, the battery of the mobile phone is typically a lithium battery, and when the battery voltage of the mobile phone is below 3.0V, the charger will precharge the lithium battery with 100 milliamp (mA) of current.
When the voltage of the lithium battery is higher than 3.0V, the lithium battery enters a second stage and a high-current constant-current charging stage. Since the state of the lithium battery is relatively stable after the first stage of pre-charging, the charging current can be suitably increased in the second stage, and the current can vary from 0.1 coulomb (C) to several C according to the battery, where C refers to the battery capacity, such as 2600 milliamp hour (mAh), of the lithium battery, and 0.1C refers to a current of 260 mA.
When the voltage of the lithium battery is detected to be equal to 4.2V, the charger enters a constant voltage charging mode, the charging voltage is constant to be 4.2V at the stage, and the charging current is smaller and smaller. When the charging current is less than 100mA, the battery is judged to be full, and the charging circuit is cut off.
However, when charging is performed based on the existing charging process, since the same electronic device is charged with the same charging current under different load scenes, when the electric quantity of the electronic device is low and the electronic device is in a light load scene, the charging current may cause the electric quantity of the electronic device to increase at a low speed, and when the electronic device is in a heavy load scene, the charging current may cause the electronic device to rapidly heat up, so as to affect the user experience. Therefore, when charging is performed based on the existing charging process, the electronic device is liable to have a longer charging time or a faster temperature rise.
The charging current is, for example, Q. When a user charges the mobile phone while the mobile phone is in a bright screen state or performs some operations to enable the mobile phone to be in a light-load scene, the heat generated by the operation of a processor in the mobile phone in the light-load scene is low, so that the temperature of the mobile phone is less increased and possibly does not reach the temperature threshold of the mobile phone when the mobile phone is charged with the current Q in the light-load scene, and the charging current of the mobile phone can be larger than Q at the moment. That is, in the temperature rising allowable range of the mobile phone, the electric quantity of the mobile phone is not increased fast enough when the mobile phone is charged with the current Q under the light load scene, so that the charging time of the mobile phone is longer.
When a user charges the mobile phone and uses the mobile phone to watch videos, play games or perform other operations which enable the mobile phone to be in a heavy-load scene, heat generated by high-speed operation of a processor in the mobile phone and heat generated by constant-current charging with current Q can enable the temperature of the mobile phone to be rapidly increased, and user experience is affected.
In view of this, the embodiment of the application provides a charging method, in a heavy-load scenario, the charging current of an electronic device is dynamically adjusted according to the temperature and the electric quantity of the electronic device, for example, when the temperature of the electronic device is higher or the electric quantity is higher, the electronic device charges with a lower charging current, when the electric quantity of the electronic device is lower, the charging current of the electronic device is determined according to the temperature of the electronic device, when the temperature of the electronic device is higher, the charging current is smaller, and when the temperature of the electronic device is lower, the charging current is larger. Therefore, when the temperature of the electronic equipment is low and the electric quantity is low, larger current is adopted for charging, the electric quantity of the electronic equipment can be improved faster, the electric quantity anxiety during the electric quantity reduction can be effectively reduced, and as the continuous charging of the electronic equipment is carried out, the charging current is reduced, the heating value of the electronic equipment is reduced, and the temperature rise of the electronic equipment is effectively delayed.
Fig. 1 shows a schematic view of a scenario to which an embodiment of the present application is applicable. As shown in fig. 1, when it is required to charge the electronic device 100, a user may insert the charging wire 400 into a universal serial bus (universal serial bus, USB) interface of the charger (also referred to as a power adapter) 200, then insert the charger 200 into the socket 300 of the wall surface, and then insert the charging wire 400 into a USB interface of the electronic device 100, thereby charging the electronic device 100.
It is understood that charging the electronic device 100 may refer to charging a battery of the electronic device 100.
Note that fig. 1 exemplarily illustrates a wired charging scenario of the electronic device 100. In some possible implementations, the electronic device 100 may also have a wireless charging function, for example, the electronic device 100 is coupled to a wireless charging coil of a wireless charger through the wireless charging coil, senses an alternating electromagnetic field emitted by the wireless charging coil of the wireless charger, generates an alternating electric signal, and rectifies the generated alternating electric signal into a direct current electric signal, thereby charging a battery of the electronic device 100.
In addition, the electronic device 100 shown in fig. 1, to which the charging method provided in the embodiment of the present application is applicable, may be a mobile phone, a wearable device (such as a smart watch, etc.), a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (personal digital assistant, PDA), an augmented reality (augmented reality, AR) \virtual reality (VR) device, or another device with the above functions, and the specific form of the electronic device 100 is not limited in this application.
In the following description, for convenience of understanding, the electronic device 100 shown in fig. 1 is taken as an example of a mobile phone, and a technical solution of the present application is described below.
When a user uses the electronic device 100 while charging, for example, the user views a video or plays a game while charging the electronic device 100, the electronic device 100 may be charged based on the charging method provided in the embodiment of the present application.
For example, the charging method may include: the electronic equipment starts charging; acquiring power consumption of the electronic equipment in charging; when the power consumption is greater than or equal to a first threshold value, judging whether the temperature of the electronic equipment is greater than the first temperature threshold value; when the temperature of the electronic equipment is smaller than or equal to a first temperature threshold value, judging whether the electric quantity of the electronic equipment is larger than the first electric quantity threshold value or not; when the electric quantity of the electronic equipment is larger than a first electric quantity threshold value, the electronic equipment is charged by adopting a lowest charging current value; when the electric quantity of the electronic equipment is smaller than or equal to a first electric quantity threshold value, the electronic equipment is charged by adopting a first current value; and as the charging of the electronic equipment is continuously carried out, when the temperature of the electronic equipment is greater than a first temperature threshold value and is smaller than or equal to a second temperature threshold value, the electronic equipment is charged by adopting a second current value, and the second current value is greater than the lowest charging current value and is smaller than the first current value; and when the temperature of the electronic equipment is larger than the second temperature threshold value, the electronic equipment is charged by adopting the lowest charging current value. Therefore, when the temperature of the electronic equipment is low and the electric quantity is low, larger current is adopted for charging, the electric quantity of the electronic equipment can be improved faster, the electric quantity anxiety during the low electric quantity is effectively reduced, when the temperature of the electronic equipment is increased, the charging current is reduced, the heating value of the electronic equipment is reduced, and therefore the temperature increase of the electronic equipment is effectively delayed.
Fig. 2 is a schematic diagram illustrating a hardware structure of an electronic device according to an embodiment of the present application.
As shown in fig. 2, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, keys 190, a motor 191, an indicator 192, a camera 193, a display 194, a user identification module (subscriberidentification module, SIM) card interface 195, and the like.
The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, electronic device 100 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 illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processingunit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors; the controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called from the memory, thus avoiding repeated access, reducing the waiting time of the processor 110 and improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuitsound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
The USB interface 130 is an interface conforming to the USB standard, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the electronic device 100, and may also be used to transfer data between the electronic device 100 and a peripheral device. And can also be used for connecting with a headset, and playing audio through the headset. The interface may also be used to connect other electronic devices, such as AR devices, etc.
It should be understood that the interfacing relationship between the modules described in the embodiments of the present application is an exemplary illustration, and is not meant to limit the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also use different interfacing manners, or a combination of multiple interfacing manners in the foregoing embodiments.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 140 may receive a charging input of a wired charger through the USB interface 130. In some wireless charging embodiments, the charge management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 to power the processor 110, the internal memory 121, the display 194, the camera 193, the wireless communication module 160, and the like.
The power management module 141 may also be configured to monitor battery capacity, battery cycle number, battery health (leakage, impedance) and other parameters. In other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charge management module 140 may be disposed in the same device.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED) or an active-matrix organic light-emitting diode (matrixorganic light emitting diode), a flexible light-emitting diode (flex), a mini, a Micro led, a Micro-OLED, a quantum dot light-emitting diode (quantum dot lightemitting diodes, QLED), or the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
The electronic device 100 may implement photographing functions through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device 100. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The internal memory 121 may be used to store computer-executable program code that includes instructions. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created during use of the electronic device 100 (e.g., audio data, phonebook, etc.), and so on. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like. The processor 110 performs various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
The electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playing, recording, etc.
The software system of the electronic device 100 may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, a cloud architecture, or the like. In this embodiment, taking an Android system with a layered architecture as an example, a software structure of the electronic device 100 is illustrated.
Fig. 3 is a schematic software structure of an electronic device 100 according to an embodiment of the present application, where, as shown in fig. 3, a layered architecture divides software into several layers, each layer has a clear role and division, and the layers communicate with each other through software interfaces.
In some embodiments, the Android system may be divided into four layers, from top to bottom, an application layer, an application framework layer, an Zhuoyun row (Android run) and system libraries, and a kernel layer, respectively.
The application layer may include a series of application packages, for example, the application packages may include applications for cameras, calendars, calls, gallery, music, settings, mailboxes, video, bluetooth, etc.
In a possible manner, the application framework layer provides an application programming interface (application programming interface, API) and programming framework for the application of the application layer, which may include a window manager, a content provider, a resource manager, a view system or notification manager, etc., and some predefined functions, etc.
The window manager is used for managing window programs, and the window manager can acquire the size of the display screen.
Wherein the content provider is used for storing and acquiring data and enabling the data to be accessed by the application program; the data may include browsing history and bookmarks, making and receiving calls, video, images, audio, or phonebooks, etc.
The notification manager enables the application program to display notification information in a status bar, can be used for conveying notification type information, and can automatically disappear after a short stay without user interaction. For example, a notification manager is used to inform that the download is complete, a message alert, etc. The notification manager may also be a notification in the form of a chart or scroll bar text appearing in the status bar at the top of the system, such as a notification of a background running application, or a notification appearing on the screen in the form of a dialog window, such as a text message being prompted in the status bar, a notification sound being emitted, the electronic device vibrating, a flashing indicator light, etc.
It should be noted that, in the embodiment of the present application, the application framework layer may further include a current value collector, so that a current collection module in the current value collector may obtain a current value received by the electronic device from the charger and a current value received by the battery of the electronic device.
It should be noted that, in this embodiment of the present application, the application framework layer may further include a process data collector, where a process data collection module in the process data collector may obtain data in a charging process, where the data in the charging process may be, for example, an electric quantity, a charging time, a battery temperature, a shell temperature, and the like.
Among the possible ways, android run is used to be responsible for scheduling and management of the Android system, and may include a core library and a virtual machine.
The core library comprises two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The virtual machine is used for executing the functions of object security and exception management, life cycle management, stack management, thread management, garbage collection and the like.
It should be noted that, the application layer and the application framework layer run in the virtual machine. The virtual machine executes java files of the application program layer and the application program framework layer as binary files.
In a possible manner, the system library may comprise a plurality of functional modules. For example: surface manager (surface manager), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), 2D graphics engines (e.g., SGL), etc.
The surface manager is used for managing the display subsystem and providing fusion of 2D and 3D layers for a plurality of application programs.
The media library supports various commonly used video formats for playback and recording, audio and still image files, etc., and the media library can support various audio and video coding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
It should be noted that, in this embodiment of the present application, the system layer may further include a charging current selector, so that the charging current selecting module in the charging current selector may determine the charging current according to the information obtained by the current value collector and the process data collector in the application framework layer.
In a possible manner, the kernel layer is a layer between hardware and software, and the kernel layer at least includes a display driver, an audio driver, a sensor driver, or the like.
It should be noted that, in this embodiment of the present application, the kernel layer may further include a charging driver, so that a charging module in the charging driver may charge the electronic device according to the charging current determined by the charging current selector in the system layer.
The following describes in detail, with reference to the drawings, a technical solution of an embodiment of the present application and how the technical solution of the embodiment of the present application solves the above technical problems. The following embodiments may be implemented independently or combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
Fig. 4 is a flow chart of a charging method according to an embodiment of the present application. As shown in fig. 4, the method may include:
s401: the electronic device initiates the charging.
In a possible implementation, the electronic device may initiate charging by switching the electronic device on to a charging power supply. The electronic device may be wired or wireless when connected to the charging power supply, which is not limited in this embodiment of the present application.
For example, when the electronic device is charged using a wired charging cord, the electronic device may be powered on via the wired charging cord to initiate charging.
For example, when the electronic device is charged using the wireless charging dock, the electronic device may be powered on via the wireless charging coil, thereby initiating charging.
S402: and acquiring the power consumption of the electronic equipment in charging.
The power consumption may be understood as a current value of power consumption of the electronic device, for example, a current value received by the electronic device from the charger is 1000mA, and a current value received by the battery of the electronic device is 200mA, and the power consumption of the electronic device is about 800mA (a difference between the current value received from the charger and the current value received by the battery of the electronic device).
In a possible implementation, after the electronic device starts charging, the electronic device may periodically collect a current value received from the charger and a current value received by the battery of the electronic device, and calculate, according to the collected current value received from the charger and the collected current value received by the battery of the electronic device, power consumption of the electronic device during charging.
For example, after the electronic device starts charging, a current value received from the charger and a current value received by the battery of the electronic device are collected at intervals of 10s, a difference between the two current values is calculated, 10 current values received from the charger and 10 current values received by the battery of the electronic device are collected, 10 difference values are obtained, and an average value of the 10 difference values is calculated to obtain power consumption. After 10 seconds, the collected first current value received from the charger and the current value received by the battery of the first electronic device are replaced, and the power consumption is recalculated once again. Corresponding to having a smooth sliding window, the power consumption inside each window is calculated.
S403: when the power consumption is greater than or equal to a first threshold, whether the temperature of the electronic device is greater than the first temperature threshold is judged.
The first threshold may be a boundary between a heavy load scene and a medium load scene of the electronic device, for example, the first threshold may be 800mA, and when the power consumption is greater than or equal to 800mA, the electronic device is in the heavy load scene. It may be understood that, in the embodiment of the present application, the power consumption is greater than or equal to the first threshold, and the power consumption may also be greater than the first threshold, where the first threshold belongs to a heavy load scenario or a medium load scenario, and the application is not specifically limited.
The temperature of the electronic device may include a battery temperature, a case temperature, or the like of the electronic device, which may reflect the overall temperature of the electronic device. The first temperature threshold may be a preset value for the electronic device in a heavy-duty scenario at a lower temperature, for example, the first temperature threshold may be a case temperature of the mobile phone of 30 degrees celsius (°c).
In a possible implementation, the electronic device monitors the screen-lighting state, the temperature, the electric quantity and the like of the electronic device in real time in the charging process. And when the power consumption is greater than or equal to a first threshold value, judging whether the monitored temperature of the electronic equipment is greater than the first temperature threshold value.
It can be understood that the heating value of the electronic device is larger and the temperature rises faster in the heavy-load scenario, so that in order to prevent the occurrence of accidents such as shutdown or damage of the electronic device caused by the too high temperature of the electronic device, in the heavy-load scenario, the temperature of the electronic device is the first judgment priority, that is, when the charging current of the electronic device is determined, the temperature of the electronic device is required to be satisfied within the range allowed by intelligent charging.
S404: and when the temperature of the electronic equipment is smaller than or equal to the first temperature threshold value, judging whether the electric quantity of the electronic equipment is larger than the first electric quantity threshold value.
The first power threshold may be a preset value for determining a charging current of the electronic device in a heavy-load scenario, where the charging current of the electronic device refers to a current at a battery terminal or refers to a current received by a battery of the electronic device.
In an exemplary embodiment, when the temperature of the electronic device is less than or equal to the first temperature threshold, the electric quantity of the electronic device is determined, and when the electric quantity of the electronic device is greater than the first electric quantity threshold, and considering the safety of charging, the electric quantity of the electronic device is greater than the first electric quantity threshold, and a smaller current is used for charging. And when the electric quantity of the electronic equipment is smaller than the first electric quantity threshold value, determining the charging current of the electronic equipment according to the temperature of the electronic equipment.
S405: and when the electric quantity of the electronic equipment is larger than the first electric quantity threshold value, the electronic equipment is charged by adopting the lowest charging current value.
The lowest charging current value can be understood as a conventional charging current value.
For example, when the power of the electronic device is greater than the first power threshold, the electronic device is charged with a conventional charging current value, and it is understood that the conventional charging current value is smaller at this time.
S406: when the electric quantity of the electronic equipment is smaller than or equal to a first electric quantity threshold value, the electronic equipment is charged by adopting a first current value; and as the charging of the electronic equipment is continuously carried out, when the temperature of the electronic equipment is greater than a first temperature threshold value and is smaller than or equal to a second temperature threshold value, the electronic equipment is charged by adopting a second current value, and the second current value is greater than the lowest charging current value and is smaller than the first current value; and when the temperature of the electronic equipment is larger than the second temperature threshold value, the electronic equipment is charged by adopting the lowest charging current value.
The second temperature threshold may be a temperature value that the user can obviously sense heating of the electronic device in a heavy-load scene, for example, may be 38 ℃, and when the temperature of the electronic device is greater than the second temperature threshold, the user can obviously sense that the temperature of the electronic device rises, so that the electronic device is charged by adopting the lowest charging current value, so as to slow down the temperature rise of the electronic device.
The first current value, the second current value, and the lowest charging current value in the embodiments of the present application may be the current of the battery terminal (may also be referred to as a charging current or a battery charging current).
The first current value may be higher, so as to meet the electric quantity requirement of the heavy-load scene. For example, the user plays a game with the mobile phone, so that the electric quantity of the mobile phone is lower than the electric quantity safety line of the mobile phone, the electric quantity safety line can be 20% or 30% and the like, at the moment, the user continues playing the game while charging, the mobile phone can adopt the first current value to charge so as to quickly raise the electric quantity of the mobile phone to be higher than the safety line, the mobile phone is prevented from being powered off, and the electric quantity anxiety of the mobile phone is reduced.
The mobile phone is charged by adopting the first current value when the shell temperature of the mobile phone is smaller than the first temperature threshold value and the electric quantity of the mobile phone is lower than the first electric quantity threshold value, the electric quantity and the shell temperature of the mobile phone can be increased along with the continuous progress of the mobile phone charging, the mobile phone is charged by adopting the second current value when the shell temperature of the mobile phone is larger than the first temperature threshold value and smaller than or equal to the second temperature threshold value, the second current value is larger than the lowest charging current value and smaller than the first current value, and the electronic equipment is charged by adopting the lowest charging current value when the shell temperature of the mobile phone is larger than the second temperature threshold value.
Exemplary, fig. 5 shows a heavy-duty scene graph provided in an embodiment of the present application. As shown in fig. 5, the heavy-load scene curve includes an intelligent charging regulation mode charging current curve of the electronic device changing along with charging time in the heavy-load scene, a pre-control charging current curve, an actual shell temperature curve and an optimized shell temperature curve. As shown in fig. 5, when the user can sense that the electronic device generates heat, for example, the temperature of the shell is about 37 ℃, for the actual shell temperature curve, the temperature of the shell reaches about 37 ℃ when the charging time is about 4 minutes, and in the optimized shell temperature curve, the temperature of the shell reaches about 37 ℃ when the charging time is about 14 minutes, so that the temperature rise of the electronic device is obviously delayed. When the electronic device reaches a strictly controlled temperature, for example, the housing temperature is about 43 ℃, for an actual housing temperature curve, the housing temperature reaches about 43 ℃ when the charging time is about 20 minutes, and in an optimized housing temperature curve, the housing temperature reaches about 43 ℃ when the charging time is about 26 minutes, so that the temperature rise of the electronic device is delayed. That is, in heavy-duty scenes, the temperature of the optimized shell rises later, and the user can feel that the electronic equipment heats later, so that the user experience can be effectively improved.
In summary, in the embodiment of the present application, the electronic device starts charging; acquiring power consumption of the electronic equipment in charging; when the power consumption is greater than or equal to a first threshold value, judging whether the temperature of the electronic equipment is greater than the first temperature threshold value; when the temperature of the electronic equipment is smaller than or equal to a first temperature threshold value, judging whether the electric quantity of the electronic equipment is larger than the first electric quantity threshold value or not; when the electric quantity of the electronic equipment is larger than a first electric quantity threshold value, the electronic equipment is charged by adopting a lowest charging current value; when the electric quantity of the electronic equipment is smaller than or equal to a first electric quantity threshold value, the electronic equipment is charged by adopting a first current value; and as the charging of the electronic equipment is continuously carried out, when the temperature of the electronic equipment is greater than a first temperature threshold value and is smaller than or equal to a second temperature threshold value, the electronic equipment is charged by adopting a second current value, and the second current value is greater than the lowest charging current value and is smaller than the first current value; and when the temperature of the electronic equipment is larger than the second temperature threshold value, the electronic equipment is charged by adopting the lowest charging current value. Therefore, when the temperature of the electronic equipment is low and the electric quantity is low, larger current is adopted for charging, the electric quantity of the electronic equipment can be improved faster, the electric quantity anxiety during the electric quantity reduction is effectively reduced, when the temperature of the electronic equipment is increased, the charging current is reduced, the heating value of the electronic equipment in a heavy-load scene is reduced, and therefore the temperature increase of the electronic equipment is effectively delayed.
On the basis of the foregoing embodiments, in order to more clearly describe the technical solution provided in the embodiments of the present application, for example, please refer to fig. 6, fig. 6 shows a schematic flow chart of a charging method provided in the embodiments of the present application, which includes:
s601: and (5) starting charging.
This step is similar or identical to the step S401 described above, and will not be described here again.
S602: the state of the mobile phone at the beginning of charging is recorded, and the state can comprise parameters such as battery temperature, electric quantity, charging starting time, shell temperature and the like.
The power may be expressed as a percentage, for example, 20% of the power of the mobile phone.
S603: and acquiring the power consumption of the electronic equipment.
This step is similar or identical to step S402 described above and will not be described here again.
Optionally, step S603 may include:
acquiring third current values received by the electronic equipment from the charger at N time points and fourth current values received by the battery of the electronic equipment, and obtaining N pairs of third current values and fourth current values which are associated in pairs, wherein N is a natural number; and according to the third current value and the fourth current value of the N pairs, power consumption is realized.
In a possible implementation, after the electronic device starts charging, a current value collector in the electronic device starts collecting third current values received by the electronic device from a charger and fourth current values received by a battery of the electronic device at N time points, obtaining N pairs of associated third current values and fourth current values, and calculating the collected N pairs of third current values and fourth current values to obtain power consumption.
For example, the current value collector of the electronic device may collect the third current value and the fourth current value periodically, for example, collect a pair of the third current value and the fourth current value every 10 seconds, and obtain 10 pairs of the third current value and the fourth current value after 100 seconds.
In this embodiment of the present application, by acquiring third current values received by the electronic device at N time points from the charger and fourth current values received by the battery of the electronic device, N pairs of third current values and fourth current values associated in pairs are obtained, and power consumption is obtained according to the obtained N pairs of third current values and fourth current values associated in pairs, so that a scene of a load of the electronic device can be identified according to the obtained power consumption.
Optionally, obtaining power consumption according to the N pairs of the third current value and the fourth current value includes:
respectively calculating the difference value of any pair of third current value and fourth current value of N pairs of third current value and fourth current value to obtain N difference values; and calculating N difference values according to a preset algorithm to obtain power consumption, wherein the preset algorithm comprises any one of the following steps: an averaging algorithm, a screening effective data first, an averaging algorithm and a median algorithm.
For example, the difference operation is performed on each of the N pairs of third current values and fourth current values, where N is, for example, 5, so as to obtain 5 differences, and the 5 differences may be, for example, 809mA, 800mA, 802mA, 812mA, 805mA, and the power consumption is 805.6mA by averaging the 5 differences; or, removing the lowest value 800mA and the highest value 812mA in the 5 difference values, and calculating the average value of the residual values to obtain power consumption of 805.3mA; alternatively, the 5 differences are rearranged: 800mA, 802mA, 805mA, 809mA and 812mA, and obtaining the power consumption of 805mA by taking the median. It is understood that the power consumption may be an estimate. The calculation method for obtaining the power consumption is not particularly limited in this application.
In the embodiment of the application, the power consumption is obtained by simply calculating the third current value and the fourth current value of the N pairs, so that the scene of the load of the electronic equipment can be identified according to the obtained power consumption.
S604: when the power consumption is greater than or equal to a first threshold, whether the temperature of the electronic device is greater than the first temperature threshold is judged.
This step is similar to or the same as step S403 described above, and will not be described here again.
Optionally, before step S604, the method further includes:
judging whether the electronic equipment is in a bright screen state or not; when the electronic equipment is not in a bright screen state, the electronic equipment is charged by adopting the lowest charging current value; when the power consumption is greater than or equal to a first threshold, determining whether the temperature of the electronic device is greater than the first temperature threshold includes: when the electronic equipment is in a bright screen state and the power consumption is greater than or equal to a first threshold value, judging whether the temperature of the electronic equipment is greater than the first temperature threshold value.
In a possible implementation, before judging the power consumption, judging whether the electronic device is in a bright screen state, and when the electronic device is in a screen-off state, charging the electronic device by adopting the lowest charging current value, or entering a conventional charging mode. When the electronic device is in the bright screen state, the power consumption, the temperature, the electric quantity and the like of the electronic device are judged, so that the charging current of the electronic device is determined, and the specific determination method can be seen from the content of the embodiment and is not repeated here.
In the embodiment of the application, whether the electronic equipment is in the bright screen state is judged before the power consumption is judged, so that the follow-up determination of the charging current under different load scenes based on the bright screen state is facilitated.
S605: and when the temperature of the electronic equipment is smaller than or equal to the first temperature threshold value, judging whether the electric quantity of the electronic equipment is larger than the first electric quantity threshold value.
This step is similar or identical to step S404 described above, and will not be described here again.
S606: and when the electric quantity of the electronic equipment is larger than the first electric quantity threshold value, the electronic equipment is charged by adopting the lowest charging current value.
This step is similar to or the same as step S405 described above, and will not be described here again.
S607: when the electric quantity of the electronic equipment is smaller than or equal to a first electric quantity threshold value, the electronic equipment is charged by adopting a first current value; and as the charging of the electronic equipment is continuously carried out, when the temperature of the electronic equipment is greater than a first temperature threshold value and is smaller than or equal to a second temperature threshold value, the electronic equipment is charged by adopting a second current value, and the second current value is greater than the lowest charging current value and is smaller than the first current value; and when the temperature of the electronic equipment is larger than the second temperature threshold value, the electronic equipment is charged by adopting the lowest charging current value.
This step is similar to or the same as step S406 described above, and will not be described here again.
Optionally, the first current value and/or the second current value are learned in advance, and the method further includes:
respectively acquiring first process data when the electronic equipment is charged by adopting a first current value and/or second process data when the electronic equipment is charged by adopting a second current value, wherein the first process data comprises a first battery temperature rise value and/or a first shell temperature rise value, and the second process data comprises a second battery temperature rise value and/or a second shell temperature rise value;
updating the first current value to a greater value when the first battery temperature rise value is less than or equal to the first temperature rise threshold and/or the first housing temperature rise value is less than or equal to the second temperature rise threshold; or when the first battery temperature rise value is greater than the first temperature rise threshold value, and/or the first shell temperature rise value is greater than the second temperature rise threshold value, updating the first current value to be a smaller value; and/or updating the second current value to a greater value when the second battery temperature increase value is less than or equal to the third temperature increase threshold and/or the second housing temperature increase value is less than or equal to the fourth temperature increase threshold; alternatively, the second current value is updated to a smaller value when the second battery temperature increase value is greater than the third temperature increase threshold and/or the second case temperature increase value is greater than the fourth temperature increase threshold.
In a possible implementation, the first current value and/or the second current value are learned in advance, after the electronic device starts charging, the electronic device also records the state of the electronic device when charging is started, the state of the electronic device when charging is started includes a battery temperature, a shell temperature, a charging start time, an electric quantity and the like, in the charging process, the state of the electronic device is also recorded, and the first process data and/or the second process data can be obtained according to the state of the electronic device recorded when the charging current changes and the state of the electronic device when charging is started after charging is completed.
Wherein, the first current value and/or the second current value are learned in advance, which can be understood as that the first current value and/or the second current value can be determined according to a preset charging strategy table, and the preset charging strategy table is shown in table 1.
TABLE 1
Scene illustration Electric quantity (percentage) Shell temperature (. Degree. C.) Battery charging current (mA)
Heavy duty scenario (Power consumption)>800mA) <20 <30 2500
Heavy duty scenario (Power consumption)>800mA) >20 NA 1800
Medium-load scene (Power consumption 500-800 mA) <20 <33 4000
Medium-load scene (Power consumption 500-800 mA) >20 >=33 2800
Light load scene (Power consumption)<500mA) <30 <35 6000
Light load scene (Power consumption)<500mA) >30 >=35 4000
For example, after the electronic device starts charging, the electronic device records the state of the electronic device when charging is started, where the state of the electronic device when charging is started includes a battery temperature 1, a housing temperature 1, a charging start time 1, an electric quantity 1, and the like, and in the charging process, records the state of the electronic device when the charging current of the electronic device is adjusted from a first current value to a second current value, where the state includes a battery temperature 2, a housing temperature 2, a charging time 2, an electric quantity 2, and the like, and may also record the state of the electronic device when the charging current of the battery of the electronic device is adjusted from the second current value to a minimum charging current value, where the state includes a battery temperature 3, a housing temperature 3, a charging time 3, an electric quantity 3, and the like. After the charging is completed, the battery temperature 2 and the battery temperature 1 are subjected to subtraction operation to obtain a first battery temperature rising value, and/or the housing temperature 2 and the housing temperature 1 are subjected to subtraction operation to obtain a first housing temperature rising value, and/or the battery temperature 3 and the battery temperature 1 are subjected to subtraction operation to obtain a second battery temperature rising value, and/or the housing temperature 3 and the housing temperature 1 are subjected to subtraction operation to obtain a second housing temperature rising value.
For example, in a heavy-duty scenario of the electronic device, if the first battery temperature rise value is less than or equal to the first temperature rise threshold value, and/or the first case temperature rise value is less than or equal to the second temperature rise threshold value, that is, when the first current value is used for charging, the first battery temperature rise value and/or the first case temperature rise value of the electronic device are less, and do not exceed the allowable range of the first temperature rise threshold value and/or the second temperature rise threshold value, so the first current value may be increased to make the first battery temperature rise value and/or the first case temperature rise value larger, and therefore, the first current value is updated to be larger, for example, 2500mA of the heavy-duty scenario in table 1 is updated to 2600mA; or if the first battery temperature rise value is greater than the first temperature rise threshold value, and/or, the first case temperature rise value is greater than the second temperature rise threshold value, that is, when the first current value is adopted for charging, the first battery temperature rise value and/or the first case temperature rise value of the electronic device are greater, and exceed the allowable range of the first temperature rise threshold value and/or the second temperature rise threshold value, so the first current value can be reduced to make the first battery temperature rise value and/or the first case temperature rise value smaller, and therefore, the first current value is updated to be smaller, for example, 2500mA of the heavy-load scene in table 1 is updated to be 2300mA; and/or, if the second battery temperature rise value is less than or equal to the third temperature rise threshold value, and/or, the second case temperature rise value is less than or equal to the fourth temperature rise threshold value, that is, when the second current value is adopted for charging, the second battery temperature rise value and/or the second case temperature rise value of the electronic device are smaller, and the allowable range of the third temperature rise threshold value and/or the fourth temperature rise threshold value is not exceeded, so the second current value can be increased to make the second battery temperature rise value and/or the second case temperature rise value larger, and therefore, the second current value is updated to be larger, for example, 1800mA of the heavy-load scene in table 1 is updated to be mA 1900; alternatively, if the second battery temperature rise value is greater than the third temperature rise threshold value and/or the second case temperature rise value is greater than the fourth temperature rise threshold value, that is, when the second current value is used for charging, the second battery temperature rise value and/or the second case temperature rise value of the electronic device are greater, and exceed the allowable range of the third temperature rise threshold value and/or the fourth temperature rise threshold value, so the second current value may be reduced to make the second battery temperature rise value and/or the second case temperature rise value smaller, and thus the second current value is updated to be smaller, for example, 1800mA of the heavy load scene in table 1 is updated to 1600mA.
In the embodiment of the application, the electronic device can update the first current value and/or the second current value once according to the first process data and/or the second process data of the charging process after charging once, so that the charging current which is better in a heavy-load scene can be obtained after updating for many times.
The above steps S604 to S607 are charging methods when the power consumption of the electronic device is greater than or equal to the first threshold, and may be understood as charging methods of the electronic device in a heavy-load scenario. It is understood that the power consumption may also be smaller than the first threshold, and optionally, when the power consumption is smaller than the first threshold and larger than the second threshold, the following steps may be further included after step S603:
s608: when the power consumption is smaller than the first threshold and larger than the second threshold, judging whether the electric quantity of the electronic equipment is larger than the second electric quantity threshold or not; when the electric quantity of the electronic equipment is smaller than or equal to the second electric quantity threshold value, judging whether the temperature of the electronic equipment is larger than a third temperature threshold value or not; when the temperature of the electronic equipment is smaller than or equal to a third temperature threshold value, the electronic equipment is charged by adopting a fifth current value, and the fifth current value is learned in advance; and when the temperature of the electronic equipment is larger than the third temperature threshold value, the electronic equipment is charged by adopting the lowest charging current value.
The second threshold may be a boundary between the medium-load scene and the light-load scene of the electronic device, for example, the second threshold may be 500mA. It may be understood that, in the embodiment of the present application, the power consumption is smaller than or equal to the first threshold, and the power consumption is larger than or equal to the second threshold, and the second threshold belongs to a medium-load scene or a light-load scene, which is not specifically limited in this application.
The third temperature threshold may be a value preset for a battery temperature and/or a case temperature of the electronic device in the medium-load scenario.
The fifth current value may be a charging current value for the electronic device in the medium-load scenario, and it is understood that the fifth current value is greater than the lowest charging current value.
The second power threshold may be a preset value for determining a charging current of the electronic device in the medium-load scenario.
For example, when the power of the electronic device is greater than the second power threshold, the electronic device charges with the lowest charging current value, when the power of the electronic device is less than or equal to the second power threshold, the charging current of the electronic device is determined based on the temperature of the electronic device, for example, when the housing temperature of the electronic device is less than or equal to the third temperature threshold, the electronic device charges with the fifth current value, which is learned in advance, and when the housing temperature of the electronic device is greater than the third temperature threshold, the electronic device charges with the lowest charging current value.
In the embodiment of the application, the charging current of the electronic device is determined according to the electric quantity and the temperature of the electronic device in the medium-load scene, when the electric quantity and the temperature of the electronic device are low, a pre-learned fifth current value is adopted for charging, the fifth current value is larger, so that the charging speed of the electronic device in the medium-load scene is properly improved, the electric quantity of the electronic device is rapidly supplemented to be more than an electric quantity safety line, and when the temperature of the electronic device is higher, the lowest charging current value is adopted for charging, so that the temperature rise of the electronic device in the medium-load scene is delayed.
Optionally: acquiring third process data when the electronic equipment is charged by adopting a fifth current value, wherein the third process data comprises a third battery temperature rise value, a third shell temperature rise value and/or a first charging duration;
when the third battery temperature rise value is less than or equal to the fifth temperature rise threshold, the third housing temperature rise value is less than or equal to the sixth temperature rise threshold, and/or the first charging time length is greater than the first time length threshold, updating the fifth current value to a greater value; alternatively, the fifth current value is updated to a smaller value when the third battery temperature increase value is greater than the fifth temperature increase threshold and/or the third case temperature increase value is greater than the sixth temperature increase threshold.
In a possible implementation, after the electronic device starts charging, the electronic device may record a state of the electronic device when charging is started, where the state of the electronic device when charging is started includes a battery temperature, a shell temperature, a charging start time, an electric quantity, and the like, and in a charging process, the state of the electronic device may also be recorded, and third process data may be obtained according to the state of the electronic device recorded when the charging current changes and the state of the electronic device when charging is started after charging is completed.
The electronic device records a state of the electronic device when charging is started after the electronic device starts to charge, where the state of the electronic device when charging is started includes a battery temperature 1, a shell temperature 1, a charging start time 1, an electric quantity 1, and the like, and in a charging process, records a state of the electronic device when a charging current of the electronic device is adjusted from a fifth current value to a lowest charging current value, where the state includes a battery temperature 4, a shell temperature 4, a charging time 4, an electric quantity 4, and the like, and after charging is completed, performs a subtraction operation on the battery temperature 4 and the battery temperature 1 to obtain a third battery temperature rise value, and/or performs a subtraction operation on the shell temperature 4 and the shell temperature 1 to obtain a third shell temperature rise value, and/or performs a subtraction operation on the charging time 4 and the charging start time 1 to obtain a first charging duration.
For example, in the medium-load scenario of the electronic device, if the third battery temperature rise value is less than or equal to the fifth temperature rise threshold, the third case temperature rise value is less than or equal to the sixth temperature rise threshold, and/or the first charging time period is longer than the first time period threshold, that is, when the fifth current value is adopted for charging, the third battery temperature rise value and/or the third case temperature rise value of the electronic device are smaller, and do not exceed the allowable range of the fifth temperature rise threshold and/or the sixth temperature rise threshold, and/or the first charging time period is larger, so the fifth current value can be increased to make the third battery temperature rise value and/or the third case temperature rise value larger, and/or the first charging time period smaller, and therefore, the fifth current value is updated to be a larger value, for example, 4000mA of the medium-load scenario in table 1 is updated to 4200mA; alternatively, if the third battery temperature rise value is greater than the fifth temperature rise threshold and/or the third case temperature rise value is greater than the sixth temperature rise threshold, that is, when the fifth current value is used for charging, the third battery temperature rise value and/or the third case temperature rise value of the electronic device are greater, and exceed the allowable range of the fifth temperature rise threshold and/or the sixth temperature rise threshold, so the fifth current value may be reduced to make the third battery temperature rise value and/or the third case temperature rise value smaller, and therefore, the fifth current value is updated to be smaller, for example, 4000mA of the medium-load scenario in table 1 is updated to be 3900mA.
It is understood that when the third battery temperature increase value and/or the third case temperature increase value of the electronic device are/is large, the charging safety of the electronic device is emphasized, that is, when the third battery temperature increase value and/or the third case temperature increase value of the electronic device are large, in order to delay the temperature increase of the electronic device, the charging safety of the electronic device is improved, and even when the charging period is long, the fifth current value may not be updated to a larger value.
In the embodiment of the application, the electronic device can update the fifth current value once according to the third process data of the charging process after charging once, so that the charging current which is better in the medium-load scene can be obtained after updating for a plurality of times.
S609: and when the electric quantity of the electronic equipment is larger than the second electric quantity threshold value, the electronic equipment is charged by adopting the lowest charging current value.
In this embodiment of the present application, when the electric quantity of the electronic device is greater than the second electric quantity threshold, the electronic device uses the lowest charging current value to charge, for example, uses a lower current value to charge when the electric quantity of the electronic device is higher, so as to improve the charging security of the electronic device in the medium-load scenario.
The steps S608 to S609 are charging methods when the power consumption of the electronic device is smaller than the first threshold and larger than the second threshold, and may be understood as charging methods of the electronic device in the medium-load scenario. It is understood that the steps S608 to S609 may be performed in a scene where the electronic device is on a bright screen. It is understood that the power consumption may be further less than or equal to the second threshold, and optionally, when the power consumption is less than or equal to the second threshold, the following steps may be further included after step S603:
S610: when the power consumption is smaller than or equal to the second threshold value, judging whether the electric quantity of the electronic equipment is larger than a third electric quantity threshold value or not; when the electric quantity of the electronic equipment is smaller than or equal to the third electric quantity threshold value, judging whether the temperature of the electronic equipment is larger than a fourth temperature threshold value or not; when the temperature of the electronic equipment is smaller than or equal to the fourth temperature threshold value, the electronic equipment is charged by adopting a sixth current value which is learned in advance; and when the temperature of the electronic equipment is greater than the fourth temperature threshold value, the electronic equipment is charged by adopting the lowest charging current value.
It may be understood that the power consumption in the embodiment of the present application is less than or equal to the second threshold value, and the power consumption may also be less than the second threshold value, which is not specifically limited in this application.
The fourth temperature threshold may be a value preset for a battery temperature and/or a case temperature of the electronic device in the light-load scenario.
The sixth current value may be a charging current value for the electronic device in a light-load scenario, and it is understood that the sixth current value is greater than the lowest charging current value.
The third power threshold may be a preset value for determining a charging current of the electronic device in the light-load scenario.
For example, when the power of the electronic device is greater than the third power threshold, the electronic device is charged with the lowest charging current value, when the power of the electronic device is less than or equal to the third power threshold, the charging current of the electronic device is determined based on the temperature of the electronic device, for example, when the housing temperature of the electronic device is less than or equal to the fourth temperature threshold, the electronic device is charged with the sixth current value, which is learned in advance, and when the housing temperature of the electronic device is greater than the fourth temperature threshold, the electronic device is charged with the lowest charging current value.
Fig. 7 is a schematic diagram of an original charging strategy curve of a light-load scene, where, as shown in fig. 7, the original charging strategy curve of the light-load scene includes a charging current curve, a temperature curve and an electric quantity curve of an electronic device, which change with charging time in the light-load scene. Fig. 8 shows a schematic diagram of a policy curve after light-load scene optimization provided in an embodiment of the present application, where, as shown in fig. 8, the policy curve after light-load scene optimization includes a charging current curve, a shell temperature curve and an electric quantity curve, which are optimized by an electronic device and change with charging time in the light-load scene. As can be seen by comparing fig. 7 and fig. 8, under the light load scenario, the electric quantity of the electronic device is charged to 30%, the time required for charging by adopting the original charging strategy is about 21 minutes, and the time required for charging by adopting the optimized charging current is about 13 minutes.
In this embodiment of the present application, according to the electric quantity and the temperature of the electronic device in the light-load scene, the charging current of the electronic device is determined, when the electric quantity of the electronic device is low and the temperature is low, the sixth current value learned in advance is adopted to charge, so that the charging speed of the electronic device in the light-load scene is properly improved, and the electric quantity of the electronic device is rapidly supplemented to above the electric quantity safety line.
Optionally, fourth process data when the electronic device is charged by the sixth current value is obtained, wherein the fourth process data comprises a fourth battery temperature rise value, a fourth shell temperature rise value and/or a second charging duration;
updating the sixth current value to a greater value when the fourth battery temperature increase value is less than or equal to the seventh temperature increase threshold, the fourth housing temperature increase value is less than or equal to the eighth temperature increase threshold, and/or the second charge time length is greater than the second time length threshold; alternatively, the sixth current value is updated to a smaller value when the fourth battery temperature increase value is greater than the seventh temperature increase threshold and/or the fourth case temperature increase value is greater than the eighth temperature increase threshold.
In a possible implementation, after the electronic device starts charging, the electronic device may record a state of the electronic device when charging is started, where the state of the electronic device when charging is started includes a battery temperature, a shell temperature, a charging start time, an electric quantity, and the like, and in a charging process, the state of the electronic device may also be recorded, and fourth process data may be obtained according to the state of the electronic device recorded when the charging current changes and the state of the electronic device when charging is started after charging is completed.
The electronic device records a state of the electronic device when charging is started after the electronic device starts to charge, where the state of the electronic device when charging is started includes a battery temperature 1, a shell temperature 1, a charging start time 1, an electric quantity 1, and the like, and in a charging process, records a state of the electronic device when a charging current of the electronic device is adjusted from a sixth current value to a lowest charging current value, where the state includes a battery temperature 5, a shell temperature 5, a charging time 5, an electric quantity 5, and the like, and after charging is completed, performs a subtraction operation on the battery temperature 5 and the battery temperature 1 to obtain a fourth battery temperature rise value, and/or performs a subtraction operation on the shell temperature 5 and the shell temperature 1 to obtain a fourth shell temperature rise value, and/or performs a subtraction operation on the charging time 5 and the charging start time 1 to obtain a second charging duration.
For example, in a light-load scenario of the electronic device, if the fourth battery temperature rise value is less than or equal to the seventh temperature rise threshold, the fourth housing temperature rise value is less than or equal to the eighth temperature rise threshold, and/or the second charging time period is greater than the second duration threshold, that is, when the sixth current value is adopted for charging, the fourth battery temperature rise value and/or the fourth housing temperature rise value of the electronic device are smaller, and do not exceed the allowable range of the seventh temperature rise threshold and/or the eighth temperature rise threshold, and/or the second charging time period is greater, so that the sixth current value can be increased to make the fourth battery temperature rise value and/or the fourth housing temperature rise value greater, and/or the second charging time period is smaller, and therefore, the sixth current value is updated to be a greater value, for example, 6000mA of the light-load scenario in table 1 is updated to 6200mA; alternatively, if the fourth battery temperature rise value is greater than the seventh temperature rise threshold value, and/or, the fourth case temperature rise value is greater than the eighth temperature rise threshold value, that is, when charging with the sixth current value, the fourth battery temperature rise value and/or the fourth case temperature rise value of the electronic device are greater, exceeding the allowable range of the seventh temperature rise threshold value and/or the eighth temperature rise threshold value, so the sixth current value may be reduced to make the fourth battery temperature rise value and/or the fourth case temperature rise value smaller, and therefore, the sixth current value is updated to be smaller, for example, 6000mA of the light load scene in table 1 is updated to be 5900mA.
It is understood that when the fourth battery temperature increase value and/or the fourth case temperature increase value of the electronic device are/is large, the charging safety of the electronic device is emphasized, that is, when the fourth battery temperature increase value and/or the fourth case temperature increase value of the electronic device are large, the sixth current value may not be updated to a larger value in order to delay the temperature increase of the electronic device and improve the charging safety of the electronic device even if the charging period at this time is long.
In the embodiment of the application, the electronic device can update the sixth current value once according to the fourth process data of the charging process after charging once, so that the charging current which is better in a light-load scene can be obtained after updating for a plurality of times.
S611: and when the electric quantity of the electronic equipment is larger than the third electric quantity threshold value, the electronic equipment is charged by adopting the lowest charging current value.
In this embodiment of the present application, when the electric quantity of the electronic device is greater than the third electric quantity threshold, the electronic device charges with the lowest charging current value, so that when the electric quantity of the electronic device is higher, the electronic device charges with the lower current value, so as to improve the charging security of the electronic device in the light-load scene.
The above steps S610 to S611 are charging methods when the power consumption of the electronic device is less than or equal to the second threshold, and may be understood as charging methods of the electronic device in a light-load scenario. It is understood that the steps S610 to S611 may be performed in a scene where the electronic device is on a bright screen.
Optionally, before step S607, the method further includes the step of:
displaying a first interface, wherein the first interface comprises notification information, a first button and a second button, and the notification information is used for prompting a user whether the electronic equipment enters an intelligent charging regulation mode; responding to the triggering operation of the first button, and enabling the electronic equipment to enter an intelligent charging regulation mode; alternatively, in response to a triggering operation of the second button, the electronic device is charged with the lowest charging current value.
The intelligent charging regulation mode may be that the electronic device is charged by adopting the charging method in the above embodiment.
In one possible implementation, after the electronic device starts charging, before the electronic device enters the intelligent charging regulation mode, the electronic device pops up a User Interface (UI) prompt box, and the UI prompt box is used for a User to select whether to enter the intelligent charging regulation mode.
Exemplary, fig. 9 shows a first interface schematic provided in an embodiment of the present application. After the mobile phone starts charging, the mobile phone displays an interface as shown in fig. 9 before the mobile phone enters the intelligent charging regulation mode. The interface shown in fig. 9 may include: notification information 901, an allow button 902, and a reject button 903, wherein the notification information 901 prompts the user whether to allow entry into the smart charge regulation mode, the first button may be the allow button 902, and the second button may be the reject button 903. After the mobile phone detects the triggering operation of the user for the permission button 902, the mobile phone can enter an intelligent charging regulation mode; after the handset detects the triggering operation of the reject button 903 by the user, the handset can continue the normal charging mode. After displaying the interface shown in fig. 9, if the mobile phone does not detect the triggering operation of the user on the permission button 902 or the rejection button 903 within the preset time, the mobile phone may enter the intelligent charging regulation mode or the normal charging mode by default.
In another possible implementation, after the electronic device starts charging, the electronic device can automatically enter an intelligent charging regulation mode to charge when conditions such as power consumption, temperature and electric quantity are met, and meanwhile the electronic device pops up a UI prompt box which is used for informing a user that the electronic device has entered the intelligent charging regulation mode.
The UI prompt box includes, for example, notification information and a resume button, where the notification information "has entered the intelligent charging regulation mode, if the normal charging mode needs to be resumed," please click "resume" is used to notify the user that the electronic device has entered the intelligent charging regulation mode, and the resume button is used to resume the normal charging mode, for example, when the electronic device detects that the user has operated the resume button by triggering, the electronic device exits the intelligent charging regulation mode, and resumes the normal charging mode.
In the embodiment of the application, before the electronic equipment enters the intelligent charging regulation mode, the first interface is displayed for the user to select whether to enter the intelligent charging regulation mode, so that interactive operation is increased, and the flexibility of a charging mode is improved.
Optionally, in executing step S607, the method further includes the steps of:
displaying a second interface in response to a pull-down operation of the user, the second interface including notification information and a third button; in response to a triggering operation of the third button, the electronic device is charged with the lowest charging current value.
Exemplary, fig. 10 shows a second interface schematic provided in an embodiment of the present application. After the mobile phone enters the intelligent charging regulation mode, when the mobile phone detects a pull-down operation of the user, the mobile phone may display an interface as shown in fig. 10, where the interface may include notification information 1001 and a resume button 1002, where the notification information 1001 prompts the user to "enter the intelligent charging regulation mode", if the normal charging mode needs to be resumed, "resume" is requested, and the third button may be the resume button 1002. When the handset detects the triggering operation of the restore button 1002 by the user, the handset can restore the normal charging mode. In one possible implementation, after the mobile phone enters the intelligent charging regulation mode, when the mobile phone detects a pull-down operation of the user, the mobile phone may display an interface as shown in fig. 10, and even if the mobile phone exits the intelligent charging regulation mode in this charging process and enters the normal charging mode, the mobile phone may still display the interface as shown in fig. 10 until the interface as shown in fig. 10 automatically disappears after the mobile phone is powered off.
In the embodiment of the application, after the electronic equipment enters the intelligent charging regulation mode, the second interface can be displayed for the user to select whether to finish the intelligent charging regulation mode or not to recover the conventional charging mode, so that the interactive operation is increased, and the flexibility of the charging mode is improved.
In summary, in this application embodiment, according to the temperature and the electric quantity dynamic adjustment electronic equipment's of electronic equipment under different load scenes charge the in-process, like this, electronic equipment adopts great electric current to charge when temperature is low and the electric quantity is low, can improve electronic equipment's electric quantity soon, and the electric quantity anxiety when effectively reducing the electric quantity, when electronic equipment's temperature rises, then reduce charging current, reduce electronic equipment's calorific capacity to effectively delay electronic equipment's temperature rise. After the charging is completed, the charging current of the corresponding load scene is updated according to the charging process data, and the charging current of each load scene can be optimized.
On the basis of the foregoing embodiments, in order to more clearly describe the technical solutions provided in the embodiments of the present application, for example, please refer to fig. 11, fig. 11 shows a schematic flow chart of a charging method provided in the embodiments of the present application, which includes:
s1101: and (5) starting charging.
This step is similar or identical to the step S401 described above, and will not be described here again.
S1102: recording the state of the mobile phone when starting charging: battery temperature, charge amount, charge start time, housing temperature.
This step is similar or identical to the step S602 described above, and will not be described here again.
S1103: and acquiring the power consumption of the electronic equipment.
This step is similar or identical to step S402 described above and will not be described here again.
S1104: and judging whether the electronic equipment is on or not.
When the electronic equipment is in a screen-off state, entering S1120; when the electronic equipment is in a bright screen state, starting to judge the power consumption, wherein the judging of the power consumption comprises the following steps:
s1105: whether the power consumption is greater than or equal to a first threshold. If the power consumption is greater than or equal to the first threshold, the process proceeds to S1106, otherwise, the process proceeds to S1110.
S1106: whether the temperature is less than or equal to a second temperature threshold.
When the temperature is greater than the second temperature threshold, proceeding to S1120; when the temperature is less than or equal to the second temperature threshold value, S1107 is entered.
S1107: whether the charge is less than or equal to a first charge threshold.
When the electric quantity is greater than the first electric quantity threshold value, entering S1120; when the electric quantity is larger than the first electric quantity threshold value, S1108 is entered.
S1108: and performing current limiting action according to the temperature and the current of the learned or preset value.
This step is similar to or the same as step S406 described above, and will not be described here again.
S1109: and recording the data of the charging process, carrying out integration calculation, and updating the reloading parameters.
Wherein the integrated calculation may include calculating a first battery temperature increase value, a first case temperature increase value, a second battery temperature increase value, and/or a second case temperature increase value, and the override parameter may include a first current value and/or a second current value. Specific implementation may refer to the above embodiments, and will not be described herein.
S1110: whether the power consumption is less than a first threshold and greater than a second threshold. If the power consumption is smaller than the first threshold and larger than the second threshold, the process proceeds to S1111, otherwise, the process proceeds to S1115.
S1111: whether the charge is less than or equal to a second charge threshold.
When the electric quantity is greater than the second electric quantity threshold value, entering S1120; when the electric quantity is less than or equal to the second electric quantity threshold value, S1112 is entered.
S1112: whether the temperature is less than or equal to a third temperature threshold.
When the temperature is greater than the third temperature threshold, proceeding to S1120; when the temperature is less than or equal to the third temperature threshold value, the process advances to S1113.
S1113: and performing current limiting action according to the temperature and the current of the learned or preset value.
Specific implementation may refer to the above embodiments, and will not be described herein.
S1114: and recording the data of the charging process, carrying out integration calculation, and updating the medium-load parameters.
Wherein the integrated calculation may include calculating a third battery temperature increase value, the third case temperature increase value and/or the first charge duration, and the medium-load parameter may include a fifth current value. Specific implementation may refer to the above embodiments, and will not be described herein.
S1115: whether the power consumption is less than or equal to a second threshold. When the power consumption is less than or equal to the second threshold, the process advances to S1116.
S1116: whether the charge is less than or equal to a third charge threshold.
When the electric quantity is greater than the third electric quantity threshold value, entering S1120; when the electric quantity is less than or equal to the third electric quantity threshold value, the process proceeds to S1117.
S1117: whether the temperature is less than or equal to a fourth temperature threshold.
When the temperature is greater than the fourth temperature threshold, proceeding to S1120; when the temperature is less than or equal to the fourth temperature threshold, the process proceeds to S1118.
S1118: and performing current limiting action according to the temperature and the current of the learned or preset value.
Specific implementation may refer to the above embodiments, and will not be described herein.
S1119: and recording the data of the charging process, carrying out integration calculation, and updating the light-load parameters.
The integrated calculation may include calculating a fourth battery temperature increase value, the fourth housing temperature increase value, and/or the second charging duration, and the light load parameter may include a sixth current value. Specific implementation may refer to the above embodiments, and will not be described herein.
S1120: conventional charging mode.
The normal charging mode can be understood as a normal charging mode.
In this embodiment, according to the temperature and the electric quantity dynamic adjustment electronic equipment's of electronic equipment under different load scenes charge electric current in the in-process, like this, electronic equipment adopts great electric current to charge when temperature is low and the electric quantity is low, can improve electronic equipment's electric quantity very fast, and the electric quantity anxiety nature when effectively reducing the electric quantity, when electronic equipment's temperature rises, then reduce charging current, reduce electronic equipment's calorific capacity to effectively delay electronic equipment's temperature rise. After the charging is completed, the charging current of the corresponding load scene is updated according to the charging process data, and the charging current of each load scene can be optimized.
The method provided by the embodiment of the present application is described above with reference to fig. 4 to 11, and the device for performing the method provided by the embodiment of the present application is described below. As shown in fig. 12, fig. 12 is a schematic structural diagram of a charging device according to an embodiment of the present application, where the charging device may be an electronic device in an embodiment of the present application, or may be a chip or a chip system in the electronic device.
As shown in fig. 12, a charging apparatus 1200 may be used in a communication device, a circuit, a hardware component, or a chip, and includes: a display unit 1201 and a processing unit 1202. Wherein the display unit 1201 is configured to support display of the first interface and the second interface, the processing unit 1202 is configured to support the charging device to perform the step of charging, for example, the processing unit is configured to process steps S401 to S406 in fig. 4.
The processing unit 1202 may be integrated with the display unit 1201, and communication may occur between the processing unit 1202 and the display unit 1201.
In one possible implementation, the charging device may further include: a storage unit 1204. The storage unit 1204 may include one or more memories, which may be one or more devices, circuits, or devices for storing programs or data.
The memory unit 1204 may exist separately and be connected to the processing unit 1202 through a communication bus. The memory unit 1204 may also be integrated with the processing unit 1202.
Taking the example that the charging device may be a chip or a chip system of the terminal device in the embodiment of the present application, the storage unit 1204 may store computer-executable instructions of the method of the terminal device, so that the processing unit 1202 performs the method of the terminal device in the embodiment described above. The storage unit 1204 may be a register, a cache or a random access memory (random access memory, RAM), etc., and the storage unit 1204 may be integrated with the processing unit 1202. The memory unit 1204 may be a read-only memory (ROM) or other type of static storage device that may store static information and instructions, and the memory unit 1204 may be independent of the processing unit 1202.
In one possible implementation, the charging device may further include: a communication unit 1203. Wherein the communication unit 1203 is configured to support interaction of the charging apparatus with other devices. For example, when the charging apparatus is an electronic device, the communication unit 1203 may be a communication interface or an interface circuit. When the charging device is a chip or a chip system within an electronic device, the communication unit 1203 may be a communication interface. For example, the communication interface may be an input/output interface, pins or circuitry, etc.
The apparatus of this embodiment may be correspondingly configured to perform the steps performed in the foregoing method embodiments, and the implementation principle and technical effects are similar, which are not described herein again.
Fig. 13 is a schematic hardware structure of another electronic device according to an embodiment of the present application, as shown in fig. 13, where the electronic device includes a processor 1301, a communication line 1304, and at least one communication interface (illustrated in fig. 13 by taking a communication interface 1303 as an example).
Processor 1301 may be a general purpose central processing unit (central processing unit, CPU), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the programs of the present application.
Communication line 1304 may include circuitry for communicating information between the components described above.
The communication interface 1303 uses any transceiver-like device for communicating with other devices or communication networks, such as ethernet, wireless local area network (wireless local area networks, WLAN), etc.
Possibly, the electronic device may also comprise a memory 1302.
The memory 1302 may be, but is not limited to, read-only memory (ROM) or other type of static storage device that can store static information and instructions, random access memory (random access memory, RAM) or other type of dynamic storage device that can store information and instructions, but may also be electrically erasable programmable read-only memory (EEPROM), compact disc-read only memory (compact disc read-only memory) or other optical disk storage, optical disk storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory may be self-contained and coupled to the processor via communication line 1304. The memory may also be integrated with the processor.
The memory 1302 is used for storing computer-executable instructions for executing the embodiments of the present application, and is controlled by the processor 1301 to execute the instructions. Processor 1301 is configured to execute computer-executable instructions stored in memory 1302 to implement the methods provided by embodiments of the present application.
Possibly, the computer-executed instructions in the embodiments of the present application may also be referred to as application program code, which is not specifically limited in the embodiments of the present application.
In a particular implementation, process 1301 may include one or more CPUs, such as CPU0 and CPU1 of FIG. 13, as an embodiment.
In a particular implementation, as one embodiment, an electronic device may include multiple processors, such as processor 1301 and processor 1305 in FIG. 13. Each of these processors may be a single-core (single-CPU) processor or may be a multi-core (multi-CPU) processor. A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (e.g., computer program instructions).
Fig. 14 is a schematic structural diagram of a chip according to an embodiment of the present application. Chip 1400 includes one or more (including two) processors 1402 and communication interfaces 1403.
In some implementations, the memory 1404 stores the following elements: executable modules or data structures, or a subset thereof, or an extended set thereof.
In an embodiment of the application, memory 1404 may include read-only memory and random access memory, and provides instructions and data to processor 1402. A portion of memory 1404 may also include non-volatile random access memory (non-volatile random access memory, NVRAM).
In the present embodiment, memory 1404, communication interface 1403, and processor 1402 are coupled together by bus system 1401. The bus system 1401 may include a power bus, a control bus, a status signal bus, and the like, in addition to a data bus. For ease of description, the various buses are labeled as bus system 1401 in FIG. 14.
The methods described in the embodiments of the present application may be applied to the processor 1402 or implemented by the processor 1402. The processor 1402 may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the methods described above may be performed by integrated logic circuitry in hardware in processor 1402 or by instructions in software. The processor 1402 may be a general-purpose processor (e.g., a microprocessor or a conventional processor), a digital signal processor (digital signal processing, DSP), an application specific integrated circuit (application specific integrated circuit, ASIC), an off-the-shelf programmable gate array (field-programmable gate array, FPGA) or other programmable logic device, discrete gates, transistor logic, or discrete hardware components, and the processor 1402 may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the invention.
The steps of a method disclosed in connection with the embodiments of the present application may be embodied directly in hardware, in a decoded processor, or in a combination of hardware and software modules in a decoded processor. The software modules may be located in a state-of-the-art storage medium such as random access memory, read-only memory, programmable read-only memory, or charged erasable programmable memory (electrically erasable programmable read only memory, EEPROM). The storage medium is located in the memory 1404, and the processor 1402 reads information in the memory 1404 and performs the steps of the method described above in connection with its hardware.
In the above embodiments, the instructions stored by the memory for execution by the processor may be implemented in the form of a computer program product. The computer program product may be written in the memory in advance, or may be downloaded in the form of software and installed in the memory.
The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions in accordance with embodiments of the present application are produced 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 a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wired (e.g., coaxial cable, fiber optic, digital subscriber line (digital subscriber line, DSL), or wireless (e.g., infrared, wireless, microwave, etc.), or semiconductor medium (e.g., solid state disk, SSD)) or the like.
Embodiments of the present application also provide a computer-readable storage medium. The methods described in the above embodiments may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. Computer readable media can include computer storage media and communication media and can include any medium that can transfer a computer program from one place to another. The storage media may be any target media that is accessible by a computer.
As one possible design, the computer-readable medium may include compact disk read-only memory (CD-ROM), RAM, ROM, EEPROM, or other optical disk memory; the computer readable medium may include disk storage or other disk storage devices. Moreover, any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk and disc, as used herein, includes Compact Disc (CD), laser disc, optical disc, digital versatile disc (digital versatile disc, DVD), floppy disk and blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers.
Combinations of the above should also be included within the scope of computer-readable media. The foregoing is merely illustrative embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think about variations or substitutions within the technical scope of the present invention, and the invention should be covered. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (14)

1. A method of charging, the method comprising:
the electronic equipment starts charging;
acquiring power consumption of the electronic equipment in charging;
when the power consumption is greater than or equal to a first threshold, judging whether the temperature of the electronic equipment is greater than a first temperature threshold;
when the temperature of the electronic equipment is smaller than or equal to the first temperature threshold, judging whether the electric quantity of the electronic equipment is larger than a first electric quantity threshold or not;
when the electric quantity of the electronic equipment is larger than a first electric quantity threshold value, the electronic equipment is charged by adopting a lowest charging current value;
when the electric quantity of the electronic equipment is smaller than or equal to a first electric quantity threshold value, the electronic equipment is charged by adopting a first current value; and as the charging of the electronic equipment continues, when the temperature of the electronic equipment is greater than the first temperature threshold and less than or equal to a second temperature threshold, the electronic equipment charges by adopting a second current value, wherein the second current value is greater than the lowest charging current value and less than the first current value; when the temperature of the electronic equipment is larger than the second temperature threshold value, the electronic equipment is charged by adopting the lowest charging current value;
Wherein, the first current value and/or the second current value are learned in advance, and the method further comprises:
respectively acquiring first process data when the electronic equipment is charged by the first current value and/or second process data when the electronic equipment is charged by the second current value, wherein the first process data comprises a first battery temperature rising value and/or a first shell temperature rising value, and the second process data comprises a second battery temperature rising value and/or a second shell temperature rising value;
updating the first current value to a greater value when the first battery temperature increase value is less than or equal to a first temperature increase threshold and/or the first housing temperature increase value is less than or equal to a second temperature increase threshold; or, when the first battery temperature increase value is greater than the first temperature increase threshold value, and/or the first case temperature increase value is greater than the second temperature increase threshold value, updating the first current value to a smaller value;
and/or the number of the groups of groups,
updating the second current value to a greater value when the second battery temperature increase value is less than or equal to a third temperature increase threshold and/or the second housing temperature increase value is less than or equal to a fourth temperature increase threshold; alternatively, the second current value is updated to a smaller value when the second battery temperature increase value is greater than the third temperature increase threshold value and/or the second case temperature increase value is greater than the fourth temperature increase threshold value.
2. The method of claim 1, wherein the obtaining the power consumption of the electronic device in charging comprises:
acquiring third current values received by the electronic equipment from a charger at N time points and fourth current values received by a battery of the electronic equipment, and obtaining N pairs of associated third current values and fourth current values, wherein N is a natural number;
and obtaining the power consumption according to the N pairs of third current values and fourth current values.
3. The method of claim 2, wherein the deriving the power consumption from the N pairs of third and fourth current values comprises:
respectively calculating the difference value of any pair of third current value and fourth current value in the N pairs of third current value and fourth current value to obtain N difference values;
and calculating the N difference values according to a preset algorithm to obtain the power consumption, wherein the preset algorithm comprises any one of the following steps: an averaging algorithm, a screening effective data first, an averaging algorithm and a median algorithm.
4. A method according to any one of claims 1-3, further comprising:
when the power consumption is smaller than the first threshold and larger than a second threshold, judging whether the electric quantity of the electronic equipment is larger than a second electric quantity threshold or not;
When the electric quantity of the electronic equipment is smaller than or equal to a second electric quantity threshold value, judging whether the temperature of the electronic equipment is larger than a third temperature threshold value or not;
when the temperature of the electronic equipment is smaller than or equal to the third temperature threshold value, the electronic equipment is charged by adopting a fifth current value, wherein the fifth current value is learned in advance;
and when the temperature of the electronic equipment is larger than the third temperature threshold value, the electronic equipment is charged by adopting the lowest charging current value.
5. The method as recited in claim 4, further comprising:
and when the electric quantity of the electronic equipment is larger than a second electric quantity threshold value, the electronic equipment is charged by adopting the lowest charging current value.
6. The method according to claim 4, wherein the method further comprises:
acquiring third process data when the electronic equipment is charged by adopting the fifth current value, wherein the third process data comprises a third battery temperature rise value, a third shell temperature rise value and/or a first charging duration;
when the third battery temperature rise value is less than or equal to a fifth temperature rise threshold, the third housing temperature rise value is less than or equal to a sixth temperature rise threshold, and/or the first charging time length is greater than a first time length threshold, updating the fifth current value to a greater value; alternatively, the fifth current value is updated to a smaller value when the third battery temperature increase value is greater than the fifth temperature increase threshold, and/or the third case temperature increase value is greater than the sixth temperature increase threshold.
7. The method of any one of claims 1-3, 5-6, further comprising:
when the power consumption is smaller than or equal to a second threshold value, judging whether the electric quantity of the electronic equipment is larger than a third electric quantity threshold value or not;
when the electric quantity of the electronic equipment is smaller than or equal to a third electric quantity threshold value, judging whether the temperature of the electronic equipment is larger than a fourth temperature threshold value or not;
when the temperature of the electronic equipment is smaller than or equal to the fourth temperature threshold value, the electronic equipment is charged by adopting a sixth current value, wherein the sixth current value is learned in advance;
and when the temperature of the electronic equipment is larger than the fourth temperature threshold value, the electronic equipment is charged by adopting the lowest charging current value.
8. The method as recited in claim 7, further comprising:
and when the electric quantity of the electronic equipment is larger than a third electric quantity threshold value, the electronic equipment is charged by adopting the lowest charging current value.
9. The method of claim 7, wherein the method further comprises:
acquiring fourth process data when the electronic equipment is charged by adopting the sixth current value, wherein the fourth process data comprises a fourth battery temperature rise value, a fourth shell temperature rise value and/or a second charging duration;
When the temperature rise value of the fourth battery is smaller than or equal to a seventh temperature rise threshold, the temperature rise value of the fourth shell is smaller than or equal to an eighth temperature rise threshold, and/or the second charging time length is larger than a second time length threshold, the sixth current value is updated to be a larger value; alternatively, the sixth current value is updated to a smaller value when the fourth battery temperature increase value is greater than the seventh temperature increase threshold and/or the fourth case temperature increase value is greater than the eighth temperature increase threshold.
10. The method of any of claims 1-3, 5-6, 8-9, wherein prior to the electronic device being charged with the first current value, the method further comprises:
displaying a first interface, wherein the first interface comprises notification information, a first button and a second button, and the notification information is used for prompting a user whether the electronic equipment enters an intelligent charging regulation mode or not;
responding to the triggering operation of the first button, and enabling the electronic equipment to enter an intelligent charging regulation mode;
or, in response to a trigger operation of the second button, the electronic device charges with the lowest charging current value.
11. The method of claim 10, wherein during the charging of the electronic device with the first current value, the method further comprises:
Displaying a second interface in response to a pull-down operation of a user, wherein the second interface comprises the notification information and a third button;
and responding to the triggering operation of the third button, and charging the electronic equipment by adopting the lowest charging current value.
12. The method of any of claims 1-3, 5-6, 8-9, 11, wherein the determining whether the temperature of the electronic device is greater than a first temperature threshold when the power consumption is greater than or equal to a first threshold further comprises, prior to:
judging whether the electronic equipment is in a bright screen state or not;
when the electronic equipment is not in a bright screen state, the electronic equipment is charged by adopting the lowest charging current value;
and when the power consumption is greater than or equal to a first threshold, determining whether the temperature of the electronic device is greater than a first temperature threshold includes: and when the electronic equipment is in a bright screen state and the power consumption is greater than or equal to a first threshold value, judging whether the temperature of the electronic equipment is greater than a first temperature threshold value.
13. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the computer program is caused by the processor to perform the method of any one of claims 1-12.
14. A computer readable storage medium storing a computer program, which when executed by a processor causes a computer to perform the method of any one of claims 1-12.
CN202210751689.6A 2022-06-29 2022-06-29 Charging method, device and storage medium Active CN116094083B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210751689.6A CN116094083B (en) 2022-06-29 2022-06-29 Charging method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210751689.6A CN116094083B (en) 2022-06-29 2022-06-29 Charging method, device and storage medium

Publications (2)

Publication Number Publication Date
CN116094083A CN116094083A (en) 2023-05-09
CN116094083B true CN116094083B (en) 2024-03-12

Family

ID=86205133

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210751689.6A Active CN116094083B (en) 2022-06-29 2022-06-29 Charging method, device and storage medium

Country Status (1)

Country Link
CN (1) CN116094083B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116885826A (en) * 2023-09-06 2023-10-13 荣耀终端有限公司 Charging method, electronic device, and computer-readable storage medium
CN117411148B (en) * 2023-12-12 2024-05-03 荣耀终端有限公司 Charging method, electronic equipment and storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105978084A (en) * 2016-06-16 2016-09-28 青岛海信移动通信技术股份有限公司 Method and device for charging electronic equipment
CN106549460A (en) * 2016-12-29 2017-03-29 上海掌门科技有限公司 A kind of electronic equipment wireless charging temperature-controlled process and system
JP6140797B1 (en) * 2015-12-10 2017-05-31 京セラ株式会社 Electronic device, control device, control program, and charging current control method
CN107221984A (en) * 2017-07-06 2017-09-29 广东欧珀移动通信有限公司 Temperature rise control method, device and storage medium when terminal device and its charging
WO2017185686A1 (en) * 2016-04-27 2017-11-02 乐视控股(北京)有限公司 Charging power adjusting method and apparatus, and electronic device
CN107423199A (en) * 2017-07-14 2017-12-01 广东欧珀移动通信有限公司 Electronic equipment, temperature rise control method, control device and storage medium
CN108429309A (en) * 2018-03-13 2018-08-21 奇酷互联网络科技(深圳)有限公司 Charge control method, device, terminal and readable storage medium storing program for executing
CN109412240A (en) * 2018-12-20 2019-03-01 青岛海信移动通信技术股份有限公司 A kind of method and apparatus adjusting charging current
CN111293749A (en) * 2020-02-28 2020-06-16 Oppo广东移动通信有限公司 Charging method, charging device, terminal equipment, mobile power supply and storage medium
KR20210007698A (en) * 2019-07-12 2021-01-20 삼성전자주식회사 Electronic device including battery and method for controlling charging of battery thereof
CN113904408A (en) * 2021-10-10 2022-01-07 深圳市理德铭科技股份有限公司 Control method of intelligent wireless charger, terminal and storage medium
CN114520528A (en) * 2020-11-20 2022-05-20 华为技术有限公司 Charging control method and device, terminal equipment and storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6140797B1 (en) * 2015-12-10 2017-05-31 京セラ株式会社 Electronic device, control device, control program, and charging current control method
WO2017185686A1 (en) * 2016-04-27 2017-11-02 乐视控股(北京)有限公司 Charging power adjusting method and apparatus, and electronic device
CN105978084A (en) * 2016-06-16 2016-09-28 青岛海信移动通信技术股份有限公司 Method and device for charging electronic equipment
CN106549460A (en) * 2016-12-29 2017-03-29 上海掌门科技有限公司 A kind of electronic equipment wireless charging temperature-controlled process and system
CN107221984A (en) * 2017-07-06 2017-09-29 广东欧珀移动通信有限公司 Temperature rise control method, device and storage medium when terminal device and its charging
CN107423199A (en) * 2017-07-14 2017-12-01 广东欧珀移动通信有限公司 Electronic equipment, temperature rise control method, control device and storage medium
CN108429309A (en) * 2018-03-13 2018-08-21 奇酷互联网络科技(深圳)有限公司 Charge control method, device, terminal and readable storage medium storing program for executing
CN109412240A (en) * 2018-12-20 2019-03-01 青岛海信移动通信技术股份有限公司 A kind of method and apparatus adjusting charging current
KR20210007698A (en) * 2019-07-12 2021-01-20 삼성전자주식회사 Electronic device including battery and method for controlling charging of battery thereof
CN111293749A (en) * 2020-02-28 2020-06-16 Oppo广东移动通信有限公司 Charging method, charging device, terminal equipment, mobile power supply and storage medium
CN114520528A (en) * 2020-11-20 2022-05-20 华为技术有限公司 Charging control method and device, terminal equipment and storage medium
CN113904408A (en) * 2021-10-10 2022-01-07 深圳市理德铭科技股份有限公司 Control method of intelligent wireless charger, terminal and storage medium

Also Published As

Publication number Publication date
CN116094083A (en) 2023-05-09

Similar Documents

Publication Publication Date Title
CN116094083B (en) Charging method, device and storage medium
CN114443256B (en) Resource scheduling method and electronic equipment
US10969851B2 (en) Power management on an electronic device
US9285851B2 (en) Optimizing battery use for known future load
EP3840104A1 (en) Optional terminal charging method, graphical user interface and electronic device
TW201814512A (en) Scenario-based method and apparatus for performance and power management in electronic apparatus
CN104765269A (en) Method and device for controlling power consumption of intelligent watch and intelligent watch
CN111443957B (en) Application stuck processing method and device and electronic equipment
KR20150107448A (en) Task Migration Method and Apparatus
US20160064980A1 (en) Method of managing the charging of battery and electronic device adapted thereto
CN105320402A (en) Method of managing data and electronic device for processing the same
WO2021155709A1 (en) Charging control method and electronic device
KR20200100958A (en) Electronic device and method for prefetching application
CN110429678A (en) Mobile terminal method of supplying power to, system, storage medium and mobile terminal
CN111381996B (en) Memory exception handling method and device
CN117130824A (en) Method for processing exception, electronic equipment and storage medium
CN113596249B (en) Electronic apparatus and control method
US9768635B2 (en) Managing battery power utilization in a mobile computing device
WO2022148201A1 (en) Wireless charging method, device, and system
CN116996765B (en) Control chip management method, electronic device, and computer-readable storage medium
CN107396510A (en) A kind of filming control method and terminal
CN116054303B (en) Charging method and related electronic equipment
US11363133B1 (en) Battery health-based power management
CN116826892B (en) Charging method, charging device, electronic apparatus, and readable storage medium
CN116052609B (en) Voltage control method, electronic device and readable storage medium

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
GR01 Patent grant
GR01 Patent grant