Battery charging abnormity detection method, system and device and storage medium

By monitoring the battery voltage, charging current and temperature in real time and adjusting the charging strategy, the problem of insufficient detection delay and corrective measures of the charging management chip in the prior art is solved, and the safety and stability of the charging process are improved.

CN119231689APending Publication Date: 2024-12-31LIVEFAN INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411236489.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-04
Publication Date
2024-12-31

AI Technical Summary

Technical Problem

The existing charging management chips have delays in detecting battery abnormalities, limited detection range and insufficient corrective measures, resulting in the safety and stability of the charging process being unable to be guaranteed.

Method used

By obtaining the clock frequency of the I2C bus and the address of the charging management chip, sending the I2C command to read the register value to obtain the battery voltage, charging current and temperature, determining whether there is a charging abnormality, and adjusting the battery voltage and charging current according to these parameters to achieve Real-time monitoring and correction.

Benefits of technology

It improves the ability to identify charging abnormalities, reduces the risk of battery damage, quickly responds to potential problems, prevents battery overcharging, overheating, etc., extends the battery life, and improves the safety and stability of the charging process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119231689A_ABST
    Figure CN119231689A_ABST
Patent Text Reader

Abstract

The invention relates to the field of charging management of electronic equipment, and discloses a battery charging anomaly detection method, system and equipment and a storage medium. The method comprises the following steps: acquiring a clock frequency of an I2C bus and an address of a charging management chip; sending an I2C command to the charging management chip according to the clock frequency and the address; receiving a register value returned by the charging management chip, analyzing the register value, and obtaining a battery voltage, a charging current and a battery temperature; according to the battery voltage, the charging current and the battery temperature, whether charging abnormity exists or not is judged, and if charging abnormity exists, the charging management chip adjusts the battery voltage and the charging current. According to the embodiment of the invention, the safety and stability of the charging process can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of charging management of electronic devices, and in particular to a battery charging anomaly detection method, system, device and storage medium. Background Art

[0002] The charging management chip is a chip that is responsible for the conversion, distribution, detection and other power management of electric energy in the electronic equipment system. It is mainly responsible for identifying the CPU power supply amplitude, generating corresponding short-term waves, and promoting the power output of the subsequent circuit.

[0003] Existing charging management chips usually use simple voltage and current detection methods to monitor battery status. However, these traditional technologies have the following disadvantages:

[0004] Detection delay: Some chips may have a delay in detecting battery anomalies and fail to respond to abnormal conditions in a timely manner, causing battery damage.

[0005] Limited detection range: Existing technologies usually only monitor basic battery parameters such as voltage and current, ignoring important factors such as temperature.

[0006] Insufficient corrective measures: For abnormal situations, existing technologies usually only correct them by reducing the charging rate, and lack more sophisticated adjustment methods.

[0007] These shortcomings of traditional technologies make it impossible to ensure the safety and stability of the charging process. Summary of the invention

[0008] The main purpose of the present invention is to solve the technical problem of how to improve the safety and stability of the charging process.

[0009] A first aspect of the present invention provides a battery charging abnormality detection method, the battery charging abnormality detection method comprising:

[0010] Obtaining the clock frequency of the I2C bus and the address of the charging management chip, wherein the clock frequency is used to indicate the speed of data transmission with the charging management chip, and the address is used to identify a matching communication device;

[0011] According to the clock frequency and the address, an I2C command is sent to the charging management chip, wherein the I2C command carries a register address to be read, and the I2C command is used to instruct the charging management chip to read a register value from a corresponding register according to the register address, and the register is used to store battery status information;

[0012] Receive the register value returned by the charging management chip, and parse the register value to obtain the battery voltage, charging current and battery temperature;

[0013] It is determined whether there is a charging abnormality according to the battery voltage, the charging current and the battery temperature. If there is a charging abnormality, the charging management chip is made to adjust the battery voltage and the charging current.

[0014] Optionally, in a first implementation of the first aspect of the present invention, the register value includes a value of a voltage register, a value of a current register, and a value of a temperature register;

[0015] The receiving the register value returned by the charging management chip, parsing the register value, and obtaining the battery voltage, charging current, and battery temperature includes:

[0016] Reading the value of the voltage register, and obtaining the battery voltage according to the value of the voltage register and a preset voltage conversion factor;

[0017] Reading the value of the current register, and obtaining the charging current according to the value of the current register and a preset current conversion factor;

[0018] The value of the temperature register is read, and the battery temperature is obtained according to the value of the temperature register, a preset linear conversion factor and a starting temperature.

[0019] Optionally, in a second implementation of the first aspect of the present invention, judging whether there is a charging abnormality according to the battery voltage, the charging current, and the battery temperature, and if there is a charging abnormality, causing the charging management chip to adjust the battery voltage and the charging current includes:

[0020] If the battery voltage exceeds the preset voltage range, it indicates that there is a charging abnormality, and the charging management chip reduces the battery voltage or stops charging;

[0021] If the charging current exceeds the preset current range, it indicates that there is a charging abnormality, and the charging management chip reduces the charging current or stops charging;

[0022] If the battery temperature exceeds a preset temperature range, it indicates that a charging abnormality exists, and the charging management chip is caused to reduce the battery voltage or the charging current.

[0023] Optionally, in a third implementation of the first aspect of the present invention, when the battery voltage is within a preset low voltage range, the battery is charged with the constant charging current;

[0024] When the battery voltage reaches a preset voltage threshold, gradually reducing the charging current to fully charge the battery at a constant battery voltage;

[0025] When the battery is close to a fully charged state, the battery is charged with a preset extremely low charging current to maintain the battery in a fully charged state.

[0026] A first aspect of the present invention provides a battery charging anomaly detection system, the battery charging anomaly detection system comprising a charging management chip and a host, the charging management chip comprising a power detection module, a power distribution module and a real-time monitoring module;

[0027] The power detection module is used to obtain the input voltage when the USB or DC power supply is connected, detect the input voltage through the power voltage bus, and determine whether the input voltage exceeds a preset voltage range;

[0028] The power distribution module is used to distribute the input voltage to the system power output pin through the power voltage bus, and supply power to the battery through the system power output pin;

[0029] The real-time monitoring module is used to collect the battery voltage, charging current and battery temperature by monitoring the battery pins, and transmit the battery voltage, charging current and battery temperature to the host, so that the host adjusts the battery voltage and charging current according to the battery voltage, charging current and battery temperature.

[0030] Optionally, in a first implementation of the second aspect of the present invention, the host includes a regulation module and a fault recovery module;

[0031] The regulating module is used to determine whether there is a charging abnormality according to the battery voltage, the charging current and the battery temperature, and if there is a charging abnormality, the charging management chip is used to adjust the battery voltage and the charging current;

[0032] The fault recovery module is used to initialize all charging parameters after an abnormality is reset.

[0033] Optionally, in a second implementation of the second aspect of the present invention, the charging management chip also includes a reset pin. When an abnormality is detected in the battery voltage or the charging current, a system reset is triggered by the reset pin to restart the module function of the charging management chip.

[0034] Optionally, in a second implementation of the third aspect of the present invention, the charging management chip further includes a boost pin, and when the input voltage is lower than a preset input voltage threshold, the boost converter is started through the boost pin to increase the input voltage.

[0035] A third aspect of the present invention provides a battery charging abnormality detection device, comprising: a memory and at least one processor, wherein instructions are stored in the memory, and the memory and the at least one processor are interconnected via a line; the at least one processor calls the instructions in the memory so that the battery charging abnormality detection device executes the above-mentioned battery charging abnormality detection method.

[0036] A fourth aspect of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the above-mentioned battery charging abnormality detection method.

[0037] In an embodiment of the present invention, the clock frequency of the I2C bus and the address of the charging management chip are obtained, the clock frequency is used to indicate the speed of data transmission with the charging management chip, and the address is used to identify the device matching the communication; according to the clock frequency and the address, an I2C command is sent to the charging management chip, the I2C command carries the register address to be read, and the I2C command is used to instruct the charging management chip to read the register value from the corresponding register according to the register address, and the register is used to store battery status information; the register value returned by the charging management chip is received, and the register value is parsed to obtain the battery voltage, charging current and battery temperature; according to the battery voltage, the charging current and the battery temperature, it is determined whether there is a charging abnormality, and if there is a charging abnormality, the charging management chip is adjusted. In the present invention, by multi-dimensional monitoring of the battery voltage, charging current and battery temperature, the ability to identify charging abnormalities is improved, and the risk of battery damage is reduced. At the same time, the abnormal adjustment of the battery voltage and charging current in real time can quickly respond to potential problems, effectively prevent battery overcharging, overheating, etc., and extend the service life of the battery, thereby improving the safety and stability of the charging process. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 A schematic diagram of an embodiment of a method for detecting abnormal battery charging in an embodiment of the present invention;

[0039] Figure 2 A schematic diagram of an embodiment of a battery charging abnormality detection system in an embodiment of the present invention;

[0040] Figure 3 This is a schematic diagram of the structure of a battery charging abnormality detection system in an embodiment of the present invention;

[0041] Figure 4 A schematic diagram of another embodiment of a battery charging abnormality detection system according to an embodiment of the present invention;

[0042] Figure 5 FIG. 1 is a schematic diagram of an embodiment of a battery charging abnormality detection device in an embodiment of the present invention. DETAILED DESCRIPTION

[0043] Embodiments of the present invention provide a battery charging abnormality detection method, system, device and storage medium.

[0044] The embodiments disclosed in the present invention will be described in more detail below with reference to the accompanying drawings. Although certain embodiments disclosed in the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present invention. It should be understood that the drawings and embodiments disclosed in the present invention are only for exemplary purposes and are not intended to limit the scope of protection disclosed in the present invention.

[0045] In the description of the embodiments disclosed in the present invention, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The terms "first", "second", etc. may refer to different or the same objects. Other explicit and implicit definitions may also be included below.

[0046] For ease of understanding, the specific process of the embodiment of the present invention is described below. Figure 1 , an embodiment of the battery charging abnormality detection method in the embodiment of the present invention includes:

[0047] S100, obtaining the clock frequency of the I2C bus and the address of the charging management chip.

[0048] In this embodiment, first, it is necessary to initialize the I2C communication interface so that data can be exchanged with the charging management chip, which usually includes configuring the I2C clock frequency and setting the device (charging management chip) address. The clock frequency of the I2C bus determines the speed of data transmission. I2C is a multi-master and multi-slave communication protocol. The I2C protocol usually supports multiple rates, such as standard mode (100kHz), fast mode (400kHz), high-speed mode (3.4MHz), etc. The present invention uses the standard mode. Each slave device (such as a charging management chip) has a unique 7-bit or 10-bit address. When a master device (such as a microcontroller) needs to communicate with a slave device, it sends the address of the slave device through the I2C bus. Only slave devices that match the address will respond and communicate.

[0049] In I2C communication, configuring the clock frequency ensures the speed and stability of communication, while setting the device address ensures the accuracy of communication and the identification of the device. Correct configuration of the clock frequency and device address is essential to achieve reliable and efficient I2C communication.

[0050] S200, sending an I2C command to the charging management chip according to the clock frequency and address.

[0051] In this embodiment, the charging management chip usually has several registers for storing battery status information, such as voltage, current, temperature, charging status, etc. The real-time status data of the battery can be obtained by reading the values ​​of these registers through I2C. Specifically, the host first sends an I2C command to the charging management chip according to the clock frequency and address. The register address to be read is specified in the I2C command. After receiving the I2C command, the charging management chip reads the register value from the corresponding register according to the register address. The register value includes data such as battery voltage, charging current and battery temperature. Then, the charging management chip returns the read register value to the host.

[0052] S300, receiving the register value returned by the charging management chip, parsing the register value, and obtaining the battery voltage, charging current and battery temperature.

[0053] In this embodiment, the registers in the charging management chip may include a voltage register, a current register, and a temperature register, which store the battery voltage, the charging current, and the battery temperature data respectively. The charging management chip returns the values ​​of the voltage register, the current register, and the temperature register to the host. Since the data returned in the register is usually the original binary value, it is necessary to parse these data according to the technical documentation of the chip. Therefore, after receiving the values ​​of the voltage register, the current register, and the temperature register, the host needs to parse these register values ​​to convert the value of the voltage register into the actual voltage value, the value of the current register into the actual current value, and the value of the temperature register into the actual temperature value.

[0054] S400, judging whether there is a charging abnormality according to the battery voltage, charging current and battery temperature, and if there is a charging abnormality, causing the charging management chip to adjust the battery voltage and charging current.

[0055] In this embodiment, according to the battery data read, it can be checked whether there is an abnormal situation. During the charging process, the battery voltage, charging current and battery temperature are three key parameters. Their changes directly reflect whether the charging process is normal or not. By monitoring these parameters in real time, charging anomalies can be discovered and handled in time to ensure safe charging of the battery. The stability of the battery voltage is the key to ensuring charging safety. If the battery voltage is too high or too low, it may indicate that there is a problem in the charging process. For example, if the battery voltage suddenly drops, it may mean that a short circuit or damage has occurred inside the battery. Therefore, by monitoring the battery voltage, it can be discovered in time whether the battery is in a normal charging state. The size of the charging current directly affects the charging speed and safety of the battery. Excessive charging current may cause the battery to overheat and even cause a safety accident. Therefore, by monitoring the charging current, it can be determined whether the charging process is carried out within a safe range. The battery temperature is an important indicator for determining whether the charging process is safe. If the battery temperature rises abnormally, it may be because the heat generated during the charging process cannot be effectively dissipated, which may cause a short circuit or damage inside the battery. Therefore, by monitoring the battery temperature, potential charging anomalies can be discovered and handled in time. Among them, the abnormal detection during the charging process is not only performed at startup, but also needs to read the battery status register periodically during the charging process to monitor the health status of the battery in real time. The cycle can be set to 1 to 10 seconds. If there is a charging abnormality, the charging strategy is adjusted.

[0056] In an optional implementation of the first aspect of the present invention, receiving a register value returned by the charging management chip, parsing the register value, and obtaining the battery voltage, charging current, and battery temperature includes:

[0057] Read the value of the voltage register, and obtain the battery voltage based on the value of the voltage register and the preset voltage conversion factor; read the value of the current register, and obtain the charging current based on the value of the current register and the preset current conversion factor; read the value of the temperature register, and obtain the battery temperature based on the value of the temperature register, the preset linear conversion factor and the starting temperature.

[0058] In this embodiment, the original value of the register is usually an unsigned integer, which needs to be converted into an actual physical quantity, such as voltage, current or temperature, through a conversion factor or formula provided by the device manufacturer. The specific conversion factor and formula depend on the design and register format of the device. According to the value of the voltage register and the preset voltage conversion factor, the battery voltage is obtained, including: reading a binary value from the voltage register through the I2C interface, for example, the value of the voltage register is 0x0F (hexadecimal), and the corresponding decimal value is 15. Each device has a specific voltage conversion factor, such as 3856+32n (mv) for sgm41542, and then multiplying the value of the voltage register by the voltage conversion factor, for example, when n is equal to 15, the battery voltage is 3856+32*15=4336mv=4.336v. According to the value of the current register and the preset current conversion factor, the charging current is obtained, including: reading binary data from the current register. For example, the value read is 0x3E8 (hexadecimal), and the corresponding decimal value is 1000. Assuming that the current conversion factor is 2mA, the value of the current register read is multiplied by the current conversion factor, that is, 1000*2mA=2000mA. According to the value of the temperature register, the preset linear conversion factor and the starting temperature, the battery temperature is obtained, including: reading binary data from the temperature register. For example, the value read is 0x30 (hexadecimal), and the corresponding decimal value is 48. The temperature sensor usually has a linear conversion factor. Assuming that the linear conversion factor is 1°C and the starting temperature is -5°C, the value of the temperature register read is multiplied by the linear conversion factor, and then the starting temperature is added. For example, 48*1°C+(-5°C)=43°C.

[0059] In an optional implementation of the first aspect of the present invention, judging whether there is a charging abnormality according to the battery voltage, the charging current and the battery temperature, and if there is a charging abnormality, causing the charging management chip to adjust the battery voltage and the charging current includes:

[0060] If the battery voltage exceeds the preset voltage range, it indicates that there is a charging abnormality, and the charging management chip will reduce the battery voltage or stop charging; if the charging current exceeds the preset current range, it indicates that there is a charging abnormality, and the charging management chip will reduce the charging current or stop charging; if the battery temperature exceeds the preset temperature range, it indicates that there is a charging abnormality, and the charging management chip will reduce the battery voltage or charging current.

[0061] In this embodiment, if the battery voltage exceeds the preset voltage range, or the charging current exceeds the preset current range, or the battery temperature exceeds the preset temperature range, it indicates that there is a charging abnormality. If an abnormality is detected, the charging management chip can take the following measures: if the battery voltage exceeds the preset voltage range, the charging management chip reduces the battery voltage or stops charging; if the charging current exceeds the preset current range, the charging management chip reduces the charging current or stops charging; if the battery temperature exceeds the preset temperature range, the charging management chip reduces the battery voltage or charging current.

[0062] In an optional implementation of the first aspect of the present invention, when the battery voltage is within a preset low voltage range, the battery is charged with a constant charging current; when the battery voltage reaches a preset voltage threshold, the charging current is gradually reduced to fully charge the battery with a constant battery voltage; when the battery is close to a fully charged state, the battery is charged with a preset extremely low charging current to maintain the battery in a fully charged state.

[0063] In this embodiment, staged charging is adopted, and the charging process is divided into multiple stages. Different charging currents and voltages are used in each stage to achieve the best charging effect. The charging process stages include: constant current charging stage, constant voltage charging stage, and trickle charging stage. Constant current charging stage: In this stage, the battery voltage is low, and the battery is charged with a constant charging current. The main purpose of this stage is to quickly charge the battery to a certain power level. Constant voltage charging stage: When the battery voltage reaches a certain value, the charger will keep the voltage constant, and the charging current will gradually decrease as the battery power increases. The purpose of this stage is to ensure that the battery can be fully charged safely and stably to avoid overcharging. Trickle charging stage: When the battery power is close to full charge, the charging current will drop below the set threshold, and the trickle charging stage will be entered. The current in this stage is very small, which is mainly used to ensure that the battery is fully charged and prevent overcharging. Trickle charging is usually performed when the battery power is very close to full charge to ensure that the battery can reach the best charging state.

[0064] This staged charging strategy adaptively adjusts the charging current, voltage and charging mode. It can dynamically adjust the charging strategy based on the real-time monitored battery status, temperature and power supply conditions, thereby maximizing charging efficiency, reducing energy waste and extending battery life.

[0065] See also Figure 2 , an embodiment of the battery charging abnormality detection system in the embodiment of the present invention includes: a charging management chip and a host 10, the charging management chip 20 includes a power detection module 22, a power distribution module 24 and a real-time monitoring module 26;

[0066] The power detection module 22 is used to obtain the input voltage when the USB or DC power supply is connected, detect the input voltage through the power voltage bus, and determine whether the input voltage exceeds the preset voltage range;

[0067] The power distribution module 24 is used to distribute the input voltage to the system power output pin through the power voltage bus, and supply power to the battery through the system power output pin;

[0068] The real-time monitoring module 26 is used to collect the battery voltage, charging current and battery temperature by monitoring the battery pins, and transmit the battery voltage, charging current and battery temperature to the host 10, so that the host 10 adjusts the battery voltage and charging current according to the battery voltage, charging current and battery temperature.

[0069] In this embodiment, the charging management chip 20 includes a power detection module 22, a power distribution module 24 and a real-time monitoring module 26. Figure 3As shown, the power detection module 22 is used when the USB or DC power supply is connected. The system detects the input voltage through the power voltage bus. If the voltage exceeds the safety range, the enable / disable DC power input function will disable the input power. Among them, USB is usually used for external power input. It can be connected to a charger or a computer to provide power to the entire charging management system. The charging management system mainly includes a charging management chip 20. When the user connects the power supply through the USB interface, the system will detect the voltage and start to power the system, and may also charge the battery; the power voltage bus is responsible for distributing the voltage from the USB interface or DC power input to various parts of the system. The power voltage bus transmits the voltage to the system power output pin, the monitoring battery pin and other related components; enable / disable DC power input mainly controls whether to enable the external DC power input. When a suitable external power supply is detected, this function will be enabled, otherwise the external power supply will be disabled to avoid damage. When the external power supply voltage is too high or too low, the system may disable the power input to protect the device. The power distribution module 24 is used to distribute the detected power supply voltage to the system power output pin through the power bus to provide power to the system, wherein the system power output pin provides stable voltage and current to the core components of the system, such as the processor, memory, etc., and the pin ensures that the key components of the system are stably supplied with power, thereby maintaining the normal operation of the system. The real-time monitoring module 26 is used to collect the voltage, current and temperature data of the battery in real time by monitoring the battery pin, and transmit it to the power management system through the host 10. The host 10 decides whether to adjust the current and voltage based on these data, wherein the monitoring battery pin monitors the battery voltage, current and temperature parameters in real time, and the monitoring results are used to dynamically adjust the charging strategy, such as reducing the charging current when the battery voltage is too high, or suspending charging when the temperature is too high. In addition, the system also includes optional functions, which include additional functions of the system, such as LED indicators, alarm functions, etc. These functions may not directly participate in power management, but provide users with additional operational feedback or information. For example, when the system detects overheating, the optional functions may trigger an alarm or flashing indicator light to remind the user; the total system voltage indicates the operating voltage of the entire system, which is the stable voltage required for all components to operate normally. The total system voltage needs to be maintained within a certain range. Exceeding the range will cause system instability and may trigger a protection mechanism.

[0070] In an optional implementation of the second aspect of the present invention, the host 10 includes an adjustment module 12 and a fault recovery module 14; the adjustment module 12 is used to determine whether there is a charging abnormality based on the battery voltage, charging current and battery temperature, and if there is a charging abnormality, the charging management chip 20 adjusts the battery voltage and charging current; the fault recovery module 14 is used to initialize all charging parameters after the abnormality is reset.

[0071] In this embodiment, the adjustment module 12 is used to make adjustments according to the detected data, for example, Figure 3 As shown, when the battery temperature rises, the host 10 reduces the charging current through the switch pin, or restarts the system to prevent damage, wherein the switch pin is usually used to control the switching action of the circuit, enable or disable certain power paths, and the switch pin works when it is necessary to switch the power supply or disconnect the power supply under certain conditions. The fault recovery module 14 is used to reinitialize all parameters of the host 10 after the system is abnormally reset, ensure that the current and voltage return to a safe range, and then gradually resume the normal charging process.

[0072] In an optional implementation of the second aspect of the present invention, the charging management chip 20 also includes a reset pin. When an abnormal battery voltage or charging current is detected, the reset pin triggers a system reset to restart the module function of the charging management chip 20.

[0073] In this embodiment, the charging management chip 20 also includes a reset pin, which is used for the system reset operation and is usually triggered when a system failure or abnormality is detected. When the system detects a serious voltage or current abnormality, the reset pin can trigger a system reset and restart all module functions of the charging management chip 20.

[0074] In an optional implementation of the second aspect of the present invention, the charging management chip 20 further includes a boost pin. When the input voltage is lower than a preset input voltage threshold, the boost converter is started through the boost pin to increase the input voltage.

[0075] In this embodiment, the charging management chip 20 also includes a boost pin, which is responsible for controlling a boost converter that boosts the voltage to a required level to supply the system or charge. If the input voltage is low, the boost pin will start the boost circuit to increase the voltage to the required system voltage level.

[0076] Figure 5is a schematic diagram of the structure of a battery charging anomaly detection device provided by an embodiment of the present invention. The battery charging anomaly detection device 500 may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 510 (for example, one or more processors) and a memory 520, and one or more storage media 530 (for example, one or more mass storage devices) storing application programs 533 or data 532. Among them, the memory 520 and the storage medium 530 can be short-term storage or permanent storage. The program stored in the storage medium 530 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the battery charging anomaly detection device 500. Furthermore, the processor 510 can be configured to communicate with the storage medium 530 to execute a series of instruction operations in the storage medium 530 on the battery charging anomaly detection device 500.

[0077] The battery charging abnormality detection device 500 may also include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input and output interfaces 560, and / or one or more operating systems 531, such as Windows Serve, Mac OS X, Unix, Linux, FreeBSD, etc. Those skilled in the art will appreciate that Figure 5 The structure of the battery charging abnormality detection device shown does not constitute a limitation on the battery charging abnormality detection device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0078] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the battery charging abnormality detection method.

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

[0080] In addition, although each operation is described in a specific order, this should be understood as requiring such operation to be performed in the specific order shown or in a sequential order, or requiring that all illustrated operations should be performed to obtain desired results. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single implementation in combination. On the contrary, the various features described in the context of a single implementation can also be implemented in multiple implementations individually or in any suitable sub-combination mode.

[0081] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims

1. A method for detecting abnormal battery charging, characterized in that: The battery charging abnormality detection method comprises: Obtaining the clock frequency of the I2C bus and the address of the charging management chip, wherein the clock frequency is used to indicate the speed of data transmission with the charging management chip, and the address is used to identify a matching communication device; According to the clock frequency and the address, an I2C command is sent to the charging management chip, wherein the I2C command carries a register address to be read, and the I2C command is used to instruct the charging management chip to read a register value from a corresponding register according to the register address, and the register is used to store battery status information; Receive the register value returned by the charging management chip, and parse the register value to obtain the battery voltage, charging current and battery temperature; It is determined whether there is a charging abnormality according to the battery voltage, the charging current and the battery temperature. If there is a charging abnormality, the charging management chip is made to adjust the battery voltage and the charging current.

2. The battery charging abnormality detection method according to claim 1, characterized in that: The register values ​​include the value of the voltage register, the value of the current register and the value of the temperature register; The receiving the register value returned by the charging management chip, parsing the register value, and obtaining the battery voltage, charging current, and battery temperature includes: Reading the value of the voltage register, and obtaining the battery voltage according to the value of the voltage register and a preset voltage conversion factor; Reading the value of the current register, and obtaining the charging current according to the value of the current register and a preset current conversion factor; The value of the temperature register is read, and the battery temperature is obtained according to the value of the temperature register, a preset linear conversion factor and a starting temperature.

3. The battery charging abnormality detection method according to claim 1, characterized in that: The determining whether there is a charging abnormality according to the battery voltage, the charging current and the battery temperature, and if there is a charging abnormality, causing the charging management chip to adjust the battery voltage and the charging current comprises: If the battery voltage exceeds the preset voltage range, it indicates that there is a charging abnormality, and the charging management chip reduces the battery voltage or stops charging; If the charging current exceeds the preset current range, it indicates that there is a charging abnormality, and the charging management chip reduces the charging current or stops charging; If the battery temperature exceeds a preset temperature range, it indicates that a charging abnormality exists, and the charging management chip is caused to reduce the battery voltage or the charging current.

4. The battery charging abnormality detection method according to any one of claims 1 to 3, characterized in that: When the battery voltage is within a preset low voltage range, charging the battery with a constant charging current; When the battery voltage reaches a preset voltage threshold, gradually reducing the charging current to fully charge the battery at a constant battery voltage; When the battery is close to a fully charged state, the battery is charged with a preset extremely low charging current to maintain the battery in a fully charged state.

5. A battery charging abnormality detection system, characterized in that: It includes a charging management chip and a host, wherein the charging management chip includes a power detection module, a power distribution module and a real-time monitoring module; The power detection module is used to obtain the input voltage when the USB or DC power supply is connected, detect the input voltage through the power voltage bus, and determine whether the input voltage exceeds a preset voltage range; The power distribution module is used to distribute the input voltage to the system power output pin through the power voltage bus, and supply power to the battery through the system power output pin; The real-time monitoring module is used to collect the battery voltage, charging current and battery temperature by monitoring the battery pins, and transmit the battery voltage, charging current and battery temperature to the host, so that the host adjusts the battery voltage and charging current according to the battery voltage, charging current and battery temperature.

6. The battery charging abnormality detection system according to claim 5, characterized in that: The host includes a regulation module and a fault recovery module; The regulating module is used to determine whether there is a charging abnormality according to the battery voltage, the charging current and the battery temperature, and if there is a charging abnormality, the charging management chip is used to adjust the battery voltage and the charging current; The fault recovery module is used to initialize all charging parameters after an abnormality is reset.

7. The battery charging abnormality detection system according to claim 6, characterized in that: The charging management chip also includes a reset pin. When the battery voltage or the charging current is detected to be abnormal, the reset pin is used to trigger a system reset to restart the module function of the charging management chip.

8. The battery charging abnormality detection system according to claim 5, characterized in that: The charging management chip also includes a boost pin. When the input voltage is lower than a preset input voltage threshold, a boost converter is started through the boost pin to increase the input voltage.

9. A battery charging abnormality detection device, characterized in that: The battery charging abnormality detection device comprises: a memory and at least one processor, the memory stores instructions, and the memory and the at least one processor are interconnected via a line; The at least one processor calls the instructions in the memory to enable the battery charging abnormality detection device to execute the battery charging abnormality detection method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the battery charging abnormality detection method according to any one of claims 1 to 7 is implemented.