Charging control method and charging control equipment for preventing power failure

By determining the maximum charging current based on the overcurrent current of the power supply device during the charging process, the charging interruption problem caused by the overcurrent protection of the power supply device is solved, and the normal charging of the battery and the improvement of user experience is achieved.

CN119448468APending Publication Date: 2025-02-14ANKER INNOVATIONS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310980030.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-04
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

During the fast charging process, the overcurrent protection of the power supply equipment causes the charging current to be stopped, and the charging cannot be charged normally, affecting the user experience.

Method used

By determining the maximum charging current of the battery, the current is determined at least based on the overcurrent current of the power supply device and is less than or equal to the overcurrent current to avoid overcurrent protection.

Benefits of technology

Ensure that the battery of the charging device can be charged normally, avoid the power supply equipment from stopping power due to overcurrent protection, and improve charging compatibility and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119448468A_ABST
    Figure CN119448468A_ABST
Patent Text Reader

Abstract

The invention relates to an anti-outage charging control method, an anti-outage charging control device, charging control equipment, electronic equipment, a computer readable storage medium and a computer program product. The method comprises the steps that when a battery is charged, the maximum charging current for charging the battery is determined, the maximum charging current is determined at least based on the overcurrent of power supply equipment for charging the battery, and the maximum charging current is smaller than or equal to the overcurrent; and charging the battery according to the maximum charging current. When the method is adopted to charge the battery, the condition that the power supply equipment stops supplying power due to overcurrent protection cannot occur, so that the battery of the charging equipment can be normally charged, and the charging equipment can be normally used. Meanwhile, the power utilization safety of the power supply equipment and the charging requirement of the charging equipment can be considered, and the charging compatibility and the user experience are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of battery charging management, and in particular to a charging control method and a charging control device for preventing power outages. Background Art

[0002] At present, some power supply devices on the market, such as adapters and computers, that can provide power, have low OCP (over current protection) currents designed for power supply ports (such as TYPE-C ports) based on power supply safety considerations. When these power supply devices are used to charge charging devices (such as speakers, charging boxes, and other devices with batteries), the following problems often occur:

[0003] In order to meet the needs of fast charging, the charging current of charging equipment is usually designed to be higher. During charging, the power supply device with lower OCP current will stop outputting current due to overcurrent protection, causing the battery in the charging device to be unable to charge normally, affecting the user experience. Summary of the invention

[0004] Based on this, it is necessary to provide a charging control method that can prevent power outages, a charging control device that can prevent power outages, a charging control device, an electronic device, a computer-readable storage medium and a computer program product that can take into account the power supply safety of the power supply equipment and the charging requirements of the battery, and improve the user experience.

[0005] In a first aspect, the present application provides a charging control method for preventing power outages. The method comprises:

[0006] When charging the battery, determining a maximum charging current for charging the battery, the maximum charging current being determined based at least on an overcurrent of a power supply device charging the battery, and the maximum charging current being less than or equal to the overcurrent;

[0007] The battery is charged according to the maximum charging current.

[0008] In one embodiment, when charging the battery, determining the maximum charging current for charging the battery includes:

[0009] When charging the battery, in the case where the power supply device stops supplying power due to overcurrent protection, the maximum charging current is determined according to the actual overcurrent current when the power supply device stops supplying power.

[0010] In one embodiment, the method further comprises:

[0011] When the charging current reaches the preset rechargeable current of the battery, if the power supply device does not stop supplying power due to overcurrent protection, the maximum charging current for charging the battery is determined according to the preset rechargeable current.

[0012] In one embodiment, the method further comprises:

[0013] When charging the battery, the charging current is controlled to increase step by step.

[0014] In one embodiment, determining the maximum charging current according to the actual overcurrent when the power supply device stops supplying power includes:

[0015] The maximum charging current is determined according to the actual overcurrent when the power supply device stops supplying power and a preset actual current margin.

[0016] In one embodiment, charging the battery according to the maximum charging current includes:

[0017] In the case where the maximum charging current is determined according to an actual overcurrent when the power supply device stops supplying power, when the power supply device resumes supplying power, the charging current is controlled to increase step by step to the maximum charging current;

[0018] The battery is charged with the maximum charging current.

[0019] In one embodiment, when charging the battery, determining the maximum charging current for charging the battery includes:

[0020] When charging the battery, obtaining a preset overcurrent of the power supply device;

[0021] In a case where the preset overcurrent is greater than a preset rechargeable current of the battery, using the preset rechargeable current as the maximum charging current;

[0022] In a case where the preset overcurrent is less than or equal to the preset chargeable current of the battery, the maximum charging current is determined according to the preset overcurrent and a preset design current margin.

[0023] In a second aspect, the present application also provides a charging control device for preventing power outages. The device comprises:

[0024] a current determination module, configured to determine a maximum charging current for charging the battery when charging the battery, wherein the maximum charging current is determined based at least on an overcurrent of a power supply device for charging the battery, and the maximum charging current is less than or equal to the overcurrent;

[0025] A charging control module is used to charge the battery according to the maximum charging current.

[0026] In a third aspect, the present application further provides a charging control device. The charging control device comprises:

[0027] A charging interface module, used to connect to a power supply device to access a power supply provided by the power supply device;

[0028] A charging control module is used to connect the battery and the charging interface module, receive the power supply output by the charging interface circuit, and charge the battery based on the power supply according to the above-mentioned charging control method.

[0029] In one embodiment, the charging control device further includes:

[0030] An overvoltage protection module, wherein the overvoltage protection module is connected between the charging interface module and the charging control module, and is used to disconnect the charging interface module from the charging control module when the output voltage of the power supply output by the charging interface module is higher than a preset protection voltage.

[0031] In one embodiment, the charging control device further includes:

[0032] An overcurrent protection module is connected between the charging interface module and the charging control module, and is used to disconnect the charging interface module from the charging control module when the output current of the power supply output by the charging interface module is greater than a preset protection current.

[0033] In a fourth aspect, the present application further provides an electronic device, wherein the electronic device comprises a battery and the charging control device as described above.

[0034] In a fifth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0035] When charging the battery, determining a maximum charging current for charging the battery, the maximum charging current being determined based at least on an overcurrent of a power supply device charging the battery, and the maximum charging current being less than or equal to the overcurrent;

[0036] The battery is charged according to the maximum charging current.

[0037] In a sixth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0038] When charging the battery, determining a maximum charging current for charging the battery, the maximum charging current being determined based at least on an overcurrent of a power supply device charging the battery, and the maximum charging current being less than or equal to the overcurrent;

[0039] The battery is charged according to the maximum charging current.

[0040] The above-mentioned anti-power-off charging control method, anti-power-off charging control device, charging control equipment, electronic equipment, computer-readable storage medium and computer program product, when charging the battery, determine the maximum charging current for charging the battery, the maximum charging current is determined at least based on the overcurrent of the power supply device that charges the battery, and the maximum charging current is less than or equal to the overcurrent current; the battery is charged according to the maximum charging current. Since the maximum charging current ultimately used to charge the battery is less than the overcurrent of the power supply device, the power supply device will not stop supplying power due to overcurrent protection during the battery charging process, thereby ensuring that the battery of the charging device can be charged normally, so that the charging device can be used normally. As a result, the power safety of the power supply device and the charging requirements of the charging device are taken into account, and the charging compatibility and user experience are improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 A schematic diagram of a module of a charging control device in an embodiment;

[0042] Figure 2 A schematic flow chart of a charging control method for preventing power failure in one embodiment;

[0043] Figure 3 A schematic diagram of the waveforms of the voltage and current at the TYPE-C terminal of the power supply device during the battery charging process in the related art;

[0044] Figure 4 is a schematic diagram of a process of charging a battery according to a maximum charging current in an embodiment;

[0045] Figure 5 Schematic diagram of voltage and current waveforms at the TYPE-C terminal of a power supply device during charging of a battery in one embodiment;

[0046] Figure 6 It is a structural block diagram of a charging control device for preventing power failure in one embodiment;

[0047] Figure 7 It is a module schematic diagram of a charging control device in another embodiment;

[0048] Figure 8 It is a module schematic diagram of a charging control device in another embodiment;

[0049] Fig. 9 FIG. 1 is a schematic diagram of a circuit structure of a charging control device in an embodiment. DETAILED DESCRIPTION

[0050] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0051] The charging control method provided in the embodiment of the present application can be applied to Figure 1 The charging control device 100 shown. The charging control device 100 may include a charging interface module 110 and a charging control module 120, wherein the charging interface module 110 is used to connect the power supply device 200 to access the power supply provided by the power supply device 200. The charging control module 120 is used to connect the battery 300 and the charging interface module 110 to receive the power supply output by the charging interface circuit 110, and when charging the battery, determine the maximum charging current for charging the battery 300, the maximum charging current is determined based on at least the overcurrent of the power supply device 200 charging the battery 300, and the maximum charging current is less than or equal to the overcurrent; based on the power supply, the battery is charged according to the maximum charging current.

[0052] Among them, the charging control module 120 and the charging interface module 110 can be set according to actual needs. The power supply device 200 can be an adapter, a terminal device, etc. that can supply power, wherein the terminal device can be but is not limited to various personal computers, laptops, smart phones, tablet computers, etc. The battery 300 is a rechargeable battery, such as a lithium battery. The battery 300 can be applied to electronic devices such as speakers, charging boxes (a box that combines mobile power and storage functions), cameras, or similar charging devices.

[0053] In one embodiment, Figure 2 As shown, a charging control method for preventing power failure is provided, and the method is applied to Figure 1 The charging control module 120 in FIG. 1 is taken as an example to illustrate, including the following steps 400 and 500.

[0054] Step 400, when charging the battery, determine the maximum charging current for charging the battery.

[0055] The maximum charging current is determined based on at least an overcurrent of a power supply device that charges the battery, and the maximum charging current is less than or equal to the overcurrent.

[0056] For ease of explanation, the following description will be made using a computer as an example of a power supply device. Specifically, the power supply port of the computer may include a USB (Universal Serial Bus) port, such as a USB TYPE-C (a USB interface appearance standard) port. The charging interface module in the charging control device is designed to correspond to the USB interface corresponding to the TYPE-C port of the computer, and its specific structure can be set according to actual conditions. Then, when the USB interface in the charging control device is connected to the TYPE-C port of the computer, the charging control module receives the power supply (such as a 5V DC power supply) provided by the computer, starts charging the battery, and determines the maximum charging current for charging the battery.

[0057] The overcurrent of the power supply device is the OCP current of the power supply device. When charging the battery according to the maximum charging current, the maximum charging current needs to be less than or equal to the overcurrent.

[0058] Step 500: charging the battery according to the maximum charging current.

[0059] Since the maximum charging current is less than or equal to the overcurrent current, during the process of charging the battery according to the maximum charging current, the power supply device will not stop supplying power due to overcurrent protection.

[0060] Take charging the battery in the speaker through the computer's TYPE-C port as an example. Assuming that the output OCP current of the computer's TYPE-C port is only 1.5A, when the speaker is connected to the computer's TYPE-C port for charging, the battery charging current exceeds the OCP current of the computer's TYPE-C port, and the following will occur: Figure 3 The overcurrent protection phenomenon shown is that the TYPE-C port stops outputting current due to overcurrent protection. After the TYPE-C port of the computer has overcurrent protection for 3 times, its output is turned off and no current is output, causing the battery of the speaker to not charge normally, seriously affecting user use.

[0061] In this embodiment, a computer whose TYPE-C port outputs an OCP current of only 1.5A is still used to charge the battery in the speaker. Then, after the battery is connected to the TYPE-C port of the computer through the charging control module and the charging interface module, the charging control module will determine the maximum charging current according to the OCP current of the TYPE-C port of the computer during the process of charging the battery, and the maximum charging current shall not exceed the OCP current of the TYPE-C port of the computer, which is 1.5A. Therefore, in the process of using the TYPE-C port of the computer to charge the battery with the maximum charging current, the TYPE-C port of the computer will no longer have overcurrent protection, so that the battery can be charged normally without affecting the user's use of the charging device, thereby improving the charging compatibility of the charging device and the user experience.

[0062] The above-mentioned charging control method, when charging the battery, determines the maximum charging current for charging the battery, the maximum charging current is determined based on at least the overcurrent of the power supply device that charges the battery, and the maximum charging current is less than or equal to the overcurrent current; the battery is charged according to the maximum charging current. Since the maximum charging current ultimately used to charge the battery is less than the overcurrent of the power supply device, during the process of charging the battery, the power supply device will not stop supplying power due to overcurrent protection, thereby ensuring that the battery of the charging device can be charged normally, so that the charging device can be used normally. In addition, in the case where the overcurrent of the power supply device is greater than the preset rechargeable current of the battery, the battery can be charged with the preset rechargeable current, thereby meeting the need for fast charging of the charging device. As a result, the power safety of the power supply device and the charging requirements of the charging device are taken into account, and the charging compatibility and user experience are improved.

[0063] When charging the battery, there is no unique way to determine the maximum charging current for charging the battery. In one embodiment, step 400 includes:

[0064] When charging the battery, obtaining a preset overcurrent of the power supply device;

[0065] When the preset overcurrent is greater than the preset chargeable current of the battery, the preset chargeable current is used as the maximum charge current;

[0066] When the preset overcurrent is less than or equal to the preset chargeable current of the battery, the maximum charging current is determined according to the preset overcurrent and the preset design current margin.

[0067] The preset rechargeable current of the battery is set according to the actual parameters of the battery and the battery charging requirements, and is the maximum charging current that the battery can withstand during the charging process based on the battery's own performance. The preset overcurrent current is the designed OCP current of the power supply device. When obtaining the preset overcurrent value of the power supply device, it can be input by the user or obtained directly from the power supply device by the charging control module. For example, the power supply device informs the charging control module of the preset overcurrent current through the USB Type-C protocol.

[0068] After obtaining the preset overcurrent of the power supply device, the preset overcurrent is compared with the preset rechargeable current of the battery, and the maximum charging current is determined based on the smaller current. Specifically, if the preset overcurrent is greater than the preset rechargeable current of the battery, the preset rechargeable current of the battery can be directly used as the maximum charging current, thereby increasing the charging speed as much as possible and shortening the charging time. If the preset overcurrent is less than or equal to the preset rechargeable current of the battery, the maximum charging current is determined based on the preset overcurrent and the preset design current margin to improve charging compatibility and ensure charging safety.

