Temperature control method, electronic equipment, storage medium, chip system and program product

By adjusting the temperature control strategy of charging current, screen brightness, and screen refresh rate, the problems of overheating and lag during long-term operation of electronic devices have been solved, improving the operational stability of the devices and the user experience.

CN122064553APending Publication Date: 2026-05-19HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
HONOR DEVICE CO LTD
Filing Date
2024-11-18
Publication Date
2026-05-19

AI Technical Summary

Technical Problem

Electronic devices may overheat and lag during prolonged operation, affecting the user experience.

Method used

By obtaining the relationship between the real-time temperature of the electronic device and the target temperature, the device temperature is controlled by adjusting the charging current, screen brightness, and screen refresh rate. This includes adjusting the charging current, screen brightness, and screen refresh rate respectively when the real-time temperature exceeds the target temperature.

Benefits of technology

Effectively control the temperature of electronic devices, improve operational stability and user experience, avoid lag, and maintain device performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122064553A_ABST
    Figure CN122064553A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a temperature control method, electronic equipment, a storage medium, a chip system and a program product, relates to the technical field of terminals, and is beneficial for controlling the temperature of the electronic equipment so as to maintain the operation stability of the electronic equipment and improve the user experience. The method comprises the following steps: acquiring and judging the size relationship between the real-time temperature of the electronic equipment and the target temperature; under the condition that the real-time temperature of the electronic equipment is greater than the target temperature, processing the electronic equipment through a preset temperature control strategy; the preset temperature control strategy comprises one or more of the following items: adjusting the charging current of the electronic equipment, adjusting the screen brightness of the electronic equipment, or adjusting the screen refresh rate of the electronic equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of terminal technology, and in particular to a temperature control method, electronic device, storage medium, chip system, and program product. Background Technology

[0002] Electronic devices have become an indispensable part of people's daily work and life, and people can use electronic devices for work, study, or entertainment.

[0003] In some implementations, electronic devices may overheat during prolonged operation, such as playing videos or running games. In such cases, the device may experience lag or stuttering, affecting the user experience. Summary of the Invention

[0004] This application provides a temperature control method, electronic device, storage medium, chip system, and program product, which are applied in the field of terminal technology. They are beneficial for controlling the temperature of electronic devices to maintain the operational stability of electronic devices and improve user experience.

[0005] In a first aspect, embodiments of this application propose a temperature control method applied to an electronic device. The method includes: acquiring and determining the relationship between the real-time temperature of the electronic device and a target temperature; and, when the real-time temperature of the electronic device is greater than the target temperature, processing the electronic device using a preset temperature control strategy. The preset temperature control strategy includes one or more of the following: adjusting the charging current of the electronic device, adjusting the screen brightness of the electronic device, or adjusting the screen refresh rate of the electronic device.

[0006] It should be understood that one or more of the charging current, screen brightness, or screen refresh rate of an electronic device can affect its temperature. In some implementations, the higher any of these values, the more likely the electronic device is to overheat. Therefore, in this embodiment, by acquiring and determining the relationship between the real-time temperature of the electronic device and the target temperature, when the real-time temperature exceeds the target temperature, a preset temperature control strategy is applied to manage the electronic device. The preset temperature control strategy includes one or more of the following: adjusting the charging current, adjusting the screen brightness, or adjusting the screen refresh rate. In some implementations, the target temperature can be close to human body temperature. Thus, when the real-time temperature exceeds the target temperature, applying the preset temperature control strategy helps to control the temperature of the electronic device, thereby maintaining its operational stability and improving the user experience.

[0007] In conjunction with the first aspect, in some implementations of the first aspect, the electronic device includes a first application for running the preset temperature control strategy.

[0008] In this embodiment, the preset temperature control strategy can be integrated into an application. In this way, for devices that have already left the factory, the electronic device manufacturer can push the application to the user device through system upgrade or parameter upgrade, which makes it convenient for the devices that have already left the factory to upgrade the functions described in this embodiment. Furthermore, for electronic devices that have the first application installed, the electronic device manufacturer can also maintain the first application through system upgrade, application upgrade or parameter upgrade, etc., in order to maintain the stability of the first application or improve its performance, which is conducive to improving the user experience.

[0009] In conjunction with the first aspect, in some implementations of the first aspect, adjusting the charging current of the electronic device includes: when the real-time temperature of the electronic device is greater than the target temperature and less than or equal to a first temperature, reducing the charging current value of the electronic device by A, wherein the first temperature is greater than the target temperature; and when the real-time temperature of the electronic device is greater than the first temperature, reducing the charging current value of the electronic device by B, wherein B is greater than or equal to A, wherein both A and B are non-negative numbers.

[0010] It should be understood that, due to the thermal effect of current, the higher the charging current of an electronic device, the higher the current density inside the battery, the more heat is generated inside the battery, and the higher the temperature of the electronic device may be. Therefore, in this embodiment, the temperature of the electronic device can be controlled by adjusting the charging current.

[0011] Furthermore, in some implementations of this application, since the first temperature is greater than the target temperature, the charging current value B that is reduced when the real-time temperature of the electronic device is greater than the first temperature can be set to be greater than the charging current value A that is reduced when the real-time temperature of the electronic device is greater than the target temperature but less than or equal to the first temperature. In this way, when the real-time temperature of the electronic device is high (the real-time temperature of the electronic device is greater than the first temperature), the electronic device can be controlled to use a small charging current to charge, so as to control the internal heat of the battery of the electronic device and achieve the purpose of reducing the temperature of the electronic device faster. When the real-time temperature of the electronic device is greater than the target temperature but not too high (the real-time temperature of the electronic device is greater than the target temperature but less than or equal to the first temperature), the electronic device can be controlled to use a charging current higher than the above-mentioned "small charging current" to charge, so as to control the internal heat of the battery of the electronic device while maintaining the charging speed of the electronic device to a certain extent, thereby achieving the purpose of cooling the electronic device and improving the user experience.

[0012] In conjunction with the first aspect, in some implementations of the first aspect, adjusting the screen brightness of the electronic device includes: when the real-time temperature of the electronic device is greater than the target temperature and less than or equal to a second temperature, reducing the screen brightness value of the electronic device by C, wherein the second temperature is greater than the target temperature; and when the real-time temperature of the electronic device is greater than the second temperature, reducing the screen brightness value of the electronic device by D, wherein D is greater than or equal to C, wherein both C and D are non-negative numbers.

[0013] It should be understood that the higher the screen brightness of an electronic device, the more power the screen requires to maintain its brightness, which may cause the electronic device to overheat. Therefore, in this embodiment, the temperature of the electronic device can be controlled by adjusting the screen brightness.

[0014] Furthermore, in some implementations of this application, since the second temperature is greater than the target temperature, the screen brightness value D reduced when the real-time temperature of the electronic device is greater than the second temperature can be set to be greater than the screen brightness value C reduced when the real-time temperature of the electronic device is greater than the target temperature but less than or equal to the second temperature. In this way, when the real-time temperature of the electronic device is high (the real-time temperature of the electronic device is greater than the second temperature), the electronic device can be set to use a lower screen brightness to achieve the purpose of quickly reducing the temperature of the electronic device. When the real-time temperature of the electronic device is greater than the target temperature but not too high (the real-time temperature of the electronic device is greater than the target temperature but less than or equal to the second temperature), the electronic device can be set to use a higher screen brightness than the above-mentioned "lower screen brightness" to maintain the screen brightness of the electronic device at a certain level while controlling the temperature of the electronic device, which is beneficial to improving the user's experience.

[0015] In conjunction with the first aspect, in some implementations of the first aspect, adjusting the screen refresh rate of the electronic device includes: when the real-time temperature of the electronic device is greater than the target temperature and less than or equal to a third temperature, reducing the screen refresh rate value of the electronic device by E, wherein the third temperature is greater than the target temperature; and when the real-time temperature of the electronic device is greater than the third temperature, reducing the screen refresh rate value of the electronic device by F, wherein F is greater than or equal to E, wherein both E and F are non-negative numbers.

[0016] It should be understood that a higher screen refresh rate means the screen needs to update the image more frequently, which increases the screen's power consumption. Increased power consumption directly leads to a faster discharge rate of the electronic device's battery, resulting in more heat and potentially causing the electronic device to heat up. In one possible implementation, to ensure smooth operation of the electronic device, the screen refresh rate is typically set to the highest allowed refresh rate. In this embodiment, adjusting the screen refresh rate can reduce the battery's discharge rate, decrease heat release from the battery, and thus lower the temperature of the electronic device.

