Charging Control Method, Control Device, Electronic Device and Storage Medium
By obtaining the charging device status and battery voltage value, determining the charging control command, and switching three charging modes, the problem of electronic devices being unable to be compatible with different adapters is solved, and charging efficiency and compatibility are improved.
Patent Information
- Application Number
- CN202110907968.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-09
- Publication Date
- 2025-07-11
- Estimated Expiration
- 2041-08-09
AI Technical Summary
Existing electronic devices are not compatible with charging adapters with different technical principles, resulting in charging efficiency and compatibility issues.
By obtaining the state information of the charging device and the battery voltage value, comparing with the preset voltage threshold, determining the charging control command, and switching three charging modes: 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.
Improves the compatibility of electronic devices with adapters, realizes switching and adjustment between different charging modes, ensuring charging efficiency and safety.
Smart Images

Figure CN113675914B_ABST
Abstract
Description
Technical Field
[0001] The present invention 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 also been continuously increased, and the demand for charging efficiency is also getting higher and higher. Therefore, fast charging technology has emerged. However, current electronic devices need to use a dedicated fast charging adapter to perform fast charging and cannot be compatible with adapters with different technical principles. Summary of the Invention
[0003] The present 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, and the battery of the electronic device is charged by a charging device. 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 greater 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 greater 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;
[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. 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 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. 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 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 1 It is a schematic diagram of the application environment of a charging circuit in an embodiment;
[0022] Figure 2 One of the schematic flowcharts of the charging control method according to an embodiment;
[0023] Figure 3 Another one of the schematic flowcharts of the charging control method according to an embodiment;
[0024] Figure 4 Still another one of the schematic flowcharts of the charging control method according to an embodiment;
[0025] Figure 5 Yet another one of the schematic flowcharts of the charging control method according to an embodiment;
[0026] Figure 6 The structural block diagram of the power management module according to an embodiment;
[0027] Figure 7 The schematic circuit diagram of the power management module according to an embodiment;
[0028] Figure 8 The schematic flowchart of the power management module executing the first charging mode according to an embodiment;
[0029] Figure 9a The equivalent circuit schematic diagram in the first stage when the power management module executes the first charging mode according to an embodiment;
[0030] Figure 9b The equivalent circuit schematic diagram in the second stage when the power management module executes the first charging mode according to an embodiment;
[0031] Figure 9c The equivalent circuit schematic diagram in the third stage when the power management module executes the first charging mode according to an embodiment;
[0032] Figure 9d The equivalent circuit schematic diagram in the fourth stage when the power management module executes the first charging mode according to an embodiment;
[0033] Figure 10 The equivalent circuit schematic diagram when the power management module executes the second charging mode according to an embodiment;
[0034] Figure 11 The schematic flowchart of the power management module executing the third charging mode according to an embodiment;
[0035] Figure 12a The equivalent circuit schematic diagram in the first stage when the power management module executes the third charging mode according to an embodiment;
[0036] Figure 12b The equivalent circuit schematic diagram in the second stage when the power management module executes the third charging mode according to an embodiment;
[0037] Figure 13 Block diagram of the power management module according to another embodiment;
[0038] Figure 14 Schematic diagram of the circuit structure of the power management module according to another embodiment;
[0039] Figure 15 Schematic diagram of the process of the power management module executing the first charging mode according to another embodiment;
[0040] Figure 16a Schematic diagram of the equivalent circuit in the first stage when the power management module executes the first charging mode according to another embodiment;
[0041] Figure 16b Schematic diagram of the equivalent circuit in the second stage when the power management module executes the first charging mode according to another embodiment;
[0042] Figure 16c Schematic diagram of the equivalent circuit in the third stage when the power management module executes the first charging mode according to another embodiment;
[0043] Figure 16d Schematic diagram of the equivalent circuit in the fourth stage when the power management module executes the first charging mode according to another embodiment;
[0044] Figure 17 Schematic diagram of the equivalent circuit when the power management module executes the second charging mode according to another embodiment;
[0045] Figure 18 Schematic diagram of the process of the power management module executing the third charging mode according to another embodiment;
[0046] Figure 19a Schematic diagram of the equivalent circuit in the first stage when the power management module executes the third charging mode according to another embodiment;
[0047] Figure 19b Schematic diagram of the equivalent circuit in the second stage when the power management module executes the third charging mode according to another embodiment;
[0048] Figure 20 Block diagram of the charging control device according to an embodiment. Detailed implementation manners
[0049] To facilitate the understanding of the present application, the present application will be described more comprehensively below with reference to the relevant drawings. Embodiments of the present application are given in the drawings. However, the present application can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, these embodiments are provided to make the disclosure of the present application more thorough and comprehensive.
[0050] 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 in conjunction with 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.
[0051] 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 the first feature from another feature. 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.
[0052] 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 clearly and specifically defined. In the description of the present application, the meaning of "above" includes the number itself. For example, two or above includes two, unless otherwise clearly and specifically defined.
[0053] 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 a transmission of electrical signals or data between the connected objects, should be understood as "electrical connection", "communication connection", etc.
[0054] 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 Figure 1 shown. 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 notebook 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.
[0055] As Figure 2 shown, an embodiment of the present application provides a charging control method, including steps 202 - step 208:
[0056] Step 202, obtaining the status information of the charging device;
[0057] Step 204, obtain the voltage value of the battery, and compare the voltage value with a preset voltage threshold;
[0058] 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;
[0059] 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.
[0060] 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 adopted, 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 judge 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.
[0061] 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 greater than the input voltage of the battery (i.e., the voltage of the charging signal). 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. 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.
[0062] The above charging control method, by obtaining the status information of the charging device and the voltage value of the battery, comparing the voltage value with a preset voltage threshold, based on the status information of the charging device, combining the comparison result between the voltage value and the preset voltage threshold, determining a charging control instruction for the battery, and executing a 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.
[0063] 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 one-to-one to a first charging mode, a second charging mode, and a third charging mode respectively, the charging control instruction for the battery is determined according to the comparison result between the voltage value and the preset voltage threshold based on the state information of the charging device, including steps 302 - 306:
[0064] Step 302, in response to the voltage value being less than the first voltage threshold, it is determined to charge the battery in the first charging mode;
[0065] Step 304, 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 third charging mode;
[0066] Step 306, 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.
[0067] 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 one-to-one 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 between the voltage value and the preset first voltage threshold and second voltage threshold, it is determined to execute the first charging mode or the third charging mode.
[0068] 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, it is necessary to perform pre-charging 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 20 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 in an approximately fully charged state.
[0069] 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.
[0070] As Figure 4As shown, in one embodiment, based on the charging device having a first charging state and a second charging state corresponding one-to-one to a first charging mode and a second charging mode respectively, the charging control instruction for the battery is determined according to the comparison result between the voltage value and the preset voltage threshold based on the status information of the charging device, including steps 402 - 406:
[0071] Step 402, in response to the voltage value being less than the first voltage threshold, determine to charge the battery in the first charging mode;
[0072] Step 404, 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;
[0073] Step 406, in response to the voltage value being greater than the second voltage threshold, determine to charge the battery in the first charging mode.
[0074] 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 one-to-one 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.
[0075] 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 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 in an approximately fully charged state.
[0076] 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.
[0077] As Figure 5 shown, in one embodiment, based on the charging device having a first charging state corresponding to the first charging mode, the charging control instruction for the battery is determined according to the comparison result between the voltage value and the preset voltage threshold based on the status information of the charging device, including:
[0078] Step 502: 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.
[0079] 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.
[0080] 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, and a first switch unit 130. 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, and the second end of the second energy storage unit 120 is connected to the power output terminal OUTPUT. The first switch unit 130 changes the conduction state among the first energy storage unit 110, the second energy storage unit 120, and the power input terminal INPUT according to the indication of the charging control instruction, and further changes the device units connected to the charging path in the power management module 100 and the connection relationship of each device unit, 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.
[0081] In one embodiment, the circuit structure of the power management module can be as Figure 7 shown. The first energy storage unit 110 includes a first capacitor C1. 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 energy storage unit 120 includes a second capacitor C2 and an inductor L1. Among them, 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 second end of the third switch Q3; the second end of the inductor L1 is connected to the power output terminal OUTPUT; the first end of the second capacitor C2 is connected to the second end of the inductor L1, and the second end of the second capacitor C2 is grounded.
[0082] Refer to Figure 7As 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 to perform voltage stabilization and filtering processing on the power supply signal.
[0083] As Figure 8 shown, in one embodiment, when the power management module 100 charges the battery in the first charging mode, it includes the steps of repeating execution:
[0084] 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.
[0085] Refer to Figure 9a the equivalent circuit of the first stage shown. In this stage, the power supply signal output by the charging device charges the second energy storage unit 120 and the battery 20. Specifically, in the first stage, control the first switch Q1 and the third switch Q3 to conduct, and the second switch Q2 and the fourth switch Q4 to turn off, so as to conduct the power input terminal INPUT and the first end of the inductor L1, charge the inductor L1 and the second capacitor C2, and charge the battery 20.
[0086] Step 804, in the second stage, control the first switch unit 130 to conduct the power input terminal INPUT and the first end of the first energy storage unit 110, and ground the second end of the first energy storage unit 110.
[0087] Refer to Figure 9b the equivalent circuit of the second stage shown. In this stage, the power supply signal output by the charging device charges the first energy storage unit 110. Specifically, in the second stage, control the first switch Q1 and the second switch Q2 to conduct, and the third switch Q3 and the fourth switch Q4 to turn off, conduct the first end of the first capacitor C1 and the power input terminal INPUT, and ground the second end of the first capacitor C1 to charge the first capacitor C1.
[0088] Step 806, in the third 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.
[0089] Refer to Figure 9c the equivalent circuit of the third stage shown. In this stage, the power supply signal output by the charging device charges the second energy storage unit 120 and the battery 20. Specifically, in the third stage, control the first switch Q1 and the third switch Q3 to conduct, and the second switch Q2 and the fourth switch Q4 to turn off, so as to conduct the power input terminal INPUT and the first end of the inductor L1, charge the inductor L1 and the second capacitor C2, and charge the battery 20.
[0090] Step 808: In the fourth stage, control the first switch unit 130 to conduct the first end of the first energy storage unit 110 with the first end of the second energy storage unit 120, and ground the second end of the first energy storage unit 110.
[0091] Refer to Figure 9d As shown in the equivalent circuit of the fourth stage, at this time, the power input terminal INPUT is cut off, and the first energy storage unit 110 and the second energy storage unit 120 are discharged in parallel to provide electrical energy for charging the battery 20. Specifically, in the fourth stage, control the second switch Q2 and the third switch Q3 to conduct, and the first switch Q1 and the fourth switch Q4 to turn off, conduct the first end of the first capacitor C1 with the first end of the inductor L1, and ground the second end of the first capacitor C1, so that the first capacitor C1, the inductor L1 and the second capacitor C2 are discharged to charge the battery 20.
[0092] In the first charging mode, by repeatedly executing Step 802 - Step 808, the power supply signal is stepped down and then used to charge the battery 20.
[0093] 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 with the first end of the second energy storage unit 120.
[0094] 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 10 the equivalent circuit. After the charging device is connected, the second energy storage unit 120 will start to charge. 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 and the third switch Q3 to conduct, and the second switch Q2 and the fourth switch Q4 to turn off, and directly conduct the power input terminal INPUT with the first end of the inductor L1.
[0095] As Figure 11 shown, in one embodiment, when the power management module 100 charges the battery in the third charging mode, it includes repeatedly executing Step 1102 - Step 1104:
[0096] Step 1102: In the first stage, control the first switch unit to conduct the power input terminal with the first end of the first energy storage unit, and conduct the second end of the first energy storage unit with the first end of the second energy storage unit.
[0097] Refer to Figure 12aFor the first-stage equivalent circuit shown, in the first stage, control the first switch Q1 and the fourth switch Q4 to conduct, and the second switch Q2 and the third switch Q3 to turn off, so as to connect the first end of the first capacitor C1 to the power input terminal INPUT, and connect the second end of the first capacitor C1 to the inductor L1.
[0098] In the first stage, conduct the second path between the second energy storage unit 120 and the power input terminal INPUT, and the third path between the second energy storage unit 120 and the first energy storage unit 110, and connect the second energy storage unit 120 between the power input terminal INPUT and the first energy storage unit 110. At this time, the second energy storage unit 120 and the first energy storage unit 110 are in series, and the power supply signal is used to provide electrical energy for charging the first energy storage unit 110, the second energy storage unit 120, and the battery unit 200.
[0099] Step 1104, in the second stage, control the first switch unit to connect the first end of the first energy storage unit to the first end of the second energy storage unit, and ground the second end of the first energy storage unit.
[0100] Reference Figure 12b For the second-stage equivalent circuit shown, in the second stage, control the second switch Q2 and the third switch Q3 to conduct, and the first switch Q1 and the fourth switch Q4 to turn off, so as to connect the first end of the first capacitor C1 to the inductor L1, and ground the second end of the first capacitor C1, so that the first capacitor C1 is in parallel with the first energy storage unit 110. In this stage, the second energy storage unit 120 is in parallel with the first energy storage unit 110, and the power input terminal INPUT is disconnected. At this time, the second energy storage unit 120 and the first energy storage unit 110 discharge together to provide electrical energy for charging the battery unit 200.
[0101] In the first stage of the third charging mode, the second energy storage unit 120, the first energy storage unit 110, and the battery 20 are voltage-divided, 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 second energy storage unit 120 are both equal to the voltage of the charging signal. Then, enter the second stage, and the second energy storage unit 120 and the first energy storage unit 110 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.
[0102] As Figure 13As shown, in one embodiment, the power management module 100 is configured with a power input terminal and a power output terminal. The power input terminal is used to connect to a charging device, and the power output terminal is used to connect to a battery. The power management module 100 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. The second end of the second energy storage unit is connected to the power output terminal. The first switch unit 130 and the second switch unit change the conduction states between the first energy storage unit 110, the second energy storage unit 120, the third energy storage unit, and the power input terminal INPUT according to the indication of a charging control instruction, thereby changing the device units connected to the charging path accessed by the power management module 100 and the connection relationships of the device units, so as to implement the switching of the power management module 100 between a first charging mode, a second charging mode, and a third charging mode. In this embodiment, adding the third energy storage unit 140 and the second switch unit 150 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 with the power adapter.
[0103] In one embodiment, the circuit structure of the power management module 100 can be as Figure 14 shown. The first energy storage unit 110 includes a first capacitor C1, the second energy storage unit 120 includes an inductor L1 and a second capacitor C2, the third energy storage unit 140 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, and the second switch unit 150 includes a fifth switch Q5, a sixth switch Q6, and a seventh switch Q7. Among them, 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 second end of the third switch Q3; the first end of the fifth switch Q5 is connected to the second end of the third capacitor C3, and the second end of the fifth switch Q5 is grounded; the first end of the sixth switch Q6 is connected to the first end of the third capacitor C3, and the second end of the sixth switch Q6 is connected to the first end of the inductor L1; 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 connected to the second end of the sixth switch Q6; the second end of the inductor L1 is connected to the power output terminal OUTPUT; the first end of the second capacitor C2 is connected to the second end of the inductor L1, and the second end of the third capacitor C3 is grounded.
[0104] As Figure 15As shown, in one embodiment, when the power management module 100 charges the battery in the first charging mode, it includes the following steps that are repeatedly executed:
[0105] Step 1502, in the first stage, control the first switch unit and the second switch unit to conduct the power input terminal to the first end of the second energy storage unit.
[0106] Reference Figure 16a 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 and the battery 20. Specifically, in the first stage, 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, the fifth switch Q5, and the seventh switch Q7 to turn off, so as to conduct the power input terminal INPUT to the first end of the inductor L1, charge the inductor L1 and the second capacitor C2, and charge the battery 20.
[0107] Step 1504, in the second stage, control the second switch unit to conduct the power input terminal to the first end of the third energy storage unit and ground the second end of the third energy storage unit.
[0108] Reference Figure 16b As shown in the equivalent circuit of the second stage, in this stage, the power supply signal provided by the charging device charges the third energy storage unit. Specifically, the power management module 100 controls the first switch Q1, the third switch Q3, and the fifth switch Q5 to conduct, and the second switch Q2, the fourth switch Q4, the sixth switch Q6, and the seventh switch Q7 to turn off, conduct the first end of the third capacitor C3 to the power input terminal INPUT, ground the second end of the third capacitor C3, and charge the third capacitor C3.
[0109] Step 1506, in the third stage, control the first switch unit and the second switch unit to conduct the power input terminal to the first end of the second energy storage unit.
[0110] Reference Figure 16c As shown in the equivalent circuit of the third stage, in this stage, the power supply signal output by the charging device charges the second energy storage unit 120 and the battery 20. Specifically, in the third stage, 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, the fifth switch Q5, and the seventh switch Q7 to turn off, so as to conduct the power input terminal INPUT to the first end of the inductor L1, charge the inductor L1 and the second capacitor C2, and charge the battery 20.
[0111] Step 1508: In the fourth 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, and control the second switch unit to conduct the first end of the third energy storage unit to the first end of the second energy storage unit and ground the second end of the third energy storage unit.
[0112] Reference Figure 16c As shown in the equivalent circuit of the fourth stage, in this stage, the power input terminal INPUT is cut off, and the second energy storage unit 120 and the third energy storage unit 140 are discharged in parallel to provide electrical energy for charging the battery 20. In the fourth stage, control the first switch Q1, the fifth switch Q5, and the sixth switch Q6 to conduct, and turn off the second switch Q2, the third switch Q3, the fourth switch Q4, and the seventh switch Q7. Conduct the first end of the third capacitor C3 to the first end of the inductor L1 and ground the second end of the third capacitor C3, so that the third capacitor C3, the inductor L1, and the second capacitor C2 are discharged to charge the battery 20. Conduct the first end of the first capacitor C1 to the power input terminal INPUT to prevent device damage caused by the two ends of the first capacitor C1 being floating.
[0113] In one embodiment, when the power management module 100 charges the battery in the second charging mode, control the first switch unit and the second switch unit to conduct the power input terminal to the first end of the second energy storage unit.
[0114] 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 17 of the equivalent circuit. After the charging device is connected, the second energy storage unit 120 will start to charge. 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 sixth switch Q6 to conduct, and turn off the second switch Q2, the fourth switch Q4, the fifth switch Q5, and the seventh switch Q7, and directly conduct the first end of the inductor L1 to the power input terminal INPUT.
[0115] As Figure 18 shown, in one embodiment, when the power management module 100 charges the battery in the third charging mode, it includes the following steps that are repeatedly executed:
[0116] Step 1802: 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 third energy storage unit, and control the second switch unit to conduct the second end of the third energy storage unit to the first end of the second energy storage unit.
[0117] Reference Figure 19aIn the equivalent circuit shown, the first energy storage unit 110 and the third energy storage unit 140 are connected in series and connected between the power input terminal INPUT and the second energy storage unit 120. At this time, the first energy storage unit 110, the third energy storage unit 140, and the first energy storage unit 110 are connected in series in turn. 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 140, and the battery 20. Specifically, in the first stage, the first switch Q1, the fourth switch Q4, and the seventh switch Q7 are controlled to conduct, and the second switch Q2, the third switch Q3, the fifth switch Q5, and the sixth switch Q6 are turned off, so as to conduct the first end of the first capacitor C1 and the power input terminal INPUT, and conduct the second end of the first capacitor C1 and the first end of the third capacitor C3, and conduct the second end of the third capacitor C3 and the first end of the inductor L1, so that the first capacitor C1 and the second capacitor C2 are connected in series and connected between the power input terminal INPUT and the inductor L1.
[0118] Step 1804, 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 second energy storage unit, and ground the second end of the first energy storage unit. Control the second switch unit to conduct the first end of the third energy storage unit and the first end of the second energy storage unit, and ground the second end of the third energy storage unit.
[0119] Reference Figure 19b In the equivalent circuit shown, the first energy storage unit 110, the third energy storage unit 140, and the second energy storage unit 120 are connected in parallel in turn. At this time, the power input terminal INPUT is disconnected, and the first energy storage unit 110, the second energy storage unit 120, and the third energy storage unit 140 discharge together to provide electrical energy for charging the battery 20. Specifically, in the second stage, control the second switch Q2, the third switch Q3, the fifth switch Q5, and the sixth switch Q6 to conduct, and the first switch Q1, the fourth switch Q4, and the seventh switch Q7 to turn off, so as to conduct the first end of the first capacitor C1 with the first end of the third capacitor C3 and the first end of the inductor L1 respectively, ground the second end of the first capacitor C1, ground the second end of the third capacitor C3, and connect the first capacitor C1, the third capacitor C3 in parallel with the first energy storage unit 110.
[0120] In the first stage of the third charging mode, the first energy storage unit 110, the second energy storage unit 120, the third energy storage unit 140, and the battery 20 are voltage-divided, 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 second energy storage unit 120, and the third energy storage unit 140 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, and the third energy storage unit 140 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.
[0121] It should be understood that although Figures 2 - 5 、 Figure 8 、 Figure 11 、 Figure 15 、 Figure 18 each step in the flowcharts are shown in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear description in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figures 2 - 5 、 Figure 8 、 Figure 11 、 Figure 15 、 Figure 18 at least a part of the steps in can include multiple steps or multiple stages, these steps or stages are not necessarily executed and completed at the same moment, but can be executed at different moments, and the execution order of these steps or stages is not necessarily in sequence, but can be executed alternately or in turn with at least a part of other steps or steps or stages in other steps.
[0122] As Figure 20 shown, 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:
[0123] A status information acquisition module 310, configured to acquire the status information of a charging device;
[0124] A voltage comparison module 320, configured to acquire the voltage value of a battery and compare the voltage value with a preset voltage threshold;
[0125] 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;
[0126] An instruction execution module 340, configured to 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 greater 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.
[0127] For the specific limitations on the charging control device, reference can be made to the limitations on the charging control method in the above 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 combination. The above modules can be embedded in the processor of a computer device in hardware form or be independent of it, or can be stored in the memory of the computer device in software form, so as to facilitate the processor to call and execute the operations corresponding to the above respective modules.
[0128] In one embodiment, an electronic device is provided, including a battery, a power management module and a controller. The controller includes 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:
[0129] Obtain the status information of the charging device;
[0130] Obtain the voltage value of the battery, and compare the voltage value with a preset voltage threshold;
[0131] Based on the status information of the charging device, according to the comparison result of the voltage value and the preset voltage threshold, determine a charging control instruction for the battery;
[0132] Execute a corresponding charging mode according to the charging control instruction.
[0133] In one embodiment, when the processor executes the computer program, the following steps are further implemented:
[0134] 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:
[0135] In response to the voltage value being less than a first voltage threshold, determine to charge the battery in the first charging mode;
[0136] 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;
[0137] In response to the voltage value being greater than the second voltage threshold, determine to charge the battery in the first charging mode.
[0138] In one embodiment, when the processor executes the computer program, the following steps are further implemented:
[0139] 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:
[0140] In response to the voltage value being less than a first voltage threshold, determine to charge the battery in the first charging mode;
[0141] 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 second charging mode;
[0142] In response to the voltage value being greater than the second voltage threshold, determine to charge the battery in the first charging mode.
[0143] In one embodiment, when the processor executes the computer program, the following steps are further implemented:
[0144] 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.
[0145] In one embodiment, when the processor executes the computer program, the following steps are further implemented:
[0146] In the first stage, control the first switch unit to conduct the power input terminal and the first end of the second energy storage unit;
[0147] In the second stage, control the first switch unit to conduct the power input terminal and the first end of the first energy storage unit, and ground the second end of the first energy storage unit;
[0148] In the third stage, control the first switch unit to conduct the power input terminal and the first end of the second energy storage unit;
[0149] In the fourth stage, control the first switch unit to conduct the first end of the first energy storage unit and the first end of the second energy storage unit, and ground the second end of the first energy storage unit.
[0150] In one embodiment, when the processor executes the computer program, the following steps are further implemented:
[0151] Control the first switch unit to conduct the power input terminal and the first end of the second energy storage unit.
[0152] In one embodiment, when the processor executes the computer program, the following steps are further implemented:
[0153] In the first stage, control the first switch unit to conduct the power input terminal and the first end of the first energy storage unit, and conduct the second end of the first energy storage unit and the first end of the second energy storage unit;
[0154] 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 second energy storage unit, and ground the second end of the first energy storage unit.
[0155] In one embodiment, when the processor executes the computer program, the following steps are further implemented:
[0156] In the first stage, control the first switch unit and the second switch unit to conduct the power input terminal and the first end of the second energy storage unit;
[0157] In the second stage, control the second switch unit to conduct the power input terminal to the first end of the third energy storage unit, and ground the second end of the third energy storage unit;
[0158] In the third stage, control the first switch unit and the second switch unit to conduct the power input terminal to the first end of the second energy storage unit;
[0159] In the fourth 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, and control the second switch unit to conduct the first end of the third energy storage unit to the first end of the second energy storage unit and ground the second end of the third energy storage unit.
[0160] In one embodiment, when the processor executes the computer program, the following steps are further implemented:
[0161] Control the first switch unit and the second switch unit to conduct the power input terminal to the first end of the second energy storage unit.
[0162] In one embodiment, when the processor executes the computer program, the following steps are further implemented:
[0163] 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 third energy storage unit, and control the second switch unit to conduct the second end of the third energy storage unit to the first end of the second energy storage unit;
[0164] 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, control the second switch unit to conduct the first end of the third energy storage unit to the first end of the second energy storage unit, and ground the second end of the third energy storage unit.
[0165] 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:
[0166] Obtain the status information of the charging device;
[0167] Obtain the voltage value of the battery, and compare the voltage value with a preset voltage threshold;
[0168] 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;
[0169] Execute corresponding charging modes according to the charging control instructions.
[0170] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0171] 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:
[0172] In response to the voltage value being less than the first voltage threshold, determine to charge the battery in the first charging mode;
[0173] 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;
[0174] In response to the voltage value being greater than the second voltage threshold, determine to charge the battery in the first charging mode.
[0175] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0176] 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:
[0177] In response to the voltage value being less than the first voltage threshold, determine to charge the battery in the first charging mode;
[0178] 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;
[0179] In response to the voltage value being greater than the second voltage threshold, determine to charge the battery in the first charging mode.
[0180] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0181] 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.
[0182] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0183] In the first stage, control the first switch unit to conduct the power input terminal and the first end of the second energy storage unit;
[0184] 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, and ground the second end of the first energy storage unit;
[0185] In the third stage, control the first switch unit to conduct the power input terminal to the first end of the second energy storage unit;
[0186] In the fourth 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, and ground the second end of the first energy storage unit.
[0187] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented:
[0188] Control the first switch unit to conduct the power input terminal to the first end of the second energy storage unit.
[0189] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented:
[0190] 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, and conduct the second end of the first energy storage unit to the first end of the second energy storage unit;
[0191] 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, and ground the second end of the first energy storage unit.
[0192] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented:
[0193] In the first stage, control the first switch unit and the second switch unit to conduct the power input terminal to the first end of the second energy storage unit;
[0194] In the second stage, control the second switch unit to conduct the power input terminal to the first end of the third energy storage unit, and ground the second end of the third energy storage unit;
[0195] In the third stage, control the first switch unit and the second switch unit to conduct the power input terminal to the first end of the second energy storage unit;
[0196] In the fourth stage, control the first switch unit to conduct the power input terminal to the first end of the first energy storage unit, and ground the second end of the first energy storage unit, and control the second switch unit to conduct the first end of the third energy storage unit to the first end of the second energy storage unit, and ground the second end of the third energy storage unit.
[0197] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0198] Control the first switch unit and the second switch unit to conduct the power input terminal to the first end of the second energy storage unit.
[0199] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0200] 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 third energy storage unit, and control the second switch unit to conduct the second end of the third energy storage unit to the first end of the second energy storage unit;
[0201] 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, control the second switch unit to conduct the first end of the third energy storage unit to the first end of the second energy storage unit, and ground the second end of the third energy storage unit.
[0202] Those of ordinary skill in the art can understand that all or part of the processes of implementing the methods in 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 various 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.
[0203] In the description of this specification, the descriptions referring to terms such as "some embodiments", "one of the embodiments", "an embodiment", etc. mean that the specific features, structures, materials or characteristics 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 descriptions of the above terms do not necessarily refer to the same embodiment or example.
[0204] The technical features of the above-described 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 within the scope described in this specification.
[0205] The above-described embodiments only represent several implementation manners of the present invention. The descriptions are relatively specific and detailed, but should not be construed as limiting 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 invention, several modifications and improvements can still be made, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the invention patent should be subject to the appended claims.
Claims
1. A charging control method, characterized in that, A power management module applied to an electronic device. 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 a charging device, and the power output terminal is used to connect to a battery. The power management module includes a first energy storage unit, a second energy storage unit, and a first switch unit. The second end of the second energy storage unit is connected to the power output terminal. Charging the battery of the electronic device through the charging device. The method includes: Judging the status information of the charging device according to the output voltage of the charging device. The status information includes the type of the power adapter of the charging device and the current charging status executed by the power adapter. Obtaining the voltage value of the battery and comparing the voltage value with a preset voltage threshold. Based on the status information of the charging device, in response to the comparison results of the voltage value with a preset first voltage threshold and a second voltage threshold, determining to execute a first charging mode or a third charging mode, or determining to execute the first charging mode or a second charging mode. The first charging mode is used to match the pre-charging stage and the trickle charging stage of a general charging power adapter and a fast charging power adapter. The second charging mode is used to match the fast charging power adapter in the direct charging mode. The third charging mode is used to match the fast charging power adapter in the high-voltage fast charging mode. In the first charging mode, the output voltage of the charging device is greater 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.
2. The charging control method according to claim 1, wherein Based on the status information of the charging device, in response to the comparison results of the voltage value with a preset first voltage threshold and a second voltage threshold, determining to execute a first charging mode or a third charging mode includes: Based on the charging device having a first charging status, a second charging status, and a third charging status 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 the 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 the 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, characterized in that, Based on the status information of the charging device, in response to the comparison results of the voltage value with a preset first voltage threshold and a second voltage threshold, determining to execute the first charging mode or a second charging mode includes: Based on the charging device having a first charging status and a second charging status respectively corresponding to the first charging mode and the second charging mode: In response to the voltage value being less than the 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 the second voltage threshold, it is determined 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 The method further 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, wherein The step of charging the battery in the first charging mode includes the following steps that are repeatedly executed: In the first stage, control the first switch unit to conduct the power input terminal and the first end of the second energy storage unit; In the second stage, control the first switch unit to conduct the power input terminal and the first end of the first energy storage unit, and ground the second end of the first energy storage unit; In the third stage, control the first switch unit to conduct the power input terminal and the first end of the second energy storage unit; In the fourth stage, control the first switch unit to conduct the first end of the first energy storage unit and the first end of the second energy storage unit, and ground the second end of the first 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 and the first end of the second energy storage unit.
7. 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 and the first end of the first energy storage unit, and conduct the second end of the first energy storage unit and the first end of the second energy storage unit; 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 second energy storage unit, and ground the second end of the first energy storage unit.
8. The charging control method according to any one of claims 2-4, characterized in that, The power management module is configured with a power input terminal and a power output terminal. The power input terminal is used to connect the charging device, and the power output terminal is used to connect the battery; 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. The second end of the second energy storage unit is connected to the power output terminal; The step of charging the battery in the first charging mode includes the following steps that are repeatedly executed: In the first stage, control the first switch unit and the second switch unit to conduct the power input terminal and the first end of the second energy storage unit; In the second stage, control the second switch unit to conduct the power input terminal and the first end of the third energy storage unit, and ground the second end of the third energy storage unit; In the third stage, control the first switch unit and the second switch unit to conduct the power input terminal and the first end of the second energy storage unit; In the fourth 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, and control the second switch unit to conduct the first end of the third energy storage unit to the first end of the second energy storage unit and ground the second end of the third energy storage unit.
9. The charging control method according to claim 8, wherein The step of charging the battery in the second charging mode includes: Control the first switch unit and the second switch unit to conduct the power input terminal to the first end of the second energy storage unit.
10. The charging control method according to claim 8, wherein The step of charging the battery in the third charging mode includes the following steps executed alternately: 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 third energy storage unit, and control the second switch unit to conduct the second end of the third energy storage unit to the first end of the second 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, control the second switch unit to conduct the first end of the third energy storage unit to the first end of the second energy storage unit, and ground the second end of the third energy storage unit.
11. A charging control device, characterized in that, For performing the steps of the method according to any one of claims 1 to 10; applied to a power management module of an electronic device, the device includes: A status information acquisition module for judging the status information of the charging device according to the output voltage of the charging device; the status information includes the type of the power adapter of the charging device and the current charging status executed by the power adapter. 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 to execute the first charging mode or the third charging mode, or determining to execute the first charging mode or the second charging mode based on the status information of the charging device in response to the comparison results of the voltage value with the preset first voltage threshold and second voltage threshold; the first charging mode is used to match the pre-charging stage and the trickle charging stage of a general charging power adapter and a fast charging power adapter, the second charging mode is used to match the fast charging power adapter in the direct charging mode, and the third charging mode is used to match the fast charging power adapter in the high-voltage fast charging mode; the charging modes include the first charging mode, the second charging mode, and the third charging mode. In the first charging mode, the output voltage of the charging device is greater 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.
12. An electronic device, characterized in that, Comprising: A battery; A power management module for charging the battery when a charging device is connected. A controller, comprising a memory and a processor, wherein a computer program is stored in the memory, and 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 10.
13. 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 10 are implemented.
Citation Information
Patent Citations
Electronic device, charger, charging system, and charging method
CN106537719A
Charging circuit, method and device and electronic equipment
CN111525646A
Charging control method of earphone battery, charging circuit and earphone
CN112787382A