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

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

Info

Publication number
CN113541240B
CN113541240B CN202110689222.9A CN202110689222A CN113541240B CN 113541240 B CN113541240 B CN 113541240B CN 202110689222 A CN202110689222 A CN 202110689222A CN 113541240 B CN113541240 B CN 113541240B
Authority
CN
China
Prior art keywords
configuration parameters
charging
charging configuration
current
group
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
CN202110689222.9A
Other languages
Chinese (zh)
Other versions
CN113541240A (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

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 an awake state, acquiring load state parameters of the equipment at a preset first frequency; when the load state parameter meets an 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 device and/or the power adapter to charge according to the determined set of charging configuration parameters; the higher the equipment temperature in the same type of charging configuration parameters is, the smaller the charging current in a corresponding group of charging configuration parameters is; the charging current of a corresponding set of charging configuration parameters in the first type of charging configuration parameters for the same device temperature is no greater than the charging current of a corresponding set of charging configuration parameters in the second type of charging configuration parameters.

Description

Equipment charging method, 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, a device, a terminal device, and a computer storage medium.
Background
Currently, with the rapid development of technologies of mobile terminal devices (such as smart phones, tablet computers, etc.), the computing capability of the mobile terminal devices is rapidly improved. However, at the same time, the power consumption of the mobile terminal device is also greatly increased, resulting in shortening the endurance time of the device. The mobile terminal equipment at present mainly adopts a fast charging scheme to ensure the endurance of the equipment due to the battery technology.
Because the current quick charging technology of the mobile terminal equipment is basically realized by increasing the charging power, the problem that a charging chip or a battery heats in the charging process can be encountered, the service life of the battery is easily influenced by high temperature, and hidden danger of explosion exists.
Disclosure of Invention
The embodiment of the invention provides a device charging method, a device, terminal equipment and a computer storage medium, which are used for solving the problem that the temperature is high easily when the terminal equipment is charged rapidly 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 an awake state, acquiring load state parameters of the equipment at a preset first frequency;
When the load state parameter meets an overload condition, determining a corresponding group of charging configuration parameters according to the current equipment temperature from the first group of charging configuration parameters comprising a plurality of groups of charging configuration parameters;
Otherwise, determining a corresponding group of charging configuration parameters from the second type of charging configuration parameters comprising a plurality of groups of charging configuration parameters according to the current equipment temperature;
controlling the device to charge according to the determined set of charging configuration parameters and/or controlling a power adapter for charging the device to charge;
The higher the equipment temperature is, the smaller the charging current is in a corresponding group of charging configuration parameters in the same type of charging configuration parameters; the charging current of a corresponding set of charging configuration parameters in the first type of charging configuration parameters for the same device temperature is no greater than the charging current of a corresponding set of charging configuration parameters in the second type of charging configuration parameters.
Optionally, the device charging method further includes:
Determining a corresponding group of charging configuration parameters according to the current equipment temperature from a third group of charging configuration parameters comprising a plurality of groups of charging configuration parameters when the operating system is in a dormant state;
Wherein the charging current of a group of charging configuration parameters corresponding to the same device 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 third type of charging configuration parameters.
Optionally, in the same type of charging configuration parameters, different groups of charging configuration parameters include a group of charging configuration parameters respectively corresponding to different trigger temperature ranges and a group of charging configuration parameters respectively corresponding to different recovery temperature ranges;
determining a corresponding set of charging configuration parameters according to the current device temperature, comprising:
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 smaller than the equipment temperature acquired before the first preset time, determining a group of charging configuration parameters corresponding to a recovery temperature range to which the current equipment temperature belongs.
Optionally, the device charging method further includes:
Responding to an operating system wake-up instruction, and updating an operating system state mark parameter into a system wake-up state value;
Responding to an operating system dormancy instruction, and updating the operating system state mark parameter into a system dormancy state value;
and reading the operating system state flag parameter at a preset second frequency, and determining that the operating system is in an awake state or a dormant state according to the operating system state flag parameter value.
Optionally, when determining that the operating system is in the wake-up state, acquiring the load state parameter of the device at a preset first frequency includes:
When the state of the operating system is determined to be an awake state and the state determined last time is a dormant 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 wake-up state and the last determined state is the wake-up state, acquiring the load state parameter 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 a time with a cut-off point being a second preset duration of the current time.
Optionally, in the first type of charging configuration parameters, a group of charging configuration parameters corresponding to a trigger temperature range greater than a preset temperature threshold includes a charging limiting voltage;
Wherein the charging limit voltage is a nominal minimum charging voltage of the device or a nominal 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 load state parameters of the equipment at a preset first frequency when the operating system is in an awake state;
The first charging configuration parameter determining module is used for determining a corresponding group of charging configuration parameters according to the current equipment temperature from the first type of charging configuration parameters comprising a plurality of groups of charging configuration parameters when the load state parameters meet overload conditions;
The second charging configuration parameter determining module is used for determining a corresponding group of charging configuration parameters according to the current equipment temperature from second class of charging configuration parameters comprising a plurality of groups of charging configuration parameters when the load state parameters do not meet overload conditions;
the charging module is used for controlling the equipment to charge according to the determined set of charging configuration parameters and/or controlling a power adapter for charging the equipment to charge;
The higher the equipment temperature is, the smaller the charging current is in a corresponding group of charging configuration parameters in the same type of charging configuration parameters; the charging current of a corresponding set of charging configuration parameters in the first type of charging configuration parameters for the same device temperature is no greater than the charging current of a corresponding set of charging configuration parameters in the second type of charging configuration parameters.
Based on the same inventive concept, the embodiment of the present invention further provides a terminal device, including: a processor and a memory for storing instructions executable by the processor;
Wherein the processor is configured to execute the instructions to implement the device charging method.
Based on the same inventive concept, the embodiments of the present invention also provide a computer storage medium storing a computer program for implementing the device charging method.
The invention has the following beneficial effects:
According to the device charging method, device, terminal device, computer storage medium method and device, corresponding charging configuration parameters are determined according to the current device temperature and load state of the device, the heating value of the device during charging can be better controlled, and safety is guaranteed.
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 of a program call applied to an Android operating system according to an embodiment of the present invention;
FIG. 3 is a second flowchart of a device charging method according to an embodiment of the 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 that the above objects, features and advantages of the invention will be readily understood, a further description of the invention will be rendered by reference to specific embodiments thereof which are illustrated in the appended drawings. However, the exemplary embodiments can be embodied in many 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 the example embodiments to those skilled in the art. The same reference numerals in the drawings denote the same or similar structures, and thus a repetitive description thereof will be omitted. The words expressing the positions and directions described in the present invention are described by taking the drawings as an example, but can be changed according to the needs, and all the changes are included in the protection scope of the present invention. The drawings of the present invention are merely schematic representations of relative positional relationships and are not intended to represent true proportions.
It is noted that in the following description, specific details are set forth in order to provide a thorough understanding of the present application. The present application may be embodied in many other forms than those herein described, and those skilled in the art may readily devise numerous other arrangements that do not depart from the spirit of the application. Therefore, the present application is not limited by the specific embodiments disclosed below. The description hereinafter sets forth a preferred embodiment for practicing the application, but is not intended to limit the scope of the application, as the description is given for the purpose of illustrating the general principles of the application. The scope of the application is defined by the appended claims.
The device charging method, device, terminal device and computer storage medium provided by the embodiment of the invention are specifically described below with reference to the accompanying drawings.
An embodiment of the present invention provides a device charging method, as shown in fig. 1, including:
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.
S141, acquiring load state parameters of the equipment.
S142, judging whether overload conditions are met according to the load state parameters.
If the step S142 meets the overload condition, determining that the device is in an overload state, and executing a step S151; if the overload condition is not satisfied in the step S142, it is determined that the device is in a normal load state, and step S152 is performed.
S151, determining that the used charging configuration parameters belong to a first type of charging configuration parameters. Step S160 is performed.
S152, determining that the used charging configuration parameters belong to a second type of charging configuration parameters. The step S160 is performed.
Wherein 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 corresponding set of charging configuration parameters in the first type of charging configuration parameters for the same device temperature is no greater than the charging current of a corresponding set of charging configuration parameters in the second type of charging configuration parameters.
S160, acquiring the current equipment temperature.
S170, determining a corresponding group of charging configuration parameters from subordinate charging configuration parameter categories according to the current equipment temperature.
The higher the equipment temperature is, the smaller the charging current is in a corresponding group of charging configuration parameters in the same type of charging configuration parameters.
And S180, controlling the equipment to charge according to the determined set of charging configuration parameters, and/or controlling a power adapter for charging the equipment to charge.
In an 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 electronic reader, a music player, a video player, and the like.
In a specific implementation process, as shown in fig. 2, for a device of an Android (Android) operating system, 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 embodiment of the invention can control the charging current to be lower in the running state of high load under the condition of the same temperature by dynamically controlling the charging current according to the current load and temperature of the equipment, thereby slowing down the temperature rising speed.
Optionally, as shown in fig. 1, the device charging method further includes:
if the result of step S122 is that the operating system is currently in the sleep state, step S153 is executed.
And S153, determining that the used charging configuration parameters belong to a third type of charging configuration parameters. The step S160 is performed.
Wherein the charging current of a group of charging configuration parameters corresponding to the same device 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 third type of charging configuration parameters.
In this way, by setting a larger charging current for the sleep state than for the wake state at the same temperature, the charging speed of the device can be increased.
Optionally, in the same type of charging configuration parameters, different groups of charging configuration parameters include a group of charging configuration parameters respectively corresponding to different trigger temperature ranges and a group of charging configuration parameters respectively corresponding to different recovery temperature ranges;
step S170, determining a corresponding set of charging configuration parameters from the subordinate charging configuration parameter categories 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 smaller than the equipment temperature acquired before the first preset time, determining a group of charging configuration parameters corresponding to a recovery temperature range to which the current equipment temperature belongs.
In the specific implementation process, comparing the current equipment temperature with the equipment temperature acquired before the first preset time period, and directly comparing the numerical value to determine through storing the equipment temperature acquired before the first preset time period; the trigger temperature range and the recovery temperature range corresponding to the charging configuration parameter set adopted when the current equipment temperature is acquired can also be determined.
For example, the determined set of charging configuration parameters is shown in table 1 below:
charging configuration parameter categories determined in Table 1
Charging configuration parameter set 1 2 3 4
Charging current 5.5A 3.5A 3A 1.5A
Trigger temperature range <38℃ [38℃,42℃) [42℃,46℃) ≥46℃
Recovery temperature range ≤36℃ (36℃,40℃] (40℃,44℃] >44℃
The current equipment temperature is 43 ℃, 3.5A current is adopted for charging when the current equipment temperature is collected, the first preset time period is 1 minute, and the equipment temperature collected before 1 minute is 41 ℃. Then, the temperature rise of the equipment in 1 minute can be directly determined according to the temperature of 43 ℃ to 41 ℃, and 3A is determined to be the current charging current according to the trigger temperature range of [42 ℃,46 ℃); or charging with 3.5A current when collecting the current temperature of the equipment is determined as the 2 nd group charging configuration parameters, but And 43 deg.c > 42 deg.c, the device was determined to warm up in this 1 minute, since 43 deg.c e 42 deg.c, 46 deg.c, 3A was determined to be the current charging current.
Therefore, corresponding charging configuration parameters are determined by adopting different temperature ranges for heating and cooling the equipment, so that the charging speed can be well balanced and accelerated, and the charging heating can be controlled.
Optionally, the device charging method further comprises:
In response to the operating system wake instruction, the operating system status flag parameter is updated to a system wake status value. (not shown in the drawings)
And in response to an operating system sleep instruction, updating the operating system status flag parameter to a system sleep status value. (not shown in the drawings)
As shown in fig. 3, the device charging method includes, in addition to the same steps as those shown in fig. 1:
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.
S121, reading the operating system state flag parameters. The step S122 is performed.
For an Android operating system, as shown in fig. 2, a sys node (/ sys/ctp/ctp_func/tpenable) may be created when the device is turned on, and then the power management service PowerManager may be invoked when the operating system sleeps or wakes up, modifying the value of this parameter. The step S110 and the step S121 are implemented by calling a temperature control service Thermal-engine.
For portable terminal devices (such as mobile phones and tablet computers), a brightness value of a screen is generally used in the prior art to determine whether an operating system goes into sleep (for example, when the brightness of the screen is 0, it is determined that the device has gone into a screen locking sleep state). For a terminal device with an ink screen, since the working principle of the ink screen is different from that of a Light Emitting screen such as a Liquid crystal display (Liquid CRYSTAL DISPLAY, LCD) screen and an Organic Light-Emitting Diode (OLED) screen, 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 an operation system sleep state or an awake state. Thus, by setting a system state flag parameter, the embodiment of the invention can judge the current state of the operating system through the parameter for the device of the ink screen.
Optionally, when determining that the operating system is in the awake state, acquiring the 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 an awake state and the state determined last time is a dormant 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 wake-up state and the last determined state is the wake-up state, acquiring the load state parameter of the equipment at a preset first frequency.
In this way, by switching to the charging configuration parameters of the first charging configuration parameter set first after the operating system is changed from the sleep state to the wake state, it is possible to avoid that the charging configuration parameters of the third charging configuration parameter set are still adopted when the data acquisition time corresponding to the first preset frequency is not yet reached, thereby better controlling 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: a central processing unit (Central Processing Unit, CPU) operating frequency, CPU power consumption, CPU occupancy, graphics processor (Graphics Processing Unit, GPU) operating frequency, GPU power consumption, GPU occupancy;
the specific time is a time with a cut-off point being a second preset duration of the current time.
In the implementation process, for some terminal devices (for example, mobile phones, tablet computers and the like carrying Android operating systems), the average power consumption and occupancy rates of the CPU and the GPU may be obtained through working frequency estimation, and then the average working frequency of the CPU and the GPU may be directly used as the load state parameter.
As an alternative embodiment, if the load status parameter includes a CPU operating frequency average value and a GPU operating frequency average value within a specific time, the overload condition includes:
the average working frequency of the CPU is larger than a first threshold value; or the average working frequency of the CPU is larger than a second threshold value, and the average working frequency of the GPU is larger 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 with an 8-core CPU as an example, the operating frequency of the CPU may be obtained by reading/sys/bus/CPU/devices/CPU 0-CPU 8, and the operating frequency of the GPU may be obtained by reading/sys/kernel/GPU.
Optionally, in the first type of charging configuration parameters, a group of charging configuration parameters corresponding to a trigger temperature range greater than a preset temperature threshold includes a charging limiting voltage;
Wherein the charging limit voltage is a nominal minimum charging voltage of the device or a nominal minimum charging voltage of the power adapter.
In the related art, device charging methods for devices include two types of schemes of charging using a fixed charging voltage and dynamically adjusting the charging voltage (e.g., USB power transfer protocol (USB Power Delivery, USB PD)). For the technical scheme of charging by using a fixed charging voltage, there are also schemes in the related art that a plurality of different rated charging voltages are provided, and one of the rated charging voltages is selected at the beginning of charging (a protocol handshake matching is generally adopted to select a larger rated charging voltage) for charging. In order to ensure the safety of equipment, the embodiment of the invention proposes that when the equipment is in high load and has higher temperature, the charging voltage is forcedly reduced to the rated minimum charging voltage, the charging conversion efficiency can be further improved, the temperature rise problem caused by voltage conversion is reduced, and the safety is ensured.
Specifically, table 2 below shows one specific charging configuration parameter, wherein the rated minimum charging voltage of the device is 5V:
table 2a charging configuration parameter
Based on the same inventive concept, an embodiment of the present invention further provides a charging device, as shown in fig. 4, including:
The load state parameter obtaining module M130 is configured to obtain a load state parameter of the device at a preset first frequency when determining that the operating system is in an awake state;
A first charging configuration parameter determining module M140, configured to determine a corresponding group of charging configuration parameters from a first class of charging configuration parameters including a plurality of groups of charging configuration parameters according to a current device temperature when the load status parameter satisfies an overload condition;
A second charging configuration parameter determining module M150, configured to determine a corresponding group of charging configuration parameters from the second class of charging configuration parameters including a plurality of groups of charging configuration parameters according to the current device temperature when the load status parameter does not satisfy the overload condition;
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;
The higher the equipment temperature is, the smaller the charging current is in a corresponding group of charging configuration parameters in the same type of charging configuration parameters; the charging current of a corresponding set of charging configuration parameters in the first type of charging configuration parameters for the same device temperature is no greater than the charging current of a corresponding set of charging configuration parameters 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 in a sleep state, a corresponding set of charging configuration parameters from third types of charging configuration parameters including a plurality of sets of charging configuration parameters according to a current device temperature;
Wherein the charging current of a group of charging configuration parameters corresponding to the same device 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 third type of charging configuration parameters.
Optionally, in the same type of charging configuration parameters, different groups of charging configuration parameters include a group of charging configuration parameters respectively corresponding to different trigger temperature ranges and a group of charging configuration parameters respectively corresponding to different recovery temperature ranges;
determining a corresponding set of charging configuration parameters according to the current device temperature, comprising:
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 smaller than the equipment temperature acquired before the first preset time, determining a group of charging configuration parameters corresponding to a recovery temperature range to which the current equipment temperature belongs.
Optionally, the device charging apparatus further includes:
The system state flag parameter writing module M110 is 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; responding to an operating system dormancy instruction, and updating the operating system state mark parameter into a system dormancy state value;
The system state judging 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, from the second type of charging configuration parameters, a corresponding set of charging configuration parameters according to a current device temperature when the state of the operating system is an awake state and the last determined state is a sleep state;
The load state parameter obtaining module M130 is specifically configured to obtain, at a preset first frequency, a load state parameter of the device when it is determined that the state of the operating system is an awake state and the state determined last time is the awake 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 a time with a cut-off point being a second preset duration of the current time.
Optionally, in the first type of charging configuration parameters, a group of charging configuration parameters corresponding to a trigger temperature range greater than a preset temperature threshold includes a charging limiting voltage;
Wherein the charging limit voltage is a nominal minimum charging voltage of the device or a nominal minimum charging voltage of the power adapter.
Since the principle of the charging device for solving the problem is similar to that of the charging method of the device, the implementation of the charging device can be referred to the implementation of the method, and the repetition is omitted.
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 devices may vary considerably in 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. Wherein memory 120 and storage medium 130 may be transitory or persistent storage. The application 131 stored on the storage medium 130 may include one or more of the described units (not shown in fig. 5), and each module may include a series of instruction operations on the charging device. Still further, the processor 110 may be configured to communicate with a storage medium 130, and execute a series of instruction operations in the storage medium 130 on the device. The device may also include one or more power sources (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 embodiments of the present invention also provide a computer storage medium storing a computer program for implementing the device charging method.
According to the device charging method, device, terminal device, computer storage medium method and device, corresponding charging configuration parameters are determined according to the current device temperature and load state of the device, the heating value of the device during charging can be better controlled, and safety is guaranteed.
It will be appreciated by those skilled in the art that 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 flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations 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 modifications and variations can be made to the present application without departing from the spirit or scope of the application. Thus, it is intended that the present application also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (9)

1. A method of charging a device, comprising:
When the operating system is determined to be in an awake state, acquiring load state parameters of the equipment at a preset first frequency;
When the load state parameter meets an overload condition, determining a corresponding group of charging configuration parameters according to the current equipment temperature from the first group of charging configuration parameters comprising a plurality of groups of charging configuration parameters; if the current equipment temperature is greater than the equipment temperature acquired before the first preset time period, determining a group of charging configuration parameters corresponding to a trigger temperature range to which the current equipment temperature belongs; if the current equipment temperature is smaller than the equipment temperature acquired before the first preset time period, determining a group of charging configuration parameters corresponding to a recovery temperature range to which the current equipment temperature belongs;
Otherwise, determining a corresponding group of charging configuration parameters from the second type of charging configuration parameters comprising a plurality of groups of charging configuration parameters according to the current equipment temperature; if the current equipment temperature is greater than the equipment temperature acquired before the first preset time period, determining a group of charging configuration parameters corresponding to a trigger temperature range to which the current equipment temperature belongs; if the current equipment temperature is smaller than the equipment temperature acquired before the first preset time period, determining a group of charging configuration parameters corresponding to a recovery temperature range to which the current equipment temperature belongs;
controlling the device to charge according to the determined set of charging configuration parameters and/or controlling a power adapter for charging the device to charge;
Wherein, in the same type of charging configuration parameters, different groups of charging configuration parameters comprise a group of charging configuration parameters respectively corresponding to different trigger temperature ranges and a group of charging configuration parameters respectively corresponding to different recovery temperature ranges; in the same type of charging configuration parameters, the higher the equipment temperature is, the smaller the charging current in a corresponding group of charging configuration parameters is; the charging current of a corresponding set of charging configuration parameters in the first type of charging configuration parameters for the same device temperature is no greater than the charging current of a corresponding set of charging configuration parameters in the second type of charging configuration parameters.
2. The device charging method of claim 1, further comprising:
determining a corresponding group of charging configuration parameters according to the current equipment temperature from a third group of charging configuration parameters comprising a plurality of groups of charging configuration parameters when the operating system is in a dormant state; if the current equipment temperature is greater than the equipment temperature acquired before the first preset time period, determining a group of charging configuration parameters corresponding to a trigger temperature range to which the current equipment temperature belongs; if the current equipment temperature is smaller than the equipment temperature acquired before the first preset time period, determining a group of charging configuration parameters corresponding to a recovery temperature range to which the current equipment temperature belongs;
Wherein the charging current of a group of charging configuration parameters corresponding to the same device 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 third type of charging configuration parameters.
3. The device charging method according to claim 1 or 2, characterized by further comprising:
Responding to an operating system wake-up instruction, and updating an operating system state mark parameter into a system wake-up state value;
Responding to an operating system dormancy instruction, and updating the operating system state mark parameter into a system dormancy state value;
and reading the operating system state flag parameter at a preset second frequency, and determining that the operating system is in an awake state or a dormant state according to the operating system state flag parameter value.
4. The device charging method of claim 1, wherein the determining that the operating system is in the awake state, acquiring the load state parameter of the device at the preset first frequency, comprises:
When the state of the operating system is determined to be an awake state and the state determined last time is a dormant 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 wake-up state and the last determined state is the wake-up state, acquiring the load state parameter of the equipment at a preset first frequency.
5. The device charging method of claim 1, wherein the load state parameter comprises an average over a particular time of at least one of the following parameters:
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 a time with a cut-off point being a second preset duration of the current time.
6. The method for charging a device according to claim 1,
Among 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 nominal minimum charging voltage of the device or a nominal minimum charging voltage of the power adapter.
7. A charging device, characterized by comprising:
the load state parameter acquisition module is used for acquiring load state parameters of the equipment at a preset first frequency when the operating system is in an awake state;
The first charging configuration parameter determining module is used for determining a corresponding group of charging configuration parameters according to the current equipment temperature from the first type of charging configuration parameters comprising a plurality of groups of charging configuration parameters when the load state parameters meet overload conditions; if the current equipment temperature is greater than the equipment temperature acquired before the first preset time period, determining a group of charging configuration parameters corresponding to a trigger temperature range to which the current equipment temperature belongs; if the current equipment temperature is smaller than the equipment temperature acquired before the first preset time period, determining a group of charging configuration parameters corresponding to a recovery temperature range to which the current equipment temperature belongs;
The second charging configuration parameter determining module is used for determining a corresponding group of charging configuration parameters according to the current equipment temperature from second class of charging configuration parameters comprising a plurality of groups of charging configuration parameters when the load state parameters do not meet overload conditions; if the current equipment temperature is greater than the equipment temperature acquired before the first preset time period, determining a group of charging configuration parameters corresponding to a trigger temperature range to which the current equipment temperature belongs; if the current equipment temperature is smaller than the equipment temperature acquired before the first preset time period, determining a group of charging configuration parameters corresponding to a recovery temperature range to which the current equipment temperature belongs;
the charging module is used for controlling the equipment to charge according to the determined set of charging configuration parameters and/or controlling a power adapter for charging the equipment to charge;
Wherein, in the same type of charging configuration parameters, different groups of charging configuration parameters comprise a group of charging configuration parameters respectively corresponding to different trigger temperature ranges and a group of charging configuration parameters respectively corresponding to different recovery temperature ranges; in the same type of charging configuration parameters, the higher the equipment temperature is, the smaller the charging current in a corresponding group of charging configuration parameters is; the charging current of a corresponding set of charging configuration parameters in the first type of charging configuration parameters for the same device temperature is no greater than the charging current of a corresponding set of charging configuration parameters in the second type of charging configuration parameters.
8. A terminal device, comprising: a processor and a memory for storing instructions executable by the processor;
Wherein the processor is configured to execute the instructions to implement the device charging method of any of claims 1-6.
9. A computer storage medium, characterized in that the computer storage medium stores a computer program, which is used to implement the device charging method according to any one of claims 1-6.
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 CN113541240A (en) 2021-10-22
CN113541240B true 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
CN109412240A (en) * 2018-12-20 2019-03-01 青岛海信移动通信技术股份有限公司 A kind of method and apparatus adjusting charging current
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
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
汽车电功率设计计算与分析;刘保国;雒拓;高锦;;汽车实用技术(03);全文 *

Also Published As

Publication number Publication date
CN113541240A (en) 2021-10-22

Similar Documents

Publication Publication Date Title
US11200101B2 (en) Managing applications for power conservation
CN102789304B (en) Power management method and related device
CN104380257B (en) Scheduling tasks among processor cores
US7869835B1 (en) Method and system for pre-loading and executing computer instructions within the cache memory
US11144477B2 (en) Method for processing reclaimable memory pages, electronic device, and computer-readable storage medium
US10956316B2 (en) Method and device for processing reclaimable memory pages, and storage medium
US20120047380A1 (en) Method, apparatus and computer program product for presentation of information in a low power mode
US20140208092A1 (en) Method For Updating Firmware of a Battery Included in a Rechargeable Battery Module, Portable Electronic Device, and Rechargeable Battery Module
WO2013133845A1 (en) Virtualizing battery across a group of personal mobile devices
US11096177B2 (en) Operation mode switching method and user equipment
CN107810488A (en) A kind of method of state management of virtual machine, device and intelligent terminal
WO2016115762A1 (en) Power saving mode control method and device for multiple operating systems, and terminal
US10275007B2 (en) Performance management for a multiple-CPU platform
CN113672450B (en) Processing method and device for solid state disk
CN113541240B (en) Equipment charging method, device, terminal equipment and computer storage medium
CN103150246A (en) Electronic device and method for setting time of timer
CN112954021B (en) Wake-up adjustment processing method and device based on multi-device data
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
WO2023273890A1 (en) Energy-saving method, energy-saving device, electronic device, and computer-readable storage medium
CN113805954B (en) Screen saver display method, electronic device and computer storage medium
CN109408242B (en) Server resource online and offline method and device
CN114698140A (en) Control method and system of wearable device, computer device and storage medium
US20200089301A1 (en) Transition into and out of a partially-off power state

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