Charging control method and device, terminal and storage medium

By optimizing the setting of the charging current value in the charging rule table, the problem of excessive charging speed increase space and current reduction amplitude in the prior art is solved, and a faster and more stable charging process is achieved.

CN119171558APending Publication Date: 2024-12-20GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310733051.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-19
Publication Date
2024-12-20

AI Technical Summary

Technical Problem

Among the existing fast charging control methods, there is a large room for charging speed improvement, and the intelligent charging algorithm has a problem that the charging speed is slowed down due to excessive flow reduction amplitude.

Method used

By taking multiple charging current values ​​of the same battery voltage as the maximum charging current values ​​of different charging levels in the current limiting table in the charging rule table, and the minimum charging current value of the charging level is based on the maximum charging level of the same charging level The current value is determined, thereby optimizing charging current control, reducing the current downstream amplitude, and improving the charging speed.

Benefits of technology

It effectively improves the charging speed, avoids slowing down the charging speed due to excessive flow reduction amplitude, and ensures balance of battery life.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119171558A_ABST
    Figure CN119171558A_ABST
Patent Text Reader

Abstract

The invention provides a charging control method and device, a terminal and a storage medium. The method is applied to a terminal charged through an adapter, and comprises the following steps: on the basis of determining that the adapter is switched to a first charging gear, acquiring a first maximum charging current value and a first minimum charging current value corresponding to the first charging gear from a predetermined current limiting table; wherein a plurality of charging current values of the same battery voltage in a charging rule table obtained based on a charging rule of a simulation adapter in advance are respectively maximum charging current values of different charging gears in the current limiting table; the minimum charging current value of the charging gear in the current limiting table is obtained based on the maximum charging current value of the same charging gear; acquiring the cathode potential of the battery of the terminal; and sending a control signal to an adapter according to the first maximum charging current value, the first minimum charging current value and the cathode potential, so that the adapter controls an output charging signal according to the control signal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to electronic technology, and is related to but not limited to charging control methods and devices, terminals, and storage media. Background Art

[0002] With the development of electronic technology, mobile terminals can meet various needs of people in daily life and work, which also makes people more and more dependent on mobile terminals. Frequent use of mobile terminals by users increases the power consumption rate of mobile terminals, causing the mobile terminals to need frequent charging. Therefore, fast charging technology comes into being. However, the existing fast charging control method still has room for improvement in charging speed. Summary of the invention

[0003] In view of this, the charging control method and device, terminal, and storage medium provided in the present application can increase the charging speed.

[0004] According to one aspect of an embodiment of the present application, a charging control method is provided, which is applied to a terminal charged by an adapter, and the method comprises: based on determining that the adapter is switched to a first charging gear, obtaining a first maximum charging current value and a first minimum charging current value corresponding to the first charging gear from a predetermined current limiting table; wherein, a plurality of charging current values ​​for the same battery voltage in the charging rule table obtained in advance based on simulating the charging rule of the adapter are respectively the maximum charging current values ​​for different charging gears in the current limiting table, and the minimum charging current value for the charging gear in the current limiting table is obtained based on the maximum charging current value for the same charging gear; obtaining the negative electrode potential of the battery of the terminal; and sending a control signal to the adapter according to the first maximum charging current value, the first minimum charging current value and the negative electrode potential, so that the adapter controls the output charging signal according to the control signal.

[0005] According to one aspect of an embodiment of the present application, a charging control device is provided, which is applied to a terminal charged by an adapter, and the device includes: a first acquisition module, configured to obtain a first maximum charging current value and a first minimum charging current value corresponding to the first charging gear from a predetermined current limiting table based on determining that the adapter is switched to the first charging gear; wherein, a plurality of charging current values ​​for the same battery voltage in the charging rule table obtained in advance based on simulating the charging rule of the adapter are respectively the maximum charging current values ​​of different charging gears in the current limiting table, and the minimum charging current value of the charging gear in the current limiting table is obtained based on the maximum charging current value of the same charging gear; a second acquisition module, configured to obtain the negative electrode potential of the battery of the terminal; a control module, configured to send a control signal to the adapter according to the first maximum charging current value, the first minimum charging current value and the negative electrode potential, so that the adapter controls the output charging signal according to the control signal.

[0006] According to one aspect of an embodiment of the present application, a terminal is provided, including a memory and a processor, wherein the memory stores a computer program executable on the processor, and when the processor executes the program, the method described in the embodiment of the present application is implemented.

[0007] According to one aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method provided in the embodiment of the present application is implemented.

[0008] In the related technical solution, only the maximum charging current among multiple charging current values ​​of the same battery voltage in the charging rule table is used as the maximum charging current value of a gear in the current limiting table, and the minimum charging current value of the gear is not determined based on the maximum charging current value of the gear, but is determined based on the minimum charging current value among multiple charging current values ​​of the battery voltage corresponding to the gear in the charging rule table;

[0009] In the embodiment of the present application, multiple charging current values ​​of the same battery voltage in the charging rule table are respectively used as the maximum charging current values ​​of different charging gears in the current limiting table, and the minimum charging current value of the charging gear in the current limiting table is obtained based on the maximum charging current value of the same charging gear; in this way, the minimum charging current corresponding to the maximum charging current of a gear in the current limiting table is larger than the minimum charging current corresponding to the same maximum charging current in the related scheme, so that when the terminal controls the output current of the adapter based on the negative electrode potential of the battery, the current reduction amplitude is reduced, which is beneficial to improving the charging speed.

[0010] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and are used together with the specification to illustrate the technical solution of the present application. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0012] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0013] Figure 1 A schematic diagram of the movement of lithium ions in a lithium-ion battery during charging;

[0014] Figure 2 It is a schematic diagram of the interaction between the microcontroller unit (MCU), the CPU and the adapter;

[0015] Figure 3 A schematic diagram of the implementation flow of the charging control method provided in the embodiment of the present application;

[0016] Figure 4A A schematic diagram of the implementation flow of the charging control method provided in the embodiment of the present application;

[0017] Figure 4B A schematic diagram of a first charging process provided in an embodiment of the present application;

[0018] Figure 5 A schematic diagram of the implementation flow of the charging control method provided in the embodiment of the present application;

[0019] Figure 6 A schematic diagram of the structure of a charging control device provided in an embodiment of the present application;

[0020] Figure 7 A schematic diagram of the structure of a terminal provided in an embodiment of the present application. DETAILED DESCRIPTION

[0021] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the specific technical solution of the present application will be further described in detail below in conjunction with the drawings in the embodiments of the present application. The following embodiments are used to illustrate the present application, but are not used to limit the scope of the present application.

[0022] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0023] In the following description, reference is made to “some embodiments”, “this embodiment”, “embodiments of the present application” and examples, etc., which describe a subset of all possible embodiments, but it can be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0024] The descriptions of “first, second, third” etc. that appear in the embodiments of the present application are only for illustration and distinction of the description objects. There is no distinction of order, nor do they indicate any special limitation on the number of devices in the embodiments of the present application, and cannot constitute any limitation on the embodiments of the present application.

[0025] Lithium-ion battery is a secondary battery (i.e. rechargeable battery) that mainly relies on the movement of lithium ions (Li+) between the positive and negative electrodes to work. During the charging and discharging process, Figure 1 As shown in the figure, Li+ is intercalated and deintercalated back and forth between the two electrodes: during charging, Li+ is deintercalated from the positive electrode and intercalated into the negative electrode through the electrolyte, and the negative electrode is in a lithium-rich state; the opposite is true during discharge. Under fast charging conditions, the potential of the negative electrode may become negative, causing metallic lithium to precipitate on the surface of the negative electrode. During the static process, the potential of the negative electrode turns positive again, and part of the metallic lithium is embedded in the negative electrode again, showing a voltage platform on the voltage curve, but part of the metallic lithium still reacts with the electrolyte, resulting in irreversible lithium loss.

[0026] Some of the existing fast charging mechanisms are low-voltage and high-current mechanisms. Under this high-current charging mechanism, it is easy to cause "lithium deposition caused by the charging mechanism". The relevant technical solution is that the charging mechanism is only controlled by the battery curve (ATL) and the temperature control mechanism to control the charging current, and there is no real-time judgment on whether the lithium ions at the negative electrode are completely embedded in the negative electrode during the charging process. Therefore, it is necessary to solve the problem from the source of the charging mechanism. In summary, if the charging speed is too fast, it will not only increase the side reactions, but also cause lithium deposition at the negative electrode, resulting in a rapid decline in battery capacity. Therefore, the charging speed cannot be increased simply and crudely by increasing the charging power. It is necessary to balance the charging speed and battery life. Intelligent charging can be used to monitor the potential of the negative electrode of the battery in real time. When the potential of the negative electrode of the battery is less than 0, it indicates that the current needs to be reduced to avoid excessive lithium deposition.

[0027] Existing fast charging solutions based on MCU include Figure 2As shown, MCU is the main control chip of fast charging, which integrates the hardware transceiver logic and software logic control of fast charging. MCU interacts with the fast charging adapter through the D+ and D- pins. The adapter sends a frame signal to the MCU through the D+ and D- pins. The MCU receives the data interrupt, then reads the data level on the D- pin and assembles the data, and then processes the data. After processing the data, it sends the data to be replied to the fast charging adapter. The interaction between MCU and AP (AP can be understood as the CPU of the terminal) is through GPIO with data pin (DATA pin) and clock pin (CLK pin), mainly to report the status of fast charging to AP, and AP replies to the MCU with the pre-applied charging current.

[0028] The MCU fast charging solution has two limitations. The first limitation is that the AP and MCU communicate with each other, with the MCU as the master and the AP as the slave. That is, the AP cannot actively send messages to the MCU. Only when the MCU needs to communicate with the AP can the AP passively reply to the MCU. The second limitation is that both the MCU and the AP need to access the power meter. During the fast charging process, the MCU frequently accesses the power meter, and the AP cannot access it at this time. The power meter can only be accessed when the MCU periodically sends signals to the AP and the AP does not reply.

[0029] When the AP runs the smart charging algorithm, in order to make the algorithm's output current value (charge_current) follow the actual charging current changes, the algorithm needs two maximum charging current values ​​(sys_max_current) and minimum charging current values ​​(sys_min_current) uploaded from the kernel layer to the hardware abstraction layer (HAL) layer to limit charge_current. Otherwise, when the smart charging mode takes effect (the negative electrode potential is less than 0.001V), the current value sent from the HAL layer to the kernel layer by the algorithm will differ greatly from the actual current, and thus it will not be truly effective (the sent current value exceeds the actual charging current value by a lot) or the current will be excessively limited after taking effect (the sent current value is much lower than the actual charging current value).

[0030] Among them, sys_max_current and sys_min_current are related to the ATL curve of the battery. sys_max_current is the maximum charging current of this voltage platform; and sys_min_current is the minimum charging current of this voltage platform -1A; charge_current is calculated by the intelligent charging algorithm, which is a current value calculated based on the principle of whether the battery is lithium-ionized. This parameter is then sent to the adapter via the mobile phone to control the output of the adapter.

[0031] It should be noted that the appropriate setting of sys_max_current is related to the timeliness of the smart charging algorithm. If it is set too large, the algorithm will think that the actual value of the battery current is much smaller than sys_max_current, and the calculated value of the negative electrode potential of smart charging will drift greatly, such as being negative for several minutes. Therefore, it is necessary to set sys_max_current reasonably, and the principle is to make it equal to the battery output as much as possible.

[0032] Exemplarily, the ATL curve includes the following gears 1) to 8):

[0033] Gear position 1) 9.1A, 9A, 8.5A to charge the battery voltage to 4.204V, or directly to 8A in 1.5 minutes;

[0034] Shift 2) 8A, 7.5A to charge until the battery voltage reaches 4.304V, or directly 7A after 1.5 minutes;

[0035] Position 3) 7A, 6.5A to charge until the battery voltage reaches 4.304V, or directly 6A after 3 minutes;

[0036] Position 4) 6A charging until the battery voltage reaches 4.454V, or directly 5.5A after 3 minutes;

[0037] Position 5) 5.5A to charge the battery voltage to 4.454V, or directly 5A after 7 minutes;

[0038] Position 6) 5A, 4.5A to charge until the battery voltage reaches 4.454V;

[0039] Position 7) 4A, 3.5A, 3A, 2.5A, 2A, 1.5A to charge the battery voltage to 4.484V;

[0040] Position 8) Charge at 1.2A until the battery voltage reaches 4.49V, then exit fast charge mode.

[0041] It can be understood that when the adapter charges based on the ATL curve, taking gear 1) as an example, the adapter first charges the battery with a charging current of 9.1A until the battery voltage reaches 4.204V, then charges the battery with a charging current of 9A until the battery voltage reaches 4.204V, and then charges the battery with a charging current of 8.5A until the battery voltage reaches 4.204V. It can be understood that after the charging current decreases, the floating voltage of the battery is not so high, so it can be charged to the same battery voltage with a slightly smaller current. When the battery voltage reaches 4.204V while charging with a charging current of 8.5A, it switches to gear 2), charges the battery with a charging current of 8A until the battery voltage reaches 4.304V, then charges the battery with a charging current of 7.5A until the battery voltage reaches 4.304V, and then switches to gear 3), and so on until the fast charging mode is exited.

[0042] Based on the above ATL curve, in the related solution, sys_max_current and sys_min_current are set as follows: The maximum charging current of 9.1A in the above gear 1) is used as sys_max_current in the following gear one, and the minimum charging current of 8.5A in gear 1) minus 1A is used as sys_min_current in the following gear one. At the same time, this sys_min_current cannot be less than the charging current of the last gear (i.e., gear 8) of the above ATL curve). The method of setting sys_max_current and sys_min_current based on gears 2) to 8) is the same as the method of setting sys_max_current and sys_min_current based on gear 1). That is, the settings of sys_max_current and sys_min_current are as described in the following gear one to gear five:

[0043] Gear one: Vbat < 4.204V, maximum charging current = 9.1A, minimum charging current = 7.5A;

[0044] Gear two: 4.204V < Vbat < 4.304V, maximum charging current = 8A, minimum charging current = 5.5A;

[0045] Gear three: 4.304V < Vbat < 4.454V, maximum charging current = 6A, minimum charging current = 3.5A;

[0046] Gear four: 4.454V < Vbat < 4.484V, maximum charging current = 4A, minimum charging current = 1.2A;

[0047] Gear 5: 4.484V < Vbat < 4.49V, maximum charging current = 1.2A, minimum charging current = 1.2A.

[0048] Among them, Vbat represents the battery voltage. Taking Gear 1 as an example, its meaning is: when the battery voltage is less than 4.204V, the maximum charging current is 9.1A and the minimum charging current is 7.5A. The same applies to other gears.

[0049] It can be seen that the above sys_max_current and sys_min_current are set with the battery voltage as the minimum gear. However, this solution has certain limitations. If the intelligent charging algorithm has a problem of excessive current reduction due to some low-probability reasons, for example, when the battery voltage is less than 4.204V under abnormal conditions, the negative electrode potential continuously becomes negative, then the output of the intelligent charging algorithm will continuously reduce the current and drop to 7.5A in a short time. Among them, abnormal conditions, for example, the calculation period of the algorithm is 1s and an external fuel gauge is used at the same time, and there are low-probability problems with the update of the voltage and current collected by the fuel gauge, such as numerical lag or asynchronous update of the voltage and current collection of the fuel gauge. Then, it could originally charge with a higher current, but due to the "wrong" calculation of the fuel gauge, the minimum current of this voltage gear is output, thus reducing the charging speed. Therefore, it is necessary to redesign the solution to reduce this impact.

[0050] In view of this, in the embodiments of the present application, a charging control method is provided, aiming to solve the problem that the intelligent charging solution has an excessive current reduction amplitude and reduces the charging speed. This charging control method is applied to a terminal charged through an adapter. Figure 3 This is a schematic flowchart of the implementation of the charging control method provided by the embodiments of the present application, as Figure 3 shown. The method includes the following steps 301 to step 303:

[0051] Step 301, based on determining that the adapter switches to the first charging gear, obtain the first maximum charging current value and the first minimum charging current value corresponding to the first charging gear from a pre-determined current limiting table;

[0052] Among them, multiple charging current values of the same battery voltage in the charging rule table pre-obtained based on simulating the charging rules of the adapter are respectively the maximum charging current values of different charging gears in the current limiting table, and the minimum charging current value of the charging gear in the current limiting table is obtained based on the maximum charging current value of the same charging gear.

[0053] It should be noted that the first charging gear does not specifically refer to a certain charging gear, but refers to the adapter switching to a new charging gear. The adapter switching to the first charging gear can also be understood as the adapter has occurred or is about to occur a charging gear switch.

[0054] It can be understood that the charging rule table is obtained based on the charging rule of the simulated adapter, in which the recorded charging current value is the value of the current output by the adapter at each stage under ideal conditions; wherein the ideal condition can be understood as a normal condition, such as a condition where the negative electrode potential of the battery is greater than the potential threshold. The terminal can determine the charging rule table based on the charging rule of the adapter and the maximum charging current corresponding to the battery voltage of different gears, and mainly determines one or more charging currents required for the adapter to charge to each battery voltage in the charging rule table (including the maximum charging current, the minimum charging current, and the charging current between the maximum charging current and the minimum charging current).

[0055] For example, the charging rule table is the ATL curve of the gear 1) to gear 8) mentioned above, wherein gear 1) includes the charging currents of 9.1A, 9A and 8.5A required for the adapter to charge to 4.204V, and gear 2) includes the charging currents of 8A and 7.5A required for the adapter to charge to 4.304V. The other gears are similar, and will not be described here. Please refer to the description of gear 1) and gear 2) for understanding. It can be seen that in this example, the adapter charges the battery to 4.204V at the gear of the same battery voltage with the maximum charging current at the gear, and then charges the battery to 4.204V with the charging current represented by the maximum current value that can be divided by 500mA after subtracting 500mA from the maximum charging current, and continues to charge at a reduced current according to the rule, but the current value after the reduced current cannot be less than the maximum charging current of the next gear of the ATL curve.

[0056] Based on the charging rule table, a current limiting table can be obtained, that is, each charging current value in the charging rule table is used as the maximum charging current value of different charging gears in the current limiting table. In the current limiting table, a charging gear includes not only the maximum charging current value, but also the minimum charging current value, and the minimum charging current value is determined based on the maximum charging current value. In some embodiments, the minimum charging current value is equal to the maximum charging current value minus the preset current step value and then taking the maximum current value that can be divided by a specific current value. For example, the minimum charging current value is equal to the maximum charging current value minus 1A and then taking the maximum current value that can be divided by 500mA, but the maximum current value cannot be less than the minimum charging current value among all the charging current values ​​in the charging rule table. When the maximum current value is less than the minimum charging current value among all the charging current values ​​in the charging rule table, the minimum charging current value of the gear is set to be equal to the minimum charging current value among all the charging current values ​​in the charging rule table.

[0057] For example, the charging rule table is the ATL curve of the gear position 1) to the gear position 8) mentioned above, then the current limiting table obtained based on the charging rule table is shown in Table 1 below:

[0058] Table 1

[0059]

[0060] Of course, the gear index value in the charging rule table can also be consistent with the gear index value in the current limiting table. Taking Table 1 as an example, the charging rule table can be expressed as the following Table 2.

[0061] Table 2

[0062]

[0063] In some embodiments, during the charging process, when the adapter determines that the battery voltage corresponding to the gear has been charged with the current charging current, it switches to the first charging gear, that is, charging with the next charging current; wherein, the judgment rule for determining whether the battery voltage corresponding to the gear has been charged with the current charging current is: the adapter determines that the current voltage of the battery is greater than the battery voltage corresponding to the current charging gear for a number of times greater than or equal to a number threshold. Based on this, optionally, in some embodiments, the terminal can be synchronized with the adapter, that is, during the process of the adapter charging the battery based on the current charging gear, the current voltage of the battery is periodically obtained (wherein the obtained value of the current voltage of the battery is also transmitted to the adapter); the terminal determines that the adapter switches to the first charging gear based on determining that the current voltage of the battery is greater than the battery voltage corresponding to the current charging gear for a number of times greater than or equal to a number threshold.

[0064] Of course, in other embodiments, the terminal may also determine whether the adapter is switched to the first charging gear based on a first signal sent by the adapter; wherein the first signal is used to indicate whether the adapter is switched to the first charging gear.

[0065] Step 302: Acquire the negative electrode potential of the battery of the terminal.

[0066] It can be understood that the battery has a positive electrode and a negative electrode, and the open circuit voltage of the positive electrode and the negative electrode at different temperatures and electric quantities can be directly measured by an instrument. When the battery is connected to the terminal to form a closed circuit, the battery will have a current flowing, and the voltage of the closed-circuit positive electrode of the battery can be measured, but the voltage of the negative electrode of the battery may not be measured, that is, the negative electrode potential. Optionally, in some embodiments, the negative electrode potential of the battery can be determined as follows: the open circuit voltage of the positive electrode minus the closed circuit voltage of the positive electrode is equal to deltea_v, deltea_v multiplied by a weight to obtain a negative electrode deltea_v1, and the negative electrode open circuit voltage minus deltea_v1 to obtain the negative electrode potential of the battery.

[0067] Step 303: Send a control signal to the adapter according to the first maximum charging current value, the first minimum charging current value and the negative electrode potential, so that the adapter controls the output charging signal according to the control signal.

[0068] Optionally, in some embodiments, the terminal may implement step 303 as follows: based on determining that the negative electrode potential is less than or equal to the potential threshold, the first maximum charging current value is reduced (the magnitude of the reduction is not limited here and can be defined according to actual applications) to obtain a third charging current value; wherein the value of the third charging current is greater than or equal to the first minimum charging current value; according to the value of the third charging current, the control signal is generated (for example, the control signal carries the value of the third charging current), and the control signal is sent to the adapter; when the adapter charges the battery based on the value of the third charging current carried by the control signal, if the terminal determines that the negative electrode potential of the battery is still less than or equal to the potential threshold during the charging process, the adapter continues to be controlled to reduce the current, that is, the value of the third charging current is reduced to obtain a fourth charging current value, and a control signal is generated according to the value of the fourth charging current (for example, the control signal carries the value of the fourth charging current), and the control signal is sent to the adapter, so that the adapter controls the output charging signal based on the value of the fourth charging current carried by the control signal; wherein the value of the fourth charging current is greater than or equal to the first minimum charging current value. That is to say, even when the potential of the negative electrode of the battery is always less than or equal to the potential threshold, the output current of the adapter should not be less than the first minimum charging current value.

[0069] In the embodiment of the present application, the magnitude of the potential threshold is not limited, and can be 0, or 0.001V, etc. It can be understood that if the battery deposits lithium, the lithium ions moving from the positive electrode to the negative electrode cannot be embedded in the negative electrode plate, which is manifested as the potential of the negative terminal becoming a negative number, that is, less than 0. At this time, the terminal can prevent excessive lithium deposition of the battery by controlling the adapter to reduce the charging current.

[0070] In other embodiments, the terminal does not adjust the output current of the adapter based on determining that the negative electrode potential is greater than a potential threshold.

[0071] It can be understood that in the embodiment of the present application, the setting rules of the current limiting table are different from the setting rules of sys_max_current and sys_min_current mentioned in the previous related scheme (i.e., the gear one to gear five mentioned in the previous text). In the related scheme, only one maximum and minimum charging current gear is set for the same battery voltage, and the minimum charging current is determined based on the minimum charging current required to charge to the battery voltage; while in the embodiment of the present application, multiple charging current values ​​of the same battery voltage in the charging rule table are respectively used as the maximum charging current values ​​of different charging gears in the current limiting table, and the minimum charging current value of the charging gear in the current limiting table is obtained based on the maximum charging current value of the same charging gear; in this way, the minimum charging current corresponding to the maximum charging current of a gear in the current limiting table is larger than the minimum charging current corresponding to the same maximum charging current in the related scheme, so that when the output current of the adapter is reduced based on the negative electrode potential of the battery, the terminal is beneficial to improve the charging speed because the current reduction amplitude is reduced.

[0072] For example, in the above-mentioned related scheme, when the battery voltage is less than 4.204, sys_max_current is 9.1A, and sys_min_current is 7.5A. Assuming that the adapter is running in gear one, that is, the battery voltage is <4.204V, the current output by the adapter is 9.1A. If the problem of the negative potential of the battery continuing to become negative is caused by "wrong calculation", the current output by the adapter will be limited to 7.5A due to sys_min_current; and in the embodiment of the present application, since sys_min_current is 8A, even if the adapter needs to reduce the current, it will only be limited to 8A, which is 500mA more than the charging current of the related scheme, so the charging speed is improved. Of course, this is only to illustrate the improvement of the technical solution of the embodiment of the present application compared with the related scheme, and does not limit the protection scope of the technical solution provided by the present application.

[0073] Optionally, in some embodiments, the above steps 301 to 303 may all be implemented by a first processor (eg, CPU) of the terminal.

[0074] The present application embodiment further provides a charging control method, Figure 4A A schematic diagram of the implementation flow of the charging control method provided in the embodiment of the present application is shown in FIG. Figure 4A As shown, the charging control method includes the following steps 401 to 410:

[0075] Step 401: The terminal (such as an MCU) obtains a corresponding predefined first charging curve based on the current state parameters of the battery; wherein the first charging curve includes a plurality of voltage-current pairs at different gears, and the voltage-current pair includes a voltage value and a second maximum charging current value required to charge the battery to the voltage.

[0076] In some embodiments, the current state parameter of the battery includes the current temperature and / or current power of the battery, etc. Optionally, in some embodiments, step 401 may be implemented by a second processor (eg, MCU) of the terminal.

[0077] Step 402: The terminal (such as MCU) sends the first charging curve to the adapter;

[0078] Step 403: The adapter controls the charging signal output to the battery according to the first charging curve and the charging rule.

[0079] In some embodiments, the charging rule is: the first charging process is performed in the order of the second maximum charging current in the first charging curve from large to small; wherein the first charging process, such as Figure 4B As shown, it includes the following steps 4031 to 4038:

[0080] Step 4031, charging the battery with the second maximum charging current of the current gear;

[0081] Step 4032, when it is determined that the second maximum charging current of the current gear is used to charge to the corresponding battery voltage, the second maximum charging current currently used is reduced according to the current reduction rule to obtain the value of the first charging current;

[0082] Exemplarily, in some embodiments, the current voltage of the battery is periodically obtained, and when the number of times that the current voltage of the battery is greater than the battery voltage corresponding to the current charging gear is greater than or equal to a number threshold, it is determined to charge to the corresponding battery voltage with the second maximum charging current of the current gear.

[0083] Step 4033, determining whether the value of the first charging current is greater than the value of the second maximum charging current of the next gear of the first charging curve; if so, executing step 4034; otherwise, executing the first charging process according to the second maximum charging current of the next gear, that is, taking the second maximum charging current of the next gear as the second maximum charging current of the current gear in step 4031, taking the next gear as the current gear, and returning to executing step 4031;

[0084] Step 4034, charging the battery with the first charging current, and then proceeding to step 4035;

[0085] Step 4035: when it is determined that the first charging current is used to charge the corresponding battery voltage, the first charging current is reduced according to the current reduction rule to obtain a value of a second charging current;

[0086] Exemplarily, in some embodiments, the current voltage of the battery is periodically acquired, and when the number of times that the current voltage of the battery is greater than the battery voltage corresponding to the current charging gear is greater than or equal to a number threshold, it is determined to charge to the corresponding battery voltage with a first charging current.

[0087] Step 4036, determining whether the value of the second charging current is less than or equal to the value of the second maximum charging current of the next gear; if so, executing the first charging process according to the second maximum charging current of the next gear, that is, taking the second maximum charging current of the next gear as the second maximum charging current of the current gear in step 4031, taking the next gear as the current gear, and returning to step 4031; otherwise, executing step 4307;

[0088] Step 4037: Continue to reduce the current according to the current reduction rule until the charging current after the current reduction is less than or equal to the value of the second maximum charging current of the next gear, and perform the first charging process according to the second maximum charging current of the next gear.

[0089] Step 404: The terminal (such as an MCU) determines the charging rule table according to the first charging curve and the charging rule; wherein the charging rule table includes a plurality of different battery voltage values ​​and one or more charging current values ​​required to charge to the battery voltage;

[0090] Step 405, the terminal (such as a CPU) uses each charging current value in the charging rule table as the maximum charging current value of different charging gears in the current limiting table, and determines the minimum charging current value of the same charging gear according to the maximum charging current value to obtain the current limiting table.

[0091] In some embodiments, the MCU may send the determined charging rule table to the CPU, and the CPU may determine the current limiting table based on the charging rule table.

[0092] Step 406: The terminal (such as an MCU) obtains the current voltage of the battery during the process of the adapter charging the battery based on the current charging gear;

[0093] Step 407, the terminal (such as MCU) determines whether the number of times that the current voltage of the battery is greater than the battery voltage corresponding to the current charging gear is greater than or equal to the number threshold; if so, execute step 408; otherwise, return to execute step 407;

[0094] Step 408: The terminal (such as a CPU) obtains a first maximum charging current value and a first minimum charging current value corresponding to the first charging gear from a predetermined current limiting table;

[0095] It can be understood that the charging current value in the charging rule table is consistent with the maximum charging current value in the current limiting table. Therefore, a charging current value in the charging rule table and the gear index value of the same maximum charging current value in the current limiting table are the same. Based on this, in some embodiments, when the MCU determines whether the number of times that the current voltage of the battery is greater than the battery voltage corresponding to the current charging gear is greater than or equal to the number threshold, the gear index value of the first charging gear in the charging rule table is sent to the CPU, and the CPU obtains the first maximum charging current value and the first minimum charging current value corresponding to the first charging gear from the current limiting table based on the gear index value.

[0096] Step 409, the terminal (such as a CPU or an MCU) obtains the negative electrode potential of the battery of the terminal;

[0097] Step 410: The terminal (such as a CPU) sends a control signal to the adapter according to the first maximum charging current value, the first minimum charging current value and the negative electrode potential, so that the adapter controls the output charging signal according to the control signal.

[0098] The following describes an exemplary application of the embodiments of the present application in a practical application scenario.

[0099] When the input parameters of the intelligent charging algorithm (such as battery voltage, sys_max_current, sys_min_current, battery discharge depth) are not updated in time or are even wrong with low probability, the problem of excessive current reduction will occur. The reason is that the update of the values ​​of sys_max_current and sys_min_current is based on the large voltage gear (such as the sys_max_current and sys_min_current settings described in gears one to five described in the related scheme above), rather than based on the small current gear (such as Table 1 described above).

[0100] In the embodiments of the present application,

[0101] 1. When the mobile phone is plugged into the fast charging adapter, the AP controls the MCU to reset, and then the AP passively waits for the MCU to send a command code. In the MCU fast charging solution, the interaction between the MCU, adapter and AP is as follows: the adapter sends information to the MCU, the MCU sorts out the message and replies to the adapter, and tells the AP and MCU the current working status at the appropriate time. The AP receives the message from the MCU, and then replies to the MCU with the requested current, and the MCU then transmits the requested current to the MCU.

[0102] 2. The MCU starts up upon receiving a reset instruction from the mobile phone AP, and then selects the corresponding first charging curve according to the battery temperature and battery power, and sends the first charging curve to the adapter. The adapter then determines whether to switch the charging current according to the battery voltage replied by the MCU; wherein, the adapter switches the charging current when the battery voltage replied by the MCU to the adapter exceeds a certain battery voltage for a certain number of times (e.g., 30 times).

[0103] Due to the limited space of MCU, the false curve (i.e., charging rule table) cannot be manually defined in advance. The false curve can be calculated through the true curve (i.e., the first charging curve). The specific rule is to subtract 500mA from the maximum current of the voltage level and then take the maximum current value that can be divided by 500mA downward until it is less than the maximum current of the next battery voltage level.

[0104] 3. Get the current battery voltage vol and the initialization curve index curve_x with x=1, that is, start the calculation from the first gear curve. The index has not been initialized at the beginning of fast charging, so the curve index is initialized according to the current battery voltage. The specific solution is to find the first battery voltage vol less than the vol in the curve index curve_x and record the current gear of the current curve target_curve=x, otherwise switch the gear x=x+1;

[0105] 4. In the fast charging stable state, the adapter repeatedly inquires the MCU about the battery voltage of the mobile phone. The MCU will update the battery voltage vol from the fuel gauge and reply to the adapter, and then determine whether the battery voltage vol is greater than the vol in the target_curve. If not, the current target_curvel will be maintained. If it is greater, the count count+1 operation will be executed. If count>30, it indicates that the curve index needs to be switched. The target_curve+1 switches to the next curve and the count is cleared to 0. The adapter also synchronously determines that the voltage exceeds the value for more than 30 times and switches the curve. Therefore, the AP can synchronously simulate the charging rules of the adapter.

[0106] 5. MCU and AP interact once every 2 seconds, and there are many interactive commands. In order to indicate that the curve sent by MCU is to AP, the data frame is organized as frame header + index value. The frame header is 0X20, and the index value is 5 bits low. The communication between MCU and AP is 7 bits. The upper two bits are 0B10, and the lower 5 bits are the index, which can represent 32 gears. AP will parse the index target_curve to find the index table (i.e. current limiting table) of sys_max_current and sys_min_current of smart charging, and get sys_max_current and sys_min_current and report them to the smart charging algorithm to control the current output of the adapter.

[0107] Specifically, in some embodiments, Figure 5 As shown, the charging control method can be implemented through the following steps 501 to 520:

[0108] Step 501, when the AP detects that the terminal is plugged into a fast charging adapter, the AP controls the MCU to reset;

[0109] Step 502, the MCU selects a corresponding true curve according to the current battery temperature and battery capacity;

[0110] Step 503, MCU generates a false curve from the true curve;

[0111] Step 504, MCU obtains the current battery temperature; x in Curve_x=1;

[0112] Step 505, the MCU determines whether the curve index is initialized; if so, execute step 508; otherwise, execute step 506;

[0113] Step 506, the MCU determines whether the current battery voltage vol is less than the battery voltage of curve_x; if so, execute step 507; otherwise, the curve index x=x+1, and then return to execute step 506;

[0114] Step 507, MCU determines the current gear position of the curve target_curve=x; and proceeds to step 508;

[0115] Step 508, waiting for the curve gear to be updated, and then proceeding to step 511;

[0116] Step 509, the adapter inquires the MCU about the battery voltage command B;

[0117] Step 510, the MCU obtains the current battery voltage vol and replies to the adapter; then, waits for the curve position to be updated;

[0118] Step 511, the MCU determines whether the battery voltage vol is greater than the battery voltage in the current gear target_curve; if so, proceed to step 512; otherwise, continue to maintain the current index Count=0, and then proceed to step 516;

[0119] Step 512, Count+1, go to step 514, that is, the MCU determines whether Count is greater than 30;

[0120] Step 513, MCU determines whether Count is greater than 30; if so, execute step 514; otherwise, execute step 513;

[0121] Step 514, the curve index target_curve=target_curve+1 needs to be switched; count=0; then, proceed to step 516;

[0122] Step 516, AP receives the curve command code A sent by MCU;

[0123] Step 517, AP parses command code A and extracts index target_curve therein;

[0124] Step 518, AP looks up the table based on the index target_curve to obtain max_current and min_current;

[0125] In step 519, the AP reports sys_max_current and sys_min_current to the smart charging algorithm.

[0126] This solution can effectively suppress the problem of excessive current limiting caused by "incorrect" calculation of the algorithm. For machines with excessive current limiting problems, this solution can increase the charging speed by 20% compared to the unoptimized solution.

[0127] In the embodiment of the present application, an MCU-based intelligent charging software optimization solution is designed. The solution achieves more refined control of the sys_max_current and sys_min_current of the intelligent charging algorithm by estimating the adapter curve gear switching by the MCU and designing the MCU and AP curve gear information interaction mechanism. Actual tests show that the solution can effectively resist the problem of excessive continuous current reduction caused by uncontrollable factors in the intelligent charging algorithm, thereby ensuring the charging time consistency of the machine integrated with the intelligent charging algorithm.

[0128] It should be noted that although the steps of the method in the present application are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.; or, steps in different embodiments may be combined into a new technical solution.

[0129] Based on the above embodiments, the present application provides a charging control device, which is applied to a terminal charged by an adapter. Figure 6 A schematic diagram of the structure of the charging control device provided in the embodiment of the present application is shown in FIG. Figure 6 As shown, the charging control device 60 includes:

[0130] A first acquisition module 601 is configured to acquire a first maximum charging current value and a first minimum charging current value corresponding to the first charging gear from a predetermined current limiting table based on determining that the adapter is switched to the first charging gear; wherein the multiple charging current values ​​of the same battery voltage in the charging rule table obtained in advance based on simulating the charging rule of the adapter are respectively the maximum charging current values ​​of different charging gears in the current limiting table, and the minimum charging current value of the charging gear in the current limiting table is obtained based on the maximum charging current value of the same charging gear;

[0131] A second acquisition module 602 is configured to acquire the negative electrode potential of the battery of the terminal;

[0132] The control module 603 is configured to send a control signal to the adapter according to the first maximum charging current value, the first minimum charging current value and the negative electrode potential, so that the adapter controls the output charging signal according to the control signal.

[0133] In some embodiments, the charging control device 60 also includes a third acquisition module and a sending module; wherein the third acquisition module is configured to obtain a corresponding predefined first charging curve according to the current state parameters of the battery before obtaining a first maximum charging current value and a first minimum charging current value corresponding to the first charging gear from a predetermined current limiting table based on determining that the adapter switches to the first charging gear; wherein the first charging curve includes voltage-current pairs of multiple different gears, and the voltage-current pairs include a voltage value and a second maximum charging current value required to charge the battery to the voltage; the sending module is configured to send the first charging curve to the adapter so that the adapter controls the charging signal output to the battery according to the first charging curve and the charging rule.

[0134] In some embodiments, the charging control device 60 also includes a first determination module and a second determination module; wherein the first determination module is configured to determine the charging rule table based on the first charging curve and the charging rule; wherein the charging rule table includes multiple different battery voltage values ​​and one or more charging current values ​​required to charge to the battery voltage; the second determination module is configured to use each charging current value in the charging rule table as the maximum charging current value for different charging gears in the current limiting table, and determine the minimum charging current value for the same charging gear based on the maximum charging current value to obtain the current limiting table.

[0135] In some embodiments, the charging rule includes: executing the first charging process in sequence according to the second maximum charging current in the first charging curve from large to small; wherein, the first charging process includes: charging the battery with the second maximum charging current of the current gear; when it is determined that the corresponding battery voltage is charged with the second maximum charging current of the current gear, reducing the second maximum charging current currently used according to the current reduction rule to obtain the value of the first charging current; based on determining that the value of the first charging current is greater than the value of the second maximum charging current of the next gear, charging the battery with the first charging current; when it is determined that the corresponding battery voltage is charged with the first charging current, reducing the first charging current according to the current reduction rule to obtain the value of the second charging current; based on determining that the value of the second charging current is less than or equal to the value of the second maximum charging current of the next gear, executing the first charging process according to the second maximum charging current of the next gear.

[0136] In some embodiments, the first charging process further includes: based on determining that the value of the first charging current is less than or equal to the value of the second maximum charging current of the next gear, executing the first charging process according to the second maximum charging current of the next gear.

[0137] In some embodiments, the first charging process also includes: based on determining that the value of the second charging current is greater than the value of the second maximum charging current of the next gear, continuing to reduce the current according to the current reduction rule until the charging current after the current reduction is less than or equal to the value of the second maximum charging current of the next gear, and executing the first charging process according to the second maximum charging current of the next gear.

[0138] In some embodiments, the charging control device 60 also includes a fourth acquisition module and a third determination module; wherein the fourth acquisition module is configured to periodically acquire the current voltage of the battery during the process of the adapter charging the battery based on the current charging gear before acquiring the first maximum charging current value and the first minimum charging current value corresponding to the first charging gear from a predetermined current limiting table based on determining that the adapter switches to the first charging gear; the third determination module is configured to determine that the adapter switches to the first charging gear based on determining that the number of times the current voltage of the battery is greater than the battery voltage corresponding to the current charging gear is greater than or equal to a number threshold.

[0139] In some embodiments, the control module is configured to: based on determining that the negative electrode potential is less than or equal to a potential threshold, reduce the first maximum charging current value to obtain a third charging current value; wherein the third charging current value is greater than or equal to the first minimum charging current value; generate the control signal (for example, the control signal carries the value of the third charging current) according to the value of the third charging current; and send the control signal to the adapter so that the adapter controls the output charging signal according to the control signal.

[0140] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.

[0141] It should be noted that the division of modules by the charging control device in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional unit in each embodiment of the present application may be integrated into a processing unit, or may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of a software functional unit. It may also be implemented in the form of a combination of software and hardware.

[0142] It should be noted that in the embodiment of the present application, if the above method is implemented in the form of a software function 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 embodiment of the present application can be essentially or partly embodied in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including several instructions to enable the terminal to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.

[0143] The embodiment of the present application provides a terminal, Figure 7 A schematic diagram of the hardware entity of the terminal of the embodiment of the present application is shown in FIG. Figure 7 As shown, the terminal 70 includes a memory 701 and a processor 702. The memory 701 stores a computer program that can be run on the processor 702. When the processor 702 executes the program, the steps in the method provided in the above embodiment are implemented.

[0144] It should be noted that the memory 701 is configured to store instructions and applications executable by the processor 702, and can also cache data to be processed or processed by the processor 702 and various modules in the terminal 70 (for example, image data, audio data, voice communication data, and video communication data), which can be implemented through flash memory (FLASH) or random access memory (Random Access Memory, RAM).

[0145] An embodiment of the present application provides 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 embodiment are implemented.

[0146] An embodiment of the present application provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the steps of the method provided in the above method embodiment.

[0147] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium, storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.

[0148] It should be understood that "one embodiment" or "an embodiment" or "some embodiments" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in one embodiment" or "in some embodiments" appearing throughout the specification may 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 the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments. The above description of each embodiment tends to emphasize the differences between the various embodiments, and the same or similar aspects can be referenced to each other. For the sake of brevity, this article will not repeat them.

[0149] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there may be three relationships. For example, object A and / or object B can represent three situations: object A exists alone, object A and object B exist at the same time, and object B exists alone.

[0150] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0151] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as: multiple modules or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or modules can be electrical, mechanical or other forms.

[0152] The modules described above as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules; they may be located in one place or distributed on multiple network units; some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.

[0153] In addition, all functional modules in the embodiments of the present application may be integrated into one processing unit, or each module may be a separate unit, or two or more modules may be integrated into one unit; the above-mentioned integrated modules may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0154] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.

[0155] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling the terminal to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks or optical disks.

[0156] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0157] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0158] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0159] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A charging control method, characterized in that: The method is applied to a terminal charged by an adapter, and the method comprises: Based on determining that the adapter is switched to the first charging gear, obtaining a first maximum charging current value and a first minimum charging current value corresponding to the first charging gear from a predetermined current limiting table; wherein the multiple charging current values ​​of the same battery voltage in the charging rule table obtained in advance based on simulating the charging rule of the adapter are respectively the maximum charging current values ​​of different charging gears in the current limiting table, and the minimum charging current value of the charging gear in the current limiting table is obtained based on the maximum charging current value of the same charging gear; Obtaining the negative electrode potential of the battery of the terminal; A control signal is sent to the adapter according to the first maximum charging current value, the first minimum charging current value and the negative electrode potential, so that the adapter controls the output charging signal according to the control signal.

2. The method according to claim 1, characterized in that Before obtaining a first maximum charging current value and a first minimum charging current value corresponding to the first charging gear from a predetermined current limiting table based on determining that the adapter is switched to the first charging gear, the method further includes: According to the current state parameter of the battery, a corresponding predefined first charging curve is acquired; wherein the first charging curve includes a plurality of voltage-current pairs at different gears, and the voltage-current pair includes a voltage value and a second maximum charging current value required to charge to the voltage; The first charging curve is sent to the adapter so that the adapter controls a charging signal output to the battery according to the first charging curve and the charging rule.

3. The method according to claim 2, characterized in that The method further comprises: Determine the charging rule table according to the first charging curve and the charging rule; wherein the charging rule table includes a plurality of different battery voltage values ​​and one or more charging current values ​​required to charge to the battery voltage; Each charging current value in the charging rule table is used as the maximum charging current value of different charging gears in the current limiting table, and the minimum charging current value of the same charging gear is determined according to the maximum charging current value to obtain the current limiting table.

4. The method according to claim 2 or 3, characterized in that: The charging rule includes: executing the first charging process in order from large to small according to the second maximum charging current in the first charging curve; Wherein, the first charging process includes: charging the battery at a second maximum charging current of the current gear; When it is determined that the battery voltage is charged to the corresponding battery voltage with the second maximum charging current of the current gear, the second maximum charging current currently used is reduced according to the current reduction rule to obtain the value of the first charging current; charging the battery with the first charging current based on determining that the value of the first charging current is greater than the value of a second maximum charging current of a next gear of the first charging curve; When it is determined that the first charging current is used to charge the corresponding battery voltage, the first charging current is reduced according to the current reduction rule to obtain a value of a second charging current; Based on determining that the value of the second charging current is less than or equal to the value of the second maximum charging current of the next gear, the first charging process is performed according to the second maximum charging current of the next gear.

5. The method according to claim 4, characterized in that The first charging process further includes: Based on determining that the value of the first charging current is less than or equal to the value of the second maximum charging current of the next gear, the first charging process is performed according to the second maximum charging current of the next gear.

6. The method according to claim 4, characterized in that The first charging process further includes: Based on determining that the value of the second charging current is greater than the value of the second maximum charging current of the next gear, the current continues to be reduced according to the current reduction rule until the charging current after the current reduction is less than or equal to the value of the second maximum charging current of the next gear, and the first charging process is performed according to the second maximum charging current of the next gear.

7. The method according to any one of claims 1 to 6, characterized in that: Before obtaining a first maximum charging current value and a first minimum charging current value corresponding to the first charging gear from a predetermined current limiting table based on determining that the adapter is switched to the first charging gear, the method further includes: In the process of the adapter charging the battery based on the current charging gear, periodically obtaining the current voltage of the battery; Based on determining that the number of times that the current voltage of the battery is greater than the battery voltage corresponding to the current charging gear is greater than or equal to a number threshold, it is determined that the adapter is switched to the first charging gear.

8. The method according to any one of claims 1 to 6, characterized in that: The sending a control signal to the adapter according to the first maximum charging current value, the first minimum charging current value and the negative electrode potential includes: Based on determining that the negative electrode potential is less than or equal to the potential threshold, reducing the first maximum charging current value to obtain a third charging current value; wherein the third charging current value is greater than or equal to the first minimum charging current value; generating the control signal according to the value of the third charging current; The control signal is sent to the adapter.

9. A charging control device, characterized in that: The device is applied to a terminal charged by an adapter, and the device comprises: A first acquisition module is configured to acquire a first maximum charging current value and a first minimum charging current value corresponding to the first charging gear from a predetermined current limiting table based on determining that the adapter is switched to the first charging gear; wherein the multiple charging current values ​​of the same battery voltage in the charging rule table obtained in advance based on simulating the charging rule of the adapter are respectively the maximum charging current values ​​of different charging gears in the current limiting table, and the minimum charging current value of the charging gear in the current limiting table is obtained based on the maximum charging current value of the same charging gear; A second acquisition module, configured to acquire the negative electrode potential of the battery of the terminal; The control module is configured to send a control signal to the adapter according to the first maximum charging current value, the first minimum charging current value and the negative electrode potential, so that the adapter controls the output charging signal according to the control signal.

10. A terminal comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 8 is implemented.

11. 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 8 is implemented.