CN111026254A - Temperature control method, temperature control device, storage medium and electronic equipment - Google Patents

Temperature control method, temperature control device, storage medium and electronic equipment Download PDF

Info

Publication number
CN111026254A
CN111026254A CN201911253108.0A CN201911253108A CN111026254A CN 111026254 A CN111026254 A CN 111026254A CN 201911253108 A CN201911253108 A CN 201911253108A CN 111026254 A CN111026254 A CN 111026254A
Authority
CN
China
Prior art keywords
preset
temperature control
temperature
electronic equipment
control strategy
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.)
Pending
Application number
CN201911253108.0A
Other languages
Chinese (zh)
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201911253108.0A priority Critical patent/CN111026254A/en
Publication of CN111026254A publication Critical patent/CN111026254A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/20Cooling means
    • G06F1/206Cooling means comprising thermal management
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses a temperature control method, a device, a storage medium and an electronic device, wherein the temperature control method comprises the following steps: acquiring the current temperature of the electronic equipment; if the current temperature is larger than the temperature threshold, acquiring a foreground application identifier and a functional state corresponding to the foreground application; determining a first target temperature control strategy from a plurality of first preset temperature control strategies according to the foreground application identifier and the function state, wherein the first preset temperature control strategies corresponding to different preset function states of the same preset application are different; and controlling the temperature of the electronic equipment based on the first target temperature control strategy so as to reduce the current temperature of the electronic equipment. According to the temperature control scheme provided by the embodiment, the first target temperature control strategy is determined by the foreground application identifier and the functional state corresponding to the foreground application together, so that the first target temperature control strategy can be more attached to the current state of the electronic equipment, and the temperature control effect is improved.

Description

Temperature control method, temperature control device, storage medium and electronic equipment
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a temperature control method and apparatus, a storage medium, and an electronic device.
Background
With the continuous development of the terminal, the functions of the terminal are more and more comprehensive. The user can realize a plurality of functions such as a call function, a camera function, a recording function, a navigation function, a shopping function and the like through the terminal. This is convenient for the user to use and at the same time, it is easy to cause the terminal temperature to be too high. In the related art, the terminal has a single temperature control mode and a poor temperature control effect. For example, the terminal directly performs temperature control by reducing the chip frequency, and the method is single and the temperature control effect is not good.
Disclosure of Invention
The embodiment of the application provides a temperature control method, a temperature control device, a storage medium and an electronic device, which can enable a first target temperature control strategy to be more fit with the current state of the electronic device, and improve the temperature control effect.
In a first aspect, an embodiment of the present application provides a temperature control method, including:
acquiring the current temperature of the electronic equipment;
if the current temperature is larger than the temperature threshold, acquiring a foreground application identifier and a functional state corresponding to the foreground application;
determining a first target temperature control strategy from a plurality of first preset temperature control strategies according to the foreground application identifier and the function state, wherein the first preset temperature control strategies corresponding to different preset function states of the same preset application are different;
and controlling the temperature of the electronic equipment based on the first target temperature control strategy so as to reduce the current temperature of the electronic equipment.
In a second aspect, an embodiment of the present application provides a temperature control device, including:
the first acquisition module is used for acquiring the current temperature of the electronic equipment;
the second acquisition module is used for acquiring a foreground application identifier and a functional state corresponding to the foreground application if the current temperature is greater than the temperature threshold;
the first determining module is used for determining a first target temperature control strategy from a plurality of first preset temperature control strategies according to the foreground application identifier and the function state, wherein the first preset temperature control strategies corresponding to different preset function states of the same preset application are different;
and the first control module is used for controlling the temperature of the electronic equipment based on the first target temperature control strategy so as to reduce the current temperature of the electronic equipment.
In a third aspect, a storage medium is provided in this application, and a computer program is stored thereon, and when the computer program runs on a computer, the computer is caused to execute a temperature control method as provided in any of the embodiments of the application.
In a fourth aspect, an electronic device provided in an embodiment of the present application includes a processor and a memory, where the memory has a computer program, and the processor is configured to execute the temperature control method provided in any embodiment of the present application by calling the computer program.
According to the temperature control scheme provided by the embodiment of the application, when the current temperature of the electronic equipment is greater than the temperature threshold value, the first target temperature control strategy is determined by combining the foreground application identifier and the functional state corresponding to the foreground application, and the temperature of the electronic equipment is controlled based on the first target temperature control strategy so as to reduce the current temperature of the electronic equipment. This kind of temperature control mode, because first target temperature control strategy is confirmed by the function state that foreground applied sign and foreground applied correspond jointly, can make first target temperature control strategy more laminate electronic equipment's current state to improve the temperature control effect.
Drawings
The technical solutions and advantages of the present application will become apparent from the following detailed description of specific embodiments of the present application when taken in conjunction with the accompanying drawings.
Fig. 1 is a first flowchart of a temperature control method according to an embodiment of the present disclosure.
Fig. 2 is a second flowchart of a temperature control method according to an embodiment of the present disclosure.
Fig. 3 is a third flow chart of a temperature control method according to an embodiment of the present disclosure.
Fig. 4 is a schematic structural diagram of a temperature control device according to an embodiment of the present application.
Fig. 5 is a schematic view of a first structure of an electronic device according to an embodiment of the present application.
Fig. 6 is a second structural schematic diagram of an electronic device provided in the embodiment of the present application.
Detailed Description
The following description is based on illustrated embodiments of the application and should not be taken as limiting the application with respect to other embodiments that are not detailed herein. The term "module" as used herein may be considered a software object executing on the computing system. The various modules, engines, and services herein may be considered as objects of implementation on the computing system.
The embodiment of the application provides a temperature control method, and an execution main body of the temperature control method can be the temperature control device provided by the embodiment of the application or an electronic device integrated with the temperature control device. The electronic device may be a smart phone, a tablet computer, a Personal Digital Assistant (PDA), or the like.
The following is a detailed description of the analysis.
Referring to fig. 1, fig. 1 is a first schematic flow chart of a temperature control method according to an embodiment of the present application, where the temperature control method includes the following steps:
101. the current temperature of the electronic device is acquired.
In the embodiment of the application, when the electronic equipment detects that the electronic equipment is in the running state, the current temperature can be acquired in real time. Wherein the current temperature may refer to an outer surface temperature of the electronic device housing. The current temperature may also refer to the temperature of a component in the electronic device, for example, the current temperature may be the battery temperature detected by a temperature sensor. It is understood that obtaining the current temperature of the electronic device is a continuous process.
In addition, the embodiment of the present application is not particularly limited as to the manner of obtaining the temperature of the outer surface. For example, the electronic device may obtain the temperature of the outer surface by a temperature sensor disposed on the outer surface of the housing thereof.
102. And if the current temperature is greater than the temperature threshold, acquiring a foreground application identifier and a functional state corresponding to the foreground application.
In the embodiment of the application, after the current temperature is obtained, the electronic device obtains the temperature threshold value, and compares the current temperature with the temperature threshold value. If the current temperature is greater than the temperature threshold, it is determined that the electronic device needs to perform temperature control, and the electronic device can determine the foreground application, obtain a foreground application identifier corresponding to the foreground application, and obtain a functional state corresponding to the foreground application. If the current temperature is less than or equal to the temperature threshold, it is determined that the electronic device does not need to perform temperature control, and the electronic device does not react to the temperature control.
The temperature threshold is preset in the electronic device, and may be a fixed value or a variable value. The temperature threshold may be set autonomously by a user or by the electronic device according to a certain rule.
In some embodiments, when obtaining the temperature threshold, the electronic device obtains an ambient temperature, and obtains the temperature threshold according to the ambient temperature, wherein when the ambient temperature is normal (e.g., -10 degrees celsius to 45 degrees celsius), the ambient temperature is positively correlated with the temperature threshold.
In some embodiments, when obtaining the temperature threshold, the electronic device obtains an average temperature of a location where the electronic device is located, and the average temperature is used as the temperature threshold, and the average temperature may be an average temperature in the day, an average temperature in the month, an average temperature in the season, or the like.
All applications installed by the electronic equipment in the scheme have unique application identification. For example, each application has its application ID as an application identification.
When the electronic equipment is in a running state, the applications activated by the electronic equipment comprise foreground applications and background applications. And when the electronic equipment is in a running state, only one foreground application of the electronic equipment is used, and one or more background applications can be used.
In addition, it should be noted that, in the solution, all applications installed in the electronic device each include at least one functional state. At any time when the electronic device is in the running state, the foreground application may only run one functional state, that is, only one functional state corresponding to the acquired foreground application is obtained.
103. And determining a first target temperature control strategy from a plurality of first preset temperature control strategies according to the foreground application identifier and the functional state, wherein the first preset temperature control strategies corresponding to different preset functional states are different for the same preset application.
In this application embodiment, after acquiring the foreground application identifier and the functional state corresponding to the foreground application, the electronic device may determine the first target temperature control policy from the plurality of first preset temperature control policies according to the functional state corresponding to the foreground application identifier and the foreground application. The electronic equipment is preset with a plurality of first preset temperature control strategies, and each first preset temperature control strategy is determined by a preset application identifier of a preset application and a preset function state of the preset application. The first preset temperature control strategies corresponding to different preset functional states are different for the same preset application.
On the one hand, the first preset temperature control strategies corresponding to different preset functional states are different for the same preset application, and the different first preset temperature control strategies can refer to different temperature control modes. For example, when the preset function state of the preset application a is a video call, the first preset temperature control strategy is to reduce the frequency of the graphics processor, and when the preset function state of the preset application a is a voice call, the first preset temperature control strategy is to reduce the display brightness of the display screen.
On the other hand, the first preset temperature control strategies corresponding to different preset functional states are different for the same preset application, and the different first preset temperature control strategies can indicate different temperature control degrees. For example, assuming that the maximum display brightness of the display screen is 100, when the preset application B is in the preset functional state of editing pictures, the first preset temperature control policy is to reduce the display brightness of the display screen by 30, and when the preset application B is in the preset functional state of viewing pictures, the first preset temperature control policy is to reduce the display brightness of the display screen by 15.
104. And controlling the temperature of the electronic equipment based on the first target temperature control strategy so as to reduce the current temperature of the electronic equipment.
In the embodiment of the application, after the first target temperature control strategy is determined from the plurality of first preset temperature control strategies according to the foreground application identifier and the functional state corresponding to the foreground application, the electronic device can perform temperature control according to the first target temperature control strategy, so that the current temperature of the electronic device is reduced. It can be understood that the foreground application is in different functional states, the respective obtained first target temperature control strategies are different, and the temperature control operations executed by the electronic device are also different.
It should be noted that, if the temperature control strategy is determined only according to the current application identifier and temperature control is performed according to the temperature control strategy, there is a defect that the temperature control effect is not good due to unreasonable temperature control strategy. For example, the current application is an instant messaging application C, which includes 2 functional states: video chat, viewing messages. Whether the application C is in the function state of video chat or the function state of viewing messages, the temperature control strategy determined according to the application identifier of the application C is to reduce the frequency of the central processing unit, and the temperature control is carried out by reducing the frequency of the central processing unit according to the temperature control strategy. If the application C is in the function state of checking the message, the central processing unit mainly generates heat of the electronic equipment at the moment, and the current temperature of the electronic equipment can be reduced by controlling the temperature according to the mode. However, if the application C is in the functional state of video chat, the camera module and the graphic processor mainly generate heat for the electronic device at this time, and the temperature control is performed in the above manner, so that the current temperature of the electronic device cannot be reduced or is reduced very little.
As can be seen from the above, in the temperature control method provided in this embodiment of the application, when the current temperature of the electronic device is greater than the temperature threshold, the electronic device determines the first target temperature control policy by combining the foreground application identifier and the functional state corresponding to the foreground application, and performs temperature control based on the first target temperature control policy, so as to reduce the current temperature of the electronic device. The first target temperature control strategy is determined by the foreground application identifier and the functional state corresponding to the foreground application together, so that the first target temperature control strategy can be more attached to the current state of the electronic equipment, and the temperature control effect is improved.
Referring to fig. 2, fig. 2 is a second flow chart of a temperature control method according to an embodiment of the present disclosure, where the temperature control method includes:
201. acquiring the current temperature of the electronic equipment, wherein the current temperature is the outer surface temperature of the electronic equipment.
In the embodiment of the application, when the electronic equipment detects that the electronic equipment is in the running state, the outer surface temperature of the shell of the electronic equipment can be acquired in real time, and the outer surface temperature is used as the current temperature of the electronic equipment. It is understood that obtaining the current temperature of the electronic device is a continuous process.
In some embodiments, when obtaining the current temperature of the electronic device, the electronic device may obtain respective temperatures of the plurality of hardware, obtaining a plurality of temperatures; and calculating the outer surface temperature of the electronic equipment according to the temperatures, and taking the outer surface temperature as the current temperature of the electronic equipment. The embodiments of the present application are not particularly limited to hardware of an electronic device.
In some embodiments, in obtaining the current temperature of the electronic device, the electronic device may obtain a plurality of internal surface temperatures of the electronic device housing; and calculating the outer surface temperature of the electronic equipment according to the plurality of inner surface temperatures, and taking the outer surface temperature as the current temperature of the electronic equipment. The mode of acquiring the temperature of the outer surface can avoid the reduction of the aesthetic property of the electronic equipment caused by the arrangement of the temperature sensor on the outer surface of the electronic equipment.
In some embodiments, when obtaining the current temperature of the electronic device, the electronic device may obtain the output power of the plurality of hardware, calculate the external surface temperature of the electronic device according to the output power of the plurality of hardware, and take the external surface temperature as the current temperature of the electronic device. The mode of acquiring the temperature of the outer surface can also avoid the problem that the aesthetic property of the electronic equipment is reduced because the temperature sensor is arranged on the outer surface of the electronic equipment.
202. And if the current temperature is greater than the temperature threshold, acquiring a foreground application identifier and a functional state corresponding to the foreground application.
In the embodiment of the application, after the current temperature is obtained, the electronic device obtains the temperature threshold value, and compares the current temperature with the temperature threshold value. If the current temperature is greater than the temperature threshold, it is determined that the electronic device needs to perform temperature control, and the electronic device can determine the foreground application, obtain a foreground application identifier corresponding to the foreground application, and obtain a functional state corresponding to the foreground application. If the current temperature is less than or equal to the temperature threshold, it is determined that the electronic device does not need to perform temperature control, and the electronic device does not react to the temperature control.
When the electronic equipment is in a running state, the applications activated by the electronic equipment comprise foreground applications and background applications. And at any time when the electronic equipment is in a running state, only one foreground application of the electronic equipment is used, and one or more background applications can be used.
In addition, it should be noted that, in the solution, all applications installed in the electronic device each include at least one functional state. At any time when the electronic device is in the running state, the foreground application may only run one functional state, that is, only one functional state corresponding to the acquired foreground application is obtained.
In some embodiments, the electronic device may represent the functional state of an application by its interactive interface name.
203. And matching the foreground application identifier and the functional state with a plurality of first preset states in a white list, wherein each first preset state is composed of a preset application identifier of one preset application and one preset functional state of the preset application.
In the embodiment of the application, after the foreground application identifier and the functional state corresponding to the foreground application are obtained, the electronic device can match the foreground application identifier and the functional state with a plurality of first preset states in a white list, the first preset states of the foreground application identifier, which are successfully matched and the functional state, are successfully matched, and the first preset states of other conditions are unsuccessfully matched.
The electronic device presets a white list, a plurality of different first preset states are stored in the white list, and each first preset state corresponds to a first preset temperature control strategy, as shown in table 1 below. The first preset state comprises a preset application identifier of a preset application and a preset function state of the preset application. The corresponding first preset temperature control strategies are different for the same preset application identifier and different preset functional states, that is, the corresponding first preset temperature control strategies for the same preset application in different preset functional states are different.
TABLE 1
Figure BDA0002309580640000071
In some embodiments, when matching the foreground application identifier and the functional state with the plurality of first preset states in the white list, the electronic device may match the foreground application identifier with the preset application identifiers in the plurality of first preset states to obtain a first preset state successfully matched with the foreground application identifier, and then match the functional state corresponding to the foreground application with the preset functional state in the first preset state successfully matched with the foreground application identifier to obtain the first preset state successfully matched with the foreground application identifier and the functional state corresponding to the foreground application, and use the first preset state as the first preset state successfully matched with the first preset state.
For example, assume a white list as in table 1 above, that the foreground application identification of the foreground application is "5016145", and the corresponding functional state of the foreground application is "view message". When matching "5016145" and "check message" with a plurality of first preset states in the white list, the electronic device may match "5016145" with preset application identifiers in the plurality of first preset states to obtain 3 first preset states successfully matched with "5016145", and then match "check message" with preset function states in the 3 first preset states to obtain a first preset state successfully matched with a foreground application identifier and successfully matched with a function state corresponding to the foreground application, and use the first preset state as the first preset state successfully matched.
204. And if the first preset state which is successfully matched exists, acquiring a first preset temperature control strategy corresponding to the first preset state which is successfully matched from the white list.
In the embodiment of the application, after matching the foreground application identifier and the functional state with the plurality of first preset states in the white list, if a first preset state successfully matched with the foreground application identifier and successfully matched with the functional state corresponding to the foreground application exists, that is, the first preset state successfully matched exists, the electronic device obtains a first preset temperature control strategy corresponding to the first preset state successfully matched from the white list.
205. And taking the first preset temperature control strategy corresponding to the successfully matched first preset state as a first target temperature control strategy.
In the embodiment of the application, after acquiring a first preset temperature control strategy corresponding to a successfully matched first preset state from a white list, the electronic device takes the acquired first preset temperature control strategy as a first target temperature control strategy. The first target temperature control strategy is a policy for temperature control of the electronic equipment. It is understood that the first target temperature control strategy is determined by the application identifier of the current application and the corresponding functional state of the current application. Because the first target temperature control strategy of the scheme is determined by the foreground application identifier and the functional state corresponding to the foreground application together, the first target temperature control strategy can be prevented from being not corresponding to hardware mainly generating heat of the electronic equipment, so that the temperature control is more reasonable, and the temperature control effect is improved.
206. And controlling the temperature of the electronic equipment based on the first target temperature control strategy so as to reduce the current temperature of the electronic equipment.
In the embodiment of the application, after the first preset temperature control strategy corresponding to the successfully matched first preset state is taken as the first target temperature control strategy, the electronic device can perform temperature control according to the first target temperature control strategy, so that the current temperature of the electronic device is reduced. It can be understood that the foreground application is in different functional states, the respective obtained first target temperature control strategies are different, and the temperature control operations executed by the electronic device are also different.
In some embodiments, before performing temperature control on the electronic device based on the first target temperature control strategy, the electronic device may obtain respective temperatures of a plurality of pieces of hardware of the electronic device to obtain a plurality of temperatures; and adjusting the first temperature control strategy according to the plurality of temperatures. When the electronic device is temperature-controlled based on the first target temperature control strategy, the electronic device may perform temperature control on the electronic device based on the adjusted first temperature control strategy.
207. If the temperature drop of the outer surface of the electronic equipment is not detected within the preset time, the respective temperatures of a plurality of pieces of hardware of the electronic equipment are obtained, and a plurality of temperatures are obtained.
In the embodiment of the application, after the electronic device is subjected to temperature control based on the first target temperature control strategy, the electronic device starts timing from the time when the temperature control is started, and detects whether the outer surface temperature of the electronic device drops after a preset time is reached, so as to determine whether the first target temperature control strategy is effective. If the temperature of the outer surface of the electronic equipment is reduced within the preset time, it is judged that the first target temperature control strategy is suitable for the current situation of the electronic equipment. If the outer surface temperature of the electronic equipment does not drop within the preset time, it is determined that the first target temperature control strategy is not suitable for the current situation of the electronic equipment, and the electronic equipment is required to acquire the respective temperatures of the plurality of hardware to obtain a plurality of temperatures to determine the current situation of the electronic equipment, so that the first target temperature control strategy is adjusted.
The electronic device may determine that the external surface temperature does not decrease without changing the external surface temperature, or may determine that the external surface temperature does not decrease without decreasing beyond a set value.
208. And adjusting the first target temperature control strategy according to the plurality of temperatures, and controlling the temperature of the electronic equipment based on the adjusted first target temperature control strategy.
In the embodiment of the application, after the respective temperatures of the plurality of pieces of hardware of the electronic device are obtained and the plurality of temperatures are obtained, the electronic device adjusts the first target temperature control strategy according to the plurality of temperatures, so that the first target temperature control strategy conforms to the hardware of the electronic device, which mainly generates heat, or the implementation strength of the first target temperature control strategy is increased. And then, carrying out temperature control according to the adjusted first target temperature control strategy so as to reduce the temperature of the outer surface of the electronic equipment. The first target temperature control strategy can be prevented from being not corresponding to hardware mainly generating heat of the electronic equipment, so that the temperature control is more reasonable, and the temperature control effect is improved.
For example, assume that the acquired respective temperatures of the plurality of hardware are: 45 degrees celsius for the central processing unit, 60 degrees celsius for the graphics processor, 53 degrees celsius for the display, and the first target temperature control strategy is to reduce the frequency of the central processing unit by 20 degrees. The electronic device can determine that the hardware mainly generating heat is the graphics processor according to the temperatures, so that the first target temperature control strategy is adjusted to reduce the frequency of the graphics processor, and the temperature control is performed according to the adjusted first target temperature control strategy until the external surface temperature of the electronic device is the same as the ambient temperature.
For example, assume that the acquired respective temperatures of the plurality of hardware are: the first target temperature control strategy is to reduce the frequency of the central processing unit by 20 degrees celsius, the central processing unit is at 62 degrees celsius, the graphic processing unit is at 50 degrees celsius, and the display is at 46 degrees celsius. The electronic device can determine that the hardware mainly generating heat is the central processing unit according to the temperatures, so that the implementation strength of the first target temperature control strategy is increased, and if the first target temperature control strategy is adjusted to: the cpu frequency is reduced by 40. And then, performing temperature control according to the adjusted first target temperature control strategy to reduce the external surface temperature of the electronic equipment.
In some embodiments, when performing temperature control according to the adjusted first target temperature control strategy, the electronic device may monitor the respective temperatures of the plurality of hardware in real time, and adjust the first target temperature control strategy again when the hardware that mainly generates heat changes. It is understood that the first target temperature control strategy may be dynamically adjusted according to hardware changes in the electronic device that primarily generate heat.
The embodiments of the present application are not particularly limited to hardware of an electronic device. For example, the plurality of hardware may be a central processor, a graphics processor, a display, audio, camera components, etc. of the electronic device.
209. And if the first preset state which is successfully matched does not exist, matching the foreground application identifier with a plurality of second preset states in the white list, wherein each second preset state is formed by the preset application identifier of one preset application.
In the embodiment of the application, after matching the foreground application identifier and the functional state with the plurality of first preset states in the white list, if there is no first preset state which is successfully matched with the foreground application identifier and successfully matched with the functional state corresponding to the foreground application, that is, there is no first preset state which is successfully matched, the electronic device can match the foreground application identifier with the plurality of second preset states in the white list.
The electronic device presets a white list, wherein the white list stores a plurality of different first preset states and a plurality of different second preset states, and each second preset state corresponds to a second preset temperature control strategy, as shown in table 2 below. The second preset state only comprises a preset application identifier of one preset application. The second temperature control strategies corresponding to different second preset states may be the same or different.
TABLE 2
Second preset state Second preset temperature control strategy
5016147 Reducing screen brightness
5016148 Reducing the volume of the broadcast
5016149 Reducing graphics processor frequency
5016150 Reducing the volume of the broadcast
210. And when the second preset state which is successfully matched exists, acquiring a second preset temperature control strategy corresponding to the second preset state which is successfully matched from the white list.
In the embodiment of the application, after the foreground application identifier is matched with the plurality of second preset states in the white list, if the second preset state which is successfully matched exists, the electronic device reads a second preset temperature control strategy corresponding to the second preset state which is successfully matched from the white list.
211. And taking a second preset temperature control strategy corresponding to the successfully matched second preset state as a second target temperature control strategy, and controlling the temperature of the electronic equipment based on the second target temperature control strategy.
In this embodiment of the application, after obtaining the second preset temperature control policy corresponding to the successfully matched second preset state from the white list, the electronic device may use the second preset temperature control policy corresponding to the successfully matched second preset state as a second target temperature control policy, and perform temperature control on the electronic device based on the second target temperature control policy. It will be appreciated that the second target temperature control strategy is determined by the application identification currently being applied.
212. And when the second preset state of successful matching does not exist, acquiring the category corresponding to the foreground application identifier.
In the embodiment of the application, after the foreground application identifier is matched with the plurality of second preset states in the white list, if the second preset states which are successfully matched exist, the electronic device obtains the category corresponding to the foreground application identifier.
In some embodiments, when the category corresponding to the foreground application identifier is obtained, the electronic device generates an obtaining instruction according to the foreground application identifier, and sends the obtaining instruction to the target server to instruct the target server to obtain the category corresponding to the foreground application identifier; and receiving the category corresponding to the foreground application identifier returned by the target server. Wherein the target server is an APP company server. In the scheme, the APP company server divides the application types more carefully, for example, the game types include MOBA type games and card type games. The third target strategy determined by the MOBA game is to reduce the screen brightness because the hardware mainly generating heat of the MOBA game is the display, and the third target strategy determined by the card game is to reduce the frequency of the central processor because the hardware mainly generating heat of the card game is the central processor.
213. And determining a third target temperature control strategy according to the category, and controlling the temperature of the electronic equipment based on the third target temperature control strategy.
In the embodiment of the application, after the category corresponding to the foreground application identifier is obtained, the electronic device may determine a suitable third target temperature control strategy according to the category, and then perform temperature control on the electronic device according to the third target temperature control strategy until the external surface temperature of the electronic device is the same as the environmental temperature. Wherein the third target temperature control strategies determined by the applications of the same category are the same. For example, application D and application E are both MOBA-type games, and the hardware that generates heat primarily is the display, so the third objective strategy for both application D and application E is to reduce screen brightness.
Referring to fig. 3, fig. 3 is a third schematic flow chart of a temperature control method according to an embodiment of the present disclosure, where the temperature control method may include:
301. the current temperature of the electronic device is acquired.
In the embodiment of the application, when the electronic equipment detects that the electronic equipment is in the running state, the current temperature can be acquired in real time. Wherein the current temperature may refer to an outer surface temperature of the electronic device housing. The current temperature may also refer to the temperature of a component in the electronic device, for example, the current temperature may be the battery temperature detected by a temperature sensor. It is understood that obtaining the current temperature of the electronic device is a continuous process.
In addition, the embodiment of the present application is not particularly limited as to the manner of obtaining the temperature of the outer surface. For example, the electronic device may obtain the temperature of the outer surface by a temperature sensor disposed on the outer surface of the housing thereof.
302. And if the current temperature is greater than the temperature threshold, acquiring a foreground application identifier and a functional state corresponding to the foreground application.
In the embodiment of the application, after the current temperature is obtained, the electronic device obtains the temperature threshold value, and compares the current temperature with the temperature threshold value. If the current temperature is greater than the temperature threshold, it is determined that the electronic device needs to perform temperature control, and the electronic device can determine the foreground application, obtain a foreground application identifier corresponding to the foreground application, and obtain a functional state corresponding to the foreground application. If the current temperature is less than or equal to the temperature threshold, it is determined that the electronic device does not need to perform temperature control, and the electronic device does not react to the temperature control.
When the electronic equipment is in a running state, the applications activated by the electronic equipment comprise foreground applications and background applications. And at any time when the electronic equipment is in a running state, only one foreground application of the electronic equipment is used, and one or more background applications can be used.
In addition, it should be noted that, in the solution, all applications installed in the electronic device each include at least one functional state. At any time when the electronic device is in the running state, the foreground application may only run one functional state, that is, only one functional state corresponding to the acquired foreground application is obtained.
303. And matching the foreground application identifier and the functional state with a plurality of first preset states in a white list, wherein each first preset state is composed of a preset application identifier of one preset application and one preset functional state of the preset application.
In the embodiment of the application, after the foreground application identifier and the functional state corresponding to the foreground application are obtained, the electronic device can match the foreground application identifier and the functional state with a plurality of first preset states in a white list, the first preset states of the foreground application identifier, which are successfully matched and the functional state, are successfully matched, and the first preset states of other conditions are unsuccessfully matched.
The electronic equipment is provided with a white list in advance, a plurality of different first preset states are stored in the white list, and each first preset state corresponds to one first preset temperature control strategy. The first preset state comprises a preset application identifier of a preset application and a preset function state of the preset application. The corresponding first preset temperature control strategies are different for the same preset application identifier and different preset functional states, that is, the corresponding first preset temperature control strategies for the same preset application in different preset functional states are different.
304. And if the first preset state which is successfully matched exists, acquiring a first preset temperature control strategy corresponding to the first preset state which is successfully matched from the white list.
In the embodiment of the application, after matching the foreground application identifier and the functional state with the plurality of first preset states in the white list, if a first preset state successfully matched with the foreground application identifier and successfully matched with the functional state corresponding to the foreground application exists, that is, the first preset state successfully matched exists, the electronic device obtains a first preset temperature control strategy corresponding to the first preset state successfully matched from the white list.
305. And taking the first preset temperature control strategy corresponding to the successfully matched first preset state as a first target temperature control strategy.
In the embodiment of the application, after acquiring a first preset temperature control strategy corresponding to a successfully matched first preset state from a white list, the electronic device takes the acquired first preset temperature control strategy as a first target temperature control strategy. The first target temperature control strategy is a policy for temperature control of the electronic equipment. It is understood that the first target temperature control strategy is determined by the application identifier of the current application and the corresponding functional state of the current application. Because the first target temperature control strategy of the scheme is determined by the foreground application identifier and the functional state corresponding to the foreground application together, the first target temperature control strategy can be prevented from being not corresponding to hardware mainly generating heat of the electronic equipment, so that the temperature control is more reasonable, and the temperature control effect is improved.
306. And controlling the temperature of the electronic equipment based on the first target temperature control strategy so as to reduce the current temperature of the electronic equipment.
In the embodiment of the application, after the first preset temperature control strategy corresponding to the successfully matched first preset state is taken as the first target temperature control strategy, the electronic device can perform temperature control according to the first target temperature control strategy, so that the current temperature of the electronic device is reduced. It can be understood that the foreground application is in different functional states, the respective obtained first target temperature control strategies are different, and the temperature control operations executed by the electronic device are also different.
307. And when the second preset state of successful matching does not exist, acquiring the respective temperatures of a plurality of pieces of hardware of the electronic equipment to obtain a plurality of temperatures.
In the embodiment of the application, after the foreground application identifier is matched with the plurality of second preset states in the white list, if the second preset state which is successfully matched exists, the electronic device obtains respective temperatures of the plurality of hardware to obtain the plurality of temperatures, so as to determine the hardware which mainly generates heat of the electronic device.
The embodiment of the present application is not particularly limited as to the manner of obtaining the respective temperatures of the plurality of pieces of hardware. For example, the electronic device may acquire the respective temperatures of the hardware through temperature sensors. For another example, the electronic device may calculate the temperature of the hardware based on the output power of the hardware, and so on.
In addition, the embodiments of the present application are not particularly limited to a plurality of hardware of the electronic device. For example, the plurality of hardware may be a central processor, a graphics processor, a display, audio, etc. of the electronic device. The respective temperatures of the plurality of hardware in this scenario may be the same as or different from the respective temperatures of the plurality of hardware that were used as the basis for adjusting the first target temperature control strategy.
308. And controlling the temperature of hardware corresponding to the highest temperature in the plurality of temperatures.
In this embodiment of the application, after obtaining the plurality of temperatures, the electronic device may determine hardware mainly generating heat according to the plurality of temperatures, that is, hardware corresponding to a highest temperature among the plurality of temperatures, and then perform temperature control on the hardware corresponding to the highest temperature among the plurality of temperatures until a current temperature of the electronic device is equal to an ambient temperature.
For example, assume that the acquired temperatures of 3 pieces of hardware are: the electronic equipment comprises a central processing unit 49 ℃, a graphic processor 67 ℃ and a display 59 ℃, the electronic equipment determines that the hardware mainly generating heat is the graphic processor according to the 3 temperatures, and the temperature of the graphic processor is controlled by reducing the frequency of the graphic processor until the current temperature of the electronic equipment is equal to the ambient temperature.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a temperature control device according to an embodiment of the present disclosure. The temperature control device 400 may include: a first obtaining module 401, a second obtaining module 402, a first determining module 403, and a first controlling module 404.
A first obtaining module 401, configured to obtain a current temperature of the electronic device;
a second obtaining module 402, configured to obtain a foreground application identifier and a function state corresponding to the foreground application if the current temperature is greater than the temperature threshold;
a first determining module 403, configured to determine a first target temperature control policy from multiple first preset temperature control policies according to the foreground application identifier and the function state, where the first preset temperature control policies corresponding to different preset function states of the same preset application are different;
a first control module 404, configured to perform temperature control on the electronic device based on the first target temperature control strategy so as to lower a current temperature of the electronic device.
In some embodiments, when determining the first target temperature control policy from the plurality of first preset temperature control policies according to the foreground application identifier and the functional state, the first determining module 403 may be configured to:
matching the foreground application identifier and the functional state with a plurality of first preset states in a white list, wherein each first preset state is composed of a preset application identifier of a preset application and a preset functional state of the preset application;
if the first preset state which is successfully matched exists, acquiring a first preset temperature control strategy corresponding to the first preset state which is successfully matched from the white list;
and taking the first preset temperature control strategy corresponding to the successfully matched first preset state as a first target temperature control strategy.
In some embodiments, after matching the foreground application identifier and the functional state with a plurality of first preset states in a white list, the temperature control apparatus 400 further includes:
the matching module is used for matching the foreground application identifier with a plurality of second preset states in the white list if a first preset state which is successfully matched does not exist, wherein each second preset state is formed by a preset application identifier of a preset application;
the third obtaining module is used for obtaining a second preset temperature control strategy corresponding to a successfully matched second preset state from the white list when the successfully matched second preset state exists;
and the second determining module is used for taking a second preset temperature control strategy corresponding to a second preset state which is successfully matched as a second target temperature control strategy and controlling the temperature of the electronic equipment based on the second target temperature control strategy.
In some embodiments, after matching the foreground application identifier with a plurality of second preset states in the white list, the temperature control apparatus 400 further includes:
the fourth obtaining module is used for obtaining the category corresponding to the foreground application identifier when a second preset state of successful matching does not exist;
and the third determining module is used for determining a third target temperature control strategy according to the category and controlling the temperature of the electronic equipment based on the third target temperature control strategy.
In some embodiments, when the category corresponding to the foreground application identifier is obtained, the fourth obtaining module may be further configured to:
generating an acquisition instruction according to a foreground application identifier, and sending the acquisition instruction to a target server to instruct the target server to acquire a category corresponding to the foreground application identifier;
and receiving the category corresponding to the foreground application identifier returned by the target server.
In some embodiments, after matching the foreground application identifier with a plurality of second preset states in the white list, the temperature control apparatus 400 further includes:
the fifth obtaining module is used for obtaining the respective temperatures of the plurality of pieces of hardware of the electronic equipment to obtain a plurality of temperatures when a second preset state of successful matching does not exist;
and the second control module is used for controlling the temperature of the hardware corresponding to the highest temperature in the plurality of temperatures.
In some embodiments, after the current temperature is the external surface temperature of the electronic device and the temperature of the electronic device is controlled based on the first target temperature control strategy, the temperature control apparatus 400 further includes:
a sixth obtaining module, configured to obtain respective temperatures of multiple pieces of hardware of the electronic device to obtain multiple temperatures if a drop in an outer surface temperature of the electronic device is not detected within a preset time;
and the adjusting module is used for adjusting the first target temperature control strategy according to the plurality of temperatures and controlling the temperature of the electronic equipment based on the adjusted first target temperature control strategy.
In some embodiments, when acquiring the current temperature of the electronic device, the first acquiring module 401 may further be configured to:
obtaining respective temperatures of a plurality of pieces of hardware of the electronic equipment to obtain a plurality of temperatures;
and calculating the outer surface temperature of the electronic equipment according to the temperatures, and taking the outer surface temperature as the current temperature of the electronic equipment.
It should be noted that the temperature control device provided in the embodiment of the present application and the temperature control method in the foregoing embodiment belong to the same concept, and any method provided in the embodiment of the temperature control method may be operated on the temperature control device, and the specific implementation process thereof is described in detail in the embodiment of the temperature control method, and is not described herein again.
The embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the stored computer program is executed on a computer, the computer is caused to execute the steps in the temperature control method provided by the embodiment of the present application. The storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
Referring to fig. 5, an electronic device 500 includes a processor 501 and a memory 502. The processor 501 is electrically connected to the memory 502.
The processor 501 is a control center of the electronic apparatus 500, connects various parts of the entire electronic apparatus using various interfaces and lines, performs various functions of the electronic apparatus 500 and processes data by running or loading a computer program stored in the memory 502, and calling data stored in the memory 502.
The memory 502 may be used to store software programs and modules, and the processor 501 executes various functional applications and data processing by running the computer programs and modules stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, a computer 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 created according to use of the electronic device, and the like.
Further, the memory 502 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. Accordingly, the memory 502 may also include a memory controller to provide the processor 501 with access to the memory 502.
In this embodiment, the processor 501 in the electronic device 500 loads instructions corresponding to one or more processes of the computer program into the memory 502, and the processor 501 runs the computer program stored in the memory 502, so as to implement various functions as follows:
acquiring the current temperature of the electronic equipment;
if the current temperature is larger than the temperature threshold, acquiring a foreground application identifier and a functional state corresponding to the foreground application;
determining a first target temperature control strategy from a plurality of first preset temperature control strategies according to the foreground application identifier and the function state, wherein the first preset temperature control strategies corresponding to different preset function states of the same preset application are different;
and controlling the temperature of the electronic equipment based on the first target temperature control strategy so as to reduce the current temperature of the electronic equipment.
Referring to fig. 6, fig. 6 is a second schematic structural diagram of an electronic device according to an embodiment of the present disclosure, which is different from the electronic device shown in fig. 5 in that the electronic device further includes: a camera module 603, a display 604, an audio circuit 605, a radio frequency circuit 606, and a power supply 607. The camera module 603, the display 604, the audio circuit 605, the rf circuit 606 and the power supply 607 are electrically connected to the processor 601, respectively.
The camera assembly 603 may include Image Processing circuitry, which may be implemented using hardware and/or software components, and may include various Processing units that define an Image Signal Processing (Image Signal Processing) pipeline. The image processing circuit may include at least: a plurality of cameras, an Image Signal Processor (ISP), a control logic, and an Image memory. Where each camera may include at least one or more lenses and an image sensor. The image sensor may include an array of color filters (e.g., Bayer filters). The image sensor may acquire light intensity and wavelength information captured with each imaging pixel of the image sensor and provide a set of raw image data that may be processed by an image signal processor.
The display 604 may be used to display information entered by or provided to the user as well as various graphical user interfaces, which may be comprised of graphics, text, icons, video, and any combination thereof.
The audio circuit 605 may be used to provide an audio interface between the user and the electronic device through a speaker, microphone.
The rf circuit 606 may be used for transceiving rf signals to establish wireless communication with a network device or other electronic devices through wireless communication, and for transceiving signals with the network device or other electronic devices.
The power supply 607 may be used to power various components of the electronic device 600. In some embodiments, the power supply 607 may be logically coupled to the processor 601 through a power management system, such that the power management system may manage charging, discharging, and power consumption management functions.
In the embodiment of the present application, the processor 601 in the electronic device 600 loads instructions corresponding to one or more processes of the computer program into the memory 602 according to the following steps, and the processor 601 runs the computer program stored in the memory 602, thereby implementing various functions as follows:
acquiring the current temperature of the electronic equipment;
if the current temperature is larger than the temperature threshold, acquiring a foreground application identifier and a functional state corresponding to the foreground application;
determining a first target temperature control strategy from a plurality of first preset temperature control strategies according to the foreground application identifier and the function state, wherein the first preset temperature control strategies corresponding to different preset function states of the same preset application are different;
and controlling the temperature of the electronic equipment based on the first target temperature control strategy so as to reduce the current temperature of the electronic equipment.
In some embodiments, when determining a first target temperature control policy from a plurality of first preset temperature control policies according to the foreground application identifier and the functional state, the processor 601 may perform:
matching the foreground application identifier and the functional state with a plurality of first preset states in a white list, wherein each first preset state is composed of a preset application identifier of a preset application and a preset functional state of the preset application;
if the first preset state which is successfully matched exists, acquiring a first preset temperature control strategy corresponding to the first preset state which is successfully matched from the white list;
and taking the first preset temperature control strategy corresponding to the successfully matched first preset state as a first target temperature control strategy.
In some embodiments, after matching the foreground application identifier and the functional state with a plurality of first preset states in a white list, the processor 601 may further perform:
if the first preset state which is successfully matched does not exist, matching the foreground application identifier with a plurality of second preset states in the white list, wherein each second preset state is formed by a preset application identifier of a preset application;
when a second preset state which is successfully matched exists, a second preset temperature control strategy corresponding to the second preset state which is successfully matched is obtained from the white list;
and taking a second preset temperature control strategy corresponding to the successfully matched second preset state as a second target temperature control strategy, and controlling the temperature of the electronic equipment based on the second target temperature control strategy.
In some embodiments, after matching the foreground application identifier with a plurality of second preset states in the white list, the processor 601 may further perform:
when the second preset state of successful matching does not exist, acquiring the category corresponding to the foreground application identifier;
and determining a third target temperature control strategy according to the category, and controlling the temperature of the electronic equipment based on the third target temperature control strategy.
In some embodiments, when obtaining the category corresponding to the foreground application identifier, the processor 601 may perform:
generating an acquisition instruction according to a foreground application identifier, and sending the acquisition instruction to a target server to instruct the target server to acquire a category corresponding to the foreground application identifier;
and receiving the category corresponding to the foreground application identifier returned by the target server.
In some embodiments, after matching the foreground application identifier with a plurality of second preset states in the white list, the processor 601 may further perform:
when the second preset state of successful matching does not exist, obtaining the respective temperatures of a plurality of pieces of hardware of the electronic equipment to obtain a plurality of temperatures;
and controlling the temperature of the hardware corresponding to the highest temperature in the plurality of temperatures.
In some embodiments, the current temperature is an external surface temperature of the electronic device, and after performing temperature control on the electronic device based on the first target temperature control strategy, the processor 601 may further perform:
if the temperature of the outer surface of the electronic equipment is not detected to be reduced within a preset time, acquiring the respective temperatures of a plurality of pieces of hardware of the electronic equipment to obtain a plurality of temperatures;
and adjusting the first target temperature control strategy according to the plurality of temperatures, and controlling the temperature of the electronic equipment based on the adjusted first target temperature control strategy.
In some embodiments, when obtaining the current temperature of the electronic device, the processor 601 may perform:
obtaining respective temperatures of a plurality of pieces of hardware of the electronic equipment to obtain a plurality of temperatures;
and calculating the outer surface temperature of the electronic equipment according to the temperatures, and taking the outer surface temperature as the current temperature of the electronic equipment.
An embodiment of the present application further provides a storage medium, where the storage medium stores a computer program, and when the computer program runs on a computer, the computer is caused to execute the temperature control method in any one of the above embodiments, such as: acquiring the current temperature of the electronic equipment; if the current temperature is larger than the temperature threshold, acquiring a foreground application identifier and a functional state corresponding to the foreground application; determining a first target temperature control strategy from a plurality of first preset temperature control strategies according to the foreground application identifier and the function state, wherein the first preset temperature control strategies corresponding to different preset function states of the same preset application are different; and controlling the temperature of the electronic equipment based on the first target temperature control strategy so as to reduce the current temperature of the electronic equipment.
In the embodiment of the present application, the storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It should be noted that, for the temperature control method of the embodiment of the present application, it can be understood by a person skilled in the art that all or part of the process of implementing the temperature control method of the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, where the computer program can be stored in a computer readable storage medium, such as a memory of an electronic device, and executed by at least one processor in the electronic device, and during the execution process, the process of the embodiment of the temperature control method can be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, etc.
In the temperature control device according to the embodiment of the present application, each functional module may be integrated into one processing chip, each module may exist alone physically, or two or more modules may be integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented as a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium such as a read-only memory, a magnetic or optical disk, or the like.
The temperature control method, the temperature control device, the storage medium, and the electronic device provided in the embodiments of the present application are described in detail above, and specific examples are applied herein to illustrate the principles and implementations of the present application, and the descriptions of the above embodiments are only used to help understand the method and the core ideas of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (11)

1. A method of temperature control, comprising:
acquiring the current temperature of the electronic equipment;
if the current temperature is larger than the temperature threshold, acquiring a foreground application identifier and a functional state corresponding to the foreground application;
determining a first target temperature control strategy from a plurality of first preset temperature control strategies according to the foreground application identifier and the function state, wherein the first preset temperature control strategies corresponding to different preset function states of the same preset application are different;
and controlling the temperature of the electronic equipment based on the first target temperature control strategy so as to reduce the current temperature of the electronic equipment.
2. The method according to claim 1, wherein determining a first target temperature control policy from a plurality of first preset temperature control policies according to the foreground application identifier and the functional state comprises:
matching the foreground application identifier and the functional state with a plurality of first preset states in a white list, wherein each first preset state is composed of a preset application identifier of a preset application and a preset functional state of the preset application;
if the first preset state which is successfully matched exists, acquiring a first preset temperature control strategy corresponding to the first preset state which is successfully matched from the white list;
and taking the first preset temperature control strategy corresponding to the successfully matched first preset state as a first target temperature control strategy.
3. The method according to claim 2, wherein after matching the foreground application identifier and the functional state with a plurality of first preset states in a white list, the method further comprises:
if the first preset state which is successfully matched does not exist, matching the foreground application identifier with a plurality of second preset states in the white list, wherein each second preset state is formed by a preset application identifier of a preset application;
when a second preset state which is successfully matched exists, a second preset temperature control strategy corresponding to the second preset state which is successfully matched is obtained from the white list;
and taking a second preset temperature control strategy corresponding to the successfully matched second preset state as a second target temperature control strategy, and controlling the temperature of the electronic equipment based on the second target temperature control strategy.
4. The method according to claim 3, wherein after matching the foreground application identifier with a plurality of second preset states in the whitelist, the method further comprises:
when the second preset state of successful matching does not exist, acquiring the category corresponding to the foreground application identifier;
and determining a third target temperature control strategy according to the category, and controlling the temperature of the electronic equipment based on the third target temperature control strategy.
5. The method according to claim 4, wherein the obtaining the category corresponding to the foreground application identifier comprises:
generating an acquisition instruction according to a foreground application identifier, and sending the acquisition instruction to a target server to instruct the target server to acquire a category corresponding to the foreground application identifier;
and receiving the category corresponding to the foreground application identifier returned by the target server.
6. The method according to claim 3, wherein after matching the foreground application identifier with a plurality of second preset states in the whitelist, the method further comprises:
when the second preset state of successful matching does not exist, obtaining the respective temperatures of a plurality of pieces of hardware of the electronic equipment to obtain a plurality of temperatures;
and controlling the temperature of the hardware corresponding to the highest temperature in the plurality of temperatures.
7. The method of claim 1, wherein the current temperature is an external surface temperature of the electronic device, and wherein after the temperature controlling the electronic device based on the first target temperature control strategy, the method further comprises:
if the temperature of the outer surface of the electronic equipment is not detected to be reduced within a preset time, acquiring the respective temperatures of a plurality of pieces of hardware of the electronic equipment to obtain a plurality of temperatures;
and adjusting the first target temperature control strategy according to the plurality of temperatures, and controlling the temperature of the electronic equipment based on the adjusted first target temperature control strategy.
8. The temperature control method according to any one of claims 1 to 6, wherein the acquiring a current temperature of the electronic device includes:
obtaining respective temperatures of a plurality of pieces of hardware of the electronic equipment to obtain a plurality of temperatures;
and calculating the outer surface temperature of the electronic equipment according to the temperatures, and taking the outer surface temperature as the current temperature of the electronic equipment.
9. A temperature control apparatus, comprising:
the first acquisition module is used for acquiring the current temperature of the electronic equipment;
the second acquisition module is used for acquiring a foreground application identifier and a functional state corresponding to the foreground application if the current temperature is greater than the temperature threshold;
the first determining module is used for determining a first target temperature control strategy from a plurality of first preset temperature control strategies according to the foreground application identifier and the function state, wherein the first preset temperature control strategies corresponding to different preset function states of the same preset application are different;
and the first control module is used for controlling the temperature of the electronic equipment based on the first target temperature control strategy so as to reduce the current temperature of the electronic equipment.
10. A storage medium having stored thereon a computer program, characterized in that, when the computer program is run on a computer, it causes the computer to execute the temperature control method according to any one of claims 1 to 8.
11. An electronic device comprising a processor, a memory, said memory having a computer program, wherein said processor is adapted to perform the temperature control method of any of claims 1 to 8 by invoking said computer program.
CN201911253108.0A 2019-12-09 2019-12-09 Temperature control method, temperature control device, storage medium and electronic equipment Pending CN111026254A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911253108.0A CN111026254A (en) 2019-12-09 2019-12-09 Temperature control method, temperature control device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911253108.0A CN111026254A (en) 2019-12-09 2019-12-09 Temperature control method, temperature control device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN111026254A true CN111026254A (en) 2020-04-17

Family

ID=70205050

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911253108.0A Pending CN111026254A (en) 2019-12-09 2019-12-09 Temperature control method, temperature control device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN111026254A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112485645A (en) * 2020-11-30 2021-03-12 海光信息技术股份有限公司 Chip test temperature control method, control system, temperature control board card and test system
CN113342082A (en) * 2021-04-09 2021-09-03 成都中科创达软件有限公司 Temperature control method of terminal equipment, and related method and device
CN114384945A (en) * 2020-10-21 2022-04-22 Oppo广东移动通信有限公司 Processor temperature control method, device, storage medium and electronic equipment
CN114879823A (en) * 2022-03-24 2022-08-09 深圳市广通远驰科技有限公司 Configuration method and device of temperature protection strategy, electronic equipment and storage medium
WO2022257079A1 (en) * 2021-06-10 2022-12-15 深圳市大疆创新科技有限公司 Temperature control method, image capture device, and storage medium
CN115866132A (en) * 2022-11-24 2023-03-28 Oppo广东移动通信有限公司 Electronic equipment, temperature control method and device and readable storage medium
CN115981391A (en) * 2022-12-26 2023-04-18 西安紫光展锐科技有限公司 Method, device, equipment, storage medium and product for optimizing temperature control strategy

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104808717A (en) * 2015-02-12 2015-07-29 广东欧珀移动通信有限公司 Temperature control method and temperature control device
CN105259996A (en) * 2015-09-23 2016-01-20 努比亚技术有限公司 Temperature regulation device and method of mobile terminal
CN106647860A (en) * 2016-12-30 2017-05-10 深圳天珑无线科技有限公司 Mobile terminal temperature control method and mobile terminal temperature control device.
CN107122029A (en) * 2017-04-27 2017-09-01 成都奇鲁科技有限公司 A kind of cool-down method, device and terminal device
CN107168109A (en) * 2016-03-07 2017-09-15 中兴通讯股份有限公司 The adaptive cool-down method and device of a kind of mobile terminal
CN109189185A (en) * 2018-07-16 2019-01-11 北京小米移动软件有限公司 terminal temperature adjusting method and device
US20190025784A1 (en) * 2017-07-24 2019-01-24 Samsung Electronics Co., Ltd. Storage device and temperature control of electronic device including the same

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104808717A (en) * 2015-02-12 2015-07-29 广东欧珀移动通信有限公司 Temperature control method and temperature control device
CN105259996A (en) * 2015-09-23 2016-01-20 努比亚技术有限公司 Temperature regulation device and method of mobile terminal
CN107168109A (en) * 2016-03-07 2017-09-15 中兴通讯股份有限公司 The adaptive cool-down method and device of a kind of mobile terminal
CN106647860A (en) * 2016-12-30 2017-05-10 深圳天珑无线科技有限公司 Mobile terminal temperature control method and mobile terminal temperature control device.
CN107122029A (en) * 2017-04-27 2017-09-01 成都奇鲁科技有限公司 A kind of cool-down method, device and terminal device
US20190025784A1 (en) * 2017-07-24 2019-01-24 Samsung Electronics Co., Ltd. Storage device and temperature control of electronic device including the same
CN109189185A (en) * 2018-07-16 2019-01-11 北京小米移动软件有限公司 terminal temperature adjusting method and device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114384945A (en) * 2020-10-21 2022-04-22 Oppo广东移动通信有限公司 Processor temperature control method, device, storage medium and electronic equipment
CN112485645A (en) * 2020-11-30 2021-03-12 海光信息技术股份有限公司 Chip test temperature control method, control system, temperature control board card and test system
CN113342082A (en) * 2021-04-09 2021-09-03 成都中科创达软件有限公司 Temperature control method of terminal equipment, and related method and device
WO2022257079A1 (en) * 2021-06-10 2022-12-15 深圳市大疆创新科技有限公司 Temperature control method, image capture device, and storage medium
CN114879823A (en) * 2022-03-24 2022-08-09 深圳市广通远驰科技有限公司 Configuration method and device of temperature protection strategy, electronic equipment and storage medium
CN115866132A (en) * 2022-11-24 2023-03-28 Oppo广东移动通信有限公司 Electronic equipment, temperature control method and device and readable storage medium
CN115981391A (en) * 2022-12-26 2023-04-18 西安紫光展锐科技有限公司 Method, device, equipment, storage medium and product for optimizing temperature control strategy

