CN106844135B - Temperature monitoring method and device of mobile terminal and mobile terminal - Google Patents

Temperature monitoring method and device of mobile terminal and mobile terminal Download PDF

Info

Publication number
CN106844135B
CN106844135B CN201611092038.1A CN201611092038A CN106844135B CN 106844135 B CN106844135 B CN 106844135B CN 201611092038 A CN201611092038 A CN 201611092038A CN 106844135 B CN106844135 B CN 106844135B
Authority
CN
China
Prior art keywords
temperature
mobile terminal
application program
preset
value
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
CN201611092038.1A
Other languages
Chinese (zh)
Other versions
CN106844135A (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.)
Beijing Anyun Century Technology Co Ltd
Original Assignee
Beijing Anyun Century 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 Beijing Anyun Century Technology Co Ltd filed Critical Beijing Anyun Century Technology Co Ltd
Priority to CN201611092038.1A priority Critical patent/CN106844135B/en
Publication of CN106844135A publication Critical patent/CN106844135A/en
Application granted granted Critical
Publication of CN106844135B publication Critical patent/CN106844135B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/327Alarm or error message display

Abstract

The invention provides a temperature monitoring method and device of a mobile terminal and the mobile terminal. The method comprises the following steps: monitoring a temperature value of the mobile terminal; in the monitoring process, respectively counting the respective running state values of at least one application program currently running on the mobile terminal; when the temperature value is monitored to reach a preset high-temperature threshold value, determining a target application program causing the mobile terminal to generate heat from the at least one application program according to the running state value of each application program; outputting high-temperature alarm information corresponding to the target application program; and continuously monitoring the temperature value of the mobile terminal to determine a first temperature change state of the mobile terminal, and updating the high-temperature alarm information according to the first temperature change state. According to the technical scheme, the target application program which causes the mobile terminal to generate heat can be automatically determined, and the high-temperature alarm information can be updated in time according to the temperature change state of the mobile terminal.

Description

