Temperature control method, electronic equipment and computer readable storage medium
By detecting and adjusting the fan speed in real time, it solves the over-temperature problem caused by the small fan adjustment changes and long cycles of VR products, improving the user experience and the temperature control efficiency of the device.
Patent Information
- Application Number
- CN202310270238.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-17
- Publication Date
- 2024-09-20
AI Technical Summary
The fan adjustment changes of VR products are few and the adjustment cycle is long, resulting in untimely temperature control of the machine, which can easily lead to overheating and affect the user experience.
By obtaining the current temperature of the electronic device, and when the temperature sampled for a preset number of consecutive times continues to rise, the fan speed increase is determined to adjust the fan speed, and the fan speed is quickly adjusted to avoid overheating.
It effectively avoids overheating of electronic devices and improves user experience. By detecting and adjusting fan speed in real time, it ensures that the device can maintain an appropriate temperature under high load scenarios.
Smart Images

Figure CN118669352A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of temperature control, and more specifically, to a temperature control method, an electronic device, and a computer-readable storage medium. Background Art
[0002] In related technologies, the fan adjustment of VR products has few changes and a long adjustment cycle. When the temperature of the machine rises, due to its untimely temperature control, it is easy to cause the machine to overheat, thus affecting the user experience. Summary of the invention
[0003] Embodiments of the present application provide a temperature control method, an electronic device, and a computer-readable storage medium.
[0004] An embodiment of the present application provides a temperature control method for an electronic device, wherein the electronic device includes a fan, and the temperature control method includes: obtaining the temperature of the electronic device as the current temperature; when the current temperature sampled for a preset number of consecutive times rises continuously, and the current temperature rise of any two consecutive samples in the preset number of times exceeds the preset temperature, determining the increase in the speed of the fan to adjust the speed of the fan.
[0005] An embodiment of the present application provides an electronic device, which includes one or more processors and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the steps of the temperature control method of the above embodiment are implemented.
[0006] An embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the steps of the temperature control method of the above embodiment are implemented.
[0007] In the temperature control method, electronic device and computer-readable storage medium of the present application, when the current temperature sampled for a preset number of consecutive times rises continuously, and the current temperature rise of any two consecutive samples in the preset number of times exceeds the preset temperature, the fan speed increase amount can be determined to adjust the fan speed, thereby quickly adjusting the fan speed to prevent the electronic device from overheating.
[0008] Additional aspects and advantages of the embodiments of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the embodiments of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0010] Figure 1is a schematic flow chart of a temperature control method according to certain embodiments of the present application;
[0011] Figure 2 is a schematic diagram of an electronic device according to some embodiments of the present application;
[0012] Figure 3 is a schematic flow chart of a temperature control method according to certain embodiments of the present application;
[0013] Figure 4 is a schematic flow chart of a temperature control method according to certain embodiments of the present application;
[0014] Figure 5 is a schematic flow chart of a temperature control method according to certain embodiments of the present application;
[0015] Figure 6 is a schematic flow chart of a temperature control method according to certain embodiments of the present application;
[0016] Figure 7 is a schematic flow chart of a temperature control method according to certain embodiments of the present application;
[0017] Figure 8 is a schematic flow chart of a temperature control method according to certain embodiments of the present application;
[0018] Fig. 9 is a schematic flow chart of a temperature control method according to certain embodiments of the present application;
[0019] Fig.10 It is a schematic flow chart of the temperature control method of certain embodiments of the present application. DETAILED DESCRIPTION
[0020] The embodiments of the present application are described in detail below, examples of the embodiments are shown in the drawings, and the same or similar reference numerals represent the same or similar elements or elements with the same or similar functions from beginning to end. The embodiments described below with reference to the drawings are exemplary and are only used to explain the present application, and cannot be understood as limiting the present application.
[0021] The disclosure below provides many different embodiments or examples to realize the different structures of the embodiments of the present application. In order to simplify the disclosure of the embodiments of the present application, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present application.
[0022] In the related technologies, the fan adjustment of VR products is less variable and the adjustment cycle is long. When the temperature of the machine rises, the temperature control is not timely, which easily leads to overheating of the machine, thus affecting the user experience. Figure 1 and Figure 2The embodiment of the present application provides a temperature control method for an electronic device 100, wherein the electronic device 100 includes a fan 10, and the temperature control method includes:
[0023] 01: Obtain the temperature of the electronic device 100 as the current temperature;
[0024] 02: When the current temperature sampled for a preset number of times continuously rises, and the current temperature rise of any two consecutive samples in the preset number of times exceeds the preset temperature, determine the speed increase amount of the fan 10 to adjust the speed of the fan 10.
[0025] Step 01: Acquire the temperature of the electronic device 100 as the current temperature. Specifically, before determining the rotation speed increase of the fan 10, acquire the temperature of the electronic device 100 as the current temperature.
[0026] In this way, obtaining the current temperature can provide a basis for subsequently adjusting the rotation speed of the fan 10 according to the current temperature.
[0027] Step 02: When the current temperature sampled for a preset number of times continuously rises, and the current temperature rise of any two consecutive samples in the preset number exceeds the preset temperature, determine the increase in the rotation speed of the fan 10 to adjust the rotation speed of the fan 10. Specifically, the current temperature of the electronic device 100 can be periodically acquired, the preset number of times is, for example, 3 times, and the consecutive preset number of times is 3 consecutive samples. For example, the current temperature of the electronic device 100 is acquired every 10ms, and the 3 consecutive samples can refer to the current temperature collected at 10ms, the current temperature collected at 20ms, and the current temperature collected at 30ms. After acquiring the current temperature, if the current temperature sampled for a preset number of times continuously rises, and the current temperature rise of any two consecutive samples in the preset number exceeds the preset temperature, determine the increase in the rotation speed of the fan 10 to adjust the rotation speed of the fan 10.
[0028] In this way, when the current temperature sampled for a preset number of consecutive times rises continuously, and the current temperature rise of any two consecutive samples in the preset number of times exceeds the preset temperature, the speed increase of the fan 10 can be determined to adjust the speed of the fan 10, thereby quickly adjusting the speed of the fan 10 to prevent the electronic device 100 from overheating.
[0029] See also Figure 3 In some embodiments, before obtaining the temperature of the electronic device 100 as the current temperature, the temperature control method further includes:
[0030] 03: Adjust the speed of fan 10 to the preset speed.
[0031] In this way, by adjusting the rotation speed of the fan 10 to the preset rotation speed, the rotation speed of the fan 10 can be initialized.
[0032] Specifically, before the temperature of the electronic device 100 is obtained as the current temperature, the rotation speed of the fan 10 is initialized and the rotation speed of the fan 10 is adjusted to a preset rotation speed.
[0033] See also Figure 4 In some embodiments, step 01 (obtaining the temperature of the electronic device 100 as the current temperature) includes:
[0034] 011: Detect and obtain the temperature of the electronic device 100 in real time as the current temperature.
[0035] In this way, by detecting and acquiring the temperature of the electronic device 100 in real time, a basis can be provided for subsequently adjusting the rotation speed of the fan 10 according to the temperature of the electronic device 100 at each moment.
[0036] Specifically, the temperature of the electronic device 100 includes the internal chip junction temperature of the electronic device 100 and the temperature of the important position. During the operation of the electronic device 100, the internal chip junction temperature of the electronic device 100 at each moment is detected and obtained. The internal chip junction temperature includes the CPU temperature and the GPU temperature and the temperature of the chip inside the electronic device 100 that has a greater impact on the performance. The temperature of the important position includes the temperature of the part that the user directly contacts. For example, the electronic device 100 is a VR glasses. The temperature of the important position includes the temperature of the part that fits the eyes and the part that surrounds the head, as well as the temperature of the part connected to these two parts. After detecting and obtaining the internal chip junction temperature of the electronic device 100 and the temperature of the important position, the temperature of the electronic device 100 is output as the current temperature through a priority strategy. The priority strategy includes the temperature of the part that directly affects the user experience as the first priority, and the temperature of the remaining parts as the second priority. For example, in VR glasses, the temperature of the part that fits the eyes and the part that surrounds the head is the first priority, and the CPU temperature and GPU temperature are the second priority.
[0037] See also Figure 5 In some embodiments, step 02 (determining the increase in the speed of the fan 10 to adjust the speed of the fan 10 when the current temperature sampled for a preset number of consecutive times rises continuously and the rise in the current temperature sampled for any two consecutive times in the preset number of times exceeds the preset temperature) includes:
[0038] 021: when the current temperature sampled for a preset number of times continuously rises, and the current temperature rises for any two consecutive samples in the preset number of times exceeds the first preset temperature, determining that the speed increase of the fan 10 is the first speed increase;
[0039] 022: When the current temperature sampled for a preset number of consecutive times rises continuously, and the current temperature rise of any two consecutive samples in the preset number of times exceeds the second preset temperature, it is determined that the speed increase of the fan 10 is the second speed increase, the second preset temperature is greater than the first preset temperature, and the second speed increase is greater than the first speed increase.
[0040] In this way, by adjusting the increase in the rotation speed of the fan 10 to increase the rotation speed of the fan 10 , the electronic device 100 is prevented from overheating due to excessively rapid temperature rise, thereby improving the user experience.
[0041] Specifically, after obtaining the current temperature of the electronic device 100, if the current temperature sampled for a preset number of times continuously rises, and the current temperature rise of any two consecutive samples in the preset number exceeds the first preset temperature, it can be determined that the increase in the speed of the fan 10 is the first increase in speed; if the current temperature sampled for a preset number of times continuously rises, and the current temperature rise of any two consecutive samples in the preset number exceeds the second preset temperature, the increase in the speed of the fan 10 is determined to be the second increase in speed, wherein the second preset temperature is greater than the first preset temperature, and the second increase in speed is greater than the first increase in speed. In one embodiment, if the temperature sampled for three consecutive times continuously rises by more than 1°C, the speed increases by 1%, and if the temperature sampled for three consecutive times continuously rises by more than 2°C, the speed increases by 5%.
[0042] In one embodiment, if the electronic device 100 is in a high-load scenario, such as using 6DOF, perspective, VR video, and wireless transmission, by judging the occupancy rates of the CPU and GPU, when the occupancy rates of the CPU and GPU are greater than the preset occupancy rates, it can be determined that the current temperature sampled for a preset number of consecutive times has risen continuously, and the current temperature rise of any two consecutive samples in the preset number of times exceeds the second preset temperature. Therefore, the temperature control strategy of the electronic device 100 is tightened, that is, the speed increase of the fan 10 is determined to be the second speed increase.
[0043] In other embodiments, when the occupancy rates of the CPU and GPU are greater than preset occupancy rates, the chip in the electronic device 100 may be frequency-reduced or frequency-limited to prevent the electronic device 100 from overheating due to rapid temperature rise.
[0044] See also Figure 6 In some embodiments, step 02 (determining the increase in the speed of the fan 10 to adjust the speed of the fan 10 when the current temperature sampled for a preset number of consecutive times rises continuously and the rise in the current temperature sampled for any two consecutive times in the preset number of times exceeds the preset temperature) includes:
[0045] 023: Determine the target temperature range of the current temperature, where the target temperature range is one of multiple preset temperature ranges;
[0046] 024: When the current temperature sampled for a preset number of consecutive times is within the same target temperature range and rises continuously, and the current temperature rise of any two consecutive samples in the preset number of times exceeds the preset temperature, determine the speed increase of the fan 10 to adjust the speed of the fan 10.
[0047] In this way, by determining the target temperature range in which the current temperature is located, the rotation speed of the fan 10 can be adjusted accordingly for current temperatures in different ranges.
[0048] Specifically, after acquiring the current temperature of the electronic device 100, a target temperature range of the current temperature is determined according to the current temperature, wherein the target temperature range is one of a plurality of preset temperature ranges, for example, the plurality of preset temperature ranges include less than 35°C, greater than 35°C and less than 45°C, etc. When the current temperature sampled for a preset number of consecutive times is in the same target temperature range and rises continuously, and the current temperature rise of any two consecutive samples in the preset number of times exceeds the preset temperature, the speed increase of the fan 10 is determined to adjust the speed of the fan 10.
[0049] See also Figure 7 In some embodiments, each preset temperature range corresponds to a speed adjustment range, and the temperature control method further includes:
[0050] 04: When the current temperature is within the target temperature range, the speed setting value of the fan 10 is determined according to the speed adjustment range corresponding to the current temperature and the target temperature range;
[0051] 05: Determine the proposed speed according to the speed setting amount and the speed increase amount to adjust the speed of the fan 10.
[0052] In this way, the proposed speed of the fan 10 is determined by the speed adjustment range corresponding to the current temperature and the target temperature range.
[0053] Specifically, after obtaining the current temperature of the electronic device 100, the speed setting amount of the fan 10 is determined for the fan 10 according to the target temperature range of the current temperature, and then the proposed speed is determined according to the speed setting amount and the speed increase to adjust the speed of the fan 10. For example, if the current temperature is 40°C and the target temperature range is greater than 35°C and less than 45°C, the corresponding speed adjustment range is 30%-45%, and the corresponding speed setting amount is 38%. If the temperature rises by more than 1°C for three consecutive times within the target temperature range and the speed increase amount is 2%, the proposed speed is 40%. At this time, the speed of the fan 10 is adjusted to 40%.
[0054] See also Figure 8In some embodiments, after obtaining the temperature of the electronic device 100 as the current temperature, the temperature control method includes:
[0055] 06: When the current temperature sampled for a preset number of consecutive times continuously decreases, and the current temperature drop between any two consecutive samples of the preset number of times exceeds the temperature threshold, determine the speed reduction amount of the fan 10 to adjust the speed of the fan 10 .
[0056] In this way, by determining the rotation speed reduction amount of the fan 10 to adjust the rotation speed of the fan 10 , the power of the electronic device 100 can be saved.
[0057] Specifically, after obtaining the current temperature of the electronic device 100, if the current temperature sampled for a preset number of times continuously decreases, and the current temperature sampled for any two consecutive times in the preset number of times decreases by more than the temperature threshold, it can be determined that the overall temperature of the electronic device 100 is in a decreasing state, and there is no need to maintain a high speed operation, and the speed of the fan 10 can be adjusted by determining the speed reduction amount of the fan 10. In one embodiment, if the current temperature sampled for three consecutive times continuously decreases by more than X°C, the speed of the fan 10 is adjusted to decrease by X%. For example, if the current temperature sampled for three consecutive times continuously decreases by more than 2°C, the speed of the fan 10 is adjusted to decrease by 2%.
[0058] See also Fig. 9 In some embodiments, after determining the increase in the rotation speed of the fan 10, the temperature control method includes:
[0059] 07: Determine the proposed speed of the fan 10 according to the speed setting amount and the speed increase amount of the fan 10;
[0060] 08: Determine the speed adjustment change rate of the fan 10 according to the speed of the fan 10 at the last moment and the planned speed;
[0061] 09: When the speed adjustment change rate of the fan 10 is greater than the preset change rate, the speed of the fan 10 is first adjusted to an intermediate speed, and then the speed of the fan 10 is adjusted to a planned speed, where the intermediate speed is between the speed of the fan 10 at the previous moment and the planned speed.
[0062] In this way, by first adjusting the speed of the fan 10 to an intermediate speed and then adjusting the speed of the fan 10 to a planned speed, noise caused by a large difference between the speeds of the fan 10 before and after adjustment can be avoided, thereby improving the user experience.
[0063] Specifically, after determining the increase in the speed of the fan 10, the proposed speed of the fan 10 can be determined according to the speed setting of the fan 10 and the increase in the speed of the fan 10, and then the speed adjustment change rate of the fan 10 is determined according to the speed of the fan 10 at the last moment and the proposed speed. When the speed adjustment change rate of the fan 10 is greater than the preset change rate, the speed of the fan 10 is first adjusted to an intermediate speed, and then the speed of the fan 10 is adjusted to the proposed speed. The intermediate speed is between the speed of the fan 10 at the last moment and the proposed speed. When the speed adjustment change rate of the fan 10 is less than the preset change rate, the speed of the fan 10 is adjusted to the proposed speed. After completing the adjustment of the proposed speed, it will be determined whether the electronic device 100 is in a running state to determine whether it is necessary to continue real-time temperature detection and speed adjustment of the fan 10.
[0064] In other embodiments, when the fan adjustment change rate of the fan 10 is greater than the preset change rate, the electronic device 100 is first controlled to emit relevant sound effects for transition, and then the speed of the fan 10 is adjusted to the intended speed. In this way, noise caused by the large difference between the speed of the fan 10 before and after adjustment can be avoided.
[0065] In one embodiment, an execution flow of the temperature control method of the present application embodiment is as follows: Fig.10 shown.
[0066] See also Figure 2 , an embodiment of the present application provides an electronic device 100, and the electronic device 100 includes devices such as VR glasses and VR all-in-one machines, which are not specifically limited here. The electronic device 100 in the embodiment of the present application is illustrated by VR glasses as an example, which cannot be understood as a limitation of the present application. The temperature control method in the embodiment of the present application can be implemented by the electronic device 100 in the embodiment of the present application. Specifically, the electronic device 100 includes one or more processors 20 and a memory 30. The memory 30 stores a computer program. When the computer program is executed by the processor 20, the steps of the temperature control method in any of the above-mentioned embodiments are implemented.
[0067] For example, when the computer program is executed by the processor 20, the following steps of the temperature control method are implemented:
[0068] 01: Obtain the temperature of the electronic device 100 as the current temperature;
[0069] 02: When the current temperature sampled for a preset number of times continuously rises, and the current temperature rise of any two consecutive samples in the preset number of times exceeds the preset temperature, determine the speed increase amount of the fan 10 to adjust the speed of the fan 10.
[0070] An embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the program is executed by the processor 20, the steps of the temperature control method of any of the above embodiments are implemented.
[0071] For example, when the program is executed by the processor 20, the following steps of the temperature control method are implemented:
[0072] 01: Obtain the temperature of the electronic device 100 as the current temperature;
[0073] 02: When the current temperature sampled for a preset number of times continuously rises, and the current temperature rise of any two consecutive samples in the preset number of times exceeds the preset temperature, determine the speed increase amount of the fan 10 to adjust the speed of the fan 10.
[0074] In the temperature control method, electronic device 100 and computer-readable storage medium of the present application, when the current temperature sampled for a preset number of consecutive times rises continuously, and the current temperature rise of any two consecutive samples in the preset number of times exceeds the preset temperature, the speed increase of the fan 10 can be determined to adjust the speed of the fan 10, thereby quickly adjusting the speed of the fan 10 to prevent overheating of the electronic device 100.
[0075] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0076] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processing module, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (control method), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0077] It should be understood that the various parts of the embodiments of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0078] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0079] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0080] The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.
[0081] In the description of this specification, the description of reference terms such as "certain embodiments" means that the specific features, structures or characteristics described in conjunction with the embodiments or examples are included in at least one embodiment of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment. Moreover, the specific features, structures or characteristics described can be combined in any one or more embodiments in a suitable manner.
[0082] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A temperature control method for electronic equipment, characterized in that: The electronic device includes a fan, and the temperature control method includes: Acquire the temperature of the electronic device as the current temperature; When the current temperature sampled for a preset number of times continuously rises, and the current temperature rises by any two consecutive samples of the preset number of times exceeds the preset temperature, the increase amount of the rotation speed of the fan is determined to adjust the rotation speed of the fan.
2. The temperature control method according to claim 1, characterized in that: Before acquiring the temperature of the electronic device as the current temperature, the temperature control method further includes: The rotation speed of the fan is adjusted to a preset rotation speed.
3. The temperature control method according to claim 1, characterized in that: The acquiring the temperature of the electronic device as the current temperature includes: The temperature of the electronic device is detected and obtained in real time as the current temperature.
4. The temperature control method according to claim 1, characterized in that: The method further comprises: determining the increase in the speed of the fan to adjust the speed of the fan when the current temperature sampled for a preset number of consecutive times rises continuously and the current temperature sampled for any two consecutive times rises above the preset temperature. When the current temperature sampled for a preset number of times continuously rises, and the current temperature rises for any two consecutive samples in the preset number of times exceeds a first preset temperature, determining the increase in the speed of the fan to be a first increase in speed; When the current temperature sampled for a consecutive preset number of times rises continuously, and the current temperature rise of any two consecutive samples in the preset number of times exceeds the second preset temperature, it is determined that the increase in the speed of the fan is the second speed increase, the second preset temperature is greater than the first preset temperature, and the second speed increase is greater than the first speed increase.
5. The temperature control method according to claim 1, characterized in that: The method further comprises: determining the increase in the speed of the fan to adjust the speed of the fan when the current temperature sampled for a preset number of consecutive times rises continuously and the current temperature sampled for any two consecutive times rises above the preset temperature. Determine a target temperature range within which the current temperature is located, wherein the target temperature range is one of a plurality of preset temperature ranges; When the current temperature sampled for a preset number of consecutive times is within the same target temperature range and rises continuously, and the current temperature rises by any two consecutive samples in the preset number of times exceeds the preset temperature, the increase in the fan speed is determined to adjust the fan speed.
6. The temperature control method according to claim 5, characterized in that: Each of the preset temperature ranges corresponds to a speed adjustment range, and the temperature control method further includes: When the current temperature is within the target temperature range, determining a speed setting value of the fan according to a speed adjustment range corresponding to the current temperature and the target temperature range; The proposed speed is determined according to the speed setting amount and the speed increase amount to adjust the speed of the fan.
7. The temperature control method according to claim 1, characterized in that: After acquiring the temperature of the electronic device as the current temperature, the temperature control method includes: When the current temperature sampled for a preset number of consecutive times decreases continuously, and the current temperature drops by any two consecutive samples in the preset number of times by more than a temperature threshold, a reduction amount of the rotation speed of the fan is determined to adjust the rotation speed of the fan.
8. The temperature control method according to claim 1, characterized in that: After determining the increase in the speed of the fan, the temperature control method includes: Determining a proposed speed of the fan according to the speed setting amount of the fan and the speed increase amount; Determining a fan speed adjustment change rate according to the fan speed at a previous moment and the proposed speed; When the fan speed adjustment change rate is greater than the preset change rate, the fan speed is first adjusted to an intermediate speed, and then the fan speed is adjusted to the planned speed, and the intermediate speed is between the fan speed at the previous moment and the planned speed.
9. An electronic device, characterized in that: The electronic device includes one or more processors and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the steps of the temperature control method according to any one of claims 1 to 8 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the temperature control method according to any one of claims 1 to 8 are implemented.