[0017] Furthermore, in some implementations of this application, since the third temperature is greater than the target temperature, the screen refresh rate value F that is reduced when the real-time temperature of the electronic device is greater than the third temperature can be set to be greater than the screen refresh rate value E that is reduced when the real-time temperature of the electronic device is greater than the target temperature and less than or equal to the third temperature. In this way, when the real-time temperature of the electronic device is high (the real-time temperature of the electronic device is greater than the third temperature), the electronic device can be set to use a smaller screen refresh rate to achieve the purpose of quickly reducing the temperature of the electronic device. When the real-time temperature of the electronic device is greater than the target temperature but not too high (the real-time temperature of the electronic device is greater than the target temperature and less than or equal to the third temperature), the electronic device can be set to use a higher screen refresh rate than the above-mentioned "smaller screen refresh rate" to control the temperature of the electronic device while maintaining the smooth operation of the electronic device to a certain extent, which is beneficial to improving the user's experience.

[0018] Optionally, the first temperature, the second temperature, and the third temperature may all be the same, partially the same, or different from each other, and this application does not make any specific limitation in this regard.

[0019] In conjunction with the first aspect, in some implementations of the first aspect, after processing the electronic device through a preset temperature control strategy, the method further includes: restoring one or more of the following to the level before processing: if the real-time temperature of the electronic device is less than or equal to the target temperature: the charging current of the electronic device, the screen brightness of the electronic device, or the screen refresh rate of the electronic device.

[0020] In this embodiment, after processing the electronic device through a preset temperature control strategy, if the real-time temperature of the electronic device is less than or equal to the target temperature, one or more of the following are restored to the level before processing: the charging current of the electronic device, the screen brightness of the electronic device, or the screen refresh rate of the electronic device. This helps to restore the performance of the electronic device to the level before processing, helps to ensure the operating performance of the electronic device, and helps to improve the user experience.

[0021] In conjunction with the first aspect, in some implementations of the first aspect, after determining that the real-time temperature of the electronic device is greater than the target temperature and before processing the electronic device through the preset temperature control strategy, the method further includes: determining whether the preset temperature control strategy is running; and if it is determined that the preset temperature control strategy is not running, activating the preset temperature control strategy.

[0022] In this embodiment, by determining whether a preset temperature control strategy is running, and activating the preset temperature control strategy when it is determined that the preset temperature control strategy is not running, the preset temperature control strategy can be avoided from being repeatedly activated, which is beneficial to the rational use of electronic device operating resources.

[0023] In conjunction with the first aspect, in some implementations of the first aspect, the step of activating the preset temperature control strategy when it is determined that the preset temperature control strategy is not running includes: activating the preset temperature control strategy when the preset global flag bit is set to a first value, wherein the first value is used to indicate that the preset temperature control strategy is not running.

[0024] In conjunction with the first aspect, in some implementations of the first aspect, the electronic device includes a second application, the second application being used to trigger the screen of the electronic device to light up in response to a screen-off event of the electronic device, and to play a preset video or preset animation; the step of processing the electronic device by a preset temperature control strategy when the real-time temperature of the electronic device is greater than the target temperature includes: stopping the playback of the preset video or preset animation when the real-time temperature of the electronic device is greater than the target temperature, and processing the electronic device by the preset temperature control strategy.

[0025] It should be understood that when playing product introduction videos, the screen is usually constantly on, resulting in high power consumption. Furthermore, the screen refresh rate is typically high during video playback, making it easier for the electronic device to overheat. In this embodiment, when the real-time temperature of the electronic device exceeds the target temperature, playback of the preset video or animation is stopped. This helps reduce the operating load on the electronic device. Based on this, a preset temperature control strategy is used to process the electronic device, which helps to reduce its temperature more quickly.

[0026] In conjunction with the first aspect, in some implementations of the first aspect, after processing the electronic device through a preset temperature control strategy, the method further includes: resuming playback of a preset video or preset animation when the real-time temperature of the electronic device is less than or equal to the target temperature.

[0027] In some implementations, the electronic device can be a device provided to users in a sales counter. This device can be set to continue playing product introduction videos even after the screen is turned off and no user is using the device. In this embodiment, when the real-time temperature of the electronic device is less than or equal to the target temperature, the playback of the preset video or preset animation is resumed. This helps to maximize the playback time of the product introduction video, attract customers to pick up the electronic device and experience it, and ultimately increase store sales.

[0028] Secondly, embodiments of this application provide a temperature control device, which can be an electronic device, or a chip or chip system within an electronic device. The temperature control device may include a display unit and a processing unit. When the temperature control device is an electronic device, the display unit may be a display screen. The display unit is used to perform display steps to cause the electronic device to implement a temperature control method described in the first aspect or any possible implementation of the first aspect. When the temperature control device is an electronic device, the processing unit may be a processor. The temperature control device may further include a storage unit, which may be a memory. The storage unit is used to store instructions, and the processing unit executes the instructions stored in the storage unit to cause the electronic device to implement a temperature control method described in the first aspect or any possible implementation of the first aspect. When the temperature control device is a chip or chip system within an electronic device, the processing unit may be a processor. The processing unit executes the instructions stored in the storage unit to cause the electronic device to implement a temperature control method described in the first aspect or any possible implementation of the first aspect. The storage unit can be a storage unit inside the chip (e.g., a register, cache, etc.) or a storage unit located outside the chip within the electronic device (e.g., a read-only memory, random access memory, etc.).

[0029] Thirdly, embodiments of this application provide an electronic device, including a processor and a memory, wherein the memory is used to store computer execution instructions, and the processor is used to run the computer execution instructions stored in the memory to perform the method described in the first aspect or any possible implementation of the first aspect.

[0030] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program or instructions that, when executed on a computer, cause the computer to perform the methods described in the first aspect or any possible implementation thereof.

[0031] Fifthly, embodiments of this application provide a computer program product including a computer program, which, when run, causes the computer to perform the method described in the first aspect or any possible implementation thereof.

[0032] Sixthly, this application provides a chip or chip system including at least one processor and a communication interface. The communication interface and the at least one processor are interconnected via a circuit. The at least one processor is used to run computer programs or instructions to perform the methods described in the first aspect or any possible implementation of the first aspect. The communication interface in the chip can be an input / output interface, pins, or circuits, etc.

[0033] In one possible implementation, the chip or chip system described above in this application further includes at least one memory storing instructions. The memory can be an internal storage unit of the chip, such as a register or cache, or it can be a storage unit of the chip itself (e.g., read-only memory, random access memory, etc.).

[0034] It should be understood that the second to sixth aspects of this application correspond to the technical solutions of the first aspect of this application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation are similar, and will not be repeated here. Attached Figure Description

[0035] Figure 1 A schematic flowchart illustrating a temperature control method provided in an embodiment of this application;

[0036] Figure 2 A schematic block diagram illustrating the software structure of an electronic device provided in an embodiment of this application;

[0037] Figure 3 A schematic flowchart illustrating a temperature control method provided in an embodiment of this application;

[0038] Figure 4 A schematic block diagram of the hardware structure of an electronic device provided in an embodiment of this application;

[0039] Figure 5 This is a schematic block diagram of a chip structure provided in an embodiment of this application. Detailed Implementation

[0040] To facilitate a clear description of the technical solutions in the embodiments of this application, some terms and technologies involved in the embodiments of this application will be briefly introduced below:

[0041] 1. Basic Terminology

[0042] In the embodiments of this application, terms such as "first" and "second" are used to distinguish identical or similar items with substantially the same function and purpose. For example, "first chip" and "second chip" are used only to distinguish different chips and do not limit their order of execution. Those skilled in the art will understand that terms such as "first" and "second" do not limit the quantity or execution order, and that "first" and "second" do not necessarily imply that they are different.

[0043] It should be noted that, in the embodiments of this application, the terms "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design scheme described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0044] In this application embodiment, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, a--c, bc, or abc, where a, b, and c can be single or multiple.

[0045] 2. Electronic equipment

[0046] The electronic devices in this application embodiment can be handheld devices, vehicle-mounted devices, etc. For example, some electronic devices include: mobile phones, tablet computers, PDAs, laptops, mobile internet devices (MIDs), virtual reality (VR) devices, augmented reality (AR) devices, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical surgery, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, cellular phones, cordless phones, session initiation protocol (SIP) phones, wireless local loop (WLL) stations, personal digital assistants (PDAs), handheld devices with wireless communication capabilities, computing devices or other processing devices connected to a wireless modem, vehicle-mounted devices, electronic devices in 5G networks, or future evolved public land mobile communication networks. The embodiments of this application do not limit the scope of electronic devices in a network (PLMN).

[0047] By way of example and not limitation, in this embodiment, the electronic device can also be a wearable device. Wearable devices, also known as wearable smart devices, are a general term for devices that utilize wearable technology to intelligently design and develop everyday wearables, such as glasses, gloves, watches, clothing, and shoes. Wearable devices are portable devices that are worn directly on the body or integrated into the user's clothing or accessories. Wearable devices are not merely hardware devices, but also achieve powerful functions through software support, data interaction, and cloud interaction. Broadly speaking, wearable smart devices include those that are feature-rich, large in size, and can achieve complete or partial functions without relying on a smartphone, such as smartwatches or smart glasses, as well as those that focus on a specific type of application function and require the use of other devices such as smartphones, such as various smart bracelets and smart jewelry for vital sign monitoring.

[0048] Furthermore, in this embodiment of the application, the electronic device can also be an electronic device in the Internet of Things (IoT) system. IoT is an important part of the future development of information technology. Its main technical feature is to connect objects to the network through communication technology, thereby realizing an intelligent network of human-machine interconnection and object-to-object interconnection.

[0049] The electronic devices in the embodiments of this application may also be referred to as: terminal equipment, user equipment (UE), mobile station (MS), mobile terminal (MT), access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication equipment, user agent, or user device, etc.

[0050] In this embodiment, the electronic device or various network devices include a hardware layer, an operating system layer running on top of the hardware layer, and an application layer running on top of the operating system layer. The hardware layer includes hardware such as a central processing unit (CPU), a memory management unit (MMU), and memory (also called main memory). The operating system can be any one or more computer operating systems that implement business processing through processes, such as Linux, Unix, Android, iOS, or Windows. The application layer includes applications such as browsers, address books, word processing software, and instant messaging software.

[0051] Electronic devices have become an indispensable part of people's daily work and life, allowing them to use them for work, study, or entertainment. However, in some cases, prolonged operation of electronic devices, such as playing videos or running games for extended periods, can cause them to overheat. This can lead to lag and stuttering, negatively impacting the user experience.

[0052] In view of this, embodiments of this application provide a temperature control method, an electronic device, a storage medium, a chip system, and a program product. By acquiring and judging the relationship between the real-time temperature of the electronic device and the target temperature, and when the real-time temperature of the electronic device is greater than the target temperature, a preset temperature control strategy is applied to process the electronic device to achieve temperature control, thereby maintaining the operational stability of the electronic device and improving the user experience.

[0053] One possible scenario for the aforementioned overheating and lag issues of electronic devices is that it could occur in electronic device demo units at exhibitions and retail stores. In some implementations, these demo units continuously play product introduction videos to attract buyers to pick up and try out the devices. However, prolonged playback of such videos can cause the devices to overheat. Users may experience the high temperature and lag when using the device, thus affecting their willingness to purchase.

[0054] The following example uses an electronic device demo unit in a sales and exhibition center as the implementation subject. Figure 1 An exemplary temperature control method 100 applicable to electronic devices is shown. The electronic device software architecture involved in this method 100 can be as follows: Figure 2 As shown, the hardware structure can be as follows: Figure 4 As shown, but this application does not specifically limit it.

[0055] Method 100 includes the following steps:

[0056] The electronic device executes S101 when the screen is off. It should be understood that in a sales and exhibition area, users may pick up and operate the electronic device from time to time. The screen turning off of the electronic device described here can be that the user manually turns off the screen after the experience is over, or the electronic device automatically turns off the screen after the user has not operated for a certain period of time (e.g., 30 seconds). This application does not limit this.

[0057] S101. The electronic device determines whether it is being used; if not, proceed to S102; if so, return.

[0058] In one possible implementation, the electronic device can detect whether a user is using it using sensors. For example, the electronic device can use an accelerometer and / or a gravity sensor or other sensors with similar functions to detect the attitude of the electronic device in order to determine whether the electronic device is in motion or stationary.

[0059] Optionally, if the electronic device is detected to be stationary, it can be understood that the user is not using the electronic device; if the electronic device is detected to be in motion, it can be understood that the user is picking up the electronic device from the display stand, that is, the electronic device is being used, but this application does not make specific limitations on this.

[0060] S102. The electronic device lights up its screen and begins playing a product introduction video.

[0061] In one possible implementation, the electronic device includes an application 1 that monitors the device's status. If the application detects that the screen is off and the device is not in use, it triggers the screen to light up and begins playing a pre-set product introduction video. The application 1 has video playback functionality.

[0062] Optionally, when the electronic device plays the product introduction video for a full period of time 1, the electronic device activates the temperature control strategy, that is, the electronic device executes S103.

[0063] In this embodiment, when the electronic device plays a product introduction video for a full period of time 1, the electronic device activates a temperature control strategy. This helps to avoid the electronic device frequently triggering the temperature control strategy when the screen turns off due to frequent user operation or use of the power button, thus saving energy consumption of the electronic device.

[0064] In one possible implementation, the duration of time period 1 could be 2 minutes, but this application does not specifically limit this.

[0065] S103. The electronic device periodically acquires the real-time temperature of the device during the product introduction video playback.

[0066] Optionally, the period at which the electronic device acquires the real-time temperature of the device can be consistent with the playback period of the product introduction video. For example, if the product introduction video is played once every minute, the electronic device can also acquire the real-time temperature of the device once every minute, but this application does not make specific limitations on this.

[0067] Each time the electronic device acquires a real-time temperature of a device, the electronic device can execute S104.

[0068] S104. The electronic device determines whether the real-time temperature of the device exceeds the target temperature. If so, it executes S105. If not, the electronic device continues to play the product introduction video and continues to execute S103 and subsequent steps when the next cycle arrives.

[0069] Optionally, the target temperature can be close to human body temperature, such as 37 degrees Celsius. Using a temperature close to human body temperature as the benchmark for whether to trigger the temperature control strategy, and keeping the temperature of the electronic device at or below 37 degrees Celsius, helps reduce the likelihood that users will perceive the electronic device as overheating, improves user experience, and increases users' willingness to purchase and boosts store sales. It should be understood that this application does not specifically limit the value of the target temperature.

[0070] S105. The electronic device determines whether the temperature control strategy is running. If yes, it continues to execute the strategy; otherwise, it executes S106.

[0071] In one possible implementation, the electronic device maintains a global flag bit for indicating whether a temperature control strategy is running. The value of the global flag bit can be a Boolean value. For example, when the global flag bit is "true", the temperature control strategy can be considered to be running, and when the global flag bit is "false", the temperature control strategy can be considered to be not running. However, this application does not specifically limit this.

[0072] S106. The electronic device stops playing the product introduction video and starts a timer to periodically detect the real-time temperature of the device.

[0073] In some implementations, when the electronic device stops playing the product introduction video, the temperature detection performed by the electronic device during the product introduction video playback, as described in S103 above, also stops. The electronic device can then start a new timer to periodically detect the real-time temperature of the electronic device. The device temperatures obtained in steps S103 and S106 are both real-time temperatures of the electronic device. The only difference lies in the different detection scenarios or the different threads used to obtain the real-time temperature. The acquisition strategies and periods can be the same or different, and this application does not impose specific limitations on them.

[0074] In one possible implementation, the electronic device can use a temperature sensor to obtain the device's real-time temperature. Optionally, the real-time temperature of the device can be the temperature of the electronic device's shell or its back cover, but this application does not specifically limit it to either.

[0075] Optionally, the strategy for obtaining the real-time temperature of an electronic device can be as follows: when the electronic device is playing a product introduction video, i.e., when the electronic device is not in use, the real-time temperature can be the temperature of the electronic device's shell_frame. In some implementations, the temperature of the electronic device's shell_frame can be obtained from node 1 (e.g., / sys / class / hn_thermal / temp / shell_frame / temp); when the electronic device is not playing a product introduction video, i.e., when the electronic device is being used, the real-time temperature can be the temperature of the electronic device's shell_back. The temperature of the electronic device's shell_back can be obtained from node 2 (e.g., / sys / class / hn_thermal / temp / shell_back / temp), but this application does not specifically limit this.

[0076] It should be understood that the temperature of the back cover of an electronic device is usually higher than that of the frame, and is also closer to the temperature felt by the user. When the electronic device is in use, temperature control based on the temperature of the back cover is more sensitive and helps to prevent the user from feeling the device getting hot, thus improving the user experience. When the electronic device is not in use, the user will not feel any temperature changes. Temperature control based on the temperature of the frame helps to avoid frequent triggering of temperature control strategies, thus saving energy and reducing the operating load of the electronic device.

