Configuration method, device, electronic device and storage medium of temperature protection strategy

By obtaining the ambient temperature and target temperature mode of the electronic device, the temperature protection strategy is automatically configured, which solves the problem in the existing technology that changing the temperature protection strategy requires the highest authority, and realizes simple temperature protection strategy configuration and flexible temperature mode management.

CN114879823BActive Publication Date: 2024-10-08FIBOCOM AUTO INC
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202210296349.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-24
Publication Date
2024-10-08
Estimated Expiration
2042-03-24

AI Technical Summary

Technical Problem

In the existing technology, changing the temperature protection policy after the device is powered on requires the highest authority, making it troublesome to change the temperature protection policy.

Method used

By obtaining the ambient temperature and target temperature mode of the electronic device, the target temperature protection strategy is automatically determined and configured without obtaining the highest authority of the device system, simplifying the configuration operation of the temperature protection strategy.

Benefits of technology

It enables flexible modification of the temperature protection policy without requiring the highest authority, improving user experience and ease of operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114879823B_ABST
    Figure CN114879823B_ABST
Patent Text Reader

Abstract

The present application relates to a configuration method, device, electronic device and storage medium for a temperature protection strategy. The above-mentioned configuration method of the temperature protection strategy includes: obtaining the ambient temperature of the electronic device and the target temperature mode of the electronic device; determining the target temperature protection strategy of the electronic device according to the ambient temperature and the target temperature mode; configuring the temperature protection strategy of the electronic device as the target temperature protection strategy. The above-mentioned configuration method of the temperature protection strategy can configure a target protection strategy that matches the ambient temperature and the target temperature mode, without obtaining the highest authority of the device system, and can modify the temperature protection strategy by changing the target temperature mode of the electronic device, thereby simplifying the operation of configuring the corresponding temperature protection strategy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of configuring temperature protection strategies, and in particular to a method, device, electronic device, and storage medium for configuring a temperature protection strategy. Background Art

[0002] During device system operation, chips continuously generate heat. To maintain the system chip temperature and device casing temperature within a safe and comfortable range, measures are taken to limit chip heat generation. These limiting measures are called temperature protection strategies. For example, they can limit the frequency and current of modules such as the CPU and modem based on temperature thresholds.

[0003] Generally speaking, when the device is turned on, the configured temperature protection strategy will be loaded. However, if the temperature protection strategy needs to be changed, the highest authority is often required to modify the temperature protection strategy. Therefore, changing the temperature protection strategy is more troublesome. Summary of the Invention

[0004] Based on this, it is necessary to provide a method, device, electronic device and storage medium for configuring a temperature protection strategy that is simple and convenient for configuring the corresponding temperature protection strategy in response to the above technical problems.

[0005] In the first aspect, the present application provides a method for configuring a temperature protection strategy, which is used to configure the temperature protection strategy of an electronic device during the startup process of the electronic device, wherein the electronic device has different temperature modes, and the method includes: obtaining the ambient temperature of the electronic device and the target temperature mode of the electronic device; determining the target temperature protection strategy of the electronic device based on the ambient temperature and the target temperature mode; and configuring the temperature protection strategy of the electronic device to the target temperature protection strategy.

[0006] In one embodiment, determining the target temperature protection strategy based on the ambient temperature and the target temperature mode includes: determining the ambient temperature flag according to the ambient temperature of the electronic device; and determining the target temperature protection strategy based on the ambient temperature flag and the target temperature mode.

[0007] In one embodiment, determining the ambient temperature flag according to the ambient temperature of the electronic device includes: determining a target preset temperature range to which the ambient temperature belongs; wherein the electronic device is configured with multiple preset temperature ranges; and determining the ambient temperature flag according to the target preset range.

[0008] In one embodiment, obtaining the ambient temperature of the electronic device includes: obtaining the ambient temperature of the electronic device by the temperature detection device; the distance between the temperature detection device and the heat source of the electronic device is a first distance.

[0009] In one embodiment, after the electronic device is turned on, the configuration method of the temperature protection strategy further includes: displaying a temperature mode setting interface in response to a first setting instruction; and determining that the temperature mode corresponding to the second setting instruction is the target temperature mode in response to a second setting instruction input by a user on the temperature mode setting interface.

