Heat dissipation method and related equipment

By integrating the temperature sensor and processor into the mobile phone, the heat dissipation status of the connected heat dissipation equipment is automatically controlled, which solves the problem of inconvenient operation of the existing mobile phone heat dissipation shell, realizes automatic temperature adaptation heat dissipation, and improves the timeliness and efficiency of heat dissipation. .

CN119342744APending Publication Date: 2025-01-21HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310891699.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-19
Publication Date
2025-01-21

AI Technical Summary

Technical Problem

The existing mobile phone cooling case needs to be manually turned on or off, which is not convenient enough to achieve automated temperature adaptive heat dissipation.

Method used

By setting a temperature sensor and processor in the mobile phone, it can automatically detect and control the cooling status of the cooling device connected to the mobile phone, including starting cooling, stopping cooling and adjusting cooling power, and perform adaptive control according to the temperature of the mobile phone.

Benefits of technology

It realizes the timeliness and convenience of mobile phone heat dissipation, avoids the cumbersome manual operation, ensures the adaptation of heat dissipation status and temperature, reduces power consumption waste and extends the life of the device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119342744A_ABST
    Figure CN119342744A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a heat dissipation method and related equipment. The heat dissipation state can be automatically controlled according to the temperature. For example, after a first device is connected with a second device for heat dissipation, the temperature of the first device is detected, and the heat dissipation state of the second device is controlled according to the temperature. In this way, a user does not need to manually control heat dissipation, and operation is convenient.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to a heat dissipation method and related equipment. Background Art

[0002] With the improvement of science and technology, mobile phones have become an indispensable communication device in people's daily life. People use mobile phones for longer and longer periods of time. Long-term use will cause the mobile phone to heat up, affecting the service life of the mobile phone. Therefore, mobile phone cooling devices (such as mobile phone cooling cases) have become a market demand. However, the cooling cases currently on the market need to be opened or closed manually, which is not convenient enough. Summary of the invention

[0003] A heat dissipation method and related equipment provided in the embodiments of the present application are helpful to improve the timeliness and convenience of heat dissipation of mobile phones.

[0004] In a first aspect, a heat dissipation method is provided, which can be applied to a first device. The first device can be, for example, a mobile phone. The method includes: the first device is connected to a second device, the second device is a device for heat dissipation; the first device detects the temperature of the first device; the first device controls the heat dissipation state of the second device according to the temperature, and the heat dissipation state includes: starting heat dissipation, stopping heat dissipation, and heat dissipation power.

[0005] In the embodiment of the present application, the first device can automatically control the heat dissipation state of the second device according to the local temperature. On the one hand, manual operation by the user is not required, and the operation is relatively convenient. On the other hand, if the heat dissipation state is adaptively controlled according to the temperature, it can ensure that the heat dissipation state is adapted to the temperature. For example, it can avoid the situation where the temperature is low but the heat is being dissipated all the time, resulting in a waste of power consumption, or avoid the situation where the temperature is high but the heat is not being dissipated, resulting in a shortened device life.

[0006] In a possible design, the first device controls a heat dissipation state of the second device according to the temperature, including:

[0007] When the temperature is higher than a first threshold, the first device controls the second device to start heat dissipation; or,

[0008] When the temperature is lower than a second threshold, the first device controls the second device to stop heat dissipation; or,

[0009] After the second device starts to dissipate heat, the first device controls the heat dissipation power to be positively correlated with the temperature;

[0010] The second threshold is less than or equal to the first threshold.

[0011] In an embodiment of the present application, the first device can start heat dissipation in time when the temperature is high to protect the first device, and stop heat dissipation in time when the temperature is low to avoid wasting power consumption; moreover, after the second device starts heat dissipation, as the temperature of the first device decreases, the heat dissipation power of the second device can be reduced to avoid high-power heat dissipation all the time and waste power consumption.

[0012] In one possible design, the first device controls the heat dissipation state of the second device according to the temperature, including: the first device controls the charging state of the first device charging the second device according to the temperature, and when the charging state changes, the heat dissipation state of the second device changes accordingly; wherein the charging state includes: at least one of starting charging, stopping charging, and charging power.

[0013] In the embodiment of the present application, the first device can charge the second device. The first device can control the heat dissipation state of the second device by controlling the charging state of the second device. In this way, the storage capacity of the second device is relatively low, and it can be as light and thin as possible.

[0014] In a possible design, the first device controls, according to the temperature, a charging state of the first device charging the second device, including:

[0015] When the temperature is higher than a first threshold, the first device starts charging the second device;

[0016] When the temperature is lower than a second threshold, the first device stops charging the second device;

[0017] When the first device charges the second device, the first device controls the charging power to be positively correlated with the temperature;

[0018] The second threshold is less than or equal to the first threshold.

[0019] In an embodiment of the present application, when a first device with a wireless reverse charging function charges a second device, it can automatically start or stop charging the second device according to the temperature of the first device to control the second device to start or stop heat dissipation; moreover, after the second device starts to dissipate heat, the heat dissipation power of the second device can be controlled to be positively correlated with the temperature, thereby avoiding waste of power consumption caused by continuous high-power heat dissipation.

[0020] In a possible design, when the charging state changes, the heat dissipation state of the second device changes accordingly, including:

[0021] When the first device starts to charge the second device, the second device starts to dissipate heat;

[0022] When the first device stops charging the second device, the second device stops dissipating heat;

[0023] After the first device charges the second device, the heat dissipation power of the second device is positively correlated with the charging power.

[0024] In the embodiment of the present application, the first device can charge the second device. The first device can control the heat dissipation state of the second device by controlling the charging state of the second device. In this way, the storage capacity of the second device is relatively low, and it can be as light and thin as possible.

[0025] In one possible design, the first device includes a switch, and the switch is used to control the wireless reverse charging function of the first device, where the wireless reverse charging function is a function for the first device to wirelessly charge other devices; when the temperature is higher than a first threshold, the first device starts to charge the second device, including: when the temperature is higher than the first threshold, the first device controls the switch to be in an on state, and the first device starts to charge the second device; when the temperature is lower than a second threshold, the first device stops charging the second device, including: when the temperature is lower than the second threshold, the first device controls the switch to be in a off state, and the first device stops charging the second device.

[0026] In an embodiment of the present application, the state of the switch in the first device for controlling the wireless reverse charging function can change with the temperature of the first device. For example, when the temperature of the first device is high, the switch is in the on state, and the first device starts to charge the second device so that the second device starts to dissipate heat. When the temperature of the first device is low, the switch is in the off state, and the first device stops charging the second device so that the second device stops dissipating heat. In this process, there is no need for the user to manually trigger the switch, which is convenient to operate, and the first device controls the switch state according to the temperature of the device, which can not only improve the timeliness of heat dissipation, but also avoid wasting power consumption.

[0027] In one possible design, the first device includes an icon. When the temperature is higher than a first threshold, the first device controls the icon to be in a first state, and when the icon is in the first state, the switch is in an on state; when the temperature is lower than a second threshold, the first device controls the icon to be in a second state, and when the icon is in the second state, the switch is in a off state.

[0028] In the embodiment of the present application, the user can determine the state of the switch by the state of the icon, and then determine the charging state, which provides a better experience.

[0029] In one possible design, after the first device controls the switch to be in an on state, it also includes: when the first device receives an operation for closing the switch, the first device controls the switch to be in an off state, and the first device stops charging the second device; and / or, after the first device controls the switch to be in an off state, it also includes: when the first device receives an operation for turning on the switch, the first device controls the switch to be in an on state, and the first device starts charging the second device.

[0030] In the embodiment of the present application, the way in which the first device controls the switch according to the temperature can be called the automatic mode, and the way in which the user manually controls the switch can be called the manual mode. After the first device uses the automatic mode to control the switch to be turned on or off, the user can operate manually. For example, after the first device automatically controls the switch to be turned on according to the temperature, the user can manually turn it off; or, after the first device automatically controls the switch to be turned off according to the temperature, the user can manually turn it on. In short, the manual mode has a higher priority than the automatic mode to ensure that the user experience is prioritized.

[0031] In one possible design, after the first device receives an operation for turning off the switch and controls the switch to be in a closed state, the method further includes: within a first preset time period, the switch remains in the closed state, and the state of the switch does not change with changes in the temperature of the first device.

[0032] In the embodiment of the present application, after the first device automatically controls the switch to turn on according to the temperature, the user can manually turn it off. Since the temperature has not dropped, the first device may trigger the switch to turn on again according to the temperature. In order to avoid this situation, after the user manually turns off the switch, the first device controls the switch to remain in the off state to prioritize the user experience.

[0033] In a possible design, the method further includes: after the first device detects that a condition is met, controlling the state of the switch according to the temperature of the first device; wherein the condition includes at least one of the following:

[0034] The switch remains in the closed state for a period of time that reaches the first preset period of time; or,

[0035] The first device is restarted; or,

[0036] The first device reconnects to the second device; or,

[0037] The first device detects that the user manually controls the switch to enter an on state, and the switch remains in the on state for a time period that reaches a third preset time period.

[0038] In an embodiment of the present application, after the first device automatically controls the switch to turn on according to the temperature, the user can manually turn it off. In order to avoid the switch being triggered to turn on again due to high temperature in a short period of time, after the user manually turns off the switch, the first device controls the switch to remain in the closed state. When the first device detects that the conditions are met, it controls the state of the switch according to the temperature. In short, after the first device uses the automatic mode to control the switch to turn on or off, the user can operate manually. After the user manually operates, the automatic mode is prohibited for a short period of time, and after the conditions are met, the prohibition of the automatic mode is cancelled. Therefore, the manual mode has a higher priority than the automatic mode to ensure that the user experience is prioritized.

[0039] In one possible design, after the first device receives an operation to turn on the switch and controls the switch to be in an on state, the method further includes: within a second preset time period, the switch remains in the on state, and the state of the switch does not change with changes in the temperature of the first device.

[0040] In the embodiment of the present application, after the first device is turned off according to the temperature control switch, the user can manually turn it on. In order to avoid the switch automatically turning off again in a short time, after the user manually turns on the switch, the first device controls the switch to remain on to give priority to user experience.

[0041] In a possible design, the method further includes: after the first device detects that a condition is met, controlling the state of the switch according to the temperature of the first device; wherein the condition includes at least one of the following:

[0042] The switch remains in the on state for a period of time that reaches the second preset period of time; or,

[0043] The first device is restarted; or,

[0044] The first device reconnects to the second device; or,

[0045] The first device detects that the user manually controls the switch to enter an off state, and the time duration for which the switch remains in the off state reaches a fourth preset time duration.

[0046] In the embodiment of the present application, after the first device is turned off using the automatic mode control switch, the user can manually turn it on. After the user manually operates, the automatic mode is prohibited for a short period of time, and the prohibition of the automatic mode is cancelled after the conditions are met. Therefore, the manual mode has a higher priority than the automatic mode, ensuring that the user experience is prioritized.

[0047] In one possible design, after the first device is connected to the second device, the first device further includes: the first device outputs a first prompt message, and the first prompt message is used to prompt the second device to be in place. In the embodiment of the present application, the first device outputs a prompt after connecting to the second device to facilitate the user to determine whether the second device is in place, thereby improving the user experience.

