Charging control method and device, electronic equipment and storage medium
By acquiring the actual voltage value of the electronic device and determining the reference voltage threshold for charging control, the overcharging problem caused by sudden current changes during the pre-charging stage is solved, protecting the device and improving the charging effect.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BEIJING XIAOMI MOBILE SOFTWARE CO LTD
- Filing Date
- 2022-09-22
- Publication Date
- 2026-05-29
AI Technical Summary
During the pre-charging phase of electronic devices, a sudden change in current can lead to overcharging, damaging the device and resulting in poor charging performance.
By acquiring the actual voltage value of the electronic device when it is charged with a first current value, a corresponding reference voltage threshold is determined, and charging control is performed based on the actual voltage value and the reference voltage threshold to avoid overcharging.
It effectively avoids overcharging of electronic devices during the pre-charging stage, protects the devices, and improves charging efficiency.
Smart Images

Figure CN115566752B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of electronic equipment technology, and in particular to a charging control method, apparatus, electronic device, and storage medium. Background Technology
[0002] The charging process for electronic device batteries typically includes the following stages: pre-charge stage, constant current fast charging stage, and constant voltage fast charging stage. If the battery voltage is low, below 3V, the battery is usually pre-charged with a small current in the pre-charge stage to bring the battery voltage above 3V, and then it enters the constant current fast charging stage, which charges with a normal large current.
[0003] In related technologies, during the pre-charging phase, there may be a period of time (e.g., 8 to 15 seconds) during which the current of electronic devices exceeds the specified value. For example, the current during the pre-charging phase may experience a sudden change, from 250 mA to over 2000 mA. This is because the working characteristics of the battery protection board and the voltage threshold set for entering the constant current fast charging phase during the pre-charging phase lead to charging with a large current, causing a sudden change in current.
[0004] This method can lead to overcharging of electronic devices during the pre-charging phase, which can easily damage the devices and result in poor charging performance. Summary of the Invention
[0005] This disclosure aims to at least partially address one of the technical problems in the related art.
[0006] Therefore, the purpose of this disclosure is to provide a charging control method, device, electronic device, and storage medium, thereby effectively avoiding overcharging of electronic devices during the pre-charging stage, preventing damage to electronic devices, and improving charging efficiency.
[0007] To achieve the above objectives, the charging control method proposed in the first aspect of this disclosure is applied to an electronic device. The method includes: obtaining the actual voltage value corresponding to the electronic device being charged with a first current value; determining a reference voltage threshold corresponding to the actual voltage value, wherein the reference voltage threshold is a voltage threshold value for determining the electronic device being charged with a second current value, the second current value being greater than the first current value; and controlling the charging of the electronic device based on the actual voltage value and the reference voltage threshold.
[0008] In some embodiments of this disclosure, determining the reference voltage threshold corresponding to the actual voltage value includes:
[0009] Determine the reference voltage value of the electronic device;
[0010] Obtain the comparison result between the actual voltage value and the reference voltage value; and
[0011] Based on the comparison results, a reference voltage threshold corresponding to the actual voltage value is determined.
[0012] In some embodiments of this disclosure, determining the reference voltage threshold corresponding to the actual voltage value based on the comparison result includes:
[0013] If the comparison result is that the actual voltage value is greater than or equal to the reference voltage value, then a first voltage threshold is determined and the first voltage threshold is used as the reference voltage threshold.
[0014] If the comparison result is that the actual voltage value is less than the reference voltage value, then a second voltage threshold is determined and used as the reference voltage threshold, wherein the second voltage threshold is greater than the first voltage threshold.
[0015] In some embodiments of this disclosure, determining the first voltage threshold includes:
[0016] A preset voltage threshold is used as the first voltage threshold, wherein the preset voltage threshold is a pre-set voltage threshold value for switching from the first current value to charging the electronic device with the second current value.
[0017] In some embodiments of this disclosure, the battery circuit of the electronic device includes: a battery cell, and at least one field-effect transistor for discharge protection; wherein, determining the second voltage threshold includes:
[0018] Determine the forward voltage drop value of the field-effect transistor applied to the battery cell;
[0019] The second voltage threshold is determined based on the actual voltage value and at least one of the positive voltage drop values.
[0020] In some embodiments of this disclosure, determining the second voltage threshold based on the actual voltage value and at least one of the forward voltage drop values includes:
[0021] Determine the sum of the actual voltage value and at least one of the forward voltage drop values, and use the sum as the second voltage threshold.
[0022] In some embodiments of this disclosure, determining the second voltage threshold includes:
[0023] Select a voltage threshold from the set voltage threshold range as the second voltage threshold;
[0024] Wherein, the minimum voltage threshold of the set voltage threshold range is a preset voltage threshold, the maximum voltage threshold is the same as the initial voltage value, the preset voltage threshold is a pre-set voltage threshold value for switching from the first current value to the second current value to charge the electronic device, and the initial voltage value is the voltage value of the electronic device when the electronic device is started.
[0025] In some embodiments of this disclosure, the step of controlling the charging of the electronic device based on the actual voltage value and the reference voltage threshold includes:
[0026] If the actual voltage value does not reach the reference voltage threshold, the electronic device is charged at the first current value.
[0027] If the actual voltage value reaches the reference voltage threshold, the electronic device is charged with the second current value.
[0028] The charging control method proposed in the first aspect of this disclosure obtains the actual voltage value corresponding to the charging of the electronic device with a first current value, and determines a reference voltage threshold corresponding to the actual voltage value. The reference voltage threshold is a voltage threshold value for determining the charging of the electronic device with a second current value, wherein the second current value is greater than the first current value. The charging control method is based on the actual voltage value and the reference voltage threshold to effectively avoid overcharging of the electronic device during the pre-charging stage, avoid damage to the electronic device, and improve the charging effect.
[0029] To achieve the above objectives, a charging control device according to a second aspect embodiment of this disclosure is applied to an electronic device. The device includes: an acquisition module for acquiring an actual voltage value corresponding to when the electronic device is charged with a first current value; a determination module for determining a reference voltage threshold corresponding to the actual voltage value, wherein the reference voltage threshold is a voltage threshold value for determining when the electronic device is charged with a second current value, and the second current value is greater than the first current value; and a control module for controlling the charging of the electronic device based on the actual voltage value and the reference voltage threshold.
[0030] In some embodiments of this disclosure, the determining module includes:
[0031] The first determining submodule is used to determine the reference voltage value of the electronic device;
[0032] The acquisition submodule is used to acquire the comparison result between the actual voltage value and the reference voltage value; and
[0033] The second determining submodule is used to determine the reference voltage threshold corresponding to the actual voltage value based on the comparison result.
[0034] In some embodiments of this disclosure, the second determining submodule is specifically used for:
[0035] If the comparison result is that the actual voltage value is greater than or equal to the reference voltage value, then a first voltage threshold is determined and the first voltage threshold is used as the reference voltage threshold.
[0036] If the comparison result is that the actual voltage value is less than the reference voltage value, then a second voltage threshold is determined and used as the reference voltage threshold, wherein the second voltage threshold is greater than the first voltage threshold.
[0037] In some embodiments of this disclosure, the second determining submodule is further configured to:
[0038] A preset voltage threshold is used as the first voltage threshold, wherein the preset voltage threshold is a pre-set voltage threshold value for switching from the first current value to charging the electronic device with the second current value.
[0039] In some embodiments of this disclosure, the battery circuit of the electronic device includes: a battery cell, and at least one field-effect transistor for discharge protection; wherein, the second determining submodule is further configured to:
[0040] Determine the forward voltage drop value of the field-effect transistor applied to the battery cell;
[0041] The second voltage threshold is determined based on the actual voltage value and at least one of the positive voltage drop values.
[0042] In some embodiments of this disclosure, the second determining submodule is further configured to:
[0043] Determine the sum of the actual voltage value and at least one of the forward voltage drop values, and use the sum as the second voltage threshold.
[0044] In some embodiments of this disclosure, the second determining submodule is further configured to:
[0045] Select a voltage threshold from the set voltage threshold range as the second voltage threshold;
[0046] Wherein, the minimum voltage threshold of the set voltage threshold range is a preset voltage threshold, the maximum voltage threshold is the same as the initial voltage value, the preset voltage threshold is a pre-set voltage threshold value for switching from the first current value to the second current value to charge the electronic device, and the initial voltage value is the voltage value of the electronic device when the electronic device is started.
[0047] In some embodiments of this disclosure, the control module is specifically used for:
[0048] If the actual voltage value does not reach the reference voltage threshold, the electronic device is charged at the first current value.
[0049] If the actual voltage value reaches the reference voltage threshold, the electronic device is charged with the second current value.
[0050] The charging control device proposed in the second aspect of this disclosure obtains the actual voltage value corresponding to the electronic device when it is charged with a first current value, and determines a reference voltage threshold corresponding to the actual voltage value. The reference voltage threshold is a voltage threshold value for determining the electronic device when it is charged with a second current value. The second current value is greater than the first current value. The charging control device is based on the actual voltage value and the reference voltage threshold. This can effectively avoid overcharging of the electronic device during the pre-charging stage, prevent damage to the electronic device, and improve the charging effect.
[0051] The electronic device proposed in the third aspect of this disclosure includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the charging control method proposed in the first aspect of this disclosure.
[0052] A fourth aspect of this disclosure provides a non-transitory computer-readable storage medium having a computer program stored thereon that, when executed by a processor, implements the charging control method as described in the first aspect of this disclosure.
[0053] A fifth aspect of this disclosure provides a computer program product that, when instructions in the computer program product are executed by a processor, performs a charging control method as described in a first aspect of this disclosure.
[0054] Additional aspects and advantages of this disclosure will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this disclosure. Attached Figure Description
[0055] The above and / or additional aspects and advantages of this disclosure will become apparent and readily understood from the following description of the embodiments taken in conjunction with the accompanying drawings, in which:
[0056] Figure 1 This is a schematic diagram of the structure of a battery protection board in related technologies;
[0057] Figure 2 This is a schematic flowchart of a charging control method proposed in an embodiment of this disclosure;
[0058] Figure 3 This is a schematic flowchart of a charging control method proposed in another embodiment of this disclosure;
[0059] Figure 4 This is a schematic flowchart of a charging control method proposed in another embodiment of this disclosure;
[0060] Figure 5 This is a block diagram of hardware detection points in an embodiment of this disclosure;
[0061] Figure 6 This is a flowchart illustrating the charging control method in an embodiment of this disclosure;
[0062] Figure 7 This is a schematic diagram of the structure of a charging control device according to an embodiment of the present disclosure;
[0063] Figure 8 This is a schematic diagram of the structure of a charging control device according to another embodiment of this disclosure;
[0064] Figure 9 A block diagram of an exemplary electronic device suitable for implementing embodiments of the present disclosure is shown. Detailed Implementation
[0065] Embodiments of this disclosure are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are used only to explain this disclosure, and should not be construed as limiting this disclosure. Rather, embodiments of this disclosure include all variations, modifications, and equivalents falling within the spirit and scope of the appended claims.
[0066] In related technologies, during the pre-charging phase, there may be instances where the current of the electronic device exceeds a specified value within a certain time range (e.g., 8 to 15 seconds). For example, the current during the pre-charging phase may experience a sudden change, jumping from 250 mA to over 2000 mA. This is due to the operating characteristics of the battery protection board and the voltage threshold set for transitioning from the pre-charging phase to the constant current fast charging phase, as explained below:
[0067] like Figure 1 As shown, Figure 1This is a schematic diagram of a battery protection board in related technologies. The battery has two levels of protection. Each level of protection includes: an integrated circuit (IC), a charging protection MOS (MOS, short for Metal-Oxide-Semiconductor Field-Effect Transistor, MOSFET), and a discharging protection MOS. If the cell voltage is too low, the discharging protection MOS in both levels of protection is turned off. If the cell voltage is greater than 2.3V, the discharging protection MOS in the second level of protection is turned on, while the discharging protection MOS in the first level of protection remains off. If the cell voltage is greater than 2.5V, the discharging protection MOS in both levels of protection is turned on. The discharging protection MOS includes a body diode, which has a forward voltage drop. This forward voltage drop raises the battery voltage. If the battery voltage is raised, it may reach the voltage threshold set for entering the constant current fast charging stage during the pre-charge phase, leading to high-current charging and causing a sudden change in current.
[0068] This embodiment of the invention aims to address the technical problem in related technologies where overcharging of electronic devices during the pre-charging phase can easily damage them, resulting in poor charging performance. By acquiring the actual voltage value corresponding to the electronic device being charged with a first current value, and determining a reference voltage threshold corresponding to the actual voltage value (where the reference voltage threshold is a voltage threshold for charging the electronic device with a second current value greater than the first current value), and by controlling the charging of the electronic device based on the actual voltage value and the reference voltage threshold, overcharging of the electronic device can be effectively avoided during the pre-charging phase, preventing damage and improving charging performance. See the following embodiments for details:
[0069] Figure 2 This is a schematic flowchart of a charging control method proposed in an embodiment of this disclosure.
[0070] This embodiment illustrates the use of a charging control method configured in a charging control device. In this embodiment, the charging control method can be configured in a charging control device, which can be located in a server or an electronic device. This disclosure does not impose any limitations on this.
[0071] This embodiment uses the example of a charging control method configured in an electronic device. The electronic device includes hardware devices with various operating systems, such as smartphones, tablets, personal digital assistants, and e-readers.
[0072] It should be noted that the execution entity of the embodiments disclosed herein may be, in hardware, a central processing unit (CPU) in a server or electronic device, and in software, a related background service in a server or electronic device, without limitation.
[0073] like Figure 2 As shown, the charging control method includes:
[0074] S201: Obtain the actual voltage value corresponding to the electronic device when it is charged with a first current value.
[0075] The charging control method provided in this disclosure can be applied to electronic devices, that is, it can be applied to charge control of electronic devices. The electronic device includes a battery circuit, which includes battery cells. During the charging process of the electronic device, a charging current is input to the battery cells to charge them. The charging process usually includes the following charging stages: pre-charge stage, constant current fast charging stage, constant voltage fast charging stage, etc. If the battery voltage is low to below 3V, the battery is usually pre-charged based on a small current during the pre-charge stage.
[0076] The first current value can be the current value that keeps the electronic device in the pre-charge stage during the charging phase, such as the first current value being less than or equal to 250mA.
[0077] In this embodiment of the present disclosure, the electronic device can be charged first with a first current value. This stage of charging the electronic device with the first current value can be a pre-charging stage. The first current value can be, for example, less than or equal to 250mA. That is, when charging, the charger can be inserted into the charging interface of the electronic device, and then the electronic device is charged with a first current value of less than or equal to 250mA.
[0078] In this embodiment of the disclosure, the charging status of the electronic device can also be detected. If it is determined that the electronic device is currently being charged with a first current value, the actual voltage value corresponding to the charging of the electronic device with the first current value can be obtained, and an appropriate voltage threshold can be dynamically determined based on the actual voltage value (the appropriate voltage threshold can be called the reference voltage threshold, which is the voltage threshold set for the pre-charging stage to enter the constant current fast charging stage, that is, to determine the voltage threshold value for switching the charging stage. In the constant current fast charging stage, charging is performed with a large current greater than the first current value, which can be called the second current value).
[0079] In this embodiment of the disclosure, a fuel gauge can be set up to collect the voltage value of the battery cell as the actual voltage value. Then, an appropriate voltage threshold is determined based on the actual voltage value, and the appropriate voltage threshold is used as the reference voltage threshold.
[0080] In this embodiment of the present disclosure, when obtaining the actual voltage value corresponding to the charging of the electronic device with a first current value, the actual voltage value can be obtained in real time, or the acquisition period can be pre-configured and the actual voltage value can be obtained based on the acquisition period. When obtaining an actual voltage value of the electronic device each time, a reference voltage threshold corresponding to the actual voltage value can be determined to achieve adaptive determination of the voltage threshold value.
[0081] S202: Determine a reference voltage threshold corresponding to the actual voltage value, wherein the reference voltage threshold is a voltage threshold value for charging the electronic device with a second current value, the second current value being greater than the first current value.
[0082] After obtaining the actual voltage value corresponding to the charging of the electronic device with the first current value, the voltage threshold value for charging the electronic device with the second current value can be determined as the reference voltage threshold.
[0083] In the constant current fast charging stage, charging is performed with a large current greater than the first current value, which can be referred to as the second current value (e.g., 1.5 amps (A)). The determined reference voltage threshold can also be regarded as the voltage threshold for switching from the pre-charging stage to the constant current fast charging stage. For example, if the actual voltage value corresponding to the electronic device is detected to reach the voltage threshold indicating the switch, the electronic device can be charged with the second current value.
[0084] In related technologies, the voltage threshold for switching from the pre-charge stage to the constant current fast charging stage is set to a fixed value (e.g., 3V). During stage switching control, the switching control is usually based on the voltage between the positive and negative terminals of the battery. The voltage between the positive and negative terminals of the battery is affected by the forward voltage drop of the body diode in the discharge protection MOS, which causes the voltage between the positive and negative terminals of the battery to be not exactly the same as the cell voltage. This can lead to the stage switching being falsely triggered during the pre-charge stage. In the embodiment of this disclosure, the actual voltage value corresponding to the electronic device charging with a first current value is obtained during the pre-charge stage, and then a reference voltage threshold that matches the actual voltage value is determined. This supports charging control of the electronic device based on the actual voltage value and the reference voltage threshold, effectively avoiding the false triggering of stage switching. This can effectively prevent overcharging of the electronic device during the pre-charge stage, avoid damage to the electronic device, and improve the charging effect.
[0085] In some embodiments, when determining the reference voltage threshold corresponding to the actual voltage value, it can be based on a preset relationship table. The preset relationship table includes the corresponding voltage threshold for each possible voltage value of the battery cell. The data in the preset relationship table can be determined in advance based on experimental measurements. A voltage value that is the same as the actual voltage value can be determined from the preset relationship table, and the corresponding voltage threshold for the same voltage value is used as the reference voltage threshold corresponding to the actual voltage value.
[0086] In other embodiments, a voltage threshold slightly higher than 3V (3V is the voltage threshold set in the related technology for entering the constant current fast charging stage during the pre-charging stage) can be selected as the reference voltage threshold, such as 3.3V or 3.35V. Since the reference voltage threshold is dynamically determined, that is, as the actual voltage value of the battery cell changes, the reference voltage threshold will also change, thus not increasing the charging duration of high current.
[0087] Of course, any other possible method can be used to determine the reference voltage threshold corresponding to the actual voltage value, and there are no restrictions on this.
[0088] S203: Control the charging of electronic devices based on the actual voltage value and the reference voltage threshold.
[0089] After determining the reference voltage threshold corresponding to the actual voltage value, it can be determined whether the actual voltage value has reached the reference voltage threshold. If it has, the electronic device is charged with the second current value. If it has not, the actual voltage value can be continuously detected and the electronic device can be kept in the pre-charging stage without any restrictions.
[0090] In this embodiment, by obtaining the actual voltage value corresponding to the electronic device when it is charged with a first current value, and determining a reference voltage threshold corresponding to the actual voltage value, wherein the reference voltage threshold is a voltage threshold value for determining the electronic device when it is charged with a second current value, the second current value is greater than the first current value, and charging control of the electronic device is performed based on the actual voltage value and the reference voltage threshold, overcharging of the electronic device can be effectively avoided during the pre-charging stage, thus avoiding damage to the electronic device and improving the charging effect.
[0091] Figure 3 This is a schematic flowchart of a charging control method proposed in another embodiment of this disclosure.
[0092] like Figure 3 As shown, the charging control method includes:
[0093] S301: Obtain the actual voltage value corresponding to the electronic device when it is charged with a first current value.
[0094] For a detailed description of S301, please refer to the above embodiments, which will not be repeated here.
[0095] S302: Determine the reference voltage value for the electronic device.
[0096] The reference voltage value can be used as a reference when determining the base voltage threshold. The reference voltage value can be configured to be close to the voltage threshold set for entering the constant current fast charging stage from the pre-charge stage. For example, if the voltage threshold set for entering the constant current fast charging stage from the pre-charge stage is 3V, the reference voltage value can be set to 2.8V. Alternatively, a voltage value can be selected from a range of voltage values as the reference voltage value. This voltage value range can be based on experimental determination, such as 2.5V-3.0V, and there is no limitation on this.
[0097] In this embodiment of the disclosure, a reference voltage value of the electronic device can be determined, and the actual voltage value of the electronic device and the reference voltage value can be combined to determine the appropriate reference voltage threshold, thereby ensuring the accuracy of the determination of the reference voltage threshold.
[0098] S303: Obtain the comparison result between the actual voltage value and the reference voltage value.
[0099] After determining the reference voltage value of the electronic device, the actual voltage value of the electronic device can be compared with the reference voltage value to obtain the comparison result between the actual voltage value and the reference voltage value, and different voltage thresholds can be selected based on the comparison result.
[0100] S304: Based on the comparison results, determine the reference voltage threshold corresponding to the actual voltage value, wherein the reference voltage threshold is the voltage threshold value for charging the electronic device with the second current value, and the second current value is greater than the first current value.
[0101] Understandably, if the actual voltage value of the electronic device is greater than or equal to the reference voltage value, it indicates that the true voltage value of the electronic device is about to approach the voltage threshold set for entering the constant current fast charging stage during the pre-charging phase. At this time, a reference voltage threshold that can ensure timely switching can be selected. If the actual voltage value of the electronic device is less than the reference voltage value, it indicates that the true voltage value of the electronic device has not yet approached the voltage threshold set for entering the constant current fast charging stage during the pre-charging phase. At this time, a reference voltage threshold that avoids triggering the switching of the charging stage can be appropriately selected, effectively improving the accuracy of the reference voltage threshold determination, so that the determined reference voltage threshold can flexibly adapt to the actual voltage situation of the electronic device during the pre-charging phase.
[0102] S305: Controls the charging of electronic devices based on the actual voltage value and the reference voltage threshold.
[0103] For a detailed description of S305, please refer to the above embodiments, which will not be repeated here.
[0104] In this embodiment, by acquiring the actual voltage value corresponding to the electronic device being charged with a first current value, a reference voltage value for the electronic device is determined. A comparison result between the actual voltage value and the reference voltage value is obtained. Based on the comparison result, a reference voltage threshold corresponding to the actual voltage value is determined. This reference voltage threshold is a voltage threshold for charging the electronic device with a second current value, where the second current value is greater than the first current value. By controlling the charging of the electronic device based on the actual voltage value and the reference voltage threshold, overcharging of the electronic device can be effectively avoided during the pre-charging stage, preventing damage and improving charging efficiency. Furthermore, the accuracy of the reference voltage threshold determination is effectively improved, allowing the determined reference voltage threshold to flexibly adapt to the actual voltage conditions of the electronic device during the pre-charging stage.
[0105] Figure 4 This is a schematic flowchart of a charging control method proposed in another embodiment of this disclosure.
[0106] like Figure 4 As shown, the charging control method includes:
[0107] S401: Obtain the actual voltage value corresponding to the electronic device when it is charged with a first current value.
[0108] S402: Determine the reference voltage value for the electronic device.
[0109] S403: Obtain the comparison result between the actual voltage value and the reference voltage value.
[0110] For a detailed description of S401-S403, please refer to the above embodiments, which will not be repeated here.
[0111] S404: If the comparison result is that the actual voltage value is greater than or equal to the reference voltage value, then a first voltage threshold is determined and the first voltage threshold is used as the reference voltage threshold.
[0112] In this embodiment of the disclosure, if the actual voltage value of the electronic device is greater than or equal to the reference voltage value, it indicates that the actual voltage value of the electronic device is about to approach the voltage threshold set for entering the constant current fast charging stage from the pre-charging stage. At this time, a voltage threshold that can ensure timely switching can be selected, and this voltage threshold that can ensure timely switching is used as the reference voltage threshold.
[0113] The first voltage threshold can be a voltage threshold that ensures timely switching. For example, the first voltage threshold is 3V, or it can be any voltage threshold between 3V and 3.3V. There are no restrictions on this.
[0114] In some embodiments, a preset voltage threshold can be used as the first voltage threshold, wherein the preset voltage threshold is a pre-set voltage threshold value for switching from a first current value to charging the electronic device with a second current value, so as to timely determine a reference voltage threshold that matches the actual voltage value, thereby improving the timeliness of the charging stage switching.
[0115] In the initial stage of this embodiment, the voltage threshold set for entering the constant current fast charging stage from the pre-charging stage can be set to 3.5V. This 3.5V is based on the voltage value of the electronic device when the electronic device is started and controlled by experimental testing. 3.5V can ensure that the switching of the charging stage will not be mistakenly triggered when the forward voltage drop of the field-effect transistor used for discharge protection is applied to the battery cell. Then, when the actual voltage value of the electronic device is detected and the first voltage threshold (e.g., 3V) is determined as the reference voltage threshold when the actual voltage value is greater than or equal to the reference voltage value, the set voltage threshold of 3.5V can be reduced to 3V.
[0116] S405: If the comparison result is that the actual voltage value is less than the reference voltage value, then a second voltage threshold is determined and used as the reference voltage threshold, wherein the second voltage threshold is greater than the first voltage threshold.
[0117] In this embodiment of the disclosure, if the actual voltage value of the electronic device is less than the reference voltage value, it indicates that the true voltage value of the electronic device has not yet approached the voltage threshold set for entering the constant current fast charging stage from the pre-charging stage. At this time, a voltage threshold that can avoid triggering the switching of the charging stage can be appropriately selected, and the voltage threshold that can avoid triggering the switching of the charging stage can be used as the reference voltage threshold.
[0118] The second voltage threshold can be a voltage threshold that can effectively avoid triggering the switching of the charging stage. For example, the second voltage threshold is 3.3V. Alternatively, the first voltage threshold can be any voltage threshold between 3V and 3.5V, without any restriction.
[0119] Optionally, in some embodiments, the battery circuit of the electronic device includes: a battery cell, and at least one field-effect transistor for discharge protection; then, when determining the second voltage threshold, the forward voltage drop value of the field-effect transistor acting on the battery cell can be determined, and the second voltage threshold can be determined based on the actual voltage value and at least one forward voltage drop value.
[0120] The forward voltage drop can be a forward voltage drop of the body diode in the MOSFET used for discharge protection. The forward voltage drop of the body diode will raise the battery voltage. The forward voltage drop can be, for example, 0.4V-0.5V. In this embodiment, the battery circuit can be exemplified by two levels of protection. Each level of protection includes a MOSFET used for discharge protection. Each MOSFET may act on a forward voltage drop of 0.5V in the battery cell. Assuming the actual voltage is 2.3V, which is less than the reference voltage of 2.8V, it means that the cell voltage is too low. The discharge protection MOSFETs in both levels of protection are turned off and act on a forward voltage drop of 0.5V in the battery cell. The second voltage threshold can be determined based on the actual voltage of 2.3V and the forward voltage drop of 0.5V of the two discharge protection MOSFETs.
[0121] Optionally, in some embodiments, when determining the second voltage threshold based on the actual voltage value and at least one positive voltage drop value, the sum of the actual voltage value and at least one positive voltage drop value can be determined and used as the second voltage threshold. This can effectively improve the accuracy of the reference voltage threshold determination, so that the determined reference voltage threshold can accurately adapt to the actual situation of the battery cell voltage being too low.
[0122] For example, the sum of the actual voltage value of 2.3V and the forward voltage drop of the two discharge protection MOS of 0.5V, which is 3.3V, is used as the second voltage threshold.
[0123] Optionally, in other embodiments, determining the second voltage threshold can also involve selecting a voltage threshold from a set voltage threshold range as the second voltage threshold. Here, the minimum voltage threshold of the set voltage threshold range is a preset voltage threshold, and the maximum voltage threshold is the same as the initial voltage value. The preset voltage threshold is a pre-set voltage threshold value for switching from the first current value to the second current value for charging the electronic device. The initial voltage value is the voltage value of the electronic device when the electronic device is started. This can effectively improve the efficiency of determining the second voltage threshold, avoid affecting the charging control of the electronic device, and improve the flexibility and accuracy of the charging control.
[0124] The preset voltage threshold is a pre-set voltage threshold value for switching from a first current value to a second current value when charging the electronic device. The preset voltage threshold is a voltage value, while the set voltage threshold range is a range of voltage values. The set voltage threshold range includes a minimum voltage threshold and a maximum voltage threshold. Between the minimum voltage threshold and the maximum voltage threshold, there are also multiple voltage thresholds (these multiple voltage thresholds can be continuous or discontinuous, and the set voltage threshold range can be set based on experimental testing, without any restrictions). The minimum voltage threshold can be the same as the preset voltage threshold, while the maximum voltage threshold can be the same as the initial voltage value, which is the voltage value of the electronic device when the electronic device is started.
[0125] For example, the second voltage threshold can also be any voltage threshold between 3V and 3.5V. The voltage threshold range can be, for example, 3V-3.5V, the minimum voltage threshold is 3V, the maximum voltage threshold is 3.5V, and the voltage value of the electronic device when the electronic device is started (i.e., the initial voltage value is 3.5V). The preset voltage threshold can be, for example, 3V.
[0126] S406: If the actual voltage value does not reach the reference voltage threshold, continue charging the electronic device at the first current value.
[0127] S407: If the actual voltage value reaches the reference voltage threshold, the electronic device is charged with the second current value.
[0128] When the reference voltage threshold is determined, the actual voltage value of the electronic device can be compared with the reference voltage threshold. If the actual voltage value does not reach the reference voltage threshold, the electronic device is charged with the first current value, that is, the charging stage is maintained in the pre-charging stage, and the actual voltage value of the electronic device is detected and updated again. When the actual voltage value reaches the reference voltage threshold, the electronic device is charged with the second current value, that is, the charging stage is controlled to switch from the pre-charging stage to the constant current fast charging stage, and the electronic device is charged with the second current value.
[0129] In this embodiment, overcharging of the electronic device can be effectively avoided during the pre-charging phase, preventing damage and improving charging efficiency. The accuracy of the reference voltage threshold determination is effectively improved, allowing the determined reference voltage threshold to flexibly adapt to the actual voltage condition of the electronic device during the pre-charging phase. When the actual voltage value of the electronic device is greater than or equal to the reference voltage value, a preset voltage threshold is used as the first voltage threshold. This preset voltage threshold is a pre-set voltage threshold for switching from a first current value to a second current value for charging the electronic device, enabling timely determination of a voltage threshold that matches the actual voltage value and improving the timeliness of the charging phase switching. When the actual voltage value of the electronic device is less than the reference voltage value, the forward voltage drop value of the field-effect transistor acting on the battery cell in the battery circuit of the electronic device is determined. Based on the actual voltage value and at least one forward voltage drop value, a second voltage threshold is determined, effectively improving the accuracy of the determined voltage threshold and ensuring that the determined reference voltage threshold accurately adapts to the actual situation of excessively low battery cell voltage. When the actual voltage value does not reach the reference voltage threshold, the electronic device is charged with the first current value. When the actual voltage value reaches the reference voltage threshold, the electronic device is charged with the second current value. This allows the determined reference voltage threshold, which is adapted to the actual voltage condition of the electronic device, to be used as a timely reference for switching charging stages, thereby improving the continuity and effectiveness of charging control.
[0130] like Figure 5 As shown, Figure 5 This is a block diagram of the hardware detection point in this embodiment. Taking a lithium battery as an example, the battery circuit includes secondary protection. The secondary protection includes a lithium battery secondary protection IC and a lithium battery primary protection IC. The charging control method described above can be executed by a power management integrated circuit (PMIC). The PMIC can obtain the actual voltage value of the electronic device collected by the fuel gauge (i.e., the voltage value across the battery cell in the battery circuit is used as the actual voltage value), and set a corresponding reference voltage threshold based on the measured actual voltage value. The processing flow for setting the corresponding reference voltage threshold based on the measured actual voltage value can be as follows: Figure 6 As shown, Figure 6 This is a flowchart illustrating the charging control method in an embodiment of this disclosure.
[0131] Figure 7 This is a schematic diagram of the structure of a charging control device according to an embodiment of the present disclosure.
[0132] like Figure 7 As shown, the charging control device 70 is applied to an electronic device, and the device 70 includes:
[0133] The acquisition module 701 is used to acquire the actual voltage value corresponding to the first current value when the electronic device is being charged.
[0134] The determining module 702 is used to determine a reference voltage threshold corresponding to the actual voltage value, wherein the reference voltage threshold is a voltage threshold value for charging the electronic device with a second current value, the second current value being greater than a first current value; and
[0135] The control module 703 is used to control the charging of electronic devices based on the actual voltage value and the reference voltage threshold.
[0136] In some embodiments of this disclosure, such as Figure 8 As shown, Figure 8 This is a schematic diagram of the structure of a charging control device according to another embodiment of the present disclosure, wherein the determining module 702 includes:
[0137] The first determining submodule 7021 is used to determine the reference voltage value of the electronic device;
[0138] The acquisition submodule 7022 is used to obtain the comparison result between the actual voltage value and the reference voltage value; and
[0139] The second determining submodule 7023 is used to determine the reference voltage threshold corresponding to the actual voltage value based on the comparison results.
[0140] In some embodiments of this disclosure, the second determining submodule 7023 is specifically used for:
[0141] If the comparison result is that the actual voltage value is greater than or equal to the reference voltage value, then the first voltage threshold is determined and used as the reference voltage threshold.
[0142] If the comparison result shows that the actual voltage value is less than the reference voltage value, then a second voltage threshold is determined and used as the reference voltage threshold, wherein the second voltage threshold is greater than the first voltage threshold.
[0143] In some embodiments of this disclosure, the second determining submodule 7023 is further configured to:
[0144] A preset voltage threshold is used as the first voltage threshold, wherein the preset voltage threshold is a pre-set voltage threshold value for switching from the first current value to the second current value for charging the electronic device.
[0145] In some embodiments of this disclosure, the battery circuit of the electronic device includes: a battery cell, and at least one field-effect transistor for discharge protection; wherein, the second determining submodule 7023 is further configured to:
[0146] Determine the forward voltage drop value of the field-effect transistor applied to the battery cell;
[0147] The second voltage threshold is determined based on the actual voltage value and at least one positive voltage drop value.
[0148] In some embodiments of this disclosure, the second determining submodule 7023 is further configured to:
[0149] Determine the sum of the actual voltage value and at least one positive voltage drop value, and use the sum as the second voltage threshold.
[0150] In some embodiments of this disclosure, the second determining submodule 7023 is further configured to:
[0151] Select a voltage threshold from the set voltage threshold range as the second voltage threshold;
[0152] Among them, the minimum voltage threshold of the voltage threshold range is the preset voltage threshold, the maximum voltage threshold is the same as the initial voltage value, the preset voltage threshold is the voltage threshold value for switching from the first current value to the second current value to charge the electronic device, and the initial voltage value is the voltage value of the electronic device when the electronic device is started.
[0153] In some embodiments of this disclosure, the control module 703 is specifically used for:
[0154] If the actual voltage value does not reach the reference voltage threshold, the electronic device will continue to be charged at the first current value.
[0155] If the actual voltage value reaches the reference voltage threshold, the electronic device is charged with the second current value.
[0156] It should be noted that the foregoing explanation of the charging control method also applies to the charging control device of this embodiment, and will not be repeated here.
[0157] In this embodiment, by obtaining the actual voltage value corresponding to the electronic device when it is charged with a first current value, and determining a reference voltage threshold corresponding to the actual voltage value, wherein the reference voltage threshold is a voltage threshold value for determining the electronic device when it is charged with a second current value, the second current value is greater than the first current value, and charging control of the electronic device is performed based on the actual voltage value and the reference voltage threshold, overcharging of the electronic device can be effectively avoided during the pre-charging stage, thus avoiding damage to the electronic device and improving the charging effect.
[0158] Figure 9 A block diagram of an exemplary electronic device suitable for implementing embodiments of the present disclosure is shown. Figure 9 The electronic device 12 shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments disclosed herein.
[0159] like Figure 9As shown, the electronic device 12 is represented in the form of a general-purpose computing device. The components of the electronic device 12 may include, but are not limited to: one or more processors or processing units 16, system memory 28, and bus 18 connecting different system components (including system memory 28 and processing unit 16).
[0160] Bus 18 represents one or more of several bus architectures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of the various bus architectures. Examples of these architectures include, but are not limited to, the Industry Standard Architecture (ISA) bus, the Micro Channel Architecture (MAC) bus, the Enhanced ISA bus, the Video Electronics Standards Association (VESA) local bus, and the Peripheral Component Interconnect (PCI) bus.
[0161] Electronic device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by electronic device 12, including volatile and non-volatile media, removable and non-removable media.
[0162] Memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 30 and / or cache memory 32. Electronic device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 34 may be used to read and write non-removable, non-volatile magnetic media (… Figure 9 Not shown; usually referred to as a "hard drive".
[0163] although Figure 9Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk") and an optical disc drive for reading and writing to a removable non-volatile optical disc (e.g., a compact disc read-only memory (CD-ROM), a digital video disc read-only memory (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to bus 18 via one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the embodiments of this disclosure.
[0164] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28. Such program modules 42 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. Program modules 42 typically perform the functions and / or methods described in the embodiments of this disclosure.
[0165] Electronic device 12 can also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), and with one or more devices that enable human interaction with electronic device 12, and / or with any device that enables electronic device 12 to communicate with one or more other computing devices (e.g., network card, modem, etc.). This communication can be performed via input / output (I / O) interface 22. Furthermore, electronic device 12 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 20. As shown, network adapter 20 communicates with other modules of electronic device 12 via bus 18. It should be understood that, although not shown in the figures, other hardware and / or software modules can be used in conjunction with electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0166] The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, such as implementing the charging control method mentioned in the foregoing embodiments.
[0167] To implement the above embodiments, this disclosure also proposes a non-transitory computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the charging control method proposed in the foregoing embodiments of this disclosure.
[0168] To implement the above embodiments, this disclosure also proposes a computer program product that, when the instruction processor in the computer program product is executed, performs the charging control method as proposed in the foregoing embodiments of this disclosure.
[0169] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.
[0170] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.
[0171] It should be noted that in the description of this disclosure, the terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance. Furthermore, in the description of this disclosure, unless otherwise stated, "a plurality of" means two or more.
[0172] Any process or method description in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing a particular logical function or process, and the scope of preferred embodiments of this disclosure includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the function involved, as will be understood by those skilled in the art to which embodiments of this disclosure pertain.
[0173] It should be understood that various parts of this disclosure can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0174] Those skilled in the art will understand that all or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.
[0175] Furthermore, the functional units in the various embodiments of this disclosure can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.
[0176] The storage media mentioned above can be read-only memory, disk, or optical disk, etc.
[0177] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this disclosure. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0178] Although embodiments of the present disclosure have been shown and described above, it is to be understood that the above embodiments are exemplary and should not be construed as limiting the present disclosure. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present disclosure.
Claims
1. A charging control method, characterized in that, Applied to electronic devices, the method includes: The actual voltage value corresponding to the charging of the electronic device with a first current value is obtained, wherein the first current value is the current value that maintains the charging phase of the electronic device in the pre-charging phase, and the actual voltage value is the voltage value of the battery cell. Determine a reference voltage threshold corresponding to the actual voltage value, wherein the reference voltage threshold is a voltage threshold for charging the electronic device with a second current value, the second current value being greater than the first current value; and The charging control of the electronic device is performed based on the actual voltage value and the reference voltage threshold. Determining the reference voltage threshold corresponding to the actual voltage value includes: Determine the reference voltage value of the electronic device; Obtain the comparison result between the actual voltage value and the reference voltage value; If the comparison result is that the actual voltage value is greater than or equal to the reference voltage value, then a first voltage threshold is determined and the first voltage threshold is used as the reference voltage threshold. If the comparison result is that the actual voltage value is less than the reference voltage value, then a second voltage threshold is determined and used as the reference voltage threshold, wherein the second voltage threshold is greater than the first voltage threshold.
2. The method as described in claim 1, characterized in that, Determining the first voltage threshold includes: A preset voltage threshold is used as the first voltage threshold, wherein the preset voltage threshold is a pre-set voltage threshold value for switching from the first current value to charging the electronic device with the second current value.
3. The method as described in claim 1, characterized in that, The battery circuit of the electronic device includes: a battery cell, and at least one field-effect transistor for discharge protection; wherein, determining the second voltage threshold includes: Determine the forward voltage drop value of the field-effect transistor applied to the battery cell; The second voltage threshold is determined based on the actual voltage value and at least one of the positive voltage drop values.
4. The method as described in claim 3, characterized in that, Determining the second voltage threshold based on the actual voltage value and at least one of the forward voltage drop values includes: Determine the sum of the actual voltage value and at least one of the forward voltage drop values, and use the sum as the second voltage threshold.
5. The method as described in claim 1, characterized in that, Determining the second voltage threshold includes: Select a voltage threshold from the set voltage threshold range as the second voltage threshold; Wherein, the minimum voltage threshold of the set voltage threshold range is a preset voltage threshold, the maximum voltage threshold is the same as the initial voltage value, the preset voltage threshold is a pre-set voltage threshold value for switching from the first current value to the second current value to charge the electronic device, and the initial voltage value is the voltage value of the electronic device when the electronic device is started.
6. The method according to any one of claims 1-5, characterized in that, The step of controlling the charging of the electronic device based on the actual voltage value and the reference voltage threshold includes: If the actual voltage value does not reach the reference voltage threshold, the electronic device is charged at the first current value. If the actual voltage value reaches the reference voltage threshold, the electronic device is charged with the second current value.
7. A charging control device, characterized in that, Applied to electronic devices, the device includes: The acquisition module is used to acquire the actual voltage value corresponding to the electronic device when it is charged with a first current value, wherein the first current value is the current value that maintains the charging phase of the electronic device in the pre-charge phase, and the actual voltage value is the voltage value of the battery cell. The determining module is configured to determine a reference voltage threshold corresponding to the actual voltage value, wherein the reference voltage threshold is a voltage threshold for charging the electronic device with a second current value, the second current value being greater than the first current value; and The control module is used to control the charging of the electronic device based on the actual voltage value and the reference voltage threshold. The determining module includes: The first determining submodule is used to determine the reference voltage value of the electronic device; The acquisition submodule is used to acquire the comparison result between the actual voltage value and the reference voltage value; and The second determining submodule is specifically used for: if the comparison result is that the actual voltage value is greater than or equal to the reference voltage value, then determining a first voltage threshold and using the first voltage threshold as the reference voltage threshold; If the comparison result is that the actual voltage value is less than the reference voltage value, then a second voltage threshold is determined and used as the reference voltage threshold, wherein the second voltage threshold is greater than the first voltage threshold.
8. The apparatus as claimed in claim 7, characterized in that, The second determining submodule is further configured to: A preset voltage threshold is used as the first voltage threshold, wherein the preset voltage threshold is a pre-set voltage threshold value for switching from the first current value to charging the electronic device with the second current value.
9. The apparatus as claimed in claim 7, characterized in that, The battery circuit of the electronic device includes: a battery cell, and at least one field-effect transistor for discharge protection; wherein, the second determining submodule is further configured to: Determine the forward voltage drop value of the field-effect transistor applied to the battery cell; The second voltage threshold is determined based on the actual voltage value and at least one of the positive voltage drop values.
10. The apparatus as claimed in claim 9, characterized in that, The second determining submodule is further configured to: Determine the sum of the actual voltage value and at least one of the forward voltage drop values, and use the sum as the second voltage threshold.
11. The apparatus as claimed in claim 7, characterized in that, The second determining submodule is further configured to: Select a voltage threshold from the set voltage threshold range as the second voltage threshold; Wherein, the minimum voltage threshold of the set voltage threshold range is a preset voltage threshold, the maximum voltage threshold is the same as the initial voltage value, the preset voltage threshold is a pre-set voltage threshold value for switching from the first current value to the second current value to charge the electronic device, and the initial voltage value is the voltage value of the electronic device when the electronic device is started.
12. The apparatus according to any one of claims 7-11, characterized in that, The control module is specifically used for: If the actual voltage value does not reach the reference voltage threshold, the electronic device is charged at the first current value. If the actual voltage value reaches the reference voltage threshold, the electronic device is charged with the second current value.
13. An electronic device, characterized in that, include: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-6.
14. A non-transitory computer-readable storage medium storing computer instructions, characterized in that, The computer instructions are used to cause the computer to perform the method according to any one of claims 1-6.
15. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the steps of the method according to any one of claims 1-6.