[0010] In one embodiment, the method for configuring the temperature protection strategy further includes: setting a temperature mode flag according to the target temperature mode;

[0011] The determining of the target temperature protection strategy according to the ambient temperature and the target temperature mode includes: determining the target temperature protection strategy according to the ambient temperature and the temperature mode flag.

[0012] In one embodiment, the method for configuring the temperature protection strategy further includes: restarting the electronic device when the target temperature mode is changed.

[0013] In the second aspect, the present application provides a device for configuring a temperature protection strategy, which is used to configure the temperature protection strategy of an electronic device during the startup process of the electronic device. The electronic device has different temperature modes, and the device for configuring the temperature protection strategy includes: an acquisition module, which is used to obtain the ambient temperature of the electronic device and the target temperature mode of the electronic device; a determination module, which is used to determine the target temperature protection strategy of the electronic device based on the ambient temperature and the target temperature mode; and a configuration module, which is used to configure the temperature protection strategy of the electronic device to the target temperature protection strategy.

[0014] In a third aspect, the present application provides an electronic device comprising a controller, the controller comprising a memory and a processor, the memory storing a computer program, and the processor implementing the steps of the method for configuring the temperature protection strategy described in any embodiment of the first aspect when executing the computer program.

[0015] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method for configuring the temperature protection strategy described in any embodiment of the first aspect above.

[0016] In a fifth aspect, the present application provides a computer program product, comprising a computer program, which, when executed by a processor, implements the steps of the method for configuring the temperature protection strategy described in any embodiment of the first aspect above.

[0017] The above-mentioned temperature protection strategy configuration method includes: obtaining the ambient temperature of the electronic device and the target temperature mode of the electronic device; determining the target temperature protection strategy of the electronic device based on the ambient temperature and the target temperature mode; and configuring the temperature protection strategy of the electronic device as the target temperature protection strategy. The above-mentioned temperature protection strategy configuration method can configure a target protection strategy that matches the ambient temperature and the target temperature mode. Without obtaining the highest authority of the device system, the temperature protection strategy can be modified by changing the target temperature mode of the electronic device, simplifying the operation of configuring the corresponding temperature protection strategy. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 Schematic diagram of the flow of the configuration method of the temperature protection strategy in the first embodiment;

[0019] Figure 2 Schematic diagram of the flow of the configuration method of the temperature protection strategy in the second embodiment;

[0020] Figure 3 1 is a flow chart of a method for determining an ambient temperature flag in one embodiment;

[0021] Figure 4 Schematic diagram of a flow chart of a method for configuring a temperature protection strategy in the third embodiment;

[0022] Figure 5 1 is a flow chart of a method for setting a temperature mode in one embodiment;

[0023] Figure 6 A schematic diagram of a temperature mode setting interface in one embodiment;

[0024] Figure 7 Schematic diagram of a flow chart of a method for configuring a temperature protection strategy in a fourth embodiment;

[0025] Figure 8 A schematic flow chart of a method for configuring a temperature protection strategy in a fifth embodiment;

[0026] Figure 9 is a structural block diagram of a device for configuring a temperature protection strategy in one embodiment;

[0027] Figure 10 FIG. 1 is a diagram showing the internal structure of an electronic device in one embodiment. DETAILED DESCRIPTION

[0028] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.

[0029] As described in the background technology, when an electronic device is turned on, the configured temperature protection policy will be loaded. However, if the temperature protection policy needs to be changed, the highest authority must be obtained, so changing the temperature protection policy is relatively troublesome. For example: an electronic device with a Linux operating system, wherein Linux Thermal is a module related to temperature control under the Linux system, and the temperature protection policy of the Qualcomm platform is written into the dts file. When the electronic device is turned on, the corresponding dts file is selected according to the project, and the temperature protection policy configured in the device tree is loaded; after the electronic device is turned on, the temperature protection policy of the electronic device is the embodiment of the result configured in the dtsi file. Accordingly, after starting up, although the thermal node under the file system can be manually changed to change the temperature protection policy, the modification requires root authority and the user user cannot modify it. Moreover, after the change, if the electronic device is restarted, the modified temperature protection policy will be restored to the state in the dtsi file. Therefore, changing the temperature protection policy is relatively troublesome.

[0030] Please refer to Figure 1, which shows a flow chart of a method for configuring a temperature protection strategy provided in the first embodiment of the present application. It should be noted that the method for configuring the temperature protection strategy provided in this embodiment is used to configure the temperature protection strategy of an electronic device during its startup process. In one embodiment, the parameters of the temperature protection strategy can be set according to actual needs. The parameters of the temperature protection strategy may include a temperature trigger threshold. When the temperature of the heat source of the electronic device reaches the temperature trigger threshold, corresponding restriction measures are implemented to prevent the temperature of the heat source of the electronic device from being too high. In one embodiment, the parameters of the temperature protection strategy may also include at least one of a temperature clearing threshold, a first sampling time, a second sampling time, a maximum control state level, and a minimum control state level. It should be noted that the temperature clearing threshold corresponds to the temperature trigger threshold. When the temperature of the heat source of the electronic device falls below the temperature clearing threshold, the control state level corresponding to the temperature trigger threshold is cleared. The first sampling time is the sampling interval for collecting the temperature of the heat source of the electronic device when the temperature of the heat source of the electronic device is below the temperature trigger threshold. The second sampling time is the sampling interval for collecting the temperature of the heat source of the electronic device when the temperature of the heat source of the electronic device is greater than or equal to the temperature trigger threshold. The maximum control state level is the maximum level of the control state of the cooling device of the electronic device when the temperature of the heat source of the electronic device is higher than or equal to the temperature trigger threshold. The minimum control state level is the minimum level of the control state of the cooling device of the electronic device when the temperature of the heat source of the electronic device is higher than or equal to the temperature trigger threshold. For example, the cooling device of the electronic device can be divided into eight states, 0 to 7, and the maximum control state level of the temperature protection strategy with a temperature trigger threshold of 60°C can be set to 3 and the minimum control state level to 1. It should be noted that when the temperature of the heat source of the electronic device is higher than or equal to 60°C, the control state level of the cooling device switches between 1 and 3 according to the temperature change state of the heat source of the electronic device, and the control state level of the cooling device must be greater than or equal to 1 and less than or equal to 3. It should be noted that when the system of the electronic device is in operation, the electronic device will emit heat, and the key heat-generating components of the electronic device constitute the heat source of the electronic device, such as SoC (system-on-chip), and SoC includes CPU (central processing unit) and Modem (modem).

[0031] like Figure 1 As shown, the method for configuring the temperature protection strategy may include steps S102 to S106.

[0032] S102: Acquire the ambient temperature of the electronic device and the target temperature mode of the electronic device.

[0033] The electronic device described in this application refers to an electronic device that can be configured with a temperature protection strategy. The ambient temperature of the electronic device is the temperature of the environment in which the electronic device is located. The electronic device can have multiple temperature modes. When the ambient temperature of the electronic device is the same, different temperature protection strategies are applied to different temperature modes of the electronic device.

[0034] In one embodiment, the temperature mode of an electronic device can be its operating mode. Electronic devices have different performance in different operating modes. For the same electronic device, selecting different operating modes can adjust the performance and power consumption of the electronic device. In one embodiment, the operating modes of the electronic device can include a default mode, a high-performance mode, and a low-power mode. In the high-performance mode, the electronic device's performance is fully utilized, while in the low-power mode, only essential components of the electronic device operate. Therefore, under the same conditions, the temperature of the heat source of electronic devices in high-performance and low-power modes differs. Therefore, configuring a temperature protection strategy corresponding to the operating mode of the electronic device can ensure the required operation of the electronic device. It should be noted that, when the ambient temperature is consistent, the temperature trigger threshold of the temperature protection strategy in the high-performance mode is greater than the temperature trigger threshold of the temperature protection strategy in the low-power mode. This embodiment uses the operating mode of the electronic device as its temperature mode, allowing the temperature protection strategy of the electronic device to meet desired requirements. It will be appreciated that if a temperature mode is not set for the electronic device, the target temperature protection strategy is determined based on the ambient temperature.

[0035] In one embodiment, an electronic device includes a temperature detection device. The temperature detection device is located at a first distance from a heat source of the electronic device, and is used to obtain the ambient temperature of the electronic device. That is, when the distance between the temperature detection device and the heat source of the electronic device is greater than the first distance, the temperature detection device is less affected by the heat source of the electronic device, and thus the temperature detected by the temperature detection device can more accurately reflect the ambient temperature of the electronic device. In one embodiment, the temperature detection device may include a thermistor. Optionally, the thermistor is an NTC (negative temperature coefficient thermistor). In one embodiment, obtaining the ambient temperature of the electronic device includes: obtaining the ambient temperature of the electronic device via the temperature detection device. In one embodiment, the temperature detection device may be configured to write the obtained ambient temperature of the electronic device to a node in a sysfs file system. Obtaining the ambient temperature of the electronic device includes: reading the ambient temperature of the electronic device from the sysfs file system. For electronic devices using a Linux operating system, the electronic device may read node information from the sysfs file system during startup. The temperature detection device obtains the ambient temperature of the electronic device and stores the ambient temperature in the sysfs file system, allowing the electronic device to obtain the ambient temperature of the electronic device during startup.

[0036] In one embodiment, the electronic device is configured with a temperature mode conversion rule, and the temperature mode of the electronic device changes according to the temperature mode conversion rule. Optionally, the temperature mode of the electronic device can be changed according to different times, such as: the temperature mode of the electronic device from 9:00 to 17:00 is the first mode, and the temperature mode of the electronic device from 17:00 to 8:00 the next day is the second mode. The first mode and the second mode are different temperature modes. When the ambient temperature of the electronic device is the same, the temperature protection strategies corresponding to the first mode and the second mode are different.

[0037] S104: Determine a target temperature protection strategy for the electronic device according to the ambient temperature and the target temperature mode.

[0038] Among them, the ambient temperature and the temperature mode have a corresponding relationship with the temperature protection strategy, that is, a temperature protection strategy can be uniquely determined according to the ambient temperature and the temperature mode. In one embodiment, the electronic device is preset with multiple different temperature protection strategies, and the different temperature protection strategies have at least one parameter different. In one embodiment, the electronic device is preset with a corresponding relationship between the ambient temperature and the target temperature mode and the temperature protection strategy, so as to determine the target temperature protection strategy according to the ambient temperature and the target temperature mode of the electronic device. In one embodiment, the sh script of the electronic device can determine the target temperature protection strategy of the electronic device according to the ambient temperature and the target temperature mode.

[0039] S106: Configure the temperature protection strategy of the electronic device as a target temperature protection strategy.

[0040] In one embodiment, the operating system of the electronic device is a Linux system, and the temperature protection policy in the device tree is configured as a target temperature protection policy.

[0041] The configuration method of the temperature protection strategy provided in the above embodiment can configure a target protection strategy that matches the ambient temperature and the target temperature mode without obtaining the highest authority of the device system. The temperature protection strategy can be modified by changing the target temperature mode of the electronic device, thereby simplifying the operation of configuring the corresponding temperature protection strategy.

[0042] At the same time, because the temperature protection strategy corresponds to the ambient temperature and temperature mode, if the ambient temperature and temperature mode do not change, the temperature protection strategy will not change, and the modified solution will be retained. In addition, the configuration method of the temperature protection strategy provided in this embodiment can configure the corresponding temperature protection strategy according to the ambient temperature, thereby improving the user experience.

[0043] Please refer to Figure 2 , which shows a flow chart of a configuration method of a temperature protection strategy provided by the second embodiment of the present application. Figure 2 As shown, the method for configuring the temperature protection strategy may include steps S202 to S208.

[0044] S202: Acquire the ambient temperature of the electronic device and the target temperature mode of the electronic device.

[0045] The description of the steps of obtaining the ambient temperature of the electronic device and the target temperature mode of the electronic device is detailed in the above embodiment and will not be repeated here.

[0046] S204: Determine an ambient temperature flag according to the ambient temperature of the electronic device.

[0047] There is a corresponding relationship between the ambient temperature of the electronic device and the ambient temperature flag, that is, the ambient temperature flag can be determined according to the ambient temperature of the electronic device.

[0048] S206: Determine a target temperature protection strategy according to the ambient temperature flag and the target temperature mode.

[0049] The ambient temperature flag and target temperature mode of the electronic device have a corresponding relationship with the temperature protection strategy, that is, the target temperature protection strategy can be determined according to the ambient temperature flag and target temperature mode of the electronic device.

[0050] S208: Configure the temperature protection strategy of the electronic device as a target temperature protection strategy.

[0051] The description of the steps of configuring the temperature protection strategy of the electronic device as the target temperature protection strategy is detailed in the above embodiment and will not be repeated here.

[0052] Please refer to Figure 3 , which shows a flow chart of a method for determining an ambient temperature flag provided by an embodiment of the present application. Figure 3 As shown, the step of determining the ambient temperature flag according to the ambient temperature of the electronic device may include steps S302 to S304.

[0053] S302: Determine the target preset temperature range to which the ambient temperature belongs.

[0054] It should be noted that the electronic device is configured with multiple preset intervals, and the preset intervals do not overlap. In one embodiment, the electronic device includes three preset intervals, namely a first preset interval, a second preset interval, and a third preset interval. The first preset interval is less than 35°C, the second preset interval is greater than or equal to 35°C and less than 60°C, and the third preset interval is greater than or equal to 60°C.

[0055] S304: Determine the ambient temperature flag according to the target preset range.

[0056] The preset interval and the ambient temperature flag have a corresponding relationship, and an ambient temperature flag can be uniquely determined based on the target preset interval. In one embodiment, when the ambient temperature is less than 35°C, the ambient temperature flag is determined to be "-1", when the ambient temperature is greater than or equal to 35°C and less than 60°C, the ambient temperature flag is determined to be "0", and when the ambient temperature is greater than or equal to 60°C, the ambient temperature flag is determined to be "1".

[0057] Please refer to Figure 4 , which shows a flow chart of a method for configuring a temperature protection strategy provided by the third embodiment of the present application. It should be noted that the method for configuring the temperature protection strategy is used to configure the temperature protection strategy of the electronic device during the startup process of the electronic device. The electronic device has different temperature modes, and the operating system of the electronic device is a Linux system, such as Figure 4 As shown, the configuration method of the temperature protection strategy may include steps S402 to S410.

[0058] S402: Read the ambient temperature of the electronic device from the sysfs file system.

[0059] It should be noted that the sysfs file system stores the ambient temperature of the electronic device. The temperature detection device of the electronic device obtains the ambient temperature of the electronic device and writes the ambient temperature of the electronic device to the sysfs file system. The description of the temperature detection device is detailed in the above embodiment and will not be repeated here.

[0060] S404: Determine the target preset temperature range to which the ambient temperature belongs.

[0061] S406: Determine the ambient temperature flag according to the target preset range.

[0062] S408: Determine a target temperature protection strategy according to the ambient temperature flag and the target temperature mode.

[0063] S410: Configure the temperature protection strategy of the electronic device as a target temperature protection strategy.

[0064] The description of the steps of determining the target preset temperature range to which the ambient temperature belongs, determining the ambient temperature flag according to the target preset range, determining the target temperature protection strategy according to the ambient temperature flag and the target temperature mode, and configuring the temperature protection strategy of the electronic device to the target temperature protection strategy is detailed in the above embodiment and will not be repeated here.

[0065] Please refer to Figure 5 , which shows a flow chart of a temperature mode setting method provided by an embodiment of the present application. The temperature mode setting method provided by this embodiment is used after the electronic device is turned on. The temperature mode setting method provided allows the user to change the temperature protection strategy by changing the temperature mode, thereby simplifying the user's operation of modifying the temperature protection strategy. Figure 5 As shown, the configuration method of the temperature protection strategy provided in the embodiment of the present application may also include steps S502 to S504.

[0066] S502: In response to the first setting instruction, display a temperature mode setting interface.

[0067] It should be noted that the electronic device may provide a temperature mode setting interface through which the user can select a suitable temperature mode. Figure 6 As shown, the temperature mode interface includes a first optional item, a second optional item and a third optional item. The first optional item corresponds to the default mode, the second optional item corresponds to the high performance mode, and the third optional item corresponds to the low power consumption mode.

[0068] In one embodiment, the temperature mode interface includes a temperature mode input box, which is used to input the temperature mode. The input method may include but is not limited to typing input.

[0069] S504 : In response to a second setting instruction input by the user in the temperature mode setting interface, determining the temperature mode corresponding to the second setting instruction as the target temperature mode.

[0070] The second setting instruction carries information about the temperature mode selected by the user, and the temperature mode corresponding to the second setting instruction is determined as the target temperature mode. For example, if the user selects the second option, the high performance mode is determined as the target temperature mode.

[0071] In one embodiment, when the target temperature mode is changed, the electronic device is restarted. It should be noted that when the target mode is changed, the electronic device needs to be in the boot process in order to configure the temperature protection strategy. In one embodiment, when the target mode is changed, a confirmation interface is displayed, which is used to confirm with the user whether to restart. In response to a third setting instruction entered by the user in the confirmation interface, a restart operation corresponding to the third instruction is executed. The restart operation may include but is not limited to restarting immediately, restarting later, or not restarting. It should be noted that the time for the later restart can be set as needed.

[0072] Please refer to Figure 7 , which shows a configuration method of a temperature protection strategy provided by the fourth embodiment of the present application. Figure 7 As shown, the configuration method of the temperature protection strategy may include steps S702 to S706.

[0073] S702: Acquire the ambient temperature of the electronic device and the temperature mode flag of the electronic device.

[0074] In one embodiment, in response to a second setting instruction input by a user in the temperature mode setting interface, after determining that the temperature mode corresponding to the second setting instruction is the target temperature mode, the method includes: setting a temperature mode flag according to the target temperature mode.

[0075] In one embodiment, after the temperature mode flag is set according to the target temperature mode, the process includes: storing the temperature mode flag. It should be noted that the storage location of the temperature mode flag should satisfy the requirement that the stored content is not deleted during the restart process, and the temperature mode flag can be read from the storage location during the boot process. In one embodiment, the operating system of the electronic device is a Linux system, and the temperature mode flag is stored on a node of the sysfs file system. During the boot process of the electronic device, the temperature mode flag stored on the node is read. Optionally, the temperature mode flag and the ambient temperature may be the same or different in the storage nodes of the sysfs file system.

[0076] S704: Determine a target temperature protection strategy for the electronic device according to the ambient temperature and the temperature mode flag.

[0077] The ambient temperature and the temperature mode flag have a corresponding relationship with the temperature protection strategy of the electronic device. Therefore, the target temperature protection strategy of the electronic device can be determined according to the ambient temperature and the temperature mode flag.

[0078] S706: Configure the temperature protection strategy of the electronic device as a target temperature protection strategy.

[0079] The description of the step of configuring the temperature protection strategy of the electronic device as the target temperature protection strategy is detailed in the above embodiment and will not be repeated here.

[0080] Please refer to Figure 8 , which shows a flow chart of a configuration method of a temperature protection strategy provided by the fifth embodiment of the present application. Figure 8 As shown, the configuration method of the temperature protection strategy includes steps S802 to S810.

[0081] S802 : During the power-on process of the electronic device, the ambient temperature of the electronic device and the temperature mode flag of the electronic device are obtained.

[0082] In one embodiment, the ambient temperature of the electronic device is obtained by a temperature detection device of the electronic device, and the ambient temperature of the electronic device is stored in a sysfs file system. At the same time, a temperature mode flag of the electronic device is stored in the sysfs file system. During the startup process of the electronic device, the ambient temperature of the electronic device and the temperature mode flag of the electronic device are obtained from the sysfs file system of the electronic device.

[0083] S804: Determine the target preset temperature range to which the ambient temperature of the electronic device belongs.

