CN115102937B - Self-adaptive communication method, device and medium for server power supply - Google Patents

Self-adaptive communication method, device and medium for server power supply Download PDF

Info

Publication number
CN115102937B
CN115102937B CN202210727056.1A CN202210727056A CN115102937B CN 115102937 B CN115102937 B CN 115102937B CN 202210727056 A CN202210727056 A CN 202210727056A CN 115102937 B CN115102937 B CN 115102937B
Authority
CN
China
Prior art keywords
power supply
bmc
adaptive
protocol
communication device
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
CN202210727056.1A
Other languages
Chinese (zh)
Other versions
CN115102937A (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 CN202210727056.1A priority Critical patent/CN115102937B/en
Publication of CN115102937A publication Critical patent/CN115102937A/en
Application granted granted Critical
Publication of CN115102937B publication Critical patent/CN115102937B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/06Notations for structuring of protocol data, e.g. abstract syntax notation one [ASN.1]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/26Special purpose or proprietary protocols or architectures
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Communication Control (AREA)

Abstract

The application discloses a server power supply self-adaptive communication method, equipment and medium, and relates to the technical field of computers. The method is applied to a server comprising an adaptive communication device, wherein the adaptive communication device is connected with each power supply and the BMC. The method comprises the steps of selecting a communication protocol according to a protocol value by transmitting register information containing the protocol value of the communication protocol to a power supply; and receiving data transmitted by the power supply according to the communication protocol and transmitting the data to the BMC. According to the scheme, the mode of direct communication between the power supply and the BMC is improved, the self-adaptive communication device is additionally arranged between the power supply and the BMC, the secondary communication control between the power supply and the BMC is realized, and the protocol value of the communication protocol is transmitted to the power supply, so that the power supply can acquire the communication protocol according to the protocol value, and the communication between the power supply and the BMC is realized. The BMC structure does not need to be changed any more, different communication protocols can be used, complex control logic judgment is adapted, and experience is improved.

Description

Self-adaptive communication method, device and medium for server power supply
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, and a medium for server power adaptive communication.
Background
The main technical advantages of server power supply (Common Redundant Power Supplies, CRPS) over traditional power supplies are their high reliability and comprehensiveness of fault alerting and protection. Conventional server power supplies typically employ I2C communications based on a power management bus (Power Management Bus, PMbus) communication protocol. However, with the differentiated use of the server, the continuously improved functional requirements and the new instruction requirements, the communication customization requirements of each application client for the power supply are gradually increased, and the differences occur in the power supply communication protocols.
The standard PMbus communication between the power supply information of the existing server power supply and the baseboard management controller (Baseboard Management Controller, BMC) only can realize some basic information transmission, if more complex control logic is needed or a new register is added, the BMC is needed to respond to program adjustment and upgrade, if the power supply of a different platform or protocol is replaced, the BMC is needed to carry out large adjustment, and the adjustment is not suitable for the platform design of the BMC.
In view of the above, designing a server power supply adaptive communication method is a problem to be solved by those skilled in the art.
Disclosure of Invention
The purpose of the application is to provide a server power supply self-adaptive communication method, equipment and medium, which solve the problems that when complex control logic or a new register is added, a BMC is required to respond to program adjustment and upgrade, and when power supplies of different platforms or protocols are replaced, the BMC is required to carry out large adjustment.
In order to solve the technical problems, the application provides a server power supply self-adaptive communication method which is applied to a server comprising a self-adaptive communication device, wherein the self-adaptive communication device is connected with each power supply and a BMC (baseboard management controller) and is used for switching a communication protocol of the power supply and transmitting data to the BMC; wherein the adaptive communication device comprises a plurality of communication protocols; the method comprises the following steps:
transmitting register information containing the protocol value of the communication protocol to the power supply for the power supply to select the communication protocol according to the protocol value;
receiving data transmitted by the power supply according to the communication protocol;
and transmitting the data to the BMC.
Preferably, the server further comprises signal processing means;
the signal processing device is connected with each power supply and the self-adaptive communication device and is used for receiving signals output by the power supplies, processing the signals and transmitting the processed signals to the self-adaptive communication device.
Preferably, the method further comprises:
stopping polling the power supply when an abnormal signal of the power supply is detected;
and reading the state information of the power supply, and setting BMC communication stop response or data response using a cache region.
Preferably, the method further comprises:
reading black box data of the power supply when an abnormal signal of the power supply is detected;
and calling fault information in a buffer area of the power supply before abnormality so as to be convenient for the BMC to read and analyze.
Preferably, the method further comprises:
when the information of the power supply is acquired for the first time, if the change of the power supply is not detected, data refreshing is carried out according to a preset period so as to reduce the polling rate;
when the real-time data is acquired, the polling rate is increased, and the real-time data is acquired for a plurality of times and averaged.
Preferably, the method further comprises:
when the power supply needs to be upgraded, the information reading and processing functions of the power supply are turned off;
and transmitting the program burnt by the BMC to the power supply to be upgraded.
Preferably, the method further comprises:
and when the abnormal signal of the power supply is detected, transmitting fault information to the CPLD through an input/output interface.
In order to solve the technical problems, the application also provides a server, which comprises a power supply, a BMC and an adaptive communication device; wherein the adaptive communication device comprises a plurality of communication protocols;
the self-adaptive communication device is used for transmitting register information containing the protocol value of the communication protocol to the power supply so as to be used for the power supply to select the communication protocol according to the protocol value;
the power supply is used for transmitting data to the self-adaptive communication device according to the selected communication protocol;
the BMC is used for receiving the data transmitted by the adaptive communication device.
Preferably, the server further comprises signal processing means;
the signal processing device is connected with each power supply and the self-adaptive communication device and is used for receiving signals output by the power supplies, processing the signals and transmitting the processed signals to the self-adaptive communication device.
Preferably, the system also comprises a rapid interrupt protection processing module;
the rapid interrupt protection processing module is used for stopping polling the power supply when detecting an abnormal signal of the power supply; and reading the state information of the power supply and setting BMC communication stop response or buffer data response.
Preferably, the system further comprises a black box data storage module;
the black box data storage module is used for reading black box data of the power supply when an abnormal signal of the power supply is detected; and calling fault information in a buffer area of the power supply before abnormality so as to be convenient for the BMC to read and analyze.
Preferably, the system further comprises a data cache processing module;
the data cache processing module is used for refreshing data according to a preset period to reduce the polling rate if the change of the power supply is not detected when the information of the power supply is acquired for the first time; when the real-time data is acquired, the polling rate is increased, and the real-time data is acquired for a plurality of times and averaged.
Preferably, the system further comprises an upgrade update module;
the upgrade updating module is used for turning off the information reading and processing functions of the power supply when the power supply needs to be upgraded; and transmitting the program burnt by the BMC to the power supply to be upgraded.
Preferably, the device further comprises a transmission module;
and the transmission module is used for transmitting fault information to the CPLD through an input/output interface when the abnormal signal of the power supply is detected.
In order to solve the above technical problem, the present application further provides a server power supply adaptive communication device, including:
a memory for storing a computer program;
and the processor is used for realizing the steps of the server power supply self-adaptive communication method when executing the computer program.
In order to solve the above technical problem, the present application further provides a computer readable storage medium, where a computer program is stored on the computer readable storage medium, and the steps of the server power supply adaptive communication method are implemented when the computer program is executed by a processor.
The self-adaptive communication method for the server power supply is applied to a server comprising the self-adaptive communication device, wherein the self-adaptive communication device is connected with each power supply and the BMC and is used for switching the communication protocol of the power supply and transmitting data to the BMC. The adaptive communication device comprises a plurality of communication protocols. The method comprises the following steps: transmitting register information containing protocol values of the communication protocol to the power supply for the power supply to select the communication protocol according to the protocol values; receiving data transmitted by a power supply according to a communication protocol; data is transferred to the BMC. Therefore, according to the scheme, the self-adaptive communication device is added between the power supply and the BMC through improving the design mode of direct communication between the power supply and the BMC, the two-stage communication control between the power supply and the BMC is realized, the protocol value of the communication protocol in the self-adaptive communication device is transmitted to the power supply, so that the power supply can acquire the communication protocol according to the protocol value, and data generated according to the communication protocol is transmitted to the BMC through the self-adaptive communication device. The BMC structure does not need to be changed any more, different communication protocols can be used, complex control logic judgment is adapted, and experience is improved.
In addition, the embodiment of the application also provides server power supply self-adaptive communication equipment and a computer readable storage medium, and the effects are the same as the above.
Drawings
For a clearer description of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described, it being apparent that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a server power adaptive communication method according to an embodiment of the present application;
fig. 2 is a schematic diagram of connection between the adaptive communication device and a power supply and a BMC according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an adaptive communication device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a server according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a server power adaptive communication device according to an embodiment of the present application.
Detailed Description
The following description of the technical solutions in the embodiments of the present application will be made clearly and completely with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments herein without making any inventive effort are intended to fall within the scope of the present application.
The core of the application is to provide a server power supply self-adaptive communication method, equipment and medium.
In order to provide a better understanding of the present application, those skilled in the art will now make further details of the present application with reference to the drawings and detailed description.
Currently, software communication interaction between a server power supply and a BMC is mainly based on a standard PMbus communication protocol, and addresses and data formats of power supply information registers in the protocol are well defined. However, as application and reliability requirements become more complex, the address and information formats of the original PMbus registers gradually change and adjust. For example, the addition of some customization information requires re-adding registers, the format data length defined by the register information is insufficient, and the new adding function and the like all require adding registers or adjusting register addresses and data formats. The BMC is required to make corresponding adjustment when any function increment and adjustment which is not defined by the PMbus occurs, and under the condition that more complex calculation judgment logic is required for executing some new functions, resources of the BMC are occupied to influence the overall communication and processing speed. Therefore, in order to solve the above-mentioned problems, the embodiments of the present application provide a server power supply adaptive communication method. Fig. 1 is a flowchart of a server power adaptive communication method according to an embodiment of the present application. The method is applied to a server comprising an adaptive communication device, wherein the adaptive communication device is connected with each power supply and the BMC, and is used for switching the communication protocol of the power supply and transmitting data to the BMC; wherein the self-adaptive communication device comprises a plurality of communication protocols; as shown in fig. 1, the method includes:
s10: transmitting register information containing protocol values of the communication protocol to the power supply for the power supply to select the communication protocol according to the protocol values;
s11: receiving data transmitted by a power supply according to a communication protocol;
s12: data is transferred to the BMC.
Since any function increase and adjustment not defined by PMbus occurs before, the BMC is required to make a corresponding adjustment, so in order to not occupy the resources of the BMC under the condition of executing the calculation decision logic which needs to be more complex, in this embodiment, the server is newly added with an adaptive communication device. Fig. 2 is a schematic diagram of connection between the adaptive communication device and a power supply and a BMC according to an embodiment of the present application. As shown in fig. 2, the adaptive communication device is disposed in the server, connected to each power supply and the BMC, and configured to switch a communication protocol of the power supply and transmit data to the BMC. Fig. 3 is a schematic structural diagram of an adaptive communication device according to an embodiment of the present application. As shown in fig. 3, the adaptive communication device may be implemented by a digital signal processing (Digital Signal Processing, DSP) single-chip microcomputer or other single-chip microcomputer with similar specifications, which is not limited in this embodiment; only an I2C communication line is reserved between the BMC and the BMC, so that basic information reading and polling are realized; and 3.3V power supply is performed through the server main board, and a software module in the self-adaptive communication device is used for realizing corresponding functions.
Specifically, in order to realize switching of a communication protocol of a power supply and transmitting data to a BMC, the server power supply adaptive communication method provided in the embodiment of the present application is applied to an adaptive communication device, and is specifically applied to a multi-protocol communication compatible module serving as a software module. The multi-protocol communication compatible module edits various power supply communication protocols, and the function requires the power supply to add protocol codes of each design protocol by selecting the used communication protocol from the protocol values of the power supply added communication protocol. For example, if a communication protocol is newly added, the corresponding protocol name is needed to be taken for the newly added protocol, and the register information of the original pmbuss 1.2 communication protocol is synchronously replaced by the protocol name. And the multi-protocol communication compatible module polls and confirms the communication protocol codes of all power supplies when the power is on each time, so that the analysis is confirmed according to what protocol. Therefore, in this embodiment, the power supply can select the communication protocol according to the protocol value by transmitting the register information including the protocol value of the communication protocol to the power supply; after the communication protocol used by the power supply is determined, the data transmitted by the power supply according to the communication protocol is received and transmitted to the BMC, so that the communication between the power supply and the BMC is realized.
It should be noted that when the power supply selects the communication protocol, pmbus1.2 is used as default for analysis; if analysis fails, the power supply can try to analyze by using other existing protocols, so that effective identification of data can be realized for different communication protocols, the data is converted into a format which can be uniformly identified by the BMC, and data transmission with the BMC is realized.
In this embodiment, the server power supply adaptive communication method is applied to a server including an adaptive communication device, where the adaptive communication device is connected to each power supply and the BMC, and is used to switch a communication protocol of the power supply and transmit data to the BMC. The adaptive communication device comprises a plurality of communication protocols. The method comprises the following steps: transmitting register information containing protocol values of the communication protocol to the power supply for the power supply to select the communication protocol according to the protocol values; receiving data transmitted by a power supply according to a communication protocol; data is transferred to the BMC. Therefore, according to the scheme, the self-adaptive communication device is added between the power supply and the BMC through improving the design mode of direct communication between the power supply and the BMC, the two-stage communication control between the power supply and the BMC is realized, the protocol value of the communication protocol in the self-adaptive communication device is transmitted to the power supply, so that the power supply can acquire the communication protocol according to the protocol value, and data generated according to the communication protocol is transmitted to the BMC through the self-adaptive communication device. The BMC structure does not need to be changed any more, different communication protocols can be used, complex control logic judgment is adapted, and experience is improved.
As shown in fig. 3, as a preferred embodiment, the server further comprises signal processing means;
the signal processing device is connected with each power supply and the self-adaptive communication device and is used for receiving signals output by the power supplies, processing the signals and transmitting the processed signals to the self-adaptive communication device.
Because the adaptive communication device is used for switching the communication protocol of the power supply and transmitting data to the BMC, in order to improve the transmission quality of the data signal, the signal needs to be protected and processed. The signal processing device is mainly responsible for processing protection signals and communication signals output by the power supply, and is used for receiving signals output by the power supply and processing the signals through connecting the power supply and the self-adaptive communication device, and transmitting the processed signals to the self-adaptive communication device. The signal processing mainly comprises signal pull-up and pull-down, signal isolation, electrostatic discharge (ESD) protection and signal filtering processing. As shown in fig. 3, the present signal represents a power supply on-bit signal; the alert signal is an alarm signal, and can be pulled down when the power supply is over-temperature and over-current; the pwok signal is an output indication signal, defaults to high, and is pulled down when the power supply output is abnormal; the vin_good signal is a power supply input voltage indication signal.
In this embodiment, the server further includes a signal processing device; the signal processing device is connected with each power supply and the self-adaptive communication device and is used for receiving and processing signals output by the power supply and transmitting the processed signals to the self-adaptive communication device, so that the processing of protection signals and communication signals output by the power supply is realized.
During the running process of the server, some power protection signals need to be rapidly interrupted, but the BMC itself needs to be designed to consider information polling and processing of all components except the power supply, which results in that the rapid protection signals of the power supply and complex control logic judgment cannot be responded in time, so that the effectiveness of functions is reduced. Thus, to solve this problem, the server power adaptive communication method further includes:
stopping polling the power supply when an abnormal signal of the power supply is detected;
and reading the state information of the power supply and setting BMC communication stop response or buffer data response.
As shown in fig. 3, the above steps are implemented by a fast interrupt protection processing module in the adaptive communication device. Specifically, the quick interrupt protection processing module mainly solves the problem that the original BMC polling period is long and cannot process the power supply quick protection signal quickly. When detecting abnormal signals such as an Alert signal of a power supply, the power supply polling function is turned off, state word information of the power supply and information data of the power supply, which need to be collected for different fault manifestations, are read at the first time, and a communication part with the BMC is set to be unresponsive or responds by using buffer data. Thus, the self-adaptive communication device realizes the function of autonomous control communication under the fault state.
In addition, the filtering processing can be performed on some signal noise through the rapid interrupt protection processing module, so that the time of fault response is adjusted.
In this embodiment, when an abnormal signal of the power supply is detected, the fast interrupt protection processing module of the adaptive communication device stops polling the power supply; and reading the state information of the power supply and setting BMC communication stop response or buffer data response, thereby realizing the autonomous control communication function under the fault state.
As a preferred embodiment, the server power adaptive communication method further includes:
reading black box data of the power supply when an abnormal signal of the power supply is detected;
and calling fault information in a buffer area of the power supply before abnormality so as to facilitate the BMC to read and analyze.
As shown in fig. 3, the above steps are implemented by a black box data storage module in the adaptive communication device. Specifically, the black box data storage module is mainly used for storing and reading black box data of a power supply after detecting that an abnormal or power failure occurs in a signal output by the power supply, and calling fault information of a power supply information buffer area before a problem occurs, so that independent data reading and analysis of the BMC are facilitated.
In this embodiment, when an abnormal signal of the power supply is detected, the black box data storage module of the adaptive communication device reads the black box data of the power supply; and calling fault information in a buffer area of the power supply before abnormality so as to facilitate the BMC to read and analyze. The information collection and the cache of the fault state are realized, and the traceability of the fault information is improved.
As a preferred embodiment, the server power adaptive communication method further includes:
when the information of the power supply is acquired for the first time, if the change of the power supply is not detected, data refreshing is carried out according to a preset period so as to reduce the polling rate;
when the real-time data is acquired, the polling rate is increased, and the real-time data is acquired for a plurality of times and averaged.
As shown in fig. 3, the above steps are implemented by a data buffer processing module in the adaptive communication device. Specifically, the data caching and processing module mainly realizes abnormal transmission of non-change data information and accuracy of real-time data. Taking the name of the power supply as an example, after the data cache processing module reads the name information of the power supply for the first time, if the power supply change or the bit information change is not recognized, the data information cannot be refreshed in real time, only the data refresh of a preset period is performed, the polling frequency is reduced, the polling rate is reduced, and meanwhile, the effectiveness of the information is ensured. In this embodiment, the preset period is not limited, and depends on the specific implementation.
And aiming at real-time data, the data caching and processing module can improve the polling rate and perform quick polling. Considering that the polling period of the BMC is longer, the method of collecting and averaging the real-time data for multiple times can be adopted, so that the stability of the data is ensured.
In addition, when abnormal failure of data occurs, the data in the data cache processing module can be synchronously recorded to the black box data storage module, so that multiple groups of data before a fault state can be recorded.
In this embodiment, when the information of the power supply is acquired for the first time, if the data cache processing module in the adaptive communication device does not detect that the power supply of the power supply changes, the data cache processing module performs data refreshing according to a preset period, so as to reduce the polling rate and ensure the validity of the information; when the real-time data is acquired, the polling rate is increased, the real-time data is acquired for multiple times and the average value is taken, so that the stability of the data is ensured.
As a preferred embodiment, the server power adaptive communication method further includes:
when the power supply needs to be upgraded, the information reading and processing functions of the power supply are turned off;
and transmitting the program burnt by the BMC to a power supply to be upgraded.
As shown in fig. 3, the above steps are implemented by an upgrade update module in the adaptive communication device. Specifically, the upgrade update module mainly realizes the program burning and online upgrade functions of the software, and the program burning can be performed through a burning pin. And after the first burning is finished, the burning of each module in the self-adaptive communication device is carried out from the system end through SDA and SCL communication pins of the BMC.
In addition, the upgrade update module also comprises a switching function of PSU online upgrade burning. When the on-line upgrading mode of the power supply is entered, the self-adaptive communication device can close the conventional power supply information reading and processing functions, only data transfer transmission is performed, and a program burnt by the BMC is directly jumped to a power supply module to be upgraded.
In this embodiment, when the power supply needs to be upgraded, an upgrade update module in the adaptive communication device turns off the information reading and processing functions of the power supply; and transmitting the program burnt by the BMC to a power supply to be upgraded, thereby realizing the upgrading of the power supply.
As a preferred embodiment, the server power adaptive communication method further includes:
when an abnormal signal of the power supply is detected, fault information is transmitted to the CPLD through the input/output interface.
It can be understood that in the above embodiment, the fast interrupt protection processing module can turn off the power supply polling function when the power supply fails, read the status word information of the power supply and the information data of the power supply that need to be collected for different fault manifestations at the first time, and set the communication part with the BMC to be non-responsive or respond by using the cache data. In order to further reduce the influence of the power failure, when an abnormal signal of the power is detected, failure information is transmitted to CPLD (Complex Programmable Logic Device) through the input-output interface.
It will be appreciated that the adaptive communication device reserves a functional I/O interface as shown in fig. 3. The corresponding I/O can be set according to the fault condition to feed back the fault condition to the CPLD or other components so that the CPLD or other components can perform corresponding processing according to the fault condition.
In this embodiment, the adaptive communication device reserves a functional I/O interface, and when an abnormal signal of the power supply is detected, fault information is transmitted to the CPLD through the I/O interface, so that the CPLD performs corresponding processing according to the fault condition.
In the above embodiments, the server power adaptive communication method is described in detail, and the present application further provides corresponding embodiments of the server and the server power adaptive communication device.
Fig. 4 is a schematic structural diagram of a server according to an embodiment of the present application. As shown in fig. 4, the server includes a power supply 10, a BMC12, and an adaptive communication device 11; wherein the adaptive communication device 11 comprises a plurality of communication protocols;
the adaptive communication device 11 is configured to transmit register information including a protocol value of a communication protocol to the power supply, so that the power supply selects the communication protocol according to the protocol value;
the power supply 10 is used for transmitting data to the adaptive communication device according to the selected communication protocol;
the BMC12 is configured to receive data transmitted by the adaptive communication device.
As a preferred embodiment, the server further comprises signal processing means;
the signal processing device is connected with each power supply and the self-adaptive communication device and is used for receiving signals output by the power supplies, processing the signals and transmitting the processed signals to the self-adaptive communication device.
As a preferred embodiment, the system further comprises a fast interrupt protection processing module;
the rapid interrupt protection processing module is used for stopping polling the power supply when detecting an abnormal signal of the power supply; and reading the state information of the power supply and setting BMC communication stop response or buffer data response.
As a preferred embodiment, further comprising a black box data storage module;
the black box data storage module is used for reading black box data of the power supply when an abnormal signal of the power supply is detected; and calling fault information in a buffer area of the power supply before abnormality so as to facilitate the BMC to read and analyze.
As a preferred embodiment, the device further comprises a data cache processing module;
the data cache processing module is used for refreshing data according to a preset period to reduce the polling rate if the change of the power supply is not detected when the information of the power supply is acquired for the first time; when the real-time data is acquired, the polling rate is increased, and the real-time data is acquired for a plurality of times and averaged.
As a preferred embodiment, the system further comprises an upgrade update module;
the upgrade updating module is used for turning off the information reading and processing functions of the power supply when the power supply needs to be upgraded; and transmitting the program burnt by the BMC to a power supply to be upgraded.
As a preferred embodiment, the device further comprises a transmission module;
the transmission module is used for transmitting fault information to the CPLD through the input/output interface when the abnormal signal of the power supply is detected.
The server provided by the embodiment comprises a power supply, a BMC and an adaptive communication device. The self-adaptive communication device is used for transmitting register information containing protocol values of a communication protocol to the power supply so as to be used for the power supply to select the communication protocol according to the protocol values; the power supply is used for transmitting data to the self-adaptive communication device according to the selected communication protocol; the BMC is used for receiving data transmitted by the adaptive communication device. Therefore, according to the scheme, the self-adaptive communication device is added between the power supply and the BMC through improving the design mode of direct communication between the power supply and the BMC, the two-stage communication control between the power supply and the BMC is realized, the protocol value of the communication protocol in the self-adaptive communication device is transmitted to the power supply, so that the power supply can acquire the communication protocol according to the protocol value, and data generated according to the communication protocol is transmitted to the BMC through the self-adaptive communication device. The BMC structure does not need to be changed any more, different communication protocols can be used, complex control logic judgment is adapted, and experience is improved.
Fig. 5 is a schematic structural diagram of a server power supply adaptive communication device according to an embodiment of the present application, where, as shown in fig. 5, the server power supply adaptive communication device includes:
a memory 20 for storing a computer program;
a processor 21 for implementing the steps of the server power-adaptive communication method as mentioned in the above embodiments when executing a computer program.
The server power supply adaptive communication device provided in this embodiment may include, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, or the like.
Processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 may be implemented in hardware in at least one of a digital signal processor (Digital Signal Processor, DSP), a Field programmable gate array (Field-Programmable Gate Array, FPGA), a programmable logic array (Programmable Logic Array, PLA). The processor 21 may also comprise a main processor, which is a processor for processing data in an awake state, also called central processor (Central Processing Unit, CPU), and a coprocessor; a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 21 may be integrated with a graphics processor (Graphics Processing Unit, GPU) for use in connection with rendering and rendering of content to be displayed by the display screen. In some embodiments, the processor 21 may also include an artificial intelligence (Artificial Intelligence, AI) processor for processing computing operations related to machine learning.
Memory 20 may include one or more computer-readable storage media, which may be non-transitory. Memory 20 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used for storing a computer program 201, where the computer program can implement the relevant steps of the server power adaptive communication method disclosed in any of the foregoing embodiments after being loaded and executed by the processor 21. In addition, the resources stored in the memory 20 may further include an operating system 202, data 203, and the like, where the storage manner may be transient storage or permanent storage. The operating system 202 may include Windows, unix, linux, among others. The data 203 may include, but is not limited to, data related to a server power adaptive communication method.
In some embodiments, the server power adaptive communication device may further include a display 22, an input/output interface 23, a communication interface 24, a power supply 25, and a communication bus 26.
Those skilled in the art will appreciate that the architecture shown in fig. 5 is not limiting of a server power-adaptive communication device and may include more or fewer components than shown.
The server power supply adaptive communication device provided in the embodiment includes a memory and a processor. Wherein the processor is configured to implement the steps of the server power adaptive communication method as mentioned in the above embodiments when executing the computer program. The method comprises the steps of selecting a communication protocol according to a protocol value by transmitting register information containing the protocol value of the communication protocol to a power supply; receiving data transmitted by a power supply according to a communication protocol; data is transferred to the BMC. Therefore, according to the scheme, the self-adaptive communication device is added between the power supply and the BMC through improving the design mode of direct communication between the power supply and the BMC, the two-stage communication control between the power supply and the BMC is realized, the protocol value of the communication protocol in the self-adaptive communication device is transmitted to the power supply, so that the power supply can acquire the communication protocol according to the protocol value, and data generated according to the communication protocol is transmitted to the BMC through the self-adaptive communication device. The BMC structure does not need to be changed any more, different communication protocols can be used, complex control logic judgment is adapted, and experience is improved.
Finally, the present application also provides a corresponding embodiment of the computer readable storage medium. The computer-readable storage medium has stored thereon a computer program which, when executed by a processor, performs the steps as described in the method embodiments above.
It will be appreciated that the methods of the above embodiments, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored on a computer readable storage medium. With such understanding, the technical solution of the present application, or a part contributing to the prior art or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium, performing all or part of the steps of the method described in the various embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The computer readable storage medium provided in this embodiment stores a computer program, which when executed by a processor, implements the steps described in the method embodiments above. The method comprises the steps of selecting a communication protocol according to a protocol value by transmitting register information containing the protocol value of the communication protocol to a power supply; receiving data transmitted by a power supply according to a communication protocol; data is transferred to the BMC. Therefore, according to the scheme, the self-adaptive communication device is added between the power supply and the BMC through improving the design mode of direct communication between the power supply and the BMC, the two-stage communication control between the power supply and the BMC is realized, the protocol value of the communication protocol in the self-adaptive communication device is transmitted to the power supply, so that the power supply can acquire the communication protocol according to the protocol value, and data generated according to the communication protocol is transmitted to the BMC through the self-adaptive communication device. The BMC structure does not need to be changed any more, different communication protocols can be used, complex control logic judgment is adapted, and experience is improved.
The method, the device and the medium for server power supply self-adaptive communication are described in detail. In the description, each embodiment is described in a progressive manner, and each embodiment is mainly described by the differences from other embodiments, so that the same similar parts among the embodiments are mutually referred. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section. It should be noted that it would be obvious to those skilled in the art that various improvements and modifications can be made to the present application without departing from the principles of the present application, and such improvements and modifications fall within the scope of the claims of the present application.
It should also be noted that in this specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. The self-adaptive communication method of the server power supply is characterized by being applied to a server comprising a self-adaptive communication device, wherein the self-adaptive communication device is connected with each power supply and a BMC, and is used for switching the communication protocol of the power supply and transmitting data to the BMC; the self-adaptive communication device comprises a plurality of communication protocols, and each power supply is polled and confirmed when the self-adaptive communication device is electrified each time; the method comprises the following steps:
transmitting register information containing the protocol value of the communication protocol to the power supply for the power supply to select the communication protocol according to the protocol value; wherein the power supply is provided with the communication protocol codes of a plurality of communication protocols;
receiving data transmitted by the power supply according to the communication protocol;
and transmitting the data to the BMC.
2. The server power-adaptive communication method according to claim 1, wherein the server further comprises a signal processing device;
the signal processing device is connected with each power supply and the self-adaptive communication device and is used for receiving signals output by the power supplies, processing the signals and transmitting the processed signals to the self-adaptive communication device.
3. The server power-adaptive communication method according to claim 1, further comprising:
stopping polling the power supply when an abnormal signal of the power supply is detected;
and reading the state information of the power supply, and setting BMC communication stop response or data response using a cache region.
4. The server power-adaptive communication method according to claim 1, further comprising:
reading black box data of the power supply when an abnormal signal of the power supply is detected;
and calling fault information in a buffer area of the power supply before abnormality so as to be convenient for the BMC to read and analyze.
5. The server power-adaptive communication method according to claim 1, further comprising:
when the information of the power supply is acquired for the first time, if the change of the power supply is not detected, data refreshing is carried out according to a preset period so as to reduce the polling rate;
when the real-time data is acquired, the polling rate is increased, and the real-time data is acquired for a plurality of times and averaged.
6. The server power-adaptive communication method according to any one of claims 1 to 5, further comprising:
when the power supply needs to be upgraded, the information reading and processing functions of the power supply are turned off;
and transmitting the program burnt by the BMC to the power supply to be upgraded.
7. The server power-adaptive communication method according to claim 3, further comprising:
and when the abnormal signal of the power supply is detected, transmitting fault information to the CPLD through an input/output interface.
8. A server, comprising a power supply, a BMC and an adaptive communication device; the self-adaptive communication device is connected with each power supply and the BMC, and is used for switching the communication protocol of the power supply and transmitting data to the BMC; the self-adaptive communication device comprises a plurality of communication protocols, and each power supply is polled and confirmed to be a communication protocol code when the self-adaptive communication device is electrified;
the self-adaptive communication device is used for transmitting register information containing the protocol value of the communication protocol to the power supply so as to be used for the power supply to select the communication protocol according to the protocol value; wherein the power supply is provided with the communication protocol codes of a plurality of communication protocols;
the power supply is used for transmitting data to the self-adaptive communication device according to the selected communication protocol;
the BMC is used for receiving the data transmitted by the adaptive communication device.
9. A server power-adaptive communication device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the server power-adaptive communication method according to any one of claims 1 to 7 when executing said computer program.
10. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the server power-adaptive communication method according to any of claims 1 to 7.
CN202210727056.1A 2022-06-24 2022-06-24 Self-adaptive communication method, device and medium for server power supply Active CN115102937B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210727056.1A CN115102937B (en) 2022-06-24 2022-06-24 Self-adaptive communication method, device and medium for server power supply

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210727056.1A CN115102937B (en) 2022-06-24 2022-06-24 Self-adaptive communication method, device and medium for server power supply

Publications (2)

Publication Number Publication Date
CN115102937A CN115102937A (en) 2022-09-23
CN115102937B true CN115102937B (en) 2023-06-16

Family

ID=83292952

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210727056.1A Active CN115102937B (en) 2022-06-24 2022-06-24 Self-adaptive communication method, device and medium for server power supply

Country Status (1)

Country Link
CN (1) CN115102937B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116719403B (en) * 2023-08-08 2024-02-09 苏州浪潮智能科技有限公司 Method, device, equipment and medium for repairing abnormal state of VR power supply

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109271273A (en) * 2018-10-15 2019-01-25 郑州云海信息技术有限公司 A kind of method, abnormal restoring equipment and storage medium that communication abnormality restores
CN110489369A (en) * 2018-05-14 2019-11-22 美商安迈科技股份有限公司 The management method and system of multiple server units
CN110825204A (en) * 2019-11-06 2020-02-21 深圳宝龙达信创科技股份有限公司 Mainboard of electronic equipment and power supply information management method
CN114625234A (en) * 2022-03-30 2022-06-14 苏州浪潮智能科技有限公司 Server voltage monitoring method, device and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11316904B2 (en) * 2019-04-25 2022-04-26 Super Micro Computer, Inc. Network switches with secured switch ports to baseboard management controllers

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110489369A (en) * 2018-05-14 2019-11-22 美商安迈科技股份有限公司 The management method and system of multiple server units
CN109271273A (en) * 2018-10-15 2019-01-25 郑州云海信息技术有限公司 A kind of method, abnormal restoring equipment and storage medium that communication abnormality restores
CN110825204A (en) * 2019-11-06 2020-02-21 深圳宝龙达信创科技股份有限公司 Mainboard of electronic equipment and power supply information management method
CN114625234A (en) * 2022-03-30 2022-06-14 苏州浪潮智能科技有限公司 Server voltage monitoring method, device and system

Also Published As

Publication number Publication date
CN115102937A (en) 2022-09-23

Similar Documents

Publication Publication Date Title
CN111061587A (en) Communication control method, device, equipment and storage medium of I2C bus
JPH0651802A (en) Programmable controller having backup function
US20160011646A1 (en) Service processor (sp) intiateed data transaction with bios utilizing power off commands
CN115102937B (en) Self-adaptive communication method, device and medium for server power supply
CN116723198A (en) Multi-node server host control method, device, equipment and storage medium
CA1107864A (en) Power confidence system
CN115269474A (en) Server and PCIe hot plug control method, device and medium thereof
CN112667483A (en) Memory information reading device and method for server mainboard and server
CN114936135A (en) Abnormity detection method and device and readable storage medium
CN114461142B (en) Method, system, device and medium for reading and writing Flash data
CN115509333A (en) Server collaborative power-on and power-off device, method, system and medium
CN115098342A (en) System log collection method, system, terminal and storage medium
CN115168141A (en) Optical interface management system, method, device, programmable logic device and storage medium
CN114185720A (en) Method, device, equipment and storage medium for server dynamic hot backup
CN111027104A (en) Method, device and mainboard for preventing loss of network card identification data
CN111399871A (en) System updating method, device, equipment and medium for HBA card
CN101562007A (en) Display control device capable of automatically updating firmware and update method thereof
CN110647435A (en) Server, hard disk remote control method and control assembly
CN117472289B (en) Storage configuration adjustment method, device, system, equipment and medium of server
CN116302754A (en) Solid state disk detection method, system, device and storage medium
CN114153303B (en) Power consumption control system, power consumption control method, device and medium
CN114153388B (en) Hard disk system, hard disk configuration information refreshing method, device and medium
CN111404741B (en) Configuration method, configuration device and configuration equipment for data center machine room management network
CN107220553A (en) The device and control chip of the content stored in a kind of protection BIOS chips
CN114676085B (en) CCIX bus control method, device and medium

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
GR01 Patent grant
GR01 Patent grant