Method, terminal device and computer readable storage medium for controlling fan speed

By dynamically adjusting the fan speed based on temperature and hand position, the problem of overheating of terminal devices in high-energy-consumption scenarios is solved, achieving intelligent heat dissipation control and improving user experience and device safety.

CN115788931BActive Publication Date: 2026-01-02CHINA GREATWALL TECH GRP CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211331625.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-28
Publication Date
2026-01-02
Estimated Expiration
2042-10-28

AI Technical Summary

Technical Problem

In high-energy-consumption scenarios, the temperature of the outer casing of terminal devices rises due to the large amount of heat generated by internal components, which may cause the user to feel hot when holding the device. Furthermore, the existing fixed-speed fans cannot dissipate heat in time, affecting the user experience.

Method used

By detecting the actual temperature of the terminal device and the handheld status, the fan speed is dynamically adjusted, including increasing the speed to accelerate heat dissipation when the device is held, and adjusting the speed according to the temperature when the device is not held to ensure safety and reduce noise.

Benefits of technology

It effectively solves the problem of overheating, improves user experience, ensures the safety and energy efficiency of terminal devices, reduces noise, and achieves intelligent heat dissipation control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115788931B_ABST
    Figure CN115788931B_ABST
Patent Text Reader

Abstract

The application is suitable for the field of control technology, and provides a method for controlling fan rotating speed, a terminal device and a computer readable storage medium. The terminal device comprises a fan, and the method comprises the following steps: acquiring an actual temperature of the terminal device, wherein the actual temperature is used for representing the temperature of the terminal device; determining a handheld state of the terminal device; if the handheld state of the terminal device is a holding state and the actual temperature is greater than a first temperature threshold, determining a target rotating speed of the fan corresponding to the actual temperature by using a first corresponding relationship, wherein the first corresponding relationship comprises a corresponding relationship between a plurality of temperatures and a plurality of rotating speeds, and the target rotating speed is greater than a current rotating speed; and controlling the fan to switch from the current rotating speed to the target rotating speed. By determining that the handheld state of the terminal device is the holding state and the actual temperature is greater than the first temperature threshold, the rotating speed of the fan is increased, thereby solving the problem of hot hand in the holding state of the terminal device.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application belongs to the technical field of control, and particularly relates to a method for controlling fan rotating speed, a terminal device and a computer readable storage medium. BACKGROUND

[0002] With the development of science and technology, terminal devices have become an indispensable part of people's life. In order to facilitate use, the size of terminal devices is becoming smaller and smaller. Since a large amount of heat will be generated by long-time operation of many high-power components in terminal devices, people will install fans in terminal devices for heat dissipation.

[0003] Generally, the fan installed on the terminal device operates at a fixed rotating speed to achieve the effect of heat dissipation.

[0004] However, in some high-energy consumption scenarios, for example, when a user is playing a game, some chips, such as a processor, of the terminal device are in a high-speed operation state, which will cause a large amount of heat to be generated. At this time, the fan maintained at a fixed rotating speed may cause heat dissipation to be not timely, resulting in a hot hand situation, and the user experience is not high. SUMMARY

[0005] The embodiments of the present application provide a method, device, terminal device, computer readable storage medium and computer program product for controlling fan rotating speed, by determining that the handheld state of the terminal device is a holding state and the actual temperature is greater than a first temperature threshold, the rotating speed of the fan is increased, and the problem of a hot hand in the holding state of the terminal device can be solved.

[0006] In a first aspect, the embodiments of the present application provide a method for controlling fan rotating speed, applied to a terminal device, the terminal device comprising a fan, and the method comprising:

[0007] obtaining an actual temperature of the terminal device, the actual temperature being used to represent the temperature of the terminal device;

[0008] determining a handheld state of the terminal device;

[0009] if the handheld state of the terminal device is a holding state and the actual temperature is greater than a first temperature threshold, a first corresponding relationship is used to determine a target rotating speed of the fan corresponding to the actual temperature, and the fan is controlled to switch from a current rotating speed to the target rotating speed, the first corresponding relationship comprising a corresponding relationship between a plurality of temperatures and a plurality of rotating speeds, and the target rotating speed being greater than the current rotating speed.

[0010] In the method, in some high energy consumption scenarios, the temperature of internal components of the terminal device rises, which causes the temperature of the shell of the terminal device to rise. If the user is holding the terminal device at this time, the user's hand will be scalded. In the embodiments of the present application, if the temperature of the terminal device exceeds a certain threshold value when the user is holding the terminal device, the terminal device is scalded, and the speed of the fan is increased to accelerate heat dissipation of the terminal device, thereby solving the problem of scalding of the terminal device and improving the user experience.

[0011] In a possible implementation of the first aspect, the method further includes: if the hand-held state of the terminal device is the holding state, and the actual temperature is less than or equal to the first temperature threshold value, determining that the fan operates at a preset speed, and the preset speed is less than the target speed.

[0012] In the method, although the terminal device determines that the hand-held state is the holding state, and the actual temperature is less than or equal to the first temperature threshold value, it proves that the current temperature of the terminal device is not scalding. At this time, the fan can be controlled to operate at a smaller speed, for example, the fan can be controlled to operate at a preset speed. Because the preset speed is less than the target speed, the power consumption of the terminal device can be saved and the noise can be reduced.

[0013] In a possible implementation of the first aspect, the method further includes:

[0014] If the hand-held state of the terminal device is the non-holding state, and the actual temperature is greater than a second temperature threshold value, a second corresponding relationship is used to determine the target speed of the fan corresponding to the actual temperature, and the fan is controlled to switch from the current speed to the target speed.

[0015] The second corresponding relationship includes a plurality of temperature and speed corresponding relationships, the second temperature threshold value is greater than the first temperature threshold value, the second speed corresponding to the first temperature in the second corresponding relationship is less than the first speed corresponding to the first temperature in the first corresponding relationship, and the first temperature is any one of the plurality of temperatures in the second corresponding relationship.

[0016] In the method, when it is determined that the handheld state of the terminal device is the non-gripping state and the actual temperature is greater than the second temperature threshold, the terminal device can control the fan to switch from a current rotating speed to a target rotating speed determined according to a second corresponding relationship, and the current rotating speed can be a preset rotating speed. The second corresponding relationship includes different temperatures corresponding to different rotating speeds of the fan, and the higher the temperature, the higher the corresponding rotating speed of the fan. At this time, the target rotating speed of the fan is greater than the preset rotating speed, and the terminal device can be cooled by increasing the rotating speed of the fan, thereby ensuring the safety of the terminal device. Moreover, the rotating speed corresponding to the same temperature in the first corresponding relationship is greater than the rotating speed corresponding to the same temperature in the second corresponding relationship, because the terminal device does not involve the problem of hot hand in the non-gripping state, and at this time, the rotating speed of the fan can be slightly lower than that in the gripping state. In this way, noise can be reduced.

[0017] In a possible implementation manner of the first aspect, the method further includes: if the handheld state of the terminal device is the non-gripping state and the actual temperature is less than or equal to the second temperature threshold, determining that the fan operates at a preset rotating speed, and the preset rotating speed is less than the target rotating speed.

[0018] In the method, when the terminal device determines that the handheld state is the non-gripping state, but the actual temperature is less than or equal to the second temperature threshold, the rotating speed of the fan does not need to be increased, and the fan can be controlled to operate at a smaller rotating speed, for example, the rotating speed of the fan can be controlled to be a preset rotating speed. In this way, noise can be reduced, and the power of the terminal device can be saved.

[0019] In a possible implementation manner of the first aspect, the current rotating speed is the preset rotating speed, and before the handheld state of the terminal device is determined, the method further includes: controlling the fan to operate at the preset rotating speed.

[0020] Before the handheld state of the terminal device is determined, the rotating speed of the fan is controlled to be a preset rotating speed, which can save the power of the terminal device and reduce noise.

[0021] In a possible implementation manner of the first aspect, the first temperature threshold is 45℃, and the second temperature threshold is 50℃.

[0022] The first corresponding relationship includes: a corresponding relationship of 50℃ and 3100 revolutions per minute, a corresponding relationship of 53℃ and 3300 revolutions per minute, a corresponding relationship of 56℃ and 3500 revolutions per minute, a corresponding relationship of 59℃ and 3700 revolutions per minute, a corresponding relationship of 62℃ and 3900 revolutions per minute, a corresponding relationship of 65℃ and 4100 revolutions per minute, a corresponding relationship of 68℃ and 4300 revolutions per minute, a corresponding relationship of 71℃ and 4500 revolutions per minute, a corresponding relationship of 74℃ and 4700 revolutions per minute, and a corresponding relationship of 77℃ and 4900 revolutions per minute.

[0023] The second correspondence includes: 50 degrees Celsius and 3000 revolutions per minute, 53 degrees Celsius and 3200 revolutions per minute, 56 degrees Celsius and 3400 revolutions per minute, 59 degrees Celsius and 3600 revolutions per minute, 62 degrees Celsius and 3800 revolutions per minute, 65 degrees Celsius and 4000 revolutions per minute, 68 degrees Celsius and 4200 revolutions per minute, 71 degrees Celsius and 4400 revolutions per minute, 74 degrees Celsius and 4600 revolutions per minute, and 77 degrees Celsius and 4800 revolutions per minute.

[0024] If the temperature threshold is too large, when the internal heat of the terminal device is too large, the actual temperature has not reached the temperature threshold, so that the terminal device cannot timely control the speed of the fan to increase, and the internal heat of the terminal device cannot be dissipated in time. If the temperature threshold is too low, the speed of the fan is increased when the internal heat of the terminal device is small, which not only increases the noise but also increases the power consumption of the terminal device. Selecting 45 degrees Celsius and 50 degrees Celsius as the temperature threshold can balance the heat dissipation of the terminal device and the noise of the fan, which is very reasonable.

[0025] In a possible implementation manner of the first aspect, the terminal device further includes a processor, and the method further includes:

[0026] acquiring a post-switch temperature, the post-switch temperature being a temperature of the terminal device collected after the fan is controlled to switch from the current speed to the target speed for a preset time period;

[0027] If the post-switch temperature is greater than or equal to the actual temperature, the processor is controlled to reduce the working frequency.

[0028] In the method, when the terminal device determines the handheld state and determines that the actual temperature is greater than the corresponding temperature threshold, the speed of the fan can be controlled to increase, so as to dissipate the heat of the terminal device. However, because the terminal device is always in a high-energy-consumption state, the speed of the fan is insufficient to reduce the temperature of the terminal device, that is, after a period of time of controlling the speed of the fan to increase, the post-switch temperature of the terminal device can also not be reduced, and can even be increased. At this time, the terminal device can collect the post-switch temperature after the speed of the fan is controlled to increase for a period of time, and when the post-switch temperature is still greater than or equal to the actual temperature of the terminal device, it is proved that controlling the speed of the fan to increase cannot reduce the temperature of the terminal device. At this time, the processor can be controlled to reduce the working frequency, so that the heat dissipated by the processor is reduced, thereby reducing the temperature of the terminal device, further ensuring that the temperature of the terminal device will not exceed the standard to cause device damage, and improving the safety of the terminal device.

[0029] In a possible implementation manner of the first aspect, the determination of the handheld state of the terminal device includes:

[0030] determining whether a handheld state of the terminal device changes;

[0031] If yes, performing the step of determining the handheld state of the terminal device.

[0032] In the method, since the handheld state of the terminal device is not always unchanged, when the handheld state of the terminal device changes, the terminal device can timely adjust the rotating speed of the fan according to the changed handheld state and the actual temperature, facilitating better heat dissipation of the terminal device.

[0033] In a possible implementation of the first aspect, the terminal device further includes a pressure sensor, and the method further includes:

[0034] When the pressure sensor fails, controlling the fan to operate at a preset rotating speed.

[0035] When the pressure sensor fails, the terminal device can control the fan to operate at a preset rotating speed. When the pressure sensor fails, the terminal device cannot determine the handheld state, and thus cannot determine the rotating speed of the fan according to the handheld state of the terminal device. At this time, a default strategy can be used, that is, the fan is controlled to operate at a preset rotating speed. In this way, the heat dissipation function of the terminal device can be ensured in the case that the pressure sensor fails, and logic confusion and normal work failure caused by the failure of the pressure sensor can be avoided.

[0036] In the second aspect, an embodiment of the present application provides a device for controlling a rotating speed of a fan, including a unit composed of software and / or hardware, and the unit is configured to execute any one of the methods in the technical solutions of the first aspect.

[0037] In the third aspect, an embodiment of the present application provides a terminal device, which includes a fan, a memory, a processor, and a computer program stored in the memory and executable on the processor. The computer program is executed by the processor to implement the method for controlling the rotating speed of the fan.

[0038] In the fourth aspect, an embodiment of the present application provides a computer readable storage medium, which stores a computer program. The computer program is executed by a processor to implement the method for controlling the rotating speed of the fan.

[0039] In the fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product is executed on a terminal device, the terminal device executes the method for controlling the rotating speed of the fan in any one of the first aspect.

[0040] It can be understood that the beneficial effects of the second aspect to the fifth aspect can be understood with reference to the related description of the first aspect, which will not be repeated here. Attached Figure Description

[0041] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0042] Figure 1 This is a schematic flowchart of a method for controlling fan speed according to an embodiment of this application;

[0043] Figure 2 This is a schematic flowchart of a second method for controlling fan speed provided in an embodiment of this application;

[0044] Figure 3 This is a schematic flowchart of a third method for controlling fan speed provided in an embodiment of this application;

[0045] Figure 4 This is a schematic diagram of the device for controlling fan speed provided in an embodiment of this application;

[0046] Figure 5 This is a schematic diagram of the structure of a terminal device provided in an embodiment of this application; Detailed Implementation

[0047] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.

[0048] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.

[0049] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0050] As used in the specification and the appended claims, the term "if' can be interpreted as meaning "when" or "upon" or "in response to determining" or "in response to detecting" depending on the context. Similarly, the phrase "if it is determined" or "if [the described condition or event] is detected" can be interpreted as meaning "upon determining" or "in response to determining" or "upon detecting [the described condition or event]" or "in response to detecting [the described condition or event]" depending on the context.

[0051] In addition, in the description of the present application and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.

[0052] Reference in the specification to "one embodiment" or "some embodiments" means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the application. The appearances of the phrases "in one embodiment", "in some embodiments", "in other embodiments", "in additional embodiments", etc. in various places in the specification are not necessarily all referring to the same embodiment, although they can. The terms "comprising", "including", "having" and their variants mean "including but not limited to", unless otherwise expressly specified.

[0053] Generally, the fan in the terminal device operates at a fixed speed to achieve heat dissipation. However, in some high-energy consumption scenarios, if the internal device temperature of the terminal device rises, the temperature of the shell of the terminal device will also rise. If the user is holding the terminal device at this time, the user will feel hot. In the scheme of the embodiments of the present application, if the temperature of the terminal device exceeds a certain threshold value, causing the terminal device to feel hot when the user is holding the terminal device, the speed of the fan can be increased to speed up the heat dissipation of the terminal device and solve the problem of feeling hot.

[0054] Figure 1 The flowchart of the method for controlling the speed of the fan provided by an embodiment of the present application specifically includes the following steps:

[0055] S110: Obtain the actual temperature of the terminal device.

[0056] The terminal device is a terminal device with a fan, which can be a tablet computer, a smart phone, or the like. The type of the terminal device is not limited in the application. The actual temperature of the terminal device is used to represent the temperature of a key device or component in the terminal device, such as a CPU (Central Processing Unit), a PCB (Printed Circuit Board), or the like. In the embodiments of the application, the actual temperature obtained is taken as the temperature of the PCB. The method for obtaining the actual temperature of the terminal device can be to use a temperature sensor to collect the temperature of the corresponding device or component, or to use a temperature sensor to collect the temperature of the corresponding device or component and to obtain the collected temperature by conversion. The application does not limit this.

[0057] In the application, the terminal device can determine the handheld state and obtain the actual temperature through an EC (Embedded Controller), and determine whether the actual temperature is greater than the corresponding temperature threshold, so as to control the rotating speed of the fan.

[0058] For example, the temperature sensor can obtain the temperature of the PCB in the terminal device as the actual temperature of the terminal device in real time, and then transmit the actual temperature to the EC. The EC can temporarily store the actual temperature.

[0059] S120: Determine the handheld state of the terminal device.

[0060] The handheld state of the terminal device is divided into two types: a holding state and a non-holding state. If the user holds the terminal device with his hand, the terminal device is in the holding state at this time. If the user does not hold the terminal device with his hand, the terminal device is in the non-holding state.

[0061] In some embodiments, the terminal device can use a pressure sensor to determine the handheld state of the terminal device. If the pressure value sensed by the pressure sensor exceeds the preset pressure threshold, it can be determined that the terminal device is in the holding state at this time. If the pressure value sensed by the pressure sensor is less than the preset pressure threshold, it can be determined that the terminal device is in the non-holding state.

[0062] In the application, when the value representing the pressure of the pressure sensor changes, it indicates that the handheld state of the terminal device has changed. The pressure sensor sends the value representing the pressure to the terminal device, and the terminal device can determine the handheld state according to the pressure value.

[0063] S130: If the handheld state of the terminal device is the holding state, and the actual temperature is greater than the first temperature threshold, a first corresponding relationship is used to determine a target rotating speed of the fan corresponding to the actual temperature, and the fan is controlled to switch from a current rotating speed to the target rotating speed for operation, the first corresponding relationship includes a plurality of temperature and a plurality of rotating speed corresponding relationship, and the target rotating speed is greater than the current rotating speed.

[0064] The first temperature threshold can be a temperature value that makes the user feel hot, and can be a temperature value that exceeds the body temperature of the human body by a certain degree, for example, 42℃, 43℃, 44℃, etc.

[0065] In some embodiments, the first temperature threshold can be 45℃. If the first temperature threshold is too large, when the terminal device is in the holding state and the internal heat is too high to cause the user to feel hot, the actual temperature of the terminal device is not greater than the first temperature threshold, so that the terminal device cannot control the rotating speed of the fan to increase in time, the internal heat of the terminal device cannot be dissipated in time, and the user's experience is affected. If the first temperature threshold is too low, when the internal heat of the terminal device is small, the actual temperature of the terminal device is greater than the first temperature threshold, and the terminal device controls the rotating speed of the fan to increase, which not only increases the noise but also increases the power consumption of the terminal device. Therefore, selecting 45℃ as the first temperature threshold can balance the heat dissipation of the terminal device in the holding state and the noise problem of the fan, which is very reasonable.

[0066] When it is determined that the handheld state of the terminal device is the holding state and the actual temperature is greater than the first temperature threshold, the terminal device determines that the user feels hot, and the fan can be controlled to switch to a target rotating speed greater than the current rotating speed for operation. The target rotating speed can be determined by the terminal device in the first corresponding relationship, and the rotating speed corresponding to the actual temperature is determined as the target rotating speed. The first corresponding relationship includes different temperatures corresponding to different rotating speeds of the fan. The higher the temperature, the higher the rotating speed of the fan, and the faster the heat dissipation of the terminal device. In this way, the efficiency of the fan heat dissipation can be improved, the problem of the terminal device feeling hot in the holding state can be solved, and the user's experience can be improved.

[0067] For example, the fan starts to operate at a rotating speed of 1500 revolutions per minute, and the terminal device determines that the handheld state of the terminal device is the holding state according to the value representing the pressure size sent by the pressure sensor. The temperature of the PCB obtained by the temperature sensor is 50℃, which is greater than the first temperature threshold 45℃. At this time, it is judged that the terminal device feels hot, and the fan can be controlled to operate at a rotating speed of 3100 revolutions per minute corresponding to 50℃ in the first corresponding relationship, so as to accelerate the heat dissipation of the terminal device by increasing the rotating speed of the fan.

[0068] In the embodiment of the present application, the temperature of the PCB is greater than the first temperature threshold, but does not exceed the maximum tolerance temperature that the terminal device can withstand. If the temperature of the PCB exceeds the maximum tolerance temperature, the terminal device cannot operate normally, and even is damaged. Generally, the terminal device can adjust the fan speed to the maximum, automatically shut down, or reduce the working frequency of the CPU to reduce the temperature when the actual temperature approaches or reaches the maximum tolerance temperature.

[0069] Figure 2 A second flowchart of a method for controlling the fan speed provided by an embodiment of the present application is shown.

[0070] After the terminal device is powered on, the fan is controlled to operate at a fixed speed, i.e., a preset speed. When the terminal device operates in some high-energy-consumption scenarios, the internal devices generate a large amount of heat, causing the temperature of the terminal device to be always at a high level. At this time, the terminal device can increase the fan speed to accelerate heat dissipation and cool down the terminal device. The terminal device has two scenarios in actual use: a holding state and a non-holding state. The terminal device can determine whether the actual temperature is greater than the temperature threshold corresponding to the two scenarios, respectively, to determine how to adjust the fan speed.

[0071] For details, refer to Figure 2 The method includes the following steps:

[0072] S210: The fan operates at a preset speed.

[0073] When the terminal device is powered on, the actual temperature of the terminal device is not high at this time, and the terminal device can control the fan to operate at a preset speed. Generally, the preset speed is generally small and can be a fixed default value. If the terminal device is just powered on, the fan operates at a high speed, which not only disturbs the user with noise, but also causes the loss of power of the terminal device. The preset speed of the fan is generally 1000 revolutions per minute or 1500 revolutions per minute, which can save the power of the terminal device and reduce noise.

[0074] S220: Obtain the current speed of the fan.

[0075] S230: Determine the holding state of the terminal device.

[0076] In some embodiments, the terminal device can use a pressure sensor to determine the holding state of the terminal device. If the pressure value sensed by the pressure sensor exceeds a preset pressure threshold, it can be determined that the terminal device is in a holding state at this time. If the pressure value sensed by the pressure sensor is less than the preset pressure threshold, it can be determined that the terminal device is in a non-holding state.

[0077] The handheld state of the terminal device is two kinds of holding state and non-holding state. When the terminal device is in the holding state, in the actual use process, the situation of scalding hand may occur, and S241 can be executed to improve the rotation speed for heat dissipation; and when the terminal device is in the non-holding state, although the situation of scalding hand can not be considered, the damage caused by high temperature to the devices and components of the terminal device also needs to be considered, and if the temperature is too high, S242 can be executed to improve the rotation speed for heat dissipation.

[0078] S241: determining whether the actual temperature of the terminal device is greater than a first temperature threshold.

[0079] After determining that the terminal device is in the holding state, the terminal device needs to determine whether the actual temperature is greater than the first temperature threshold, and the first temperature threshold is the basis for determining whether the terminal device is scalding. If the actual temperature of the terminal device is greater than the first temperature threshold, it proves that the terminal device is scalding, and the rotation speed of the fan can be increased. In some embodiments, S251 can be executed, and optionally, the first temperature threshold is 45℃.

[0080] After determining that the terminal device is in the holding state, if the terminal device determines that the actual temperature is less than or equal to the first temperature threshold, S210 can be executed. Although it is determined that the handheld state of the terminal device is the holding state, the actual temperature of the terminal device is less than or equal to the first temperature threshold, which proves that the current temperature of the terminal device is not scalding, and the fan can be controlled to run at a smaller rotation speed, for example, the rotation speed of the fan can still be controlled to remain at the preset rotation speed, which can save the power of the terminal device and reduce the noise.

[0081] For example, after the terminal device is powered on, the fan runs at a preset rotation speed of 1000 revolutions per minute, and when the terminal device determines that the handheld state is the holding state through the value representing the pressure size sent by the pressure sensor, the temperature of the PCB measured by the temperature sensor is 41℃, which is less than the first temperature threshold 45℃, and the terminal device can control the fan to continue running at the preset rotation speed of 1000 revolutions per minute.

[0082] S242: determining whether the actual temperature of the terminal device is greater than a second temperature threshold.

[0083] After determining that the terminal device is in the non-holding state, the terminal device can determine whether the actual temperature is greater than the second temperature threshold, and if the actual temperature is greater than the second temperature threshold, S252 can be executed to increase the rotation speed of the fan.

[0084] The second temperature threshold is 50 DEG C. If the second temperature threshold is too high, the actual temperature of the terminal device needs to be very high before the second temperature threshold is exceeded, and the fan speed is increased to dissipate heat at this time. The actual temperature of the terminal device is always high, which is not safe. If the second temperature threshold is too low, the fan speed is increased when the actual temperature of the terminal device is relatively low, which increases the noise. The second temperature threshold of 50 DEG C can balance the safety and noise problems, and is reasonable.

[0085] When it is determined that the terminal device is in the non-holding state, if the terminal device determines that the actual temperature is less than or equal to the second temperature threshold, S210 can be performed. When it is determined that the terminal device is in the non-holding state and the actual temperature is less than or equal to the second temperature threshold, the fan speed does not need to be increased, and the terminal device can control the fan to maintain the preset speed, which can save the terminal device power and reduce noise.

[0086] For example, after the terminal device is powered on, the fan runs at a preset speed of 1000 revolutions per minute. The terminal device determines that the hand-held state of the terminal device is in the non-holding state by the value representing the pressure size sent by the pressure sensor. The temperature of the PCB measured by the temperature sensor is 47 DEG C, which is less than the second temperature threshold of 50 DEG C. Therefore, the terminal device can control the fan to continue running at the preset speed of 1000 revolutions per minute.

[0087] S251: determining the target speed of the fan corresponding to the actual temperature by using a first correspondence relationship, and controlling the fan to switch from the current speed to the target speed, the first correspondence relationship includes a plurality of temperature and a plurality of speed correspondence relationship, and the target speed is greater than the current speed.

[0088] When it is determined that the hand-held state of the terminal device is in the holding state and the actual temperature is greater than the first temperature threshold, the terminal device determines that the hand is burned. Since the target speed is greater than the current speed, the fan is controlled to switch from the current speed to the target speed determined by the first correspondence relationship, and the heat dissipation speed is faster. The current speed of the fan can be the preset speed of the fan. The first correspondence relationship includes different temperatures corresponding to different speeds of the fan. The higher the temperature, the higher the speed of the fan, and the faster the heat dissipation of the terminal device. This can improve the efficiency of fan heat dissipation, solve the problem of burning hands in the holding state of the terminal device, and improve the user experience.

[0089] For example, after the terminal device is powered on, the fan runs at a preset speed of 1000 revolutions per minute. The user uses the terminal device to play games all the time. The terminal device determines that the handheld state of the terminal device is the holding state according to the value representing the pressure size sent by the pressure sensor. The temperature of the PCB is determined to be 50°C by the temperature sensor, which is greater than the first temperature threshold 45°C. At this time, the terminal device can control the fan to run at the fan speed 3100 revolutions per minute corresponding to 50°C in the first corresponding relationship, so as to increase the speed of the fan to speed up the heat dissipation of the terminal device.

[0090] Optionally, the terminal device can also periodically detect the actual temperature and adjust the speed according to the actual temperature. When it is determined that the handheld state of the terminal device is the holding state, and the actual temperature of the terminal device is less than or equal to the first temperature threshold, the terminal device can control the fan to run at the preset speed. However, when the handheld state of the terminal device has not changed and is still the holding state, the actual temperature of the terminal device will rise to be greater than the first temperature threshold in some high-energy-consumption scenarios. At this time, the hand will be scalded. The terminal device can control the fan to switch from the preset speed to the target speed determined by the first corresponding relationship. Since the target speed is greater than the preset speed, the terminal device can dissipate heat faster and solve the problem of scalding.

[0091] For example, after the terminal device is powered on, the fan runs at a preset speed of 1000 revolutions per minute. When it is determined that the handheld state of the terminal device is the holding state, and the temperature of the PCB measured by the temperature sensor is 41°C, which is less than the first temperature threshold 45°C, the terminal device can control the fan to continue running at the preset speed of 1000 revolutions per minute. However, as the terminal device is used, the temperature of the PCB reaches 50°C, which is greater than the first temperature threshold 45°C. During this process, the handheld state of the terminal device does not change. The terminal device can control the fan to run at the fan speed 3100 revolutions per minute corresponding to 50°C in the first corresponding relationship, so as to improve the heat dissipation efficiency of the terminal device.

[0092] In some embodiments, the terminal device can periodically determine whether the actual temperature exceeds the first temperature threshold, and periodically update the speed of the fan according to the first corresponding relationship.

[0093] Optionally, when it is determined that the terminal device is in the holding state and the actual temperature is greater than the first temperature threshold, the terminal device can control the fan to run at the target speed determined by the first corresponding relationship. Moreover, as long as the handheld state of the terminal device is the holding state and does not change, the terminal device can control the fan to run at the target speed determined by the first corresponding relationship.

[0094] For example, when the handheld state of the terminal device is determined to be the holding state, and the measured temperature of the PCB is determined by the temperature sensor to be 47°C, which is greater than the first temperature threshold 45°C, the terminal device can control the fan to operate at the target rotating speed determined according to the first corresponding relationship. After the rotating speed of the fan is increased, the heat dissipation is accelerated, and the temperature of the PCB is reduced to 43°C, which is less than the first temperature threshold 45°C. However, if the handheld state of the terminal device has not changed and remains in the holding state, the terminal device can control the fan to operate at the target rotating speed determined according to the first corresponding relationship all the time. Alternatively, the terminal device can also control the fan to resume operating at the preset rotating speed when the temperature is reduced to below the first temperature threshold.

[0095] S252: determining a target rotating speed of the fan corresponding to the actual temperature according to a second corresponding relationship, and controlling the fan to switch from the current rotating speed to the target rotating speed, the second corresponding relationship including a plurality of temperature and rotating speed corresponding relationships.

[0096] When the handheld state of the terminal device is determined to be the non-holding state, and the actual temperature is greater than the second temperature threshold, the terminal device can control the fan to switch from the current rotating speed to the target rotating speed determined according to the second corresponding relationship. At this time, the current rotating speed can be the preset rotating speed. The second corresponding relationship includes different temperatures corresponding to different rotating speeds of the fan, and the higher the temperature, the higher the corresponding rotating speed of the fan. At this time, the target rotating speed of the fan is greater than the preset rotating speed, and the terminal device can be cooled by increasing the rotating speed of the fan to ensure the safety of the terminal device. Moreover, the same temperature corresponds to a higher rotating speed in the second corresponding relationship than in the first corresponding relationship, because the terminal device does not involve the problem of hot hands in the non-holding state, and at this time, the rotating speed of the fan can be slightly lower than that in the holding state. This can reduce noise.

[0097] For example, after the terminal device is powered on, the fan operates at the preset rotating speed of 1000 revolutions per minute, and the user uses the terminal device in the non-holding state all the time. The terminal device determines that the handheld state of the terminal device is the non-holding state according to the value representing the pressure size sent by the pressure sensor, and determines that the temperature of the PCB is 53°C, which is greater than the second temperature threshold 50°C, according to the temperature sensor. At this time, the fan can be controlled to operate at the rotating speed of the fan corresponding to 53°C in the second corresponding relationship, i.e. 3200 revolutions per minute, to increase the rotating speed of the fan to accelerate the heat dissipation of the terminal device.

[0098] Optionally, the terminal device can also periodically detect the actual temperature and adjust the rotation speed according to the actual temperature. When it is determined that the handheld state of the terminal device is the non-holding state and the actual temperature is less than or equal to the second temperature threshold, the terminal device can control the fan to run at the preset rotation speed. However, when the handheld state of the terminal device has not changed and is still the non-holding state, in some high-energy-consumption scenarios, the actual temperature of the terminal device can rise to be greater than the second temperature threshold, at which time the fan can be controlled to increase the rotation speed from the preset rotation speed to the target rotation speed determined according to the second correspondence.

[0099] For example, after the terminal device is powered on, the fan runs at a preset rotation speed of 1000 revolutions per minute. When it is determined that the handheld state of the terminal device is the non-holding state and the temperature of the PCB is 47°C, which is less than the second temperature threshold of 50°C, determined by the temperature sensor, the terminal device can control the fan to continue to run at a rotation speed of 1000 revolutions per minute. However, as the terminal device is used, the actual temperature of the terminal device reaches 53°C, which is greater than the second temperature threshold of 50°C. During this process, the handheld state of the terminal device does not change. Then, the terminal device can control the fan to run at a rotation speed of 3200 revolutions per minute corresponding to 53°C in the second correspondence, thereby improving the heat dissipation efficiency of the terminal device.

[0100] In some embodiments, the terminal device can periodically determine whether the actual temperature exceeds the second temperature threshold and periodically update the rotation speed of the fan according to the second correspondence.

[0101] Optionally, when it is determined that the terminal device is in the non-holding state and the actual temperature is greater than the second temperature threshold, the terminal device can control the fan to run at the target rotation speed determined according to the second correspondence. Moreover, as long as the handheld state of the terminal device does not change and remains the non-holding state, the fan can continue to run at the target rotation speed determined according to the second correspondence.

[0102] For example, when it is determined that the handheld state of the terminal device is the non-holding state and the temperature of the PCB measured by the temperature sensor is 55°C, which is greater than the second temperature threshold of 50°C, the terminal device can control the fan to run at the target rotation speed determined according to the second correspondence. After the rotation speed of the fan is increased, the temperature of the PCB drops to 46°C, which is less than the second temperature threshold of 50°C. If the handheld state of the terminal device does not change and remains the non-holding state, the fan can also run at the target rotation speed determined according to the second correspondence. Optionally, the terminal device can also control the fan to return to running at the preset rotation speed when the temperature drops below the second temperature threshold.

[0103] In the embodiment, the temperature of the PCB is greater than the second temperature threshold, but does not exceed the maximum tolerance temperature that the terminal device can bear. If the temperature of the PCB exceeds the maximum tolerance temperature, the terminal device cannot normally operate, and even is damaged. Generally, the terminal device can adjust the fan speed to the maximum, or automatically shut down, or reduce the working frequency of the CPU to reduce the temperature when the actual temperature approaches or reaches the maximum tolerance temperature.

[0104] Optionally, the first strategy can be called as determining the target speed of the fan according to the first corresponding relationship, and the second strategy can be called as determining the target speed of the fan according to the second corresponding relationship.

[0105] S260: acquiring a switching temperature, the switching temperature being a temperature of the terminal device acquired after the fan is controlled to switch from the current speed to the target speed and runs for a preset time period; and if the switching temperature is greater than or equal to the actual temperature, controlling the processor to reduce the working frequency.

[0106] The preset time period can be one minute, two minutes, three minutes or the like, which is not limited in the embodiment. As long as the effect of the speed of the fan on heat dissipation can be reasonably represented, it is acceptable.

[0107] Whether the terminal device is in the held state or the non-held state, when the actual temperature reaches the corresponding temperature threshold, the terminal device can control the speed of the fan to be increased, so as to dissipate heat of the terminal device. However, since the terminal device is always in a high-energy-consumption state, the degree of increasing the speed of the fan is not enough to reduce the temperature of the terminal device, that is, the switching temperature of the terminal device after the speed of the fan is increased for a period of time can also not be reduced, and even can be increased. At this time, the terminal device can acquire the switching temperature after the speed of the fan is increased for a period of time. When the switching temperature is still greater than or equal to the actual temperature, it is proved that the speed of the fan cannot reduce the temperature of the terminal device, and at this time, a signal can be sent to the CPU to inform the CPU to reduce the working frequency (i.e., frequency reduction). After the working frequency of the CPU is reduced, the heat generation can be reduced, so as to reduce the temperature of the terminal device, further ensure that the temperature of the terminal device will not exceed the standard to cause device damage, and improve the safety of the terminal device.

[0108] For example, the working frequency of the CPU in the terminal device is 2.3 GHz, and the running power of the corresponding CPU is 5 W. When it is determined that the terminal device is in the holding state, and the temperature of the PCB measured by the temperature sensor is 50°C, the terminal device can control the fan to run at 3100 revolutions per minute corresponding to 50°C in the first corresponding relationship. After 1 minute, the terminal device obtains the temperature of the PCB after switching measured by the temperature sensor, which is 55°C, which is greater than the actual temperature 50°C. At this time, it is proved that the fan speed cannot be increased to reduce the temperature of the terminal device, and a signal can be sent to the CPU to inform the CPU to reduce the frequency. After the CPU reduces the frequency, the working frequency can be maintained at 2 GHz, and the running power of the corresponding CPU is 4 W.

[0109] Optionally, when the CPU is informed to reduce the frequency for the first time, the terminal device runs for a preset time period. The terminal device determines whether the temperature is still greater than or equal to the actual temperature of the terminal device, proving that the temperature of the terminal device has not been reduced. At this time, the CPU can be informed to continue to reduce the frequency, for example, the working frequency of the CPU can be reduced from 2 GHz to 1 GHz, and the running power of the corresponding CPU is reduced from 4 W to 1 W.

[0110] It should be noted that when the pressure sensor fails, the terminal device can control the fan to run at a preset speed. When the pressure sensor fails, the terminal device cannot determine the holding state, and cannot determine the speed of the fan according to the holding state of the terminal device. At this time, the default strategy can be used, that is, the fan is controlled to run at a preset speed. In this way, the heat dissipation function of the terminal device can be ensured in the case that the pressure sensor fails, and the terminal device cannot work normally due to the logic confusion caused by the failure of the pressure sensor.

[0111] Figure 3 A third flowchart of a method for controlling the speed of a fan provided by an embodiment of the application is shown.

[0112] In actual use, the holding state of the terminal device is not always unchanged. For example, the terminal device is switched from the holding state of playing games to the non-holding state of watching dramas. When the holding state of the terminal device changes, the terminal device can adjust the speed of the fan in time according to the changed holding state and the actual temperature, so as to facilitate better heat dissipation of the terminal device.

[0113] For details, please refer to Figure 3 The method comprises the following steps:

[0114] S310: The fan runs at a preset speed.

[0115] S320: Obtain the current speed of the fan.

[0116] S330: Determine the handheld state of the terminal device. If it is a handheld state, perform S341; if it is a non-handheld state, perform S342.

[0117] S341: Determine whether the actual temperature of the terminal device is greater than a first temperature threshold. If yes, perform S351.

[0118] S342: Determine whether the actual temperature of the terminal device is greater than a second temperature threshold. If yes, perform S352.

[0119] S351: Determine the target rotating speed of the fan corresponding to the actual temperature by using a first corresponding relationship, and control the fan to switch from the current rotating speed to the target rotating speed, the first corresponding relationship including a plurality of temperature and rotating speed corresponding relationship, the target rotating speed being greater than the current rotating speed.

[0120] S352: Determine the target rotating speed of the fan corresponding to the actual temperature by using a second corresponding relationship, and control the fan to switch from the current rotating speed to the target rotating speed, the second corresponding relationship including a plurality of temperature and rotating speed corresponding relationship.

[0121] S360: Obtain a switched temperature, the switched temperature being the temperature of the terminal device collected after the fan is controlled to switch from the current rotating speed to the target rotating speed for a preset period of time; if the switched temperature is greater than or equal to the actual temperature, control the processor to reduce the working frequency.

[0122] The implementation manner and effect of the above steps have been described above, and can be referred to the above, which will not be described here.

[0123] S370: The handheld state of the terminal device changes.

[0124] Optionally, when it is determined that the handheld state of the terminal device is a handheld state, and the actual temperature is greater than the first temperature threshold, the terminal device can control the fan to run at the target rotating speed determined by the first corresponding relationship. When the handheld state of the terminal device changes from the handheld state to the non-handheld state, there is no problem of hot hand, so the rotating speed of the fan can be appropriately reduced to prevent the noise caused by the too fast rotating speed of the fan from affecting the user, so when the handheld state changes, S330 can be re-executed.

[0125] For example, when the handheld state of the terminal device is determined to be the holding state, and the temperature of the PCB is 48°C, greater than the first temperature threshold 45°C, the terminal device can control the fan to run at the target speed determined by the first corresponding relationship. After the fan speed is increased, the heat dissipation is accelerated, and the temperature of the PCB decreases from 48°C to 41°C. At this time, the handheld state of the terminal device changes from the holding state to the non-holding state. Then, the terminal device can re-execute the determination of the handheld state of the terminal device and the subsequent processes. When the terminal device obtains that the temperature of the PCB is 41°C, less than the second temperature threshold 50°C, the fan can be controlled to run at the preset speed.

[0126] For example, when the handheld state of the terminal device is determined to be the holding state, and the temperature of the PCB is 48°C, greater than the first temperature threshold 45°C, the terminal device can control the fan to run at the target speed determined by the first corresponding relationship. After the fan speed is increased, the heat dissipation is accelerated, and the temperature of the PCB decreases from 48°C to 46°C. At this time, the handheld state of the terminal device changes from the holding state to the non-holding state. Then, the terminal device can re-execute the determination of the handheld state of the terminal device and the subsequent processes. When the terminal device obtains that the temperature of the PCB is 46°C, less than the second temperature threshold 50°C, the fan can be controlled to run at the preset speed.

[0127] For example, when the handheld state of the terminal device is determined to be the holding state, and the temperature of the PCB is 48°C, greater than the first temperature threshold 45°C, the terminal device can control the fan to run at the target speed determined by the first corresponding relationship. After the fan speed is increased, the heat dissipation is accelerated, and the temperature of the PCB decreases from 48°C to 46°C. At this time, the handheld state of the terminal device changes from the holding state to the non-holding state. Then, the terminal device can re-execute the determination of the handheld state of the terminal device and the subsequent processes. When the terminal device obtains that the temperature of the PCB is 46°C, less than the second temperature threshold 50°C, the fan can be controlled to run at the preset speed.

[0128] Optionally, when the handheld state of the terminal device is the non-holding state, and the actual temperature is greater than the second temperature threshold, the terminal device can control the fan to run at the target speed determined by the second corresponding relationship. When the handheld state changes, such as from the non-holding state to the holding state, the problem of hot hand needs to be considered. The terminal device can increase the speed of the fan to prevent the user from feeling hot due to high temperature, resulting in poor user experience. Therefore, when the handheld state changes from the non-holding state to the holding state, S330 can be re-executed.

[0129] For example, when it is determined that the handheld state of the terminal device is the non-holding state and the temperature of the PCB is 56°C, which is greater than the second temperature threshold 50°C, the terminal device can control the fan to run at the target rotating speed determined according to the second corresponding relationship. After the rotating speed of the fan is increased, the heat dissipation is accelerated, and the temperature of the PCB is reduced from 56°C to 41°C. At this time, the handheld state of the terminal device changes from the non-holding state to the holding state, and then the terminal device can re-execute the process of determining the handheld state of the terminal device and the subsequent processes. When the terminal device obtains that the temperature of the PCB is 41°C, which is less than the first temperature threshold 45°C, the fan can be controlled to run at the preset rotating speed.

[0130] For example, when it is determined that the handheld state of the terminal device is the non-holding state and the temperature of the PCB is 56°C, which is greater than the second temperature threshold 50°C, the terminal device can control the fan to run at the target rotating speed determined according to the second corresponding relationship. After the rotating speed of the fan is increased, the heat dissipation is accelerated, and the temperature of the PCB is reduced from 56°C to 46°C. At this time, the handheld state of the terminal device changes from the non-holding state to the holding state, and then the terminal device can re-execute the process of determining the handheld state of the terminal device and the subsequent processes. When the terminal device obtains that the temperature of the PCB is 46°C, which is greater than the first temperature threshold 45°C, the fan can be controlled to run at the target rotating speed determined according to the first corresponding relationship.

[0131] For example, when it is determined that the handheld state of the terminal device is the non-holding state and the temperature of the PCB is 56°C, which is greater than the second temperature threshold 50°C, the terminal device can control the fan to run at the target rotating speed determined according to the second corresponding relationship. After the rotating speed of the fan is increased, the heat dissipation is accelerated, and the temperature of the PCB is reduced from 56°C to 51°C. At this time, the handheld state of the terminal device changes from the non-holding state to the holding state, and then the terminal device can re-execute the process of determining the handheld state of the terminal device and the subsequent processes. When the terminal device obtains that the temperature of the PCB is 51°C, which is greater than the first temperature threshold 45°C, the fan can be controlled to run at the target rotating speed determined according to the first corresponding relationship.

[0132] Optionally, when it is determined that the handheld state of the terminal device is the holding state, but the actual temperature of the terminal device is less than or equal to the first temperature threshold, and when it is determined that the handheld state of the terminal device is the non-holding state, but the actual temperature of the terminal device is less than or equal to the second temperature threshold, the fan can be controlled to run at the preset rotating speed. In the two cases, when the handheld state of the terminal device changes, the process S330 can also be re-executed.

[0133] For example, when it is determined that the handheld state of the terminal device is the holding state, and the temperature of the PCB is 41 DEG C, which is less than the first temperature threshold 45 DEG C, the terminal device can control the fan to run at a preset rotating speed. At this time, the handheld state of the terminal device changes from the holding state to the non-holding state, and then the terminal device can re-execute the process of determining the handheld state of the terminal device and the subsequent processes. When the terminal device obtains that the temperature of the PCB is 41 DEG C, which is less than the second temperature threshold 50 DEG C, the fan can still be controlled to run at the preset rotating speed.

[0134] For example, when it is determined that the handheld state of the terminal device is the holding state, and the temperature of the PCB is 41 DEG C, which is less than the first temperature threshold 45 DEG C, the terminal device can control the fan to run at a preset rotating speed. At this time, the handheld state of the terminal device changes from the holding state to the non-holding state, and then the terminal device can re-execute the process of determining the handheld state of the terminal device and the subsequent processes. When the terminal device obtains that the temperature of the PCB is 41 DEG C, which is less than the second temperature threshold 50 DEG C, the fan can still be controlled to run at the preset rotating speed.

[0135] It should be understood that the size of the serial number of each step in the above embodiment does not mean the order of execution, and the execution order of each process should be determined according to its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0136] According to the method for controlling the rotating speed of the fan described in the above embodiment, Figure 4 The structure schematic diagram of the device for controlling the rotating speed of the fan provided by the embodiments of the present application is shown, and only the parts related to the embodiments of the present application are shown for the convenience of description.

[0137] Referring to Figure 4 The device 400 comprises a first determination module 410, a first acquisition module 420 and a second determination module 430.

[0138] The first determination module 410 is configured to determine the handheld state of the terminal device.

[0139] The first acquisition module 420 is configured to acquire the actual temperature of the terminal device.

[0140] The second determination module 430 is configured to, when the handheld state of the terminal device is the holding state, and the actual temperature is greater than the first temperature threshold, determine the target rotating speed of the fan corresponding to the actual temperature by using a first corresponding relationship, and control the fan to switch from the current rotating speed to the target rotating speed, wherein the first corresponding relationship comprises a corresponding relationship between a plurality of temperatures and a plurality of rotating speeds, and the target rotating speed is greater than the current rotating speed.

[0141] In some embodiments, the second determining module 430 is further configured to: when the handheld state of the terminal device is the holding state, and the actual temperature is less than or equal to the first temperature threshold, determine that the fan operates at a preset rotating speed, the preset rotating speed being less than the target rotating speed.

[0142] In some embodiments, the second determining module 430 is further configured to: when the handheld state of the terminal device is the non-holding state, and the actual temperature is greater than a second temperature threshold, determine the target rotating speed of the fan corresponding to the actual temperature according to a second corresponding relationship, and control the fan to switch from the current rotating speed to the target rotating speed; wherein the second corresponding relationship includes a plurality of temperature and rotating speed corresponding relationships, the second temperature threshold is greater than the first temperature threshold, a second rotating speed corresponding to the first temperature in the second corresponding relationship is less than a first rotating speed corresponding to the first temperature in the first corresponding relationship, and the first temperature is any one of the plurality of temperatures in the second corresponding relationship.

[0143] In some embodiments, the second determining module 430 is further configured to: when the handheld state of the terminal device is the non-holding state, and the actual temperature is less than or equal to the second temperature threshold, determine that the fan operates at a preset rotating speed, the preset rotating speed being less than the target rotating speed.

[0144] In some embodiments, the current rotating speed is the preset rotating speed, and the second determining module 430 is further configured to: before the determination of the handheld state of the terminal device, control the fan to operate at the preset rotating speed.

[0145] In some embodiments, the first temperature threshold is 45℃, and the second temperature threshold is 50℃.

[0146] The first correspondence relationship includes: 50 DEG C and 3100 revolutions per minute, 53 DEG C and 3300 revolutions per minute, 56 DEG C and 3500 revolutions per minute, 59 DEG C and 3700 revolutions per minute, 62 DEG C and 3900 revolutions per minute, 65 DEG C and 4100 revolutions per minute, 68 DEG C and 4300 revolutions per minute, 71 DEG C and 4500 revolutions per minute, 74 DEG C and 4700 revolutions per minute, 77 DEG C and 4900 revolutions per minute; and the second correspondence relationship includes: 50 DEG C and 3000 revolutions per minute, 53 DEG C and 3200 revolutions per minute, 56 DEG C and 3400 revolutions per minute, 59 DEG C and 3600 revolutions per minute, 62 DEG C and 3800 revolutions per minute, 65 DEG C and 4000 revolutions per minute, 68 DEG C and 4200 revolutions per minute, 71 DEG C and 4400 revolutions per minute, 74 DEG C and 4600 revolutions per minute, 77 DEG C and 4800 revolutions per minute.

[0147] In some embodiments, the terminal device further includes a processor, and the first obtaining module 420 is further configured to obtain a temperature after switching, the temperature after switching being a temperature of the terminal device collected after the fan is controlled to switch from a current rotating speed to the target rotating speed for a preset time period.

[0148] In some embodiments, the second determining module 430 is further configured to control the processor to reduce the working frequency when the temperature after switching is greater than or equal to the actual temperature.

[0149] In some embodiments, the first determining module 410 is specifically configured to determine whether a handheld state of the terminal device changes, and if so, perform the step of determining the handheld state of the terminal device.

[0150] In some embodiments, the terminal device further includes a pressure sensor, and the second determining module 430 is further configured to control the fan to operate at a preset rotating speed when the pressure sensor fails.

[0151] In the embodiments of the present application, the handheld state of the terminal device is determined by the pressure sensor, the actual temperature of the terminal device is obtained by the temperature sensor, and the rotating speed of the fan is determined according to the handheld state and the actual temperature of the terminal device, so that the fan is intelligently operated, and the user experience is improved.

[0152] The apparatus 400 can include a unit composed of software and / or hardware, which is configured to execute any one of the technical solutions in the above method embodiments.

[0153] It should be noted that the information interaction, execution process and the like between the above devices / units are based on the same concept as the method embodiments of the present application, and the specific functions and the technical effects brought by the same can be specifically referred to the method embodiments part, which will not be repeated here.

[0154] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the above-mentioned division of each functional unit and module is exemplified, and in actual application, the above-mentioned functions can be completed by different functional units and modules according to needs, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of software functional unit. In addition, the specific name of each functional unit and module is only for easy distinction, and does not limit the protection scope of the present application. The specific working process of the unit and module in the system can refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.

[0155] Figure 5 A structural schematic diagram of a terminal device provided by the embodiment of the present application is shown in FIG. 5. As shown in FIG. 5, the terminal device 500 includes a processor 510, a memory 520, and a computer program 530 stored in the memory 520 and executable on the processor 510. The processor 510 implements the steps in the method of controlling the fan speed in the above-mentioned embodiments when executing the computer program 530. The terminal device further includes a fan 540. Figure 5

[0156] The processor 510 can be a central processing unit (CPU), and the processor 510 can also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gates or transistor logic components, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor.

[0157] ​The memory 520 can be an internal storage unit of the terminal device 500, such as a hard disk or a memory of the terminal device 500 in some embodiments. The memory 520 can also be an external storage device of the terminal device 500, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal device 500 in some other embodiments. Further, the memory 520 can include both an internal storage unit and an external storage device of the terminal device 500. The memory 520 is used to store an operating system, an application program, a boot loader, data, and other programs, etc. The memory 520 can also be used to temporarily store data that has been output or will be output.

[0158] Those skilled in the art can understand that, Figure 5 The terminal device 500 is merely an example and does not constitute a limitation on the terminal device 500, and can include more or fewer components than shown, or combine certain components, or different components.

[0159] The embodiments of the present application further provide a computer readable storage medium, which stores a computer program. The computer program is executed by a processor to implement the steps in the above-mentioned various method embodiments.

[0160] The embodiments of the present application further provide a computer program product, which, when running on a computer, enables the computer to perform the steps in the above-mentioned various method embodiments.

[0161] The integrated unit, if implemented in the form of a software function unit and sold or used as an independent product, can be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the above method embodiments can be completed by a computer program instructing related hardware, and the computer program can be stored in a computer readable storage medium. The computer program can implement the steps of each method embodiment when executed by a processor. The computer program includes computer program code, which can be in the form of source code, object code, executable files or some intermediate forms. The computer readable medium at least includes any entity or device capable of carrying the computer program code to the photographing device / terminal equipment, recording medium, computer memory, ROM (Read-Only Memory), RAM (Random Access Memory), CD-ROM (Compact Disc Read-Only Memory), magnetic tape, floppy disk and optical data storage equipment, etc. The computer readable storage medium mentioned in the present application can be a non-volatile storage medium, in other words, a non-transitory storage medium.

[0162] It should be understood that all or part of the steps of the above-mentioned embodiments can be realized by software, hardware, firmware or any combination thereof. When realized by software, it can be realized in the form of a computer program product in whole or in part. The computer program product includes one or more computer instructions. The computer instructions can be stored in the above-mentioned computer readable storage medium.

[0163] In the above embodiments, the description of each embodiment has its own focus, and the parts not described or recorded in detail in a certain embodiment can be referred to the relevant description of other embodiments.

[0164] Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be realized by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.

[0165] In the embodiments provided by the present application, it should be understood that the disclosed apparatus / terminal device and method can be implemented in other manners. For example, the embodiments of the apparatus / terminal device described above are merely schematic, and the division of the modules or units is merely logical function division, and there can be other division manners in actual implementation. For example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections between the units can be indirect couplings or communication connections through some interfaces, devices or units, and can be electrical, mechanical or in other forms.

[0166] The units described as separated components can or can not be physically separated, and the components displayed as units can or can not be physical units, i.e., can be located in one place or can be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purposes of the embodiments of the present application.

[0167] The above-described embodiments are merely used to illustrate the technical solutions of the present application, but not limit the present application; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: the technical solutions recorded in the foregoing embodiments can still be modified, or some technical features can be replaced by equivalent replacements; and these modifications or replacements do not make the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application.

Claims

1. A method of controlling the speed of a fan, characterized by, The method is applied to a terminal device comprising a fan, and comprises: obtaining an actual temperature of the terminal device, the actual temperature being used to represent a temperature of the terminal device; determining a handheld state of the terminal device; if the handheld state of the terminal device is a holding state and the actual temperature is greater than a first temperature threshold, determining a target rotating speed of the fan corresponding to the actual temperature by using a first corresponding relationship, and controlling the fan to switch from a current rotating speed to the target rotating speed, the first corresponding relationship comprising a corresponding relationship between a plurality of temperatures and a plurality of rotating speeds, and the target rotating speed being greater than the current rotating speed; the method further comprises: if the handheld state of the terminal device is a non-holding state and the actual temperature is greater than a second temperature threshold, determining a target rotating speed of the fan corresponding to the actual temperature by using a second corresponding relationship, and controlling the fan to switch from a current rotating speed to the target rotating speed; wherein the second corresponding relationship comprises a corresponding relationship between a plurality of temperatures and a plurality of rotating speeds, the second temperature threshold is greater than the first temperature threshold, a second rotating speed corresponding to a first temperature in the second corresponding relationship is smaller than a first rotating speed corresponding to the first temperature in the first corresponding relationship, and the first temperature is any one of the plurality of temperatures in the second corresponding relationship.

2. The method of claim 1, wherein, the method further comprises: if the handheld state of the terminal device is the holding state and the actual temperature is less than or equal to the first temperature threshold, determining that the fan operates at a preset rotating speed, the preset rotating speed being less than the target rotating speed.

3. The method of claim 1, wherein, the method further comprises: if the handheld state of the terminal device is the non-holding state and the actual temperature is less than or equal to the second temperature threshold, determining that the fan operates at a preset rotating speed, the preset rotating speed being less than the target rotating speed.

4. The method according to claim 2 or 3, characterized in that, the current rotating speed is the preset rotating speed, and before the determination of the handheld state of the terminal device, the method further comprises: controlling the fan to operate at the preset rotating speed.

5. The method of claim 1, wherein, the first temperature threshold is 45℃, and the second temperature threshold is 50℃; the first corresponding relationship comprises: a corresponding relationship between 50℃ and 3100 revolutions per minute, a corresponding relationship between 53℃ and 3300 revolutions per minute, a corresponding relationship between 56℃ and 3500 revolutions per minute, a corresponding relationship between 59℃ and 3700 revolutions per minute, a corresponding relationship between 62℃ and 3900 revolutions per minute, a corresponding relationship between 65℃ and 4100 revolutions per minute, a corresponding relationship between 68℃ and 4300 revolutions per minute, a corresponding relationship between 71℃ and 4500 revolutions per minute, a corresponding relationship between 74℃ and 4700 revolutions per minute, and a corresponding relationship between 77℃ and 4900 revolutions per minute. The second correspondence includes: 50℃ and 3000 revolutions per minute, 53℃ and 3200 revolutions per minute, 56℃ and 3400 revolutions per minute, 59℃ and 3600 revolutions per minute, 62℃ and 3800 revolutions per minute, 65℃ and 4000 revolutions per minute, 68℃ and 4200 revolutions per minute, 71℃ and 4400 revolutions per minute, 74℃ and 4600 revolutions per minute, 77℃ and 4800 revolutions per minute.

6. The method of claim 1, wherein, The terminal device further comprises a processor, and the method further comprises: acquiring a temperature after switching, the temperature after switching being a temperature of the terminal device collected after the fan is controlled to switch from a current rotating speed to the target rotating speed for a preset period of time; if the temperature after switching is greater than or equal to the actual temperature, controlling the processor to reduce the working frequency.

7. The method according to any one of claims 1 to 3, characterized in that, The determination of the handheld state of the terminal device comprises: determining whether the handheld state of the terminal device changes; if yes, performing the step of determining the handheld state of the terminal device.

8. The method of claim 7, wherein, The terminal device further comprises a pressure sensor, and the method further comprises: when the pressure sensor fails, controlling the fan to operate at a preset rotating speed.

9. A terminal device, comprising: The terminal device comprises a fan, a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program is executed by the processor to implement the method according to any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program, and the computer program is executed by the processor to implement the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Fan control method, fan control device, equipment and medium

    CN114876844A