[0084] The description of the step of determining the target preset temperature range to which the ambient temperature of the electronic device belongs is detailed in the above embodiment and will not be repeated here.

[0085] S806: Determine the ambient temperature flag according to the target preset temperature range.

[0086] The description of the step of determining the ambient temperature flag according to the target preset temperature range is detailed in the above embodiment and will not be repeated here.

[0087] S808: Determine a target temperature protection strategy according to the ambient temperature flag and the temperature mode flag.

[0088] The ambient temperature flag and the temperature mode flag have a corresponding relationship with the temperature protection strategy. Therefore, the target temperature protection strategy of the electronic device can be determined according to the ambient temperature flag and the temperature mode flag of the electronic device.

[0089] S810: Configure the temperature protection strategy of the electronic device as a target temperature protection strategy.

[0090] The description of the step of configuring the temperature protection strategy of the electronic device as the target temperature protection strategy is detailed in the above embodiment and will not be repeated here.

[0091] It should be understood that, although the various steps in the flowcharts involved in the various embodiments described above are displayed in sequence according to the instructions of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowcharts involved in the various embodiments described above can include multiple steps or multiple stages, and these steps or stages are not necessarily executed and completed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of steps or stages in other steps.

[0092] Based on the same inventive concept, the embodiments of the present application also provide a device for configuring a temperature protection strategy for implementing the aforementioned method for configuring a temperature protection strategy. The solution provided by the device is similar to the solution described in the aforementioned method. Therefore, the specific limitations of the embodiments of the device for configuring one or more temperature protection strategies provided below can be found in the above-mentioned limitations of the method for configuring a temperature protection strategy, and will not be repeated here.

[0093] In one embodiment, Figure 9 As shown, a device 900 for configuring a temperature protection strategy is provided, comprising: an acquisition module 902, a determination module 904, and a configuration module 906. The acquisition module 902 is configured to acquire the ambient temperature of an electronic device and a target temperature mode of the electronic device. The determination module 904 is configured to determine a target temperature protection strategy for the electronic device based on the ambient temperature and the target temperature mode. The configuration module 906 is configured to configure the temperature protection strategy of the electronic device to the target temperature protection strategy.

[0094] In one embodiment, the determination module may be further configured to determine an ambient temperature flag according to the ambient temperature of the electronic device. The determination module may also be configured to determine a target temperature protection strategy according to the ambient temperature flag and the target temperature mode.

[0095] In one embodiment, the acquisition module may also be configured to acquire the ambient temperature of the electronic device through a temperature detection device, wherein the temperature detection device is at a first distance from a heat source of the electronic device.

[0096] In one embodiment, the device for configuring the temperature protection strategy may further include a first response module and a second response module. The first response module is configured to display a temperature mode setting interface in response to a first setting instruction. The second response module is configured to respond to a second setting instruction input by a user on the temperature mode setting interface and determine that the temperature mode corresponding to the second setting instruction is the target temperature mode.

[0097] In one embodiment, the temperature protection strategy configuration device may further include a setting module configured to set a temperature mode flag according to a target temperature mode. The determination module may further be configured to determine a target temperature protection strategy according to the ambient temperature and the temperature mode flag.

[0098] In one embodiment, the temperature protection strategy configuration device may further include a restart module, wherein the restart module is used to restart the electronic device when the target temperature mode is changed.

[0099] Each module in the device for configuring the temperature protection strategy described above may be implemented in whole or in part through software, hardware, or a combination thereof. Each module may be embedded in or independent of a processor in a computer device in the form of hardware, or may be stored in a memory in the computer device in the form of software, so that the processor can call and execute the corresponding operations of each module.

[0100] In one embodiment, an electronic device is provided, which may be a mobile phone, tablet computer, laptop computer, smart car, smart home, etc., and may be a module with communication function. The internal structure diagram thereof may be as follows: Figure 10 As shown. The electronic device includes a processor, a memory, a communication interface and a display screen connected via a system bus. The processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the electronic device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a method for configuring a temperature protection strategy is implemented. The display screen of the electronic device can be a liquid crystal display or an electronic ink display screen.

[0101] Those skilled in the art will understand that Figure 10 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0102] In one embodiment, a computer device is further provided, including a memory and a processor. The memory stores a computer program, and the processor implements the steps in the above-mentioned configuration method embodiments of each temperature protection strategy when executing the computer program.

[0103] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned configuration method embodiments of each temperature protection strategy are implemented.

[0104] In one embodiment, a computer program product is provided, including a computer program. When the computer program is executed by a processor, the steps in the above-mentioned configuration method embodiments of each temperature protection strategy are implemented.

[0105] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, database or other media used in the embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory may include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, distributed databases based on blockchains. The processor involved in the various embodiments provided herein may be, but are not limited to, a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, and the like.

[0106] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0107] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present application. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.

Claims

1. A method for configuring a temperature protection strategy, characterized in that: The method is used to configure a temperature protection strategy of an electronic device during a startup process of the electronic device, wherein the electronic device has different temperature modes, and the method includes: Acquire the ambient temperature of the electronic device and the target temperature mode of the electronic device; wherein the electronic device is configured with a temperature mode conversion rule, and the target temperature mode changes according to the temperature mode conversion rule; Determining a target temperature protection strategy for the electronic device according to the ambient temperature and the target temperature mode; The temperature protection strategy of the electronic device is configured as the target temperature protection strategy.

2. The method for configuring the temperature protection strategy according to claim 1, characterized in that: The determining of the target temperature protection strategy according to the ambient temperature and the target temperature mode includes: Determining an ambient temperature flag bit according to the ambient temperature of the electronic device; The target temperature protection strategy is determined according to the ambient temperature flag and the target temperature mode.

3. The method for configuring the temperature protection strategy according to claim 2, characterized in that: The step of determining the ambient temperature flag bit according to the ambient temperature of the electronic device includes: Determine the target preset temperature interval to which the ambient temperature belongs; wherein the electronic device is configured with a plurality of preset temperature intervals; The ambient temperature flag is determined according to the target preset interval.

4. The method for configuring the temperature protection strategy according to claim 2, characterized in that: The obtaining of the ambient temperature of the electronic device comprises: The ambient temperature of the electronic device is obtained by a temperature detection device; the distance between the temperature detection device and the heat source of the electronic device is a first distance.

5. The method for configuring the temperature protection strategy according to claim 1, characterized in that: After the electronic device is turned on, the method further includes: In response to the first setting instruction, displaying a temperature mode setting interface; In response to a second setting instruction input by a user in the temperature mode setting interface, the temperature mode corresponding to the second setting instruction is determined to be the target temperature mode.

6. The method for configuring the temperature protection strategy according to claim 5, characterized in that: Also includes: Setting a temperature mode flag according to the target temperature mode; The determining of the target temperature protection strategy according to the ambient temperature and the target temperature mode includes: The target temperature protection strategy is determined according to the ambient temperature and the temperature mode flag.

7. The method for configuring the temperature protection strategy according to claim 5, characterized in that: Also includes: When the target temperature mode is changed, the electronic device is restarted.

8. A device for configuring a temperature protection strategy, characterized in that: The device is used to configure a temperature protection strategy of the electronic device during the startup process of the electronic device, wherein the electronic device has different temperature modes, and the configuration device of the temperature protection strategy includes: An acquisition module, used to acquire the ambient temperature of the electronic device and the target temperature mode of the electronic device; wherein the electronic device is configured with a temperature mode change rule, and the target temperature mode changes according to the temperature mode change rule; A determination module, configured to determine a target temperature protection strategy for the electronic device according to the ambient temperature and the target temperature mode; A configuration module is used to configure the temperature protection strategy of the electronic device to the target temperature protection strategy.

9. An electronic device, characterized in that: The method comprises a controller, wherein the controller comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Mode control method and device, readable storage medium and electronic device

    CN109451752A

  • Air conditioner control method, device and equipment, air conditioner and storage medium

    CN110529988A

  • Equipment operation mode control method and device

    CN110581920A

  • Temperature control method and device, storage medium and electronic equipment

    CN110928387A

  • Temperature control method and device, storage medium and electronic equipment

    CN111026254A