[0048] In one possible design, before the first device charges the second device, the first device also includes: determining that the current remaining power is greater than or equal to the first power. In the embodiment of the present application, the first device charges the second device when determining that the current remaining power is large, so as to avoid the first device being shut down due to low remaining power.

[0049] In a possible design, before the first device charges the second device, the following further includes: the first device determines that the current remaining power is less than the first power; the first device outputs a second prompt message, the second prompt message is used to prompt whether to charge the second device; the first device receives a confirmation instruction, the confirmation instruction is used to instruct to charge the second device. In the embodiment of the present application, when the first device determines that the current remaining power is not much, it can prompt the user whether to charge the second device. If the user confirms, the second device is charged to improve the user experience.

[0050] In a possible design, before the first device charges the second device, the method further includes:

[0051] Determining, by the first device, a device model of the second device;

[0052] The first device determines, according to the device model, a charging power suitable for the second device;

[0053] The first device charges the second device, comprising:

[0054] The first device charges the second device based on the charging power.

[0055] In the embodiment of the present application, when the first device charges the second device, the charging power used is adapted to the second device, which can avoid the second device being burned due to excessive charging power or the heat dissipation being unable to be started due to insufficient charging power.

[0056] In a possible design, before the first device detects the local temperature, it also includes: the first device receives a first operation, the first operation is used to set an automatic mode, and the automatic mode is used to instruct the first device to control the heat dissipation state of the second device according to the temperature.

[0057] In one possible design, the method also includes: the first device receives a second operation, the second operation is used to set a manual mode, and the manual mode is used to instruct the first device to manually control the heat dissipation state of the second device; the first device controls the heat dissipation state of the second device according to the user operation.

[0058] In the embodiment of the present application, the first device includes an automatic mode and a manual mode. The automatic mode means that the first device automatically controls heat dissipation according to the temperature. The manual mode means that the user manually controls heat dissipation. The user can choose the automatic mode or the manual mode according to their own needs, which provides a higher experience.

[0059] In a possible design, the first threshold is a default setting of the first device system, or is specified by the user; the second threshold is a default setting of the first device system, or is specified by the user. In the embodiment of the present application, the user can set the temperature threshold (first threshold) for starting heat dissipation and the temperature threshold (second threshold) for stopping heat dissipation of the first device by himself, so that starting or stopping heat dissipation can meet user expectations as much as possible and improve user experience.

[0060] In one possible design, the first device is a mobile phone, and the second device is a mobile phone case.

[0061] In a second aspect, a heat dissipation method is also provided, which is applicable to a first device. The first device may be, for example, a mobile phone. The method comprises: the first device is connected to a second device, the second device is a device for heat dissipation; the first device receives a user operation; the first device controls the heat dissipation state of the second device according to the user operation; the heat dissipation state comprises: at least one of starting heat dissipation, stopping heat dissipation, and heat dissipation power.

[0062] In a possible design, the first device includes a first switch, and the first device controls the heat dissipation state of the second device according to the user operation, including:

[0063] When the operation is a first operation of turning on the first switch, the first device controls the second device to start heat dissipation; or,

[0064] When the operation is a second operation of closing the second switch, the first device controls the second device to stop heat dissipation; wherein the second threshold is less than or equal to the first threshold.

[0065] In one possible design, the first device controls the heat dissipation state of the second device according to the user operation, including: the first device controls the charging state of the first device charging the second device according to the user operation, and when the charging state changes, the heat dissipation state of the second device changes accordingly; wherein the charging state includes: at least one of starting charging, stopping charging, and charging power.

[0066] In a possible design, the first device includes a second switch, and the second switch is used to control a wireless reverse charging function of the first device, where the wireless reverse charging function is a function of the first device wirelessly charging other devices; the first device controls a charging state of the first device charging the second device according to the user operation, including:

[0067] When the operation is a first operation of turning on the second switch, the first device starts charging the second device;

[0068] When the operation is a second operation of turning on the second switch, the first device stops charging the second device;

[0069] The second threshold is less than or equal to the first threshold.

[0070] In a possible design, when the charging state changes, the heat dissipation state of the second device changes accordingly, including:

[0071] When the first device starts to charge the second device, the second device starts to dissipate heat;

[0072] When the first device stops charging the second device, the second device stops dissipating heat.

[0073] In one possible design, the first switch and / or the second switch is an icon.

[0074] In a possible design, after the first device is connected to the second device, the method further includes: the first device outputs a first prompt message, where the first prompt message is used to prompt that the second device is in place.

[0075] In a possible design, before the first device charges the second device, the process further includes: the first device determining that a current remaining power is greater than or equal to a first power.

[0076] In one possible design, before the first device charges the second device, the process also includes: the first device determines that the current remaining power is less than the first power; the first device outputs a second prompt message, where the second prompt message is used to prompt whether to charge the second device; and the first device receives a confirmation instruction, where the confirmation instruction is used to instruct charging the second device.

[0077] In a possible design, before the first device charges the second device, the method further includes:

[0078] Determining, by the first device, a device model of the second device;

[0079] The first device determines, according to the device model, a charging power suitable for the second device;

[0080] The first device charges the second device, comprising:

[0081] The first device charges the second device based on the charging power.

[0082] In one possible design, the method also includes: the first device receives a third operation, the third operation is used to set a manual mode, and the manual mode is used to instruct the first device to manually control the heat dissipation state of the second device.

[0083] In one possible design, the method also includes: the first device receives a fourth operation, the fourth operation is used to set an automatic mode, and the automatic mode is used to instruct the first device to control the heat dissipation state of the second device according to the temperature; the first device controls the heat dissipation state of the second device based on the machine temperature.

[0084] In one possible design, the first device is a mobile phone, and the second device is a mobile phone case.

[0085] In a third aspect, a heat dissipation method is also provided. The method is applicable to a second device, and the second device may be, for example, a mobile phone case. The method comprises:

[0086] The second device is connected to the first device, the first device is used to wirelessly charge the second device, and the second device is used to dissipate heat;

[0087] Wherein, the heat dissipation state of the second device is related to the charging state of the first device charging the second device;

[0088] The charging state includes at least one of: starting charging, stopping charging, and charging power;

[0089] The heat dissipation state includes at least one of starting heat dissipation, stopping heat dissipation, and heat dissipation power.

[0090] In a possible design, the heat dissipation state of the second device is related to a charging state of the first device charging the second device, including:

[0091] When the second device starts to receive the charge from the first device, it starts to dissipate heat;

[0092] When the second device stops receiving the charge from the first device, it stops dissipating heat;

[0093] After the second device starts to dissipate heat, the heat dissipation power is positively correlated with the charging power.

[0094] In a possible design, the charging state is related to a temperature of the first device.

[0095] In a possible design, the charging state is related to the temperature of the first device, including:

[0096] When the second device receives the charge from the first device, the temperature of the first device is higher than a first threshold; or,

[0097] When the second device stops receiving the charge from the first device, the temperature of the first device is lower than a second threshold; wherein the second threshold is less than or equal to the first threshold; or,

[0098] After the second device starts charging, the charging power is positively correlated with the temperature.

[0099] In one possible design, the first device is a mobile phone, and the second device is a mobile phone case.

[0100] In a fourth aspect, a first device is also provided, including:

[0101] A magnetic sensor for sensing a second device;

[0102] Temperature sensor, used to detect the temperature of the machine;

[0103] The processor is used to control the heat dissipation state of the second device according to the temperature, and the heat dissipation state includes at least one of starting heat dissipation, stopping heat dissipation, and heat dissipation power.

[0104] In one possible design, the processor is specifically configured to:

[0105] When the temperature is higher than a first threshold, controlling the second device to start heat dissipation; or,

[0106] When the temperature is lower than a second threshold, controlling the second device to stop heat dissipation; or,

[0107] After the second device starts to dissipate heat, the heat dissipation power is controlled to be positively correlated with the temperature; wherein the second threshold is less than or equal to the first threshold.

[0108] In one possible design, the processor is specifically used to: control the charging state of the first device charging the second device according to the temperature, and when the charging state changes, the heat dissipation state of the second device changes accordingly; wherein the charging state includes: starting charging, stopping charging, and at least one of the charging power.

[0109] In a possible design, the first device includes a radio transmitter for wirelessly charging other devices, and the processor specifically:

[0110] When the temperature is higher than a first threshold, controlling the radio transmitter to turn on to charge the second device; or,

[0111] When the temperature is lower than a second threshold, controlling the radio transmitter to turn off to stop charging the second device; or,

[0112] After the radio transmitter is controlled to be turned on, the charging power of the radio transmitter is controlled to be positively correlated with the temperature; wherein the second threshold is less than or equal to the first threshold.

[0113] In a possible design, when the charging state changes, the heat dissipation state of the second device changes accordingly, including:

[0114] When the first device starts to charge the second device, the second device starts to dissipate heat;

[0115] When the first device stops charging the second device, the second device stops dissipating heat;

[0116] After the first device charges the second device, the heat dissipation power of the second device is positively correlated with the charging power.

[0117] In one possible design, the first device includes a switch, which is used to control a wireless reverse charging function of the first device, wherein the wireless reverse charging function is a function of the first device wirelessly charging other devices; the processor is specifically used to: when the temperature is higher than a first threshold, control the switch to be in an on state, and when the switch is in the on state, the radio transmitter is turned on; when the temperature is lower than a second threshold, control the switch to be in a off state, and when the switch is in the off state, the radio transmitter is turned off.

[0118] In one possible design, the first device includes an icon, and the processor is specifically used to: when the temperature is higher than a first threshold, control the icon to be in a first state, and when the icon is in the first state, the switch is in an on state; when the temperature is lower than a second threshold, control the icon to be in a second state, and when the icon is in the second state, the switch is in a off state.

[0119] In one possible design, the processor is further used to: after receiving an operation for closing the switch, control the switch to be in a closed state, and the first device stops charging the second device; and / or, after receiving an operation for opening the switch, control the switch to be in an open state, and the first device starts charging the second device.

[0120] In a possible design, the processor is further configured to: keep the switch in the closed state within a first preset time period, and the state of the switch does not change with changes in the temperature of the first device.

[0121] In a possible design, the processor is further configured to: upon detecting that a condition is met, control the state of the switch according to the temperature of the first device; wherein the condition includes at least one of the following:

[0122] The switch remains in the closed state for a period of time that reaches the first preset period of time; or,

[0123] The first device is restarted; or,

[0124] The first device reconnects to the second device; or,

[0125] The first device detects that the user manually controls the switch to enter an on state, and the switch remains in the on state for a time period that reaches a third preset time period.

[0126] In one possible design, the processor is further configured to: keep the switch in the on state within a second preset time period, and the state of the switch does not change with changes in the temperature of the first device.

[0127] In a possible design, the processor is further configured to: upon detecting that a condition is met, control the state of the switch according to the temperature of the first device; wherein the condition includes at least one of the following:

[0128] The switch remains in the on state for a period of time that reaches the second preset period of time; or,

[0129] The first device is restarted; or,

[0130] The first device reconnects to the second device; or,

[0131] The first device detects that the user manually controls the switch to enter an off state, and the time duration for which the switch remains in the off state reaches a fourth preset time duration.

[0132] In one possible design, the processor is further used to: output first prompt information, where the first prompt information is used to prompt that the second device is in place.

[0133] In one possible design, the processor is further used to determine whether the current remaining power is greater than or equal to the first power.

[0134] In one possible design, the processor is also used to: when it is determined that the current remaining power is less than the first power, output a second prompt message, the second prompt message being used to prompt whether to charge the second device; and when a confirmation instruction is received, charge the second device.

[0135] In one possible design, before controlling the first device to charge the second device, the processor is also used to: determine a device model of the second device; and determine a charging power compatible with the second device based on the device model; when controlling the first device to charge the second device, the processor is specifically used to: charge the second device based on the charging power.

[0136] In one possible design, before the processor controls the heat dissipation state of the second device according to the local temperature, it is also used to: receive a first operation, wherein the first operation is used to set an automatic mode, and the automatic mode is used to instruct the first device to control the heat dissipation state of the second device according to the temperature.

[0137] In one possible design, the processor is also used to: receive a second operation, where the second operation is used to set a manual mode, where the manual mode is used to instruct the first device to manually control the heat dissipation state of the second device; and control the heat dissipation state of the second device according to the user operation.

[0138] In a possible design, the first threshold is a default setting of the first device system, or is specified by a user; the second threshold is a default setting of the first device system, or is specified by a user.

[0139] In one possible design, the first device is a mobile phone, and the second device is a mobile phone case.

[0140] In a fifth aspect, a second device is also provided, including:

[0141] A magnetic sensor for generating a magnetic field;

[0142] A radio receiver for receiving radio;

[0143] A radiator for dissipating heat;

[0144] Among them, the heat dissipation state of the radiator is related to the charging state of the radio receiver; the charging state includes: at least one of starting charging, stopping charging, and charging power; the heat dissipation state includes: starting heat dissipation, stopping heat dissipation, and heat dissipation power.

[0145] In one possible design, the heat dissipation state of the heat sink is related to the charging state of the radio receiver, including:

[0146] When the radio receiver receives radio, the radiator starts to dissipate heat;

[0147] When the radio receiver stops receiving radio, the radiator stops dissipating heat;

[0148] After the radiator starts to dissipate heat, the heat dissipation power is positively correlated with the charging power.

[0149] In a possible design, the charging state is related to a temperature of the first device.

[0150] In a possible design, the charging state is related to the temperature of the first device, including:

[0151] When the radio receiver starts receiving radio, the temperature of the first device is higher than a first threshold; or,

[0152] When the radio receiver stops receiving radio, the temperature of the first device is lower than a second threshold; wherein the second threshold is less than or equal to the first threshold; or,

[0153] After the radio receiver starts receiving radio, the charging power is positively correlated with the temperature.

[0154] In one possible design, the first device is a mobile phone, and the second device is a mobile phone case.

[0155] In a sixth aspect, a first device is also provided, including:

[0156] a processor, a memory, and one or more programs;

[0157] The one or more programs are stored in the memory, and the one or more programs include instructions. When the instructions are executed by the processor, the first device executes the method provided in the first aspect or the second aspect above.

[0158] In a seventh aspect, a second device is also provided, including:

[0159] a processor, a memory, and one or more programs;

[0160] The one or more programs are stored in the memory, and the one or more programs include instructions. When the instructions are executed by the processor, the first device executes the method provided in the third aspect above.

[0161] In an eighth aspect, a communication system is also provided, including: a first device and a second device;

[0162] The first device is used to execute the method steps provided in the first aspect or the second aspect above;

[0163] The second device is used to execute the method steps provided in the third aspect above.

[0164] In the ninth aspect, a computer-readable storage medium is also provided, wherein the computer-readable storage medium is used to store a computer program. When the computer program is run on a computer, the computer executes the method provided in the first aspect, the second aspect or the third aspect above.

[0165] In the tenth aspect, a computer program product is also provided, comprising a computer program, which, when executed on a computer, enables the computer to execute the method provided in the first, second or third aspect above.

[0166] In the eleventh aspect, a chip is also provided, which is coupled to a memory in an electronic device, and is used to call a computer program stored in the memory and execute the technical solutions of the first, second or third aspects of the embodiments of the present application. In the embodiments of the present application, "coupling" refers to the direct or indirect combination of two components with each other.

[0167] For the technical effects that can be achieved by the above-mentioned second to eleventh aspects, please refer to the description of the technical effects that can be achieved by the corresponding design scheme in the above-mentioned first aspect, and this application will not repeat them here. BRIEF DESCRIPTION OF THE DRAWINGS

[0168] Figure 1 A schematic diagram of a system provided in accordance with an embodiment of the present application;

[0169] Figure 2A A hardware schematic diagram of a first device provided in an embodiment of the present application;

[0170] Figure 2B A software schematic diagram of a second device provided in an embodiment of the present application;

[0171] Figure 3A schematic diagram of a first switch on a mobile phone provided in an embodiment of the present application;

[0172] FIG. 4A to FIG. 4B A schematic diagram of a manual mode and an automatic mode provided in an embodiment of the present application;

[0173] Figure 5 A schematic diagram of setting a manual mode and an automatic mode for a mobile phone provided in an embodiment of the present application;

[0174] Figure 6 A schematic diagram of a second switch on a mobile phone provided in an embodiment of the present application;

[0175] FIG. 7A to FIG. 7B Another schematic diagram of a manual mode and an automatic mode provided by an embodiment of the present application;

[0176] Figure 8 Another schematic diagram of setting manual mode and automatic mode for a mobile phone provided in an embodiment of the present application;

[0177] Fig. 9 A schematic diagram of a heat dissipation method according to an embodiment of the present application;

[0178] Fig.10 Another schematic diagram of a heat dissipation method according to an embodiment of the present application;

[0179] Figure 11 to Figure 12 Another schematic diagram of a system provided by an embodiment of the present application;

[0180] Figure 13 to Figure 14 Another schematic diagram of a heat dissipation method according to an embodiment of the present application;

[0181] Fig.15 A structural diagram of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0182] Below, some terms in the embodiments of the present application are explained to facilitate understanding by those skilled in the art.

[0183] The at least one involved in the embodiments of the present application includes one or more; wherein, more than one means greater than or equal to two. In addition, it should be understood that in the description of this specification, the words "first", "second", etc. are only used for the purpose of distinguishing the description, and cannot be understood as an explicit or implicit relative importance, nor can they be understood as an explicit or implicit order. For example, the first device and the second device do not represent the importance of the two or the order of the two, but are only for distinguishing the description. In the embodiments of the present application, "and / or" is only a description of the association relationship, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the objects associated before and after are in an "or" relationship.

[0184] References to "one embodiment" or "some embodiments" etc. described in this specification mean that a particular feature, structure or characteristic described in conjunction with the embodiment is included in one or more embodiments of the specification. Thus, the phrases "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. appearing in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0185] As used in this specification, the term “when” or “after” may be interpreted to mean “if” or “after” or “in response to determining that” or “in response to detecting that”, depending on the context. Similarly, the phrase “upon determining that” or “if (stated condition or event) is detected” may be interpreted to mean “if determining that” or “in response to determining that” or “upon detecting (stated condition or event)” or “in response to detecting (stated condition or event)”, depending on the context.

[0186] The heat dissipation method provided in the embodiment of the present application can be applied to the system. The system includes a first device and a second device. Among them, the first device is a device that needs to dissipate heat, and the second device is a device that dissipates heat for the first device. Exemplarily, the first device can be a portable electronic device such as a mobile phone, a tablet computer, a laptop computer, etc.; it can also be an office device such as a desktop computer, a printer, a projector; it can also be a household device such as a television. In short, the embodiment of the present application does not limit the specific type of the first device. In addition, the embodiment of the present application does not limit the form of the second device. Taking the first device as a mobile phone as an example, the second device can be a mobile phone heat dissipation case. Taking the first device as a laptop computer as an example, the second device can be a heat dissipation bracket, a heat dissipation pad, etc.

[0187] For ease of understanding, this article mainly uses the example that the first device is a mobile phone and the second device is a mobile phone heat dissipation case.

[0188] For example, see Figure 1 , is a schematic diagram of a system provided in an embodiment of the present application. The first device is a mobile phone, and the second device is a mobile phone heat dissipation shell. The mobile phone heat dissipation shell includes a heat dissipation device. The heat dissipation device can be air-cooled, liquid-cooled, or other cooling types, which are not limited in the present embodiment of the application. When the mobile phone heat dissipation shell is installed on the mobile phone, the mobile phone can be cooled. The specific heat dissipation method will be described later.

[0189] Figure 2A FIG. 1 shows a schematic diagram of the structure of an electronic device. The electronic device may be, for example, a first device in a system, such as a mobile phone. Figure 2A As shown, the electronic device may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc. Figure 2A , the electronic device includes a radio transmitter 196. The radio transmitter 196 is used to transmit radio to wirelessly charge other devices.

[0190] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). Among them, different processing units may be independent devices or integrated into one or more processors. Among them, the controller may be the nerve center and command center of the electronic device. The controller may generate an operation control signal according to the instruction opcode and the timing signal to complete the control of fetching and executing instructions. A memory may also be set in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a high-speed cache memory. The memory may store instructions or data that the processor 110 has just used or circulated. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated access is avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.

[0191] Among them, the processor 110 can execute the process of the heat dissipation method provided in the embodiment of the present application. For example, the processor 100 can read the temperature through the temperature sensor 180J, and control the radio transmitter 196 to start or stop transmitting radio according to the temperature. For example, when the temperature is higher than the first threshold, the radio transmitter 196 is controlled to start transmitting radio. When the temperature is lower than the second threshold, the radio transmitter 196 is controlled to stop transmitting radio. The specific implementation process of the heat dissipation method will be described later.

[0192] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0193] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface, thereby realizing the touch function of the electronic device 100.

[0194] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to achieve communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.

[0195] The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface to realize the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.

[0196] The UART interface is a universal serial data bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.

[0197] The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate via the DSI interface to implement the display function of the electronic device 100.

[0198] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.

[0199] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.

[0200] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0201] The wireless communication function of the electronic device can be implemented by antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modulation and demodulation processor and baseband processor. Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antenna. For example, antenna 1 can be reused as a diversity antenna of a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0202] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to electronic devices. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0203] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to electronic devices. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0204] In some embodiments, antenna 1 of the electronic device is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, so that the electronic device can communicate with the network and other devices through wireless communication technology.

[0205] The display screen 194 is used to display the display interface of the application, etc. The display screen 194 includes a display panel. In some embodiments, the electronic device may include one or more display screens 194.

[0206] The electronic device 100 can realize the shooting function through the ISP, the camera 193, the video codec, the GPU, the display screen 194 and the application processor, etc. Among them, the ISP is used to process the data fed back by the camera 193.

[0207] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, and the software code of at least one application program, etc. The data storage area can store data (such as images, videos, etc.) generated during the use of the electronic device, etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash memory, etc.

[0208] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as pictures and videos are stored in the external memory card.

[0209] The electronic device can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0210] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.

[0211] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to external speaker scenarios such as hands-free calls through one or more speakers 170A.

[0212] The receiver 170B, also called a "earpiece", may be one or more and is used to convert an audio electrical signal into a sound signal. When the electronic device 100 receives a call or a voice message, the voice can be received by placing the receiver 170B close to the ear.

[0213] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals.

[0214] The earphone jack 170D is used to connect a wired earphone.

[0215] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be disposed on the display screen 194 .

[0216] The gyro sensor 180B can be used to determine the motion posture of the electronic device. In some embodiments, the angular velocity of the electronic device around three axes (i.e., x, y, and z axes) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for anti-shake shooting.

[0217] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.

[0218] The magnetic sensor 180D includes a Hall sensor. For example, the electronic device can use the magnetic sensor 180D to detect the opening and closing of the flip leather case. For another example, the electronic device can also use the Hall sensor to sense whether other devices are installed on the electronic device. Figure 2A For example, if the electronic device is a mobile phone, there is a magnetic sensor that can generate a magnetic field on the heat dissipation shell of the mobile phone. Then when the heat dissipation shell of the mobile phone is installed on the mobile phone, the Hall sensor in the mobile phone can sense the magnetic field generated by the magnetic sensor in the heat dissipation shell, and then sense the heat dissipation shell, so that the mobile phone can determine that the heat dissipation shell is in place. For example, after the Hall sensor senses the heat dissipation shell, it can send an instruction to the processor 110, and the processor 110 executes the process of the heat dissipation method provided in the embodiment of the present application. The specific implementation process of the heat dissipation method will be described later.

[0219] The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device in various directions (generally three axes), and can detect the magnitude and direction of gravity when the electronic device is stationary.

[0220] Distance sensor 180F, used to measure distance. Electronic devices can measure distance through infrared or laser.

[0221] The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device emits infrared light outward through the light emitting diode. The electronic device uses the photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device. When insufficient reflected light is detected, the electronic device can determine that there is no object near the electronic device.

[0222] The ambient light sensor 180L is used to sense the brightness of the ambient light. The electronic device can adaptively adjust the brightness of the display screen 194 according to the sensed brightness of the ambient light.

[0223] The fingerprint sensor 180H is used to collect fingerprints.

[0224] The temperature sensor 180J is used to detect the temperature.

[0225] The touch sensor 180K is also called a "touch panel". The touch sensor 180K can be set on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen". The touch sensor 180K is used to detect a touch operation on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.

[0226] The bone conduction sensor 180M can obtain a vibration signal. In some embodiments, the bone conduction sensor 180M can obtain a vibration signal of a vibrating bone block of a human vocal part.

[0227] The button 190 includes a power button, a volume button, etc. The button 190 can be a mechanical button. It can also be a touch button. The electronic device can receive the button input and generate a key signal input related to the user settings and function control of the electronic device. The motor 191 can generate a vibration prompt. The motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. The indicator 192 can be an indicator light, which can be used to indicate the charging status, power changes, messages, missed calls, notifications, etc. The SIM card interface 195 is used to connect the SIM card. The SIM card can be inserted into the SIM card interface 195, or pulled out from the SIM card interface 195 to achieve contact and separation with the electronic device.

[0228] Understandably, Figure 2A The components shown do not constitute a specific limitation on the electronic device. The electronic device in the embodiment of the present invention may include Figure 2A In addition, Figure 2AThe combination / connection relationship between the components can also be adjusted and modified.

[0229] Figure 2B The software structure diagram of the electronic device provided in the embodiment of the present application. The electronic device may be the first device in the system, such as a mobile phone. Figure 2B As shown, the software structure of the electronic device can be a layered structure, and the electronic device can be a terminal in the system. The layered architecture is to divide the software into several layers, and each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. The layered architecture can be, for example, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application is based on the layered architecture. The system is taken as an example to illustrate the software structure of the electronic device. The system is divided into five layers, from top to bottom: application layer, application framework layer, Android runtime and system library, kernel layer and hardware layer.

[0230] like Figure 2B As shown, the application layer can include a series of application packages, such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video and other applications.

[0231] The application framework layer provides application programming interface (API) and programming framework for the applications in the application layer. The application framework layer includes some predefined functions. Figure 2B As shown, the application framework layer may include a heat dissipation shell control system. The heat dissipation shell control system includes a temperature control service and a power management service. Among them, the temperature control service is used to read the temperature and control the heat dissipation state of the heat dissipation shell according to the temperature. For example, the heat dissipation state includes starting heat dissipation or stopping heat dissipation. The power management service is used to control the opening or closing of the wireless reverse charging function. When the wireless reverse charging function is turned on, wireless charging is performed to other devices (for example, the heat dissipation shell). When the wireless reverse charging function is turned off, charging to other devices (for example, the heat dissipation shell) is stopped. Optionally, Figure 2B In the example above, the temperature control service and the power management service are located in the application framework layer. It is understandable that the temperature control service and the power management service can also be located in other layers, such as the system library or the application layer. The temperature control service and the power management service can be in the same layer or in different layers. The specific execution steps of the temperature control service and the power management service will be described in the following section. Fig.13 and Fig.14 Introduced in.

[0232] It is understandable that although Figure 2BAlthough not shown in the figure, the application framework layer may also include a content provider, a view system, a phone manager, a resource manager, a notification manager, etc. The content provider is used to store and obtain data and make the data accessible to the application. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc. The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, etc. The view system can be used to build applications. The display interface can be composed of one or more views. For example, a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures. The phone manager is used to provide communication functions for electronic devices. For example, the management of call status (including connected, hung up, etc.). The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, etc. The notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify the completion of downloads, message reminders, etc. The notification manager can also be a notification that appears in the top status bar of the system in the form of an icon or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.

[0233] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system. The core library consists of two parts: one is the function that the Java language needs to call, and the other is the Android core library. The application layer and the application framework layer run in the virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform object life cycle management, stack management, thread management, security and exception management, and garbage collection.

[0234] The system library can include multiple functional modules. For example: surface manager, media library, 3D graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc. Among them, the surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications. The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc. The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing, etc. The 2D graphics engine is a drawing engine for 2D drawing.

[0235] The kernel layer is the layer between hardware and software. The kernel layer includes at least wifi driver, display driver, camera driver, audio driver, sensor driver, etc.

[0236] The hardware layer includes one or more cameras, and may also include other hardware such as sensors, displays, radio transmitters, etc. Among them, the radio transmitter is used to transmit radio to charge other devices.

[0237] Understandably, Figure 2B The software structure shown does not constitute a specific limitation on the software structure of the electronic device. The software structure of the electronic device in the embodiment of the present invention may include: Figure 2B More or fewer modules in Figure 2B More or fewer layers, or a layer contains more than Figure 2B More or fewer modules, etc. In addition, Figure 2B The combination / connection relationship between modules can also be adjusted and modified.

[0238] The technical solution provided by the embodiments of the present application is described below in conjunction with the accompanying drawings.

[0239] As the functions of mobile phones are improved, people use mobile phones more and more frequently. If you use a mobile phone for a long time, the mobile phone will heat up. The heating of the mobile phone will not only affect the user experience, but also affect the service life of the mobile phone. There are mobile phone heat dissipation devices on the market, such as mobile phone heat dissipation shells (hereinafter referred to as heat dissipation shells). A switch is provided on the heat dissipation shell to control the heat dissipation shell to start or stop heat dissipation. For example, when the switch on the heat dissipation shell is pressed by the user, the heat dissipation shell starts to dissipate heat. When the switch on the heat dissipation shell is popped up, the heat dissipation shell stops dissipating heat. It should be understood that this method requires a switch to be set on the heat dissipation shell, so the volume of the heat dissipation shell will be relatively large. After the heat dissipation shell is installed on the mobile phone, it is more difficult for the user to hold the mobile phone, and the convenience of operating the mobile phone is reduced. In addition, the heat dissipation shell is located on the back of the mobile phone, and the user operates on the front of the mobile phone. If you need to click the switch on the heat dissipation shell, you need to turn it over to operate, which is more cumbersome.

[0240] In the embodiment of the present application, the mobile phone can control the heat dissipation shell to start or stop heat dissipation. In this way, there is no need to set a switch on the heat dissipation shell, which can be made thin and light. Moreover, since the mobile phone can control the heat dissipation shell, the user does not need to turn the phone over to operate, which is more convenient.

[0241] One possible implementation method is to set a switch on the mobile phone, which is used to control the heat dissipation shell to start or stop heat dissipation. It should be noted that the switch mentioned in this article can be an icon on the foreground of the mobile phone, or it can be a switch set in the background of the mobile phone (for example, a piece of software code in the background of the mobile phone can realize the function of the switch). If it is a switch in the background of the mobile phone, in order to facilitate user operation, an icon can be displayed in the foreground, which can be used to control the switch. For example, when the icon is in a certain state, the switch is turned on, and when the icon is in another state, the switch is turned off. For the sake of ease of understanding, the following mainly takes the example of the switch being an icon in the foreground of the mobile phone as an example.

[0242] For example, see Figure 3 , the mobile phone displays interface 301. Interface 301 includes icon 302. Icon 302 is a switch for controlling the heat dissipation shell to start or stop heat dissipation. It should be noted that, Figure 3 In the example, interface 301 is an interface of the control center in the mobile phone. In fact, it can also be other interfaces, such as an interface in the setting application in the mobile phone, which is not limited in the embodiment of the present application. Optionally, icon 302 can always exist in interface 301, or, when the mobile phone is not connected to the heat dissipation shell, icon 302 is not displayed in interface 301, and after the mobile phone is connected to the heat dissipation shell, icon 302 is displayed in interface 301. Among them, the way in which the mobile phone controls the heat dissipation shell to start or stop heat dissipation through the switch (i.e., icon 302) includes the following method A or method B.

[0243] In mode A, the user manually triggers a switch (ie, icon 302 ) to control the heat dissipation housing to start or stop heat dissipation.

[0244] For example, see Figure 4A (a), the mobile phone displays interface 301. Interface 301 includes icon 302. At this time, icon 302 is in a closed state (for example, icon 302 is not highlighted, and highlighting includes highlighting, bolding, etc.). When the mobile phone receives an operation (for example, clicking) on ​​icon 302, it displays the following Figure 4A (b) interface 303, in which icon 302 is in an on state (for example, icon 302 is highlighted, and highlighting includes highlighting, bolding, etc.). After icon 302 is in the on state, the mobile phone background controls the heat dissipation shell to start heat dissipation. Figure 4A In (b), when the mobile phone receives an operation (e.g., click) on icon 302, it returns to Figure 4A In the interface 301 of (a), the icon 302 is in the off state. After the icon 302 is in the off state, the mobile phone background controls the heat dissipation shell to stop heat dissipation.

[0245] In mode B, the mobile phone can automatically control the switch (ie, icon 302) to control the heat dissipation shell to start or stop heat dissipation.

[0246] For example, the mobile phone automatically controls the switch (i.e., icon 302) according to the temperature of the mobile phone to control the heat dissipation shell to start or stop heat dissipation. Figure 4B (a), the mobile phone displays interface 301. Interface 301 includes icon 302. At this time, icon 302 is in a closed state. When the mobile phone determines that the temperature of the mobile phone is higher than the first threshold, the display is as follows: Figure 4B (b) interface 303. Icon 302 in interface 303 is turned on, so the mobile phone controls the heat dissipation shell to start dissipating heat. When the mobile phone background detects that the local temperature is less than the second threshold, the front desk returns to Figure 4B (a) interface 301, icon 302 is in the closed state. At this time, the mobile phone controls the heat dissipation shell to stop heat dissipation. The second threshold is less than or equal to the first threshold.

[0247] Please compare the corresponding Figure 4A Corresponding to method B Figure 4B . Figure 4A In the example, the transition from (a) to (b) or from (b) to (a) is manually performed by the user. Figure 4B In the example, the movement from (a) to (b) or from (b) to (a) is automatically controlled by the mobile phone. Figure 4B The method does not require manual operation by the user, and the operation is convenient. In addition, the mobile phone controls the start and stop of the heat dissipation shell according to the temperature of the mobile phone, which can achieve timely heat dissipation without wasting power. For example, when the temperature of the mobile phone is too high, the heat dissipation shell is controlled to start heat dissipation and reduce the temperature of the mobile phone in time. When the temperature of the mobile phone is low, the heat dissipation shell is controlled to stop heat dissipation to avoid wasting power.

[0248] Optionally, the mobile phone can only use method A (for example, the factory default configuration can only use method A), or only use method B (for example, the factory default configuration can only use method B), or both method A and method B can be used, and the user can set the mobile phone to use method A or method B. For the convenience of description, method A can be called manual mode, and method B can be called automatic mode. The user can set the mobile phone to use manual mode or automatic mode. For example, when the first device receives a first operation for setting the automatic mode, the automatic mode is used. When the first device receives a second operation for setting the manual mode, the manual mode is used. For example, see Figure 5 (a), the mobile phone displays an interface 501, and the interface 501 includes an automatic mode option 502. Optionally, the interface 501 may be an interface in a mobile phone setting application or other interfaces, which is not limited in the embodiment of the present application. It should be noted that, Figure 5 In (a), option 502 is in an unselected state. When the mobile phone receives an operation for option 502 (i.e., the first operation), the following is displayed: Figure 5 (b) Interface 503. Option 502 in interface 503 is in a selected state, so the mobile phone uses the automatic mode, that is, mode B. Figure 5 In (b), when the mobile phone receives an operation for option 502 (i.e., the second operation), it returns Figure 5 In the interface 501 of (a), option 502 is selected, so the mobile phone uses the manual mode, namely mode A. As mentioned above, in mode B, the mobile phone uses the first threshold and the second threshold in the process of controlling the switch (i.e., icon 302) according to the temperature of the mobile phone. The first threshold and the second threshold can be set by the user. For example, Figure 5 (b) Interface 503 may also display a line 504 and a slider 505 for setting the first threshold, as well as prompt information, such as "automatically dissipate heat when the temperature exceeds the first threshold." After the user understands the function of the first threshold according to the prompt information, the user may change the position of the slider 505 on line 504. For example, the further to the left the position is, the lower the first threshold is, and the further to the right the position is, the higher the first threshold is. Figure 5(b), the interface 503 may also display a line 506 and a slider 507 for setting the second threshold, as well as prompt information, such as "the temperature is lower than the second threshold and the heat dissipation stops automatically". After the user knows the role of the second threshold according to the prompt information, the position of the slider 507 on the line 506 can be changed. For example, the more to the left, the lower the second threshold, and the more to the right, the higher the second threshold. It can be understood that the second threshold is less than or equal to the first threshold, so after the user sets the first threshold, the mobile phone can display a mark 508 on the line 506 to indicate that the slider 507 can only move within the left range of the mark 508 on the line 506 and cannot exceed the mark 508. In short, the user can set the temperature threshold (first threshold) for turning on the trigger switch (i.e., icon 302) and the temperature threshold (second threshold) for turning off the trigger switch (i.e., icon 302) by himself, which provides a better experience.

[0249] When the phone is set to manual mode, the automatic mode is disabled. The automatic mode is disabled, which can be understood as the phone not executing the processing flow of the automatic mode, such as not detecting the temperature and controlling the start or stop of the heat sink according to the temperature. Figure 4B In automatic mode, the state of the switch (i.e., icon 302) changes with the temperature. When the temperature is higher than the first threshold, icon 302 is in the on state, and when the temperature is lower than the second threshold, icon 302 is in the off state. Therefore, from the mobile phone UI, the automatic mode is disabled, that is, the state of the switch (i.e., icon 302) does not change with the temperature. In this case, icon 302 can only be triggered manually by the user, that is, using manual mode.

[0250] When the phone is set to automatic mode, the manual mode can still be used. In short, the manual mode has a higher priority than the automatic mode. Once the phone is set to manual mode, the automatic mode cannot be used, but after the phone is set to automatic mode, the manual mode can be used. In this way, user needs can be prioritized. The following are two examples.

[0251] Example 1: After the mobile phone determines that the temperature is greater than the first threshold, it automatically starts the switch (i.e., icon 302) to control the heat dissipation shell to start heat dissipation. The user can manually turn off the switch to control the heat dissipation shell to stop heat dissipation. A possible scenario is that after the mobile phone is set to automatic mode, the user is using the mobile phone for call services (e.g., voice or video calls). When the call time is long, the mobile phone will heat up. When the mobile phone detects that the temperature is higher than the first threshold, it automatically triggers the switch (e.g., icon 302) to start to control the heat dissipation shell to start heat dissipation. Since the heat dissipation shell will generate noise after it is started, it will affect the call quality. At this time, the user can manually turn off the switch to control the heat dissipation shell to stop heat dissipation. It should be noted that in this scenario, in order not to affect the call quality, the user manually turns off the switch to stop heat dissipation, but the temperature of the mobile phone does not drop, so the mobile phone will continue to execute the automatic mode processing flow, that is, the mobile phone will automatically turn on the switch again to start heat dissipation. In order to avoid this situation, the mobile phone can disable the automatic mode after detecting that the user manually stops heat dissipation. For example, after the mobile phone detects that the user manually turns off the switch, it can control the switch to remain in the off state within the first preset time, that is, the mobile phone will not control the state of the switch according to the temperature within the first preset time, that is, the state of the switch does not change with the change of temperature. When the mobile phone detects that the first condition is met, the disablement of the automatic mode is canceled. Among them, canceling the disablement of the automatic mode means that the mobile phone background can execute the processing flow of the automatic mode, and the state of the switch (i.e., icon 302) can change with the change of temperature in the mobile phone UI. Among them, the first condition includes at least one of the following:

[0252] (1) The disabling time reaches a first preset time. That is, after the mobile phone has disabled the automatic mode for a period of time, the disabling of the automatic mode will be automatically cancelled.

[0253] (2) The phone is restarted. That is, after the phone is restarted, the automatic mode is disabled.

[0254] (3) The heat sink is reinstalled. That is, after the user reinstalls the heat sink, the automatic mode is disabled.

[0255] (4) The user manually controls the switch to enter the on state, and the switch remains in the on state for a third preset time period.

[0256] Taking (4) above as an example, after the mobile phone automatically turns on the switch according to the temperature, the user manually turns off the switch. If the switch remains on for a third preset time (for example, 2 minutes, 5 minutes), it automatically switches to automatic mode. For example, the mobile phone uses automatic mode by default. Suppose the user is currently using the mobile phone to make a call. During the call, the temperature of the mobile phone rises, and the background uses the automatic mode to control the switch to turn on to start heat dissipation. Suppose the user manually turns off the switch due to noise, then the switch will remain off. Suppose the user manually turns on the switch after ending the call. At this time, the switch will remain on for a period of time (the third preset time). After the third preset time, the mobile phone enters automatic mode again.

[0257] Example 2: After the mobile phone determines that the temperature is lower than the second threshold value and automatically turns off the switch (i.e., icon 302) to control the heat dissipation shell to stop heat dissipation, the user can manually turn on the switch to control the heat dissipation shell to start heat dissipation. A possible scenario is that the temperature of the mobile phone has dropped below the second threshold value, so the mobile phone automatically turns off the switch (i.e., icon 302) to stop heat dissipation. However, due to some reasons (such as the second threshold value is high), the user still feels hot. At this time, the user can manually turn on the switch (i.e., icon 302) to continue heat dissipation. It should be noted that in this scenario, after the mobile phone automatically turns off the switch, the user turns on the switch, but the temperature of the mobile phone is already lower than the second threshold value, so the mobile phone will continue to execute the processing flow of the automatic mode, that is, the mobile phone will automatically turn off the switch again to stop heat dissipation. In order to avoid this situation, the mobile phone can disable the automatic mode after detecting that the user manually turns on the heat dissipation. For example, after the mobile phone detects that the user manually turns on the switch, the switch can be controlled to remain in the turned-on state within the second preset time length, that is, within the second preset time length, the mobile phone will not control the state of the switch according to the temperature, that is, the state of the switch does not change with the change of temperature. When the mobile phone detects that the second condition is met, the disablement of the automatic mode is cancelled. The second condition includes at least one of the following:

[0258] (1) The disabled time reaches a second preset time.

[0259] (2) Restart your phone.

[0260] (3) Reinstall the heat sink.

[0261] (4) The user manually controls the switch to enter the off state, and the switch remains in the off state for a period of time that reaches a fourth preset period of time.

[0262] In the above embodiment, the mobile phone has a switch (e.g., icon 302) that can be used to control the heat dissipation shell to start or stop heat dissipation. In specific implementation, the mobile phone controls the heat dissipation shell to start or stop heat dissipation through the switch (e.g., icon 302), which can include the following method 1 or method 2.

[0263] Method 1: The mobile phone and the heat dissipation shell can communicate. The mobile phone can send control information to the heat dissipation shell, and the control information is used to control the heat dissipation shell to start or dissipate heat. For example, when the switch is in the on state, the mobile phone sends control information 1 to the heat dissipation shell, and control information 1 is used to indicate the start of heat dissipation. When the switch is in the off state, the mobile phone sends control information 2 to the heat dissipation shell, and control information 2 is used to indicate the stop of heat dissipation. Among them, whether the switch is in the on state or the off state can be manually controlled by the user (that is, the manual mode mentioned above) or automatically controlled by the mobile phone according to the temperature (that is, the automatic mode mentioned above).

[0264] Method 2: The mobile phone can charge the heat dissipation shell. For example, when the switch is in the on state, the mobile phone starts to charge the heat dissipation shell, and the heat dissipation shell starts to dissipate heat. When the switch is in the off state, the mobile phone stops charging the heat dissipation shell, and the heat dissipation shell stops dissipating heat. Among them, whether the switch is in the on state or the off state can be manually controlled by the user (that is, the manual mode in the previous text) or automatically controlled by the mobile phone according to the temperature (that is, the automatic mode in the previous text). It should be noted that the charging in this article can be wireless charging or wired charging. For example, when the mobile phone and the heat dissipation shell are wiredly connected, the charging method can be wired charging. The mobile phone and the heat dissipation shell are wirelessly connected (for example, connected by magnetic induction), and the charging method can be wireless charging. Taking wireless charging as an example, the mobile phone needs to have a wireless reverse charging function. The so-called wireless reverse charging refers to the mobile phone as a power source to wirelessly charge other devices. The heat dissipation shell acts as a radio receiving end to receive the wireless charging of the mobile phone.

[0265] By comparing the first method and the second method, it can be seen that in the first method, the switch is used to control the device to send control information to the heat dissipation shell to control the heat dissipation shell to start or stop heat dissipation. In the second method, the switch is used to control the device to start or stop charging the heat dissipation shell to control the heat dissipation shell to start or stop heat dissipation. Therefore, if the mobile phone uses the first method, the switch can be icon 302. If the mobile phone adopts the second method, the switch can be icon 302, or it can also be a switch for controlling the wireless reverse charging function of the mobile phone. For example, see Figure 6 , the mobile phone displays interface 601. Interface 601 includes icon 602. Icon 602 is used to control the opening or closing of the wireless reverse charging function of the mobile phone. It should be noted that, Figure 6 In the example, the interface 601 is the interface of the control center in the mobile phone. In fact, it can also be other interfaces, such as an interface in the setting application in the mobile phone, which is not limited in the embodiment of the present application. Among them, the mobile phone controls the way of starting or stopping the charging of the heat dissipation shell by the switch (i.e., icon 602), including the following method C or method D.

[0266] Mode C: The user manually triggers the switch (i.e., icon 602) to start or stop the wireless reverse charging function of the mobile phone. When the wireless reverse charging function is started, the mobile phone charges the heat dissipation shell. When the wireless reverse charging function is stopped, the mobile phone stops charging the heat dissipation shell. For example, see Fig. 7A (a), the mobile phone displays interface 601. Interface 601 includes icon 602. At this time, icon 602 is in a closed state. When the mobile phone receives an operation (e.g., click) on icon 602, it displays the following Fig. 7A (b) Interface 603. Icon 602 in interface 603 is turned on. The mobile phone starts the wireless reverse charging function and starts charging the heat dissipation shell. After the heat dissipation shell is charged, it starts to dissipate heat. Fig. 7A In (b), when the mobile phone receives an operation on icon 602, it returns to Fig. 7A (a) interface 601. Icon 602 is in the on state. The mobile phone turns off the wireless reverse charging function and stops charging the heat dissipation shell. The heat dissipation shell stops dissipating heat after charging stops.

[0267] Mode D: The mobile phone automatically controls the switch (i.e., icon 602) to control the mobile phone to start or stop charging the heat dissipation case. For example, the mobile phone automatically controls the switch (i.e., icon 602) according to the temperature of the mobile phone. For example, see Figure 7B (a), the mobile phone displays an interface 601. The interface 601 includes an icon 602. The icon 602 is in a closed state. When the mobile phone detects that the temperature is higher than the first threshold, the display is as follows: Figure 7B (b) Interface 603. Icon 602 in interface 603 is in an on state. At this time, the wireless reverse charging function is started in the background of the mobile phone to start charging the heat dissipation shell. Figure 7B In (b), when the mobile phone detects that the temperature is lower than the second threshold, the foreground returns to Figure 5 (a) interface 501. Icon 602 is in a closed state. The wireless reverse charging function is turned off in the background of the mobile phone, and charging to the heat dissipation shell is stopped.

[0268] Please compare the corresponding Fig. 7A Corresponding to method D Figure 7B . Fig. 7A In the example, the transition from (a) to (b) or from (b) to (a) is manually performed by the user. Figure 7B In the example above, the transition from (a) to (b) or from (b) to (a) is automatically controlled by the mobile phone background. Figure 7BIn this method, there is no need for manual operation by the user, and the operation is convenient. Moreover, the mobile phone controls whether to charge the heat dissipation shell according to the temperature of the mobile phone, and then controls the heat dissipation shell to start or stop heat dissipation, so that the heat dissipation can be timely and power consumption is not wasted. For example, when the temperature of the mobile phone is too high, the heat dissipation shell starts to charge, so that the heat dissipation shell starts to dissipate heat and the temperature of the mobile phone is reduced in time. For another example, when the temperature of the mobile phone drops, the heat dissipation shell stops charging, so that the heat dissipation shell stops dissipating heat, avoiding power consumption.

[0269] Optionally, the mobile phone can only use mode C (for example, the factory default configuration can only use mode C), or only use mode D (for example, the factory default configuration can only use mode D), or both mode C and mode D can be used. The user can set the mobile phone to use mode C or mode D. For the convenience of description, mode C can be called manual mode and mode D can be called automatic mode. The user can set the mobile phone to use manual mode or automatic mode. For example, see Figure 8 (a), the mobile phone displays interface 801. Interface 801 includes option 802 for automatic mode. Optionally, interface 801 may be an interface in a mobile phone setting application or other interface, which is not limited in the present embodiment. It should be noted that when option 802 is not selected, it is in the automatic mode state. Figure 8 In the state (a), the mobile phone uses manual mode, namely mode C. Figure 8 In (a), when the mobile phone receives an operation for option 802, the following is displayed: Figure 8 (b) interface 803. Option 802 in interface 803 is selected. Therefore, the mobile phone uses the automatic mode, that is, mode D. Optionally, Figure 8 In (b), the mobile phone may also display a line 804 and a slider 805 for setting the first threshold, as well as a prompt message, such as "automatically charging when the temperature exceeds the first threshold." After the user understands the function of the first threshold according to the prompt message, the user may change the position of the slider 805 on the line 804. For example, the further to the left the position is, the lower the first threshold is, and the further to the right the position is, the higher the first threshold is. Optionally, Figure 8 In (b), the mobile phone may also display a line 806 and a slider 807 for setting the second threshold, as well as a prompt message, such as "charging automatically stops when the temperature is lower than the second threshold". After the user knows the function of the second threshold according to the prompt message, the position of the slider 807 on the line 806 can be changed. For example, the further to the left the position is, the lower the second threshold is, and the further to the right the position is, the higher the second threshold is. It can be understood that the second threshold is less than or equal to the first threshold, so after the user sets the first threshold, the mobile phone can display a mark 808 on the line 806 to indicate that the slider 807 can only move within the range to the left of the mark 808 on the line 806 and cannot exceed the mark 808.

[0270] When the mobile phone is set to manual mode (i.e., mode C), the automatic mode is disabled. When the mobile phone is set to automatic mode (i.e., mode D), the manual mode can still be used. That is, the priority of the manual mode is higher than that of the automatic mode. For this part, please refer to Example 1 and Example 2 above. You only need to replace the icon 302 in Example 1 and Example 2 above with icon 602. For the sake of brevity, it will not be repeated.

[0271] It should be noted that when a mobile phone has a wireless reverse charging function, it can charge not only the heat dissipation case but also other devices. One possible implementation method is that when a mobile phone is connected to another device, it can determine whether the device is a heat dissipation case. If it is a heat dissipation case, it can determine whether the current mode is set to automatic mode or manual mode. If it is manual mode, use method C, and if it is automatic mode, use method D. If the device connected to the mobile phone is not a heat dissipation case, the mobile phone only uses the manual mode and does not use the automatic mode. The implementation process of the mobile phone determining whether the device connected to it is a heat dissipation case will be described later. Fig. 9 Introduced in.

[0272] The following embodiments are mainly described by taking the automatic mode as an example.

[0273] See also Fig. 9 , is a flow chart of a heat dissipation method provided in an embodiment of the present application. The method can be applied to a system, such as Figure 1 The system shown. Fig. 9 , the process includes:

[0274] S901, a first device is connected to a second device.

[0275] Among them, "connection" includes: wired connection or wireless connection. Alternatively, "connection" may also include: connection through Bluetooth, Near Field Communication (NFC), etc. Alternatively, "connection" may also include: connection through magnetic induction. For example, a Hall sensor is provided on the first device, and a magnetic device is provided on the second device. When the Hall sensor on the first device senses the magnetic device on the second device, it is determined that the first device is connected to the second device. In this way, S301 can be refined into the first device sensing the second device. Among them, the principle of electromagnetic induction between the Hall sensor and the magnetic device is not introduced in detail in the embodiments of the present application.

[0276] Optionally, after the first device is connected to the second device, the first device may output prompt information 1, which is used to prompt the second device that the connection is successful or that the second device is in place. For example, prompt information 1 may be vibration, ringing, or may also be information such as text and / or pictures displayed on the display screen of the first device.

[0277] Optionally, after the first device is connected to the second device, the device model of the second device may be read, and the first device determines whether the second device is a heat dissipation device according to the device model. If so, S902 is executed.

[0278] S902, the first device detects the temperature of the device.

[0279] Exemplarily, a temperature sensor is provided in the first device for detecting the temperature of the device.

[0280] Optionally, before S902, the first device may further perform the step of determining whether the current mode of the first device is the automatic mode. If it is the automatic mode, perform S903; otherwise, the manual mode may be used. Figure 5 or Figure 8 The interface shown determines whether the current mode of the first device is the automatic mode, which will not be repeated here. The manual mode has been described above and will not be repeated.

[0281] S903, the first device controls the heat dissipation state of the second device according to the temperature, where the heat dissipation state includes: starting heat dissipation, stopping heat dissipation, and heat dissipation power.

[0282] For example, S903 may include any one of the following (1) to (4):

[0283] (1) When the temperature is higher than a first threshold, the first device controls the second device to start heat dissipation.

[0284] (2) When the temperature is lower than a second threshold, the first device controls the second device to stop heat dissipation.

[0285] The second threshold is less than or equal to the first threshold. The first threshold may be a default setting of the first device system or a user-specified setting. The second threshold may be a default setting of the first device system or a user-specified setting. For the method of user-specifying the first threshold and the second threshold, please refer to the above text. Figure 5 or Figure 8 , which will not be repeated here.

[0286] As mentioned above, a switch may be set on the first device, and the switch is used to control the second device to start or stop heat dissipation. Therefore, S903 may include: the first device controls the switch to be in an on state or a off state according to the temperature. When the switch is in the on state, the second device is controlled to start heat dissipation. When the switch is in the off state, the second device is controlled to stop heat dissipation. The switch may be Figure 3 Icon 302 in, or, Figure 6Assuming that the switch is icon 302, S903 can adopt the above method one, that is, the first device and the second device can communicate. For example, when the temperature of the first device is higher than the first threshold, the first device controls the switch to be in the on state, and the first device sends control information 1 to the second device, and control information 1 is used to indicate the start of heat dissipation. When the temperature of the first device is lower than the second threshold, the first device controls the switch to be in the off state, and the first device sends control information 2 to the second device, and control information 2 is used to indicate the stop of heat dissipation. Assuming that the switch is icon 602, the first device can adopt the above method two, that is, the first device can charge the second device. For example, when the temperature of the first device is higher than the first threshold, the first device controls the switch (i.e., icon 602) to be in the on state, the first device starts to charge the second device, and the second device starts to dissipate heat. When the temperature of the first device is lower than the second threshold, the first device controls the switch to be in the off state, the first device stops charging the second device, and the second device stops dissipating heat.

[0287] (3) After the second device starts to dissipate heat, the first device controls the heat dissipation power of the second device to be positively correlated with the temperature.

[0288] In an embodiment of the present application, after the first device controls the second device to start dissipating heat, it can also control the heat dissipation power of the second device to change with the temperature according to the temperature. For example, after the second device starts to dissipate heat, the temperature of the first device gradually decreases, and correspondingly, the heat dissipation power of the second device also decreases, which can save power consumption. For another example, after the second device starts to dissipate heat, the temperature of the first device may rise again (for example, the user uses the first device to play games, watch videos, make phone calls, etc.). At this time, the first device can control the heat dissipation power of the second device to increase to cool down as soon as possible. Optionally, the heat dissipation power of the second device is positively correlated with the temperature of the first device, including: the heat dissipation power of the second device changes linearly or nonlinearly with the temperature of the first device. Taking linear change as an example, when the temperature of the first device rises, the heat dissipation power of the second device increases in real time, and when the temperature of the first device decreases, the heat dissipation power of the second device decreases in real time. Taking nonlinear changes as an example, when the temperature of the first device increases by [0 degrees, 5 degrees), the heat dissipation power of the second device remains unchanged. When the temperature of the first device increases by greater than or equal to 5 degrees, the heat dissipation power of the second device increases by ΔP; or, when the temperature of the first device decreases by [0 degrees, 5 degrees), the heat dissipation power of the second device remains unchanged. When the temperature of the first device decreases by greater than or equal to 5 degrees, the heat dissipation power of the second device decreases by ΔP.

[0289] If the first device uses the above method 1 (i.e., the first device and the second device can communicate), the first device can send control information to the second device to control the second device to increase or decrease the heat dissipation power. For example, when the temperature of the first device decreases, control information 3 is sent to the second device, and control information 3 is used to instruct to reduce the heat dissipation power. When the temperature of the first device increases, control information 4 is sent to the second device, and control information 4 is used to instruct to increase the heat dissipation power.

[0290] If the first device uses the second method above (that is, the first device can charge the second device), then the first device can adjust the charging power of the second device according to the temperature to adjust the heat dissipation power of the second device. Among them, the charging power is positively correlated with the temperature, and the heat dissipation power of the second device is positively correlated with the charging power. For example, when the temperature of the first device decreases, the first device reduces the charging power to the second device to reduce the heat dissipation power of the second device. When the temperature of the first device increases, the first device increases the charging power to the second device to increase the heat dissipation power of the second device. Exemplarily, the charging power is positively correlated with the temperature of the first device, including: the charging power changes linearly or nonlinearly with the temperature of the first device. Similarly, the heat dissipation power of the second device is positively correlated with the charging power, including: the heat dissipation power of the second device changes linearly or nonlinearly with the charging power. Taking nonlinear change as an example, the first device stores the corresponding relationship between temperature and charging power, as shown in the following table:

[0291] temperature Charging power Above 30 degrees Power 1 20-30 degrees Power 2, less than power 1 Below 10-20 degrees Power 3, less than power 2 Below 10 degrees 0

[0292] In this way, the first device can determine the corresponding charging power according to the current temperature. When the temperature is different, the charging power is different, and the heat dissipation power of the second device is different.

[0293] See also Fig.10 , is another flow chart of the heat dissipation method provided in one embodiment of the present application. Fig.10 It can be understood that Fig. 9 Refinement, for example, Fig.10 S1003 to S1009 are Fig. 9 A refinement of S903 in . Fig.10 , the process includes:

[0294] S1001, a first device is connected to a second device.

[0295] S1002, the first device detects the temperature of the device.

[0296] Among them, the implementation principle of S1001-S1002 is the same as Fig. 9 The implementation principles of S901-S902 are the same and will not be repeated.

[0297] S1003, the first device determines whether the temperature is higher than the first threshold. If so, execute S1004, otherwise, S1002 may be executed immediately or after waiting for a first time period, S1002 may be executed. The first time period may be a pre-set temperature detection cycle, such as 30 seconds, and the specific time is not limited in the embodiment of the present application.

[0298] S1004, the first device determines whether the remaining power is greater than the first power. If so, execute S1005, otherwise, output prompt information 2, prompt information 2 is used to prompt whether to charge the second device. When the first device receives the confirmation instruction, execute S1005.

[0299] The first power level may be pre-set or user-specified, and is not limited in the embodiment of the present application.

[0300] Optionally, S1004 may be executed or not, so it is indicated by a dotted line in the figure. If S1004 is executed, that is, the first device charges the second device when the remaining power is sufficient, the first device can be prevented from automatically shutting down due to low power. If S1004 is not executed, that is, when the first device determines that the temperature is higher than the first threshold, it directly charges the second device regardless of the remaining power, which can ensure that the first device dissipates heat in time and prevent the mobile phone from overheating and causing damage to the device.

[0301] S1005: The first device starts charging the second device.

[0302] Optionally, before the first device charges the second device, it may first determine the charging power adapted to the second device to prevent the second device from being burned out due to excessively high charging power, or the second device from being unable to start in time due to excessively low charging power. Among them, the first device determines the charging power adapted to the second device, which may include: the first device determines the device model of the second device, and determines the charging power according to the device model of the second device. For example, a corresponding relationship is stored in the first device, and the corresponding relationship includes the charging power corresponding to different device models. After the first device determines the device model of the second device, it may determine the charging power corresponding to the device model of the second device based on the corresponding relationship. After determining the charging power, the first device charges the second device based on the charging power. In the foregoing, there are multiple ways for the first device to determine the device model of the second device, for example, the first device sends a query instruction to the second device, the query instruction is used to query the device model of the second device, the first device receives the query result returned by the second device, and the query result is used to indicate the device model of the second device.

[0303] In some embodiments, after the first device starts charging the second device, the charging power of the first device charging the second device may change with the temperature of the first device. For example, when the temperature of the first device decreases, the charging power decreases, and correspondingly, the heat dissipation power of the second device decreases. For example, when the temperature of the first device increases, the charging power increases, and correspondingly, the heat dissipation power of the second device increases.

[0304] S1006: The second device starts to dissipate heat.

[0305] S1007, the first device determines whether the temperature is lower than the second threshold. If so, execute S1008, otherwise, return to continue to execute S1007, for example, return to immediately execute S1007 or wait for a second time period before executing S1007. The second time period may be pre-set. The second time period may be the same as or different from the first time period.

[0306] S1008: The first device stops charging the second device.

[0307] S1009: The second device stops heat dissipation.

[0308] As described above, a switch (e.g., icon 602) is provided on the first device. The first device can control whether to charge the second device through the switch. Therefore, when the first device detects that the temperature is higher than the first threshold, the control switch is in the on state, and the first device starts to charge the second device so that the second device starts to dissipate heat. When the first device detects that the temperature is lower than the second threshold, the control switch is in the off state, and the first device stops charging the second device so that the second device stops dissipating heat.

[0309] It is understandable that, during the process of charging the second device from the first device, the remaining power of the first device gradually decreases. Optionally, before S1007, if the first device detects that the remaining power is less than the second power, it can output prompt information 3 to prompt the user whether to continue charging. If a confirmation instruction is received, charging continues until the temperature is lower than the second threshold value. If a cancellation instruction is received, charging the second device is stopped. Among them, the second power is less than or equal to the first power, and the specific value is not limited in the embodiment of this application.

[0310] See also Fig.11 , is another schematic diagram of a system provided in an embodiment of the present application. Fig.11 The first device includes a first device and a second device. The first device includes: a Hall sensor, a temperature sensor, a radio transmitter, and a heat sink control system. The functions of the Hall sensor, the radio transmitter device, and the temperature sensor can be found in the previous section. Figure 2A . Please refer to the previous section for the function of the heat sink control system. Figure 2B .like Fig.11The second device includes a radio receiver, a heat sink and a magnetic device. The magnetic device is used to generate a changing magnetic field, which will be sensed by the Hall sensor. The radio receiving device is used to receive radio. The heat sink is used to dissipate heat. In simple terms, Fig.11 In the system shown, when the second device is mounted on the first device, the magnetic device in the second device is sensed by the Hall sensor in the first device. The heat sink control system in the first device reads the temperature through the temperature sensor. When the heat sink control system determines that the temperature is higher than the first threshold, it notifies the radio transmitter to start powering. After the radio receiver in the second device receives the radio, it drives the radiator to dissipate heat. When the heat sink control system determines that the temperature is lower than the second threshold, it notifies the radio transmitter to stop powering. The radiator in the second device stops dissipating heat.

[0311] See also Fig.12 , is another schematic diagram of a system provided in an embodiment of the present application. Fig.12 It can be understood that Fig.11 For example, Fig.12 Yes Fig.11 The heat dissipation shell control system in the first device is refined. The heat dissipation shell control system includes a power management service and a temperature control service. Among them, the temperature control service is used to control the power management service according to the temperature. The power management service is used to manage the start and stop of the radio transmitter.

[0312] The following is Fig.12 Taking the system shown in FIG. 1 as an example, the processing flow of the first device using the automatic mode and the manual mode is described respectively. When the first device uses the automatic mode, the corresponding flow is as follows Fig.13 When the first device uses manual mode, the corresponding process is as follows Fig.14 .

[0313] See also Fig.13 , is another flow chart of a heat dissipation method provided in an embodiment of the present application. Fig.13 It can be understood as Fig.12 The information interaction process between each device in the first device and each device in the second device. For example, Fig.13 yes Fig.12 In the system shown, the first device uses the processing flow of the automatic mode. Fig.13 , the process includes:

[0314] S1300: The user sets the automatic mode through the UI of the first device. The process of the user setting the automatic mode on the UI is as follows: Figure 8 , which is not described in detail here.

[0315] S1301: The UI in the first device notifies the power management service that the current mode is the automatic mode.

[0316] S1302: The Hall sensor in the first device senses the magnetic device in the second device.

[0317] S1303: The Hall sensor in the first device notifies the power management service that the second device is in place.

[0318] Optionally, S1301 may also be executed after S1303. For example, after the first device executes S1303, the power management service queries through the UI whether the current mode is the automatic mode. If so, S1304 is executed.

[0319] S1304: The power management service in the first device notifies the temperature control service that the current mode is the automatic mode.

[0320] S1305: The temperature control service in the first device reads the temperature through the temperature sensor.

[0321] S1306: When the temperature control service in the first device determines that the temperature is higher than the first threshold, it notifies the power management service to start charging.

[0322] S1307: The power management service in the first device controls the radio transmitting device to start charging.

[0323] S1308: The radio transmitting device in the first device charges the radio receiving device in the second device.

[0324] S1309: The radio receiving device in the second device drives the heat dissipation device to start heat dissipation.

[0325] S1310: The heat dissipation device in the second device starts to dissipate heat.

[0326] S1311: The temperature control service in the first device reads the temperature again through the temperature sensor.

[0327] Among them, the time interval between S1311 and S1305 can be a pre-set temperature detection cycle, and the specific time is not limited in the embodiment of the present application.

[0328] S1312: When the temperature control service in the first device determines that the temperature is lower than the second threshold, it notifies the power management service to stop charging.

[0329] S1313: The power management service in the first device controls the radio transmitting component to stop charging.

[0330] S1314: The radio transmitting device in the first device stops charging the radio receiving device in the second device.

[0331] S1315: The radio receiving device in the second device stops driving the heat dissipation device.

[0332] S1316: The heat dissipation device in the second device stops dissipating heat.

[0333] See also Fig.14 , is another flow chart of a heat dissipation method provided in an embodiment of the present application. Fig.14 It can be understood as Fig.12 The information interaction process between each device in the first device and each device in the second device. For example, Fig.14 yes Fig.12 The first device in the system shown uses the processing flow of the manual mode. Fig.14 , the process includes:

[0334] S1400: The user sets the manual mode on the UI of the first device. The process of the user setting the manual mode on the UI is as described above. Figure 8 , which is not described in detail here.

