CN109215697B - Control method, device and equipment for BBU battery electric energy metering - Google Patents

Control method, device and equipment for BBU battery electric energy metering Download PDF

Info

Publication number
CN109215697B
CN109215697B CN201811354546.1A CN201811354546A CN109215697B CN 109215697 B CN109215697 B CN 109215697B CN 201811354546 A CN201811354546 A CN 201811354546A CN 109215697 B CN109215697 B CN 109215697B
Authority
CN
China
Prior art keywords
electric energy
energy metering
mode
metering chip
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811354546.1A
Other languages
Chinese (zh)
Other versions
CN109215697A (en
Inventor
明勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN201811354546.1A priority Critical patent/CN109215697B/en
Publication of CN109215697A publication Critical patent/CN109215697A/en
Application granted granted Critical
Publication of CN109215697B publication Critical patent/CN109215697B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C5/00Details of stores covered by group G11C11/00
    • G11C5/14Power supply arrangements, e.g. power down, chip selection or deselection, layout of wirings or power grids, or multiple supply levels
    • G11C5/141Battery and back-up supplies
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4418Suspend and resume; Hibernate and awake

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Power Engineering (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The invention discloses a control method for BBU battery electric energy metering, which can determine a target operation mode of an electric energy chip through the acquired target information of the electric energy metering chip in a BBU battery, and can trigger a target register corresponding to the target operation mode, so that the electric energy metering chip can be switched to the target operation mode from the current operation mode, wherein the operation mode of the electric energy metering chip comprises a working mode, a sleep mode or a shutdown mode. Therefore, by adopting the scheme, the electric energy metering chip can be controlled to be switched among three different modes, namely the electric energy metering chip is ensured to run in a working mode or a sleep mode or a shutdown mode, the electric energy metering chip is prevented from being continuously in the working mode, the electric energy consumption is reduced, and unnecessary resource waste is avoided. In addition, the invention also discloses a control device and equipment for metering the electric energy of the BBU battery, and the effects are as above.

Description

Control method, device and equipment for BBU battery electric energy metering
Technical Field
The invention relates to the field of batteries, in particular to a control method, a device and equipment for metering electric energy of BBU batteries.
Background
A Battery Backup Unit (BBU) is a spare Battery dedicated to the storage device, and when a main power supply of the storage device fails or is powered off, the spare Battery of the BBU continuously supplies power to the storage device. The BBU battery generally comprises an electric core, an electric energy metering chip and a controller, wherein the electric energy metering chip is used for metering the electric quantity of the BBU battery, and the controller is used for controlling the electric core of the BBU battery to supply current/voltage for the storage equipment.
At present, in order to ensure that the electric energy metering chip can continuously monitor the electric quantity of the electric core of the BBU battery, the electric energy metering chip continuously provides the electric quantity for the electric energy metering chip by the electric core of the BBU backup battery, so that the electric energy metering chip is continuously in a working mode to ensure that the electric energy metering chip continuously meters the electric quantity of the BBU backup battery and updates electric energy metering data in real time. In fact, however, the current of the electric core of the BBU backup battery does not change rapidly within a certain time, and therefore, the electric energy metering chip continuously performs electric quantity metering and real-time updating on the electric core of the BBU backup battery, which consumes a large amount of electric energy, and causes unnecessary resource waste.
Therefore, how to reduce the power consumption when the power metering chip monitors and meters the electric quantity of the BBU standby battery in real time so as to avoid unnecessary resource waste is a problem to be solved by the technical personnel in the field.
Disclosure of Invention
The invention aims to provide a control method, a device and equipment for BBU battery electric energy metering, which reduce electric energy consumption and avoid unnecessary resource waste when an electric energy metering chip monitors and meters the electric quantity of a BBU standby battery.
In order to achieve the above purpose, the embodiment of the present invention provides the following technical solutions:
first, an embodiment of the present invention provides a control method for BBU battery electric energy metering, including:
acquiring target information of an electric energy metering chip in a BBU battery;
determining a target operation mode of the electric energy metering chip according to the target information;
triggering a target register corresponding to the target operation mode to control the electric energy metering chip to be switched from the current operation mode to the target operation mode;
the running mode of the electric energy metering chip comprises a working mode, a sleep mode or a shutdown mode.
Optionally, the target information includes electric quantity information of the electric energy metering chip and the current operation mode of the electric energy metering chip.
Optionally, the determining the target operation mode of the electric energy metering chip according to the target information includes:
judging whether the current operation mode is the working mode or not;
if the working mode is the working mode, judging whether the electric quantity information is the target electric quantity;
if the target electric quantity exists, the current working mode is switched to the sleep mode or the power-off mode;
if the target electric quantity is not the target electric quantity, the working mode is kept;
and if the current operation mode is not the working mode, switching the current working mode into the working mode.
Optionally, if the target operation mode is the working mode, the electric energy metering chip updates the electric energy metering data of the BBU battery at a first preset time;
if the target operation mode is the sleep mode, the electric energy metering chip updates the electric energy metering data of the BBU battery at a second preset time;
the second preset time is longer than the first preset time;
and if the target operation mode is the shutdown mode, stopping the operation of the electric energy metering chip.
Optionally, the method further includes: and controlling the voltage value provided by the charging control module in the BBU battery for the electric energy metering chip.
Optionally, the controlling the voltage value provided by the charging control module in the BBU battery to the electric energy metering chip includes:
controlling the charging control module to provide a voltage value for the electric energy metering chip to be a voltage value corresponding to the current operation mode of the electric energy metering chip;
if the electric energy metering chip is in a working mode, controlling the charging control module to provide a first voltage value for the electric energy metering chip;
if the electric energy metering chip is in a sleep mode, controlling the charging control module to provide a second voltage value for the electric energy metering chip;
if the electric energy metering chip is in a shutdown mode, controlling the charging control module to provide a third voltage value for the electric energy metering chip;
the first voltage value is greater than the second voltage value, and the second voltage value is greater than the third voltage value.
Optionally, the acquiring target information of the electric energy metering chip in the BBU battery specifically includes:
and acquiring target information of the electric energy metering chip in the BBU battery by taking preset time as a period.
Second, an embodiment of the present invention provides an electric energy metering control apparatus for a BBU battery, including:
the acquisition module is used for acquiring target information of an electric energy metering chip in the BBU battery;
the determining module is used for determining a target operation mode of the electric energy metering chip according to the target information;
the triggering module is used for triggering a target register corresponding to the target operation mode so as to control the electric energy metering chip to be switched from the current operation mode to the target operation mode;
the running mode of the electric energy metering chip comprises a working mode, a sleep mode or a shutdown mode.
Optionally, the determining module includes:
the first judging unit is used for judging whether the current operation mode is the working mode or not; if the current operation mode is not the working mode, entering a first switching unit;
the second judging unit is used for judging whether the electric quantity information is a target electric quantity, if so, entering a second switching unit, and if not, entering a holding unit;
the second switching unit is configured to switch the current working mode to the sleep mode or the shutdown mode;
the holding unit is used for holding the working mode.
The first switching unit is configured to switch the current working mode to the working mode.
Optionally, the method further includes:
and the control module is used for controlling the voltage value provided by the charging control module in the BBU battery for the electric energy metering chip.
Optionally, the control module includes:
the control unit is used for controlling the voltage value provided by the charging control module for the electric energy metering chip to be a voltage value corresponding to the current operation mode of the electric energy metering chip; if the electric energy metering chip is in a working mode, the first control subunit is entered, if the electric energy metering chip is in a sleep mode, the second control subunit is entered, and if the electric energy metering chip is in a shutdown mode, the third control subunit is entered;
the first control subunit is used for controlling the charging control module to provide a first voltage value for the electric energy metering chip;
the second control subunit is used for controlling the charging control module to provide a second voltage value for the electric energy metering chip;
the third control subunit is configured to control the charging control module to provide a third voltage value for the electric energy metering chip;
the first voltage value is greater than the second voltage value, and the second voltage value is greater than the third voltage value.
Optionally, the obtaining module includes:
and the acquisition unit is used for acquiring the target information of the electric energy metering chip in the BBU battery by taking preset time as a period.
Third, an embodiment of the present invention provides an electric energy metering control device for a BBU battery, including:
a memory for storing a computer program;
a processor for executing the computer program stored in said memory to implement the steps of any of the above-mentioned control methods for BBU battery power metering.
Therefore, the control method for measuring the electric energy of the BBU battery disclosed in the embodiment of the present invention can determine the target operation mode of the electric energy chip through the obtained target information of the electric energy measurement chip in the BBU battery, and can trigger the target register corresponding to the target operation mode, so that the electric energy measurement chip can be switched from the current operation mode to the target operation mode, wherein the operation mode of the electric energy measurement chip includes a working mode, a sleep mode or a shutdown mode. Therefore, by adopting the scheme, the electric energy metering chip is controlled to be switched among three different modes according to the target information of the electric energy metering chip, namely the electric energy metering chip is ensured to operate in a working mode or a sleep mode or a shutdown mode, the electric energy metering chip is prevented from being continuously in the working mode, the electric energy consumption is reduced, and unnecessary resource waste is further avoided. In addition, the embodiment of the invention also discloses a control device and equipment for metering the electric energy of the BBU battery, and the effects are as above.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart of a control method for BBU battery power metering according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a control device for BBU battery power metering according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a control device for BBU battery power metering according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a control method, a device and equipment for BBU battery electric energy metering, which reduce the electric energy consumption and avoid unnecessary resource waste when an electric energy metering chip monitors and meters the electric quantity of a BBU standby battery.
Referring to fig. 1, fig. 1 is a schematic flow chart of a control method for BBU battery electric energy metering, which is disclosed in the embodiment of the present invention, and the method includes:
s101, acquiring target information of an electric energy metering chip in the BBU battery.
Specifically, in this embodiment, the target information of the electric energy metering chip includes a current operating mode of the electric energy metering chip, current electric quantity information of the electric energy metering chip, a discharge current of the BBU battery cell metered by the electric energy metering chip, and the like.
As an optional embodiment, the target information includes electric quantity information of the electric energy metering chip and a current operating mode of the electric energy metering chip. After the target information of the electric energy metering chip is determined, a target operation mode (namely an operation mode to be switched) of the electric energy metering chip can be determined according to the target information, after the target operation mode is determined, a control instruction can be sent to the electric energy metering chip so as to trigger a target register (the mode in the target register corresponds to the target operation mode) corresponding to the target operation mode in the electric energy metering chip by using the control instruction, the register of the electric energy metering chip can be preset through software programming in the electric energy metering chip, each operation mode of the electric energy metering chip is configured in each register through a program, and the operation mode of the electric energy metering chip comprises a working mode, a sleep mode and a shutdown mode. Correspondingly, the sent control instruction also comprises a target operation mode corresponding to the electric energy metering chip, after the electric energy metering chip receives the control instruction, the register in the electric energy metering chip is triggered by the control instruction, and then the electric energy metering chip operates in the operation mode registered in the target register after being triggered by the control instruction. In addition, the first control instruction may be sent to the electric energy metering chip by the external controller through an I2C bus.
As an optional embodiment of the present invention, the step S101 includes, for an acquisition cycle of acquiring target information of an electric energy measurement chip in the BBU battery, acquiring the target information with a certain time period as a time cycle:
and acquiring target information of the electric energy metering chip in the BBU battery by taking the preset time as a period.
Specifically, in this embodiment, the length of the predetermined time may be determined according to an actual situation, and in this preferred embodiment, acquiring the target information with the predetermined time as a cycle means switching the operation modes of the electric energy metering chip with the predetermined cycle, and correspondingly, the duration of each operation mode of the electric energy metering chip is also the same predetermined time, and of course, according to an actual situation, the time intervals between the electric energy metering chips in the BBU battery may also be acquired differently (that is, the duration of each operation mode of the electric energy metering chip is different predetermined times).
Assuming that the mode included in the first control instruction sent in the first time period is the working mode, the mode included in the first control instruction sent in the second time period is the sleep mode, and the mode included in the first control instruction sent in the third time period is the shutdown mode. Of course, the pattern contained in the first control instruction transmitted for three time periods is not limited to the above-mentioned order. In addition, the first control commands of the first time period and the second time period may have the same mode, and the first control commands of the second time period and the third time period may have different modes, for example, the mode included in the first control command of the first time period and the second time period is the sleep mode, and the mode included in the first control command of the third time period is the power-off mode.
And S102, determining a target operation mode of the electric energy metering chip according to the target information.
Specifically, in this embodiment, the target information includes electric quantity information and a current operating mode of the electric energy metering chip, and the following two conditions may be provided for determining the target operating mode of the electric energy metering chip according to the target information: the first method is to determine a target operation mode of the electric energy metering chip according to the current operation mode of the electric energy metering chip, wherein the target operation mode is different from the current operation mode of the electric energy metering chip. And secondly, determining a target operation mode of the electric energy metering chip according to the current operation mode of the electric energy metering chip and the electric quantity of the electric energy metering chip. The electric quantity of electric energy measurement chip measurement is the electric quantity of electric core, and when the electric quantity of electric core was more, the electric energy measurement chip can not continuously measure the electric current of electric core, but when the electric quantity of electric core was less, need continuously measure the electric quantity of electric core, and the condition that relevant personnel can not know when avoiding electric core electric quantity to exhaust takes place.
Therefore, as an alternative embodiment of the present invention, step S102 includes:
judging whether the current operation mode is a working mode or not;
if the power supply is in the working mode, judging whether the power information is the target power;
if the target electric quantity is the target electric quantity, switching the current working mode into a sleep mode or a power-off mode;
if the target electric quantity is not the target electric quantity, the working mode is kept;
and if the current operation mode is not the working mode, switching the current working mode into the working mode.
Specifically, in this embodiment, the target electric quantity is identification information that the battery core has sufficient electric quantity, and the target electric quantity is specifically how much suitable, which may be determined according to the model of the battery core. When the electric quantity of the electric core metered by the electric energy metering chip is sufficient, the electric energy metering chip does not need to meter the electric quantity of the electric core in real time, and at the moment, the electric energy metering chip is set to be in a sleep mode or a shutdown mode. When the electric core has insufficient electric quantity, the electric quantity of the electric core needs to be continuously measured by the electric quantity measuring chip (namely, the electric quantity measuring chip is in a working mode), and if the current mode of the electric energy measuring chip is a sleep mode or a shutdown mode, the sleep mode or the shutdown mode needs to be switched to the working mode, so that the electric quantity of the electric core of the electric energy measuring chip is measured.
In addition, it should be noted that when the electric quantity of the battery cell measured by the electric energy measuring chip is sufficient, the electric energy measuring chip can be alternately switched among the three modes, that is, the operating modes of the electric energy measuring chip after three times of switching are different. At present, when the factor that the electric quantity of the electric core metered by the electric energy metering chip is sufficient is not considered, the operation modes of the electric energy metering chip after the electric energy metering chip is switched for three times can be different.
S103, triggering a target register corresponding to the target operation mode to control the electric energy metering chip to be switched from the current operation mode to the target operation mode; the running mode of the electric energy metering chip comprises a working mode, a sleep mode or a shutdown mode.
Registers of the electric energy metering chip can be set in the electric energy metering chip in advance through software programming, each register is configured with each operation mode of the electric energy metering chip through programs, and the operation modes of the electric energy metering chip comprise a working mode, a sleep mode and a shutdown mode.
Specifically, in this embodiment, after the register of the electric energy metering chip includes the control instruction of the target operation mode, the electric energy metering chip operates in the operation mode corresponding to the target register. The following describes each operation mode of the electric energy metering chip in the embodiment of the present invention in detail.
As an optional embodiment of the present invention, if the target operation mode is the working mode, the electric energy metering chip updates the electric energy metering data of the BBU battery at a first preset time;
if the target operation mode is the sleep mode, the electric energy metering chip updates the electric energy metering data of the BBU battery at a second preset time;
and the second preset time is greater than the first preset time.
And if the target operation mode is the shutdown mode, stopping the operation of the electric energy metering chip.
And the electric energy metering chip updates the electric energy metering data of the BBU battery at a first preset time.
Specifically, in the preferred embodiment, the electric energy metering chip updates the electric energy metering data of the BBU battery at the first preset time as the electric energy metering chip reads the electric quantity of the electric core of the BBU battery at the first preset time as a cycle, wherein for the first preset time, the preferred embodiment of the present invention is 1 second, and for the electric energy metering chip in the operating mode, the power consumption when the electric energy metering chip updates the electric energy metering data of the BBU battery at the first preset time is 500 uA.
And if the operation mode is the sleep mode, the electric energy metering chip updates the electric energy metering data of the BBU battery at a second preset time.
And the second preset time is greater than the first preset time.
Specifically, in this preferred embodiment, the electric energy metering chip updates the electric energy metering data of the BBU battery at the second preset time as the electric energy metering chip reads the electric quantity of the electric core of the BBU battery at the second preset time as a cycle, where the second preset time is preferably 5 seconds in the embodiment of the present invention, and for the electric energy metering chip in the sleep mode, the power consumption when the electric energy metering chip updates the electric energy metering data of the BBU battery at the second preset time is 110 uA. After the time interval for updating data of the electric energy metering chip in the sleep mode is prolonged, the electric quantity of the electric core of the BBU battery is not required to be frequently read, and the power consumption of the corresponding electric energy metering chip is correspondingly reduced. The specific size of the first preset time and the second preset time may be determined according to actual situations, and the embodiment of the present invention is not limited herein.
And if the operation mode is the shutdown mode, stopping the operation of the electric energy metering chip.
Specifically, in this embodiment, after the register of the shutdown mode of the electric energy metering chip is triggered, the electric energy metering chip is in the shutdown mode, and at this time, the electric energy metering chip does not consume the electric quantity of the electric core of the BBU battery any more, that is, the electric core is disconnected from the BBU battery.
It should be noted that, for the working mode and the sleep mode of the electric energy metering chip, the electric energy consumed by the electric energy metering chip during operation may be the same, except that the period of updating the electric energy metering data by the electric energy metering chip in the working mode is shorter than the period of updating the electric energy metering data by the electric energy metering chip in the sleep mode, so that the total energy consumption of the electric energy metering chip in the working mode is higher than that of the electric energy metering chip in the sleep mode. Because the electric energy metering chip in the shutdown mode does not consume energy, the total energy consumption of the electric energy metering chip in the shutdown mode is lower than that of the electric energy metering chip in the working mode and the sleep mode. Compared with the prior art that the electric energy metering chip is continuously in the working mode in the same time period, the method greatly reduces the energy consumption. In addition, in the embodiment of the present invention, in the same time period, compared with the case that the electric energy metering chip in the prior art is continuously in the working mode, the electric energy metering chip in the embodiment of the present invention operates in three operation modes within a certain time period, and the sending period of the first control instruction corresponding to the three operation modes is subject to the actual requirement.
Therefore, the control method for measuring the electric energy of the BBU battery disclosed in the embodiment of the present invention can determine the target operation mode of the electric energy chip through the obtained target information of the electric energy measurement chip in the BBU battery, and can trigger the target register corresponding to the target operation mode, so that the electric energy measurement chip can be switched from the current operation mode to the target operation mode, wherein the operation mode of the electric energy measurement chip includes a working mode, a sleep mode or a shutdown mode. Therefore, by adopting the scheme, the electric energy metering chip can be controlled to be switched among three different modes, namely the electric energy metering chip is ensured to run in a working mode or a sleep mode or a shutdown mode, the electric energy metering chip is prevented from being continuously in the working mode, the electric energy consumption is reduced, and unnecessary resource waste is avoided.
In addition, considering that the period of reading the current of the electric core in the BBU battery by the electric energy metering chip in the sleep mode is longer, the voltage value provided by the electric core in the BBU battery to the electric energy metering chip can be adjusted, so as to further reduce the energy consumption of the electric energy metering chip. Therefore, based on the above embodiments, as an alternative embodiment of the present invention, the method further includes:
and controlling the voltage value provided by the charging control module in the BBU battery for the electric energy metering chip.
Specifically, in this embodiment, the electric energy metering chip is connected to the electric core of the BBU battery through a charge-discharge control module (which may be a charge-discharge control circuit). In addition, when the electric energy metering chip updates the electric energy metering data, the charging and discharging control module can be controlled to adjust the voltage/current provided for the electric energy metering chip by sending a control instruction.
In view of the large difference between the energy consumption of the electric energy metering chip in the working mode and the energy consumption of the electric energy metering chip in the sleep mode, based on the above embodiment, as an optional embodiment, the controlling the charging control module to provide the voltage value for the electric energy metering chip includes:
the control charging control module is used for providing a voltage value corresponding to the current operation mode of the electric energy metering chip for the electric energy metering chip;
controlling the charging control module to provide a voltage value for the electric energy metering chip to be a voltage value corresponding to the current operation mode of the electric energy metering chip;
if the electric energy metering chip is in a working mode, controlling the charging control module to provide a first voltage value for the electric energy metering chip;
if the electric energy metering chip is in the sleep mode, controlling the charging control module to provide a second voltage value for the electric energy metering chip;
if the electric energy metering chip is in a shutdown mode, controlling the charging control module to provide a third voltage value for the electric energy metering chip;
the first voltage value is greater than the second voltage value, and the second voltage value is greater than the third voltage value.
Specifically, in the present embodiment, the first voltage value in the present preferred embodiment is preferably greater than the second voltage value. When the electric energy metering chip updates the electric energy metering data, the charging and discharging control module can be controlled to provide the voltage/current value when the electric energy metering chip updates the electric energy metering data. For example, when the electric energy metering chip is in the sleep mode, the charge-discharge control module is controlled to provide the second voltage value corresponding to the sleep mode, and when the electric energy metering chip in the sleep mode updates the electric energy metering data, the charge-discharge control module is controlled to provide the voltage/current required by the electric energy metering chip to update the electric energy metering data. The first voltage value, the second voltage value, and the specific magnitude of the voltage/current required by the electric energy metering chip to update the electric energy metering data may be determined according to actual conditions, and the embodiment of the present invention is not limited herein.
Referring to fig. 2, fig. 2 is a schematic structural diagram of an electric energy metering control device for BBU batteries according to an embodiment of the present invention, and the device includes:
an obtaining module 201, configured to obtain target information of an electric energy metering chip in the BBU battery;
the determining module 202 is configured to determine a target operation mode of the electric energy metering chip according to the target information;
the triggering module 203 is configured to trigger a target register corresponding to the target operation mode to control the electric energy metering chip to switch from the current operation mode to the target operation mode;
the running mode of the electric energy metering chip comprises a working mode, a sleep mode or a shutdown mode.
Therefore, the control device for measuring the electric energy of the BBU battery disclosed in the embodiment of the present invention can determine the target operation mode of the electric energy chip through the obtained target information of the electric energy measurement chip in the BBU battery, and can trigger the target register corresponding to the target operation mode, so that the electric energy measurement chip can be switched from the current operation mode to the target operation mode, wherein the operation mode of the electric energy measurement chip includes a working mode, a sleep mode or a shutdown mode. Therefore, by adopting the scheme, the electric energy metering chip can be controlled to be switched among three different modes, namely the electric energy metering chip is ensured to run in a working mode or a sleep mode or a shutdown mode, the electric energy metering chip is prevented from being continuously in the working mode, the electric energy consumption is reduced, and unnecessary resource waste is avoided.
Based on the above embodiment, as an alternative embodiment of the present invention, the determining module 202 includes:
the first judging unit is used for judging whether the current running mode is the working mode or not; if the current operation mode is not the working mode, the first switching unit is entered;
the second judgment unit is used for judging whether the electric quantity information is the target electric quantity, if so, entering the second switching unit, and if not, entering the holding unit;
the second switching unit is used for switching the current working mode into a sleep mode or a power-off mode;
and the holding unit is used for holding the working mode.
And the first switching unit is used for switching the current working mode into the working mode.
Based on the above embodiment, as an optional embodiment of the present invention, the method further includes:
and the control module is used for controlling the voltage value provided by the charging control module in the BBU battery for the electric energy metering chip.
Based on the above embodiment, as an alternative embodiment of the present invention, the control module includes:
the control unit is used for controlling the charging control module to provide the voltage value for the electric energy metering chip to be a voltage value corresponding to the current operation mode of the electric energy metering chip; if the electric energy metering chip is in a working mode, the first control subunit is entered, if the electric energy metering chip is in a sleep mode, the second control subunit is entered, and if the electric energy metering chip is in a shutdown mode, the third control subunit is entered;
the first control subunit is used for controlling the charging control module to provide a first voltage value for the electric energy metering chip;
the second control subunit is used for controlling the charging control module to provide a second voltage value for the electric energy metering chip;
the third control subunit is used for controlling the charging control module to provide a third voltage value for the electric energy metering chip;
the first voltage value is greater than the second voltage value, and the second voltage value is greater than the third voltage value.
Based on the above embodiment, as an alternative embodiment of the present invention, the obtaining module 201 includes:
and the acquisition unit is used for acquiring the target information of the electric energy metering chip in the BBU battery by taking the preset time as a cycle.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a control device for BBU battery power metering according to an embodiment of the present invention, including:
a memory 301 for storing a computer program;
a processor 302 for executing the computer program stored in said memory to implement the steps of the control method for BBU battery power metering as set forth in any of the above embodiments.
Since the steps of the control method for metering the electric energy of the BBU batteries provided in any one of the above embodiments can be realized by calling the computer program stored in the memory by the processor, the computer-readable storage medium has the same practical effects as the above control method for metering the electric energy of the BBU batteries.
The detailed description is given above to a control method, device and apparatus for BBU battery electric energy metering provided by the present application. The principles and embodiments of the present application are explained herein using specific examples, which are provided only to help understand the method and the core idea of the present application. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.

Claims (8)

1. A control method for BBU battery electric energy metering is characterized by comprising the following steps:
acquiring target information of an electric energy metering chip in a BBU battery;
determining a target operation mode of the electric energy metering chip according to the target information;
triggering a target register corresponding to the target operation mode to control the electric energy metering chip to be switched from the current operation mode to the target operation mode;
the running mode of the electric energy metering chip comprises a working mode, a sleep mode or a shutdown mode;
the target information comprises electric quantity information of the electric energy metering chip and the current operation mode of the electric energy metering chip;
the determining the target operation mode of the electric energy metering chip according to the target information comprises:
judging whether the current operation mode is the working mode or not;
if the working mode is the working mode, judging whether the electric quantity information is the target electric quantity;
if the target electric quantity exists, the current working mode is switched to the sleep mode or the power-off mode;
if the target electric quantity is not the target electric quantity, the working mode is kept;
if the current operation mode is not the working mode, switching the current working mode into the working mode;
the target electric quantity is identification information that the battery core has sufficient electric quantity.
2. The control method for BBU battery electric energy metering of claim 1, wherein if said target operation mode is said operation mode, said electric energy metering chip updates electric energy metering data of said BBU battery at a first preset time;
if the target operation mode is the sleep mode, the electric energy metering chip updates the electric energy metering data of the BBU battery at a second preset time;
the second preset time is longer than the first preset time;
and if the target operation mode is the shutdown mode, stopping the operation of the electric energy metering chip.
3. The control method for BBU battery power metering of claim 1 or 2, further comprising:
and controlling the voltage value provided by the charging control module in the BBU battery for the electric energy metering chip.
4. The control method for BBU battery power metering of claim 3, wherein said controlling the voltage value provided by said charge control module in said BBU battery to said power metering chip comprises:
controlling the charging control module to provide a voltage value for the electric energy metering chip to be a voltage value corresponding to the current operation mode of the electric energy metering chip;
if the electric energy metering chip is in a working mode, controlling the charging control module to provide a first voltage value for the electric energy metering chip;
if the electric energy metering chip is in a sleep mode, controlling the charging control module to provide a second voltage value for the electric energy metering chip;
if the electric energy metering chip is in a shutdown mode, controlling the charging control module to provide a third voltage value for the electric energy metering chip;
the first voltage value is greater than the second voltage value, and the second voltage value is greater than the third voltage value.
5. The control method for BBU battery electric energy metering according to claim 1, wherein said obtaining target information of an electric energy metering chip in a BBU battery specifically includes:
and acquiring target information of the electric energy metering chip in the BBU battery by taking preset time as a period.
6. A control device for BBU battery electric energy metering, characterized by comprising:
the acquisition module is used for acquiring target information of an electric energy metering chip in the BBU battery;
the determining module is used for determining a target operation mode of the electric energy metering chip according to the target information;
the triggering module is used for triggering a target register corresponding to the target operation mode so as to control the electric energy metering chip to be switched from the current operation mode to the target operation mode;
the running mode of the electric energy metering chip comprises a working mode, a sleep mode or a shutdown mode;
the target information comprises electric quantity information of the electric energy metering chip and the current operation mode of the electric energy metering chip;
the determining module comprises:
the first judging unit is used for judging whether the current running mode is the working mode or not; if the current operation mode is not the working mode, the first switching unit is entered;
the second judgment unit is used for judging whether the electric quantity information is the target electric quantity, if so, entering the second switching unit, and if not, entering the holding unit;
the second switching unit is used for switching the current working mode into a sleep mode or a power-off mode;
a holding unit for holding an operation mode;
the first switching unit is used for switching the current working mode into the working mode;
the target electric quantity is identification information that the battery core has sufficient electric quantity.
7. The control device for BBU battery power metering of claim 6, further comprising:
and the control module is used for controlling the voltage value provided by the charging control module in the BBU battery for the electric energy metering chip.
8. A control device for BBU battery power metering, comprising:
a memory for storing a computer program;
a processor for executing a computer program stored in said memory to implement the steps of the control method for BBU battery power metering as recited in any one of claims 1 to 7.
CN201811354546.1A 2018-11-14 2018-11-14 Control method, device and equipment for BBU battery electric energy metering Active CN109215697B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811354546.1A CN109215697B (en) 2018-11-14 2018-11-14 Control method, device and equipment for BBU battery electric energy metering

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811354546.1A CN109215697B (en) 2018-11-14 2018-11-14 Control method, device and equipment for BBU battery electric energy metering

Publications (2)

Publication Number Publication Date
CN109215697A CN109215697A (en) 2019-01-15
CN109215697B true CN109215697B (en) 2021-02-05

Family

ID=64996671

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811354546.1A Active CN109215697B (en) 2018-11-14 2018-11-14 Control method, device and equipment for BBU battery electric energy metering

Country Status (1)

Country Link
CN (1) CN109215697B (en)

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3749143B2 (en) * 2001-06-14 2006-02-22 矢崎総業株式会社 Vehicle power supply
DE102004033836B3 (en) * 2004-07-13 2005-09-29 Siemens Ag Starter battery operating parameters determining device for motor vehicle, has comparator to effect transition of measuring device, controller, bus and converter from inactive to active mode when battery voltage falls below preset voltage
KR20090044087A (en) * 2007-10-31 2009-05-07 삼성전자주식회사 Portable terminal having real time clock operator and method for rtc operating thereof
CN201887498U (en) * 2010-11-04 2011-06-29 深圳市新元素医疗技术开发有限公司 Wireless power sensor
CN102654532B (en) * 2011-05-31 2014-09-03 万高(杭州)科技有限公司 Method for reducing power consumption of electric energy metering chip
CN103746417B (en) * 2013-12-23 2016-07-06 中国科学院微电子研究所 The Low-power-consumptiocontrol control method of a kind of battery detection chip and system
CN208076608U (en) * 2018-04-04 2018-11-09 沈机(上海)智能***研发设计有限公司 Ic for energy metering

Also Published As

Publication number Publication date
CN109215697A (en) 2019-01-15

Similar Documents

Publication Publication Date Title
CN103038657B (en) Monitor the rechargeable battery with many kinds of parameters renewal rate
CN102195304B (en) Method and device for managing service time of cell and portable computer
CA2090707C (en) Battery operated computer having improved battery gauge and system for measuring battery charge
CN106338690B (en) A kind of reserve battery detection method, device, system and method for supplying power to
US9189053B2 (en) Performance based power management of a memory and a data storage system using the memory
US6714016B2 (en) Method for displaying information concerning power consumption and electronic device
US20140223214A1 (en) Dynamic power mode switching per rail
CN106877442B (en) Battery management method
CN102736512B (en) Electronic device and system time setting method thereof
CN107607760B (en) Electric energy metering anti-theft system and method thereof
CN103117567B (en) Chip with charge-discharge function and electric quantity detecting function
CN111845455A (en) Charging control method and device for storage battery of electric vehicle
CN109435761B (en) Storage battery voltage monitoring method and vehicle control unit
CN103746417A (en) Low-power consumption control method and system for battery monitoring chip
CN112732062B (en) Energy management method and system for lightweight operating system of terminal of Internet of things
CN114257474A (en) Power utilization control method and device for intelligent gateway, computer equipment and storage medium
CN109215697B (en) Control method, device and equipment for BBU battery electric energy metering
TWI517033B (en) Conversion method for reducing power consumption and computing apparatus using the same
KR20140003973A (en) Method for charging battery and an electronic device thereof
JP2012135064A (en) Charging system, charging method and program
RU156115U1 (en) BATTERY ELECTRONIC RECORDER
JP2809661B2 (en) Battery driven information processing device, battery power supply system, and battery management device
CN214227881U (en) Power supply circuit and instrument
JP2014155422A (en) Charge control apparatus, electronic apparatus, and charge control program
JP2003111272A (en) Control device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20210106

Address after: Building 9, No.1, guanpu Road, Guoxiang street, Wuzhong Economic Development Zone, Wuzhong District, Suzhou City, Jiangsu Province

Applicant after: SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd.

Address before: Room 1601, floor 16, 278 Xinyi Road, Zhengdong New District, Zhengzhou City, Henan Province

Applicant before: ZHENGZHOU YUNHAI INFORMATION TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant