Charging control method and device, electronic device, and storage medium

By acquiring charging data and switching the working mode of the charge pump module according to the power loss conditions, the problem of unreasonable power variation of the charge pump chip in existing fast charging technologies is solved, achieving a more efficient charging process and optimized heat distribution.

CN115603392BActive Publication Date: 2026-05-29BEIJING XIAOMI MOBILE SOFTWARE CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BEIJING XIAOMI MOBILE SOFTWARE CO LTD
Filing Date
2021-06-28
Publication Date
2026-05-29

AI Technical Summary

Technical Problem

In existing fast charging technologies, the power variations of charge pump chips under different operating modes are not properly utilized, resulting in low charging efficiency.

Method used

By acquiring charging data from electronic devices, the operating mode of the charge pump module is switched according to the power loss conditions to optimize charging losses. This includes determining the initial operating mode and the target operating mode, and adjusting the switching time of the charge pump module to reduce overall losses.

Benefits of technology

It improves charging efficiency, reduces power loss in electronic devices, optimizes heat distribution, and avoids unnecessary activation of thermal protection circuits.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115603392B_ABST
    Figure CN115603392B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a charging control method and device, electronic equipment and storage medium. The method comprises: obtaining charging data of an electronic device, wherein a charge pump module of the electronic device supports at least two working modes of charging; and controlling the charge pump module to switch to a target working mode according to the charging data, the target working mode being a working mode in which charging loss power under the charging data meets a preset condition. In this embodiment, the working mode of the charge pump module is switched to reduce the charging loss of the electronic device, in particular the loss function of the charge pump module, thereby improving the charging efficiency of the electronic device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of fast charging technology, and in particular to a charging control method and apparatus, electronic device, and storage medium. Background Technology

[0002] Currently, an increasing number of electronic devices are using fast charging technology to charge their batteries. Existing fast charging technologies include two main approaches: high voltage and low current, and low voltage and high current. Taking the high voltage and low current approach as an example, the buck ratio of charge pump chips can include 1:1, 2:1, 4:1, and 8:1 modes, where 2:1 refers to an input voltage to output voltage ratio of 2:1. In practical applications, charge pump chips provide at least two charging operating modes. However, given the constantly changing total power during charging, the system does not provide guidance on how to effectively utilize each operating mode of the charge pump chip. Summary of the Invention

[0003] This disclosure provides a charging control method and apparatus, an electronic device, and a storage medium to address the shortcomings of related technologies.

[0004] According to a first aspect of the present disclosure, a charging control method is provided, the method comprising:

[0005] Acquire charging data of an electronic device, wherein the charge pump module of the electronic device supports at least two charging operating modes;

[0006] The charge pump module is controlled to switch to a target operating mode based on the charging data. The target operating mode refers to the operating mode in which the charging loss power meets preset conditions under the charging data.

[0007] Optionally, the charging data includes at least the charging current; then, controlling the charge pump module to switch to the target operating mode based on the charging data includes:

[0008] Based on the charging current, the first power loss of the electronic device in the current operating mode and the second power loss of the candidate operating mode are determined respectively, wherein the candidate operating mode is another operating mode other than the current operating mode among the at least two charging operating modes.

[0009] Compare the first power loss of the electronic device in the current operating mode with the second power loss of the candidate operating mode;

[0010] When the first power loss and the second power loss meet the preset conditions, the candidate operating mode is determined as the target operating mode, and the charge pump module is controlled to switch to the target operating mode.

[0011] Optionally, the preset conditions include at least one of the following: the first power loss and the second power loss are equal, and the ratio of the second power loss to the first power loss is less than or equal to a preset ratio.

[0012] Optionally, before acquiring the charging data of the electronic device, the method further includes:

[0013] Obtain the step-down ratio corresponding to each working mode of the charge pump module, wherein the step-down ratio refers to the ratio of the input voltage to the output voltage of the charge pump module;

[0014] The operating mode with the largest voltage reduction ratio is determined as the initial operating mode of the charge pump module, and the charge pump module is controlled to switch to the initial operating mode.

[0015] Optionally, the charging data includes at least the charging current; then, controlling the charge pump module to switch to the target operating mode based on the charging data includes:

[0016] Based on the preset correspondence between switching current and working mode, compare the current charging current in the charging data with the switching current in the corresponding relationship;

[0017] When the current charging current matches the switching current in the corresponding relationship, the operating mode corresponding to the matching switching current is determined as the target operating mode, and the charge pump module is controlled to switch to the target operating mode.

[0018] According to a second aspect of the present disclosure, a charging control device is provided, the device comprising:

[0019] A charging data acquisition module is used to acquire charging data of an electronic device, wherein the charge pump module of the electronic device supports at least two charging operating modes.

[0020] The working mode switching module is used to control the charge pump module to switch to a target working mode according to the charging data. The target working mode refers to the working mode in which the charging loss power meets the preset conditions under the charging data.

[0021] Optionally, the charging data includes at least the charging current; then the operating mode switching module includes:

[0022] The power loss acquisition unit is used to determine, based on the charging current, the first power loss of the electronic device in the current operating mode and the second power loss of the candidate operating mode, wherein the candidate operating mode is another operating mode among the at least two charging operating modes excluding the current operating mode.

[0023] A power loss comparison unit is used to compare the first power loss of the electronic device in the current operating mode with the second power loss of the candidate operating mode.

[0024] The working mode switching unit is used to determine the candidate working mode as the target working mode when the first power loss and the second power loss meet the preset conditions, and to control the charge pump module to switch to the target working mode.

[0025] Optionally, the preset conditions include at least one of the following: the first power loss and the second power loss are equal, and the ratio of the second power loss to the first power loss is less than or equal to a preset ratio.

[0026] Optionally, the device further includes:

[0027] The step-down ratio acquisition module is used to acquire the step-down ratio corresponding to each working mode of the charge pump module. The step-down ratio refers to the ratio of the input voltage to the output voltage of the charge pump module.

[0028] An initial mode determination module is used to determine the operating mode with the largest voltage drop ratio as the initial operating mode of the charge pump module, and control the charge pump module to switch to the initial operating mode.

[0029] Optionally, the working mode switching module includes:

[0030] A current comparison unit is used to compare the current charging current in the charging data with the switching current in the corresponding relationship based on a preset correspondence between switching current and working mode.

[0031] The working mode switching unit is used to determine the working mode corresponding to the matching switching current as the target working mode when the current charging current matches the switching current in the corresponding relationship, and to control the charge pump module to switch to the target working mode.

[0032] According to a third aspect of the present disclosure, an electronic device is provided, comprising:

[0033] processor;

[0034] Memory for storing computer programs executable by the processor;

[0035] The processor is configured to execute a computer program in the memory to implement the method as described in any of the preceding descriptions.

[0036] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided that, when an executable computer program in the storage medium is executed by a processor, enables the implementation of the method described in any of the preceding claims.

[0037] The technical solutions provided by the embodiments of this disclosure may include the following beneficial effects:

[0038] As can be seen from the above embodiments, the solution provided in this disclosure can acquire charging data of the electronic device during the charging process; then, based on the charging data, the charge pump module is controlled to switch to a target operating mode, where the target operating mode refers to the operating mode in which the charging loss power meets preset conditions under the charging data. Thus, in this embodiment, during the charging process, different operating modes can be switched according to the loss power. By switching the operating mode of the charge pump module, the charging loss of the electronic device, especially the loss function of the charge pump module, can be reduced, thereby improving the charging efficiency of the electronic device.

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

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

[0041] Figure 1 This is a flowchart illustrating a charging control method according to an exemplary embodiment.

[0042] Figure 2 This is a flowchart illustrating the acquisition of power loss of an electronic device according to an exemplary embodiment.

[0043] Figure 3 This is a flowchart illustrating, according to an exemplary embodiment, the switching to a first operating mode based on the current voltage of the battery.

[0044] Figure 4 This is a block diagram illustrating a charging control device according to an exemplary embodiment.

[0045] Figure 5 This is a block diagram illustrating an electronic device according to an exemplary embodiment. Detailed Implementation

[0046] 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 below by way of example do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatus consistent with some aspects of this disclosure as detailed in the appended claims. It should be noted that, without conflict, the following embodiments and features in the implementation methods can be combined with each other.

[0047] To address the aforementioned technical problems, this disclosure provides a charging control method applied to an electronic device, which includes a charge pump module and a battery. It is understood that this embodiment only shows components relevant to this disclosure, and other components required for the normal operation of the electronic device are not shown.

[0048] The aforementioned charge pump module refers to a charging module capable of performing voltage reduction, which may include a charge pump chip and a flying capacitor, etc. Furthermore, this charge pump module can support at least two voltage reduction ratio operating modes, such as at least two of 8:1, 4:1, 2:1, and 1:1. Considering that a higher voltage reduction ratio results in a larger output current and faster charging, the charge pump module typically switches in the order of 8:1, 4:1, 2:1 to 1:1, with the current at the switching moment being preset. It should be noted that the voltage reduction ratio of the charge pump module can be set according to specific scenarios. The following descriptions of various schemes using charge pump modules with four operating modes (8:1, 4:1, 2:1, and 1:1) do not constitute a limitation on this scheme.

[0049] In implementing this disclosed solution, the inventors discovered that the power loss of the input line and the power loss of the charge pump module are dynamic. Specifically, the lower the heat loss due to the resistance of the input line in the electronic device, the higher the heat loss of the charge pump module; conversely, the higher the heat loss due to the resistance of the input line, the lower the heat loss of the charge pump module. Therefore, by adjusting the switching time of the charge pump module's operating mode, the overall power loss of the electronic device can be kept at a low level, achieving the effect of reducing the power loss of the electronic device and improving charging efficiency. Simultaneously, switching operating modes can also adjust the heat distribution within the electronic device. For example, when switching to a lower reduction ratio operating mode, the heat loss of the charge pump module decreases while the heat loss of the input line increases, which can lower the temperature of the charge pump module. Due to the relatively dispersed nature of the input line, the heat distribution is also relatively dispersed, meaning it will not increase the temperature of the electronic device.

[0050] Therefore, this disclosure provides a charging control method. Figure 1 This is a flowchart illustrating a charging control method according to an exemplary embodiment, see [link to flowchart]. Figure 1A charging control method includes steps 11 and 12.

[0051] In step 11, the charging data of the electronic device is obtained.

[0052] In this embodiment, during the charging process, the electronic device can acquire charging data according to a set period or in real time, wherein the charging data may include the charging current of the electronic device. This charging current can be characterized by acquiring the output current of the charge pump module, or it can be derived by acquiring the voltage across a precision resistor (with a known resistance value) in the electronic device. The method for acquiring the current charging current of the battery can be selected according to the specific scenario, and the corresponding method falls within the protection scope of this disclosure.

[0053] In this embodiment, before acquiring the charging data of the electronic device, the electronic device can also determine the initial operating mode of the charge pump module, see [link to relevant documentation]. Figure 2 This includes steps 21 and 22:

[0054] In step 21, the electronic device can obtain the buck ratio corresponding to each working mode of the charge pump module. The buck ratio refers to the ratio of the input voltage to the output voltage of the charge pump module, such as 8:1, 4:1, 2:1 and 1:1.

[0055] In step 22, the electronic device can determine the operating mode with the largest step-down ratio as the initial operating mode of the charge pump module, such as an 8:1 step-down ratio. Then, the electronic device can control the charge pump module to switch to the initial operating mode. It is understood that the step-down ratio of subsequent candidate operating modes will be smaller than that of the initial operating mode. Alternatively, the electronic device can pre-store configuration data of the charge pump module, and determine the initial operating mode based on the configuration data each time charging occurs, thus achieving the solution of this disclosure.

[0056] In step 12, the charge pump module is controlled to switch to the target working mode according to the charging data. The target working mode refers to the working mode in which the charging loss power meets the preset conditions under the charging data.

[0057] In this embodiment, the electronic device can obtain the power loss of the charge pump module in the current operating mode and the candidate operating mode based on the charging current. The candidate operating mode refers to the operating mode in which the step-down ratio of the charge pump module is less than the step-down ratio of the current operating mode.

[0058] Taking the power loss of the charge pump module in the current operating mode of an electronic device as an example, the electronic device can also obtain the resistance of the input lines. For example, the resistance can be pre-detected and stored in the electronic device as a preset input line resistance. Alternatively, the input voltage and current of the charging interface, as well as the input voltage of the charge pump chip, can be obtained. The voltage difference between the input voltage of the charging interface and the input voltage of the charge pump chip is the voltage division of the input line resistance. Combining this with current and Ohm's law, the input line resistance can be calculated. The electronic device can calculate the power loss of the input lines based on the current charging current of the battery and the input line resistance, such as P1 = I... 2 R1.

[0059] The electronic device can also acquire the resistance of the charge pump module, which is a fixed value representing the on-resistance of multiple switching transistors. The number of switching transistors is related to the voltage reduction ratio of the charge pump module; for example, in 1:1 mode, there are three switching transistors. Furthermore, the resistance of the charge pump module can be pre-detected and stored in the electronic device. The electronic device can then directly read it from the storage location. The electronic device can calculate the power loss of the charge pump module based on the current charging current of the battery and the resistance of the charge pump module, such as P2 = I... 2 R2.

[0060] Understandably, the sum of the power loss of the input lines and the power loss of the charge pump module is the power loss of the electronic device in the current operating mode.

[0061] In another example, the electronic device can obtain the input voltage and current at its charging port, and based on these, it can determine the input power at the charging port. Then, the electronic device can calculate the battery's charging power based on the output voltage and current of the charge pump module, i.e., the battery's charging voltage and current. Thus, the difference between the input power at the charging port and the actual charging power represents the power loss of the electronic device in its current operating mode.

[0062] Similarly, when obtaining the charging current of the electronic device, the power loss in the candidate operating mode can be calculated based on the charging current, the resistance of the input line, and the resistance of the charge pump module. Since the buck ratio of the candidate operating mode is lower than that of the current operating mode, the input voltage at the charging interface will decrease and the input current will increase while the charging current remains constant. At this time, the electronic device can use the increased charging current to calculate the power loss of the input line and the power loss of the charge pump module. Then, by summing the power loss of the input line and the power loss of the charge pump module, the power loss of the electronic device can be obtained.

[0063] In yet another example, the electronic device can also obtain the charging current and charging efficiency to determine its power loss. For instance, in a 2:1 buck ratio operating mode, the power loss of the electronic device is P. total *(1-efficiency(div2)). Where div2 represents the 2:1 voltage reduction ratio operating mode; P total The charging power received at the charging interface of the electronic device is the product of the input current and input voltage at the charging interface. The charging efficiency of the electronic device when efficiency(div2) is 2:1 can be calculated from the input current and input voltage at the charging interface and the charging voltage and charging current of the battery.

[0064] In the 4:1 buck ratio operating mode, the power loss of the electronic device is P. total *(1-efficiency(div4)). Where div4 represents the 4:1 voltage reduction ratio operating mode; P total The charging power received at the charging interface of the electronic device is the product of the input current and input voltage at the charging interface. The charging efficiency of the electronic device when efficiency(div4) is 4:1 can be calculated from the input current and input voltage at the charging interface and the charging voltage and charging current of the battery.

[0065] In the 8:1 buck ratio operating mode, the power loss of the electronic device is P. total *(1-efficiency(div8)). Where div8 represents the 8:1 voltage reduction ratio operating mode; P total The charging power received at the charging interface of the electronic device is the product of the input current and input voltage at the charging interface. The charging efficiency of the electronic device when efficiency(div8) is 8:1 can be calculated from the input current and input voltage at the charging interface and the charging voltage and charging current of the battery.

[0066] It should be noted that the 1:1 step-down ratio operating mode can be obtained by calculating the sum of the power loss of the input line and the power loss of the charge pump. Since this scheme has already been described in the previous example, it will not be repeated here.

[0067] In this embodiment, after obtaining the first power loss in the current operating mode and the second power loss in the candidate operating mode, the first power loss and the second power loss can be compared. If the first power loss and the second power loss meet a preset condition, the electronic device can determine the candidate operating mode as the target operating mode, and at this time, the charge pump module can be controlled to switch to the target operating mode. The preset condition includes at least one of the following: the first power loss and the second power loss are equal, and the ratio of the second power loss to the first power loss is less than or equal to a preset ratio.

[0068] Taking the preset condition that the first and second power losses are equal as an example, the power losses in the current operating mode and the candidate operating mode are equal, meaning the electronic device can operate in either mode. Considering that the charging current typically decreases gradually during charging, and the power loss of the charge pump module decreases in the candidate operating mode, the power loss of the electronic device will decrease in subsequent charging processes. It is understandable that the input line losses will increase due to the increased charging current, but considering that the input lines are distributed, the resulting heat loss can be considered dispersed and will not create hot spots. If heat loss were concentrated in the charge pump module itself, it would create hot spots, thus preventing the thermal protection circuit from activating and improving charging efficiency.

[0069] Taking the preset condition that the ratio of the second power loss to the first power loss is less than or equal to a preset ratio as an example, the preset ratio can range from 0.8 to 0.95. That is, the switching occurs when the second power loss is less than the first power loss. This is because the charging current in the charging data is a fluctuating value. If the charging current fluctuates significantly at a certain moment, it will cause the charge pump module to switch back and forth in its working mode, thereby reducing charging efficiency.

[0070] In another embodiment, the electronic device may store a preset correspondence between switching currents and operating modes. See also Figure 3 In step 31, when the electronic device obtains the current charging current in the charging data, it can compare the current charging current with the corresponding switching current. In step 32, when the current charging current matches the corresponding switching current, the electronic device can determine the operating mode corresponding to the matching switching current as the target operating mode and control the charge pump module to switch to the target operating mode; otherwise, steps 31 and 32 are repeated.

[0071] The matching of the charging current and switching current means that the charging current and switching current are equal, or the charging current plus a compensation value is equal to the switching current. The compensation value can be +0.5A or -0.5A. Therefore, in this embodiment, the operating mode of the charge pump module can be switched using both the charging current and the switching current.

[0072] In this embodiment, the electronic device can also obtain the correspondence between the switching current and the operating mode, that is, obtain the switching current of the two operating modes. Taking the example that the power loss is equal in the current operating mode and the candidate operating mode, it includes:

[0073] Taking the switch from 2:1 to 1:1 as an example, the formula is:

[0074]

[0075] In the formula, div2 represents the 2:1 voltage reduction ratio operating mode; R chargepump-dir For the resistance of the charge pump module, taking a 2:1 ratio as an example, R chargepump-dir =2*R dson +R rb R dson To control the on-resistance of the transistor in the flyby capacitor of the charge pump module, R rb R is the on-resistance of the transistor in the charge pump module that prevents capacitor backflow; path P is the resistance of the input line between the charging interface and the input terminal of the charge pump module in the electronic device. total The charging power received at the charging interface of the electronic device is the product of the input current and input voltage at the charging interface; the charging efficiency (div2) of the electronic device when it is 2:1 can be calculated from the input current and input voltage at the charging interface and the charging voltage and charging current of the battery; I FCC This represents the switching current when switching from a 2:1 ratio to a 1:1 ratio.

[0076] It should be noted that the above formula applies to the scenario of switching from a 2:1 buck ratio to a 1:1 buck ratio. In the 2:1 buck ratio working mode, this example can first use this formula to calculate the charging current range that maximizes the benefits of the 2:1 mode, as well as the switching current when switching to the 1:1 mode, so as to achieve the effect of minimizing power consumption while distributing heat evenly (from concentrated to dispersed on the input line by the charge pump module).

[0077] In some examples, given a fixed charge pump module, the above formula can also be used to optimize the input circuitry to adjust its resistance, thereby reducing power loss in electronic devices.

[0078] For example, switching from a 4:1 to a 2:1 ratio would be represented by the following formula:

[0079]

[0080] In the formula, div4 represents the working mode with a 4:1 voltage reduction ratio.

[0081] It should be noted that the above formula applies to the scenario of switching from a 4:1 buck ratio to a 2:1 buck ratio. In the 4:1 buck ratio working mode, this example can first use this formula to calculate the charging current range that maximizes the benefits of the 4:1 mode, as well as the switching current when switching to the 2:1 mode, so as to achieve the effect of the lowest power consumption and uniform heat distribution.

[0082] For example, when switching from an 8:1 to a 4:1 ratio, the formula is:

[0083]

[0084] In the formula, div8 represents the working mode with an 8:1 voltage reduction ratio.

[0085] It should be noted that the above formula applies to the scenario of switching from an 8:1 buck ratio to a 4:1 buck ratio. In the 8:1 buck ratio working mode, this example can first use this formula to calculate the charging current range that maximizes the benefits of the 8:1 mode, as well as the switching current when switching to the 4:1 mode, so as to achieve the effect of the lowest power consumption and uniform heat distribution.

[0086] It should be noted that the scheme for obtaining the switching current only shows the case where the power loss is equal in the two operating modes. In some examples, a weight (such as 0.8 to 0.95) can be set for the power loss in the current operating mode, and the switching current can also be obtained. The corresponding scheme falls within the protection scope of this disclosure.

[0087] Thus, in the solution provided by this embodiment, charging data of the electronic device during charging can be acquired; then, the charge pump module is controlled to switch to a target operating mode based on the charging data. The target operating mode refers to the operating mode in which the charging power loss meets preset conditions under the charging data. In this way, by switching the operating mode of the charge pump module, the charging loss of the electronic device, especially the loss function of the charge pump module, can be reduced, thereby improving the charging efficiency of the electronic device.

[0088] Based on the charging control method provided in the embodiments of this disclosure, the embodiments of this disclosure also provide a charging control device, see [link to relevant documentation]. Figure 4 The device includes:

[0089] The charging data acquisition module 41 is used to acquire charging data of the electronic device, wherein the charge pump module of the electronic device supports at least two charging working modes.

[0090] The working mode switching module 42 is used to control the charge pump module to switch to a target working mode according to the charging data. The target working mode refers to the working mode in which the charging loss power meets the preset conditions under the charging data.

[0091] In one embodiment, the charging data includes at least the charging current; then the operating mode switching module includes:

[0092] The power loss acquisition unit is used to determine, based on the charging current, the first power loss of the electronic device in the current operating mode and the second power loss of the candidate operating mode, wherein the candidate operating mode is another operating mode among the at least two charging operating modes excluding the current operating mode.

[0093] A power loss comparison unit is used to compare the first power loss of the electronic device in the current operating mode with the second power loss of the candidate operating mode.

[0094] The working mode switching unit is used to determine the candidate working mode as the target working mode when the first power loss and the second power loss meet the preset conditions, and control the charge pump module to switch to the target working mode.

[0095] In one embodiment, the preset condition includes at least one of the following: the first power loss and the second power loss are equal, and the ratio of the second power loss to the first power loss is less than or equal to a preset ratio.

[0096] In one embodiment, the device further includes:

[0097] The step-down ratio acquisition module is used to acquire the step-down ratio corresponding to each working mode of the charge pump module. The step-down ratio refers to the ratio of the input voltage to the output voltage of the charge pump module.

[0098] An initial mode determination module is used to determine the operating mode with the largest voltage drop ratio as the initial operating mode of the charge pump module, and control the charge pump module to switch to the initial operating mode.

[0099] In one embodiment, the working mode switching module includes:

[0100] A current comparison unit is used to compare the current charging current in the charging data with the switching current in the corresponding relationship based on a preset correspondence between switching current and working mode.

[0101] The working mode switching unit is used to determine the working mode corresponding to the matching switching current as the target working mode when the current charging current matches the switching current in the corresponding relationship, and to control the charge pump module to switch to the target working mode.

[0102] It should be noted that the device shown in this embodiment is similar to... Figures 1-2 The content of the method embodiment shown is consistent with that of the above method embodiment, and will not be repeated here.

[0103] Figure 5 This is a block diagram illustrating an electronic device according to an exemplary embodiment. For example, the electronic device 500 may be a smartphone, computer, digital broadcasting terminal, tablet device, medical device, fitness equipment, personal digital assistant, etc.

[0104] Reference Figure 5 The electronic device 500 may include one or more of the following components: a processing component 502, a memory 504, a power supply component 506, a multimedia component 508, an audio component 510, an input / output (I / O) interface 512, a sensor component 514, a communication component 516, an image acquisition component 518, and the aforementioned housing.

[0105] Processing component 502 typically controls the overall operation of electronic device 500, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 502 may include one or more processors 520 to execute computer programs. Furthermore, processing component 502 may include one or more modules to facilitate interaction between processing component 502 and other components. For example, processing component 502 may include a multimedia module to facilitate interaction between multimedia component 508 and processing component 502.

[0106] Memory 504 is configured to store various types of data to support the operation of electronic device 500. Examples of such data include computer programs for any application or method operating on electronic device 500, contact data, phone book data, messages, pictures, videos, etc. Memory 504 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.

[0107] Power supply component 506 provides power to various components of electronic device 500. Power supply component 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 500. Power supply component 506 may include a power chip, and a controller may communicate with the power chip to control the power chip to turn on or off switching devices, enabling or disabling battery power supply to the motherboard circuitry.

[0108] Multimedia component 508 includes a screen that provides an output interface between electronic device 500 and target object. 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 information from the target object. 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 touch or swipe actions but also the duration and pressure associated with the touch or swipe operation.

[0109] Audio component 510 is configured to output and / or input audio file information. For example, audio component 510 includes a microphone (MIC) configured to receive external audio file information when electronic device 500 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio file information may be further stored in memory 504 or transmitted via communication component 516. In some embodiments, audio component 510 also includes a speaker for outputting audio file information.

[0110] I / O interface 512 provides an interface between processing component 502 and peripheral interface modules, such as keyboards, click wheels, buttons, etc.

[0111] Sensor assembly 514 includes one or more sensors for providing state assessments of various aspects of electronic device 500. For example, sensor assembly 514 can detect the on / off state of electronic device 500, the relative positioning of components (e.g., the display screen and keypad of electronic device 500), changes in position of electronic device 500 or a component, the presence or absence of contact between a target object and electronic device 500, the orientation or acceleration / deceleration of electronic device 500, and temperature changes of electronic device 500. In this example, sensor assembly 514 may include a magnetic sensor, a gyroscope, and a magnetic field sensor, wherein the magnetic field sensor includes at least one of the following: a Hall sensor, a thin-film magnetoresistive sensor, and a magnetic fluid accelerometer.

[0112] Communication component 516 is configured to facilitate wired or wireless communication between electronic device 500 and other devices. Electronic device 500 can access wireless networks based on communication standards, such as WiFi, 2G, 3G, 4G, 5G, or combinations thereof. In one exemplary embodiment, communication component 516 receives broadcast information or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 516 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.

[0113] In an exemplary embodiment, the electronic device 500 may be implemented by one or more application-specific integrated circuits (ASICs), digital information processors (DSPs), digital information processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components.

[0114] In an exemplary embodiment, a non-transitory readable storage medium including an executable computer program is also provided, such as a memory 504 including instructions, wherein the executable computer program can be executed by a processor. The readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, or optical data storage device, etc.

[0115] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the disclosure herein. This disclosure is intended to cover any variations, uses, or adaptations 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.

[0116] 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, The method includes: Acquire charging data of an electronic device, wherein the charge pump module of the electronic device supports at least two charging operating modes; Based on the charging data, the charge pump module is controlled to switch to the target working mode, where the target working mode refers to the working mode in which the charging loss power meets the preset conditions under the charging data. The buck ratio of the target operating mode is less than the buck ratio of the current operating mode; The preset conditions include at least one of the following: the first power loss in the current working mode and the second power loss in the candidate working mode are equal, and the ratio of the second power loss to the first power loss is less than or equal to a preset ratio. Controlling the charge pump module to switch to the target operating mode based on the charging data includes: Based on the charging current in the charging data, the first power loss of the electronic device in the current working mode and the second power loss of the candidate working mode are determined respectively, wherein the candidate working mode is another working mode other than the current working mode among the at least two charging working modes. Based on the charging current, the first power loss of the electronic device in the current operating mode and the second power loss of the candidate operating mode are determined, including: With a step-down ratio of 1, the first power loss and the second power loss are determined based on the sum of the power loss of the input line and the power loss of the charge pump module, respectively; the power loss of the input line and the power loss of the charge pump module are determined based on the charging current. When the step-down ratio is not 1, the first power loss and the second power loss are determined based on the charging power and charging efficiency at the charging interface of the electronic device, respectively; the power loss of the electronic device is... , Operating mode with an N:1 step-down ratio; The charging power received at the charging port of an electronic device. The charging efficiency of the electronic device when the ratio is N:1, where N can be 2, 4, or 8.

2. The method according to claim 1, characterized in that, The charging data includes at least the charging current; therefore, controlling the charge pump module to switch to the target operating mode based on the charging data further includes: Compare the first power loss of the electronic device in the current operating mode with the second power loss of the candidate operating mode; When the first power loss and the second power loss meet the preset conditions, the candidate operating mode is determined as the target operating mode, and the charge pump module is controlled to switch to the target operating mode.

3. The method according to claim 1 or 2, characterized in that, Before acquiring charging data from the electronic device, the method further includes: Obtain the step-down ratio corresponding to each working mode of the charge pump module, wherein the step-down ratio refers to the ratio of the input voltage to the output voltage of the charge pump module; The operating mode with the largest voltage reduction ratio is determined as the initial operating mode of the charge pump module, and the charge pump module is controlled to switch to the initial operating mode.

4. The method according to claim 1, characterized in that, The charging data includes at least the charging current; therefore, the charge pump module is controlled to switch to the target operating mode based on the charging data, including: Based on the preset correspondence between switching current and working mode, compare the current charging current in the charging data with the switching current in the corresponding relationship; When the current charging current matches the switching current in the corresponding relationship, the operating mode corresponding to the matching switching current is determined as the target operating mode, and the charge pump module is controlled to switch to the target operating mode.

5. A charging control device, characterized in that, The device includes: A charging data acquisition module is used to acquire charging data of an electronic device, wherein the charge pump module of the electronic device supports at least two charging operating modes. The working mode switching module is used to control the charge pump module to switch to a target working mode according to the charging data. The target working mode refers to the working mode in which the charging loss power meets the preset conditions under the charging data. The buck ratio of the target operating mode is less than the buck ratio of the current operating mode; The preset conditions include at least one of the following: the first power loss in the current working mode and the second power loss in the candidate working mode are equal, and the ratio of the second power loss to the first power loss is less than or equal to a preset ratio. The charging data includes at least the charging current; therefore, the operating mode switching module includes: The power loss acquisition unit is used to determine the first power loss of the electronic device in the current working mode and the second power loss of the candidate working mode based on the charging current in the charging data, wherein the candidate working mode is another working mode other than the current working mode among the at least two charging working modes. Based on the charging current, the first power loss of the electronic device in the current operating mode and the second power loss of the candidate operating mode are determined, including: With a step-down ratio of 1, the first power loss and the second power loss are determined based on the sum of the power loss of the input line and the power loss of the charge pump module, respectively; the power loss of the input line and the power loss of the charge pump module are determined based on the charging current. When the step-down ratio is not 1, the first power loss and the second power loss are determined based on the charging power and charging efficiency at the charging interface of the electronic device, respectively; the power loss of the electronic device is... , Operating mode with an N:1 step-down ratio; The charging power received at the charging port of an electronic device. The charging efficiency of the electronic device when the ratio is N:1, where N can be 2, 4, or 8.

6. The apparatus according to claim 5, characterized in that, The charging data includes at least the charging current; therefore, the working mode switching module further includes: A power loss comparison unit is used to compare the first power loss of the electronic device in the current operating mode with the second power loss of the candidate operating mode. The working mode switching unit is used to determine the candidate working mode as the target working mode when the first power loss and the second power loss meet the preset conditions, and to control the charge pump module to switch to the target working mode.

7. The apparatus according to claim 5 or 6, characterized in that, The device further includes: The step-down ratio acquisition module is used to acquire the step-down ratio corresponding to each working mode of the charge pump module. The step-down ratio refers to the ratio of the input voltage to the output voltage of the charge pump module. An initial mode determination module is used to determine the operating mode with the largest voltage drop ratio as the initial operating mode of the charge pump module, and control the charge pump module to switch to the initial operating mode.

8. The apparatus according to claim 5, characterized in that, The working mode switching module includes: A current comparison unit is used to compare the current charging current in the charging data with the switching current in the corresponding relationship based on a preset correspondence between switching current and working mode. The working mode switching unit is used to determine the working mode corresponding to the matching switching current as the target working mode when the current charging current matches the switching current in the corresponding relationship, and to control the charge pump module to switch to the target working mode.

9. An electronic device, characterized in that, include: processor; Memory for storing computer programs executable by the processor; The processor is configured to execute a computer program in the memory to implement the method as described in any one of claims 1 to 4.

10. A computer-readable storage medium, characterized in that, When the executable computer program in the storage medium is executed by a processor, it can implement the method as described in any one of claims 1 to 4.