Temperature monitoring method and device of mobile terminal and mobile terminal
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a temperature monitoring method and apparatus for a mobile terminal, and a mobile terminal.
Background
With the continuous development of smart phones, in order to meet the daily work and life requirements of people, more and more applications appear in smart phones, and each application consumes Central Processing Unit (CPU) resources in the smart phone in the running process. When a large amount of CPU resources of the mobile phone are occupied, not only the operating efficiency of each application is affected, but also the CPU temperature of the mobile phone is increased, even reaching the degree that the mobile phone is hot, and the user is affected to continue using the mobile phone.
In the prior art, the temperature of the mobile phone can be determined only by reading the temperature of a CPU or the temperature of a battery, and specific applications of a heating source which causes the temperature of the mobile phone to rise cannot be accurately judged. Usually, the heat source can only be guessed according to the power consumption of the mobile phone, but the guessing method is easy to cause serious errors. For example, if the user continuously uses the application a one hour before, and uses the application B for a short time after one hour to increase the temperature of the mobile phone, and guesses the heat source based on the power consumption amount of the mobile phone, the application a is considered as the heat source, but actually the heat source is the application B. Therefore, the method cannot accurately determine the heating source causing the temperature rise of the mobile phone.
Disclosure of Invention
In view of the above, the present invention is proposed in order to provide a temperature monitoring method and apparatus of a mobile terminal and a mobile terminal that overcome or at least partially solve the above problems.
According to an aspect of the present invention, there is provided a temperature monitoring method for a mobile terminal, applied to a client, including:
monitoring a temperature value of the mobile terminal;
in the monitoring process, respectively counting the respective running state values of at least one application program currently running on the mobile terminal;
when the temperature value is monitored to reach a preset high-temperature threshold value, determining a target application program causing the mobile terminal to generate heat from the at least one application program according to the running state value of each application program;
outputting high-temperature alarm information corresponding to the target application program, wherein the high-temperature alarm information is used for prompting a user that the target application program causes the temperature of the mobile terminal to be too high;
and continuously monitoring the temperature value of the mobile terminal to determine a first temperature change state of the mobile terminal, and updating the high-temperature alarm information according to the first temperature change state.
Optionally, updating the high-temperature alarm information according to the first temperature change state includes:
when the first temperature change state is a heating state or a constant temperature state, judging whether the time length between the current time and the time of outputting the high-temperature alarm information last time reaches a first preset time length capable of triggering the client to update the high-temperature alarm information;
if so, re-counting the respective running state value of at least one application program currently running on the mobile terminal, and determining a new target application program causing the continuous temperature rise of the mobile terminal according to the running state value;
and updating the high-temperature alarm information according to the new target application program.
Optionally, updating the high-temperature alarm information according to the first temperature change state includes:
when the first temperature change state is a cooling state, judging whether the cooling state reaches a first preset state capable of triggering the mobile terminal to stop high-temperature alarm operation;
and if so, stopping outputting the operation of the high-temperature alarm information.
Optionally, the first preset state comprises at least one of:
the temperature difference of the temperature value decrease exceeds a preset temperature difference value;
the time length of the temperature value reduction reaches a second preset time length;
the reduced temperature value is lower than a preset low-temperature threshold value which can trigger the client to end or start the monitoring process, and the preset low-temperature threshold value is lower than the preset high-temperature threshold value.
Optionally, the method further comprises:
and recording monitoring information in the monitoring process, wherein the monitoring information comprises at least one of an initial temperature value of the mobile terminal and an operation state value of each application program.
Optionally, after stopping the operation of outputting the high-temperature alarm information, the method further includes:
tracking the cooling process, and judging whether the temperature value is lower than the preset low-temperature threshold value;
and when the temperature value is lower than the preset low-temperature threshold value, clearing the recorded monitoring information and ending the monitoring process.
Optionally, the method further comprises:
providing a cooling button, wherein the cooling button comprises a one-key cooling button and/or a single cooling button corresponding to each target application program, the one-key cooling button is used for triggering each target application program to stop running, and the single cooling button is used for triggering the target application program corresponding to the single cooling button to stop running;
and when the trigger operation aiming at the cooling button is received, stopping running the target application program corresponding to the trigger operation, clearing the recorded monitoring information and finishing the monitoring process.
Optionally, separately counting respective running state values of at least one application currently running on the mobile terminal, including:
tracking a change curve of the temperature value, and determining a second temperature change state of the mobile terminal within a third preset time according to the change curve;
and when the second temperature change state reaches a second preset state capable of triggering the statistical operation of the running state value, respectively counting the running state value of at least one application program currently running on the mobile terminal.
Optionally, the second preset state includes at least one of:
the temperature value reaches the preset low-temperature threshold value;
and the change curve of the temperature value within the third preset time period is a continuous rising curve.
Optionally, determining, according to the running state value of each application program, a target application program that causes the mobile terminal to generate heat from the at least one application program, including:
judging whether an application program meeting preset conditions exists in the application programs according to the running state value of each application program, wherein the preset conditions comprise that the running state value reaches a preset state threshold value capable of causing the mobile terminal to generate heat;
if so, finding out the application program meeting the preset condition from the at least one application program to serve as a target application program causing the mobile terminal to generate heat;
if not, continuing to monitor the temperature value of the mobile terminal until the application programs meeting the preset conditions exist in the application programs.
Optionally, the operation state value includes at least one of a CPU occupancy, an accumulated operation time, a power consumption amount, and a consumed flow.
Optionally, separately counting respective running state values of at least one application currently running on the mobile terminal, including:
respectively counting the running state values of a plurality of processes currently running on the mobile terminal, and determining process identity identifications distributed by the mobile terminal for the processes;
acquiring a corresponding relation between a process identity of each process and an application identity of each application program, which is generated by the mobile terminal in advance, and determining the application identity of the application program corresponding to each process according to the corresponding relation and the process identity;
and accumulating the running state values of the processes corresponding to the same application identity, and determining the accumulated running state value as the running state value of the application program corresponding to the application identity.
Optionally, outputting high-temperature alarm information corresponding to the target application program includes:
displaying high-temperature alarm information corresponding to the target application program on a notification bar of the mobile terminal and/or a main page of the client; alternatively, the first and second electrodes may be,
and popping up an interface frame on a current interface of the mobile terminal, and displaying high-temperature alarm information corresponding to the target application program on the interface frame, wherein the size of the interface frame is smaller than that of the current interface.
Optionally, when the target application includes a plurality of target applications, outputting high-temperature alarm information corresponding to the target application, including:
sequencing the target application programs according to the sequence of the running state values of the target application programs from high to low;
and outputting high-temperature alarm information corresponding to each target application program according to the sequencing result.
Optionally, outputting high-temperature alarm information corresponding to the target application program includes:
judging whether the number of the target application programs exceeds a preset number or not;
if yes, selecting a plurality of target application programs from the plurality of target application programs from high to low according to the sorting result, and outputting high-temperature alarm information corresponding to the plurality of target application programs;
if not, outputting high-temperature alarm information corresponding to all target application programs.
According to another aspect of the present invention, there is provided a temperature monitoring apparatus for a mobile terminal, which is disposed at a client, and includes:
the monitoring module is suitable for monitoring the temperature value of the mobile terminal;
the statistical module is suitable for respectively counting the respective running state values of at least one application program currently running on the mobile terminal in the monitoring process;
the determining module is suitable for determining a target application program causing the mobile terminal to generate heat from the at least one application program according to the running state value of each application program when the temperature value is monitored to reach a preset high-temperature threshold value;
the output module is suitable for outputting high-temperature alarm information corresponding to the target application program, and the high-temperature alarm information is used for prompting a user that the target application program causes the temperature of the mobile terminal to be too high;
and the updating module is suitable for continuously monitoring the temperature value of the mobile terminal so as to determine a first temperature change state of the mobile terminal and update the high-temperature alarm information according to the first temperature change state.
Optionally, the update module is further adapted to:
when the first temperature change state is a heating state or a constant temperature state, judging whether the time length between the current time and the time of outputting the high-temperature alarm information last time reaches a first preset time length capable of triggering the client to update the high-temperature alarm information;
if so, re-counting the respective running state value of at least one application program currently running on the mobile terminal, and determining a new target application program causing the continuous temperature rise of the mobile terminal according to the running state value;
and updating the high-temperature alarm information according to the new target application program.
Optionally, the update module is further adapted to:
when the first temperature change state is a cooling state, judging whether the cooling state reaches a first preset state capable of triggering the mobile terminal to stop high-temperature alarm operation;
and if so, stopping outputting the operation of the high-temperature alarm information.
Optionally, the first preset state comprises at least one of:
the temperature difference of the temperature value decrease exceeds a preset temperature difference value;
the time length of the temperature value reduction reaches a second preset time length;
the reduced temperature value is lower than a preset low-temperature threshold value which can trigger the client to end or start the monitoring process, and the preset low-temperature threshold value is lower than the preset high-temperature threshold value.
Optionally, the apparatus further comprises:
and the recording module is suitable for recording monitoring information in the monitoring process, and the monitoring information comprises at least one of an initial temperature value of the mobile terminal and an operation state value of each application program.
Optionally, the apparatus further comprises:
the judging module is suitable for tracking the cooling process after stopping the operation of outputting the high-temperature alarm information and judging whether the temperature value is lower than the preset low-temperature threshold value or not;
and the clearing module is suitable for clearing the recorded monitoring information and ending the monitoring process when the temperature value is lower than the preset low-temperature threshold value.
Optionally, the apparatus further comprises:
the device comprises a providing module, a control module and a display module, wherein the providing module is suitable for providing cooling buttons, the cooling buttons comprise a one-key cooling button and/or a single cooling button corresponding to each target application program, the one-key cooling button is used for triggering each target application program to stop running, and the single cooling button is used for triggering the target application program corresponding to the single cooling button to stop running;
and the stopping module is suitable for stopping running the target application program corresponding to the triggering operation when the triggering operation aiming at the cooling button is received, clearing the recorded monitoring information and finishing the monitoring process.
Optionally, the statistics module is further adapted to:
tracking a change curve of the temperature value, and determining a second temperature change state of the mobile terminal within a third preset time according to the change curve;
and when the second temperature change state reaches a second preset state capable of triggering the statistical operation of the running state value, respectively counting the running state value of at least one application program currently running on the mobile terminal.
Optionally, the second preset state includes at least one of:
the temperature value reaches the preset low-temperature threshold value;
and the change curve of the temperature value within the third preset time period is a continuous rising curve.
Optionally, the determining module is further adapted to:
judging whether an application program meeting preset conditions exists in the application programs according to the running state value of each application program, wherein the preset conditions comprise that the running state value reaches a preset state threshold value capable of causing the mobile terminal to generate heat;
if so, finding out the application program meeting the preset condition from the at least one application program to serve as a target application program causing the mobile terminal to generate heat;
if not, continuing to monitor the temperature value of the mobile terminal until the application programs meeting the preset conditions exist in the application programs.
Optionally, the operation state value includes at least one of a CPU occupancy, an accumulated operation time, a power consumption amount, and a consumed flow.
Optionally, the statistics module is further adapted to:
respectively counting the running state values of a plurality of processes currently running on the mobile terminal, and determining process identity identifications distributed by the mobile terminal for the processes;
acquiring a corresponding relation between a process identity of each process and an application identity of each application program, which is generated by the mobile terminal in advance, and determining the application identity of the application program corresponding to each process according to the corresponding relation and the process identity;
and accumulating the running state values of the processes corresponding to the same application identity, and determining the accumulated running state value as the running state value of the application program corresponding to the application identity.
Optionally, the output module is further adapted to:
displaying high-temperature alarm information corresponding to the target application program on a notification bar of the mobile terminal and/or a main page of the client; alternatively, the first and second electrodes may be,
and popping up an interface frame on a current interface of the mobile terminal, and displaying high-temperature alarm information corresponding to the target application program on the interface frame, wherein the size of the interface frame is smaller than that of the current interface.
Optionally, the output module is further adapted to:
when the target application programs comprise a plurality of target application programs, sequencing the target application programs according to the sequence of the running state values of the target application programs from high to low;
and outputting high-temperature alarm information corresponding to each target application program according to the sequencing result.
Optionally, the output module is further adapted to:
judging whether the number of the target application programs exceeds a preset number or not;
if yes, selecting a plurality of target application programs from the plurality of target application programs from high to low according to the sorting result, and outputting high-temperature alarm information corresponding to the plurality of target application programs;
if not, outputting high-temperature alarm information corresponding to all target application programs.
According to another aspect of the present invention, there is provided a mobile terminal including a processor and a memory for storing a program for executing the temperature monitoring method of the mobile terminal described above, the processor being configured to execute the program stored in the memory.
By adopting the technical scheme provided by the embodiment of the invention, the respective running state values of at least one application program currently running on the mobile terminal can be respectively counted in the process of monitoring the temperature value of the mobile terminal, and when the monitored temperature value reaches the preset high-temperature threshold value, the target application program causing the mobile terminal to generate heat is determined from the at least one application program according to the running state values of the application programs, so that the mobile terminal can automatically determine the target application program causing the mobile terminal to generate heat when the temperature is too high, and a user can know the heat source causing the mobile terminal to have too high temperature through the high-temperature alarm information by outputting the high-temperature alarm information corresponding to the target application program, thereby facilitating the user to take corresponding cooling measures. In addition, this technical scheme is through the temperature value of continuous monitoring mobile terminal to determine mobile terminal's temperature change state, and then according to this temperature change state update high temperature alarm information, make mobile terminal can update at any time because of mobile terminal self temperature change for the high temperature alarm information of user's output, thereby make high temperature alarm effect more accurate, user's use experience is higher.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
The above and other objects, advantages and features of the present invention will become more apparent to those skilled in the art from the following detailed description of specific embodiments thereof, taken in conjunction with the accompanying drawings.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a schematic flow chart of a temperature monitoring method of a mobile terminal according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of step S102 in a temperature monitoring method of a mobile terminal according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of a method for monitoring the temperature of a mobile terminal according to a first embodiment of the present invention;
fig. 4 is a schematic interface diagram of outputting high-temperature alarm information in a temperature monitoring method of a mobile terminal according to a first embodiment of the present invention;
fig. 5 is a schematic flow chart of a method for monitoring the temperature of a mobile terminal according to a second embodiment of the present invention;
FIG. 6 is a schematic block diagram of a temperature monitoring apparatus of a mobile terminal according to one embodiment of the present invention;
fig. 7 is a schematic block diagram of a temperature monitoring apparatus of a mobile terminal according to another embodiment of the present invention;
fig. 8 is a block diagram illustrating a partial structure of a mobile phone related to a mobile terminal according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be 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 scope of the disclosure to those skilled in the art.
Fig. 1 is a schematic flow chart of a temperature monitoring method of a mobile terminal according to an embodiment of the present invention. The temperature monitoring method of the mobile terminal is applied to the client, and as shown in fig. 1, the method may generally include steps S101-S105:
and step S101, monitoring the temperature value of the mobile terminal.
Step S102, in the monitoring process, respectively counting the respective running state values of at least one application program currently running on the mobile terminal.
And step S103, when the monitored temperature value reaches the preset high-temperature threshold value, determining a target application program causing the mobile terminal to generate heat from at least one application program according to the running state value of each application program.
And step S104, outputting high-temperature alarm information corresponding to the target application program, wherein the high-temperature alarm information is used for prompting a user that the target application program causes the temperature of the mobile terminal to be overhigh.
And S105, continuously monitoring the temperature value of the mobile terminal to determine a first temperature change state of the mobile terminal, and updating the high-temperature alarm information according to the first temperature change state.
By adopting the technical scheme provided by the embodiment of the invention, the respective running state values of at least one application program currently running on the mobile terminal can be respectively counted in the process of monitoring the temperature value of the mobile terminal, and when the monitored temperature value reaches the preset high-temperature threshold value, the target application program causing the mobile terminal to generate heat is determined from the at least one application program according to the running state values of the application programs, so that the mobile terminal can automatically determine the target application program causing the mobile terminal to generate heat when the temperature is too high, and a user can know the heat source causing the mobile terminal to have too high temperature through the high-temperature alarm information by outputting the high-temperature alarm information corresponding to the target application program, thereby facilitating the user to take corresponding cooling measures. In addition, this technical scheme is through the temperature value of continuous monitoring mobile terminal to determine mobile terminal's temperature change state, and then according to this temperature change state update high temperature alarm information, make mobile terminal can update at any time because of mobile terminal self temperature change for the high temperature alarm information of user's output, thereby make high temperature alarm effect more accurate, user's use experience is higher.
In the above embodiment, the temperature monitoring method of the mobile terminal further includes the following steps: and recording monitoring information in the monitoring process, wherein the monitoring information comprises at least one of an initial temperature value of the mobile terminal and an operation state value of each application program. By recording the monitoring information in the monitoring process, the mobile terminal can well count the temperature change state of the mobile terminal and the operation state of each application program through the initial temperature value and/or the operation state value of each application program, and further the high-temperature alarm effect is more accurate.
The following provides a detailed description of the respective steps in the above examples.
Step S101 is first executed, i.e. the temperature value of the mobile terminal is monitored. In this step, a temperature value of the mobile terminal may be determined by monitoring a battery temperature of the mobile terminal and a CPU (Central Processing Unit) temperature; the temperature value of the mobile terminal can be monitored by configuring a special temperature monitoring module.
In the process of monitoring the temperature value of the mobile terminal, the respective operation state values of at least one application currently running on the mobile terminal are respectively counted (i.e. step S102). Wherein the operation state value comprises at least one of CPU occupancy rate, accumulated operation time, power consumption and consumed flow. As shown in fig. 2, the respective operation state values of at least one application currently running on the mobile terminal may be counted according to the following steps S201 to S203.
Step S201, respectively counting respective running state values of a plurality of processes currently running on the mobile terminal, and determining a process identity allocated by the mobile terminal to each process. Wherein the operation state value comprises at least one of CPU occupancy rate, accumulated operation time, power consumption and consumed flow.
Step S202, acquiring a corresponding relation between the process identity of each process and the application identity of each application program, which are generated by the mobile terminal in advance, and determining the application identity of the application program corresponding to each process according to the corresponding relation and the process identity.
Step S203, accumulating the running state values of the processes corresponding to the same application identifier, and determining the accumulated running state value as the running state value of the application program corresponding to the application identifier.
In this embodiment, the process ID may be a process ID (process ID, PID), which is a value used by most operating system kernels to uniquely identify the process. Once a process starts running, the mobile terminal assigns a unique process ID to the process. The application identity identification can be an application ID, wherein the application ID is a unique identification corresponding to each application when the enterprise developer calls the enterprise number interface, and a new application ID is configured for each new application by the background every time the new application is created. When the mobile terminal allocates the process ID to each process, a correspondence between the process ID of each process and the application ID of each application is generated in advance. When determining the running state value of the application program, the running state values of the process IDs corresponding to the application ID of the application program may be accumulated, and then the accumulated value may be determined as the running state value of the application program.
For example, the currently running processes on the mobile terminal include five processes, i.e., process 1, process 2, process 3, process 4, and process 5, where the process ID allocated by the mobile terminal to process 1 is 10001, the process ID allocated to process 2 is 10002, the process ID allocated to process 3 is 10003, the process ID allocated to process 4 is 10004, and the process ID allocated to process 5 is 10005. The mobile terminal firstly counts the respective running state values of the process 1, the process 2, the process 3, the process 4 and the process 5 respectively, and then obtains a corresponding relationship between the process ID of each process and the application ID of each application program, which is generated in advance by the mobile terminal, in the corresponding relationship, the process 1 with the process ID of 10001, the process 2 with the process ID of 10002 and the process 5 with the process ID of 10005 correspond to the process corresponding to the application program a, and the process 3 with the process ID of 10003 and the process 4 with the process ID of 10004 correspond to the application program B. Then, determining the application ID of the application program corresponding to each process according to the corresponding relation, wherein the determined result is that: the application ID of the application corresponding to process 1, process 2, and process 5 is application a, and the application ID of the application corresponding to process 3 and process 4 is application B. According to the above determination result, the running state values corresponding to the accumulation process 1, the accumulation process 2 and the accumulation process 5 are the running state values of the application program a, and the running state values corresponding to the accumulation process 3 and the accumulation process 4 are the running state values of the application program B.
Therefore, according to the embodiment, the running state values of the multiple processes currently running on the mobile terminal are respectively counted, and then the running state values of the applications are determined by accumulating the running state values of the processes corresponding to the same application identity, so that the mobile terminal can accurately and conveniently determine the running state values of the applications, and further find out the target application causing the heating of the mobile terminal for the user.
In one embodiment, the operation state value of each of the at least one application currently running on the mobile terminal may be further counted according to the following two steps:
the method comprises the steps of firstly, tracking a change curve of the temperature value, and determining a second temperature change state of the mobile terminal within a preset time according to the change curve. When tracking the change curve of the temperature value, the temperature value of the mobile terminal can be continuously monitored, and then the change curve of the temperature value is drawn according to the continuously monitored temperature value; and monitoring a plurality of discrete temperature values according to a preset time interval, and then drawing a change curve of the temperature values according to the plurality of discrete temperature values, wherein the shorter the time interval is, the more accurate the drawn change curve is.
And step two, when the second temperature change state reaches a second preset state capable of triggering the counting operation of the running state values, respectively counting the running state values of all application programs currently running on the mobile terminal. Wherein the second preset state comprises at least one of: the temperature value reaches a preset low-temperature threshold value, and the preset low-temperature threshold value is lower than a preset high-temperature threshold value; and the change curve of the temperature value in the third preset time period is a continuous rising curve. In this embodiment, setting the preset low temperature threshold lower than the preset high temperature threshold is equivalent to setting a stepping value, that is, when the temperature value of the mobile terminal is low (lower than the stepping value), the temperature value of the mobile terminal does not need to be monitored, so that unnecessary work performed by the mobile terminal is avoided. In addition, when the change curve of the temperature value within the third preset time period is a continuous rising curve, it indicates that the mobile terminal has a hidden danger that the temperature continuously rises to the preset high-temperature threshold, and therefore, the running state values of the application programs need to be counted under the situation so as to prepare for high-temperature alarm.
Next, step S103 is executed, that is, when the monitored temperature value reaches the preset high temperature threshold, a target application program causing the mobile terminal to generate heat is determined from at least one application program according to the running state value of each application program. The preset high-temperature threshold may be preset by a user, and when the preset high-temperature threshold is specifically set, the preset high-temperature threshold may be set according to different factors (such as current temperature, season, and the like) in the external environment. For example, the temperature in northern summer is high, so a user can set a high preset high-temperature threshold; the temperature in northeast winter is low, so the user can set a low preset high temperature threshold.
In one embodiment, step S103 may be performed as the following steps: judging whether an application program meeting preset conditions exists in each application program according to the running state value of each application program, wherein the preset conditions comprise that the running state value reaches a preset state threshold value capable of causing the mobile terminal to generate heat; if the application programs meeting the preset conditions exist in the application programs, finding out the application programs meeting the preset conditions from at least one application program as target application programs causing the mobile terminal to generate heat; if the application program meeting the preset condition does not exist in the application programs, it is indicated that the heating source causing the heating of the mobile terminal is not the application program and may be other external factors, such as solar irradiation, high temperature in the current environment, and the like. Since the operation state value includes at least one of CPU occupancy, accumulated operation time, power consumption, and consumed flow, the setting of the preset state threshold is different according to the operation state value, which results in different ways of determining the target application.
Specifically, when the operation state value includes the CPU occupancy rate, the preset state threshold may be set to the preset occupancy rate, and when the CPU occupancy rate of the application program reaches the preset occupancy rate, the application program is determined to be the target application program that causes the mobile terminal to generate heat. For example, if the preset occupancy rate is 5%, when the CPU occupancy rate of an application reaches 5%, the application may be determined to be a target application that causes heat generation of the mobile terminal.
When the running state value includes the accumulated running duration, the preset state threshold value can be set as the preset running duration, and when the accumulated running duration of the application reaches the preset running duration, the application is determined to be the target application causing the heating of the mobile terminal. For example, if the preset operation time period is 3 hours, when the accumulated operation time period of an application reaches 3 hours, it may be determined that the application is a target application causing heat generation of the mobile terminal. When the accumulated running time length is determined, in order to enable the mobile terminal to accurately determine the target application program, the accumulated running time length can be started when the temperature change state of the mobile terminal in the preset time length reaches the preset state. That is, when the temperature value of the mobile terminal reaches the preset low temperature threshold, or when the change curve of the temperature value within the preset time period is a continuous rising curve, the running time period of the application program starts to be accumulated. Of course, the running time of the application program can also be accumulated from the beginning of the running of the application program.
When the operation state value includes power consumption, the preset state threshold may be set to be preset power consumption, and when the power consumption of the application reaches the preset power consumption, the application is determined to be a target application causing the mobile terminal to generate heat. For example, if the preset power consumption amount is 10%, when the power consumption amount of an application reaches 10%, it may be determined that the application is a target application that causes heat generation of the mobile terminal. Wherein, the power consumption can be directly obtained from a process management system in the mobile terminal.
When the running state includes the consumed flow, the preset state threshold may be set to a preset flow value, and when the consumed flow of the application reaches the preset flow value, the application is determined to be a target application causing the mobile terminal to generate heat. For example, if the preset flow value is 100M, when the consumed flow of an application reaches 100M, it may be determined that the application is a target application causing heat generation of the mobile terminal. Since most applications on a mobile terminal consume traffic, it is also a very efficient method to determine the target application that causes heat generation of the mobile terminal by counting the consumed traffic of the applications. When the consumed flow is calculated, in order to enable the mobile terminal to accurately determine the target application program, the consumed flow can be accumulated from the time when the temperature change state of the mobile terminal within the preset time reaches the preset state. That is, when the temperature value of the mobile terminal reaches the preset low temperature threshold, or when the change curve of the temperature value within the preset time period is the continuous rising curve, the consumed flow of the application program starts to be accumulated. Of course, the consumed traffic of an application may also be accumulated from the beginning of its operation.
After the target application program is determined, continuing to execute step S104, that is, outputting high-temperature alarm information corresponding to the target application program, where the high-temperature alarm information is used to prompt the user that the target application program causes the temperature of the mobile terminal to be too high. Specifically, the output mode of the high-temperature alarm information may include at least one of the following modes:
the method comprises the steps that firstly, high-temperature alarm information of a target application program is displayed on a notification bar of a mobile terminal. When the user clicks the high-temperature alarm information on the notification bar, the user can directly enter the main page of the client executing the technical scheme, and further more detailed high-temperature alarm information is obtained on the main page of the client.
And secondly, displaying high-temperature alarm information corresponding to the target application program on the current main page of the mobile terminal. When the technical scheme is executed by a client installed on the mobile terminal, high-temperature alarm information corresponding to a target application program can be displayed on a main page of the client.
And thirdly, popping up an interface frame on the current interface of the mobile terminal, and displaying the high-temperature alarm information corresponding to the target application program on the interface frame, wherein the size of the interface frame is smaller than that of the current interface (namely a display screen of the mobile terminal).
In this embodiment, the target application may include one or more than one. When the target application programs comprise a plurality of target application programs, the mobile terminal can display the high-temperature alarm information corresponding to the target application programs in a list mode, and the target application programs are sequenced in the list. The sorting mode may be sorting according to a sequence of running state values of the target applications from high to low, where the running state values include at least one of CPU occupancy, cumulative running time, power consumption, and consumed flow.
In one embodiment, step S104 may also be performed as the following steps: judging whether the number of the target application programs exceeds a preset number or not; if the number of the target application programs exceeds the preset number, selecting a plurality of target application programs from high to low according to the sequencing result, and outputting high-temperature alarm information corresponding to the target application programs; and if the number does not exceed the preset number, outputting high-temperature alarm information corresponding to all target application programs. The sequencing result is a result of sequencing according to the sequence of the running state values of the target application programs from high to low, for example, the preset number is 3, and when the number of the target application programs is 5, 3 target application programs are selected from the 5 sequenced target application programs for high-temperature alarm; when the number of the target application programs is just 3 or less than 3, all the target application programs are subjected to high-temperature alarm. Therefore, the high-temperature alarm device can play a role in high-temperature alarm, can save the display space of the interface, and avoids the situation that the high-temperature alarm information cannot be clearly and completely output for a user due to insufficient space display.
In one embodiment, the high temperature alert information may include at least one of: the application program name corresponding to the target application program, the application program icon corresponding to the target application program and the running state value of the target application program. For example, if the target application is an XX game, the high-temperature alarm information corresponding to the target application may be displayed as follows: XX game, occupancy 10%. Therefore, the user can know which application program(s) currently cause the mobile terminal to generate heat through the high-temperature alarm information, and further take corresponding cooling measures.
Aiming at the cooling measure, the mobile terminal also provides a cooling button in the high-temperature alarm information, and the cooling button comprises a one-key cooling button and/or a single cooling button corresponding to each target application program. The mobile terminal comprises a one-key cooling button, a one-key cooling button and a control module, wherein the one-key cooling button is used for triggering the mobile terminal to cool all target application programs, namely triggering all the target application programs to stop running; the single cooling button is used for triggering the mobile terminal to cool a single target application program corresponding to the single cooling button, namely, the single cooling button is used for triggering the target application program corresponding to the single cooling button to stop running. And when the trigger operation aiming at the cooling button is received, stopping running the target application program corresponding to the trigger operation, clearing the recorded monitoring information and ending the monitoring process. In this embodiment, recorded monitoring information is cleared after the cooling process is executed, so that information obtained by monitoring next time is not affected by the recorded monitoring information, and therefore the monitoring information obtained by the mobile terminal in each monitoring process is more accurate, and finally, high-temperature alarm information output by a user is more accurate.
Specifically, when the triggering operation of the one-key cooling button is received, all target application programs are stopped to run, and high-temperature alarm information corresponding to all the target application programs is cleared. When all target application programs stop running, at least one of the following steps can be executed: closing all target application programs and releasing system resources occupied by all the target application programs. By stopping running all target application programs, the mobile terminal is not heated due to no application program on the mobile terminal, and the aim of cooling is well fulfilled.
When the triggering operation of any single cooling button is received, the target application program corresponding to the single cooling button is stopped to run, and the high-temperature alarm information corresponding to the target application program is cleared. In this case, the target application corresponding to the single un-triggered cool down button is still in the running state. Further, when the single target application stops running, at least one of the following steps may be performed: closing the single target application program and releasing the system resources occupied by the single target application program. The single target application program is stopped running by triggering the single cooling button, so that the mobile terminal can achieve the purpose of cooling by stopping running the target application program, and the application program which is currently unwilling to be interrupted by a user can continue running, thereby improving the use experience of the user.
After the high-temperature alarm information is output, step S105 is continuously executed, that is, the temperature value of the mobile terminal is continuously monitored to determine the first temperature change state of the mobile terminal, and the high-temperature alarm information is updated according to the first temperature change state. The first temperature change state can comprise a temperature rise state, a constant temperature state, a temperature drop state and the like, and the updating mode of the high-temperature alarm information is different according to different temperature change states.
When the first temperature change state is a temperature rise state or a constant temperature state, the mobile terminal does not execute any temperature reduction measure at the moment, and the temperature value of the mobile terminal is still higher than the preset high-temperature threshold value. Therefore, the above step S105 may be performed as the following steps: judging whether the time length between the current time and the time of outputting the high-temperature alarm information at the latest time reaches a first preset time length capable of triggering the client to update the high-temperature alarm information; if the time length between the current time and the time of outputting the high-temperature alarm information last time reaches a first preset time length, re-counting the respective running state values of at least one application program currently running on the mobile terminal, determining a new target application program causing the continuous temperature rise of the mobile terminal according to the running state values, and updating the high-temperature alarm information according to the new target application program; if the time length between the current time and the time of outputting the high-temperature alarm information last time does not reach the first preset time length, continuing to execute the judging operation until the time length between the current time and the time of outputting the high-temperature alarm information last time reaches the first preset time length. For example, the first preset time period is set to 10 minutes, and after the high-temperature alarm information is output, if the mobile terminal is continuously heated or is kept at a constant temperature all the time, the target application program is determined again every 10 minutes, and the high-temperature alarm information is updated. In the embodiment, the high-temperature alarm information is continuously updated, so that the mobile terminal can timely determine the accurate target application program according to the running state of the current application program, the situation that the target application program cannot be timely reminded due to the fact that a user closes or opens different application programs to cause the target application program to change is avoided, and the high-temperature alarm effect of the mobile terminal is more accurate.
When the first temperature change state is the cooling state, at this time, the user may have triggered the cooling button to cause the mobile terminal to perform the cooling operation, and therefore, the step S105 may be implemented as the following steps: judging whether the cooling state reaches a first preset state capable of triggering the mobile terminal to stop the high-temperature alarm operation or not; if the cooling state reaches a first preset state, stopping outputting the operation of the high-temperature alarm information; and if the cooling state does not reach the first preset state, continuing to execute the judgment operation until the cooling state of the mobile terminal reaches the first preset state.
Wherein the first preset state comprises at least one of:
(1) the temperature difference of the temperature value decrease exceeds a preset temperature difference value; for example, the preset temperature difference value is set to 4 degrees, and when the temperature value of the mobile terminal drops by more than 4 degrees, it may be determined that the cooling state reaches a first preset state capable of triggering the mobile terminal to stop the high temperature alarm operation.
(2) The time length of the temperature value reduction reaches a second preset time length; for example, the second preset time period is set to 10 minutes, and when the time period that the temperature value of the mobile terminal continuously decreases reaches 10 minutes, it may be determined that the cooling state reaches the first preset state that can trigger the mobile terminal to stop the high-temperature alarm operation.
(3) The reduced temperature value is lower than a preset low-temperature threshold value which can trigger the client to end or start the monitoring process, and the preset low-temperature threshold value is lower than a preset high-temperature threshold value; for example, the preset low temperature threshold is set to 35 degrees, and when the temperature value of the mobile terminal after the temperature drop is lower than 35 degrees, it may be determined that the cooling state reaches a first preset state capable of triggering the mobile terminal to stop the high temperature alarm operation.
If the cooling state reaches a first preset state, after the operation of outputting the high-temperature alarm information is stopped, the method further comprises the following steps: firstly, tracking a cooling process and judging whether a temperature value is lower than a preset low-temperature threshold value or not; and secondly, when the temperature value is lower than the preset low-temperature threshold value, clearing the recorded monitoring information and ending the monitoring process. In this embodiment, when the temperature value of the mobile terminal is lower than the preset low-temperature threshold, the recorded monitoring information can be cleared and the monitoring process is ended, so that the monitoring information recorded at this time does not affect the monitoring information obtained in the next monitoring process, and the mobile terminal can determine an accurate target application program in each monitoring process.
The following describes a method for monitoring the temperature of a mobile terminal according to the present invention with two specific embodiments.
Example one
In the first embodiment, the mobile terminal determines the target application program causing the heat generation of each application program by counting the CPU occupancy rate of the application program. As shown in fig. 3, the temperature monitoring method of the mobile terminal may be implemented as the following steps S301 to S309:
step S301, monitoring the temperature value of the mobile terminal, simultaneously respectively counting the CPU occupancy rates of a plurality of processes currently running on the mobile terminal, and determining the process identity distributed by the mobile terminal for each process.
In the step, the temperature value of the mobile terminal can be determined by monitoring the battery temperature and the CPU temperature of the mobile terminal; the temperature value of the mobile terminal can be monitored by configuring a special temperature monitoring module.
In the first embodiment, assuming that the currently running application programs include application a, application B, application C, and application D, the mobile terminal respectively counts the CPU occupancy rates of application a, application B, application C, and application D while monitoring the temperature value.
Step S302, acquiring the corresponding relation between the process ID of each process and the application ID of each application program generated by the mobile terminal in advance, and determining the application ID of the application program corresponding to each process according to the corresponding relation and the process ID.
Step S303, accumulating the CPU occupancy rates of the processes corresponding to the same application ID, and determining the accumulated CPU occupancy rates as the CPU occupancy rates of the application programs corresponding to the application ID.
Step S304, judging whether the temperature value of the mobile terminal reaches a preset high-temperature threshold value. If yes, go to step S305; if not, the process returns to step S301.
Step S305, determining whether there is an application program with a CPU occupancy rate reaching a preset occupancy rate in the currently running application programs. If yes, go to step S306; if not, the process returns to step S301.
The preset high-temperature threshold may be preset by a user, and when the preset high-temperature threshold is specifically set, the preset high-temperature threshold may be set according to different factors (such as current temperature, season, and the like) in the external environment. For example, the temperature in northern summer is high, so a user can set a high preset high-temperature threshold; the temperature in northeast winter is low, so the user can set a low preset high temperature threshold. In the first embodiment, assuming that the preset high temperature threshold is 40 degrees, when the temperature value of the mobile terminal reaches 40 degrees, it is determined whether an application program with a CPU occupancy rate reaching the preset occupancy rate exists in the currently running application programs. Assuming that the preset occupancy rate is 5%, when the CPU occupancy rate of an application reaches 5%, it is determined that the application is a target application causing heat generation of the mobile terminal.
And step S306, determining the application program with the CPU occupancy rate reaching the preset occupancy rate as a target application program.
In the first embodiment, it is assumed that the CPU occupancy rate of the current application a is 2%, the CPU occupancy rate of the application B is 3%, the CPU occupancy rate of the application C is 6%, and the CPU occupancy rate of the application D is 5%, and since the CPU occupancy rates of the application C and the application D have both reached the preset occupancy rate of 5%, the application C and the application D can be determined as the target application program.
And S307, outputting high-temperature alarm information corresponding to the target application program, wherein the high-temperature alarm information is used for prompting a user that the target application program causes the temperature of the mobile terminal to be overhigh.
In step S307, the output mode of the high temperature alarm information may include at least one of the following modes: and in the first mode, high-temperature alarm information corresponding to the target application program is displayed on a notification bar of the mobile terminal. When the user clicks the high-temperature alarm information on the notification bar, the user can directly enter the main page of the client executing the technical scheme, and further more detailed high-temperature alarm information is obtained on the main page of the client. And secondly, displaying high-temperature alarm information corresponding to the target application program on the current main page of the mobile terminal. When the technical scheme is executed by a client installed on the mobile terminal, high-temperature alarm information corresponding to a target application program can be displayed on a main page of the client. And thirdly, popping up an interface frame on the current interface of the mobile terminal, and displaying the high-temperature alarm information corresponding to the target application program on the interface frame, wherein the size of the interface frame is smaller than that of the current interface (namely a display screen of the mobile terminal). And, when the target application program includes a plurality of applications, such as the application C and the application D, the high-temperature alarm information corresponding to the application C and the application D may be displayed in a list, and the applications C and the applications D are sorted in the list. The sorting mode may be sorting according to the sequence of the respective CPU occupancy rates of the target application programs from high to low, and since the CPU occupancy rate of the application C is higher than that of the application D, the application C is located in front of the application D in the sorting.
In addition, in the first embodiment, the high-temperature alarm information may include at least one of an application name corresponding to the target application, an application icon corresponding to the target application, and a CPU occupancy rate of the target application. Still taking the target application as the application C and the application D as an example, as shown in fig. 4, an interface schematic diagram showing that the high-temperature alarm information of the application C and the application D is displayed on the notification bar 400 of the mobile terminal is shown, where the interface schematic diagram includes: the name and CPU occupancy of application C, and the name and CPU occupancy of application D. In fig. 4, the high-temperature alarm information of the application C and the application D further includes a button "one-key cooling", and when the user clicks the button "one-key cooling" in fig. 4, the mobile terminal stops running the application C and the application D, and removes the high-temperature alarm information corresponding to the application C and the application D, that is, the high-temperature alarm information corresponding to the application C and the application D is no longer displayed in the notification bar 400. When stopping running the application C and the application D, the application C and the application D can be closed, system resources occupied by the application C and the application D are released at the same time, and application programs causing heating of the mobile terminal are eliminated from the source.
Step S308, the temperature value of the mobile terminal is continuously monitored, so that the temperature change state of the mobile terminal is determined. The temperature change state can include a temperature rise state, a constant temperature state, a temperature drop state and the like, and the updating mode of the high-temperature alarm information is different according to different temperature change states.
And step S309, updating the high-temperature alarm information according to the temperature change state.
As can be seen from the first embodiment, according to the technical scheme provided by the embodiment of the present invention, in the process of monitoring the temperature value of the mobile terminal, the respective operating state values of at least one application program currently operating on the mobile terminal can be respectively counted, and when the monitored temperature value reaches the preset high temperature threshold, a target application program causing the mobile terminal to generate heat is determined from the at least one application program according to the operating state values of the application programs, so that the mobile terminal can automatically determine the target application program causing the mobile terminal to generate heat when the temperature is too high, and further, by outputting the high temperature alarm information corresponding to the target application program, a user can know a heat source causing the mobile terminal to have too high temperature through the high temperature alarm information, thereby facilitating the user to take corresponding cooling measures. In addition, when the operation status value is an accumulated operation time, power consumption or consumed flow, the method for monitoring the temperature of the mobile terminal is similar to that in the first embodiment, which is not listed here.
Example two
In the second embodiment, how to update the high temperature alarm information according to the temperature change state of the mobile terminal is mainly described in detail. As shown in fig. 5, the method comprises the following steps S501-S512:
step S501, after the high-temperature alarm information corresponding to the target application program is output, the temperature value of the mobile terminal is continuously monitored, so that the temperature change state of the mobile terminal is determined.
The temperature change state can include a temperature rise state, a constant temperature state, a temperature drop state and the like, and the updating mode of the high-temperature alarm information is different according to different temperature change states. When the temperature change state is a temperature rise state or a constant temperature state, continuing to execute the step S502; when the temperature change state is the cooling state, step S508 is executed.
Step S502, accumulating the time length of the current time and the time of outputting the high-temperature alarm information at the latest time.
Step S503, judging whether the accumulated time reaches a preset time which can trigger the client to update the high-temperature alarm information; if yes, go to step S504; if not, the process returns to step S502.
Step S504, the respective running state values of all currently running applications are counted again.
Wherein the operation state value comprises at least one of CPU occupancy rate, accumulated operation time, power consumption and consumed flow. In the second embodiment, if the preset time length is assumed to be 30 minutes, when the time length between the accumulated current time and the latest time for outputting the high-temperature alarm information reaches 30 minutes, the respective running state values of all currently running application programs are counted again.
Step S505, judging whether an application program meeting preset conditions exists according to the running state value which is counted again; if yes, go to step S506; if not, go to step S512.
The preset condition comprises that the running state value reaches a preset state threshold value capable of causing the mobile terminal to generate heat. When the running state value comprises the CPU occupancy rate, a preset state threshold value can be set as the preset occupancy rate, and when the CPU occupancy rate of the application program reaches the preset occupancy rate, the application program is determined to meet the preset condition; when the running state value comprises the accumulated running time length, setting a preset state threshold value as a preset running time length, and when the accumulated running time length of the application program reaches the preset running time length, determining that the application program meets a preset condition; when the running state value comprises the power consumption, the preset state threshold value can be set as the preset power consumption, and when the power consumption of the application program reaches the preset power consumption, the application program is determined to meet the preset condition; when the running state includes the consumed flow, the preset state threshold value can be set as a preset flow value, and when the consumed flow of the application reaches the preset flow value, the application is determined to meet the preset condition.
In step S506, the application program meeting the preset condition is determined to be the target application program causing the mobile terminal to generate heat.
And step S507, updating the high-temperature alarm information according to the redetermined target application program, and outputting the updated high-temperature alarm information.
Step S508, judging whether the cooling state reaches a preset state capable of triggering the mobile terminal to stop the high-temperature alarm operation; if yes, go to step S509; if not, continuing to judge the cooling state until the cooling state reaches a preset state capable of triggering the mobile terminal to stop the high-temperature alarm operation.
Step S509, the operation of outputting the high temperature alarm information is stopped.
The preset state capable of triggering the mobile terminal to stop the high-temperature alarm operation comprises at least one of the following states: the temperature difference of the temperature value decrease exceeds a preset temperature difference value, the time length of the temperature value decrease reaches a preset time length, and the decreased temperature value is lower than a preset low-temperature threshold value which can trigger the client to end or start the monitoring process. In the second embodiment, if the preset state is that the temperature difference of the temperature value drop reaches 4 degrees or the time length of the temperature value drop reaches 10 minutes, the operation of outputting the high-temperature alarm information is stopped.
Step S510, tracking the cooling process, and determining whether the temperature value is lower than a preset low temperature threshold. If yes, go to step S511; if not, continuing to track the cooling process.
And step S511, clearing the recorded monitoring information and ending the monitoring process.
And S512, monitoring the temperature value of the mobile terminal by the next wheel.
The second embodiment shows that by adopting the technical scheme provided by the embodiment of the invention, the temperature change state of the mobile terminal can be determined by continuously monitoring the temperature value of the mobile terminal, and then the high-temperature alarm information is updated according to the temperature change state, so that the high-temperature alarm information output by the mobile terminal for a user can be updated at any time due to the temperature change of the mobile terminal, the high-temperature alarm effect is more accurate, and the user experience is higher.
Fig. 6 is a schematic block diagram of a temperature monitoring apparatus of a mobile terminal according to an embodiment of the present invention. As shown in fig. 6, the apparatus is provided at a client, and includes:
a monitoring module 610 adapted to monitor a temperature value of the mobile terminal;
a counting module 620, coupled to the monitoring module 610, and adapted to count respective operating state values of at least one application currently running on the mobile terminal during the monitoring process;
a determining module 630, coupled to the counting module 620, adapted to determine, according to the running state value of each application program, a target application program causing the mobile terminal to generate heat from the at least one application program when the monitored temperature value reaches the preset high temperature threshold value;
the output module 640 is coupled with the determination module 630 and adapted to output high-temperature alarm information corresponding to the target application program, where the high-temperature alarm information is used to prompt a user that the temperature of the mobile terminal is too high due to the target application program;
the updating module 650, coupled to the output module 640, is adapted to continuously monitor the temperature value of the mobile terminal to determine a first temperature change state of the mobile terminal, and update the high temperature alarm information according to the first temperature change state.
In one embodiment, the update module 650 is further adapted to:
when the first temperature change state is a heating state or a constant temperature state, judging whether the time length of the current time from the time of outputting the high-temperature alarm information last time reaches a first preset time length capable of triggering the client to update the high-temperature alarm information;
if so, re-counting the respective running state value of at least one application program currently running on the mobile terminal, and determining a new target application program causing the continuous temperature rise of the mobile terminal according to the running state value;
and updating the high-temperature alarm information according to the new target application program.
In one embodiment, the update module 650 is further adapted to:
when the first temperature change state is a cooling state, judging whether the cooling state reaches a first preset state capable of triggering the mobile terminal to stop high-temperature alarm operation;
and if so, stopping outputting the operation of the high-temperature alarm information.
In one embodiment, the first preset state comprises at least one of:
the temperature difference of the temperature value decrease exceeds a preset temperature difference value;
the time length of the temperature value reduction reaches a second preset time length;
the reduced temperature value is lower than a preset low-temperature threshold value which can trigger the client to end or start the monitoring process, and the preset low-temperature threshold value is lower than a preset high-temperature threshold value.
In one embodiment, the above apparatus further comprises:
and the recording module is coupled with the counting module 620 and is suitable for recording the monitoring information in the monitoring process, wherein the monitoring information comprises at least one of an initial temperature value of the mobile terminal and an operation state value of each application program.
In one embodiment, as shown in fig. 7, the above apparatus further comprises:
the judging module 660 is coupled with the updating module 650 and is suitable for tracking the cooling process after stopping the operation of outputting the high-temperature alarm information and judging whether the temperature value is lower than a preset low-temperature threshold value or not;
the clearing module 670, coupled to the determining module 660, is adapted to clear the recorded monitoring information when the temperature value is lower than the preset low temperature threshold, and end the monitoring process.
In one embodiment, the above apparatus further comprises:
a providing module, coupled to the output module 640, adapted to provide a cooling button, where the cooling button includes a one-key cooling button and/or a single cooling button corresponding to each target application, where the one-key cooling button is used to trigger each target application to stop operating, and the single cooling button is used to trigger a target application corresponding to the single cooling button to stop operating;
and the stopping module is coupled with the providing module and is suitable for stopping running the target application program corresponding to the triggering operation when the triggering operation aiming at the cooling button is received, clearing the recorded monitoring information and finishing the monitoring process.
In one embodiment, the statistics module 620 is further adapted to:
tracking a change curve of the temperature value, and determining a second temperature change state of the mobile terminal within a third preset time according to the change curve;
and when the second temperature change state reaches a second preset state capable of triggering the statistical operation of the running state value, respectively counting the running state value of at least one application program currently running on the mobile terminal.
In one embodiment, the second preset state comprises at least one of:
the temperature value reaches a preset low-temperature threshold value;
and the change curve of the temperature value in the third preset time period is a continuous rising curve.
In one embodiment, the determination module 630 is further adapted to:
judging whether an application program meeting preset conditions exists in each application program according to the running state value of each application program, wherein the preset conditions comprise that the running state value reaches a preset state threshold value capable of causing the mobile terminal to generate heat;
if yes, finding out an application program meeting a preset condition from at least one application program to serve as a target application program causing the mobile terminal to generate heat;
if not, the temperature value of the mobile terminal is continuously monitored until the application programs meeting the preset conditions exist in the application programs.
In one embodiment, the operating state value includes at least one of CPU occupancy, cumulative operating time, power consumption, and consumed traffic.
In one embodiment, the statistics module 620 is further adapted to:
respectively counting the running state values of a plurality of processes currently running on the mobile terminal, and determining process identity identifications distributed by the mobile terminal for the processes;
acquiring a corresponding relation between a process identity of each process and an application identity of each application program, which are generated by a mobile terminal in advance, and determining the application identity of the application program corresponding to each process according to the corresponding relation and the process identity;
and accumulating the running state values of the processes corresponding to the same application identity, and determining the accumulated running state value as the running state value of the application program corresponding to the application identity.
In one embodiment, the output module 640 is further adapted to:
displaying high-temperature alarm information corresponding to a target application program on a notification bar of the mobile terminal and/or a main page of the client; alternatively, the first and second electrodes may be,
and popping up an interface frame on the current interface of the mobile terminal, and displaying the high-temperature alarm information corresponding to the target application program on the interface frame, wherein the size of the interface frame is smaller than that of the current interface.
In one embodiment, the output module 640 is further adapted to:
when the target application programs comprise a plurality of target application programs, sequencing the target application programs according to the sequence of the running state values of the target application programs from high to low;
and outputting high-temperature alarm information corresponding to each target application program according to the sequencing result.
In one embodiment, the output module 640 is further adapted to:
judging whether the number of the target application programs exceeds a preset number or not;
if yes, selecting a plurality of target application programs from the plurality of target application programs from high to low according to the sequencing result, and outputting high-temperature alarm information corresponding to the plurality of target application programs;
if not, outputting high-temperature alarm information corresponding to all target application programs.
By adopting the device provided by the embodiment of the invention, the respective running state values of at least one application program currently running on the mobile terminal can be respectively counted in the process of monitoring the temperature value of the mobile terminal, and when the monitored temperature value reaches the preset high-temperature threshold value, the target application program causing the mobile terminal to generate heat is determined from the at least one application program according to the running state values of the application programs, so that the mobile terminal can automatically determine the target application program causing the mobile terminal to generate heat when the temperature is too high, and a user can know the heat source causing the mobile terminal to have too high temperature through the high-temperature alarm information by outputting the high-temperature alarm information corresponding to the target application program, thereby facilitating the user to take corresponding cooling measures. In addition, this technical scheme is through the temperature value of continuous monitoring mobile terminal to determine mobile terminal's temperature change state, and then according to this temperature change state update high temperature alarm information, make mobile terminal can update at any time because of mobile terminal self temperature change for the high temperature alarm information of user's output, thereby make high temperature alarm effect more accurate, user's use experience is higher.
It should be understood by those skilled in the art that the temperature monitoring apparatus of the mobile terminal in fig. 6 and fig. 7 can be used to implement the temperature monitoring scheme of the mobile terminal described above, wherein the detailed description thereof should be similar to that of the method described above, and in order to avoid complexity, further description is omitted here.
Fig. 8 shows only a portion related to the embodiment of the present invention for convenience of description, and please refer to the method portion in the embodiment of the present invention for details that are not disclosed. The mobile terminal may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, etc., taking the terminal as the mobile phone as an example:
fig. 8 is a block diagram illustrating a partial structure of a mobile phone related to a mobile terminal according to an embodiment of the present invention. Referring to fig. 8, the handset includes: radio Frequency (RF) circuitry 810, memory 820, input unit 830, display unit 840, sensor 850, audio circuitry 860, wireless-fidelity (Wi-Fi) module 870, processor 880, and power supply 890. Those skilled in the art will appreciate that the handset configuration shown in fig. 8 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 8:
the RF circuit 810 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, for processing downlink information of a base station after receiving the downlink information to the processor 880; in addition, the data for designing uplink is transmitted to the base station. In general, RF circuit 810 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 810 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to global system for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The memory 820 may be used to store software programs and modules, and the processor 880 executes various functional applications and data processing of the cellular phone by operating the software programs and modules stored in the memory 820. The memory 820 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 820 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 830 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 830 may include a touch panel 831 and other input devices 832. The touch panel 831, also referred to as a touch screen, can collect touch operations performed by a user on or near the touch panel 831 (e.g., operations performed by the user on the touch panel 831 or near the touch panel 831 using any suitable object or accessory such as a finger, a stylus, etc.) and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 831 may include two portions, i.e., a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts it to touch point coordinates, and sends the touch point coordinates to the processor 880, and can receive and execute commands from the processor 880. In addition, the touch panel 831 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 830 may include other input devices 832 in addition to the touch panel 831. In particular, other input devices 832 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 840 may be used to display information input by the user or information provided to the user and various menus of the cellular phone. The display unit 840 may include a display panel 841, and the display panel 841 may be optionally configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, touch panel 831 can overlay display panel 841, and when touch panel 831 detects a touch operation thereon or nearby, communicate to processor 880 to determine the type of touch event, and processor 880 can then provide a corresponding visual output on display panel 841 based on the type of touch event. Although in fig. 8, the touch panel 831 and the display panel 841 are two separate components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 831 and the display panel 841 may be integrated to implement the input and output functions of the mobile phone.
The handset may also include at least one sensor 850, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 841 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 841 and/or the backlight when the mobile phone is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuitry 860, speaker 861, microphone 862 may provide an audio interface between the user and the handset. The audio circuit 860 can transmit the electrical signal converted from the received audio data to the speaker 861, and the electrical signal is converted into a sound signal by the speaker 861 and output; on the other hand, the microphone 862 converts collected sound signals into electrical signals, which are received by the audio circuit 860 and converted into audio data, which are then processed by the audio data output processor 880 and transmitted to, for example, another cellular phone via the RF circuit 810, or output to the memory 820 for further processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to send and receive e-mails, browse webpages, access streaming media and the like through the WiFi module 870, and provides wireless broadband Internet access for the user. Although fig. 8 shows WiFi module 870, it is understood that it does not belong to the essential constitution of the handset, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 880 is a control center of the mobile phone, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 820 and calling data stored in the memory 820, thereby integrally monitoring the mobile phone. Optionally, processor 880 may include one or more processing units; preferably, the processor 880 may integrate an application processor, which mainly handles operating systems, user interfaces, applications, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 880.
The handset also includes a power supply 890 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 880 via a power management system to manage charging, discharging, and power consumption.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which are not described herein.
In the embodiment of the present invention, the processor 880 included in the terminal further has the following functions:
monitoring a temperature value of the mobile terminal;
in the monitoring process, respectively counting the respective running state values of at least one application program currently running on the mobile terminal;
when the temperature value is monitored to reach a preset high-temperature threshold value, determining a target application program causing the mobile terminal to generate heat from the at least one application program according to the running state value of each application program;
outputting high-temperature alarm information corresponding to the target application program, wherein the high-temperature alarm information is used for prompting a user that the target application program causes the temperature of the mobile terminal to be too high;
and continuously monitoring the temperature value of the mobile terminal to determine a first temperature change state of the mobile terminal, and updating the high-temperature alarm information according to the first temperature change state.
Optionally, the processor 880 further has the following functions:
when the first temperature change state is a heating state or a constant temperature state, judging whether the time length between the current time and the time of outputting the high-temperature alarm information last time reaches a first preset time length capable of triggering the client to update the high-temperature alarm information;
if so, re-counting the respective running state value of at least one application program currently running on the mobile terminal, and determining a new target application program causing the continuous temperature rise of the mobile terminal according to the running state value;
and updating the high-temperature alarm information according to the new target application program.
Optionally, the processor 880 further has the following functions:
when the first temperature change state is a cooling state, judging whether the cooling state reaches a first preset state capable of triggering the mobile terminal to stop high-temperature alarm operation;
and if so, stopping outputting the operation of the high-temperature alarm information.
Optionally, the first preset state includes at least one of:
the temperature difference of the temperature value decrease exceeds a preset temperature difference value;
the time length of the temperature value reduction reaches a second preset time length;
the reduced temperature value is lower than a preset low-temperature threshold value which can trigger the client to end or start the monitoring process, and the preset low-temperature threshold value is lower than the preset high-temperature threshold value.
Optionally, the processor 880 further has the following functions:
and recording monitoring information in the monitoring process, wherein the monitoring information comprises at least one of an initial temperature value of the mobile terminal and an operation state value of each application program.
Optionally, the processor 880 further has the following functions:
tracking the cooling process, and judging whether the temperature value is lower than the preset low-temperature threshold value;
and when the temperature value is lower than the preset low-temperature threshold value, clearing the recorded monitoring information and ending the monitoring process.
Optionally, the processor 880 further has the following functions:
providing a cooling button, wherein the cooling button comprises a one-key cooling button and/or a single cooling button corresponding to each target application program, the one-key cooling button is used for triggering each target application program to stop running, and the single cooling button is used for triggering the target application program corresponding to the single cooling button to stop running;
and when the trigger operation aiming at the cooling button is received, stopping running the target application program corresponding to the trigger operation, clearing the recorded monitoring information and finishing the monitoring process.
Optionally, the processor 880 further has the following functions:
tracking a change curve of the temperature value, and determining a second temperature change state of the mobile terminal within a third preset time according to the change curve;
and when the second temperature change state reaches a second preset state capable of triggering the statistical operation of the running state value, respectively counting the running state value of at least one application program currently running on the mobile terminal.
Optionally, the second preset state includes at least one of the following:
the temperature value reaches the preset low-temperature threshold value;
and the change curve of the temperature value within the third preset time period is a continuous rising curve.
Optionally, the processor 880 further has the following functions:
judging whether an application program meeting preset conditions exists in the application programs according to the running state value of each application program, wherein the preset conditions comprise that the running state value reaches a preset state threshold value capable of causing the mobile terminal to generate heat;
if so, finding out the application program meeting the preset condition from the at least one application program to serve as a target application program causing the mobile terminal to generate heat;
if not, continuing to monitor the temperature value of the mobile terminal until the application programs meeting the preset conditions exist in the application programs.
Optionally, the operation state value includes at least one of a CPU occupancy rate, an accumulated operation time, power consumption, and a consumed flow.
Optionally, the processor 880 further has the following functions:
respectively counting the running state values of a plurality of processes currently running on the mobile terminal, and determining process identity identifications distributed by the mobile terminal for the processes;
acquiring a corresponding relation between a process identity of each process and an application identity of each application program, which is generated by the mobile terminal in advance, and determining the application identity of the application program corresponding to each process according to the corresponding relation and the process identity;
and accumulating the running state values of the processes corresponding to the same application identity, and determining the accumulated running state value as the running state value of the application program corresponding to the application identity.
Optionally, the processor 880 further has the following functions:
displaying high-temperature alarm information corresponding to the target application program on a notification bar of the mobile terminal and/or a main page of the client; alternatively, the first and second electrodes may be,
and popping up an interface frame on a current interface of the mobile terminal, and displaying high-temperature alarm information corresponding to the target application program on the interface frame, wherein the size of the interface frame is smaller than that of the current interface.
Optionally, the processor 880 further has the following functions:
sequencing the target application programs according to the sequence of the running state values of the target application programs from high to low;
and outputting high-temperature alarm information corresponding to each target application program according to the sequencing result.
Optionally, the processor 880 further has the following functions:
judging whether the number of the target application programs exceeds a preset number or not;
if yes, selecting a plurality of target application programs from the plurality of target application programs from high to low according to the sorting result, and outputting high-temperature alarm information corresponding to the plurality of target application programs;
if not, outputting high-temperature alarm information corresponding to all target application programs.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It will be appreciated by those skilled in the art that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components of the temperature monitoring apparatus of the mobile terminal according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
Thus, it should be appreciated by those skilled in the art that while a number of exemplary embodiments of the invention have been illustrated and described in detail herein, many other variations or modifications consistent with the principles of the invention may be directly determined or derived from the disclosure of the present invention without departing from the spirit and scope of the invention. Accordingly, the scope of the invention should be understood and interpreted to cover all such other variations or modifications.

Claims (29)

1. A temperature monitoring method of a mobile terminal is applied to a client, and the method comprises the following steps:
monitoring a temperature value of the mobile terminal;
in the monitoring process, respectively counting the respective running state values of at least one application program currently running on the mobile terminal;
when the temperature value is monitored to reach a preset high-temperature threshold value, determining a target application program causing the mobile terminal to generate heat from the at least one application program according to the running state value of each application program;
outputting high-temperature alarm information corresponding to the target application program, wherein the high-temperature alarm information is used for prompting a user that the target application program causes the temperature of the mobile terminal to be too high;
continuously monitoring the temperature value of the mobile terminal to determine a first temperature change state of the mobile terminal, and updating the high-temperature alarm information according to the first temperature change state; wherein
Updating the high-temperature alarm information according to the first temperature change state, including:
when the first temperature change state is a heating state or a constant temperature state, judging whether the time length between the current time and the time of outputting the high-temperature alarm information last time reaches a first preset time length capable of triggering the client to update the high-temperature alarm information;
if so, re-counting the respective running state value of at least one application program currently running on the mobile terminal, and determining a new target application program causing the continuous temperature rise of the mobile terminal according to the running state value;
and updating the high-temperature alarm information according to the new target application program.
2. The method of claim 1, wherein updating the high temperature alert information according to the first temperature change status comprises:
when the first temperature change state is a cooling state, judging whether the cooling state reaches a first preset state capable of triggering the mobile terminal to stop high-temperature alarm operation;
and if so, stopping outputting the operation of the high-temperature alarm information.
3. The method of claim 2, wherein the first preset state comprises at least one of:
the temperature difference of the temperature value decrease exceeds a preset temperature difference value;
the time length of the temperature value reduction reaches a second preset time length;
the reduced temperature value is lower than a preset low-temperature threshold value which can trigger the client to end or start the monitoring process, and the preset low-temperature threshold value is lower than the preset high-temperature threshold value.
4. The method of claim 3, wherein the method further comprises:
and recording monitoring information in the monitoring process, wherein the monitoring information comprises at least one of an initial temperature value of the mobile terminal and an operation state value of each application program.
5. The method according to claim 4, wherein after stopping the operation of outputting the high-temperature warning information, the method further comprises:
tracking the cooling process, and judging whether the temperature value is lower than the preset low-temperature threshold value;
and when the temperature value is lower than the preset low-temperature threshold value, clearing the recorded monitoring information and ending the monitoring process.
6. The method of claim 4, wherein the method further comprises:
providing a cooling button, wherein the cooling button comprises a one-key cooling button and/or a single cooling button corresponding to each target application program, the one-key cooling button is used for triggering each target application program to stop running, and the single cooling button is used for triggering the target application program corresponding to the single cooling button to stop running;
and when the trigger operation aiming at the cooling button is received, stopping running the target application program corresponding to the trigger operation, clearing the recorded monitoring information and finishing the monitoring process.
7. The method of claim 3, wherein separately counting respective operating state values of at least one application currently running on the mobile terminal comprises:
tracking a change curve of the temperature value, and determining a second temperature change state of the mobile terminal within a third preset time according to the change curve;
and when the second temperature change state reaches a second preset state capable of triggering the statistical operation of the running state value, respectively counting the running state value of at least one application program currently running on the mobile terminal.
8. The method of claim 7, wherein the second preset state comprises at least one of:
the temperature value reaches the preset low-temperature threshold value;
and the change curve of the temperature value within the third preset time period is a continuous rising curve.
9. The method of claim 1, wherein determining a target application program causing the mobile terminal to generate heat from the at least one application program according to the running state value of each application program comprises:
judging whether an application program meeting preset conditions exists in the application programs according to the running state value of each application program, wherein the preset conditions comprise that the running state value reaches a preset state threshold value capable of causing the mobile terminal to generate heat;
if so, finding out the application program meeting the preset condition from the at least one application program to serve as a target application program causing the mobile terminal to generate heat;
if not, continuing to monitor the temperature value of the mobile terminal until the application programs meeting the preset conditions exist in the application programs.
10. The method of claim 1, wherein the operational state values include at least one of CPU occupancy, cumulative operational time, power consumption, consumed traffic.
11. The method of claim 1, wherein separately counting respective operating state values of at least one application currently running on the mobile terminal comprises:
respectively counting the running state values of a plurality of processes currently running on the mobile terminal, and determining process identity identifications distributed by the mobile terminal for the processes;
acquiring a corresponding relation between a process identity of each process and an application identity of each application program, which is generated by the mobile terminal in advance, and determining the application identity of the application program corresponding to each process according to the corresponding relation and the process identity;
and accumulating the running state values of the processes corresponding to the same application identity, and determining the accumulated running state value as the running state value of the application program corresponding to the application identity.
12. The method of claim 1, wherein outputting high-temperature alarm information corresponding to the target application comprises:
displaying high-temperature alarm information corresponding to the target application program on a notification bar of the mobile terminal and/or a main page of the client; alternatively, the first and second electrodes may be,
and popping up an interface frame on a current interface of the mobile terminal, and displaying high-temperature alarm information corresponding to the target application program on the interface frame, wherein the size of the interface frame is smaller than that of the current interface.
13. The method according to any one of claims 1-12, wherein when the target application includes a plurality of target applications, outputting high-temperature alarm information corresponding to the target application includes:
sequencing the target application programs according to the sequence of the running state values of the target application programs from high to low;
and outputting high-temperature alarm information corresponding to each target application program according to the sequencing result.
14. The method of claim 13, wherein outputting high temperature alarm information corresponding to the target application comprises:
judging whether the number of the target application programs exceeds a preset number or not;
if yes, selecting a plurality of target application programs from the plurality of target application programs from high to low according to the sorting result, and outputting high-temperature alarm information corresponding to the plurality of target application programs;
if not, outputting high-temperature alarm information corresponding to all target application programs.
15. A temperature monitoring device of a mobile terminal is arranged at a client, and the device comprises:
the monitoring module is suitable for monitoring the temperature value of the mobile terminal;
the statistical module is suitable for respectively counting the respective running state values of at least one application program currently running on the mobile terminal in the monitoring process;
the determining module is suitable for determining a target application program causing the mobile terminal to generate heat from the at least one application program according to the running state value of each application program when the temperature value is monitored to reach a preset high-temperature threshold value;
the output module is suitable for outputting high-temperature alarm information corresponding to the target application program, and the high-temperature alarm information is used for prompting a user that the target application program causes the temperature of the mobile terminal to be too high;
the updating module is suitable for continuously monitoring the temperature value of the mobile terminal so as to determine a first temperature change state of the mobile terminal and update the high-temperature alarm information according to the first temperature change state;
wherein the update module is further adapted to:
when the first temperature change state is a heating state or a constant temperature state, judging whether the time length between the current time and the time of outputting the high-temperature alarm information last time reaches a first preset time length capable of triggering the client to update the high-temperature alarm information;
if so, re-counting the respective running state value of at least one application program currently running on the mobile terminal, and determining a new target application program causing the continuous temperature rise of the mobile terminal according to the running state value;
and updating the high-temperature alarm information according to the new target application program.
16. The apparatus of claim 15, wherein the update module is further adapted to:
when the first temperature change state is a cooling state, judging whether the cooling state reaches a first preset state capable of triggering the mobile terminal to stop high-temperature alarm operation;
and if so, stopping outputting the operation of the high-temperature alarm information.
17. The apparatus of claim 16, wherein the first preset state comprises at least one of:
the temperature difference of the temperature value decrease exceeds a preset temperature difference value;
the time length of the temperature value reduction reaches a second preset time length;
the reduced temperature value is lower than a preset low-temperature threshold value which can trigger the client to end or start the monitoring process, and the preset low-temperature threshold value is lower than the preset high-temperature threshold value.
18. The apparatus of claim 17, wherein the apparatus further comprises:
and the recording module is suitable for recording monitoring information in the monitoring process, and the monitoring information comprises at least one of an initial temperature value of the mobile terminal and an operation state value of each application program.
19. The apparatus of claim 18, wherein the apparatus further comprises:
the judging module is suitable for tracking a cooling process after stopping the operation of outputting the high-temperature alarm information and judging whether the temperature value is lower than the preset low-temperature threshold value or not;
and the clearing module is suitable for clearing the recorded monitoring information and ending the monitoring process when the temperature value is lower than the preset low-temperature threshold value.
20. The apparatus of claim 18, wherein the apparatus further comprises:
the device comprises a providing module, a control module and a display module, wherein the providing module is suitable for providing cooling buttons, the cooling buttons comprise a one-key cooling button and/or a single cooling button corresponding to each target application program, the one-key cooling button is used for triggering each target application program to stop running, and the single cooling button is used for triggering the target application program corresponding to the single cooling button to stop running;
and the stopping module is suitable for stopping running the target application program corresponding to the triggering operation when the triggering operation aiming at the cooling button is received, clearing the recorded monitoring information and finishing the monitoring process.
21. The apparatus of claim 17, wherein the statistics module is further adapted to:
tracking a change curve of the temperature value, and determining a second temperature change state of the mobile terminal within a third preset time according to the change curve;
and when the second temperature change state reaches a second preset state capable of triggering the statistical operation of the running state value, respectively counting the running state value of at least one application program currently running on the mobile terminal.
22. The apparatus of claim 21, wherein the second preset state comprises at least one of:
the temperature value reaches the preset low-temperature threshold value;
and the change curve of the temperature value within the third preset time period is a continuous rising curve.
23. The apparatus of claim 15, wherein the determination module is further adapted to:
judging whether an application program meeting preset conditions exists in the application programs according to the running state value of each application program, wherein the preset conditions comprise that the running state value reaches a preset state threshold value capable of causing the mobile terminal to generate heat;
if so, finding out the application program meeting the preset condition from the at least one application program to serve as a target application program causing the mobile terminal to generate heat;
if not, continuing to monitor the temperature value of the mobile terminal until the application programs meeting the preset conditions exist in the application programs.
24. The apparatus of claim 15, wherein the operational status value comprises at least one of CPU occupancy, cumulative operational duration, power consumption, consumed traffic.
25. The apparatus of any one of claims 15, wherein the statistics module is further adapted to:
respectively counting the running state values of a plurality of processes currently running on the mobile terminal, and determining process identity identifications distributed by the mobile terminal for the processes;
acquiring a corresponding relation between a process identity of each process and an application identity of each application program, which is generated by the mobile terminal in advance, and determining the application identity of the application program corresponding to each process according to the corresponding relation and the process identity;
and accumulating the running state values of the processes corresponding to the same application identity, and determining the accumulated running state value as the running state value of the application program corresponding to the application identity.
26. The apparatus of claim 15, wherein the output module is further adapted to:
displaying high-temperature alarm information corresponding to the target application program on a notification bar of the mobile terminal and/or a main page of the client; alternatively, the first and second electrodes may be,
and popping up an interface frame on a current interface of the mobile terminal, and displaying high-temperature alarm information corresponding to the target application program on the interface frame, wherein the size of the interface frame is smaller than that of the current interface.
27. The apparatus of any one of claims 15-26, wherein the output module is further adapted to:
when the target application programs comprise a plurality of target application programs, sequencing the target application programs according to the sequence of the running state values of the target application programs from high to low;
and outputting high-temperature alarm information corresponding to each target application program according to the sequencing result.
28. The apparatus of claim 27, wherein the output module is further adapted to:
judging whether the number of the target application programs exceeds a preset number or not;
if yes, selecting a plurality of target application programs from the plurality of target application programs from high to low according to the sorting result, and outputting high-temperature alarm information corresponding to the plurality of target application programs;
if not, outputting high-temperature alarm information corresponding to all target application programs.
29. A mobile terminal comprising a processor and a memory:
the memory for storing a program for performing the method of any one of claims 1 to 14,
the processor is configured to execute programs stored in the memory.
CN201611092038.1A 2016-12-01 2016-12-01 Temperature monitoring method and device of mobile terminal and mobile terminal Active CN106844135B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611092038.1A CN106844135B (en) 2016-12-01 2016-12-01 Temperature monitoring method and device of mobile terminal and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611092038.1A CN106844135B (en) 2016-12-01 2016-12-01 Temperature monitoring method and device of mobile terminal and mobile terminal

