Charging method and device of terminal equipment

By detecting the charger type and battery status, and dynamically adjusting the charging current threshold, the problem of charger power reduction is solved, ensuring charging speed and user experience.

CN113241810BActive Publication Date: 2025-12-19SHANGHAI LONGCHEER TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202110352609.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-31
Publication Date
2025-12-19
Estimated Expiration
2041-03-31

AI Technical Summary

Technical Problem

Existing technologies fail to effectively consider whether the charger can support the required power when setting the constant current charging current threshold, resulting in a decrease in charger power during use, affecting charging speed and user experience.

Method used

After the terminal device is connected to the charger, the charger type and its voltage and current thresholds are determined. In fast charging mode, the charging current threshold is dynamically adjusted based on battery temperature, voltage and charger power to ensure the charger's maximum power while avoiding interruption.

Benefits of technology

It maximizes charging speed and avoids repeated charger interruptions in fast charging mode, thus improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113241810B_ABST
    Figure CN113241810B_ABST
Patent Text Reader

Abstract

The application aims to provide a charging method and device of a terminal device. In response to detecting that the terminal device is connected to a charger, the application determines the charging type of the charger and the corresponding charging voltage threshold and charging current threshold. When detecting that the terminal device is in a fast charging state, the application determines the first maximum charging current corresponding to the temperature of the battery of the terminal device, the second maximum charging current corresponding to the voltage of the battery, and the third maximum charging current corresponding to the maximum power of the charger, and takes the minimum value as the fast charging current threshold of the terminal device, which realizes that, in the fast charging state, the fast charging current threshold of the terminal device is determined by not only considering the temperature and voltage of the battery but also the maximum power of the charger, which can not only maximize the maximum power of the charger but also avoid repeated interruption of low-power chargers, so that the charging speed can be maximized and the user experience can be 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 charging of terminal equipment, and in particular to a charging method and device for terminal equipment. BACKGROUND

[0002] In the prior art, charging can be divided into four stages, namely, a trickle charge stage, a pre-charge stage, a fast charge stage and a taper charge stage. In the trickle charge stage, the battery voltage is below 2.1V, and the allowed charging current is relatively small, for example, 45mA. At this time, the terminal battery is in an over-discharged state, and the terminal cannot be started. In the pre-charge stage, the battery voltage rises from 2.1V to about 3.3V, and the allowed charging current is 500mA. At this time, the terminal can be started to the bootloader, but cannot enter the system. In the fast charge stage, the battery voltage is from about 3.3V to 4.2V, and the current can reach the maximum current specified in the battery specification. At this time, the terminal enters the system, and the user can normally use the terminal. In the taper charge stage, the voltage slowly rises from 4.2V to the maximum voltage 4.45V specified in the battery specification, and then the voltage remains unchanged, and the current gradually decreases until the cutoff charging current, and the charging is stopped. Furthermore, the data line of the conventional charging line can only support a maximum current of 1.5A, so in order to output high power to the battery, the voltage at the charger end needs to be increased. The QC2.0 protocol increases the voltage to 9V / 12V / 20V, but the higher the voltage, the higher the line loss. Therefore, the voltage is generally increased to 9V, and rarely increased to 12V.

[0003] However, in the prior art, when setting the constant current charging threshold, the battery temperature and the battery voltage are mainly considered. If the threshold is set too small, it is not conducive to exerting the maximum power of the charger. If the threshold is set too large, the charger is easily hung. Since only the maximum power that can be absorbed by the battery end is considered, whether the charger can support such a large power is not considered. In addition, the existing code logic does not consider the power consumed by the mainboard line and the USB impedance. In particular, during the use of the charger, the line aging may increase the line impedance, resulting in a decrease in the power of the charger. The power required by the original battery end is not sufficient to be provided at the charger end, and the terminal will repeatedly interrupt the charging during the fast charging process. SUMMARY

[0004] An object of the present application is to provide a charging method and device for terminal equipment, so as to maximize the exertion of the maximum power of the charger while avoiding repeated interruptions of low-power chargers, thereby maximizing the charging speed and improving the user experience.

[0005] According to an aspect of the present application, a charging method of a terminal device is provided, wherein the method comprises:

[0006] In response to detecting that the terminal device is connected to a charger, determining a charging type of the charger and corresponding charging voltage threshold and charging current threshold thereof;

[0007] When detecting that the terminal device is in a fast charging state, determining a first maximum charging current corresponding to a temperature of a battery of the terminal device, a second maximum charging current corresponding to a voltage of the battery, and a third maximum charging current corresponding to a maximum power of the charger;

[0008] Determining the minimum value among the first maximum charging current, the second maximum charging current, and the third maximum charging current as a fast charging current threshold of the terminal device.

[0009] Further, in the above method, the determining the third maximum charging current corresponding to the maximum power of the charger when detecting that the terminal device is in the fast charging state comprises:

[0010] When detecting that the terminal device is in the fast charging state, step-up lifting the charging voltage of the charger at a preset step-up voltage, and recording the corresponding online voltage and online current of the charger after each lifting;

[0011] If the difference between the online current corresponding to the current lifting and the online current corresponding to the previous lifting is greater than a preset difference threshold, recording the previous online current and the previous online voltage;

[0012] Based on the online voltage and online current corresponding to each lifting, and the previous online current and the previous online voltage, determining the impedance power of the charging line and the maximum power of the charger;

[0013] Based on the impedance power, the maximum power, and the previous online voltage, determining the third maximum charging current actually entering the terminal device.

[0014] Further, in the above method, the determining the charging type of the charger and the corresponding charging voltage threshold and charging current threshold thereof in response to detecting that the terminal device is connected to the charger comprises:

[0015] In response to detecting that the terminal device is connected to the charger, identifying the charging type of the charger;

[0016] Presetting the charging voltage threshold and the charging current threshold corresponding to the charging type of the charger.

[0017] Further, in the method, the determination of the impedance power of the charging line and the maximum power of the charger based on the corresponding on-line voltage and on-line current after each lifting and the previous on-line current and the previous on-line voltage comprises:

[0018] determination of the maximum power of the charger based on the previous on-line current and the previous on-line voltage;

[0019] acquisition of the previous on-line voltage and on-line current corresponding to the previous lifting from the corresponding on-line voltage and on-line current after each lifting;

[0020] determination of the previous charging power of the charger corresponding to the previous lifting based on the previous on-line voltage and on-line current;

[0021] determination of the impedance power of the charging line based on the maximum power and the previous charging power.

[0022] Further, in the method, the determination of the third maximum charging current actually entering the terminal device based on the impedance power, the maximum charging power and the previous on-line voltage comprises:

[0023] determination of the maximum entering power actually entering the terminal device based on the maximum power and the impedance power;

[0024] determination of the third maximum charging current actually entering the terminal device based on the maximum entering power and the previous on-line voltage.

[0025] According to another aspect of the present application, a non-volatile storage medium having computer readable instructions stored thereon is also provided, the computer readable instructions being executable by a processor to cause the processor to implement the charging method of the terminal device.

[0026] According to another aspect of the present application, a device for charging a terminal device is also provided, wherein the device comprises:

[0027] one or more processors;

[0028] a non-volatile storage medium for storing one or more computer readable instructions,

[0029] when the one or more computer readable instructions are executed by the one or more processors, the one or more processors implement the charging method of the terminal device.

[0030] Compared with the prior art, the application determines the charging type of the charger and the corresponding charging voltage threshold and charging current threshold in response to detecting that the terminal device is connected to the charger; when it is detected that the terminal device is in a fast charging state, the first maximum charging current corresponding to the temperature of the battery of the terminal device, the second maximum charging current corresponding to the voltage of the battery, and the third maximum charging current corresponding to the maximum power of the charger are determined; the minimum value among the first maximum charging current, the second maximum charging current, and the third maximum charging current is determined as the fast charging current threshold of the terminal device. In the fast charging state, not only the influence of the temperature and voltage of the battery on the maximum charging current into the terminal device is considered, but also the influence of the maximum power of the charger on the maximum charging current into the terminal device is considered, so that the minimum value is selected as the fast charging current threshold of the terminal device, which can not only maximize the maximum power of the charger while avoiding repeated interruption of low-power chargers, but also can maximize the charging speed and improve user experience. BRIEF DESCRIPTION OF DRAWINGS

[0031] Other features, objects, and advantages of the application will become more apparent from the following detailed description of non-limiting embodiments made with reference to the drawings:

[0032] Figure 1 A flowchart of a charging method of a terminal device according to an aspect of the application is shown;

[0033] Figure 2 A practical application scenario diagram of a charging method of a terminal device according to an aspect of the application is shown;

[0034] Figure 3 A determination diagram of a maximum charging current allowed into a terminal device under the maximum power of a charger in a charging method of a terminal device according to an aspect of the application is shown.

[0035] The same or similar reference signs in the drawings represent the same or similar components. DETAILED DESCRIPTION

[0036] The application will be described in further detail below with reference to the drawings.

[0037] In a typical configuration of the application, the terminal, the devices of the service network, and the trusted party each include one or more processors (CPUs), input / output interfaces, network interfaces, and memories.

[0038] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0039] Computer-readable media include both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include non-transitory computer-readable media, such as modulated data signals and carrier waves.

[0040] like Figure 1 The diagram illustrates a charging method for a terminal device according to one aspect of this application. This method is applied during the charging process of a terminal device, which can be a mobile terminal or a fixed terminal. The mobile terminal may include, but is not limited to, mobile phones, mobile computers, and iPads. The method includes steps S11, S12, and S13, specifically comprising the following steps:

[0041] Step S11, in response to detecting that the terminal device is connected to the charger, determining the charging type of the charger and its corresponding charging voltage threshold and charging current threshold. Here, after the terminal device is inserted into the charging interface (such as a USB data line, etc.), the terminal device detects that the charger is inserted, i.e. the terminal device is connected to the charger, and the charging type of the charger can be detected by the charging driver of the terminal device. For example, if the charging interface is a USB data line, the charging type can be classified according to different voltages on D+ / D- in the USB data line, wherein, under the BC1.2 protocol, the charging type of the charger under the BC1.2 protocol has SDP (computer port), CDP (USB hub), DCP (5V charger), OCP (non-standard charger) and FLOAT charger (floating charge). After the BC1.2 protocol is identified, the automatic power source detection (APSD) algorithm based on hardware will perform the subsequent charging type identification process, i.e. identifying whether the charger type is QC2.0 protocol or QC3.0 protocol. By determining the charging type of the charger, the current of the battery entering the terminal device can be adjusted to the maximum, improving the charging speed, i.e. the so-called fast charging state.

[0042] Step S12, when detecting that the terminal device is in the fast charging state, determining the first maximum charging current corresponding to the temperature of the battery of the terminal device, the second maximum charging current corresponding to the voltage of the battery and the third maximum charging current corresponding to the maximum power of the charger. Here, the charging current can be adjusted according to the temperature of the battery being charged, and the charging current threshold allowed by different battery temperature ranges (i.e. the first maximum charging current) is different. In order to protect the battery of the terminal device, different maximum charging currents (i.e. the second maximum charging current) are configured in the voltage curve of the battery to prevent the voltage from being too high and to interrupt the charging of the battery at any time, which affects the life of the battery, etc. In order to maximize the maximum power of the charger, the maximum charging current (i.e. the third maximum charging current) under the condition of guaranteeing the maximum power of the charger also needs to be determined.

[0043] Step S13, determining the minimum value of the first maximum charging current, the second maximum charging current and the third maximum charging current as the fast charging current threshold of the terminal device.

[0044] Through the steps S11 to S13, in the fast charging state, not only the influence of the temperature and voltage of the battery on the maximum charging current into the terminal device is considered, but also the influence of the maximum power of the charger on the maximum charging current into the terminal device is considered, so that the minimum value is selected from the maximum charging current into the terminal device as the fast charging current threshold of the terminal device, which can not only maximize the maximum power of the charger, but also avoid the low-power charger from being repeatedly interrupted, so that the charging speed can be maximized and the user experience can be improved.

[0045] Further, the step S11 determines the charging type of the charger and the corresponding charging voltage threshold and charging current threshold in response to detecting that the terminal device is connected to the charger, and specifically includes:

[0046] In response to detecting that the terminal device is connected to the charger, the charging type of the charger is identified.

[0047] The charging voltage threshold and the charging current threshold corresponding to the charging type of the charger are preset.

[0048] For example, when it is detected that the terminal device is connected to the charger, the charging driver program is started to identify the charging type of the charger, so as to determine which charging type the charger connected to the terminal device belongs to. When the charging type of the charger is identified, for example, in a preferred embodiment of the present application, the identified charging type of the charger is DCP (5V charger), and the charging voltage threshold 5V and the charging current threshold 1.5A corresponding to the DCP (5V charger) can be set through the charging driver program, that is, the highest charging voltage of the charger connected to the terminal device is 5V. Of course, different charging voltage thresholds and charging current thresholds corresponding to different charging types of the charger are set to adapt to chargers corresponding to different charging types, so as to realize the corresponding setting of the charging voltage threshold and the charging current threshold of the charger corresponding to different types.

[0049] Next, in the process of testing the maximum current allowed to input the terminal device under the maximum power of the charger, the step S12 determines the third maximum charging current corresponding to the maximum power of the charger when it is detected that the terminal device is in the fast charging state, and specifically includes:

[0050] When it is detected that the terminal device is in fast charging state, the charging voltage of the charger is stepped up by a preset step voltage, and the corresponding online voltage and online current of the charger after each step up are recorded. Here, the preset step voltage can be any voltage value. When testing the maximum power of the charger, different preset step voltages can be selected. For example, if the maximum power to be tested needs to be more accurate, a smaller preset step voltage can be used for step up. For example, in a preferred embodiment of the present application, the preset step voltage is preferably 50 mV. If the maximum power of the charger needs to be tested more accurately, the size of the preset step voltage can be reduced to make the identified maximum power of the charger more accurate and close to the actual maximum power of the charger. For example, in a preferred embodiment of the present application, when it is detected that the terminal device is in fast charging state, the charging voltage of the charger is stepped up by 50 mV, and the corresponding online voltage and online current of the charger after each step up of the charging voltage are recorded, so that the voltage and current changes before and after each step up can be compared.

[0051] If the difference between the online currents corresponding to the current step up and the previous step up is greater than a preset difference threshold, the previous online current and the previous online voltage are recorded. Here, the preset difference threshold includes but is not limited to any current value. In a preferred embodiment of the present application, the preset difference threshold is preferably 100 mA, which is only an example. For example, if the difference between the online currents corresponding to the current step up and the previous step up is greater than 100 mA, the online voltage (i.e. the previous online voltage) and the online current (i.e. the previous online current) corresponding to the previous step up are recorded. It can be seen that the power of the charging during the previous step up is closest to the maximum power of the charger. Then, based on the online voltage and online current corresponding to each step up, the previous online current and the previous online voltage, the impedance power of the charging line and the maximum power of the charger are determined. Based on the impedance power, the maximum power and the previous online voltage, the maximum charging current actually entering the terminal device under the condition of guaranteeing the maximum power of the charger is determined, i.e. the third maximum charging current, which realizes the testing and determination of the maximum charging current actually entering the terminal device under the condition of guaranteeing the maximum power of the charger.

[0052] In this embodiment, in order to improve the accuracy of the test, when calculating the maximum online voltage that the charger can withstand, multiple tests can be performed, and the minimum voltage value at which the charger is not pulled down is used to calculate the maximum power of the charger to ensure that the obtained maximum power can guarantee that the charger will not be pulled down.

[0053] In this embodiment, the data line of the charging line in the traditional charging process can only support a maximum current of 1.5A, so in order to output high power to the battery, the voltage of the charger needs to be increased. The QC2.0 protocol increases the voltage to 9V / 12V / 20V, but the higher the voltage, the higher the line loss, so the voltage is generally increased to 9V and rarely increased to 12V to ensure that the line is not quickly consumed.

[0054] Through this embodiment, the charging voltage of the charger is actively stepped up at the beginning of the charger accessing the terminal device. The actual power of the charger is dynamically monitored (through the online voltage and online current after each step-up), and the power consumed in the charging line (i.e., impedance power) in the process can be calculated, so as to configure the maximum online current (i.e., the third maximum charging current) in the fast charging state under the condition of satisfying the maximum power of the charger. The maximum power of the charger can be more accurately and stably exerted, and the charger can be prevented from being pulled down during the process of increasing the current in fast charging, thereby improving the user experience.

[0055] Next, based on the above embodiments of the present application, the impedance power of the charging line and the maximum power of the charger are determined based on the corresponding online voltage and online current after each step-up and the previous online current and the previous online voltage. Specifically, it includes:

[0056] Based on the previous online current and the previous online voltage, the maximum power of the charger is determined;

[0057] From the corresponding online voltage and online current after each step-up, the previous online voltage and online current corresponding to the previous step-up are obtained;

[0058] Based on the previous online voltage and the previous online current, the previous charging power of the charger corresponding to the previous step-up is determined;

[0059] Based on the maximum power and the previous charging power, the impedance power of the charging line is determined. Here, the charging line includes but is not limited to the line of the mainboard line and the USB charging line and any other line that causes loss during charging.

[0060] For example, if the previous online current I' and the previous online voltage U' are recorded, the charging power calculated at this time can be considered to be close to the maximum power of the charger, i.e. the maximum power of the charger is U' times I'; since the online voltage and the online current of the charger are recorded after each preset step-up voltage is raised, the previous online voltage U" and the previous online current I" corresponding to the last time after the last time of the previous time (for example, the previous time is the 10th time of raising, and the previous time of the previous time is the 9th time of raising, to distinguish the previous time and the previous time of the previous time) can be obtained from the online voltage and the online current corresponding to each time of raising after each time of raising. The previous time of the previous charging power is obtained by multiplying the previous online voltage U" and the previous online current I". Since the impedance in the charging circuit always exists and is fixed, the impedance power of the entire charging circuit can be calculated by the maximum power corresponding to the previous time and the previous time of the previous charging power, so as to realize the calculation of the impedance power of the charging circuit.

[0061] Next, the above embodiment of the present application, the third maximum charging current actually entering the terminal device is determined based on the impedance power, the maximum charging power and the previous online voltage, specifically comprising:

[0062] The maximum entering power actually entering the terminal device is determined based on the maximum power and the impedance power;

[0063] The third maximum charging current actually entering the terminal device is determined based on the maximum entering power and the previous online voltage.

[0064] For example, the maximum input power actually entering the terminal device after the previous step-up voltage is raised is obtained by subtracting the impedance power from the maximum power of the charger, and the third maximum charging current actually entering the terminal device is obtained by dividing the maximum input power by the previous online voltage, so as to realize the calculation and determination of the maximum charging current actually entering the terminal device under the condition of guaranteeing the maximum power of the charger

[0065] For example, the maximum input power actually entering the terminal device after the previous step-up voltage is raised is obtained by subtracting the impedance power from the maximum power of the charger, and the third maximum charging current actually entering the terminal device is obtained by dividing the maximum input power by the previous online voltage, so as to realize the calculation and determination of the maximum charging current actually entering the terminal device under the condition of guaranteeing the maximum power of the charger Figure 2As shown, in the actual application scenario of the charging method of the terminal device provided in the present application, first, the USB data line for charging is inserted into the terminal device to start the process, and then the charging type of the charger is identified through the charging driver program. It is judged whether it is a DCP charging type, if not, the charging voltage threshold and the charging current threshold corresponding to the charging type are set; if yes, HCDCP is started, the battery temperature of the terminal device is detected, and the maximum value C1 of the current allowed in the corresponding fast charging state is selected according to the battery temperature; at the same time, the battery voltage is detected, and the maximum value C2 of the current allowed in the corresponding fast charging state is selected according to the battery voltage; at the same time, the maximum power of the charger is calculated to determine the maximum value C3 of the current allowed under the maximum power of the charger; then, the minimum value Min(C1, C2, C3) of the maximum value C1 of the current allowed corresponding to the battery temperature, the maximum value C2 of the current allowed corresponding to the battery voltage and the maximum value C3 of the current allowed corresponding to the maximum power of the charger is taken, and Min(C1, C2, C3) is determined as the fast charging current threshold of the terminal device; then, the current is gradually lifted to Min(C1, C2, C3) to enable the charger to generate voltage and start fast charging, which realizes that in the fast charging state, not only the influence of the temperature and voltage of the battery on the maximum charging current entering the terminal device is considered, but also the influence of the maximum power of the charger on the maximum charging current entering the terminal device is considered, so that the minimum value is selected as the fast charging current threshold of the terminal device, which can not only maximize the maximum power of the charger, but also avoid repeated interruption of low-power chargers, so that the charging speed can be maximized and the user experience can be improved.

[0066] In the process of calculating the maximum value C3 of the current allowed by the maximum power of the charger, as Figure 3As shown, first, the charging type of the charger is identified as DCP; then, the charging voltage threshold corresponding to the DCP, 5V, and the charging current threshold, 1.5A, are set; and the charging voltage of the charger is stepped up by 50mV, and the online voltage and online current corresponding to the charger after each time the charging voltage is stepped up are recorded, so that the voltage and current changes before and after each time the charging voltage is stepped up can be compared; if the difference between the online currents corresponding to the current time and the previous time after being stepped up is greater than a preset difference threshold, the previous online current and the previous online voltage, and the last online voltage and the last online current corresponding to the last time after being stepped up are recorded, and the impedance power of the charging line and the maximum power of the charger in the charging process are calculated; then, the maximum entering power of the actual input battery is calculated according to the impedance power of the charging line and the maximum power of the charger; finally, the maximum charging current actually entering the terminal device, i.e., the maximum value C3 of the current allowed by the maximum power of the charger, is determined based on the maximum entering power and the previous online voltage, so as to realize the determination of the maximum charging current actually entering the terminal device under the condition of the maximum power of the charger. Here, when the charging current threshold is first set, the line loss in the charging process is considered, and the situation that the charger is hung is avoided; secondly, the dynamic detection of the maximum power of the charger is added when the charging starts, so that the charger of different power can be adapted; of course, the same charger can also be protected due to the excessive line loss caused by the long use time.

[0067] According to another aspect of the present application, a non-volatile storage medium having computer readable instructions stored thereon is also provided, the computer readable instructions being executable by a processor to cause the processor to implement the charging method of the terminal device as described above.

[0068] According to another aspect of the present application, a device for charging a terminal device is also provided, wherein the device comprises:

[0069] one or more processors;

[0070] a non-volatile storage medium for storing one or more computer readable instructions,

[0071] when the one or more computer readable instructions are executed by the one or more processors, the one or more processors implement the charging method of the terminal device as described above.

[0072] Here, the details of each embodiment of the device for charging a terminal device can be specifically referred to the corresponding part of the charging method of the terminal device as described above, and will not be described here.

[0073] In summary, the application determines the charging type of the charger and the corresponding charging voltage threshold and charging current threshold in response to detecting that the terminal device is connected to the charger; when it is detected that the terminal device is in fast charging state, determines the first maximum charging current corresponding to the temperature of the battery of the terminal device, the second maximum charging current corresponding to the voltage of the battery, and the third maximum charging current corresponding to the maximum power of the charger; and determines the minimum value among the first maximum charging current, the second maximum charging current and the third maximum charging current as the fast charging current threshold of the terminal device. In the fast charging state, not only the influence of the temperature and voltage of the battery on the maximum charging current into the terminal device is considered, but also the influence of the maximum power of the charger on the maximum charging current into the terminal device is considered, so that the minimum value is selected from among them as the fast charging current threshold of the terminal device, which can not only maximize the maximum power of the charger while avoiding repeated interruptions of low-power chargers, but also can maximize the charging speed and improve user experience.

[0074] It should be noted that the application can be implemented in software and / or a combination of software and hardware, for example, can be implemented by using an application specific integrated circuit (ASIC), a general purpose computer or any other similar hardware device. In one embodiment, the software program of the application can be executed by a processor to implement the steps or functions described above. Similarly, the software program of the application (including related data structures) can be stored in a computer readable recording medium, such as a RAM memory, a magnetic or optical drive or a floppy disk and the like. In addition, some steps or functions of the application can be implemented by hardware, for example, as a circuit cooperating with the processor to perform the respective steps or functions.

[0075] In addition, part of the application can be applied as a computer program product, for example, computer program instructions, when executed by a computer, through the operation of the computer, the method and / or technical solution according to the application can be invoked or provided. The program instructions invoking the method of the application can be stored in a fixed or removable recording medium, and / or transmitted through a data stream in a broadcast or other signal bearing medium, and / or stored in the working memory of the computer device running according to the program instructions. Here, according to one embodiment of the application, the device includes a memory for storing computer program instructions and a processor for executing program instructions, wherein when the computer program instructions are executed by the processor, the device triggers the method and / or technical solution based on the foregoing embodiments according to the application.

[0076] It will be obvious to a person skilled in the art that the application is not limited to the details of the above-described exemplary embodiments but can be implemented in other embodiments without departing from the scope of the application. The application is therefore not limited by the described examples but can vary within the scope of the claims and their equivalents. No reference signs in the claims should be considered as limiting the scope of the claims. Furthermore, it is obvious that the wording "comprising" does not exclude other parts and does not exclude other steps. Singularity is not excluded with respect to plurality and vice versa. Multiple units or devices recited in a device claim can also be implemented by one unit or device by means of software or hardware. The terms first, second and the like do not denote any ordering, but rather serve as names.

Claims

1. A charging method of a terminal device, wherein, The method comprises: in response to detecting that the terminal device is connected to a charger, determining the charging type of the charger and the corresponding charging voltage threshold and charging current threshold of the charger; when it is detected that the terminal device is in a fast charging state, determining a first maximum charging current corresponding to the temperature of the battery of the terminal device, a second maximum charging current corresponding to the voltage of the battery, and a third maximum charging current corresponding to the maximum power of the charger, wherein the third maximum charging current corresponding to the maximum power of the charger is determined by: when it is detected that the terminal device is in a fast charging state, stepwise lifting the charging voltage of the charger at a preset step voltage, and recording the online voltage and online current corresponding to the charger after each lifting, if the difference between the online current corresponding to the charger after the current lifting and the online current after the previous lifting is greater than a preset difference threshold, recording the previous online current and the previous online voltage, determining the impedance power of the charging line and the maximum power of the charger based on the online voltage and online current corresponding to the charger after each lifting and the previous online current and the previous online voltage, and determining the third maximum charging current actually entering the terminal device based on the impedance power, the maximum power, and the previous online voltage. The minimum value among the first maximum charging current, the second maximum charging current, and the third maximum charging current is determined as the fast charging current threshold of the terminal device.

2. The method of claim 1, wherein, The method comprises: in response to detecting that the terminal device is connected to a charger, identifying the charging type of the charger; presetting the charging voltage threshold and the charging current threshold corresponding to the charging type of the charger.

3. The method of claim 1, wherein, The method comprises: determining the maximum power of the charger based on the previous online current and the previous online voltage; from the online voltage and online current corresponding to the charger after each lifting, obtaining the previous online voltage and online current corresponding to the previous lifting; determining the previous charging power of the charger corresponding to the previous lifting based on the previous online voltage and the previous online current; determining the impedance power of the charging line based on the maximum power and the previous charging power.

4. The method of claim 3, wherein, The method comprises: determining the maximum entering power actually entering the terminal device based on the maximum power and the impedance power; determining the third maximum charging current actually entering the terminal device based on the maximum entering power and the previous online voltage.

5. A non-transitory storage medium having stored thereon computer readable instructions, the computer readable instructions, when executed by a processor, cause the processor to implement a method as claimed in any one of claims 1 to 4.

6. A device for charging of a terminal device, wherein, The apparatus comprises: one or more processors; a non-transitory storage medium for storing one or more computer readable instructions, when the one or more computer readable instructions are executed by the one or more processors, cause the one or more processors to implement a method as claimed in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Method and terminal for adjusting charge current through PID

    CN106208213A

  • Charging method and apparatus

    CN107196372A

  • Charging method, terminal and computer readable storage medium

    CN112421700A