CN115599190A - Server power-off control system, method, computer device and storage medium - Google Patents
Server power-off control system, method, computer device and storage medium Download PDFInfo
- Publication number
- CN115599190A CN115599190A CN202211308504.0A CN202211308504A CN115599190A CN 115599190 A CN115599190 A CN 115599190A CN 202211308504 A CN202211308504 A CN 202211308504A CN 115599190 A CN115599190 A CN 115599190A
- Authority
- CN
- China
- Prior art keywords
- power
- server
- control unit
- interface
- communication control
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 30
- 238000004891 communication Methods 0.000 claims abstract description 58
- 230000005669 field effect Effects 0.000 claims description 21
- 230000002093 peripheral effect Effects 0.000 claims description 20
- 239000004065 semiconductor Substances 0.000 claims description 17
- 238000004590 computer program Methods 0.000 claims description 15
- 229910044991 metal oxide Inorganic materials 0.000 claims description 13
- 150000004706 metal oxides Chemical class 0.000 claims description 13
- 239000003990 capacitor Substances 0.000 claims description 5
- 238000012546 transfer Methods 0.000 claims description 3
- 238000012423 maintenance Methods 0.000 abstract description 16
- 238000011161 development Methods 0.000 abstract description 11
- 230000003287 optical effect Effects 0.000 abstract description 9
- 230000008878 coupling Effects 0.000 abstract description 8
- 238000010168 coupling process Methods 0.000 abstract description 8
- 238000005859 coupling reaction Methods 0.000 abstract description 8
- 230000003993 interaction Effects 0.000 abstract description 5
- 238000011160 research Methods 0.000 abstract description 5
- 238000010586 diagram Methods 0.000 description 8
- 238000012986 modification Methods 0.000 description 5
- 230000004048 modification Effects 0.000 description 5
- 238000013508 migration Methods 0.000 description 4
- 230000005012 migration Effects 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 239000000758 substrate Substances 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000001052 transient effect Effects 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 230000002457 bidirectional effect Effects 0.000 description 1
- 239000000969 carrier Substances 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000002955 isolation Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/266—Arrangements to supply power to external peripherals either directly from the computer or under computer control, e.g. supply of power through the communication port, computer controlled power-strips
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
- G06F13/4004—Coupling between buses
- G06F13/4022—Coupling between buses using switching circuits, e.g. switching matrix, connection or expansion network
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
- G06F13/4063—Device-to-bus coupling
- G06F13/4068—Electrical coupling
- G06F13/4081—Live connection to bus, e.g. hot-plugging
-
- G—PHYSICS
- G08—SIGNALLING
- G08C—TRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
- G08C17/00—Arrangements for transmitting signals characterised by the use of a wireless electrical link
- G08C17/02—Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03K—PULSE TECHNIQUE
- H03K17/00—Electronic switching or gating, i.e. not by contact-making and –breaking
- H03K17/51—Electronic switching or gating, i.e. not by contact-making and –breaking characterised by the components used
- H03K17/78—Electronic switching or gating, i.e. not by contact-making and –breaking characterised by the components used using opto-electronic devices, i.e. light-emitting and photoelectric devices electrically- or optically-coupled
- H03K17/785—Electronic switching or gating, i.e. not by contact-making and –breaking characterised by the components used using opto-electronic devices, i.e. light-emitting and photoelectric devices electrically- or optically-coupled controlling field-effect transistor switches
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Mathematical Physics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Power Sources (AREA)
Abstract
The present application relates to a server power-off control system, method, computer device, and storage medium. The server power-off control system comprises a baseboard management controller BMC, a complex programmable logic device CPLD, a communication control unit and an optical coupling switch external unit. The invention realizes the hot plug of the server and the external equipment by adding the communication control unit and the optical coupling switch external unit, the hardware does not need to be changed greatly, and a hot plug chip is not needed, thereby greatly reducing the research, development, operation and maintenance cost. A communication control unit is added on a UART interface of a server BMC, the mobile terminal is connected with Bluetooth to realize interaction with the server when in hot plugging, and an IO interface of the CPLD is used for driving the optocoupler to realize power-on/power-off of external equipment, so that the problems that the external equipment is damaged and the work of the whole machine is influenced due to hot plugging of the server can be effectively solved.
Description
Technical Field
The present application relates to the field of server technologies, and in particular, to a server power-off control system, method, computer device, and storage medium.
Background
Hot-plugging (Hot-plugging or Hot Swap), i.e., hot plugging, refers to a technique for connecting or removing a device board card or module to or from a working system in a Hot state without affecting the system operation. The most common application we use daily is USB hot plugging. The civil hot plug technology starts from the development of a PC (personal computer), and the extension of an external bus is increased by a system bus from the 586 era, and the system bus at the moment initially meets the requirement of hot plug. Beginning in 1997, support for plug-and-play functionality was added to the new BIOS, although this plug-and-play support does not represent complete hot plug support, only hot add and hot replace support. The hot plug of the external power supply is mainly realized by current limiting, and the transient change current is limited in the hot plug process so that the transient change current is maintained at a reasonable level, and the normal operation of the whole machine is ensured. Hot plugging can also cause a number of problems. Such as latch-up due to potential difference change, electrostatic interference problem, surge, bus device abnormality caused by bus interference, etc.
The server usually adopts the way of hot plug management chip to realize hot plug. The hot plug chip can be basically understood as a switch and is mainly used for preventing surge current from being generated and controlling subsequent current, once the current exceeds a monitoring range, the system is judged to have a fault, and the control module is immediately switched off by the hot plug management chip in a power-off mode, so that the whole machine is protected from being influenced.
At present, the hot plug of the traditional server is realized by adopting a hot plug management chip, the hot plug is still operated in a live mode at the end, the influence on high-power peripheral storage equipment cannot be ignored, and the damage to the peripheral storage equipment and the data loss can be caused if the storage equipment is in a working state.
Disclosure of Invention
Therefore, it is necessary to provide a server power-off control system, method, computer device and storage medium for solving the technical problems of damage to the peripheral storage device and data loss caused by the hot-plug management chip being powered on, by replacing the hot-plug management chip to implement hot-plug.
In one aspect, a server power-off control system is provided, which includes:
a baseboard management controller BMC;
the complex programmable logic device CPLD is electrically connected with the baseboard management controller BMC;
the communication control unit is connected to the baseboard management controller BMC and can be interconnected with the mobile terminal; and
one end of the optocoupler switch external unit is connected to an IO interface of the complex programmable logic device CPLD, and the other end of the optocoupler switch external unit is connected to external equipment; when the communication control unit receives a power-off instruction sent by the mobile terminal, the power-off instruction is transmitted to the complex programmable logic device CPLD through the baseboard management controller BMC, and the complex programmable logic device CPLD controls the IO interface to be in a high-resistance state so as to control the optocoupler switch external unit to be in a non-conduction state, so that the external equipment is in a complete power-off state.
In one embodiment, the communication control unit comprises a bluetooth module, and the bluetooth module is connected with the BMC through an asynchronous transmission interface UART; the external device includes a storage device.
In one embodiment, the optocoupler switch external unit includes:
an optocoupler including a light emitting diode and a phototransistor arranged side by side; the positive pin of the light emitting diode is connected to a first power supply, and the negative pin of the light emitting diode is connected to the IO interface of the complex programmable logic device CPLD; the grid electrode of the photosensitive transistor receives the light emitted by the light emitting diode, the emitting electrode of the photosensitive transistor is grounded, and the collecting electrode of the photosensitive transistor is connected to a second power supply and the external equipment.
In one embodiment, the photosensitive transistor comprises a PMOS tube; and the collector electrode of the photosensitive transistor is connected with the second power supply and then is also connected with a metal-oxide semiconductor field effect transistor MOSFET, and the metal-oxide semiconductor field effect transistor MOSFET is connected with the external equipment through an external interface.
In one embodiment, the metal-oxide semiconductor field effect transistor MOSFET is an N-type MOSFET, a gate of the N-type MOSFET is connected to a collector of the phototransistor, a drain of the N-type MOSFET is connected to the second power supply, a source of the N-type MOSFET is connected to the peripheral interface, and the peripheral interface is grounded and can be connected to the external device.
In one embodiment, the collector of the phototransistor is connected to the second power supply via a third resistor R3, and the collector of the phototransistor is connected to the gate of the N-type MOSFET via a fourth resistor R4.
In one embodiment, the anode pin of the light emitting diode is connected to a first power supply through a first resistor R1;
and a branch formed by connecting a second resistor R2 and a capacitor C in parallel is also connected between the negative electrode pin of the light-emitting diode and the positive electrode pin of the light-emitting diode.
In another aspect, there is provided a server power-off control method of the server power-off control system described above, the server power-off control method including the steps of:
when external equipment connected to a server needs to be powered off, a communication control unit on the server is opened, and the communication control unit is interconnected with the mobile terminal;
sending a power-off instruction to the communication control unit through the mobile terminal;
controlling the communication control unit to transmit the power-off command to the complex programmable logic device CPLD through the baseboard management controller BMC; and
and the complex programmable logic device CPLD controls the IO interface to be in a high-resistance state according to the power-off instruction, and the optocoupler switch external unit is controlled to be in a non-conduction state, so that the external equipment is in a complete power-off state.
In another aspect, a computer device is provided, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and the processor implements the following steps when executing the computer program:
when external equipment connected to a server needs to be powered off, a communication control unit on the server is opened, and the communication control unit is interconnected with the mobile terminal;
sending a power-off instruction to the communication control unit through the mobile terminal;
controlling the communication control unit to transmit the power-off instruction to the complex programmable logic device CPLD through the baseboard management controller BMC; and
and the complex programmable logic device CPLD controls the IO interface to be in a high-resistance state according to the power-off instruction, and the optocoupler switch external unit is controlled to be in a non-conduction state, so that the external equipment is in a complete power-off state.
In yet another aspect, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, performs the steps of:
when external equipment connected to a server needs to be powered off, a communication control unit on the server is opened, and the communication control unit is interconnected with the mobile terminal;
sending a power-off instruction to the communication control unit through the mobile terminal;
controlling the communication control unit to transmit the power-off instruction to the complex programmable logic device CPLD through the baseboard management controller BMC; and
and the complex programmable logic device CPLD controls the IO interface to be in a high-resistance state according to the power-off instruction, and the optocoupler switch external unit is controlled to be in a non-conduction state, so that the external equipment is in a complete power-off state.
According to the server power-off control system, the server power-off control method, the computer equipment and the storage medium, the hot plug between the server and the external equipment is realized by adding the communication control unit (preferably a Bluetooth module) and the optical coupling switch external unit, hardware does not need to be changed greatly, a hot plug chip is not needed, firmware development and logic developers add firmware, BMC and CPLD to carry out logic modification, and the research, development, operation and maintenance cost is greatly reduced. A Bluetooth module is added to a UART interface of the server BMC, the mobile terminal is connected with Bluetooth to realize interaction with the server when hot plugging is realized, and an IO interface of the CPLD is used for driving the optocoupler to realize power on/off of external equipment. The maintainability of the server is improved, and the operation and maintenance cost is reduced. The problems that external equipment is damaged and the work of the whole machine is affected due to hot plugging of the server can be effectively solved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a diagram illustrating an exemplary server power down control system;
FIG. 2 is a schematic diagram of a portion of a server power down control system in one embodiment;
FIG. 3 is a diagram of an exemplary system and method for controlling server power outages;
FIG. 4 is a flow diagram of a server power down control method in one embodiment;
FIG. 5 is a logical diagram of a server power down control method in one embodiment;
FIG. 6 is a diagram illustrating an internal structure of a computer device according to an embodiment.
The labels in the figure are as follows:
the system comprises a server power-off control system 100, a baseboard management controller BMC1, a complex programmable logic device CPLD2, a communication control unit 3, an optical coupling switch external unit 4, a server 10, a mobile terminal 20, an IO interface 21, an external device 30, a Bluetooth module 31, an optical coupler 41, a light emitting diode 411, a phototransistor 412, a first power supply 42, a second power supply 43, a metal-oxide semiconductor field effect transistor MOSFET44, a peripheral interface 45, a first resistor R1, a second resistor R2, a third resistor R3, a fourth resistor R4 and a capacitor C.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
As described in the background art, the conventional server hot plug adopts a hot plug management chip to implement hot plug, and the hot plug is still under the root of the hot plug management chip or under the live operation, so that the influence on the high-power peripheral storage device cannot be ignored, and the storage device may be damaged and data may be lost if the storage device is in a working state.
In order to avoid the problems that the hot plug mode of the hot plug management chip is a live-line operation, which can cause damage to the peripheral storage device and data loss, the embodiment of the invention creatively provides a server power-off control system, and the communication control unit (preferably a Bluetooth module) and the optical coupling isolation mode are added on the server to realize the peripheral hot plug function.
In one embodiment, as shown in fig. 1 and 2, there is provided a server power-off control system 100, including: the system comprises a substrate management controller BMC1, a complex programmable logic device CPLD2, a communication control unit 3 and an optical coupling switch external unit 4.
Specifically, as shown in fig. 1, fig. 2, and fig. 3, the CPLD2 and the BMC1 are electrically connected to each other; the complex programmable logic device CPLD2 is connected with the substrate management controller BMC1 through an I2C bus, and SCL \ SDA signal line communication can be realized, wherein SDA is a bidirectional data line, and SCL \ SDA is a signal line of the I2C bus. The communication control unit 3 is connected to the BMC1 and is capable of interconnecting with the mobile terminal 20. One end of the optocoupler switch external unit 4 is connected to the IO interface 21 of the complex programmable logic device CPLD2, and the other end thereof is connected to the external device 30; when the communication control unit 3 receives a power-off instruction sent by the mobile terminal 20, and the power-off instruction is transmitted to the complex programmable logic device CPLD2 through the baseboard management controller BMC1, the complex programmable logic device CPLD2 controls the IO interface 21 to be in a high-resistance state, so as to control the optocoupler switch external connection unit 4 to be in a non-conduction state, so that the external device 30 (referred to as a peripheral device in the figure for short) is in a complete power-off state.
In this embodiment, as shown in fig. 1, the communication control unit 3 includes a bluetooth module 31, and the bluetooth module 31 is connected to the BMC1 through an asynchronous transfer interface UART; the external device 30 includes a storage device. The UART is called Universal Asynchronous receiver transmitter, and the Chinese means Universal Asynchronous receiver transmitter. The UART is an asynchronous transmission interface, does not need a clock line, and carries out data identification through a start bit, a stop bit and a baud rate. Two signal lines: RX (receive) and TX (transmit), with check bits for error detection, at a lower transmission rate. It converts data to be transmitted between serial communication and parallel communication. As a chip for converting a parallel input signal into a serial output signal, a UART is usually integrated on the connection of other communication interfaces. In this embodiment, the BMC1 is used as a bridge, the bluetooth module 31 is added, and the mobile terminal 20 sends an instruction to control the CPLD2 to go up and down to implement a hot plug function, so that the external device 30 is in a completely powered off state.
It is understood that the communication control unit 3 may also comprise other communication modules.
As shown in fig. 1 and fig. 2, in the present embodiment, the optocoupler switch external connection unit 4 includes an optocoupler 41. The photo coupler 41 includes a light emitting diode 411 and a photo transistor 412 arranged side by side; the anode pin of the light emitting diode 411 is connected to a first power supply 42 (referred to as power supply 1 in the figure), and the cathode pin of the light emitting diode 411 is connected to the IO interface 21 of the CPLD2; the gate of the phototransistor 412 receives the light emitted from the light emitting diode 411, the emitter of the phototransistor 412 is grounded, and the collector of the phototransistor 412 is connected to the second power supply 43 (abbreviated as power supply 2 in the figure) and the external device 30.
In this embodiment, the phototransistor 412 comprises a PMOS transistor; the collector of the phototransistor 412 is connected to the second power supply 43 and then to a metal-oxide semiconductor field effect transistor MOSFET44, and the metal-oxide semiconductor field effect transistor MOSFET44 is connected to the external device 30 through a peripheral interface 45.
The Metal-Oxide-Semiconductor Field Effect Transistor MOSFET44, referred to as a Metal-Oxide-Semiconductor Field-Effect Transistor (MOSFET), is a Field-Effect Transistor (Field-Effect Transistor) that can be widely used in analog circuits and digital circuits. MOSFETs are classified into "N-type" and "P-type" types according to their "channel" (working carrier) polarities, and are also commonly referred to as NMOSFETs and PMOSFETs, and other types include NMOS and PMOS for short.
As shown in fig. 2, in the present embodiment, the MOSFET44 is an N-type MOSFET, a gate of the N-type MOSFET is connected to a collector of the phototransistor 412, a drain of the N-type MOSFET is connected to the second power supply 43, a source of the N-type MOSFET is connected to the peripheral interface 45, and the peripheral interface 45 is grounded and can be connected to the external device 30.
As shown in fig. 2, in the present embodiment, the collector of the phototransistor 412 is connected to the second power supply 43 through a third resistor R3, and the collector of the phototransistor 412 is connected to the gate of the N-type MOSFET through a fourth resistor R4.
As shown in fig. 2, in the present embodiment, the anode pin of the light emitting diode 411 is connected to the first power supply 42 through a first resistor R1; a branch formed by connecting a second resistor R2 and a capacitor C in parallel is further connected between the negative electrode pin of the light emitting diode 411 and the positive electrode pin of the light emitting diode 411.
When the server 10 and the external device 30 normally operate, the communication control unit 3 is in an off state, the IO interface 21 of the CPLD2 is in a low configuration, the current of the first power supply 42 is communicated with the IO interface 21 through the light emitting diode 411, the light emitted by the light emitting diode 411, the gate of the phototransistor 412 receives the light emitted by the light emitting diode 411, the light activates the connection between the collector and the emitter of the phototransistor 412 to turn on the second power supply 43, the current of the second power supply 43 enables the external interface 45 to be powered on through the metal-oxide semiconductor field effect transistor MOSFET44, and the external interface 45 is connected with the external device 30 to supply power to the external device 30.
The design of the invention is based on background control of an original server, alarm information is prompted to background operation and maintenance personnel through the Bluetooth module 31 and the mobile terminal 20 through the BMC1 when a system is in fault or needs online maintenance, at the moment, the Bluetooth module 31 is opened, the operation and maintenance personnel can carry the mobile terminal 20 to enter a machine room, a power-off instruction of the module to be maintained is sent after the Bluetooth of the server is connected, the BMC1 controls the IO interface 21 of the CPLD2 to gradually reduce the driving capability of the IO interface 21 until the power-off instruction is in a high-resistance state, at the moment, the PMOS is gradually changed from conduction to non-conduction, and the peripheral is powered off. If the external device 30 is a storage device, the data migration may be performed when a power-off instruction is received, and then the power-off operation is performed after the data migration is completed. When the external device 30 is added, since the external device is completely powered off, the mobile terminal 20 only needs to be inserted into the external device 30 to send a device adding instruction, and power on and reset are performed again.
The invention adopts the mode of adding the communication control unit 3 (preferably the Bluetooth module 31) and the optical coupling switch external unit 4 to realize the hot plug of the server 10 and the external equipment 30, the hardware does not need to be changed greatly, a hot plug chip does not need to be used, and firmware development and logic developers add firmware, BMC1 and CPLD2 to make logic modification, thereby greatly reducing the research, development, operation and maintenance cost.
A Bluetooth module 31 is added to a UART interface of the server BMC1, the mobile terminal 20 is connected with Bluetooth to realize interaction with the server 10 during hot plug, and the IO interface 21 of the CPLD2 is used for driving the optocoupler to realize power on/off of the external device 30. The maintainability of the server 10 is improved, and the operation and maintenance cost is reduced. The problems that the external equipment 30 is damaged and the whole machine work is influenced due to hot plugging of the server 10 can be effectively solved.
In the server power-off control system 100, the hot plug between the server 10 and the external device 30 is realized by adding the communication control unit 3 (preferably, the bluetooth module 31) and the optocoupler switch external unit 4, the hardware does not need to be changed greatly, a hot plug chip is not needed, and firmware development and logic development personnel add the firmware, the BMC1 and the CPLD2 to make logic modification, so that the research, development, operation and maintenance costs are greatly reduced. A Bluetooth module 31 is added to a UART interface of the server BMC1, the mobile terminal 20 is connected with Bluetooth to realize interaction with the server 10 during hot plug, and the IO interface 21 of the CPLD2 is used for driving the optocoupler to realize power on/off of the external device 30. The maintainability of the server 10 is improved, and the operation and maintenance cost is reduced. The problems that the external equipment 30 is damaged and the whole machine work is influenced due to hot plugging of the server 10 can be effectively solved.
In one embodiment, there is provided a server power-off control method of the server power-off control system 100 described above, which can be applied to the application environment shown in fig. 3. Wherein the mobile terminal 20 communicates with the server 10 through a network. The mobile terminal 20 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and may be connected to the communication control unit 3 and send a power-off command to the communication control unit 3. The server 10 may be implemented as a stand-alone server or as a server cluster consisting of a plurality of servers. The server 10 is connected to a plurality of external devices 30, and the external devices 30 are storage devices.
In one embodiment, as shown in fig. 4 and 5, a server power-off control method is provided, which is described by taking the method as an example applied to the server 10 in fig. 3, and the server power-off control method includes the steps of:
s1, when an external device 30 connected to a server 10 needs to be powered off, a communication control unit 3 on the server 10 is opened, and the communication control unit 3 is interconnected with a mobile terminal 20;
s2, sending a power-off instruction to the communication control unit 3 through the mobile terminal 20;
s3, controlling the communication control unit 3 to transmit the power-off instruction to the complex programmable logic device CPLD2 through the baseboard management controller BMC 1; and
and S4, the complex programmable logic device CPLD2 controls the IO interface 21 to be in a high-resistance state according to the power-off instruction, and the optocoupler switch external unit 4 is controlled to be in a non-conduction state, so that the external equipment 30 is in a complete power-off state.
In this embodiment, the communication control unit 3 includes a bluetooth module 31, and the bluetooth module 31 is connected to the BMC1 through an asynchronous transfer interface UART; the external device 30 includes a storage device.
The external device 30 connected to the server 10 needs to be powered off in the following manner: and monitoring the external device 30 connected to the server 10 in real time, and when the external device 30 fails or needs online maintenance, determining that the external device 30 needs to be powered off.
When the server 10 system is in failure or needs online maintenance, warning information is prompted to background operation and maintenance personnel through the BMC1, the Bluetooth module 31 is opened at the moment, the operation and maintenance personnel can carry the mobile terminal 20 to enter a machine room at the moment, a power-off instruction of the module needing to be maintained is sent after the Bluetooth of the server is connected, the BMC1 receives the instruction and then controls the IO interface 21 of the CPLD2 to gradually reduce the driving capability of the IO interface 21 until the instruction is in a high-resistance state, the PMOS is gradually switched from conduction to non-conduction at the moment, and peripheral equipment is powered off. If the external device 30 is a storage device, the data migration may be performed when a power-off instruction is received, and then the power-off operation is performed after the data migration is completed. When the external device 30 is added, since the external device is completely powered off, the mobile terminal 20 only needs to be inserted into the external device 30, send a device adding instruction, and power on and reset again.
In this embodiment, the optocoupler switch external unit 4 includes: an optocoupler 41 including a light emitting diode 411 and a phototransistor 412 arranged side by side; the anode pin of the light emitting diode 411 is connected to the first power supply 42, and the cathode pin of the light emitting diode 411 is connected to the IO interface 21 of the CPLD2; the gate of the phototransistor 412 receives the light emitted from the light emitting diode 411, the emitter of the phototransistor 412 is grounded, and the collector of the phototransistor 412 is connected to the second power supply 43 and the external device 30.
In this embodiment, the phototransistor 412 comprises a PMOS transistor; the collector of the phototransistor 412 is connected to the second power supply 43 and then to a metal-oxide semiconductor field effect transistor MOSFET44, and the metal-oxide semiconductor field effect transistor MOSFET44 is connected to the external device 30 through a peripheral interface 45.
The Metal-Oxide-Semiconductor Field Effect Transistor MOSFET44, referred to as a Metal-Oxide-Semiconductor Field-Effect Transistor (MOSFET), is a Field-Effect Transistor (Field-Effect Transistor) that can be widely used in analog circuits and digital circuits. MOSFETs are classified into "N-type" and "P-type" types according to their "channels" (working carriers) having different polarities, and are also commonly called NMOSFETs and PMOSFETs, which are also called NMOS, PMOS, etc. for short.
In the present embodiment, the MOSFET44 is an N-type MOSFET, a gate of the N-type MOSFET is connected to a collector of the phototransistor 412, a drain of the N-type MOSFET is connected to the second power supply 43, a source of the N-type MOSFET is connected to the peripheral interface 45, and the peripheral interface 45 is grounded and can be connected to the external device 30.
In this embodiment, the collector of the phototransistor 412 is connected to the second power supply 43 through a third resistor R3, and the collector of the phototransistor 412 is connected to the gate of the N-type MOSFET through a fourth resistor R4.
In this embodiment, the positive pin of the led 411 is connected to the first power supply 42 through a first resistor R1; a branch formed by connecting a second resistor R2 and a capacitor C in parallel is further connected between the negative electrode pin of the light emitting diode 411 and the positive electrode pin of the light emitting diode 411.
When the server 10 and the external device 30 normally operate, the communication control unit 3 is in an off state, the IO interface 21 of the CPLD2 is in a low configuration, the current of the first power supply 42 is communicated with the IO interface 21 through the light emitting diode 411, the light emitted by the light emitting diode 411, the gate of the phototransistor 412 receives the light emitted by the light emitting diode 411, the light activates the connection between the collector and the emitter of the phototransistor 412 to turn on the second power supply 43, the current of the second power supply 43 enables the external interface 45 to be powered on through the metal-oxide semiconductor field effect transistor MOSFET44, and the external interface 45 is connected with the external device 30 to supply power to the external device 30.
In the server power-off control method, the hot plug of the server 10 and the external device 30 is realized by adding the communication control unit 3 (preferably, the Bluetooth module 31) and the optical coupling switch external unit 4, hardware does not need to be changed greatly, a hot plug chip is not needed, and firmware development and logic developers add firmware, the BMC1 and the CPLD2 to perform logic modification, so that the research, development, operation and maintenance cost is greatly reduced. A bluetooth module 31 is added to a UART interface of the server BMC1, the mobile terminal 20 is connected to bluetooth to realize interaction with the server 10 when hot plugging is performed, and the IO interface 21 of the CPLD2 is used to drive an optocoupler to realize power on/off of the external device 30. The maintainability of the server 10 is improved, and the operation and maintenance cost is reduced. The problems that the external equipment 30 is damaged and the whole machine work is influenced due to hot plugging of the server 10 can be effectively solved.
For specific limitations of the server power failure control method, reference may be made to the above limitations of the server power failure control system 100, which are not described herein again.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 6. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operating system and the computer program to run on the non-volatile storage medium. The database of the computer device is used for storing server power-off control method data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a server power-off control method.
Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, there is provided a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
when external equipment connected to a server needs to be powered off, a communication control unit on the server is opened, and the communication control unit is interconnected with the mobile terminal;
sending a power-off instruction to the communication control unit through the mobile terminal;
controlling the communication control unit to transmit the power-off instruction to the complex programmable logic device CPLD through the baseboard management controller BMC; and
and the complex programmable logic device CPLD controls the IO interface to be in a high-resistance state according to the power-off instruction, and the optocoupler switch external unit is controlled to be in a non-conduction state, so that the external equipment is in a complete power-off state.
For specific limitations of the steps implemented when the processor executes the computer program, reference may be made to the above limitations of the server power-off control method, which is not described herein again.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
when external equipment connected to a server needs to be powered off, a communication control unit on the server is opened, and the communication control unit is interconnected with the mobile terminal;
sending a power-off instruction to the communication control unit through the mobile terminal;
controlling the communication control unit to transmit the power-off instruction to the complex programmable logic device CPLD through the baseboard management controller BMC; and
and the complex programmable logic device CPLD controls the IO interface to be in a high-resistance state according to the power-off instruction, and the optocoupler switch external unit is controlled to be in a non-conduction state, so that the external equipment is in a complete power-off state.
For specific limitations of the steps implemented when the computer program is executed by the processor, reference may be made to the above limitations of the server power-off control method, which will not be described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), rambus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is specific and detailed, but not to be understood as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (10)
1. A server power-off control system, comprising:
a baseboard management controller BMC;
the complex programmable logic device CPLD is electrically connected with the baseboard management controller BMC;
the communication control unit is connected to the baseboard management controller BMC and can be interconnected with the mobile terminal; and
one end of the optocoupler switch external unit is connected to an IO interface of the complex programmable logic device CPLD, and the other end of the optocoupler switch external unit is connected to external equipment; when the communication control unit receives a power-off instruction sent by the mobile terminal, the power-off instruction is transmitted to the complex programmable logic device CPLD through the baseboard management controller BMC, and the complex programmable logic device CPLD controls the IO interface to be in a high-resistance state so as to control the optocoupler switch external unit to be in a non-conduction state, so that the external equipment is in a complete power-off state.
2. The server power-off control system of claim 1, wherein the communication control unit comprises a bluetooth module, and the bluetooth module is connected with the BMC through an asynchronous transfer interface UART; the external device includes a storage device.
3. The server power-off control system according to claim 1, wherein the opto-coupler switch external unit comprises:
an optocoupler including a light emitting diode and a phototransistor arranged side by side; the positive pin of the light emitting diode is connected to a first power supply, and the negative pin of the light emitting diode is connected to the IO interface of the complex programmable logic device CPLD; the grid electrode of the photosensitive transistor receives the light emitted by the light emitting diode, the emitting electrode of the photosensitive transistor is grounded, and the collecting electrode of the photosensitive transistor is connected to a second power supply and the external equipment.
4. The server power down control system of claim 3, wherein the photo transistor comprises a PMOS transistor; and the collector electrode of the photosensitive transistor is connected with the second power supply and then is also connected with a metal-oxide semiconductor field effect transistor MOSFET, and the metal-oxide semiconductor field effect transistor MOSFET is connected with the external equipment through an external interface.
5. The server power down control system of claim 4, wherein the metal-oxide semiconductor field effect transistor MOSFET is an N-type MOSFET, a gate of the N-type MOSFET is connected to a collector of the phototransistor, a drain of the N-type MOSFET is connected to the second power supply, a source of the N-type MOSFET is connected to the peripheral interface, and the peripheral interface is grounded and connectable to the external device.
6. The server power down control system of claim 5, wherein a collector of the phototransistor is coupled to the second power source through a third resistor R3 and a collector of the phototransistor is coupled to a gate of the N-type MOSFET through a fourth resistor R4.
7. The server power-off control system according to claim 3,
the positive pin of the light emitting diode is connected to a first power supply through a first resistor R1;
and a branch formed by connecting a second resistor R2 and a capacitor C in parallel is also connected between the negative electrode pin of the light-emitting diode and the positive electrode pin of the light-emitting diode.
8. A server power-off control method of the server power-off control system according to any one of claims 1 to 7, comprising the steps of:
when external equipment connected to a server needs to be powered off, a communication control unit on the server is opened, and the communication control unit is interconnected with the mobile terminal;
sending a power-off instruction to the communication control unit through the mobile terminal;
controlling the communication control unit to transmit the power-off command to the complex programmable logic device CPLD through the baseboard management controller BMC; and
and the complex programmable logic device CPLD controls the IO interface to be in a high-resistance state according to the power-off instruction, and the optocoupler switch external unit is controlled to be in a non-conduction state, so that the external equipment is in a complete power-off state.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the steps of the method of claim 8 are performed when the computer program is executed by the processor.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method as claimed in claim 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211308504.0A CN115599190A (en) | 2022-10-25 | 2022-10-25 | Server power-off control system, method, computer device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211308504.0A CN115599190A (en) | 2022-10-25 | 2022-10-25 | Server power-off control system, method, computer device and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115599190A true CN115599190A (en) | 2023-01-13 |
Family
ID=84849466
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211308504.0A Pending CN115599190A (en) | 2022-10-25 | 2022-10-25 | Server power-off control system, method, computer device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115599190A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117674020A (en) * | 2024-01-31 | 2024-03-08 | 苏州元脑智能科技有限公司 | Overcurrent protection circuit and method for server, server and storage medium |
-
2022
- 2022-10-25 CN CN202211308504.0A patent/CN115599190A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117674020A (en) * | 2024-01-31 | 2024-03-08 | 苏州元脑智能科技有限公司 | Overcurrent protection circuit and method for server, server and storage medium |
CN117674020B (en) * | 2024-01-31 | 2024-04-26 | 苏州元脑智能科技有限公司 | Overcurrent protection circuit and method for server, server and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112154578B (en) | Voltage protection for universal serial bus type-C (USB-C) connector systems | |
CN112154400B (en) | USB-C power architecture supporting active cable and DFP/UFP/DRP applications | |
CN111837312B (en) | Programmable gate driver control in USB power delivery | |
CN107368441B (en) | Configurable and power optimization integrated grid driver and Type-C SoC for USB transmission of electricity | |
US20210224214A1 (en) | System and method for improving switching efficiency of double network card ncsi management system | |
DE112019002151T5 (en) | POWER CONTROL AND PROTECTION FOR UNIVERSAL SERIAL BUS TYPE-C (USB-C) CONNECTOR SYSTEMS | |
US10317969B1 (en) | Dynamic VCONN swapping in dual-powered type-C cable applications | |
TWI754588B (en) | System for transmitting power to a remote poe subsystem by forwarding pd input voltage and manufacturing method, using method, and non-transitory program storage device readable by a computing device of the same | |
CN112088472B (en) | Double-interface switching circuit and Type-C concentrator | |
CN110708121A (en) | Optical module and control method thereof | |
CN115599190A (en) | Server power-off control system, method, computer device and storage medium | |
CN108628792B (en) | Communication interface current leakage prevention system and method | |
JP2010055474A (en) | Serial bus system and hung slave reset method | |
CN212435663U (en) | Reset circuit and reset system | |
JP2023502704A (en) | Slave computers, connectors, slave computer assemblies and communication systems | |
CN107731260B (en) | SSD power supply method and system and SSD | |
CN116089333A (en) | USB interface circuit, interface circuit board and electronic equipment | |
CN104932998A (en) | Mainboard | |
CN111400211B (en) | PCIe bus-based communication method and system | |
CN220085382U (en) | Artificial intelligence acceleration card and server | |
CN215300646U (en) | Bypass control device | |
CN219758824U (en) | One-to-many asynchronous communication interface debugging device and debugging board | |
CN111142916B (en) | Configuration device and method of flash memory | |
CN220254490U (en) | Low-power-consumption power-on reset circuit and main board | |
CN219800110U (en) | Circuit and device for supplying power from equipment to main equipment |
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 |