CN117406805A - Temperature control method and device, storage medium and computer equipment - Google Patents

Temperature control method and device, storage medium and computer equipment Download PDF

Info

Publication number
CN117406805A
CN117406805A CN202311004019.9A CN202311004019A CN117406805A CN 117406805 A CN117406805 A CN 117406805A CN 202311004019 A CN202311004019 A CN 202311004019A CN 117406805 A CN117406805 A CN 117406805A
Authority
CN
China
Prior art keywords
temperature
target
determining
value
target temperature
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
CN202311004019.9A
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.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN202311004019.9A priority Critical patent/CN117406805A/en
Publication of CN117406805A publication Critical patent/CN117406805A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D23/00Control of temperature
    • G05D23/19Control of temperature characterised by the use of electric means
    • G05D23/20Control of temperature characterised by the use of electric means with sensing elements having variation of electric or magnetic properties with change of temperature

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Control Of Temperature (AREA)

Abstract

The embodiment of the application discloses a temperature control method, a temperature control device, a storage medium and computer equipment, wherein the method comprises the following steps: acquiring a temperature value counted by each unit time in a temperature counting period, and determining a plurality of target temperature values with different temperature values; determining the counted target quantity of each target temperature value in a temperature counting period; determining a target temperature mean value in a temperature statistics period based on each target temperature value and the corresponding target quantity; determining a target average value interval in which a target temperature average value is located from the plurality of temperature average value intervals; and determining a target temperature control strategy corresponding to the target average value interval according to the corresponding relation between the average value interval and the temperature control strategy, and controlling the temperature according to the target temperature control strategy. And determining a relatively accurate target temperature average value based on the temperature counted in the temperature counting period, controlling the computer equipment according to the target temperature average value and the temperature control strategy, and improving the accuracy of temperature control of the mobile phone.

Description

Temperature control method and device, storage medium and computer equipment
Technical Field
The present disclosure relates to the field of computers, and in particular, to a temperature control method, a temperature control device, a computer readable storage medium, and a computer device.
Background
The temperature of the working environment of the mobile phone is correspondingly increased when the temperature is increased in summer, so that the mobile phone is easier to generate heat, if the mobile phone is not effectively controlled, the electronic components can be aged for a long time, even fire and explosion accidents caused by thermal runaway can be caused, and potential risks are brought to life and property safety of people. The whole performance of the mobile phone can be reduced due to the fact that the temperature of the mobile phone is too high, the running speed of the mobile phone is reduced, the mobile phone is halted, restarted and the like, and the mobile phone runs at a high temperature for a long time, so that electronic components can be aged, and the service life of the mobile phone is influenced.
In the research and practice process of the prior art, the inventor of the application finds that inaccurate mobile phone temperature measurement caused by external environment factors exists in the prior art, and then inaccurate temperature control is caused.
Disclosure of Invention
The embodiment of the application provides a temperature control method and device, which can avoid inaccurate temperature measurement of a mobile phone caused by external environment factors, further lead to untimely and unreasonable temperature control and improve the accuracy of temperature control of the mobile phone.
In order to solve the technical problems, the embodiment of the application provides the following technical scheme:
a temperature control method, comprising:
Acquiring a temperature value counted by each unit time in a temperature counting period, and determining a plurality of target temperature values with different temperature values;
determining the counted target quantity of each target temperature value in the temperature counting period;
determining a target temperature mean value in the temperature statistics period based on each target temperature value and the corresponding target quantity;
determining a target average value interval in which the target temperature average value is located from a plurality of temperature average value intervals;
and determining a target temperature control strategy corresponding to the target average value interval according to the corresponding relation between the average value interval and the temperature control strategy, and controlling the temperature according to the target temperature control strategy.
In the temperature control method provided in the embodiment of the present application, the step of determining the target temperature average value in the temperature statistics period based on each target temperature value and the corresponding target number includes:
determining the occurrence probability of each target temperature value in the temperature statistics period based on the target number counted by each target temperature value in the temperature statistics period and the total statistics amount;
and determining a target temperature average value in the temperature statistics period according to each target temperature value and the corresponding occurrence probability.
In the temperature control method provided in the embodiment of the present application, the step of determining the occurrence probability of each target temperature value in the temperature statistics period based on the target number counted by each target temperature value in the temperature statistics period and the total statistics amount includes:
and calculating the ratio of the counted target quantity of each target temperature value in the temperature counting period to the total statistics quantity to obtain the occurrence probability of each target temperature value in the temperature counting period.
In the temperature control method provided in the embodiment of the present application, the step of determining, according to each target temperature value and a corresponding occurrence probability, a target temperature average value in the temperature statistics period includes:
calculating the product of each target temperature value and the corresponding occurrence probability to obtain a calculation result corresponding to each target temperature value;
and determining a target temperature average value in the temperature statistics period based on a calculation result corresponding to each target temperature value.
In the temperature control method provided in the embodiment of the present application, the step of determining the target temperature average value in the temperature statistics period based on the calculation result corresponding to each target temperature value includes:
And calculating the sum of the calculation results corresponding to the target temperature values, and determining the sum as a target temperature average value in the temperature statistics period.
In the temperature control method provided in the embodiment of the present application, after the step of obtaining the temperature value counted in each unit time in the temperature counting period, the method further includes:
determining the sum of the temperature values of the temperature statistics period to obtain a total temperature value;
and determining a target temperature average value in a temperature statistics period based on the total temperature value and the total statistics quantity.
In the temperature control method provided in the embodiment of the present application, the step of determining the target temperature average value in the temperature statistics period based on the total temperature value and the total statistics amount includes:
and calculating the ratio of the total temperature value to the total statistical quantity, and determining the ratio as a target temperature average value in the temperature statistical period.
A temperature control device, comprising:
the acquisition module is used for acquiring the temperature value counted by each unit time in the temperature counting period and determining a plurality of target temperature values with different temperature values;
a first determining module, configured to determine a target number counted by each of the target temperature values in the temperature counting period;
The second determining module is used for determining a target temperature average value in the temperature statistics period based on each target temperature value and the corresponding target quantity;
the third determining module is used for determining a target mean value interval in which the target temperature mean value is located from a plurality of temperature mean value intervals;
the control module is used for determining a target temperature control strategy corresponding to the target mean value interval according to the corresponding relation between the mean value interval and the temperature control strategy, and controlling the temperature according to the target temperature control strategy.
In the temperature control device provided in the embodiment of the present application, the second determining module includes:
a first determining sub-module for determining occurrence probability of each of the target temperature values in the temperature statistics period based on the target number counted by each of the target temperature values in the temperature statistics period and a total statistics amount;
and the second determining submodule is used for determining a target temperature average value in the temperature statistical period according to each target temperature value and the corresponding occurrence probability.
In the temperature control device provided in the embodiment of the present application, the first determining submodule includes:
the first calculating unit is used for calculating the ratio of the target quantity counted by each target temperature value in the temperature counting period to the total counting quantity to obtain the occurrence probability of each target temperature value in the temperature counting period.
In the temperature control device provided in the embodiment of the present application, the second determining submodule includes:
the second calculation unit is used for calculating the product of each target temperature value and the corresponding occurrence probability to obtain a calculation result corresponding to each target temperature value;
and the first determining unit is used for determining a target temperature mean value in the temperature statistics period based on the calculation result corresponding to each target temperature value.
In the temperature control device provided in the embodiment of the present application, a first determining unit is configured to:
and calculating the sum of the calculation results corresponding to the target temperature values, and determining the sum as a target temperature average value in the temperature statistics period.
In the temperature control device provided in the embodiment of the present application, the temperature control device further includes:
a fourth determining module, configured to determine a sum of temperature values in the temperature statistics period, to obtain a total temperature value;
and a fifth determining module, configured to determine a target temperature average value in a temperature statistics period based on the total temperature value and the total statistics amount.
In the temperature control device provided in the embodiment of the present application, a fifth determining module includes:
and the calculating sub-module is used for calculating the ratio of the total temperature value to the total statistical quantity and determining the ratio as a target temperature average value in the temperature statistical period.
A computer readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps of the temperature control method described above.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the above temperature control method when executing the program.
According to the embodiment of the application, the temperature value counted by each unit time in the temperature counting period is obtained, and a plurality of target temperature values with different temperature values are determined; determining the counted target quantity of each target temperature value in the temperature counting period; determining a target temperature mean value in the temperature statistics period based on each target temperature value and the corresponding target quantity; determining a target average value interval in which the target temperature average value is located from a plurality of temperature average value intervals; and determining a target temperature control strategy corresponding to the target average value interval according to the corresponding relation between the average value interval and the temperature control strategy, and controlling the temperature according to the target temperature control strategy. Therefore, a more accurate target temperature average value can be determined based on the temperature counted in the temperature counting period, the computer equipment is controlled according to the target temperature average value and the temperature control strategy, the situation that the mobile phone temperature is not accurately measured due to external environment factors and is not timely and reasonable in temperature control is avoided, and the accuracy of the mobile phone temperature control is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a temperature control method according to an embodiment of the present application.
Fig. 2 is a schematic structural diagram of a temperature control device according to an embodiment of the present application.
Fig. 3 is a schematic structural diagram of a computer 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 drawings in the embodiments of the present application. It will be apparent that the described embodiments are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
Embodiments of the present application provide a temperature control method, apparatus, and computer readable storage medium.
Embodiments of the present application provide a temperature control method that may be performed by a computer device 1000. The computer device 1000 determines a plurality of target temperature values having different temperature values by acquiring the temperature value counted per unit time in the temperature counting period; determining the counted target quantity of each target temperature value in the temperature counting period; determining a target temperature mean value in the temperature statistics period based on each target temperature value and the corresponding target quantity; determining a target average value interval in which the target temperature average value is located from a plurality of temperature average value intervals; and determining a target temperature control strategy corresponding to the target average value interval according to the corresponding relation between the average value interval and the temperature control strategy, and controlling the temperature according to the target temperature control strategy. Therefore, a more accurate target temperature average value can be determined based on the temperature counted in the temperature counting period, the computer equipment is controlled according to the target temperature average value and the temperature control strategy, the situation that the mobile phone temperature is not accurately measured due to external environment factors and is not timely and reasonable in temperature control is avoided, and the accuracy of the mobile phone temperature control is improved.
It should be noted that, the temperature control system and the scenario described in the embodiments of the present application are for more clearly describing the technical solution of the embodiments of the present application, and do not constitute a limitation to the technical solution provided in the embodiments of the present application, and those skilled in the art can know that, with the evolution of the temperature control system and the appearance of a new service scenario, the technical solution provided in the embodiments of the present application is equally applicable to similar technical problems.
In the prior art, when computer equipment such as a mobile phone, a tablet and the like is used for controlling the temperature, real-time temperature control is generally adopted, for example, after the current temperature is acquired, instantaneous control is carried out based on the current temperature. However, the temperature of the mobile phone is suddenly changed due to the sudden change of external factors, but the actual temperature is still the previous temperature, so that the detection result is inaccurate, and the control according to the inaccurate detection temperature is not timely and reasonable, so that the accuracy of temperature measurement needs to be improved.
In the present embodiment, description will be made from the viewpoint of a temperature control device which can be integrated in a computer apparatus having a storage unit and a microprocessor mounted thereon and having arithmetic capability.
Referring to fig. 1, fig. 1 is a flow chart of a temperature control method according to an embodiment of the present application. The temperature control method comprises the following steps:
in step 101, a temperature value counted for each unit time in a temperature counting period is acquired, and a plurality of target temperature values having different temperature values are determined.
The difference between the present application and the prior art is that: the present application presets a temperature statistics period, for example every 1 minute, or every 10 minutes. The temperature statistics is performed at a preset statistical frequency in a statistical period, for example, the detected temperature value is counted every 5 seconds, or the detected temperature value is counted every 10 seconds, so that a plurality of temperature values can be obtained in one temperature statistical period.
Specifically, after a plurality of temperature values are obtained in one temperature statistics period, a plurality of target temperature values with different temperature values are determined through the temperature values. For example, 30 °, 40 °, 30 °, 40 °, and 50 ° are obtained in one temperature statistics period, and the target temperature values are 30 °, 40 °, and 50 °.
In step 102, a target number of each of the target temperature values counted in the temperature counting period is determined.
After determining the target temperature value, the target number of counted positions in the temperature counting period where the target temperature value is located can be determined through the target temperature value.
For example, if 30 °, 40 °, 30 °, 40 °, and 50 ° are obtained in one temperature statistics period, the target temperature value is 30 ° and the target number is 4; the target number corresponding to the target temperature value of 40 degrees is 2; the target temperature value is 50 deg. and the corresponding target number is 1. Thereby obtaining the target quantity counted by each target temperature value in the temperature counting period.
In step 103, a target temperature average value in the temperature statistics period is determined based on each of the target temperature values and the corresponding target number.
After obtaining the target temperature values and the target numbers corresponding to the target temperature values in the temperature statistics period, the target temperature average value in the temperature statistics period can be determined based on the target temperature values and the corresponding target numbers.
In some embodiments, the step of determining a target temperature mean value within the temperature statistics period based on each of the target temperature values and the corresponding target number includes:
(1) Determining the occurrence probability of each target temperature value in the temperature statistics period based on the target number counted by each target temperature value in the temperature statistics period and the total statistics amount;
(2) And determining a target temperature average value in the temperature statistics period according to each target temperature value and the corresponding occurrence probability.
Based on each target temperature value and the corresponding target number, the specific manner of determining the target temperature average value in the temperature statistics period is as follows: determining the occurrence probability of each target temperature value in the temperature statistics period based on the target number counted by each target temperature value in the temperature statistics period and the total count of the temperature values counted in the temperature statistics period; and determining a target temperature average value in the temperature statistics period according to each target temperature value and the corresponding occurrence probability.
In some embodiments, the step of determining the occurrence probability of each of the target temperature values in the temperature statistics period based on the target number counted by each of the target temperature values in the temperature statistics period and a total statistics amount includes:
and calculating the ratio of the counted target quantity of each target temperature value in the temperature counting period to the total statistics quantity to obtain the occurrence probability of each target temperature value in the temperature counting period.
Wherein, based on the target number counted by each target temperature value in the temperature counting period and the total statistics, the specific mode of determining the occurrence probability of each target temperature value in the temperature counting period is as follows: and calculating the ratio of the counted target quantity of each target temperature value in the temperature counting period to the total statistics quantity to obtain the occurrence probability of each target temperature value in the temperature counting period.
For example, if 30 °, 40 °, 30 °, 40 °, and 50 ° are obtained in one temperature statistics period, the target temperature value is 30 ° and the target number is 4; the target number corresponding to the target temperature value of 40 degrees is 2; the target temperature value is 50 deg. and the corresponding target number is 1. Thereby obtaining the target quantity counted by each target temperature value in the temperature counting period. The occurrence probability corresponding to the target temperature value of 30 ° is 4/7=0.57; the occurrence probability corresponding to the target temperature value of 40 degrees is 2/7=0.28; the occurrence probability corresponding to the target temperature value of 50 ° is 1/7=0.14.
In some embodiments, the step of determining the target temperature average value in the temperature statistics period according to each target temperature value and the corresponding occurrence probability includes:
(1.1) calculating the product of each target temperature value and the corresponding occurrence probability to obtain a calculation result corresponding to each target temperature value;
(1.2) determining a target temperature mean value in the temperature statistics period based on the calculation result corresponding to each target temperature value.
The specific manner of determining the target temperature mean value in the temperature statistics period according to each target temperature value and the corresponding occurrence probability is as follows: calculating the product of each target temperature value and the corresponding occurrence probability to obtain a calculation result corresponding to each target temperature value; and determining a target temperature average value in the temperature statistics period according to the calculation result corresponding to each target temperature value.
For example, the occurrence probability corresponding to the target temperature value of 30 ° in one temperature statistics period is 4/7=0.57; the occurrence probability corresponding to the target temperature value of 40 degrees is 2/7=0.28; the occurrence probability corresponding to the target temperature value of 50 ° is 1/7=0.14. Then, the calculation result corresponding to the target temperature value of 30 ° is 30 ° ×0.57=17.1; the calculation result corresponding to the target temperature value of 40 degrees is 40 degrees by 0.28=11.2; the calculation result corresponding to the target temperature value of 50 ° is 50 ° 0.14=7.
In some embodiments, the step of determining the target temperature average value in the temperature statistics period based on the calculation result corresponding to each target temperature value includes:
and calculating the sum of the calculation results corresponding to the target temperature values, and determining the sum as a target temperature average value in the temperature statistics period.
For example, the calculation result corresponding to the target temperature value of 30 ° is 30 ° ×0.57=17.1; the calculation result corresponding to the target temperature value of 40 degrees is 40 degrees by 0.28=11.2; the calculation result corresponding to the target temperature value of 50 ° is 50 ° 0.14=7. The sum of the calculation results corresponding to the target temperature values is 17.1+11.2+7=35.3°, and the target temperature average value is 35.3 °.
In step 104, a target mean interval in which the target temperature mean is located is determined from a plurality of temperature mean intervals.
In this embodiment, a plurality of temperature average value intervals, for example, (20 °,35 °), [35 °,40 ° ] and (40 °,70 °) are set in advance for the computer device, and a target average value interval in which the target temperature average value is located is determined.
For example, the target temperature average is 35.3 °, then it is located in a target average interval of [35 °,40 ° ].
In step 105, a target temperature control strategy corresponding to the target mean interval is determined according to the correspondence between the mean interval and the temperature control strategy, and the temperature is controlled according to the target temperature control strategy.
And presetting a corresponding temperature control strategy for each mean value interval, so as to establish a corresponding relation between the mean value interval and the temperature control strategy. After the target mean interval is determined, the temperature can be controlled according to a target temperature control strategy corresponding to the target mean interval.
Specifically, the temperature control policy may include adjusting display brightness, processing frequency, and screen refresh rate of the electronic device, which are not limited herein.
In some embodiments, after the step of obtaining the temperature value counted per unit time in the temperature counting period, the method further includes:
(1) Determining the sum of the temperature values of the temperature statistics period to obtain a total temperature value;
(2) And determining a target temperature average value in a temperature statistics period based on the total temperature value and the total statistics quantity.
The calculation mode of the target temperature mean value may also be: and determining the sum of the temperature values of the temperature statistics period to obtain a total temperature value. And determining a target temperature average value in a temperature statistics period based on the total temperature value and the total statistics quantity.
For example, 30 °, 40 °, 30 °, 40 °, and 50 ° are obtained in one temperature statistics period, and the total temperature value is: 30 ° +40 ° +30° +30 ° +40 ° +50 ° =250°, the total statistical quantity was 7.
In some embodiments, the step of determining a target temperature mean value over a temperature statistics period based on the total temperature value and a total statistics amount comprises:
and calculating the ratio of the total temperature value to the total statistical quantity, and determining the ratio as a target temperature average value in the temperature statistical period.
Based on the total temperature value and the total statistics, the specific manner of determining the target temperature average value in the temperature statistics period is as follows: and calculating the ratio of the total temperature value to the total statistical quantity, and determining the calculation result as a target temperature mean value.
For example, the total temperature value is: 250 °, total statistical quantity 7, target temperature mean value 250 °/7=35.7°
As can be seen from the above, in the embodiment of the present application, the target temperature values with different temperature values are determined by obtaining the temperature value counted by each unit time in the temperature counting period; determining the counted target quantity of each target temperature value in the temperature counting period; determining a target temperature mean value in the temperature statistics period based on each target temperature value and the corresponding target quantity; determining a target average value interval in which the target temperature average value is located from a plurality of temperature average value intervals; and determining a target temperature control strategy corresponding to the target average value interval according to the corresponding relation between the average value interval and the temperature control strategy, and controlling the temperature according to the target temperature control strategy. Therefore, a more accurate target temperature average value can be determined based on the temperature counted in the temperature counting period, the computer equipment is controlled according to the target temperature average value and the temperature control strategy, the situation that the mobile phone temperature is not accurately measured due to external environment factors and is not timely and reasonable in temperature control is avoided, and the accuracy of the mobile phone temperature control is improved.
In order to facilitate better implementation of the temperature control method provided by the embodiment of the application, the embodiment of the application also provides a device based on the temperature control method. Wherein the meaning of the terms is the same as in the above temperature control method, specific implementation details can be referred to in the description of the method embodiments.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a temperature control device according to an embodiment of the present application, where the temperature control device includes a receiving module 201, a first determining module 202, a second determining module 203, a third determining module 204, a control module 205, and so on.
A receiving module 201, configured to obtain a temperature value counted by each unit time in a temperature counting period, and determine a plurality of target temperature values with different temperature values;
a first determining module 202, configured to determine a target number counted by each of the target temperature values in the temperature counting period;
a second determining module 203, configured to determine a target temperature average value in the temperature statistics period based on each of the target temperature values and the corresponding target number;
a third determining module 204, configured to determine, from a plurality of temperature mean intervals, a target mean interval in which the target temperature mean is located;
The control module 205 is configured to determine a target temperature control policy corresponding to the target mean interval according to a correspondence between the mean interval and the temperature control policy, and control temperature according to the target temperature control policy.
In the temperature control device provided in the embodiment of the present application, the second determining module 203 includes:
a first determining sub-module for determining occurrence probability of each of the target temperature values in the temperature statistics period based on the target number counted by each of the target temperature values in the temperature statistics period and a total statistics amount;
and the second determining submodule is used for determining a target temperature average value in the temperature statistical period according to each target temperature value and the corresponding occurrence probability.
In the temperature control device provided in the embodiment of the present application, the first determining submodule includes:
the first calculating unit is used for calculating the ratio of the target quantity counted by each target temperature value in the temperature counting period to the total counting quantity to obtain the occurrence probability of each target temperature value in the temperature counting period.
In the temperature control device provided in the embodiment of the present application, the second determining submodule includes:
The second calculation unit is used for calculating the product of each target temperature value and the corresponding occurrence probability to obtain a calculation result corresponding to each target temperature value;
and the first determining unit is used for determining a target temperature mean value in the temperature statistics period based on the calculation result corresponding to each target temperature value.
In the temperature control device provided in the embodiment of the present application, a first determining unit is configured to:
and calculating the sum of the calculation results corresponding to the target temperature values, and determining the sum as a target temperature average value in the temperature statistics period.
In the temperature control device provided in the embodiment of the present application, the temperature control device further includes:
a fourth determining module, configured to determine a sum of temperature values in the temperature statistics period, to obtain a total temperature value;
and a fifth determining module, configured to determine a target temperature average value in a temperature statistics period based on the total temperature value and the total statistics amount.
In the temperature control device provided in the embodiment of the present application, a fifth determining module includes:
and the calculating sub-module is used for calculating the ratio of the total temperature value to the total statistical quantity and determining the ratio as a target temperature average value in the temperature statistical period.
As can be seen from the foregoing, in the embodiment of the present application, the receiving module 201 is configured to obtain the temperature value counted by each unit time in the temperature counting period, and determine a plurality of target temperature values with different temperature values; the first determining module 202 determines a target number of each of the target temperature values counted in the temperature counting period; the second determining module 203 determines a target temperature average value in the temperature statistics period based on each of the target temperature values and the corresponding target number; the third determining module 204 determines a target mean value interval in which the target temperature mean value is located from a plurality of temperature mean value intervals; the control module 205 determines a target temperature control strategy corresponding to the target mean interval according to the corresponding relation between the mean interval and the temperature control strategy, and controls the temperature according to the target temperature control strategy. Therefore, a more accurate target temperature average value can be determined based on the temperature counted in the temperature counting period, the computer equipment is controlled according to the target temperature average value and the temperature control strategy, the situation that the mobile phone temperature is not accurately measured due to external environment factors and is not timely and reasonable in temperature control is avoided, and the accuracy of the mobile phone temperature control is improved.
Correspondingly, the embodiment of the application also provides a computer device, which can be a terminal or a server, wherein the terminal can be a terminal device such as a smart phone, a tablet computer, a notebook computer, a touch screen, a game console, a personal computer (PC, personal Computer), a personal digital assistant (Personal Digital Assistant, PDA) and the like. As shown in fig. 3, fig. 3 is a schematic structural diagram of a computer device according to an embodiment of the present application. The computer device 1000 may be a data transmission device or a data reception device comprising a processor 501 with one or more processing cores, a memory 502 with one or more computer readable storage media, and a computer program stored on the memory 502 and executable on the processor. The processor 501 is electrically connected to the memory 502. It will be appreciated by those skilled in the art that the computer device structure shown in the figures is not limiting of the computer device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
The processor 501 is a control center of the computer device 1000, connects various parts of the entire computer device 1000 using various interfaces and lines, and performs various functions of the computer device 1000 and processes data by running or loading software programs and/or modules stored in the memory 502, and calling data stored in the memory 502, thereby performing overall monitoring of the computer device 1000.
In the embodiment of the present application, the processor 501 in the computer device 1000 loads the instructions corresponding to the processes of one or more application programs into the memory 502 according to the following steps, and the processor 501 executes the application programs stored in the memory 502, so as to implement various functions:
acquiring a temperature value counted by each unit time in a temperature counting period, and determining a plurality of target temperature values with different temperature values;
determining the counted target quantity of each target temperature value in the temperature counting period;
determining a target temperature mean value in the temperature statistics period based on each target temperature value and the corresponding target quantity;
determining a target average value interval in which the target temperature average value is located from a plurality of temperature average value intervals;
and determining a target temperature control strategy corresponding to the target average value interval according to the corresponding relation between the average value interval and the temperature control strategy, and controlling the temperature according to the target temperature control strategy.
In some embodiments, the step of determining a target temperature mean value within the temperature statistics period based on each of the target temperature values and the corresponding target number includes:
Determining the occurrence probability of each target temperature value in the temperature statistics period based on the target number counted by each target temperature value in the temperature statistics period and the total statistics amount;
and determining a target temperature average value in the temperature statistics period according to each target temperature value and the corresponding occurrence probability.
In some embodiments, the step of determining the occurrence probability of each of the target temperature values in the temperature statistics period based on the target number counted by each of the target temperature values in the temperature statistics period and a total statistics amount includes:
and calculating the ratio of the counted target quantity of each target temperature value in the temperature counting period to the total statistics quantity to obtain the occurrence probability of each target temperature value in the temperature counting period.
In some embodiments, the step of determining the target temperature average value in the temperature statistics period according to each target temperature value and the corresponding occurrence probability includes:
calculating the product of each target temperature value and the corresponding occurrence probability to obtain a calculation result corresponding to each target temperature value;
And determining a target temperature average value in the temperature statistics period based on a calculation result corresponding to each target temperature value.
In some embodiments, the step of determining the target temperature average value in the temperature statistics period based on the calculation result corresponding to each target temperature value includes:
and calculating the sum of the calculation results corresponding to the target temperature values, and determining the sum as a target temperature average value in the temperature statistics period.
In some embodiments, after the step of obtaining the temperature value counted per unit time in the temperature counting period, the method further includes:
determining the sum of the temperature values of the temperature statistics period to obtain a total temperature value;
and determining a target temperature average value in a temperature statistics period based on the total temperature value and the total statistics quantity.
In some embodiments, the step of determining a target temperature mean value over a temperature statistics period based on the total temperature value and a total statistics amount comprises:
and calculating the ratio of the total temperature value to the total statistical quantity, and determining the ratio as a target temperature average value in the temperature statistical period.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
Optionally, as shown in fig. 3, the computer device 1000 further includes: a touch display screen 503, a radio frequency circuit 504, an audio circuit 505, an input unit 506, and a power supply 507. The processor 501 is electrically connected to the touch display 503, the radio frequency circuit 504, the audio circuit 505, the input unit 506, and the power supply 507, respectively. Those skilled in the art will appreciate that the computer device structure shown in FIG. 3 is not limiting of the computer device and may include more or fewer components than shown, or may be combined with certain components, or a different arrangement of components.
The touch display screen 503 may be used to display a graphical user interface and receive operation instructions generated by a user acting on the graphical user interface. The touch display screen 503 may include a display panel and a touch panel. Wherein the display panel may be used to display information entered by a user or provided to a user as well as various graphical user interfaces of a computer device, which may be composed of graphics, text, icons, video, and any combination thereof. Alternatively, the display panel may be configured in the form of a liquid crystal display (LCD, liquid Crystal Display), an Organic Light-Emitting Diode (OLED), or the like. The touch panel may be used to collect touch operations on or near the user (such as operations on or near the touch panel by the user using any suitable object or accessory such as a finger, stylus, etc.), and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Alternatively, the touch panel may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into touch point coordinates, which are then sent to the processor 501, and can receive commands from the processor 501 and execute them. The touch panel may overlay the display panel, and upon detection of a touch operation thereon or thereabout, the touch panel is passed to the processor 501 to determine the type of touch event, and the processor 501 then provides a corresponding visual output on the display panel based on the type of touch event. In the embodiment of the present application, the touch panel and the display panel may be integrated into the touch display screen 503 to implement the input and output functions. In some embodiments, however, the touch panel and the touch panel may be implemented as two separate components to perform the input and output functions. I.e. the touch sensitive display 503 may also implement an input function as part of the input unit 506.
In this embodiment, the processor 501 executes the game application to generate a graphical user interface on the touch display screen 503, where the virtual scene on the graphical user interface includes at least one skill control area, and the skill control area includes at least one skill control. The touch display screen 503 is used for presenting a graphical user interface and receiving operation instructions generated by a user acting on the graphical user interface.
The radio frequency circuitry 504 may be used to transceive radio frequency signals to establish wireless communications with a network device or other computer device via wireless communications.
The audio circuitry 505 may be used to provide an audio interface between a user and a computer device through speakers, microphones, and so on. The audio circuit 505 may transmit the received electrical signal after audio data conversion to a speaker, and convert the electrical signal into a sound signal for output by the speaker; on the other hand, the microphone converts the collected sound signals into electrical signals, which are received by the audio circuit 505 and converted into audio data, which are processed by the audio data output processor 501 for transmission to, for example, another computer device via the radio frequency circuit 504, or which are output to the memory 502 for further processing. The audio circuit 505 may also include an ear bud jack to provide communication of the peripheral ear bud with the computer device.
The input unit 506 may be used to receive input numbers, character information, or user characteristic information (e.g., fingerprint, iris, facial information, etc.), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control.
The power supply 507 is used to power the various components of the computer device 1000. Alternatively, the power supply 507 may be logically connected to the processor 501 through a power management system, so as to implement functions of managing charging, discharging, and power consumption management through the power management system. The power supply 507 may also include one or more of any components, such as a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown in fig. 3, the computer device 1000 may further include a camera, a sensor, a wireless fidelity module, a bluetooth module, etc., which are not described herein.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
As can be seen from the above, the computer device provided in this embodiment determines a plurality of target temperature values with different temperature values by acquiring the temperature value counted by each unit time in the temperature counting period; determining the counted target quantity of each target temperature value in the temperature counting period; determining a target temperature mean value in the temperature statistics period based on each target temperature value and the corresponding target quantity; determining a target average value interval in which the target temperature average value is located from a plurality of temperature average value intervals; and determining a target temperature control strategy corresponding to the target average value interval according to the corresponding relation between the average value interval and the temperature control strategy, and controlling the temperature according to the target temperature control strategy. Therefore, a more accurate target temperature average value can be determined based on the temperature counted in the temperature counting period, the computer equipment is controlled according to the target temperature average value and the temperature control strategy, the situation that the mobile phone temperature is not accurately measured due to external environment factors and is not timely and reasonable in temperature control is avoided, and the accuracy of the mobile phone temperature control is improved.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the various methods of the above embodiments may be performed by instructions, or by instructions controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor.
To this end, embodiments of the present application provide a computer readable storage medium having stored therein a plurality of computer programs that can be loaded by a processor to perform steps in any of the skills control methods provided by embodiments of the present application. For example, the computer program may perform the steps of:
acquiring a temperature value counted by each unit time in a temperature counting period, and determining a plurality of target temperature values with different temperature values; determining the counted target quantity of each target temperature value in the temperature counting period; determining a target temperature mean value in the temperature statistics period based on each target temperature value and the corresponding target quantity; determining a target average value interval in which the target temperature average value is located from a plurality of temperature average value intervals; and determining a target temperature control strategy corresponding to the target average value interval according to the corresponding relation between the average value interval and the temperature control strategy, and controlling the temperature according to the target temperature control strategy.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
Wherein the storage medium may include: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
The steps in any one of the temperature control methods provided in the embodiments of the present application may be executed by the computer program stored in the storage medium, so that the beneficial effects that any one of the temperature control methods provided in the embodiments of the present application may be achieved, which are detailed in the previous embodiments and are not described herein.
The foregoing has described in detail the methods, apparatuses, computer-readable storage medium and computer devices for controlling a temperature provided by the embodiments of the present application, and specific examples have been applied to illustrate the principles and embodiments of the present application, where the above description of the embodiments is only for aiding in understanding the methods and core ideas of the present application; meanwhile, as those skilled in the art will vary in the specific embodiments and application scope according to the ideas of the present application, the contents of the present specification should not be construed as limiting the present application in view of the above.

Claims (10)

1. A method of controlling temperature, comprising:
acquiring a temperature value counted by each unit time in a temperature counting period, and determining a plurality of target temperature values with different temperature values;
determining the counted target quantity of each target temperature value in the temperature counting period;
determining a target temperature mean value in the temperature statistics period based on each target temperature value and the corresponding target quantity;
determining a target average value interval in which the target temperature average value is located from a plurality of temperature average value intervals;
and determining a target temperature control strategy corresponding to the target average value interval according to the corresponding relation between the average value interval and the temperature control strategy, and controlling the temperature according to the target temperature control strategy.
2. The temperature control method according to claim 1, wherein the step of determining a target temperature average value in the temperature statistics period based on each of the target temperature values and the corresponding target number includes:
determining the occurrence probability of each target temperature value in the temperature statistics period based on the target number counted by each target temperature value in the temperature statistics period and the total statistics amount;
And determining a target temperature average value in the temperature statistics period according to each target temperature value and the corresponding occurrence probability.
3. The temperature control method according to claim 2, wherein the step of determining the occurrence probability of each of the target temperature values in the temperature statistical period based on the target number counted by each of the target temperature values in the temperature statistical period and a total statistical number includes:
and calculating the ratio of the counted target quantity of each target temperature value in the temperature counting period to the total statistics quantity to obtain the occurrence probability of each target temperature value in the temperature counting period.
4. The method according to claim 2, wherein the step of determining the target temperature average value in the temperature statistics period according to each of the target temperature values and the corresponding occurrence probability includes:
calculating the product of each target temperature value and the corresponding occurrence probability to obtain a calculation result corresponding to each target temperature value;
and determining a target temperature average value in the temperature statistics period based on a calculation result corresponding to each target temperature value.
5. The method according to claim 4, wherein the step of determining a target temperature average value in the temperature statistical period based on the calculation result corresponding to each of the target temperature values includes:
and calculating the sum of the calculation results corresponding to the target temperature values, and determining the sum as a target temperature average value in the temperature statistics period.
6. The temperature control method according to claim 1, further comprising, after the step of acquiring the temperature value counted per unit time in the temperature counting period:
determining the sum of the temperature values of the temperature statistics period to obtain a total temperature value;
and determining a target temperature average value in a temperature statistics period based on the total temperature value and the total statistics quantity.
7. The temperature control method according to claim 6, wherein the step of determining a target temperature average value in a temperature statistics period based on the total temperature value and a total statistics amount, comprises:
and calculating the ratio of the total temperature value to the total statistical quantity, and determining the ratio as a target temperature average value in the temperature statistical period.
8. A temperature control apparatus, comprising:
The acquisition module is used for acquiring the temperature value counted by each unit time in the temperature counting period and determining a plurality of target temperature values with different temperature values;
a first determining module, configured to determine a target number counted by each of the target temperature values in the temperature counting period;
the second determining module is used for determining a target temperature average value in the temperature statistics period based on each target temperature value and the corresponding target quantity;
the third determining module is used for determining a target mean value interval in which the target temperature mean value is located from a plurality of temperature mean value intervals;
the control module is used for determining a target temperature control strategy corresponding to the target mean value interval according to the corresponding relation between the mean value interval and the temperature control strategy, and controlling the temperature according to the target temperature control strategy.
9. A computer readable storage medium, characterized in that it stores a plurality of instructions adapted to be loaded by a processor to perform the steps in the temperature control method according to any one of claims 1 to 7.
10. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the temperature control method according to any one of claims 1 to 7 when the program is executed.
CN202311004019.9A 2023-08-09 2023-08-09 Temperature control method and device, storage medium and computer equipment Pending CN117406805A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311004019.9A CN117406805A (en) 2023-08-09 2023-08-09 Temperature control method and device, storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311004019.9A CN117406805A (en) 2023-08-09 2023-08-09 Temperature control method and device, storage medium and computer equipment

Publications (1)

Publication Number Publication Date
CN117406805A true CN117406805A (en) 2024-01-16

Family

ID=89486038

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311004019.9A Pending CN117406805A (en) 2023-08-09 2023-08-09 Temperature control method and device, storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN117406805A (en)

Similar Documents

Publication Publication Date Title
CN109857559B (en) Terminal control method and terminal
CN111158455A (en) Power consumption control method and device, storage medium and terminal
CN108196482B (en) Power consumption control method and device, storage medium and electronic equipment
US11476684B2 (en) Charging protection method, terminal, and charger
US20230092801A1 (en) Power display method and apparatus, and electronic device
CN111240451B (en) Heat dissipation method, electronic device and computer-readable storage medium
CN108388400B (en) Operation processing method and mobile terminal
CN111651030A (en) Sensor detection method and device, storage medium and mobile terminal
CN117269946A (en) Distance determining method and device between Bluetooth devices, electronic device and medium
CN113259954B (en) Method and device for determining quality difference processing strategy and electronic equipment
CN110022600B (en) Driving current adjusting method and device, storage medium and mobile terminal
CN110851014A (en) Touch identification method and device, storage medium and terminal equipment
CN115118636B (en) Method and device for determining network jitter state, electronic equipment and storage medium
CN117407130A (en) Application management and control method and device, electronic equipment and computer readable storage medium
CN117406805A (en) Temperature control method and device, storage medium and computer equipment
CN115348256A (en) Posting data downloading method and device, storage medium and electronic equipment
CN110995324B (en) Bluetooth communication method, device, storage medium and terminal equipment
CN109672242B (en) Terminal charging control method and device and storage medium
CN113918757A (en) Application recommendation method and device, electronic equipment and storage medium
CN108287755B (en) Application program control method and mobile terminal
CN116641881B (en) Vacuum pump control method, device, computer equipment and storage medium
CN117542134B (en) Communication method and device of passive device, electronic device and readable storage medium
CN117202146B (en) Display control method, device and medium for NFC passive display equipment
CN112291797B (en) Data processing method and device and electronic equipment
CN117707460A (en) Display adjusting method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination