[go: up one dir, main page]

CN115102937B - A server power adaptive communication method, device and medium - Google Patents

A server power adaptive communication method, device and medium 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
communication device
protocol
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

一种服务器电源自适应通讯方法、设备及介质A server power adaptive communication method, device and medium

技术领域technical field

本申请涉及计算机技术领域,特别是涉及一种服务器电源自适应通讯方法、设备及介质。The present application relates to the field of computer technology, in particular to a server power adaptive communication method, device and medium.

背景技术Background technique

服务器电源(Common Redundant Power Supplies,CRPS)与传统电源的主要技术优势在于其高可靠性及故障告警和保护的全面性。常规的服务器电源一般会采用基于电源管理总线(Power Management Bus,PMbus)通讯协议的I2C通讯。但是随着服务器使用的差异化和不断提升的功能性要求以及新的指令要求,各个应用客户针对电源的通讯定制化需求逐渐增加,在电源通讯协议上出现差异。The main technical advantages of server power supplies (Common Redundant Power Supplies, CRPS) and traditional power supplies lie in their high reliability and comprehensive fault warning and protection. A conventional server power supply generally adopts I2C communication based on a power management bus (PMbus) communication protocol. However, with the differentiation of server use and the increasing functional requirements and new command requirements, the communication customization needs of various application customers for power supplies are gradually increasing, and there are differences in power supply communication protocols.

现有的服务器电源的电源信息与基板管理控制器(Baseboard ManagementController,BMC)的标准PMbus通讯只是能实现一些基本信息的传递,如果需要更加复杂的控制逻辑或者增加新的寄存器就需要BMC进行响应的程序调整和升级,如果更换不同平台或者协议的电源就需要BMC进行大的调整,这种调整不适合BMC的平台化设计。The standard PMbus communication between the power supply information of the existing server power supply and the Baseboard Management Controller (BMC) can only realize the transmission of some basic information. If more complex control logic or new registers are required, the BMC needs to respond. For program adjustment and upgrade, if the power supply of different platforms or protocols is replaced, the BMC needs to make major adjustments. This adjustment is not suitable for the platform design of the BMC.

鉴于上述问题,设计一种服务器电源自适应通讯方法,是该领域技术人员亟待解决的问题。In view of the above problems, designing a server power adaptive communication method is an urgent problem to be solved by those skilled in the art.

发明内容Contents of the invention

本申请的目的是提供一种服务器电源自适应通讯方法、设备及介质,解决在复杂的控制逻辑或者增加新的寄存器时,需要BMC进行响应的程序调整和升级,更换不同平台或者协议的电源时,需要BMC进行大的调整的问题。The purpose of this application is to provide a self-adaptive communication method, device and medium for server power supply, to solve the problem of program adjustment and upgrade that require BMC to respond when complex control logic or adding new registers, and when replacing power supplies of different platforms or protocols , A problem that requires BMC to make major adjustments.

为解决上述技术问题,本申请提供一种服务器电源自适应通讯方法,应用于包含自适应通讯装置的服务器,所述自适应通讯装置与各电源和BMC连接,用于切换所述电源的通讯协议并传输数据至所述BMC;其中,所述自适应通讯装置中包含多种所述通讯协议;所述方法包括:In order to solve the above technical problems, the present application provides a server power adaptive communication method, which is applied to a server including an adaptive communication device, and the adaptive communication device is connected to each power supply and BMC, and is used to switch the communication protocol of the power supply And transmit data to described BMC; Wherein, comprise multiple described communication protocols in described adaptive communication device; Described method comprises:

传输包含所述通讯协议的协议数值的寄存器信息至所述电源,以用于所述电源根据所述协议数值选取所述通讯协议;transmitting register information including a 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;

将所述数据传输至所述BMC。The data is transmitted to the BMC.

优选地,所述服务器还包括信号处理装置;Preferably, the server further includes a signal processing device;

所述信号处理装置连接各所述电源和所述自适应通讯装置,用于接收所述电源输出的信号并对所述信号进行处理,将处理后的所述信号传输至所述自适应通讯装置。The signal processing device is connected to each of the power sources and the adaptive communication device, and is used to receive the signal output by the power source and process the signal, and transmit the processed signal to the adaptive communication device .

优选地,还包括:Preferably, it also includes:

当检测到所述电源的异常信号时停止轮询所述电源;Stop polling the power supply when an abnormal signal of the power supply is detected;

读取所述电源的状态信息,并设置BMC通讯停止响应或使用缓存区数据应答。Read the status information of the power supply, and set the BMC communication to stop responding or use buffer data to reply.

优选地,还包括:Preferably, it also includes:

当检测到所述电源的异常信号时读取所述电源的黑盒数据;reading the black box data of the power supply when an abnormal signal of the power supply is detected;

调取异常前所述电源的缓冲区中的故障信息,以便于所述BMC进行读取和解析。The fault information in the buffer of the power supply before the exception is retrieved, so that the BMC can read and analyze it.

优选地,还包括:Preferably, it also includes:

当首次获取所述电源的信息时,若未检测到所述电源供电发生变化,则根据预设周期进行数据刷新,以降低轮询速率;When acquiring the information of the power supply for the first time, if no change in the power supply of the power supply is detected, the data is refreshed according to a preset period to reduce the polling rate;

当获取到实时数据时,则提高轮询速率,对所述实时数据进行多次采集并取平均值。When the real-time data is obtained, the polling rate is increased, and the real-time data is collected multiple times and averaged.

优选地,还包括:Preferably, it also includes:

当所述电源需要升级时,关闭所述电源的信息读取和处理功能;When the power supply needs to be upgraded, turn off the information reading and processing functions of the power supply;

将所述BMC烧录的程序传输至需要升级的所述电源。Transfer the program burned by the BMC to the power supply that needs to be upgraded.

优选地,还包括:Preferably, it also includes:

当检测到所述电源的所述异常信号时,通过输入输出接口传输故障信息至CPLD。When the abnormal signal of the power supply is detected, the fault information is transmitted to the CPLD through the input and output interface.

为解决上述技术问题,本申请还提供一种服务器,包括电源、BMC和自适应通讯装置;其中,所述自适应通讯装置中包含多种通讯协议;In order to solve the above technical problems, the present application also provides a server, including a power supply, a BMC, and an adaptive communication device; wherein, the adaptive communication device includes multiple communication protocols;

所述自适应通讯装置用于传输包含所述通讯协议的协议数值的寄存器信息至所述电源,以用于所述电源根据所述协议数值选取所述通讯协议;The adaptive communication device is used to transmit register information including the protocol value of the communication protocol to the power supply, so that the power supply can select the communication protocol according to the protocol value;

所述电源用于根据选取的所述通讯协议传输数据至所述自适应通讯装置;The power supply is used to transmit data to the adaptive communication device according to the selected communication protocol;

所述BMC用于接收所述自适应通讯装置传输的所述数据。The BMC is used to receive the data transmitted by the adaptive communication device.

优选地,所述服务器还包括信号处理装置;Preferably, the server further includes a signal processing device;

所述信号处理装置连接各所述电源和所述自适应通讯装置,用于接收所述电源输出的信号并对所述信号进行处理,将处理后的所述信号传输至所述自适应通讯装置。The signal processing device is connected to each of the power sources and the adaptive communication device, and is used to receive the signal output by the power source and process the signal, and transmit the processed signal to the adaptive communication device .

优选地,还包括快速中断保护处理模块;Preferably, it also includes a fast interrupt protection processing module;

所述快速中断保护处理模块用于当检测到所述电源的异常信号时停止轮询所述电源;读取所述电源的状态信息并设置BMC通讯停止响应或使用缓存区数据应答。The fast interrupt protection processing module is used to stop polling the power supply when detecting the abnormal signal of the power supply; read the status information of the power supply and set the BMC communication to stop responding or use buffer data to respond.

优选地,还包括黑盒数据存储模块;Preferably, it also includes a black box data storage module;

所述黑盒数据存储模块用于当检测到所述电源的异常信号时读取所述电源的黑盒数据;调取异常前所述电源的缓冲区中的故障信息,以便于所述BMC进行读取和解析。The black box data storage module is used to read the black box data of the power supply when detecting the abnormal signal of the power supply; recall the fault information in the buffer of the power supply before the abnormality, so that the BMC can carry out read and parse.

优选地,还包括数据缓存处理模块;Preferably, a data cache processing module is also included;

所述数据缓存处理模块用于当首次获取所述电源的信息时,若未检测到所述电源供电发生变化,则根据预设周期进行数据刷新,以降低轮询速率;当获取到实时数据时,则提高轮询速率,对所述实时数据进行多次采集并取平均值。The data cache processing module is used to refresh the data according to the preset cycle to reduce the polling rate if no change in the power supply of the power supply is detected when acquiring the information of the power supply for the first time; when the real-time data is acquired , the polling rate is increased, and the real-time data is collected multiple times and averaged.

优选地,还包括升级更新模块;Preferably, an upgrade update module is also included;

所述升级更新模块用于当所述电源需要升级时,关闭所述电源的信息读取和处理功能;将所述BMC烧录的程序传输至需要升级的所述电源。The upgrade update module is used to turn off the information reading and processing functions of the power supply when the power supply needs to be upgraded; and transmit the program burned by the BMC to the power supply that needs to be upgraded.

优选地,还包括传输模块;Preferably, a transmission module is also included;

所述传输模块用于当检测到所述电源的所述异常信号时,通过输入输出接口传输故障信息至CPLD。The transmission module is configured to transmit fault information to the CPLD through an input and output interface when the abnormal signal of the power supply is detected.

为解决上述技术问题,本申请还提供一种服务器电源自适应通讯设备,包括:In order to solve the above technical problems, this application also provides a server power adaptive communication device, including:

存储器,用于存储计算机程序;memory for storing computer programs;

处理器,用于执行所述计算机程序时实现上述的服务器电源自适应通讯方法的步骤。The processor is configured to implement the steps of the above server power adaptive communication method when executing the computer program.

为解决上述技术问题,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现上述的服务器电源自适应通讯方法的步骤。In order to solve the above-mentioned technical problems, the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned server power adaptive communication method is realized. step.

本申请所提供的服务器电源自适应通讯方法,应用于包含自适应通讯装置的服务器,自适应通讯装置与各电源和BMC连接,用于切换电源的通讯协议并传输数据至BMC。其中,自适应通讯装置中包含多种通讯协议。方法具体为:传输包含通讯协议的协议数值的寄存器信息至电源,以用于电源根据协议数值选取通讯协议;接收电源根据通讯协议传输的数据;将数据传输至BMC。由此可知,上述方案通过改善电源与BMC直接通讯的设计方式,在电源与BMC之间增加了自适应通讯装置,实现了电源与BMC之间的二级通讯控制,通过将自适应通讯装置中通讯协议的协议数值传输至电源,从而使电源能够根据到协议数值获取到通讯协议,并将根据通讯协议生成的数据通过自适应通讯装置传输至BMC。不再需要更改BMC的结构,能够实现不同通讯协议的使用并适应复杂的控制逻辑判定,提高了体验感。The server power adaptive communication method provided in this application is applied to a server including an adaptive communication device. The adaptive communication device is connected to each power supply and BMC, and is used to switch the communication protocol of the power supply and transmit data to the BMC. Wherein, the self-adaptive communication device includes multiple communication protocols. The method specifically includes: transmitting the register information including 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 the data transmitted by the power supply according to the communication protocol; and transmitting the data to the BMC. It can be seen that the above scheme improves the design method of direct communication between the power supply and BMC, and adds an adaptive communication device between the power supply and BMC to realize the secondary communication control between the power supply and BMC. The protocol value of the communication protocol is transmitted to the power supply, so that the power supply can obtain the communication protocol according to the protocol value, and transmit the data generated according to the communication protocol to the BMC through the adaptive communication device. It is no longer necessary to change the structure of the BMC, and it can realize the use of different communication protocols and adapt to complex control logic judgments, which improves the sense of experience.

此外,本申请实施例还提供了一种服务器电源自适应通讯设备及计算机可读存储介质,效果同上。In addition, the embodiment of the present application also provides a server power adaptive communication device and a computer-readable storage medium, which have the same effects as above.

附图说明Description of drawings

为了更清楚地说明本申请实施例,下面将对实施例中所需要使用的附图做简单的介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the embodiments of the present application more clearly, the following will briefly introduce the accompanying drawings used in the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present application. As far as people are concerned, other drawings can also be obtained based on these drawings on the premise of not paying creative work.

图1为本申请实施例提供的一种服务器电源自适应通讯方法的流程图;FIG. 1 is a flow chart of a server power adaptive communication method provided by an embodiment of the present application;

图2为本申请实施例提供的自适应通讯装置与电源和BMC连接示意图;FIG. 2 is a schematic diagram of the connection between the adaptive communication device and the power supply and BMC provided by the embodiment of the present application;

图3为本申请实施例提供的一种自适应通讯装置的结构示意图;FIG. 3 is a schematic structural diagram of an adaptive communication device provided by an embodiment of the present application;

图4为本申请实施例提供的一种服务器的结构示意图;FIG. 4 is a schematic structural diagram of a server provided by an embodiment of the present application;

图5为本申请实施例提供的服务器电源自适应通讯设备的结构示意图。FIG. 5 is a schematic structural diagram of a server power adaptive communication device provided by an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下,所获得的所有其他实施例,都属于本申请保护范围。The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of this application.

