Charging control method, electronic device, storage medium and computer program product
By dynamically adjusting the temperature protection threshold based on the battery's heat generation and heat dissipation capacity, the safety hazards of fixed thresholds in existing charging management are resolved, achieving higher charging reliability and safety.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHENZHEN KAISHUODA DIGITAL CO LTD
- Filing Date
- 2026-01-29
- Publication Date
- 2026-04-21
AI Technical Summary
In existing charging management solutions, fixed temperature protection thresholds cannot effectively address situations where batteries are aging or the heat dissipation structure is ineffective, posing a safety hazard.
By dynamically adjusting the temperature protection threshold, a preset upper limit temperature threshold is set according to the battery's heat generation and heat dissipation capacity using an inverse proportional relationship. Combined with the battery's aging level and the state of the heat dissipation structure, current limiting or charging suspension is triggered in advance to avoid excessive heat accumulation and potential safety risks.
It improves the reliability and safety of the charging process, effectively avoids safety risks caused by excessive heat accumulation, and enhances user experience and device reliability.
Smart Images

Figure CN121906753A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of charging control technology, and in particular to a charging control method, electronic device, storage medium, and computer program product. Background Technology
[0002] With the widespread use of electronic devices such as smartphones, tablets, and laptops, users' demands for charging speed are increasing, and fast charging technology has become a standard feature. During fast charging, the large current causes significant Joule heating inside the battery, resulting in a rapid rise in battery temperature.
[0003] The amount of heat generated by a battery during charging is mainly affected by two key factors: the battery's own aging process and the design and effectiveness of the heat dissipation structure within the electronic device. Specifically, as the number of battery cycles increases, its internal resistance gradually increases. According to Joule's law, under the same charging current, an aged battery will generate more heat. At the same time, the internal space of electronic devices is compact, and their heat dissipation capacity is limited. If the heat dissipation structure is ineffective or hindered by the external environment, heat will be difficult to dissipate quickly.
[0004] Currently, most mainstream charging management solutions employ fixed temperature protection thresholds. That is, the charging module monitors the battery temperature in real time, and once it detects that the battery temperature has reached or exceeded a preset, fixed upper temperature threshold, it will proactively reduce the charging current or pause charging to prevent the battery from overheating and ensure safety.
[0005] However, for aging batteries, or batteries with poor heat dissipation structures or those hindered by the external environment, the temperature may rise too quickly before reaching a fixed threshold, posing a safety hazard. Summary of the Invention
[0006] The main objective of this application is to provide a charging control method, electronic device, storage medium, and computer program product, which aim to improve the reliability of charging electronic devices.
[0007] To achieve the above objectives, this application proposes a charging control method applied to an electronic device. The electronic device includes an electronic device body, a charging module, and a battery, which are sequentially electrically connected. The charging module is used to reduce the charging current output to the battery or stop charging the battery when the battery temperature is not lower than a preset upper temperature threshold. The charging control method includes: When the charging module receives current, it controls the charging module to continuously output a preset current for a preset duration, and obtains the actual temperature rise of the battery within the preset duration. The degree of battery heating is determined based on the actual temperature rise of the battery within a preset time period. The preset upper limit temperature threshold is adjusted according to the degree of heat generated by the battery, and the degree of heat generated is inversely proportional to the preset upper limit temperature threshold.
[0008] In one embodiment, adjusting the preset upper temperature threshold according to the degree of heat generated by the battery includes: When the battery's heat generation level is low, the preset upper limit temperature threshold is adjusted to the first temperature threshold. When the battery heats up to a moderate level, the preset upper temperature threshold is adjusted to the second temperature threshold. When the battery heats up significantly, the preset upper temperature threshold is adjusted to a third temperature threshold. Wherein, the first temperature threshold > the second temperature threshold > the third temperature threshold.
[0009] In one embodiment, after adjusting the preset upper limit temperature threshold to a third temperature threshold when the battery's heat level is high, the method further includes: Obtain the number of charge-discharge cycles of the battery; If the number of charge-discharge cycles of the battery is greater than the preset number of charge-discharge cycles, it is determined that the cause of the high degree of heat generation is that the battery is in a severely aged state. If the number of charge-discharge cycles of the battery is not greater than the preset number of charge-discharge cycles, the cause of the high heat generation is determined to be insufficient heat dissipation capacity of the electronic device.
[0010] In one embodiment, determining that the cause of high heat generation is insufficient heat dissipation capacity of the electronic device when the number of charge-discharge cycles of the battery is not greater than a preset number of charge-discharge cycles includes: If it is determined that the high level of heat is caused by insufficient heat dissipation capacity of the electronic device, this should be recorded. If a preset number of cases are recorded where the cause of high heat generation is insufficient heat dissipation capacity of the electronic device, it is determined that the heat dissipation structure of the electronic device is severely aged.
[0011] In one embodiment, determining the degree of battery heating based on the actual temperature rise of the battery within a preset time period includes: If the temperature rise is less than the first temperature rise threshold, the degree of heat generation of the battery is determined to be low. If the temperature rise is not less than the first temperature rise threshold and less than the second temperature rise threshold, the degree of heat generation of the battery is determined to be medium. If the increase value is not less than the second temperature rise threshold, the degree of heat generation of the battery is determined to be high.
[0012] In one embodiment, the charging control method further includes: If the actual temperature of the battery is not greater than a preset lower temperature threshold, reduce the charging current output by the charging module, or control the charging module to stop charging the battery. When the actual temperature of the battery is less than a preset upper temperature threshold and greater than a preset lower temperature threshold, the charging module is controlled to output a preset charging current to the battery.
[0013] Furthermore, to achieve the above objectives, this application also proposes an electronic device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the charging control method described above; the electronic device further comprising an electronic device body, a charging module, and a battery, the charging module, the battery, and the electronic device body being electrically connected in sequence, and a temperature sensor, all of which are electrically connected to the processor, the temperature sensor being used to acquire the actual temperature of the battery.
[0014] In one embodiment, the electronic device further includes a barometer, and the temperature sensor and the barometer are integrated in the same module.
[0015] In addition, to achieve the above objectives, this application also proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps of the charging control method described above.
[0016] In addition, to achieve the above objectives, this application also provides a computer program product, which includes a computer program that, when executed by a processor, implements the steps of the charging control method described above.
[0017] This application's charging control method includes, when the charging module receives current, controlling the charging module to continuously output a preset current for a preset duration, and obtaining the actual temperature rise of the battery within the preset duration; determining the degree of battery heating based on the actual temperature rise within the preset duration; and adjusting the preset upper limit temperature threshold according to the degree of battery heating, wherein the degree of heating is inversely proportional to the preset upper limit temperature threshold. With this configuration, in practical applications, when the battery is highly aged, or the heat dissipation structure of the electronic device has reduced heat dissipation capacity due to external environment factors such as being in a poorly ventilated enclosed space like a backpack, or due to aging, dust accumulation, etc., applying the preset current will significantly increase the actual temperature rise of the battery within the preset duration. This application's charging control method can accurately assess the current degree of heating based on this temperature rise and dynamically reduce the preset upper limit temperature threshold accordingly. Therefore, during subsequent charging, as the battery temperature gradually rises, the system can trigger the current limiting or charging pause mechanism earlier, effectively avoiding safety risks caused by excessive heat accumulation, thereby improving the reliability and safety of the charging process. Attached Figure Description
[0018] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on the structures shown in these drawings without creative effort.
[0019] Figure 1 This is a flowchart illustrating an embodiment of this application; Figure 2 This is a flowchart illustrating another embodiment of this application; Figure 3 This is a flowchart illustrating yet another embodiment of this application.
[0020] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0021] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0022] It should be noted that if the embodiments of this application involve directional indicators (such as up, down, left, right, front, back, etc.), the directional indicators are only used to explain the relative positional relationship and movement of the components in a specific posture. If the specific posture changes, the directional indicators will also change accordingly.
[0023] With the widespread use of electronic devices such as smartphones, tablets, and laptops, users' demands for charging speed are increasing, and fast charging technology has become a standard feature. During fast charging, the large current causes significant Joule heating inside the battery, resulting in a rapid rise in battery temperature.
[0024] The amount of heat generated by a battery during charging is mainly affected by two key factors: the battery's own aging process and the design and effectiveness of the heat dissipation structure within the electronic device. Specifically, as the number of battery cycles increases, its internal resistance gradually increases. According to Joule's law, under the same charging current, an aged battery will generate more heat. At the same time, the internal space of electronic devices is compact, and their heat dissipation capacity is limited. If the heat dissipation structure is ineffective or hindered by the external environment, heat will be difficult to dissipate quickly.
[0025] Currently, most mainstream charging management solutions employ fixed temperature protection thresholds. That is, the charging module monitors the battery temperature in real time, and once it detects that the battery temperature has reached or exceeded a preset, fixed upper temperature threshold, it will proactively reduce the charging current or pause charging to prevent the battery from overheating and ensure safety.
[0026] However, for aging batteries, or batteries with poor heat dissipation structures or those hindered by the external environment, the temperature may rise too quickly before reaching a fixed threshold, posing a safety hazard.
[0027] To address the aforementioned problems, this application proposes a charging control method applied to an electronic device. The electronic device includes an electronic device body, a charging module, and a battery. The charging module, battery, and electronic device body are sequentially electrically connected. In one embodiment, refer to... Figure 1 The charging control method includes: Step S100: When the charging module receives current, control the charging module to continuously output a preset current for a preset duration, and obtain the actual temperature rise of the battery within the preset duration. Step S200: Determine the degree of heat generation of the battery based on the actual temperature rise of the battery within a preset time period; Step S300: Adjust the preset upper limit temperature threshold according to the degree of heat generation of the battery, wherein the degree of heat generation is inversely proportional to the preset upper limit temperature threshold.
[0028] It should be noted that the preset current can be a constant current of known magnitude actively applied by the charging module during the initial charging phase. This current is used to induce a sufficiently significant temperature rise in the battery, allowing for accurate identification and quantification of its heat generation. Researchers can set the preset current based on the battery type and the desired level of significant temperature rise for accurate identification and quantification. For example, when using a 420mAh lithium battery, the preset current could be 250mA. Understandably, due to the equivalent internal resistance of the battery, Joule heating will occur under the preset current, causing the battery temperature to rise. Therefore, the actual measured temperature rise comprehensively reflects the battery's internal resistance and the overall heat dissipation conditions, thus serving as a valid basis for assessing the current level of heat generation.
[0029] In this embodiment, the preset duration is the duration of applying the preset current. During this period, the battery temperature change is monitored and the rise in battery temperature is calculated. The preset duration can be 20 to 40 seconds. Researchers can set the preset duration based on the rise in battery temperature within the preset duration. If the temperature rise is too small within the initial set duration (e.g., below the resolution of the temperature sensor or with insufficient signal-to-noise ratio, or insufficient to quantify the degree of heat generation), the preset duration is appropriately extended to ensure a sufficiently significant and discernible temperature rise response, thereby improving the accuracy and reliability of the degree of heat generation judgment.
[0030] It should be noted that after the preset duration ends, the charging module can resume normal charging current to continue charging the battery in a regular manner; and after the current charging cycle ends, the preset upper limit temperature threshold can be reset to the default value so that it can be dynamically adjusted again according to the actual heat generation of the battery during the next charging process.
[0031] In this embodiment, the degree of heat generation is a comprehensive thermal response characteristic reflected by the rate and magnitude of temperature rise under a preset current excitation. It is used to characterize the battery's current heat generation capacity, heat dissipation status, and potential thermal risk level. A higher degree of heat generation indicates a higher degree of battery aging or poorer heat dissipation conditions. Therefore, the degree of battery heat generation needs to be inversely proportional to a preset upper temperature threshold. This ensures that the higher the degree of battery aging or the worse the heat dissipation conditions, the lower the preset upper temperature threshold. This allows for the premature triggering of current limiting or charging suspension during subsequent charging as the battery temperature gradually rises, preventing safety risks caused by excessive heat accumulation and improving charging reliability.
[0032] To illustrate with an example, suppose the electronic device is a smartwatch equipped with a 420 mAh lithium battery. The watch is placed on a table at room temperature, and the battery is in good health. Within 30 seconds, the temperature rises from 28°C to 29.2°C, with a temperature increase of ΔT = 1.2°C, indicating low heat generation. The charging control method of this application determines that the heat dissipation is good and maintains the default preset upper limit temperature threshold (e.g., 42°C), allowing subsequent charging at the normal charging current.
[0033] When a smartwatch has been used for two years, its aging level is relatively high, and its internal resistance increases. Under the same test conditions, when the temperature rises from 28℃ to 31.5℃, the battery temperature increases by ΔT = 3.5℃, indicating a significant increase in heat generation. Accordingly, the charging control method of this application dynamically lowers the preset upper temperature threshold to 38℃.
[0034] With this configuration, in practical applications, when the battery is highly aged, or when the heat dissipation structure of the electronic device suffers reduced heat dissipation capacity due to external environmental factors such as being in a poorly ventilated enclosed space like a backpack, or due to aging, dust accumulation, etc., applying a preset current will significantly increase the actual temperature rise of the battery within a preset time period. The charging control method of this application can accurately assess the current heat generation level based on this temperature rise and dynamically lower the preset upper temperature threshold accordingly. Therefore, during subsequent charging, as the battery temperature gradually rises, the system can trigger the current limiting or charging pause mechanism earlier, effectively avoiding safety risks caused by excessive heat accumulation, thereby improving the reliability and safety of the charging process.
[0035] In one embodiment of this application, adjusting the preset upper limit temperature threshold according to the degree of heat generation of the battery includes: When the battery's heat generation level is low, the preset upper limit temperature threshold is adjusted to the first temperature threshold. When the battery heats up to a moderate level, the preset upper temperature threshold is adjusted to the second temperature threshold. When the battery heats up significantly, the preset upper temperature threshold is adjusted to a third temperature threshold. Wherein, the first temperature threshold > the second temperature threshold > the third temperature threshold.
[0036] It should be noted that when the battery heat level is low, it indicates that the battery is less aged and the battery heat dissipation conditions are better, so that the battery heat level is low. Under this condition, the preset upper limit temperature threshold can be set as the first temperature threshold. The first temperature threshold is a higher value to allow the battery to maintain fast charging at a higher temperature, improve charging efficiency, and maximize user experience while ensuring safety.
[0037] When the battery heats up to a moderate level, it indicates slight battery aging, increased ambient temperature, or limited local heat dissipation. Under this condition, the battery's preset upper temperature threshold can be adjusted to a second temperature threshold. The second temperature threshold is a value between the first and third temperature thresholds, which adopts a conventional protection standard to avoid sacrificing performance due to excessive conservatism and to prevent risks caused by aggressive charging.
[0038] When the battery generates a high level of heat, it indicates severe battery aging or a failure in the corresponding heat dissipation structure. For example, the heat dissipation structure may be severely aged, or the electronic device may be encased in a sealed backpack. In this situation, the battery's preset upper temperature threshold can be adjusted to a lower third temperature threshold. This allows the electronic device to trigger current limiting or pause charging earlier during the current charging cycle, preventing uncontrolled temperature rise and effectively avoiding safety hazards caused by heat accumulation (such as bulging or thermal runaway).
[0039] It should be noted that the setting of the first, second, and third temperature thresholds must take into account charging efficiency, battery life, and user experience while ensuring a minimum safety level. Their specific values can be set according to the characteristics of the electronic device and the corresponding battery. For example, when the electronic device is a smartwatch, and the smartwatch's default upper temperature threshold is 45℃, the first temperature threshold can be set to 46℃~48℃, the second temperature threshold to 44℃~46℃, and the third temperature threshold to 40℃~43℃.
[0040] With this configuration, the charging control method of this application can proactively detect the degree of heat generated by the battery, identify high-risk conditions (such as aging and poor heat dissipation) in advance, and dynamically tighten the protection threshold before the temperature actually reaches a dangerous level. This effectively avoids uncontrolled temperature rise, bulging, or even thermal runaway caused by high aging or a closed environment. It is especially suitable for scenarios where users put the watch in poorly ventilated places such as backpacks or clothing pockets.
[0041] In one embodiment of this application, determining the degree of battery heating based on the actual temperature rise of the battery within a preset time period includes: If the temperature rise is less than the first temperature rise threshold, the heat generation of the battery is determined to be low. It should be noted that if the temperature rise is less than the first temperature rise threshold, it indicates that the battery temperature rise is weak under the preset current excitation, which means that its internal resistance is low, heat dissipation is good, aging is mild, and it is in a healthy state.
[0042] If the temperature rise is not less than the first temperature rise threshold and less than the second temperature rise threshold, the battery's heat generation level is determined to be moderate. It should be noted that in this case, the battery's temperature rise is at a moderate level, which may be caused by factors such as slight aging, increased ambient temperature, or limited local heat dissipation.
[0043] If the temperature rise is not less than the second temperature rise threshold, the battery is determined to be at a high level of heat generation. In this case, the battery temperature rise is significant, reflecting a significant increase in internal resistance (such as severe aging or lithium plating), obstructed heat dissipation path (such as in a sealed backpack), or potential defects, posing a high risk of heat accumulation.
[0044] To illustrate with an example, suppose a smartwatch has a built-in lithium-ion polymer battery with a capacity of 420 mAh. When the watch starts charging, it continuously outputs a 250mA current for 30 seconds, and simultaneously records the rise in battery temperature during these 30 seconds. If the rise is ≤0.7℃, the degree of heat generation is determined to be low; if 0.7℃ < rise ≤1.5℃, the degree of heat generation is determined to be medium; if the rise is >1.5℃, the degree of heat generation is determined to be high.
[0045] It should be noted that the first temperature rise threshold is a standard line for distinguishing between "low heat generation" and "medium heat generation". It can be set based on the average typical temperature rise measured after applying a preset current for a preset duration under standard conditions (e.g., 25°C, good heat dissipation) for a new or healthy battery, with an appropriate safety margin. The second temperature rise threshold is a standard line for distinguishing between "medium heat generation" and "high heat generation". It can be set based on the minimum significant temperature rise measured after applying a preset current for a preset duration under worst heat dissipation scenarios (e.g., enclosed environment, high temperature), ensuring reliable identification of high-risk conditions.
[0046] This configuration, by setting a first temperature rise threshold and a second temperature rise threshold, discretizes the continuous temperature rise value into three distinct heating levels, providing a reliable basis for subsequent dynamic adjustment of the preset upper limit temperature threshold.
[0047] In one embodiment of this application, reference is made to Figure 2 The method of adjusting the preset upper temperature threshold to a third temperature threshold when the battery heats up significantly also includes: Step S310: Obtain the number of charge-discharge cycles of the battery; Step S320: If the number of charge-discharge cycles of the battery is greater than the preset number of charge-discharge cycles, the cause of high heat generation is determined to be that the battery is in a severely aged state; if the number of charge-discharge cycles of the battery is not greater than the preset number of charge-discharge cycles, the cause of high heat generation is determined to be that the heat dissipation capacity of the electronic device is insufficient.
[0048] It should be noted that when the battery is discharging, the amount of charge discharged by the battery is recorded by a coulomb counter. When the cumulative amount of charge discharged by the battery reaches the battery's capacity, the number of charge-discharge cycles of the battery is incremented by one, and the amount of charge discharged by the battery is recorded again.
[0049] It should be noted that the aging of a battery is closely related to the number of charge-discharge cycles it undergoes: as the number of cycles increases, the internal materials of the battery gradually degrade, leading to an increase in the equivalent internal resistance; under the same charging current conditions, higher internal resistance will trigger a more significant Joule heating effect, thereby generating more heat during the charging process.
[0050] The preset charge-discharge cycle count is a threshold used to determine whether a battery is severely aged. Researchers can set this value according to the battery type; for example, for a 420mAh lithium battery, the preset charge-discharge cycle count can be 300-500 times. When the battery's charge-discharge cycle count exceeds the preset count, it indicates that the battery has significantly deteriorated due to long-term use, leading to a significant increase in Joule heat under the preset current, resulting in a rapid temperature rise and a risk of overheating, affecting charging safety. Furthermore, if the battery is determined to be severely aged, corresponding prompts can be made, such as recording aging events and synchronizing them to the user's terminal app, or displaying "Battery health is low, replacement recommended" on the device interface to remind the user to replace the battery. It is understood that after determining that the battery is severely aged, since battery aging is irreversible, the electronic device can stop executing the charging control method of this application to keep the preset upper temperature threshold at the third temperature threshold, thereby continuously limiting the charging current and ensuring safe use. This locked state will remain effective until the electronic device detects that the battery has been replaced. For example, battery replacement can be identified by: detecting a change in the battery serial number or identification (ID); or a sudden change in the battery's internal resistance or capacity parameters to the typical range of a new battery.
[0051] When the number of charge-discharge cycles of the battery is not greater than the preset number of charge-discharge cycles, it indicates that the current aging level of the battery has not reached a serious level. The current aging level alone cannot cause the battery to generate high heat. Therefore, it can be determined that the reason for the high heat generation is insufficient heat dissipation capacity of the electronic device. The reason for insufficient heat dissipation capacity of the electronic device may be that the heat dissipation structure used by the electronic device to dissipate heat from the battery is aging, or the electronic device is placed in a poorly ventilated enclosed space such as a backpack when charging, which prevents the heat conducted from the electronic device to the outer shell from dissipating, resulting in a decrease in the heat dissipation efficiency of the battery.
[0052] In order to determine the cause of insufficient heat dissipation in electronic devices, refer to Figure 3The determination that the cause of high heat generation is insufficient heat dissipation capacity of the electronic device when the number of charge-discharge cycles of the battery is not greater than the preset number of charge-discharge cycles includes: Step S321: If it is determined that the high heat level is caused by insufficient heat dissipation capacity of the electronic device, record it. Step S322: If a preset number of cases are recorded where the cause of high heat generation is insufficient heat dissipation capacity of the electronic device, it is determined that the heat dissipation structure of the electronic device is severely aged.
[0053] It should be noted that a single instance of "insufficient heat dissipation" may be due to temporary external factors (such as a user accidentally putting the watch in a thick clothing pocket); however, repeated occurrences, after ruling out environmental interference, are highly likely to reflect that the internal heat dissipation structure of the device itself has deteriorated. Therefore, if the cause of high heat levels is continuously recorded as insufficient heat dissipation of the electronic device, it can be determined that the heat dissipation structure of the electronic device is severely aging. The preset number of times is used as the criterion for judging that the heat dissipation structure of the electronic device is severely aging. R&D personnel can set it according to the type of electronic device or the reliability of the heat dissipation structure. For example, when the electronic device is a smartwatch, the preset number of times can be set to 3 to 5 times. When the heat dissipation structure is a reliable design (such as a metal frame + graphene), the preset number of times can be set to a higher value, such as 5 to 10 times. When the heat dissipation mechanism is a low-cost design, the preset number of times can be set to a lower value, such as 3 to 5 times. There are no restrictions here.
[0054] When it is determined that the heat dissipation structure of an electronic device is severely aged, corresponding prompts can be made, such as recording the aging event of the heat dissipation structure of the electronic device and synchronizing it to the user's terminal APP, or displaying a message on the device interface: "The heat dissipation performance of the device has deteriorated. It is recommended to contact after-sales service for inspection and repair," so as to prompt the user to replace the heat dissipation structure of the electronic device.
[0055] With this configuration, the control method of this application can identify the causes of high battery heating levels, thereby improving the maintainability and reliability of electronic devices.
[0056] In one embodiment of this application, after obtaining the actual temperature of the battery, the method further includes: If the actual temperature of the battery is not greater than a preset lower temperature threshold, reduce the charging current output by the charging module, or control the charging module to stop charging the battery. When the actual temperature of the battery is less than a preset upper temperature threshold and greater than a preset lower temperature threshold, the charging module is controlled to output a preset charging current to the battery.
[0057] It should be noted that, considering that lithium metal deposition can easily occur inside the battery when charging in low-temperature environments, leading to battery capacity decay or even short circuits, this application can also reduce the charging current output by the charging module or control the charging module to stop charging the battery, provided that the actual battery temperature does not exceed a preset lower temperature threshold, to prevent lithium metal deposition inside the battery and improve the reliability of battery charging. The preset lower temperature threshold can be the temperature at which lithium metal deposition occurs in the battery.
[0058] Conversely, this application can control the charging module to output a preset charging current to the battery when the temperature is suitable, that is, when the actual temperature of the battery is less than the preset upper limit temperature threshold and greater than the preset lower limit temperature threshold. The preset charging current can be the rated current of the battery or the maximum output current of the charging module, so that the battery can be charged quickly, thereby shortening the time required for the battery to be fully charged and improving the user experience.
[0059] This application provides an electronic device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the charging control method in Embodiment 1 above; the electronic device further includes an electronic device body, a charging module, and a battery, the charging module, the battery, and the electronic device body being electrically connected in sequence, and also includes a temperature sensor electrically connected to the processor, the temperature sensor being used to obtain the actual temperature of the battery.
[0060] The electronic device provided in this application, employing the charging control method described in the above embodiments, can solve the technical problem of safety hazards arising from the fixed temperature protection threshold in existing charging management systems. Compared with the prior art, the beneficial effects of the electronic device provided in this application are the same as those of the charging control method provided in the above embodiments, and other technical features of this electronic device are the same as those disclosed in the previous embodiment method, and will not be repeated here.
[0061] In one embodiment of this application, the electronic device further includes a barometer, and the temperature sensor and the barometer are integrated in the same module.
[0062] It should be noted that when electronic devices are wearable devices such as smart bracelets or smartwatches, they are usually equipped with barometers to measure the current ambient atmospheric pressure. The processor can calculate the altitude based on this pressure data, supporting functions such as motion tracking and floor recognition. To meet the miniaturization and high integration requirements of mobile portable devices, integrating the temperature sensor and barometer into the same module can effectively reduce the number of discrete components, save internal space, simplify PCB layout, and help improve system reliability and product compactness.
[0063] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, the computer-readable program instructions being used to execute the charging control method in the above embodiments.
[0064] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.
[0065] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the above-described charging control method, which can solve the technical problem that the fixed temperature protection threshold of existing charging management poses a safety hazard. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as the beneficial effects of the charging control method provided in the above embodiments, and will not be repeated here.
[0066] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the charging control method described above.
[0067] The computer program product provided in this application can solve the technical problem of safety hazards caused by the fixed temperature protection threshold in existing charging management. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as those of the charging control method provided in the above embodiments, and will not be repeated here.
[0068] The above description is merely an exemplary embodiment of this application and does not limit the patent scope of this application. Any equivalent structural transformations made based on the technical concept of this application and the contents of the specification and drawings of this application, or direct / indirect applications in other related technical fields, are included within the patent protection scope of this application.
Claims
1. A charging control method applied to an electronic device, the electronic device comprising an electronic device body, a charging module, and a battery, wherein the charging module, the battery, and the electronic device body are sequentially electrically connected, characterized in that, The charging module is used to reduce the charging current output to the battery or stop charging the battery when the battery temperature is not lower than a preset upper temperature threshold. The charging control method includes: When the charging module receives current, it controls the charging module to continuously output a preset current for a preset duration, and obtains the actual temperature rise of the battery within the preset duration. The degree of battery heating is determined based on the actual temperature rise of the battery within a preset time period. The preset upper limit temperature threshold is adjusted according to the degree of heat generated by the battery, and the degree of heat generated is inversely proportional to the preset upper limit temperature threshold.
2. The charging control method as described in claim 1, characterized in that, The step of adjusting the preset upper limit temperature threshold according to the degree of heat generated by the battery includes: When the battery's heat generation level is low, the preset upper limit temperature threshold is adjusted to the first temperature threshold. When the battery heats up to a moderate level, the preset upper temperature threshold is adjusted to the second temperature threshold. When the battery heats up significantly, the preset upper temperature threshold is adjusted to a third temperature threshold. Wherein, the first temperature threshold > the second temperature threshold > the third temperature threshold.
3. The charging control method as described in claim 2, characterized in that, The method of adjusting the preset upper temperature threshold to a third temperature threshold when the battery heats up significantly also includes: Obtain the number of charge-discharge cycles of the battery; If the number of charge-discharge cycles of the battery is greater than the preset number of charge-discharge cycles, it is determined that the cause of the high degree of heat generation is that the battery is in a severely aged state. If the number of charge-discharge cycles of the battery is not greater than the preset number of charge-discharge cycles, the cause of the high heat generation is determined to be insufficient heat dissipation capacity of the electronic device.
4. The charging control method as described in claim 3, characterized in that, When the number of charge-discharge cycles of the battery is not greater than the preset number of charge-discharge cycles, determining that the cause of high heat generation is insufficient heat dissipation capacity of the electronic device includes: If it is determined that the high level of heat is caused by insufficient heat dissipation capacity of the electronic device, this should be recorded. If a preset number of cases are recorded where the cause of high heat generation is insufficient heat dissipation capacity of the electronic device, it is determined that the heat dissipation structure of the electronic device is severely aged.
5. The charging control method as described in claim 2, characterized in that, The determination of the battery's heat generation level based on the actual temperature rise within a preset time period includes: If the temperature rise is less than the first temperature rise threshold, the degree of heat generation of the battery is determined to be low. If the temperature rise is not less than the first temperature rise threshold and less than the second temperature rise threshold, the degree of heat generation of the battery is determined to be medium. If the increase value is not less than the second temperature rise threshold, the degree of heat generation of the battery is determined to be high.
6. The charging control method according to any one of claims 1 to 5, characterized in that, The charging control method further includes: If the actual temperature of the battery is not greater than a preset lower temperature threshold, reduce the charging current output by the charging module, or control the charging module to stop charging the battery. When the actual temperature of the battery is less than a preset upper temperature threshold and greater than a preset lower temperature threshold, the charging module is controlled to output a preset charging current to the battery.
7. An electronic device, characterized in that, The electronic device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the charging control method as described in any one of claims 1 to 6; The electronic device also includes an electronic device body, a charging module, and a battery, which are electrically connected in sequence. It also includes temperature sensors, all of which are electrically connected to the processor. The temperature sensors are used to obtain the actual temperature of the battery.
8. The electronic device as claimed in claim 7, characterized in that, The electronic device also includes a barometer, and the temperature sensor and the barometer are integrated in the same module.
9. A storage medium, characterized in that, The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, it implements the steps of the charging control method as described in any one of claims 1 to 6.
10. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the steps of the charging control method as described in any one of claims 1 to 6.