Charging protection method, device, electronic device and storage medium

By obtaining the circuit parameter to determine the fault of the connector and stop the high power charging, the problem of the battery over or overcharging in the electronic equipment is solved, and the safety and service life of the battery is improved.

CN113922459BActive Publication Date: 2025-01-28BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111233606.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-22
Publication Date
2025-01-28
Estimated Expiration
2041-10-22

AI Technical Summary

Technical Problem

In electronic devices that support high-power charging, the connector between the battery and the motherboard has the risk of overtemperature or overcharge, which affects the safety and service life of the battery.

Method used

By obtaining the circuit parameters, such as the current of the connector's temperature and power meter, determine whether the connector is in a state of failure, and stop the high -power charging mode when the failure is detected, and switch to the low -power charging mode or output prompt information.

Benefits of technology

Effectively prevent the risk of over -temperature or overcharge battery, and increase the safety and service life of the battery.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113922459B_ABST
    Figure CN113922459B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a charging protection method, device, electronic device and storage medium, wherein the method comprises: in response to the electronic device being charged in a first charging mode, obtaining circuit parameters, wherein the charging voltage in the first charging mode is greater than a voltage threshold; determining whether the first connector and / or the second connector is in a fault state according to the circuit parameters; in response to the first connector and / or the second connector being in a fault state, stopping charging the battery in the first charging mode. Using the method of the present disclosure, when the electronic device detects that any connector is in a fault state, it can take protective measures in time and stop charging in a high-power mode, thereby achieving charging protection. Improving the safety of the battery during charging and the service life of the battery.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of electronic devices, and in particular to a charging protection method, device, electronic device and storage medium. Background Art

[0002] With the development of charging technology, the charging power of electronic devices is getting higher and higher. In electronic devices that support high-power charging, the battery and the mainboard are connected through two connectors, and the two connectors jointly output current from the battery or jointly input current to the battery.

[0003] In the charging method of the related art, the battery cell is at risk of overheating (i.e. the charging temperature is greater than or equal to the temperature protection threshold) or overcharging (i.e. it is fully charged but continues to be charged), which affects the safety and service life of the battery. Summary of the invention

[0004] In order to overcome the problems existing in the related art, the present disclosure provides a charging protection method, device, electronic device and storage medium.

[0005] According to a first aspect of an embodiment of the present disclosure, a charging protection method is provided, which is applied to an electronic device, wherein the electronic device includes a battery and a mainboard, and the battery is connected to the mainboard through a first connector and a second connector; wherein the method includes:

[0006] In response to the electronic device being charged in a first charging mode, acquiring a circuit parameter, wherein a charging voltage in the first charging mode is greater than a voltage threshold;

[0007] determining, according to the circuit parameters, whether the first connector and / or the second connector is in a fault state;

[0008] In response to the first connector and / or the second connector being in a fault state, charging the battery in the first charging mode is stopped.

[0009] In some possible embodiments, the circuit parameters include: temperatures of the first connector and the second connector;

[0010] The obtaining of circuit parameters comprises:

[0011] A first temperature of the first connector and a second temperature of the second connector are obtained at each time node within a preset time length; wherein the preset time length includes a plurality of consecutive time nodes.

[0012] In some possible embodiments, the circuit parameter further includes: a current collected by a fuel gauge, wherein the fuel gauge is used to collect the current of the battery, and the fuel gauge is connected to the mainboard through the first connector;

[0013] The obtaining of circuit parameters further includes:

[0014] In response to a temperature difference between the first temperature and the second temperature being greater than or equal to a temperature threshold at a target time node, a current collected by the electricity meter is acquired.

[0015] In some possible embodiments, the circuit parameter further includes: the number of times the mainboard fails to communicate with the power meter;

[0016] The obtaining of circuit parameters further includes:

[0017] The number of communication failures that occur up to the target time node is determined according to the communication status between the mainboard and the electricity meter at each time node.

[0018] In some possible embodiments, determining whether the first connector and / or the second connector is in a fault state according to the circuit parameter includes:

[0019] In response to the first temperature being greater than the second temperature and the current collected by the electricity meter being greater than or equal to a preset current, determining that the second connector is in a fault state;

[0020] In response to the first temperature being lower than the second temperature and the number of communication failures being greater than or equal to a preset number, it is determined that the first connector is in a fault state.

[0021] In some possible embodiments,

[0022] In the first charging mode, the method further includes:

[0023] Determine the current charging number; wherein the current charging number is used to represent: the number of times the electronic device is connected to the charging device and receives power from the charging device;

[0024] A voltage switching parameter is determined according to the current charging times; wherein the voltage switching parameter is used to characterize a critical value for the electronic device to switch from a constant current mode to a constant voltage mode during the charging process.

[0025] In some possible embodiments, the circuit parameters further include: the current voltage and current current of the battery;

[0026] The determining of the voltage switching parameter according to the current charging number includes:

[0027] The voltage switching parameter is determined according to the previous charging times and the current current.

[0028] In some possible embodiments, determining the voltage switching parameter according to the current charging number and the current current includes:

[0029] Determining a voltage parameter value according to the current charging number;

[0030] Determining a voltage compensation value according to the current current and the preset impedance;

[0031] The voltage switching parameter is determined according to the voltage parameter value and the voltage compensation value.

[0032] In some possible embodiments, determining the voltage parameter value according to the current charging number includes:

[0033] Acquire configuration information, wherein the configuration information is used to characterize a mapping relationship between the number of charging times and a voltage parameter value;

[0034] The voltage parameter value corresponding to the current charging number is determined according to the configuration information and the current charging number.

[0035] In some possible embodiments, stopping charging the battery in the first charging mode includes:

[0036] Stop the charging process of the first charging mode and switch to the second charging mode to charge the battery, wherein the charging voltage of the second charging mode is less than a voltage threshold;

[0037] or,

[0038] Stop charging the battery and output a prompt message, wherein the prompt message is used to prompt that the electronic device is in a charging stop state.

[0039] According to a second aspect of an embodiment of the present disclosure, a charging protection device is provided, which is applied to an electronic device, wherein the electronic device includes a battery and a mainboard, and the battery is connected to the mainboard through a first connector and a second connector; wherein the device includes:

[0040] an acquisition module, configured to acquire circuit parameters in response to the electronic device being charged in a first charging mode, wherein a charging voltage in the first charging mode is greater than a voltage threshold;

[0041] a determination module, configured to determine whether the first connector and / or the second connector is in a fault state according to the circuit parameters;

[0042] A control module is used for stopping charging the battery in the first charging mode in response to the first connector and / or the second connector being in a fault state.

[0043] In some possible embodiments, the circuit parameters include: temperatures of the first connector and the second connector;

[0044] The acquisition module is used for:

[0045] A first temperature of the first connector and a second temperature of the second connector are obtained at each time node within a preset time length; wherein the preset time length includes a plurality of consecutive time nodes.

[0046] In some possible embodiments, the circuit parameter further includes: a current collected by a fuel gauge, wherein the fuel gauge is used to collect the current of the battery, and the fuel gauge is connected to the mainboard through the first connector;

[0047] The acquisition module is also used for:

[0048] In response to a temperature difference between the first temperature and the second temperature being greater than or equal to a temperature threshold at a target time node, a current collected by the electricity meter is acquired.

[0049] In some possible embodiments, the circuit parameter further includes: the number of times the mainboard fails to communicate with the power meter;

[0050] The acquisition module is also used for:

[0051] The number of communication failures that occur up to the target time node is determined according to the communication status between the mainboard and the electricity meter at each time node.

[0052] In some possible embodiments, the determining module is used to:

[0053] In response to the first temperature being greater than the second temperature and the current collected by the electricity meter being greater than or equal to a preset current, determining that the second connector is in a fault state;

[0054] In response to the first temperature being lower than the second temperature and the number of communication failures being greater than or equal to a preset number, it is determined that the first connector is in a fault state.

[0055] In some possible embodiments, in the first charging mode, the determining module is further configured to:

[0056] Determine the current charging number; wherein the current charging number is used to represent: the number of times the electronic device is connected to the charging device and receives power from the charging device;

[0057] A voltage switching parameter is determined according to the current charging times; wherein the voltage switching parameter is used to characterize a critical value for the electronic device to switch from a constant current mode to a constant voltage mode during the charging process.

[0058] In some possible embodiments, the circuit parameters further include: the current voltage and current current of the battery;

[0059] The determination module is used for:

[0060] The voltage switching parameter is determined according to the previous charging times and the current current.

[0061] In some possible embodiments, the determining module is further configured to:

[0062] Determining a voltage parameter value according to the current charging number;

[0063] Determining a voltage compensation value according to the current current and the preset impedance;

[0064] The voltage switching parameter is determined according to the voltage parameter value and the voltage compensation value.

[0065] In some possible embodiments, the determining module is further configured to:

[0066] Acquire configuration information, wherein the configuration information is used to characterize a mapping relationship between the number of charging times and a voltage parameter value;

[0067] The voltage parameter value corresponding to the current charging number is determined according to the configuration information and the current charging number.

[0068] In some possible embodiments, the control module is used to:

[0069] Stop the charging process of the first charging mode and switch to the second charging mode to charge the battery, wherein the charging voltage of the second charging mode is less than a voltage threshold;

[0070] or,

[0071] Stop charging the battery and output a prompt message, wherein the prompt message is used to prompt that the electronic device is in a charging stop state.

[0072] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, including:

[0073] processor;

[0074] a memory for storing executable instructions for the processor;

[0075] Wherein, the processor is configured to execute the charging protection method as described in any one of the above items.

[0076] According to a fourth aspect of an embodiment of the present disclosure, a non-temporary computer-readable storage medium is proposed. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the charging protection method as described in any one of the above items.

[0077] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: by using the method of the present disclosure, the electronic device can determine whether the two connectors are in a fault state according to the circuit parameters. When it is detected that any connector is in a fault state, the electronic device can take protective measures in time and stop charging in high-power mode, thereby achieving charging protection. The safety of the battery during charging and the service life of the battery are improved.

[0078] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0079] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0080] Figure 1 is a flow chart of a method according to an exemplary embodiment.

[0081] Figure 2 is a flow chart of a method according to an exemplary embodiment.

[0082] Figure 3 is a flow chart of a method according to an exemplary embodiment.

[0083] Figure 4 is a flow chart of a method according to an exemplary embodiment.

[0084] Figure 5 It is a block diagram of a device according to an exemplary embodiment.

[0085] Figure 6 is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0086] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.

[0087] In the related art, the reasons why battery cells have the risk of overheating or overcharging mainly include the following two aspects:

[0088] First, one of the two connectors was loose, causing the battery cell to overheat.

[0089] During the factory or production process, due to assembly techniques or squeezing, collision and other problems, one of the connectors may become loose and fall off. The charging current can only be charged through another normally connected connector, resulting in a rapid temperature rise in the normally connected connector during the charging process. The battery cell is at risk of overheating (that is, the charging temperature is greater than or equal to the temperature protection threshold). The battery cell is prone to safety accidents at high temperatures, affecting battery safety.

[0090] When such problems occur in the related art, the machine needs to be disassembled, which is rather cumbersome.

[0091] Secondly, overcharging of battery cells caused by unreasonable charging parameters, that is, continuing to charge the battery cells even though they are fully charged, will cause the voltage of the battery cells to continue to rise and cause safety accidents.

[0092] On the basis of electronic devices supporting fast charging function, combined with different types of chargers, the charging process can be either high-speed charging or normal charging. The corresponding voltage switching parameters will be set in the charging management chip (PMIC) for the two charging methods. The voltage switching parameters can be used as the switching point from constant current mode to constant voltage mode.

[0093] Among them, the PMIC is set in the mainboard and can be connected to the battery cell through the protection circuit board in the battery. The wiring connecting the PMIC to the battery cell has impedance, and the voltage drop caused by the impedance will affect the rationality of the voltage parameters. In addition, as the battery ages, the battery capacity and full charge voltage gradually decrease. If the same voltage switching parameters as those of unaged batteries are used, the battery cell will be overcharged. Therefore, considering the wiring impedance and battery aging, the voltage switching parameters need to be compensated or adjusted more accurately or finely.

[0094] A charging protection method is proposed in an embodiment of the present disclosure, which is applied to an electronic device, wherein the electronic device includes a battery and a mainboard, and the battery is connected to the mainboard through a first connector and a second connector. The method includes: in response to the electronic device being charged in a first charging mode, obtaining circuit parameters, wherein the charging voltage in the first charging mode is greater than a voltage threshold. According to the circuit parameters, determine whether the first connector and / or the second connector is in a fault state. In response to the first connector and / or the second connector being in a fault state, stop charging the battery in the first charging mode. Using the method of the present disclosure, the electronic device can determine whether the two connectors are in a fault state according to the circuit parameters. When it is detected that any connector is in a fault state, the electronic device can take protective measures in time and stop charging in a high-power mode, thereby achieving a charging protection effect. Improve the safety of the battery during charging and the service life of the battery.

[0095] In an exemplary embodiment, Figure 1 As shown, the charging protection method of this embodiment is applied to an electronic device. The electronic device may be a terminal device such as a mobile phone, a tablet computer, a smart wearable device, etc. The electronic device includes a battery and a motherboard, and the battery is connected to the motherboard through a first connector and a second connector. In the embodiment of the present disclosure, the first connector serves as a main connector and the second connector serves as a secondary connector.

[0096] like Figure 1 As shown, the method in this embodiment may include the following steps:

[0097] S110 . In response to the electronic device being charged in the first charging mode, obtaining circuit parameters.

[0098] S120: Determine whether the first connector and / or the second connector is in a fault state according to circuit parameters.

[0099] S130: In response to the first connector and / or the second connector being in a fault state, stop charging the battery in the first charging mode.

[0100] Among them, in step S110, in the first charging mode, the charging voltage is greater than the voltage threshold, and the voltage threshold can be set to the rated voltage of the battery, for example, 4.5V. The mainboard of the electronic device includes a processor (CPU) or is integrated with a CPU. In the first charging mode, the charging chip of the electronic device (a charge pump can be used) controls the charging process, and a constant current, high power and high voltage are used to realize the fast charging function.

[0101] In this step, the circuit parameters may include: the temperature of the first connector and the second connector. The method for the CPU to obtain the circuit parameters includes, for example: a temperature sensing element connected to the first connector collects the temperature of the first connector in real time, a temperature sensing element connected to the second connector collects the temperature of the second connector in real time, and the CPU actively obtains the temperatures collected by the two temperature sensing elements when needed.

[0102] In step S120, after obtaining the circuit parameters including the temperatures of the two connectors, the CPU can analyze and judge according to the circuit parameters to determine whether the two connectors are in a fault state. In this step, the fault state can be an abnormal state of the connector caused by the connector being loose or falling off.

[0103] In one example, the CPU determines whether the two connectors are in a fault state according to the temperatures of the two connectors.

[0104] In this example, after the electronic device is connected to the charging device, when the electronic device starts in the first charging mode, the CPU can control the creation of a monitoring event or a monitoring process to drive the temperature sensing element to collect the temperatures of the two connectors in real time or at a fixed time, and monitor the temperature difference between the two connectors. It can be understood that if the two connectors are in normal working state, the temperatures of the two connectors should be the same or similar.

[0105] When the temperature difference between the two connectors is too large, it means that the charging current flows more concentratedly into the connector corresponding to the high temperature, causing the temperature of the connector to rise too high. At this time, the low-temperature connector may malfunction.

[0106] Alternatively, when the charging process is initiated but the temperatures of both connectors are at a lower temperature, it indicates that both connectors may be faulty.

[0107] In step S130, when the first connector and / or the second connector is in a fault state, the fault state may be caused by the connector being loose. In this step, the CPU will control to stop charging the battery in the first charging mode to avoid the danger caused by continuing to charge in the first charging mode with high power and high voltage.

[0108] In this step, stopping the charging process in the first charging mode may include the following two examples.

[0109] In the first example:

[0110] This step includes: Step S130-1, stopping the charging process of the first charging mode, and switching to the second charging mode to charge the battery. In this example, it is suitable for a scenario with a relatively minor fault, for example, only one connector fault is detected.

[0111] In this example, the charging voltage of the second charging mode is less than the voltage threshold. After detecting a fault, the CPU can control the charging chip to stop working to stop the first charging mode; at the same time, it issues a control instruction to control the charging management chip (PMIC) to start charging the battery in the second charging mode. The charging current in the second charging mode is small, which can effectively improve the problem of excessive temperature rise of the connector.

[0112] In the second example:

[0113] This step includes: step S130-2, stop charging the battery and output a prompt message. In this example, it is suitable for scenarios with a more serious fault, such as when both connectors fail. In this scenario, the CPU can control the charging process to terminate and remind the user in the form of an interface (UI) prompt. The prompt interface can include text prompt information or icon prompt information.

[0114] In this example, it can be performed on the basis of the first example. That is, after switching to the second charging mode, the electronic device continues to monitor the temperature of the connector that is not faulty. If the temperature is still abnormal (such as greater than the safety threshold), the charging process of the second charging mode is stopped, and a prompt message is output at the same time.

[0115] The prompt information is used to prompt that the electronic device is in a charging stop state. The prompt information may also prompt warning content corresponding to the fault state, for example, the warning content includes that the reason for charging stop is: the first connector or the second connector is faulty. The prompt information may be displayed on the current interface of the electronic device or output in voice.

[0116] In an exemplary embodiment, the method of this embodiment includes steps S110 to S130, wherein the circuit parameters include: the temperature of the first connector and the second connector.

[0117] refer to Figure 2 As shown, step S110 may include the following steps:

[0118] S201: Obtain a first temperature of a first connector and a second temperature of a second connector at each time point within a preset time period.

[0119] In step S201, the preset duration includes multiple consecutive time nodes, and the time intervals between each two adjacent time nodes may be the same. In this step, the preset duration may be set to the total charging duration of the charging process. In the preset duration, starting from the initial charging time, each time interval is recorded as a time node.

[0120] For example, the time interval is set to 5 minutes, the initial charging time is recorded as 0, the preset duration is 2 hours, and within 2 hours, 0, 5 minutes, 10 minutes, 15 minutes, etc. can all be recorded as time nodes. At each time node, the CPU can obtain the temperature of the two connectors, and the first temperature and the second temperature at each time node are a group. It can be understood that the temperature sensing element can collect the temperature of the connector in real time for the CPU to obtain when needed.

[0121] At each time point, the CPU can determine the temperature difference based on the first temperature and the second temperature obtained. In combination with the above embodiment, if the two connectors are in normal working state, the temperatures of the two connectors should be the same or similar. Therefore, when the temperature difference is greater than the temperature threshold, the connector with the smaller temperature may be faulty. This can be further verified in combination with step S202 and step S203.

[0122] In one example, the circuit parameters also include: the current collected by the fuel gauge. Figure 2 , this example can also include the following steps:

[0123] S202: In response to the temperature difference between the first temperature and the second temperature at the target time node being greater than or equal to a temperature threshold, obtaining a current collected by the power meter.

[0124] In step S202, the fuel gauge is used to collect the current of the battery, and the fuel gauge is connected to the main board through the first connector. The fuel gauge can be set on the protection circuit board of the battery or inside the battery packaging layer. 2 The C trace is connected to the main board through the first connector. One current detection point of the fuel gauge is located on the protection circuit board, and the other current detection point is located on the main board. As mentioned above, the first connector is the main connector, the second connector is the auxiliary connector, and the fuel gauge is not connected to the second connector.

[0125] When both connectors are in normal working condition, the fuel gauge always collects the current current of the battery. At this time, the currents of the two connectors should be the same or have a small deviation, such as half of the current current. When only the first connector fails, the CPU will not be able to collect the battery current normally through the fuel gauge (but the battery current can be obtained based on the communication between the CPU and the protection circuit board). When only the second connector fails, the current collected by the fuel gauge is the current current of the battery, which is also the current of the first connector.

[0126] Therefore, when the temperature is already abnormal, the power meter can still collect current normally, indicating that the first connector is not faulty and the faulty connector may be the second connector; and when the power meter cannot collect current normally, it indicates that the first connector is faulty.

[0127] The target time node may refer to any time node within a preset time period when the temperature difference is greater than or equal to the temperature threshold. At the target time node, if the temperature difference is greater than or equal to the temperature threshold, it indicates that the connector may be faulty, and the CPU obtains the current collected by the power meter. In this step, the current is obtained after the temperature difference is greater than or equal to the temperature threshold.

[0128] In one example, the circuit parameters also include: the number of times the mainboard fails to communicate with the fuel gauge. Figure 2 , this example can also include the following steps:

[0129] S203: Determine the number of communication failures that occur up to the target time node according to the communication status between the mainboard and the electricity meter at each time node.

[0130] In step S203, the communication status includes communication success and communication failure. The CPU can initiate a communication request to the power meter at each time node. After initiating the communication request, if the CPU can receive feedback from the power meter, it indicates that the communication is successful, otherwise it indicates that the communication fails. The CPU can determine the cumulative number of communication failures that occur at the target time node.

[0131] It can be understood that the order of step S203 is not limited in the embodiment of the present disclosure, and it can also be executed before step S201.

[0132] In an exemplary embodiment, on the basis that step S110 includes steps S201 to S203, step S120 in this embodiment may include the following steps:

[0133] S120-1: In response to the first temperature being greater than the second temperature and the current collected by the power meter being greater than or equal to a preset current, determine that the second connector is in a fault state.

[0134] In this step S120-1, the preset current can be set to the current current of the battery. The current current of the battery can be known by the CPU, and the CPU can determine the current current of the battery in combination with the charging process, thereby dynamically determining the appropriate preset current. The CPU can know the current current of the battery in the following two ways:

[0135] In one example, when the fuel meter is working normally, the first connector is also in a normal state. The current collected by the fuel meter is the current current of the battery. The CPU can obtain the current current of the battery through the fuel meter. At this time, the current collected by the fuel meter is equal to the preset current, and it can be determined that the second connector is in a fault state.

[0136] In another example, when the fuel gauge fails to work properly, the first connector may also be in a faulty state, and the fuel gauge cannot collect the current current of the battery. Therefore, the CPU needs to obtain the current current of the battery based on communication with the battery protection circuit board. For example, if the current current obtained by the CPU is not zero, and the current collected by the fuel gauge is zero, that is, the current collected by the fuel gauge is less than the preset current, it can be determined that the second connector is in a normal state.

[0137] In this step S120-1, when the temperature difference is greater than or equal to the temperature threshold and the first temperature is greater than the second temperature, it indicates that the temperature rise of the first connector is serious, and the temperature of the second connector is lower. Combined with the connection method of the aforementioned power meter, the current collected by the power meter is still greater than or equal to the preset current, indicating that the first connector is working normally, and the charging current may flow to the battery through the first connector, so the second connector is in a fault state.

[0138] S120-2: In response to the first temperature being lower than the second temperature and the number of communication failures being greater than or equal to a preset number, determining that the first connector is in a fault state.

[0139] In this step S120-2, the preset number of times can be set to 3 times, for example. When the temperature difference is greater than or equal to the temperature threshold and the first temperature is less than the second temperature, it indicates that the temperature rise of the first connector is serious, and the temperature of the second connector is lower. On this basis, combined with the failure of communication with the power meter, it can be known that the current cannot be obtained through the power meter at this time, and the first connector may be faulty.

[0140] In an exemplary embodiment, Figure 3 As shown, in the first charging mode, the method of this embodiment may further include the following steps:

[0141] S310, determining the current charging times.

[0142] S320: Determine voltage switching parameters according to the current charging times.

[0143] In step S310, the current charging times are used to represent the times that the electronic device is connected to the charging device and receives power from the charging device. The electronic device can record the charging times each time a charging device is plugged in and receives power from the charging device.

[0144] In step S320, the voltage switching parameter (FV) is used to characterize the critical value of the electronic device switching from the constant current mode to the constant voltage mode during the charging process.

[0145] In this step, the circuit parameters also include: the current voltage and current of the battery. Step S320 may include: determining the voltage switching parameters according to the previous charging times and the current current.

[0146] In an exemplary embodiment, Figure 4 As shown, this step S320 may include the following steps:

[0147] S401. Determine a voltage parameter value according to the current charging times.

[0148] S402: Determine a voltage compensation value according to the current current and the preset impedance.

[0149] S403: Determine a voltage switching parameter according to the voltage parameter value and the voltage compensation value.

[0150] In step S401, configuration information may be pre-determined and stored in the electronic device during the factory process.

[0151] This step includes: S401-1 obtaining configuration information. In this step, the configuration information is used to characterize the mapping relationship between the number of charging times and the voltage parameter value. The CPU can call the pre-stored configuration information. S401-2, according to the configuration information and the current number of charging times, determine the voltage parameter value corresponding to the current number of charging times. In this step, the CPU can obtain the voltage parameter value FV' corresponding to the current number of charging times in the configuration information by looking up a table or traversing the query.

[0152] In this step, the battery's charging times are used to characterize its aging state. As the charging times change, the voltage parameter value dynamically determined by the electronic device can better match the current aging state of the battery, thereby achieving a more reasonable selection of the voltage parameter value.

[0153] In step S402, the preset impedance may refer to the impedance (R) generated by the wiring from the battery cell to the PMIC. For the same electronic device, the wiring impedance is a constant value. The CPU obtains the current current (I) of the battery and calculates the voltage compensation value U using U=I*R.

[0154] In step S403, the voltage switching parameter satisfies FV: FV=FV'+U. The determined voltage switching parameter can be temporarily stored in the register in the PMIC for the PMIC to call.

[0155] For example, the PMIC monitors the charging voltage of the battery in real time during the charging process. When the charging voltage is greater than or equal to FV (such as when the battery is almost fully charged), the PMIC can report to the CPU and control the charging process to switch from constant current charging to constant voltage charging according to the CPU instructions. Under constant voltage charging, the charging current gradually decreases until the battery is fully charged, completing the charging process. When the charging is completed, the temporarily stored voltage switching parameters can be deleted.

[0156] In this embodiment, in combination with step S401, the voltage parameter value corresponds to the number of charging times (ie, the degree of battery aging). In combination with the impedance of the wiring in step S402, the voltage compensation value U in this embodiment is in the order of mV.

[0157] Therefore, in this embodiment, the electronic device can dynamically determine a suitable voltage switching parameter each time charging. The electronic device can adjust the voltage switching parameter more finely and take into account the capacity loss caused by battery aging (the full charge voltage of an aged battery is lower than that of a non-aged battery). Selecting reasonable voltage switching parameters can ensure that the battery is not overcharged, effectively improve the battery life, and ensure the battery's endurance advantage.

[0158] In an exemplary embodiment, the present disclosure further provides a charging protection device, which is applied to an electronic device, wherein the electronic device includes a battery and a mainboard, and the battery is connected to the mainboard through a first connector and a second connector. Figure 5 As shown, the device includes: an acquisition module 110, a determination module 120 and a control module 130. The device in this embodiment is used to implement Figure 1 The method shown in the figure. The acquisition module 110 is used to obtain circuit parameters in response to the electronic device being charged in a first charging mode, wherein the charging voltage in the first charging mode is greater than a voltage threshold. The determination module 120 is used to determine whether the first connector and / or the second connector is in a fault state according to the circuit parameters. The control module 130 is used to stop charging the battery in the first charging mode in response to the first connector and / or the second connector being in a fault state.

[0159] In an exemplary embodiment, the circuit parameters include: the temperature of the first connector and the second connector; Figure 5 As shown, the acquisition module 110 is used to: acquire the first temperature of the first connector and the second temperature of the second connector at each time node within a preset time length; wherein the preset time length includes a plurality of consecutive time nodes.

[0160] In this embodiment, the circuit parameters also include: current collected by the fuel gauge, wherein the fuel gauge is used to collect the current of the battery, and the fuel gauge is connected to the mainboard through the first connector. The acquisition module 110 is also used to: in response to the temperature difference between the first temperature and the second temperature at the target time node being greater than or equal to the temperature threshold, obtain the current collected by the fuel gauge.

[0161] In this embodiment, the circuit parameters also include: the number of communication failures between the mainboard and the electricity meter. The acquisition module 110 is also used to: determine the number of communication failures that occur to the target time node according to the communication status between the mainboard and the electricity meter at each time node.

