CN113541240A - Equipment charging method and device, terminal equipment and computer storage medium - Google Patents

Equipment charging method and device, terminal equipment and computer storage medium Download PDF

Info

Publication number
CN113541240A
CN113541240A CN202110689222.9A CN202110689222A CN113541240A CN 113541240 A CN113541240 A CN 113541240A CN 202110689222 A CN202110689222 A CN 202110689222A CN 113541240 A CN113541240 A CN 113541240A
Authority
CN
China
Prior art keywords
charging
configuration parameters
charging configuration
state
current
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.)
Granted
Application number
CN202110689222.9A
Other languages
Chinese (zh)
Other versions
CN113541240B (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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology 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 Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN202110689222.9A priority Critical patent/CN113541240B/en
Publication of CN113541240A publication Critical patent/CN113541240A/en
Application granted granted Critical
Publication of CN113541240B publication Critical patent/CN113541240B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/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
    • 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/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
    • H02J7/00714Regulation of charging or discharging current or voltage the cycle being controlled or terminated in response to electric parameters in response to battery charging or discharging current
    • 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
    • H02J7/007182Regulation of charging or discharging current or voltage the cycle being controlled or terminated in response to electric parameters in response to battery voltage
    • 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

The embodiment of the invention provides a device charging method, a device, terminal equipment and a computer storage medium, wherein the method comprises the following steps: when the operating system is determined to be in the awakening state, acquiring a load state parameter of the equipment at a preset first frequency; when the load state parameters meet the overload condition, determining a corresponding group of charging configuration parameters from the first type of charging configuration parameters according to the current equipment temperature; otherwise, determining a corresponding group of charging configuration parameters from the second type of charging configuration parameters according to the current equipment temperature; controlling the equipment and/or the power adapter to charge according to the determined group of charging configuration parameters; in the same type of charging configuration parameters, the higher the equipment temperature is, the smaller the charging current in the corresponding group of charging configuration parameters is; the charging current of a group of charging configuration parameters corresponding to the same equipment temperature in the first type of charging configuration parameters is not greater than the charging current of a group of charging configuration parameters corresponding to the same equipment temperature in the second type of charging configuration parameters.

Description

Equipment charging method and device, terminal equipment and computer storage medium
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to a device charging method and apparatus, a terminal device, and a computer storage medium.
Background
At present, with the rapid development of the technology of mobile terminal devices (such as smart phones, tablet computers, etc.), the computing capability thereof is rapidly improved. However, at the same time, the power consumption of the mobile terminal device is also greatly increased, resulting in a reduction in the duration of the device. Due to the battery technology, the current mobile terminal equipment mainly adopts a quick charging scheme to ensure the endurance of the equipment.
Because the quick charging technology of the current mobile terminal equipment is basically realized by increasing the charging power, the problem of heating of a charging chip or a battery in the charging process can be solved, the service life of the battery is easily influenced by high temperature, and the hidden danger of explosion exists.
Disclosure of Invention
The embodiment of the invention provides a device charging method and device, terminal equipment and a computer storage medium, which are used for solving the problem that the temperature is high easily caused when the terminal equipment is rapidly charged in the prior art.
The embodiment of the invention provides a device charging method, which comprises the following steps:
when the operating system is determined to be in the awakening state, acquiring a load state parameter of the equipment at a preset first frequency;
when the load state parameters meet the overload condition, determining a corresponding group of charging configuration parameters from a first type of charging configuration parameters comprising a plurality of groups of charging configuration parameters according to the current equipment temperature;
otherwise, determining a corresponding group of charging configuration parameters from second-class charging configuration parameters comprising a plurality of groups of charging configuration parameters according to the current equipment temperature;
controlling the equipment to charge according to the determined group of charging configuration parameters, and/or controlling a power adapter for charging the equipment to charge;
in the same type of charging configuration parameters, the higher the equipment temperature is, the smaller the charging current in the corresponding group of charging configuration parameters is; the charging current of a group of charging configuration parameters corresponding to the same equipment temperature in the first type of charging configuration parameters is not greater than the charging current of a group of charging configuration parameters corresponding to the same equipment temperature in the second type of charging configuration parameters.
Optionally, the device charging method further includes:
when the operating system is determined to be in a dormant state, determining a corresponding group of charging configuration parameters from a third type of charging configuration parameters comprising a plurality of groups of charging configuration parameters according to the current equipment temperature;
and the charging current of a group of charging configuration parameters corresponding to the same equipment temperature in the second type of charging configuration parameters is not greater than the charging current of a group of charging configuration parameters corresponding to the same equipment temperature in the third type of charging configuration parameters.
Optionally, in the same type of charging configuration parameters, the different sets of charging configuration parameters include a set of charging configuration parameters corresponding to different trigger temperature ranges, and a set of charging configuration parameters corresponding to different recovery temperature ranges;
determining a corresponding set of charging configuration parameters according to the current device temperature, including:
if the current equipment temperature is greater than the equipment temperature acquired before the first preset time, determining a group of charging configuration parameters corresponding to a trigger temperature range to which the current equipment temperature belongs;
and if the current equipment temperature is less than the equipment temperature acquired before the first preset time, determining a group of charging configuration parameters corresponding to the recovery temperature range to which the current equipment temperature belongs.
Optionally, the device charging method further includes:
responding to an operating system awakening instruction, and updating the operating system state mark parameter into a system awakening state value;
in response to an operating system sleep instruction, updating the operating system state flag parameter to a system sleep state value;
and reading the state flag parameter of the operating system at a preset second frequency, and determining that the operating system is in an awakening state or a sleeping state according to the state flag parameter value of the operating system.
Optionally, when it is determined that the operating system is in the wake-up state, acquiring a load state parameter of the device at a preset first frequency, including:
when the state of the operating system is determined to be the awakening state and the last determined state is the sleeping state, determining a corresponding group of charging configuration parameters from the second type of charging configuration parameters according to the current equipment temperature;
and when the state of the operating system is determined to be the awakening state and the last determined state is the awakening state, acquiring the load state parameters of the equipment at a preset first frequency.
Optionally, the load state parameter includes an average value of at least one of the following parameters over a specific time:
CPU working frequency, CPU power consumption, CPU occupancy rate, GPU working frequency, GPU power consumption and GPU occupancy rate of a graphic processor;
the specific time is the time with the cut-off point being the second preset duration of the current time.
Optionally, a group of charging configuration parameters corresponding to a trigger temperature range greater than a preset temperature threshold in the first type of charging configuration parameters includes a charging limit voltage;
wherein the charging limit voltage is a rated minimum charging voltage of the device or a rated minimum charging voltage of the power adapter.
Based on the same inventive concept, an embodiment of the present invention further provides a charging device, including:
the load state parameter acquisition module is used for acquiring the load state parameters of the equipment at a preset first frequency when the operating system is determined to be in the awakening state;
the first charging configuration parameter determining module is used for determining a corresponding group of charging configuration parameters from a first type of charging configuration parameters comprising a plurality of groups of charging configuration parameters according to the current equipment temperature when the load state parameters meet the overload condition;
the second charging configuration parameter determining module is used for determining a corresponding group of charging configuration parameters from a second type of charging configuration parameters comprising a plurality of groups of charging configuration parameters according to the current equipment temperature when the load state parameters do not meet the overload condition;
the charging module is used for controlling the equipment to be charged according to the determined group of charging configuration parameters and/or controlling a power adapter for charging the equipment to be charged;
in the same type of charging configuration parameters, the higher the equipment temperature is, the smaller the charging current in the corresponding group of charging configuration parameters is; the charging current of a group of charging configuration parameters corresponding to the same equipment temperature in the first type of charging configuration parameters is not greater than the charging current of a group of charging configuration parameters corresponding to the same equipment temperature in the second type of charging configuration parameters.
Based on the same inventive concept, an embodiment of the present invention further provides a terminal device, including: a processor and a memory for storing processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the device charging method.
Based on the same inventive concept, the embodiment of the present invention further provides a computer storage medium, where a computer program is stored, and the computer program is used to implement the device charging method.
The invention has the following beneficial effects:
according to the equipment charging method and device, the terminal equipment and the computer storage medium method and device, the corresponding charging configuration parameters are determined according to the current equipment temperature and the current load state of the equipment, so that the heating value of the equipment during charging can be better controlled, and the safety is ensured.
Drawings
FIG. 1 is a flowchart of a device charging method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating a program call applied to an Android operating system according to an embodiment of the present invention;
FIG. 3 is a second flowchart of an apparatus charging method according to an embodiment of the present invention;
fig. 4 is a structural diagram of a charging device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, the present invention is further described with reference to the accompanying drawings and examples. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The same reference numerals in the drawings denote the same or similar structures, and thus their repetitive description will be omitted. The words expressing the position and direction described in the present invention are illustrated in the accompanying drawings, but may be changed as required and still be within the scope of the present invention. The drawings of the present invention are for illustrative purposes only and do not represent true scale.
It should be noted that in the following description, specific details are set forth in order to provide a thorough understanding of the present invention. The invention can be implemented in a number of ways different from those described herein and similar generalizations can be made by those skilled in the art without departing from the spirit of the invention. Therefore, the present invention is not limited to the specific embodiments disclosed below. The description which follows is a preferred embodiment of the present application, but is made for the purpose of illustrating the general principles of the application and not for the purpose of limiting the scope of the application. The protection scope of the present application shall be subject to the definitions of the appended claims.
The following describes a device charging method, an apparatus, a terminal device, and a computer storage medium according to embodiments of the present invention with reference to the accompanying drawings.
An embodiment of the present invention provides an apparatus charging method, as shown in fig. 1, including:
and S122, determining the current state of the operating system.
If the result of the step S122 is that the operating system is currently in the wake-up state, step S130 is executed.
S130, judging whether the data acquisition time corresponding to the first preset frequency is reached.
If the result of the step S130 is yes, step S141 is executed. If the result of the step S130 is no, the process returns to the step S122.
And S141, acquiring the load state parameters of the equipment.
And S142, judging whether the overload condition is met or not according to the load state parameters.
If the overload condition is satisfied in step S142, determining that the device is in an overload state, and executing step S151; if the overload condition is not satisfied in step S142, it is determined that the device is in a normal load state, and step S152 is performed.
And S151, determining that the used charging configuration parameters belong to the first type of charging configuration parameters. Step S160 is performed.
And S152, determining that the used charging configuration parameters belong to the second type of charging configuration parameters. The step S160 is executed.
The first type of charging configuration parameters and the second type of charging configuration parameters respectively comprise a plurality of groups of charging configuration parameters; the charging current of a group of charging configuration parameters corresponding to the same equipment temperature in the first type of charging configuration parameters is not greater than the charging current of a group of charging configuration parameters corresponding to the same equipment temperature in the second type of charging configuration parameters.
And S160, acquiring the current equipment temperature.
S170, determining a corresponding group of charging configuration parameters from the charging configuration parameter categories to which the equipment belongs according to the current equipment temperature.
In the same type of charging configuration parameters, the higher the equipment temperature is, the smaller the charging current in the corresponding group of charging configuration parameters is.
And S180, controlling the equipment to be charged according to the determined group of charging configuration parameters, and/or controlling a power adapter for charging the equipment to be charged.
In the implementation process, the device includes, but is not limited to, a terminal device such as a smart phone, a tablet computer, a portable game machine, an e-reader, a music player, and a video player.
In a specific implementation process, as shown in fig. 2, for an Android operating system device, the step S160 may obtain the device temperature by reading/sys/class/thermal/thermal _ zone, and the step S180 may be implemented by writing the charging configuration parameter into/sys/class/power _ supply/battery.
Because the equipment can emit a large amount of heat under the condition of high load, the charging current is dynamically controlled according to the current load and the temperature of the equipment, so that the charging current can be controlled to be lower under the condition of the same temperature under the operation state of the high load, and the temperature rising speed is slowed down.
Optionally, as shown in fig. 1, the device charging method further includes:
if the result of the step S122 is that the operating system is currently in the hibernation state, step S153 is executed.
And S153, determining that the used charging configuration parameters belong to the third type of charging configuration parameters. The step S160 is executed.
And the charging current of a group of charging configuration parameters corresponding to the same equipment temperature in the second type of charging configuration parameters is not greater than the charging current of a group of charging configuration parameters corresponding to the same equipment temperature in the third type of charging configuration parameters.
In this way, by setting a larger charging current for the sleep state than for the awake state at the same temperature, the charging speed of the device can be increased.
Optionally, in the same type of charging configuration parameters, the different sets of charging configuration parameters include a set of charging configuration parameters corresponding to different trigger temperature ranges, and a set of charging configuration parameters corresponding to different recovery temperature ranges;
step S170, determining a corresponding set of charging configuration parameters from the charging configuration parameter categories to which the device is subordinate according to the current device temperature, including:
if the current equipment temperature is greater than the equipment temperature acquired before the first preset time, determining a group of charging configuration parameters corresponding to a trigger temperature range to which the current equipment temperature belongs;
and if the current equipment temperature is less than the equipment temperature acquired before the first preset time, determining a group of charging configuration parameters corresponding to the recovery temperature range to which the current equipment temperature belongs.
In a specific implementation process, comparing the current equipment temperature with the equipment temperature obtained before the first preset time, and directly comparing numerical values to determine the equipment temperature by storing the equipment temperature obtained before the first preset time; or the trigger temperature range and the recovery temperature range corresponding to the charging configuration parameter group adopted when the current device temperature is obtained may be determined.
For example, the determined set of charging configuration parameters is shown in table 1 below:
TABLE 1 charging configuration parameter classes
Charging configuration parameter set 1 2 3 4
Charging current 5.5A 3.5A 3A 1.5A
Triggering temperature range <38℃ [38℃,42℃) [42℃,46℃) ≥46℃
Recovery of temperature range ≤36℃ (36℃,40℃] (40℃,44℃] >44℃
The current temperature of the equipment is 43 ℃, the current of 3.5A is adopted for charging when the current temperature of the equipment is collected, the first preset time is 1 minute, and the temperature of the equipment collected before 1 minute is 41 ℃. Then, the temperature rise of the equipment within 1 minute can be determined directly according to the temperature of 43 ℃ being more than 41 ℃, and 3A is determined as the current charging current according to the triggering temperature range [42 ℃,46 ℃; or, the current of 3.5A is adopted for charging according to the current collected temperature of the equipment to determine the 2 nd group of charging configuration parameters, but
Figure BDA0003125904870000081
Figure BDA0003125904870000082
And 43 ℃ is > 42 ℃, the device is determined to be warm in this 1 minute, and 3A is determined to be the present charging current due to 43 ∈ [42 ℃,46 ℃).
Therefore, the corresponding charging configuration parameters are determined by adopting different temperature ranges for heating and cooling the equipment, so that the charging speed can be accelerated and the charging heating can be controlled in a better balanced manner.
Optionally, the device charging method further includes:
and responding to the operating system awakening instruction, and updating the operating system state mark parameter to a system awakening state value. (not shown in the figure)
And responding to an operating system sleep instruction, and updating the operating system state mark parameter to a system sleep state value. (not shown in the figure)
As shown in fig. 3, the device charging method further includes, in addition to the same steps as those shown in fig. 1:
and S110, judging whether the data acquisition time corresponding to the second preset frequency is reached.
If the result of the step S110 is yes, the step S121 is executed. If the result of the step S110 is no, the step S130 is executed.
And S121, reading the state flag parameter of the operating system. The step S122 is executed.
For the Android operating system, as shown in fig. 2, a sys node (/ sys/ctp/ctp _ func/tpendable) may be created when the device is powered on, and then the power management service PowerManager may be called when the operating system is hibernated or awakened to modify the value of the parameter. The step S110 and the step S121 are implemented by calling a Thermal-engine service.
For portable terminal devices (e.g., mobile phones, tablet computers, etc.), it is common in the prior art to use the brightness value of the screen to determine whether the operating system goes to sleep (e.g., when the screen brightness is 0, it is determined that the device has already gone into a lock screen sleep state). For a terminal device with an ink screen as a Display screen, since the operating principle of the ink screen is different from that of Light Emitting screens such as Liquid Crystal Display (LCD) and Organic Light-Emitting Diode (OLED) screens, if a backlight is not additionally provided or the device is turned off although the backlight is provided, the ink screen does not emit Light in a sleep or wake-up state of an operating system. Thus, the embodiment of the invention can judge the current state of the operating system through the parameter of the ink screen device by setting the system state flag parameter.
Optionally, when it is determined that the operating system is in the wake-up state, acquiring a load state parameter of the device at a preset first frequency, including (not shown in the figure):
when the state of the operating system is determined to be the awakening state and the last determined state is the sleeping state, determining a corresponding group of charging configuration parameters from the second type of charging configuration parameters according to the current equipment temperature;
and when the state of the operating system is determined to be the awakening state and the last determined state is the awakening state, acquiring the load state parameters of the equipment at a preset first frequency.
In this way, by switching to the charging configuration parameter of the first charging configuration parameter group after the operating system changes from the sleep state to the wake-up state, it can be avoided that the charging configuration parameter of the third charging configuration parameter group is still adopted when the data acquisition time corresponding to the first preset frequency is not reached, so as to better control the temperature of the device during charging.
Optionally, the load state parameter includes an average value of at least one of the following parameters over a specific time: central Processing Unit (CPU) operating frequency, CPU power consumption, CPU occupancy, Graphics Processing Unit (GPU) operating frequency, GPU power consumption, GPU occupancy;
the specific time is the time with the cut-off point being the second preset duration of the current time.
In a specific implementation process, for some terminal devices (for example, a mobile phone, a tablet computer, etc. equipped with an Android operating system), the average values of the power consumption and the occupancy rate of the CPU and the GPU may be obtained by estimating the operating frequency, and then the average values of the operating frequency of the CPU and the GPU may be directly used as the load state parameters.
As an optional implementation manner, if the load status parameter includes the CPU operating frequency average value and the GPU operating frequency average value in a specific time, the overload condition includes:
the average working frequency of the CPU is greater than a first threshold; or the average working frequency of the CPU is greater than a second threshold value, and the average working frequency of the GPU is greater than a third threshold value.
For example, the first threshold is 85% of the maximum operating frequency of the CPU, the second threshold is 70% of the maximum operating frequency of the CPU, and the third threshold is 70% of the maximum operating frequency of the GPU. And when the CPU working frequency average value of the equipment is greater than 85% of the maximum working frequency, or the CPU working frequency average value is greater than 70% of the maximum working frequency and the GPU working frequency average value is greater than 70% of the maximum working frequency, the equipment adopts the charging configuration parameters in the first type of charging configuration parameters to charge, otherwise, the equipment adopts the charging configuration parameters in the second type of charging configuration parameters to charge.
In a specific implementation process, as shown in fig. 2, for a device of the Android operating system, taking a device of a CPU with 8 cores as an example, the working frequency of the CPU may be obtained by reading/sys/bus/CPU/devices/CPU 0-CPU 8, and the working frequency of the GPU may be obtained by reading/sys/kernel/GPU.
Optionally, a group of charging configuration parameters corresponding to a trigger temperature range greater than a preset temperature threshold in the first type of charging configuration parameters includes a charging limit voltage;
wherein the charging limit voltage is a rated minimum charging voltage of the device or a rated minimum charging voltage of the power adapter.
In the related art, a device charging method for a device includes two types of schemes of charging using a fixed charging voltage and dynamically adjusting the charging voltage (for example, a USB Power Delivery (USB PD)). As for the technical scheme of charging with a fixed charging voltage, there is also a scheme of providing a plurality of different rated charging voltages and selecting one of the rated charging voltages (generally, selecting a larger rated charging voltage by using protocol handshake matching) for charging when charging is started in the related art. In order to ensure the safety of the equipment, the embodiment of the invention provides that when the equipment is under high load and has higher temperature, the charging voltage is forcibly reduced to the rated minimum charging voltage, the charging conversion efficiency can be further improved, the temperature rise problem caused by voltage conversion can be reduced, and the safety is ensured.
Specifically, one specific charging configuration parameter is shown in table 2 below, where the rated minimum charging voltage of the device is 5V:
TABLE 2 charging configuration parameters
Figure BDA0003125904870000111
Based on the same inventive concept, an embodiment of the present invention further provides a charging apparatus, as shown in fig. 4, including:
a load state parameter obtaining module M130, configured to obtain a load state parameter of the device at a preset first frequency when it is determined that the operating system is in an awake state;
a first charging configuration parameter determining module M140, configured to determine, when the load state parameter meets an overload condition, a corresponding group of charging configuration parameters according to a current device temperature from a first type of charging configuration parameters including multiple groups of charging configuration parameters;
a second charging configuration parameter determining module M150, configured to determine, when the load state parameter does not satisfy the overload condition, a corresponding group of charging configuration parameters according to the current device temperature from a second type of charging configuration parameters including multiple groups of charging configuration parameters;
a charging module M170, configured to control the device to charge according to the determined set of charging configuration parameters, and/or control a power adapter that charges the device to charge;
in the same type of charging configuration parameters, the higher the equipment temperature is, the smaller the charging current in the corresponding group of charging configuration parameters is; the charging current of a group of charging configuration parameters corresponding to the same equipment temperature in the first type of charging configuration parameters is not greater than the charging current of a group of charging configuration parameters corresponding to the same equipment temperature in the second type of charging configuration parameters.
Optionally, the device charging apparatus further includes:
a third charging configuration parameter determining module M160, configured to determine, when the operating system is determined to be in the sleep state, a corresponding group of charging configuration parameters from a third type of charging configuration parameters including multiple groups of charging configuration parameters according to the current device temperature;
and the charging current of a group of charging configuration parameters corresponding to the same equipment temperature in the second type of charging configuration parameters is not greater than the charging current of a group of charging configuration parameters corresponding to the same equipment temperature in the third type of charging configuration parameters.
Optionally, in the same type of charging configuration parameters, the different sets of charging configuration parameters include a set of charging configuration parameters corresponding to different trigger temperature ranges, and a set of charging configuration parameters corresponding to different recovery temperature ranges;
determining a corresponding set of charging configuration parameters according to the current device temperature, including:
if the current equipment temperature is greater than the equipment temperature acquired before the first preset time, determining a group of charging configuration parameters corresponding to a trigger temperature range to which the current equipment temperature belongs;
and if the current equipment temperature is less than the equipment temperature acquired before the first preset time, determining a group of charging configuration parameters corresponding to the recovery temperature range to which the current equipment temperature belongs.
Optionally, the device charging apparatus further includes:
a system state flag parameter writing module M110, configured to respond to an operating system wake-up instruction, and update the operating system state flag parameter to a system wake-up state value; in response to an operating system sleep instruction, updating the operating system state flag parameter to a system sleep state value;
and the system state judgment module M120 is configured to read the operating system state flag parameter at a preset second frequency, and determine that the operating system is in an awake state or a sleep state according to the operating system state flag parameter value.
Optionally, the second charging configuration parameter determining module M150 is further configured to determine, when the state of the operating system is the awake state and the last determined state is the sleep state, a corresponding group of charging configuration parameters from the second type of charging configuration parameters according to the current device temperature;
the load state parameter obtaining module M130 is specifically configured to obtain the load state parameter of the device at a preset first frequency when the state of the operating system is determined to be the wake-up state and the last determined state is the wake-up state.
Optionally, the load state parameter includes an average value of at least one of the following parameters over a specific time:
CPU working frequency, CPU power consumption, CPU occupancy rate, GPU working frequency, GPU power consumption and GPU occupancy rate of a graphic processor;
the specific time is the time with the cut-off point being the second preset duration of the current time.
Optionally, a group of charging configuration parameters corresponding to a trigger temperature range greater than a preset temperature threshold in the first type of charging configuration parameters includes a charging limit voltage;
wherein the charging limit voltage is a rated minimum charging voltage of the device or a rated minimum charging voltage of the power adapter.
Because the principle of solving the problem of the charging device is similar to the device charging method, the implementation of the charging device can be referred to the implementation of the method, and repeated details are not repeated.
Based on the same inventive concept, an embodiment of the present invention further provides a terminal device, as shown in fig. 5, including: a processor 110 and a memory 120 for storing instructions executable by the processor 110; wherein the processor 110 is configured to execute the instructions to implement the device charging method.
In particular implementations, the apparatus may vary widely depending on configuration or performance, and may include one or more processors 110 and memory 120, one or more storage media 130 storing applications 131 or data 132. Memory 120 and storage medium 130 may be, among other things, transient or persistent storage. The application 131 stored on the storage medium 130 may include one or more of the units (not shown in fig. 5), and each module may include a series of instruction operations in the charging device. Further, the processor 110 may be configured to communicate with the storage medium 130 to execute a series of instruction operations in the storage medium 130 on the device. The apparatus may also include one or more power supplies (not shown in FIG. 5); one or more network interfaces 140, the network interfaces 140 comprising a wired network interface 141 or a wireless network interface 142; one or more input-output interfaces 143; and/or one or more operating systems 133, such as Windows, Mac OS, Linux, IOS, Android, Unix, FreeBSD, etc.
Based on the same inventive concept, the embodiment of the present invention also provides a computer storage medium, in which a computer program is stored, and the computer program is used for implementing the device charging method.
According to the equipment charging method and device, the terminal equipment and the computer storage medium method and device, the corresponding charging configuration parameters are determined according to the current equipment temperature and the current load state of the equipment, so that the heating value of the equipment during charging can be better controlled, and the safety is ensured.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (10)

1. A method of charging a device, comprising:
when the operating system is determined to be in the awakening state, acquiring a load state parameter of the equipment at a preset first frequency;
when the load state parameters meet the overload condition, determining a corresponding group of charging configuration parameters from a first type of charging configuration parameters comprising a plurality of groups of charging configuration parameters according to the current equipment temperature;
otherwise, determining a corresponding group of charging configuration parameters from second-class charging configuration parameters comprising a plurality of groups of charging configuration parameters according to the current equipment temperature;
controlling the equipment to charge according to the determined group of charging configuration parameters, and/or controlling a power adapter for charging the equipment to charge;
in the same type of charging configuration parameters, the higher the equipment temperature is, the smaller the charging current in the corresponding group of charging configuration parameters is; the charging current of a group of charging configuration parameters corresponding to the same equipment temperature in the first type of charging configuration parameters is not greater than the charging current of a group of charging configuration parameters corresponding to the same equipment temperature in the second type of charging configuration parameters.
2. The device charging method of claim 1, further comprising:
when the operating system is determined to be in a dormant state, determining a corresponding group of charging configuration parameters from a third type of charging configuration parameters comprising a plurality of groups of charging configuration parameters according to the current equipment temperature;
and the charging current of a group of charging configuration parameters corresponding to the same equipment temperature in the second type of charging configuration parameters is not greater than the charging current of a group of charging configuration parameters corresponding to the same equipment temperature in the third type of charging configuration parameters.
3. The device charging method according to claim 1 or 2, wherein in the same class of charging configuration parameters, the different sets of charging configuration parameters include a set of charging configuration parameters corresponding to different trigger temperature ranges, respectively, and a set of charging configuration parameters corresponding to different recovery temperature ranges, respectively;
determining a corresponding set of charging configuration parameters according to the current device temperature, including:
if the current equipment temperature is greater than the equipment temperature acquired before the first preset time, determining a group of charging configuration parameters corresponding to a trigger temperature range to which the current equipment temperature belongs;
and if the current equipment temperature is less than the equipment temperature acquired before the first preset time, determining a group of charging configuration parameters corresponding to the recovery temperature range to which the current equipment temperature belongs.
4. The device charging method according to claim 1 or 2, further comprising:
responding to an operating system awakening instruction, and updating the operating system state mark parameter into a system awakening state value;
in response to an operating system sleep instruction, updating the operating system state flag parameter to a system sleep state value;
and reading the state flag parameter of the operating system at a preset second frequency, and determining that the operating system is in an awakening state or a sleeping state according to the state flag parameter value of the operating system.
5. The device charging method of claim 1, wherein when it is determined that the operating system is in the wake-up state, acquiring the load state parameter of the device at a preset first frequency comprises:
when the state of the operating system is determined to be the awakening state and the last determined state is the sleeping state, determining a corresponding group of charging configuration parameters from the second type of charging configuration parameters according to the current equipment temperature;
and when the state of the operating system is determined to be the awakening state and the last determined state is the awakening state, acquiring the load state parameters of the equipment at a preset first frequency.
6. The device charging method of claim 1, wherein the load state parameter comprises an average value over a specified time of at least one of:
CPU working frequency, CPU power consumption, CPU occupancy rate, GPU working frequency, GPU power consumption and GPU occupancy rate of a graphic processor;
the specific time is the time with the cut-off point being the second preset duration of the current time.
7. The device charging method of claim 3,
in the first type of charging configuration parameters, a group of charging configuration parameters corresponding to a trigger temperature range larger than a preset temperature threshold value comprises charging limiting voltage;
wherein the charging limit voltage is a rated minimum charging voltage of the device or a rated minimum charging voltage of the power adapter.
8. A charging device, comprising:
the load state parameter acquisition module is used for acquiring the load state parameters of the equipment at a preset first frequency when the operating system is determined to be in the awakening state;
the first charging configuration parameter determining module is used for determining a corresponding group of charging configuration parameters from a first type of charging configuration parameters comprising a plurality of groups of charging configuration parameters according to the current equipment temperature when the load state parameters meet the overload condition;
the second charging configuration parameter determining module is used for determining a corresponding group of charging configuration parameters from a second type of charging configuration parameters comprising a plurality of groups of charging configuration parameters according to the current equipment temperature when the load state parameters do not meet the overload condition;
the charging module is used for controlling the equipment to be charged according to the determined group of charging configuration parameters and/or controlling a power adapter for charging the equipment to be charged;
in the same type of charging configuration parameters, the higher the equipment temperature is, the smaller the charging current in the corresponding group of charging configuration parameters is; the charging current of a group of charging configuration parameters corresponding to the same equipment temperature in the first type of charging configuration parameters is not greater than the charging current of a group of charging configuration parameters corresponding to the same equipment temperature in the second type of charging configuration parameters.
9. A terminal device, comprising: a processor and a memory for storing processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the device charging method of any one of claims 1-7.
10. A computer storage medium, characterized in that the computer storage medium stores a computer program for implementing the device charging method according to any one of claims 1 to 7.
CN202110689222.9A 2021-06-22 2021-06-22 Equipment charging method, device, terminal equipment and computer storage medium Active CN113541240B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110689222.9A CN113541240B (en) 2021-06-22 2021-06-22 Equipment charging method, device, terminal equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110689222.9A CN113541240B (en) 2021-06-22 2021-06-22 Equipment charging method, device, terminal equipment and computer storage medium

Publications (2)

Publication Number Publication Date
CN113541240A true CN113541240A (en) 2021-10-22
CN113541240B CN113541240B (en) 2024-04-26

Family

ID=78125461

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110689222.9A Active CN113541240B (en) 2021-06-22 2021-06-22 Equipment charging method, device, terminal equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN113541240B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6172611B1 (en) * 1998-10-19 2001-01-09 Telcom Semiconductor, Inc. Independent hardware thermal sensing and monitoring
CN103543813A (en) * 2012-07-13 2014-01-29 云联(北京)信息技术有限公司 Timer interruption and remote wakening implementation method based on cloud office business handling
DE102014016825A1 (en) * 2014-11-13 2016-05-19 Audi Ag Motor vehicle charging socket with overheating protection
CN106208212A (en) * 2016-08-05 2016-12-07 北京小米移动软件有限公司 Terminal unit charge control method, device and terminal unit
CN107221980A (en) * 2017-06-27 2017-09-29 广东欧珀移动通信有限公司 Temperature rise control method, device and storage medium when terminal device and its charging
CN109406990A (en) * 2018-12-03 2019-03-01 成都信息工程大学 A kind of built-in chip type excess temperature sluggishness protection detection circuit
CN109412240A (en) * 2018-12-20 2019-03-01 青岛海信移动通信技术股份有限公司 A kind of method and apparatus adjusting charging current
JP2020090023A (en) * 2018-12-05 2020-06-11 キヤノンファインテックニスカ株式会社 Inkjet recording device and control method for the same
CN112328135A (en) * 2020-11-27 2021-02-05 青岛海信移动通信技术股份有限公司 Mobile terminal and application interface display method thereof

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6172611B1 (en) * 1998-10-19 2001-01-09 Telcom Semiconductor, Inc. Independent hardware thermal sensing and monitoring
CN103543813A (en) * 2012-07-13 2014-01-29 云联(北京)信息技术有限公司 Timer interruption and remote wakening implementation method based on cloud office business handling
DE102014016825A1 (en) * 2014-11-13 2016-05-19 Audi Ag Motor vehicle charging socket with overheating protection
CN106208212A (en) * 2016-08-05 2016-12-07 北京小米移动软件有限公司 Terminal unit charge control method, device and terminal unit
CN107221980A (en) * 2017-06-27 2017-09-29 广东欧珀移动通信有限公司 Temperature rise control method, device and storage medium when terminal device and its charging
CN109406990A (en) * 2018-12-03 2019-03-01 成都信息工程大学 A kind of built-in chip type excess temperature sluggishness protection detection circuit
JP2020090023A (en) * 2018-12-05 2020-06-11 キヤノンファインテックニスカ株式会社 Inkjet recording device and control method for the same
CN109412240A (en) * 2018-12-20 2019-03-01 青岛海信移动通信技术股份有限公司 A kind of method and apparatus adjusting charging current
CN112328135A (en) * 2020-11-27 2021-02-05 青岛海信移动通信技术股份有限公司 Mobile terminal and application interface display method thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘保国;雒拓;高锦;: "汽车电功率设计计算与分析", 汽车实用技术, no. 03 *

Also Published As

Publication number Publication date
CN113541240B (en) 2024-04-26

Similar Documents

Publication Publication Date Title
US11200101B2 (en) Managing applications for power conservation
CN102789304B (en) Power management method and related device
CN107967419B (en) Unlocking control method and mobile terminal
EP2609778B1 (en) Method, apparatus and computer program product for presentation of information in a low power mode
US10108251B2 (en) Virtualizing battery across a group of personal mobile devices
US7869835B1 (en) Method and system for pre-loading and executing computer instructions within the cache memory
US10146582B2 (en) Method for assigning priority to multiprocessor tasks and electronic device supporting the same
CN104380257A (en) Scheduling tasks among processor cores
CN109992402B (en) Memory processing method and device, electronic equipment and computer readable storage medium
CN108205474B (en) Memory management method, terminal device, computer apparatus, and readable storage medium
US11096177B2 (en) Operation mode switching method and user equipment
CN104808767A (en) Terminal control method
CN104808766A (en) Terminal
WO2016115762A1 (en) Power saving mode control method and device for multiple operating systems, and terminal
CN103150246A (en) Electronic device and method for setting time of timer
CN109521970B (en) Data processing method and related equipment
CN113672450B (en) Processing method and device for solid state disk
CN113541240B (en) Equipment charging method, device, terminal equipment and computer storage medium
CN103885871A (en) Power consumption display method and device, and mobile terminal
CN112615726A (en) Low-power-consumption processing method and device with variable wake-up time
CN114137881B (en) Chip awakening device, method and medium thereof
US8761833B2 (en) Apparatus and method for power saving using predictive polling in a portable terminal
US20160179716A1 (en) Timer management apparatus
CN109408242B (en) Server resource online and offline method and device
CN113439252B (en) Terminal control method and device, storage medium and electronic equipment

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
CB02 Change of applicant information

Country or region after: China

Address after: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Applicant after: Qingdao Hisense Mobile Communication Technology Co.,Ltd.

Address before: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Applicant before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd.

Country or region before: China

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant