Detection method and device of heat dissipation equipment, terminal and storage medium
By collecting terminal acceleration data and analyzing vibration frequency and amplitude, the cumbersome user operation problem of detecting heat dissipation equipment in the existing technology is solved, efficient and compatible heat dissipation equipment detection is achieved, and detection efficiency and accuracy are improved.
Patent Information
- Application Number
- CN202410479228.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-19
- Publication Date
- 2025-10-24
Smart Images

Figure CN120831691A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of terminals, and in particular to a detection method and device of a heat dissipation apparatus, a terminal and a storage medium. BACKGROUND
[0002] In the process of playing games through a terminal such as a mobile phone or a tablet computer, the terminal may have a heating phenomenon. By wearing a heat dissipation back clip or other heat dissipation apparatus, the temperature of the terminal can be reduced, and thus the terminal does not need to consider the case of excessively high temperature, and the game performance can be appropriately improved, such as improving the resolution and frame rate of the game picture. Therefore, how to detect whether the terminal is wearing a heat dissipation apparatus to determine whether to improve the game performance is a technical problem to be solved.
[0003] In the related art, a user usually manually establishes a Bluetooth connection between the terminal and the heat dissipation apparatus. Then, after the terminal starts a game, the user authorizes a game helper to read a plurality of Bluetooth devices connected by the terminal. The game helper can determine whether the heat dissipation apparatus exists in the plurality of Bluetooth devices. In the case where the heat dissipation apparatus exists in the plurality of Bluetooth devices, the game helper determines that the terminal is currently wearing the heat dissipation apparatus.
[0004] However, by using the above method, the user needs to manually establish the Bluetooth connection first, and then authorize the game helper to read the Bluetooth devices, which is relatively cumbersome and has low detection efficiency. SUMMARY
[0005] Embodiments of the present application provide a detection method and device of a heat dissipation apparatus, a terminal and a storage medium, which can determine whether the terminal is wearing a heat dissipation apparatus according to the vibration frequency and amplitude of the terminal, can be compatible with multiple types of heat dissipation apparatuses, and do not require manual operation of the user, thereby improving the efficiency and compatibility of detecting the heat dissipation apparatus. The technical solutions are as follows:
[0006] According to an aspect of an embodiment of the present application, a detection method of a heat dissipation apparatus is provided, which is applied to a terminal, and the method comprises:
[0007] Collecting acceleration data of the terminal;
[0008] Determining a vibration frequency and a vibration amplitude of the terminal based on the acceleration data, the vibration frequency being a change frequency of the acceleration data;
[0009] In a case where a number of occurrences of a target event in a first time period reaches a first threshold value, determining that the terminal has worn an external heat dissipation apparatus, the target event being that the vibration frequency and the vibration amplitude are both within corresponding preset ranges.
[0010] According to another aspect of an embodiment of the present application, a detection device of a heat dissipation apparatus is provided, which is configured in a terminal, and the device comprises:
[0011] The collection module is configured to collect acceleration data of the terminal.
[0012] The first determination module is configured to determine a vibration frequency and a vibration amplitude of the terminal based on the acceleration data, the vibration frequency being a variation frequency of the acceleration data.
[0013] The second determination module is configured to determine that the terminal has worn an external heat dissipation device in a case where a number of occurrences of a target event in a first time period reaches a first threshold value, the target event being that the vibration frequency and the vibration amplitude are both within corresponding preset ranges.
[0014] In some embodiments, the collection module is configured to collect the acceleration data of the terminal in response to a start operation of a target application; or, in a case where a display frame rate of the terminal is lower than a frame rate threshold value, collect the acceleration data of the terminal; or, in a case where a resource utilization rate of a processor of the terminal is higher than a utilization rate threshold value, collect the acceleration data of the terminal.
[0015] In some embodiments, the vibration frequency of the terminal is represented by the variation frequency of the acceleration data; and the first determination module comprises:
[0016] The analysis unit is configured to analyze a plurality of pieces of acceleration data collected in a unit time to obtain the variation frequency of the acceleration data.
[0017] The determination unit is configured to determine the vibration amplitude of the terminal based on an acceleration threshold value and the vibration frequency, the acceleration threshold value being a maximum acceleration value under a plurality of vibration frequencies, and the vibration amplitude being positively correlated with the acceleration threshold value.
[0018] In some embodiments, the acceleration data comprises acceleration values of the terminal in X-axis, Y-axis and Z-axis directions.
[0019] The analysis unit is configured to, for any piece of acceleration data collected in the unit time, normalize a plurality of acceleration values included in the acceleration data to obtain a normalized value of the acceleration data; and analyze the normalized values of the plurality of pieces of acceleration data to obtain the vibration frequency of the terminal.
[0020] In some embodiments, the device further comprises:
[0021] The third determination module is configured to, in a case where the number of occurrences of the target event in the first time period does not reach the first threshold value, determine a number of occurrences of the target event in a second time period, the second time period being a time period located after the first time period.
[0022] The second determining module is further configured to determine that the terminal does not wear the external heat dissipation device, if the number of occurrences of the target event in the second time period does not reach a second threshold.
[0023] In some embodiments, the apparatus further includes:
[0024] The mode switching module is configured to, if the terminal has worn the external heat dissipation device, and if the operation mode of the terminal is not the high-performance mode, run the terminal according to at least one of the operation strategy and the operation parameter associated with the high-performance mode, to switch the operation mode of the terminal to the high-performance mode, the operation mode of the terminal including the high-performance mode and a non-high-performance mode.
[0025] In some embodiments, the operation strategy includes at least one of a background cleaning strategy, a message notification strategy, and a network connection strategy; and the operation parameter includes at least one of a maximum frequency of a processor, a display resolution, and a display frame rate.
[0026] In some embodiments, the operation parameter includes the display frame rate.
[0027] The mode switching module is configured to, if the display frame rate included in the operation parameter is higher than a current display frame rate of the terminal, perform frame interpolation on a plurality of pictures displayed by the terminal based on the display frame rate included in the operation parameter, to make the display frame rate of the terminal reach the display frame rate included in the operation parameter.
[0028] In some embodiments, the mode switching module is further configured to, if the operation mode of the terminal is the high-performance mode, and in response to the terminal being switched from wearing the external heat dissipation device to not wearing the external heat dissipation device, switch the operation mode of the terminal to a historical mode, the historical mode being an operation mode of the terminal before the terminal enters the high-performance mode; or, if the operation mode of the terminal is the high-performance mode, and in response to a closing operation on a target application program, switch the operation mode of the terminal to the historical mode.
[0029] In some embodiments, the apparatus further includes:
[0030] The detection module is configured to, if the operation mode of the terminal is the high-performance mode, detect a temperature of the terminal in real time.
[0031] The mode switching module is further configured to, if the temperature of the terminal is higher than a first temperature threshold, switch the operation mode of the terminal to a historical mode, the historical mode being an operation mode of the terminal before the terminal enters the high-performance mode.
[0032] The mode switching module is further configured to switch the operating mode of the terminal to the high-performance mode when the temperature of the terminal is lower than a second temperature threshold.
[0033] According to another aspect of an embodiment of the present application, a terminal is provided, comprising a processor and a memory; the memory stores at least one program code, and the at least one program code is used to be executed by the processor to implement the detection method of the heat dissipation device as described in the above aspect.
[0034] According to another aspect of an embodiment of the present application, a chip is provided, which includes a programmable logic circuit and / or program instructions. When the chip runs on a terminal, it is used to implement the detection method of the heat dissipation device described in the above aspect.
[0035] According to another aspect of an embodiment of the present application, a computer-readable storage medium is provided, wherein the storage medium stores at least one program code, and the at least one program code is used to be executed by a processor to implement the detection method of the heat dissipation device as described in the above aspect.
[0036] According to another aspect of an embodiment of the present application, a computer program product is provided. The computer program product stores at least one program code, and the at least one program code is used to be executed by a processor to implement the detection method of the heat dissipation device described in the above aspect.
[0037] An embodiment of the present application provides a detection solution for a heat dissipation device. Since the rotation of the fan of the heat dissipation device will cause the terminal to vibrate regularly when the terminal is wearing an external heat dissipation device, which in turn causes the acceleration data of the terminal to change regularly. Therefore, by collecting the acceleration data of the terminal and analyzing the frequency of change of the acceleration data, the vibration frequency and vibration amplitude of the terminal can be determined more accurately. In the case where the vibration frequency and vibration amplitude are both within the preset range for a large number of times, it indicates that the vibration of the terminal is caused by the rotation of the fan of the heat dissipation device, and therefore it is determined that the terminal is currently wearing a heat dissipation device. Compared to detecting heat dissipation devices by identifying Bluetooth devices, the above detection method is compatible with multiple types of heat dissipation devices and does not require manual operation by the user, thereby improving the efficiency and compatibility of detecting heat dissipation devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0039] Figure 1is a schematic diagram of an implementation environment provided by an embodiment of the present application.
[0040] Figure 2 is a flowchart of a detection method of a heat dissipation device provided by an embodiment of the present application.
[0041] Figure 3 is a flowchart of another detection method of a heat dissipation device provided by an embodiment of the present application.
[0042] Figure 4 is a flowchart of a switching mode of operation provided by an embodiment of the present application.
[0043] Figure 5 is a structural schematic diagram of a detection device of a heat dissipation device provided by an embodiment of the present application.
[0044] Figure 6 is another structural schematic diagram of a detection device of a heat dissipation device provided by an embodiment of the present application.
[0045] Figure 7 is a structural block diagram of a terminal provided by an embodiment of the present application. DETAILED DESCRIPTION
[0046] To make the purpose, technical solutions and advantages of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the drawings.
[0047] In this document, "at least one" refers to one or more, and "multiple" refers to two or more. The association relationship of "and / or" describing the associated objects means that there can be three relationships, for example, A and / or B can represent the three cases of A alone, A and B together, and B alone. The character " / " generally represents an "or" relationship between the associated objects before and after it.
[0048] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data for analysis, stored data, displayed data, etc.) and signals involved in the present application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of related data need to comply with relevant laws, regulations and standards of relevant countries and regions. For example, the acceleration data, running strategy and running parameters involved in the present application are obtained under sufficient authorization.
[0049] Figure 1 is a schematic diagram of an implementation environment provided by an embodiment of the present application. Referring to Figure 1 , the implementation environment includes a terminal 101 and a server 102. The terminal 101 and the server 102 are directly or indirectly connected through wired or wireless communication.
[0050] In some embodiments, the terminal 101 can be a smart phone, a notebook computer, a tablet computer, or the like. The terminal 101 is installed or runs a target application. The target application can be any type of application, such as a game application, a video application, a scene editing application, or the like. During the running of the target application by the terminal 101, the target application consumes a large amount of processor resources, such as CPU (Central Processing Unit) resources, GPU (Graphics Processing Unit) resources, and the like, resulting in a high power consumption of the terminal 101, and the terminal 101 is prone to heat and burn.
[0051] In order to avoid the temperature of the terminal 101 being too high, the user can wear an external heat dissipation device, such as a heat dissipation back clip, a heat dissipation base, or the like, for the terminal, to reduce the temperature of the terminal 101 through the heat dissipation device. In the case where the terminal 101 is worn with the heat dissipation device, the terminal 101 can appropriately improve the performance, such as increasing the maximum frequency of the processor, increasing the display resolution of the screen, increasing the display frame rate of the screen, and the like, so as to provide a more smooth user experience for the user while avoiding the occurrence of the situation that the temperature of the terminal 101 is too high. Therefore, during the running of the target application by the terminal 101, the terminal 101 can first detect whether the external heat dissipation device is currently worn. In the case where it is detected that the terminal 101 is worn with the external heat dissipation device, the terminal 101 can appropriately improve the performance, or enter a high performance mode. The target application is associated with the server 102, and the server 102 provides a background service.
[0052] In some embodiments, the server 102 is a standalone physical server, or can be a server cluster or a distributed system composed of multiple physical servers, or can be a cloud server providing basic cloud computing services such as cloud service, cloud database, cloud computing, cloud function, cloud storage, network service, cloud communication, middleware service, domain name service, security service, CDN (Content Delivery Network), and big data and artificial intelligence platform.
[0053] In some embodiments, the server 102 undertakes the main computing work, and the terminal 101 undertakes the secondary computing work; or the server 102 undertakes the secondary computing work, and the terminal 101 undertakes the main computing work; or the server 102 and the terminal 101 cooperatively compute in a distributed computing architecture.
[0054] Figure 2 is a flowchart of a detection method of a heat dissipation device provided by an embodiment of the present application. The method is executed by a terminal, and the method comprises the following steps. Figure 2
[0055] 201、collecting acceleration data of the terminal.
[0056] In the embodiments of the present application, the terminal can be a mobile terminal such as a smart phone, a tablet computer or a notebook computer. The terminal is installed or runs a target application. The target application can be any type of application, such as a game application, a video application, a scene editing application, etc. In order to ensure that the target application can run normally, the terminal usually needs to consume a large amount of processor resources to process the data of the target application. Therefore, during the process of running the target application, the power consumption of the terminal is usually high, and the terminal is more likely to have phenomena such as heating, overheating, and frame freezing.
[0057] The higher the performance of the terminal is, the higher the power consumption of the terminal is, and the higher the temperature of the terminal is. Therefore, in the case that the terminal has phenomena such as heating and overheating, it is usually difficult to further improve the performance of the terminal, and it is also difficult to provide better user experience for users. However, in the case that the temperature of the terminal is low, the terminal can appropriately improve the performance without worrying about the temperature of the terminal being too high. For example, in the case that the terminal is worn with an external cooling device, the cooling device can generate air flow by the operation of the fan to accelerate the heat exchange between the surface of the terminal and the air, so as to take away the heat on the surface of the terminal and achieve the purpose of cooling. Therefore, the terminal can detect whether the cooling device is currently worn, and then determine whether the performance can be further improved according to the detection result.
[0058] Since the rotation of the fan of the cooling device will cause regular vibration of the terminal, the terminal generates acceleration data. Therefore, the terminal collects the acceleration data of the terminal through the built-in acceleration sensor, so as to determine whether the vibration of the terminal is caused by the rotation of the fan, and then determine whether the terminal is worn with an external cooling device. The acceleration data includes a plurality of acceleration values. The size of the acceleration value can reflect the degree of change in vibration speed during vibration.
[0059] 202, based on the acceleration data, determine the vibration frequency and the vibration amplitude of the terminal, and the vibration frequency is the change frequency of the acceleration data.
[0060] In the embodiment of the present application, after the terminal collects multiple pieces of acceleration data, the terminal determines the relationship between the acceleration values and time according to the acceleration values included in the multiple pieces of acceleration data, and then determines the change frequency of the acceleration data according to the relationship. Since the vibration speed of the terminal also changes regularly in the process of regular vibration of the terminal, the change frequency of the acceleration data, i.e., the frequency of regular change of the vibration speed of the terminal, can reflect the vibration frequency of the terminal, and then the terminal can represent the vibration frequency of the terminal by the change frequency of the acceleration data. In addition, the terminal can derive the vibration amplitude of the terminal according to the relationship among the vibration frequency, the acceleration, and the vibration amplitude. The relationship among the vibration frequency, the acceleration, and the vibration amplitude is that, in the case of a certain acceleration of an object, the higher the vibration frequency of the object, the smaller the vibration amplitude of the object. In other words, in the case of a certain acceleration of an object, the vibration amplitude of the object is negatively correlated with the vibration frequency of the object.
[0061] 203、In the case where the number of occurrences of the target event in the first time period reaches a first threshold value, it is determined that the terminal has worn the external heat dissipation device, and the target event is that the vibration frequency and the vibration amplitude are both within corresponding preset ranges.
[0062] In the embodiment of the present application, the terminal determines whether the vibration frequency and the vibration amplitude are within corresponding preset ranges. In the case where the vibration frequency and the vibration amplitude are both within corresponding preset ranges, it is indicated that the vibration of the terminal is probably caused by the rotation of the fan of the heat dissipation device. For the convenience of description, the case where the vibration frequency and the vibration amplitude are both within corresponding preset ranges is referred to as a target event.
[0063] The terminal determines the number of occurrences of the target event in the first time period. In the case where the number of occurrences of the target event in the first time period reaches a first threshold value, it is indicated that the consistency between the vibration frequency and the vibration amplitude of the terminal in the first time period and the vibration frequency and the vibration amplitude when wearing the heat dissipation device is relatively high, and the possibility that the vibration of the terminal is caused by the rotation of the fan of the heat dissipation device is relatively high. Therefore, it is determined that the external heat dissipation device is currently worn, and the terminal can further improve the performance. The length of the first time period can be a preset length, such as 5 seconds, 10 seconds, or 15 seconds, and the embodiment of the present application does not limit this. The first threshold value can be a preset value, such as 10, 20, or 30, and the embodiment of the present application does not limit this.
[0064] The embodiment of the present application provides a detection method of a heat dissipation device. Since rotation of a fan of the heat dissipation device causes regular vibration of a terminal in the process that the terminal wears the external heat dissipation device, and further causes regular change of acceleration data of the terminal. Therefore, by collecting the acceleration data of the terminal and analyzing the change frequency of the acceleration data, the vibration frequency and the vibration amplitude of the terminal can be determined more accurately. In the case that the vibration frequency and the vibration amplitude are in the preset range for more times, it is indicated that the vibration of the terminal is caused by the rotation of the fan of the heat dissipation device, and therefore it is determined that the terminal currently wears the heat dissipation device. Compared with the detection of the heat dissipation device by identifying the Bluetooth device, the above detection method can be compatible with multiple types of heat dissipation devices, and does not need manual operation of the user, thereby improving the efficiency and compatibility of the detection of the heat dissipation device.
[0065] Figure 3 is a flowchart of another detection method of a heat dissipation device provided by the embodiment of the present application. The method is executed by a terminal, and the method comprises the following steps of Figure 3
[0066] 301, collecting acceleration data of the terminal.
[0067] In the embodiment of the present application, the terminal can be a mobile device such as a smart phone, a tablet computer, a notebook computer and the like. The terminal is installed or runs a target application program. The target application program is an arbitrary type of application program, such as a game application program, a video editing application program, a 3D rendering application program and the like. Since the target application program usually needs to consume a large amount of processor resources such as CPU (Central Processing Unit, central processor) resources, GPU (Graphics Processing Unit, graphics processor) resources and the like when running, the resource utilization rate of the processor of the terminal is high, and the power consumption of the terminal is also high, so that the terminal is prone to phenomena such as heating, overheating, frame freezing and the like.
[0068] Since the higher the performance of the terminal is, the higher the power consumption of the terminal is, the temperature of the terminal will also be increased. Therefore, in the case that the terminal has phenomena such as heating, overheating, frame freezing and the like, the terminal cannot further improve the performance. In the case that the terminal runs the target application program, the user can wear an external heat dissipation device such as a heat dissipation back clip, a heat dissipation base and the like for the terminal, so as to assist in reducing the temperature of the terminal through the heat dissipation device. In the case that the terminal wears the external heat dissipation device, the terminal can appropriately improve the performance, for example, improve the maximum frequency of the processor, the display resolution, the display frame rate and the like, thereby providing a more smooth use experience for the user.
[0069] The heat dissipation device usually has a fan. The heat dissipation device generates air flow through rotation of the fan to accelerate heat exchange between the terminal surface and the air through the air flow, accelerate heat away from the terminal surface, thereby assisting in reducing the temperature of the terminal to achieve the purpose of heat dissipation.
[0070] In the case where the terminal wears the heat dissipation device, rotation of the fan of the heat dissipation device causes regular vibration of the terminal, thereby causing the terminal to generate acceleration data. The acceleration data usually includes acceleration values in multiple directions. The magnitude of the acceleration value can reflect the speed at which the vibration speed of the terminal in the corresponding direction changes during the vibration process. For example, for any direction, the greater the acceleration value in the direction, the faster the vibration speed of the terminal in the direction changes; the smaller the acceleration value in the direction, the slower the vibration speed of the terminal in the direction changes.
[0071] Therefore, the terminal can collect acceleration data through the built-in acceleration sensor to determine whether the vibration of the terminal is caused by rotation of the fan, and further determine whether the terminal wears the external heat dissipation device. Optionally, the terminal is built-in with a three-axis acceleration sensor. The terminal can collect acceleration values of the terminal in X-axis, Y-axis and Z-axis directions through the three-axis acceleration sensor. The acceleration values in the above three directions are the acceleration data of the terminal. Taking the terminal as a smart phone as an example. The Z-axis is a coordinate axis parallel to the long side of the smart phone. The Y-axis is a coordinate axis parallel to the short side of the smart phone. The X-axis is a coordinate axis perpendicular to the plane where the Y-axis and the Z-axis are located.
[0072] In some embodiments, the terminal can collect acceleration data at any time. For example, in response to a user's starting operation on a target application program, the terminal collects acceleration data. Alternatively, in the case where the display frame rate of the terminal is lower than a frame rate threshold, the terminal collects acceleration data. Alternatively, in the case where the resource utilization rate of the processor of the terminal is higher than a utilization rate threshold, the terminal collects acceleration data. The frame rate threshold can be a preset frame rate, such as 50 FPS (Frame Per Second), 40 FPS or 30 FPS. The utilization rate threshold can be a preset percentage value, such as 60%, 70% or 80%. The embodiments of the present application do not limit the specific frame rate threshold and utilization rate threshold.
[0073] By collecting acceleration data after starting the target application program, whether the terminal is worn with the heat dissipation device can be determined according to the acceleration data, the timeliness of detecting the heat dissipation device is improved, and in the case that the terminal is worn with the heat dissipation device, the terminal can timely improve the performance after starting the target application program, so as to further improve the user experience. In addition, compared with detecting the heat dissipation device after starting the target application program, detecting the heat dissipation device only when the display frame rate of the terminal is reduced to a certain threshold or the resource utilization rate reaches a certain threshold, not only can the performance of the terminal be improved in time when the performance of the terminal is poor, but also the time for the terminal to run at high performance can be reduced, thereby reducing the power consumption of the terminal.
[0074] It should be noted that in the case of reaching the collection opportunity, the terminal can collect acceleration data in real time or periodically. Among them, the terminal can configure the collection frequency of the acceleration sensor to configure the period of collecting acceleration data by the terminal. For example, in the case that the collection frequency of the acceleration sensor is 5HZ (Hertz), the terminal collects 5 times of acceleration data in 1 second through the acceleration sensor, that is, collects acceleration data every 0.2 seconds.
[0075] 302, based on the acceleration data, determine the vibration frequency and the vibration amplitude of the terminal, the vibration frequency is the change frequency of the acceleration data.
[0076] In the embodiment of the present application, in the process of regular vibration of the terminal, the vibration speed of the terminal also changes regularly. Therefore, the terminal can determine the vibration frequency of the terminal by analyzing the change frequency of the acceleration data, that is, the frequency of the regular change of the vibration speed of the terminal. Alternatively, the terminal determines the change frequency of the acceleration data by performing frequency spectrum analysis on the acceleration data. After the terminal collects a plurality of acceleration data, the terminal determines the relationship between the acceleration value and the time according to the plurality of acceleration values included in the acceleration data, which can reflect the change frequency of the acceleration data. Then, the terminal deduces the vibration amplitude of the terminal according to the relationship among the vibration frequency, the acceleration and the vibration amplitude. Among them, the relationship among the vibration frequency, the acceleration and the vibration amplitude is: in the case that the acceleration of an object is constant, the higher the vibration frequency of the object, the smaller the vibration amplitude of the object. In other words, in the case that the acceleration of an object is constant, the vibration amplitude of the object is negatively correlated with the vibration frequency of the object.
[0077] In some embodiments, the terminal determines the frequency of change of the acceleration data by performing spectral analysis on the acceleration data. The terminal obtains a plurality of pieces of acceleration data collected in a unit time. The unit time can be a preset time interval, such as 1 second, 2 seconds, or 5 seconds, and the present embodiments do not limit this. Then, the terminal performs spectral analysis on the plurality of pieces of acceleration data collected in the unit time to obtain the frequency of change of the acceleration data. The spectral analysis is used to determine the relationship between the amplitude and the frequency of the acceleration data. Alternatively, the terminal can first convert the relationship between the acceleration data and time in the time domain to the frequency domain to obtain the relationship between the amplitude and the frequency of the acceleration data, that is, the spectrum of the acceleration data. Then, the terminal performs spectral analysis on the spectrum of the acceleration data to obtain the frequency of change of the acceleration data. For example, the frequency of change of the acceleration data is the frequency corresponding to the maximum amplitude in the spectrum. Alternatively, the frequency of change of the acceleration data is the average of the frequencies corresponding to the plurality of amplitudes in the spectrum. Then, the terminal determines the vibration amplitude of the terminal according to the acceleration threshold and the vibration frequency. The acceleration threshold is the maximum acceleration value of the object at a plurality of vibration frequencies. The acceleration threshold can be a value obtained empirically. The acceleration threshold is generally 20g (acceleration of gravity). The maximum acceleration of the object at any vibration frequency does not exceed 20g. In the case where the acceleration threshold is fixed, the vibration amplitude of the terminal is inversely related to the vibration frequency. By performing spectral analysis on the acceleration data collected in the unit time, the frequency of change of the acceleration data in the unit time, that is, the vibration frequency of the terminal in the unit time, can be determined more accurately and intuitively. By determining the relationship between the acceleration threshold, the vibration frequency of the object, and the vibration amplitude of the object, the vibration amplitude of the terminal in the unit time can be calculated more quickly and accurately.
[0078] In some embodiments, the acceleration data includes acceleration values of the terminal in the X-axis, Y-axis, and Z-axis directions. The terminal can first normalize the acceleration values in the plurality of directions and then perform spectral analysis according to the normalized acceleration values. For any acceleration data collected in the unit time, the terminal normalizes the plurality of acceleration values included in the acceleration data to obtain the normalized value of the acceleration data. Then, the terminal performs spectral analysis on the normalized values of the plurality of pieces of acceleration data to obtain the vibration frequency of the terminal. The terminal converts the relationship between the normalized values of the acceleration data and time in the time domain to the frequency domain according to the collection time of the acceleration data to obtain the spectrum of the acceleration data. Then, the terminal performs spectral analysis on the spectrum of the acceleration data to obtain the frequency of change of the acceleration data. By first normalizing the acceleration data, the normalized acceleration values can reflect the vibration characteristics of the terminal in the three directions, so that the vibration frequency of the terminal can be determined more accurately and reasonably according to the normalized acceleration values.
[0079] For example, the terminal acquires 10 acceleration data points collected within 1 second. Each acceleration data point includes 3 acceleration values, namely, the acceleration values of the terminal in the X-axis, Y-axis, and Z-axis directions. For any acceleration data point, the terminal normalizes the 3 acceleration values included in the acceleration data point using the following formula (1) to obtain the normalized value of the acceleration data point.
[0080]
[0081] Where x, y, and z are the three acceleration values included in the acceleration data. x is the acceleration value of the terminal along the X-axis. y is the acceleration value of the terminal along the Y-axis. z is the acceleration value of the terminal along the Z-axis. a is the normalized value of the acceleration data.
[0082] Then, based on the acceleration data acquisition time, the terminal converts the time-varying relationship of the normalized acceleration data in the time domain to the frequency domain, obtaining the acceleration data spectrum. The terminal analyzes the acceleration data spectrum to obtain the terminal's vibration frequency per unit time. The terminal then calculates the terminal's vibration amplitude using the following formula (2), using an acceleration threshold of 20g.
[0083]
[0084] Where A is the acceleration threshold. f is the vibration frequency of the terminal. The unit of f is Hz. D is the vibration amplitude of the terminal. The unit of D is mm (millimeter). For example, if the acceleration threshold is 20g and the vibration frequency of the terminal per unit time is 100 Hz, the maximum vibration amplitude of the terminal per unit time is 20 / (0.002*100*100) = 1mm. Therefore, the theoretical vibration amplitude of the terminal per unit time can be considered to be 1mm.
[0085] 303. When the number of occurrences of the target event in the first time period does not reach the first threshold, determine the number of occurrences of the target event in the second time period, where the target event is a vibration frequency and a vibration amplitude both within corresponding preset ranges, and the second time period is a time period after the first time period.
[0086] In this embodiment of the present application, after determining the vibration frequency and vibration amplitude based on multiple acceleration data collected per unit time, the terminal then determines whether the vibration frequency and vibration amplitude are within corresponding preset ranges. If both the vibration frequency and vibration amplitude are within the corresponding preset ranges, it indicates that the vibration of the terminal may be caused by the rotation of the fan of the heat dissipation device.
[0087] In some embodiments, the preset range corresponding to the vibration frequency and the preset range corresponding to the vibration amplitude are obtained by mathematical modeling on a large amount of sample data. The vibration frequency and the vibration amplitude of the terminal wearing the heat dissipation device are collected to obtain a large amount of sample data. Then, a mathematical model is established and trained according to the large amount of sample data, and the preset range corresponding to the vibration frequency and the preset range corresponding to the vibration amplitude are obtained. The above preset range is the normal range of the vibration frequency or the vibration amplitude of the terminal wearing the heat dissipation device.
[0088] For ease of description, the case that the vibration frequency and the vibration amplitude are both in the corresponding preset range is referred to as a target event. In the process of detecting the heat dissipation device, the terminal can determine the number of occurrences of the target event in a period of time, that is, determine the number of occurrences of the case that the vibration frequency and the vibration amplitude of the terminal are both in the corresponding preset range in a period of time. For example, the terminal determines the number of occurrences of the target event in a first time period. The length of the first time period can be a preset length, such as 5 seconds, 10 seconds, or 15 seconds, and the embodiments of the present application do not limit this. In the case that the number of occurrences of the target event in the first time period does not reach a first threshold, it indicates that in the first time period, the consistency of the vibration frequency and the vibration amplitude of the terminal with the vibration frequency and the vibration amplitude when wearing the heat dissipation device is low, and the possibility that the vibration of the terminal is caused by the rotation of the fan of the heat dissipation device is low. The first threshold can be a preset value, such as 20, 30, or 40, and the embodiments of the present application do not limit this.
[0089] In order to further determine whether the terminal wears the heat dissipation device, the terminal continues to determine the number of occurrences of the target event in a second time period. The second time period is a time period located after the first time period. The second time period can be adjacent to the first time period, or can not be adjacent to the first time period. The length of the second time period can be the same as the length of the first time period, or can be different. The embodiments of the present application do not limit this. For example, the first threshold is 10, the length of the first time period is 10 seconds, and the length of the second time period is 20 seconds. In the case that the terminal determines that the number of occurrences of the target event in the first time period is 5, the terminal continues to determine the number of occurrences of the target event in the subsequent 20 seconds.
[0090] 304、In the case that the number of occurrences of the target event in the second time period does not reach a second threshold, it is determined that the terminal does not wear an external heat dissipation device.
[0091] In the embodiment of the present application, if the number of occurrences of the target event in the second time period does not reach the second threshold value, it indicates that the vibration frequency and the vibration amplitude of the terminal do not conform to the vibration frequency and the vibration amplitude when the terminal wears the heat dissipation device for a long time, and thus it can be determined that the terminal currently does not wear the external heat dissipation device. The second threshold value can also be a preset value, such as 1, 5, or 10, and the embodiment of the present application does not limit this.
[0092] By continuing to determine the number of occurrences of the target event in the subsequent time period when the number of occurrences of the target event in the first time period is small, and determining whether the terminal wears the heat dissipation device according to the subsequently determined number of occurrences, the accuracy of detecting the heat dissipation device can be improved to a certain extent.
[0093] 305、In the embodiment of the present application, if the number of occurrences of the target event in the first time period reaches the first threshold value, it indicates that the vibration frequency and the vibration amplitude of the terminal in the first time period are highly consistent with the vibration frequency and the vibration amplitude when the terminal wears the heat dissipation device, and the vibration of the terminal is more likely to be caused by the rotation of the fan of the heat dissipation device. Therefore, it can be determined that the terminal has worn the external heat dissipation device.
[0094] In the embodiment of the present application, if the number of occurrences of the target event in the first time period reaches the first threshold value, it indicates that the vibration frequency and the vibration amplitude of the terminal in the first time period are highly consistent with the vibration frequency and the vibration amplitude when the terminal wears the heat dissipation device, and the vibration of the terminal is more likely to be caused by the rotation of the fan of the heat dissipation device. Therefore, it can be determined that the terminal has worn the external heat dissipation device.
[0095] The above steps 301-305 introduce the process of detecting whether the terminal wears the heat dissipation device. Through experiments, it is verified that by using the above detection method, the detection result can be obtained within 5 seconds, and most types of heat dissipation devices can be accurately detected, with an accuracy of more than 95%. In addition, the power consumption of the above detection method is low, which is only 1 / 200 of the power consumption consumed by the terminal for playing a game.
[0096] In the case that the terminal determines that it currently wears the heat dissipation device by using the above detection method, the terminal can appropriately improve the performance. The process of improving the performance of the terminal is described below by the following step 306.
[0097] 306、In the case that the terminal has worn the external heat dissipation device, if the working mode of the terminal is not the high-performance mode, the working mode of the terminal is switched to the high-performance mode.
[0098] In the embodiment of the present application, in the case that it is determined that the terminal wears the heat dissipation device, the terminal determines the current working mode to determine whether to improve the performance according to the current working mode. The working mode of the terminal includes a high-performance mode and a non-high-performance mode.
[0099] Optionally, the non-high-performance mode includes a default mode, a focus mode, and a do-not-disturb mode.
[0100] The default mode is the working mode of the terminal when the user uses the terminal for the first time. In the case that the terminal is in the default mode, the user can make and receive calls, send and receive messages, use application programs, and the like through the terminal. In the case that the terminal is in the focus mode, the user cannot use some application programs installed on the terminal. In the case that the terminal is in the do-not-disturb mode, the terminal will be automatically muted, and notification messages, incoming call reminders, and the like will not be displayed, so as to avoid disturbing the user. In the case that the terminal is in the high-performance mode, a plurality of performance parameters of the terminal are higher than the performance parameters of the terminal in other working modes, so that the performance of the terminal can be brought to the extreme, thereby providing a better user experience. For example, in other working modes, the maximum frequency of the processor of the terminal is limited to 80% of the frequency of the processor, that is, the processor can only exert 80% of its computing power. In the high-performance mode, the maximum frequency of the processor is increased. For example, the limit of the maximum frequency is removed in the high-performance mode, so that the processor can exert 100% of its computing power. Alternatively, in other working modes, the display frame rate of the terminal is 60 FPS, and in the high-performance mode, the display frame rate of the terminal is 120 FPS. Alternatively, in other working modes, the display resolution of the terminal is 1920*1080, that is, 1080P, and in the high-performance mode, the display resolution of the terminal is 2560*1440, that is, 2K.
[0101] In the case that the terminal has worn the external heat dissipation device, if the working mode of the terminal is already the high-performance mode, the terminal does not need to further increase the performance. If the working mode of the terminal is not the high-performance mode, the terminal acquires at least one of the running strategy and the running parameter associated with the high-performance mode. Then, the terminal is run according to at least one of the running strategy and the running parameter associated with the high-performance mode, so as to switch the working mode of the terminal to the high-performance mode.
[0102] Optionally, for the running strategy and the running parameter associated with the high-performance mode, the terminal can acquire them from the server, can acquire them from the terminal itself, and can acquire them from other terminals, and the specific manner in which the terminal acquires the running strategy and the running parameter is not limited in the embodiments of the present application.
[0103] In some embodiments, the running parameter includes at least one of the maximum frequency of the processor, the display resolution, and the display frame rate. For example, the running parameter associated with the high-performance mode is that the maximum frequency of the processor is 100% of the frequency of the processor, the display resolution is 2560*1440, and the display frame rate is 120 FPS. The running strategy includes at least one of a background cleaning strategy, a message notification strategy, and a network connection strategy.
[0104] The background cleaning strategy is used to indicate a strategy of cleaning background processes. The background cleaning strategy associated with the high-performance mode can be: cleaning background processes with a priority lower than a first priority. The background cleaning strategy associated with other working modes can be: not cleaning background processes, or cleaning background processes with a priority lower than a second priority. The first priority is greater than the second priority. In other words, when the terminal is in the high-performance mode, the terminal will increase the intensity of cleaning background processes to increase the running memory of the terminal.
[0105] The message notification strategy is used to indicate a strategy of displaying a notification message by the terminal. The message notification strategy associated with the high-performance mode can be: not displaying the notification message, or displaying the notification message in a first display area. The message notification strategy associated with other working modes can be: displaying the notification message in a second display area. The area of the second display area is greater than the area of the first display area. In other words, when the terminal is in the high-performance mode, the terminal will try to reduce the user's perception of the notification message to avoid disturbing the user.
[0106] The network connection strategy is used to indicate a strategy of connecting a network by the terminal. The network connection strategy associated with the high-performance mode can be: when there are multiple connectable networks, preferentially connecting a network with the best network quality. When the network quality of the currently connected network is poor, automatically connecting other connectable networks with better network quality. The network connection strategy associated with other working modes can be: not automatically switching the connected network. In other words, when the terminal is in the high-performance mode, the terminal will try to connect a network with better network quality to provide a better online experience for the user.
[0107] In some embodiments, when the running parameter includes a display frame rate, the terminal can increase the display frame rate of the terminal in the high-performance mode by means of frame insertion. When the display frame rate included in the running parameter is higher than the current display frame rate of the terminal, the terminal displays multiple target pictures by inserting frames according to the display frame rate included in the running parameter, so that the display frame rate of the terminal reaches the display frame rate included in the running parameter. By means of frame insertion to improve the display frame rate, the picture details can be enriched, and the picture fluency can be improved, so that the user obtains a more smooth and natural viewing experience.
[0108] For example, in the process of running a target application program by the terminal, the terminal inserts frames according to the display frame rate included in the running parameter to obtain multiple target pictures from multiple original pictures of the target application program. The number of target pictures is greater than the number of original pictures. In the process of running the target application program, the terminal displays the multiple target pictures. The display time length of the multiple target pictures is the same as the display time length of the multiple original pictures, so that the display frame rate of the terminal reaches the display frame rate indicated by the running parameter.
[0109] In some embodiments, the terminal can also interpolate the original pictures and display the interpolated pictures in the process of displaying the original pictures frame by frame. For example, the display frame rate indicated by the running parameter is 120 FPS, and the current display frame rate of the terminal is 60 FPS. In the process of displaying the original pictures frame by frame, after displaying any frame of the original picture, the terminal displays 1 frame of the interpolated picture, so that the terminal changes from displaying 60 frames of the original picture per second to displaying 120 frames of the target picture per second. Among the 120 frames of the target picture, there are 60 frames of the original picture, and the other 60 frames are interpolated pictures.
[0110] Optionally, the terminal can interpolate the plurality of original pictures by an interpolation algorithm. The interpolation algorithm includes an optical flow estimation-based interpolation algorithm and a deep learning-based interpolation algorithm. The optical flow estimation-based interpolation algorithm is a pixel motion-based interpolation algorithm. This algorithm estimates the position of a pixel point in the next frame by analyzing the pixel changes between adjacent frames, thereby generating an interpolated frame. Common optical flow estimation-based interpolation algorithms include L-K optical flow method, HS optical flow method, RIFE (Real-Time Intermediate Flow Estimation) and the like. The deep learning-based interpolation algorithm refers to using a deep learning model such as a convolutional neural network (CNN) to extract spatiotemporal features in image frames and predict relatively realistic interpolated frames. In the embodiments of the present application, the terminal can implement the above interpolation process by any interpolation algorithm.
[0111] The above step 306 mainly introduces the process of entering the high-performance mode by the terminal when the heat dissipation device is worn. In order to more clearly illustrate the above process, the target application program is taken as a game application program, and the high-performance mode is taken as a game mode as an example, and the above process is illustrated in combination with the flow chart of switching the working mode shown in FIG. 6. Figure 4 Figure 4 As shown, the terminal includes a heat dissipation device detection module, a common optimization service for applications (COSA), and a game performance adjustment service (GPA). The heat dissipation device detection module includes an acceleration sensor, and is configured to collect acceleration data of the terminal by the acceleration sensor, detect a target event according to the acceleration data, and report to the COSA if the target event is detected. The COSA is configured to determine whether the terminal is worn with a heat dissipation device according to a number of times of reporting of the heat dissipation device detection module. The COSA is further configured to read configuration parameters of a high-performance mode from a server and issue an instruction to enter the high-performance mode to the GPA if it is determined that the terminal is worn with the heat dissipation device. The GPA is configured to control the terminal to perform the high-performance mode according to the configuration parameters of the high-performance mode if the instruction issued by the COSA is received.
[0112] For example, the terminal collects acceleration data by the heat dissipation device detection module, and determines a vibration frequency and a vibration amplitude of the terminal according to the collected acceleration data. Then, the heat dissipation device detection module determines whether the vibration frequency and the vibration amplitude are within corresponding preset ranges. If both the vibration frequency and the vibration amplitude are within the corresponding preset ranges, the heat dissipation device detection module detects a target event, and the heat dissipation device detection module reports to the COSA once. The COSA determines a number of times of reporting of the heat dissipation device detection module in a period of time. If the number of times of reporting of the heat dissipation device detection module in a first period of time reaches a first threshold, it indicates that the terminal is worn with the heat dissipation device, and the COSA reads configuration parameters of the high-performance mode from the server. Optionally, a technician can also update the configuration parameters of the high-performance mode stored on the server side regularly. The configuration parameters include running strategies and running parameters associated with the high-performance mode. Then, the COSA issues an instruction to the GPA to instruct the GPA to update the running strategies and the running parameters of the terminal according to the configuration parameters, so as to switch the working mode of the terminal to the high-performance mode, that is, to control the terminal to enter the game mode, thereby ensuring that the user obtains an extreme game experience.
[0113] In some embodiments, when the terminal is in the high-performance mode, the terminal can also automatically exit or re-enter the high-performance mode according to the change of the temperature of the terminal. When the working mode of the terminal is the high-performance mode, the terminal detects the temperature of the terminal in real time. When the temperature of the terminal is higher than a first temperature threshold, the terminal switches the working mode back to the historical mode to appropriately reduce the temperature of the terminal and avoid damage to components of the terminal. The historical mode is the working mode before the terminal enters the high-performance mode. After the terminal exits the high-performance mode, the terminal can still detect the temperature of the terminal in real time, so as to timely switch the working mode of the terminal back to the high-performance mode when the temperature of the terminal is lower than a second temperature threshold. The first temperature threshold is higher than the second temperature threshold. For example, the first temperature threshold is 45 degrees Celsius, and the second temperature threshold is 30 degrees Celsius. By timely exiting or re-entering the high-performance mode according to the change of the temperature of the terminal, not only can the temperature of the terminal in the high-performance mode be avoided, but also the performance of the terminal can be improved when the temperature of the terminal is low, so as to continue to provide an extreme use experience for the user.
[0114] 307、When the working mode of the terminal is the high-performance mode, in response to that the terminal is switched from wearing the external heat dissipation device to not wearing the external heat dissipation device, the working mode of the terminal is switched to the historical mode.
[0115] In the embodiments of the present application, when the terminal is in the high-performance mode and runs the target application, the terminal continuously detects the heat dissipation device. In response to that the terminal is switched from wearing the external heat dissipation device to not wearing the external heat dissipation device, it is indicated that the user has removed the external heat dissipation device. If the terminal still runs in the high-performance mode at this time, the temperature of the terminal can be greatly increased. Therefore, the terminal switches the working mode from the high-performance mode to the historical mode, so as to reduce the power consumption of the terminal and avoid the terminal from generating heat, overheating, freezing and the like.
[0116] 308、When the working mode of the terminal is the high-performance mode, in response to a closing operation on the target application, the working mode of the terminal is switched to the historical mode.
[0117] In the embodiments of the present application, when the terminal is in the high-performance mode and runs the target application, in response to a closing operation on the target application, the terminal switches the working mode from the high-performance mode to the historical mode. By automatically exiting the high-performance mode when the target application is closed, the terminal can be prevented from continuously running at a high performance, the power consumption of the terminal is reduced, and the endurance time of the terminal is improved.
[0118] In some embodiments, in response to a closing operation on the target application, the terminal can also stop detecting the heat dissipation device, that is, the terminal stops collecting acceleration data, so as to further save the power consumption of the terminal.
[0119] The embodiment of the present application provides a detection method of a heat dissipation device. Since rotation of a fan of the heat dissipation device causes regular vibration of a terminal in the process that the terminal wears the external heat dissipation device, and further causes regular change of acceleration data of the terminal. Therefore, the vibration frequency and the vibration amplitude of the terminal can be determined more accurately by collecting the acceleration data of the terminal and analyzing the change frequency of the acceleration data. In the case that the vibration frequency and the vibration amplitude are in the preset range for a large number of times, it is indicated that the vibration of the terminal is caused by the rotation of the fan of the heat dissipation device, and therefore it is determined that the terminal currently wears the heat dissipation device. Compared with the detection of the heat dissipation device by identifying the Bluetooth device, the above detection method can be compatible with multiple types of heat dissipation devices, and the heat dissipation device without the Bluetooth function can also be detected, and the user does not need to manually operate in the detection process, and the efficiency and the compatibility of the detection of the heat dissipation device are improved.
[0120] All the optional technical solutions can be combined to form optional embodiments of the present application, which will not be described here.
[0121] The following is an apparatus embodiment of the present application, which can be used to execute the method embodiments of the present application. For details not disclosed in the apparatus embodiments of the present application, please refer to the method embodiments of the present application.
[0122] Figure 5 is a structural schematic diagram of a detection device of a heat dissipation device provided by the embodiment of the present application. Referring to Figure 5 The device comprises an acquisition module 501, a first determination module 502 and a second determination module 503.
[0123] The acquisition module 501 is used for acquiring acceleration data of a terminal.
[0124] The first determination module 502 is used for determining vibration frequency and vibration amplitude of the terminal based on the acceleration data, and the vibration frequency is the change frequency of the acceleration data.
[0125] The second determination module 503 is used for determining that the terminal wears an external heat dissipation device in the case that the occurrence frequency of a target event in a first time period reaches a first threshold value, and the target event is that the vibration frequency and the vibration amplitude are in corresponding preset ranges.
[0126] In some embodiments, the acquisition module 501 is used for acquiring the acceleration data of the terminal in response to a starting operation of a target application program, or acquiring the acceleration data of the terminal in the case that the display frame rate of the terminal is lower than a frame rate threshold value, or acquiring the acceleration data of the terminal in the case that the resource utilization rate of a processor of the terminal is higher than a utilization rate threshold value.
[0127] In some embodiments, the vibration frequency of the terminal is represented by the change frequency of the acceleration data; Figure 6 is another structural schematic diagram of a detection device of a heat dissipation equipment provided by the embodiments of the present application, referring to Figure 6 , the first determination module 502 comprises:
[0128] The analysis unit 601 is configured to analyze the plurality of pieces of acceleration data collected in a unit of time to obtain the change frequency of the acceleration data.
[0129] The determination unit 602 is configured to determine the vibration amplitude of the terminal based on the acceleration threshold and the vibration frequency, the acceleration threshold being the maximum acceleration value under a plurality of vibration frequencies, and the vibration amplitude being positively correlated with the acceleration threshold.
[0130] In some embodiments, the acceleration data comprises acceleration values of the terminal in X-axis, Y-axis and Z-axis directions.
[0131] The analysis unit 601 is configured to normalize a plurality of acceleration values included in any acceleration data collected in a unit of time to obtain a normalized value of the acceleration data, and analyze the normalized values of the plurality of pieces of acceleration data to obtain the vibration frequency of the terminal.
[0132] In some embodiments, the device further comprises:
[0133] The third determination module 504 is configured to determine the number of occurrences of the target event in a second time period if the number of occurrences of the target event in the first time period does not reach the first threshold, the second time period being a time period after the first time period.
[0134] The second determination module 503 is further configured to determine that the terminal is not wearing the external heat dissipation equipment if the number of occurrences of the target event in the second time period does not reach the second threshold.
[0135] In some embodiments, the device further comprises:
[0136] The mode switching module 505 is configured to, if the working mode of the terminal is not the high-performance mode when the terminal is wearing the external heat dissipation equipment, run the terminal according to at least one of the running strategy and the running parameter associated with the high-performance mode to switch the working mode of the terminal to the high-performance mode, the working mode of the terminal comprising the high-performance mode and the non-high-performance mode.
[0137] In some embodiments, the running strategy comprises at least one of a background cleaning strategy, a message notification strategy and a network connection strategy, and the running parameter comprises at least one of the maximum frequency of the processor, the display resolution and the display frame rate.
[0138] In some embodiments, the running parameter comprises the display frame rate.
[0139] The mode switching module 505 is configured to, in a case where the display frame rate included in the running parameter is higher than the current display frame rate of the terminal, perform frame interpolation on the plurality of pictures displayed by the terminal based on the display frame rate included in the running parameter, so that the display frame rate of the terminal reaches the display frame rate included in the running parameter.
[0140] In some embodiments, the mode switching module 505 is further configured to, in a case where the working mode of the terminal is the high-performance mode, switch the working mode of the terminal to a historical mode in response to the terminal being switched from being worn with the external heat dissipation device to not being worn with the external heat dissipation device, the historical mode being a working mode of the terminal before the terminal enters the high-performance mode; or, in a case where the working mode of the terminal is the high-performance mode, switch the working mode of the terminal to the historical mode in response to a closing operation on the target application program.
[0141] In some embodiments, the apparatus further includes:
[0142] The detection module 506 is configured to, in a case where the working mode of the terminal is the high-performance mode, detect the temperature of the terminal in real time.
[0143] The mode switching module 505 is further configured to, in a case where the temperature of the terminal is higher than a first temperature threshold, switch the working mode of the terminal to a historical mode, the historical mode being a working mode of the terminal before the terminal enters the high-performance mode.
[0144] The mode switching module 505 is further configured to, in a case where the temperature of the terminal is lower than a second temperature threshold, switch the working mode of the terminal to the high-performance mode.
[0145] The detection apparatus of the heat dissipation device provided in the embodiments of the present application can accurately determine the vibration frequency and the vibration amplitude of the terminal by collecting the acceleration data of the terminal and analyzing the change frequency of the acceleration data. In a case where the vibration frequency and the vibration amplitude are within the preset range for a large number of times, it is determined that the vibration of the terminal is caused by the rotation of the fan of the heat dissipation device, and thus it is determined that the terminal is currently worn with the heat dissipation device. Compared with the detection of the heat dissipation device by identifying the Bluetooth device, the above detection apparatus can be compatible with multiple types of heat dissipation devices, and does not need manual operation of the user, thereby improving the detection efficiency and compatibility of the heat dissipation device.
[0146] It should be noted that the detection device of the heat dissipation equipment provided in the above embodiment, in realizing its function, is only exemplified by the above division of each functional module, and in the actual application program, the above functions can be completed by different functional modules according to the needs, that is, the internal structure of the terminal is divided into different functional modules to complete all or part of the functions described above. In addition, the detection device of the heat dissipation equipment and the detection method of the heat dissipation equipment provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0147] The embodiment of the present application provides a terminal, which comprises a processor and a memory; the memory stores at least one program code, and the at least one program code is used for being executed by the processor to realize the detection method of the heat dissipation equipment provided in each method embodiment.
[0148] Figure 7 is a structural block diagram of a terminal provided by an embodiment of the present application. In some embodiments, the terminal 700 is a terminal such as a smart phone, a tablet computer, a wearable device, etc. which can access a wireless local area network as a wireless station. The terminal 700 in the present application at least includes one or more of the following components: a processor 710, a memory 720, and at least two wireless links 730.
[0149] In some embodiments, the processor 710 includes one or more processing cores. The processor 710 uses various interfaces and lines to connect various parts of the entire terminal 700. By running or executing program code stored in the memory 720 and calling data stored in the memory 720, it performs various functions of the terminal 700 and processes data. In some embodiments, the processor 710 is implemented in the form of at least one hardware of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 710 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), a neural network processing unit (NPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display; the NPU is used to implement artificial intelligence (AI) functions; and the modem is used to handle wireless communication. It is understandable that the above-mentioned modem may not be integrated into the processor 710 but may be implemented by a separate chip.
[0150] In some embodiments, the processor 710 is used to control the operating status of at least two wireless links 730. Accordingly, the processor 710 is a processor integrated with a Wireless Fidelity (Wi-Fi) chip. The Wi-Fi chip is a chip with dual Wi-Fi processing capabilities. For example, the Wi-Fi chip is a dual-band dual concurrent (DBDC) chip or a dual-band simultaneous (DBS) chip.
[0151] In some embodiments, the memory 720 includes a Random Access Memory (RAM), and in some embodiments, the memory 720 includes a Read-Only Memory (ROM). In some embodiments, the memory 720 includes a non-transitory computer-readable storage medium. The memory 720 can be used to store program codes. The memory 720 can include a program storage area and a data storage area, where the program storage area can store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing each of the methods described below, etc., and the data storage area can store data created according to the use of the terminal 700 (such as audio data, a phone book, etc.).
[0152] In some embodiments, the memory 720 stores a receiving scheme of receiving beacon frames of different wireless links 730. In addition, the memory 720 stores an identity of an access node connected by the different wireless links 730, an identity of the wireless links 730, etc.
[0153] The at least two wireless links 730 are used to connect different access points (APs). The downlink data issued by the APs is received. The different access points are access points in the same router or access points in different routers.
[0154] In some embodiments, the terminal 700 further includes a display screen. The display screen is a display component for displaying a user interface. In some embodiments, the display screen is a display screen with a touch function, through which a user can perform a touch operation on the display screen using a finger, a stylus, or any suitable object. In some embodiments, the display screen is usually arranged on the front panel of the terminal 700. In some embodiments, the display screen is designed to be a full-screen, a curved screen, a special-shaped screen, a double-sided screen, or a folding screen. In some embodiments, the display screen is also designed to be a combination of a full-screen and a curved screen, a combination of a special-shaped screen and a curved screen, etc., and the embodiments are not limited in this regard.
[0155] In addition, those skilled in the art can understand that the structure of the terminal 700 shown in the above-described figures does not constitute a limitation on the terminal 700, and the terminal 700 includes more or fewer components than those shown in the figures, or some components are combined, or different components are arranged. For example, the terminal 700 further includes a microphone, a speaker, an input unit, a sensor, an audio circuit, a module, a power supply, a Bluetooth module, etc., which are not described herein.
[0156] The application further provides a computer readable storage medium, which stores at least one program code, the at least one program code is loaded and executed by the processor to realize the detection method of the heat dissipation device as shown in each of the above embodiments.
[0157] The application further provides a chip, which comprises programmable logic circuit and / or program instructions, and is used to realize the detection method of the heat dissipation device as shown in each of the above embodiments when the chip is running on a terminal.
[0158] The application further provides a computer program product, which stores at least one program code, the at least one program code is used to be executed by the processor to realize the detection method of the heat dissipation device as shown in each of the above embodiments.
[0159] The above application embodiment serial numbers are only for description, and do not represent the advantages and disadvantages of the embodiments.
[0160] Those skilled in the art can understand that all or part of the steps of the detection method of the heat dissipation device in the above embodiments can be completed by hardware, or by program to instruct relevant hardware to complete, and the program can be stored in a computer readable storage medium. The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk. The above is only an optional embodiment of the application, and does not limit the application. Any modification, equivalent replacement, improvement, etc. within the spirit and principle of the application shall be included in the protection scope of the application.
Claims
1. A method of detecting a heat dissipating device, characterized by, The method applied to a terminal comprises: collecting acceleration data of the terminal; determining a vibration frequency and a vibration amplitude of the terminal based on the acceleration data, the vibration frequency being a variation frequency of the acceleration data; in a case where a number of occurrences of a target event in a first time period reaches a first threshold value, determining that the terminal has worn an external heat dissipation device, the target event being that the vibration frequency and the vibration amplitude are both within corresponding preset ranges.
2. The method of claim 1, wherein, The collecting of the acceleration data of the terminal comprises: in response to a starting operation of a target application program, collecting the acceleration data of the terminal; or, in a case where a display frame rate of the terminal is lower than a frame rate threshold value, collecting the acceleration data of the terminal; or, in a case where a resource utilization rate of a processor of the terminal is higher than a utilization rate threshold value, collecting the acceleration data of the terminal.
3. The method of claim 1, wherein, The vibration frequency of the terminal is represented by the variation frequency of the acceleration data; The determining of the vibration frequency and the vibration amplitude of the terminal based on the acceleration data comprises: analyzing a plurality of pieces of acceleration data collected in a unit time to obtain the variation frequency of the acceleration data; determining the vibration amplitude of the terminal based on an acceleration threshold value and the vibration frequency, the acceleration threshold value being a maximum acceleration value under a plurality of vibration frequencies, the vibration amplitude being positively correlated with the acceleration threshold value.
4. The method of claim 3, wherein, The acceleration data comprises acceleration values of the terminal in X-axis, Y-axis and Z-axis directions; The analyzing of the plurality of pieces of acceleration data collected in the unit time to obtain the variation frequency of the acceleration data comprises: for any acceleration data collected in the unit time, normalizing a plurality of acceleration values included in the acceleration data to obtain a normalized value of the acceleration data; analyzing the normalized values of the plurality of pieces of acceleration data to obtain the vibration frequency of the terminal.
5. The method of claim 1, wherein, The method further comprises: in a case where the number of occurrences of the target event in the first time period does not reach the first threshold value, determining a number of occurrences of the target event in a second time period, the second time period being a time period located after the first time period; in a case where the number of occurrences of the target event in the second time period does not reach a second threshold value, determining that the terminal does not wear the external heat dissipation device.
6. The method of claim 1, wherein, The method further comprises: in a case where the terminal has worn the external heat dissipation device, if a working mode of the terminal is not a high-performance mode, running the terminal according to at least one of a running strategy and a running parameter associated with the high-performance mode to switch the working mode of the terminal to the high-performance mode, the working mode of the terminal comprising the high-performance mode and a non-high-performance mode.
7. The method of claim 6, wherein, The running strategy comprises at least one of a background cleaning strategy, a message notification strategy and a network connection strategy; the running parameter comprises at least one of a maximum main frequency of a processor, a display resolution and a display frame rate.
8. The method of claim 6, wherein, The running parameter comprises the display frame rate; The running of the terminal according to at least one of the running strategy and the running parameter associated with the high-performance mode comprises: In a case where the running parameter includes a display frame rate higher than a current display frame rate of the terminal, multiple pictures displayed by the terminal are interpolated based on the display frame rate included in the running parameter, so as to make the display frame rate of the terminal reach the display frame rate included in the running parameter.
9. The method of claim 6, wherein, The method further includes: In a case where the working mode of the terminal is the high-performance mode, in response to the terminal being switched from being worn with the external heat dissipation device to not being worn with the external heat dissipation device, the working mode of the terminal is switched to a historical mode, the historical mode being a working mode before the terminal enters the high-performance mode; or, In a case where the working mode of the terminal is the high-performance mode, in response to a closing operation on a target application program, the working mode of the terminal is switched to the historical mode.
10. The method of claim 6, wherein, The method further includes: In a case where the working mode of the terminal is the high-performance mode, a temperature of the terminal is detected in real time; In a case where the temperature of the terminal is higher than a first temperature threshold, the working mode of the terminal is switched to a historical mode, the historical mode being a working mode before the terminal enters the high-performance mode; In a case where the temperature of the terminal is lower than a second temperature threshold, the working mode of the terminal is switched to the high-performance mode.
11. A detection device of a heat dissipating apparatus, characterized by comprising: The apparatus is configured in a terminal, and the apparatus includes: A collection module configured to collect acceleration data of the terminal; A first determination module configured to determine a vibration frequency and a vibration amplitude of the terminal based on the acceleration data, the vibration frequency being a change frequency of the acceleration data; A second determination module configured to determine that the terminal is worn with an external heat dissipation device in a case where a number of occurrences of a target event within a first time period reaches a first threshold, the target event being that the vibration frequency and the vibration amplitude are both within corresponding preset ranges.
12. A terminal, characterized by comprising: The terminal includes a processor and a memory; the memory stores at least one program code, the at least one program code being used to be executed by the processor to implement the heat dissipation device detection method according to any one of claims 1 to 10.
13. A computer-readable storage medium, characterized in that, The storage medium stores at least one program code, the at least one program code being used to be executed by a processor to implement the heat dissipation device detection method according to any one of claims 1 to 10.
14. A computer program product comprising a computer program, characterized in that, The computer program product stores at least one program code, the at least one program code being used to be executed by a processor to implement the heat dissipation device detection method according to any one of claims 1 to 10.
Citation Information
Patent Citations
Control method of cooling fan and electronic equipment
CN116146518A
Vibration detecting method of heat radiator and its detecting system
CN1479087A
Methods for determining when a device is worn by a user
US20180247036A1
Method for evaluating oscillations in a flow system
WO2024056369A1