[0162] In this embodiment, the determination module 120 is used to: determine that the second connector is in a fault state in response to the first temperature being greater than the second temperature and the current collected by the power meter being greater than or equal to a preset current; determine that the first connector is in a fault state in response to the first temperature being less than the second temperature and the number of communication failures being greater than or equal to a preset number of times.

[0163] In an exemplary embodiment, still referring to Figure 5 As shown, in the first charging mode, the determination module 120 is also used to: determine the current charging number; wherein the current charging number is used to characterize: the number of times the electronic device is connected to the charging device and receives power from the charging device; determine the voltage switching parameter based on the current charging number; wherein the voltage switching parameter is used to characterize the critical value of the electronic device switching from the constant current mode to the constant voltage mode during the charging process.

[0164] In this embodiment, the circuit parameters also include: the current voltage and current of the battery. The determination module 120 is also used to: determine the voltage switching parameter according to the previous charging times and the current current.

[0165] In this embodiment, the determination module 120 is further used to: determine a voltage parameter value according to the current charging times; determine a voltage compensation value according to the current current and the preset impedance; and determine a voltage switching parameter according to the voltage parameter value and the voltage compensation value.

[0166] In this embodiment, the determination module 120 is further used to: obtain configuration information, wherein the configuration information is used to characterize the mapping relationship between the number of charging times and the voltage parameter value; and determine the voltage parameter value corresponding to the current number of charging times according to the configuration information and the current number of charging times.

[0167] In an exemplary embodiment, still referring to Figure 5 As shown, the control module 130 is used to: stop the charging process of the first charging mode, switch to the second charging mode to charge the battery, wherein the charging voltage of the second charging mode is less than the voltage threshold; or, stop charging the battery and output a prompt message, wherein the prompt message is used to: prompt the electronic device that it is in a charging stop state.

[0168] like Figure 6 The present disclosure also provides an electronic device, for example, the device 500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0169] Device 500 may include one or more of the following components: a processing component 502 , a memory 504 , a power component 506 , a multimedia component 508 , an audio component 510 , an input / output (I / O) interface 512 , a sensor component 514 , and a communication component 516 .

[0170] The processing component 502 generally controls the overall operation of the device 500, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 502 may include one or more processors 520 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 502 may include one or more modules to facilitate the interaction between the processing component 502 and other components. For example, the processing component 502 may include a multimedia module to facilitate the interaction between the multimedia component 508 and the processing component 502.

[0171] The memory 504 is configured to store various types of data to support operations on the device 500. Examples of such data include instructions for any application or method operating on the device 500, contact data, phone book data, messages, pictures, videos, etc. The memory 504 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0172] Power component 506 provides power to various components of device 500. Power component 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 500.

[0173] The multimedia component 508 includes a screen that provides an output interface between the device 500 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front camera and / or a rear camera. When the device 500 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0174] The audio component 510 is configured to output and / or input audio signals. For example, the audio component 510 includes a microphone (MIC), and when the device 500 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 504 or sent via the communication component 516. In some embodiments, the audio component 510 also includes a speaker for outputting audio signals.

[0175] I / O interface 512 provides an interface between processing component 502 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0176] The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the device 500. For example, the sensor assembly 514 can detect the open / closed state of the device 500, the relative positioning of components, such as the display and keypad of the device 500, and the sensor assembly 514 can also detect the position change of the device 500 or a component of the device 500, the presence or absence of user contact with the device 500, the orientation or acceleration / deceleration of the device 500, and the temperature change of the device 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 514 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0177] The communication component 516 is configured to facilitate wired or wireless communication between the device 500 and other devices. The device 500 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0178] In an exemplary embodiment, the device 500 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above-described methods.

[0179] In another exemplary embodiment of the present disclosure, a non-transitory computer-readable storage medium is provided, such as a memory 504 including instructions, and the instructions can be executed by a processor 520 of a device 500 to perform the above method. For example, the computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc. When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the above method.

[0180] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The specification and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.

[0181] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A charging protection method, characterized in that: Applied to an electronic device, the electronic device comprises a battery and a mainboard, the battery is connected to the mainboard via a first connector and a second connector; wherein the method comprises: In response to the electronic device being charged in a first charging mode, acquiring a circuit parameter, wherein a charging voltage in the first charging mode is greater than a voltage threshold; determining, according to the circuit parameters, whether the first connector and / or the second connector is in a fault state; In response to the first connector and / or the second connector being in a fault state, stopping charging the battery in the first charging mode; The circuit parameters include: the temperature of the first connector and the second connector and the current collected by the power meter, the power meter is used to collect the current of the battery, and the power meter is connected to the mainboard through the first connector; the circuit parameters are obtained, including: Acquire a first temperature of the first connector and a second temperature of the second connector at each time node within a preset time length; wherein the preset time length includes a plurality of consecutive time nodes; In response to a temperature difference between the first temperature and the second temperature being greater than or equal to a temperature threshold at a target time node, a current collected by the electricity meter is acquired.

2. The charging protection method according to claim 1, characterized in that: The circuit parameters also include: the number of times the mainboard fails to communicate with the power meter; The obtaining of circuit parameters further includes: The number of communication failures that occur up to the target time node is determined according to the communication status between the mainboard and the electricity meter at each time node.

3. The charging protection method according to claim 2, characterized in that: The determining, according to the circuit parameters, whether the first connector and / or the second connector is in a fault state comprises: In response to the first temperature being greater than the second temperature and the current collected by the electricity meter being greater than or equal to a preset current, determining that the second connector is in a fault state; In response to the first temperature being lower than the second temperature and the number of communication failures being greater than or equal to a preset number, it is determined that the first connector is in a fault state.

4. The charging protection method according to claim 1, characterized in that: In the first charging mode, the method further includes: Determine the current charging number; wherein the current charging number is used to represent: the number of times the electronic device is connected to the charging device and receives power from the charging device; A voltage switching parameter is determined according to the current charging times; wherein the voltage switching parameter is used to characterize a critical value for the electronic device to switch from a constant current mode to a constant voltage mode during the charging process.

5. The charging protection method according to claim 4, characterized in that: The circuit parameters also include: the current voltage and current of the battery; The determining of the voltage switching parameter according to the current charging number includes: The voltage switching parameter is determined according to the previous charging times and the current current.

6. The charging protection method according to claim 5, characterized in that: The determining of the voltage switching parameter according to the current charging number and the current current includes: Determining a voltage parameter value according to the current charging number; Determining a voltage compensation value according to the current current and the preset impedance; The voltage switching parameter is determined according to the voltage parameter value and the voltage compensation value.

7. The charging protection method according to claim 6, characterized in that: The step of determining a voltage parameter value according to the current charging number includes: Acquire configuration information, wherein the configuration information is used to characterize a mapping relationship between the number of charging times and a voltage parameter value; The voltage parameter value corresponding to the current charging number is determined according to the configuration information and the current charging number.

8. The charging protection method according to any one of claims 1 to 7, characterized in that: The stopping of charging the battery in the first charging mode comprises: Stop the charging process of the first charging mode and switch to the second charging mode to charge the battery, wherein the charging voltage of the second charging mode is less than a voltage threshold; or, Stop charging the battery and output a prompt message, wherein the prompt message is used to prompt that the electronic device is in a charging stop state.

9. A charging protection device, characterized in that: Applied to electronic equipment, the electronic equipment comprises a battery and a mainboard, the battery is connected to the mainboard via a first connector and a second connector; wherein the device comprises: an acquisition module, configured to acquire circuit parameters in response to the electronic device being charged in a first charging mode, wherein a charging voltage in the first charging mode is greater than a voltage threshold; a determination module, configured to determine whether the first connector and / or the second connector is in a fault state according to the circuit parameters; a control module, configured to stop charging the battery in the first charging mode in response to the first connector and / or the second connector being in a fault state; The circuit parameters include: the temperature of the first connector and the second connector and the current collected by the power meter, the power meter is used to collect the current of the battery, and the power meter is connected to the mainboard through the first connector; The acquisition module is used for: Acquire a first temperature of the first connector and a second temperature of the second connector at each time node within a preset time length; wherein the preset time length includes a plurality of consecutive time nodes; In response to a temperature difference between the first temperature and the second temperature being greater than or equal to a temperature threshold at a target time node, a current collected by the electricity meter is acquired.

10. The charging protection device according to claim 9, characterized in that: The circuit parameters also include: the number of times the mainboard fails to communicate with the power meter; The acquisition module is also used for: The number of communication failures that occur up to the target time node is determined according to the communication status between the mainboard and the electricity meter at each time node.

11. The charging protection device according to claim 10, characterized in that: The determination module is used for: In response to the first temperature being greater than the second temperature and the current collected by the electricity meter being greater than or equal to a preset current, determining that the second connector is in a fault state; In response to the first temperature being lower than the second temperature and the number of communication failures being greater than or equal to a preset number, it is determined that the first connector is in a fault state.

12. The charging protection device according to claim 9, characterized in that: In the first charging mode, the determining module is further used for: Determine the current charging number; wherein the current charging number is used to represent: the number of times the electronic device is connected to the charging device and receives power from the charging device; A voltage switching parameter is determined according to the current charging times; wherein the voltage switching parameter is used to characterize a critical value for the electronic device to switch from a constant current mode to a constant voltage mode during the charging process.

13. An electronic device, characterized in that: include: processor; a memory for storing executable instructions for the processor; Wherein, the processor is configured to execute the charging protection method as described in any one of claims 1 to 8.

14. A non-transitory computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the charging protection method as described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Abnormality detection method and device, and storage medium

    CN112152276A

  • Mobile terminal

    WO2021208811A1