Charging control method and charging control device

By detecting the number and duration of charger interruptions and reducing the charging current to a level that the charger can support, the problem of charging interruptions when the terminal device is connected to a weak charger is solved, ensuring charging completion and improving the user experience.

CN113541214BActive Publication Date: 2025-09-05HUAWEI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202010297787.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-04-15
Publication Date
2025-09-05
Estimated Expiration
2040-04-15

AI Technical Summary

Technical Problem

When the terminal device is connected to a weak charger, it will cause repeated charging interruptions and the charging cannot be completed.

Method used

By detecting the number and duration of interruptions in the charger's power supply, the specified charging current is reduced when the preset conditions are met, ensuring that the charging current is reduced to the output current that the charger can support, avoiding charging interruptions.

Benefits of technology

A stable power supply state is achieved, ensuring that terminal devices are fully charged, improving user experience, and reducing user complaints and device returns.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113541214B_ABST
    Figure CN113541214B_ABST
Patent Text Reader

Abstract

The present application provides a charging control method and device, relating to the field of electronic equipment, and addressing the prior art issue of repeated interruptions and inability to charge a terminal device connected to a weak charger. The method, applied to a terminal device connected to a charger, comprises: detecting the number and duration of interruptions in the charger's power supply during the process of controlling the charger to charge the terminal device according to a specified charging current; reducing the specified charging current when the number and duration of interruptions meet preset weak charging conditions; and controlling the charger to charge the terminal device according to the reduced specified charging current.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electronic equipment, and in particular to a charging control method and a charging control device. Background Art

[0002] In the current market, due to the large number of charger manufacturers and the variety of charger models produced, there are multiple connection adaptation possibilities between terminal devices and chargers. Even with a unified interface, terminal devices may connect to third-party chargers that do not support constant-current charging (CC), which is called a weak charger.

[0003] When a terminal device is connected to a weak charger, the weak charger will output current to supply power to the terminal device. When the terminal device detects the current input by the weak charger, the terminal device will enable charging according to the rated charging current, that is, control the weak charger to output current according to the rated charging current of the terminal device; if the rated charging current of the terminal device is greater than the maximum output current of the weak charger, the weak charger will stop supplying power. When the terminal device detects that the weak charger stops supplying power, the terminal device will stop charging. When the charger senses that the terminal device has stopped charging, the charger will automatically resume power supply, which will cause the terminal device to enable charging again. Because the weak charger and the terminal device will continue to cycle the process of charging interruption and enabling charging, the terminal device cannot complete charging. Summary of the Invention

[0004] The present application provides a charging control method and a charging control device, which solve the problem in the prior art that charging interruptions repeatedly occur between a terminal device and a weak charger during the charging process, resulting in an inability to complete charging.

[0005] To achieve the above objectives, this application adopts the following technical solutions:

[0006] In a first aspect, an embodiment of the present application provides a charging control method, which is applied to a terminal device, wherein the terminal device is connected to a charger, and includes: in a process of controlling the charger to charge the terminal device according to a specified charging current, detecting the number of interruptions and the interruption time of the charger interrupting the power supply; when the number of interruptions and the interruption time meet a preset weak charging condition, reducing the specified charging current; and controlling the charger to charge the terminal device according to the reduced specified charging current.

[0007] Using the charging control method provided in this application, when a terminal device controls a charger to charge the terminal device according to a specified charging current, the method detects the number and duration of interruptions in the charger's power supply. When the number and duration of interruptions meet a preset weak charging condition, the method reduces the specified charging current and then controls the charger to charge the terminal device according to the reduced specified charging current. That is, in this application, the terminal device controls the charging current based on the number and duration of interruptions in the charger's power supply. When the charging current is reduced to a level that the charger can support, the charger will not interrupt charging, maintaining a stable power supply state, thereby ensuring that the terminal device completes charging.

[0008] Optionally, the weak charging condition is that the time difference between the first power interruption time and the mth power interruption time of the charger is less than or equal to a preset time difference threshold; wherein m is an integer greater than or equal to 2.

[0009] Optionally, the weak charging condition is that the number of interruptions within a preset time period is greater than or equal to a preset number threshold.

[0010] Optionally, reducing the designated charging current includes: reducing the rated charging current of the terminal device by one nth based on the designated charging current; n is an integer greater than 1.

[0011] Optionally, reducing the specified charging current includes: obtaining a maximum output current of the charger; and reducing the specified charging current to the maximum output current.

[0012] Optionally, reducing the specified charging current includes reducing the specified charging current according to a preset ratio.

[0013] In a second aspect, an embodiment of the present application provides a charging control device, comprising: a detection module for detecting the number of interruptions and the duration of interruptions in the power supply of the charger when controlling the charger to charge the terminal device according to a specified charging current; an adjustment module for reducing the specified charging current when the number of interruptions and the interruption time meet a preset weak charging condition; and a control module for controlling the charger to charge the terminal device according to the reduced specified charging current.

[0014] Optionally, the weak charging condition is that the time difference between the interruption time of the first power supply interruption and the interruption time of the mth power supply interruption is less than or equal to a preset time difference threshold, where m is an integer greater than or equal to 2; or, the weak charging condition is that the number of interruptions within a preset time length is greater than or equal to a preset number threshold.

[0015] In a third aspect, an embodiment of the present application provides a terminal device, comprising a universal serial bus interface, a charging management module, a power management module, a battery, a memory, a processor, and a computer program stored in the memory and runnable on the processor, wherein the charging control method as described above is implemented when the processor executes the computer program.

[0016] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the charging control method described above is implemented.

[0017] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on a terminal device, the terminal device executes the steps of the charging control method described in the first aspect above.

[0018] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 Schematic diagram of application scenarios provided by embodiments of the present application;

[0020] Figure 2 An interactive diagram provided for an embodiment of the present application;

[0021] Figure 3 A schematic diagram of the structure of a charging system provided in an embodiment of the present application;

[0022] Figure 4 A flow chart of a charging control method provided in an embodiment of the present application;

[0023] Figure 5 A schematic diagram of the structure of a charging control device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0024] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without making creative efforts are within the scope of protection of this application.

[0025] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0026] The charging control method provided in the embodiments of the present application can be applied to terminal devices such as mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (AR) / virtual reality (VR) devices, laptop computers, ultra-mobile personal computers (UMPCs), netbooks, and personal digital assistants (PDAs). The embodiments of the present application do not impose any restrictions on the specific type of terminal device.

[0027] For example, the terminal device can be a station (ST) in a WLAN, a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA) device, a handheld device with wireless communication capabilities, a computing device or other processing device connected to a wireless modem, a vehicle-mounted device, a vehicle networking terminal, a computer, a laptop computer, a handheld communication device, a handheld computing device, a satellite wireless device, a wireless modem card, a TV set-top box (STB), customer premise equipment (CPE) and / or other devices for communicating on a wireless system and a next-generation communication system, such as a mobile terminal in a 5G network or a mobile terminal in a future evolved Public Land Mobile Network (PLMN) network.

[0028] As an example and not a limitation, when the terminal device is a wearable device, the wearable device can also be a general term for wearable devices that are intelligently designed and developed using wearable technology for daily wear, such as glasses, gloves, watches, clothing and shoes. A wearable device is a portable device that is worn directly on the body or integrated into the user's clothes or accessories. Wearable devices are not only hardware devices, but also achieve powerful functions through software support, data interaction, and cloud interaction. Broadly speaking, wearable smart devices include those that are full-featured, large in size, and can achieve complete or partial functions without relying on smartphones, such as smart watches or smart glasses, as well as those that only focus on a certain type of application function and need to be used in conjunction with other devices such as smartphones, such as various smart bracelets and smart jewelry for vital sign monitoring.

[0029] The charger involved in this application may also be referred to as an adapter. For example, the charger can be connected to a USB port of a terminal device via a universal serial bus (USB) to provide power to the terminal device. The embodiments of this application do not impose any restrictions on the specific type of charger.

[0030] Take the mobile phone as an example, Figure 1 As shown, in the existing terminal device charging solution, when the terminal device is connected to a standard charger, the standard charger can output the rated charging current of the terminal device to charge the terminal device.

[0031] When the terminal device is connected to a third-party charger that supports constant current charging, if the maximum output current of the third-party charger is less than the rated charging current of the terminal device, for example, the rated charging current of the terminal device is 2A, and the maximum output current of the third-party charger that supports constant current charging is 500mA. The third charger can charge the terminal device at its maximum output current. However, since its maximum output current is less than the rated charging current of the terminal device, the charging time becomes longer. If the maximum output current of the third-party charger is greater than the rated charging current of the terminal device, for example, the rated charging current of the terminal device is 2A, and the maximum output current of the third-party charger that supports constant current charging is 500mA. The third charger can charge the terminal device at the rated charging current.

[0032] When the terminal device is connected to a third-party charger that does not support constant current charging, that is, a weak charger, the terminal device detects the current input by the weak charger and controls the weak charger to enable charging according to the rated charging current of the terminal device. On this basis, if the rated charging current of the terminal device is less than the maximum output current of the weak charger (for example, the rated charging current of the terminal device is 400mA, and the maximum output current of the weak charger is 500mA), the third-party charger that does not support constant current charging can also charge the terminal device.

[0033] However, if Figure 2 As shown in the figure, if the rated charging current of the terminal device is greater than the maximum output current of the weak charger (for example, the rated charging current of the terminal device is 2A, and the maximum output current of the weak charger is 500mA), the weak charger will stop supplying power. At this time, the terminal device detects that the weak charger has stopped supplying power, and the terminal device stops charging; when the charger senses that the terminal device has stopped charging, the charger will automatically resume power supply, which will cause the terminal device to enable charging again. Since the weak charger and the terminal device have been cyclically interrupting and enabling charging, the terminal device cannot complete charging.

[0034] To this end, the present application provides a charging control method, in which the terminal device controls the charging current by the number of interruptions and the interruption time of the charger. When the charging current is reduced to the output current that the charger can support, the charger will not interrupt the charging and maintain a stable power supply state, thereby ensuring that the terminal device completes charging.

[0035] Based on this, Figure 3 As shown, the present application provides a structural diagram of a charging system, including a terminal device 10, a charger 20, and a universal serial bus for connecting the terminal device and the charger.

[0036] Among them, the terminal device 10 includes a universal serial bus (USB) interface 11, a charging management module 12, a power management module 13, a battery 14, a processor 15, a memory 16, and a computer program stored in the memory 16 and runnable on the processor 15. When the processor 15 executes the computer program, the charging control method described in this application is implemented.

[0037] The USB interface 11 is an interface that complies with USB standard specifications, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc.

[0038] The charging management module 12 can receive the charging input of the weak charger 20 through the USB interface 11. While the charging management module 12 is charging the battery 14, the charging management module 12 can also supply power to the terminal device 10 through the power management module 13.

[0039] The power management module 13 is used to connect the battery 14, the charging management module 12, and the processor 15. The power management module 13 receives input from the battery 14 and / or the charging management module 12 and provides power to the processor 15, the memory 16, and the like. The power management module 13 can also be used to monitor parameters such as the battery 14 capacity, the number of battery 14 cycles, and the battery 14 health status (leakage, impedance). In some other embodiments, the power management module 13 can also be provided in the processor 15. In other embodiments, the power management module 13 and the charging management module 12 can also be provided in the same device.

[0040] The processor 15 may include one or more processing units. For example, the processor 15 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors 15.

[0041] The processor 15 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. A general-purpose processor may be a microprocessor or any conventional processor.

[0042] In some embodiments, the memory 16 may be an internal storage unit of the terminal device 10, such as a hard disk or memory of the terminal device 10. In other embodiments, the memory 16 may also be an external storage device of the terminal device 10, such as a plug-in hard disk equipped on the terminal device 10, a smart media card (SMC), a secure digital (SD) card, a flash memory card, etc. The memory 16 may also include both an internal storage unit of the terminal device 10 and an external storage device. The memory 16 is used to store an operating system, application programs, a boot loader, data, and other programs, such as the program code of a computer program. The memory 16 may also be used to temporarily store data that has been output or is about to be output.

[0043] It should be understood that the structures illustrated in the embodiments of the present invention do not constitute specific limitations on the terminal device. In other embodiments of the present application, the terminal device may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0044] The embodiments of the present application are described below in conjunction with the drawings in the embodiments of the present application.

[0045] This application provides a charging control method, which is applied to a terminal device, wherein the terminal device is connected to a charger, such as Figure 4 Shown, including:

[0046] S10. During the process of controlling the charger to charge the terminal device according to the specified charging current, detecting the number of interruptions and the duration of the interruption of the power supply by the charger.

[0047] See also Figure 2 and Figure 3 After the charger and terminal device are connected via the Universal Serial Bus (USB), the charger will output current to power the terminal device. After the terminal device detects the current output by the charger, it sends a current command to the charger, controlling the charger to output the specified charging current to charge the terminal device. If the charger's maximum output current is less than the specified charging current, the charger stops supplying power, causing the terminal device to be unable to detect the charger's output current. At this point, the terminal device determines that the charger has interrupted power supply once and records the duration of this interruption.

[0048] After detecting that the charger's output current is no longer sufficient, the terminal device stops drawing power from the charger. The charger then resumes outputting current to supply power to the terminal device. In response, the terminal device again sends a current command to the charger, controlling it to output the specified charging current to charge the terminal device. However, the charger again stops supplying power because the maximum output current is less than the specified charging current. The terminal device then detects another interruption in the charger's power supply and records the duration of the interruption. Similarly, while the terminal device uses the specified charging current to control the charger's charging, it can detect multiple interruptions in the charger's power supply and the duration of each interruption.

[0049] For example, assume the terminal device's specified charging current is 1A, and the charger's maximum output current is only 500mA. When the terminal device detects the charger's output current, it sends a current command to the charger, controlling it to output a 1A charging current to charge the terminal device. Because the charger's maximum output current is less than 1A, the charger stops supplying power, causing the terminal device to fail to detect the charger's output current. At this point, the terminal device determines that the charger has experienced its first power interruption and records the interruption time as T1.

[0050] After detecting that the charger's output current is no longer sufficient, the terminal device stops drawing power from the charger. The charger then resumes supplying current to the terminal device. In response, the terminal device sends another current command to the charger, controlling it to output a 1A charging current to charge the terminal device. However, the charger again stops supplying power because the maximum output current is less than 1A. The terminal device then detects a second interruption in the charger's power supply, recording the interruption time as T2.

[0051] After multiple cycles, the terminal device detects multiple interruptions in the charger's power supply and records the interruption times accordingly.

[0052] It is understood that when the charger is connected to the terminal device and charging begins, the specified charging current may be the rated charging current of the terminal device. For example, if the rated charging current is 2A, then after the terminal device is connected to the charger and the terminal device first detects the charger current, charging is enabled based on the specified charging current of 2A.

[0053] S20: When the number of interruptions and the interruption time meet the preset weak charging condition, reduce the specified charging current.

[0054] The weak charging condition can be designed based on actual needs. For example, the weak charging condition can be that the time difference between the first interruption of power supply by the charger and the time of the mth interruption of power supply is less than or equal to a preset time difference threshold; where m is an integer greater than or equal to 2.

[0055] Correspondingly, at this time, the so-called number of interruptions and interruption time satisfying the preset weak charging conditions means that, when the terminal device controls the charger to output a specified charging current to charge the terminal device, the terminal device detects that the time difference between the interruption time of the charger's first power interruption and the interruption time of the mth power interruption is less than or equal to the preset time difference threshold.

[0056] For example, assume the rated charging current of the terminal device is 2A, and the maximum output current of the charger is only 500mA. In the charger's weak charging condition, m = 3, and the preset time difference threshold is 2 seconds. When the charger is connected to the terminal device and begins to power the terminal device, the terminal device enables charging based on the specified charging current of 2A. While controlling the charger to charge the terminal device based on the specified charging current of 2A, assume that the terminal device detects that the first interruption of the charger's power supply occurred at "9:10:01" and the third interruption occurred at "9:10:02." Because the time difference between "9:10:01" and "9:10:02" is 1 second, which is less than 2 seconds, the terminal device detects that the number and duration of the charger's interruptions meet the weak charging condition while controlling the charger to charge the terminal device based on the specified charging current of 2A. The terminal device then reduces the specified charging current.

[0057] Among them, the preset time difference threshold can be set and adjusted as needed, and this application does not impose any special restrictions on this.

[0058] Optionally, the weak charging condition may also be that the number of interruptions within a preset time period is greater than or equal to a preset number threshold.

[0059] Correspondingly, at this time, the so-called number of interruptions and interruption time satisfying the preset weak charging conditions means that when the terminal device controls the charger to output a specified charging current to charge the terminal device, the number of interruptions of the charger detected by the terminal device within the preset time period is greater than or equal to the preset number threshold.

[0060] For example, assuming that the rated charging current of the terminal device is 2A, the maximum output current of the charger is only 500mA, in the weak charging condition of the charger, the preset duration is 1 second, and the preset number threshold is 3 times.

[0061] When the charger is connected to the terminal device and starts to power the terminal device, the terminal device enables charging based on the specified charging current of 2A. In the process of controlling the charger to charge the terminal device based on the specified charging current of 2A, it is assumed that the terminal device starts timing and records the number of interruptions when it detects the first interruption of power supply by the charger. Assuming that the interruption time of the first power interruption is "1 hour 10 minutes 55 seconds", 1 second later, the number of interruptions counted by the terminal device is 5. Therefore, in the process of controlling the charger to charge the terminal device based on the specified charging current of 2A, the terminal device detects that the number of interruptions and the interruption time of the charger meet the weak charging condition, and then the terminal device reduces the specified charging current.

[0062] Among them, the preset duration and preset number thresholds can be set and adjusted as needed, and this application does not impose any special restrictions on this.

[0063] In an embodiment of the present application, whenever the terminal device determines that the number of interruptions and the interruption time of the charger meet the preset weak charging conditions, the terminal device can reduce the specified charging current to re-control the charger to charge.

[0064] For example, the terminal device may reduce the rated charging current of the terminal device by one-nth based on the specified charging current, where n is an integer greater than 1. The value of n may be set based on actual needs and is not particularly limited in this application.

[0065] For example, the rated charging current of the terminal device is 2A, and n=10. Then, whenever the terminal device determines that the number of interruptions and the interruption time of the charger meet the preset weak charging condition, the terminal device can reduce the current specified by 0.2A. For example, when charging starts, the specified charging current is 2A. The terminal device detects that the number of interruptions and the interruption time of the charger meet the preset weak charging condition, and the terminal device reduces the specified charging current from 2A to 1.8A. When the terminal device controls the charger to charge the terminal device at a specified charging current of 1.8A, it detects that the number of interruptions and the interruption time of the charger meet the preset weak charging condition. The terminal device reduces the specified charging current by 0.2A again, that is, reduces the specified charging current from 1.8A to 1.6A.

[0066] Optionally, the terminal device may also reduce the specified charging current according to a preset ratio, wherein the preset ratio may be set and adjusted as needed, and this application does not impose any special restrictions on this.

[0067] For example, the preset ratio is 10%. When charging starts, the specified charging current is 2A. The terminal device detects that the number of interruptions and the interruption time of the charger meet the preset weak charging condition. The terminal device reduces the specified charging current of 2A by 10%, that is, the specified charging current is reduced from 2A to 1.8A. When the terminal device controls the charger to charge the terminal device at a specified charging current of 1.8A, it detects that the number of interruptions and the interruption time of the charger meet the preset weak charging condition. The terminal device reduces the specified charging current by 10% again, that is, reduces the specified charging current from 1.8A to 1.6A.

[0068] Optionally, the terminal device may first obtain the maximum output current of the charger, and then directly reduce the specified charging current to the maximum output current.

[0069] For example, the maximum output current of the charger is 500mA. When charging begins, the specified charging current is 2A. If the terminal device detects that the number and duration of interruptions of the charger meet the preset weak charging condition, the terminal device reduces the specified charging current of 2A to the maximum output current of the charger, that is, the specified charging current is reduced from 2A to 500mA.

[0070] S30: Control the charger to charge the terminal device according to the reduced designated charging current.

[0071] Repeat steps S10 to S30. When the specified charging current decreases to less than or equal to the maximum output current of the weak charger, the weak charger will stop interrupting, thereby supplying power to the terminal device normally, allowing the terminal device to charge normally.

[0072] For example, assume the rated charging current of a terminal device is 2A and the maximum output current of the charger is 500mA. During the process of controlling the charger to charge the terminal device according to the specified charging current, whenever the terminal device detects that the number and duration of the charger interruptions meet the weak charging condition, the terminal device reduces the current specified charging current by 500mA. Therefore, during the process of controlling the charger to charge the terminal device according to the specified charging current, the specified charging current is reduced from 2A to 1.5A, then from 1.5A to 1A, and finally from 1A to 500mA. At this point, since the specified charging current is equal to the maximum output current of the charger, the charger can power the terminal device according to its maximum output current of 500mA, allowing the terminal device to charge normally.

[0073] The charging control method provided in the embodiment of the present application is that, in the process of controlling the charger to charge the terminal device according to the specified charging current, the terminal device detects the number of interruptions and the interruption time of the charger interrupting the power supply. When it is detected that the number of interruptions and the interruption time meet the preset weak charging conditions, the specified charging current is reduced, and then the charger is controlled to charge the terminal device according to the reduced specified charging current. That is, in the present application, the terminal device controls the magnitude of the charging current by the number of interruptions and the interruption time of the charger interrupting the power supply. When the charging current is reduced to the output current that the charger can support, the charger will not interrupt the charging and maintain a stable power supply state, thereby ensuring that the terminal device completes charging. This improves the user experience and reduces user complaints and device withdrawal problems caused by the inability of the terminal device to charge with a weak charger.

[0074] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0075] The embodiment of the present application also provides a charging control device, such as Figure 5 Shown, including:

[0076] The detection module 10 is used to detect the number of interruptions and the duration of interruptions of the charger when the charger is controlling the charger to charge the terminal device according to the specified charging current.

[0077] The adjustment module 20 is configured to reduce the designated charging current when the number of interruptions and the interruption time meet a preset weak charging condition.

[0078] The control module 30 is configured to control the charger to charge the terminal device according to the reduced designated charging current.

[0079] Optionally, the weak charging condition is that the time difference between the first interruption of power supply by the charger and the time of the mth interruption of power supply is less than or equal to a preset time difference threshold; where m is an integer greater than or equal to 2. Alternatively, the weak charging condition is that the number of interruptions within a preset duration is greater than or equal to a preset number threshold.

[0080] Optionally, the adjusting module 20 reducing the designated charging current includes: reducing the rated charging current of the terminal device by one nth based on the designated charging current; n is an integer greater than 1.

[0081] Optionally, the adjusting module 20 reducing the specified charging current includes: reducing the specified charging current according to a preset ratio.

[0082] Optionally, the adjusting module 20 reducing the designated charging current includes: acquiring a maximum output current of the charger; and reducing the designated charging current to the maximum output current.

[0083] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned charging control method can be implemented.

[0084] An embodiment of the present application provides a computer program product, which, when executed on a terminal device, enables the terminal device to implement the above-mentioned charging control method.

[0085] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0086] In the embodiments provided in this application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely illustrative. For example, the division of the modules or units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0087] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0088] The charging control device provided in the embodiments of the present application initiates the corresponding charging process after the terminal device is connected to the charger. If the charger fails to operate normally, the detection module can detect the number and duration of interruptions in the charger's power supply during the process of controlling the charger to charge the terminal device according to a specified charging current. The adjustment module can then reduce the specified charging current if the number and duration of interruptions meet preset weak charging conditions. The control module then controls the charger to charge the terminal device according to the reduced specified charging current. This stabilizes the charging process, solves the problem of repeated interruptions and failure to charge during the charging process, improves the user experience, and reduces user complaints and device withdrawals caused by the inability of the terminal device to charge with a weak charger.

[0089] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the scope of protection of the present application.

Claims

1. A charging control method, applied to a terminal device, wherein the terminal device is connected to a charger, characterized in that: The charging control method includes: In the process of controlling the charger to charge the terminal device according to the specified charging current, detecting the number of interruptions and the duration of interruptions of the power supply by the charger; Whenever the number of interruptions and the interruption time meet a preset weak charging condition, reducing the rated charging current of the terminal device by one-nth, where n is an integer greater than 1, based on the specified charging current; or reducing the specified charging current according to a preset ratio; The charger is controlled to charge the terminal device according to the reduced specified charging current.

2. The charging control method according to claim 1, wherein: The weak charging condition is that the time difference between the first power interruption time and the mth power interruption time of the charger is less than or equal to a preset time difference threshold; wherein m is an integer greater than or equal to 2.

3. The charging control method according to claim 1, wherein: The weak charging condition is that the number of interruptions within a preset time period is greater than or equal to a preset number threshold.

4. A charging control device, characterized in that: include: a detection module, configured to detect the number of interruptions and the duration of interruptions in power supply by the charger during a process of controlling the charger to charge the terminal device according to a specified charging current; an adjustment module, configured to reduce the rated charging current of the terminal device by one-nth, where n is an integer greater than 1, based on the specified charging current whenever the number of interruptions and the interruption time meet a preset weak charging condition; or to reduce the specified charging current according to a preset ratio; A control module is used to control the charger to charge the terminal device according to the reduced specified charging current.

5. The charging control device according to claim 4, characterized in that: The weak charging condition is that the time difference between the first power interruption time of the charger and the mth power interruption time is less than or equal to a preset time difference threshold, where m is an integer greater than or equal to 2; or the weak charging condition is that the number of interruptions within a preset time length is greater than or equal to a preset number threshold.

6. A terminal device comprising a universal serial bus interface, a charging management module, a power management module, a battery, a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the charging control method according to any one of claims 1 to 3 is implemented.

7. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the charging control method according to any one of claims 1 to 3 is implemented.

Citation Information

Patent Citations

  • Terminal charging control method and terminal

    CN108321900A

  • Charging control method, relevant equipment and computer storage medium

    CN109599906A