Battery metering system, electronic device and control method

By always maintaining power supply to the protection drive circuit in the battery metering system, and by controlling the reset of the circuit management functional components, the problem of low reliability of the battery metering system is solved, and the user experience and system security are improved.

CN115291120BActive Publication Date: 2024-10-18VIVO MOBILE COMM CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211005224.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-22
Publication Date
2024-10-18
Estimated Expiration
2042-08-22

AI Technical Summary

Technical Problem

The battery metering system of electronic equipment has low reliability, resulting in poor user experience. Especially in abnormal situations such as communication hang-up or memory bit flipping, the entire machine may be powered off.

Method used

Design a battery metering system in which the protection drive circuit is directly powered by the power supply module, and the control circuit controls other functional components to lose power and reset according to the instructions of the central processor, ensuring that the protection drive circuit is always powered and avoiding power outage of the entire machine.

Benefits of technology

It improves the reliability and user experience of the battery metering system, ensures that the drive circuit is protected from power loss during the reset process of functional components, avoids the entire shutdown, and enhances the safety performance of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115291120B_ABST
    Figure CN115291120B_ABST
Patent Text Reader

Abstract

The present application discloses a battery metering system, an electronic device and a control method for the battery metering system. The battery metering system comprises: a fuel meter chip, the fuel meter chip comprises a protection drive circuit, a power supply module, a control circuit and a functional component; a first output end of the power supply module is connected to the protection drive circuit for supplying power to the protection drive circuit; a second output end of the power supply module is connected to one end of the control circuit, and the other end of the control circuit is connected to the functional component; a central processing unit, the central processing unit is connected to the fuel meter chip and is used to send a control signal to the fuel meter chip; the control circuit is used to control the functional component to lose power and reset according to the instruction of the control signal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of battery technology, and in particular to a battery metering system, electronic equipment and control method. Background Art

[0002] With the development of science and technology, the types of electronic products are becoming more and more abundant, and users' requirements for electronic products are also getting higher and higher. Among them, a good power experience has a great improvement in the competitiveness of electronic products. An independent fuel meter chip is set in the battery metering system of electronic products to not only accurately provide the battery power, but also make accurate calculations and early warnings for the reliability and safety of the battery. Among them, the fuel meter chip includes a power supply module, a system clock, a communication module, a processor, and a high-end protection driver module. The power supply module supplies power to other modules in the fuel meter chip. After the power supply module supplies power to other modules in the fuel meter chip, the fuel meter chip converts the analog quantity of the collected battery information into a digital quantity and communicates with the central processing unit (CPU) of the whole machine.

[0003] In actual applications, when the fuel meter chip has abnormalities such as communication failure and memory bit flipping, it will seriously affect the normal operation of the fuel meter chip and the entire machine. In related technologies, a load switch is used to directly cut off the power supply module and then reset the entire fuel meter chip. After the power supply module is powered off, the protection drive circuit in the fuel meter chip will also be turned off, causing the entire electronic device to lose power. The reliability of the battery metering system of the electronic device is low, affecting the user experience. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a battery metering system, an electronic device, and a control method, which can solve the problem of low reliability of the battery metering system of the electronic device.

[0005] In a first aspect, an embodiment of the present application provides a battery metering system, a fuel meter chip, the fuel meter chip comprising a protection drive circuit, a power supply module, a control circuit and a functional component; a first output end of the power supply module is connected to the protection drive circuit for supplying power to the protection drive circuit; a second output end of the power supply module is connected to one end of the control circuit, and the other end of the control circuit is connected to the functional component; a central processing unit, the central processing unit is connected to the fuel meter chip for sending a control signal to the fuel meter chip; the control circuit is used to control the functional component to lose power and reset according to the instruction of the control signal.

[0006] It can be seen that, except for the protection drive circuit, the rest of the functional components in the fuel gauge chip are powered off and reset by the control circuit according to the instructions of the central processor, and the protection drive circuit is directly powered by the power supply module. During the process of power failure and reset of the functional components in the fuel gauge chip, the protection drive circuit is always powered and will not be shut down, which will not cause the entire electronic equipment to be powered off, thereby improving the reliability of the battery metering system and the user experience.

