Charging Control Method, Control Device, Electronic Device and Storage Medium
By obtaining the charging device status and battery voltage information and switching three charging modes, the compatibility problem of electronic device charging adapter is solved, and efficient and safe charging control is achieved.
Patent Information
- Application Number
- CN202110908017.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-09
- Publication Date
- 2025-07-08
- Estimated Expiration
- 2041-08-09
AI Technical Summary
Existing electronic devices are not compatible with charging adapters of different technical principles when charging, resulting in ineffective charging efficiency.
By obtaining the status information of the charging device and the battery voltage value, comparing and determining the charging control command, three charging modes are switched: the first charging mode, the second charging mode and the third charging mode to adapt to the general charging, fast charging and high-voltage fast charging adapters, and voltage matching and mode switching are achieved.
Improves the compatibility of electronic devices with adapters, improves charging efficiency and safety, and avoids battery damage.
Smart Images

Figure CN113675915B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of electronic devices, and particularly to a charging control method, a control device, an electronic device, and a storage medium. Background Art
[0002] With the development of the functions of electronic devices, the power consumption of electronic devices is also increasing. In order to ensure the battery life of electronic devices, the battery capacity has been continuously increased, and the demand for charging efficiency is also getting higher and higher. Therefore, fast charging technology has emerged. In order to further improve the charging efficiency, multi-cell series batteries have also emerged to increase the total voltage of the battery. However, charging such electronic devices requires a dedicated fast charging adapter to perform fast charging and cannot be compatible with adapters of different technical principles. Summary of the Invention
[0003] This application provides a charging control method, a control device, an electronic device, and a storage medium, which can improve the compatibility of the electronic device with the adapter.
[0004] A charging control method is applied to the power management module of an electronic device. The battery of the electronic device is charged by a charging device, and the battery has a series dual-cell structure. The method includes:
[0005] Obtaining the status information of the charging device;
[0006] Obtaining the voltage value of the battery and comparing the voltage value with a preset voltage threshold;
[0007] Based on the status information of the charging device, determining a charging control instruction for the battery according to the comparison result of the voltage value and the preset voltage threshold;
[0008] Executing a corresponding charging mode according to the charging control instruction; the charging mode includes a first charging mode, a second charging mode, and a third charging mode. In the first charging mode, the output voltage of the charging device is less than the input voltage of the battery. In the second charging mode, the output voltage of the charging device is equal to the input voltage of the battery. In the third charging mode, the output voltage of the charging device is N times the input voltage of the battery, and N is a positive integer greater than 1.
[0009] A charging control device is applied to the power management module of an electronic device. The device includes:
[0010] A status information acquisition module, configured to acquire the status information of the charging device;
[0011] A voltage comparison module, configured to acquire the voltage value of the battery and compare the voltage value with a preset voltage threshold;
[0012] An instruction determination module, configured to determine a charging control instruction for the battery based on the status information of the charging device and according to the comparison result between the voltage value and a preset voltage threshold;
[0013] An instruction execution module, configured to execute a corresponding charging mode according to the charging control instruction; the charging mode includes a first charging mode, a second charging mode, and a third charging mode. In the first charging mode, the output voltage of the charging device is less than the input voltage of the battery. In the second charging mode, the output voltage of the charging device is equal to the input voltage of the battery. In the third charging mode, the output voltage of the charging device is N times the input voltage of the battery, and N is a positive integer greater than 1.
[0014] An electronic device, comprising:
[0015] A battery, the battery having a series-connected dual-cell structure;
[0016] A power management module, configured to charge the battery when a charging device is connected;
[0017] A controller, including a memory and a processor. The memory stores a computer program. When the computer program is executed by the processor, the processor executes the steps of the above method.
[0018] A computer-readable storage medium, on which a computer program is stored, characterized in that when the computer program is executed by a processor, the steps of the above method are implemented.
[0019] The above charging control method, control device, electronic device, and storage medium obtain the status information of the charging device and the voltage value of the battery, compare the voltage value with a preset voltage threshold, determine a charging control instruction for the battery based on the status information of the charging device and in combination with the comparison result between the voltage value and the preset voltage threshold, and execute a corresponding charging mode to switch between the first charging mode, the second charging mode, and the third charging mode, and can also implement the transformation of the charging stage, adjust the charging mode according to the voltage value of the battery, and improve the compatibility of the electronic device with the adapter. Description of the Drawings
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application or in the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0021] Figure 1Schematic diagram of the application environment of the charging circuit for an embodiment;
[0022] Figure 2 One of the schematic flowcharts of the charging control method for an embodiment;
[0023] Figure 3 Another schematic flowchart of the charging control method for an embodiment;
[0024] Figure 4 Another schematic flowchart of the charging control method for an embodiment;
[0025] Figure 5 Another schematic flowchart of the charging control method for an embodiment;
[0026] Figure 6 Block diagram of the power management module for an embodiment;
[0027] Figure 7 Schematic diagram of the circuit structure of the power management module for an embodiment;
[0028] Figure 8 Schematic flowchart of the power management module executing the first charging mode for an embodiment;
[0029] Figure 9a Schematic diagram of the equivalent circuit in the first stage when the power management module executes the first charging mode for an embodiment;
[0030] Figure 9b Schematic diagram of the equivalent circuit in the second stage when the power management module executes the first charging mode for an embodiment;
[0031] Figure 10 Schematic diagram of the equivalent circuit when the power management module executes the second charging mode for an embodiment;
[0032] Figure 11 Schematic flowchart of the power management module executing the third charging mode for an embodiment;
[0033] Figure 12a Schematic diagram of the equivalent circuit in the first stage when the power management module executes the third charging mode for an embodiment;
[0034] Figure 12b Schematic diagram of the equivalent circuit in the second stage when the power management module executes the third charging mode for an embodiment;
[0035] Figure 13 Schematic flowchart of the power management module executing the third charging mode for another embodiment;
[0036] Figure 14aSchematic diagram of the equivalent circuit in the first stage when the power management module of another embodiment executes the third charging mode;
[0037] Figure 14b Schematic diagram of the equivalent circuit in the second stage when the power management module of another embodiment executes the third charging mode;
[0038] Figure 15 Block diagram of the structure of the power management module of another embodiment;
[0039] Figure 16 Schematic diagram of the circuit structure of the power management module of another embodiment;
[0040] Figure 17 Flowchart of the power management module of another embodiment executing the first charging mode;
[0041] Figure 18a Schematic diagram of the equivalent circuit in the first stage when the power management module of another embodiment executes the first charging mode;
[0042] Figure 18b Schematic diagram of the equivalent circuit in the second stage when the power management module of another embodiment executes the first charging mode;
[0043] Figure 19 Schematic diagram of the equivalent circuit when the power management module of another embodiment executes the second charging mode;
[0044] Figure 20 Flowchart of the power management module of yet another embodiment executing the third charging mode;
[0045] Figure 21a Schematic diagram of the equivalent circuit in the first stage when the power management module of yet another embodiment executes the third charging mode;
[0046] Figure 21b Schematic diagram of the equivalent circuit in the second stage when the power management module of yet another embodiment executes the third charging mode;
[0047] Figure 22 Block diagram of the structure of the charging control device of an embodiment. Detailed implementation manners
[0048] To facilitate the understanding of this application, the following will describe this application more comprehensively with reference to the relevant drawings. Embodiments of this application are given in the drawings. However, this application can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of this application more thorough and comprehensive.
[0049] In order to make the objectives, technical solutions and advantages of the present application more clear and understandable, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0050] It can be understood that the terms "first", "second", etc. used in the present application may be used herein to describe various features, but these elements are not limited by these terms. These terms are only used to distinguish one feature from another. For example, without departing from the scope of the present application, the first switching unit may be referred to as the second switching unit, and similarly, the second switching unit may be referred to as the first switching unit. Both the first switching unit and the second switching unit are switching units, and they are different switching units.
[0051] In addition, the terms "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include at least one of such features. In the description of the present application, the meaning of "a plurality" is at least two, such as two, three, etc., unless otherwise specifically defined. In the description of the present application, the meaning of "above" includes the number itself. For example, two or more includes two, unless otherwise specifically defined.
[0052] It should be noted that when an element is considered to be "connected" to another element, it may be directly connected to the other element or connected to the other element through an intermediate element. In addition, in the following embodiments, "connection", if there is transmission of electrical signals or data between the connected objects, should be understood as "electrical connection", "communication connection", etc.
[0053] An embodiment of the present application provides a charging control method, which is applied to the power management module of the electronic device 10 as shown in Figure 1 The electronic device charges the battery of the electronic device through a charging device. In one embodiment, the electronic device 10 may be a mobile phone, a tablet computer, a laptop computer, a handheld computer, a mobile Internet device (MID), a wearable device (such as a smart watch, a smart bracelet, a pedometer, etc.) or other electronic devices including a power management module.
[0054] As shown in Figure 2 An embodiment of the present application provides a charging control method, including steps 202-step 208:
[0055] Step 202, obtaining the status information of the charging device;
[0056] Step 204: Obtain the voltage value of the battery and compare the voltage value with a preset voltage threshold.
[0057] Step 206: Based on the status information of the charging device, determine a charging control instruction for the battery according to the comparison result between the voltage value and the preset voltage threshold.
[0058] Step 208: Execute a corresponding charging mode according to the charging control instruction; the charging modes include a first charging mode, a second charging mode, and a third charging mode. In the first charging mode, the output voltage of the charging device is less than the input voltage of the battery. In the second charging mode, the output voltage of the charging device is equal to the input voltage of the battery. In the third charging mode, the output voltage of the charging device is N times the input voltage of the battery, and N is a positive integer greater than 1.
[0059] The charging device includes a power adapter. Currently, common power adapters include a general charging power adapter and a fast charging power adapter. The fast charging power adapter can be compatible with the general charging mode and the fast charging mode. For the fast charging mode, based on different fast charging technologies used, it can be further divided into direct charging mode fast charging and high-voltage fast charging. Among the above three modes, there are differences in the voltage of the power supply signal output by the power adapter. In this application, the power management module can determine the status information of the charging device according to the output voltage of the charging device. The status information may include the type of the power adapter and the current charging status executed by the power adapter, and control the charging mode switching of the power management module in combination with the voltage value of the battery. In one embodiment, the charging device can transmit a charging protocol to the power management module or the processor of the electronic device through the power supply signal, so that the power management module can obtain the status information of the charging device and then switch the charging mode.
[0060] In the embodiment of this application, the first charging mode is used to match the pre-charging stage and the trickle charging stage of the general charging power adapter and the fast charging power adapter. When the power management module executes the first charging mode, the output voltage of the charging device (i.e., the voltage of the power supply signal) is less than the input voltage of the battery. The power supply signal is boosted by the power management module and then outputs a charging signal to charge the battery 20. The second charging mode is used to match the fast charging power adapter in the direct charging mode. When the power management module executes the second charging mode, the output voltage of the charging device is equal to the input voltage of the battery (considering line loss, the sum of the input voltage of the battery and the line loss is equal to the output voltage of the charging device). The third charging mode is used to match the fast charging power adapter in the high-voltage fast charging mode. When the power management module executes the third charging mode, the output voltage of the charging device is N times the input voltage of the battery, and N is a positive integer greater than 1 (considering line loss, the output voltage of the charging device is equal to the sum of N times the input voltage of the battery and the line loss).
[0061] The above charging control method obtains the status information of the charging device and the voltage value of the battery, compares the voltage value with a preset voltage threshold, and based on the status information of the charging device, combines the comparison result of the voltage value and the preset voltage threshold to determine the charging control instruction for the battery, and executes the corresponding charging mode to switch between the first charging mode, the second charging mode, and the third charging mode, and can also realize the transformation of the charging stage, adjust the charging mode according to the voltage value of the battery, and improve the compatibility of the electronic device with the adapter.
[0062] As Figure 3 shown, in one embodiment, based on the charging device having a first charging state, a second charging state, and a third charging state corresponding to the first charging mode, the second charging mode, and the third charging mode respectively, the charging control instruction for the battery is determined based on the status information of the charging device according to the comparison result of the voltage value and the preset voltage threshold, including steps 302 - step 306:
[0063] Step 302, in response to the voltage value being less than the first voltage threshold, determine to charge the battery in the first charging mode;
[0064] Step 304, in response to the voltage value being greater than the first voltage threshold and less than the second voltage threshold, determine to charge the battery in the third charging mode;
[0065] Step 304, in response to the voltage value being greater than the second voltage threshold, determine to charge the battery in the first charging mode.
[0066] In this embodiment, the charging device can be adapted to three charging modes and has a first charging state, a second charging state, and a third charging state corresponding to the first charging mode, the second charging mode, and the third charging mode respectively, that is, when the power management module executes the first charging mode, the charging device corresponds to the first charging state; when the power management module executes the second charging mode, the charging device corresponds to the second charging state; when the power management module executes the third charging mode, the charging device corresponds to the third charging state. In response to the comparison result of the voltage value with the preset first voltage threshold and the second voltage threshold, determine to execute the first charging mode or the third charging mode.
[0067] Among them, the first voltage threshold is less than the second voltage threshold. When the voltage value of the battery is lower than the first voltage threshold, pre - charging needs to be carried out in the first charging mode to activate the active substances of the battery and avoid damaging the battery due to excessive current at the start of charging; when the voltage value of the battery is higher than the second voltage threshold, the battery is approaching full charge. At this time, due to the self - discharge of the battery, a certain capacity loss will occur. At this time, to compensate for the self - discharge, the first charging mode can be switched to keep the battery in a continuous small - current charging state close to the fully - charged state.
[0068] In one embodiment, the voltage range formed by the first voltage threshold and the second voltage threshold is the fast charging range. When the voltage value of the battery is outside this range, the power management module charges the battery in the first charging mode; when the voltage value of the battery is within the fast charging range, the power management module charges the battery in the third charging mode.
[0069] As Figure 4 shown, in one embodiment, based on the charging device having a first charging state and a second charging state corresponding to the first charging mode and the second charging mode respectively, based on the status information of the charging device, according to the comparison result between the voltage value and the preset voltage threshold, determining the charging control instruction for the battery includes steps 402 - step 406:
[0070] Step 402, in response to the voltage value being less than the first voltage threshold, determining to charge the battery in the first charging mode;
[0071] Step 404, in response to the voltage value being greater than the first voltage threshold and less than the second voltage threshold, determining to charge the battery in the second charging mode;
[0072] Step 406, in response to the voltage value being greater than the second voltage threshold, determining to charge the battery in the first charging mode.
[0073] In this embodiment, the charging device can be adapted to two charging modes and has a first charging state and a second charging state corresponding to the first charging mode and the second charging mode respectively, that is, when the power management module executes the first charging mode, the charging device correspondingly is in the first charging state; when the power management module executes the second charging mode, the charging device correspondingly is in the second charging state. The power management module determines to execute the first charging mode or the second charging mode in response to the comparison result between the voltage value and the preset first voltage threshold and second voltage threshold.
[0074] The first voltage threshold is less than the second voltage threshold. When the voltage value of the battery is lower than the first voltage threshold, it is necessary to perform pre - charging in the first charging mode to activate the active substances of the battery and avoid excessive current damage to the battery at the start of charging; when the voltage value of the battery is higher than the second voltage threshold, the battery is approaching full charge. At this time, due to the self - discharge of the battery, a certain capacity loss will occur. At this time, to compensate for the self - discharge, it can be switched to the first charging mode to keep the battery in a continuous small - current charging state close to full charge.
[0075] When the voltage value of the battery is outside the fast charging range, the power management module charges the battery in the first charging mode; when the voltage value of the battery is within the fast charging range, the power management module charges the battery in the second charging mode.
[0076] As Figure 5As shown, in one embodiment, based on the charging device having a first charging state corresponding to the first charging mode, according to the state information of the charging device, the charging control instruction for the battery is determined based on the comparison result between the voltage value and the preset voltage threshold, including:
[0077] Step 502, based on the charging device having a first charging state corresponding to the first charging mode, it is determined to charge the battery in the first charging mode.
[0078] In this embodiment, the charging device can only be adapted to the first charging mode and has a first charging state corresponding to the first charging mode. That is, when the electronic device is connected to the charging device to charge the battery, the power management module charges the battery in the first charging mode.
[0079] An embodiment of the present application provides a power management module 100, as Figure 6 shown, the power management module 100 is configured with a power input terminal INPUT and a power output terminal OUTPUT. The power management module 100 includes a first energy storage unit 110, a second energy storage unit 120, a third energy storage unit 150, a first switch unit 130, and a second switch unit 140. Among them, the power input terminal INPUT is used to connect to the charging device and receive the power supply signal provided by the charging device when connected to the charging device; the power output terminal OUTPUT is used to connect to the battery 20 to provide a charging signal to the battery 20. The third energy storage unit 150 is connected to the power output terminal OUTPUT. The first switch unit 130 and the second switch unit 140 change the conduction state between the power input terminal INPUT, the first energy storage unit 110, the second energy storage unit 120, and the power output terminal OUTPUT according to the indication of the charging control instruction, thereby changing the device units connected to the charging path in the power management module 100 and the connection relationship between the device units, so as to realize the switching of the power management module 100 between the first charging mode, the second charging mode, and the third charging mode.
[0080] In one embodiment, the circuit structure of the power management module can be as Figure 7As shown, the first energy storage unit 110 includes a first capacitor C1; the second energy storage unit 120 includes an inductor L1; the third energy storage unit 150 includes a second capacitor C2; the first switch unit 130 includes a first switch Q1, a second switch Q2, a third switch Q3, and a fourth switch Q4; the second switch unit 140 includes a fifth switch Q5 and a sixth switch Q6; the first end of the first switch Q1 is connected to the power input terminal INPUT, and the second end of the first switch Q1 is connected to the first end of the first capacitor C1; the first end of the second switch Q2 is connected to the second end of the first capacitor C1, and the second end of the second switch Q2 is grounded; the first end of the third switch Q3 is connected to the first end of the first capacitor C1, and the second end of the third switch Q3 is connected to the first end of the inductor L1; the first end of the fourth switch Q4 is connected to the second end of the first capacitor C1, and the second end of the fourth switch Q4 is connected to the first end of the inductor L1; the first end of the fifth switch Q5 is connected to the second end of the inductor L1, and the second end of the fifth switch Q5 is connected to the power output terminal OUTPUT; the first end of the sixth switch Q6 is connected to the second end of the inductor L1, and the second end of the sixth switch Q6 is grounded; the first end of the second capacitor C2 is connected to the power output terminal OUTPUT, and the second end is grounded.
[0081] Reference Figure 7 As shown, in one embodiment, the power management module 100 further includes a fourth capacitor C4. The first end of the fourth capacitor C4 is connected to the power input terminal INPUT, and the second end of the fourth capacitor C4 is grounded. The fourth capacitor C4 is used for voltage stabilization and filtering processing of the power supply signal.
[0082] As Figure 8 As shown, in one embodiment, when the power management module 100 charges the battery in the first charging mode, it includes the steps that are repeatedly executed:
[0083] Step 802, in the first stage, control the first switch unit 130 to conduct the power input terminal INPUT and the first end of the second energy storage unit 120, and control the second switch unit 140 to ground the second end of the second energy storage unit 120.
[0084] Reference Figure 9a As shown in the equivalent circuit of the first stage, in this stage, the power supply signal output by the charging device charges the second energy storage unit 120. Specifically, control the first switch Q1, the third switch Q3, and the sixth switch Q6 to conduct, and the second switch Q2, the fourth switch Q4, and the fifth switch Q5 to turn off, so that the first end of the inductor L1 is conducted with the power input terminal INPUT, and the second end of the inductor L1 is grounded, and the power supply signal charges the inductor L1.
[0085] Step 804, in the second stage, control the first switch unit 130 to conduct the power input terminal INPUT to the first end of the second energy storage unit 120, and control the second switch unit 140 to conduct the second end of the second energy storage unit 120 to the first end of the third energy storage unit 150.
[0086] Reference Figure 9b As shown in the equivalent circuit of the second stage, in this stage, the second energy storage unit 120 discharges and is superimposed with the power supply signal for boosting, and outputs a charging signal. Specifically, control the first switch Q1, the third switch Q3, and the fifth switch Q5 to conduct, and the second switch Q2, the fourth switch Q4, and the sixth switch Q6 to turn off, so that the first end of the inductor L1 is conducted to the power input terminal INPUT, and the second end of the inductor L1 is conducted to the power output terminal OUTPUT. At this time, the inductor L1 discharges and is superimposed with the power supply signal to achieve boosting.
[0087] In the first charging mode, by alternately executing the above two stages, the power supply signal is boosted and then a charging signal that meets the battery charging requirements is output.
[0088] In one embodiment, when the power management module 100 charges the battery in the second charging mode, control the first switch unit 130 to conduct the power input terminal INPUT to the first end of the second energy storage unit 120, and control the second switch unit 140 to conduct the second end of the second energy storage unit 120 to the first end of the third energy storage unit 150.
[0089] In the second charging mode, the output voltage of the charging device is equal to the input voltage of the battery, realizing direct charging and fast charging. Reference Figure 10 As shown in the equivalent circuit, after the charging device is connected, the second energy storage unit 120 will start charging. After reaching stability, the power supply signal provided by the charging device is all used to supply energy to the battery. Specifically, when the power management module 100 needs to work in the second charging mode, control the first switch Q1, the third switch Q3, and the fifth switch Q5 to conduct, and the second switch Q2, the fourth switch Q4, and the sixth switch Q6 to turn off, and directly conduct the power input terminal INPUT to the first end of the inductor L1. The inductor L1 works in a DC state, so that the input voltage and the output voltage of the charging circuit 100 are consistent, realizing direct charging and fast charging.
[0090] As Figure 11 shown, in one embodiment, when the power management module 100 charges the battery in the third charging mode, it includes steps 1102-step 1104 that are repeatedly executed:
[0091] Step 1102: In the first stage, control the first switch unit 130 to conduct the power input terminal INPUT to the first end of the first energy storage unit 110, conduct the second end of the first energy storage unit 110 to the first end of the second energy storage unit 120, and control the second switch unit 140 to conduct the second end of the second energy storage unit 120 to the first end of the third energy storage unit 150.
[0092] Reference Figure 12a According to the equivalent circuit of the first stage shown, connect the first energy storage unit 110 and the second energy storage unit 120 in series and connect them between the power input terminal INPUT and the power output terminal OUTPUT, and connect the third energy storage unit 150 in parallel with the first energy storage unit 110; at this time, the power supply signal is used to provide electrical energy for charging the first energy storage unit 110, the second energy storage unit 120, the third energy storage unit 150, and the battery 20, and after stepping down the power supply signal, output it to the battery 20. Specifically, control the first switch Q1, the fourth switch Q4, and the fifth switch Q5 to conduct, and the second switch Q2, the third switch Q3, and the sixth switch Q6 to turn off, so as to conduct the first end of the first capacitor C1 to the power input terminal INPUT, and conduct the second end of the first capacitor C1 to the first end of the inductor L1.
[0093] Step 1104: In the second stage, control the first switch unit 130 to conduct the first end of the first energy storage unit 110 to the first end of the second energy storage unit 120, ground the second end of the first energy storage unit 110, and control the second switch unit 140 to conduct the second end of the second energy storage unit 120 to the first end of the third energy storage unit 150.
[0094] Reference Figure 12b According to the equivalent circuit of the second stage shown, connect the first energy storage unit 110 and the second energy storage unit 120 in series and connect them in parallel with the third energy storage unit 150; at this time, the first energy storage unit 110, the second energy storage unit 120, and the third energy storage unit 150 jointly discharge to provide electrical energy for charging the battery 20. Specifically, control the second switch Q2, the third switch Q3, and the fifth switch Q5 to conduct, and the first switch Q1, the fourth switch Q4, and the sixth switch Q6 to turn off, so as to conduct the first end of the first capacitor C1 to the first end of the inductor L1, ground the second end of the first capacitor C1, and set the first capacitor C1 and the inductor L1 in series between the power input terminal INPUT and the power output terminal OUTPUT and connect them in parallel with the second capacitor C2.
[0095] In the first stage of the third charging mode, the second energy storage unit 120, the first energy storage unit 110, and the third energy storage unit 150 share the voltage with the battery 20, that is, the voltage of the charging signal is reduced to 1 / N of the power supply signal. The terminal voltages of the first energy storage unit 110 and the third energy storage unit 150 are both equal to the voltage of the charging signal. Then, it enters the second stage. The first energy storage unit 110, the second energy storage unit 120, and the third energy storage unit 150 discharge together to provide electrical energy for charging the battery 20. At this time, the voltage of the charging signal is still 1 / N of the power supply signal.
[0096] As Figure 13 shown, in one embodiment, when the power management module 100 charges the battery in the third charging mode, it includes steps 1302 - 1304 that are repeatedly executed:
[0097] Step 1302, in the first stage, control the first switch unit 130 to conduct the power input terminal INPUT with the first end of the first energy storage unit 110, ground the second end of the first energy storage unit 110, conduct the first end of the first energy storage unit 110 with the first end of the second energy storage unit 120, and control the second switch unit 140 to conduct the second end of the second energy storage unit 120 with the first end of the third energy storage unit 150.
[0098] Refer to Figure 14a the equivalent circuit of the first stage shown. The first energy storage unit 110 and the second energy storage unit 120 are connected in parallel; at this time, the power supply signal is used to provide electrical energy for charging the first energy storage unit 110, the second energy storage unit 120, the third energy storage unit 150, and the battery 20. After stepping down the power supply signal, it is output to the battery 20. Specifically, control the first switch Q1, the second switch Q2, the third switch Q3, and the fifth switch Q5 to conduct, and the fourth switch Q4 and the sixth switch Q6 to turn off, so as to conduct the first end of the first capacitor C1 with the power input terminal INPUT and the first end of the inductor L1 respectively, ground the second end of the first capacitor C1, so that the first capacitor C1 and the second capacitor C2 are connected in parallel, and the inductor L1 is arranged between the first end of the first capacitor C1 and the first end of the second capacitor C2 to step down the power supply signal.
[0099] Step 1304, in the second stage, control the first switch unit 130 to conduct the power input terminal INPUT with the first end of the first energy storage unit 110, ground the second end of the first energy storage unit 110, ground the first end of the second energy storage unit 120, and control the second switch unit 140 to conduct the second end of the second energy storage unit 120 with the first end of the third energy storage unit 150.
[0100] Refer to Figure 14aThe second-stage equivalent circuit shown enables the second energy storage unit 120 and the third energy storage unit 150 to jointly discharge to supply power to the battery 20. Specifically, control the first switch Q1, the second switch Q2, the fourth switch Q4, and the fifth switch Q5 to conduct, and turn off the third switch Q3 and the sixth switch Q6. Connect the first end of the first capacitor C1 to the power input terminal INPUT, connect the second end of the first capacitor C1 to the ground, and connect the first end of the inductor L1 to the ground, and connect the second end of the inductor L1 to the power output terminal OUTPUT, so that the inductor L1 and the second capacitor C2 form a discharge loop in parallel with the battery 20.
[0101] In the first stage of this embodiment, the first energy storage unit 110 is in parallel with the second energy storage unit 120, and the second energy storage unit 120 is in parallel with the third energy storage unit 150. At this time, a part of the electrical energy of the power supply signal is used to charge the first energy storage unit 110, the second energy storage unit 120, and the third energy storage unit 150, that is, the power supply signal is stepped down. And because the third energy storage unit 150 is in parallel with the battery 20, the terminal voltage of the third energy storage unit 150 is charged to be equal to the voltage of the charging signal. Subsequently, entering the second stage, only the second energy storage unit 120 and the third energy storage unit 150 discharge to provide electrical energy for charging the battery 20. At this time, the third energy storage unit 150 is in parallel with the battery unit 20, and the voltage of the charging signal is still 1 / N of the power supply signal.
[0102] As Figure 15 As shown, in one embodiment, the power management module 100 is configured with a power input terminal INPUT and a power output terminal OUTPUT. The power input terminal INPUT is used to connect a charging device; the power management module 100 includes a first energy storage unit 110, a second energy storage unit 120, a third energy storage unit 150, a fourth energy storage unit 160, a first switch unit 130, a second switch unit 140, and a third switch unit 170. The first end of the third energy storage unit 150 is connected to the power output terminal INPUT, and the second end of the third energy storage unit 150 is grounded. The first switch unit 130, the second switch unit 140, and the third switch unit 170 change the conduction states among the power input terminal INPUT, the first energy storage unit 110, the second energy storage unit 120, the third energy storage unit 150, and the fourth energy storage unit 160 to achieve the switching of the power management module 100 among the first charging mode, the second charging mode, and the third charging mode. In this embodiment, adding the fourth energy storage unit 160 and the third switch unit 170 can change the multiple relationship between the voltage of the power supply signal and the voltage of the charging signal in the third charging mode, and improve the compatibility of the electronic device 10 with the power adapter.
[0103] In one embodiment, the circuit structure of the power management module 100 can be as Figure 16As shown, the first energy storage unit 110 includes a first capacitor C1; the second energy storage unit 120 includes an inductor L1; the third energy storage unit 150 includes a second capacitor C2; the fourth energy storage unit 160 includes a third capacitor C3; the first switch unit 130 includes a first switch Q1, a second switch Q2, a third switch Q3, and a fourth switch Q4; the second switch unit 140 includes a fifth switch Q5 and a sixth switch Q6; the third switch unit 170 includes a seventh switch Q7, an eighth switch Q8, and a ninth switch Q9; the first end of the first switch Q1 is connected to the power input terminal INPUT, and the second end of the first switch Q1 is connected to the first end of the first capacitor C1; the first end of the second switch Q2 is connected to the second end of the first capacitor C1, and the second end of the second switch Q2 is grounded; the first end of the third switch Q3 is connected to the first end of the first capacitor C1, and the second end of the third switch Q3 is connected to the first end of the third capacitor C3; the first end of the fourth switch Q4 is connected to the second end of the first capacitor C1, and the second end of the fourth switch Q4 is connected to the first end of the third capacitor C3; the first end of the fifth switch Q5 is connected to the second end of the inductor L1, and the second end of the fifth switch Q5 is connected to the power output terminal OUTPUT; the first end of the sixth switch Q6 is connected to the second end of the inductor L1, and the second end of the sixth switch Q6 is grounded; the first end of the seventh switch Q7 is connected to the second end of the third capacitor C3, and the second end of the seventh switch Q7 is grounded; the first end of the eighth switch Q8 is connected to the first end of the third capacitor C3, and the second end of the eighth switch Q8 is connected to the first end of the inductor L1; the first end of the ninth switch Q9 is connected to the second end of the third capacitor C3, and the second end of the ninth switch Q9 is connected to the first end of the inductor L1; the first end of the second capacitor C2 is connected to the power output terminal OUTPUT, and the second end is grounded.
[0104] As Figure 17 shown, in one embodiment, when the power management module 100 charges the battery in the first charging mode, it includes the steps that are repeatedly executed:
[0105] Step 1702, in the first stage, control the first switch unit 130 and the third switch unit 170 to conduct the power input terminal INPUT and the first end of the second energy storage unit 120, and control the second switch unit 140 to ground the second end of the second energy storage unit 120.
[0106] Refer to Figure 18a the equivalent circuit of the first stage shown. In this stage, the second energy storage unit 120 is charged by the power supply signal. Specifically, control the first switch Q1, the third switch Q3, the sixth switch Q6, and the eighth switch Q8 to conduct, and turn off the second switch Q2, the fourth switch Q4, the fifth switch Q5, the seventh switch Q7, and the ninth switch Q9. Connect the first end of the inductor L1 to the power input terminal INPUT, and ground the second end of the inductor L1.
[0107] In step 1704, in the second stage, control the first switch unit 130 and the third switch unit 170 to conduct the power input terminal INPUT to the first end of the second energy storage unit 120, and control the second switch unit 140 to conduct the first end of the second energy storage unit 120 to the first end of the third energy storage unit 150.
[0108] Reference Figure 18b Referring to the equivalent circuit of the second stage shown, in this stage, discharge the second energy storage unit 120 and superimpose it on the power supply signal for boosting, and output a charging signal. Specifically, control the first switch Q1, the third switch Q3, the fifth switch Q5, and the eighth switch Q8 to conduct, and the second switch Q2, the fourth switch Q4, the sixth switch Q6, the seventh switch Q7, and the ninth switch Q9 to turn off, and conduct the first end of the inductor L1 to the power input terminal INPUT, and the second end of the inductor L1 to the power output terminal OUTPUT and the second capacitor C2.
[0109] In the first charging mode, by alternately executing the above two stages, boost the power supply signal and then output a charging signal that meets the battery charging requirements.
[0110] In one embodiment, when the power management module 100 charges the battery in the second charging mode, control the first switch unit and the third switch unit to conduct the power input terminal to the first end of the second energy storage unit, and control the second switch unit to conduct the first end of the second energy storage unit to the first end of the third energy storage unit.
[0111] In the second charging mode, the output voltage of the charging device is equal to the input voltage of the battery, realizing direct charging and fast charging. Refer to Figure 19 the equivalent circuit. After the charging device is connected, the second energy storage unit 120 will start charging. After reaching stability, the power supply signal provided by the charging device is all used to supply energy to the battery. Specifically, control the first switch Q1, the third switch Q3, the fifth switch Q5, and the eighth switch Q8 to conduct, and the second switch Q2, the fourth switch Q4, the sixth switch Q6, the seventh switch Q7, and the ninth switch Q9 to turn off, and directly conduct the first end of the inductor L1 to the power input terminal INPUT.
[0112] As Figure 20 shown, in one embodiment, when the power management module 100 charges the battery in the third charging mode, it includes steps 2002 - step 2004 that are repeatedly executed:
[0113] Step 2002: In the first stage, control the first switch unit 130 to conduct the power input terminal INPUT to the first end of the first energy storage unit 110, conduct the second end of the first energy storage unit 110 to the first end of the fourth energy storage unit 160, control the third switch unit 170 to conduct the second end of the fourth energy storage unit 160 to the first end of the second energy storage unit 120, and control the second switch unit 140 to conduct the second end of the second energy storage unit 120 to the first end of the third energy storage unit 150.
[0114] Reference Figure 21a Referring to the equivalent circuit shown, connect the first energy storage unit 110, the fourth energy storage unit 160, and the second energy storage unit 120 in series in sequence and connect them between the power input terminal INPUT and the power output terminal OUTPUT; at this time, the power supply signal is used to supply electrical energy for charging the first energy storage unit 110, the second energy storage unit 120, the third energy storage unit 150, the fourth energy storage unit 160, and the battery 20. Specifically, control the first switch Q1, the fourth switch Q4, the fifth switch Q5, and the ninth switch Q9 to conduct, and turn off the second switch Q2, the third switch Q3, the sixth switch Q6, the seventh switch Q7, and the eighth switch Q8, conduct the first end of the first capacitor C1 to the power input terminal INPUT, conduct the second end of the first capacitor C1 to the first end of the third capacitor C3, conduct the second end of the third capacitor C3 to the first end of the inductor L1, and conduct the second end of the inductor L1 to the power output terminal OUTPUT.
[0115] Step 2004: In the second stage, control the first switch unit 130 to conduct the first end of the first energy storage unit 110 to the first end of the fourth energy storage unit 160, ground the second end of the second energy storage unit 120, control the third switch unit 170 to conduct the first end of the fourth energy storage unit 160 to the first end of the second energy storage unit 120, ground the second end of the fourth energy storage unit 160, and control the second switch unit 140 to conduct the second end of the second energy storage unit 120 to the first end of the third energy storage unit 150.
[0116] Reference Figure 21bIn the equivalent circuit shown, the first energy storage unit 110 is connected in parallel with the fourth energy storage unit 160 and is connected between the second energy storage unit 120 and the power input terminal INPUT. At this time, the power input terminal INPUT is disconnected, and the first energy storage unit 110, the second energy storage unit 120, the third energy storage unit 150, and the fourth energy storage unit 160 discharge together to supply electrical energy to charge the battery 200. Specifically, the second switch Q2, the third switch Q3, the fifth switch Q5, and the seventh switch Q7 are controlled to conduct, and the first switch Q1, the fourth switch Q4, the sixth switch Q6, the eighth switch Q8, and the ninth switch Q9 are turned off. The first end of the first capacitor C1 is conducted with the first end of the inductor L1, the second end of the first capacitor C1 is grounded, the first end of the third capacitor C3 is conducted with the first end of the inductor L1, the second end of the third capacitor C3 is grounded, and the second end of the inductor L1 is conducted with the power output terminal OUTPUT.
[0117] In the first stage of the third charging mode, the first energy storage unit 110, the third energy storage unit 150, and the fourth energy storage unit 160 share the voltage with the battery 20, that is, the voltage of the charging signal is reduced to 1 / N of the power supply signal. The terminal voltages of the first energy storage unit 110, the third energy storage unit 150, and the fourth energy storage unit 160 are all equal to the voltage of the charging signal. Then, it enters the second stage, and the first energy storage unit 110, the second energy storage unit 120, the third energy storage unit 150, and the fourth energy storage unit 160 discharge together to supply electrical energy to charge the battery 20. At this time, the voltage of the charging signal is still 1 / N of the power supply signal.
[0118] It should be understood that although Figure 2-5 , Figure 8 , Figure 11 , Figure 13 , Figure 17 , Figure 20 the steps in the flowchart of Figure 2-5 , Figure 8 , Figure 11 , Figure 13 , Figure 17 , Figure 20 are shown in sequence according to the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear indication in this article, the execution of these steps has no strict order limit, and these steps can be executed in other orders. Moreover,
[0119] such as Figure 22As shown in the figure, an embodiment of the present application further provides a charging control device 300, which is applied to the power management module of an electronic device. The device includes:
[0120] A status information acquisition module 310, configured to acquire the status information of the charging device;
[0121] A voltage comparison module 320, configured to acquire the voltage value of the battery and compare the voltage value with a preset voltage threshold;
[0122] An instruction determination module 330, configured to determine a charging control instruction for the battery based on the status information of the charging device and according to the comparison result between the voltage value and the preset voltage threshold;
[0123] An instruction execution module 340, configured to execute a corresponding charging mode according to the charging control instruction; the charging mode includes a first charging mode, a second charging mode, and a third charging mode. In the first charging mode, the output voltage of the charging device is less than the input voltage of the battery. In the second charging mode, the output voltage of the charging device is equal to the input voltage of the battery. In the third charging mode, the output voltage of the charging device is N times the input voltage of the battery, and N is a positive integer greater than 1.
[0124] For the specific limitations of the charging control device, reference may be made to the limitations of the charging control method in the foregoing text, which will not be elaborated here. Each module in the above charging control device can be implemented in whole or in part by software, hardware, and their combinations. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory of the computer device in the form of software, so as to facilitate the processor to call and execute the operations corresponding to the above modules.
[0125] In one of the embodiments, a computer device is provided, including a memory and a processor. A computer program is stored in the memory. When the processor executes the computer program, the following steps are implemented:
[0126] Acquire the status information of the charging device;
[0127] Acquire the voltage value of the battery and compare the voltage value with a preset voltage threshold;
[0128] Based on the status information of the charging device, determine a charging control instruction for the battery according to the comparison result between the voltage value and the preset voltage threshold;
[0129] Execute corresponding charging modes according to the charging control instructions; the charging modes include a first charging mode, a second charging mode, and a third charging mode. In the first charging mode, the output voltage of the charging device is less than the input voltage of the battery. In the second charging mode, the output voltage of the charging device is equal to the input voltage of the battery. In the third charging mode, the output voltage of the charging device is N times the input voltage of the battery, and N is a positive integer greater than 1.
[0130] In one embodiment, when the processor executes the computer program, the following steps are further implemented:
[0131] Based on the charging device having a first charging state, a second charging state, and a third charging state corresponding to the first charging mode, the second charging mode, and the third charging mode respectively:
[0132] In response to the voltage value being less than the first voltage threshold, determine to charge the battery in the first charging mode;
[0133] In response to the voltage value being greater than the first voltage threshold and less than the second voltage threshold, determine to charge the battery in the third charging mode;
[0134] In response to the voltage value being greater than the second voltage threshold, determine to charge the battery in the first charging mode.
[0135] In one embodiment, when the processor executes the computer program, the following steps are further implemented:
[0136] Based on the charging device having a first charging state and a second charging state corresponding to the first charging mode and the second charging mode respectively:
[0137] In response to the voltage value being less than the first voltage threshold, determine to charge the battery in the first charging mode;
[0138] In response to the voltage value being greater than the first voltage threshold and less than the second voltage threshold, determine to charge the battery in the second charging mode;
[0139] In response to the voltage value being greater than the second voltage threshold, determine to charge the battery in the first charging mode.
[0140] In one embodiment, when the processor executes the computer program, the following steps are further implemented:
[0141] Based on the charging device having a first charging state corresponding to the first charging mode, determine to charge the battery in the first charging mode.
[0142] In one embodiment, when the processor executes the computer program, the following steps are further implemented:
[0143] In the first stage, control the first switch unit to conduct the power input terminal to the first end of the second energy storage unit, and control the second switch unit to ground the second end of the second energy storage unit;
[0144] In the second stage, control the first switch unit to conduct the power input terminal to the first end of the second energy storage unit, and control the second switch unit to conduct the second end of the second energy storage unit to the first end of the third energy storage unit.
[0145] In one embodiment, when the processor executes the computer program, the following steps are further implemented:
[0146] Control the first switch unit to conduct the power input terminal to the first end of the second energy storage unit, and control the second switch unit to conduct the second end of the second energy storage unit to the first end of the third energy storage unit.
[0147] In one embodiment, when the processor executes the computer program, the following steps are further implemented:
[0148] In the first stage, control the first switch unit to conduct the power input terminal to the first end of the first energy storage unit, conduct the second end of the first energy storage unit to the first end of the second energy storage unit, and control the second switch unit to conduct the second end of the second energy storage unit to the first end of the third energy storage unit;
[0149] In the second stage, control the first switch unit to conduct the first end of the first energy storage unit to the first end of the second energy storage unit, ground the second end of the first energy storage unit, and control the second switch unit to conduct the second end of the second energy storage unit to the first end of the third energy storage unit.
[0150] In one embodiment, when the processor executes the computer program, the following steps are further implemented:
[0151] In the first stage, control the first switch unit to conduct the power input terminal to the first end of the first energy storage unit, ground the second end of the first energy storage unit, conduct the first end of the first energy storage unit to the first end of the second energy storage unit, and control the second switch unit to conduct the second end of the second energy storage unit to the first end of the third energy storage unit;
[0152] In the second stage, control the first switch unit to conduct the power input terminal to the first end of the first energy storage unit, ground the second end of the first energy storage unit, ground the first end of the second energy storage unit, and control the second switch unit to conduct the second end of the second energy storage unit to the first end of the third energy storage unit.
[0153] In one embodiment, when the processor executes the computer program, the following steps are further implemented:
[0154] In the first stage, control the first switch unit and the third switch unit to conduct the power input terminal to the first end of the second energy storage unit, and control the second switch unit to ground the second end of the second energy storage unit;
[0155] In the second stage, control the first switch unit and the third switch unit to conduct the power input terminal to the first end of the second energy storage unit, and control the second switch unit to conduct the first end of the second energy storage unit to the first end of the third energy storage unit.
[0156] In one embodiment, when the processor executes the computer program, the following steps are further implemented:
[0157] Control the first switch unit and the third switch unit to conduct the power input terminal to the first end of the second energy storage unit, and control the second switch unit to conduct the first end of the second energy storage unit to the first end of the third energy storage unit.
[0158] In one embodiment, when the processor executes the computer program, the following steps are further implemented:
[0159] In the first stage, control the first switch unit to conduct the power input terminal to the first end of the first energy storage unit, conduct the second end of the first energy storage unit to the first end of the fourth energy storage unit, control the third switch unit to conduct the second end of the fourth energy storage unit to the first end of the second energy storage unit, and control the second switch unit to conduct the second end of the second energy storage unit to the first end of the third energy storage unit;
[0160] In the second stage, control the first switch unit to conduct the first end of the first energy storage unit to the first end of the fourth energy storage unit, ground the second end of the second energy storage unit, control the third switch unit to conduct the first end of the fourth energy storage unit to the first end of the second energy storage unit, ground the second end of the fourth energy storage unit, and control the second switch unit to conduct the second end of the second energy storage unit to the first end of the third energy storage unit.
[0161] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:
[0162] Obtain the status information of the charging device;
[0163] Obtain the voltage value of the battery, and compare the voltage value with a preset voltage threshold;
[0164] Based on the status information of the charging device, determine a charging control instruction for the battery according to the comparison result of the voltage value and the preset voltage threshold;
[0165] Execute a corresponding charging mode according to the charging control instruction; the charging mode includes a first charging mode, a second charging mode, and a third charging mode. In the first charging mode, the output voltage of the charging device is less than the input voltage of the battery. In the second charging mode, the output voltage of the charging device is equal to the input voltage of the battery. In the third charging mode, the output voltage of the charging device is N times the input voltage of the battery, and N is a positive integer greater than 1.
[0166] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0167] Based on the charging device having a first charging state, a second charging state, and a third charging state corresponding to the first charging mode, the second charging mode, and the third charging mode respectively:
[0168] In response to the voltage value being less than a first voltage threshold, determine to charge the battery in the first charging mode;
[0169] In response to the voltage value being greater than the first voltage threshold and less than a second voltage threshold, determine to charge the battery in the third charging mode;
[0170] In response to the voltage value being greater than the second voltage threshold, determine to charge the battery in the first charging mode.
[0171] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0172] Based on the charging device having a first charging state and a second charging state corresponding to the first charging mode and the second charging mode respectively:
[0173] In response to the voltage value being less than a first voltage threshold, determine to charge the battery in the first charging mode;
[0174] In response to the voltage value being greater than the first voltage threshold and less than the second voltage threshold, it is determined to charge the battery in the second charging mode;
[0175] In response to the voltage value being greater than the second voltage threshold, it is determined to charge the battery in the first charging mode.
[0176] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented:
[0177] Based on the charging device having a first charging state corresponding to the first charging mode, it is determined to charge the battery in the first charging mode.
[0178] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented:
[0179] In the first stage, control the first switch unit to conduct the power input terminal to the first end of the second energy storage unit, and control the second switch unit to ground the second end of the second energy storage unit;
[0180] In the second stage, control the first switch unit to conduct the power input terminal to the first end of the second energy storage unit, and control the second switch unit to conduct the second end of the second energy storage unit to the first end of the third energy storage unit.
[0181] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented:
[0182] Control the first switch unit to conduct the power input terminal to the first end of the second energy storage unit, and control the second switch unit to conduct the second end of the second energy storage unit to the first end of the third energy storage unit.
[0183] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented:
[0184] In the first stage, control the first switch unit to conduct the power input terminal to the first end of the first energy storage unit, conduct the second end of the first energy storage unit to the first end of the second energy storage unit, and control the second switch unit to conduct the second end of the second energy storage unit to the first end of the third energy storage unit;
[0185] In the second stage, control the first switch unit to conduct the first end of the first energy storage unit to the first end of the second energy storage unit, ground the second end of the first energy storage unit, and control the second switch unit to conduct the second end of the second energy storage unit to the first end of the third energy storage unit.
[0186] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0187] In the first stage, control the first switch unit to conduct the power input terminal to the first end of the first energy storage unit, ground the second end of the first energy storage unit, conduct the first end of the first energy storage unit to the first end of the second energy storage unit, and control the second switch unit to conduct the second end of the second energy storage unit to the first end of the third energy storage unit;
[0188] In the second stage, control the first switch unit to conduct the power input terminal to the first end of the first energy storage unit, ground the second end of the first energy storage unit, ground the first end of the second energy storage unit, and control the second switch unit to conduct the second end of the second energy storage unit to the first end of the third energy storage unit.
[0189] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0190] In the first stage, control the first switch unit and the third switch unit to conduct the power input terminal to the first end of the second energy storage unit, and control the second switch unit to ground the second end of the second energy storage unit;
[0191] In the second stage, control the first switch unit and the third switch unit to conduct the power input terminal to the first end of the second energy storage unit, and control the second switch unit to conduct the first end of the second energy storage unit to the first end of the third energy storage unit.
[0192] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0193] Control the first switch unit and the third switch unit to conduct the power input terminal to the first end of the second energy storage unit, and control the second switch unit to conduct the first end of the second energy storage unit to the first end of the third energy storage unit.
[0194] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0195] In the first stage, control the first switch unit to conduct the power input terminal to the first end of the first energy storage unit, conduct the second end of the first energy storage unit to the first end of the fourth energy storage unit, control the third switch unit to conduct the second end of the fourth energy storage unit to the first end of the second energy storage unit, and control the second switch unit to conduct the second end of the second energy storage unit to the first end of the third energy storage unit;
[0196] In the second stage, control the first switch unit to conduct the first end of the first energy storage unit and the first end of the fourth energy storage unit, ground the second end of the second energy storage unit, control the third switch unit to conduct the first end of the fourth energy storage unit and the first end of the second energy storage unit, ground the second end of the fourth energy storage unit, and control the second switch unit to conduct the second end of the second energy storage unit and the first end of the third energy storage unit.
[0197] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, storage, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memories. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.
[0198] In the description of this specification, the description with reference to terms such as "one of the embodiments", "exemplary", "specific", etc. means that the specific features, structures, materials or features described in connection with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic description of the above terms does not necessarily refer to the same embodiment or example.
[0199] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope described in this specification.
[0200] The above-described embodiments merely represent several implementation manners of the present application. The description thereof is relatively specific and detailed, but it should not be construed as a limitation on the scope of the invention patent. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all fall within the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the appended claims.
Claims
1. A charging control method, characterized in that, A power management module applied to an electronic device charges a battery of the electronic device through a charging device. The battery has a series-connected dual-cell structure. The method includes: Obtaining status information of the charging device; Obtaining a voltage value of the battery and comparing the voltage value with a preset voltage threshold; Based on the status information of the charging device, determining a charging control instruction for the battery according to a comparison result between the voltage value and the preset voltage threshold; Executing a corresponding charging mode according to the charging control instruction; the charging mode includes a first charging mode, a second charging mode, and a third charging mode. In the first charging mode, an output voltage of the charging device is less than an input voltage of the battery. In the second charging mode, the output voltage of the charging device is equal to the input voltage of the battery. In the third charging mode, the output voltage of the charging device is N times the input voltage of the battery, and N is a positive integer greater than 1; The power management module is configured with a power input terminal and a power output terminal. The power input terminal is used to connect to the charging device; the power management module includes a first energy storage unit, a second energy storage unit, a third energy storage unit, a first switch unit, and a second switch unit. A first end of the third energy storage unit is connected to the power output terminal, and a second end of the third energy storage unit is grounded; The executing a corresponding charging mode according to the charging control instruction includes: Controlling the first switch unit and the second switch unit according to the charging control instruction to change conduction states of the power input terminal, the first energy storage unit, and the second energy storage unit, so as to implement switching of the power management module between the first charging mode, the second charging mode, and the third charging mode.
2. The charging control method according to claim 1, wherein The determining a charging control instruction for the battery based on the status information of the charging device and according to a comparison result between the voltage value and the preset voltage threshold includes: Based on the charging device having a first charging state, a second charging state, and a third charging state respectively corresponding to the first charging mode, the second charging mode, and the third charging mode: In response to the voltage value being less than a first voltage threshold, determining to charge the battery in the first charging mode; In response to the voltage value being greater than the first voltage threshold and less than a second voltage threshold, determining to charge the battery in the third charging mode; In response to the voltage value being greater than the second voltage threshold, determining to charge the battery in the first charging mode.
3. The charging control method according to claim 1, wherein, The determining a charging control instruction for the battery based on the status information of the charging device and according to a comparison result between the voltage value and the preset voltage threshold includes: Based on the charging device having a first charging state and a second charging state respectively corresponding to the first charging mode and the second charging mode: In response to the voltage value being less than a first voltage threshold, determining to charge the battery in the first charging mode; In response to the voltage value being greater than the first voltage threshold and less than a second voltage threshold, determining to charge the battery in the second charging mode; In response to the voltage value being greater than the second voltage threshold, it is determined to charge the battery in the first charging mode.
4. The charging control method according to claim 1, wherein Based on the status information of the charging device, according to the comparison result between the voltage value and the preset voltage threshold, determining the charging control instruction for the battery includes: Based on the charging device having a first charging state corresponding to the first charging mode, it is determined to charge the battery in the first charging mode.
5. The charging control method according to any one of claims 2-4, characterized in that, The step of charging the battery in the first charging mode includes the following steps that are alternately executed: In the first stage, control the first switch unit to conduct the power input terminal to the first end of the second energy storage unit, and control the second switch unit to ground the second end of the second energy storage unit; In the second stage, control the first switch unit to conduct the power input terminal to the first end of the second energy storage unit, and control the second switch unit to conduct the second end of the second energy storage unit to the first end of the third energy storage unit.
6. The charging control method according to claim 5, wherein The step of charging the battery in the second charging mode includes: Control the first switch unit to conduct the power input terminal to the first end of the second energy storage unit, and control the second switch unit to conduct the second end of the second energy storage unit to the first end of the third energy storage unit.
7. The charging control method according to claim 5, characterized in that The step of charging the battery in the third charging mode includes the following steps that are alternately executed: In the first stage, control the first switch unit to conduct the power input terminal to the first end of the first energy storage unit, conduct the second end of the first energy storage unit to the first end of the second energy storage unit, and control the second switch unit to conduct the second end of the second energy storage unit to the first end of the third energy storage unit; In the second stage, control the first switch unit to conduct the first end of the first energy storage unit to the first end of the second energy storage unit, ground the second end of the first energy storage unit, and control the second switch unit to conduct the second end of the second energy storage unit to the first end of the third energy storage unit.
8. The charging control method according to claim 5, wherein The step of charging the battery in the third charging mode includes the following steps that are alternately executed: In the first stage, control the first switch unit to conduct the power input terminal to the first end of the first energy storage unit, ground the second end of the first energy storage unit, conduct the first end of the first energy storage unit to the first end of the second energy storage unit, and control the second switch unit to conduct the second end of the second energy storage unit to the first end of the third energy storage unit; In the second stage, control the first switch unit to conduct the power input terminal to the first end of the first energy storage unit, ground the second end of the first energy storage unit, ground the first end of the second energy storage unit, and control the second switch unit to conduct the second end of the second energy storage unit to the first end of the third energy storage unit.
9. The charging control method according to any one of claims 2-4, characterized in that The power management module further includes a fourth energy storage unit and a third switch unit; The step of charging the battery in the first charging mode includes the following steps that are alternately executed: In the first stage, control the first switch unit and the third switch unit to conduct the power input terminal to the first end of the second energy storage unit, and control the second switch unit to ground the second end of the second energy storage unit; In the second stage, control the first switch unit and the third switch unit to conduct the power input terminal to the first end of the second energy storage unit, and control the second switch unit to conduct the first end of the second energy storage unit to the first end of the third energy storage unit.
10. The charging control method according to claim 9, wherein, The steps of charging the battery in the second charging mode include: Control the first switch unit and the third switch unit to conduct the power input terminal to the first end of the second energy storage unit, and control the second switch unit to conduct the first end of the second energy storage unit to the first end of the third energy storage unit.
11. The charging control method according to claim 9, characterized in that The steps of charging the battery in the third charging mode include the following steps that are alternately executed: In the first stage, control the first switch unit to conduct the power input terminal to the first end of the first energy storage unit, conduct the second end of the first energy storage unit to the first end of the fourth energy storage unit, control the third switch unit to conduct the second end of the fourth energy storage unit to the first end of the second energy storage unit, and control the second switch unit to conduct the second end of the second energy storage unit to the first end of the third energy storage unit; In the second stage, control the first switch unit to conduct the first end of the first energy storage unit to the first end of the fourth energy storage unit, ground the second end of the second energy storage unit, control the third switch unit to conduct the first end of the fourth energy storage unit to the first end of the second energy storage unit, ground the second end of the fourth energy storage unit, and control the second switch unit to conduct the second end of the second energy storage unit to the first end of the third energy storage unit.
12. A charging control device, characterized in that, A power management module applied to an electronic device charges the battery of the electronic device through a charging device. The battery has a series dual-cell structure. The device includes: A status information acquisition module for acquiring the status information of the charging device; A voltage comparison module for acquiring the voltage value of the battery and comparing the voltage value with a preset voltage threshold; An instruction determination module for determining a charging control instruction for the battery based on the status information of the charging device and according to the comparison result of the voltage value and the preset voltage threshold; An instruction execution module for executing a corresponding charging mode according to the charging control instruction; the charging modes include a first charging mode, a second charging mode, and a third charging mode. In the first charging mode, the output voltage of the charging device is less than the input voltage of the battery. In the second charging mode, the output voltage of the charging device is equal to the input voltage of the battery. In the third charging mode, the output voltage of the charging device is N times the input voltage of the battery, and N is a positive integer greater than 1; The power management module is configured with a power input terminal and a power output terminal. The power input terminal is used to connect to the charging device. The power management module includes a first energy storage unit, a second energy storage unit, a third energy storage unit, a first switching unit, and a second switching unit. A first end of the third energy storage unit is connected to the power output terminal, and a second end of the third energy storage unit is grounded. Performing a corresponding charging mode according to the charging control instruction includes: Controlling the first switching unit and the second switching unit according to the charging control instruction to change the conduction states of the power input terminal, the first energy storage unit, and the second energy storage unit, so as to realize the switching of the power management module among the first charging mode, the second charging mode, and the third charging mode.
13. An electronic device, characterized in that, including: a battery, which is a series dual-cell structure; a power management module for charging the battery when a charging device is connected; a controller, including a memory and a processor. A computer program is stored in the memory. When the computer program is executed by the processor, the processor executes the steps of the method according to any one of claims 1 to 11.
14. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, the steps of the method according to any one of claims 1 to 11 are implemented.
Citation Information
Patent Citations
Electronic device, charger, charging system, and charging method
CN106537719A
Electronic device and charging method thereof
CN108233451A
Charging circuit, method and device and electronic equipment
CN111525646A
Charging control method of earphone battery, charging circuit and earphone
CN112787382A