Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be noted that the following examples are only illustrative of the present invention, and do not limit the scope of the present invention. Similarly, the following examples are only some but not all examples of the present invention, and all other examples obtained by those skilled in the art without any inventive work are within the scope of the present invention.
The terms "first", "second" and "third" in the present invention are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first," "second," or "third" may explicitly or implicitly include at least one of the feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise. All directional indicators (such as up, down, left, right, front, and rear … …) in the embodiments of the present invention are only used to explain the relative positional relationship between the components, the movement, and the like in a specific posture (as shown in the drawings), and if the specific posture is changed, the directional indicator is changed accordingly. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating a method for controlling temperature rise during charging of a terminal device according to an embodiment of the present invention; it should be noted that the terminal device referred to in the present invention includes a mobile phone, a tablet computer, a notebook computer, and the like. The method includes, but is not limited to, the following steps.
Step S100, detecting whether the terminal device is in a charging state.
The specific method of this step may be to detect the operating state of the charging circuit, or to detect whether the charging prompt is turned on, or the like. Specific detection methods are within the understanding of those skilled in the art and are not listed here.
Step S110, if the terminal device is in a charging state, determining whether the electric quantity of the battery of the terminal device is smaller than a preset electric quantity value.
In this step, if the terminal device is in a non-charging state, all subsequent steps of the method are stopped. The preset value of the power may be a preset ratio of the total power of the battery, such as 30% of the total power. Of course, the value can be set by a person skilled in the art according to the total battery capacity and the endurance of the terminal device, and is not limited specifically here.
And step S120, if the electric quantity of the battery of the terminal equipment is smaller than the preset electric quantity value, detecting the temperature of the battery of the terminal equipment.
The method of measuring the temperature of the terminal device battery may include by providing a sensor or thermistor or the like on or near the battery.
For example, a Negative temperature coefficient thermistor (NTC) is provided, and is connected to a battery of a terminal device, because the resistance of the NTC is inversely proportional to the temperature, the resistance decreases with a high temperature and increases with a low temperature, and the temperature coefficient is very large, so that the NTC can be used for detecting a small temperature change, and the accuracy is high. According to the characteristics of the NTC resistor, the NTC can generate different voltages of the NTC resistor in different temperature environments; the current temperature value of the battery is determined by monitoring the voltage value of the negative temperature coefficient thermistor.
Step S130, when the temperature of the battery of the terminal equipment is in a first temperature threshold interval, charging the terminal equipment in a constant voltage mode; and when the temperature of the battery of the terminal equipment is in the second temperature threshold interval, charging the terminal equipment in a first constant current mode.
In this step, preferably, the temperature value of the first temperature threshold interval is smaller than the temperature value of the second temperature threshold interval; for example, the first temperature threshold range may be 30-60 degrees celsius and the second temperature threshold range may be 60-80 degrees celsius.
Generally, the charging current in the constant-voltage charging is larger than the charging current in the constant-current charging, and when the battery temperature is low, the charging can be performed in the constant-voltage charging with a large current, and when the battery temperature is low, the charging can be performed in the first constant-current charging with a small current.
Compared with the prior art, the temperature rise control method for the terminal equipment during charging provided by the embodiment of the invention detects the temperature of the battery of the terminal equipment under the condition that the electric quantity of the battery of the terminal equipment in the charging state is detected to be smaller than the preset electric quantity value, and determines the adopted charging strategy (charging the terminal equipment in a constant current mode or charging in a constant voltage mode) according to different temperature threshold value intervals of the temperature of the battery, so that the temperature rise control during charging of the terminal equipment is realized, and the overhigh temperature rise of the terminal equipment is avoided.
Further, please refer to fig. 2, fig. 2 is a schematic flow chart illustrating a temperature rise control method for charging a terminal device according to another embodiment of the present invention; the method in this embodiment comprises the steps of:
step S200, whether the terminal equipment is in a charging state is detected.
The specific method of this step may be to detect the operating state of the charging circuit, or to detect whether the charging prompt is turned on, or the like. Specific detection methods are within the understanding of those skilled in the art and will not be described in detail herein.
In this step, if the result of detecting whether the terminal device is in the charging state is negative, the process directly proceeds to step S210, and the whole process is ended. And if the result of detecting whether the terminal equipment is in the charging state is yes, entering the next step.
Step S201, determining whether the electric quantity of the battery of the terminal device is smaller than a preset electric quantity value.
The preset value of the power may be a preset ratio of the total power of the battery, such as 30% of the total power. Of course, the value can be set by a person skilled in the art according to the total battery capacity and the endurance of the terminal device, and is not limited specifically here.
If the electric quantity of the battery of the terminal equipment is judged to be smaller than the preset electric quantity value, the next step is entered, namely step S202; if the result of determining whether the electric quantity of the battery of the terminal device is smaller than the preset electric quantity value is negative, the step S206 is entered.
Step S202, the temperature of the battery of the terminal equipment is detected.
Also, the method of measuring the temperature of the battery of the terminal device may include by providing a sensor or thermistor or the like on or near the battery.
Step S203, judging the temperature threshold interval where the temperature of the terminal equipment battery is located.
In this step, the temperature threshold interval is divided into two, namely a first temperature threshold interval and a second temperature threshold interval, and preferably, the temperature value of the first temperature threshold interval is smaller than that of the second temperature threshold interval; for example, the first temperature threshold range may be 30-60 degrees celsius and the second temperature threshold range may be 60-80 degrees celsius. In other embodiments, the number of the cells may be plural. When the temperature of the terminal equipment battery is in a first temperature threshold interval, the step S204 is carried out; and when the temperature of the terminal equipment battery is in the second temperature threshold interval, the step S205 is entered.
And step S204, charging the terminal equipment in a constant voltage mode.
In this embodiment, the charging may be performed with a constant voltage of 5V.
And step S205, charging the terminal equipment in a first constant current mode.
Preferably, in the embodiment of the present invention, the constant current charging mode has a charging current smaller than that of the constant voltage charging mode.
And step S206, detecting the temperature of the battery of the terminal equipment.
It should be noted that, in this embodiment, step S202 and step S206 both detect the temperature of the terminal device battery, so that this step is written twice in the same embodiment to indicate that the charging policy adopted by the terminal device is different when the electric quantity of the terminal device battery is smaller than the preset electric quantity value and is greater than or equal to the preset electric quantity value.
Step S207, judging the temperature threshold interval where the temperature of the terminal equipment battery is located.
In this step, the temperature threshold interval is also divided into two, namely a first temperature threshold interval and a second temperature threshold interval, and preferably, the temperature value of the first temperature threshold interval is smaller than that of the second temperature threshold interval; for example, the first temperature threshold range may be 40-60 degrees Celsius, and the second temperature threshold range may be 60-80 degrees Celsius. In other embodiments, the number of the cells may be plural. When the temperature of the terminal equipment battery is in a first temperature threshold interval, the step S208 is carried out; and when the temperature of the terminal equipment battery is in the second temperature threshold interval, the step S209 is carried out.
And step S208, charging the terminal equipment in a second constant current mode.
And step S209, charging the terminal equipment by adopting a third constant current mode.
In the above two steps, preferably, the second constant current value is larger than the third constant current value. That is, a large current is used for charging when the terminal device battery temperature is low, and a small current is used for charging when the terminal device battery temperature is relatively high.
And step S210, ending.
Compared with the prior art, the temperature rise control method for the terminal equipment during charging provided by the embodiment of the invention respectively detects the temperature of the battery of the terminal equipment after comparing the electric quantity of the battery of the terminal equipment in the charging state with the preset value of the electric quantity, and determines the charging strategy corresponding to the temperature according to different temperature threshold intervals where the battery temperature is located, so that the temperature rise control during the charging of the terminal equipment is realized, and the overhigh temperature rise of the terminal equipment is avoided.
Referring to fig. 3, fig. 3 is a schematic flowchart illustrating a method for controlling temperature rise during charging of a terminal device according to another embodiment of the present invention, where the method in this embodiment includes the following steps.
Step S300, whether the terminal equipment is in a charging state is detected.
The specific method of this step may be to detect the operating state of the charging circuit, or to detect whether the charging prompt is turned on, or the like. Specific detection methods are within the understanding of those skilled in the art and will not be described in detail herein.
In this step, if the result of detecting whether the terminal device is in the charging state is negative, the process proceeds directly to step S313, and the whole process is ended. And if the result of detecting whether the terminal equipment is in the charging state is yes, entering the next step.
Step S301, judging whether the electric quantity of the battery of the terminal equipment is smaller than the electric quantity preset value.
The preset value of the power may be a preset ratio of the total power of the battery, such as 30% of the total power. Of course, the value can be set by a person skilled in the art according to the total battery capacity and the endurance of the terminal device, and is not limited specifically here.
If the electric quantity of the battery of the terminal equipment is judged to be smaller than the preset electric quantity value, the next step is entered, namely step S302; and if the result of judging whether the electric quantity of the battery of the terminal equipment is smaller than the preset electric quantity value is negative, the step S306 is entered.
Step S302, detecting the temperature of the battery of the terminal equipment.
Also, the method of measuring the temperature of the battery of the terminal device may include by providing a sensor or thermistor or the like on or near the battery.
Step S303, judging a temperature threshold interval where the temperature of the battery of the terminal equipment is located.
In this step, the temperature threshold interval is divided into two, namely a first temperature threshold interval and a second temperature threshold interval, and preferably, the temperature value of the first temperature threshold interval is smaller than that of the second temperature threshold interval; for example, the first temperature threshold range may be 30-60 degrees celsius and the second temperature threshold range may be 60-80 degrees celsius. In other embodiments, the number of the cells may be plural. When the temperature of the terminal equipment battery is in a first temperature threshold interval, the step S304 is carried out; when the temperature of the terminal device battery is in the second temperature threshold interval, the process proceeds to step S305.
And step S304, charging the terminal equipment in a constant voltage mode.
In this embodiment, the charging may be performed with a constant voltage of 5V.
And step S305, charging the terminal equipment in a first constant current mode.
Preferably, in the embodiment of the present invention, the constant current charging mode has a charging current smaller than that of the constant voltage charging mode.
And step S306, detecting the temperature of the battery of the terminal equipment.
It should be noted that, in this embodiment, step S302 and step S306 are both to detect the temperature of the terminal device battery, so that this step is written twice in the same embodiment, in order to indicate that the charging policy adopted by the terminal device is different when the electric quantity of the terminal device battery is smaller than the preset electric quantity value and is greater than or equal to the preset electric quantity value.
Step S307, judging the temperature threshold interval where the temperature of the terminal equipment battery is located.
In this step, the temperature threshold interval is also divided into two, namely a first temperature threshold interval and a second temperature threshold interval, and preferably, the temperature value of the first temperature threshold interval is smaller than that of the second temperature threshold interval; for example, the first temperature threshold range may be 40-60 degrees Celsius, and the second temperature threshold range may be 60-80 degrees Celsius. In other embodiments, the number of the cells may be plural. When the temperature of the terminal equipment battery is in a first temperature threshold interval, the step S308 is executed; and when the temperature of the terminal equipment battery is in the second temperature threshold interval, the step S309 is carried out.
And step S308, charging the terminal equipment in a second constant current mode.
And step S309, charging the terminal equipment in a third constant current mode.
In the above two steps, preferably, the second constant current value is larger than the third constant current value. That is, a large current is used for charging when the terminal device battery temperature is low, and a small current is used for charging when the terminal device battery temperature is relatively high.
Step S310, detecting the application program running on the terminal equipment.
In step S311, it is determined whether the terminal device is running an application corresponding to a specific category.
In this step, please refer to fig. 4 for a method for setting a specific type of application, fig. 4 is a flowchart illustrating an embodiment of the method for setting a specific type of application, and the method includes the following steps.
Step S401, setting a power consumption threshold;
in this step, the power consumption amount threshold may be a value in milliampere hours of power consumed per minute; such as 50mAh/min, etc., which can be set by those skilled in the art according to the actual situation of the terminal device, and is not limited herein.
In step S402, the power consumption of each application is compared with the threshold.
In step S403, it is determined whether the power consumption of the application is greater than a threshold.
After step S403, comparing the power consumption of each application with the threshold, if the power consumption of the application is greater than the threshold, then step S404 is performed, and the application with the power consumption greater than the threshold is classified as a first type application; if the result of determining whether the power consumption of the application is greater than the threshold value is negative, the process proceeds to step S405, and the application whose power consumption is less than or equal to the threshold value is classified as a second type of application.
Further, referring to fig. 5, fig. 5 is a flowchart illustrating another embodiment of a method for setting a specific type of application program, in which the method for setting a specific type of application program includes the following steps.
In step S501, power consumption amounts of the applications are ranked.
In this step, the power consumption of all applications in the terminal device is measured and ranked.
In step S502, a predetermined number of applications with high power consumption and top ranking are classified as first-class applications.
In step S503, the other ranked applications with low power consumption are classified as the first type of applications.
The predetermined number may be one half, one third or other proportional number of the application program with the detected power consumption, and may be set by those skilled in the art according to the power condition of the terminal device, the heat dissipation condition, etc., and the predetermined number may not be specifically limited herein.
In step S310, the detecting of the application program being run by the terminal device specifically includes: the method includes detecting which applications (including game programs, video programs or chat programs, banking programs and the like) are running on the terminal device and classifying the applications according to the power consumption of the running applications, wherein the applications are classified into two types in the embodiment of the present invention, and of course, in other embodiments, the applications can be further subdivided into a plurality of categories, such as three types or four types, according to the power consumption, and the details are not described herein again within the understanding range of those skilled in the art. In which each application is classified into either a first type or a second type of application.
Further, referring to fig. 6, fig. 6 is a flowchart illustrating a method for setting a specific type of application according to another embodiment, the method including: step S601, ranking the use frequency of the application program; the obtaining method of the use frequency may be the number of times that each application program in the terminal device is used is recorded through a period of time, and the use frequency is the ratio of the use frequency to the time in the period of time; step S602, classifying the preset number of application programs which are used frequently and ranked at the top into a third type of application programs; step S603, classifying the rest of application programs which are used frequently and ranked as the fourth type of application programs.
Preferably, applications belonging to both the first and fourth categories are set as application programs of the specific category, that is, applications with high power consumption and low frequency of use are set as application programs of the specific category, and please refer to fig. 7, where fig. 7 is a schematic block diagram of a setting intersection of application programs of the specific category. In the figure reference 701 indicates the first type of application, reference 702 indicates the fourth type of application and the intersection 703 indicates the specific type of application that is set.
In step S206, if it is determined that the terminal device is running the application program corresponding to the specific category, the next step is performed; if the terminal device is judged not to be running the application program corresponding to the specific category, the process returns to step S310 to re-detect the application program running on the terminal device.
Step S312, close the application program corresponding to the specific category or adjust the running state of the application program corresponding to the specific category.
In this step, the step of closing the application program corresponding to the specific category may be to close the first category of application program for the terminal device itself, or pop up a dialog box on the display screen to prompt the user to close the first category of application program, so that the user may operate and select the first category of application program by himself. And adjusting the running state of the application program corresponding to the specific category can be adjusting the application program to be in a low power consumption mode or a background running mode.
Step S313 ends.
Compared with the prior art, the temperature rise control method for the terminal equipment during charging provided by the embodiment of the invention respectively detects the temperature of the battery of the terminal equipment after comparing the electric quantity of the battery of the terminal equipment in the charging state with the preset value of the electric quantity, and determines the charging strategy corresponding to the temperature according to different temperature threshold intervals of the battery; in addition, the method correspondingly adjusts the running state of the application program belonging to a specific category by detecting the condition of the application program running on the terminal equipment, and plays the roles of reducing power consumption and generating less heat during charging; the method can realize the control of the temperature rise of the terminal equipment during charging so as to avoid the overhigh temperature rise of the terminal equipment.
Further, an embodiment of the present invention further provides a temperature rise control device for charging a terminal device, please refer to fig. 8, where fig. 8 is a block diagram illustrating a structure of an embodiment of the temperature rise control device for charging a terminal device of the present invention, where the device includes, but is not limited to, the following modules: a charging state detection module 810, a battery level detection module 820, a battery temperature detection module 830, and a charging module 840.
Specifically, the charging state detection module 810 is configured to detect whether the terminal device is in a charging state; the battery capacity detection module 820 is used for detecting the capacity of the battery of the terminal device when the terminal device is in a charging state; the battery temperature detection module 830 is configured to detect the temperature of the terminal device battery when the electric quantity of the terminal device battery is smaller than a preset electric quantity value; the charging module 840 is configured to charge the terminal device in a constant voltage manner when the temperature of the battery of the terminal device is within a first temperature threshold interval; and when the temperature of the battery of the terminal equipment is in a second temperature threshold interval, charging the terminal equipment in a first constant current mode.
Please refer to the related description of the method embodiments for the specific working flows of the charging state detection module 810, the battery level detection module 820, the battery temperature detection module 830, and the charging module 840, which will not be described herein again.
In addition, referring to fig. 9, fig. 9 is a schematic structural diagram of a terminal device according to an embodiment of the present invention, where the terminal device 900 includes an RF circuit 910, a memory 920, an input unit 930, a display unit 940, a sensor 950, an audio circuit 960, a wifi module 970, a processor 980, a power supply 990, and the like. Wherein the RF circuit 910, the memory 920, the input unit 930, the display unit 940, the sensor 950, the audio circuit 960, and the wifi module 970 are respectively connected with the processor 980; the power supply 990 is used to supply power to the entire terminal device 90.
Specifically, the RF circuit 910 is used for transmitting and receiving signals; the memory 920 is used for storing data instruction information; the input unit 930 is used for inputting information, and may specifically include a touch panel 931 and other input devices 932 such as operation keys; the display unit 940 may include a display panel 941; the sensor 950 includes an infrared sensor, a laser sensor, etc. for detecting a user approach signal, a distance signal, etc.; a speaker 961 and a microphone 962 are connected to the processor 980 through the audio circuit 960 for emitting and receiving sound signals; the wifi module 970 is then used for receiving and transmitting wifi signals.
Processor 980 is also configured to detect whether the terminal device is in a charging state; if the terminal equipment is in a charging state, judging whether the electric quantity of a battery of the terminal equipment is smaller than a preset electric quantity value; if the electric quantity of the terminal equipment battery is smaller than the preset electric quantity value, detecting the temperature of the terminal equipment battery; when the temperature of the battery of the terminal equipment is in a first temperature threshold interval, charging the terminal equipment in a constant voltage mode; and when the temperature of the battery of the terminal equipment is in a second temperature threshold interval, charging the terminal equipment in a first constant current mode. The memory 920 is used for storing information such as operating instructions of the processor 980. For the specific operation flow of the processor 980, please refer to the detailed description of the above method embodiments.
Referring to fig. 10, fig. 10 is a schematic structural diagram of a storage medium according to an embodiment of the invention.
The storage medium 1000 stores program data 1001, and the program data 1001 can be executed to implement the temperature rise control method for charging the terminal device described in the above embodiments, and will not be described herein again.
As will be understood by those skilled in the art, the storage medium 1000 may be a physical storage medium such as a usb disk and an optical disk, or may be a virtual storage medium such as a server.
In the several embodiments provided in the present invention, it should be understood that the disclosed method, apparatus and device may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Compared with the prior art, the terminal device and the storage medium thereof provided by the embodiment of the invention detect the temperature of the battery of the terminal device under the condition that the electric quantity of the battery of the terminal device in the charging state is detected to be smaller than the preset electric quantity value, and determine the adopted charging strategy (charging the terminal device in a constant current mode or charging the terminal device in a constant voltage mode) according to different temperature threshold value intervals of the temperature of the battery, so that the temperature rise of the terminal device during charging is controlled, and the overhigh temperature rise of the terminal device is avoided.
The above description is only a part of the embodiments of the present invention, and not intended to limit the scope of the present invention, and all equivalent devices or equivalent processes performed by the present invention through the contents of the specification and the drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.