Similar Documents

Publication Publication Date Title
CN111026254A (en) Temperature control method, temperature control device, storage medium and electronic equipment
JP7266672B2 (en) Image processing method, image processing apparatus, and device
US9451173B2 (en) Electronic device and control method of the same
CN110060213B (en) Image processing method, image processing device, storage medium and electronic equipment
CN111132234B (en) Data transmission method and corresponding terminal
TWI656509B (en) Image processing method and related products
CN109951627B (en) Image processing method, image processing device, storage medium and electronic equipment
US20180013955A1 (en) Electronic device including dual camera and method for controlling dual camera
CN110727561B (en) Abnormal heat dissipation detection method, device, terminal and storage medium
CN108121524B (en) Method and device for adjusting image display preview frame rate of electronic equipment and electronic equipment
CN109741288B (en) Image processing method, image processing device, storage medium and electronic equipment
JP2022505115A (en) Image processing methods and equipment and devices
CN111007931B (en) Temperature control method, temperature control device, storage medium and electronic equipment
CN113778663B (en) Scheduling method of multi-core processor and electronic equipment
EP4036842A1 (en) Image flooding processing method and apparatus, and storage medium
CN112703530B (en) Image processing method, device, computer equipment and storage medium
CN112532885B (en) Anti-shake method and device and electronic equipment
US20230259264A1 (en) Method for providing filter and electronic device supporting the same
CN112333385A (en) Electronic anti-shake control method and device
US20200090309A1 (en) Method and device for denoising processing, storage medium, and terminal
CN111556248B (en) Shooting method, shooting device, storage medium and mobile terminal
CN107180417B (en) Photo processing method and device, computer readable storage medium and electronic equipment
CN110473156B (en) Image information processing method and device, storage medium and electronic equipment
CN107835336B (en) Dual-camera frame synchronization method and device, user terminal and storage medium
CN111372001B (en) Image fusion method and device, storage medium and mobile terminal

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200417

RJ01 Rejection of invention patent application after publication