[0069] The preset design current margin can be set in combination with the error range between the design OCP current and the actual overcurrent of various power supply devices, for example, set to 0.3 A. When determining the maximum charging current based on the preset overcurrent and the preset design current margin, the preset overcurrent and the preset design current margin can be directly subtracted, and the difference between the two can be used as the maximum charging current.

[0070] In this embodiment, by obtaining the preset overcurrent of the power supply device, overload or damage to the power supply device can be avoided during charging using the power supply device, thereby ensuring a stable and safe connection with the power supply device. In addition, when the preset rechargeable current of the battery is lower than the preset overcurrent of the power supply device, the battery can be charged with the preset rechargeable current, thereby improving the user experience of fast charging.

[0071] It is understandable that there may be a certain error between the preset overcurrent current and the actual overcurrent current (actual OCP current) when the power supply device stops supplying power due to overcurrent protection. Therefore, in actual use, the preset overcurrent current and the actual overcurrent current may not be equal. For example, the designed OCP current (i.e., the preset overcurrent current) of a computer's TYPE-C port is 1.5A, but when the computer is actually used for charging, the overcurrent protection phenomenon may occur at a charging current of 1.3A; the designed OCP current (i.e., the preset overcurrent current) of another computer's TYPE-C port is 1.5A, and the overcurrent protection phenomenon may occur at 1.6A in actual use.

[0072] Therefore, in order to ensure charging safety, in another embodiment, step 400 may include:

[0073] When charging the battery, in the case where the power supply device stops supplying power due to overcurrent protection, the maximum charging current is determined according to the actual overcurrent current when the power supply device stops supplying power.

[0074] In this embodiment, during the process of charging the battery, if the power supply is stopped due to overcurrent protection, it means that the current charging current exceeds the actual overcurrent of the power supply device, and the actual charging current needs to be lowered. Therefore, in this case, the maximum charging current needs to be determined according to the actual overcurrent when the power supply device stops supplying power, so as to charge the battery according to the maximum charging current.

[0075] In this embodiment, the maximum charging current is determined according to the actual overcurrent current when the power supply device is under overcurrent protection, which can ensure that in the subsequent charging process, the power supply device will not stop supplying power due to overcurrent protection, so that the charging device can continue to charge. In this way, the power safety of the power supply device and the charging demand of the charging device are taken into account, and the user experience is improved.

[0076] Further, determining the maximum charging current according to the actual overcurrent when the power supply device stops supplying power may include: determining the maximum charging current according to the actual overcurrent when the power supply device stops supplying power and a preset actual current margin.

[0077] The preset actual current margin needs to be set in combination with actual needs, and this embodiment does not limit this. The maximum charging current can be determined based on the actual overcurrent when the power supply device stops supplying power and the preset actual current margin, and the actual overcurrent of the power supply device is subtracted from the preset actual current margin, and the difference is used as the maximum charging current, thereby ensuring charging safety.

[0078] In one embodiment, the charging control method for preventing power failure further includes:

[0079] When the charging current reaches the preset chargeable current of the battery, if the power supply device does not stop supplying power due to overcurrent protection, the maximum charging current for charging the battery is determined according to the preset chargeable current.

[0080] It can be understood that if the charging current reaches the preset rechargeable current of the battery, and the power supply device has not stopped supplying power due to overcurrent protection during this period, it means that the actual overcurrent of the power supply device is greater than the preset rechargeable current of the battery, so the maximum charging current for charging the battery can be determined according to the preset rechargeable current. When determining the maximum charging current for charging the battery according to the preset rechargeable current, the preset rechargeable current can be used as the maximum charging current, and the battery can be charged according to the preset rechargeable current to achieve fast charging of the battery.

[0081] Still taking the example of charging the battery in the speaker through the computer's TYPE-C port, assuming that the speaker battery is designed to have a rechargeable current of 1.5A, and the actual OCP current of the computer's TYPE-C port is 2.0A, then the TYPE-C port overcurrent protection will not occur during the process of the charging control module controlling the battery charging. Therefore, the charging control module can determine 1.5A, which is less than the OCP current, as the maximum charging current to charge the battery, so that the battery is charged according to the preset rechargeable current, thereby achieving fast charging and shortening the charging time.

[0082] Assuming that the actual OCP current of the computer's TYPE-C port is only 1.5A, and the rechargeable current of the battery in the speaker is set to 2.0A, when the speaker is connected to the computer's TYPE-C port for charging, the battery's charging current exceeds the actual OCP current of the computer's TYPE-C port, and overcurrent protection will occur. Therefore, at this time, the charging control module will determine the maximum charging current that is less than the actual OCP current to charge the battery.

[0083] It can be seen that after the battery is connected to the TYPE-C port of the computer through the charging control module and the charging interface module, the charging control module will determine the maximum charging current based on the actual OCP current of 1.5A of the computer TYPE-C port and the rechargeable current of 2.0A of the battery during charging of the battery, and the maximum charging current does not exceed the OCP current of 1.5A of the computer TYPE-C port, ensuring that the maximum charging current during the charging process is lower than the maximum current of the actual OCP current of the charging device, so that the battery can be charged at the fastest speed on the basis of continuous power supply of the power supply device.

[0084] In this embodiment, when the actual overcurrent of the power supply device is greater than the preset rechargeable current of the battery, the maximum charging current is determined according to the preset rechargeable current of the battery, thereby meeting the fast charging needs of the charging device; when the actual overcurrent of the power supply device is less than or equal to the preset rechargeable current of the battery, the maximum charging current is determined according to the actual overcurrent of the power supply device, so that the power supply device will not stop supplying power due to overcurrent protection, so that the charging device can continue to charge. In this way, the power safety of the power supply device and the charging needs of the charging device are taken into account, and the user experience is improved.

[0085] In one embodiment, when charging the battery, the charging current may be controlled to increase step by step.

[0086] When controlling the charging current to increase step by step, it can be increased step by step from 0mA, or it can be increased step by step from a smaller preset current. The smaller preset current can be a current value lower than the overcurrent of various power supply devices, such as 500mA, 800mA. In the process of controlling the charging current to increase step by step, the current difference between each stage can be determined in combination with the actual circuit, or it can be set to a smaller difference, such as 100mA.

[0087] It should also be noted that since charging devices such as speakers and charging boxes are equipped with components such as filter capacitors in the overall circuit, there will usually be a relatively high overcharge current at the moment of power-on, which can easily cause power supply equipment such as computers to instantly experience overcurrent protection.

[0088] In this embodiment, during the charging process, the charging current is controlled to increase step by step, so that the charging current can be increased slowly, and the instantaneous protection of the power supply equipment such as the computer can be prevented, so as to accurately monitor the actual charging current when the power supply equipment overcurrent protection occurs, so as to accurately determine the actual overcurrent current. In the process of controlling the charging current to increase step by step, if the charging current reaches the preset chargeable current of the battery, and the power supply has not been stopped due to overcurrent protection during this period, the preset chargeable current can be used as the maximum charging current to achieve fast charging of the battery.

[0089] In one embodiment, Figure 4 As shown, step 500 includes step 510 and step 520 .

[0090] Step 510: When the maximum charging current is determined according to the actual overcurrent when the power supply device stops supplying power, the charging current is controlled to increase step by step to the maximum charging current when the power supply device resumes supplying power.

[0091] Step 520: Charge the battery with the maximum charging current.

[0092] In this embodiment, when the power supply device stops supplying power due to overcurrent protection, the charging control module determines the maximum charging current, and when the power supply device resumes supplying power, controls the charging current to increase step by step to the maximum charging current, and then charges the battery with the maximum charging current.

[0093] Since the charging device usually has a relatively high overcharge current when it is powered on, it is easy for the power supply device to have an overcurrent protection situation at the moment. Therefore, based on the waveform of the power supply output by the power supply device such as a computer during the charging process of this embodiment, Figure 5 As shown, during each charging process, the charging current of the battery is controlled to increase step by step, so that the charging current increases slowly. Figure 5It can be seen that in this process, the current output by power supply equipment such as computers increases slowly, which can prevent the occurrence of instantaneous protection of power supply equipment such as computers, making the charging process safer and smoother.

[0094] The above charging control method dynamically determines the maximum charging current during the charging process. When the load capacity of the power supply device is insufficient, that is, when its OCP current is low, the battery of the charging device can be charged with a smaller current to ensure that the power supply device can stably output the power supply current, thereby improving the charging compatibility; when the load capacity of the power supply device is sufficient, that is, when the OCP current is high, the battery of the charging device can be charged according to the ideal charging current (preset rechargeable current) to meet the fast charging requirements. In this way, the charging compatibility issue is fully considered, and the fast charging requirements are met to achieve the best charging effect, thereby improving the user experience.

[0095] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0096] Based on the same inventive concept, the embodiment of the present application also provides a power-off prevention charging control device for implementing the above-mentioned power-off prevention charging control method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above-mentioned method, so the specific limitations in one or more power-off prevention charging control device embodiments provided below can refer to the limitations of the power-off prevention charging control method above, and will not be repeated here.

[0097] In one embodiment, Figure 6 As shown, a charging control device for preventing power failure is provided, including: a current determination module 610 and a charging control module 620, wherein:

[0098] The current determination module 610 is used to determine the maximum charging current for charging the battery when charging the battery. The maximum charging current is determined based on at least the overcurrent of the power supply device charging the battery, and the maximum charging current is less than or equal to the overcurrent.

[0099] The charging control module 620 is used to charge the battery according to the maximum charging current.

[0100] In one embodiment, the current determination module 610 is also used to determine the maximum charging current according to the actual overcurrent current when the power supply device stops supplying power due to overcurrent protection when charging the battery.

[0101] In one embodiment, the current determination module 610 is also used to determine the maximum charging current for charging the battery according to the preset rechargeable current when the charging current reaches the preset rechargeable current of the battery and if the power supply device does not stop supplying power due to overcurrent protection.

[0102] In one embodiment, the current determination module 610 is further configured to control the charging current to increase step by step when charging the battery.

[0103] In one embodiment, the current determination module 610 is further configured to determine the maximum charging current according to the actual overcurrent when the power supply device stops supplying power and a preset actual current margin.

[0104] In one embodiment, the current determination module 610 is also used to control the charging current to gradually increase to the maximum charging current when the power supply device resumes power supply, when the maximum charging current is determined based on the actual overcurrent when the power supply device stops supplying power; and charge the battery with the maximum charging current.

[0105] In one embodiment, the current determination module 610 is also used to obtain a preset overcurrent of the power supply device when charging the battery; when the preset overcurrent is greater than the preset rechargeable current of the battery, the preset rechargeable current is used as the maximum charging current; when the preset overcurrent is less than or equal to the preset rechargeable current of the battery, the maximum charging current is determined according to the preset overcurrent and the preset design current margin.

[0106] Each module in the above charging control device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module.

[0107] In one embodiment, a charging control device is provided, again referring to Figure 1The charging control device 100 includes a charging interface module 110 and a charging control module 120. The charging interface module 110 is used to connect to the power supply device 200 to access the power supply provided by the power supply device 200. The charging control module 120 is used to connect the battery 300 and the charging interface module 110 to receive the power supply output by the charging interface circuit 110. The charging control module 120 is also used to charge the battery 300 based on the power supply according to the steps in the above-mentioned method embodiments.

[0108] In one embodiment, Figure 7 As shown, the charging control device 100 also includes an overvoltage protection module 130, which is connected between the charging interface module 110 and the charging control module 120, and is used to disconnect the charging interface module 110 from the charging control module 120 when the output voltage of the power supply output by the charging interface module 110 is higher than a preset protection voltage.

[0109] The charging interface module 110 receives the power supply provided by the power supply device 200 and outputs it to the overvoltage protection module 130, which is then input to the charging control module 120. In this embodiment, by setting the overvoltage protection module 130, when the voltage of the power supply is higher than the preset protection voltage, the overvoltage protection module 130 is disconnected, and the connection between the charging interface module 110 and the charging control module 120 is disconnected, thereby protecting the safety of the charging control device 100 and the battery 300. The preset protection voltage needs to be set according to the actual circuit, for example, 5V.

[0110] It can be understood that the overvoltage protection module 130 can have a self-recovery function, that is, after being disconnected for a period of time, it can restore the conductive state, so that the charging interface module 110 and the charging control module 120 are restored to be connected, thereby restoring the charging state when the voltage of the power supply is lower than the preset protection voltage.

[0111] In one embodiment, Figure 8 As shown, the charging control device 100 also includes an overcurrent protection module 140, which is connected between the charging interface module 110 and the charging control module 120, and is used to disconnect the charging interface module 110 from the charging control module 120 when the output current of the power supply output by the charging interface module 110 is greater than a preset protection current.

[0112] Among them, the preset protection current also needs to be set according to the actual circuit. By setting the overcurrent protection module 140, it is possible to prevent dangerous phenomena caused by excessive charging current, thereby improving the safety of the charging control device 100, the battery 300 and the charging device 300.

[0113] It can be understood that in actual implementation, the overvoltage protection module 130 and the overcurrent protection module 140 can be implemented by a module with overvoltage and overcurrent protection functions. The specific implementation method does not need to be limited. Technical personnel in this field can refer to the commonly used technology in the field for setting. It only needs to implement the above-mentioned corresponding overvoltage and overcurrent protection functions.

[0114] In one embodiment, the charging control module 120 is further configured to stop charging the battery when it is detected that the temperature of the battery is greater than a preset over-temperature threshold.

[0115] Specifically, the preset temperature threshold can be set according to the specific parameters of the battery. The charging control circuit can be connected to the NTC (Negative Temperature Coefficient) port of the battery to monitor the battery temperature and adjust the charging state according to the temperature change. Once the battery temperature is greater than the preset temperature threshold, charging is stopped immediately to avoid safety accidents caused by overheating of the battery.

[0116] Furthermore, the charging control module 120 may also dynamically adjust the charging current when charging the battery according to the detected temperature of the battery to improve charging safety.