[0335] S1401: The UI in the first device notifies the power management service that the current mode is the manual mode.

[0336] S1402: The Hall sensor in the first device senses the magnetic device in the second device.

[0337] S1403: The Hall sensor in the first device notifies the power management service that the second device is in place.

[0338] Optionally, S1401 may be executed after S1403. For example, after the first device executes S1403, the power management service queries through the UI that the current mode is the manual mode, and then executes S1404.

[0339] S1404: The user manually turns on the wireless charging function on the UI of the first device. For example, Fig. 7A In (a), the user clicks icon 602.

[0340] S1405: The UI of the first device notifies the power management service to start charging.

[0341] S1406: The power management service in the first device controls the radio transmitting component to start charging.

[0342] S1407: The radio transmitting device in the first device charges the radio receiving device in the second device.

[0343] S1408: The radio receiving device in the second device drives the heat dissipation device to start heat dissipation.

[0344] S1409: The heat dissipation device in the second device starts to dissipate heat.

[0345] S1410: The user manually turns off the wireless charging function on the UI of the first device. For example, Fig. 7A In (b), the user clicks icon 602.

[0346] S1411: The UI of the first device notifies the power management service in the first device to stop charging.

[0347] S1412: The power management service in the first device controls the radio transmitting component to stop charging.

[0348] S1413: The radio transmitting device in the first device stops charging the radio receiving device in the second device.

[0349] S1414: The radio receiving device in the second device stops driving the heat dissipation device to dissipate heat.

[0350] S1415: The heat dissipation device in the second device stops dissipating heat.

[0351] Fig.15 The electronic device 1500 provided in the embodiment of the present application is a schematic diagram of the structure. The electronic device 1500 may be the first device or the second device mentioned above. Fig.15 As shown, the electronic device 1500 may include: one or more processors 1501; one or more memories 1502; a communication interface 1503, and one or more computer programs 1504, and the above-mentioned components may be connected via one or more communication buses 1505. The one or more computer programs 1504 are stored in the above-mentioned memories 1502 and are configured to be executed by the one or more processors 1501, and the one or more computer programs 1504 include instructions. For example, when the electronic device 1500 is the first device in the above text, the instructions can be used to execute the relevant steps of the first device in the corresponding embodiment above, for example, Figure 9-10 For another example, when the electronic device 1500 is the second device in the foregoing text, the instruction can be used to execute the relevant steps of the second device in the corresponding embodiment above, for example, Figure 9-10 The communication interface 1503 is used to implement the communication between the electronic device 1500 and other devices. For example, the communication interface can be a transceiver.

[0352] In the embodiments provided by the present application, the method provided by the embodiments of the present application is introduced from the perspective of an electronic device (such as a mobile phone, etc.) as an execution subject. In order to implement the functions in the method provided by the embodiments of the present application, the electronic device may include a hardware structure and / or a software module, and implement the above functions in the form of a hardware structure, a software module, or a hardware structure plus a software module. Whether a function of the above functions is executed in the form of a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application and design constraints of the technical solution.

[0353] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc. In the absence of conflict, the solutions of the above embodiments can be used in combination.

[0354] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0355] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0356] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0357] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0358] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A heat dissipation method, characterized in that: The method comprises: The first device is connected to the second device, and the second device is a device for heat dissipation; The first device detects the temperature of the local device; The first device controls a heat dissipation state of the second device according to the temperature, where the heat dissipation state includes at least one of starting heat dissipation, stopping heat dissipation, and heat dissipation power.

2. The method according to claim 1, characterized in that: The first device controls the heat dissipation state of the second device according to the temperature, including: When the temperature is higher than a first threshold, the first device controls the second device to start heat dissipation; or, When the temperature is lower than a second threshold, the first device controls the second device to stop heat dissipation; or, After the second device starts to dissipate heat, the first device controls the heat dissipation power to be positively correlated with the temperature; The second threshold is less than or equal to the first threshold.

3. The method according to claim 1, characterized in that The first device controls the heat dissipation state of the second device according to the temperature, including: The first device controls a charging state of the first device charging the second device according to the temperature, and when the charging state changes, a heat dissipation state of the second device changes accordingly; The charging status includes at least one of starting charging, stopping charging, and charging power.

4. The method according to claim 3, characterized in that The first device controls, according to the temperature, a charging state of the first device charging the second device, including: When the temperature is higher than a first threshold, the first device starts charging the second device; or, When the temperature is lower than a second threshold, the first device stops charging the second device; or, After the first device charges the second device, the first device controls the charging power to be positively correlated with the temperature; The second threshold is less than or equal to the first threshold.

5. The method according to claim 3 or 4, characterized in that: When the charging state changes, the heat dissipation state of the second device changes accordingly, including: When the first device starts to charge the second device, the second device starts to dissipate heat; or, When the first device stops charging the second device, the second device stops dissipating heat; or, After the first device charges the second device, the heat dissipation power of the second device is positively correlated with the charging power.

6. The method according to claim 4, characterized in that The first device includes a switch, and the switch is used to control a wireless reverse charging function of the first device, where the wireless reverse charging function is a function for the first device to wirelessly charge other devices; When the temperature is higher than a first threshold, the first device starts charging the second device, including: When the temperature is higher than a first threshold, the first device controls the switch to be in an on state, and the first device starts to charge the second device; When the temperature is lower than a second threshold, the first device stops charging the second device, including: When the temperature is lower than a second threshold, the first device controls the switch to be in a closed state, and the first device stops charging the second device.

7. The method according to claim 6, characterized in that After the first device controls the switch to be in an on state, the method further includes: When the first device receives an operation for closing the switch, the first device controls the switch to be in a closed state, and the first device stops charging the second device; and / or, After the first device controls the switch to be in a closed state, the method further includes: When the first device receives an operation for turning on the switch, the switch is controlled to be in an on state, and the first device starts to charge the second device.

8. The method according to claim 7, characterized in that After the first device receives an operation for closing the switch and controls the switch to be in a closed state, the method further includes: During a first preset time period, the switch remains in the closed state, and the state of the switch does not change with changes in the temperature of the first device.

9. The method according to claim 8, characterized in that The method further comprises: After the first device detects that a condition is met, the state of the switch is controlled according to the temperature of the first device; wherein the condition includes at least one of the following: The switch remains in the closed state for a period of time that reaches the first preset period of time; or, The first device is restarted; or, The first device reconnects to the second device; or, The first device detects that the user manually controls the switch to enter an on state, and the switch remains in the on state for a time period that reaches a third preset time period.

10. The method according to claim 7, characterized in that After the first device receives an operation for turning on the switch and controls the switch to be in an on state, the method further includes: During a second preset time period, the switch remains in the on state, and the state of the switch does not change with changes in the temperature of the first device.

11. The method according to claim 10, characterized in that The method further comprises: After the first device detects that a condition is met, the state of the switch is controlled according to the temperature of the first device; wherein the condition includes at least one of the following: The switch remains in the on state for a period of time that reaches the second preset period of time; or, The first device is restarted; or, The first device reconnects to the second device; or, The first device detects that the user manually controls the switch to enter an off state, and the time duration for which the switch remains in the off state reaches a fourth preset time duration.

12. The method according to any one of claims 1 to 11, characterized in that: After the first device is connected to the second device, the method further includes: The first device outputs first prompt information, where the first prompt information is used to prompt that the second device is in place.

13. The method according to any one of claims 4 to 12, characterized in that: Before the first device charges the second device, the method further includes: The first device determines that the current remaining power is greater than or equal to the first power.

14. The method according to any one of claims 4 to 12, characterized in that: Before the first device charges the second device, the method further includes: The first device determines that the current remaining power is less than the first power; The first device outputs second prompt information, where the second prompt information is used to prompt whether to charge the second device; The first device receives a confirmation instruction, where the confirmation instruction is used to instruct charging the second device.

15. The method according to any one of claims 4 to 14, characterized in that: Before the first device charges the second device, the method further includes: Determining, by the first device, a device model of the second device; The first device determines, according to the device model, a charging power suitable for the second device; The first device charges the second device, comprising: The first device charges the second device based on the charging power.

16. The method according to any one of claims 1 to 15, characterized in that: Before the first device detects the temperature of the local device, the method further includes: The first device receives a first operation, where the first operation is used to set an automatic mode, where the automatic mode is used to instruct the first device to control a heat dissipation state of the second device according to a temperature.

17. The method according to claim 16, characterized in that The method further comprises: The first device receives a second operation, where the second operation is used to set a manual mode, where the manual mode is used to instruct the first device to manually control a heat dissipation state of the second device; The first device controls a heat dissipation state of the second device according to a user operation.

18. The method according to any one of claims 2 to 17, characterized in that: The first threshold is a default setting of the first device system, or is specified by a user; The second threshold is a default setting of the first device system, or is specified by a user.

19. The method according to any one of claims 1 to 18, characterized in that: The first device is a mobile phone, and the second device is a mobile phone case.

20. A communication system, characterized in that: include: A first device and a second device; wherein the second device is a device for heat dissipation; The first device is used to connect to the second device and control the heat dissipation state of the second device according to the local temperature of the first device, and the heat dissipation state includes: starting heat dissipation, stopping heat dissipation, and heat dissipation power.

21. The system according to claim 20, characterized in that The first device is specifically used to: control the charging state of the first device charging the second device according to the temperature, and when the charging state changes, the heat dissipation state of the second device changes accordingly; wherein the charging state includes: at least one of: starting charging, stopping charging, and charging power.

22. The system according to claim 21, characterized in that The first device is specifically used for: When the temperature is higher than a first threshold, starting to charge the second device; or, When the temperature is lower than a second threshold, stopping charging the second device; or, After charging the second device, controlling the charging power to be positively correlated with the temperature; The second threshold is less than or equal to the first threshold.

23. The system according to claim 21 or 22, characterized in that The second device is specifically used for: When the second device starts charging, heat dissipation starts; or, When the second device stops charging, stops dissipating heat; or, After the second device starts charging, the heat dissipation power is positively correlated with the charging power.

24. The system according to claim 22, characterized in that The first device includes a switch, and the switch is used to control the wireless reverse charging function of the first device, and the wireless reverse charging function is a function of the first device wirelessly charging other devices; the first device is specifically used to: When the temperature is higher than a first threshold, the switch is controlled to be in an on state, and the first device starts to charge the second device; When the temperature is lower than a second threshold, the switch is controlled to be in a closed state, and the first device stops charging the second device.

25. The system according to claim 24, characterized in that The first device is further configured to: upon receiving an operation for closing the switch, control the switch to be in a closed state and stop charging the second device; and / or, The first device is further configured to: upon receiving an operation for turning on the switch, control the switch to be in an on state and start charging the second device.

26. An electronic device, characterized in that: include: a processor, a memory, and one or more programs; The one or more programs are stored in the memory, and the one or more programs include instructions, which, when executed by the processor, enable the electronic device to perform the method steps as described in any one of claims 1 to 19.

27. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store a computer program, and when the computer program is run on a computer, the computer is caused to execute the method according to any one of claims 1 to 19.

28. A computer program product, characterized in that The method comprises a computer program, which, when being run on a computer, causes the computer to execute the method according to any one of claims 1 to 19.