Server power monitoring system
Technical Field
The utility model belongs to the technical field of the server monitoring technology and specifically relates to server power monitoring system.
Background
As the scale of computer data centers is continuously enlarged, the number of user servers is rapidly increased, and the number and the types of the servers are large, the power supply management of the servers is required to be more reliable, flexible and convenient. The monitoring information of the server power supply has important reference value for the maintenance of abnormal reasons of the server and the like.
In the prior art, the state monitoring of the server power supply is specifically directly implemented by a Baseboard Management Controller (BMC) of the server. Since the baseboard management controller has limited processing capability, it generally detects the voltage values of the power supplies in turn by polling, and records the voltage values lower than the normal threshold as abnormal conditions. Therefore, there is a polling idle period for each power supply, so that the voltage value information of the power supply in the polling idle period is not monitored, and the abnormal voltage is detected only when the abnormal voltage happens to occur in the polling idle period. In addition, the existing monitoring system can only carry out single-point monitoring, and can not display the running condition of the whole system by independently monitoring each electric parameter of the main circuit and the branch circuit, so that the system can not simultaneously display the running condition of a plurality of server power supplies, and a user can not timely acquire the abnormal condition of the power supply system.
Disclosure of Invention
The utility model provides a not enough to prior art, the utility model provides a server power monitoring system, this system can monitor the power of many servers simultaneously, can realize the real-time collection of server power.
The technical scheme of the utility model is that: the server power monitoring system comprises a PC end and a plurality of MCU main control boards, wherein the PC end is connected with the MCU main control boards through Ethernet interfaces of a router, and each MCU main control board is connected with a corresponding server power supply;
each MCU main control board is provided with an I2C interface, an Ethernet interface and a voltage reduction circuit, and the MCU main control board is accessed to the router through the Ethernet interface by a TCP/IP protocol and is in communication connection with the PC end through a local area network;
an I2C interface of the MCU main control board reads the server power supply operation data through a PMBus protocol and transmits the server power supply operation data to a PC end;
the voltage reduction circuit is used for converting external 12V and 5V voltage into 3.3V to supply power to the MCU main control board and other equipment; the voltage reduction circuit comprises a voltage stabilization chip U1 and a connection terminal CN1, wherein the 1 st pin of the connection terminal CN1 is connected with the 3 rd pin of a voltage stabilization chip U1 through a resistor R2, the 2 nd pin of the connection terminal CN1 and the 1 st pin of a voltage stabilization chip U1 are connected with a ground GND, the 3 rd pin of the voltage stabilization chip U1 is further connected with a 12V power supply and a 5V power supply, resistors R1 and R2 are further connected between the 12V power supply and the 5V power supply in parallel, the 2 nd pin of the voltage stabilization chip U1 serves as an output point to output a 3.3V power supply, a capacitor C2 is further connected between the 1 st pin and the 3 rd pin of the voltage stabilization chip U1, and a capacitor C1 is further connected between the 1 st pin and the 2 nd pin of the voltage stabilization chip U1.
Preferably, each MCU main control board also comprises a USB interface, an SWD burning port and an LED indicator light.
Preferably, the USB interface is mainly used for connecting with an external device, the 4 th pin, the 5 th pin and the 6 th pin of the USB interface are grounded to GND, the 1 st pin of the USB interface is connected to a 5V power supply, and the 2 nd pin and the 3 rd pin of the USB interface are respectively used as IO interfaces and are grounded through diodes D6 and D5.
Preferably, the SWD burning port updates a program for the MCU main control board through an SWD protocol, the 4 th pin of the SWD burning port is connected with a 3.3V power supply, the 1 st pin of the SWD burning port is grounded, and the 2 nd pin and the 3 rd pin of the SWD burning port are used as NRST and SWIM and are connected with the 4 th pin and the 18 th pin of the MCU main control board.
Preferably, the I2C interface is used for connecting with a server power supply, the I2C interface includes connection terminals CN3 and CN4, pins 1 and 2 of the connection terminals CN3 and CN4 are connected with the server power supply to read server power supply data, and pin 3 is grounded.
Preferably, the ethernet interface of the MCU main control board is a serial-to-ethernet interface, and is connected to the MCU main control board through serial ports RXD and TXD of the E20 serial port module, so as to communicate with the MCU main control board;
the 10 th pin of the E20 serial module is grounded GND, the 11 th pin of the E20 serial module is connected with a 3.3V power supply and is grounded GND through capacitors C3 and C4 respectively;
the 7 th pin of the E20 serial module is connected with a 3.3V power supply through a diode D2 and a resistor R6;
the 12 th pin of the E20 serial module is connected with a 3.3V power supply through a diode D1 and a resistor R5;
the 10 th pin of the E20 serial port module is connected with GND;
the 8 th pin and the 9 th pin of the E20 serial port module are connected with the MCU main control board, and the MCU main control board controls the MCU main control board through the 17 th pin and the 20 th pin.
Preferably, the LED indicator light is connected with the 15 th pin and the 16 th pin of the MCU main control board.
Preferably, the 5 th pin and the 6 th pin of the MCU main control board are crystal oscillator pins for connecting with an external crystal oscillator,
a 20 th pin of the MCU main control board is a factory recovery pin of the E20 serial port module, and a 17 th pin of the MCU main control board is a reset pin of the E20 serial port module;
the 2 nd and 3 rd pins of the MCU main control board are connected with the 8 th pin and the 9 th pin of the E20 serial port module;
and 11 th-14 th parts of the MCU main control board are used for being in communication connection with a server power supply.
Preferably, the PC manages and displays the monitored server power data including the MAC address, the IP address, the input voltage, the input current, the output voltage, the output current, and the temperature of the monitoring server through the corresponding power management system.
The utility model has the advantages that:
1. the utility model has simple structure and strong practicability, can simultaneously detect the power data of a plurality of servers, and is convenient for users to acquire the power data of different servers in real time;
2. the utility model monitors the power data of the corresponding server through the corresponding MCU, and acquires the relevant data of the power supply operation of the server through the PMBus protocol, thereby ensuring the accuracy and the safety of the data;
3. the utility model discloses a E20(Eport20) serial ports changes the ethernet mouth, and after MCU main control board read the power operation data, send to E20(Eport20) module through the UART mouth, E20(Eport20) module retransmits to the ethernet mouth again to can realize the transmission of data through the LAN;
4. the utility model discloses a step-down circuit truns into 3.3V with outside 12V and 5V power to supply power for the MCU main control board, and the utility model discloses a burn record mouth and USB interface and guarantee to update the procedure of MCU main control board and connect external equipment through USB.
Drawings
Fig. 1 is a schematic structural view of the present invention;
FIG. 2 is a structural frame diagram of the MCU main control board of the present invention;
FIG. 3 is a circuit diagram of the MCU master control board of the present invention;
fig. 4 is an interface circuit diagram of the present invention, I2C;
fig. 5 is a circuit diagram of the serial port to network port of the utility model E20;
FIG. 6 is a voltage-reducing circuit diagram of the present invention;
fig. 7 is a circuit diagram of the USB interface of the present invention;
fig. 8 is a schematic structural diagram of the SWD burning interface of the present invention;
fig. 9 is a display interface for detecting the power of the PC terminal of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made with reference to the accompanying drawings:
as shown in fig. 1, the server power monitoring system includes a PC terminal and MCU main control boards, wherein the PC terminal is connected to a plurality of MCU main control boards through ethernet interfaces of routers, and each MCU main control board is connected to a corresponding server power.
As shown in fig. 2, each of the MCU main control boards has an I2C interface, an ethernet interface, a voltage reduction circuit, a USB interface, an SWD burning port, and an LED indicator, and the circuit diagram of the MCU main control board is as shown in fig. 3.
The MCU main control board is accessed to the router through an Ethernet interface on the MCU main control board by a TCP/IP protocol and is in communication connection with the PC end through a local area network; and an I2C interface of the MCU main control board reads the power supply operation data of the server through a PMBus protocol and transmits the data to the PC terminal. As shown in fig. 4, the I2C interface includes terminals CN3 and CN4, pins 1 and 2 of the terminals CN3 and CN4 are connected to the server power supply to read the server power data, and pin 3 is grounded.
As shown in fig. 5, the ethernet interface of the MCU main control board is a serial-to-ethernet interface, which is connected to the MCU main control board through serial ports RXD and TXD of the E20 serial port module to communicate with the MCU main control board;
the 10 th pin of the E20 serial module is grounded GND, the 11 th pin of the E20 serial module is connected with a 3.3V power supply and is grounded GND through capacitors C3 and C4 respectively;
the 7 th pin of the E20 serial module is connected with a 3.3V power supply through a diode D2 and a resistor R6;
the 12 th pin of the E20 serial module is connected with a 3.3V power supply through a diode D1 and a resistor R5;
the 10 th pin of the E20 serial port module is connected with GND;
the 8 th pin and the 9 th pin of the E20 serial port module are connected with the MCU main control board, and the MCU main control board controls the MCU main control board through the 17 th pin and the 20 th pin.
As shown in fig. 6, the voltage dropping circuit is used for converting external 12V and 5V voltages into 3.3V to supply power to the MCU main control board and other devices; the voltage reduction circuit comprises a voltage stabilization chip U1 and a wiring terminal CN1, wherein the model of the voltage stabilization chip U1 is LD 1117. The 1 st pin of the connecting terminal CN1 is connected with the 3 rd pin of the voltage stabilization chip U1 through a resistor R2, the 2 nd pin of the connecting terminal CN1 and the 1 st pin of the voltage stabilization chip U1 are grounded GND, the 3 rd pin of the voltage stabilization chip U1 is also connected with a 12V power supply and a 5V power supply, resistors R1 and R2 are further connected between the 12V power supply and the 5V power supply in parallel, the 2 nd pin of the voltage stabilization chip U1 serves as an output point to output a 3.3V power supply, a capacitor C2 is further connected between the 1 st pin and the 3 rd pin of the voltage stabilization chip U1, and a capacitor C1 is further connected between the 1 st pin and the 2 nd pin of the voltage stabilization chip U1.
Preferably, as shown in fig. 7, the USB interface is mainly used for connecting to an external device, the 4 th pin, the 5 th pin, and the 6 th pin of the USB interface are grounded to GND, the 1 st pin of the USB interface is connected to a 5V power supply, the 5V power supply is stepped down to 3.3V through a voltage stabilizing chip U1, and the 2 nd pin and the 3 rd pin of the USB interface are respectively used as IO interfaces and are grounded through diodes D6 and D5, respectively. The USB interface can be used for supplying power to external equipment and can also be used for programming the MCU main control board.
Preferably, as shown in fig. 8, the SWD burning port updates the program to the MCU main control board through an SWD protocol, the 4 th pin of the SWD burning port is connected to a 3.3V power supply, the 1 st pin of the SWD burning port is grounded, and the 2 nd pin and the 3 rd pin of the SWD burning port are used as NRST and SWIM to be connected to the 4 th pin and the 18 th pin of the MCU main control board.
Preferably, the LED indicator light is connected with the 15 th pin and the 16 th pin of the MCU main control board, and the LED indicator light is used for displaying the working state of the MCU main control board.
Preferably, as shown in fig. 3, the 5 th pin and the 6 th pin of the MCU main control board are crystal oscillator pins for connecting with an external crystal oscillator, so that the MCU main control board normally operates, the 20 th pin of the MCU main control board is a factory reset pin of the E20 serial module, and the 17 th pin of the MCU main control board is a reset pin of the E20 serial module; the 2 nd and 3 rd pins of the MCU main control board are connected with the 8 th pin and the 9 th pin of the E20 serial port module; and 11 th-14 th parts of the MCU main control board are used for being in communication connection with a server power supply.
Preferably, as shown in fig. 9, the PC manages and displays the monitored server power data including the MAC address, the IP address, the input voltage, the input current, the output voltage, the output current, and the temperature of the monitoring server through the corresponding power management system.
The foregoing embodiments and description have been provided to illustrate the principles and preferred embodiments of the present invention, and various changes and modifications may be made without departing from the spirit and scope of the invention, which fall within the scope of the invention as claimed.