Environment temperature detection method and device, equipment and storage medium
By utilizing the temperature sensing element of the power supply device to detect the current temperature when the terminal device is connected to the power supply device in a cooled state, the problem of ambient temperature detection accuracy caused by the self-heating of the internal temperature sensing element of the terminal device is solved, and higher detection accuracy is achieved.
Patent Information
- Application Number
- CN202411018688.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-26
- Publication Date
- 2024-11-12
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The temperature sensing element inside the terminal device is affected by its own heat generation, resulting in poor accuracy in detecting ambient temperature.
The current temperature is detected by the temperature sensing element of the power supply device, and determined as the ambient temperature of the terminal equipment when it is in a cooled state.
It improves the accuracy of ambient temperature detection, ensuring that the detected temperature more accurately reflects the temperature of the environment in which the terminal equipment is located.
Smart Images

Figure CN118936669A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal technology, and in particular to an ambient temperature detection method, device, equipment and storage medium. Background Art
[0002] In the related art, in order to understand the ambient temperature of the terminal device, it is usually detected through a temperature sensing element inside the terminal device. However, it is found in practice that the temperature sensing element inside the terminal device is usually also affected by the heat generated by the terminal device itself, which leads to poor accuracy of the detected ambient temperature. Summary of the invention
[0003] The present application provides an ambient temperature detection method, device, equipment and storage medium, which can improve the detection accuracy of ambient temperature.
[0004] A first aspect of an embodiment of the present application provides an ambient temperature detection method, comprising:
[0005] When the terminal device is connected to the power supply device, receiving the current temperature sent by the power supply device;
[0006] When the power supply device is in a cooling state, the current temperature is determined as the ambient temperature of the environment in which the terminal equipment is located.
[0007] A second aspect of an embodiment of the present application provides an ambient temperature detection device, comprising:
[0008] A receiving unit, configured to receive a current temperature sent by the power supply device when the terminal device is connected to the power supply device;
[0009] The determining unit is used to determine the current temperature as the ambient temperature of the environment in which the terminal device is located when the power supply device is in a cooling state.
[0010] A third aspect of the embodiments of the present application provides a terminal device,
[0011] A memory storing executable program code;
[0012] and a processor coupled to the memory;
[0013] The processor calls the executable program code stored in the memory, and when the executable program code is executed by the processor, the processor implements the method disclosed in the first aspect of the embodiment of the present application.
[0014] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium having executable program code stored thereon. When the executable program code is executed by a processor, the method disclosed in the first aspect of the embodiment of the present application is implemented.
[0015] The fifth aspect of the embodiments of the present application discloses a computer program product. When the computer program product runs on a computer, the computer executes the method disclosed in the first aspect of the embodiments of the present application.
[0016] A sixth aspect of an embodiment of the present application discloses an application publishing platform, which is used to publish a computer program product. When the computer program product runs on a computer, the computer executes the method disclosed in the first aspect of the embodiment of the present application.
[0017] It can be seen from the above technical solutions that the embodiments of the present application have at least the following advantages:
[0018] When the terminal device is connected to the power supply device, the current temperature sent by the power supply device is received, and when the power supply device is in a cooling state, the current temperature sent by the power supply device is determined as the ambient temperature of the environment where the terminal device is located.
[0019] By implementing this method, since the current temperature sent by the power supply device is detected by the power supply device in a cooling state, it can more truly reflect the ambient temperature of the environment in which the terminal device is located. Therefore, the current temperature sent by the power supply device is determined as the ambient temperature of the environment in which the terminal device is located, which is beneficial to improving the detection accuracy of the ambient temperature. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 It is an application scenario diagram of the ambient temperature detection method disclosed in the embodiment of the present application;
[0021] Figure 2 It is a flow chart of the ambient temperature detection method disclosed in the embodiment of the present application;
[0022] Figure 3 is another flow chart of the ambient temperature detection method disclosed in the embodiment of the present application;
[0023] Figure 4 It is an interface diagram showing the first prompt information disclosed in the embodiment of the present application;
[0024] Figure 5 It is another flow chart of the ambient temperature detection method disclosed in the embodiment of the present application;
[0025] Figure 6 is an interface diagram showing the second prompt information disclosed in the embodiment of the present application;
[0026] Figure 7 It is a structural diagram of the ambient temperature detection device disclosed in the embodiment of the present application;
[0027] Figure 8 It is a structural diagram of the terminal device disclosed in the embodiment of the present application. DETAILED DESCRIPTION
[0028] The present application provides an ambient temperature detection method, device, equipment and storage medium, which can improve the detection accuracy of ambient temperature.
[0029] In order to make the technical personnel in the technical field better understand the scheme of the present application, the technical scheme in the embodiment of the present application will be described below in conjunction with the drawings in the embodiment of the present application. Obviously, the described embodiment is only a part of the embodiment of the present application, not all of the embodiments. Based on the embodiments in the present application, they should all fall within the scope of protection of the present application.
[0030] It should be noted that, in this application, words such as "exemplarily" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplarily" or "for example" in this application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplarily" or "for example" is intended to present related concepts in a specific way.
[0031] "At least one" means one or more, and "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c can mean: a, or b, or c, or a and b, or a and c, or b and c, or a, b and c, where a, b, c can be single or plural.
[0032] In an embodiment of the present application, the terminal device may include a general handheld screen electronic device, such as a mobile phone, a smart phone, a portable terminal, a terminal, a personal digital assistant (PDA), a portable multimedia player (Personal Media Player, PMP) device, a laptop computer, a notebook (Note Pad), a wireless broadband (Wireless Broadband, Wibro) terminal, a tablet computer (Personal Computer, PC), a smart PC and a car computer, etc.
[0033] Terminal devices may also include wearable devices. Wearable devices are portable electronic devices that can be worn directly on the user or integrated into the user's clothes or accessories. Wearable devices are not just hardware devices, but can also achieve powerful intelligent functions through software support, data interaction, and cloud server interaction, such as: computing function, positioning function, and alarm function. They can also be connected to mobile phones and various terminals. Wearable devices may include but are not limited to watches supported by the wrist (such as watches, wrists, etc.), shoes supported by the feet (such as shoes, socks, or other products worn on the legs), glasses supported by the head (such as glasses, helmets, headbands, etc.), and various non-mainstream product forms such as smart clothing, school bags, crutches, accessories, etc.
[0034] At present, the way for a terminal device to detect the ambient temperature of its environment is usually that the terminal device detects it through a temperature sensing element inside the terminal device. However, it is found in practice that when the terminal device is running under a high load (for example, running a high-power application, running multiple applications at the same time, or being attacked by malware), or during the charging process, the terminal device itself usually generates a lot of heat. Therefore, the temperature detected by the internal temperature sensing element of the terminal device is often affected by the heat of the terminal device itself, which leads to poor detection accuracy of the ambient temperature.
[0035] To solve this problem, the embodiments of the present application provide an ambient temperature detection method, device, equipment and storage medium, which can improve the detection accuracy of ambient temperature.
[0036] Below, the application scenarios corresponding to the ambient temperature detection method provided in the embodiment of the present application are first introduced.
[0037] See also Figure 1 , Figure 1 This is an illustration of an application scenario of the ambient temperature detection method disclosed in the embodiment of this application. Figure 1The application scenario shown includes a terminal device 10 and a power supply device 20. The power supply device 20 can be an external power supply or a built-in power supply, which is not limited in the embodiment of the present application. The power supply device 20 can be provided with a temperature sensing element, and the power supply device 20 can detect the temperature of the power supply device 20 through the temperature sensing element.
[0038] In the embodiment of the present application, the power supply device 20 can be an adapter, a mobile power supply, a charging head, etc., which is not limited in the embodiment of the present application.
[0039] The connection between the power supply device 20 and the terminal device 10 can be wired or wireless, which is not limited in the embodiment of the present application.
[0040] In addition, it should be noted that when the terminal device 10 is connected to the power supply device 20, the power supply device 20 can transmit current signals and / or voltage signals to the terminal device 10 to charge the terminal device 10, and data can also be transmitted between the power supply device 20 and the terminal device 10.
[0041] When the terminal device 10 is connected to the power supply device 20, the power supply device 20 can collect the current temperature of the power supply device 20 through the temperature sensing element and send the current temperature to the terminal device 10. The terminal device 10 receives the current temperature sent by the power supply device 20, and when the power supply device 20 is in a cooling state, the current temperature sent by the power supply device 20 is determined as the ambient temperature of the environment in which the terminal device 10 is located. Since the current temperature sent by the power supply device 20 is detected by the power supply device 20 in the cooling state, it can more truly reflect the ambient temperature of the environment in which the terminal device 10 is located. Therefore, the terminal device 10 determines the current temperature sent by the power supply device 20 as the ambient temperature of the environment in which the terminal device 10 is located, which is conducive to improving the detection accuracy of the ambient temperature.
[0042] The following is an introduction to the ambient temperature detection method provided in the embodiment of the present application in conjunction with the specific implementation manner.
[0043] See also Figure 2 , Figure 2 1 is a flow chart of the ambient temperature detection method disclosed in the embodiment of the present application. Figure 2 The ambient temperature detection method shown may include the following steps:
[0044] 201. When the terminal device is connected to a power supply device, the terminal device receives a current temperature sent by the power supply device.
[0045] In the embodiment of the present application, the terminal device and the power supply device can be connected wirelessly or wired, which is not limited in the embodiment of the present application.
[0046] In the case where the terminal device and the power supply device are connected by wire, the current charging mode corresponding to the terminal device is wired charging, and the connection between the terminal device and the power supply device may mean that the terminal device and the power supply device are connected via a data cable, that is, the terminal device is connected to the data interface at one end of the data cable, and the power supply device is connected to the data interface at the other end of the data cable.
[0047] When the terminal device is wirelessly connected to the power supply device, the terminal device currently corresponds to wireless charging, wherein the wireless charging method may include but is not limited to any of the following: electromagnetic induction, magnetic field resonance, and radio wave.
[0048] In the case where the wireless charging method is electromagnetic induction, the power supply device will generate an alternating magnetic field after being powered on. Correspondingly, the connection between the terminal device and the power supply device may refer to the terminal device detecting the alternating magnetic field.
[0049] In the case where the wireless charging method is a magnetic field resonance type, the power supply device can generate a changing magnetic field after the power is turned on. Correspondingly, the connection between the terminal device and the power supply device may mean that the terminal device detects an electromagnetic field with a changing frequency greater than a frequency threshold.
[0050] In the case where the wireless charging method is a radio wave type, the power supply device will emit microwaves outward after being powered on. Correspondingly, the connection between the terminal device and the power supply device may mean that the terminal device receives the microwaves emitted by the power supply device.
[0051] In an embodiment of the present application, the current temperature in step 201 may be the current temperature of the power supply device itself. It is understandable that the power supply device may be provided with a temperature sensing element, and the power supply device may detect the current temperature of the power supply device itself through the temperature sensing element thereon.
[0052] In some embodiments, the temperature sensing element on the power supply device may include but is not limited to any of the following: a thermocouple sensor, a thermistor sensor, a resistance temperature detector, an IC temperature sensor, etc.
[0053] It should be noted that when the terminal device and the power supply device are wirelessly connected, the distance between the terminal device and the power supply device is less than the preset distance threshold to ensure that the current temperature detected by the power supply device can reflect the ambient temperature of the environment in which the terminal device is located.
[0054] In some embodiments, the power supply device sends the current temperature to the terminal device. The power supply device may actively send the current temperature to the terminal device, or the power supply device may send the current temperature to the terminal device upon receiving a temperature acquisition request sent by the terminal device. This is not limited to the embodiments of the present application.
[0055] It should be noted that the following embodiments mainly introduce that the power supply device sends the current temperature of the power supply device to the terminal device when receiving a temperature acquisition request sent by the terminal device.
[0056] 202. When the power supply device is in a cooling state, the terminal device determines the current temperature sent by the power supply device as the ambient temperature of the environment in which the terminal device is located.
[0057] In the embodiment of the present application, the cooling state may refer to a state in which the self-heating temperature of the power supply device is less than or equal to the target temperature threshold. It is understandable that the temperature difference between the current temperature detected by the power supply device in the cooling state and the ambient temperature is less than or equal to the preset difference threshold, and the temperature difference between the temperature of the power supply device in the cooling state and the ambient temperature is small. For example, the cooling state may be a state in which the power supply device has not yet charged the terminal device, or may be a state in which the terminal device is charged for a short period of time, etc.
[0058] Based on this, in order to ensure that the current temperature sent by the power supply device can truly reflect the ambient temperature of the environment in which the terminal device is located, after the terminal device receives the current temperature sent by the power supply device, the terminal device can also determine whether the power supply device is in a cooling state, and when it is determined that the power supply device is in a cooling state, the current temperature sent by the power supply device is determined as the ambient temperature of the environment in which the terminal device is located.
[0059] It should be noted that the manner in which the terminal device determines whether the power supply device is in a cooling state will be introduced in the following embodiments and will not be described in detail here.
[0060] In some embodiments, after step 202, the terminal device may further output the ambient temperature so that the user can know the ambient temperature of the environment where the terminal device is located in a timely manner.
[0061] In an embodiment of the present application, the terminal device may output the ambient temperature in a manner that includes but is not limited to: the terminal device outputs the ambient temperature through a speaker of the terminal device; or the terminal device outputs the ambient temperature through a display screen of the terminal device.
[0062] By implementing the above method, when the terminal device is connected to the power supply device, it receives the current temperature sent by the power supply device, and when the power supply device is in a cooling state, the current temperature sent by the power supply device is determined as the ambient temperature of the environment in which the terminal device is located. Since the current temperature sent by the power supply device is detected by the power supply device in the cooling state, it can more truly reflect the ambient temperature of the environment in which the terminal device is located. Therefore, the terminal device determines the current temperature sent by the power supply device as the ambient temperature of the environment in which the terminal device is located, which is conducive to improving the detection accuracy of the ambient temperature.
[0063] In practice, it is found that the charging speed of the terminal device is usually reduced due to the excessive temperature of the terminal device. However, in addition to the heat generated by the terminal device itself, the temperature of the terminal device is also affected by the ambient temperature of the environment in which the terminal device is located. That is, the reason for the reduction in the charging speed of the terminal device is not only the heat generated by the terminal device itself, but also the ambient temperature of the environment in which the terminal device is located. Based on this, after step 202, the terminal device can also determine whether the ambient temperature of its environment affects the charging speed of the terminal device. Figure 3 and Figure 5 Make an introduction.
[0064] See also Figure 3 , Figure 3 FIG. 1 is another flow chart of the ambient temperature detection method disclosed in the embodiment of the present application. Figure 3 The ambient temperature detection method shown may include the following steps:
[0065] 301. When the terminal device is connected to a power supply device, the terminal device receives a current temperature sent by the power supply device.
[0066] It should be noted that, for an introduction to the connection between the terminal device and the power supply device, please refer to the description below step 201, which will not be repeated here.
[0067] In some embodiments, before receiving the current temperature sent by the power supply device, the terminal device may also send a temperature acquisition request to the power supply device, and the power supply device sends the current temperature of the power supply device to the terminal device in response to the temperature acquisition request.
[0068] In an embodiment of the present application, the terminal device may send a temperature acquisition request to the power supply device with or without a trigger condition, which is not limited in the embodiment of the present application.
[0069] When the terminal device sends a temperature acquisition request to the power supply device under a triggering condition, the triggering condition may include but is not limited to any of the following:
[0070] Case 1: The power supply device is in a cooling state.
[0071] It can be understood that when connected to the power supply device, the terminal device can first determine whether the power supply device is in a cooling state, and when it is determined that the power supply device is in a cooling state, send a temperature acquisition request to the power supply device, which can avoid the terminal device obtaining the current temperature of the power supply device when it is not cooling down, which is beneficial to reduce the invalid power consumption of the terminal device.
[0072] It should be noted that the uncooled state may refer to a state where the self-heating temperature of the power supply device is greater than the target temperature threshold, and the temperature difference between the temperature of the power supply device in the uncooled state and the ambient temperature is large. For example, the uncooled state may be a state where the power supply device has started to charge the terminal device, or may be a state where the terminal device has been charged for a long period of time, etc.
[0073] In some embodiments, the terminal device may determine whether the power supply device is in a cooling state in the following ways, including but not limited to:
[0074] Method 1: The terminal device receives charging information sent by the power supply device, and the charging information may include but is not limited to at least one of the following: the duration of the last charging, the interval between the end time of the last charging and the current time, and the historical temperature of the power supply device when the last charging ended; and, when the charging information meets the preset information condition, determining that the power supply device is in a cooling state, and when the charging information meets the non-preset information condition, determining that the power supply device is in a non-cooling state.
[0075] In an embodiment of the present application, the duration of the last charge may refer to the duration of the last charge, the interval between the end time of the last charge and the current time may refer to the time interval between the end time of the last charge and the current time, and the historical temperature of the power supply device at the end of the last charge may refer to the temperature of the power supply device at the end time of the last charge.
[0076] In some embodiments, the charging information may be actively sent by the power supply device to the terminal device, or the power supply device may send the charging information to the terminal device in response to an information acquisition request sent by the terminal device after receiving the information acquisition request. This embodiment of the present application does not limit this.
[0077] By implementing this method, the terminal device determines whether the power supply device is in a cooling state according to the received charging information sent by the power supply device, thereby improving the detection accuracy of the current state of the power supply device.
[0078] In the embodiment of the present application, when the charging information includes the duration of the last charge, the charging information satisfies the preset information condition, which may include: the duration of the last charge is less than or equal to the first duration threshold.
[0079] When the charging information includes the interval duration between the last charging end time and the current time, the charging information satisfies the preset information condition, which may include: the interval duration between the last charging end time and the current time is greater than or equal to the first interval duration threshold.
[0080] When the charging information includes the historical temperature of the power supply device at the end of the last charging, the charging information satisfies the preset information condition, which may include: the historical temperature of the power supply device at the end of the last charging is less than or equal to the first temperature threshold.
[0081] When the charging information includes the duration of the last charge and the interval duration between the end time of the last charge and the current time, the charging information satisfies the preset information conditions, which may include: the duration of the last charge is less than or equal to the first duration threshold, and the interval duration between the end time of the last charge and the current time is greater than or equal to the first interval duration threshold.
[0082] When the charging information includes the interval duration between the last charging end time and the current time and the historical temperature of the power supply device when the last charging end time was completed, the charging information satisfies the preset information conditions, which may include: the interval duration between the last charging end time and the current time is greater than or equal to the first interval duration threshold, and the historical temperature of the power supply device when the last charging end time was less than or equal to the first temperature threshold.
[0083] Method 2: The terminal device receives status information sent by the power supply device, identifies the status information, and determines that the power supply device is in a cooling state when the status information is first status information, and determines that the power supply device is in a non-cooling state when the status information is second status information.
[0084] In some embodiments, the state information may include but is not limited to at least one of the following: numbers, letters, and special characters. For example, the first state information is "1" and the second state information is "0", or the first state information is "#" and the second state information is "@".
[0085] It is understandable that, before sending the status information to the terminal device, the power supply device may also determine whether the power supply device is in a cooling state according to the charging information.
[0086] It should be noted that the way in which the power supply device determines whether it is in a cooling state can be referred to in the above-mentioned method 1, in which the terminal device determines whether the power supply device is in a cooling state, and will not be repeated here.
[0087] By implementing this method, the terminal device determines whether the power supply device is in a cooling state based on the status information sent by the power supply device, that is, the specific judgment operation on the current state of the power supply device is performed by the power supply device, which is beneficial to reducing the device power consumption of the terminal device.
[0088] Case 2: The current charging protocol of the terminal device is the target charging protocol, wherein the target charging protocol indicates that the terminal device and the power supply device support a target charging mode, and the charging speed corresponding to the target charging mode is greater than a speed threshold.
[0089] It can be understood that when connected to the power supply device, the terminal device can first determine whether the current charging protocol of the terminal device is the target charging protocol, and when it is determined that the current charging protocol of the terminal device is the target charging protocol, send a temperature acquisition request to the power supply device, that is, the terminal device requests the current temperature of the power supply device from the power supply device in the target charging mode to obtain the ambient temperature, so that the terminal device can accurately determine whether the real reason for the charging current limiting during charging in the target charging mode is that the ambient temperature is too high.
[0090] Case 3: The power supply device is in a cooling state, and the current charging protocol of the terminal device is the target charging protocol.
[0091] It is understandable that when connected to the power supply device, the terminal device first determines whether the power supply device is in a cooling state, and determines whether the current charging protocol of the terminal device is the target charging protocol, and when it is determined that the power supply device is in a cooling state and the current charging protocol of the terminal device is the target charging protocol, a temperature acquisition request is sent to the power supply device. In this way, it is not only possible to avoid obtaining the current temperature of the power supply device in an uncooled state, which is conducive to reducing the ineffective power consumption of the terminal device, but also convenient for the terminal device to accurately determine whether the real reason for the charging current limit is the excessively high ambient temperature during the charging process in the target charging mode.
[0092] 302. When the power supply device is in a cooling state, the terminal device determines the current temperature sent by the power supply device as the ambient temperature of the environment in which the terminal device is located.
[0093] It should be noted that, when there is no trigger condition for the terminal device to send a temperature acquisition request to the power supply device, or when there is a trigger condition for the terminal device to send a temperature acquisition request to the power supply device, but the trigger condition does not include that the power supply device is in a cooling state, before step 302, the terminal device may also determine whether the power supply device is in a cooling state, and if it is determined that the power supply device is in a cooling state, continue to execute step 302.
[0094] It should be noted that, regarding the manner in which the terminal device determines whether the power supply device is in a cooling state, please refer to the above-mentioned related introduction, which will not be repeated here.
[0095] 303. When the ambient temperature is greater than the first ambient temperature threshold, the terminal device reduces the charging current and / or charging voltage provided by the power supply device and outputs a first prompt message, which is used to prompt that the charging speed is reduced because the ambient temperature is greater than the first ambient temperature threshold.
[0096] In the embodiment of the present application, the first ambient temperature threshold may be pre-set in the terminal device. The first ambient temperature threshold may be obtained through a large number of experiments and is used to determine whether to perform high temperature charging current limiting.
[0097] Exemplarily, the first ambient temperature threshold may be 40 degrees, 45 degrees, or 50 degrees, etc.
[0098] In some embodiments, the terminal device reduces the charging current and / or charging voltage provided by the power supply device, including but not limited to the following methods:
[0099] The terminal device determines a first temperature difference between the ambient temperature and a first ambient temperature threshold, and determines a first current difference and / or a first voltage difference according to the first temperature difference, and obtains a first target current by subtracting the first current difference from the charging current currently provided by the power supply device, and / or obtains a first target voltage by subtracting the first voltage difference from the charging voltage currently provided by the power supply device, and controls the power supply device to provide the first target current and / or the first target voltage to the terminal device;
[0100] It can be understood that the degree of decrease in the charging current and / or charging voltage provided by the power supply providing device is determined based on the temperature difference between the ambient temperature and the first ambient temperature threshold, that is, at two different ambient temperatures both greater than the first ambient temperature threshold, the degree of decrease in the charging current and / or charging voltage provided by the power supply providing device may be different, thereby achieving differentiated charging current limiting.
[0101] or,
[0102] The terminal device obtains the target current by subtracting the preset current difference from the charging current currently provided by the power supply device, and / or obtains the target voltage by subtracting the preset voltage difference from the charging voltage currently provided by the power supply device, and controls the power supply device to provide the target current and / or target voltage to the terminal device.
[0103] It should be noted that the preset current difference is a preset and unique current drop value, and the preset voltage difference is a preset and unique voltage drop value, that is, at two different ambient temperatures that are both greater than the first ambient temperature threshold, the degree of decrease in the charging current and / or charging voltage provided by the power supply device is the same. In this way, the amount of calculation can be reduced, which is beneficial to reducing the device power consumption of the terminal device.
[0104] In some embodiments, the terminal device may output the first prompt information in a manner including but not limited to at least one of the following:
[0105] The terminal device outputs the first prompt information through the speaker;
[0106] The terminal device outputs the first prompt information through the display screen of the terminal device.
[0107] For example, the display interface of the first prompt information can refer to the following Figure 4 ,like Figure 4 The display interface shown includes a display area 401, and the display area 401 is used to display the first prompt information.
[0108] In some embodiments, when the first prompt information is output through a speaker, the first prompt information may be output a preset number of times, which may be 2 times, 3 times, or 3 times, etc.
[0109] In some embodiments, when the first prompt information is output through the display screen, the display duration of the first prompt information may be a target duration threshold, which may be 1 minute, 3 minutes, 5 minutes, etc.
[0110] The above embodiments mainly introduce the situation of charging current limiting when the ambient temperature is too high, but it is found in practice that the ambient temperature is too low and usually leads to charging current limiting of the terminal device. Based on this, the terminal device can also preset a second ambient temperature threshold, and after step 303, determine whether the ambient temperature is less than or equal to the second ambient temperature threshold, and when the ambient temperature is less than or equal to the second ambient temperature threshold, the terminal device reduces the charging current and / or charging voltage provided by the power supply device, and outputs a third prompt information. The third prompt information is used to prompt that the charging speed is reduced because the ambient temperature is less than or equal to the second ambient temperature threshold, so that the user can promptly know that the charging current limiting of the terminal device is caused by the low ambient temperature.
[0111] It should be noted that the second ambient temperature threshold may be pre-set in the terminal device. The second ambient temperature threshold may be obtained through a large number of experiments and is an ambient temperature value used to determine whether to perform low-temperature charging current limiting.
[0112] By implementing the above method, the terminal device can receive the current temperature sent by the power supply device when connected to the power supply device, and when the power supply device is in a cooling state, determine the current temperature sent by the power supply device as the ambient temperature of the environment in which the terminal device is located. Since the current temperature sent by the power supply device is detected by the power supply device in the cooling state, it can more truly reflect the ambient temperature of the environment in which the terminal device is located. Therefore, the terminal device determines the current temperature sent by the power supply device as the ambient temperature of the environment in which the terminal device is located, which is conducive to improving the detection accuracy of the ambient temperature.
[0113] Furthermore, after obtaining the ambient temperature of the terminal device, the terminal device can also determine whether the ambient temperature is greater than the first ambient temperature threshold, and when the ambient temperature is greater than the first ambient temperature threshold, reduce the charging current and / or charging voltage provided by the power supply device, and output a first prompt message for prompting that the charging speed is reduced due to the ambient temperature being greater than the first ambient temperature threshold, so that the user promptly knows that the charging current limit of the terminal device is caused by the excessively high ambient temperature. In addition, the terminal device determines whether the current limit is caused by the excessively high ambient temperature by comparing the ambient temperature with the first ambient temperature threshold, which simplifies the judgment step and is conducive to further improving the real-time nature of the high-temperature current limit prompt.
[0114] See also Figure 5 , Figure 5 FIG. 1 is another flow chart of the ambient temperature detection method disclosed in the embodiment of the present application. Figure 5 The ambient temperature detection method shown may include the following steps:
[0115] 501. When the terminal device is connected to a power supply device, the terminal device receives a current temperature sent by the power supply device.
[0116] 502. When the power supply device is in a cooling state, the terminal device determines the current temperature sent by the power supply device as the ambient temperature of the environment in which the terminal device is located.
[0117] It should be noted that, for the introduction of step 501-step 502, please refer to the above description of step 301-step 302, which will not be repeated here.
[0118] 503. The terminal device detects the body temperature of the terminal device.
[0119] In some embodiments, a temperature sensing element may also be provided on the terminal device, and the terminal device may detect the body temperature of the terminal device through the temperature sensing element thereon.
[0120] It is understandable that after detecting the body temperature of the terminal device, the terminal device can also determine whether the body temperature is greater than or equal to the second temperature threshold, and if the body temperature is greater than or equal to the second temperature threshold, continue to execute step 504, otherwise, end this process.
[0121] It should be noted that the second temperature threshold can be pre-set in the terminal device. The second temperature threshold can be a body temperature value obtained through a large number of experiments, which is used to determine whether to perform high-temperature charging current limiting. Exemplarily, the second temperature threshold can be 40 degrees, 45 degrees, 50 degrees, etc.
[0122] 504. When the body temperature of the terminal device is greater than or equal to the second temperature threshold, the terminal device determines whether the ambient temperature is greater than the first ambient temperature threshold.
[0123] If yes, then continue to execute step 505 ; if no, then continue to execute step 506 .
[0124] 505. The terminal device reduces the charging current and / or charging voltage provided by the power supply device and outputs a first prompt message, where the first prompt message is used to prompt that the charging speed is reduced because the ambient temperature is greater than the first ambient temperature threshold.
[0125] In the embodiment of the present application, in step 505, the terminal device may reduce the charging current and / or charging voltage provided by the power supply device in addition to the method mentioned in step 303, and may also include the following methods:
[0126] The terminal device calculates a second temperature difference between the body temperature and a second temperature threshold, and determines a second current difference and / or a second voltage difference based on the second temperature difference, and obtains a second target current by subtracting the second current difference from the charging current currently provided by the power supply device, and / or obtains a second target voltage by subtracting the second voltage difference from the charging voltage currently provided by the power supply device, and controls the power supply device to provide the second target current and / or second target voltage to the terminal device.
[0127] In an embodiment of the present application, after determining that the body temperature of the terminal device has reached the current limiting condition, the terminal device further determines whether the ambient temperature of the terminal device has reached the current limiting condition. When it is determined that the ambient temperature of the terminal device has reached the current limiting condition, the terminal device outputs a first prompt message for prompting that the charging speed has decreased due to the ambient temperature being greater than the first ambient temperature threshold, so that the user can promptly know that the charging current limiting of the terminal device is caused by the excessively high ambient temperature.
[0128] 506. The terminal device reduces the charging current and / or charging voltage provided by the power supply device, and outputs a second prompt message, where the second prompt message is used to prompt that the charging speed is reduced due to abnormal heating of the terminal device itself.
[0129] It should be noted that in step 506, the way in which the terminal device reduces the charging current and / or charging voltage provided by the power supply device can refer to the way based on the above-mentioned second temperature difference mentioned in step 505, and will not be repeated here.
[0130] Regarding the output method of the second prompt information in step 506, reference may be made to the above description of the output method of the first prompt information, which will not be repeated here.
[0131] For example, the display interface of the second prompt information can refer to the following Figure 6 ,like Figure 6 The display interface shown includes a display area 601, and the display area 601 is used to display the second prompt information.
[0132] In an embodiment of the present application, after determining that the body temperature of the terminal device has reached the current limiting condition, the terminal device further determines whether the ambient temperature of the terminal device has reached the current limiting condition. When determining that the ambient temperature of the terminal device has not reached the current limiting condition, the terminal device outputs a prompt that the charging speed has decreased due to abnormal heating of the terminal device itself, so that the user can promptly know that the charging current limiting of the terminal device is caused by abnormal heating of the terminal device itself.
[0133] By implementing this method, the terminal device can receive the current temperature sent by the power supply device when connected to the power supply device, and when the power supply device is in a cooling state, determine the current temperature sent by the power supply device as the ambient temperature of the environment in which the terminal device is located. Since the current temperature sent by the power supply device is detected by the power supply device in the cooling state, it can more truly reflect the ambient temperature of the environment in which the terminal device is located. Therefore, the terminal device determines the current temperature sent by the power supply device as the ambient temperature of the environment in which the terminal device is located, which is conducive to improving the detection accuracy of the ambient temperature.
[0134] Furthermore, after obtaining the ambient temperature of the terminal device, the terminal device can also detect the body temperature of the terminal device, and when the body temperature of the terminal device reaches the current limiting condition, further determine whether the ambient temperature of the terminal device reaches the current limiting condition; and when it is determined that the ambient temperature of the terminal device reaches the current limiting condition, output a first prompt message indicating that the charging speed has decreased due to the ambient temperature being greater than the first ambient temperature threshold; and when it is determined that the ambient temperature of the terminal device does not reach the current limiting condition, output a second prompt message for indicating that the charging speed has decreased due to abnormal heating of the terminal device itself, so that the user knows the real reason for the high temperature current limiting of the terminal device.
[0135] See also Figure 7 , Figure 7 Schematic diagram of the structure of the ambient temperature detection device disclosed in the embodiment of the present application. Figure 7 The ambient temperature detection device shown may include a receiving unit 701 and a determining unit 702; wherein:
[0136] The receiving unit 701 is used to receive the current temperature sent by the power supply device when the terminal device is connected to the power supply device;
[0137] The determining unit 702 is used to determine the current temperature as the ambient temperature of the environment where the terminal device is located when the power supply device is in a cooling state.
[0138] In some embodiments, the determination unit 702 is also used to receive charging information sent by the power supply device before determining the current temperature as the ambient temperature of the environment in which the terminal device is located, the charging information including at least one of the following: the duration of the last charging, the interval between the end time of the last charging and the current time, and the historical temperature of the power supply device when the last charging ended; and, when the charging information meets the preset information conditions, determine that the power supply device is in a cooling state.
[0139] In some embodiments, the charging information includes the duration of the last charge, and the charging information satisfies the preset information condition, including: the duration of the last charge is less than or equal to the first duration threshold; and / or,
[0140] The charging information includes the interval time between the last charging end time and the current time, and the charging information meets the preset information conditions, including: the interval time is greater than or equal to the first interval time threshold; and / or,
[0141] The charging information includes the historical temperature of the power supply device when the last charging was completed, and the charging information meets the preset information condition, including: the historical temperature is less than or equal to the first temperature threshold.
[0142] In some embodiments, Figure 7 The ambient temperature detection device shown may also include a sending unit (not shown in the figure), which is used to send a temperature acquisition request to the power supply device when the power supply device is in a cooling state, so that the power supply device responds to the temperature acquisition request and sends the current temperature of the power supply device to the terminal device.
[0143] In some embodiments, the sending unit is also used to determine the current charging protocol of the terminal device when the terminal device is connected to the power supply device; and, when the charging protocol is a target charging protocol, send a temperature acquisition request to the power supply device, so that the power supply device responds to the temperature acquisition request and sends the current temperature of the power supply device to the terminal device; wherein the target charging protocol indicates that the terminal device and the power supply device support a target charging mode, and the charging speed corresponding to the target charging mode is greater than a speed threshold.
[0144] In some embodiments, Figure 7 The ambient temperature detection device shown may also include a prompt unit (not shown in the figure), which is used to determine that after the unit 702 determines the current temperature as the ambient temperature of the environment in which the terminal device is located, when the ambient temperature is greater than a first ambient temperature threshold, reduce the charging current and / or charging voltage provided by the power supply providing device and output a first prompt message, wherein the first prompt message is used to prompt that the charging speed has decreased due to the ambient temperature being greater than the first ambient temperature threshold.
[0145] In some embodiments, the prompt unit is further configured to detect the body temperature of the terminal device after the determination unit 702 determines the current temperature as the ambient temperature of the environment in which the terminal device is located; and, when the body temperature is greater than or equal to the second temperature threshold and the ambient temperature is greater than the first ambient temperature threshold, reduce the charging current and / or charging voltage provided by the power supply providing device, and output a first prompt message, wherein the first prompt message is used to prompt that the charging speed is reduced due to the ambient temperature being greater than the first ambient temperature threshold.
[0146] In some embodiments, the prompt unit is also used to reduce the charging current and / or charging voltage provided by the power supply device and output a second prompt message when the body temperature is greater than or equal to the second temperature threshold and the ambient temperature is less than or equal to the first ambient temperature threshold, and the second prompt message is used to prompt that the charging speed is reduced due to abnormal heating of the terminal device itself.
[0147] See also Figure 8 , Figure 8 FIG. 1 is a structural diagram of a terminal device disclosed in an embodiment of the present application. Figure 8The terminal device shown may include components such as a processor 801 , a memory 802 , a display unit 803 , an input unit 804 , a sensor 805 , and an audio circuit 806 .
[0148] The processor 801 is the control center of the terminal device, and uses various interfaces and lines to connect various parts of the entire terminal device. By running or executing software programs and / or modules stored in the memory 802, and calling data stored in the memory 802, the processor 801 performs various functions of the terminal device and processes data, thereby monitoring the terminal device as a whole. Optionally, the processor 801 may include one or more processing units; optionally, the processor 801 may integrate an application processor, which mainly processes operating devices, user interfaces, and application programs, etc. Of course, other processors may also be included, which are not listed here one by one.
[0149] The memory 802 can be used to store software programs and modules. The processor 801 executes various functional applications and data processing of the terminal device by running the software programs and modules stored in the memory 802. The memory 802 can mainly include a program storage area and a data storage area, wherein the program storage area can store operating devices, at least one application required for a function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the terminal device (such as audio data, a phone book, etc.), etc. In addition, the memory 802 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0150] The display unit 803 can be used to display information input by the user or information provided to the user and various menus of the terminal device. The display unit 803 may include a display panel. Optionally, the display panel may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. Further, the touch panel may cover the display panel. When the touch panel detects a touch operation on or near it, it is transmitted to the processor 801 to determine the type of touch event. Then, the processor 801 provides a corresponding visual output on the display panel according to the type of touch event. Among them, the touch panel and the display panel are not in contact with each other. Figure 8 The touch panel and the display panel can be used as two independent components to realize the input and output functions of the terminal device, or the touch panel and the display panel can be integrated to realize the input and output functions of the terminal device.
[0151] The input unit 804 can be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the terminal device. Specifically, the input unit 804 may include a touch panel and other input devices. A touch panel, also referred to as a touch screen, can collect user touch operations on or near it (such as operations performed by a user using any suitable object or accessory such as a finger, stylus, etc. on or near the touch panel), and drive the corresponding connection device according to a pre-set program. In addition, a variety of types such as resistive, capacitive, infrared, and surface acoustic waves can be used to implement the touch panel. In addition to the touch panel, the input unit 804 may also include other input devices. Specifically, other input devices may include, but are not limited to, one or more of function keys (such as volume control buttons, switch buttons, etc.), trackballs, joysticks, etc.
[0152] The terminal device may also include at least one sensor 805, such as a magnetometer, a gyroscope sensor, a motion sensor, and other sensors. Specifically, the magnetometer is used to determine the orientation of the terminal device, and the gyroscope sensor can be used to determine the motion posture of the terminal device. It can be used for anti-shake shooting, and can also be used for navigation and somatosensory game scenes. As a type of motion sensor, the acceleration sensor can detect the magnitude of acceleration in all directions, and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the terminal device, such as horizontal and vertical screen switching, related games, magnetometer posture calibration, etc.; as for other sensors that can also be configured with the terminal device, such as pressure gauges, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.
[0153] The audio circuit 806 may include a speaker and a microphone, and may provide an audio interface between the user and the terminal device. The audio circuit 806 may transmit the electrical signal converted from the received audio data to the speaker, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 806 and converted into audio data, and then the audio data is output to the processor 801 for processing, and then sent to another device through the video circuit, or the audio data is output to the memory 802 for further processing.
[0154] Although not shown, the terminal device may further include a power supply and a camera. Optionally, the camera may be located at the front or rear of the terminal device, which is not limited in the embodiment of the present application.
[0155] It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the terminal device. In other embodiments of the present application, the terminal device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0156] In the embodiment of the present application, the processor 801 also has the following functions:
[0157] When the terminal device is connected to the power supply device, receiving the current temperature sent by the power supply device;
[0158] When the power supply device is in a cooling state, the current temperature is determined as the ambient temperature of the environment where the terminal device is located.
[0159] In the embodiment of the present application, the processor 801 also has the following functions:
[0160] Receiving charging information sent by the power supply device, the charging information including at least one of the following: duration of the last charging, interval between the last charging end time and the current time, and historical temperature of the power supply device at the end of the last charging;
[0161] When the charging information meets the preset information condition, it is determined that the power supply device is in a cooling state.
[0162] In the embodiment of the present application, the charging information includes the duration of the last charge, and the charging information satisfies the preset information condition, including: the duration of the last charge is less than or equal to the first duration threshold; and / or,
[0163] The charging information includes the interval time between the last charging end time and the current time, and the charging information meets the preset information conditions, including: the interval time is greater than or equal to the first interval time threshold; and / or,
[0164] The charging information includes the historical temperature of the power supply device when the last charging was completed, and the charging information meets the preset information condition, including: the historical temperature is less than or equal to the first temperature threshold.
[0165] In the embodiment of the present application, the processor 801 also has the following functions:
[0166] When the power supply device is in a cooling state, a temperature acquisition request is sent to the power supply device, so that the power supply device responds to the temperature acquisition request and sends the current temperature of the power supply device to the terminal device.
[0167] In the embodiment of the present application, the processor 801 also has the following functions:
[0168] When the terminal device is connected to the power supply device, determining the current charging protocol of the terminal device;
[0169] When the charging protocol is a target charging protocol, a temperature acquisition request is sent to the power supply device, so that the power supply device responds to the temperature acquisition request and sends the current temperature of the power supply device to the terminal device; wherein the target charging protocol indicates that the terminal device and the power supply device support a target charging mode, and the charging speed corresponding to the target charging mode is greater than a speed threshold.
[0170] In the embodiment of the present application, the processor 801 also has the following functions:
[0171] When the ambient temperature is greater than the first ambient temperature threshold, the charging current and / or charging voltage provided by the power supply device is reduced, and a first prompt message is output, wherein the first prompt message is used to prompt that the charging speed is reduced because the ambient temperature is greater than the first ambient temperature threshold.
[0172] In the embodiment of the present application, the processor 801 also has the following functions:
[0173] Detect the body temperature of the terminal device;
[0174] When the body temperature is greater than or equal to the second temperature threshold and the ambient temperature is greater than the first ambient temperature threshold, the charging current and / or charging voltage provided by the power supply device is reduced, and a first prompt message is output. The first prompt message is used to prompt that the charging speed is reduced because the ambient temperature is greater than the first ambient temperature threshold.
[0175] In the embodiment of the present application, the processor 801 also has the following functions:
[0176] When the body temperature is greater than or equal to the second temperature threshold and the ambient temperature is less than or equal to the first ambient temperature threshold, the charging current and / or charging voltage provided by the power supply device is reduced, and a second prompt message is output. The second prompt message is used to prompt that the charging speed is reduced due to abnormal heating of the terminal device itself.
[0177] An embodiment of the present application discloses a computer-readable storage medium having executable program code stored thereon. When the executable program code is executed by a processor, the method executed by the terminal device in the embodiment of the present application is implemented.
[0178] The embodiment of the present application discloses a computer program product. When the computer program product is executed on a computer, the computer implements the method executed by the terminal device in the embodiment of the present application.
[0179] An embodiment of the present application discloses an application publishing platform, which is used to publish a computer program product. When the computer program product runs on a computer, the computer implements the method executed by the terminal device in the embodiment of the present application.
[0180] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium, storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.
[0181] It should be understood that "one embodiment" or "an embodiment" or "some embodiments" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in one embodiment" or "in some embodiments" appearing throughout the specification may not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments. The above description of each embodiment tends to emphasize the differences between the various embodiments, and the same or similar aspects can be referenced to each other. For the sake of brevity, this article will not repeat them.
[0182] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there may be three relationships. For example, object A and / or object B can represent three situations: object A exists alone, object A and object B exist at the same time, and object B exists alone.
[0183] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0184] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as: multiple modules or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or modules can be electrical, mechanical or other forms.
[0185] The modules described above as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules; they may be located in one place or distributed on multiple network units; some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.
[0186] In addition, all functional modules in the embodiments of the present application may be integrated into one processing unit, or each module may be a separate unit, or two or more modules may be integrated into one unit; the above-mentioned integrated modules may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0187] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.
[0188] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling the terminal device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks or optical disks.
[0189] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0190] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0191] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.
[0192] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for detecting ambient temperature, characterized in that: include: When the terminal device is connected to the power supply device, receiving the current temperature sent by the power supply device; When the power supply device is in a cooling state, the current temperature is determined as the ambient temperature of the environment in which the terminal equipment is located.
2. The method according to claim 1, characterized in that Before determining the current temperature as the ambient temperature of the environment in which the terminal device is located, the method further includes: Receiving charging information sent by the power supply device, the charging information including at least one of the following: duration of the last charging, interval between the last charging end time and the current time, and historical temperature of the power supply device at the end of the last charging; When the charging information satisfies a preset information condition, it is determined that the power supply device is in a cooling state.
3. The method according to claim 2, characterized in that The charging information includes the duration of the last charging, and the charging information satisfies a preset information condition, including: the duration of the last charging is less than or equal to a first duration threshold; and / or, The charging information includes the interval duration between the last charging end time and the current time, and the charging information satisfies the preset information condition, including: the interval duration is greater than or equal to the first interval duration threshold; and / or, The charging information includes a historical temperature of the power supply device when charging was completed last time, and the charging information satisfies a preset information condition, including: the historical temperature is less than or equal to a first temperature threshold.
4. The method according to any one of claims 1 to 3, characterized in that: Before determining the current temperature as the ambient temperature of the environment in which the terminal device is located, the method further includes: When the power supply device is in a cooling state, a temperature acquisition request is sent to the power supply device, so that the power supply device responds to the temperature acquisition request and sends the current temperature of the power supply device to the terminal device.
5. The method according to any one of claims 1 to 3, characterized in that: Before determining the current temperature as the ambient temperature of the environment in which the terminal device is located, the method further includes: When the terminal device is connected to the power supply device, determining the current charging protocol of the terminal device; When the charging protocol is a target charging protocol, a temperature acquisition request is sent to the power supply device, so that the power supply device responds to the temperature acquisition request and sends the current temperature of the power supply device to the terminal device; wherein the target charging protocol indicates that the terminal device and the power supply device support a target charging mode, and the charging speed corresponding to the target charging mode is greater than a speed threshold.
6. The method according to claim 1, characterized in that After determining the current temperature as the ambient temperature of the environment in which the terminal device is located, the method further includes: When the ambient temperature is greater than a first ambient temperature threshold, the charging current and / or charging voltage provided by the power supply device is reduced, and a first prompt message is output, wherein the first prompt message is used to prompt that the charging speed is reduced because the ambient temperature is greater than the first ambient temperature threshold.
7. The method according to claim 1, characterized in that After determining the current temperature as the ambient temperature of the environment in which the terminal device is located, the method includes: Detecting the body temperature of the terminal device; When the body temperature is greater than or equal to the second temperature threshold and the ambient temperature is greater than the first ambient temperature threshold, the charging current and / or charging voltage provided by the power supply device is reduced, and a first prompt message is output, wherein the first prompt message is used to prompt that the charging speed is reduced because the ambient temperature is greater than the first ambient temperature threshold.
8. The method according to claim 7, characterized in that After detecting the body temperature of the terminal device, the method further includes: When the body temperature is greater than or equal to the second temperature threshold and the ambient temperature is less than or equal to the first ambient temperature threshold, the charging current and / or charging voltage provided by the power supply device is reduced, and a second prompt message is output, wherein the second prompt message is used to prompt that the charging speed is reduced due to abnormal heating of the terminal device itself.
9. An ambient temperature detection device, characterized in that: include: A receiving unit, configured to receive a current temperature sent by the power supply device when the terminal device is connected to the power supply device; The determining unit is used to determine the current temperature as the ambient temperature of the environment in which the terminal device is located when the power supply device is in a cooling state.
10. A terminal device, characterized in that: include: A memory storing executable program code; and a processor coupled to the memory; The processor calls the executable program code stored in the memory, and when the executable program code is executed by the processor, the processor implements the method according to any one of claims 1 to 8.
11. A computer-readable storage medium having executable program code stored thereon, characterized in that: When the executable program code is executed by a processor, the method according to any one of claims 1 to 8 is implemented.