[0077] In one possible implementation, when the electronic device stops playing the product introduction video, it can enter a screen-off state. This reduces the screen brightness to a minimum, minimizing the possibility of heat generation due to high brightness and helping to quickly lower the temperature of the electronic device.

[0078] In one possible implementation, the electronic device can enable always-on display (AOD) when the product introduction video stops playing. This helps prevent users from seeing a black screen when the electronic device is not playing a product introduction video, thus enhancing the user's experience with the electronic device.

[0079] Optionally, the temperature of the electronic device can be controlled based on one or more of the following descriptions: S107, S108, S109 or S110.

[0080] S107. The electronic device performs temperature control based on a preset charging current limiting strategy.

[0081] In one possible implementation, the preset charging current limiting strategy includes the following S1071~S1073.

[0082] S1071. The electronic device determines the relationship between the real-time temperature of the device and the target temperature and temperature 1. If the real-time temperature of the device is greater than the target temperature and less than or equal to temperature 1 (temperature 1 is greater than the target temperature), S1072 is executed; if the real-time temperature of the device is greater than temperature 1, S1073 is executed.

[0083] S1072. Adjust the charging current of the electronic device to X percent of the maximum charging current of the electronic device.

[0084] S1073. Adjust the charging current of the electronic device to Y percent of the maximum charging current of the electronic device, where Y is less than or equal to X, and both X and Y are non-negative numbers less than 100.

[0085] It should be understood that due to the thermal effect of current, the higher the charging current of an electronic device, the higher the current density inside the battery, the more heat is generated inside the battery, and the higher the temperature of the electronic device may be. In some implementations, the default charging current of an electronic device can be the maximum charging current of the electronic device. Therefore, in the embodiments of this application, the temperature of the device can be controlled by adjusting the charging current to X% or Y% of the maximum charging current of the electronic device.

[0086] In some implementations, Y can be set to be less than X. In this way, when the real-time temperature of the electronic device is greater than 1, that is, when the real-time temperature of the electronic device is high, the internal heat of the battery of the electronic device can be controlled by controlling the input current of the electronic device to reduce the temperature of the electronic device more quickly.

[0087] In some examples, the target temperature can be 37 degrees, temperature 1 can be 40 degrees, and the maximum charging current of the electronic device can refer to the maximum charging current of the electronic device based on the dedicated charging port (DCP) transmission protocol, such as 1200 milliamps (mA), but this application does not make any specific limitation on this.

[0088] Optionally, taking a target temperature of 37 degrees Celsius, temperature 1 of 40 degrees Celsius, a maximum charging current of 1200mA for the electronic device, a value of X of 91.6, and a value of Y of 83.3 as an example, S1072 can be understood as adjusting the charging current of the electronic device to 1100mA when the real-time temperature of the device is greater than 37 degrees Celsius and less than or equal to 40 degrees Celsius, and S1073 can be understood as adjusting the charging current of the electronic device to 1000mA when the real-time temperature of the device is greater than 40 degrees Celsius.

[0089] S108. The electronic device controls the temperature based on a preset screen brightness adjustment strategy.

[0090] In one possible implementation, the preset screen brightness adjustment strategy may include S1081~S1083.

[0091] S1081. The electronic device determines the relationship between the real-time temperature of the device and the target temperature and temperature 2. If the real-time temperature of the device is greater than the target temperature and less than or equal to temperature 2 (temperature 2 is greater than the target temperature), S1082 is executed; if the real-time temperature of the device is greater than temperature 2, S1083 is executed.

[0092] S1082. Reduce the screen brightness of the electronic device by M from the set screen brightness.

[0093] S1083. Reduce the screen brightness of the electronic device by N from the set screen brightness, where N is greater than or equal to M, and both M and N are non-negative numbers.

[0094] In one implementation, N can be set to a value greater than M. In this way, when the temperature of the electronic device is already greater than temperature 2, the heat generated by the electronic device can be reduced by setting the screen brightness of the electronic device to a lower value, so that the electronic device can control the device temperature to the target temperature or below the target temperature more quickly, thereby improving the user experience.

[0095] Optionally, the values ​​of temperature 2 and temperature 1 can be the same or different. When the values ​​of temperature 2 and temperature 1 are different, temperature 2 can be greater than temperature 1 or less than temperature 1. This application does not make specific limitations in this regard.

[0096] Optionally, taking a target temperature of 37 degrees, temperature 2 of 40 degrees, M of 15, and N of 30 as an example, S1082 can be understood as the electronic device reducing the screen brightness by 15 based on the screen brightness set when S108 is executed when the real-time temperature of the device is greater than 37 degrees and less than or equal to 40 degrees. S1083 can be understood as the electronic device reducing the screen brightness by 30 based on the screen brightness set when S108 is executed when the real-time temperature of the device is greater than 40 degrees.

[0097] S109. The electronic device controls the temperature based on a preset screen refresh rate adjustment strategy.

[0098] In one possible implementation, the preset screen refresh rate adjustment strategy may include S1091~S1093.

[0099] S1091. The electronic device determines the relationship between the real-time temperature of the device and the target temperature and temperature 3. If the real-time temperature of the device is greater than the target temperature and less than or equal to temperature 3 (temperature 3 is greater than the target temperature), S1092 is executed; if the real-time temperature of the device is greater than temperature 3, S1093 is executed.

[0100] S1092. Reduce the screen refresh rate of the electronic device from the set screen refresh rate to a screen refresh rate of 1.

[0101] S1093. The screen refresh rate of the electronic device is lowered from the screen refresh rate already set by the electronic device to screen refresh rate 2, where screen refresh rate 2 is less than or equal to screen refresh rate 1.

[0102] It should be understood that a higher screen refresh rate means the screen needs to update the image more frequently, which increases the screen's power consumption. Increased power consumption directly leads to a faster discharge rate of the electronic device's battery, resulting in more heat and potentially causing the electronic device to overheat. In one possible implementation, to ensure smooth operation of the electronic device, the screen refresh rate is typically set to the highest allowed refresh rate. In this embodiment, the screen refresh rate set by the electronic device can be understood as the highest allowed refresh rate (in related technologies, the highest allowed refresh rate is generally 120Hz). Lowering the screen refresh rate helps reduce the battery's discharge rate, decreases heat release from the battery, and thus helps lower the temperature of the electronic device.

[0103] Furthermore, in this embodiment, the screen refresh rate 2 can be set to be less than the screen refresh rate 1. In this way, when the temperature of the electronic device is at a high temperature, such as when the real-time temperature of the device is greater than the temperature 3, setting a lower screen refresh rate is beneficial to reducing the temperature of the electronic device more quickly. When the temperature of the electronic device is at a medium temperature, such as when the real-time temperature of the device is greater than the target temperature but less than or equal to the temperature 3, the screen refresh rate at this time can be set to be slightly greater than the screen refresh rate when the temperature of the electronic device is at a high temperature. This is beneficial to achieve the effect of cooling down the electronic device while maintaining the screen performance of the electronic device as much as possible.

[0104] Optionally, the values ​​of temperature 3 and temperature 1 can be the same or different, and the values ​​of temperature 3 and temperature 2 can be the same or different. This application does not make specific limitations in this regard.

[0105] Optionally, taking a target temperature of 37 degrees, a temperature of 40 degrees, a screen refresh rate of 1 of 90Hz, and a screen refresh rate of 2 of 60Hz as an example, S1092 can be understood as the electronic device reducing its screen refresh rate from the set screen refresh rate (e.g., 120Hz) to 90Hz when the real-time temperature of the device is greater than 37 degrees and less than or equal to 40 degrees. S1093 can be understood as the electronic device reducing its screen refresh rate from the set screen refresh rate (e.g., 120Hz) to 60Hz when the real-time temperature of the device is greater than 40 degrees.

[0106] S110, Electronic devices provide over-temperature warnings.

[0107] Alternatively, electronic devices may provide over-temperature alerts in the following ways:

[0108] Method 1: Electronic devices can display an overheat warning on the screen to prompt users to take measures to cool down the device. Cooling measures that users can take include, for example, pausing the use of the electronic device or manually adjusting the screen brightness or refresh rate; this application does not limit the specific measures taken.

[0109] Method 2: If the electronic device is a demo unit at a sales counter, it can also send a reminder message to the counter management equipment via a cloud server to alert counter staff to take measures to cool down the device. Cooling measures that staff can take include pausing the use of the electronic device, manually adjusting screen brightness or refresh rate, etc. For foldable phones, the folded screen can be unfolded to increase the heat dissipation area, etc. This application does not specifically limit these measures.

[0110] It should be understood that when the electronic device controls the temperature based on one or more strategies described in S107, S108, S109 or S110, the electronic device can also continuously acquire the real-time temperature of the electronic device at regular intervals, and further, the electronic device can also execute S111.

[0111] S111: The electronic device determines whether the real-time temperature of the electronic device is less than or equal to the target temperature. If so, it executes one or more of S112, S113, S114, S115 or S116. Otherwise, it continues to periodically detect the real-time temperature of the electronic device and returns to execute S111.

[0112] S112. Restore the playback of product introduction videos on electronic devices.

[0113] S113. The electronic device sets the charging current value to the value before the temperature control strategy is implemented, or it can set the charging current to the maximum charging current of the electronic device. For example, taking a target temperature of 37 degrees and a maximum charging current of 1200mA for the electronic device, if the electronic device determines that the real-time temperature of the device is less than or equal to 37 degrees, the charging current of the electronic device can be set to 1200mA.

[0114] Alternatively, the charging current of the electronic device may remain unchanged, and this application does not limit this.

[0115] S114. The electronic device sets its screen brightness to intelligent brightness (which can be understood as the screen brightness intelligently changing according to the user's usage scenario), or restores the screen brightness to the screen brightness set before the temperature control strategy was activated. For example, taking a target temperature of 37 degrees as an example, if the electronic device determines that the real-time temperature of the device is less than or equal to 37 degrees, the screen brightness of the electronic device can be restored to the screen brightness set before the temperature control strategy was activated.

[0116] Alternatively, the electronic device may not change the screen brightness, and this application does not limit this.

[0117] S115. The electronic device sets the screen refresh rate to an intelligent screen refresh rate (which can be understood as the screen refresh rate intelligently changing according to the user's usage scenario), or restores the screen refresh rate to the screen refresh rate set before the temperature control strategy was activated. For example, taking a target temperature of 37 degrees Celsius and the electronic device's screen refresh rate as set to 120Hz, if the electronic device determines that the real-time temperature of the device is less than or equal to 37 degrees Celsius, it can set the screen refresh rate of the electronic device to 120Hz.

[0118] Optionally, the electronic device may not change its screen refresh rate; this application does not limit this.

[0119] S116, Temperature control strategy for stopping electronic equipment operation.

[0120] Optionally, the electronic device may stop running the temperature control strategy when the real-time temperature of the electronic device drops to 35 degrees Celsius, but this application does not limit this. In some implementations, the electronic device may stop running the temperature control strategy by stopping the execution of the processes related to the temperature control strategy and setting the value of the global flag used to indicate whether the temperature control strategy is running to a value indicating that it is not running, such as "false", but this application does not limit this.

[0121] When an electronic device executes multiple of S112, S113, S114, S115, or S116, this application does not limit the execution order of the above-mentioned S112, S113, S114, S115, or S116.

[0122] It should be understood that, since the electronic device controls its temperature based on one or more strategies described in S107, S108, S109, or S110, changes in charging speed, screen brightness, or screen refresh rate may lead to a poor user experience if the electronic device is being used. Therefore, in this embodiment, the temperature control strategy of the electronic device operates when the electronic device is not being used by the user. However, this does not constitute a specific limitation on the usage scenario of this embodiment; that is, whether the electronic device is being used by the user is not a limiting condition for the implementation of this application. If the electronic device begins to be used during the implementation of the temperature control strategy of the electronic device in the above method 100, it does not affect the implementation of the solution.

[0123] It is worth noting that the above method 100 is described using an electronic device demo unit in a sales and exhibition center as an example. The execution subject of the temperature control method described in this application embodiment can also be any electronic device, and this application does not specifically limit it. In some implementations, the steps involving playing product introduction videos are optional.

[0124] To facilitate a further understanding of this application, the software structure of the electronic device involved in this application is described below. It should be understood that a layered architecture divides the software of an electronic device into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. Figure 2 This is a software structure block diagram of an electronic device according to an embodiment of this application.

[0125] Taking the Android system as an example, the Android system can be divided into five layers, from top to bottom: application layer, application framework layer, system runtime library layer, hardware abstraction layer, and kernel layer.

[0126] 1. Application Layer

[0127] The application layer may include a series of application packages, which may include system applications and third-party applications. For example, in this embodiment, the application layer may include application 1 for playing product introduction videos. The temperature control strategy described in method 100 above can also be integrated into application 1. Thus, for electronic devices already manufactured, the manufacturer can install the application through system upgrades or update its functionality through application upgrades, enabling the manufactured electronic devices to also possess the functions described in method 100 above.

[0128] It is worth noting that, in one possible implementation, the application corresponding to the temperature control strategy described in method 100 above may be different from the application used to play product introduction videos, and this application does not specifically limit this.

[0129] 2. Application Framework Layer

[0130] The application framework layer provides application programming interfaces (APIs) and programming frameworks for applications in the application layer. Examples include power management service (PMS), window management service (WMS), and display management service (DMS).

[0131] In this embodiment, the power management service can be used for the management and control of power status; the window management service can be used to interact with the power management service to respond to changes in power status and perform corresponding window management operations; and the display management service can be used for the management and control of screen display status.

[0132] 3. System Runtime Layer

[0133] The system runtime library layer is the core layer connecting the upper layers (application layer and application framework layer) and the lower layers. It can include native C / C++ libraries and the Android runtime (ART) library (not shown in the diagram). The native C / C++ libraries provide interfaces to upper-layer applications through the application framework layer, enabling developers to leverage these powerful functions to build rich and varied applications. Examples of native C / C++ libraries include display compositing services (SurfaceFlinger, SF), power management interfaces, etc. The Android runtime library converts the application's bytecode into native machine code and executes the application.

[0134] 4. Kernel layer

[0135] The kernel layer is the layer between hardware and software. The kernel layer contains at least the charging driver and the display driver.

[0136] The following is combined with Figure 2 The described electronic device software structure provides a detailed description of the preset charging current limiting strategy, preset screen brightness adjustment strategy, and preset screen refresh rate adjustment strategy in the above method 100.

[0137] In one specific implementation, the aforementioned preset charging current limiting strategy can be maintained by application 1. Application 1 at the application layer can write the target current limiting value (e.g., the current value corresponding to X percent of the maximum charging current of the electronic device, or the current value corresponding to Y percent of the maximum charging current of the electronic device) into the path / sys / class / hw_power / interface / iin_thermal_all in the retaildemo.prop file by calling the power management service interface of the application layer and the power management interface of the system runtime layer.

[0138] It is worth noting that the implementation of the preset charging current limiting strategy in this application embodiment is independent of whether the electronic device is in a charging state. When the electronic device is connected to a power source, the charging driver can periodically obtain the target current input value from this path. When the obtained target current input value is the target current limiting value, the charging driver can charge based on the target current limiting value. When the electronic device is not connected to a power source, Application 1 can still write the target current limiting value based on the above path. Only when the electronic device is connected to a power source will the charging driver read the target current limiting value, and only then will the target current limiting value take effect.

[0139] In one specific implementation, the aforementioned preset screen brightness adjustment strategy can also be maintained by application 1. Application 1 at the application layer can call the display management service interface and / or window management service interface of the application layer and the display composition service interface of the system runtime library layer to write the target screen brightness value (for example, the screen brightness value corresponding to the screen brightness value after being reduced by M from the screen brightness already set by the aforementioned electronic device, or the screen brightness value corresponding to the screen brightness value after being reduced by N from the screen brightness already set) into the parameter marked as the target screen brightness value in the retaildemo.prop file.

[0140] Furthermore, the kernel-level display driver can read the target screen brightness value from this parameter to adjust the screen brightness.

[0141] In one possible implementation, the target screen brightness value includes a window brightness value and / or a system brightness value, wherein the window brightness value is used to indicate the brightness of the window displayed by the electronic device, and the system brightness value is used to indicate the brightness of the system application displayed by the electronic device, but this application does not specifically limit this.

[0142] Optionally, Application 1 can write the window brightness value to the “VALUE” field in the `WindowManager.LayoutParamslp=activity.getWindow().getAttributes();lp.screenBrightness=VALUE;WindowsetAttributes(lp)` method in the `retaildemo.prop` file; Application 1 can write the system brightness value to the “SCREEN_BRIGHTNESS” field in the `Settings.System.putlnt(resover,SCREEN_BRIGHTNESS,brightness)` method in the `retaildemo.prop` file, but this application does not specifically limit this.

[0143] It should be understood that in some implementations, when the electronic device stops playing the product introduction video, the electronic device can turn on AOD or enter a screen-off state. In this case, application 1 can write the target screen brightness value obtained based on the above-mentioned preset screen brightness adjustment strategy into the corresponding position. However, when the screen of the electronic device is powered off, the display driver reads the target screen brightness value from the position where the target screen brightness value is stored based on the screen lighting event, and displays the screen brightness based on the target screen brightness value.

[0144] In one specific implementation, the aforementioned preset screen refresh rate adjustment strategy can also be maintained by application 1. When it is necessary to execute the preset screen refresh rate adjustment strategy, application 1 in the application layer can write the target screen refresh rate (e.g., the aforementioned electronic device screen refresh rate 1 or screen refresh rate 2) into the parameter marked as the target screen refresh rate in the retaildemo.prop file by calling the display management service interface and / or window management service interface of the application layer and the display composition service interface of the system runtime layer.

[0145] Furthermore, the kernel-level display driver can read the target screen refresh rate from this parameter and adjust the screen refresh rate accordingly.

[0146] Optionally, Application 1 can write the target screen refresh rate into the "defaultValve" field of Settings.Secure.putlnt(context.getContentResolver(),SCREEN_FREQ.defaultValve) in the retaildemo.prop file, but this application does not specifically limit this.

[0147] It should be understood that in some implementations, when the electronic device stops playing the product introduction video, the electronic device can turn on AOD or enter a screen-off state. In this case, application 1 can write the target screen refresh rate obtained based on the above-mentioned preset screen refresh rate adjustment strategy into the corresponding location. When the screen of the electronic device is lit, the display driver reads the target screen refresh rate from the location where the target screen refresh rate is saved based on the screen lighting event, and sends the image to the display screen based on the target screen refresh rate.

[0148] In one specific implementation, the aforementioned preset screen refresh rate adjustment strategy can also be maintained by application 1. Application 1 at the application layer can write the target screen refresh rate (e.g., the aforementioned electronic device screen refresh rate 1 or screen refresh rate 2) into the parameter marked as the target screen refresh rate in the retaildemo.prop file by calling the display management service interface and / or window management service interface of the application layer and the display composition service interface of the system runtime layer.

[0149] Furthermore, the kernel-level display driver can read the target screen refresh rate from this parameter and adjust the screen refresh rate accordingly.

[0150] Optionally, Application 1 may write the target screen refresh rate into the "defaultValve" field of Settings.Secure.putlnt(context.getContextResolver(),SCREEN_FREQ.defaultValve) in the retaildemo.prop file, but this application does not specifically limit this.

[0151] It should be understood that in some implementations, when the electronic device stops playing the product introduction video, the electronic device can turn on AOD or enter a screen-off state. In this case, application 1 can write the target screen refresh rate obtained based on the above-mentioned preset screen refresh rate adjustment strategy into the corresponding location. When the screen of the electronic device is lit, the display driver reads the target screen refresh rate from the location where the target screen refresh rate is saved based on the screen lighting event, and sends the image to the display screen based on the target screen refresh rate.

[0152] The temperature control method 300 provided in the embodiments of this application will be described in detail below.

[0153] Figure 3 An exemplary embodiment of the temperature control method 300 provided in this application is illustrated. This method 300 can be executed by an electronic device, the software structure of which can be as follows: Figure 2 As shown, the hardware structure can be as follows: Figure 4 As shown, but this application does not specifically limit it.

[0154] Method 300 includes the following steps:

[0155] S301. Obtain and determine the relationship between the real-time temperature of the electronic device and the target temperature.

[0156] S302. When the real-time temperature of the electronic device is greater than the target temperature, the electronic device is processed by a preset temperature control strategy. The preset temperature control strategy includes one or more of the following: adjusting the charging current of the electronic device, adjusting the screen brightness of the electronic device, or adjusting the screen refresh rate of the electronic device.

[0157] Optionally, the real-time temperature of the electronic device can have a similar meaning to the "real-time temperature of the device" described in method 100 above, and the target temperature here can have a similar meaning to the "target temperature" described in method 100 above, which will not be repeated here.

[0158] It should be understood that one or more of the charging current, screen brightness, or screen refresh rate of an electronic device can affect its temperature. In some implementations, the higher any of these values, the more likely the electronic device is to overheat. Therefore, in this embodiment, by acquiring and determining the relationship between the real-time temperature of the electronic device and the target temperature, when the real-time temperature of the electronic device is higher than the target temperature, a preset temperature control strategy is applied to manage the electronic device. The preset temperature control strategy includes one or more of the following: adjusting the charging current of the electronic device, adjusting the screen brightness of the electronic device, or adjusting the screen refresh rate of the electronic device. In some implementations, the target temperature can be close to human body temperature. Thus, when the real-time temperature of the electronic device is higher than the target temperature, applying the preset temperature control strategy helps to control the temperature of the electronic device to be close to or lower than the target temperature, thereby improving the user experience.

[0159] In one possible implementation, the preset temperature control strategy may further include: providing an over-temperature warning. In this embodiment, the electronic device may provide an over-temperature warning in the manner described in S110 of method 100 above, as in method 1 and / or method 2, but this application does not specifically limit this.

[0160] As an alternative embodiment, the electronic device includes a first application for running a preset temperature control strategy.

[0161] In this embodiment, the preset temperature control strategy can be integrated into an application. In this way, for devices that have already left the factory, the electronic device manufacturer can push the application to the user device through system upgrade or parameter upgrade, which makes it convenient for the devices that have already left the factory to upgrade the functions described in this embodiment. Furthermore, for electronic devices that have the first application installed, the electronic device manufacturer can also maintain the first application through system upgrade, application upgrade or parameter upgrade, etc., in order to maintain the stability of the first application or improve its performance, which is conducive to improving the user experience.

[0162] As an optional embodiment, adjusting the charging current of the electronic device includes: when the real-time temperature of the electronic device is greater than the target temperature and less than or equal to a first temperature, reducing the charging current value of the electronic device by A, where the first temperature is greater than the target temperature; and when the real-time temperature of the electronic device is greater than the first temperature, reducing the charging current value of the electronic device by B, where B is greater than or equal to A, and both A and B are non-negative numbers.

[0163] Optionally, the first temperature may have a similar meaning to the temperature 1 described in method 100 above, but this application does not specifically limit it.

[0164] In one possible implementation, the embodiments of this application may be as described in S1071 to S1073 of method 100 above. Specifically, it may also be as described above when "the preset charging current limiting strategy is maintained by application 1", which will not be repeated here.

[0165] Optionally, the charging current value set by the electronic device before processing based on the preset temperature control strategy can be the maximum charging current of the electronic device. The above A can be the difference between the maximum charging current of the electronic device and X percent of the maximum charging current of the electronic device, and the above B can be the difference between the maximum charging current of the electronic device and Y percent of the maximum charging current of the electronic device, but this application does not limit it.

[0166] It should be understood that, due to the thermal effect of current, the higher the charging current of an electronic device, the higher the current density inside the battery, the more heat is generated inside the battery, and the higher the temperature of the electronic device may be. Therefore, in this embodiment, the temperature of the electronic device can be controlled by adjusting the charging current.

[0167] Furthermore, in some implementations of this application, since the first temperature is greater than the target temperature, the charging current value B that is reduced when the real-time temperature of the electronic device is greater than the first temperature can be set to be greater than the charging current value A that is reduced when the real-time temperature of the electronic device is greater than the target temperature but less than or equal to the first temperature. In this way, when the real-time temperature of the electronic device is high (the real-time temperature of the electronic device is greater than the first temperature), the electronic device can be controlled to use a small charging current to charge, so as to control the internal heat of the battery of the electronic device and achieve the purpose of reducing the temperature of the electronic device faster. When the real-time temperature of the electronic device is greater than the target temperature but not too high (the real-time temperature of the electronic device is greater than the target temperature but less than or equal to the first temperature), the electronic device can be controlled to use a charging current higher than the above-mentioned "small charging current" to charge, so as to control the internal heat of the battery of the electronic device and maintain the charging speed of the electronic device to a certain extent, which is beneficial to improving the user's user experience.

[0168] As an optional embodiment, adjusting the screen brightness of an electronic device includes: when the real-time temperature of the electronic device is greater than a target temperature and less than or equal to a second temperature, reducing the screen brightness value of the electronic device by C, where the second temperature is greater than the target temperature; and when the real-time temperature of the electronic device is greater than the second temperature, reducing the screen brightness value of the electronic device by D, where D is greater than or equal to C, and both C and D are non-negative numbers.

[0169] Optionally, the second temperature may have a similar meaning to the temperature 2 described in method 100 above, but this application does not specifically limit it.

[0170] In one possible implementation, the embodiments of this application may be as described in S1081 to S1083 of method 100 above. Specifically, it may also be as described above when "the preset screen brightness adjustment strategy is maintained by application 1", which will not be repeated here.

[0171] Optionally, C and D can both be values ​​that are lowered based on the screen brightness value set by the electronic device before it processes based on a preset temperature control strategy, but this application does not limit this.

[0172] It should be understood that the higher the screen brightness of an electronic device, the more power the screen requires to maintain its brightness, which may cause the electronic device to overheat. Therefore, in this embodiment, the temperature of the electronic device can be controlled by adjusting the screen brightness.

[0173] Furthermore, in some implementations of this application, since the second temperature is greater than the target temperature, the screen brightness value D reduced when the real-time temperature of the electronic device is greater than the second temperature can be set to be greater than the screen brightness value C reduced when the real-time temperature of the electronic device is greater than the target temperature but less than or equal to the second temperature. In this way, when the real-time temperature of the electronic device is high (the real-time temperature of the electronic device is greater than the second temperature), the electronic device can be set to use a lower screen brightness to achieve the purpose of quickly reducing the temperature of the electronic device. When the real-time temperature of the electronic device is greater than the target temperature but not too high (the real-time temperature of the electronic device is greater than the target temperature but less than or equal to the second temperature), the electronic device can be set to use a higher screen brightness than the above-mentioned "lower screen brightness" to maintain the screen brightness of the electronic device at a certain level while controlling the temperature of the electronic device, which is beneficial to improving the user's experience.

[0174] As an optional embodiment, adjusting the screen refresh rate of the electronic device includes: when the real-time temperature of the electronic device is greater than the target temperature and less than or equal to a third temperature, reducing the screen refresh rate value of the electronic device by E, where the third temperature is greater than the target temperature; and when the real-time temperature of the electronic device is greater than the third temperature, reducing the screen refresh rate value of the electronic device by F, where F is greater than or equal to E, and both E and F are non-negative numbers.

[0175] Optionally, the third temperature may have a similar meaning to the temperature 3 described in method 100 above, but this application does not specifically limit it.

[0176] In one possible implementation, the embodiments of this application may be as described in S1091 to S1093 of method 100 above. Specifically, it may also be as described above when "the preset screen refresh rate adjustment strategy is maintained by application 1", which will not be repeated here.

[0177] Optionally, both E and F can be values ​​that are lowered based on the screen refresh rate value set by the electronic device before processing based on the preset temperature control strategy. The screen refresh rate value set by the electronic device before processing based on the preset temperature control strategy can be, for example, the maximum refresh rate allowed by the electronic device, such as 120Hz, but this application does not limit it.

[0178] It should be understood that a higher screen refresh rate means the screen needs to update the image more frequently, which increases the screen's power consumption. Increased power consumption directly leads to a faster discharge rate of the electronic device's battery, resulting in more heat and potentially causing the electronic device to heat up. In one possible implementation, to ensure smooth operation of the electronic device, the screen refresh rate is typically set to the highest allowed refresh rate. In this embodiment, adjusting the screen refresh rate can reduce the battery's discharge rate, decrease heat release from the battery, and thus lower the temperature of the electronic device.

[0179] Furthermore, in some implementations of this application, since the third temperature is greater than the target temperature, the screen refresh rate value F that is reduced when the real-time temperature of the electronic device is greater than the third temperature can be set to be greater than the screen refresh rate value E that is reduced when the real-time temperature of the electronic device is greater than the target temperature and less than or equal to the third temperature. In this way, when the real-time temperature of the electronic device is high (the real-time temperature of the electronic device is greater than the third temperature), the electronic device can be set to use a smaller screen refresh rate to achieve the purpose of quickly reducing the temperature of the electronic device. When the real-time temperature of the electronic device is greater than the target temperature but not too high (the real-time temperature of the electronic device is greater than the target temperature and less than or equal to the third temperature), the electronic device can be set to use a higher screen refresh rate than the above-mentioned "smaller screen refresh rate" to control the temperature of the electronic device while maintaining the smooth operation of the electronic device to a certain extent, which is beneficial to improving the user's experience.

[0180] As one possible embodiment, after processing the electronic device through a preset temperature control strategy, the method further includes: restoring one or more of the following to the level before processing: if the real-time temperature of the electronic device is less than or equal to the target temperature: the charging current of the electronic device, the screen brightness of the electronic device, or the screen refresh rate of the electronic device.

[0181] In one possible implementation, the electronic device can be a device provided to users in a sales counter, which can be set to continue playing product introduction videos after the screen is turned off. In this embodiment, the electronic device can pause the playback of the product introduction video before processing the electronic device through a preset temperature control strategy, and can resume playback of the product introduction video after processing the electronic device through the preset temperature control strategy, but this application does not specifically limit this.

[0182] In this embodiment, after processing the electronic device through a preset temperature control strategy, if the real-time temperature of the electronic device is less than or equal to the target temperature, one or more of the following are restored to the level before processing: the charging current of the electronic device, the screen brightness of the electronic device, or the screen refresh rate of the electronic device. This helps to restore the performance of the electronic device to the level before processing, helps to ensure the operating performance of the electronic device, and helps to improve the user experience.

[0183] As an optional embodiment, after determining that the real-time temperature of the electronic device is greater than the target temperature and before processing the electronic device through a preset temperature control strategy, the method further includes: determining whether the preset temperature control strategy is running; and if it is determined that the preset temperature control strategy is not running, activating the preset temperature control strategy.

[0184] In this embodiment, by determining whether a preset temperature control strategy is running, and activating the preset temperature control strategy when it is determined that the preset temperature control strategy is not running, the preset temperature control strategy can be avoided from being repeatedly activated, which is beneficial to the rational use of electronic device operating resources.

[0185] As an optional embodiment, if it is determined that the preset temperature control strategy is not running, the preset temperature control strategy is activated, including: if the preset global flag bit is set to a first value, the preset temperature control strategy is activated, whereby the first value is used to indicate that the preset temperature control strategy is not running.

[0186] Optionally, the first value may be, for example, "false" as described in method 100 above, but the application does not limit this.

[0187] As an optional embodiment, the electronic device includes a second application, which is used to trigger the screen of the electronic device to light up in response to a screen-off event of the electronic device and play a preset video or preset animation; when the real-time temperature of the electronic device is greater than the target temperature, the electronic device is processed by a preset temperature control strategy, including: when the real-time temperature of the electronic device is greater than the target temperature, stopping the playback of the preset video or preset animation and processing the electronic device by the preset temperature control strategy.

[0188] Optionally, the second application can be the same as the first application, such as the application 1 mentioned above. The second application can also be different from the first application, and this application does not limit this.

[0189] It should be understood that when playing product introduction videos, the screen is usually constantly on, resulting in high power consumption. Furthermore, the screen refresh rate is typically high during video playback, making it easier for the electronic device to overheat. In this embodiment, when the real-time temperature of the electronic device exceeds the target temperature, playback of the preset video or animation is stopped. This helps reduce the operating load on the electronic device. Based on this, a preset temperature control strategy is used to process the electronic device, which helps to reduce its temperature more quickly.

[0190] As an optional embodiment, after processing the electronic device through a preset temperature control strategy, the method further includes: resuming playback of a preset video or preset animation when the real-time temperature of the electronic device is less than or equal to the target temperature.

[0191] In some implementations, the electronic device can be a device provided to users in a sales counter. This device can be set to continue playing product introduction videos even after the screen is turned off and no user is using the device. In this embodiment, when the real-time temperature of the electronic device is less than or equal to the target temperature, the playback of the preset video or preset animation is resumed. This helps to maximize the playback time of the product introduction video, attract customers to pick up the electronic device and experience it, and ultimately increase store sales.

[0192] The temperature control method according to the embodiments of this application has been described above. The apparatus for performing the above method provided in the embodiments of this application is described below. Those skilled in the art will understand that the methods and apparatus can be combined with and referenced by each other, and the related apparatus provided in the embodiments of this application can perform the steps in the above-described list sorting method.

[0193] Figure 4 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application is shown. For example... Figure 4 As shown, the electronic device may include a processor 410, a memory 420, a display screen 430, a sensor module 440, a universal serial bus (USB) interface 450, a charging management module 460, a power management module 461, a battery 462, etc.

[0194] Processor 410 may include one or more processing units, such as a central processing unit (CPU), application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU). These different processing units may be independent devices or integrated into one or more processors.

[0195] The memory 420 can be used to store computer executable program code, which includes instructions, such as the program code corresponding to the method described above in the embodiments of this application.

[0196] Display screen 430 is used to display images, videos, etc. Display screen 430 includes a display panel. In some embodiments, the electronic device may include one or N displays screens 430, where N is a positive integer greater than 1. The electronic device implements display functions through a GPU, display screen 430, and application processor, etc.

[0197] The sensor module 440 may include, for example, a gravity sensor, an acceleration sensor, etc. In this embodiment, the sensor module 440 can be used to acquire the attitude of the electronic device to determine whether the electronic device is in motion (in this embodiment, it can also be understood as being in use).

[0198] It should be noted that the names of the hardware or software modules involved in the embodiments of this application can all be defined as other names, as long as they can achieve the function of each module, and no specific restrictions are placed on the names of the modules.

[0199] The temperature control method provided in this application embodiment can be applied to electronic devices, and the software structure of the electronic device can be as follows: Figure 2 As shown, the hardware structure can be as follows Figure 4 As shown, the specific form of the electronic device can be referred to the above description, and will not be repeated here.

[0200] Figure 5 An exemplary schematic diagram of a chip structure provided in an embodiment is shown. The chip 500 includes one or more processors 501, communication lines 502, communication interfaces 503, and memory 504.

[0201] In some implementations, memory 504 stores elements such as executable modules or data structures, or subsets thereof, or extended sets thereof.

[0202] The methods described in the embodiments of this application can be applied to, or implemented by, processor 501. Processor 501 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above methods can be completed by integrated logic circuits in the hardware of processor 501 or by instructions in software form. Processor 501 may be a general-purpose processor (e.g., a microprocessor or conventional processor), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gates, transistor logic devices, or discrete hardware components. Processor 501 can implement or execute the various processing-related methods, steps, and logic block diagrams disclosed in the embodiments of this application.

[0203] The steps of the method disclosed in the embodiments of this application can be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules can be located in mature storage media in the art, such as random access memory, read-only memory, programmable read-only memory, or electrically erasable programmable read-only memory (EEPROM). This storage medium is located in memory 504, and processor 501 reads the information in memory 504 and, in conjunction with its hardware, completes the steps of the above method.

[0204] The processor 501, memory 504 and communication interface 503 can communicate with each other through communication line 502.

[0205] In the above embodiments, the instructions stored in the memory for execution by the processor can be implemented in the form of a computer program product. This computer program product can be pre-written into the memory, or it can be downloaded and installed into the memory as software.

[0206] In the embodiments of this application, the chip 500 may also be a chip system, such as a system on chip (SOC), and this application does not limit it.

[0207] This application provides an electronic device, which includes a processor and a memory; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, causing the electronic device to perform the above-described method.

[0208] This application provides a chip. The chip includes at least one processor and a communication interface, which are interconnected via a circuit. The at least one processor is used to call a computer program in memory to execute the technical solutions described in the above embodiments. Its implementation principle and technical effects are similar to those of the related embodiments described above, and will not be repeated here.

[0209] This application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, it implements the methods described above. The methods described in the above embodiments can be implemented wholly or partially by software, hardware, firmware, or any combination thereof. If implemented in software, the functionality can be stored as one or more instructions or code on or transmitted over the computer-readable medium. The computer-readable medium can include computer storage media and communication media, and can also include any medium that can transfer a computer program from one place to another. The storage medium can be any target medium accessible by a computer.

[0210] In one possible implementation, a computer-readable medium may include RAM, ROM, compact disc read-only memory (CD-ROM) or other optical disc storage, disk storage or other magnetic storage devices, or any other medium targeted to carry or to store the required program code in the form of instructions or data structures, and accessible by a computer. Furthermore, any connection is appropriately referred to as a computer-readable medium. For example, if software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave, then coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. As used herein, disks and optical discs include optical discs, laser discs, optical discs, Digital Versatile Discs (DVDs), floppy disks, and Blu-ray discs, where disks typically reproduce data magnetically, while optical discs reproduce data optically using lasers. Combinations of the above should also be included within the scope of computer-readable media.

[0211] This application provides a computer program product, which includes a computer program that, when run, causes a computer to perform the above-described method.

[0212] This application describes embodiments of methods, apparatus (systems), and computer program products according to embodiments of this application with reference to flowchart illustrations and / or block diagrams. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processing unit of a general-purpose computer, special-purpose computer, embedded processor, or other programmable device to produce a machine, such that the instructions, which execute via the processing unit of the computer or other programmable data processing device, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0213] The above detailed embodiments further illustrate the purpose, technical solution, and beneficial effects of the embodiments of this application. It should be understood that the above are merely specific embodiments of the embodiments of this application and are not intended to limit the protection scope of the embodiments of this application. Any modifications, equivalent substitutions, improvements, etc., made on the basis of the technical solutions of the embodiments of this application should be included within the protection scope of the embodiments of this application.

