Power supply and battery management module compatible with universal redundant power supply
Technical Field
The present invention relates to the field of power supplies, and more particularly, to a power supply and a battery management module compatible with a universal redundant power supply.
Background
CRPS (common redundant power supply) is a redundant power supply module developed by intel corporation for supplying power to server systems. The CRPS standard makes a unified provision for redundant power supply modules, and mainly has the following aspects: structure size, electrical performance requirements, and definition of output PIN.
However, when the CRPS is used to supply power to the server system, if power failure occurs, the server system may cause data loss, and a bad track may be generated on a hard disk of the system. In order to avoid this situation, the client needs to externally install an UPS (Uninterruptible Power Supply), which wastes the usage space and increases the cost of the user.
Disclosure of Invention
The present invention provides a power supply and a battery management module compatible with a universal redundant power supply, which can save the usage space and reduce the cost.
The technical scheme adopted by the invention for solving the technical problems is as follows: constructing a battery management module compatible with a universal redundant power supply for powering a server system upon a loss of ac power, comprising: the system comprises a battery module, a charging module, a discharging module, a first card edge connector and a control module, wherein the first card edge connector is respectively connected with the card edge connector of the universal redundant power supply and the card edge connector of the server system; moreover, the control module includes:
the fault alarm detection unit is used for detecting whether a fault alarm end of the first card edge connector is an effective level or not;
the charging control unit is used for controlling the charging module to take power from the server system through the first card edge connector to charge the battery module when the fault alarm terminal is at an invalid level;
and the discharging control unit is used for controlling the discharging module to take power from the battery module when the fault alarm end is at an effective level so as to supply power to the server system through the first card edge connector.
In the battery management module compatible with universal redundant power supply according to the present invention, the control module further comprises a communication unit, and,
the communication unit is used for inquiring the fault state of the universal redundant power supply through the first card edge connector when the fault alarm end is at an effective level;
the discharge control unit is further configured to control the discharge module to take power from the battery module when the universal redundant power supply is in a fault state, so as to supply power to the server system through the first card edge connector; and when the universal redundant power supply is in a normal working state, controlling the discharging module to stop getting electricity from the battery module.
In the battery management module compatible with the universal redundant power supply, the control module further comprises a battery state detection unit;
the battery state detection unit is used for detecting the state of the battery module when the fault alarm terminal is at an invalid level; furthermore, it is possible to provide a liquid crystal display device,
the charging control unit is used for controlling the charging module to take power from the server system through the first card edge connector to charge the battery module when the battery module is in an unfilled state; when the battery module is in a full-charge state, the charging module is controlled to stop getting electricity from the server system through the first card edge connector.
In the battery management module compatible with the universal redundant power supply, the battery management module further comprises an indication module, wherein the indication module comprises a first indication lamp, a second indication lamp and a third indication lamp; moreover, the control module further includes:
the indication control unit is used for controlling the first indicator light to work when the battery module is in an unfilled state; when the battery module is in a full-charge state, controlling the second indicator light to work; and when the battery module is in a discharging state, controlling the third indicator lamp to work.
In the battery management module compatible with a universal redundant power supply according to the present invention, the control module further includes:
and the charging voltage detection unit is used for detecting the charging voltage when the charging module charges the battery module.
In the battery management module compatible with a universal redundant power supply according to the present invention, the control module further includes:
and the charging current detection unit is used for detecting the charging current of the battery module when the charging module charges the battery module.
In the battery management module compatible with the universal redundant power supply according to the present invention, the battery management module further includes an alarm module, and the control module further includes:
and the alarm control unit is used for controlling the alarm module to alarm when the charging voltage is greater than a preset voltage value or the charging current is greater than a preset current value, and reporting the abnormal information of the battery module to the server system through the communication unit.
In the battery management module compatible with a universal redundant power supply according to the present invention, the control module further includes:
and the state output unit is used for sending a working state signal to the server system through the first card edge connector.
In the battery management module compatible with a universal redundant power supply according to the present invention, the control module further includes:
and the power-on indicating unit is used for receiving a power-on signal from the server system through the first card edge connector.
The invention also provides a power supply, which comprises a universal redundant power supply and is characterized in that the power supply also comprises the battery management module compatible with the universal redundant power supply.
By implementing the technical scheme of the invention, when the server system is powered on, in order to avoid data loss of the server system caused by power failure of the alternating current power supply, a battery management module compatible with the universal redundant power supply can be added, and the battery management module can immediately supply power to the server system when the alternating current power supply is powered off, so that an external UPS can be saved, and the cost is saved. Moreover, the battery management module is respectively connected with the universal redundant power supply and the card edge connector of the server system through the first card edge connector, so that the battery management module can be completely compatible with the universal redundant power supply, has strong universality, saves the use space and is convenient for users to use.
Drawings
FIG. 1 is a logic diagram of a first embodiment of a universal redundant power supply compatible battery management module according to the present invention;
FIG. 2 is a logic diagram of a second embodiment of a universal redundant power supply compatible battery management module according to the present invention;
fig. 3 is a circuit diagram of a third embodiment of a battery management module compatible with a universal redundant power supply according to the present invention.
Detailed Description
Fig. 1 is a logic diagram of a first embodiment of a battery management module compatible with a universal redundant power supply according to the present invention, the battery management module is used for supplying power to a server system when an ac power source is powered off, and the battery management module includes a battery module 10, a charging module 20, a discharging module 30, a first card edge connector 40 and a control module 50. The first card edge connector 41 is connected to the card edge connector of the universal redundant power supply and the card edge connector of the server system, i.e. the card edge connectors of the server system, the universal redundant power supply and the battery management module are connected in parallel. The control module 50 includes a malfunction alarm detection unit 51, a charging control unit 52 and a discharging control unit 53, wherein the malfunction alarm detection unit 51 is configured to detect whether a malfunction alarm terminal of the first card edge connector 40 is at an active level; the charging control unit 52 is configured to control the charging module 20 to take power from the server system through the first card edge connector 40 to charge the battery module 10 when the malfunction alarm terminal is at an invalid level; the discharging control unit 53 is configured to control the discharging module 30 to take power from the battery module 10 when the failure alarm terminal is at an active level, so as to supply power to the server system through the first card edge connector 40.
Fig. 2 is a logic diagram of a second embodiment of a battery management module compatible with a universal redundant power supply according to the present invention, which differs from the embodiment shown in fig. 1 only in that: the battery management module further includes an indication module 60 and an alarm module 70, and the indication module 60 includes a first indicator light (not shown), a second indicator light (not shown), and a third indicator light. In addition, the control module 50 further includes: a communication unit 54, a battery state detection unit 55, an instruction control unit 56, a charging voltage detection unit 57, a charging current detection unit 58, and an alarm control unit 59. Wherein:
the communication unit 54 is used for querying the fault state of the universal redundant power supply through the first card edge connector 40 when the fault alarm terminal is at the effective level; moreover, the discharging control unit 53 is further configured to control the discharging module 30 to take power from the battery module 10 to supply power to the server system through the first card edge connector 40 when the universal redundant power supply is in a failure state; when the universal redundant power supply is in a normal working state, the discharging module 30 is controlled to stop taking power from the battery module 10.
The battery state detection unit 55 is used for detecting the state of the battery module 10 when the fault alarm terminal is at an invalid level; also, the charging control unit 52 is configured to control the charging module 20 to take power from the server system through the first card edge connector 40 to charge the battery module 10 when the battery module 10 is in the non-full state; when the battery module 10 is in a full state, the charging module 20 is controlled to stop taking power from the server system through the first card edge connector 40.
The indication control unit 56 is used for controlling the first indicator light to work when the battery module 10 is in the non-full state; when the battery module 10 is in a full state, controlling the second indicator light to work; and when the battery module 10 is in a discharging state, controlling the third indicator lamp to work. The charging voltage detection unit 57 is used to detect the charging voltage when the charging module 20 charges the battery module 10. The charging current detection unit 58 is used to detect the charging current of the battery module 10 when the charging module 20 charges the battery module 10. The alarm control unit 59 is configured to control the alarm module 70 to alarm when the charging voltage is greater than the preset voltage value or the charging current is greater than the preset current value, and report the abnormal information of the battery module 10 to the server system through the communication unit 54.
In addition, the control module 50 may further include a status output unit and a power-on indication unit, wherein the status output unit is configured to send a working status signal to the server system through the first card edge connector. The power-on indicating unit is used for receiving a power-on signal from the server system through the first card edge connector.
Fig. 3 is a circuit diagram of a third embodiment of the battery management module compatible with the universal redundant power supply according to the present invention, in which the control module of the battery management module is composed of a single chip and peripheral circuits, and the circuit structure of the control module is specifically described below:
the fault alarm terminal (SMAlert) of the first card edge connector CON2 is grounded through a resistor R54 and a resistor R56, the connection point of the resistor R54 and the resistor R56 is connected with the first input terminal (RB 5) of the singlechip U4, and the capacitor C31 is connected with two ends of the resistor R56.
The positive output end (Vbattery) of the battery module (not shown) is grounded through a resistor R55 and a resistor R57, and the connection point of the resistor R55 and the resistor R57 is connected with the second input end (AN 9) of the singlechip U4 through a resistor R62. The first output end (INT 2) of the single chip microcomputer U4 is connected with the anode of the diode D22 through the resistor R86, and the cathode of the diode D22 is connected with the control end (CHARGE _ ON) of the charging module (not shown). The second output end (IOC 0) of the single chip microcomputer U4 is connected with the positive electrode of the diode D14 through the resistor R63, and the negative electrode of the diode D14 is connected with the control end (discharge _ ON) of the discharge module (not shown).
The data end (SDA 1) and the clock end (SCL 1) of the single chip microcomputer U4 are respectively connected with the 2 nd pin and the 3 rd pin of the I2C interface U8, and the 7 th pin and the 6 th pin of the I2C interface U8 are respectively connected with the data end (SDA) and the clock end (SCL) of the first card edge connector CON2 through resistors R81 and R83. In addition, the following two pins RA6 and RA7 of the single chip microcomputer U4 are connected to the 32 th and 31 th pins of the first card edge connector CON2, respectively.
A third output end (LED) of the single chip microcomputer U4 is connected to the positive electrode of the diode D15 through the resistor R65, the negative electrode of the diode D15 is connected to the base of the transistor Q32, the emitter of the transistor Q32 is grounded, and the collector of the transistor Q32 is connected to the 2 nd pin of the interface CON 3. A fourth output end (RC 1) of the single chip microcomputer U4 is connected with the positive electrode of the diode D18 through the resistor R90, the negative electrode of the diode D18 is connected with the base electrode of the triode Q31, the emitter electrode of the triode Q31 is grounded, and the collector electrode of the triode Q31 is connected with the 4 th pin of the interface CON 3. A fifth output end (RC 0) of the single chip microcomputer U4 is connected with the positive electrode of the diode D13 through the resistor R93, the negative electrode of the diode D13 is connected with the base electrode of the triode Q30, the emitter electrode of the triode Q30 is grounded, and the collector electrode of the triode Q30 is connected with the 6 th pin of the interface CON 3. In addition, the 2 nd pin, the 4 th pin and the 6 th pin of the interface CON3 are respectively connected with LED indicator lamps (not shown).
The sixth output end (RA 5) of the singlechip U4 is connected with an ALARM module (ALARM) through a resistor R154, in addition, one end of a resistor RV3 is connected with the sixth output end (RA 5) of the singlechip U4, and the other end is grounded. One end of the resistor R155 is connected with a high level (+ 5 VC), and the other end thereof is connected with an ALARM module (ALARM).
The bus terminal (+ 12V) of the first card edge connector CON2 is grounded through the resistors R73 and R74, and the connection point of the resistors R73 and R74 is connected to the third input terminal (RC 5) of the chip unit U4. The charging current terminal (Icharge) of the battery module is grounded through resistors R70 and R71, and the connection point of the resistors R70 and R71 is connected with the fourth input terminal (AN 1) of the singlechip U4.
In addition, a seventh output terminal (RX 1) of the single chip microcomputer U4 is connected to the positive electrode of the diode D17 through the resistor R69, and the negative electrode of the diode D17 is connected to the operating state terminal (PWOK) of the first card edge connector CON 2. The power-ON indication terminal (PS/ON) of the first card edge connector CON2 is connected to the fifth input terminal (AN 0) of the chip U4 through a resistor R66.
The working principle of the battery management module is explained as follows:
first, the server system, the universal redundant power supply, and the card edge connector of the battery management module are connected in parallel. When the ac power supply is normal, the universal redundant power supply supplies power to the server system, when the server system starts to work, the server system sends a power-ON indication signal through a power-ON indication terminal (PS/ON) of the first card edge connector CON2, and the single chip microcomputer U4 starts to work after detecting the signal through a fifth input terminal (AN 0) of the single chip microcomputer U4.
When the ac power is normal, the fault alarm terminal (Alert) of the first card edge connector CON2 will be at a high level, and after the single chip microcomputer U4 detects that the pin is at the high level through its first input terminal (RB 5), it will automatically detect the state of the battery module through its second input terminal (AN 9), and if the battery module is in AN unfilled state, it controls its first output terminal (INT 2) to be at AN active level, so as to control the charging module to charge the battery. Meanwhile, a third output end (LED) of the charge control circuit is controlled to drive a triode Q32, so that a first LED indicator lamp flickers to indicate the charging state. In addition, during charging, the third input end (RC 5) of the singlechip U4 also detects charging voltage, and the fourth input end (AN 1) of the singlechip U4 also detects charging current so as to judge whether the charging process is abnormal.
During charging, the single chip microcomputer U4 also detects charging voltage and charging current through a third input end (RC 5) and a fourth input end (AN 1), judges whether the charging voltage is greater than a preset voltage value or the charging current is greater than a preset value, and drives the alarm module to start working through a sixth output end (RA 5) if the charging voltage is greater than the preset voltage value or the charging current is greater than the preset value.
When the singlechip U4 detects that the battery module is in a full-charge state through the second input end (AN 9), the first output end (INT 2) of the singlechip U4 is controlled to be in AN invalid level, and the charging module is closed. At the same time, its third output (LED) is controlled to drive transistor Q32 to turn off the first LED indicator light, and its fourth output (RC 1) is controlled to drive transistor Q31 to turn on the second LED indicator light, indicating that the electricity is full.
When an alternating current power supply is powered off, namely the server system cannot be supplied with power through the universal redundant power supply, the fault alarm end (Alert) of the first card edge connector CON2 is at a low level, and after the single chip microcomputer U4 detects that the pin is at the low level through the first input end (RB 5), the second output end (IOC 0) of the single chip microcomputer U4 is at an effective level at the moment to control the discharge module to work, and the battery module directly supplies power to the server system. At the same time, the fifth output terminal (RC 0) is controlled to drive the transistor Q30 to light the third LED indicator light to indicate the discharge. Moreover, when the battery module directly supplies power to the server system, the single chip microcomputer U4 also sends an operating state signal to the server system through a seventh output terminal (RX 1) of the single chip microcomputer U4. In addition, the fault reason is inquired through an I2C interface. If the query result shows that all the on-line universal redundant power supplies are in a power-down state, the output state of the discharging module is kept, otherwise, the discharging module closes the output and is still supplied with power by the universal redundant power supplies.
The present invention also provides a power supply, which includes a universal redundant power supply and the battery management module compatible with the universal redundant power supply described in the above embodiments, wherein the number of the universal redundant power supplies can be at least two.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.