本申请的核心是提供一种服务器电源自适应通讯方法、设备及介质。The core of the present application is to provide a server power adaptive communication method, equipment and medium.

为了使本技术领域的人员更好地理解本申请方案,下面结合附图和具体实施方式对本申请作进一步的详细说明。In order to enable those skilled in the art to better understand the solution of the present application, the present application will be further described in detail below in conjunction with the drawings and specific implementation methods.

目前,服务器电源与BMC的软件通讯交互主要基于标准的PMbus通讯协议,协议中针对电源信息寄存器的地址和数据格式都是明确定义的。但是随着应用和可靠性要求越来越复杂,原有的PMbus寄存器的地址和信息格式逐渐出现变化和调整。例如一些定制化信息的加入需要重新增加寄存器,寄存器信息定义的格式数据长度不够,新增功能等都需要增加寄存器,或者调整寄存器地址、数据格式。发生任何非PMbus定义的功能增加和调整就需要BMC做出相应的调整,一些新功能的执行需要较为复杂的计算判定逻辑的情况下,就会占用BMC的资源影响整体通讯和处理速度。因此,为了解决上述问题,本申请实施例提供了一种服务器电源自适应通讯方法。图1为本申请实施例提供的一种服务器电源自适应通讯方法的流程图。方法应用于包含自适应通讯装置的服务器,自适应通讯装置与各电源和BMC连接,用于切换电源的通讯协议并传输数据至BMC;其中,自适应通讯装置中包含多种通讯协议;如图1所示,方法包括:At present, the software communication interaction between the server power supply and the BMC is mainly based on the standard PMbus communication protocol, in which the address and data format of the power supply information register are clearly defined. However, as the application and reliability requirements become more and more complex, the addresses and information formats of the original PMbus registers are gradually changed and adjusted. For example, the addition of some customized information needs to add registers again, the format data length defined by the register information is not enough, and new functions need to add registers, or adjust the register address and data format. Any addition and adjustment of functions not defined by PMbus will require BMC to make corresponding adjustments. When the execution of some new functions requires more complex calculation and decision logic, BMC resources will be occupied and the overall communication and processing speed will be affected. Therefore, in order to solve the above problems, an embodiment of the present application provides a server power adaptive communication method. FIG. 1 is a flow chart of a server power adaptive communication method provided by an embodiment of the present application. The method is applied to a server including an adaptive communication device, and the adaptive communication device is connected to each power supply and BMC, and is used to switch the communication protocol of the power supply and transmit data to the BMC; wherein, the adaptive communication device includes multiple communication protocols; as shown in the figure 1, methods include:

S10:传输包含通讯协议的协议数值的寄存器信息至电源,以用于电源根据协议数值选取通讯协议;S10: transmit the register information including the protocol value of the communication protocol to the power supply, so that the power supply selects the communication protocol according to the protocol value;

S11:接收电源根据通讯协议传输的数据;S11: receiving the data transmitted by the power supply according to the communication protocol;

S12:将数据传输至BMC。S12: Transmit data to BMC.

由于此前发生任何非PMbus定义的功能增加和调整就需要BMC做出相应的调整,因此为了在执行需要较为复杂的计算判定逻辑的情况下不占用BMC的资源,在本实施例中,服务器新增了自适应通讯装置。图2为本申请实施例提供的自适应通讯装置与电源和BMC连接示意图。如图2所示,自适应通讯装置设置于服务器中,与各电源和BMC连接,用于切换电源的通讯协议并传输数据至BMC。图3为本申请实施例提供的一种自适应通讯装置的结构示意图。如图3所示,自适应通讯装置可以由数字信号处理(Digital Signal Processing,DSP)单片机或其他类似规格的单片机实现,在本实施例中不做限制;与BMC之间只保留I2C通讯线,实现基本的信息读取和轮询;通过服务器主板进行3.3V供电,自适应通讯装置中的软件模块用于实现相应功能。Since any function additions and adjustments not defined by PMbus before require BMC to make corresponding adjustments, so in order not to occupy BMC resources in the case of executing complex calculation and decision logic, in this embodiment, the server adds adaptive communication device. FIG. 2 is a schematic diagram of connections between an adaptive communication device, a power supply, and a BMC provided by an embodiment of the present application. As shown in FIG. 2 , the adaptive communication device is set in the server, connected with each power supply and BMC, and used for switching the communication protocol of the power supply and transmitting data to the BMC. FIG. 3 is a schematic structural diagram of an adaptive communication device provided by an embodiment of the present application. As shown in Figure 3, the adaptive communication device can be realized by a digital signal processing (Digital Signal Processing, DSP) single-chip microcomputer or other similar specifications of the single-chip microcomputer, which is not limited in this embodiment; only keep the I2C communication line with the BMC, Realize basic information reading and polling; 3.3V power supply is provided through the server motherboard, and the software modules in the self-adaptive communication device are used to realize corresponding functions.

具体地,为了实现切换电源的通讯协议并传输数据至BMC,本申请实施例提供的服务器电源自适应通讯方法应用于自适应通讯装置中,具体应用于作为软件模块的多协议通讯兼容模块。多协议通讯兼容模块将多种电源通讯协议都编辑进去,通过在电源增加通讯协议的协议数值选取使用的通讯协议,该功能需要电源增加每种设计协议的协议代码。例如常规的通讯协议为PMbus1.2,如果新增一种通讯协议,就需要为新增协议取对应的协议名称,并将协议名称同步替换掉原有的PMbus1.2通讯协议的寄存器信息。每次上电时多协议通讯兼容模块会轮询确认各个电源的通讯协议代码,从而确认按照何种协议进行解析。因此在本实施例中,通过传输包含通讯协议的协议数值的寄存器信息至电源,能够使电源根据协议数值选取通讯协议;在确定了电源所使用的通讯协议后,接收电源根据通讯协议传输的数据,并将数据传输至BMC,从而实现了电源与BMC之间的通讯。Specifically, in order to realize the communication protocol of switching the power supply and transmit data to the BMC, the server power supply adaptive communication method provided by the embodiment of the present application is applied to an adaptive communication device, specifically to a multi-protocol communication compatible module as a software module. The multi-protocol communication compatible module edits a variety of power supply communication protocols, and selects the communication protocol used by adding the protocol value of the communication protocol to the power supply. This function requires the power supply to add the protocol code of each design protocol. For example, the conventional communication protocol is PMbus1.2. If a new communication protocol is added, it is necessary to obtain the corresponding protocol name for the new protocol, and replace the register information of the original PMbus1.2 communication protocol with the protocol name synchronously. The multi-protocol communication compatible module will poll to confirm the communication protocol code of each power supply every time it is powered on, so as to confirm which protocol is used for analysis. Therefore, in this embodiment, by transmitting the register information including the protocol value of the communication protocol to the power supply, the power supply can select the communication protocol according to the protocol value; after the communication protocol used by the power supply is determined, the data transmitted by the power supply according to the communication protocol can be received , and transmit the data to the BMC, thereby realizing the communication between the power supply and the BMC.

需要注意的是,在电源选用通讯协议时,默认使用PMbus1.2通讯协议解析;如果出现解析失败,电源会尝试使用已有的其他协议解析,这样针对不同的通讯协议均可以实现到数据的有效识别,并将数据转化为BMC可统一识别的格式,实现与BMC的数据传输。It should be noted that when the communication protocol is selected for the power supply, the PMbus1.2 communication protocol is used for analysis by default; if the analysis fails, the power supply will try to use other existing protocols for analysis, so that data can be effectively realized for different communication protocols. Recognize and convert the data into a format that can be recognized by BMC uniformly to realize data transmission with BMC.

本实施例中,服务器电源自适应通讯方法应用于包含自适应通讯装置的服务器,自适应通讯装置与各电源和BMC连接,用于切换电源的通讯协议并传输数据至BMC。其中,自适应通讯装置中包含多种通讯协议。方法具体为:传输包含通讯协议的协议数值的寄存器信息至电源,以用于电源根据协议数值选取通讯协议;接收电源根据通讯协议传输的数据;将数据传输至BMC。由此可知,上述方案通过改善电源与BMC直接通讯的设计方式,在电源与BMC之间增加了自适应通讯装置,实现了电源与BMC之间的二级通讯控制,通过将自适应通讯装置中通讯协议的协议数值传输至电源,从而使电源能够根据到协议数值获取到通讯协议,并将根据通讯协议生成的数据通过自适应通讯装置传输至BMC。不再需要更改BMC的结构,能够实现不同通讯协议的使用并适应复杂的控制逻辑判定,提高了体验感。In this embodiment, the server power adaptive communication method is applied to a server including an adaptive communication device, and the adaptive communication device is connected to each power supply and BMC for switching the communication protocol of the power supply and transmitting data to the BMC. Wherein, the self-adaptive communication device includes multiple communication protocols. The method specifically includes: transmitting the register information including 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 the data transmitted by the power supply according to the communication protocol; and transmitting the data to the BMC. It can be seen that the above scheme improves the design method of direct communication between the power supply and BMC, and adds an adaptive communication device between the power supply and BMC to realize the secondary communication control between the power supply and BMC. The protocol value of the communication protocol is transmitted to the power supply, so that the power supply can obtain the communication protocol according to the protocol value, and transmit the data generated according to the communication protocol to the BMC through the adaptive communication device. It is no longer necessary to change the structure of the BMC, and it can realize the use of different communication protocols and adapt to complex control logic judgments, which improves the sense of experience.

如图3所示,作为一种优选的实施例,服务器还包括信号处理装置;As shown in Figure 3, as a preferred embodiment, the server further includes a signal processing device;

信号处理装置连接各电源和自适应通讯装置,用于接收电源输出的信号并对信号进行处理,将处理后的信号传输至自适应通讯装置。The signal processing device is connected to each power supply and the adaptive communication device, and is used to receive and process the signal output by the power supply, and transmit the processed signal to the adaptive communication device.

由于自适应通讯装置用于切换电源的通讯协议并传输数据至BMC,为了提高数据信号传输质量,还需要对信号进行保护和处理。信号处理装置主要负责针对电源输出的保护信号以及通讯信号的处理,通过连接各电源和自适应通讯装置,用于接收电源输出的信号并对信号进行处理,将处理后的信号传输至自适应通讯装置。信号处理主要包括信号上下拉、信号隔离,静电释放(Electro-Static discharge,ESD)防护和信号滤波处理。如图3所示,present信号代表电源在位信号;alert信号为告警信号,在电源过温过过流时会拉低;pwok信号为输出指示信号,默认为高,当电源输出异常情况下拉低;Vin_good信号为电源输入电压指示信号。Since the adaptive communication device is used to switch the communication protocol of the power supply and transmit data to the BMC, in order to improve the quality of data signal transmission, it is also necessary to protect and process the signal. The signal processing device is mainly responsible for the processing of the protection signal output by the power supply and the communication signal. By connecting each power supply and the adaptive communication device, it is used to receive the signal output by the power supply and process the signal, and transmit the processed signal to the adaptive communication device. device. Signal processing mainly includes signal pull-up and pull-down, signal isolation, electrostatic discharge (Electro-Static discharge, ESD) protection and signal filtering processing. As shown in Figure 3, the present signal represents the power supply in-position signal; the alert signal is an alarm signal, which will be pulled down when the power supply is over-temperature and over-current; the pwok signal is an output indication signal, which is high by default and pulled down when the power supply output is abnormal ; The Vin_good signal is an indication signal of the power supply input voltage.

本实施例中,服务器还包括信号处理装置;信号处理装置连接各电源和自适应通讯装置,用于接收电源输出的信号并对信号进行处理,将处理后的信号传输至自适应通讯装置,实现了对电源输出的保护信号以及通讯信号的处理。In this embodiment, the server also includes a signal processing device; the signal processing device is connected to each power supply and the adaptive communication device, and is used to receive the signal output by the power supply and process the signal, and transmit the processed signal to the adaptive communication device to realize The protection signal of the power output and the processing of the communication signal are realized.

在服务器运行过程中,一些电源保护信号的处理上需要用到快速中断,但是BMC本身设计需要考虑除电源外所有部件的信息轮询和处理,这导致电源的快速保护信号和复杂的控制逻辑判定无法及时响应,使得功能的有效性降低。因此为了解决这个问题,服务器电源自适应通讯方法还包括:During the operation of the server, some power supply protection signals need to be processed with fast interrupts, but the design of the BMC itself needs to consider the information polling and processing of all components except the power supply, which leads to fast protection signals of the power supply and complex control logic decisions Failure to respond in a timely manner reduces the effectiveness of the function. Therefore, in order to solve this problem, the server power adaptive communication method also includes:

当检测到电源的异常信号时停止轮询电源;Stop polling the power supply when an abnormal signal of the power supply is detected;

读取电源的状态信息并设置BMC通讯停止响应或使用缓存区数据应答。Read the status information of the power supply and set the BMC communication to stop responding or respond with buffer data.