[0007] In a second aspect, an embodiment of the present application provides an electronic device, comprising: a battery, a fuel meter chip and a central processing unit, the fuel meter chip comprising a protection drive circuit, a power supply module, a control circuit and functional components; the output end of the battery is connected to the input end of the power supply module, the first output end of the power supply module is connected to the protection drive circuit for supplying power to the protection drive circuit; the second output end of the power supply module is connected to one end of the control circuit, and the other end of the control circuit is connected to the functional component; the central processing unit is connected to the fuel meter chip for sending a control signal to the fuel meter chip; the control circuit is used to control the functional component to lose power and reset according to the instruction of the control signal.

[0008] In a third aspect, an embodiment of the present application provides a control method for a battery metering system, comprising: obtaining status data of a fuel meter chip; sending a control signal to the fuel meter chip when the status data is abnormal; controlling the functional components of the fuel meter chip except the protection drive circuit to lose power and reset according to the instructions of the control signal through the control circuit of the fuel meter chip; wherein the protection drive circuit is connected to the first output terminal of the power supply module of the fuel meter chip, and the power supply module is used to continuously supply power to the protection drive circuit.

[0009] It can be seen that when the status data of the fuel meter chip is abnormal, the remaining functional components in the fuel meter chip except the protection drive circuit are powered off and reset by the control circuit according to the instructions of the central processing unit, and the protection drive circuit is directly powered by the power supply module. During the process of power failure and resetting of the functional components in the fuel meter chip, the protection drive circuit is always powered and will not be shut down, which will not cause the entire electronic equipment to lose power, thereby improving the reliability of the battery metering system and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Figure 1 A schematic diagram of the structure of a battery metering system provided in an embodiment of the present application is shown;

[0011] Figure 2 A schematic diagram showing the internal structure of an electric meter chip provided in an embodiment of the present application is shown;

[0012] Figure 3 A schematic diagram of a level sequence of a control signal provided in an embodiment of the present application is shown;

[0013] Figure 4 A schematic diagram showing the structure of an electronic device provided in an embodiment of the present application is shown;

[0014] Figure 5 A schematic diagram showing a specific structure of an electronic device provided in an embodiment of the present application is shown;

[0015] Figure 6 A flow chart of a control method for a battery metering system provided in an embodiment of the present application is shown.

[0016] Reference numerals:

[0017] Electricity meter chip: 10; protection drive circuit: 100; power supply module: 101; control circuit: 102; functional component: 103; reset interface: 104;

[0018] CPU: 11; Input and output interface: 110;

[0019] Batteries:12. DETAILED DESCRIPTION

[0020] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0021] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0022] The following is combined with Figures 1 to 6 The battery metering system, electronic device and control method of the battery metering system provided in the embodiments of the present application are described in detail through specific embodiments and their application scenarios.

[0023] like Figure 1As shown, the electricity metering system includes: an electricity meter chip 10 and a central processing unit 11. The electricity meter chip 10 includes a protection drive circuit 100, a power supply module 101, a control circuit 102 and a functional component 103. The first output end of the power supply module 101 is connected to the protection drive circuit 100 for supplying power to the protection drive circuit 100. The second output end of the power supply module 101 is connected to one end of the control circuit 102. The other end of the control circuit 102 is connected to the functional component 103. The central processing unit 11 is connected to the electricity meter chip 10 for sending a control signal to the electricity meter chip 10. The control circuit 102 is used to control the functional component 103 to lose power and reset according to the instruction of the control signal.

[0024] like Figure 2 As shown, the internal structure of the fuel meter chip 10 is shown. The fuel meter chip 10 includes a protection drive circuit 100, a power supply module 101, a control circuit 102 and a functional component 103, wherein the functional component 103 includes but is not limited to a system clock, a processor, a memory, a communication module, a coulomb meter and a composite ADC.

[0025] Specifically, the power supply module 101 supplies power to the functional component 103 in the fuel meter chip 10 through the control circuit 102, and the protection drive circuit 100 is directly and continuously powered by the power supply module 101, that is, the path between the protection drive circuit 100 and the first output end of the power supply module 101 is continuously connected. When an abnormality occurs in the fuel meter chip 10, the central processing unit 11 sends a control signal to the fuel meter chip 10, and the control circuit 102 cuts off the connection path between the second output end of the fuel meter chip 10 and the control circuit 102, or the connection path between the control circuit 102 and the functional component 103 according to the instruction of the control signal. Then the central processing unit 11 sends a control signal to let the fuel meter chip 10 power on and reset again, and does not shut down the protection drive circuit 100. After the fuel meter chip 10 receives the control signal, the control circuit 102 re-runs the program according to the instruction of the control signal. In the process of powering off and resetting the fuel meter chip 10, the protection drive circuit 100 will not lose power and shut down, thereby avoiding the whole machine (central processing unit) from being directly shut down due to the resetting of the fuel meter chip 10.

[0026] Among them, the central processor 11 can monitor the status data of the fuel meter chip 10 to determine whether the fuel meter chip 10 is abnormal. Specifically, the central processor 11 is provided with an I2C interface, and the fuel meter chip 10 is provided with an I2C interface. The central processor 11 and the fuel meter chip 10 can communicate through the I2C bus. The status data of the fuel meter chip 10 includes I2C communication status data, such as an I2C communication response signal to monitor whether there is an abnormality in the communication between the central processor 11 and the fuel meter chip 10. The status data of the fuel meter chip 10 also includes: fuel meter parameters, which include but are not limited to the fuel meter chip 10. Register status data, working mode data of the fuel meter chip 10, battery voltage, current and battery temperature, and at least one of the parameters of each functional component 103 in the fuel meter chip 10, the register status data includes the current state of the register to determine whether there is a memory flip anomaly, the working mode data includes the current working mode of the fuel meter chip 10 to determine whether the fuel meter chip 10 has an abnormal working mode problem, the battery voltage, current and battery temperature are used to determine whether the battery is abnormal, and the parameters of each functional component 103 of the fuel meter can be used to determine whether the fuel meter chip 10 has a firmware locked and not executed anomaly.

[0027] In a possible implementation, the electric meter chip 10 is provided with a reset interface, the central processing unit is provided with an input / output interface, the reset interface is connected to the input / output interface, and the control signal is transmitted through the reset interface and the input / output interface.

[0028] Specifically, a reset interface is set on the fuel meter chip 10, a control circuit 102 is set inside the fuel meter chip 10, and an input and output interface (I / O pin) is set on the central processing unit 11. The central processing unit 11 sends a control signal to the fuel meter chip 10 through the input and output interface and the reset interface. The control circuit 102 in the fuel meter chip 10 controls each functional component 103 in the fuel meter chip 10 according to the instruction of the control signal.

[0029] In one possible implementation, the control signal includes a first control signal and a second control signal. When the status data of the fuel meter chip 10 is abnormal, the central processing unit 11 sends the first control signal to the fuel meter chip 10, and the control circuit 102 controls the functional component 103 in the fuel meter chip 10 to lose power according to the indication of the first control signal. The central processing unit 11 sends the second control signal to the fuel meter chip 10, and the control circuit 102 controls the functional component 103 that has lost power in the fuel meter chip 10 to power on and reset according to the indication of the second control signal.

[0030] Specifically, the first control signal is a signal indicating that the functional component 103 in the fuel meter chip 10 is powered off, and the second control signal is a signal indicating that the functional component 103 in the fuel meter chip 10 is powered on and reset. The central processor 11 sends the first control signal to the fuel meter chip 10, and the control circuit 102 cuts off the connection path between the second output end of the fuel meter chip 10 and the control circuit 102 according to the instruction of the first control signal, that is, the second output end of the power supply module 101 of the fuel meter chip 10 is controlled to be closed, or the connection path between the control circuit 102 and the functional component 103, or the input and output interface 110 of the central processor 11 is pulled down to a low level, so that the functional component 103 in the fuel meter chip 10 is powered off, and then the central processor 11 sends the second control signal to power on and reset the functional component 103 in the fuel meter chip 10 that has lost power. Therefore, during the process of the fuel meter chip 10 losing power and resetting, the protection drive circuit 100 will not lose power and shut down, avoiding the entire machine end (such as the central processor 11) from shutting down directly due to the resetting of the fuel meter chip 10, thereby improving the reliability of the fuel meter chip 10 and enhancing the user experience.

[0031] For the central processor 11, if a high-level signal is directly output to the reset interface 104 of the fuel meter chip 10 to reset the fuel meter chip 10, there may be the following two risks. First, if the battery meter chip has a DSG switch turned off, when the power supply voltage on the host side is lower than its minimum operating voltage, the input and output interface 110 on the host side cannot guarantee a certain output low level, which may cause the fuel meter chip 10 to be in a reset state all the time, resulting in overcharging failure protection, posing a safety hazard, and each time the DSG switch is turned off, the fuel meter chip 10 may be reset; second, when the central processor 11 on the host side is damaged or the program of the central processor 11 on the host side runs away, the level signal output to the battery meter chip may be high all the time, causing the fuel meter chip 10 to be in a reset state all the time, causing the battery to be overcharged and unable to be protected, and there is a risk of battery explosion, posing a safety hazard.

[0032] In a possible implementation, in order to address the above-mentioned problem, the control signal provided in the embodiment of the present application is a level sequence consisting of at least one high-level signal and at least one low-level signal.

[0033] Specifically, a high level signal or a low level signal can last for a preset time, so that a level sequence composed of at least one high level signal and a low level signal is a certain time level sequence. The control signal can be defined as Xms high level + Yms low level + Zms high level, such as Figure 3The level sequences of various control signals shown in the figure, where X, Y and Z can take any values, which are not limited in the embodiments of the present application, such as X taking a value of 100ms, Y taking a value of 200ms and Z taking a value of 100ms. In addition, the first control signal and the second control signal can use different level sequences to achieve different functions.

[0034] It is worth noting that the level sequence may also be other combinations, which are not limited in the embodiments of the present application.

[0035] In this way, through a certain time level sequence, the problem of false triggering caused by a single high-level signal is effectively avoided, the potential safety hazard is eliminated, and the reliability of the battery metering system is further improved.

[0036] In a possible implementation, the power supply module 101 is used to continuously supply power to the protection driving circuit 100 , and the protection driving circuit 100 is used to drive the NMOS switch tube connected to the central processing unit to disconnect when the central processing unit 11 is abnormal.

[0037] Specifically, the power supply module 101 continuously supplies power to the protection drive circuit 100. Therefore, when an abnormality occurs in the fuel gauge chip, the protection drive circuit 100 will not lose power. When the central processor 11 has an abnormality such as overcurrent or overvoltage, the protection drive circuit 100 can drive the NMOS switch connected to the central processor to disconnect, thereby disconnecting the power supply path of the central processor. Regardless of whether the fuel gauge chip is in an abnormal state or a normal state, since the power supply module 101 continuously supplies power to the protection drive circuit 100, the protection drive circuit 100 is still in a normal working state, and drives the NMOS switch to disconnect when the central processor 11 is abnormal. In this way, the reliability of the protection drive circuit is higher, and the safety performance of the entire battery metering system is improved.

[0038] Through the technical solution disclosed in the embodiment of the present application, the remaining functional components in the fuel meter chip except the protection drive circuit are powered off and reset by the control circuit according to the instructions of the central processing unit, and the protection drive circuit is directly powered by the power supply module. During the process of power failure and resetting of the functional components in the fuel meter chip, the protection drive circuit is always powered and will not be shut down, so that the entire electronic device will not be powered off, thereby improving the reliability of the battery metering system and improving the user experience.

[0039] like Figure 4 As shown, a schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown, including an electric meter chip 10, a central processor 11 and a battery 12, as described above Figure 2As shown, the fuel meter chip 10 includes a protection drive circuit 100, a power supply module 101, a control circuit 102 and a functional component 103. The output end of the battery is connected to the input end of the power supply module. The first output end of the power supply module 101 is connected to the protection drive circuit 100 for supplying power to the protection drive circuit 100. The second output end of the power supply module 101 is connected to one end of the control circuit 102. The other end of the control circuit 102 is connected to the functional component 103. The central processing unit 11 is connected to the fuel meter chip 10 for sending a control signal to the fuel meter chip 10. The control circuit 102 is used to control the functional component 103 to lose power and reset according to the instruction of the control signal.

[0040] Specifically, the fuel gauge chip is provided with a reset interface, and the central processing unit is provided with an input / output interface; the reset interface is connected to the input / output interface, and the control signal is transmitted through the reset interface and the input / output interface.

[0041] like Figure 5 As shown, a reset interface 104 (por pin) is set on the fuel meter chip 10, a control circuit 102 is set inside the fuel meter chip 10, and an input and output interface 110 (I / O pin) is set on the host side (central processing unit 11). The central processing unit 11 sends a control signal to the fuel meter chip 10 through the input and output interface 110 and the reset interface 104. The control circuit 102 in the fuel meter chip 10 controls each functional component 103 in the fuel meter chip 10 according to the instruction of the control signal.

[0042] Among them, the power supply pin (VDD pin) and the voltage collection pin (VBAT pin) of the fuel meter chip 10 are connected to the positive pole of the battery, the charging drive switch (CHG switch) and the discharge drive switch (DSG switch) of the protection drive circuit 100 of the fuel meter chip 10 are connected between the battery and the central processor 11, the common connection pin (VSS pin) of the fuel meter chip 10 is connected to the negative pole of the battery, the current sampling pin (SRN pin) and the SRP pin of the fuel meter chip 10 are connected between the negative pole of the battery and the central processor 11, the I2C interface of the fuel meter chip 10 is connected to the I2C interface of the central processor 11, and the reset interface 104 of the fuel meter chip 10 is connected to the input and output interface 110 of the central processor 11. Among them, the VDD pin represents the internal working voltage of the fuel meter chip 10, the VBAT pin indicates that when the VDD pin is powered off, the contents of the registers inside the backup fuel meter chip 10 can be saved and the real-time clock (RTC) function can be maintained, VSS represents the common connection, which refers to the voltage of the common ground terminal of the circuit, the CHG switch is used to turn on and off the charging switch tube in the protection drive circuit 100 in the fuel meter chip 10, the DSG switch represents the turning on and off of the discharging switch tube in the protection drive circuit 100 in the fuel meter chip 10, the SRN pin is the negative terminal of the input control signal, SRP is the positive terminal of the input control signal, and the TEMP interface is used to monitor the temperature of the battery. When the temperature of the battery is too high or too low, charging will be stopped.

[0043] In one possible implementation, the control signal includes a first control signal and a second control signal. When the status data of the fuel meter chip 10 is abnormal, the central processing unit 11 sends the first control signal to the fuel meter chip 10, and the control circuit 102 controls the functional component 103 in the fuel meter chip 10 to lose power according to the indication of the first control signal. The central processing unit 11 sends the second control signal to the fuel meter chip 10, and the control circuit 102 controls the functional component 103 that has lost power in the fuel meter chip 10 to power on and reset according to the indication of the second control signal.

[0044] Specifically, the first control signal is a signal indicating that the functional component 103 in the fuel meter chip 10 is powered off, and the second control signal is a signal indicating that the functional component 103 in the fuel meter chip 10 is powered on and reset. The central processor 11 sends the first control signal to the fuel meter chip 10, and the control circuit 102 cuts off the connection path between the second output end of the fuel meter chip 10 and the control circuit 102 according to the instruction of the first control signal, that is, the second output end of the power supply module 101 of the fuel meter chip 10 is controlled to be closed, or the connection path between the control circuit 102 and the functional component 103, or the input and output interface 110 of the central processor 11 is pulled down to a low level, so that the functional component 103 in the fuel meter chip 10 is powered off, and then the central processor 11 sends the second control signal to power on and reset the functional component 103 in the fuel meter chip 10 that has lost power. Therefore, during the process of the fuel meter chip 10 losing power and resetting, the protection drive circuit 100 will not lose power and shut down, avoiding the entire machine end (such as the central processor 11) from shutting down directly due to the resetting of the fuel meter chip 10, thereby improving the reliability of the fuel meter chip 10 and enhancing the user experience.

[0045] For the central processor 11, if a high-level signal is directly output to the reset interface 104 of the fuel meter chip 10 to reset the fuel meter chip 10, there may be the following two risks. First, if the battery meter chip has a DSG switch turned off, when the power supply voltage on the host side is lower than its minimum operating voltage, the input and output interface 110 on the host side cannot guarantee a certain output low level, which may cause the fuel meter chip 10 to be in a reset state all the time, resulting in overcharging failure protection, posing a safety hazard, and each time the DSG switch is turned off, the fuel meter chip 10 may be reset; second, when the central processor 11 on the host side is damaged or the program of the central processor 11 on the host side runs away, the level signal output to the battery meter chip may be high all the time, causing the fuel meter chip 10 to be in a reset state all the time, causing the battery to be overcharged and unable to be protected, and there is a risk of battery explosion, posing a safety hazard.

[0046] In a possible implementation, in order to address the above-mentioned problem, the control signal provided in the embodiment of the present application is a level sequence consisting of at least one high-level signal and at least one low-level signal.

[0047] Specifically, a high level signal or a low level signal can last for a preset time, so that a level sequence composed of at least one high level signal and a low level signal is a certain time level sequence. The control signal can be defined as Xms high level + Yms low level + Zms high level, such as Figure 3The level sequences of various control signals shown in the figure, where X, Y and Z can take any values, which are not limited in the embodiments of the present application, such as X taking a value of 100ms, Y taking a value of 200ms and Z taking a value of 100ms. In addition, the first control signal and the second control signal can use different level sequences to achieve different functions.

[0048] It is worth noting that the level sequence may also be other combinations, which are not limited in the embodiments of the present application.

[0049] In this way, through a certain time level sequence, the problem of false triggering caused by a single high-level signal is effectively avoided, the potential safety hazard is eliminated, and the reliability of the battery metering system is further improved.

[0050] In a possible implementation, the central processing unit is connected to the battery via an NMOS switch tube, the power supply module is used to continuously supply power to the protection drive circuit, and the protection drive circuit is used to drive the NMOS switch tube connected to the central processing unit to disconnect when the central processing unit is abnormal.

[0051] Specifically, the power supply module 101 continuously supplies power to the protection drive circuit 100. Therefore, when the fuel gauge chip is abnormal, the protection drive circuit 100 will not lose power. When the CPU 11 has abnormal conditions such as overcurrent and overvoltage, the protection drive circuit 100 can drive the NMOS switch connected to the CPU to disconnect, thereby disconnecting the power supply path between the battery and the CPU. Regardless of whether the fuel gauge chip is in an abnormal state or a normal state, since the power supply module 101 continuously supplies power to the protection drive circuit 100, the protection drive circuit 100 is still in a normal working state, and drives the NMOS switch to disconnect when the CPU 11 is abnormal, thereby cutting off the power supply path between the battery and the CPU 11. In this way, the reliability of the protection drive circuit is higher, and the safety performance of the entire battery metering system is improved.

[0052] like Figure 6 As shown, an embodiment of the present application provides a control method of a battery metering system, which is applied to an electronic device, that is, it can be executed by hardware or software of the electronic device, and the control method includes the following steps:

[0053] Step S601: Acquire status data of the fuel gauge chip.

[0054] The protection driving circuit is connected to the first output terminal of the power supply module of the electricity meter chip, and the power supply module is used to continuously supply power to the protection driving circuit.

[0055] Specifically, the fuel meter chip communicates with the central processor via an I2C bus, and the status data of the fuel meter chip includes at least one of the I2C communication status data between the fuel meter chip and the central processor, the register status data of the fuel meter chip, and the working mode data of the fuel meter chip.

[0056] Furthermore, the status data of the fuel meter chip includes I2C communication status data, such as an I2C communication response signal to monitor whether there is a communication failure anomaly between the central processor and the fuel meter chip; the status data of the fuel meter chip also includes: fuel meter parameters, the fuel meter parameters include but are not limited to register status data of the fuel meter chip, working mode data of the fuel meter chip, battery voltage, current and battery temperature, and at least one of the parameters of each functional component in the fuel meter chip, the register status data includes the current state of the register to determine whether there is a memory flip anomaly, the working mode data includes the current working mode of the fuel meter chip to determine whether the fuel meter chip has an abnormal working mode problem, the battery voltage, current and battery temperature are used to determine whether the battery is abnormal, and the parameters of each functional component of the fuel meter can be used to determine whether the fuel meter chip has a firmware lock and non-execution anomaly.

[0057] Step S603: When the status data is abnormal, a control signal is sent to the electricity meter chip.

[0058] Specifically, when an abnormality occurs in the fuel meter chip, the central processing unit sends a control signal to the fuel meter chip, and the control signal includes a first control signal and a second control signal. The first control signal is a signal indicating that a functional component in the fuel meter chip has lost power, and the second control signal is a signal indicating that the functional component in the fuel meter chip that has lost power is powered on and reset.

[0059] Step S605: the control circuit of the fuel meter chip controls the functional components of the fuel meter chip except the protection drive circuit to be powered off and reset according to the instruction of the control signal.

[0060] Wherein, the protection drive circuit is connected to the first output end of the power supply module of the fuel meter chip, and the power supply module is used to continuously supply power to the protection drive circuit. Specifically, as mentioned above, the fuel meter chip includes but is not limited to the protection drive circuit, the power supply module, the control circuit and the functional components, wherein the functional components include but are not limited to the system clock, the processor, the memory, the communication module, the coulomb meter and the composite ADC; the first output end of the power supply module is connected to the protection drive circuit for supplying power to the protection drive circuit, the second output end of the power supply module is connected to one end of the control circuit, the other end of the control circuit is connected to the functional component, the central processing unit is connected to the fuel meter chip for sending a control signal to the fuel meter chip, and the control circuit is used to control the functional component to lose power and reset according to the instruction of the control signal.

[0061] Furthermore, the control circuit cuts off the connection path between the second output terminal of the fuel meter chip and the control circuit, or the connection path between the control circuit and the functional component, as indicated by the control signal. The central processing unit then sends a control signal to power on and reset the fuel meter chip without turning off the protection drive circuit. After the fuel meter chip receives the control signal, the control circuit reruns the program as indicated by the control signal. During the process of powering off and resetting the fuel meter chip, the protection drive circuit will not lose power and be shut down, thereby preventing the entire machine (central processing unit) from shutting down directly due to the resetting of the fuel meter chip.

[0062] Through the technical solution disclosed in the embodiment of the present application, when the status data of the fuel meter chip is abnormal, the remaining functional components in the fuel meter chip except the protection drive circuit are powered off and reset by the control circuit according to the instructions of the central processing unit, and the protection drive circuit is directly powered by the power supply module. During the process of power failure and resetting of the functional components in the fuel meter chip, the protection drive circuit is always powered and will not be shut down, so that the entire electronic device will not be powered off, thereby improving the reliability of the battery metering system and improving the user experience.

[0063] In one possible implementation, step S405 includes: when the control signal is a valid control signal, controlling the functional components in the fuel meter chip except the protection drive circuit to lose power and reset through the control circuit; the valid control signal includes a level sequence consisting of at least one high-level signal and at least one low-level signal.

[0064] Specifically, a high level signal or a low level signal in the effective control signal can last for a preset time, so that the level sequence composed of at least one high level signal and a low level signal is a certain time level sequence. The control signal can be defined as Xms high level + Yms low level + Zms high level, such as Figure 3 The level sequences of various control signals shown in the figure, where X, Y and Z can take any values, which are not limited in the embodiments of the present application, such as X taking a value of 100ms, Y taking a value of 200ms and Z taking a value of 100ms. In addition, the first control signal and the second control signal can use different level sequences to achieve different functions.

[0065] It is worth noting that the level sequence may also be other combinations, which are not limited in the embodiments of the present application.

[0066] In this way, through a certain time level sequence, the problem of false triggering caused by a single high-level signal is effectively avoided, the potential safety hazard is eliminated, and the reliability of the battery metering system is further improved.

[0067] In one possible implementation, step S405 includes: sending a first control signal to the fuel meter chip, and controlling the functional components in the fuel meter chip to lose power according to the instructions of the first control signal through the control circuit; sending a second control signal to the fuel meter chip, and controlling the functional components that have lost power in the fuel meter chip to power on and reset according to the instructions of the second control signal through the control circuit.

[0068] Specifically, the control signal includes a first control signal and a second control signal. The central processing unit sends the first control signal to the fuel meter chip, and the control circuit cuts off the connection path between the second output end of the fuel meter chip and the control circuit according to the instruction of the first control signal, that is, the control circuit controls the second output end of the power supply module in the fuel meter chip to be closed according to the instruction of the first control signal, or the connection path between the control circuit and the functional component, or pulls down the input and output interface of the central processing unit to a low level, so that the functional component in the fuel meter chip loses power, and then the central processing unit sends a second control signal to power on and reset the functional component that lost power in the fuel meter chip. Therefore, in the process of powering off and resetting the fuel meter chip, the protection drive circuit will not lose power and shut down, avoiding the whole machine end (such as the central processing unit) from being directly shut down due to the resetting of the fuel meter chip, improving the reliability of the fuel meter chip and enhancing the user experience.

[0069] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0070] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of each embodiment of the present application.

[0071] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A battery metering system, It is characterized in that include: A fuel gauge chip, the fuel gauge chip comprising a protection drive circuit, a power supply module, a control circuit and functional components; The first output end of the power supply module is connected to the protection drive circuit, and is used to continuously supply power to the protection drive circuit; The second output end of the power supply module is connected to one end of the control circuit, and the other end of the control circuit is connected to the functional component; A central processing unit, the central processing unit is connected to the fuel meter chip and is used to send a control signal to the fuel meter chip; The control circuit is used to control the functional component to lose power and reset according to the instruction of the control signal; The central processing unit is connected to the battery via an NMOS switch tube; the protection drive circuit is used to drive the NMOS switch tube connected to the central processing unit to disconnect when the central processing unit is abnormal.

2. The battery metering system according to claim 1, It is characterized in that The fuel gauge chip is provided with a reset interface, and the central processing unit is provided with an input and output interface; The reset interface is connected to the input / output interface, and the control signal is transmitted through the reset interface and the input / output interface.

3. The battery metering system according to claim 1, It is characterized in that The control signal includes a first control signal and a second control signal. When the state data of the fuel gauge chip is abnormal, the central processor sends the first control signal to the fuel gauge chip, and the control circuit controls the functional components in the fuel gauge chip to lose power according to the instruction of the first control signal. The central processing unit sends a second control signal to the fuel gauge chip, and the control circuit controls the power-off functional components in the fuel gauge chip to power on and reset according to the instruction of the second control signal.

4. The battery metering system according to claim 1, It is characterized in that The control signal is a level sequence consisting of at least one high level signal and at least one low level signal.

5. An electronic device, It is characterized in that include: Batteries, fuel gauge chips and CPUs, The fuel gauge chip includes a protection drive circuit, a power supply module, a control circuit and functional components; The output end of the battery is connected to the input end of the power supply module and the central processing unit respectively, and the first output end of the power supply module is connected to the protection drive circuit for continuously supplying power to the protection drive circuit; The second output end of the power supply module is connected to one end of the control circuit, and the other end of the control circuit is connected to the functional component; The central processing unit is connected to the fuel gauge chip and is used to send a control signal to the fuel gauge chip; The control circuit is used to control the functional component to lose power and reset according to the instruction of the control signal; The central processing unit is connected to the battery via an NMOS switch tube, and the protection drive circuit is used to drive the NMOS switch tube connected to the central processing unit to disconnect when the central processing unit is abnormal.

6. The electronic device according to claim 5, It is characterized in that The fuel gauge chip is provided with a reset interface, and the central processing unit is provided with an input and output interface; The reset interface is connected to the input / output interface, and the control signal is transmitted through the reset interface and the input / output interface.

7. The electronic device according to claim 5, It is characterized in that The control signal includes a first control signal and a second control signal. When the state data of the fuel gauge chip is abnormal, the central processor sends the first control signal to the fuel gauge chip, and the control circuit controls the functional components in the fuel gauge chip to lose power according to the instruction of the first control signal. The central processing unit sends a second control signal to the fuel gauge chip, and the control circuit controls the power-off functional components in the fuel gauge chip to power on and reset according to the instruction of the second control signal.

8. The electronic device according to claim 5, It is characterized in that The control signal is a level sequence consisting of at least one high level signal and at least one low level signal.

9. A control method for a battery metering system according to any one of claims 1 to 4, It is characterized in that include: Get the status data of the fuel gauge chip; When the state data is abnormal, sending a control signal to the electricity meter chip; Controlling the functional components in the fuel meter chip to lose power and reset according to the control signal through the control circuit of the fuel meter chip; The protection driving circuit is connected to a first output terminal of a power supply module of the fuel meter chip, and the power supply module is used to continuously supply power to the protection driving circuit.

10. The control method of the battery metering system according to claim 9, It is characterized in that The controlling the functional components of the fuel gauge chip to lose power and reset through the control circuit of the fuel gauge chip comprises: When the control signal is a valid control signal, the functional components in the fuel gauge chip are controlled to lose power and reset through the control circuit; The effective control signal includes a level sequence consisting of at least one high level signal and at least one low level signal.

11. The control method of the battery metering system according to claim 9, It is characterized in that Controlling the functional components in the fuel meter chip to lose power and reset through the control circuit of the fuel meter chip includes: Sending a first control signal to the fuel gauge chip, and controlling the functional components in the fuel gauge chip to lose power through the control circuit according to the instruction of the first control signal; A second control signal is sent to the fuel gauge chip, and the control circuit controls the power-off functional components in the fuel gauge chip to power on and reset according to the instruction of the second control signal.

Citation Information

Patent Citations

  • Electronic equipment and voltameter resetting method

    CN114844179A

  • Electric meter system

    CN210894497U

  • Voltameter assembly and electronic equipment

    CN210894629U