[0117] In order to better understand the above embodiment, the charging control device 100 is explained in detail in conjunction with a specific embodiment. Fig. 9 As shown, the charging control device 100 includes a charging interface module 110 , a charging control module 120 and an overvoltage and overcurrent protection module 150 .

[0118] Specifically, the charging interface module 110 includes a TYPE-C interface connector J1, a diode D1, a capacitor C2, a resistor R5, and a resistor R6. The type and model of the connector J1 can be selected according to actual needs. The TYPE-C interface connector J1 in this embodiment is a 20-pin connector, and its pins VBUS1, VBUS2, VBUS3, and VBUS4 are connected, and the common end of the connection is used as the power supply end. The power supply end is used to access the 5V power supply output by the TYPE-C port of the computer. The power supply end is also used to connect the overvoltage and overcurrent protection module 150. At the same time, the power supply end is also connected to the cathode of the diode D1 and the first end of the capacitor C2, and the anode of the diode D1 and the second end of the capacitor C2 are grounded. Pins G1, G2, G3, G4, GND1, GND2, GND3, and GND4 of the connector J1 are all grounded. Pins CC1 and CC2 of the connector J1 are respectively connected to the corresponding pins of the charging management chip in the charging control module 120. Fig. 9In the embodiment shown, pin CC1 of connector J1 is also grounded through resistor R5, and pin CC2 is also grounded through resistor R6. Pin D+A, pin D+B, pin DA and pin DB can be connected to corresponding pins of the charging management chip according to actual needs.

[0119] The overvoltage and overcurrent protection module 150 includes an overvoltage protection chip U1, a resistor R1, a resistor R2, a resistor R3 and a capacitor C1. The pin IN of the overvoltage protection chip U1 is connected to the power supply end of the charging interface module 110, and the pin IN is also connected to the pin EN through the resistor R1, and the pin EN is grounded through the resistor R3. The pin ILIM of the overvoltage protection chip U1 is grounded through the resistor R2, and the pin GND and the pin EP are both grounded. The pin OUT is connected to the first end of the capacitor C1, and the second end of the capacitor C1 is grounded. The pin OUT serves as the output end of the overvoltage and overcurrent protection module 150, and is used to output a 5V power supply to the charging control module 120.

[0120] The overvoltage protection chip U1 has the functions of overvoltage and overcurrent protection, and its model does not need to be limited, for example, it is SGM40642. The resistor R2 connected to the pin ILIM is a resistor for setting a preset protection current, and the resistor R1 and the resistor R3 are voltage divider resistors. The parameters of the resistor R1, the resistor R2, and the resistor R3 need to be set in combination with actual needs, and this implementation does not limit this.

[0121] The charging control module 120 includes a charging management chip U2, a capacitor C3, a capacitor C4, a capacitor C5, a capacitor C6, a capacitor C10, a capacitor C11, an inductor PL1 and a resistor R4. Pins VIN1 and VIN of the charging management chip U2 are both connected to pin OUT of the overvoltage and overcurrent protection module 150, the first end of capacitor C6 is connected to pin VIN1 of the charging management chip U2, and the second end of capacitor C6 is grounded. Pin CSIN of the charging management chip U2 is connected to the first end of capacitor C5, and the second end of capacitor C5 is grounded. Pin VBAT of the charging management chip U2 is connected to the battery 300 and the first end of capacitor C4, and the second end of capacitor C4 is grounded. Pin VCC of the charging management chip U2 is connected to the power supply and the first end of capacitor C3, and pin GND, pin EPAD and the second end of capacitor C3 of the charging management chip U2 are grounded. Pin CC1 and pin CC2 of the charging management chip U2 are correspondingly connected to pin CC1 and pin CC2 of connector J1 in the charging interface module 110. The pins LX, LX1, LX2 and LX3 of the charging management chip U2 are connected, and the common end thereof is connected to the first end of the inductor PL1, the second end of the inductor PL1 is connected to the first end of the resistor R4, and the second end of the resistor R4 is connected to the battery. The first end of the resistor R4 is also connected to the first end of the capacitor C10 and the pin CSIN of the charging management chip U2, the second end of the resistor R4 is also connected to the first end of the capacitor C11 and the pin VBAT of the charging management chip U2, and the second end of the capacitor C10 and the second end of the capacitor C11 are grounded.

[0122] Among them, the resistor R4 is a sampling resistor, which is used to detect the real value of the charging current during the charging process of the battery and feed it back to the charging management chip U2; the charging management chip U2 is used to dynamically adjust according to the real value of the charging current, so that the real value of the charging current of the battery reaches the output value set by the charging management chip U2. For example, the output value set by the charging management chip U2 is the maximum charging current, then in the process of charging the battery, the real value of the charging current detected during the charging process of the battery is dynamically adjusted to make the charging current constant at the maximum charging current.

[0123] Furthermore, the charging control module 120 may also include capacitors C7, C8, and C9, and the pins VOUT, VOUT2, and VOUT3 of the charging management chip U2 are connected, and the common ends thereof are respectively connected to the first end of capacitor C7, the first end of capacitor C8, and the first end of capacitor C9, and the second end of capacitor C7, the second end of capacitor C8, and the second end of capacitor C9 are all grounded. Among them, the common end connected to the pins VOUT, VOUT2, and VOUT3 of the charging management chip U2 is used for outputting the voltage VOUT, and the purpose of the voltage VOUT can be set according to actual needs.

[0124] The above capacitors C1, C2, C3, C4, C5, C6, C7, C8, C9, C10 and C11 are all filter capacitors, and their specific parameters do not need to be limited. The charging management chip U2 can be selected according to actual needs, for example, the IP5330 chip is selected, which integrates power management functions such as boost converter, lithium battery charging management, battery power indicator, battery temperature detection and digital tube display, so as to realize multi-functional management of the charging process.

[0125] Furthermore, the charging control module 120 may further include a resistor R7, a pin NTC of the charging management chip U2 is connected to a pin BAT_NTC of the battery, and a pin NTC of the charging management chip U2 is also connected to a power source VCC through the resistor R7.

[0126] The battery 300 includes a battery body and a battery socket J2. Specifically, the battery body is connected to the resistor R4 in the charging control module 120 through pins 4 and 5 of the battery socket J2, the battery body is connected to the charging management chip U2 through pin BAT_NTC of the battery socket J2, and pins 1, 2, 6 and 7 of the battery socket J2 are grounded.

[0127] When the charging control device 100 is charging the battery, the charging management chip U2 is used to charge the battery body according to the steps in the above method embodiments, thereby dynamically controlling the charging current to ensure charging compatibility and satisfy user experience.

[0128] In one embodiment, an electronic device is provided, including a battery and a charging control device, and the charging control device can be configured according to the charging control device 100 in the above embodiments. The electronic device can be an electronic device such as a speaker, a charging box, a camera, or similar devices.

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

[0130] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

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

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

[0133] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A charging control method for preventing power failure, characterized in that: The method comprises: When charging the battery, determining a maximum charging current for charging the battery, the maximum charging current being determined based at least on an overcurrent of a power supply device charging the battery, and the maximum charging current being less than or equal to the overcurrent; The battery is charged according to the maximum charging current.

2. The method according to claim 1, characterized in that When charging the battery, determining the maximum charging current for charging the battery includes: When charging the battery, in the case where the power supply device stops supplying power due to overcurrent protection, the maximum charging current is determined according to the actual overcurrent current when the power supply device stops supplying power.

3. The method according to claim 2, characterized in that The method further comprises: When the charging current reaches the preset rechargeable current of the battery, if the power supply device does not stop supplying power due to overcurrent protection, the maximum charging current for charging the battery is determined according to the preset rechargeable current.

4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: When charging the battery, the charging current is controlled to increase step by step.

5. The method according to claim 2, characterized in that: The determining the maximum charging current according to the actual overcurrent when the power supply device stops supplying power includes: The maximum charging current is determined according to the actual overcurrent when the power supply device stops supplying power and a preset actual current margin.

6. The method according to claim 2, characterized in that The charging the battery according to the maximum charging current includes: In the case where the maximum charging current is determined according to an actual overcurrent when the power supply device stops supplying power, when the power supply device resumes supplying power, the charging current is controlled to increase step by step to the maximum charging current; The battery is charged with the maximum charging current.

7. The method according to claim 1, characterized in that When charging the battery, determining the maximum charging current for charging the battery includes: When charging the battery, obtaining a preset overcurrent of the power supply device; In a case where the preset overcurrent is greater than a preset rechargeable current of the battery, using the preset rechargeable current as the maximum charging current; In a case where the preset overcurrent is less than or equal to the preset chargeable current of the battery, the maximum charging current is determined according to the preset overcurrent and a preset design current margin.

8. A charging control device, characterized in that: The charging control device comprises: A charging interface module, used to connect to a power supply device to access a power supply provided by the power supply device; A charging control module is used to connect the battery and the charging interface module, receive the power supply output by the charging interface circuit, and charge the battery based on the power supply according to the method described in any one of claims 1 to 7.

9. The charging control device according to claim 8, characterized in that: Also includes: An overvoltage protection module, wherein the overvoltage protection module is connected between the charging interface module and the charging control module, and is used to disconnect the charging interface module from the charging control module when the output voltage of the power supply output by the charging interface module is higher than a preset protection voltage.

10. The charging control device according to claim 8, characterized in that: Also includes: An overcurrent protection module is connected between the charging interface module and the charging control module, and is used to disconnect the charging interface module from the charging control module when the output current of the power supply output by the charging interface module is greater than a preset protection current.