Charging method and electronic equipment
By correcting the battery detection voltage in the over-discharge state, ensuring that the charging parameters match the battery cell state, solving the charging safety problems caused by over-discharge, realizing the safe charging of the battery and extending the service life of the battery.
Patent Information
- Application Number
- CN202411998302.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-04-15
AI Technical Summary
When the battery is in an over-discharge state, the software cannot obtain the battery voltage through the battery meter, which causes the battery voltage read by the charging chip to exceed the safe range. Long-term charging may lead to lithium-absorbing crystals and damage to the battery.
The current battery detection voltage is obtained by detecting the battery of the electronic device and correcting the voltage when it is determined that the battery is in an over-discharge state to match the battery cell voltage. Configure charging parameters based on the corrected voltage to ensure that the battery is charged within a safe voltage range.
Effectively prevent damage to the battery cell caused by overdischarge, ensure that the battery is charged under safe conditions, extend the battery's service life, and improve charging efficiency.
Smart Images

Figure CN119834415A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to but is not limited to the field of electronic technology, and in particular to a charging method and an electronic device. Background Art
[0002] As the functions of electronic devices increase, the power consumption of electronic devices is also increasing, and the batteries of electronic devices may be over-discharged. In related technologies, when the battery is in an over-discharge state, the software cannot obtain the battery cell voltage through the fuel gauge. Therefore, when the battery cell is in the previous charging stage, the battery voltage read by the charging chip may have reached the next charging stage, and the charging current corresponding to different charging stages is different. In this way, the charging current configured according to the battery voltage may exceed the battery safety regulations. Long-term charging according to this charging current may cause the battery to absorb lithium and crystallize. The crystals may pierce the diaphragm to cause flatulence, bulging, etc. Summary of the invention
[0003] In view of this, embodiments of the present application at least provide a charging method and an electronic device.
[0004] The technical solution of the embodiment of the present application is implemented as follows:
[0005] In a first aspect, an embodiment of the present application provides a charging method, the method comprising: responding to a power supply signal generated when a charger is inserted into an electronic device, detecting a battery of the electronic device to obtain a current battery detection voltage; when it is determined that the battery is in an over-discharge state, correcting the current battery detection voltage; based on the corrected current battery detection voltage, configuring charging parameters to charge the battery; wherein the corrected current battery detection voltage is used to match the battery cell voltage, and when the battery is in an over-discharge state, the battery protection circuit disconnects the detection path of the battery cell.
[0006] In a second aspect, an embodiment of the present application provides a charging method, the method comprising: responding to a power supply signal generated when a charger is inserted into an electronic device, detecting a current battery detection voltage of the electronic device; loading a first-stage boot loader for guiding hardware initialization of the electronic device; when the current battery detection voltage does not meet a first threshold, controlling the loading of a second-stage boot loader for guiding an operating system of the electronic device to start; and starting a charging and feedback mechanism of the electronic device based on the second-stage boot loader.
[0007] In a third aspect, an embodiment of the present application provides an electronic device, including a battery, a power management device, and a processor, wherein:
[0008] The battery is used to store electrical energy and provide electrical energy to the electronic device;
[0009] The power management device is used to detect the battery of the electronic device to obtain the current battery detection voltage;
[0010] The processor is used to correct the current battery detection voltage when it is determined that the battery is in an over-discharge state; and configure charging parameters based on the corrected current battery detection voltage to charge the battery; wherein the corrected current battery detection voltage is used to match the battery cell voltage, and when the battery is in an over-discharge state, the battery protection circuit disconnects the detection path of the battery cell.
[0011] It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and are not intended to limit the technical solutions of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and are used together with the specification to illustrate the technical solution of the present application.
[0013] Figure 1 A schematic diagram of the implementation process of a charging method provided in an embodiment of the present application Figure 1 ;
[0014] Figure 2 A schematic diagram of the implementation process of a charging method provided in an embodiment of the present application Figure 2 ;
[0015] Figure 3 A schematic diagram of a battery absorbing lithium crystals provided in an embodiment of the present application;
[0016] Figure 4 A schematic diagram of a battery circuit of an electronic device provided in an embodiment of the present application;
[0017] Figure 5 A schematic diagram of a charging curve of a battery and a battery cell provided in an embodiment of the present application;
[0018] Figure 6 A schematic diagram of an over-discharged battery charging process provided in an embodiment of the present application;
[0019] Figure 7 A schematic diagram of four charging stages of a battery provided in an embodiment of the present application;
[0020] Figure 8 A schematic diagram of another charging method according to an embodiment of the present application;
[0021] Fig. 9 A schematic diagram of the composition structure of a charging device provided in an embodiment of the present application Figure 1 ;
[0022] Fig.10 A schematic diagram of the composition structure of a charging device provided in an embodiment of the present application Figure 2 ;
[0023] Fig.11 A hardware entity schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0024] In order to make the purpose, technical solutions and advantages of the present application clearer, the technical solutions of the present application are further elaborated in detail below in conjunction with the drawings and embodiments. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0025] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0026] It should be pointed out that the terms "first\second\third" involved in the embodiments of the present application are merely to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.
[0027] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meaning as the general understanding of those skilled in the art in the field to which the embodiments of the present application belong. It should also be understood that terms such as those defined in general dictionaries should be understood to have meanings consistent with the meanings in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless specifically defined as here.
[0028] The method provided in the embodiment of the present application can be executed by an electronic device, wherein the electronic device can be a laptop, a tablet computer, a desktop computer, a set-top box, a mobile device (for example, a mobile phone, a portable music player, a personal digital assistant, a dedicated messaging device, a portable gaming device) and other types of terminals, and can also be implemented as a server. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.
[0029] At present, when the battery is in an over-discharge state, the software cannot obtain the cell voltage through the fuel gauge. Therefore, when the cell is in the previous charging stage, the battery voltage read by the charging chip may have reached the next charging stage. The charging current corresponding to different charging stages is different. In this way, the charging current configured according to the battery voltage may exceed the battery safety regulations. Long-term charging according to this charging current may cause the battery to absorb lithium and crystallize. The crystals may pierce the diaphragm and cause flatulence and bulging.
[0030] Based on this, the present application embodiment provides a charging method, such as Figure 1 As shown, the charging method includes the following steps S101 to S103, wherein:
[0031] Step S101, responding to a power supply signal generated when the charger is inserted into the electronic device, detecting the battery of the electronic device to obtain a current battery detection voltage;
[0032] Here, a charger is used to convert electrical energy from a power source (e.g., an outlet) into a form suitable for charging the battery of an electronic device. It usually includes a plug and an output port, the plug is used to plug into an electrical outlet, and the output port is used to connect the electronic device. An electronic device can be any device that uses electrical energy to operate or process, for example, a smartphone, tablet computer, laptop computer, portable game console, smart watch, etc. In electronic devices, batteries are used to store electrical energy and release it when needed, providing power to the electronic device so that it can operate without an external power source.
[0033] The power supply signal may refer to an electrical signal generated by a charger or an electronic device when the charger is plugged into the electronic device. This electrical signal is usually used to indicate that the charger has been successfully connected to the electronic device and the electronic device can start the charging process. In another embodiment, the power supply signal is a voltage signal, and the electronic device starts the charging process after receiving the voltage signal provided by the charger.
[0034] The current battery detection voltage can refer to the voltage value obtained by the electronic device through detecting the battery when the charger is plugged into the electronic device. This voltage value reflects the current state of the battery and is an important basis for the electronic device to decide how to charge.
[0035] In some embodiments, when a charger is inserted into an electronic device (e.g., a mobile phone, a tablet computer, etc.), the electronic device senses the insertion of the charger and generates a power supply signal, which indicates the start of the charging process. After charging starts, the electronic device detects the battery of the electronic device to obtain the current battery detection voltage, which is used to subsequently determine the battery status and configure charging parameters.
[0036] Step S102, when it is determined that the battery is in an over-discharge state, correcting the current battery detection voltage;
[0037] Here, the over-discharge state may refer to a state where the battery power is over-consumed and is below its safe or minimum power threshold. In the over-discharge state, if the battery continues to discharge, it may be damaged, resulting in a degradation of its performance or inability to be recharged.
[0038] In some embodiments, the current battery detection voltage is detected by an electronic device to determine whether the battery is in an over-discharge state. If the current battery detection voltage is lower than a preset threshold, it is determined that the battery is in an over-discharge state. When the battery is in an over-discharge state, the battery protection circuit may disconnect the detection path of the battery cell, resulting in inaccurate directly detected battery voltage. Therefore, the electronic device will correct the current battery detection voltage to more accurately reflect the actual battery cell voltage of the battery.
[0039] Step S103, configuring charging parameters based on the corrected current battery detection voltage to charge the battery; wherein the corrected current battery detection voltage is used to match the battery cell voltage, the battery is in an over-discharge state, and the battery protection circuit disconnects the detection path of the battery cell.
[0040] Here, the corrected battery detection voltage is to more accurately reflect the actual cell voltage of the battery. When the battery is in an over-discharge state, in order to protect the battery from further damage, the battery protection circuit will automatically disconnect the cell detection path, causing the directly detected voltage to deviate from the actual cell voltage. Therefore, the correction process is to ensure that the charging parameters can match the actual state of the cell.
[0041] The charging parameter may be the charging current, which determines the rate of charging. By configuring the charging current based on the corrected current battery detection voltage, the battery can be charged more safely and efficiently.
[0042] In some embodiments, after the electronic device detects that the battery is in an over-discharge state and corrects the current battery detection voltage, the current battery detection voltage is used to configure the charging parameters to ensure that the battery receives appropriate current during the charging process, thereby extending the battery life.
[0043] In the embodiment of the present application, on the one hand, when the battery is in an over-discharge state, the battery cell may be damaged, resulting in a decrease in battery performance or a shortened life. By correcting the current battery detection voltage and configuring the charging parameters based on the corrected current battery detection voltage, it is possible to ensure that the battery is charged within a safe voltage range, thereby preventing damage to the battery cell caused by over-discharge; on the other hand, since the charging parameters match the actual state of the battery cell, electrical energy can be more effectively transmitted to the battery, thereby improving charging efficiency and reducing charging time.
[0044] In some embodiments, the implementation of the charging method may further include the following steps S111 to S113, wherein:
[0045] Step S111, in response to a power supply signal generated when the charger is inserted into the electronic device, loading a first stage boot loader for guiding hardware initialization of the electronic device;
[0046] Here, the first-stage boot loader (Primary Boot Loader, PBL) is responsible for the most basic hardware initialization and initial boot process. Hardware initialization can refer to the process of checking and configuring the various hardware components of the electronic device when the boot loader is started, which includes setting the basic configuration of the memory, processor, input and output devices (for example, screen, keyboard, touch screen, etc.) and other internal components. The purpose of hardware initialization is to ensure that these components can work properly and are ready to respond to subsequent software instructions.
[0047] In some embodiments, when the charger is plugged into the charging port of the electronic device, the charger provides power to the electronic device and generates a power supply signal at the same time. The electronic device responds to the power supply signal, starts the startup process, loads and executes the first stage boot loader, performs hardware initialization and initial boot process guidance.
[0048] Step S112, when the current battery detection voltage does not meet the first threshold, controlling the loading of a second stage boot loader for booting the operating system of the electronic device;
[0049] Here, the first threshold value may be a preset voltage value, and the range of the first threshold value is [0-2.6V]. The current battery detection voltage not meeting the first threshold value may refer to: the current battery detection voltage is less than the preset first threshold value. If the current battery detection voltage is 2.3V and the first threshold value is 2.6V, the current battery detection voltage does not meet the first threshold value. For another example, if the current battery detection voltage is 0 (V) and the first threshold value is 2.4V, the current battery detection voltage does not meet the first threshold value.
[0050] The second-stage boot loader (SBL) is located after the first-stage boot loader and is responsible for booting the operating system of the electronic device.
[0051] In some implementations, after the hardware initialization stage, the electronic device detects the current battery detection voltage and compares the current battery detection voltage with a first threshold value. If the current battery detection voltage is less than the first threshold value, the second stage boot loader is loaded.
[0052] Step S113, based on the second stage boot loader, correct the current battery detection voltage and configure the charging parameters.
[0053] In some embodiments, in the second stage boot loader, the electronic device will use more complex logic and possible hardware support to correct the current battery detection voltage. This is because in the over-discharge state, the battery protection circuit may have disconnected the detection path of the battery cell, resulting in an inaccurate directly measured voltage value. The corrected voltage value will more accurately reflect the actual voltage of the battery cell. Then, based on this corrected voltage value, the electronic device will configure appropriate charging parameters, such as charging current, to ensure that the battery can be charged safely and efficiently.
[0054] In the embodiment of the present application, for the power-on initialization stage of the electronic device, on the one hand, when the current battery detection voltage does not meet the first threshold value, the electronic device will control the loading of the second-stage boot loader as soon as possible. In the prior art, the second-stage boot loader requires the battery to be charged to a higher threshold voltage before entering, which makes it impossible to control the charging parameters early. The second-stage boot loader in the present application is not only responsible for starting the operating system, but also for the current battery detection voltage and configuring the charging parameters, which helps to prevent insufficient charging or overcharging problems caused by inaccurate battery voltage and protect the safety of batteries and electronic devices; on the other hand, by correcting the current battery detection voltage, the electronic device can obtain more accurate battery status information, which helps the electronic device to control the charging process more accurately and avoid overcharging, thereby extending the battery life.
[0055] In some embodiments, the implementation of the charging method may further include the following step S121, wherein:
[0056] Step S121: starting a feedback mechanism based on the boot loader of the second stage, wherein the feedback mechanism is used to prompt the user that the battery has entered a charging state.
[0057] Here, the feedback mechanism may refer to: a mechanism within the electronic device for providing information about the battery charging status to the user.
[0058] In some embodiments, during the SBL stage, the bootloader is not only responsible for correcting the current battery detection voltage and configuring charging parameters, but also can enable a feedback mechanism to prompt the user when the battery starts charging. The specific form of the feedback mechanism can be various, such as displaying the charging status on the display screen of the electronic device, flashing the light emitting diode (LED) indicator light, or making a sound to inform the user that the electronic device has started charging.
[0059] In an embodiment of the present application, the feedback mechanism is activated by the electronic device according to the second-stage boot loader and is used to prompt the user that the electronic device has entered the charging state, so that the user can understand the charging status of the electronic device, thereby avoiding anxiety or misunderstanding caused by the user not knowing whether the electronic device is charging.
[0060] In some embodiments, the implementation of “correcting the current battery detection voltage” in step S102 may further include the following steps S131 and S132, wherein:
[0061] Step S131, determining the working state of the protection transistor in the protection circuit of the battery;
[0062] Here, the protection circuit is an important part of the electronic device for protecting the battery from damage. The protection circuit usually includes one or more protection transistors, which will automatically disconnect when the battery voltage is too high, too low or the current is too large to protect the battery from damage.
[0063] The protection transistor is used to control the on and off of the protection circuit. The protection transistor can be a metal oxide semiconductor (MOS) tube, a bipolar junction transistor (BJT) or other types of semiconductor switching devices. In the battery protection circuit, the protection transistor is usually used to cut off the protection circuit when the battery voltage is too high, too low or the current is too large, thereby protecting the battery from damage. The working state of the protection transistor can be on or off. When the protection transistor is in the on state, the current is allowed to pass; when the protection transistor is in the off state, the current is blocked.
[0064] In some embodiments, when the battery is in normal working state, the protection transistor is in the on state, allowing the battery to power or charge the electronic device. When the battery voltage is too high, too low, or the current is too large, the protection circuit will detect these abnormal conditions and cut off the circuit by controlling the protection transistor to be in the off state, thereby protecting the battery from damage.
[0065] In some embodiments, the working state of the protection transistor can be determined by measuring the voltage across the protection transistor. When the protection transistor is in the on state, the voltage across the protection transistor is very small (close to zero); and when the protection transistor is in the off state, the voltage across the protection transistor increases significantly.
[0066] In some implementations, the working state of the protection transistor can also be determined by measuring the current flowing through the protection transistor. When the protection transistor is in the on state, the transistor allows current to pass, that is, there is current at both ends of the transistor; and when the protection transistor is in the off state, the transistor does not allow current to pass, that is, there is no current at both ends of the transistor.
[0067] Step S132, based on the current battery detection voltage and the working state of the protection transistor, correct the current battery detection voltage to obtain a corrected current battery detection voltage.
[0068] In some embodiments, once the working state of the protection transistor is determined, the second-stage boot loader can use the working state of the protection transistor and the current battery detection voltage to correct the battery voltage value. If the protection transistor is in the on state, the second-stage boot loader can directly use the current battery detection voltage as the corrected battery voltage value. If the protection transistor is in the off state, this may mean that the battery voltage is too high, too low, or there are other abnormal conditions. In this case, the second-stage boot loader corrects the currently detected battery voltage value, and after correction, a battery voltage value that is closer to the actual voltage of the battery cell can be obtained. This corrected current battery detection voltage can be used to configure charging parameters, thereby providing users with more accurate battery status information.
[0069] In the embodiment of the present application, on the one hand, by determining the working state of the protection transistor in the battery protection circuit and combining it with the current battery detection voltage, the current battery detection voltage can be corrected more accurately, which helps to reduce the voltage deviation caused by the working state of the protection transistor, thereby providing more accurate battery voltage information; on the other hand, accurate battery voltage information helps the battery management system to formulate more reasonable charging and discharging strategies. For example, during the charging process, the charging current can be adjusted according to the corrected current battery detection voltage to ensure that the battery can be fully charged safely and quickly. During the discharge process, the drop in battery voltage can be monitored to avoid damage to the battery due to excessive discharge.
[0070] In some embodiments, the protection transistor includes a first transistor and a second transistor, and the implementation of step S131 "determining the working state of the protection transistor in the protection circuit of the battery" may further include the following steps S141 and S142, wherein:
[0071] Step S141, when the current battery detection voltage is greater than the secondary protection voltage and less than the primary protection voltage, determining that the first transistor or the second transistor is turned on;
[0072] Here, the two parameters of the primary protection voltage and the secondary protection voltage can be found in the battery specifications or battery manual. The primary protection voltage may be the highest voltage threshold at which the battery can safely operate, and the secondary protection voltage may be the lowest voltage threshold at which the battery can safely operate.
[0073] In some embodiments, when the current battery detection voltage is greater than the secondary protection voltage and less than the primary protection voltage, the battery protection circuit will take measures, such as disconnecting some transistors, to protect the battery from damage.
[0074] Step S142, when the current battery detection voltage is less than the secondary protection voltage, determining that the first transistor or the second transistor is disconnected, and the primary protection voltage is greater than the secondary protection voltage.
[0075] In some embodiments, when the current battery detection voltage drops below the secondary protection voltage, the battery protection circuit will also take measures, such as disconnecting all transistors, to prevent the battery from over-discharging and protect the battery's service life and safety.
[0076] In the embodiment of the present application, by comparing the current battery detection voltage with the primary protection voltage and the secondary protection voltage, the working state of the protection transistor can be accurately determined. Since the working state of the protection transistor is determined in real time based on the current battery detection voltage, measures can be taken quickly to protect the battery from damage when the battery voltage is abnormal.
[0077] In some embodiments, the implementation of step S132 “correcting the current battery detection voltage based on the current battery detection voltage and the working state of the protection transistor” may further include the following steps S151 and S152, wherein:
[0078] Step S151, when both the first transistor and the second transistor are turned off, correcting the current battery detection voltage based on the first voltage difference;
[0079] Here, the first voltage difference may be a preset value for correcting a battery detection voltage error caused by the disconnection of the first transistor and the second transistor.
[0080] In some embodiments, since both the first transistor and the second transistor are disconnected, resulting in a large difference between the current battery detection voltage and the actual battery cell voltage, the electronic device uses the first voltage difference to correct the current battery detection voltage. For example, the current battery detection voltage is subtracted from the first voltage difference (e.g., 0.9V) to obtain a corrected current battery detection voltage, and the corrected current battery detection voltage can more accurately reflect the actual battery cell voltage.
[0081] Step S152: when the first transistor or the second transistor is turned on, correcting the current battery detection voltage based on the second voltage difference, wherein the first voltage difference is greater than the second voltage difference.
[0082] Here, the second voltage difference may also be a preset value, which is used to correct the battery detection voltage error caused by the disconnection of the first transistor or the second transistor (i.e., the second transistor or the first transistor is turned on). The first voltage difference is greater than the second voltage difference, indicating that when all transistors are disconnected, the voltage error that may be generated is larger, so a larger voltage difference is used to correct the current battery detection voltage. When the transistors are partially disconnected, the voltage error that may be generated is smaller, so a smaller voltage difference is used to correct the current battery detection voltage.
[0083] In some embodiments, since the first transistor or the second transistor is disconnected, resulting in a small difference between the current battery detection voltage and the actual battery cell voltage, the electronic device uses the second voltage difference to correct the current battery detection voltage. For example, the current battery detection voltage is subtracted from the second voltage difference (e.g., 0.6V) to obtain a corrected current battery detection voltage, and the corrected current battery detection voltage can more accurately reflect the actual battery cell voltage.
[0084] In the embodiment of the present application, by selecting different voltage differences for correction according to the working state (on or off) of the transistor, the corrected current battery detection voltage can more accurately reflect the actual voltage of the battery.
[0085] In some embodiments, the implementation of “determining that the battery is in an over-discharge state” in step S102 may further include the following step S161, wherein:
[0086] Step S161: If the current battery detection voltage is less than a second threshold, it is determined that the battery of the electronic device is in an over-discharge state, and the second threshold is greater than the first threshold.
[0087] Here, the second threshold value may be a preset voltage value, which is used to determine whether the battery is in an over-discharge state. The second threshold value may be 2.7V, 2.75V, 2.8V, etc. Next, the second threshold value of 2.8V is taken as an example for description.
[0088] In some embodiments, a current battery detection voltage of the battery is detected by a charging chip (Power Management IC, PMIC), and the current battery detection voltage is compared with a second threshold value. If the current battery detection voltage 2.7V is less than the second threshold value 2.8V, it is determined that the battery is in an over-discharge state.
[0089] In the embodiment of the present application, since an over-discharged battery may generate heat, gas, or even cause a fire or other safety hazard, by setting a second threshold and timely determining whether the battery is over-discharged and taking corresponding measures (for example, starting a protection program), the battery can be effectively prevented from being damaged due to over-discharge, significantly reducing safety risks.
[0090] The present application embodiment provides a charging method, such as Figure 2 As shown, the charging method includes the following steps S201 to S204, wherein:
[0091] Step S201, responding to a power supply signal generated when the charger is inserted into the electronic device, detecting a current battery detection voltage of the electronic device;
[0092] In some embodiments, when a charger is inserted into an electronic device (e.g., a mobile phone, a tablet computer, etc.), the electronic device senses the insertion of the charger and generates a power supply signal, which indicates the start of the charging process. After charging starts, the electronic device detects the battery of the electronic device to obtain the current battery detection voltage, which is used to subsequently start the charging and feedback mechanism of the electronic device.
[0093] Step S202, loading a first stage boot loader for booting the hardware initialization of the electronic device;
[0094] In some embodiments, when the charger is plugged into the charging port of the electronic device, the charger provides power to the electronic device and generates a power supply signal at the same time. The electronic device responds to the power supply signal, starts the startup process, loads and executes the first stage boot loader, performs hardware initialization and initial boot process guidance.
[0095] Step S203, when the current battery detection voltage does not meet the first threshold, control loading of a second stage boot loader for booting the operating system of the electronic device;
[0096] In some implementations, after the hardware initialization stage, the electronic device detects the current battery detection voltage and compares the current battery detection voltage with a first threshold value, and loads the second stage boot loader if the current battery detection voltage is higher than the first threshold value.
[0097] Step S204: based on the boot loader of the second stage, starting the charging and feedback mechanism of the electronic device.
[0098] In some embodiments, in the second stage boot loader, the electronic device will use more complex logic and possible hardware support to start the charging and feedback mechanism of the electronic device. Starting the charging mechanism of the electronic device may be to start configuring the charging parameters, specifically, to correct the current battery detection voltage, and configure appropriate charging parameters, such as charging current, according to the corrected voltage value, to ensure that the battery can be charged safely and efficiently. Starting the feedback mechanism of the electronic device may be to prompt the user when the battery starts charging, such as displaying the charging status on the display screen of the electronic device, flashing the light emitting diode indicator, making a sound, etc. to inform the user that the electronic device has started charging.
[0099] In an embodiment of the present application, after loading the second stage boot loader, the electronic device can start the charging and feedback mechanism more efficiently, so that the charger can start charging the electronic device faster and the user can obtain feedback on the charging status earlier.
[0100] Because there are primary and secondary protection MOS between the battery voltage (VBAT) and the cell voltage (VCELL), when the battery is over-discharged (for example, the battery voltage is lower than 2.8V) and the MOS is not turned on, there is a voltage difference of about 0.6-0.9V between VBAT and VCELL, and the charging chip (Power Management IC, PMIC) reads VBAT. At this time, because the battery is in an over-discharge state, the software cannot obtain the cell voltage VCELL through the fuel gauge (Fuelgague). Therefore, when VCELL is still in the previous charging stage, the VBAT read by the charging chip may have reached the voltage for entering the next charging stage. Different stages correspond to different charging currents. In this way, the charging current in the over-discharge stage may exceed the battery safety regulations. Long-term charging according to this charging current may cause the battery to absorb lithium and crystallize. The crystals may pierce the diaphragm and cause bloating, bulging, etc., such as Figure 3 shown.
[0101] In the related art, before the battery releases the primary protection and the secondary protection (i.e., the MOS is not turned on), the current can only be limited by the battery voltage. Because there is a voltage difference between the battery voltage VBAT and the cell voltage VCELL, the current limit according to VBAT is generally greater than the current limit according to VCELL. This may cause the battery to absorb lithium and cause bloating and swelling in the long term. If the battery is severely over-discharged (for example, the battery voltage is below 2V), the motor cannot vibrate in the PBL stage. After the charger is inserted into the electronic device, it must wait until it enters the SBL before it can vibrate. The waiting time for the motor to vibrate gives the user a very bad experience, and the user may even think that the electronic device cannot be charged.
[0102] The present application embodiment provides a battery circuit of an electronic device, such as Figure 4 As shown, the battery circuit includes: a battery (VBAT), a battery cell (Cell), a charging chip (PMIC), a system power management interface (System Power Management Interface, SPMI), a positive voltage supply interface (Voltage Supply Positive, VSP), a negative voltage supply interface (Voltage Supply Negative, VSN), a processor (SOC), a battery connector (BAT CONN), a protection chip (Protector IC), a protection transistor (Protector MOS), a fuel gauge (Fuel gague) and a sampling resistor (Sampling resistor).
[0103] from Figure 4 It can be seen that due to the presence of two protection transistors between the battery and the cell, the battery voltage VBAT read by the PMIC is not the actual voltage of the battery, and there is a voltage difference. During the charging process, due to over-discharge of the battery, the battery voltage is relatively low, and the protection transistor is disconnected (the voltage difference is 0.6V when one protection transistor is disconnected, and the voltage difference is 0.9V when two protection transistors are disconnected), the fuel gauge cannot report the cell voltage to the SOC, so the SOC does not know the actual cell voltage, but the PMIC can read the battery voltage VBAT, and will allocate the charging current according to the battery voltage VBAT, and the charging current may exceed the battery safety regulations.
[0104] The present application embodiment provides a charging curve of a battery and a battery cell, such as Figure 5 As shown, at 51 o'clock, the voltage difference between the battery and the cell is 0.9V, and there is secondary protection; at 52 o'clock, the voltage difference between the battery and the cell is 0.6V, and there is primary protection; after 52 o'clock, the battery voltage is equal to the cell voltage, that is, there is no voltage difference between the battery and the cell, and the first and second level protections are released.
[0105] The present application embodiment provides a charging process for an over-discharged battery, such as Figure 6 As shown, the over-discharged battery charging process may include the following steps S601 to S605, wherein:
[0106] Step S601, determining that the battery is in an over-discharge state;
[0107] Step S602, in response to a power supply signal generated when the charger is inserted into the electronic device, loading a boot loader program of a PBL stage for booting the hardware initialization of the electronic device;
[0108] Step S603, controlling the loading of a boot loader program in the SBL phase for booting the operating system of the electronic device;
[0109] Step S604, controlling the fast charging of the electronic device with the screen on;
[0110] Step S605, controlling the electronic device to turn on.
[0111] In the embodiment of the present application, because the prior art requires the battery voltage to reach a range (for example, 2.9V) when entering the SBL stage, the battery voltage entering the SBL stage is set to a smaller value. When the charger is inserted into the electronic device, the SBL stage can be entered as soon as possible after the PBL. After entering the SBL stage, the charging current is configured according to the battery cell voltage. The configured charging current will not exceed the current required by the battery safety regulations, and there is no safety risk.
[0112] In the embodiment of the present application, on the one hand, the charging current can skip the PBL stage and directly enter the SBL stage. After entering the SBL stage, the charging current is matched according to the battery cell voltage and does not exceed the battery safety regulations, thereby avoiding the battery absorbing lithium and causing flatulence, bulging, etc., and can also ensure that the charging current is maximized under safety conditions to light up the screen as soon as possible; on the other hand, after the charger is inserted into the electronic device, it directly skips the PBL stage and enters the SBL stage, which can make the motor in the electronic device vibrate immediately, giving the user a good experience.
[0113] The present application embodiment provides four charging stages of a battery, such as Figure 7 As shown, the four charging stages include trickle charging, pre-charging, constant current charging, and constant voltage charging. Curve 71 represents the battery voltage change in the four charging stages, and curve 72 represents the charging current change in the four charging stages.
[0114] The present application embodiment provides another charging method, such as Figure 8 As shown, the charging method may include the following steps S801 to S811, wherein:
[0115] Step S801, detecting the battery voltage in response to a power supply signal generated when the charger is plugged into the electronic device;
[0116] Step S802, determining the cell voltage according to the battery voltage and the voltage difference between the battery and the cell;
[0117] Step S803, determining whether the cell voltage is less than 2V;
[0118] Here, if it is yes, that is, the cell voltage is less than 2V, the process goes to step S804; if it is no, that is, the cell voltage is greater than 2V, the process goes to step S805;
[0119] Step S804, using a charging current less than or equal to 0.5% of the battery capacity for trickle charging;
[0120] Step S805, determining whether the cell voltage is less than 2.9V;
[0121] Here, if yes, that is, the cell voltage is less than 2.9V, the process goes to step S806; if no, that is, the cell voltage is greater than 2.9V, the process goes to step S807;
[0122] Step S806, pre-charging with a charging current less than or equal to 5% of the battery capacity;
[0123] Step S807, determining whether the cell voltage is less than 3.2V;
[0124] Here, if it is yes, that is, the cell voltage is less than 3.2V, the process goes to step S808; if it is no, that is, the cell voltage is greater than 3.2V, the process goes to step S809;
[0125] Step S808, pre-charging with a charging current less than or equal to 10% of the battery capacity;
[0126] Step S809, determining whether the cell voltage is less than the full charge voltage;
[0127] Here, if it is yes, that is, the cell voltage is less than the full voltage, the process goes to step S810; if it is no, that is, the cell voltage is equal to the full voltage, the process goes to step S811;
[0128] Step S810, constant current charging is performed using a constant current charging current;
[0129] Step S811, constant voltage charging is performed using a full voltage.
[0130] Based on the above embodiments, the present application provides a charging device, such as Fig. 9 As shown, the charging device 900 includes:
[0131] The first detection module 910 is used to detect the battery of the electronic device to obtain the current battery detection voltage in response to the power supply signal generated when the charger is inserted into the electronic device;
[0132] A first correction module 920, configured to correct the current battery detection voltage when it is determined that the battery is in an over-discharge state;
[0133] The configuration module 930 is used to configure charging parameters based on the corrected current battery detection voltage to charge the battery; wherein the corrected current battery detection voltage is used to match the battery cell voltage, and when the battery is in an over-discharge state, the battery protection circuit disconnects the detection path of the battery cell.
[0134] In some embodiments, the charging device 900 also includes: a first control module, which is used to respond to the power supply signal generated when the charger is inserted into the electronic device, and control the loading of a first-stage boot loader for guiding the hardware initialization of the electronic device; a second control module, which is used to control the loading of a second-stage boot loader for guiding the operating system of the electronic device to start when the current battery detection voltage does not meet the first threshold; and a second correction module, which is used to correct the current battery detection voltage and configure the charging parameters based on the second-stage boot loader.
[0135] In some embodiments, the charging device 900 further includes: a loading module, configured to enable a feedback mechanism based on the boot loader of the second stage, wherein the feedback mechanism is configured to prompt a user that the battery has entered a charging state.
[0136] In some embodiments, the first correction module 920 includes: a first determination unit, used to determine the working state of the protection transistor in the protection circuit of the battery; a correction unit, used to correct the current battery detection voltage based on the current battery detection voltage and the working state of the protection transistor to obtain a corrected current battery detection voltage.
[0137] In some embodiments, the protection transistor includes a first transistor and a second transistor, and the determination unit includes: a first determination sub-unit, used to determine that the first transistor or the second transistor is turned on when the current battery detection voltage is greater than the secondary protection voltage and less than the primary protection voltage; a second determination sub-unit, used to determine that the first transistor or the second transistor is both disconnected and the primary protection voltage is greater than the secondary protection voltage when the current battery detection voltage is less than the secondary protection voltage.
[0138] In some embodiments, the correction unit includes: a first correction sub-unit, used to correct the current battery detection voltage based on a first voltage difference when both the first transistor and the second transistor are disconnected; a second correction sub-unit, used to correct the current battery detection voltage based on a second voltage difference when the first transistor or the second transistor is turned on, and the first voltage difference is greater than the second voltage difference.
[0139] In some embodiments, the first correction module 920 includes: a second determination unit, configured to determine that the battery of the electronic device is in an over-discharge state if the current battery detection voltage is less than a second threshold, and the second threshold is greater than the first threshold.
[0140] In some embodiments, the first threshold is in the range of [0-2.6V].
[0141] The present application embodiment provides a charging device, such as Fig.10 As shown, the charging device 900 includes:
[0142] The second detection module 1010 is used to detect the current battery detection voltage of the electronic device in response to the power supply signal generated when the charger is inserted into the electronic device;
[0143] A loading module 1020, used to load a boot loader for the first stage of hardware initialization of the electronic device;
[0144] A control module 1030, configured to control loading of a second stage boot loader for booting an operating system of the electronic device when the current battery detection voltage does not meet the first threshold;
[0145] The startup module 1040 is used to start the charging and feedback mechanism of the electronic device based on the boot loader of the second stage.
[0146] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.
[0147] It should be noted that in the embodiment of the present application, if the above method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, which is stored in a storage medium, including a number of instructions to enable an electronic device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.
[0148] The present application embodiment provides an electronic device, such as Fig.11 As shown, the electronic device 1100 includes a battery 1110, a power management device 1120 and a processor 1130, wherein:
[0149] The battery 1110 is used to store electrical energy and provide electrical energy to the electronic device;
[0150] The power management device 1120 is used to detect the battery of the electronic device to obtain the current battery detection voltage;
[0151] The processor 1130 is used to correct the current battery detection voltage when determining that the battery is in an over-discharge state; and configure charging parameters based on the corrected current battery detection voltage to charge the battery; wherein the corrected current battery detection voltage is used to match the battery cell voltage, and when the battery is in an over-discharge state, the battery protection circuit disconnects the detection path of the battery cell.
[0152] The embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and the computer program implements the above method when executed by a processor. The computer-readable storage medium may be transient or non-transient.
[0153] The embodiment of the present application provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and when the computer program is read and executed by a computer, some or all of the steps in the above method are implemented. The computer program product can be implemented specifically by hardware, software or a combination thereof. In an optional embodiment, the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK) and the like.
[0154] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.
[0155] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the serial number of each step / process mentioned above does not mean the order of execution, and the execution order of each step / process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The serial numbers of the embodiments of the present application mentioned above are for description only and do not represent the advantages and disadvantages of the embodiments.
[0156] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0157] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0158] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0159] In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0160] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.
[0161] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for an electronic device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.
[0162] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.
Claims
1. A charging method, the method comprising: In response to a power supply signal generated when the charger is inserted into the electronic device, the battery of the electronic device is detected to obtain a current battery detection voltage; When it is determined that the battery is in an over-discharge state, correcting the current battery detection voltage; Based on the corrected current battery detection voltage, configuring charging parameters to charge the battery; The corrected current battery detection voltage is used to match the cell voltage of the battery. When the battery is in an over-discharge state, the protection circuit of the battery disconnects the detection path of the cell.
2. The charging method according to claim 1, further comprising: In response to a power supply signal generated when a charger is inserted into the electronic device, control loading of a first stage boot loader program for booting hardware initialization of the electronic device; When the current battery detection voltage does not meet the first threshold, controlling the loading of a second stage boot loader for booting the operating system of the electronic device; Based on the second stage boot loader, the current battery detection voltage is corrected and the charging parameters are configured.
3. The charging method according to claim 2, further comprising: A feedback mechanism is enabled based on the boot loader of the second stage, and the feedback mechanism is used to prompt the user that the battery has entered a charging state.
4. The charging method according to claim 1 or 2, wherein the correcting the current battery detection voltage comprises: Determining the working state of a protection transistor in a protection circuit of the battery; Based on the current battery detection voltage and the working state of the protection transistor, the current battery detection voltage is corrected to obtain a corrected current battery detection voltage.
5. The charging method according to claim 4, wherein the protection transistor comprises a first transistor and a second transistor; The determining the working state of the protection transistor in the protection circuit of the battery comprises: When the current battery detection voltage is greater than the secondary protection voltage and less than the primary protection voltage, determining that the first transistor or the second transistor is turned on; When the current battery detection voltage is lower than the secondary protection voltage, it is determined that the first transistor or the second transistor is disconnected, and the primary protection voltage is higher than the secondary protection voltage.
6. The charging method according to claim 5, wherein the correcting the current battery detection voltage based on the current battery detection voltage and the working state of the protection transistor comprises: When the first transistor and the second transistor are both disconnected, correcting the current battery detection voltage based on the first voltage difference; In a case where the first transistor or the second transistor is turned on, the current battery detection voltage is corrected based on a second voltage difference, and the first voltage difference is greater than the second voltage difference.
7. The charging method according to claim 2, wherein determining that the battery of the electronic device is in an over-discharge state comprises: If the current battery detection voltage is less than a second threshold, it is determined that the battery of the electronic device is in an over-discharge state, and the second threshold is greater than the first threshold.
8. The charging method according to claim 2 or 7, wherein the first threshold value is in the range of [0-2.6V].
9. A charging method, the method comprising: In response to a power supply signal generated when the charger is inserted into the electronic device, detecting a current battery detection voltage of the electronic device; Loading a boot loader for the first stage of hardware initialization of the electronic device; When the current battery detection voltage does not meet the first threshold, controlling the loading of a second stage boot loader for booting the operating system of the electronic device; Based on the second-stage boot loader, the charging and feedback mechanism of the electronic device is started.
10. An electronic device comprising a battery, a power management device and a processor, wherein: The battery is used to store electrical energy and provide electrical energy to the electronic device; The power management device is used to detect the battery of the electronic device to obtain the current battery detection voltage; The processor is used to correct the current battery detection voltage when determining that the battery is in an over-discharge state; Based on the modified current battery detection voltage, charging parameters are configured to charge the battery; wherein the modified current battery detection voltage is used to match the battery cell voltage, and when the battery is in an over-discharge state, the battery protection circuit disconnects the detection path of the battery cell.