Publications (2)

Publication Number Publication Date
CN106844135A CN106844135A (en) 2017-06-13
CN106844135B true CN106844135B (en) 2020-03-31

Family

ID=59146092

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611092038.1A Active CN106844135B (en) 2016-12-01 2016-12-01 Temperature monitoring method and device of mobile terminal and mobile terminal

Country Status (1)

Country Link
CN (1) CN106844135B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108490913B (en) * 2018-03-22 2020-12-22 深圳市沃特沃德股份有限公司 Method and device for controlling temperature of vehicle-mounted system
CN110515790A (en) * 2018-05-21 2019-11-29 重庆理工大学 Terminal temperature prediction and optimization system and method
CN113252114B (en) * 2021-06-11 2023-09-29 中国煤炭科工集团太原研究院有限公司 Internal environment state monitoring method and device for flameproof electrical equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104267995A (en) * 2014-09-30 2015-01-07 北京金山安全软件有限公司 Application processing method and device and terminal
US8988115B2 (en) * 2012-06-04 2015-03-24 Samsung Electronics Co., Ltd. Electronic device and method for controlling temperature thereof
CN105376378A (en) * 2015-10-20 2016-03-02 湖南创研科技股份有限公司 Method and system for monitoring heat generation rate of smart phone, and smart phone
CN105653418A (en) * 2014-11-11 2016-06-08 中兴通讯股份有限公司 Terminal, terminal control method and terminal control device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8988115B2 (en) * 2012-06-04 2015-03-24 Samsung Electronics Co., Ltd. Electronic device and method for controlling temperature thereof
CN104267995A (en) * 2014-09-30 2015-01-07 北京金山安全软件有限公司 Application processing method and device and terminal
CN105653418A (en) * 2014-11-11 2016-06-08 中兴通讯股份有限公司 Terminal, terminal control method and terminal control device
CN105376378A (en) * 2015-10-20 2016-03-02 湖南创研科技股份有限公司 Method and system for monitoring heat generation rate of smart phone, and smart phone

Also Published As

Publication number Publication date
CN106844135A (en) 2017-06-13

Similar Documents

Publication Publication Date Title
CN107272872B (en) Power saving control method and related product
CN103024205B (en) Method, device and terminal for controlling power
CN106250223B (en) Background process management method and terminal equipment
CN107292237B (en) Fingerprint acquisition method and related product
CN107368400B (en) CPU monitoring method and device, computer readable storage medium and mobile terminal
CN104383681B (en) Method for controlling game program, device and mobile terminal
CN110572776B (en) Method for dividing safety area, terminal and storage medium
CN105830016B (en) Power management method and power management device for user equipment
CN109144232B (en) Process processing method and device, electronic equipment and computer readable storage medium
CN103699409B (en) Awakening state switching-in method, device and system for electronic device
CN106055079B (en) The management method and device of a kind of central processing unit
CN106294079B (en) A kind of information prompting method and device
CN108334345B (en) Application processing method and device, readable storage medium and mobile terminal
CN107577508B (en) Application processing method and device, readable storage medium and mobile terminal
CN107193435B (en) Processing method and device for task window and mobile terminal
CN106844135B (en) Temperature monitoring method and device of mobile terminal and mobile terminal
CN112703714A (en) Application program processing method and device, computer equipment and computer readable storage medium
CN107402783A (en) The management control method and user terminal of a kind of background application
CN107317918B (en) Parameter setting method and related product
CN106507482A (en) A kind of network locating method and terminal device
US10324134B2 (en) Method and device for ascertaining required charging time
CN106850942B (en) Temperature monitoring method and device of mobile terminal and mobile terminal
CN107256383B (en) Fingerprint acquisition method and device, related terminal equipment and readable storage medium
CN106055237A (en) Swiping acceleration response method and equipment
CN108668016B (en) Information processing method, device, mobile terminal and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20170725

Address after: 100102, 18 floor, building 2, Wangjing street, Beijing, Chaoyang District, 1801

Applicant after: BEIJING ANYUN SHIJI SCIENCE AND TECHNOLOGY CO., LTD.

Address before: 100088 Beijing city Xicheng District xinjiekouwai Street 28, block D room 112 (Desheng Park)

Applicant before: Beijing Qihu Technology Co., Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant