Charging control method and device, equipment and storage medium
By adjusting the charging current difference during fast charging and gradually approaching the target charging current, the problem of instability in fast charging is solved and the stability and reliability of charging is improved.
Patent Information
- Application Number
- CN202510431856.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-07
- Publication Date
- 2025-07-11
AI Technical Summary
In the prior art, charging is unstable during fast charging and charging, which can easily lead to excessive floating voltage of the battery or no output of battery protection, resulting in repeated restart of terminal equipment.
By sending a current adjustment request to the adapter, the difference between the charging current and the target charging current is updated, and the difference between the current charging current and the target charging current is gradually adjusted to approach the target charging current, avoiding the fast charging in advance when the battery ages and the battery protection is not output.
It improves the stability of fast charging and avoids the problem of battery protection not output and repeated restart of terminal devices due to unstable charging after the battery ages.
Smart Images

Figure CN120300972A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the technical field of charging, and relate to but are not limited to a charging control method, device, equipment and storage medium. Background Art
[0002] In the charging technology of terminal devices, fast charging has become an essential function for most terminal devices. In the current related technologies, the control logic of fast charging communication is usually that the terminal device inserts the adapter, then identifies the protocol, applies for the pair of the highest voltage and the minimum current to the adapter, and finally dynamically adjusts the charging current applied to the adapter through the charging curve.
[0003] However, since the time for software to monitor the battery voltage jump when adjusting the charging current is relatively long, when the battery impedance is large, the large current charging at the beginning of fast charging will cause the floating voltage of the battery to be relatively large, and it is easy to reach the full voltage and exit fast charging, resulting in unstable charging; especially when the battery is extremely aged, it is easy to reach the protection voltage of the battery and not output, resulting in repeated restart of the terminal device due to power loss.
[0004] Therefore, how to improve the charging stability of fast charging is an urgent problem to be solved. Summary of the Invention
[0005] The charging control method, device, equipment and storage medium provided by the embodiments of the present application can improve the charging stability of fast charging. The charging control method, device, equipment and storage medium provided by the embodiments of the present application are implemented as follows:
[0006] The charging control method provided by the embodiments of the present application is applied to a terminal device, and the method includes: when charging the battery of the terminal device through an adapter, sending a current adjustment request to the adapter, where the current adjustment request includes an updated charging current applied by the terminal device to the adapter, and a first difference between the updated charging current and a target charging current is less than a second difference between a current charging current and the target charging current; charging according to the updated charging current.
[0007] The charging control device provided by the embodiments of the present application is applied to a terminal device, and the device includes: a sending module, configured to send a current adjustment request to the adapter when charging the battery of the terminal device through the adapter, where the current adjustment request includes an updated charging current applied by the terminal device to the adapter, and a first difference between the updated charging current and a target charging current is less than a second difference between a current charging current and the target charging current; a charging module, configured to charge according to the updated charging current.
[0008] The computer device provided by an embodiment of the present application includes a memory and a processor. The memory stores a computer program that can run on the processor, and when the processor executes the program, the method described in the embodiment of the present application is implemented.
[0009] The computer-readable storage medium provided by an embodiment of the present application stores a computer program thereon. When the computer program is executed by a processor, the method provided by the embodiment of the present application is implemented.
[0010] The computer program product provided by an embodiment of the present application includes a computer program. When the computer program is executed by a processor, the method provided by the embodiment of the present application is implemented.
[0011] In the charging control method, device, equipment, and storage medium provided by the embodiments of the present application, when charging the battery of a terminal device through an adapter, a current adjustment request is sent to the adapter. The current adjustment request includes the updated charging current applied by the terminal device to the adapter, and the first difference between the updated charging current and the target charging current is less than the second difference between the current charging current and the target charging current; finally, charging is performed according to the updated charging current. In the charging control method of the present application, by applying for an updated charging current to the adapter and charging according to the updated charging current, the charging current of the terminal device gradually approaches the target charging current, which can ensure that fast charging is not triggered prematurely when the battery of the terminal device ages, and can effectively avoid the problem of repeatedly restarting due to triggering battery protection and not outputting in the current related technologies, improving the stability of fast charging. Description of the Drawings
[0012] The drawings here are incorporated into the specification and form a part of this specification. These drawings show embodiments consistent with the present application and, together with the specification, are used to explain the technical solutions of the present application.
[0013] Figure 1 It is a schematic diagram of a typical charging architecture of a terminal device provided by an embodiment of the present application;
[0014] Figure 2 It is a schematic diagram of the control logic of fast charging communication provided by an embodiment of the present application;
[0015] Figure 3 It is a schematic diagram of the system architecture of a terminal device provided by an embodiment of the present application;
[0016] Figure 4 It is a schematic diagram of the implementation process of the charging control method provided by an embodiment of the present application;
[0017] Figure 5 It is a schematic diagram of the implementation process of the charging control method provided by another embodiment of the present application;
[0018] Figure 6 Schematic diagram of the implementation process of the charging control method provided by another embodiment of the present application;
[0019] Figure 7 Exemplary process schematic diagram of the charging control method provided by an embodiment of the present application;
[0020] Figure 8 Schematic diagram of the implementation process of determining whether to allow the true fast charging stage provided by an embodiment of the present application;
[0021] Figure 9 Schematic diagram of the implementation process of the mobile phone obtaining the target impedance during the fast charging process provided by an embodiment of the present application;
[0022] Figure 10 Structural schematic diagram of the charging control device provided by an embodiment of the present application;
[0023] Figure 11 Structural schematic diagram of the computer device provided by an embodiment of the present application. Detailed implementation manners
[0024] To make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the following will further describe the specific technical solutions of the present application in detail with reference to the accompanying drawings in the embodiments of the present application. The following embodiments are used to illustrate the present application but are not intended to limit the scope of the present application.
[0025] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the technical field to which the present application belongs. The terms used herein are only for the purpose of describing the embodiments of the present application and are not intended to limit the present application.
[0026] In the following description, reference is made to "some embodiments", which describe a subset of all possible embodiments. However, it can be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments, and can be combined with each other without conflict.
[0027] It should be noted that the terms "first / second / third" involved in the embodiments of the present application are used to distinguish similar or different objects, and do not represent a specific order for the objects. It can be understood that "first / second / third" can be interchanged with a specific order or sequence when allowed, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0028] With the continuous development of science and technology, people use terminal devices more and more frequently in their daily lives. Terminal devices are usually powered by batteries, and when the battery power of the terminal device is insufficient, the battery of the terminal device needs to be charged.
[0029] In the charging technology of terminal devices, fast charging has become an essential function for most terminal devices. Many fast charging protocols have emerged in the field of fast charging, such as super voltage open loop multi-step constant current charging (SVOOC), programmable power supply (PPS), and universal fast charging specification (UFCS).
[0030] In the current related technologies, a typical charging architecture of a terminal device is as Figure 1 shown Figure 1 and includes a normal charging path, a fast charging path, and a battery power supply path to the system. Among them, in the normal charging path, the output end of the adapter is connected to a universal serial bus (USB) interface circuit, and then charges a single-cell battery through negative voltage protection (NVP), over voltage protection metal-oxide-semiconductor field-effect transistor (OVP MOS), and power management integrated circuit (PMIC); in the fast charging path, the output end of the adapter is connected to the USB interface circuit, and then passes through the main charge pump (CP) and the secondary CP, and then charges the single-cell battery; in the battery power supply path to the system, the single-cell battery supplies power to the system through the PMIC.
[0031] In some embodiments, fast charging communication is completed by three parties: the adapter, the CP slave, and the wireless access point (AP) host. The CP slave is Figure 1The main CP shown in the figure, the AP host is the central processing unit (CPU) of the terminal device. Among them, the CP slave includes communication sub-modules of the power delivery physical layer (PD PHY), the super voltage open loop multi-step constant current charging physical layer (SVOOC PHY), and the unified fast charging system physical layer (UFCS PHY). The PD PHY is used to implement PPS fast charging communication, the SVOOC PHY is used to implement SVOOC fast charging communication, and the UFCS PHY is used to implement UFCS fast charging communication.
[0032] Optionally, the adapter and the CP slave, that is, Figure 1 The main CP shown in the figure exchanges information through D+D-. The CP slave and the AP host interact through the inter-integrated circuit (I2C) serial communication protocol, indirectly realizing the information interaction between the AP host and the adapter. After the fast charging communication handshake is completed, the output of the adapter passes through the USB interface circuit and then directly passes through the dual-channel CP slave, that is, Figure 1 The main CP and the secondary CP shown in the figure supply power to the single-cell battery, and each CP slave undertakes half of the charging power. Among them, when the fast charging protocol is the PPS protocol, the adapter and the CP slave exchange information through the configuration channel (CC) line.
[0033] As an example, the control logic of fast charging communication can be as Figure 2 shown. First, the terminal device inserts the adapter, and then performs the identification protocol. Regardless of the protocol, the voltage of the adapter is first adjusted to be about 100mv - 200mv higher than the battery voltage to start direct charging, and then the maximum voltage and minimum current pair are applied to the adapter, such as 11V / 1A or 20V / 1A, etc. Note that the voltage is applied in one step to 11V or 20V. Finally, the charging current applied to the adapter is dynamically adjusted through the charging curve. Some examples of the charging curve are as Figure 2 shown in the figure. For example, when the battery voltage is lower than 4204mv, 8.5A is applied to the adapter. When it is higher than 4204mv, it needs to jump to the next gear, that is, when the battery voltage is lower than 4304mv, the charging current applied is 8A.
[0034] However, since the software monitors the battery voltage for a long time, for example, one gear is about 2 seconds, there will be two risks when applying for fast charging current according to the battery voltage when fast charging just starts, especially when the battery is aged. First, the battery impedance is large, and the large current charging at the beginning of fast charging causes the battery floating pressure to be relatively large. The battery voltage will easily reach the full voltage and exit the fast charging, and then switch to normal charging with a slow charging speed. Second, for extremely aged batteries, the large current at the beginning will cause the software to not have time to react to exit the fast charging, and the battery protection voltage will be reached without output. The system power supply during the fast charging process comes from the battery, which will cause the terminal device to lose power and restart repeatedly.
[0035] Therefore, how to improve the charging stability of fast charging is an urgent problem to be solved.
[0036] In view of this, an embodiment of the present application provides a charging control method, which is applied to a terminal device, and the method specifically includes: when charging the battery of the terminal device through an adapter, sending a current adjustment request to the adapter, the current adjustment request includes an updated charging current requested by the terminal device to the adapter, and the first difference between the updated charging current and the target charging current is less than the second difference between the current charging current and the target charging current; finally, charging is performed according to the updated charging current. In the charging control method of the present application, by applying for an updated charging current from the adapter and charging according to the updated charging current, the charging current of the terminal device gradually approaches the target charging current, which can ensure that the early withdrawal of fast charging is not triggered when the battery of the terminal device is fast charged after aging, and can effectively avoid the problem of repeated restarts caused by triggering battery protection without output in the current related technology, thereby improving the stability of fast charging.
[0037] It should be understood that the terminal device involved in the embodiments of the present application may be a mobile phone, a tablet computer, a laptop computer, a handheld computer, a mobile internet device (MID), a wearable device, a virtual reality (VR) device, an augmented reality (AR) device, a smart screen, an artificial intelligence (AI) speaker, an earphone, a terminal in industrial control, a terminal in self-driving, a terminal in remote medical surgery, a terminal in a smart grid, a terminal in transportation safety, a terminal in a smart city, a terminal in a smart home, a personal digital assistant (PDA), etc. The embodiments of the present application are not limited thereto.
[0038] Exemplarily, Figure 3 FIG. is a schematic diagram of the system architecture of the terminal device provided by an embodiment of the present application. As Figure 3 shown, the terminal device includes components such as a processor 310, a memory 320, a transceiver 330, a display unit 340, an input unit 350, and a power module 360.
[0039] The processor 310 is the control center of the terminal device, connecting various parts of the entire terminal device through various interfaces and lines. By running or executing software programs and / or modules stored in the memory 320, and by calling data stored in the memory 320, it executes various functions of the terminal device and processes data, thereby monitoring the terminal device as a whole. Optionally, the processor 310 may include one or more processing units; optionally, the processor 310 may integrate an application processor, and the application processor mainly processes operating systems, user interfaces, and application programs, etc. Of course, other processors may also be included, which will not be listed one by one here.
[0040] The memory 320 can be used to store software programs and modules. By running the software programs and modules stored in the memory 320, the processor 310 can execute various functional applications and data processing of the terminal device. The memory 320 mainly includes a program storage area and a data storage area. Among them, the program storage area can store operating devices, application programs required for at least one function (such as sound playback function, image playback function, etc.); the data storage area can store data created according to the use of the terminal device (such as audio data, phone book, etc.). In addition, the memory 320 can include high-speed random access memory and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.
[0041] The transceiver 330 can provide solutions for wireless communications applied to the terminal device, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc. The transceiver 330 can be one or more devices integrating at least one communication processing module. For example, integrating the antenna and the baseband processor into the transceiver 330, or integrating the antenna and the modulation and demodulation processor into the transceiver 330, etc., which is not limited here.
[0042] The display unit 340 can be used to display information input by the user or information provided to the user, as well as various menus of the terminal device. The display unit 340 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc., which is not limited here.
[0043] The input unit 350 can be used to receive input digital or character information, and generate key signal inputs related to user settings and function controls of the terminal device. Specifically, the input unit 350 can collect operations of the user on or near it, and drive corresponding connection devices according to a preset program. In addition, the input unit 350 may include a touch panel, which can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel, the input unit 350 may further include other input devices. Specifically, the other input devices may include, but are not limited to, one or more of function keys (such as volume control keys, switch keys, etc.), trackballs, joysticks, etc.
[0044] The terminal device further includes a power module 360 for supplying power to each component. Optionally, the power module 360 can be logically connected to the processor 310 through a power management device, so as to implement functions such as management of charging, discharging, and power consumption management through the power management device.
[0045] Although not shown, the terminal device may further include a camera. Optionally, the position of the camera on the terminal device can be front-facing or rear-facing, and the embodiments of the present application do not limit this.
[0046] It can be understood that the structure schematically shown in the embodiments of the present application does not constitute a specific limitation on the terminal device. In other embodiments of the present application, the terminal device may include more or fewer components than those shown in the figure, or combine certain components, or split certain components, or have different component arrangements. The components shown in the figure can be implemented in hardware, software, or a combination of software and hardware.
[0047] In order to make the purpose and technical solutions of the present application clearer and more intuitive, the charging control method, device, equipment, and storage medium provided by the embodiments of the present application will be described in detail below with reference to the 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.
[0048] Please refer to Figure 4 which is a schematic flowchart of the implementation process of the charging control method provided by an embodiment of the present application. This method can be applied to the terminal device as shown in Figure 3 and as shown in Figure 4 , this method may include the following steps 401 and 402:
[0049] Step 401, when charging the battery of the terminal device through an adapter, send a current adjustment request to the adapter. The current adjustment request includes the updated charging current applied by the terminal device to the adapter, and the first difference between the updated charging current and the target charging current is less than the second difference between the current charging current and the target charging current.
[0050] In some embodiments, after the terminal device establishes an electrical connection with the adapter, the adapter can charge the terminal device, such as fast charging. The fast charging protocol applicable to this application can be any one of SVOOC, PPS, and UFCS.
[0051] It should be noted that in the embodiments of this application, the charging of the battery of the terminal device by the adapter, taking the fast charging of the battery of the terminal device by the adapter, that is, fast charging, as an example for illustration.
[0052] In some embodiments, during the normal fast charging process, the terminal device can determine the updated charging current according to the current charging current and the target charging current. For example, according to the magnitude relationship between the current charging current and the target charging current of the terminal device, it can be determined whether to increase or decrease the charging current applied to the adapter, and based on the difference between the two, the value of the charging current that needs to be increased or decreased is determined, so as to determine the value of the updated charging current that needs to be applied to the adapter, so that the first difference between the updated charging current and the target charging current is less than the second difference between the current charging current and the target charging current. That is to say, the terminal device can dynamically determine the updated charging current applied to the adapter according to the gap between the current charging current and the target charging current of the terminal device, and send a corresponding current adjustment request to the adapter.
[0053] Optionally, the target charging current is the charging current currently required by the terminal device, which can be set according to experience or determined according to the charging scenario. Different charging scenarios can correspond to different target charging currents, and it can also be determined by the terminal device based on the current battery charging curve. Specifically, this application does not make any limitations in this regard. For example, if the current battery charging curve indicates that the required charging current is A, then the target charging current is A, or in the current charging scenario, the charging current required by the terminal device is B, then the target charging current is B.
[0054] Optionally, the current adjustment request sent by the terminal device to the adapter can be similar to a communication packet. After the adapter receives this communication packet, it can parse the updated charging current contained therein and adjust its own output current according to the updated charging current.
[0055] Step 402, charge according to the updated charging current.
[0056] In some embodiments, the adapter receives the updated charging current and initiates the charging process based on this charging current. For example, it initiates a fast charging process. Fast charging technology usually achieves a higher charging speed by gradually increasing the current until it approaches the maximum charging capacity of the battery. The adapter adjusts the output current according to the current adjustment request provided by the terminal device to perform fast charging for the terminal device.
[0057] Optionally, during the charging process, the terminal device and the adapter continuously monitor the state of the battery, such as voltage, temperature, etc. If it is detected that the temperature is too high or other abnormalities occur, the charging current may be automatically reduced to protect the battery.
[0058] In this embodiment, when charging the battery of the terminal device through the adapter, a current adjustment request is sent to the adapter. The current adjustment request includes the updated charging current applied by the terminal device to the adapter. The first difference between the updated charging current and the target charging current is less than the second difference between the current charging current and the target charging current. Finally, charging is performed according to the updated charging current. In the charging control method of the present application, by applying for the updated charging current to the adapter and charging according to the updated charging current, the charging current of the terminal device gradually approaches the target charging current, which can ensure that fast charging is not triggered prematurely when the battery of the terminal device ages, and can effectively avoid the problem of repeatedly restarting due to triggering battery protection and not outputting in the current related technologies, improving the stability of fast charging.
[0059] Based on the above embodiments, Figure 5 is a schematic flowchart of the implementation of the charging control method provided in another embodiment of the present application. As Figure 5 shown, the method may include the following steps 501 to step 503:
[0060] Step 501, when the current charging current of the battery of the terminal device is less than the target charging current, determine the updated charging current according to the current charging current of the battery of the terminal device.
[0061] In some embodiments, when the current charging current of the battery of the terminal device is less than the target charging current, it is necessary to increase the charging current to approach the target charging current. The terminal device can first determine the current charging voltage corresponding to the current charging current, and then determine the updated charging current according to the maximum charging current corresponding to the current charging voltage.
[0062] Optionally, a mapping relationship between the charging voltage and the charging current of the battery is preset in the terminal device, and one charging voltage corresponds to multiple charging currents. The terminal device determines the current charging voltage corresponding to the current charging current according to the mapping relationship, and searches for the maximum charging current corresponding to the current charging voltage in the mapping relationship based on the current charging voltage.
[0063] Further, determine a first estimated voltage corresponding to the case where the battery of the terminal device is charged with the maximum charging current. The estimated charging voltage is calculated based on the impedance of the battery of the charging device during charging, as well as the current actual charging voltage and charging current. When the difference between the current charging voltage and the first estimated voltage is greater than or equal to the threshold, it indicates that charging the battery of the terminal device with the maximum charging current will not exceed the standard. Therefore, determine that the updated charging current is the maximum charging current.
[0064] It should be noted that the determination of the threshold can be set according to experience, or can be a preset fixed value, or can be obtained by other means. This application does not limit this.
[0065] In some other embodiments, when the difference between the current charging voltage and the first estimated voltage is less than the threshold, it indicates that charging the battery of the terminal device with the maximum charging current will exceed the standard. Therefore, further determine a first charging current. The first charging current is the sum of the current charging current and a first current difference. The first current difference is the product of the difference between the maximum charging current and the current charging current and a preset multiple, and the preset multiple is less than 1. For example, the preset multiple can be 1 / 2.
[0066] Further, determine a second estimated voltage corresponding to the case where the battery of the terminal device is charged with the first charging current. When the difference between the current charging voltage and the second estimated voltage is greater than or equal to the threshold, determine that the updated charging current is the first charging current.
[0067] Optionally, if the difference between the current charging voltage and the second estimated voltage is still less than the threshold, it indicates that charging the battery of the terminal device with the first charging current will still exceed the standard. Therefore, further calculate a second charging current. The second charging current is the sum of the current charging current and a second current difference. The second current difference is the product of the first current difference and the preset multiple. Furthermore, determine a third estimated voltage corresponding to the case where the battery of the terminal device is charged with the second charging current, and compare the third estimated voltage with the current charging voltage, and so on.
[0068] It should be noted that the first charging current in the above embodiments is determined when the first current difference is greater than or equal to the preset current threshold. If the first current difference is less than the preset current threshold, directly determine that the updated charging current is the sum of the current charging current and the preset current.
[0069] Step 502: Send a current adjustment request to the adapter. The current adjustment request includes the updated charging current requested by the terminal device from the adapter. The first difference between the updated charging current and the target charging current is less than the second difference between the current charging current and the target charging current.
[0070] Optionally, the target charging current is the charging current currently required by the terminal device, which can be set based on experience, determined according to the charging scenario, or determined by the terminal device based on the current battery charging curve. Different charging scenarios can correspond to different target charging currents. Specifically, this application does not limit this. For example, if the current battery charging curve indicates that the required charging current is A, then the target charging current is A. Or, in the current charging scenario, if the charging current required by the terminal device is B, then the target charging current is B.
[0071] Optionally, the current adjustment request sent by the terminal device to the adapter can be similar to a communication packet. After receiving the communication packet, the adapter can parse the updated charging current contained therein and adjust its output current according to the updated charging current.
[0072] Step 503: Charge according to the updated charging current.
[0073] In some embodiments, the adapter receives the updated charging current and starts a charging process, such as a fast charging process, according to the charging current. The adapter will adjust the output current according to the current adjustment request provided by the terminal device to charge the terminal device.
[0074] Optionally, during the charging process, the terminal device and the adapter continuously monitor the status of the battery, such as voltage, temperature, etc. If it is detected that the temperature is too high or other abnormalities occur, the charging current may be automatically reduced to protect the battery.
[0075] In this embodiment, when the current charging current of the battery of the terminal device is less than the target charging current, the updated charging current is determined according to the current charging current of the battery of the terminal device, and then a current adjustment request is sent to the adapter. The current adjustment request includes the updated charging current requested by the terminal device from the adapter. Finally, charging is performed according to the updated charging current. In this charging control method, the updated charging current is determined according to the current charging current of the battery of the terminal device, and the updated charging current is applied to the adapter. Finally, the battery of the terminal device is charged with the updated charging current, so that the charging current of the terminal device gradually approaches the target charging current, improving the stability of fast charging.
[0076] It should be noted that the above embodiments are specific implementation manners for determining the updated charging current according to the current charging current of the battery of the terminal device when the current charging current of the battery of the terminal device is less than the target charging current. When the current charging current of the battery of the terminal device is less than the target charging current, the terminal device can also determine the updated charging current according to the voltage difference, where the voltage difference is the difference between the current charging voltage corresponding to the current charging current of the battery of the terminal device and the preset full charge voltage.
[0077] Exemplarily, a mapping relationship between the voltage difference and the current value to be increased is preset in the terminal device. The terminal device can determine the increased current value corresponding to the difference between the current charging voltage of the battery of the terminal device and the preset full charge voltage by looking up this mapping relationship, and then obtain that the updated charging current is the sum of the current charging current and the increased current value.
[0078] It should be noted that which specific method is used to determine the updated charging current can be randomly selected or determined according to the real-time impedance of the battery of the terminal device. The present application does not limit this.
[0079] In a possible implementation manner, when the current charging current of the battery of the terminal device is greater than or equal to the target charging current, the updated charging current is the target charging current.
[0080] Exemplarily, when the current charging current of the battery of the terminal device is greater than the target charging current, it indicates that the terminal device needs to apply for a smaller current. Since the floating voltage of the battery will drop when the current is small, the updated charging current to be applied for is the target charging current; when the current charging current of the battery of the terminal device is equal to the target charging current, it indicates that the current charging current has been updated to the target charging current. At this time, no operation can be performed, or it can also be considered that the updated charging current is the target charging current.
[0081] Based on the above embodiments, Figure 6 is a schematic flowchart of the implementation of the charging control method provided by another embodiment of the present application. As Figure 6 shown, the method may include the following steps 601 to step 606:
[0082] Step 601, determine whether the terminal device meets the charging conditions.
[0083] In some embodiments, taking the fast charging condition as an example of the charging condition, before the terminal device performs fast charging, it usually performs normal charging for a short period of time. The terminal device can collect the battery voltage vbat1 and the battery current ibat_1 when not charging before inserting the adapter, and when performing normal charging, collect the battery voltage vbat_2 and the battery current ibat_2 during the normal charging process, and further obtain the initial impedance of the battery of the terminal device at this time according to the formula Rbat = (vbat2 - vbat1) / (ibat2 - ibat1). Among them, ibat_1 is the battery current when not charging, and ibat_2 is the battery current during normal charging, and the difference between the two is relatively large, so as to ensure the accuracy of the calculated initial impedance Rbat.
[0084] Furthermore, according to the initial impedance of the terminal device, the preset minimum current that meets the fast charging condition, and the full charge voltage, the simulated fast charging voltage is obtained. Usually, the preset minimum current that meets the fast charging condition is 1.5 A, and the full charge voltage is 4.5 V. For a single-cell adapter, when the adapter outputs 1.5 A of battery current, it is 3 A, so the calculation formula for the simulated fast charging voltage Vest is Vest = vbat2 + (3 - ibat2) * Rbat; for a dual-cell adapter, when the adapter outputs 1.5 A of battery current, it is 1.5 A, so the calculation formula for the simulated fast charging voltage Vest is Vest = vbat2 + (1.5 - ibat2) * Rbat. After calculating the simulated fast charging voltage, compare the magnitudes of the simulated fast charging voltage and the full charge voltage. If the simulated fast charging voltage is less than the full charge voltage, it is determined that the terminal device meets the fast charging condition. For example, when vbat2 < 4.4 V and Vest < 4.5 V at the same time, it means that true fast charging can be entered. Otherwise, even if true fast charging is entered, it will be withdrawn because the voltage is too high to reach the full charge voltage.
[0085] Step 602, when the terminal device meets the charging condition, charge the terminal device through the adapter.
[0086] In some embodiments, when the terminal device meets the charging condition, such as meeting the fast charging condition, initially it first requests the lowest gear current of 1.5 A from the adapter, that is, the initial ibus_req = 1.5 A, and after the adapter asks for the first-frame battery voltage from the terminal device, it replies 1.5 A to the adapter to control the initial current at 1.5 A.
[0087] Optionally, the control logic of the charging current for fast charging the terminal device through the adapter is based on the update period of the fuel gauge. For example, the value of ibus_req is scheduled to be updated every 2 s, where the fuel gauge updates data every 1 s.
[0088] Step 603, obtain the target impedance of the terminal device during the charging process.
[0089] In some embodiments, due to different charging polarities, during the fast charging process of the terminal device, it is necessary to recalculate the target impedance R_BAT during the fast charging process. The specific calculation method is to collect the battery voltage Vbat3 and battery current Ibat3 before the 2s acquisition period, as well as the battery voltage Vbat4 and battery current Ibat4 after the 2s period, and then make a judgment on the target impedance R_BAT (the prerequisite is that the value of R_BAT is currently 0). That is, when Vbat4 > Vbat3 & Ibat4 - Ibat3 > 0.3A, the target impedance is calculated according to the formula R_BAT = (Vbat4 - Vbat3) / (Ibat4 - Ibat3).
[0090] Step 604: Determine the updated charging current according to the validity of the target impedance.
[0091] In some embodiments, whether the target impedance is valid is also related to the battery temperature of the terminal device. For example, the mapping relationship between the validity of the target impedance and the temperature can be as shown in Table 1 below:
[0092] Table 1
[0093] Temperature range (°C) Effective range of impedance 0~5 50 < Rbat < 800 mohm 5~12 40 < Rbat < 600 mohm 12~16 30 < Rbat < 500 mohm 16~20 20 < Rbat < 400 mohm 20~35 10 < Rbat < 300 mohm 35~51 10 < Rbat < 300 mohm
[0094] In some embodiments, the terminal device matches according to the current temperature and the calculated value of the target impedance in Table 1. If it matches the data in Table 1, it means the target impedance is valid; if not, it means the target impedance is invalid, and if it is invalid, it is set to 0.
[0095] In a possible implementation manner, when the target impedance exceeds the preset effective impedance range, that is, when the target impedance is invalid, the updated charging current is determined according to the voltage difference. The voltage difference is the difference between the current charging voltage corresponding to the current charging current of the terminal device and the preset full charge voltage, and there is a mapping relationship between the voltage difference and the increased charging current preset in the terminal device.
[0096] Among them, the mapping relationship between the voltage difference and the increased charging current can be as shown in Table 2 below:
[0097] Table 2
[0098] Voltage difference Charging current increase for non-direct charging Charging current increase for direct charging 600mv 1000ma 1500ma 500mv 800ma 1200ma 400mv 600ma 1000ma 300mv 500ma 800ma 200mv 300ma 500ma 100mv 200ma 200ma 50mv 100ma 100ma
[0099] In some embodiments, the current charging current of the terminal device is selected based on the difference between the current charging voltage corresponding to the current charging current and the preset full-charge voltage. As shown in Table 2 above, for example, if one_full_volt - vbat (the current charging voltage corresponding to the current charging current of the terminal device) > 600 mv, in the case of the non-direct charging scheme, the increased charging current is 1000 ma, and the updated charging current is ibus_req + 1000 ma. In the case of the direct charging scheme, the increased charging current is 1500 ma, and the updated charging current is ibus_req + 1500 ma.
[0100] In another possible implementation, when the target impedance is within the preset effective impedance range, the updated charging current is determined based on the current charging current of the battery of the terminal device. There is a mapping relationship between the charging voltage and the charging current preset in the terminal device, and one charging voltage corresponds to multiple charging currents.
[0101] Among them, the mapping relationship between the charging voltage and the charging current can be as shown in Table 3 below:
[0102] Table 3
[0103] Preset charging voltage Preset charging current 4204mv 9100ma 4204mv 8500ma 4304mv 8000ma 4304mv 7500ma 4304mv 7000ma 4304mv 6500ma 4484mv 6000ma 4484mv 5500ma 44844mv 5000ma 4484mv 4500ma 4514mv 4000ma 4514mv 3500ma 4514mv 3000ma 4514mv 2500ma 4514mv 2000ma 4514mv 1500ma
[0104] In some embodiments, when the target impedance is within the preset effective impedance range, the updated charging current is determined based on the current charging current of the battery of the terminal device. First, according to the mapping relationship in Table 3 above, the current charging voltage ibus_req_volt corresponding to the current charging current ibus_req of the terminal device is determined, and then the corresponding maximum charging current ibus_req_max and the voltage ibus_target_volt corresponding to the target charging current ibus_target are found based on the current charging voltage.
[0105] Optionally, the target charging current is the charging current currently required by the terminal device, which can be set according to experience, or determined according to the charging scenario. Different charging scenarios can correspond to different target charging currents, or it can be determined by the terminal device based on the current battery charging curve. Specifically, the present application does not limit this. For example, if the current battery charging curve indicates that the required charging current is A, then the target charging current is A. Or, in the current charging scenario, if the charging current required by the terminal device is B, then the target charging current is B.
[0106] Exemplarily, assume the initial ibus_req = 1500 mA. Then, find the voltage corresponding to the last current in Table 3 that is not less than ibus_req as ibus_req_volt. For example, the last current not less than 1500 mA is 1500 mA, and the corresponding voltage is 4514 mV. So, ibus_req_volt = 4514 mV. Then, find the first charging current whose voltage is equal to ibus_req_volt as the maximum charging current ibus_req_max for fast charging. For example, ibus_req_max = 4000 mA corresponding to ibus_req_volt = 4514 mV. At the same time, assume the target charging current ibus_target = 9100 mA, then its corresponding ibus_target_volt is 4204 mV.
[0107] Further, based on the maximum charging current, the voltages corresponding to the target charging current, the target charging current, the target impedance, the actual voltage and actual current of the terminal device at present, which are measured by the fuel gauge, determine the updated charging current.
[0108] First, based on the maximum charging current, the target charging current and the current charging current of the terminal device, determine the target current difference.
[0109] Among them, according to the mapping relationship in the preset Table 3, determine whether the current charging voltage corresponding to the current charging current of the terminal device is the same as the voltage corresponding to the target charging current of the terminal device. When the current charging voltage corresponding to the current charging current of the terminal device is the same as the voltage corresponding to the target charging current of the terminal device, determine the target current difference as the difference between the target charging current and the current charging current of the terminal device. For example, assume that after querying Table 3, it is determined that the voltage values corresponding to ibus_target and ibus_req respectively belong to the same voltage range, that is, the voltage values are the same. At this time, the target current difference ibus_delta = ibus_target - ibus_req.
[0110] When the current charging voltage corresponding to the current charging current of the terminal device is different from the voltage corresponding to the target charging current of the terminal device, determine the target current difference as the difference between the maximum charging current and the current charging current of the terminal device. For example, assume that after querying Table 3, it is determined that the voltage values corresponding to ibus_target and ibus_req respectively do not belong to the same voltage range, that is, the voltage values are different. Then the target current difference ibus_delta = ibus_req_max - ibus_req.
[0111] Exemplarily, still taking the above-mentioned voltage and current values as an example, assuming the initial ibus_req = 1500 mA, the corresponding voltage ibus_req_volt is 4514 mV, the maximum charging current ibus_req_max = 4000 mA, and the target charging current ibus_target = 9100 mA. Then the corresponding ibus_target_volt is 4204 mV. Compare whether the voltage value ibus_target_volt 4204 mV corresponding to ibus_target is the same as the voltage value ibus_req_volt 4514 mV corresponding to ibus_req. Obviously, 4204 mV and 4514 mV are different. So the target current difference ibus_delta = ibus_req_max - ibus_req, that is, ibus_delta = 4000 mA - 1500 mA = 2500 mA.
[0112] Further, according to the target current difference, the target impedance, the current charging current of the terminal device, and the current actual voltage and actual current of the terminal device, calculate the voltage corresponding to the current after up - current. The current after up - current is the sum of the current charging current of the terminal device and the target current difference; according to the voltage corresponding to the current after up - current and the current charging voltage corresponding to the current charging current of the terminal device, determine the updated charging current.
[0113] It should be noted that in the case where the current after up - current is the maximum charging current, the voltage corresponding to the current after up - current is also the first estimated voltage corresponding to the case of charging the battery of the terminal device with the maximum charging current in the above - mentioned Figure 5 embodiment.
[0114] Exemplarily, the calculation formula for the voltage vbat_est corresponding to the current after up - current is vbat_real + R_BAT * (ibus_delta + ibus_req - ibat_real), where ibat_real is the actual battery current and vbat_real is the actual battery voltage.
[0115] In some embodiments, one implementation manner of determining the updated charging current according to the voltage corresponding to the current after up - current and the current charging voltage corresponding to the current charging current of the terminal device is: when the difference between the current charging voltage corresponding to the current charging current of the terminal device and the voltage corresponding to the current after up - current is greater than the threshold, determine the updated charging current as the current after up - current.
[0116] Exemplarily, assume the threshold is 50 mv. Then, further determine whether ibus_req_volt - vbat_est is greater than 50 mv. If it satisfies being greater than 50 mv, it means that such a large current can be charged at the current charging voltage level, and the updated charging current will be directly determined as the current after up - current, that is, ibus_req + ibus_delta.
[0117] In some other embodiments, another implementation for determining the updated charging current according to the voltage corresponding to the current after up - current and the current charging voltage corresponding to the current charging current of the terminal device is as follows: When the difference between the current charging voltage corresponding to the current charging current of the terminal device and the voltage corresponding to the current after up - current is less than the threshold, determine whether the target current difference is greater than or equal to the preset current threshold; when the target current difference is greater than or equal to the preset current threshold, determine that the updated current difference is a preset multiple of the target current difference, where the preset multiple is less than 1. Finally, according to the updated current difference, the target impedance, the current charging current of the terminal device, and the actual voltage and actual current of the terminal device at present, calculate the voltage corresponding to the current after up - current again. The current after up - current again is the sum of the current charging current of the terminal device and the updated current difference; finally, determine the updated charging current according to the voltage corresponding to the current after up - current again and the current charging voltage corresponding to the current charging current of the terminal device.
[0118] It should be noted that when the current after up - current is the maximum charging current, the updated current difference is also the first current difference in the above - mentioned Figure 5 shown embodiment, the current after up - current again is also the first charging current in the above - mentioned Figure 5 shown embodiment, and the voltage corresponding to the current after up - current again is also the second estimated voltage corresponding to the case of charging the battery of the terminal device with the first charging current in the above - mentioned Figure 5 shown embodiment.
[0119] Furthermore, when the target current difference is less than the preset current threshold, determine that the updated current difference is the preset current.
[0120] Exemplarily, assume that the threshold is 50 mv. Then, further compare the magnitude of ibus_req_volt - vbat_est with 50 mv. If ibus_req_volt - vbat_est < 50 mv, it indicates that the newly added current value does not meet the charging requirement for this voltage range. Then, determine the magnitude of the target current difference and the preset current threshold. Assume that the preset current threshold is 200 ma. When ibus_delta >= 200 ma, determine that the updated current difference is a preset multiple of the target current difference. For example, the updated current difference is ibus_delta / 2, and re - estimate vbat_est and make the judgment of ibus_req_volt - vbat_est < 50 mv. If neither is satisfied, and finally ibus_delta < 200 ma, then directly limit ibus_delta to the preset current of 100 ma. That is, in the worst - case scenario, it increases by 100 ma every 2 s.
[0121] Based on the above example, in combination with Table 3, an example is given to illustrate the implementation method of determining the updated charging current according to the voltage corresponding to the current after current increase and the current charging voltage corresponding to the current charging current of the terminal device in the embodiments of the present application.
[0122] First round: Assume that the charging current initially requested by the terminal device from the adapter, that is, the current charging current ibus_req of the terminal device, is 1500 ma, the target charging current ibus_target is 9100 ma, the maximum charging current ibus_req_max is 4000 ma, and the current charging voltage ibus_req_volt corresponding to the current charging current of the terminal device is 4514 mv. Then, the target current difference is ibus_delta = 2500 ma; the voltage vbat_est corresponding to the current after current increase is vbat_est = vbat_real + R_BAT * (ibus_delta + ibus_req - ibat_real) = 4230 mv. Since 4514 mv - 4230 mv > 50 mv, the updated charging current is ibus_req = 1500 ma + 2500 ma = 4000 ma.
[0123] Second round: At this time, the current charging current of the terminal device is ibus_req = 4000 mA, the target charging current ibus_target = 9100 mA, the maximum charging current ibus_req_max = 6000 mA, and the current charging voltage ibus_req_volt corresponding to the current charging current of the terminal device is 4484 mV. Then the target current difference is ibus_delta = 2000 mA; the voltage vbat_est corresponding to the current after up - current is vbat_est = vbat_real + R_BAT * (ibus_delta + ibus_req - ibat_real)=4334 mV. Since 4484 mV - 4334 mV > 50 mV, the updated charging current is ibus_req = 4000 mA + 2000 mA = 6000 mA.
[0124] The third round: At this time, the current charging current of the terminal device is ibus_req = 6000 mA, the target charging current ibus_target = 9100 mA, the maximum charging current ibus_req_max = 8000 mA, and the current charging voltage corresponding to the current charging current of the terminal device is ibus_req_volt = 4304 mV. Then the target current difference is ibus_delta = 2000 mA; the voltage corresponding to the current after up - current is vbat_est = vbat_real + R_BAT * (ibus_delta + ibus_req - ibat_real) = 4435 mV. Since 4304 mV - 4435 mV < 50 mV, it indicates that the newly added current value does not meet the charging of this voltage level, so update the current difference ibus_delta = ibus_delta / 2 = 1000 mA; then continue to calculate the voltage corresponding to the current after up - current again, vbat_est = vbat_real + R_BAT * (ibus_delta + ibus_req - ibat_real) = 4385 mV. Since 4304 mV - 4385 mV < 50 mV, it indicates that the newly added current value does not meet the charging of this voltage level, so update the current difference ibus_delta = ibus_delta / 2 = 500 mA; then continue to calculate the voltage corresponding to the current after up - current again, vbat_est = vbat_real + R_BAT * (ibus_delta + ibus_req - ibat_real) = 4365 mV. Since 4304 mV - 4365 mV < 50 mV, it indicates that the newly added current value does not meet the charging of this voltage level, so update the current difference ibus_delta = ibus_delta / 2 = 250 mA; then continue to calculate the voltage corresponding to the current after up - current again, vbat_est = vbat_real + R_BAT * (ibus_delta + ibus_req - ibat_real) = 4355 mV. Since 4304 mV - 4355 mV < 50 mV, it indicates that the newly added current value does not meet the charging of this voltage level, so update the current difference ibus_delta = ibus_delta / 2 = 125 mA; then continue to calculate the voltage corresponding to the current after up - current again, vbat_est = vbat_real + R_BAT * (ibus_delta + ibus_req - ibat_real) = 4345 mV. Since 4304 mV - 4345 mV < 50 mV, it indicates that the newly added current value does not meet the charging of this voltage level. Since the updated current difference ibus_delta < 200 at this time, directly limit the updated current difference to 100 mA, and then determine that the updated charging current is ibus_req = 6000 mA + 100 mA = 6100 mA.
[0125] Step 605: When the current charging current of the terminal device is less than the target charging current, send a current adjustment request to the adapter. The current adjustment request includes the updated charging current applied by the terminal device to the adapter. The first difference between the updated charging current and the target charging current is less than the second difference between the current charging current and the target charging current.
[0126] In some embodiments, when a time period, such as 2 s, arrives, by comparing the relative magnitudes of the desired target charging current ibus_target and the current charging current ibus_req of the terminal device, if ibus_target is greater than ibus_req, it indicates that the currently applied current is insufficient and needs to be increased to ibus_target. Therefore, a current adjustment request is sent to the adapter. The current adjustment request includes the updated charging current obtained in the previous step.
[0127] In some embodiments, if ibus_target is less than ibus_req, it indicates that the arbitration system of the charging current needs to apply for a smaller current because when the current is small, the floating voltage of the battery will drop. At this time, the updated charging current is the target charging current, that is, ibus_req is updated to ibus_target and the corresponding current is applied to the adapter; if ibus_req is equal to ibus_target, it indicates that ibus_req has been updated to the charging current ibus_target, and no operation is required at this time, and the judgment of the next cycle continues.
[0128] Optionally, the current adjustment request sent by the terminal device to the adapter can be similar to a communication packet. After receiving the communication packet, the adapter can parse the updated charging current contained therein and adjust its output current according to the updated charging current.
[0129] Step 606: Charge according to the updated charging current.
[0130] In some embodiments, the adapter receives the updated charging current and starts a charging process, such as a fast charging process, according to the charging current. The adapter will adjust the output current according to the current adjustment request provided by the terminal device to charge the terminal device.
[0131] Optionally, during the charging process, the terminal device and the adapter will continuously monitor the status of the battery, such as voltage, temperature, etc. If it is detected that the temperature is too high or other abnormalities occur, the charging current may be automatically reduced to protect the battery.
[0132] In this embodiment, first, it is determined whether the terminal device meets the charging condition. When the terminal device meets the charging condition, the terminal device is charged through the adapter. Then, the target impedance during the charging process of the terminal device is obtained, and based on the validity of the target impedance, the updated charging current is determined. Further, when the current charging current of the terminal device is less than the target charging current, a current adjustment request is sent to the adapter. The current adjustment request includes the updated charging current applied by the terminal device to the adapter, and the first difference between the updated charging current and the target charging current is less than the second difference between the current charging current and the target charging current. Finally, charging is performed according to the updated charging current. In this charging control method, first, the initial impedance information is calculated through the voltage and current information at an appropriate time, and then the charging floating voltage of fast charging is estimated to infer whether fast charging can be performed. Secondly, during the process of increasing the current in the fast charging stage, fast charging is performed by first quickly adjusting in large steps and then slowly adjusting the current in small steps according to the preset charging mapping relationship, which can ensure that after the battery ages, it will neither prematurely trigger the voltage full report and exit fast charging to enter normal charging, resulting in slow charging, nor cause the problem of repeated restart due to the overly fast adjustment of the large current leading to battery protection and non-output. This improves the stability of fast charging.
[0133] Based on the above embodiment, taking a mobile phone as the terminal device and the adapter can perform fast charging for the mobile phone as an example, the above Figures 4 to 6 illustrated embodiment will be introduced by way of example. Please refer to Figure 7 , which is an exemplary flowchart of the charging control method provided by an embodiment of the present application. This charging control method can be applied to a mobile phone, as Figure 7 shown, and this method may include the following steps:
[0134] Step 701, insert the fast charging adapter.
[0135] Step 702, determine whether to allow the true fast charging stage.
[0136] In some embodiments, the implementation process of determining whether to allow the true fast charging stage can be as Figure 8 shown, and this implementation method includes the following steps:
[0137] Step 7021, obtain the battery voltage and battery current before inserting the adapter, as well as the battery voltage and battery current during normal charging, and calculate the initial impedance of the mobile phone battery.
[0138] Step 7022, obtain the simulated fast charging voltage based on the initial impedance and the preset minimum current that meets the fast charging condition.
[0139] Step 7023, determine whether the battery voltage during normal charging is less than 4.4V and whether the simulated fast charging voltage is less than <4.5V. If the battery voltage during normal charging is less than 4.4V and the simulated fast charging voltage is less than <4.5V, then execute Step 7024; otherwise, execute Step 7025.
[0140] Step 7024, reply to the adapter to allow fast charging.
[0141] Step 7025, do not enter fast charging, enter fake charging.
[0142] Among them, fake charging is also known as fake fast charging, which is actually normal charging.
[0143] Step 703, fast charging stage.
[0144] In some embodiments, the implementation process of the mobile phone during the fast charging stage may include the following steps:
[0145] Step 7031, the initial charging current is 1.5A, and after the adapter asks for the first-frame battery voltage, reply 1.5A to the adapter and control the initial current at 1.5A.
[0146] Step 7032, based on the update period of the fuel gauge, schedule to update the charging current of the mobile phone every 2s.
[0147] Step 7033, determine whether the target charging current is greater than the current charging current. If the target charging current is greater than the current charging current, then execute Step 7034; otherwise, execute Step 7035.
[0148] Step 7034, obtain the target impedance during fast charging.
[0149] In some embodiments, the implementation process of the mobile phone obtaining the target impedance during fast charging may be as Figure 9 shown, and this implementation method includes the following steps:
[0150] Step 70341, collect the battery voltage and battery current before and after 2s, and make a judgment on the target impedance.
[0151] Step 70342, determine whether the battery voltage after 2s is greater than the battery voltage before 2s and whether the difference between the battery current after 2s and the battery current before 2s is greater than 0.3A. If so, then execute Step 70343; otherwise, execute Step 70344.
[0152] Step 70343, calculate the target impedance and determine the validity of the target impedance. If it is invalid, set it to 0.
[0153] Step 70344, if not satisfied, do not calculate the impedance.
[0154] Step 7035, if the target charging current is smaller than the current charging current, directly apply to the adapter for the target charging current or the current charging current has been applied to the target charging current.
[0155] Step 7036, estimate the updated charging current allowed at the current moment.
[0156] In some embodiments, the implementation process of the mobile phone estimating the updated charging current allowed at the current moment may include the following steps:
[0157] Step 70361, determine whether the target impedance has a value? If the target impedance has a value, execute Step 70362, otherwise execute Step 70363.
[0158] Step 70362, estimate the updated charging current in the way with impedance (by looking up the charging curve method).
[0159] Step 70363, estimate the updated charging current in the way without impedance (by looking up the table method).
[0160] Step 70364, based on the following corresponding relationship, that is, Table 2 in the above embodiment:
[0161]
[0162] Select the current increase each time according to the difference between the current charging voltage corresponding to the current charging current and the full charge voltage for the first time. For example, if the current charging voltage corresponding to the current charging current - the full charge voltage > 600mv, then the increased current value for the non-direct charging scheme is 1000ma, and the increased current value for the direct charging scheme is 1500ma.
[0163] Step 70365, find the current charging voltage corresponding to the current charging current according to the charging curve, as well as the maximum charging current corresponding to the current charging voltage and the voltage corresponding to the target charging current.
[0164] Exemplarily, the mapping relationship between some charging voltages and charging currents in this charging curve can refer to Table 3 in the above embodiment, and this application does not limit this.
[0165] Step 70366, if the target charging current is less than the maximum charging current, the target current difference = the target charging current - the current charging current, otherwise the target current difference = the maximum charging current - the current charging current.
[0166] Step 70367, predict whether the estimated voltage after current increase exceeds the standard according to the target impedance and the target current difference.
[0167] Step 70368: Determine whether the current charging voltage corresponding to the current charging current minus the estimated voltage after current increase is < 50 mV. If the current charging voltage corresponding to the current charging current minus the estimated voltage after current increase is < 50 mV, then execute Step 70370; otherwise, execute Step 70369.
[0168] Step 70369: Determine that the updated charging current is the current after the current increase target current difference.
[0169] Step 70370: Determine whether the target current difference >= 200 mA. If the target current difference >= 200 mA, then execute Step 70371; otherwise, execute Step 70372.
[0170] Step 70371: Halve the target current difference, and then re - execute Step 70367.
[0171] Step 70372: Update the current difference to the preset current of 100 mA. Further, re - execute the step of determining the updated charging current in Step 70369.
[0172] It should be noted that the specific implementation process of the steps in this embodiment can refer to the specific implementation in the above - mentioned Figures 4 to 6 embodiment, which will not be elaborated herein in this application.
[0173] In summary, in the charging control method of this application, by applying for the updated charging current from the adapter and charging according to the updated charging current, the charging current of the terminal device gradually approaches the target charging current, which can ensure that fast charging is not triggered to exit prematurely when the battery of the terminal device ages, and can effectively avoid the problem of repeatedly restarting due to triggering battery protection and not outputting in the current related technologies, improving the stability of fast charging.
[0174] It should be understood that although each step in the above - mentioned flowcharts is shown in sequence according to the arrow indication, these steps do not necessarily execute in the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps has no strict order limit, and these steps can be executed in other orders. Moreover, at least a part of the steps in the above - mentioned flowcharts may include multiple sub - steps or multiple stages. These sub - steps or stages do not necessarily execute at the same moment, but can execute at different moments, and the execution order of these sub - steps or stages is not necessarily sequential, but can be executed alternately or in turn with at least a part of other steps or sub - steps or stages of other steps.
[0175] Based on the foregoing embodiments, an embodiment of the present application provides a charging control device, which includes each module included and each unit included in each module, and can be implemented by a processor; of course, it can also be implemented by specific logic circuits; during implementation, the processor can be a central processing unit, a microprocessor, a digital signal processor, or a field programmable gate array, etc.
[0176] Figure 10 It is a structural schematic diagram of a charging control device provided by an embodiment of the present application. As Figure 10 shown, the charging control device includes a sending module 1001 and a charging module 1002, where:
[0177] The sending module 1001 is configured to send a current adjustment request to the adapter when charging the battery of the terminal device through the adapter. The current adjustment request includes an updated charging current applied by the terminal device to the adapter, and a first difference between the updated charging current and a target charging current is less than a second difference between the current charging current and the target charging current; the charging module 1002 is configured to charge according to the updated charging current.
[0178] In some embodiments, the sending module 1001 is specifically configured to: send the current adjustment request to the adapter when the current charging current of the battery of the terminal device is less than the target charging current.
[0179] In some embodiments, the device further includes: a determination module. The determination module is configured to determine the updated charging current according to the current charging current of the battery of the terminal device.
[0180] In some embodiments, the determination module is specifically configured to: determine a current charging voltage corresponding to the current charging current; determine the updated charging current according to the maximum charging current corresponding to the current charging voltage.
[0181] In some embodiments, the determination module is specifically configured to: determine a first estimated voltage corresponding to charging the battery of the terminal device with the maximum charging current; when a difference between the current charging voltage and the first estimated voltage is greater than or equal to a threshold, determine the updated charging current as the maximum charging current.
[0182] In some embodiments, the determining module is further specifically configured to: when the difference between the current charging voltage and the first estimated voltage is less than the threshold, determine a first charging current, where the first charging current is the sum of the current charging current and a first current difference, and the first current difference is the product of the difference between the maximum charging current and the current charging current and a preset multiple, and the preset multiple is less than 1; determine a second estimated voltage corresponding to the case of charging the battery of the terminal device with the first charging current; and when the difference between the current charging voltage and the second estimated voltage is greater than or equal to the threshold, determine that the updated charging current is the first charging current.
[0183] In some embodiments, the determining module is specifically configured to: when the first current difference is greater than or equal to a preset current threshold, determine a first charging current.
[0184] In some embodiments, the determining module is further configured to, when the first current difference is less than the preset current threshold, determine that the updated charging current is the sum of the current charging current and a preset current.
[0185] In some embodiments, the determining module is further configured to determine the updated charging current according to a voltage difference, where the voltage difference is the difference between the current charging voltage corresponding to the current charging current of the battery of the terminal device and a preset full charge voltage.
[0186] In some embodiments, when the current charging current of the battery of the terminal device is greater than or equal to the target charging current, the updated charging current is the target charging current.
[0187] In some embodiments, the apparatus further includes: a judging module. The judging module is configured to judge whether the terminal device meets the charging condition; and the charging module 1002 is further configured to, when the terminal device meets the charging condition, charge the battery of the terminal device through the adapter.
[0188] The description of the above apparatus embodiments is similar to the description of the above method embodiments and has similar beneficial effects to those of the method embodiments. For technical details not disclosed in the apparatus embodiments of the present application, please refer to the description of the method embodiments of the present application for understanding.
[0189] It should be noted that in the embodiments of the present application Figure 10The division of the charging control device shown is schematic and is only a logical function division. In actual implementation, there may be other division methods. In addition, in each embodiment of the present application, each functional unit can be integrated in a processing unit, can exist alone physically, or two or more units can be integrated in one unit. The above integrated unit can be implemented in the form of hardware, can also be implemented in the form of a software functional unit, or can be implemented in the form of a combination of software and hardware.
[0190] It should be noted that in the embodiments of the present application, if the above method is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiments of the present application essentially or the part that contributes to the related technology can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing an electronic device to execute all or part of the methods described in the embodiments of the present application. The foregoing storage medium includes: various media such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disc that can store program codes. In this way, the embodiments of the present application are not limited to any specific combination of hardware and software.
[0191] The embodiments of the present application provide a computer device, which can be a server, and its internal structure diagram can be as Figure 11 shown. The computer device includes a processor, a memory, and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the above method is implemented.
[0192] The embodiments of the present application provide a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps in the method provided in the above embodiments are implemented.
[0193] The embodiments of the present application provide a computer program product containing instructions. When it runs on a computer, it causes the computer to execute the steps in the method provided in the above method embodiments.
[0194] Those skilled in the art can understand that Figure 11The structure shown is only a block diagram of some structures related to the solution of this application, and does not constitute a limitation on the computer device to which the solution of this application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.
[0195] In one embodiment, the charging control device provided in this application can be implemented in the form of a computer program, and the computer program can run on a computer device as shown in Figure 11 the figure. Each program module constituting the above device can be stored in the memory of the computer device. The computer program constituted by each program module enables the processor to execute the steps in the methods of various embodiments of this application described in this specification.
[0196] It should be noted here that: the descriptions of the above storage medium and device embodiments are similar to the descriptions of the above method embodiments and have beneficial effects similar to those of the method embodiments. For the technical details not disclosed in the storage medium, storage medium and device embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.
[0197] It should be understood that the "one embodiment" or "an embodiment" or "some embodiments" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of this application. Therefore, the "in one embodiment" or "in an embodiment" or "in some embodiments" that appear throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of this application, the order numbers of the above processes do not mean the order of execution, and the order of execution 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. The serial numbers of the embodiments of this application above are only for description and do not represent the advantages or disadvantages of the embodiments. The descriptions of the above embodiments tend to emphasize the differences between the embodiments, and the same or similar parts can be referred to each other. For the sake of brevity, they will not be repeated here.
[0198] The term "and / or" in this article is only a description of the association relationship between associated objects, indicating that there can be three relationships. For example, object A and / or object B can represent: object A exists alone, object A and object B exist simultaneously, and object B exists alone.
[0199] It should be noted that in this article, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, such that a process, method, article or device comprising a series of elements not only includes those elements but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the phrase "comprising a..." does not exclude the presence of additional identical elements in the process, method, article or device comprising such element.
[0200] In several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The above-described embodiments are merely illustrative. For example, the division of the modules is only a logical function division. In actual implementation, there may be other division methods. For example, multiple modules or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. Additionally, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces. The indirect coupling or communication connection of devices or modules can be electrical, mechanical, or in other forms.
[0201] The modules described above as separate components may or may not be physically separated. The components shown as modules may or may not be physical modules; they can be located in one place or distributed across multiple network units; some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0202] Furthermore, in each embodiment of this application, the various functional modules can all be integrated in one processing unit, or each module can be separately a unit by itself, or two or more modules can be integrated in one unit; the above-mentioned integrated modules can be implemented in the form of hardware, or in the form of a combination of hardware and software functional units.
[0203] Those of ordinary skill in the art can understand that all or part of the steps to implement the above method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps including the above method embodiments; and the aforementioned storage medium includes: various media such as removable storage devices, read-only memory (ROM), magnetic disks, or optical discs that can store program codes.
[0204] Alternatively, if the above integrated units of the present application are implemented in the form of software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiments of the present application, in essence or the part that contributes to the related art, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing an electronic device to execute all or part of the methods described in the various embodiments of the present application. The foregoing storage medium includes: various media that can store program codes, such as removable storage devices, ROMs, magnetic disks, or optical discs.
[0205] The methods disclosed in several method embodiments provided by the present application can be arbitrarily combined without conflict to obtain new method embodiments.
[0206] The features disclosed in several product embodiments provided by the present application can be arbitrarily combined without conflict to obtain new product embodiments.
[0207] The features disclosed in several method or device embodiments provided by the present application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.
[0208] As described above, the above are only the implementation manners of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present application can easily think of changes or substitutions, which should all be covered by the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claimed rights.
Claims
1. A charging control method, characterized in that, Applied to a terminal device, the method includes: When charging the battery of the terminal device through an adapter, sending a current adjustment request to the adapter, where the current adjustment request includes an updated charging current applied by the terminal device to the adapter, and a first difference between the updated charging current and a target charging current is less than a second difference between a current charging current and the target charging current; Charging according to the updated charging current.
2. The method according to claim 1, wherein, The sending of the current adjustment request to the adapter includes: When the current charging current of the battery of the terminal device is less than the target charging current, sending the current adjustment request to the adapter.
3. The method according to claim 2, wherein Before sending the current adjustment request to the adapter, the method further includes: Determining the updated charging current according to the current charging current of the battery of the terminal device.
4. The method according to claim 3, characterized in that, The determining of the updated charging current according to the current charging current of the battery of the terminal device includes: Determining a current charging voltage corresponding to the current charging current; Determining the updated charging current according to a maximum charging current corresponding to the current charging voltage.
5. The method according to claim 4, characterized in that, The determining of the updated charging current according to the maximum charging current corresponding to the current charging voltage includes: Determining a first estimated voltage corresponding to charging the battery of the terminal device with the maximum charging current; When a difference between the current charging voltage and the first estimated voltage is greater than or equal to a threshold, determining the updated charging current as the maximum charging current.
6. The method according to claim 5, characterized in that The method further includes: When the difference between the current charging voltage and the first estimated voltage is less than the threshold, determining a first charging current, where the first charging current is a sum of the current charging current and a first current difference, and the first current difference is a product of a difference between the maximum charging current and the current charging current and a preset multiple less than 1; Determining a second estimated voltage corresponding to charging the battery of the terminal device with the first charging current; When the difference between the current charging voltage and the second estimated voltage is greater than or equal to the threshold, determining the updated charging current as the first charging current.
7. The method according to claim 6, wherein The determining of the first charging current includes: When the first current difference is greater than or equal to a preset current threshold, determining the first charging current.
8. The method according to claim 7, characterized in that, The method further includes: When the first current difference is less than the preset current threshold, determining the updated charging current as a sum of the current charging current and a preset current.
9. The method according to claim 2, wherein Before sending the current adjustment request to the adapter, the method further includes: Determining the updated charging current according to a voltage difference, where the voltage difference is a difference between a current charging voltage corresponding to the current charging current of the battery of the terminal device and a preset full charge voltage.
10. The method according to claim 2, wherein When the current charging current of the battery of the terminal device is greater than or equal to the target charging current, the updated charging current is the target charging current.
11. The method according to claim 1, characterized in that, Before charging the terminal device through the adapter, the method further includes: Determining whether the terminal device meets the charging conditions; Charging the terminal device through the adapter includes: When the terminal device meets the charging conditions, charging the battery of the terminal device through the adapter.
12. A charging control device, characterized in that, Applied to a terminal device, the apparatus includes: A sending module, configured to send a current adjustment request to the adapter when charging the battery of the terminal device through the adapter, where the current adjustment request includes an updated charging current applied by the terminal device to the adapter, and a first difference between the updated charging current and a target charging current is less than a second difference between a current charging current and the target charging current; A charging module, configured to charge according to the updated charging current.
13. A computer device, comprising a memory and a processor, the memory storing a computer program that can run on the processor, characterized in that, When the processor executes the program, the steps of the method according to any one of claims 1 to 11 are implemented.
14. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, the method according to any one of claims 1 to 11 is implemented.
15. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, the method according to any one of claims 1 to 11 is implemented.