Charging control method and device, electronic equipment and storage medium
By adaptively selecting either the charge pump or PMIC path for charging in the event of a charge pump failure, the problem of charging instability caused by charge pump failure is solved, thereby improving charging efficiency and user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BEIJING XIAOMI MOBILE SOFTWARE CO LTD
- Filing Date
- 2022-12-05
- Publication Date
- 2026-07-21
AI Technical Summary
Existing multi-charge pump charging solutions are prone to problems such as charging chain interruption and sudden power reduction when the charge pump chip is damaged or the circuit fails, which reduces the performance of fast charging and the user experience.
In the event of failure among multiple charge pumps, by determining the number of faulty charge pumps and the target charging current currently required by the terminal, the charge pump path or PMIC path is adaptively selected as the target path for charging to ensure maximum charging efficiency.
It improves charging stability and user experience, ensuring that charging efficiency is not affected in the event of charge pump failure, thus enhancing charging stability and efficiency.
Smart Images

Figure CN115833313B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of charging technology, and in particular to a charging control method, apparatus, electronic device, and storage medium. Background Technology
[0002] With the development of charging and battery technologies, high-power charging capabilities have become standard in mobile devices and a key user requirement. Currently, charging mobile device batteries using multiple charge pumps (CPs) is the primary method for achieving high-power charging. However, CP charging solutions often require more sophisticated software detection and control mechanisms to ensure charging stability and performance.
[0003] In practical applications, if some charge pump chips are damaged or the charge pump circuit fails, it is often accompanied by adverse phenomena such as charging chain interruption and sudden power reduction, which greatly weakens the performance of fast charging and reduces the user experience. Summary of the Invention
[0004] To overcome the problems existing in related technologies, this disclosure provides a charging control method, apparatus, electronic device, and storage medium.
[0005] According to a first aspect of the present disclosure, a charging control method is provided, applied to a terminal, the terminal including a charge pump path and a power management integrated circuit (PMIC) path, the charge pump path including a plurality of charge pumps, the method including: determining the number of faulty charge pumps when it is determined that there is a faulty charge pump among the plurality of charge pumps; obtaining a target charging current currently required by the terminal; determining a target path from the charge pump path and the PMIC path according to the number of charge pumps and the target charging current; and charging the battery of the terminal through the target path according to the target charging current.
[0006] Optionally, determining the target path from the charge pump path and the PMIC path based on the number of charge pumps and the target charging current includes: if the number of charge pumps is greater than or equal to a preset number threshold, using the PMIC path as the target path; or, if the number of charge pumps is less than the preset number threshold, determining a first load current of the charge pump path based on the number of charge pumps, and determining the target path from the charge pump path and the PMIC path based on the first load current and the target charging current; wherein the first load current is the maximum current value that the charge pump path can provide when the number of charge pumps fails.
[0007] Optionally, determining the first load current of the charge pump path based on the number of charge pumps includes: obtaining a preset load current corresponding to each charge pump, a preset current buffer value of the charge pump path, and a preset cooperative current value of the PMIC path; the preset load current is the maximum load current value corresponding to the charge pump, and the preset cooperative current value is the maximum current value that the PMIC path can provide when the charge pump path and the PMIC path are working simultaneously; and determining the first load current based on the number of charge pumps, the preset load current, the preset current buffer value, and the preset cooperative current value.
[0008] Optionally, determining the target path from the charge pump path and the PMIC path based on the first load current and the target charging current includes: using the charge pump path as the target path when the target charging current is less than or equal to the first load current; or using the charge pump path and the PMIC path as the target path when the target charging current is greater than the first load current.
[0009] Optionally, if the target charging current is less than or equal to the first load current, charging the terminal's battery through the target path according to the target charging current includes: charging the terminal's battery through the charge pump path according to the target charging current.
[0010] Optionally, when the target charging current is greater than the first load current, charging the terminal's battery through the target path according to the target charging current includes: determining the sum of the currents of the first load current and the preset cooperative current value of the PMIC path; when the target charging current is less than or equal to the sum of the currents, determining the current difference between the target charging current and the first load current; charging the terminal's battery through the PMIC path according to the current difference, and charging the terminal's battery through the charge pump path according to the first load current.
[0011] Optionally, the method further includes: when the target charging current is greater than the current and value, charging the terminal's battery through the PMIC path according to the preset cooperative current value, and charging the terminal's battery through the charge pump path according to the first load current.
[0012] Optionally, when the number of charge pumps is greater than or equal to a preset number threshold, charging the terminal's battery through the target path according to the target charging current includes: obtaining a preset maximum current value of the PMIC path; the preset maximum current value is the maximum current value that the PMIC path can provide when working alone; and when the target charging current is less than or equal to the preset maximum current value, charging the terminal's battery through the PMIC path according to the target charging current.
[0013] Optionally, the method further includes: when the target charging current is greater than the preset maximum current value, charging the terminal's battery through the PMIC path according to the preset maximum current value.
[0014] Optionally, the method includes: if it is determined that no faulty charge pump is present among the plurality of charge pumps, obtaining a second load current of the charge pump path; wherein the second load current is the maximum current value that the charge pump path can provide when it is determined that no faulty charge pump is present among the plurality of charge pumps; and if the target charging current is less than or equal to the second load current, charging the battery of the terminal through the charge pump path according to the target charging current.
[0015] Optionally, the method further includes: if the target charging current is greater than the second load current, charging the battery of the terminal through the charge pump path according to the second load current.
[0016] Optionally, the presence of a faulty charge pump among the plurality of charge pumps can be determined by the following method: for each charge pump, determining whether the charge pump is in an abnormal state; if the charge pump is determined to be in an abnormal state, and if the number of times the charge pump is in an abnormal state within a preset time period is greater than or equal to a preset abnormal number threshold, then the presence of a faulty charge pump among the plurality of charge pumps can be determined.
[0017] Optionally, determining whether the charge pump is in an abnormal state includes: acquiring the enable state and protection state of the charge pump; and determining that the charge pump is in an abnormal state when the enable state indicates that the charge pump is currently in a disabled state and / or the protection state meets a preset abnormal protection state; wherein the preset abnormal protection state includes at least an over-temperature protection state, a low-temperature protection state, an over-voltage protection state, an over-current protection state, an under-voltage protection state, and an under-current protection state.
[0018] Optionally, the method further includes: obtaining the charging type of the terminal; determining the number of faulty charge pumps when it is determined that there is a faulty charge pump among the plurality of charge pumps includes: determining whether there is a faulty charge pump among the plurality of charge pumps when the charging type is fast charging; and determining the number of faulty charge pumps when it is determined that there is a faulty charge pump among the plurality of charge pumps.
[0019] According to a second aspect of the present disclosure, a charging control device is provided, applied to a terminal, the terminal including a charge pump path and a power management integrated circuit (PMIC) path, the charge pump path including a plurality of charge pumps, the device including: a first determining module configured to determine the number of faulty charge pumps if it is determined that a faulty charge pump exists among the plurality of charge pumps; an acquiring module configured to acquire a target charging current currently required by the terminal; a second determining module configured to determine a target path from the charge pump path and the PMIC path based on the number of charge pumps and the target charging current; and a charging module configured to charge the terminal's battery through the target path according to the target charging current.
[0020] Optionally, the second determining module is configured to, when the number of charge pumps is greater than or equal to a preset number threshold, use the PMIC path as the target path; or, when the number of charge pumps is less than the preset number threshold, determine a first load current of the charge pump path based on the number of charge pumps, and determine the target path from the charge pump path and the PMIC path based on the first load current and the target charging current; wherein, the first load current is the maximum current value that the charge pump path can provide when the number of charge pumps fails.
[0021] Optionally, the second determining module is configured to acquire a preset load current corresponding to each charge pump, a preset current buffer value of the charge pump path, and a preset cooperative current value of the PMIC path; the preset load current is the maximum load current value corresponding to the charge pump, and the preset cooperative current value is the maximum current value that the PMIC path can provide when the charge pump path and the PMIC path work simultaneously; and to determine the first load current based on the number of charge pumps, the preset load current, the preset current buffer value, and the preset cooperative current value.
[0022] Optionally, the second determining module is configured to use the charge pump path as the target path when the target charging current is less than or equal to the first load current; or, when the target charging current is greater than the first load current, use both the charge pump path and the PMIC path as the target path.
[0023] Optionally, if the target charging current is less than or equal to the first load current, the charging module is configured to charge the terminal's battery through the charge pump path according to the target charging current.
[0024] Optionally, when the target charging current is greater than the first load current, the charging module is configured to determine the sum of the currents of the first load current and the preset cooperative current value of the PMIC path; when the target charging current is less than or equal to the sum of the currents, determine the current difference between the target charging current and the first load current; charge the terminal's battery through the PMIC path according to the current difference, and charge the terminal's battery through the charge pump path according to the first load current.
[0025] Optionally, the charging module is further configured to charge the terminal's battery through the PMIC path according to the preset cooperative current value when the target charging current is greater than the current and value, and to charge the terminal's battery through the charge pump path according to the first load current.
[0026] Optionally, if the number of charge pumps is greater than or equal to a preset number threshold, the charging module is configured to acquire a preset maximum current value of the PMIC path; the preset maximum current value is the maximum current value that the PMIC path can provide when working alone; if the target charging current is less than or equal to the preset maximum current value, the terminal's battery is charged through the PMIC path according to the target charging current.
[0027] Optionally, the charging module is further configured to charge the terminal's battery through the PMIC path according to the preset maximum current value when the target charging current is greater than the preset maximum current value.
[0028] Optionally, the acquisition module is further configured to acquire a second load current of the charge pump path when it is determined that no faulty charge pump is present among the plurality of charge pumps; wherein the second load current is the maximum current value that the charge pump path can provide when it is determined that no faulty charge pump is present among the plurality of charge pumps; the charging module is configured to charge the battery of the terminal through the charge pump path according to the target charging current when the target charging current is less than or equal to the second load current.
[0029] Optionally, the charging module is configured to charge the terminal's battery through the charge pump path according to the second load current when the target charging current is greater than the second load current.
[0030] Optionally, the first determining module is configured to determine whether each charge pump is in an abnormal state for each charge pump; if it is determined that the charge pump is in an abnormal state, and if the number of times the charge pump is in an abnormal state within a preset time period is greater than or equal to a preset abnormal number threshold, then it is determined that there is a faulty charge pump among the multiple charge pumps.
[0031] Optionally, the first determining module is configured to acquire the enable state and protection state of the charge pump; and determine that the charge pump is in an abnormal state when the enable state indicates that the charge pump is currently in a disabled operating state and / or the protection state meets a preset abnormal protection state; wherein the preset abnormal protection state includes at least an over-temperature protection state, a low-temperature protection state, an over-voltage protection state, an over-current protection state, an under-voltage protection state, and an under-current protection state.
[0032] Optionally, the acquisition module is further configured to acquire the charging type of the terminal; the first determination module is configured to determine whether there is a faulty charge pump among the plurality of charge pumps when the charging type is fast charging; and to determine the number of faulty charge pumps when it is determined that there is a faulty charge pump among the plurality of charge pumps.
[0033] According to a third aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to implement the steps of the charging control method provided in the first aspect of the present disclosure when the executable instructions stored in the memory are invoked.
[0034] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided that stores computer program instructions thereon, which, when executed by a processor, implement the steps of the charging control method provided in the first aspect of the present disclosure.
[0035] The technical solutions provided by the embodiments of this disclosure may include the following beneficial effects:
[0036] First, if a faulty charge pump is identified among multiple charge pumps, the number of faulty charge pumps is determined. Second, the target charging current currently required by the terminal is obtained. Then, based on the number of charge pumps and the target charging current, a target path is determined from the charge pump path and the PMIC path. Finally, based on the target charging current, the terminal's battery is charged through the target path. This method enables the determination of a target path that provides maximum charging efficiency to the terminal under the current conditions, even when a faulty charge pump exists among multiple charge pumps, based on the number of faulty charge pumps and the terminal's current target charging current. The terminal's battery is then charged according to the target charging current and the target path. This adaptive determination of the target path based on the number of faulty charge pumps ensures that charging efficiency is not affected to a certain extent, improves the user's charging experience, and enhances charging stability.
[0037] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0038] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0039] Figure 1 This is a flowchart illustrating a charging control method according to an exemplary embodiment;
[0040] Figure 2 This is a flowchart illustrating another charging control method according to an exemplary embodiment;
[0041] Figure 3 This is a flowchart illustrating another charging control method according to an exemplary embodiment;
[0042] Figure 4 This is a flowchart illustrating a charging control method according to an exemplary embodiment;
[0043] Figure 5 This is a block diagram illustrating a charging control device according to an exemplary embodiment;
[0044] Figure 6 This is a block diagram illustrating an electronic device according to an exemplary embodiment. Detailed Implementation
[0045] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.
[0046] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily construed as referring to a specific order or sequence. Furthermore, in the description with reference to the accompanying drawings, the same reference numerals in different drawings denote the same elements.
[0047] In the description of this disclosure, unless otherwise stated, "and / or" is a term used to describe the relationship between related objects, indicating that there can be three relationships, for example, A and / or B, which can represent: A alone, A and B at the same time, and B alone, where A and B can be singular or plural.
[0048] Before introducing the charging control method, apparatus, electronic device, and storage medium provided in this disclosure, the application scenarios involved in the various embodiments of this disclosure will first be introduced. Currently, charging the battery of a mobile terminal using multiple charge pumps is the main way to achieve high-power charging. However, multiple charge pump charging schemes often require more software detection and control mechanisms to ensure charging stability and performance.
[0049] In practical applications, the connection modes between multiple charge pumps are generally divided into master-slave mode and multi-standalone mode. In master-slave mode, there is a subordinate relationship between charge pumps, meaning the enable state of a slave charge pump is controlled by the master charge pump. If the master charge pump or its circuit malfunctions, the slave charge pumps will also be affected and unable to function properly. In multi-standalone mode, each charge pump operates independently, meaning the enable state of each charge pump is not affected by the others. However, currently, for multi-charge pumps in multi-standalone mode, if some charge pump chips are damaged or the charge pump circuit fails, it can still lead to charging chain interruptions, sudden power drops, and other adverse phenomena, significantly weakening fast charging performance and reducing user experience. Existing multi-charge pump charging solutions, when some charge pump chips are damaged or the charge pump circuit fails, typically disconnect the charge pump circuit directly and switch to the PMIC (Power Management IC) circuit for charging, or simply disconnect charging altogether. This will affect the current charging efficiency, resulting in a poor user experience.
[0050] Therefore, to solve the above-mentioned technical problems, the present invention provides a charging control method, apparatus, electronic device, and storage medium. This method, when a faulty charge pump exists among multiple charge pumps, determines a target path that provides the terminal with maximum charging efficiency under the current condition, based on the number of faulty charge pumps and the target charging current currently required by the terminal. Then, it charges the terminal's battery according to the target charging current and the target path. In this way, the corresponding target path can be adaptively determined according to the number of faulty charge pumps, thereby ensuring that charging efficiency is not affected to a certain extent, improving the user's charging experience, and enhancing charging stability.
[0051] The specific embodiments of the present invention will now be described in detail with reference to the accompanying drawings.
[0052] Figure 1 This is a flowchart illustrating a charging control method according to an exemplary embodiment. The method is applied to a terminal, which includes a charge pump path and a power management integrated circuit (PMIC) path. The charge pump path includes multiple charge pumps. The terminal can be, for example, a smartphone, tablet, smart TV, smartwatch, PDA (Personal Digital Assistant), portable computer, or other mobile terminal; it can also be a smart home device, such as a robot vacuum cleaner, air purifier, air conditioner, light bulb, speaker, robot, etc. This disclosure does not limit the scope of the device. Figure 1 As shown, the method may include the following steps:
[0053] In step S101, if it is determined that there is a faulty charge pump among the multiple charge pumps, the number of faulty charge pumps is determined.
[0054] In this embodiment, the connection between the multiple charge pumps is discrete, so that each charge pump can work independently, which makes it easy for the non-faulty charge pumps to work normally even if a charge pump fails.
[0055] In this step, the enable and protection states of each of the multiple charge pumps can be monitored, and the presence of a faulty charge pump among the multiple charge pumps can be determined based on the enable and protection states of each charge pump.
[0056] For example, in practical applications, charge pumps may experience abnormal states during operation, but some of these abnormal states can recover on their own within a certain time. Therefore, considering this situation, in one possible implementation, the presence of a faulty charge pump among multiple charge pumps can be determined as follows: First, for each charge pump, determine whether it is in an abnormal state; then, if the number of times the charge pump is in an abnormal state within a preset time period is greater than or equal to a preset abnormal state count threshold, then it can be determined that a faulty charge pump exists among multiple charge pumps. In other words, if the cumulative count of abnormal states of a charge pump exceeds the preset abnormal state count threshold, it can be determined that the abnormal state is unrecoverable to a certain extent, thus confirming that the charge pump has failed. In another possible implementation, first, for each charge pump, determine whether it is in an abnormal state. Then, if the abnormal time of the charge pump in this abnormal state is greater than or equal to a preset abnormal time, then it can be determined that a faulty charge pump exists among multiple charge pumps. In other words, if the charge pump remains in this abnormal state for an extended period, it can be determined that the abnormal state is unrecoverable to some extent, thus confirming that the charge pump has malfunctioned.
[0057] Specifically, whether the charge pump is in an abnormal state can be determined as follows: First, the enable and protection states of the charge pump can be obtained. Then, if the enable state indicates that the charge pump is currently in a disabled state and / or the protection state meets the preset abnormal protection state, the charge pump is determined to be in an abnormal state. In practical applications, the enable state of the charge pump is used to characterize whether the charge pump can currently operate normally. For example, if the enable state of the charge pump is valid, it indicates that the charge pump is in a normal operating state. If the enable state of the charge pump is invalid, it indicates that the charge pump is in a disabled state. Whether the enable state is valid is often reflected by the enable signal of the charge pump. For example, if the enable signal is 1, it can be determined that the enable state of the charge pump is valid; if the enable signal is 0, it can be determined that the enable state of the charge pump is invalid. The preset abnormal protection state includes at least one or more of the following: over-temperature protection state, low-temperature protection state, over-voltage protection state, over-current protection state, under-voltage protection state, and under-current protection state.
[0058] In step S102, the target charging current currently required by the terminal is obtained.
[0059] The target charging current is the current that can meet the charging requirements in the current state of the terminal, and it can be determined based on the current state of the terminal (such as the heat of the battery, the usage scenario of the terminal (such as in a game scenario), the heat of the screen, the CPU load, etc.).
[0060] In step S103, a target path is determined from the charge pump path and the PMIC path based on the number of charge pumps and the target charging current.
[0061] In some embodiments, different numbers of charge pumps mean different degrees of failure in the current charge pump path. Therefore, corresponding fault levels (e.g., no fault, minor fault, medium fault, and full fault) can be set according to different fault levels, and corresponding target paths can be determined for different fault levels.
[0062] For example, when the number of charge pumps is greater than or equal to a preset quantity threshold, the PMIC path is designated as the target path. This preset quantity threshold can be, for example, but not limited to, the total number of charge pumps. That is, if the number of faulty charge pumps among the current multiple charge pumps is greater than or equal to the total number, the current fault level can be determined as a full fault. In other words, there are no working charge pumps in the current charge pump path, and in this case, the PMIC path can be designated as the target path. Alternatively, the preset quantity threshold can be set to any value less than the total number of multiple charge pumps; this disclosure does not specifically limit this. When the number of charge pumps is greater than or equal to the preset quantity threshold, it can be determined that the current charge pump path is not working properly, and the PMIC path is designated as the target path.
[0063] Furthermore, if the number of charge pumps is less than the preset threshold, the current fault level can be classified as a minor or medium fault. That is, some charge pumps in the current charge pump path are functioning normally. In this case, the first load current of the charge pump path can be determined based on the number of charge pumps. This first load current is the maximum current value that the charge pump path can provide if a certain number of charge pumps fail. Furthermore, based on the first load current and the target charging current, the target path is determined from the charge pump path and the PMIC path.
[0064] Specifically, determining the first load current of the charge pump path based on the number of charge pumps may include the following steps:
[0065] S1, obtain the preset load current corresponding to each charge pump, the preset current buffer value of the charge pump path, and the preset cooperative current value of the PMIC path.
[0066] Wherein, the preset load current is the maximum load current value corresponding to the charge pump, the preset current buffer value is the current value set in advance to avoid overcurrent phenomenon of the charge pump, and the preset cooperative current value is the maximum current value that the PMIC path can provide when the charge pump path and the PMIC path work simultaneously.
[0067] S2, determine the first load current based on the number of charge pumps, the preset load current, the preset current buffer value, and the preset cooperative current value.
[0068] For example, based on the number of charge pumps, the preset load current, the preset current buffer value, and the preset cooperative current value, the first load current can be determined using the following formula:
[0069] I1=N r *I single -I hy -N e *I p (1)
[0070] Where I1 represents the first load current, N r I represents the number of remaining charge pumps that have not failed, i.e., the number of normal charge pumps. simgle Indicates the preset load current, I hy N represents the preset current buffer value. e I represents the number of charge pumps that failed. p This indicates the preset cooperative current value.
[0071] Furthermore, since the first load current is the maximum current that the charge pump path can provide in the event of a failure of the current number of charge pumps, and the target charging current is the charging current currently required by the terminal, if the target charging current required by the terminal is less than or equal to the maximum current that the current charge pump path can provide, it indicates that the current charge pump path can meet the target charging current required by the terminal, and the terminal's battery can be charged through the charge pump path. That is, when the target charging current is less than or equal to the first load current, the charge pump path can be used as the target path. If the target charging current required by the terminal is greater than the maximum current that the current charge pump path can provide, it indicates that the current charge pump path cannot fully meet the target charging current required by the terminal. In this case, to ensure charging efficiency as much as possible, the terminal's battery can be charged through both the charge pump path and the PMIC path. That is, when the target charging current is greater than the first load current, the charge pump path and the PMIC path are used as the target path.
[0072] In step S104, the battery of the terminal is charged through the target path according to the target charging current.
[0073] After determining the target path through step S103, the terminal's battery can be further charged through the target path according to the target charging current. Specifically, if the target charging current is less than or equal to the maximum current value that the target path can provide, the terminal's battery can be charged directly through the target path according to the target charging current. If the target charging current is greater than the maximum current value that the target path can provide, it indicates that the current target path cannot meet the terminal's required target charging current. To ensure that the terminal's current charging is not affected, the terminal's battery can be charged through the target path according to the maximum current value that the target path can provide.
[0074] By employing the above method, even when multiple charge pumps have failed, a target path that provides the maximum charging efficiency to the terminal under the current conditions can be determined based on the number of failed charge pumps and the target charging current required by the terminal. The terminal's battery is then charged according to the target charging current and this target path. This adaptive determination of the target path based on the number of failed charge pumps ensures that charging efficiency remains unaffected to a certain extent, improving the user's charging experience and enhancing charging stability.
[0075] It is understandable that in practical applications, the charging efficiency of the charge pump path is higher than that of the PMIC path. That is, in real-world scenarios, the charge pump path is typically used only when high-power charging is required (such as fast charging). Therefore, in some embodiments, such as... Figure 2 As shown, the method may further include the following steps:
[0076] In step S105, the charging type of the terminal is obtained.
[0077] The terminal's charging type may include, for example, fast charging and full charging. The terminal's charging type can be determined by obtaining the charging protocol of the charging input terminal through the charging interface and determining the current charging type of the terminal based on the charging protocol.
[0078] Accordingly, in step S101 above, if it is determined that a faulty charge pump exists among the multiple charge pumps, determining the number of faulty charge pumps includes:
[0079] In step S1011, if the charging type is fast charging, it is determined whether there is a faulty charge pump among the multiple charge pumps.
[0080] For example, if the charging protocol is identified as a fast charging protocol, then the current terminal's charging type can be determined to be fast charging.
[0081] In step S1012, if it is determined that there is a faulty charge pump among the multiple charge pumps, the number of faulty charge pumps is determined.
[0082] The following provides a more detailed explanation of step S104 based on the number of charge pumps that malfunctioned.
[0083] In one possible implementation, when the number of charge pumps is greater than or equal to a preset threshold, the target path is the PMIC path. In this case, the charge pump path can be turned off, the PMIC path can be turned on, and the target charging current can be compared with the maximum current value that the target path can provide. In this implementation, the maximum current value that the target path can provide is the maximum current value that the PMIC path can provide when operating alone. For example, firstly, the preset maximum current value of the PMIC path can be obtained. This preset maximum current value is the maximum current value when the PMIC path operates alone. If the target charging current is less than or equal to the preset maximum current value, it indicates that the current PMIC path can meet the target charging current required by the terminal. Then, the terminal's battery can be charged through the PMIC path according to the target charging current. That is, the terminal's battery is charged through the PMIC path according to the target charging current. If the target charging current is greater than the preset maximum current value, it indicates that the current PMIC path cannot meet the target charging current required by the terminal. Then, to ensure that the current charging of the terminal is not affected, the terminal's battery can be charged through the PMIC path according to the preset maximum current value. That is, the terminal's battery is charged through the PMIC path according to the preset maximum current value.
[0084] In another possible implementation, if the number of charge pumps is less than a preset threshold, it can be determined that some charge pumps have failed. In this case, the failed charge pumps can be shut down, and the target charging current is compared with the maximum current value that the target path can provide. In this implementation, the maximum current value that the target path can provide is the sum of the maximum current that the charge pump path can provide when several charge pumps fail and the preset cooperative current value of the PMIC path. It is understood that since the charging efficiency of the charge pump path is higher than that of the PMIC path, in this embodiment, to ensure the current charging efficiency of the terminal as much as possible, the terminal's battery will be charged preferentially through the charge pump path. Therefore, this implementation will be described in detail from the following three scenarios:
[0085] Scenario 1: If the target charging current is less than or equal to the first load current, it can be determined that the first load current provided by the current charge pump path can meet the target charging current required by the terminal. Therefore, to further ensure the charging efficiency of the terminal, the PMIC path can be further shut down, and the charge pump that has not failed in the charge pump path can be used as the target path. The terminal's battery can then be charged through this charge pump path according to the target charging current. Furthermore, the target charging current can be allocated to each charge pump according to parameters such as the loss and impedance of the charge pump that has not failed, and then the terminal's battery can be charged through the charge pump that has not failed, according to the target charging current. It is understandable that as the usage time of the charge pump gradually increases, the charge pump will experience varying degrees of loss. The higher the degree of loss, the lower the efficiency of the charge pump, that is, the lower the maximum current value that the charge pump can provide. Furthermore, different impedances of the charge pumps also mean different levels of current resistance. Therefore, a corresponding current limit for the charge pump can be preset according to the degree of loss and impedance of the charge pump, that is, the maximum current that the charge pump can provide under the current degree of loss and impedance. In some embodiments, the maximum current that each charge pump can provide can be determined based on the loss level and impedance of the currently unfailed charge pumps. The target charging current is then allocated to each charge pump according to its maximum capacity. For example, if multiple charge pumps have the same loss and impedance, the target charging current can be evenly distributed among them.
[0086] Scenario 2: If the target charging current is greater than the first load current, it indicates that the first load current provided by the current charge pump path cannot fully meet the target charging current required by the terminal. In this case, the sum of the first load current and the preset cooperative current value of the PMIC path can be further determined, that is, the sum of the maximum current that the charge pump path can provide and the maximum current that the PMIC path can provide. If the target charging current is less than or equal to this sum of currents, it can be determined that the target charging current required by the terminal can be met when the charge pump path and the PMIC work together. Further, the current difference between the target charging current and the first load current can be determined. Then, based on the current difference, the terminal's battery is charged through the PMIC path, and based on the first load current, the terminal's battery is charged through the charge pump path.
[0087] Scenario 3: If the target charging current exceeds this sum of currents, it indicates that the current target path (i.e., when the charge pump path and PMIC work together) cannot meet the target charging current required by the terminal. To ensure that the terminal's charging is not affected, the terminal's battery can be charged through the PMIC path according to the preset cooperative current value, and the terminal's battery can be charged through the charge pump path according to the first load current. That is, the terminal's battery is charged through the PMIC path according to the maximum current that the PMIC path can provide (i.e., the preset cooperative current value). The terminal's battery is also charged through the charge pump path according to the maximum current that the malfunctioning charge pump in the charge pump path can provide (i.e., the first load current). Similarly, the first load current can be distributed to each charge pump according to the losses, impedance, and other parameters of the malfunctioning charge pumps, and then the terminal's battery is charged through the malfunctioning charge pumps according to the first load current.
[0088] In another possible implementation, such as Figure 3 As shown, the method may further include the following steps:
[0089] In step S106, if it is determined that there is no faulty charge pump among the plurality of charge pumps, the second load current of the charge pump path is obtained.
[0090] Understandably, if each charge pump is not in an abnormal state, it can be determined that there is no faulty charge pump among the multiple charge pumps. Alternatively, if a charge pump is determined to be in an abnormal state, and the number of times the charge pump is in an abnormal state within a preset time period is less than a preset abnormal number threshold, and / or the abnormal time of the charge pump in the abnormal state is less than a preset abnormal time, it can be determined that there is no faulty charge pump among the multiple charge pumps. In this step, if it is determined that there is no faulty charge pump among the multiple charge pumps, it can be determined that the current charge pump path is working normally. At this time, the PMIC path can be turned off, that is, the target path is the charge pump path. And further compare the target charging current with the maximum current that the charge pump path can provide. Specifically, firstly, the second load current of the charge pump path can be obtained. Wherein, the second load current is the maximum current value that the charge pump path can provide when it is determined that there is no faulty charge pump among the multiple charge pumps.
[0091] In step S107, if the target charging current is less than or equal to the second load current, the battery of the terminal is charged through the charge pump path according to the target charging current.
[0092] In this step, if the target charging current is less than or equal to the second load current, it indicates that the current charge pump path can meet the target charging current required by the terminal. At this time, the terminal's battery can be charged through the charge pump path according to the target charging current. Similarly, the target charging current can be allocated to each charge pump according to parameters such as loss and impedance of each charge pump in the current charge pump path, and then the terminal's battery can be charged through the charge pump path according to the target charging current.
[0093] The second load current can be determined based on the preset load current corresponding to each charge pump and the preset current buffer value of the charge pump path. For example, the second load current can be determined using the following formula:
[0094] I2=N*I single -I hy (2)
[0095] Where I2 represents the second load current, N represents the total number of charge pumps in the charge pump path, and I single Indicates the preset load current, I hy This indicates the preset current buffer value.
[0096] Furthermore, if the target charging current exceeds the second load current, it indicates that the current charge pump path cannot fully meet the target charging current required by the terminal. To ensure that the terminal's charging is not affected, the terminal's battery can be charged through the charge pump path according to the second load current. That is, the terminal's battery can be charged through the charge pump path according to the maximum current that the charge pump path can provide.
[0097] To facilitate understanding, the above method steps are illustrated below with an example, assuming the terminal includes a charge pump path and a PMIC path, and the charge pump path includes two charge pumps (i.e., N=2). The preset load current I corresponding to each charge pump is... single =6A, the preset current buffer value I of the charge pump path hy =0.1A, the preset cooperative current value I of the PMIC path p =0.5A, the preset maximum current value I of the PMIC path pmax =3A.
[0098] After the standard charger is connected to the terminal, if the terminal recognizes that the current charging type is fast charging, the enable and protection states of each charge pump are monitored to determine if any of the multiple charge pumps are faulty. If it is determined that one charge pump is faulty and cannot function properly, the faulty charge pump can be turned off, and the number N of charge pumps currently in normal operation can be obtained. r=N-1=1. Furthermore, the first load current I1 of the current charge pump path can be determined as N. r *I single -I hy -N e *I p =5.4A, the maximum current value that the PMIC path can provide, which is also the preset cooperative current value I. p =0.5A.
[0099] If the target charging current I required by the terminal at this time fcc =8A, then by comparing I fcc 、I1、I p We can get I fcc >I1+I p In other words, the current target path (i.e., when the charge pump path and PMIC work together) cannot meet the target charging current required by the terminal. In order to ensure that the charging of the terminal is not affected, a current of 0.5A can be allocated to the PMIC path and a current of 5.4A can be allocated to the charge pump path, so that the terminal's battery can be charged together through the PMIC path and the charge pump path.
[0100] Additionally, if the target charging current required by the terminal changes to I due to temperature rise during use... fcc =4A, then by comparison we know that I fcc <I1. At this point, the PMIC path can be turned off, and the charge pump path current can be set to 4A, thereby charging the terminal's battery through the charge pump path.
[0101] By employing the above method, even when multiple charge pumps have failed, a target path that provides the maximum charging efficiency to the terminal under the current conditions can be determined based on the number of failed charge pumps and the target charging current required by the terminal. The terminal's battery is then charged according to the target charging current and this target path. This adaptive determination of the target path based on the number of failed charge pumps ensures that charging efficiency remains unaffected to a certain extent, improving the user's charging experience and enhancing charging stability.
[0102] Figure 4 This is a flowchart illustrating a charging control method according to an exemplary embodiment, such as... Figure 4 As shown, the method may include the following steps:
[0103] In step S201, the charging type of the terminal and the target charging current currently required by the terminal are obtained.
[0104] In step S202, if the charging type is determined to be fast charging, it is determined whether there is a faulty charge pump among the multiple charge pumps.
[0105] If it is determined that a faulty charge pump exists among the multiple charge pumps, proceed to step S203;
[0106] If it is determined that there is no faulty charge pump among the multiple charge pumps, proceed to step S204.
[0107] This can be achieved by monitoring the enable and protection states of each of the multiple charge pumps, and then determining whether any charge pumps have malfunctioned based on their enable and protection states. For specific implementation details, please refer to [reference needed]. Figure 1 The implementation details are omitted here.
[0108] In step S203, it is determined whether the number of faulty charge pumps is greater than or equal to a preset number threshold.
[0109] If it is determined that the number of charge pumps is greater than or equal to a preset number threshold, step S208 is executed;
[0110] If it is determined that the number of charge pumps is less than a preset number threshold, step S209 is executed.
[0111] In step S204, the second load current of the charge pump path is obtained.
[0112] The second load current is the maximum current value that the charge pump path can provide when it is determined that there is no faulty charge pump among the plurality of charge pumps.
[0113] In step S205, it is determined whether the target charging current is less than or equal to the second load current.
[0114] If it is determined that the target charging current is less than or equal to the second load current, step S206 is executed;
[0115] If it is determined that the target charging current is greater than the second load current, step S207 is executed.
[0116] In step S206, the battery of the terminal is charged through the charge pump path according to the target charging current.
[0117] In step S207, the battery of the terminal is charged through the charge pump path according to the second load current.
[0118] In step S208, the preset maximum current value of the PMIC path is obtained.
[0119] The preset maximum current value is the maximum current value when the PMIC path is working alone.
[0120] In step S209, the first load current of the charge pump path is determined based on the number of charge pumps.
[0121] The first load current can be determined based on the number of charge pumps, the preset load current, the preset current buffer value, and the preset cooperative current value. Specifically, the first load current can be calculated using formula (1).
[0122] In step S210, it is determined whether the target charging current is less than or equal to the preset maximum current value.
[0123] If the target charging current is determined to be less than or equal to the preset maximum current value, step S211 is executed;
[0124] If the target charging current is determined to be greater than the preset maximum current value, step S212 is executed.
[0125] In step S211, the battery of the terminal is charged through the PMIC path according to the target charging current.
[0126] In step S212, the terminal's battery is charged through the PMIC path according to the preset maximum current value.
[0127] In step S213, it is determined whether the target charging current is less than or equal to the first load current.
[0128] If it is determined that the target charging current is less than or equal to the first load current, step S214 is executed;
[0129] If it is determined that the target charging current is greater than the first load current, step S215 is executed.
[0130] In step S214, the battery of the terminal is charged through the charge pump path according to the target charging current.
[0131] In step S215, the current and value of the first load current and the preset cooperative current value of the PMIC path are determined.
[0132] In step S216, it is determined whether the target charging current is less than or equal to the current and value.
[0133] If it is determined that the target charging current is less than or equal to the sum of the current and the value, step S217 is executed;
[0134] If it is determined that the target charging current is greater than the sum of the current and the value, step S218 is executed.
[0135] In step S217, the current difference between the target charging current and the first load current is determined, and the battery of the terminal is charged through the PMIC path according to the current difference, and the battery of the terminal is charged through the charge pump path according to the first load current.
[0136] In step S218, the terminal's battery is charged through the PMIC path according to the preset cooperative current value, and the terminal's battery is charged through the charge pump path according to the first load current.
[0137] By employing the above method, even when multiple charge pumps have failed, a target path that provides the maximum charging efficiency to the terminal under the current conditions can be determined based on the number of failed charge pumps and the target charging current required by the terminal. The terminal's battery is then charged according to the target charging current and this target path. This adaptive determination of the target path based on the number of failed charge pumps ensures that charging efficiency remains unaffected to a certain extent, improving the user's charging experience and enhancing charging stability.
[0138] Figure 5 This is a block diagram illustrating a charging control device according to an exemplary embodiment, applied to a terminal. The terminal includes a charge pump path and a power management integrated circuit (PMIC) path. The charge pump path includes multiple charge pumps, such as... Figure 5 As shown, the device 300 includes:
[0139] The first determining module 301 is configured to determine the number of faulty charge pumps when it is determined that there is a faulty charge pump among the plurality of charge pumps.
[0140] The acquisition module 302 is configured to acquire the target charging current currently required by the terminal;
[0141] The second determining module 303 is configured to determine a target path from the charge pump path and the PMIC path based on the number of charge pumps and the target charging current.
[0142] The charging module 304 is configured to charge the battery of the terminal through the target path according to the target charging current.
[0143] Optionally, the second determining module 303 is configured to, when the number of charge pumps is greater than or equal to a preset number threshold, use the PMIC path as the target path; or, when the number of charge pumps is less than the preset number threshold, determine a first load current of the charge pump path based on the number of charge pumps, and determine the target path from the charge pump path and the PMIC path based on the first load current and the target charging current; wherein the first load current is the maximum current value that the charge pump path can provide when the number of charge pumps fails.
[0144] Optionally, the second determining module 303 is configured to acquire a preset load current corresponding to each charge pump, a preset current buffer value of the charge pump path, and a preset cooperative current value of the PMIC path; the preset load current is the maximum load current value corresponding to the charge pump, and the preset cooperative current value is the maximum current value that the PMIC path can provide when the charge pump path and the PMIC path work simultaneously; and determine the first load current based on the number of charge pumps, the preset load current, the preset current buffer value, and the preset cooperative current value.
[0145] Optionally, the second determining module 303 is configured to use the charge pump path as the target path when the target charging current is less than or equal to the first load current; or, when the target charging current is greater than the first load current, use the charge pump path and the PMIC path as the target path.
[0146] Optionally, if the target charging current is less than or equal to the first load current, the charging module 304 is configured to charge the battery of the terminal through the charge pump path according to the target charging current.
[0147] Optionally, when the target charging current is greater than the first load current, the charging module 304 is configured to determine the sum of the currents of the first load current and the preset cooperative current value of the PMIC path; when the target charging current is less than or equal to the sum of the currents, determine the current difference between the target charging current and the first load current; charge the battery of the terminal through the PMIC path according to the current difference, and charge the battery of the terminal through the charge pump path according to the first load current.
[0148] Optionally, the charging module 304 is further configured to charge the terminal's battery through the PMIC path according to the preset cooperative current value when the target charging current is greater than the current and value, and to charge the terminal's battery through the charge pump path according to the first load current.
[0149] Optionally, if the number of charge pumps is greater than or equal to a preset number threshold, the charging module 304 is configured to obtain a preset maximum current value of the PMIC path; the preset maximum current value is the maximum current value that the PMIC path can provide when it works alone; if the target charging current is less than or equal to the preset maximum current value, the battery of the terminal is charged through the PMIC path according to the target charging current.
[0150] Optionally, the charging module 304 is further configured to charge the terminal's battery through the PMIC path according to the preset maximum current value when the target charging current is greater than the preset maximum current value.
[0151] Optionally, the acquisition module 302 is further configured to acquire a second load current of the charge pump path when it is determined that no faulty charge pump is found among the plurality of charge pumps; wherein the second load current is the maximum current value that the charge pump path can provide when it is determined that no faulty charge pump is found among the plurality of charge pumps.
[0152] The charging module 304 is configured to charge the battery of the terminal through the charge pump path according to the target charging current when the target charging current is less than or equal to the second load current.
[0153] Optionally, the charging module 304 is configured to charge the battery of the terminal through the charge pump path according to the second load current when the target charging current is greater than the second load current.
[0154] Optionally, the first determining module 301 is configured to determine whether each charge pump is in an abnormal state for each charge pump; if it is determined that the charge pump is in an abnormal state, and if the number of times the charge pump is in an abnormal state within a preset time period is greater than or equal to a preset abnormal number threshold, then it is determined that there is a faulty charge pump among the multiple charge pumps.
[0155] Optionally, the first determining module 301 is configured to acquire the enable state and protection state of the charge pump; if the enable state indicates that the charge pump is currently in a disabled operating state and / or the protection state meets the preset abnormal protection state, the charge pump is determined to be in an abnormal state; wherein the preset abnormal protection state includes at least over-temperature protection state, low-temperature protection state, over-voltage protection state, over-current protection state, under-voltage protection state and under-current protection state.
[0156] Optionally, the acquisition module 302 is also configured to acquire the charging type of the terminal;
[0157] The first determining module 301 is configured to, when the charging type is fast charging, determine whether there is a faulty charge pump among the multiple charge pumps; and, if it is determined that there is a faulty charge pump among the multiple charge pumps, determine the number of faulty charge pumps.
[0158] By employing the aforementioned device, even when multiple charge pumps malfunction, the system can determine the target path that provides the terminal with the maximum charging efficiency under the current conditions, based on the number of malfunctioning charge pumps and the target charging current required by the terminal. Then, it charges the terminal's battery according to the target charging current and the target path. This adaptive determination of the appropriate target path based on the number of malfunctioning charge pumps ensures that charging efficiency remains unaffected to a certain extent, improving the user's charging experience and enhancing charging stability.
[0159] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.
[0160] This disclosure also provides a computer-readable storage medium having stored thereon computer program instructions that, when executed by a processor, implement the steps of the charging control method provided in this disclosure.
[0161] Figure 6 This is a block diagram illustrating an electronic device 400 according to an exemplary embodiment. For example, the electronic device 400 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.
[0162] Reference Figure 6 The electronic device 400 may include one or more of the following components: processing component 402, memory 404, power supply component 406, multimedia component 408, audio component 410, input / output interface 412, sensor component 414, and communication component 416.
[0163] Processing component 402 typically controls the overall operation of electronic device 400, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 402 may include one or more processors 420 to execute instructions to complete all or part of the steps of the charging control method described above. Furthermore, processing component 402 may include one or more modules to facilitate interaction between processing component 402 and other components. For example, processing component 402 may include a multimedia module to facilitate interaction between multimedia component 408 and processing component 402.
[0164] Memory 404 is configured to store various types of data to support the operation of electronic device 400. Examples of this data include instructions for any application or method operating on electronic device 400, contact data, phonebook data, messages, pictures, videos, etc. Memory 404 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0165] Power supply component 406 provides power to various components of electronic device 400. Power supply component 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 400.
[0166] Multimedia component 408 includes a screen that provides an output interface between the electronic device 400 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 408 includes a front-facing camera and / or a rear-facing camera. When the electronic device 400 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0167] Audio component 410 is configured to output and / or input audio signals. For example, audio component 410 includes a microphone (MIC) configured to receive external audio signals when electronic device 400 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 404 or transmitted via communication component 416. In some embodiments, audio component 410 also includes a speaker for outputting audio signals.
[0168] Input / output interface 412 provides an interface between processing component 402 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, start buttons, and lock buttons.
[0169] Sensor assembly 414 includes one or more sensors for providing state assessments of various aspects of electronic device 400. For example, sensor assembly 414 may detect the on / off state of electronic device 400, the relative positioning of components such as the display and keypad of electronic device 400, changes in position of electronic device 400 or a component of electronic device 400, the presence or absence of user contact with electronic device 400, orientation or acceleration / deceleration of electronic device 400, and temperature changes of electronic device 400. Sensor assembly 414 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 414 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 414 may also include an accelerometer, gyroscope, magnetometer, pressure sensor, or temperature sensor.
[0170] Communication component 416 is configured to facilitate wired or wireless communication between electronic device 400 and other devices. Electronic device 400 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 416 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 416 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0171] In an exemplary embodiment, the electronic device 400 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above-described charging control method.
[0172] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 404 including instructions, which can be executed by a processor 420 of an electronic device 400 to complete the charging control method described above. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0173] In another exemplary embodiment, a computer program product is also provided, the computer program product comprising a computer program executable by a programmable device, the computer program having a code portion for performing the above-described charging control method when executed by the programmable device.
[0174] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of this disclosure. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.
[0175] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.
Claims
1. A charging control method, characterized in that, Applied to a terminal, the terminal including a charge pump path and a power management integrated circuit (PMIC) path, the charge pump path including multiple charge pumps, the method including: If it is determined that a faulty charge pump exists among the plurality of charge pumps, the number of faulty charge pumps shall be determined. Obtain the target charging current currently required by the terminal; The target path is determined from the charge pump path and the PMIC path based on the number of charge pumps and the target charging current; The terminal's battery is charged through the target path according to the target charging current.
2. The method according to claim 1, characterized in that, The step of determining the target path from the charge pump path and the PMIC path based on the number of charge pumps and the target charging current includes: If the number of charge pumps is greater than or equal to a preset threshold, the PMIC path is used as the target path; or, If the number of charge pumps is less than the preset number threshold, the first load current of the charge pump path is determined according to the number of charge pumps, and the target path is determined from the charge pump path and the PMIC path according to the first load current and the target charging current. Wherein, the first load current is the maximum current value that the charge pump path can provide when the number of charge pumps fails.
3. The method according to claim 2, characterized in that, Determining the first load current of the charge pump path based on the number of charge pumps includes: Obtain the preset load current corresponding to each charge pump, the preset current buffer value of the charge pump path, and the preset cooperative current value of the PMIC path; the preset load current is the maximum load current value corresponding to the charge pump, and the preset cooperative current value is the maximum current value that the PMIC path can provide when the charge pump path and the PMIC path work simultaneously. The first load current is determined based on the number of charge pumps, the preset load current, the preset current buffer value, and the preset cooperative current value.
4. The method according to claim 2, characterized in that, Determining the target path from the charge pump path and the PMIC path based on the first load current and the target charging current includes: If the target charging current is less than or equal to the first load current, the charge pump path is used as the target path; or, If the target charging current is greater than the first load current, the charge pump path and the PMIC path are used as the target path.
5. The method according to claim 4, characterized in that, When the target charging current is less than or equal to the first load current, charging the terminal's battery through the target path according to the target charging current includes: The terminal's battery is charged through the charge pump path according to the target charging current.
6. The method according to claim 4, characterized in that, When the target charging current is greater than the first load current, charging the terminal's battery through the target path according to the target charging current includes: Determine the current and value of the first load current and the preset cooperative current value of the PMIC path; If the target charging current is less than or equal to the sum of currents, determine the current difference between the target charging current and the first load current. Based on the current difference, the terminal's battery is charged through the PMIC path, and based on the first load current, the terminal's battery is charged through the charge pump path.
7. The method according to claim 6, characterized in that, The method further includes: When the target charging current is greater than the current and value, the terminal's battery is charged through the PMIC path according to the preset cooperative current value, and the terminal's battery is charged through the charge pump path according to the first load current.
8. The method according to claim 2, characterized in that, When the number of charge pumps is greater than or equal to a preset threshold, charging the terminal's battery through the target path according to the target charging current includes: Obtain the preset maximum current value of the PMIC path; the preset maximum current value is the maximum current value that the PMIC path can provide when it works alone. If the target charging current is less than or equal to the preset maximum current value, the terminal's battery is charged through the PMIC path according to the target charging current.
9. The method according to claim 8, characterized in that, The method further includes: If the target charging current is greater than the preset maximum current value, the terminal's battery is charged through the PMIC path according to the preset maximum current value.
10. The method according to claim 1, characterized in that, The method includes: If it is determined that no faulty charge pump is present among the plurality of charge pumps, a second load current of the charge pump path is obtained; wherein, the second load current is the maximum current value that the charge pump path can provide when it is determined that no faulty charge pump is present among the plurality of charge pumps; If the target charging current is less than or equal to the second load current, the battery of the terminal is charged through the charge pump path according to the target charging current.
11. The method according to claim 10, characterized in that, The method further includes: If the target charging current is greater than the second load current, the battery of the terminal is charged through the charge pump path according to the second load current.
12. The method according to claim 1, characterized in that, The faulty charge pump among the plurality of charge pumps is identified by the following method: For each of the charge pumps, determine whether the charge pump is in an abnormal state; If it is determined that the charge pump is in an abnormal state, and if the number of times the charge pump is in an abnormal state within a preset time period is greater than or equal to a preset abnormal number threshold, then it is determined that there is a faulty charge pump among the multiple charge pumps.
13. The method according to claim 12, characterized in that, Determining whether the charge pump is in an abnormal state includes: Obtain the enable and protection states of the charge pump; If the enabled state indicates that the charge pump is currently in a disabled state and / or the protection state meets the preset abnormal protection state, it is determined that the charge pump is in an abnormal state. The preset abnormal protection states include at least one of the following: over-temperature protection state, low-temperature protection state, over-voltage protection state, over-current protection state, under-voltage protection state, and under-current protection state.
14. The method according to any one of claims 1 to 13, characterized in that, The method further includes: Obtain the charging type of the terminal; In the case where it is determined that a faulty charge pump exists among the plurality of charge pumps, determining the number of faulty charge pumps includes: If the charging type is fast charging, determine whether any of the multiple charge pumps is faulty. If it is determined that a faulty charge pump exists among the plurality of charge pumps, the number of faulty charge pumps is determined.
15. A charging control device, characterized in that, The device is applied to a terminal, which includes a charge pump path and a power management integrated circuit (PMIC) path, wherein the charge pump path includes multiple charge pumps, and the device includes: The first determining module is configured to determine the number of faulty charge pumps when it is determined that there is a faulty charge pump among the plurality of charge pumps. The acquisition module is configured to acquire the target charging current currently required by the terminal; The second determining module is configured to determine a target path from the charge pump path and the PMIC path based on the number of charge pumps and the target charging current; The charging module is configured to charge the battery of the terminal through the target path according to the target charging current.
16. An electronic device, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor is configured to implement the steps of the method according to any one of claims 1 to 14 when executing instructions stored in the memory are invoked.
17. A computer-readable storage medium having computer program instructions stored thereon, characterized in that, When executed by a processor, the program instructions implement the steps of the method described in any one of claims 1 to 14.