Claims

1. A temperature control method, characterized in that, Applied to electronic devices, the method includes: Acquire and determine the relationship between the real-time temperature of the electronic device and the target temperature; If the real-time temperature of the electronic device is greater than the target temperature, the electronic device will be processed according to a preset temperature control strategy. The preset temperature control strategy includes one or more of the following: adjusting the charging current of the electronic device, adjusting the screen brightness of the electronic device, or adjusting the screen refresh rate of the electronic device.

2. The method according to claim 1, characterized in that, The electronic device includes a first application for running the preset temperature control strategy.

3. The method according to claim 1 or 2, characterized in that, The adjustment of the charging current of the electronic device includes: If the real-time temperature of the electronic device is greater than the target temperature but less than or equal to the first temperature, the charging current value of the electronic device is reduced by A, and the first temperature is greater than the target temperature. If the real-time temperature of the electronic device is greater than the first temperature, the charging current value of the electronic device is reduced by B, where B is greater than or equal to A, and both A and B are non-negative numbers.

4. The method according to any one of claims 1 to 3, characterized in that, Adjusting the screen brightness of the electronic device includes: If the real-time temperature of the electronic device is greater than the target temperature but less than or equal to the second temperature, the screen brightness value of the electronic device is reduced by C, where the second temperature is greater than the target temperature. If the real-time temperature of the electronic device is greater than the second temperature, the screen brightness value of the electronic device is reduced by D, where D is greater than or equal to C, and both C and D are non-negative numbers.

