CN113873074B - Control method, electronic equipment and computer storage medium - Google Patents

Control method, electronic equipment and computer storage medium Download PDF

Info

Publication number
CN113873074B
CN113873074B CN202111090660.XA CN202111090660A CN113873074B CN 113873074 B CN113873074 B CN 113873074B CN 202111090660 A CN202111090660 A CN 202111090660A CN 113873074 B CN113873074 B CN 113873074B
Authority
CN
China
Prior art keywords
temperature
preset
steady
electronic equipment
state
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
CN202111090660.XA
Other languages
Chinese (zh)
Other versions
CN113873074A (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.)
Hangzhou Douku Software Technology Co Ltd
Original Assignee
Hangzhou Douku Software 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 Hangzhou Douku Software Technology Co Ltd filed Critical Hangzhou Douku Software Technology Co Ltd
Priority to CN202111090660.XA priority Critical patent/CN113873074B/en
Publication of CN113873074A publication Critical patent/CN113873074A/en
Application granted granted Critical
Publication of CN113873074B publication Critical patent/CN113873074B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72427User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for supporting games or graphical animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Telephone Function (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The embodiment of the application discloses a control method which is applied to electronic equipment, wherein a game application program runs on the electronic equipment and comprises the following steps: the method comprises the steps of obtaining the steady-state temperature of the electronic equipment, reducing the display frame rate of the electronic equipment when the current temperature of the electronic equipment is smaller than or equal to the steady-state temperature and the current temperature change rate of the electronic equipment is larger than a preset rate threshold, and maintaining the display frame rate of the electronic equipment when the current temperature is smaller than or equal to the steady-state temperature and the current temperature change rate is smaller than or equal to the preset rate threshold. The embodiment of the application also provides electronic equipment and a computer storage medium.

Description

Control method, electronic equipment and computer storage medium
Technical Field
The present application relates to a temperature control technology for an electronic device during game play, and more particularly, to a control method, an electronic device, and a computer storage medium.
Background
At present, when a mobile phone runs a game, the temperature of the mobile phone is often high, the temperature of the mobile phone needs to be controlled, the mobile phone temperature is generally predicted according to the current temperature of the mobile phone and the running time of the game, and the display frame rate is adjusted according to the predicted temperature value so as to control the mobile phone temperature.
However, the above predicted temperature value tends to be inaccurate, resulting in poor control; it can be seen from this that the control effect of the conventional temperature control method of the electronic device running the game is poor.
Disclosure of Invention
The embodiment of the application provides a control method, electronic equipment and a computer storage medium, which can improve the control effect of the electronic equipment running a game.
The technical scheme of the application is realized as follows:
in a first aspect, an embodiment of the present application provides a control method, where the method is applied to an electronic device, and the electronic device has a game application running thereon, and the method includes:
acquiring a steady-state temperature of the electronic equipment;
when the current temperature of the electronic equipment is smaller than or equal to the steady-state temperature and the current temperature change rate of the electronic equipment is larger than a preset rate threshold, reducing the display frame rate of the electronic equipment;
and when the current temperature is less than or equal to the steady-state temperature and the current temperature change rate is less than or equal to a preset rate threshold, maintaining the display frame rate of the electronic equipment.
In a second aspect, an embodiment of the present application provides an electronic device, on which a game application is running, including:
the acquisition module is used for acquiring the steady-state temperature of the electronic equipment;
a reducing module, configured to reduce a display frame rate of the electronic device when a current temperature of the electronic device is less than the steady-state temperature and a current temperature change rate of the electronic device is greater than a preset rate threshold;
and the maintaining module is used for maintaining the display frame rate of the electronic equipment when the current temperature is less than or equal to the steady-state temperature and the current temperature change rate is less than or equal to a preset rate threshold.
In a third aspect, an embodiment of the present application provides an electronic device, including: a processor and a storage medium storing instructions executable by the processor; the storage medium may be capable of executing operations on the processor via a communication bus, and when the instructions are executed by the processor, the control method according to one or more embodiments described above is executed.
In a fourth aspect, embodiments of the present application provide a computer storage medium storing executable instructions that, when executed by one or more processors, perform the control method of one or more embodiments described above.
The embodiment of the application provides a control method, electronic equipment and a computer storage medium, wherein the method is applied to the electronic equipment, and a game application program is run on the electronic equipment, and comprises the following steps: acquiring the steady-state temperature of the electronic equipment, reducing the display frame rate of the electronic equipment when the current temperature of the electronic equipment is smaller than or equal to the steady-state temperature and the current temperature change rate of the electronic equipment is larger than a preset rate threshold, and maintaining the display frame rate of the electronic equipment when the current temperature is smaller than or equal to the steady-state temperature and the current temperature change rate is smaller than or equal to the preset rate threshold; that is, in the embodiment of the present application, by acquiring the steady-state temperature of the terminal, comparing the current temperature of the electronic device with the steady-state temperature, and comparing the current temperature change rate of the electronic device with the preset change rate threshold, when the current temperature is less than or equal to the steady-state temperature, the temperature of the electronic device is at steady state or non-steady state, if the current temperature change rate is greater than the preset change rate threshold, the display frame rate is reduced according to the scheme in the related art, and if the current temperature change rate is less than the preset change rate, the display frame rate is maintained, so that, by the acquired steady-state temperature, the problem of excessive control of the display frame rate when the temperature of the electronic device is at steady state, resulting in degradation of the display frame rate is prevented, thereby improving the control effect of the electronic device running the game.
Drawings
FIG. 1 is a schematic flow chart of an alternative control method according to an embodiment of the present application;
FIG. 2 is a schematic diagram of an example I of an alternative control method according to an embodiment of the present application;
FIG. 3 is a schematic diagram illustrating an example II of an alternative control method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an alternative electronic device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of another alternative electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application.
Example 1
The embodiment of the application provides a control method, which is applied to an electronic device, and a game application program runs on the electronic device, and fig. 1 is a schematic flow diagram of an alternative control method provided by the embodiment of the application, as shown in fig. 1, the control method may include:
s101: acquiring a steady-state temperature of the electronic equipment;
at present, when a user uses a game application program on an electronic device, the temperature of the electronic device continuously rises, in the related art, in order to avoid the influence of the continuous temperature rise of the electronic device on the performance of each component of the electronic device, the display frame rate of the electronic device is often adjusted based on the real-time temperature of the electronic device to achieve the control of the temperature of the electronic device, however, the phenomenon of excessively controlling the display frame rate occurs in the method, so that the display effect of the electronic device is poor.
In order to improve the control effect of the electronic equipment running with the game application program, in the embodiment of the application, when the game application program runs on the electronic equipment, the steady-state temperature of the electronic equipment is acquired first; the steady-state temperature of the electronic device refers to a temperature when the temperature of the electronic device is stable.
Here, it should be noted that the electronic device may directly obtain the steady-state temperature of the electronic device calculated before, or may calculate the steady-state temperature of the electronic device in real time, which is not particularly limited in the embodiment of the present application.
To be able to control the display frame rate in good time, the steady state temperature needs to be acquired under appropriate conditions, in an alternative embodiment, S101 may comprise:
and when the running time of the game application program is greater than or equal to a preset time threshold and the current temperature is greater than a preset second temperature threshold, acquiring the steady-state temperature of the electronic equipment.
Specifically, since the electronic device has a low temperature when the electronic device just starts to run the game application, only when the duration of the game application is greater than or equal to the preset duration threshold, that is, the game application is run for a period of time, and the current temperature is greater than the preset second temperature threshold, that is, the current temperature needs to exceed the preset second temperature threshold, both conditions are satisfied, it is indicated that the running of the game application by the electronic device will cause the temperature of the electronic device to rise, and the temperature needs to be controlled to control the temperature of the electronic device, so that the steady-state temperature of the electronic device is obtained at this time to control the temperature of the electronic device based on the steady-state temperature.
The current temperature of the electronic device may be determined directly by a temperature sensor located on the electronic device, or may be determined according to temperature data collected by a plurality of temperature sensors located on the electronic device, which is not specifically limited herein.
In order to make the obtained current temperature of the electronic device as close to the actual temperature as possible, in an alternative embodiment, the above method may further comprise:
respectively acquiring the current temperature of a rear shell of the electronic equipment, the current temperature of a front shell of the electronic equipment and the current temperature of a side edge of the electronic equipment;
and selecting a maximum value from the current temperature of the rear shell, the current temperature of the front shell and the current temperature of the side edge, and determining the maximum value as the current temperature.
That is, a temperature sensor is installed at a rear case of the electronic device, a temperature sensor is installed at a front case of the electronic device, and a temperature sensor is also installed at a side of the electronic device, and then, in order to acquire the current temperature of the electronic device, the electronic device acquires the current temperature of the rear case through the temperature sensor of the rear case, acquires the current temperature of the front case through the temperature sensor of the front case, and acquires the current temperature of the side through the temperature sensor of the side, so that the electronic device selects the maximum value from the current temperature of the rear case, the current temperature of the front case and the current temperature of the side as the current temperature of the electronic device, and thus, the determined current temperature of the electronic device considers the front case, the rear case and the side temperature, so that the determined current temperature of the electronic device is closer to the actual temperature, thereby facilitating the control of the temperature of the electronic device.
Further, in order to obtain the steady-state temperature of the electronic device through real-time calculation, in an alternative embodiment, S101 may include:
collecting the temperature at intervals of a first preset interval;
determining the temperature change rate of each time point in the acquired time points according to the relation between the acquired time points and the temperature;
and when the current temperature change rate is smaller than a preset rate threshold, calling a preset prediction model to determine the steady-state temperature of the electronic equipment.
Specifically, when the electronic device runs the game application program, the temperature of the electronic device is collected at intervals of a first preset interval, so that the temperatures of time points can be collected, then, according to the relationship between the collected time points and the temperatures, the temperature change rate of each time point in the collected time points can be determined, and the temperature change rate a of the time point t can be calculated by adopting the following formula (1) t
Wherein Δt represents a first preset interval time, T1 represents a temperature acquired at a time point T, T3 represents a temperature acquired at a time point t+Δt, and T2 represents a temperature acquired at a time point T- Δt; it should be noted that, for the temperature change rate of the last acquired time point, the temperature change rate of the last acquired time point may be directly taken as the temperature change rate of the last acquired time point.
After the temperature change rate of each time point is determined, the relationship between the current temperature change rate and a preset rate threshold is compared, and when the current temperature change rate is smaller than the preset rate change threshold, the current electronic equipment is in a state of tending to or in a steady state, so that a preset prediction model can be called to determine the steady state temperature of the electronic equipment; wherein in determining the steady-state temperature, the data used to determine the steady-state temperature for different predictive models is different.
The prediction model of the steady-state temperature may be a function or a machine learning model, which is not limited in this embodiment of the present application.
In order to determine a predictive model of steady state temperature, in an alternative embodiment, the method may further comprise:
respectively acquiring the temperature at intervals of a first preset interval and the temperature at intervals of a second preset interval to obtain the temperature acquired at intervals of the first preset interval and the temperature acquired at intervals of the second preset interval;
performing linear fitting of an exponential function on the time points and the temperatures acquired every second preset time to obtain a fitting function;
calculating the temperature change rate of each time point in the time points acquired every first preset time according to the time points and the temperatures acquired every first preset time;
according to the fitting function, determining a prediction function of the steady-state temperature according to the temperature of each time point and the temperature change rate of each time point;
the prediction function is determined as a prediction model.
Specifically, taking the first preset interval time as 5s and the second preset interval time as 1s as an example, when the electronic equipment runs the game application program, acquiring temperatures at intervals of 1s and 5s respectively to obtain temperatures acquired at intervals of 5s and temperatures acquired at intervals of 1s, and then performing linear fitting of an exponential function on at least two groups of data consisting of time points acquired at intervals of 1s and temperatures to obtain a fitting function of the exponential function as follows:
wherein t represents a time point, y represents a temperature, and a, a and b are constants.
The temperatures of the time points acquired every 1s can be calculated by using the formulas (1) and (2), and the temperature change rate of each time point can be calculated, so that after the temperature of each time point is known, the temperature change rate and the fitting function of each time point can be used for constructing a prediction function of the steady-state temperature as follows:
wherein T' is the current temperature change rate, T 0 Substituting t ' into the above for the current temperature and t ' as relative time, namely relative to the time length of the current time, so as to obtain the steady-state temperature of the time point of the current time plus the time length of t '; it can be seen that with the above-described predictive model, the electronic device needs to calculate the steady-state temperature based on the current temperature, the current temperature change rate, and the fitting function.
That is, the steady-state temperature can be predicted using the above-described prediction function of the steady-state temperature, so the prediction function is determined as the prediction model.
In addition, in order to construct an accurate prediction model, smoothing may be performed on the collected data to make the data for constructing the prediction model more accurate, in an alternative embodiment, collecting the temperature at intervals of a first preset interval and the temperature at intervals of a second preset interval, respectively, to obtain the temperature collected at intervals of the first preset interval and the temperature collected at intervals of the second preset interval, including:
respectively collecting the temperature at intervals of a first preset interval and the temperature at intervals of a second preset interval;
smoothing filtering is carried out on the collected temperatures at intervals of a first preset time to obtain the collected temperatures at intervals of the first preset time;
and carrying out smooth filtering on the acquired temperature at intervals of the second preset time to obtain the temperature acquired at intervals of the second preset time.
Here, taking the temperature collected every 1s and the temperature collected every 5s as an example, smoothing filtering, for example, polynomial smoothing filtering is performed on the collected data sets at the temperature collected every 1s and the temperature collected every 5s, respectively; and selecting filter parameters with finer granularity, so that the temperature acquired every 1s and the temperature acquired every 5s can be obtained.
Finally, the electronic equipment constructs a prediction function of the steady-state temperature based on the smooth filtered temperature, and further obtains a more accurate prediction model so as to predict the more accurate steady-state temperature.
In addition to the above smoothing filtering of the collected data, weighted recursive average filtering may be performed, in an alternative embodiment, respectively collecting the temperature at intervals of a first preset interval and the temperature at intervals of a second preset interval, to obtain the temperature collected at intervals of the first preset interval and the temperature collected at intervals of the second preset interval, including:
respectively collecting the temperature at intervals of a first preset interval and the temperature at intervals of a second preset interval;
weighting, recursion and average filtering are carried out on the collected temperatures at intervals of a first preset time to obtain the collected temperatures at intervals of the first preset time;
and carrying out weighted recursive average filtering on the acquired temperature at intervals of the second preset time to obtain the temperature acquired at intervals of the second preset time.
Specifically, taking the temperature collected every 1s and the temperature collected every 5s as an example, respectively carrying out weighted recursive average filtering on the collected data set at the temperature collected every 1s and the temperature collected every 5s, for example, taking N temperature sampling values which are continuously taken as a queue, fixing the length of the queue as N, putting the N temperature sampling values into the tail end of the queue every time a new temperature is sampled, throwing out one data of the original queue head, carrying out arithmetic average calculation on the N temperatures in the queue, adding different weights to the temperature sampling data at different moments, generally, leading the temperature to rise faster when the initial temperature is smaller, leading the distance to be stable, adding smaller weights, and adding larger weights after the temperature is gradually smoothed. The greater the weight, the higher the sensitivity.
Finally, the electronic equipment constructs a prediction function of the steady-state temperature based on the weighted recursively average filtered temperature, and further obtains a more accurate prediction model to predict the more accurate steady-state temperature.
In order to determine a more accurate steady state temperature, in an alternative embodiment, the method may further comprise:
acquiring steady-state temperatures of the electronic equipment under at least two power consumption conditions to form a training data set;
inputting the training data set into a preset machine learning model for training to obtain a trained machine learning model;
the trained machine learning model is determined as a predictive model.
Specifically, in addition to the above fitting method for constructing the prediction model, a machine learning model may be used for constructing the prediction model, where a training data set is first acquired, and steady-state temperatures of the electronic device under at least two power consumptions are required to be acquired, for example, steady-state temperatures of 500mA are acquired, steady-state temperatures of 1000mA are acquired, so as to form a training data set, and then the training data set is input into a preset machine learning model for training, so that a trained machine learning model is trained, and the trained machine learning model is determined as the prediction model.
Aiming at the prediction model, in order to predict the steady-state temperature, the power consumption of the current electronic equipment needs to be acquired, and the steady-state temperature can be determined by inputting the power consumption of the electronic equipment into the prediction model.
S102: when the current temperature of the electronic equipment is smaller than or equal to the steady-state temperature and the current temperature change rate of the electronic equipment is larger than a preset rate threshold, reducing the display frame rate of the electronic equipment;
specifically, after the steady-state temperature of the electronic device is obtained through S101, the steady-state temperature is compared with the current temperature, and the current temperature change rate is compared with a preset rate change threshold, when the current temperature is less than or equal to the steady-state temperature and the current temperature change rate is less than the preset rate threshold, it is indicated that the electronic device is in an unsteady state at this time, so the electronic device still reduces the temperature of the electronic device by reducing the display frame rate of the electronic device, thereby achieving the purpose of controlling the temperature of the electronic device; the electronic device may reduce a display frame rate of the electronic device according to a preset step size.
S103: when the current temperature is less than or equal to the steady-state temperature and the current temperature change rate is less than or equal to a preset rate threshold, the display frame rate of the electronic equipment is maintained.
In addition, when the current temperature is less than or equal to the steady-state temperature and the current temperature change rate is less than or equal to the preset rate threshold, the electronic equipment is indicated to be in a steady state or a steady state at the moment, so in order to prevent the excessive control of the temperature of the electronic equipment, the display frame rate of the electronic equipment is maintained, so as to ensure the display effect of the electronic equipment.
In order to enhance the control effect on the temperature of the electronic device, in an alternative embodiment, S103 may include:
when the current temperature is smaller than or equal to the steady-state temperature and the current temperature change rate is smaller than or equal to the preset rate threshold, and the difference value between the steady-state temperature and the preset first temperature threshold is smaller than the preset error value, the display frame rate of the electronic equipment is maintained.
That is, when the current temperature is less than or equal to the steady-state temperature and the current temperature change rate is less than or equal to the preset rate threshold, a difference between the steady-state temperature and the preset first temperature threshold is calculated, and a relation between the difference and the preset error value is determined.
Finally, in order to enhance the control effect on the temperature of the electronic device, in an alternative embodiment, the method may further include:
and when the current temperature is greater than the steady-state temperature, returning to execute the acquisition of the steady-state temperature of the electronic equipment.
Finally, when the current temperature is greater than the steady-state temperature, it is indicated that the actual temperature of the electronic device is greater than the steady-state temperature, so that the obtained steady-state temperature is not the actual steady-state temperature of the electronic device, and therefore, the steady-state temperature of the electronic device needs to be re-obtained, where the re-obtaining of the steady-state temperature of the electronic device may be to reconstruct the prediction model to calculate a more accurate steady-state temperature.
The control methods described in one or more of the above embodiments are described below by way of example.
Fig. 2 is a schematic diagram of an example one of an alternative control method provided in the embodiment of the present application, as shown in fig. 2, the temperature detection device collects the temperature sensors (Temperature Transducer) on each side of the mobile phone, for example, a rear shell temperature sensor, a front shell temperature sensor and a side temperature sensor, and obtains software processable data after passing through a temperature processor; meanwhile, temperature fitting data obtained through training of a game process temperature data set in advance and relevant data issued by a game are input into a central processing unit (CPU, central Processing Unit), periodic monitoring is carried out, steady-state temperature is predicted, and a temperature control decision result for the game frame rate is given according to the prediction result; and (5) issuing the game frame rate obtained by the decision to a graphic processing unit (GPU, graphics Processing Unit) for rendering and displaying.
Specifically, the temperature fitting data is obtained by training a large amount of temperature data in the game process, the measured temperature data has more fluctuation, and the measured temperature data needs to be subjected to smooth filtering and then fitted to obtain a fitting parameter set (equivalent to the fitting function) which is strongly related to the chip platform.
The filter selects a polynomial smoothing filter based on a least square principle; the fitting algorithm uses a linear fit of an exponential function.
Wherein, the CPU mainly bears three parts of work: temperature monitoring, steady-state temperature prediction and temperature control decision. In the temperature monitoring process, a temperature monitoring threshold T1 is set, and when the measured temperature reaches T1, periodic steady-state temperature prediction is started. Steady state temperature prediction requires prediction from real-time temperature data and a temperature fitting parameter set. The real-time temperature change rate is calculated, the temperature in a future period is solved according to the fitting function, and when the temperature change rate is smaller, the steady-state temperature is predicted. And deciding a control scheme of the game frame rate at the current temperature according to the predicted steady-state temperature.
Fig. 3 is a schematic diagram of an example two of an alternative control method according to an embodiment of the present application, where, as shown in fig. 3, the control method may include:
s301: collecting a game temperature training set;
specifically, taking the heat dissipation capability of hardware into consideration, collecting temperature change data of each second in the game process as a game temperature training set;
s302: the steady-state temperature training module carries out polynomial smoothing filtering on the data obtained in the step S301;
s303: performing linear fitting of an exponential function on the data obtained in the step S302 to obtain a temperature fitting function; wherein the fitting function model is shown in formula (2).
S304: test data is collected.
Specifically, temperature data is acquired every five seconds during the game.
S305: and performing polynomial smoothing filtering processing on the test data, and selecting filter parameters with finer granularity.
S306: calculating a temperature change rate for the data obtained in S304;
s307: and smoothing the temperature change rate by using a polynomial smoothing filter, and selecting smoothing parameters with coarser granularity.
S308: the steady-state temperature prediction module constructs a steady-state temperature prediction function.
And (3) constructing a steady-state temperature prediction function according to the temperature fitting function, the current temperature change rate and the current temperature, wherein the steady-state temperature prediction function is shown in the formula (3).
It should be noted that, since the temperature change rate may reflect the influence of the environmental temperature, the game configuration influence, and the initial temperature, the prediction function of the steady-state temperature may be adaptively adjusted according to different environmental temperatures, initial temperatures, and game configurations.
S309: predicting the steady-state temperature of the test data to obtain the steady-state temperature;
firstly, whether the size of the test data set meets the condition needs to be judged, because the test data set is sampled every 5 seconds, if the size of the test data set is less than 120, namely the game duration is less than 10 minutes, and whether the current temperature is greater than T1 is judged, if one of the current temperature is not met, the steady-state temperature is not predicted, and because the data set is too small, the prediction error is larger.
Because the temperature change rate approaches 0 when the temperature reaches the steady state, whether the temperature is close to the steady state can be judged according to the temperature change rate, a temperature change rate threshold Tv can be set, if the current temperature change rate smooth value is smaller than Tv, the temperature is judged to be close to the steady state at the moment, and the predicted value of the steady state temperature is calculated by substituting the fitting function and the temperature change rate into the formula (3).
S310: the game frame rate decision module decides a game frame rate temperature control scheme according to the steady-state temperature;
specifically, the steady-state temperature is predicted in the current power consumption state, and it can be determined whether the temperature control of the next stage needs to be performed. If the temperature change rate is greater than Tv, the mobile phone still needs a period of time from the steady-state temperature, and the frame rate in the original temperature control scheme can be issued and implemented; for example, the display frame rate is reduced.
If the steady state is reached and the difference between the predicted value of the steady state temperature and the temperature threshold limiting the frame rate in the temperature control scheme is smaller than the error value e, the frame rate in the original temperature control scheme is not required to be issued and implemented, and the temperature control scheme of the previous stage is continued. And stores the raw temperature control scheme in memory.
S311: and displaying an interface according to the game frame rate obtained by the decision so as to display a game picture.
After the game frame rate is decided, periodic temperature monitoring is carried out, and scheme correction is carried out.
Since the predicted steady-state temperature predicted value depends on the game environment temperature and the stable power consumption in the game process, if the environment temperature, the brightness, the game configuration and the like are changed, the power consumption fluctuates greatly, and a large error occurs in the steady-state temperature predicted value. To prevent the temperature control scheme from being negatively affected, it is necessary to periodically monitor the real-time temperature. When the real-time temperature exceeds the predicted value of the steady-state temperature, the original temperature control scheme is read from the memory to be issued and executed.
Through the above example, the steady-state temperature in the game process is predicted, when the steady-state temperature is close to the temperature control threshold value, the temperature control is not performed any more, the game frame rate is greatly ensured, and meanwhile, the temperature rise is not greatly deteriorated.
The embodiment of the application provides a control method which is applied to electronic equipment, wherein a game application program runs on the electronic equipment, and the control method comprises the following steps: acquiring the steady-state temperature of the electronic equipment, reducing the display frame rate of the electronic equipment when the current temperature of the electronic equipment is smaller than or equal to the steady-state temperature and the current temperature change rate of the electronic equipment is larger than a preset rate threshold, and maintaining the display frame rate of the electronic equipment when the current temperature is smaller than or equal to the steady-state temperature and the current temperature change rate is smaller than or equal to the preset rate threshold; that is, in the embodiment of the present application, by acquiring the steady-state temperature of the terminal, comparing the current temperature of the electronic device with the steady-state temperature, and comparing the current temperature change rate of the electronic device with the preset change rate threshold, when the current temperature is less than or equal to the steady-state temperature, the temperature of the electronic device is at steady state or non-steady state, if the current temperature change rate is greater than the preset change rate threshold, the display frame rate is reduced according to the scheme in the related art, and if the current temperature change rate is less than the preset change rate, the display frame rate is maintained, so that, by the acquired steady-state temperature, the problem of excessive control of the display frame rate when the temperature of the electronic device is at steady state, resulting in degradation of the display frame rate is prevented, thereby improving the temperature control effect of the electronic device running the game.
Example two
Based on the same inventive concept, an embodiment of the present application provides an electronic device on which a game application is running, and fig. 4 is a schematic structural diagram of an alternative electronic device provided in the embodiment of the present application, as shown in fig. 4, where the electronic device includes: an acquisition module 41, a lowering module 42 and a maintenance module 43; wherein, the liquid crystal display device comprises a liquid crystal display device,
an acquisition module 41, configured to acquire a steady-state temperature of the electronic device;
a reducing module 42, configured to reduce a display frame rate of the electronic device when the current temperature of the electronic device is less than the steady-state temperature and the current temperature change rate of the electronic device is greater than a preset rate threshold;
the maintaining module 43 is configured to maintain the display frame rate of the electronic device when the current temperature is less than or equal to the steady-state temperature and the current temperature change rate is less than or equal to the preset rate threshold.
In an alternative embodiment, the electronic device is further configured to:
and when the current temperature is greater than the steady-state temperature, returning to execute the acquisition of the steady-state temperature of the electronic equipment.
In an alternative embodiment, the maintenance module 43 is specifically configured to:
when the current temperature is smaller than or equal to the steady-state temperature and the current temperature change rate is smaller than or equal to the preset rate threshold, and the difference value between the steady-state temperature and the preset first temperature threshold is smaller than the preset error value, the display frame rate of the electronic equipment is maintained.
In an alternative embodiment, the obtaining module 41 is specifically configured to:
and when the running time of the game application program is greater than or equal to a preset time threshold and the current temperature is greater than a preset second temperature threshold, acquiring the steady-state temperature of the electronic equipment.
In an alternative embodiment, the obtaining module 41 is specifically configured to:
collecting the temperature at intervals of a first preset interval;
determining the temperature change rate of each time point in the acquired time points according to the relation between the acquired time points and the temperature;
and when the current temperature change rate is smaller than a preset rate threshold, calling a preset prediction model to determine the steady-state temperature of the electronic equipment.
In an alternative embodiment, the electronic device is further configured to:
respectively acquiring the temperature at intervals of a first preset interval and the temperature at intervals of a second preset interval to obtain the temperature acquired at intervals of the first preset interval and the temperature acquired at intervals of the second preset interval;
performing linear fitting of an exponential function on the time points and the temperatures acquired every second preset time to obtain a fitting function;
calculating the temperature change rate of each time point in the time points acquired every first preset time according to the time points and the temperatures acquired every first preset time;
according to the fitting function, determining a prediction function of the steady-state temperature according to the temperature of each time point and the temperature change rate of each time point;
the prediction function is determined as a prediction model.
In an alternative embodiment, the electronic device collects the temperature at intervals of a first preset interval and the temperature at intervals of a second preset interval, respectively, so as to obtain the temperature collected at intervals of the first preset interval and the temperature collected at intervals of the second preset interval, which includes:
respectively collecting the temperature at intervals of a first preset interval and the temperature at intervals of a second preset interval;
smoothing filtering is carried out on the collected temperatures at intervals of a first preset time to obtain the collected temperatures at intervals of the first preset time;
and carrying out smooth filtering on the acquired temperature at intervals of the second preset time to obtain the temperature acquired at intervals of the second preset time.
In an alternative embodiment, the electronic device collects the temperature at intervals of a first preset interval and the temperature at intervals of a second preset interval, respectively, so as to obtain the temperature collected at intervals of the first preset interval and the temperature collected at intervals of the second preset interval, which includes:
respectively collecting the temperature at intervals of a first preset interval and the temperature at intervals of a second preset interval;
weighting, recursion and average filtering are carried out on the collected temperatures at intervals of a first preset time to obtain the collected temperatures at intervals of the first preset time;
and carrying out weighted recursive average filtering on the acquired temperature at intervals of the second preset time to obtain the temperature acquired at intervals of the second preset time.
In an alternative embodiment, the electronic device is further configured to:
acquiring steady-state temperatures of the electronic equipment under at least two power consumption conditions to form a training data set;
inputting the training data set into a preset machine learning model for training to obtain a trained machine learning model;
the trained machine learning model is determined as a predictive model.
In an alternative embodiment, the electronic device is further configured to:
respectively acquiring the current temperature of a rear shell of the electronic equipment, the current temperature of a front shell of the electronic equipment and the current temperature of a side edge of the electronic equipment;
and selecting a maximum value from the current temperature of the rear shell, the current temperature of the front shell and the current temperature of the side edge, and determining the maximum value as the current temperature.
Fig. 5 is a schematic structural diagram of another alternative electronic device according to an embodiment of the present application, and as shown in fig. 5, an embodiment of the present application provides an electronic device 500, including: a processor 51 and a storage medium 52 storing instructions executable by the processor; the storage medium 52 operates in dependence upon the processor 51 via a communication bus 53 to perform the control methods described above for processor-side execution in one or more embodiments when the instructions are executed by the processor.
In practical use, the components in the terminal are coupled together via the communication bus 53. It will be appreciated that the communication bus 53 is used to enable connected communication between these components. The communication bus 53 includes a power bus, a control bus, and a status signal bus in addition to the data bus. But for clarity of illustration the various buses are labeled as communication bus 53 in fig. 5.
Embodiments of the present application provide a computer storage medium storing executable instructions that, when executed by one or more processors, perform the control method described in one or more embodiments above.
The computer readable storage medium may be a magnetic random access Memory (ferromagnetic random access Memory, FRAM), read Only Memory (ROM), programmable Read Only Memory (Programmable Read-Only Memory, PROM), erasable programmable Read Only Memory (Erasable Programmable Read-Only Memory, EPROM), electrically erasable programmable Read Only Memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), flash Memory (Flash Memory), magnetic surface Memory, optical disk, or compact disk Read Only Memory (Compact Disc Read-Only Memory, CD-ROM).
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, magnetic disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The foregoing description is only of the preferred embodiments of the present application, and is not intended to limit the scope of the present application.

Claims (8)

1. A control method, wherein the method is applied to an electronic device, and a game application program runs on the electronic device, and the control method comprises the following steps:
acquiring a steady-state temperature of the electronic equipment;
when the current temperature of the electronic equipment is smaller than or equal to the steady-state temperature and the current temperature change rate of the electronic equipment is larger than a preset rate threshold, reducing the display frame rate of the electronic equipment;
when the current temperature is smaller than or equal to the steady-state temperature, the current temperature change rate is smaller than or equal to a preset rate threshold, and the difference value between the steady-state temperature and a preset first temperature threshold is smaller than a preset error value, maintaining the display frame rate of the electronic equipment;
wherein the obtaining the steady-state temperature of the electronic device includes:
collecting the temperature at intervals of a first preset interval;
determining the temperature change rate of each time point in the acquired time points according to the relation between the acquired time points and the temperature;
when the current temperature change rate is smaller than a preset rate threshold, a preset prediction model is called, and the steady-state temperature of the electronic equipment is determined;
wherein determining the predictive model comprises:
respectively collecting the temperature at intervals of a first preset interval and the temperature at intervals of a second preset interval;
smoothing filtering the collected temperature at intervals of a first preset time to obtain the collected temperature at intervals of the first preset time;
smoothing filtering the collected temperature at intervals of the second preset time to obtain the temperature collected at intervals of the second preset time;
performing linear fitting of an exponential function on the time points and the temperatures acquired every second preset time to obtain a fitting function;
calculating the temperature change rate of each time point in the time points acquired every other first preset time according to the time points and the temperatures acquired every other first preset time;
according to the fitting function, determining a prediction function of the steady-state temperature according to the temperature of each time point and the temperature change rate of each time point;
the prediction function is determined as the prediction model.
2. The method according to claim 1, wherein the method further comprises:
and when the current temperature is greater than the steady-state temperature, returning to execute the acquisition of the steady-state temperature of the electronic equipment.
3. The method of claim 1, wherein the obtaining the steady state temperature of the electronic device comprises:
and when the running time of the game application program is greater than or equal to a preset time threshold and the current temperature is greater than a preset second temperature threshold, acquiring the steady-state temperature of the electronic equipment.
4. The method according to claim 1, wherein the method further comprises:
acquiring steady-state temperatures of the electronic equipment under at least two power consumption conditions to form a training data set;
inputting the training data set into a preset machine learning model for training to obtain a trained machine learning model;
and determining the trained machine learning model as the prediction model.
5. The method according to claim 1, wherein the method further comprises:
respectively acquiring the current temperature of a rear shell of the electronic equipment, the current temperature of a front shell of the electronic equipment and the current temperature of a side edge of the electronic equipment;
and selecting a maximum value from the current temperature of the rear shell, the current temperature of the front shell and the current temperature of the side edge, and determining the maximum value as the current temperature.
6. An electronic device having a game-like application running thereon, comprising:
the acquisition module is used for acquiring the steady-state temperature of the electronic equipment; wherein the obtaining the steady-state temperature of the electronic device includes: collecting the temperature at intervals of a first preset interval; determining the temperature change rate of each time point in the acquired time points according to the relation between the acquired time points and the temperature; when the current temperature change rate is smaller than a preset rate threshold, a preset prediction model is called, and the steady-state temperature of the electronic equipment is determined; wherein determining the predictive model comprises: respectively collecting the temperature at intervals of a first preset interval and the temperature at intervals of a second preset interval; smoothing filtering the collected temperature at intervals of a first preset time to obtain the collected temperature at intervals of the first preset time; smoothing filtering the collected temperature at intervals of the second preset time to obtain the temperature collected at intervals of the second preset time; performing linear fitting of an exponential function on the time points and the temperatures acquired every second preset time to obtain a fitting function; calculating the temperature change rate of each time point in the time points acquired every other first preset time according to the time points and the temperatures acquired every other first preset time; according to the fitting function, determining a prediction function of the steady-state temperature according to the temperature of each time point and the temperature change rate of each time point; determining the prediction function as the prediction model;
a reducing module, configured to reduce a display frame rate of the electronic device when a current temperature of the electronic device is less than the steady-state temperature and a current temperature change rate of the electronic device is greater than a preset rate threshold;
and the maintaining module is used for maintaining the display frame rate of the electronic equipment when the current temperature is smaller than or equal to the steady-state temperature, the current temperature change rate is smaller than or equal to a preset rate threshold value and the difference value between the steady-state temperature and a preset first temperature threshold value is smaller than a preset error value.
7. An electronic device, comprising: a processor and a storage medium storing instructions executable by the processor; the storage medium is operative to rely on the processor for performing operations through a communication bus, which, when executed by the processor, perform the control method of any one of claims 1 to 5.
8. A computer storage medium storing executable instructions which, when executed by one or more processors, perform the control method of any one of claims 1 to 5.
CN202111090660.XA 2021-09-17 2021-09-17 Control method, electronic equipment and computer storage medium Active CN113873074B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111090660.XA CN113873074B (en) 2021-09-17 2021-09-17 Control method, electronic equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111090660.XA CN113873074B (en) 2021-09-17 2021-09-17 Control method, electronic equipment and computer storage medium

Publications (2)

Publication Number Publication Date
CN113873074A CN113873074A (en) 2021-12-31
CN113873074B true CN113873074B (en) 2023-09-29

Family

ID=78996349

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111090660.XA Active CN113873074B (en) 2021-09-17 2021-09-17 Control method, electronic equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN113873074B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116301117B (en) * 2023-05-24 2023-10-20 荣耀终端有限公司 Temperature control method and electronic equipment
CN117062158B (en) * 2023-10-12 2024-03-08 深圳市亿联无限科技股份有限公司 Router overheat treatment method, router overheat treatment device, server and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112587920A (en) * 2020-12-01 2021-04-02 Oppo(重庆)智能科技有限公司 Device control method, device, electronic device and storage medium
CN112629905A (en) * 2020-12-22 2021-04-09 杭州未名信科科技有限公司 Equipment anomaly detection method and system based on deep learning and computer medium
CN113064660A (en) * 2019-12-31 2021-07-02 Oppo广东移动通信有限公司 Device control method, device, electronic device and storage medium
CN113296724A (en) * 2021-05-24 2021-08-24 Oppo广东移动通信有限公司 Display parameter adjusting method and device, electronic equipment and storage medium
CN113391684A (en) * 2021-05-21 2021-09-14 北京小米移动软件有限公司 Temperature control method, temperature control device, and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109951644B (en) * 2017-03-06 2021-02-05 Oppo广东移动通信有限公司 Control method, control device and electronic device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113064660A (en) * 2019-12-31 2021-07-02 Oppo广东移动通信有限公司 Device control method, device, electronic device and storage medium
CN112587920A (en) * 2020-12-01 2021-04-02 Oppo(重庆)智能科技有限公司 Device control method, device, electronic device and storage medium
CN112629905A (en) * 2020-12-22 2021-04-09 杭州未名信科科技有限公司 Equipment anomaly detection method and system based on deep learning and computer medium
CN113391684A (en) * 2021-05-21 2021-09-14 北京小米移动软件有限公司 Temperature control method, temperature control device, and storage medium
CN113296724A (en) * 2021-05-24 2021-08-24 Oppo广东移动通信有限公司 Display parameter adjusting method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN113873074A (en) 2021-12-31

Similar Documents

Publication Publication Date Title
CN113873074B (en) Control method, electronic equipment and computer storage medium
CN109242135B (en) Model operation method, device and business server
JP4756675B2 (en) System, method and program for predicting computer resource capacity
KR102651874B1 (en) Method and apparatus for power management
CN105030199A (en) Sleep monitoring method and device
CN107726632B (en) Heating control method and server
CN111475384B (en) Shell temperature calculation method and device, storage medium and electronic equipment
CN112204581A (en) Learning device, deduction device, method and program
CN104883158B (en) The filtering method and filter of acceleration pedal of electric automobile signal
CN109407801A (en) A kind of data center's temperature control method and system
CN114490275B (en) MCU-based host monitoring control method, system, electronic equipment and medium
CN110008528B (en) Data processing method and device and electronic equipment
CN110737322A (en) Information processing method and electronic equipment
CN107729144B (en) Application control method and device, storage medium and electronic equipment
CN110826196B (en) Industrial equipment operation data processing method and device
JP2004078780A (en) Method, device, and program for prediction, and recording medium recording the prediction program
CN115169245A (en) Method and device for predicting drying and cooling time, computer equipment and storage medium
CN111473887B (en) Shell temperature acquisition method and device, storage medium and electronic equipment
CN114305371B (en) Riding heart rate detection stabilization algorithm and heart rate meter
CN111248857A (en) Sleep quality monitoring method and device, computer equipment and storage medium
CN116880404B (en) Production control method, device, equipment and medium based on constant model
WO2023210086A1 (en) Presentation method and presentation system
CN112101652B (en) Method and device for predicting task number, readable storage medium and electronic equipment
JP2007108020A (en) Inflow calculation program, apparatus and method therefor
CN117408157A (en) Water purifier, training method of filter element service life prediction model and service life prediction method

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
GR01 Patent grant
GR01 Patent grant