A charging method and an electronic device

By dynamically adjusting the system load voltage threshold and switching electronic devices according to the charging environment, the problem of charging failure due to battery aging or low temperature is solved, ensuring reliable startup and stable operation of the equipment in various scenarios.

CN122137067APending Publication Date: 2026-06-02LENOVO (BEIJING) LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
LENOVO (BEIJING) LTD
Filing Date
2026-01-14
Publication Date
2026-06-02

AI Technical Summary

Technical Problem

In scenarios such as battery aging or low ambient temperature, after an electronic device automatically shuts down due to low battery, it may experience repeated power cycling or failure to activate when charged with a low-power charger.

Method used

By dynamically adjusting the system load voltage threshold, the first and second systems of electronic devices are switched according to the charging environment (such as charger power and ambient temperature) to ensure that the battery power is sufficient to support the loading of the second system under different conditions.

Benefits of technology

It improves the startup success rate and stability of electronic devices under complex charging conditions, enhances the user experience, and avoids repeated power-on/off cycles or activation failures due to insufficient power.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122137067A_ABST
    Figure CN122137067A_ABST
Patent Text Reader

Abstract

This disclosure provides a charging method and an electronic device, relating to the field of electronic device technology. A charging method includes: configuring charging parameters of a battery in the electronic device based on a first system configuration of the electronic device; determining a charging environment for the battery; determining a system load voltage threshold for the battery based on the charging environment; acquiring a charging detection voltage of the battery; and, in response to the charging detection voltage being greater than the system load voltage threshold, loading a second system of the electronic device; wherein the first system is different from the second system, and the second system is guided and operated based on the first system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of electronic equipment technology, and more particularly to a charging method and an electronic device. Background Technology

[0002] In scenarios such as battery aging or low ambient temperature, if an electronic device automatically shuts down due to low battery, and a low-power charger is used to charge the device, the device may repeatedly turn on and off or even fail to activate. Summary of the Invention

[0003] This disclosure provides a charging method and an electronic device to at least solve the above-mentioned technical problems existing in the prior art.

[0004] According to a first aspect of this disclosure, a charging method is provided, comprising: configuring charging parameters of a battery in an electronic device based on a first system of the electronic device; determining a charging environment for the battery; determining a system load voltage threshold for the battery based on the charging environment; acquiring a charging detection voltage of the battery; and loading a second system of the electronic device in response to the charging detection voltage being greater than the system load voltage threshold; wherein the first system is different from the second system, and the second system is guided to run based on the first system.

[0005] In one embodiment, the charging environment is related to at least one of the following: the ambient temperature during charging, the charging power of the charger charging the battery, and the power consumption of the electronic device when the second system is in operation; the method further includes: if the charging environment meets a first charging environment condition, determining the system loading voltage threshold as a first threshold; in response to the charging detection voltage being greater than the first threshold, loading the second system of the electronic device; if the charging environment meets a second charging environment condition, determining the system loading voltage threshold as a second threshold; in response to the charging detection voltage being greater than the second threshold, loading the second system of the electronic device; wherein the first threshold is different from the second threshold, and the first charging environment condition is different from the second charging environment condition.

[0006] In one possible implementation, the first charging environment conditions include the charger's charging power being in a first power range and / or the ambient temperature being in a first temperature range; the second charging environment conditions include the charger's charging power being in a second power range and / or the ambient temperature being in a second temperature range; wherein the first power range and the second power range are different, and the first temperature range is different from the second temperature range.

[0007] In one possible implementation, determining the charging environment of the battery includes: determining that the charging environment meets the first charging environment condition in response to the charging power of the charger being less than a preset power threshold; and determining that the charging environment meets the second charging environment condition in response to the charging power of the charger being greater than or equal to the preset power threshold; wherein the first threshold is less than the second threshold.

[0008] In one possible implementation, determining the charging environment of the battery includes: determining that the charging environment meets the first charging environment condition in response to the ambient temperature being less than a preset temperature threshold; and determining that the charging environment meets the second charging environment condition in response to the ambient temperature being greater than or equal to the preset temperature threshold; wherein the first threshold is greater than the second threshold.

[0009] In one embodiment, determining the system load voltage threshold of the battery based on the charging environment includes: determining the charging current, internal resistance, and open-circuit voltage threshold of the battery based on the charging environment; determining the deviation voltage generated by the battery based on the charging current and the internal resistance of the battery; and determining the system load voltage threshold of the battery based on the open-circuit voltage threshold and the deviation voltage.

[0010] In one possible implementation, determining the battery internal resistance based on the charging environment includes: in response to the ambient temperature in the charging environment being less than a preset temperature threshold, determining the battery internal resistance based on a reference internal resistance of the battery, the difference between the preset temperature threshold and the ambient temperature, and the temperature coefficient of the battery; and in response to the ambient temperature in the charging environment being greater than or equal to the preset temperature threshold, determining the reference internal resistance of the battery as the battery internal resistance.

[0011] In one embodiment, the second system for loading the electronic device includes: acquiring a charging detection voltage of the battery after each loading step of the second system; executing a next loading step of the second system in response to the charging detection voltage being greater than a target voltage threshold corresponding to the loading step; different target voltage thresholds corresponding to different loading steps; and reacquiring the charging detection voltage of the battery after a first time period in response to the charging detection voltage being less than or equal to the target voltage threshold corresponding to the loading step, until the charging detection voltage is greater than the target voltage threshold corresponding to the loading step.

[0012] In one embodiment, a charging method further includes: in response to the charging detection voltage being less than or equal to the system load voltage threshold, re-acquiring the system load voltage threshold and the charging detection voltage of the battery after a second duration, until the charging detection voltage is greater than the system load voltage threshold; wherein the second duration is determined based on the difference between the charging detection voltage and the system load voltage threshold.

[0013] According to a third aspect of this disclosure, an electronic device is provided, comprising: A battery, at least one processor; and, 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, and the instructions are executed by the at least one processor to enable the at least one processor to perform: The first system configuration of the electronic device configures the charging parameters of the battery in the electronic device; Determine the charging environment of the battery; Determine the system load voltage threshold of the battery based on the charging environment; Obtain the charging detection voltage of the battery; In response to the charging detection voltage being greater than the system loading voltage threshold, the second system of the electronic device is loaded; The first system differs from the second system, with the second system running based on the first system.

[0014] According to a fourth aspect of this disclosure, a non-transitory computer-readable storage medium is provided storing computer instructions for causing the computer to perform the methods described in this disclosure.

[0015] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description

[0016] The above and other objects, features, and advantages of this disclosure will become readily apparent from the following detailed description of exemplary embodiments, taken in conjunction with the accompanying drawings. Several embodiments of this disclosure are illustrated in the drawings by way of example and not limitation, in which: In the accompanying drawings, the same or corresponding reference numerals indicate the same or corresponding parts.

[0017] Figure 1 A flowchart illustrating a charging method according to an embodiment of this disclosure is shown. Figure 1 ; Figure 2A flowchart illustrating a charging method according to an embodiment of this disclosure is shown. Figure 2 ; Figure 3 A schematic diagram of the equivalent circuit of a battery in an electronic device is shown; Figure 4 This illustration shows a scenario illustrating a charging method according to an embodiment of the present disclosure. Figure 1 ; Figure 5 This illustration shows a scenario illustrating a charging method according to an embodiment of the present disclosure. Figure 2 ; Figure 6 A schematic diagram of the composition structure of an electronic device according to an embodiment of the present disclosure is shown. Detailed Implementation

[0018] To make the objectives, features, and advantages of this disclosure more apparent and understandable, the technical solutions in the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this disclosure, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this disclosure without creative effort are within the scope of protection of this disclosure.

[0019] Figure 1 A flowchart illustrating a charging method according to an embodiment of this disclosure is shown. Figure 1 ,like Figure 1 As shown, a charging method includes: Step S101: Configure the charging parameters of the battery in the electronic device based on the first system configuration of the electronic device.

[0020] In this embodiment, the first system refers to the underlying firmware in the electronic device that starts before the main operating system (such as Android or Windows), such as the charging management firmware in the Unified Extensible Firmware Interface (UEFI), bootloader, or embedded microcontroller unit (MCU). The first system is mainly responsible for initializing the hardware and managing the initial charging process.

[0021] In this embodiment, if the electronic device is connected to the charger, the processor of the electronic device will power on and start the first system. The first system will set and initialize key parameters during the battery charging process based on the inherent characteristics of the battery, hardware design specifications, and preset logic. In one example, the first system can obtain battery model data (such as battery type, battery capacity, standard charging current, standard charging voltage, and reference internal resistance) and hardware calibration parameters pre-stored in the system firmware, and configure these parameters into the power management chip to start battery charging and guide subsequent charging behavior.

[0022] Step S102: Determine the charging environment of the battery.

[0023] In this embodiment, the charging environment refers to various external and internal conditions that affect the battery charging process, mainly including the type of charger, the charging power of the charger, the ambient temperature, and the power consumption of electronic devices when running in the second system. Based on the charging environment, it can be determined whether the current charging conditions belong to special operating conditions (such as low temperature, weak charger power supply, etc.).

[0024] In this embodiment, the charging environment can be determined as follows: After the first system starts the charging process, relevant data is collected through the sensors and charging chip built into the electronic device. The ambient temperature can be obtained through the temperature sensor inside the electronic device, for example, the collected temperature is -5℃, 8℃, 15℃, etc.; the charging current of the charger is obtained through the current detection module of the charging chip, for example, the collected charging current is 1A, 2.5A, etc.; simultaneously, the charging chip also feeds back the charging power of the charger, for example, the power of a 5V / 1A charger is 5W, and the power of a 5V / 2.5A charger is 12.5W, etc.

[0025] Step S103: Determine the system load voltage threshold of the battery based on the charging environment.

[0026] In this embodiment, the system loading voltage threshold refers to the voltage threshold at which the electronic device determines whether a second system (such as an operating system) can be loaded during the first system stage. That is, when the battery's charging detection voltage reaches the system loading voltage threshold, the electronic device can load the second system (e.g., the operating system). Different charging environments correspond to different system loading voltage thresholds. For example, in low-temperature environments, the battery's internal resistance increases, causing the battery terminal voltage (i.e., the charging detection voltage) to be higher at the same charge level than at normal temperatures. Therefore, to ensure the electronic device can start normally at low temperatures, the system loading voltage threshold in low-temperature environments needs to be greater than the system loading voltage threshold at normal temperatures.

[0027] Step S104: Obtain the battery charging detection voltage.

[0028] In this embodiment, the charging detection voltage refers to the battery terminal voltage detected in real time during the charging process. The charging detection voltage can be acquired using a voltage sensor, which converts the battery terminal voltage signal into a digital signal for processing by the electronic device's control system. During charging, the charging detection voltage gradually increases as the battery capacity increases.

[0029] Step S105: In response to the charging detection voltage being greater than the system loading voltage threshold, the second system of the electronic device is loaded.

[0030] In this embodiment, when the charging detection voltage exceeds the system loading voltage threshold, it indicates that the battery has sufficient charge to support the operation of the second system. The second system is typically the operating system of the electronic device, such as Android or Windows. The process of loading the second system includes steps such as initializing the operating system and launching applications. For example, when the charging detection voltage exceeds the system loading voltage threshold of 3.6V, the electronic device triggers the instruction to load the operating system and begins executing the operating system's startup program. During the loading process, the electronic device checks the connection status of hardware devices, initializes various drivers, and ultimately enables the electronic device to enter a user-operable state.

[0031] In this embodiment, the first system differs from the second system; the second system boots and runs based on the first system. The first system is the underlying system, primarily responsible for hardware initialization and basic function configuration; the second system is the operating system, responsible for the advanced functions of the electronic device and user interaction. The second system runs under the guidance of the first system; that is, the first system provides the necessary hardware support and initial environment for the startup of the second system. For example, when the electronic device starts up, the bootloader (first system) loads the bootloader of the operating system (second system), and then the operating system takes over control of the electronic device and begins executing various applications and services.

[0032] In this disclosure, the system load voltage threshold is dynamically calculated, and the second system is only started when the battery charging detection voltage is greater than the system load voltage threshold. This ensures that electronic devices can safely transition from the first system to the second system under various scenarios (especially battery aging or low ambient temperature), avoiding repeated power-on and power-off issues or inability to activate due to insufficient battery power, and guaranteeing the charging reliability and user experience of electronic devices under complex charging conditions.

[0033] In another embodiment, the charging environment is related to at least one of the following: the ambient temperature during charging, the charging power of the charger charging the battery, and the power consumption of the electronic device when the second system is in operation.

[0034] In this embodiment, the charging environment is related to the following factors: ambient temperature, charger charging power, and power consumption of the electronic device when the second system is running. Ambient temperature affects the battery's internal resistance and chemical reaction rate, thus affecting the battery's charge and discharge performance; the charger's charging power determines the current and voltage during charging, directly affecting the battery's charging speed and efficiency; and the power consumption of the electronic device when the second system is running determines the battery's load condition when loading the second system. These factors all affect the system load voltage threshold. For example, the lower the ambient temperature, the higher the battery's internal resistance, resulting in a reduction in the battery's actual usable capacity. Therefore, a higher system load voltage threshold needs to be set to ensure that the device can start and operate stably. The lower the charger's charging power, the lower the current and voltage supplied to the electronic device, and the smaller the voltage deviation caused by the current passing through the internal resistance. Therefore, a lower system load voltage threshold needs to be set. The higher the power consumption of the electronic device when the second system is running, the more power the electronic device needs during startup and operation. Therefore, a higher system load voltage threshold needs to be set to ensure that the battery can provide sufficient energy to meet the power consumption requirements of the electronic device.

[0035] Figure 2 A flowchart illustrating a charging method according to an embodiment of this disclosure is shown. Figure 2 ,like Figure 2 As shown, a charging method includes: Step S201: Configure the charging parameters of the battery in the electronic device based on the first system configuration of the electronic device.

[0036] Step S202: Determine the charging environment of the battery.

[0037] The specific implementation details of steps S201-S202 are similar to those of steps S101-S102, and will not be repeated here.

[0038] If the charging environment meets the first charging environment condition, then proceed to steps S203-S205: Step S203: Determine the system load voltage threshold as the first threshold.

[0039] Step S204: Obtain the battery charging detection voltage.

[0040] In step S205, in response to the charging detection voltage being greater than the first threshold, the second system of the electronic device is loaded.

[0041] In this embodiment, the first charging environment condition is a predefined set of specific conditions used to describe a specific charging scenario. When the charging environment meets the first charging environment condition, the system sets the system load voltage threshold to the first threshold. When the charging detection voltage is greater than the first threshold, it indicates that the battery capacity is sufficient to support the operation of the second system, at which point the first system triggers the loading of the second system.

[0042] If the charging environment meets the second charging environment condition, then proceed to steps S206-S208: Step S206: Determine the system load voltage threshold as the second threshold.

[0043] Step S207: Obtain the battery charging detection voltage.

[0044] In step S208, in response to the charging detection voltage being greater than the second threshold, the second system of the electronic device is loaded.

[0045] In this embodiment, the second charging environment condition is a different set of specific conditions from the first charging environment condition, describing another charging scenario. When the charging environment meets these conditions, the system sets the system load voltage threshold to the second threshold. When the charging detection voltage is greater than the second threshold, it indicates that the battery capacity is sufficient to support the operation of the second system, at which point the first system triggers the operation of loading the second system.

[0046] In this embodiment, the first threshold and the second threshold are set separately according to different charging environmental conditions, and their values ​​are different to adapt to different charging scenarios. The first charging environmental conditions and the second charging environmental conditions are also different, describing different charging scenarios respectively. That is to say, the corresponding system load voltage threshold is different under different charging environmental conditions.

[0047] In this disclosure, different system load voltage thresholds are set under different charging environment conditions. This dynamic adjustment mechanism not only improves the startup success rate of electronic devices under different conditions, but also enhances the stability of electronic devices and user experience.

[0048] In another embodiment, the first charging environment conditions include the charger's charging power being in a first power range and / or the ambient temperature being in a first temperature range. The second charging environment conditions include the charger's charging power being in the second power range and / or the ambient temperature being in the second temperature range. The first power range and the second power range are different, as are the first temperature range and the second temperature range.

[0049] In this embodiment, the first charging environment condition is defined by two key parameters: the charger's charging power and the ambient temperature. When the charger's charging power is within a preset first power range, or the ambient temperature is within a preset first temperature range, the system determines that the current charging environment meets the first charging environment condition. The second charging environment condition is defined by a charging power and ambient temperature range that differ from the first charging environment condition. When the charger's charging power is within a second power range, or the ambient temperature is within a second temperature range, the system determines that the current charging environment meets the second charging environment condition.

[0050] In this embodiment, the first power range and the second power range are non-overlapping and can correspond to the charging power ranges of a weak charger and a strong charger, respectively. Similarly, the first temperature range and the second temperature range are also non-overlapping and can correspond to low temperature and normal / high temperature environments, respectively, thereby ensuring that the system can flexibly adjust the system load voltage threshold according to different charging environment conditions.

[0051] In another embodiment, determining the battery charging environment includes: In response to the charger's charging power being less than a preset power threshold, it is determined that the charging environment meets the first charging environment condition; In response to the charger's charging power being greater than or equal to a preset power threshold, it is determined that the charging environment meets the second charging environment condition; The first threshold is less than the second threshold.

[0052] In this embodiment, when the charger's charging power is less than a preset power threshold, the system determines that the current charging environment meets the first charging environment condition. For example, the preset power threshold can be set to 5W. If the charger's charging power is detected to be less than 5W, it is considered that a weak charger is currently being used. In this case, since the weak charger provides a smaller current, the voltage deviation generated by the current passing through the internal resistance is also smaller. Therefore, a smaller system load voltage threshold, i.e., the first threshold, can be set.

[0053] In this embodiment, when the charger's charging power is greater than or equal to a preset power threshold, the system determines that the current charging environment meets a second charging environment condition. For example, if the preset power threshold is 5W, and the charger's charging power is detected to be greater than or equal to 5W, it is considered that a high-power charger is currently being used. In this case, the high-power charger provides a larger current, and therefore the voltage deviation generated by the current passing through the internal resistance is also larger. Therefore, a larger system load voltage threshold, i.e., the second threshold, can be set. Clearly, the first threshold is smaller than the second threshold.

[0054] In this disclosure, the system sets a lower system load voltage threshold when using a weak charger, and a higher system load voltage threshold when using a strong charger. This not only improves the startup success rate of electronic devices under different conditions, but also enhances the adaptability of electronic devices and the user experience.

[0055] In another embodiment, determining the battery charging environment includes: In response to the ambient temperature being lower than a preset temperature threshold, it is determined that the charging environment meets the first charging environment condition. In response to an ambient temperature greater than or equal to a preset temperature threshold, it is determined that the charging environment meets the second charging environment condition. The first threshold is greater than the second threshold.

[0056] In this embodiment, when the ambient temperature is lower than a preset temperature threshold, the system determines that the current charging environment meets the first charging environment condition. For example, the preset temperature threshold can be set to 10°C. If the ambient temperature is detected to be lower than 10°C, it is considered to be in a low-temperature environment. In this case, the battery's internal resistance will increase significantly, resulting in a reduction in the battery's actual usable capacity. The system will then identify the current charging environment as the first charging environment condition and set a higher system load voltage threshold to ensure that the device can start safely.

[0057] In this embodiment, when the ambient temperature is greater than or equal to a preset temperature threshold, the system determines that the current charging environment meets the second charging environment condition. For example, if the preset temperature threshold is 10°C, and the ambient temperature is detected to be greater than or equal to 10°C, it is considered to be in a normal or high-temperature environment. In this case, the battery's internal resistance is low, and the load current during the electronic device's startup can be directly provided by the charger without needing to draw excessive current from the battery. Therefore, the system identifies the current charging environment as the second charging environment condition and sets a lower system load voltage threshold to accelerate the device's startup speed. Clearly, the first threshold is greater than the second threshold.

[0058] In this disclosure, when the ambient temperature is low, the system sets a higher system load voltage threshold to ensure the device can start safely under complex conditions such as low temperature; conversely, when the ambient temperature is high, the system sets a lower system load voltage threshold, thereby accelerating the device's startup speed. This not only improves the device's startup success rate under different conditions but also enhances the device's adaptability and user experience.

[0059] In another embodiment, step S103, "determining the system load voltage threshold of the battery based on the charging environment," includes: Based on the charging environment, determine the battery's charging current, internal resistance, and open-circuit voltage threshold. The deviation voltage generated by the battery is determined based on the charging current and the battery internal resistance. The system load voltage threshold of the battery is determined based on the open-circuit voltage threshold and the deviation voltage.

[0060] In this embodiment, before determining the system load voltage threshold, it is necessary to measure and calculate several key parameters related to the battery state: charging current, battery internal resistance, and open-circuit voltage threshold. The charging current can be obtained in real time by the battery management system (BMS); the battery internal resistance is dynamically calculated based on the charging environment (such as ambient temperature); the open-circuit voltage threshold is the minimum voltage value at which the battery can safely start the device, which is usually a fixed reference value (e.g., 3.4V).

[0061] Figure 3 A schematic diagram of the equivalent circuit of a battery in an electronic device is shown, such as... Figure 3 As shown, the equivalent circuit contains three main parts: an open-circuit voltage source... V ( oc ), internal resistance R ( int and terminal voltage V ( terminal ).in, V ( oc The open-circuit voltage () represents the voltage across the battery terminals when no current flows through it. It reflects the battery's current state of charge, i.e., the actual energy stored within the battery. The open-circuit voltage is an ideal value and is unaffected by the battery's internal resistance. R ( int This represents the internal resistance of the battery. When current flows through the battery, this resistance causes a voltage drop. Internal resistance is an inherent characteristic of the battery, and its magnitude affects the battery's performance during discharge; terminal voltage. V ( terminal This refers to the voltage across the battery terminals when the battery is in its actual operating state, i.e., when current flows through it; it is also the battery's charging detection voltage. According to... Figure 3 The terminal voltage equals the open-circuit voltage minus the voltage drop across the internal resistance, i.e. ,in I This is the current flowing through the battery. Based on this formula, when determining the system load voltage threshold for calculating the terminal voltage, the open-circuit voltage threshold, charging current, and battery internal resistance are required.

[0062] In this embodiment, the deviation voltage refers to the difference between the battery terminal voltage and the open-circuit voltage caused by the battery's internal resistance and charging current. After obtaining the charging current and the battery's internal resistance, their product can be determined as the deviation voltage. After obtaining the deviation voltage, the sum of the open-circuit voltage threshold and the deviation voltage can be determined as the system load voltage threshold.

[0063] In this disclosure, the system load voltage threshold is accurately calculated by using the battery charging current, battery internal resistance, and open-circuit voltage threshold, which further improves the startup success rate of electronic devices under different conditions and ensures that electronic devices can start safely and efficiently in various complex charging scenarios, thereby enhancing the user experience.

[0064] In another embodiment, determining the battery's internal resistance based on the charging environment includes: In response to the ambient temperature in the charging environment being lower than a preset temperature threshold, the battery internal resistance is determined based on the battery's reference internal resistance, the difference between the preset temperature threshold and the ambient temperature, and the battery's temperature coefficient. In response to an ambient temperature in the charging environment being greater than or equal to a preset temperature threshold, the reference internal resistance of the battery is determined as the battery internal resistance.

[0065] In this embodiment, when the ambient temperature is lower than a preset temperature threshold, the battery's internal resistance increases significantly. This is because the electrochemical reaction rate inside the battery slows down at low temperatures, leading to an increase in internal resistance. In this situation, the system calculates the current battery internal resistance based on the battery's reference internal resistance (typically the internal resistance value at standard temperature), the difference between the ambient temperature and the preset temperature threshold, and the battery's temperature coefficient.

[0066] In this embodiment, when the ambient temperature is greater than or equal to a preset temperature threshold, the change in the battery's internal resistance is relatively small, and it can be considered that the battery's internal resistance remains stable within the normal operating temperature range. In this case, the system can directly use the battery's reference internal resistance as the current battery internal resistance.

[0067] In one possible implementation, the battery internal resistance can be calculated based on the following formula:

[0068] in, This refers to the battery's internal resistance. This is the reference internal resistance of the battery within its normal operating temperature range; for ordinary batteries, it is typically below 50 milliohms. This is a preset temperature threshold, typically 10℃. For ambient temperature, This represents the temperature coefficient of the battery.

[0069] Figure 4 This illustration shows a scenario illustrating a charging method according to an embodiment of the present disclosure. Figure 1 ,like Figure 4As shown, the battery's internal resistance changes with temperature. It can be seen that the battery's internal resistance is relatively small and changes gradually within the normal operating temperature range (10℃-50℃), but increases sharply at low temperatures (below 10℃). The curve of the battery's internal resistance changing with temperature can be approximated as consisting of a downward-sloping line and a straight line. The downward-sloping line can be represented as... p can be viewed as the slope of a downward-sloping line, and a straight line can be represented as... .

[0070] In this disclosure, by considering the effect of temperature on internal resistance in low-temperature environments, the system can accurately calculate the actual internal resistance of the battery, thus providing reliable data support for the calculation of deviation voltage. This method not only improves the startup success rate of the device under low-temperature conditions but also enhances the adaptability and stability of the device in different temperature environments. Simultaneously, by directly using the reference internal resistance within the normal temperature range, the calculation process is simplified, improving the system's operating efficiency.

[0071] In another embodiment, the "second system for loading the electronic device" in step S105 includes: After each loading step of the second system is executed, the battery charging detection voltage is obtained; In response to the charging detection voltage being greater than the target voltage threshold corresponding to the loading step, the next loading step of the second system is executed; the target voltage thresholds corresponding to different loading steps are different. In response to the charging detection voltage being less than or equal to the target voltage threshold corresponding to the loading step, the battery's charging detection voltage is reacquired after a first duration until the charging detection voltage is greater than the target voltage threshold corresponding to the loading step.

[0072] In this embodiment, during the loading of the second system, the system breaks down the entire loading process into multiple steps. After each step is completed, the current battery charging voltage is obtained through the Battery Management System (BMS). For example, during the operating system startup process, there may be several key stages, such as kernel initialization, driver loading, and user interface startup. After each stage is completed, the system checks the current battery voltage to ensure that the battery power can support the execution of subsequent steps.

[0073] In this embodiment, each loading step has a corresponding target voltage threshold, which is preset based on the power consumption requirements of that step. For example, the kernel initialization stage may require a lower voltage threshold (e.g., 3.5V), while loading the graphical user interface (GUI) may require a higher voltage threshold (e.g., 3.6V). If the current charging detection voltage is greater than the target voltage threshold for that step, it indicates that the battery has sufficient power, and the next loading step can be executed. For example, assuming the target voltage threshold for the kernel initialization stage is 3.5V, and the currently detected battery voltage is 3.6V, the system will continue to execute the driver loading step.

[0074] In this embodiment, if the current charging detection voltage is less than or equal to the target voltage threshold of the loading step, the system will pause the execution of the current step and wait for a period of time (a first duration) before re-detecting the battery voltage. This waiting time is to allow the battery sufficient charging time to ensure that the charge level meets the requirements of the current step. For example, if the target voltage threshold is 3.55V when loading a certain driver, and the currently detected voltage is 3.5V, the system will wait for a period of time (e.g., 30 seconds) before re-detecting the voltage. The next step will only proceed when the charging detection voltage exceeds the target voltage threshold.

[0075] In this disclosure, by breaking down the loading process of the second system into multiple steps and setting different target voltage thresholds for each step, the device startup process can be controlled more precisely. After each step, the battery voltage is checked to ensure sufficient power to support subsequent steps. This mechanism effectively avoids startup failures or system crashes due to insufficient power. Simultaneously, by pausing loading and waiting for charging when the power is low, the system can dynamically adapt to different charging conditions, improving the device's startup success rate under various circumstances. Therefore, this not only enhances the stability and reliability of the device but also improves the user experience, ensuring the device remains efficient and safe throughout the startup process.

[0076] In another embodiment, a charging method further includes: In response to the charging detection voltage being less than or equal to the system load voltage threshold, the system load voltage threshold and the charging detection voltage of the battery are reacquired after a second time period until the charging detection voltage is greater than the system load voltage threshold; wherein, the second time period is determined based on the difference between the charging detection voltage and the system load voltage threshold.

[0077] In this embodiment, during actual charging, the charging detection voltage may fail to immediately reach the system loading voltage threshold. This could be due to battery aging or excessively low ambient temperature. To ensure safe device startup, the system will wait for a preset second time period when it detects that the charging detection voltage is less than or equal to the system loading voltage threshold, and then re-acquire the battery's system loading voltage threshold and charging detection voltage.

[0078] For example, assuming the system load voltage threshold is 3.5V, and the currently detected charging voltage is 3.4V, the system will wait for a second period of time (e.g., 1 minute) before detecting the charging voltage again. If the voltage still does not reach the threshold at this time, the system will continue to wait and repeat the detection until the charging voltage exceeds the system load voltage threshold.

[0079] In this embodiment, the second duration is not fixed, but dynamically adjusted based on the difference between the charging detection voltage and the system load voltage threshold. This dynamic adjustment mechanism can more flexibly handle different charging conditions. For example, if the difference between the charging detection voltage and the system load voltage threshold is large (e.g., 0.2V), the system may set a longer second duration (e.g., 2 minutes) to ensure the battery has enough time to charge. Conversely, if the difference is small (e.g., 0.05V), the system may set a shorter second duration (e.g., 30 seconds) to increase the detection frequency and complete the startup process as quickly as possible.

[0080] In this disclosure, when the charging detection voltage does not reach the system loading voltage threshold, the system does not blindly wait for a fixed time, but dynamically adjusts the waiting time based on the voltage difference. This improves startup efficiency and ensures a high success rate for device startup under various complex conditions. For example, in low-temperature environments or when using a weak charger, the battery charging speed is slow. By dynamically adjusting the waiting time, the system can patiently wait for the battery to fully charge, thus avoiding startup failure due to insufficient power. This mechanism not only enhances the adaptability and stability of the device but also improves the user experience, ensuring that electronic devices can start up safely and efficiently under various complex conditions.

[0081] Figure 5 This illustration shows a scenario illustrating a charging method according to an embodiment of the present disclosure. Figure 2 ,like Figure 5As shown, an electronic device includes a charger, a charging chip, a processor, system loads, and voltage measurement points for the battery and battery cells. First, the charger is the starting point of the entire system, converting external power into voltage and current suitable for charging the electronic device. The electrical energy output from the charger passes through the charging chip, which controls the charging process, including regulating the charging current and voltage, and monitoring the charging status. The charging chip is connected to the battery, responsible for transferring electrical energy to the battery and ensuring the safety and efficiency of the charging process. The battery is the component that stores electrical energy, providing the necessary power to the electronic device. The system can monitor the battery's terminal voltage and the open-circuit voltage of the battery cells. The processor controls the operation of the entire device. The processor obtains battery status information through the charging chip and makes corresponding control decisions based on this information, such as when to start charging, when to stop charging, and how to manage the battery's discharge process. The system load represents all the components in the electronic device that require power; they consume the electrical energy provided by the battery to perform their respective functions.

[0082] This disclosure is as follows: Figure 5 Based on the framework shown, the open-circuit voltage of the battery is calculated by establishing an equivalent circuit model of the battery. V ( oc This allows for a more accurate assessment of the battery's actual charge level. During charging, the battery's terminal voltage is monitored. V ( terminal ) and the open-circuit voltage of the battery cell V ( oc ), and battery internal resistance R ( int By adjusting the charging current and other parameters, the system can dynamically adjust the charging strategy to ensure safe and effective charging of the battery in various charging environments.

[0083] According to embodiments of this disclosure, this disclosure also provides an electronic device and a readable storage medium.

[0084] Figure 6 A schematic block diagram (battery not shown) of an example electronic device 800 that can be used to implement embodiments of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0085] like Figure 6As shown, the electronic device 800 includes a computing unit 801, which can perform various appropriate actions and processes based on a computer program stored in a read-only memory (ROM) 802 or a computer program loaded from a storage unit 808 into a random access memory (RAM) 803. The RAM 803 may also store various programs and data required for the operation of the electronic device 800. The computing unit 801, ROM 802, and RAM 803 are interconnected via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0086] Multiple components in electronic device 800 are connected to I / O interface 805, including: input unit 806, such as keyboard, mouse, etc.; output unit 807, such as various types of displays, speakers, etc.; storage unit 808, such as disk, optical disk, etc.; and communication unit 809, such as network card, modem, wireless transceiver, etc. Communication unit 809 allows electronic device 800 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0087] The computing unit 801 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 801 performs the various methods and processes described above, such as a charging method. For example, in some embodiments, a charging method may be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 808. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 800 via ROM 802 and / or communication unit 809. When the computer program is loaded into RAM 803 and executed by the computing unit 801, one or more steps of a charging method described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to perform a charging method by any other suitable means (e.g., by means of firmware).

[0088] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0089] The program code used to implement the methods of this disclosure may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing apparatus, such that when executed by the processor or controller, the program code causes the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0090] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0091] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0092] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as a data server), or computing systems that include middleware components (e.g., an application server), or computing systems that include frontend components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.

[0093] Computer systems can include clients and servers. Clients and servers are generally located far apart and typically interact via communication networks. Client-server relationships are created by computer programs running on the respective computers and having a client-server relationship with each other. Servers can be cloud servers, servers in distributed systems, or servers incorporating blockchain technology.

[0094] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this disclosure can be achieved, and this is not limited herein.

[0095] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this disclosure, "a plurality of" means two or more, unless otherwise explicitly specified.

[0096] The above description is merely a specific embodiment of this disclosure, but the scope of protection of this disclosure is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this disclosure should be included within the scope of protection of this disclosure. Therefore, the scope of protection of this disclosure should be determined by the scope of the claims.

Claims

1. A charging method, comprising: The first system configuration of the electronic device configures the charging parameters of the battery in the electronic device; Determine the charging environment of the battery; Determine the system load voltage threshold of the battery based on the charging environment; Obtain the charging detection voltage of the battery; In response to the charging detection voltage being greater than the system loading voltage threshold, the second system of the electronic device is loaded; The first system differs from the second system, with the second system running based on the first system.

2. The method according to claim 1, wherein the charging environment is related to at least one of the following: the ambient temperature of the battery, the charging power of the charger charging the battery, and the power consumption of the electronic device when the second system is in operation; The method further includes: If the charging environment meets the first charging environment condition, the system load voltage threshold is determined to be the first threshold. In response to the charging detection voltage being greater than the first threshold, the second system of the electronic device is activated; If the charging environment meets the second charging environment condition, the system load voltage threshold is determined to be the second threshold; in response to the charging detection voltage being greater than the second threshold, the second system of the electronic device is loaded. Wherein, the first threshold is different from the second threshold, and the first charging environment conditions are different from the second charging environment conditions.

3. The method according to claim 2, wherein the first charging environment conditions include the charging power of the charger being in a first power range and / or the ambient temperature being in a first temperature range; The second charging environment conditions include the charger's charging power being in a second power range and / or the ambient temperature being in a second temperature range; in, The first power range and the second power range are different, and the first temperature range and the second temperature range are different.

4. The method according to claim 2, wherein determining the charging environment of the battery includes: In response to the charger's charging power being less than a preset power threshold, it is determined that the charging environment meets the first charging environment condition; In response to the charger's charging power being greater than or equal to a preset power threshold, it is determined that the charging environment meets the second charging environment condition; Wherein, the first threshold is less than the second threshold.

5. The method according to claim 2, wherein determining the charging environment of the battery includes: In response to the ambient temperature being lower than a preset temperature threshold, it is determined that the charging environment meets the first charging environment condition. In response to the ambient temperature being greater than or equal to a preset temperature threshold, it is determined that the charging environment meets the second charging environment condition. Wherein, the first threshold is greater than the second threshold.

6. The method according to claim 1, wherein determining the system load voltage threshold of the battery based on the charging environment comprises: Based on the charging environment, the charging current, internal resistance, and open-circuit voltage threshold of the battery are determined. The deviation voltage generated by the battery is determined based on the charging current and the battery internal resistance; The system load voltage threshold of the battery is determined based on the open circuit voltage threshold and the deviation voltage.

7. The method according to claim 6, wherein determining the internal resistance of the battery based on the charging environment comprises: In response to the ambient temperature in the charging environment being lower than a preset temperature threshold, the battery internal resistance is determined based on the battery's reference internal resistance, the difference between the preset temperature threshold and the ambient temperature, and the battery's temperature coefficient. In response to the ambient temperature in the charging environment being greater than or equal to a preset temperature threshold, the reference internal resistance of the battery is determined as the battery internal resistance.

8. The method according to claim 1, wherein the second system for loading the electronic device comprises: After each loading step of the second system is executed, the charging detection voltage of the battery is obtained; In response to the charging detection voltage being greater than the target voltage threshold corresponding to the loading step, the next loading step of the second system is executed; The target voltage thresholds differ for different loading steps; In response to the charging detection voltage being less than or equal to the target voltage threshold corresponding to the loading step, the charging detection voltage of the battery is reacquired after a first time period until the charging detection voltage is greater than the target voltage threshold corresponding to the loading step.

9. The method according to claim 1, further comprising: In response to the charging detection voltage being less than or equal to the system load voltage threshold, the system load voltage threshold and the charging detection voltage of the battery are reacquired after a second time period until the charging detection voltage is greater than the system load voltage threshold; The second duration is determined based on the difference between the charging detection voltage and the system load voltage threshold.

10. An electronic device, comprising: Battery, 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, and the instructions are executed by the at least one processor to enable the at least one processor to perform: The first system configuration of the electronic device configures the charging parameters of the battery in the electronic device; Determine the charging environment of the battery; Determine the system load voltage threshold of the battery based on the charging environment; Obtain the charging detection voltage of the battery; In response to the charging detection voltage being greater than the system loading voltage threshold, the second system of the electronic device is loaded; The first system differs from the second system, with the second system running based on the first system.