5. The method according to any one of claims 1 to 4, characterized in that, Adjusting the screen refresh rate of the electronic device includes: If the real-time temperature of the electronic device is greater than the target temperature but less than or equal to the third temperature, the screen refresh rate value of the electronic device is reduced by E, where the third temperature is greater than the target temperature. If the real-time temperature of the electronic device is greater than the third temperature, the screen refresh rate value of the electronic device is reduced by F, where F is greater than or equal to E, and both E and F are non-negative numbers.

6. The method according to any one of claims 1 to 5, characterized in that, After processing the electronic device using a preset temperature control strategy, the method further includes: If the real-time temperature of the electronic device is less than or equal to the target temperature, one or more of the following will be restored to the level before processing: the charging current of the electronic device, the screen brightness of the electronic device, or the screen refresh rate of the electronic device.

7. The method according to any one of claims 1 to 6, characterized in that, After determining that the real-time temperature of the electronic device is greater than the target temperature, and before processing the electronic device using a preset temperature control strategy, the method further includes: Determine whether the preset temperature control strategy is running; If it is determined that the preset temperature control strategy is not running, the preset temperature control strategy is activated.

8. The method according to any one of claims 1 to 7, characterized in that, The step of activating the preset temperature control strategy when it is determined that the preset temperature control strategy is not running includes: When the preset global flag is set to the first value, the preset temperature control strategy is activated. The first value indicates that the preset temperature control strategy is not running.

9. The method according to any one of claims 1 to 8, characterized in that, The electronic device includes a second application, which is used to trigger the screen of the electronic device to light up in response to a screen-off event of the electronic device and play a preset video or preset animation; When the real-time temperature of the electronic device is greater than the target temperature, the electronic device is processed according to a preset temperature control strategy, including: If the real-time temperature of the electronic device is higher than the target temperature, stop playing the preset video or preset animation, and process the electronic device according to the preset temperature control strategy.

10. The method according to claim 9, characterized in that, After processing the electronic device using a preset temperature control strategy, the method further includes: If the real-time temperature of the electronic device is less than or equal to the target temperature, resume playback of the preset video or preset animation.

11. An electronic device, characterized in that, include: Processor and memory; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the electronic device to perform the method as described in any one of claims 1 to 10.

12. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1 to 10.

13. A chip system, characterized in that, It includes at least one processor and a communication interface, the communication interface and the at least one processor being interconnected via a line, the at least one processor being used to run a computer program or instructions to perform the method as described in any one of claims 1 to 10.

14. A computer program product, characterized in that, Includes a computer program that, when run, causes a computer to perform the method as described in any one of claims 1 to 10.