如图3所示,上述步骤由自适应通讯装置中的快速中断保护处理模块实现。具体地,快速中断保护处理模块主要解决原有BMC轮询周期时间长无法针对电源快速保护信号进行快速处理的情况。当检测到电源的Alert信号等信号异常时,会关闭轮询电源功能,第一时间读取电源的状态字信息及针对不同故障表现需要收集的电源的信息数据,并与BMC通讯部分会设置为不响应或者使用缓存区数据进行应答。这样就通过自适应通讯装置实现了故障状态下的自主控制通讯功能。As shown in FIG. 3, the above steps are implemented by the fast interruption protection processing module in the adaptive communication device. Specifically, the fast interrupt protection processing module mainly solves the situation that the original BMC polling cycle is long and cannot quickly process the power fast protection signal. When abnormal signals such as the Alert signal of the power supply are detected, the polling power supply function will be turned off, and the status word information of the power supply and the information data of the power supply that needs to be collected for different fault performances will be read at the first time, and the communication part with the BMC will be set as Either do not respond or reply with buffered data. In this way, the autonomous control communication function under the fault state is realized through the self-adaptive communication device.

此外,针对一些信号噪声也可以通过快速中断保护处理模块进行滤波处理,从而调整故障响应的时间。In addition, some signal noise can also be filtered through the fast interrupt protection processing module, so as to adjust the fault response time.

本实施例中,当检测到电源的异常信号时,自适应通讯装置的快速中断保护处理模块停止轮询电源;读取电源的状态信息并设置BMC通讯停止响应或使用缓存区数据应答,实现了故障状态下的自主控制通讯功能。In this embodiment, when an abnormal signal of the power supply is detected, the fast interrupt protection processing module of the self-adaptive communication device stops polling the power supply; reads the status information of the power supply and sets the BMC communication to stop responding or use buffer data to respond, realizing Autonomous control communication function under fault condition.

作为一种优选的实施例,服务器电源自适应通讯方法还包括:As a preferred embodiment, the server power adaptive communication method further includes:

当检测到电源的异常信号时读取电源的黑盒数据;Read the black box data of the power supply when an abnormal signal of the power supply is detected;

调取异常前电源的缓冲区中的故障信息,以便于BMC进行读取和解析。Call the fault information in the buffer of the power supply before the exception, so that the BMC can read and analyze it.

如图3所示,上述步骤由自适应通讯装置中的黑盒数据存储模块实现。具体地,黑盒数据存储模块主要是在检测到电源输出的信号出现异常或者掉电后,存储读取电源的黑盒数据,并调取问题发生前的电源信息缓冲区的故障信息,以便于BMC单独的数据读取和解析。As shown in Fig. 3, the above steps are realized by the black box data storage module in the adaptive communication device. Specifically, the black box data storage module mainly stores and reads the black box data of the power supply after detecting that the output signal of the power supply is abnormal or the power is lost, and retrieves the fault information of the power supply information buffer before the problem occurs, so that BMC separate data reading and parsing.

本实施例中,当检测到电源的异常信号时,自适应通讯装置的黑盒数据存储模块读取电源的黑盒数据;调取异常前电源的缓冲区中的故障信息,以便于BMC进行读取和解析。实现了故障状态的信息收集和缓存,增加了故障的信息可追溯性。In this embodiment, when an abnormal signal of the power supply is detected, the black box data storage module of the self-adaptive communication device reads the black box data of the power supply; the fault information in the buffer of the power supply before the abnormality is called, so that the BMC can read fetch and parse. The information collection and cache of the fault state are realized, and the traceability of fault information is increased.

作为一种优选的实施例,服务器电源自适应通讯方法还包括:As a preferred embodiment, the server power adaptive communication method further includes:

当首次获取电源的信息时,若未检测到电源供电发生变化,则根据预设周期进行数据刷新,以降低轮询速率;When the information of the power supply is obtained for the first time, if no change in power supply is detected, the data will be refreshed according to the preset cycle to reduce the polling rate;

当获取到实时数据时,则提高轮询速率,对实时数据进行多次采集并取平均值。When the real-time data is obtained, the polling rate is increased, and the real-time data is collected multiple times and averaged.

如图3所示,上述步骤由自适应通讯装置中的数据缓存处理模块实现。具体地,数据缓存及处理模块主要是实现非变化数据信息的异常传输以及实现实时数据的准确性。以电源的名称为例,当数据缓存处理模块在第一次读取到电源名称信息后,如未识别到供电变化或在位信息变化,则不会实时刷新数据信息,只是做预设周期的数据刷新,减少轮询次数,降低轮询速率的同时保证了信息的有效性。本实施例中对于预设周期不做限制,根据具体的实施情况而定。As shown in FIG. 3 , the above steps are implemented by the data cache processing module in the adaptive communication device. Specifically, the data cache and processing module mainly realizes the abnormal transmission of non-changing data information and the accuracy of real-time data. Taking the name of the power supply as an example, when the data cache processing module reads the name information of the power supply for the first time, if it does not recognize the change of the power supply or the change of the on-position information, it will not refresh the data information in real time, but only do the preset cycle Data refresh, reduce the number of polling, and reduce the polling rate while ensuring the validity of the information. In this embodiment, there is no limitation on the preset period, which depends on specific implementation conditions.

而针对实时数据,数据缓存处理模块则会提高轮询速率,进行快速轮询。考虑到BMC的轮询周期较长,可以对实时数据进行多次数据收集取平均值的方式,从而保证数据的稳定性。For real-time data, the data cache processing module will increase the polling rate and perform fast polling. Considering the long polling cycle of BMC, real-time data can be collected multiple times and averaged to ensure data stability.

此外,当发生数据异常失效时,数据缓存处理模块中的数据也会同步记录到黑盒数据存储模块,保证可以记录到故障状态前的多组数据。In addition, when abnormal data failure occurs, the data in the data cache processing module will also be synchronously recorded to the black box data storage module, ensuring that multiple sets of data before the fault state can be recorded.

本实施例中,当首次获取电源的信息时,自适应通讯装置中的数据缓存处理模块若未检测到电源供电发生变化,则根据预设周期进行数据刷新,以降低轮询速率,保证了信息的有效性;当获取到实时数据时,则提高轮询速率,对实时数据进行多次采集并取平均值,保证了数据的稳定性。In this embodiment, when the information of the power source is obtained for the first time, if the data cache processing module in the adaptive communication device does not detect that the power supply has changed, it will refresh the data according to the preset cycle to reduce the polling rate and ensure the information The effectiveness; when the real-time data is obtained, the polling rate is increased, and the real-time data is collected multiple times and averaged to ensure the stability of the data.

作为一种优选的实施例,服务器电源自适应通讯方法还包括:As a preferred embodiment, the server power adaptive communication method further includes:

当电源需要升级时,关闭电源的信息读取和处理功能;When the power supply needs to be upgraded, turn off the information reading and processing functions of the power supply;

将BMC烧录的程序传输至需要升级的电源。Transfer the program burned by BMC to the power supply that needs to be upgraded.

