Charging control method, terminal and storage medium

By using the first processor and the second processor to work together in the terminal to determine and map the current value output by the adapter, the problem of charging speed improvement space and current accuracy loss in the prior art is solved, and more efficient charging control is achieved .

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

Patent Information

Application Number
CN202310749511.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-21
Publication Date
2024-12-24

AI Technical Summary

Technical Problem

The existing fast charging control method has room for improvement in charging speed, and the charging speed cannot fully function due to loss of current accuracy.

Method used

By working in a coordinated manner using the first processor and the second processor in the terminal, the first processor determines the current value output by the adapter and maps the irregular current value to the predefined map value to the second processor, The processor sends control information to the adapter according to the mapped value, causing the adapter to control the charging signal according to the predefined charging curve.

Benefits of technology

It effectively solves the problem that the charging speed is affected by the loss of current accuracy, improves the accuracy of the charging speed and charging current, and ensures the safety and efficiency of the charging process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119182193A_ABST
    Figure CN119182193A_ABST
Patent Text Reader

Abstract

The invention provides a charging control method, a terminal and a storage medium. The method is applied to the terminal charged through an adapter, the terminal comprises a first processor and a second processor, and the method comprises the steps that the first processor determines a first current value, and the first current value is used for controlling the output current of the adapter; the first processor sends a predefined first mapping value to the second processor through a transmission bit based on determining that the first current value is a current value not supported by the transmission bit; wherein the first mapping value is different from the first current value; and the second processor sends first information to the adapter according to the first mapping value, so that the adapter controls an output charging signal according to a predefined first charging curve.
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, 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, terminal, and storage medium provided in the present application can improve the charging speed of the terminal.

[0004] According to one aspect of an embodiment of the present application, a charging control method is provided, the method being applied to a terminal charged via an adapter, the terminal comprising a first processor and a second processor, the method comprising: the first processor determining a first current value, the first current value being used to control an output current of the adapter; the first processor sending a predefined first mapping value to the second processor via the transmission bit based on determining that the first current value is a current value not supported by a transmission bit; wherein the first mapping value is different from the first current value; the second processor sending first information to the adapter based on the first mapping value, so that the adapter controls the output charging signal according to a predefined first charging curve.

[0005] According to one aspect of an embodiment of the present application, a terminal is provided, comprising: a first processor and a second processor; wherein the first processor is configured to determine a first current value, which is used to control the output current of the adapter; the first processor is further configured to send a predefined first mapping value to the second processor through the transmission bit based on determining that the first current value is a current value not supported by the transmission bit; wherein the first mapping value is different from the first current value; the second processor is configured to send first information to the adapter according to the first mapping value, so that the adapter controls the output charging signal according to a predefined first charging curve.

[0006] 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.

[0007] In an embodiment of the present application, when the first current value used to control the output current of the adapter is a current value not supported by the transmission bit of the first processor, instead of sacrificing the accuracy of the first current value to transmit it to the second processor, a predefined first mapping value is sent to the second processor, and the second processor sends first information to the adapter based on the first mapping value, so that the adapter controls the output charging signal according to the predefined first charging curve; this solves the problem of affecting the charging speed due to sacrificing the accuracy of the first current value to transmit it to the second processor.

[0008] 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

[0009] 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.

[0010] 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.

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

[0012] Figure 2 It is a schematic diagram of the interaction between MCU, CPU and adapter;

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

[0014] Figure 4 A schematic diagram of an implementation flow of a method for determining a first current value provided in an embodiment of the present application;

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

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

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

[0018] 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.

[0019] 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.

[0020] 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.

[0021] 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.

[0022] 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.

[0023] 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.

[0024] Existing fast charging solutions based on MCU include Figure 2 As 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 and CLK pin, mainly to report the status of fast charging to AP, and AP replies to the MCU with the pre-applied charging current.

[0025] 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.

[0026] 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).

[0027] 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; sys_min_current is the minimum charging current of this voltage platform minus 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. For example, charge_current is determined based on sys_max_current, sys_min_current and the negative electrode potential of the battery, where sys_min_current≤charge_current≤sys_max_current. Then this parameter charge_current is sent to the adapter through the mobile phone to control the output of the adapter.

[0028] 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.

[0029] Exemplarily, the ATL curve includes the following gears 1) to 6):

[0030] Gear 1) 9.1A, 9A, 8.5A charging until the battery voltage reaches 4.204V, and the longest charging time does not exceed 1.5 minutes;

[0031] Gear 2) 8A, 7.5A charging until the battery voltage reaches 4.304V, the longest charging time shall not exceed 1.5 minutes;

[0032] Gear 3) 7A, 6.5A charging until the battery voltage reaches 4.304V, the longest charging time shall not exceed 5 minutes;

[0033] Gear 4) 6.4A, 5.5A, 5A, 4.5A charging until the battery voltage reaches 4.484V;

[0034] Gear position 5) 4.2A, 3.5A, 3A, 2.5A, 2A, 1.5A charging until the battery voltage reaches 4.514V;

[0035] Position 6) Charge at 1.3A until the battery voltage reaches 4.52V, then exit fast charge mode.

[0036] It can be understood that when the adapter is charging 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 is reduced, the battery floating voltage is not so high, so it can be charged to the same battery voltage with a smaller current. When charging with a charging current of 8.5A to a battery voltage of 4.204V, switch to gear 2), charge the battery with a charging current of 8A until the battery voltage reaches 4.304V, then charge the battery with a charging current of 7.5A until the battery voltage reaches 4.304V, and then switch to gear 3), and so on, until exiting the fast charging mode.

[0037] Based on the above ATL curve, the settings of the maximum charging current (sys_max_current) and the minimum charging current (sys_min_current) are shown in Table 1 below:

[0038] Table 1

[0039]

[0040] 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 8A. The same applies to other gears.

[0041] Since the number of communication bits (i.e., transmission bits) for the AP to interact with the MCU is limited, for example, the number of communication bits for the AP to interact with the MCU is only 6 bits, that is, only 64 values ​​can be represented, and the adapter can adjust the precision to 100 milliampere (milliampere, ma). Therefore, in order to represent a wider range of current, the step represented by the 64 values ​​needs to be set to 500ma, so that these 6 bits can represent more than 30 different current values, which can meet both current needs and subsequent high-power expansion. However, the MCU solution will lose a certain amount of current accuracy in some gears when implementing smart charging. For example, when the smart charging gear is in gear three, since sys_max_current is set to 6.4A, but the MCU does not have this current gear, it can only be rounded down with an accuracy of 500ma, that is, the current that the AP replies to the MCU is compressed from 6.4A output by the algorithm to 6A; similarly, if it is gear four, the current that the AP replies to the MCU is compressed from 4.2A output by the algorithm to 4A. Therefore, the current output of the algorithm for realizing intelligent charging based on the MCU charging solution will have certain defects in certain specific curve positions due to the limitation of the number of current bits responded, resulting in the charging current being smaller than the calculated value, so full power charging cannot be achieved, which affects the charging speed to a certain extent.

[0042] In the relevant MCU charging solution, the calculated value (charge_current) of the intelligent charging algorithm suffers from current accuracy loss. The small charging current causes the charging speed to fail to reach the rated power to a certain extent, and the charging speed function is not fully utilized.

[0043] The embodiment of the present application provides a charging control method, the charging control method is applied to a terminal charged by an adapter, the terminal includes a first processor and a second processor, Figure 3 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 3 As shown, the charging control method includes the following steps 301 to 303:

[0044] Step 301: The first processor determines a first current value, where the first current value is used to control an output current of an adapter;

[0045] Step 302: The first processor sends a predefined first mapping value to the second processor through the transmission bit based on determining that the first current value is an irregular current value; wherein the first mapping value is different from the first current value; wherein the irregular current value is a current value not supported by the transmission bit.

[0046] It can be understood that the transmission bit refers to a transmission resource available for information exchange between the first processor and the second processor.

[0047] Step 303: The second processor sends first information to the adapter according to the first mapping value, so that the adapter controls the output charging signal according to a predefined first charging curve.

[0048] In an embodiment of the present application, when the first current value used to control the output current of the adapter is a current value not supported by the transmission bit of the first processor, the first current value is not sacrificed in accuracy to transmit it to the second processor, but a predefined first mapping value is sent to the second processor, and the second processor sends a first message to the adapter based on the first mapping value, so that the adapter controls the output charging signal according to the predefined first charging curve; this solves the problem of affecting the charging speed due to sacrificing the accuracy of the first current value and transmitting it to the second processor. That is, when the first current value is a current value not supported by the transmission bit, the first processor does not transmit the first current value to the second processor in a distorted manner (for example, the first current value is 4.2A, but the current value transmitted to the second processor is 4A), but sends a predefined first mapping value to the second processor, and the second processor sends a first message to the adapter according to the first mapping value, so that the adapter controls the output charging signal according to the predefined first charging curve. For example, the second processor sends a first message to the adapter to request the adapter to control the charging current according to the maximum charging current value corresponding to the current voltage of the battery in the first charging curve.

[0049] It can be understood that the first charging curve at least includes one or more maximum charging current values ​​corresponding to the battery voltage levels, that is, when the battery voltage is at a certain battery voltage level, the maximum charging current value corresponding to the battery voltage level is the maximum charging current that the adapter can output.

[0050] Optionally, in some embodiments, the first charging curve also includes other current values ​​that simulate the adapter charging rules. For example, each battery voltage level includes not only a matching maximum charging current value, but also a matching minimum charging current value and a current value between the maximum charging current value and the minimum charging current value.

[0051] Exemplarily, the first charging curve may be the ATL curve mentioned above. Of course, in other embodiments, the first charging curve includes at least a maximum charging current value and a minimum charging current value corresponding to one or more battery voltage levels. For example, the first charging curve may also be the above-mentioned Table 1.

[0052] The following describes further optional implementations and related terms of each of the above steps.

[0053] In step 301, a first processor determines a first current value, where the first current value is used to control an output current of an adapter.

[0054] Optionally, in some embodiments, Figure 4 As shown, the first processor may determine the first current value through the following steps 3011 and 3012:

[0055] Step 3011, the first processor obtains the corresponding first maximum charging current value and first minimum charging current value from a predetermined current limiting table according to the current voltage of the terminal battery; wherein the current limiting table includes maximum charging current values ​​and minimum charging current values ​​corresponding to different battery voltage levels.

[0056] Exemplarily, taking the current limiting table as Table 1 above as an example, assuming that the current voltage of the terminal battery is 4V, the first maximum charging current value corresponding to the current voltage 4V is 9.1A and the first minimum charging current value is 8A; for example, assuming that the current voltage of the battery is 4.401V, the current voltage is in gear three, and the corresponding first maximum charging current value is 6.4A and the first minimum charging current value is 4A.

[0057] Optionally, in some embodiments, the first processor may determine the current limiting table as follows: the first processor obtains a corresponding predefined first charging curve based on the current status parameters of the terminal's battery; wherein the first charging curve includes voltage-current pairs of multiple different gears, and the voltage-current pairs include a battery voltage value and a maximum charging current value required to charge to the battery voltage; the first processor generates a current limiting table based on the first charging curve; wherein the maximum charging current value of each charging gear in the current limiting table is equal to the maximum charging current value of the corresponding gear in the first charging curve, and each charging gear in the current limiting table also includes a minimum charging current value.

[0058] Furthermore, in some embodiments, the current state parameters of the battery include the current temperature and / or current power level of the battery.

[0059] Step 3012: The first processor determines the first current value according to the first maximum charging current value, the first minimum charging current value, and the current negative electrode potential of the battery.

[0060] It is understandable that in the actual charging process, the charging mechanism will cause lithium deposition in the battery, which is manifested in the measurable battery parameter that the negative electrode potential of the battery is negative. That is, when the negative electrode potential of the battery is less than 0, it indicates that lithium deposition has occurred at the negative electrode of the battery. In the charging mechanism of the embodiment of the present application, when determining the first current value, the first processor must not only consider the first maximum charging current value and the first minimum charging current value, but also needs to combine the current negative electrode potential of the battery to avoid the problem of excessive lithium deposition at the negative electrode of the battery.

[0061] Optionally, in some embodiments, when the current negative electrode potential of the battery is greater than a potential threshold, the first current value is equal to the first maximum charging current value; when the current negative electrode potential of the battery is less than or equal to the potential threshold, the first current value is less than the first maximum charging current value, and the first current value is greater than or equal to the first minimum charging current value;

[0062] There is no limitation on the magnitude of the potential threshold, which can be a value greater than 0 or equal to 0. In short, the potential threshold can be 0 V or near 0 V. For example, the potential threshold is equal to 0.001 V.

[0063] In step 302, the first processor sends a predefined first mapping value to the second processor through the transmission bit based on determining that the first current value belongs to an irregular current value; wherein the first mapping value is different from the first current value, and the irregular current value is a current value not supported by the transmission bit.

[0064] In some embodiments, the first processor sends the first mapping value to the second processor through the transmission bit based on determining that the first current value belongs to the irregular current value and the current negative electrode potential of the battery of the terminal is greater than the potential threshold; in this way, the adapter can be charged with the maximum charging current value corresponding to the current voltage of the battery, and the problem of lithium deposition in the battery due to excessive charging current can be avoided.

[0065] Further, in some embodiments, the second processor sends first information to the adapter according to the first mapping value, including:

[0066] The second processor sends first information to the adapter, where the first information includes a first request, where the first request is used to request the adapter to output a maximum charging current corresponding to the first charging curve at the current voltage of the battery.

[0067] The above describes a charging control method when the first current value belongs to an irregular current value. Then, when the first current value belongs to a regular current value, in some embodiments, the first processor may process as follows: based on determining that the first current value belongs to a regular current value, the first processor maps the first current value to a second mapping value supported by the transmission bit; wherein the regular current value refers to a current value supported by the transmission bit, and the second mapping value is different from the first mapping value; the first processor transmits the second mapping value to the second processor through the transmission bit;

[0068] The second processor reversely maps the second mapping value to the first current value based on determining that the received second mapping value is not equal to the first mapping value; the second processor generates a control signal according to the first current value, and sends the control signal to the adapter, so that the adapter controls the output charging signal according to the control signal.

[0069] For example, in some embodiments, the control signal carries a first current value, and after the second processor sends the control signal carrying the first current value to the adapter, the adapter can control the output charging signal according to the first current value and a predefined first charging curve. For example, the adapter controls the output charging signal according to the minimum value between the maximum charging current value corresponding to the first charging curve and the first current value of the current voltage of the battery, for example, outputs the charging current at the minimum value.

[0070] In other embodiments, the second processor may first determine the maximum charging current value corresponding to the current voltage of the battery in the first charging curve, and carry the minimum value of the maximum charging current value and the first current value in the control signal, and then send the control signal carrying the minimum value to the adapter, so that the adapter controls the output charging signal according to the minimum value, for example, outputs the charging current at the minimum value.

[0071] It should be noted that in the embodiment of the present application, there is no limitation on the mapping rule from the first current value to the second mapping value. In some embodiments, the mapping rule may be a predefined two-dimensional mapping table, which includes different current values ​​and the second mapping value corresponding to each current value. In other embodiments, the mapping rule may also be to divide the first current value by a predefined first value, and the calculation result is the second mapping value, that is, the first processor divides the first current value by the predefined first value to obtain the second mapping value; wherein the first value has the same unit as the first current value.

[0072] It should also be noted that in the embodiment of the present application, the first mapping value is not limited, and it is a fixed predefined second value. The second value can be one of any values ​​supported by the transmission bit of the first processor. In short, when the second processor determines that the received value is the second value, it sends the first information to the adapter so that the adapter can control the output charging signal according to the predefined first charging curve.

[0073] It can be understood that the number of communication bits (i.e., the number of transmission bits) for the first processor to interact with the second processor is limited. For example, the number of communication bits for the first processor to interact with the second processor is 6 bits, which can only represent 64 different values. Therefore, the first current value determined by the first processor may be a current value not supported by the transmission bits. Such current values ​​are called irregular current values, and the current values ​​supported by the transmission bits are called regular current values.

[0074] It should be noted that, in the embodiment of the present application, there is no limitation on the method by which the first processor determines whether the first current value is an irregular current value.

[0075] In some embodiments, the first processor can determine whether the first current value is an irregular current value as follows: the first processor queries whether the first current value is in a predetermined irregular current table; wherein the irregular current table records the maximum charging current value in the current limiting table that cannot be divided by a predefined first value, and the predefined first value has the same unit as the maximum charging current value; the first processor determines that the first current value is an irregular current value based on determining that the first current value is in the irregular current table.

[0076] In other embodiments, the first processor may also determine whether the first current value is an irregular current value in the following manner: the first processor determines that the first current value is an irregular current value based on determining that the first current value cannot be divided by a predefined first numerical value; wherein the predefined first numerical value has the same unit as the first current value.

[0077] The present application embodiment further provides a charging control method, Figure 5 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 5 As shown, the method includes the following steps 501 to 508:

[0078] Step 501: a first processor of a terminal determines a first current value, where the first current value is used to control an output current of the adapter;

[0079] Step 502, the first processor determines whether the first current value is an irregular current value; if yes, execute step 503; otherwise, execute step 506;

[0080] Step 503: The first processor maps the first current value into a first mapping value supported by the transmission bit, where the first mapping value indicates that the first processor does not control the output current of the adapter;

[0081] Step 504, the first processor transmits the first mapping value to the second processor via a transmission bit;

[0082] Step 505: The second processor sends first information to the adapter based on determining that the received value is the first mapping value, so that the adapter controls the output charging signal according to a predefined first charging curve.

[0083] For example, the second processor sends a first message carrying a first request to the adapter, where the first request is used to request the adapter to output a maximum charging current corresponding to a first charging curve at a current voltage of the battery.

[0084] Step 506: The first processor maps the first current value to a second mapping value supported by the transmission bit; wherein the regular current value refers to a current value supported by the transmission bit, and the second mapping value is different from the first mapping value;

[0085] Step 507: The first processor transmits the second mapping value to the second processor through the transmission bit;

[0086] Step 508: The second processor generates a control signal according to the first current value, and sends the control signal to the adapter, so that the adapter controls the output charging signal according to the control signal.

[0087] In some embodiments, the control signal carries a first current value, and after the second processor sends the control signal carrying the first current value to the adapter, the adapter can control the output charging signal according to the first current value and a predefined first charging curve. For example, the adapter controls the output charging signal according to the minimum value between the maximum charging current value corresponding to the first charging curve and the first current value of the current voltage of the battery, for example, outputs the charging current at the minimum value.

[0088] In other embodiments, the second processor may first determine the maximum charging current value corresponding to the current voltage of the battery in the first charging curve, and carry the minimum value of the maximum charging current value and the first current value in the control signal, and then send the control signal carrying the minimum value to the adapter, so that the adapter controls the output charging signal according to the minimum value, for example, outputs the charging current at the minimum value.

[0089] Optionally, in some embodiments, the first processor may be a CPU and the second processor may be an MCU.

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

[0091] 1. When the terminal is plugged into a fast-charging adapter, the AP (i.e., an example of the first processor, i.e., a program running on the CPU) reads the current battery temperature and battery charge (i.e., battery SOC) through I2C, and then selects the corresponding fast-charging ATL curve (i.e., an example of the first charging curve) based on the two parameters read, and sends the index of the curve to the MCU. After obtaining the index, the MCU selects the corresponding fast-charging ATL curve and sends it to the adapter for controlling charging. The AP uses its ATL curve and the rule that "sys_max_current is the maximum charging current of this voltage platform; and the minimum charging current is the maximum charging current of the next voltage platform rounded down by 500ma (the lowest charging current is not less than the minimum gear current)" to obtain a current limiting table, which includes the maximum charging current value (sys_max_curent) and the minimum charging current value (sys_min_curent) of each voltage platform (i.e., voltage gear) and the total number of voltage gears num of the current limiting table. For example, the current limiting table is shown in Table 1.

[0092] 2. Then, the AP needs to count how many sys_max_current in the current limiting table are irregular current values. The specific rule is whether sys_max_current[i]%500 is equal to 0, that is, whether the sys_max_current in the gear i in the table can be divided by 500. If it cannot be divided by 500, then the sys_max_current of the gear is an irregular current value; where i is greater than 0 and less than or equal to the total number of voltage gears in the current limiting table; the irregular current value is added to the irregular current table.

[0093] It can be understood that in the case of abnormal lithium deposition, charge_current (ie, the first current value) of smart charging is equal to sys_max_current of the voltage level where the current voltage of the battery is located, so it is necessary to determine whether sys_max_current is a regular current value.

[0094] 3. Then the AP resets the MCU to enter fast charging. The AP transmits the sys_max_current and sys_min_current of the voltage level to which the current voltage of the battery belongs to the intelligent charging algorithm. The intelligent charging algorithm uses it to calculate charge_current, and then looks up the table to determine whether charge_current belongs to an element in the irregular current table. If it does, charge_current is an irregular current value, and it is necessary to map charge_current to a value of 0 (i.e., an example of the first mapping value) and assign it to reply_current. If it does not belong to an element in the irregular current table, charge_current is a regular current value, and charge_current is mapped to reply_current (i.e., an example of the second mapping value) according to the regular current table, where the design principle of the regular current table is to divide by 500ma, for example, 6000ma is mapped to 12.

[0095] 4. MCU actively communicates with AP and asks the AP what charging current it needs. AP replies reply_current to MCU based on the inquiry signal. After receiving the reply_current, MCU analyzes what type it belongs to. If reply_current is equal to 0, it means that the AP does not control the output current of the adapter, and the output current of the adapter is completely controlled by the MCU. At this time, it will be completely controlled by the ATL curve; if reply_current is not equal to 0, the same current restoration needs to be done, that is, multiply reply_current by 500ma to get the actual charging current value that the AP wants to control, and apply the minimum value of the current value and the maximum charging current value corresponding to the current voltage of the battery in the ATL curve to the output of the adapter, so as to achieve the purpose of current regulation.

[0096] In one possible implementation, Figure 6 As shown, the charging control method may include the following steps 601 to 620:

[0097] Step 601, the AP detects that a fast charging adapter is inserted;

[0098] Step 602, the AP selects a corresponding fast charge ATL curve according to the current battery temperature and battery power;

[0099] Step 603, the AP parses the sys_max_current and sys_min_current gears and the total number of gears of the smart charging according to the ATL curve, that is, determines the current limiting table;

[0100] Step 604, the AP determines whether the gear number i is less than the total gear number; if so, execute step 605; otherwise, execute step 608;

[0101] Step 605, the AP determines whether the sys_max_current of the i-th gear is divisible by 500; if yes, execute step 606; otherwise, execute step 607;

[0102] Step 606, the AP fills sys_max_current into the irregular current table (i_table), and the number of current values ​​recorded in i_table is len;

[0103] Step 607, i=i+1; then, the AP returns to execute step 604;

[0104] Step 608, the AP resets the MCU to enter fast charging;

[0105] Step 609, the AP obtains the current voltage of the battery, and transmits sys_max_current and sys_min_current at the voltage level where the current voltage of the battery is located to the intelligent charging algorithm;

[0106] Step 610, the AP calculates charge_current based on the intelligent charging algorithm;

[0107] Step 611, the AP checks whether charge_current is an element in the irregular current table (i_table); if so, execute step 612; otherwise, execute step 614;

[0108] Step 612, the AP determines that charge_current is an irregular current value, and then proceeds to step 613;

[0109] Step 613, the AP maps reply_current to a value of 0 which does not control the current, and then proceeds to step 616;

[0110] Step 614, the AP determines that charge_current is a regular current, and then proceeds to step 615;

[0111] Step 615, the AP maps reply_current to a control current value, and then proceeds to step 616;

[0112] Step 616, the AP replies reply_current to the MCU;

[0113] Step 617, MCU parses reply_current;

[0114] Step 618, the MCU determines whether reply_current is equal to 0; if so, execute step 619; otherwise, execute step 620;

[0115] Step 619, the MCU controls the output current of the adapter completely according to the ATL curve;

[0116] Step 620, the MCU controls the output current of the adapter according to the minimum value of the ATL curve and reply_current*5*100ma.

[0117] In the embodiment of the present application, an intelligent charging control current optimization design scheme based on the MCU charging scheme is designed. This scheme can solve the current accuracy loss problem of the intelligent charging algorithm control when using the MCU charging scheme, so that under normal non-lithium precipitation conditions, the charging current is completely charged according to the ATL curve, thereby shortening the charging time by several minutes and ensuring the full charging speed. Secondly, the designed software solution has strong compatibility, and developers can implement this optimization function without additional configuration on the existing basis.

[0118] 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.

[0119] Based on the foregoing embodiments, the present application provides a terminal that can be charged through an adapter. Figure 7 A schematic diagram of the structure of a terminal provided in an embodiment of the present application, such as Figure 7 As shown, the terminal 70 includes a first processor 701 and a second processor 702; wherein,

[0120] A first processor 701 is configured to determine a first current value, where the first current value is used to control an output current of an adapter;

[0121] The first processor 701 is further configured to send a predefined first mapping value to the second processor through the transmission bit based on determining that the first current value is a current value not supported by the transmission bit; wherein the first mapping value is different from the first current value;

[0122] The second processor 702 is configured to send first information to the adapter according to the first mapping value, so that the adapter controls the output charging signal according to a predefined first charging curve.

[0123] In some embodiments, the first processor 701 is configured to send the first mapping value to the second processor 702 through the transmission bit based on determining that the first current value is a current value not supported by the transmission bit and the current negative electrode potential of the battery of the terminal 70 is greater than the potential threshold.

[0124] In some embodiments, the second processor 702 is configured to send first information to the adapter, where the first information includes a first request, where the first request is used to request the adapter to output a maximum charging current corresponding to the first charging curve at the current voltage of the battery.

[0125] In some embodiments, the first processor 701 is further configured to map the first current value to a second mapping value supported by the transmission bit based on determining that the first current value is a current value supported by the transmission bit; wherein the second mapping value is different from the first mapping value; and transmit the second mapping value to the second processor 702 through the transmission bit; the second processor 702 is further configured to reversely map the second mapping value to the first current value based on determining that the received second mapping value is not equal to the first mapping value; and generate a control signal based on the first current value, and send the control signal to the adapter, so that the adapter controls the output charging signal according to the control signal.

[0126] In some embodiments, mapping the first current value to a second mapping value supported by the transmission bit includes: dividing the first current value by a predefined first numerical value to obtain the second mapping value; wherein the first numerical value has the same unit as the first current value.

[0127] In some embodiments, the first mapping value is a predefined second value.

[0128] In some embodiments, the first processor 701 is configured to: obtain a corresponding first maximum charging current value and a first minimum charging current value from a predetermined current limiting table according to the current voltage of the battery of the terminal 70; wherein the current limiting table includes maximum charging current values ​​and minimum charging current values ​​corresponding to different battery voltage levels; and determine the first current value according to the first maximum charging current value, the first minimum charging current value and the current negative electrode potential of the battery.

[0129] In some embodiments, when the current negative electrode potential of the battery is greater than a potential threshold, the first current value is equal to the first maximum charging current value.

[0130] In some embodiments, the first processor 701 is further configured to query whether the first current value is in a predetermined irregular current table; wherein the irregular current table records the maximum charging current value in the current limiting table that cannot be divided by a predefined first value, and the predefined first value has the same unit as the maximum charging current value; and based on determining that the first current value is in the irregular current table, determining that the first current value is a current value not supported by the transmission bit.

[0131] In some embodiments, the first processor 701 is further configured to determine that the first current value is a current value not supported by the transmission bit based on determining that the first current value cannot be divided by a predefined first numerical value; wherein the predefined first numerical value has the same unit as the first current value.

[0132] The description of the above terminal 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 terminal embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.

[0133] 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.

[0134] 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.

[0135] 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.

[0136] It should be noted here that the description of the above storage medium and the computer program product embodiment containing instructions 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 storage medium and the computer program product embodiment containing instructions of this application, please refer to the description of the method embodiment of this application for understanding.

[0137] 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.

[0138] 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.

[0139] 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.

[0140] 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.

[0141] 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.

[0142] 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.

[0143] 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.

[0144] 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.

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

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

[0147] 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.

[0148] 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, the terminal comprising a first processor and a second processor, and the method comprises: The first processor determines a first current value, the first current value being used to control an output current of the adapter; The first processor sends a predefined first mapping value to the second processor through the transmission bit based on determining that the first current value is a current value not supported by the transmission bit; wherein the first mapping value is different from the first current value; The second processor sends first information to the adapter according to the first mapping value, so that the adapter controls the output charging signal according to a predefined first charging curve.

2. The method according to claim 1, characterized in that: The first processor sends a predefined first mapping value to the second processor through the transmission bit based on determining that the first current value is a current value not supported by the transmission bit, including: The first processor sends the first mapping value to the second processor through the transmission bit based on determining that the first current value is a current value not supported by the transmission bit and that the current negative electrode potential of the battery of the terminal is greater than a potential threshold.

3. The method according to claim 1, characterized in that The second processor sends first information to the adapter according to the first mapping value, including: The second processor sends first information to the adapter, where the first information includes a first request, where the first request is used to request the adapter to output a maximum charging current corresponding to the first charging curve at the current voltage of the battery.

4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: The first processor maps the first current value to a second mapping value supported by the transmission bit based on determining that the first current value is a current value supported by the transmission bit; wherein the second mapping value is different from the first mapping value; The first processor transmits the second mapping value to the second processor through the transmission bit; The second processor de-maps the second mapped value to the first current value based on determining that the received second mapped value is not equal to the first mapped value; The second processor generates a control signal according to the first current value, and sends the control signal to the adapter, so that the adapter controls the output charging signal according to the control signal.

5. The method according to claim 4, characterized in that The mapping the first current value into a second mapping value supported by the transmission bit includes: The first current value is divided by a predefined first numerical value to obtain the second mapping value; wherein the first numerical value has the same unit as the first current value.

6. The method according to claim 4, characterized in that The first mapping value is a predefined second value.

7. The method according to claim 1, characterized in that The first processor determines a first current value, including: The first processor obtains a corresponding first maximum charging current value and a first minimum charging current value from a predetermined current limiting table according to the current voltage of the battery of the terminal; wherein the current limiting table includes maximum charging current values ​​and minimum charging current values ​​corresponding to different battery voltage levels; The first processor determines the first current value according to the first maximum charging current value, the first minimum charging current value, and a current negative electrode potential of the battery.

8. The method according to claim 7, characterized in that When the current negative electrode potential of the battery is greater than a potential threshold, the first current value is equal to the first maximum charging current value.

9. The method according to claim 8, characterized in that The method further comprises: The first processor queries whether the first current value is in a predetermined irregular current table; wherein the irregular current table records a maximum charging current value in the current limiting table that cannot be divided by a predefined first value, and the predefined first value has the same unit as the maximum charging current value; The first processor determines that the first current value is a current value not supported by the transmission bit based on determining that the first current value is in the irregular current table.

10. The method according to claim 1, characterized in that The method further comprises: The first processor determines that the first current value is a current value not supported by the transmission bit based on determining that the first current value cannot be divided by a predefined first value; wherein the predefined first value has the same unit as the first current value.

11. A terminal, characterized in that: The terminal comprises: a first processor and a second processor; wherein, The first processor is configured to determine a first current value, the first current value being used to control an output current of the adapter; The first processor is further configured to send a predefined first mapping value to the second processor through the transmission bit based on determining that the first current value is a current value not supported by the transmission bit; wherein the first mapping value is different from the first current value; The second processor is configured to send first information to the adapter according to the first mapping value, so that the adapter controls the output charging signal according to a predefined first charging curve.

12. 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 10 is implemented.