如图3所示,上述步骤由自适应通讯装置中的升级更新模块实现。具体地,升级更新模块主要实现软件的程序烧录和在线升级功能,可通过烧录引脚进行程序烧录。当完成第一次烧录后支持通过BMC的SDA、SCL通讯引脚从系统端执行自适应通讯装置中各模块的烧录。As shown in FIG. 3 , the above steps are implemented by the update module in the self-adaptive communication device. Specifically, the upgrade update module mainly realizes the program burning and online upgrading functions of the software, and the program burning can be performed through the burning pin. After the first programming is completed, it supports the programming of each module in the adaptive communication device from the system side through the SDA and SCL communication pins of the BMC.

此外,升级更新模块也包含PSU在线升级烧录的转接功能。当进入电源的在线升级模式下,自适应通讯装置会关闭常规电源信息读取和处理功能,仅进行数据的中转传输,将BMC烧录的程序直接转跳给需要升级的电源模块。In addition, the upgrade and update module also includes the transfer function of PSU online upgrade and burning. When entering the online upgrade mode of the power supply, the adaptive communication device will turn off the conventional power supply information reading and processing functions, and only perform data transfer and transfer the program programmed by the BMC to the power module that needs to be upgraded.

本实施例中,当电源需要升级时,自适应通讯装置中的升级更新模块关闭电源的信息读取和处理功能;将BMC烧录的程序传输至需要升级的电源,从而实现了电源的升级。In this embodiment, when the power supply needs to be upgraded, the upgrade update module in the self-adaptive communication device closes the information reading and processing functions of the power supply; the program programmed by the BMC is transmitted to the power supply that needs to be upgraded, thereby realizing the upgrade of the power supply.

作为一种优选的实施例,服务器电源自适应通讯方法还包括:As a preferred embodiment, the server power adaptive communication method further includes:

当检测到电源的异常信号时,通过输入输出接口传输故障信息至CPLD。When an abnormal signal of the power supply is detected, the fault information is transmitted to the CPLD through the input and output interface.

可以理解的是,在上述实施例中可知,快速中断保护处理模块能够在电源故障时关闭轮询电源功能,第一时间读取电源的状态字信息及针对不同故障表现需要收集的电源的信息数据,并与BMC通讯部分会设置为不响应或者使用缓存区数据进行应答。而为了进一步减小电源故障产生的影响,在当检测到电源的异常信号时,通过输入输出接口传输故障信息至CPLD(Complex Programmable Logic Device)。It can be understood that, in the above-mentioned embodiments, the fast interrupt protection processing module can turn off the polling power supply function when the power supply fails, and read the status word information of the power supply and the information data of the power supply that needs to be collected for different fault performances at the first time. , and the communication part with the BMC will be set to not respond or use buffer data to respond. In order to further reduce the impact of power failure, when an abnormal signal of the power supply is detected, the failure information is transmitted to the CPLD (Complex Programmable Logic Device) through the input and output interface.

可以理解的是,如图3所示,自适应通讯装置预留了功能I/O接口。可根据故障情况置位对应的I/O将故障情况反馈给CPLD或者其他部件,以便于CPLD或其他部件根据故障情况进行相应的处理。It can be understood that, as shown in FIG. 3 , the adaptive communication device reserves a functional I/O interface. 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.

本实施例中,自适应通讯装置预留了功能I/O接口,当检测到电源的异常信号时,通过I/O接口传输故障信息至CPLD,以便于CPLD根据故障情况进行相应的处理。In this embodiment, the adaptive communication device reserves a functional I/O interface. When an abnormal signal of the power supply is detected, the fault information is transmitted to the CPLD through the I/O interface, so that the CPLD can perform corresponding processing according to the fault situation.

在上述实施例中,对于服务器电源自适应通讯方法进行了详细描述,本申请还提供服务器和服务器电源自适应通讯设备对应的实施例。In the above embodiments, the server power adaptive communication method is described in detail, and the present application also provides corresponding embodiments of the server and the server power adaptive communication device.

图4为本申请实施例提供的一种服务器的结构示意图。如图4所示,服务器包括电源10、BMC12和自适应通讯装置11;其中,所述自适应通讯装置11中包含多种通讯协议;FIG. 4 is a schematic structural diagram of a server provided by an embodiment of the present application. As shown in Figure 4, the server includes a power supply 10, a BMC 12 and an adaptive communication device 11; wherein, the adaptive communication device 11 includes multiple communication protocols;

自适应通讯装置11用于传输包含通讯协议的协议数值的寄存器信息至电源,以用于电源根据协议数值选取通讯协议;The adaptive communication device 11 is used to transmit the register information including the protocol value of the communication protocol to the power supply, so that the power supply can select the communication protocol according to the protocol value;

电源10用于根据选取的通讯协议传输数据至自适应通讯装置;The power supply 10 is used to transmit data to the adaptive communication device according to the selected communication protocol;

BMC12用于接收自适应通讯装置传输的数据。The BMC12 is used for receiving the data transmitted by the adaptive communication device.

作为一种优选的实施例,服务器还包括信号处理装置;As a preferred embodiment, the server further includes a signal processing device;

信号处理装置连接各电源和自适应通讯装置,用于接收电源输出的信号并对信号进行处理,将处理后的信号传输至自适应通讯装置。The signal processing device is connected to each power supply and the adaptive communication device, and is used to receive and process the signal output by the power supply, and transmit the processed signal to the adaptive communication device.

作为一种优选的实施例,还包括快速中断保护处理模块;As a preferred embodiment, it also includes a fast interrupt protection processing module;

快速中断保护处理模块用于当检测到电源的异常信号时停止轮询电源;读取电源的状态信息并设置BMC通讯停止响应或使用缓存区数据应答。The fast interrupt protection processing module is used to stop polling the power supply when an abnormal signal of the power supply is detected; read the status information of the power supply and set the BMC communication to stop responding or use the buffer data to respond.

作为一种优选的实施例,还包括黑盒数据存储模块;As a preferred embodiment, it also includes a black box data storage module;

黑盒数据存储模块用于当检测到电源的异常信号时读取电源的黑盒数据;调取异常前电源的缓冲区中的故障信息,以便于BMC进行读取和解析。The black box data storage module is used to read the black box data of the power supply when an abnormal signal of the power supply is detected; it retrieves the fault information in the buffer of the power supply before the abnormality, so that the BMC can read and analyze it.

作为一种优选的实施例,还包括数据缓存处理模块;As a preferred embodiment, it also includes a data cache processing module;

数据缓存处理模块用于当首次获取电源的信息时,若未检测到电源供电发生变化,则根据预设周期进行数据刷新,以降低轮询速率;当获取到实时数据时,则提高轮询速率,对实时数据进行多次采集并取平均值。The data cache processing module is used to refresh the data according to the preset cycle to reduce the polling rate if no change in the power supply is detected when the power supply information is obtained for the first time; when real-time data is obtained, the polling rate is increased , to collect the real-time data multiple times and take the average value.

作为一种优选的实施例,还包括升级更新模块;As a preferred embodiment, it also includes an upgrade update module;

升级更新模块用于当电源需要升级时,关闭电源的信息读取和处理功能;将BMC烧录的程序传输至需要升级的电源。The upgrade update module is used to read and process the information of the power supply when the power supply needs to be upgraded; it transmits the program burned by the BMC to the power supply that needs to be upgraded.

作为一种优选的实施例,还包括传输模块;As a preferred embodiment, it also includes a transmission module;

传输模块用于当检测到电源的异常信号时,通过输入输出接口传输故障信息至CPLD。The transmission module is used to transmit fault information to the CPLD through the input and output interface when an abnormal signal of the power supply is detected.

本实施例所提供的服务器包括电源、BMC和自适应通讯装置。自适应通讯装置用于传输包含通讯协议的协议数值的寄存器信息至电源,以用于电源根据协议数值选取通讯协议;电源用于根据选取的通讯协议传输数据至自适应通讯装置;BMC用于接收自适应通讯装置传输的数据。由此可知,上述方案通过改善电源与BMC直接通讯的设计方式,在电源与BMC之间增加了自适应通讯装置,实现了电源与BMC之间的二级通讯控制,通过将自适应通讯装置中通讯协议的协议数值传输至电源,从而使电源能够根据到协议数值获取到通讯协议,并将根据通讯协议生成的数据通过自适应通讯装置传输至BMC。不再需要更改BMC的结构,能够实现不同通讯协议的使用并适应复杂的控制逻辑判定,提高了体验感。The server provided in this embodiment includes a power supply, a BMC and an adaptive communication device. The adaptive communication device is used to transmit the register information including 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; the power supply is used to transmit data to the adaptive communication device according to the selected communication protocol; the BMC is used for receiving Data transmitted by an adaptive communication device. It can be seen that the above scheme improves the design method of direct communication between the power supply and BMC, and adds an adaptive communication device between the power supply and BMC to realize the secondary communication control between the power supply and BMC. The protocol value of the communication protocol is transmitted to the power supply, so that the power supply can obtain the communication protocol according to the protocol value, and transmit the data generated according to the communication protocol to the BMC through the adaptive communication device. It is no longer necessary to change the structure of the BMC, and it can realize the use of different communication protocols and adapt to complex control logic judgments, which improves the sense of experience.

图5为本申请实施例提供的服务器电源自适应通讯设备的结构示意图,如图5所示,服务器电源自适应通讯设备包括:Fig. 5 is a schematic structural diagram of the server power adaptive communication device provided by the embodiment of the present application. As shown in Fig. 5, the server power adaptive communication device includes:

存储器20,用于存储计算机程序;memory 20 for storing computer programs;

处理器21,用于执行计算机程序时实现如上述实施例中所提到的服务器电源自适应通讯方法的步骤。The processor 21 is configured to implement the steps of the server power adaptive communication method mentioned in the above-mentioned embodiments when executing the computer program.

本实施例提供的服务器电源自适应通讯设备可以包括但不限于智能手机、平板电脑、笔记本电脑或台式电脑等。The server power adaptive communication device provided in this embodiment may include, but is not limited to, a smart phone, a tablet computer, a notebook computer or a desktop computer, and the like.

其中,处理器21可以包括一个或多个处理核心,比如4核心处理器、8核心处理器等。处理器21可以采用数字信号处理器(Digital Signal Processor,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable LogicArray,PLA)中的至少一种硬件形式来实现。处理器21也可以包括主处理器和协处理器,主处理器是用于对在唤醒状态下的数据进行处理的处理器,也称中央处理器(CentralProcessing Unit,CPU);协处理器是用于对在待机状态下的数据进行处理的低功耗处理器。在一些实施例中,处理器21可以在集成有图形处理器(Graphics Processing Unit,GPU),GPU用于负责显示屏所需要显示的内容的渲染和绘制。一些实施例中,处理器21还可以包括人工智能(Artificial Intelligence,AI)处理器,该AI处理器用于处理有关机器学习的计算操作。Wherein, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. Processor 21 can adopt at least one hardware form in Digital Signal Processor (Digital Signal Processor, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), Programmable Logic Array (Programmable LogicArray, PLA) accomplish. The processor 21 may also include a main processor and a coprocessor, the main processor is a processor for processing data in the wake-up state, and is also called a central processing unit (Central Processing Unit, CPU); Low-power processor for processing data in standby state. In some embodiments, the processor 21 may be integrated with a graphics processing unit (Graphics Processing Unit, GPU), and the GPU is used for rendering and drawing the content that needs to be displayed on the display screen. In some embodiments, the processor 21 may also include an artificial intelligence (AI) processor, and the AI processor is used to process calculation operations related to machine learning.

存储器20可以包括一个或多个计算机可读存储介质,该计算机可读存储介质可以是非暂态的。存储器20还可包括高速随机存取存储器,以及非易失性存储器,比如一个或多个磁盘存储设备、闪存存储设备。本实施例中,存储器20至少用于存储以下计算机程序201,其中,该计算机程序被处理器21加载并执行之后,能够实现前述任一实施例公开的服务器电源自适应通讯方法的相关步骤。另外,存储器20所存储的资源还可以包括操作系统202和数据203等,存储方式可以是短暂存储或者永久存储。其中,操作系统202可以包括Windows、Unix、Linux等。数据203可以包括但不限于服务器电源自适应通讯方法涉及到的数据。Memory 20 may include one or more computer-readable storage media, which may be non-transitory. The memory 20 may also include high-speed random access memory, and 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 to store the following computer program 201, wherein, after the computer program is loaded and executed by the processor 21, the relevant steps of the server power adaptive communication method disclosed in any of the above-mentioned embodiments can be realized. In addition, the resources stored in the memory 20 may also include an operating system 202 and data 203, etc., and the storage method may be temporary storage or permanent storage. Wherein, the operating system 202 may include Windows, Unix, Linux and so on. The data 203 may include but not limited to the data involved in the server power adaptive communication method.

在一些实施例中,服务器电源自适应通讯设备还可包括有显示屏22、输入输出接口23、通信接口24、电源25以及通信总线26。In some embodiments, the server power adaptive communication device may further include a display screen 22 , an input/output interface 23 , a communication interface 24 , a power supply 25 and a communication bus 26 .

本领域技术人员可以理解,图5中示出的结构并不构成对服务器电源自适应通讯设备的限定,可以包括比图示更多或更少的组件。Those skilled in the art can understand that the structure shown in FIG. 5 does not constitute a limitation on the server power adaptive communication device, and may include more or less components than those shown in the figure.

本实施例所提供的服务器电源自适应通讯设备包括存储器和处理器。其中,处理器用于执行计算机程序时实现如上述实施例中所提到的服务器电源自适应通讯方法的步骤。通过传输包含通讯协议的协议数值的寄存器信息至电源,以用于电源根据协议数值选取通讯协议;接收电源根据通讯协议传输的数据;将数据传输至BMC。由此可知,上述方案通过改善电源与BMC直接通讯的设计方式,在电源与BMC之间增加了自适应通讯装置,实现了电源与BMC之间的二级通讯控制,通过将自适应通讯装置中通讯协议的协议数值传输至电源,从而使电源能够根据到协议数值获取到通讯协议,并将根据通讯协议生成的数据通过自适应通讯装置传输至BMC。不再需要更改BMC的结构,能够实现不同通讯协议的使用并适应复杂的控制逻辑判定,提高了体验感。The server power adaptive communication device provided in this embodiment includes a memory and a processor. Wherein, the processor is used to implement the steps of the server power adaptive communication method mentioned in the above-mentioned embodiments when executing the computer program. By transmitting the register information including the protocol value of the communication protocol to the power supply, the power supply selects the communication protocol according to the protocol value; receives the data transmitted by the power supply according to the communication protocol; and transmits the data to the BMC. It can be seen that the above scheme improves the design method of direct communication between the power supply and BMC, and adds an adaptive communication device between the power supply and BMC to realize the secondary communication control between the power supply and BMC. The protocol value of the communication protocol is transmitted to the power supply, so that the power supply can obtain the communication protocol according to the protocol value, and transmit the data generated according to the communication protocol to the BMC through the adaptive communication device. It is no longer necessary to change the structure of the BMC, and it can realize the use of different communication protocols and adapt to complex control logic judgments, which improves the sense of experience.

最后,本申请还提供一种计算机可读存储介质对应的实施例。计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时实现如上述方法实施例中记载的步骤。Finally, the present application also provides an embodiment corresponding to a computer-readable storage medium. A computer program is stored on the computer-readable storage medium, and when the computer program is executed by the processor, the steps described in the above method embodiments are implemented.

可以理解的是,如果上述实施例中的方法以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。It can be understood that if the methods in the above embodiments are implemented in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or part of the contribution to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , executing all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other various media that can store program codes. .

本实施例所提供的计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时实现如上述方法实施例中记载的步骤。通过传输包含通讯协议的协议数值的寄存器信息至电源,以用于电源根据协议数值选取通讯协议;接收电源根据通讯协议传输的数据;将数据传输至BMC。由此可知,上述方案通过改善电源与BMC直接通讯的设计方式,在电源与BMC之间增加了自适应通讯装置,实现了电源与BMC之间的二级通讯控制,通过将自适应通讯装置中通讯协议的协议数值传输至电源,从而使电源能够根据到协议数值获取到通讯协议,并将根据通讯协议生成的数据通过自适应通讯装置传输至BMC。不再需要更改BMC的结构,能够实现不同通讯协议的使用并适应复杂的控制逻辑判定,提高了体验感。The computer-readable storage medium provided in this embodiment stores a computer program, and when the computer program is executed by a processor, the steps described in the foregoing method embodiments are implemented. By transmitting the register information including the protocol value of the communication protocol to the power supply, the power supply selects the communication protocol according to the protocol value; receives the data transmitted by the power supply according to the communication protocol; and transmits the data to the BMC. It can be seen that the above scheme improves the design method of direct communication between the power supply and BMC, and adds an adaptive communication device between the power supply and BMC to realize the secondary communication control between the power supply and BMC. The protocol value of the communication protocol is transmitted to the power supply, so that the power supply can obtain the communication protocol according to the protocol value, and transmit the data generated according to the communication protocol to the BMC through the adaptive communication device. It is no longer necessary to change the structure of the BMC, and it can realize the use of different communication protocols and adapt to complex control logic judgments, which improves the sense of experience.

以上对本申请所提供的一种服务器电源自适应通讯方法、设备及介质进行了详细介绍。说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以对本申请进行若干改进和修饰,这些改进和修饰也落入本申请权利要求的保护范围内。A server power adaptive communication method, device and medium provided in the present application have been introduced in detail above. Each embodiment in the description is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other. As for the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and for relevant details, please refer to the description of the method part. It should be pointed out that those skilled in the art can make some improvements and modifications to the application without departing from the principles of the application, and these improvements and modifications also fall within the protection scope of the claims of the application.

还需要说明的是,在本说明书中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should also be noted that in this specification, relative terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that these entities or operations There is no such actual relationship or order between the operations. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said 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 A server power adaptive communication method, device and medium Active CN115102937B (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

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 A server power adaptive communication method, device and medium

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 苏州浪潮智能科技有限公司 A 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
CN106776196A (en) A kind of server hard disc method for monitoring state and system
JP4886601B2 (en) Apparatus and method for operating USB interface equipment
CN111061587A (en) Communication control method, device, equipment and storage medium of I2C bus
CN112286709B (en) A kind of server hardware fault diagnosis method, diagnosis device and diagnosis equipment
US20240220385A1 (en) Power source consumption management apparatus for four-way server
CN110673867A (en) CPLD online upgrade method, device and system
CN115102937B (en) A server power adaptive communication method, device and medium
WO2024007510A1 (en) Server management method, apparatus and system, and electronic device and readable storage medium
CN116560586A (en) Method and device for determining attribute value, storage medium and electronic device
CN102043636B (en) Method and device for loading field programmable gate array bit file
CN103562893A (en) Facilitating transport mode input/output operations between a channel subsystem and input/output devices
CN118708396B (en) Error information processing method, device, medium and program product
CN113608684B (en) Memory information acquisition method, device, system, electronic equipment and storage medium
CN105468123A (en) Rack management controller, power management program update system and method
CN111399871B (en) System updating method, device, equipment and medium of HBA card
CN115047954B (en) A device cooling control method, system, device, device and storage medium
CN117149491A (en) A power monitoring method, system, device and storage medium
CN114153303B (en) A power consumption control system, a power consumption control method, a device, and a medium
CN116107945A (en) Device, method, system, equipment and medium for configuring bandwidth
CN113254304B (en) Method for determining shutdown type of server, server and storage medium
CN114936135A (en) Abnormity detection method and device and readable storage medium
CN114880191A (en) Power consumption processing method, equipment, device and medium for server
CN115470054A (en) A server memory function testing method, system, device and storage medium
CN110647435A (en) Server, hard disk remote control method and control assembly
CN114153388B (en) Hard disk system, hard disk configuration information refreshing 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