WO2021169476A1 - Server expansion system, and power control method for same - Google Patents

Server expansion system, and power control method for same Download PDF

Info

Publication number
WO2021169476A1
WO2021169476A1 PCT/CN2020/134724 CN2020134724W WO2021169476A1 WO 2021169476 A1 WO2021169476 A1 WO 2021169476A1 CN 2020134724 W CN2020134724 W CN 2020134724W WO 2021169476 A1 WO2021169476 A1 WO 2021169476A1
Authority
WO
WIPO (PCT)
Prior art keywords
power
server
expansion system
power detection
signal
Prior art date
Application number
PCT/CN2020/134724
Other languages
French (fr)
Chinese (zh)
Inventor
张志玮
Original Assignee
苏州浪潮智能科技有限公司
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 苏州浪潮智能科技有限公司 filed Critical 苏州浪潮智能科技有限公司
Publication of WO2021169476A1 publication Critical patent/WO2021169476A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3215Monitoring of peripheral devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3287Power saving characterised by the action undertaken by switching off individual functional units in the computer system

Definitions

  • the invention relates to the field of server expansion, in particular to a server expansion system and a power control method thereof.
  • PCIe Peripheral Component Interconnect Express, high-speed serial computer bus
  • JBOD Just a Bunch Of Disks, disk cluster
  • JBOF Just a Bunch Of NVMe Flash, flash memory cluster
  • JBOG Just a Bunch Of GPUs, graphics processor cluster
  • FIG. 1 is a schematic structural diagram of a server external expansion system in the prior art.
  • the power supplies of the server and the expansion system are independent of each other, and each needs to operate the power button to control the power on and off of the system.
  • the operator needs to turn on the expansion system first, and then turn on the server; when shutting down, the opposite is true, the server needs to be shut down first, and then the expansion system is shut down. If the server and expansion system's power-on sequence is reversed, the following problems will occur: 1) The server is turned on first, then the expansion system is turned on again.
  • the server cannot be implemented correctly with the expansion system Online; 2) If the expansion system is shut down first, the PCIe channel connection will be suddenly interrupted, and the server will crash because of the sudden interruption of the PCIe channel connection and an interruption connection error. It can be seen that in order to ensure the normal connection of the server and the expansion system, the operator needs to perform sequential operations on the two, resulting in cumbersome system power operation process, and system connection abnormalities caused by human misoperation are prone to occur.
  • the purpose of the present invention is to provide a server expansion system and its power control method.
  • the operator only needs to operate the server's power button, and the expansion system can automatically synchronize the server's power state by detecting the server power signal, thereby simplifying the system
  • the power supply operation process avoids the abnormal system connection caused by human misoperation, and there is no problem of the expansion system and the server connection failure and sudden connection interruption.
  • the present invention provides a power control method for a server expansion system, which is applied to an expansion system connected to the S0 power detection terminal and S5 power detection terminal of the server when the system is online, including:
  • the S0 power detection signal of the server is obtained, and when the S0 power detection signal meets the preset power-on signal condition, the system is controlled to enter the power-on state; when the S0 power detection signal meets the predetermined power-on signal condition, When the shutdown signal condition is set, control its own system to enter the shutdown state.
  • the process of determining that the S0 power detection signal satisfies a preset shutdown signal condition includes:
  • the S0 power detection signal is determined The test signal meets the preset shutdown signal condition.
  • the process of determining that the S0 power detection signal satisfies a preset power-on signal condition includes:
  • the S0 power detection signal When it is detected for the first time that the S0 power detection signal changes from a low level to a high level, it is directly determined that the S0 power detection signal meets the preset power-on signal condition.
  • control the own system when the S0 power detection signal meets the preset power-on signal condition, control the own system to enter the power-on state; when the S0 power detection signal meets the preset power-off signal condition, control the process of entering the power-off state of the own system ,include:
  • Y(n) is the output value of the OR gate
  • X(n) is the level value of the S0 power detection signal acquired at the current moment
  • the acquisition time interval between X(nk) and X(n-k+1) pre Set shutdown time threshold /k, n>k, n and k are both positive integers;
  • the own system When the output value of the OR gate changes from a low level to a high level, the own system is controlled to enter the on state; when the output value of the OR gate changes from a high level to a low level, the own system is controlled to enter the off state.
  • the power control method further includes:
  • the power control method further includes:
  • the present invention also provides a server expansion system, including:
  • Memory used to store computer programs
  • the processor connected to the S0 power detection terminal and the S5 power detection terminal of the server when the system is online is used to implement the steps of any one of the power control methods of the server expansion system when the computer program is executed.
  • the processor is connected to the S0 power detection terminal and the S5 power detection terminal on the server through an OCP Mezz interface or a PCIe interface when the system is online.
  • the processor is specifically a CPLD or FPGA or MCU;
  • server expansion system further includes:
  • a voltage divider circuit provided between the processor and the server is used to divide the power detection signal of the server to reduce it to a voltage value that the processor can detect.
  • the invention provides a power control method for a server expansion system, which is applied to an expansion system connected with the S0 power detection terminal and the S5 power detection terminal of the server when the system is online.
  • the expansion system judges whether there is a connection with the server according to the S5 power detection situation; if there is a connection, when the S0 power detection signal meets the preset power-on/off signal conditions, it controls its own system to enter the power-on/off state accordingly. It can be seen that the operator only needs to operate the power button of the server, and the expansion system can automatically synchronize the power status of the server by detecting the server power signal, thereby simplifying the system power operation process and avoiding abnormal system connection caused by human misoperation. ; Moreover, since the expansion system will start immediately after detecting the server power-on signal, and shut down after detecting the server power-off signal, there will be no problems with the expansion system and the server connection failure and sudden connection interruption.
  • the present invention also provides a server expansion system, which has the same beneficial effects as the above-mentioned power control method.
  • FIG. 1 is a schematic structural diagram of a server external expansion system in the prior art
  • FIG. 2 is a flowchart of a power control method of a server expansion system provided by an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of a server external expansion system provided by an embodiment of the present invention.
  • Fig. 4 is a schematic diagram of determining a power-on/off signal condition provided by an embodiment of the present invention.
  • the core of the present invention is to provide a server expansion system and its power control method.
  • the operator only needs to operate the server's power button, and the expansion system can automatically synchronize the server's power state by detecting the server power signal, thereby simplifying the system
  • the power supply operation process avoids the abnormal system connection caused by human misoperation, and there is no problem of the expansion system and the server connection failure and sudden connection interruption.
  • FIG. 2 is a flowchart of a power control method of a server expansion system according to an embodiment of the present invention.
  • the power control method of the server expansion system is applied to the expansion system connected with the S0 power detection terminal and S5 power detection terminal of the server when the system is online (as shown in Figure 3), including:
  • Step S1 Determine whether there is a connection with the server according to the S5 power detection situation of the server; if so, go to step S2.
  • the expansion system when the server is connected to the expansion system, the expansion system is connected to the S0 power detection terminal and the S5 power detection terminal of the server; when the server is not connected to the expansion system, the expansion system and the server's S0 power detection terminal and S5 are connected The power detection terminal is disconnected.
  • the expansion system when the server and the expansion system are online, the expansion system can detect the presence of the server S5 power supply; when the server and the expansion system are not online, the expansion system cannot detect the presence of the server S5 power supply.
  • the expansion system judges whether there is a connection with the server based on the S5 power detection of the server. Specifically, when the S5 power supply of the server is detected, it is determined that there is a connection with the server, and the subsequent operation of synchronizing the power state of the server needs to be performed; When the presence of the server S5 power supply is not detected, it is determined that there is no connection with the server, and there is no need to perform subsequent operations to synchronize the power status of the server.
  • Step S2 Obtain the S0 power detection signal of the server, and when the S0 power detection signal meets the preset power-on signal condition, control its own system to enter the power-on state; when the S0 power detection signal meets the preset power-off signal condition, control itself The system enters the shutdown state.
  • the power supply of the server S0 is a power supply for starting the server system, and the power state of the power supply of the server S0 is controlled by an operation button set on the server.
  • the server system can be turned on; when the power of the server S0 is turned off by the operating button, the server system can be turned off.
  • this application can determine whether the server system is booted up by detecting the power signal of the server S0 power supply, and synchronize the power state of the expansion system, that is, when the server system starts up, the expansion system needs to turn on its own power to make its own system boot up Status: After the server system is shut down, the expansion system needs to turn off its own power to make its own system enter the shutdown state.
  • the technical means of synchronizing the power status of the expansion system is: after the expansion system detects the presence of the server S5 power supply, it obtains the S0 power detection signal of the server, and turns on when the S0 power detection signal meets the preset power-on signal conditions.
  • the self power supply controls its own system to enter the boot state, that is, when the S0 power detection signal meets the preset power-on signal conditions, the expansion system is immediately turned on; when the S0 power detection signal meets the preset power-off signal conditions, the self power is turned off to control itself
  • the system enters the shutdown state, that is, after the S0 power detection signal meets the preset shutdown signal conditions, the expansion system will shut down.
  • the invention provides a power control method for a server expansion system, which is applied to an expansion system connected with the S0 power detection terminal and the S5 power detection terminal of the server when the system is online.
  • the expansion system judges whether there is a connection with the server according to the S5 power detection situation; if there is a connection, when the S0 power detection signal meets the preset power-on/off signal conditions, it controls its own system to enter the power-on/off state accordingly. It can be seen that the operator only needs to operate the power button of the server, and the expansion system can automatically synchronize the power status of the server by detecting the server power signal, thereby simplifying the system power operation process and avoiding abnormal system connection caused by human misoperation. ; Moreover, since the expansion system will start immediately after detecting the server power-on signal, and shut down after detecting the server power-off signal, there will be no problems with the expansion system and the server connection failure and sudden connection interruption.
  • the process of determining that the S0 power detection signal satisfies the preset shutdown signal condition includes:
  • the power supply of the server S0 when the power supply of the server S0 is turned on, the power supply of the server S0 outputs a high level; when the power supply of the server S0 is turned off, the power supply of the server S0 outputs a low level. In other words, when the output level of the power supply of the server S0 changes from a high level to a low level, it indicates that the power supply of the server S0 is turned off.
  • this application turns off the power supply in the expansion system only after it is determined that the power supply of the server S0 is turned off for a period of time. Specifically, the expansion system detects the S0 power detection signal for the first time When changing from high level to low level, the shutdown operation is not performed, but when the S0 power detection signal detected within the preset shutdown time threshold is low, the shutdown operation is performed, thereby avoiding system errors. action.
  • the process of determining that the S0 power detection signal satisfies the preset power-on signal condition includes:
  • the S0 power detection signal When it is detected for the first time that the S0 power detection signal changes from a low level to a high level, it is directly determined that the S0 power detection signal meets the preset power-on signal condition.
  • this application turns on the power supply in the expansion system immediately after confirming that the server S0 is powered on.
  • the specifics are When the expansion system detects that the S0 power detection signal changes from low to high for the first time, it will immediately perform the boot operation to ensure the correct connection between the server and the expansion system.
  • control the own system to enter the power-off state The process includes:
  • Y(n) is the output value of the OR gate
  • X(n) is the level value of the S0 power detection signal acquired at the current moment
  • the acquisition time interval of X(nk) and X(n-k+1) preset shutdown Time threshold /k, n>k, n and k are both positive integers;
  • the specific principle of determining the shutdown of the expansion system based on the S0 power detection signal is: the expansion system obtains the current level of the S0 power detection signal every preset time (preset shutdown time threshold/k), and only when When the S0 power detection signal obtained continuously k+1 times is low, the shutdown operation is performed.
  • the S0 power detection signal it is determined that the principle of shutdown of the expansion system conforms to the OR gate logic. As shown in Figure 4, only when the input values of the OR gate are all low, the output value of the OR gate is low. Otherwise, it is high level.
  • the power control method further includes:
  • the expansion system controls its own system to power on and off according to the button signal of its own power button.
  • the power control method when there is no power button on the expansion system, the power control method further includes:
  • the expansion system keeps its own system in a shutdown state to save the power supply of the expansion system.
  • This application also provides a server expansion system, including:
  • Memory used to store computer programs
  • the processor connected to the S0 power detection terminal and the S5 power detection terminal of the server when the system is online is used to implement the steps of any one of the power control methods of the server expansion system when the computer program is executed.
  • the server expansion system of the present application includes a memory and a processor, as shown in FIG. 3, for its introduction, please refer to the embodiment of the above-mentioned power control method, which is not repeated in this application.
  • the processor is connected to the S0 power detection terminal and the S5 power detection terminal on the server through an OCP Mezz interface or a PCIe interface when the system is online.
  • the processor can be connected to the S0 power detection terminal and S5 power detection terminal on the server through the OCP Mezz (an interface type) interface or the PCIe interface. Ground limit, select the interface connection according to the actual situation.
  • the processor is specifically a CPLD or FPGA or MCU;
  • server expansion system also includes:
  • the voltage divider circuit between the processor and the server is used to divide the power detection signal of the server to reduce it to a voltage value that the processor can detect.
  • the processor of this application can choose CPLD (Complex Programmable Logic Device), FPGA (Field-Programmable Gate Array, Field Programmable Gate Array), or MCU (Microcontroller Unit, Micro control unit), this application is not specifically limited here, and it is selected according to actual conditions.
  • CPLD Complex Programmable Logic Device
  • FPGA Field-Programmable Gate Array
  • MCU Microcontroller Unit, Micro control unit
  • the voltage of the server's power detection signal is relatively high, and the processor cannot detect it, so this application also adds a voltage divider on the connection line between the processor and the server Circuit, the function of the voltage divider circuit is to divide the power detection signal of the server and input it into the processor, so that the power detection signal of the server is reduced to a voltage value that the processor can detect.

Abstract

A power control method for a server expansion system, applicable to an expansion system to be connected to an S0 power detection terminal and an S5 power detection terminal of a server when the system is connected. The method comprises: an expansion system determining, according to an S5 power detection condition, whether a connection to a server exists (step S1); and if so, correspondingly controlling, if an S0 power detection signal meets a preset on/off signal condition, the system itself to enter an on/off state (step S2). By using the method, an operator only needs to operate a power button of the server for the expansion system to be able to perform automatic synchronization with a power state of the server by detecting a power signal of the server, thereby simplifying a power operation process of the system, and preventing incorrect manual operation from causing system connection abnormality. In addition, since the expansion system is immediately turned on upon detecting a power-on signal of the server, and is only turned off after detecting a power-off signal of the server, the issue of a connection failure or an abruptly interrupted connection between the expansion system and the server is prevented.

Description

一种服务器扩充系统及其电源控制方法Server expansion system and power control method thereof
本申请要求于2020年02月29日提交至中国专利局、申请号为202010132404.1、发明名称为“一种服务器扩充系统及其电源控制方法”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed to the Chinese Patent Office on February 29, 2020, the application number is 202010132404.1, and the invention title is "a server expansion system and its power control method", the entire content of which is incorporated by reference In this application.
技术领域Technical field
本发明涉及服务器扩充领域,特别是涉及一种服务器扩充系统及其电源控制方法。The invention relates to the field of server expansion, in particular to a server expansion system and a power control method thereof.
背景技术Background technique
随着大数据、云计算等技术的发展,服务器的计算与储存能力有待提高。目前,通常将服务器的主机通过PCIe(Peripheral Component Interconnect Express,高速的序列计算机总线)信道外接扩充系统,如JBOD(Just a Bunch Of Disks,磁盘簇)、JBOF(Just a Bunch Of NVMe Flash,闪存簇)、JBOG(Just a Bunch Of GPUs,图形处理器簇)等扩充系统,以提高服务器的计算与储存能力。With the development of technologies such as big data and cloud computing, the computing and storage capabilities of servers need to be improved. At present, the host of the server is usually connected to an external expansion system through PCIe (Peripheral Component Interconnect Express, high-speed serial computer bus) channel, such as JBOD (Just a Bunch Of Disks, disk cluster), JBOF (Just a Bunch Of NVMe Flash, flash memory cluster) ), JBOG (Just a Bunch Of GPUs, graphics processor cluster) and other expansion systems to improve the computing and storage capabilities of the server.
请参照图1,图1为现有技术中一种服务器外接扩充系统的结构示意图。现有技术中,服务器和扩充系统的电源相互独立,需各自通过操作电源按钮来控制系统开关机。正常情况下,操作人员需先将扩充系统开机,再将服务器开机;关机时则相反,需先将服务器关机,再将扩充系统关机。若服务器和扩充系统的开关机顺序颠倒会出现以下问题:1)服务器先开机接着扩充系统再开机,一旦扩充系统开机的时间晚于服务器在初始化PCIe通道的时间,服务器便无法与扩充系统实现正确联机;2)扩充系统先关机的话会导致PCIe通道联机突然中断,服务器则会因为PCIe通道联机突然中断产生中断联机错误而当机。可见,为了保证服务器和扩充系统的联机正常,操作人员需要对二者进行有顺序的操作,导致系统电源操作过程繁琐,且易出现因人为误操作导致的系统联机异常情况。Please refer to FIG. 1, which is a schematic structural diagram of a server external expansion system in the prior art. In the prior art, the power supplies of the server and the expansion system are independent of each other, and each needs to operate the power button to control the power on and off of the system. Under normal circumstances, the operator needs to turn on the expansion system first, and then turn on the server; when shutting down, the opposite is true, the server needs to be shut down first, and then the expansion system is shut down. If the server and expansion system's power-on sequence is reversed, the following problems will occur: 1) The server is turned on first, then the expansion system is turned on again. Once the expansion system is turned on later than the server initializes the PCIe channel, the server cannot be implemented correctly with the expansion system Online; 2) If the expansion system is shut down first, the PCIe channel connection will be suddenly interrupted, and the server will crash because of the sudden interruption of the PCIe channel connection and an interruption connection error. It can be seen that in order to ensure the normal connection of the server and the expansion system, the operator needs to perform sequential operations on the two, resulting in cumbersome system power operation process, and system connection abnormalities caused by human misoperation are prone to occur.
因此,如何提供一种解决上述技术问题的方案是本领域的技术人员目前需要解决的问题。Therefore, how to provide a solution to the above-mentioned technical problems is a problem that needs to be solved by those skilled in the art at present.
发明内容Summary of the invention
本发明的目的是提供一种服务器扩充系统及其电源控制方法,操作人员只需对服务器的电源按钮进行操作,而扩充系统能够通过侦测服务器电源讯号自动同步服务器的电源状态,从而简化了系统电源操作过程,避免了人为误操作导致的系统联机异常情况,且不会存在扩充系统与服务器联机失效及联机突发中断的问题。The purpose of the present invention is to provide a server expansion system and its power control method. The operator only needs to operate the server's power button, and the expansion system can automatically synchronize the server's power state by detecting the server power signal, thereby simplifying the system The power supply operation process avoids the abnormal system connection caused by human misoperation, and there is no problem of the expansion system and the server connection failure and sudden connection interruption.
为解决上述技术问题,本发明提供了一种服务器扩充系统的电源控制方法,应用于在系统联机时与服务器的S0电源侦测端和S5电源侦测端连接的扩充系统,包括:To solve the above technical problems, the present invention provides a power control method for a server expansion system, which is applied to an expansion system connected to the S0 power detection terminal and S5 power detection terminal of the server when the system is online, including:
根据所述服务器的S5电源侦测情况,判断与所述服务器是否存在联机;Determine whether there is a connection with the server according to the S5 power detection situation of the server;
若存在联机,则获取所述服务器的S0电源侦测讯号,并当所述S0电源侦测讯号满足预设开机讯号条件时,控制自身系统进入开机状态;当所述S0电源侦测讯号满足预设关机讯号条件时,控制自身系统进入关机状态。If there is a connection, the S0 power detection signal of the server is obtained, and when the S0 power detection signal meets the preset power-on signal condition, the system is controlled to enter the power-on state; when the S0 power detection signal meets the predetermined power-on signal condition, When the shutdown signal condition is set, control its own system to enter the shutdown state.
优选地,所述S0电源侦测讯号满足预设关机讯号条件的确定过程,包括:Preferably, the process of determining that the S0 power detection signal satisfies a preset shutdown signal condition includes:
从首次检测到所述S0电源侦测讯号从高电平转为低电平时开始,若在预设关机时间阈值内所述S0电源侦测讯号均为低电平,则确定所述S0电源侦测讯号满足预设关机讯号条件。Starting from the first detection that the S0 power detection signal changes from a high level to a low level, if the S0 power detection signal is low within the preset shutdown time threshold, the S0 power detection signal is determined The test signal meets the preset shutdown signal condition.
优选地,所述S0电源侦测讯号满足预设开机讯号条件的确定过程,包括:Preferably, the process of determining that the S0 power detection signal satisfies a preset power-on signal condition includes:
当首次检测到所述S0电源侦测讯号从低电平转为高电平时,直接确定所述S0电源侦测讯号满足预设开机讯号条件。When it is detected for the first time that the S0 power detection signal changes from a low level to a high level, it is directly determined that the S0 power detection signal meets the preset power-on signal condition.
优选地,当所述S0电源侦测讯号满足预设开机讯号条件时,控制自身系统进入开机状态;当所述S0电源侦测讯号满足预设关机讯号条件时,控制自身系统进入关机状态的过程,包括:Preferably, when the S0 power detection signal meets the preset power-on signal condition, control the own system to enter the power-on state; when the S0 power detection signal meets the preset power-off signal condition, control the process of entering the power-off state of the own system ,include:
根据所述S0电源侦测讯号的电平值,求取预设或门关系式Y(n)=X(n)+X(n-1)+…+X(n-k)的或门输出值;其中,Y(n)为或门输出值,X(n)为当前时刻获取的S0电源侦测讯号的电平值,X(n-k)与X(n-k+1)的获取时间间隔=预设关机时间阈值/k,n>k,n、k均为正整数;According to the level value of the S0 power detection signal, obtain the OR gate output value of the preset OR relationship Y(n)=X(n)+X(n-1)+...+X(nk); Among them, Y(n) is the output value of the OR gate, X(n) is the level value of the S0 power detection signal acquired at the current moment, and the acquisition time interval between X(nk) and X(n-k+1)=pre Set shutdown time threshold /k, n>k, n and k are both positive integers;
当所述或门输出值由低电平转为高电平时,控制自身系统进入开机状态;当所述或门输出值由高电平转为低电平时,控制自身系统进入关机状态。When the output value of the OR gate changes from a low level to a high level, the own system is controlled to enter the on state; when the output value of the OR gate changes from a high level to a low level, the own system is controlled to enter the off state.
优选地,当所述扩充系统上设有电源按钮时,所述电源控制方法还包括:Preferably, when a power button is provided on the expansion system, the power control method further includes:
若与所述服务器存在联机,则忽略所述电源按钮的按钮讯号;If there is a connection with the server, ignore the button signal of the power button;
若与所述服务器不存在联机,则根据所述电源按钮的按钮讯号,相应控制自身系统开关机。If there is no connection with the server, then according to the button signal of the power button, control the power on and off of the own system accordingly.
优选地,当所述扩充系统上未设有电源按钮时,所述电源控制方法还包括:Preferably, when there is no power button on the expansion system, the power control method further includes:
若与所述服务器不存在联机,则将自身系统保持在关机状态。If there is no connection with the server, keep the own system in the shutdown state.
为解决上述技术问题,本发明还提供了一种服务器扩充系统,包括:To solve the above technical problems, the present invention also provides a server expansion system, including:
存储器,用于存储计算机程序;Memory, used to store computer programs;
在系统联机时与服务器的S0电源侦测端和S5电源侦测端连接的处理器,用于在执行所述计算机程序时实现上述任一种服务器扩充系统的电源控制方法的步骤。The processor connected to the S0 power detection terminal and the S5 power detection terminal of the server when the system is online is used to implement the steps of any one of the power control methods of the server expansion system when the computer program is executed.
优选地,所述处理器在系统联机时,通过OCP Mezz接口或PCIe接口与所述服务器上的S0电源侦测端和S5电源侦测端连接。Preferably, the processor is connected to the S0 power detection terminal and the S5 power detection terminal on the server through an OCP Mezz interface or a PCIe interface when the system is online.
优选地,所述处理器具体为CPLD或FPGA或MCU;Preferably, the processor is specifically a CPLD or FPGA or MCU;
相应的,所述服务器扩充系统还包括:Correspondingly, the server expansion system further includes:
设于所述处理器和所述服务器之间的分压电路,用于将所述服务器的电源侦测讯号进行分压以将其降至所述处理器能够侦测到的电压值。A voltage divider circuit provided between the processor and the server is used to divide the power detection signal of the server to reduce it to a voltage value that the processor can detect.
本发明提供了一种服务器扩充系统的电源控制方法,应用于在系统联机时与服务器的S0电源侦测端和S5电源侦测端连接的扩充系统。扩充系统根据S5电源侦测情况判断与服务器是否存在联机;若存在联机,则当 S0电源侦测讯号满足预设开机/关机讯号条件时,相应控制自身系统进入开机/关机状态。可见,操作人员只需对服务器的电源按钮进行操作,而扩充系统能够通过侦测服务器电源讯号自动同步服务器的电源状态,从而简化了系统电源操作过程,避免了人为误操作导致的系统联机异常情况;而且,由于扩充系统侦测到服务器电源开机讯号后会即刻开机、侦测到服务器电源关机讯号后才执行关机,不会存在扩充系统与服务器联机失效及联机突发中断的问题。The invention provides a power control method for a server expansion system, which is applied to an expansion system connected with the S0 power detection terminal and the S5 power detection terminal of the server when the system is online. The expansion system judges whether there is a connection with the server according to the S5 power detection situation; if there is a connection, when the S0 power detection signal meets the preset power-on/off signal conditions, it controls its own system to enter the power-on/off state accordingly. It can be seen that the operator only needs to operate the power button of the server, and the expansion system can automatically synchronize the power status of the server by detecting the server power signal, thereby simplifying the system power operation process and avoiding abnormal system connection caused by human misoperation. ; Moreover, since the expansion system will start immediately after detecting the server power-on signal, and shut down after detecting the server power-off signal, there will be no problems with the expansion system and the server connection failure and sudden connection interruption.
本发明还提供了一种服务器扩充系统,与上述电源控制方法具有相同的有益效果。The present invention also provides a server expansion system, which has the same beneficial effects as the above-mentioned power control method.
附图说明Description of the drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对现有技术和实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present invention, the following will briefly introduce the prior art and the drawings needed in the embodiments. Obviously, the drawings in the following description are only some of the present invention. Embodiments, for those of ordinary skill in the art, without creative work, other drawings can be obtained based on these drawings.
图1为现有技术中一种服务器外接扩充系统的结构示意图;FIG. 1 is a schematic structural diagram of a server external expansion system in the prior art;
图2为本发明实施例提供的一种服务器扩充系统的电源控制方法的流程图;2 is a flowchart of a power control method of a server expansion system provided by an embodiment of the present invention;
图3为本发明实施例提供的一种服务器外接扩充系统的结构示意图;3 is a schematic structural diagram of a server external expansion system provided by an embodiment of the present invention;
图4为本发明实施例提供的一种开关机讯号条件的判定原理图。Fig. 4 is a schematic diagram of determining a power-on/off signal condition provided by an embodiment of the present invention.
具体实施方式Detailed ways
本发明的核心是提供一种服务器扩充系统及其电源控制方法,操作人员只需对服务器的电源按钮进行操作,而扩充系统能够通过侦测服务器电源讯号自动同步服务器的电源状态,从而简化了系统电源操作过程,避免了人为误操作导致的系统联机异常情况,且不会存在扩充系统与服务器联机失效及联机突发中断的问题。The core of the present invention is to provide a server expansion system and its power control method. The operator only needs to operate the server's power button, and the expansion system can automatically synchronize the server's power state by detecting the server power signal, thereby simplifying the system The power supply operation process avoids the abnormal system connection caused by human misoperation, and there is no problem of the expansion system and the server connection failure and sudden connection interruption.
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描 述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments These are a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.
请参照图2,图2为本发明实施例提供的一种服务器扩充系统的电源控制方法的流程图。Please refer to FIG. 2, which is a flowchart of a power control method of a server expansion system according to an embodiment of the present invention.
该服务器扩充系统的电源控制方法,应用于在系统联机时与服务器的S0电源侦测端和S5电源侦测端连接的扩充系统(如图3所示),包括:The power control method of the server expansion system is applied to the expansion system connected with the S0 power detection terminal and S5 power detection terminal of the server when the system is online (as shown in Figure 3), including:
步骤S1:根据服务器的S5电源侦测情况,判断与服务器是否存在联机;若是,则执行步骤S2。Step S1: Determine whether there is a connection with the server according to the S5 power detection situation of the server; if so, go to step S2.
具体地,在服务器与扩充系统联机时,扩充系统与服务器的S0电源侦测端和S5电源侦测端连接;在服务器与扩充系统不联机时,扩充系统与服务器的S0电源侦测端和S5电源侦测端断开。也就是说,在服务器与扩充系统联机时,扩充系统可检测到服务器S5电源的存在;在服务器与扩充系统不联机时,扩充系统检测不到服务器S5电源的存在。Specifically, when the server is connected to the expansion system, the expansion system is connected to the S0 power detection terminal and the S5 power detection terminal of the server; when the server is not connected to the expansion system, the expansion system and the server's S0 power detection terminal and S5 are connected The power detection terminal is disconnected. In other words, when the server and the expansion system are online, the expansion system can detect the presence of the server S5 power supply; when the server and the expansion system are not online, the expansion system cannot detect the presence of the server S5 power supply.
基于此,扩充系统根据服务器的S5电源侦测情况,判断与服务器是否存在联机,具体是当检测到服务器S5电源存在时,确定与服务器存在联机,需执行后续同步服务器的电源状态的操作;当检测不到服务器S5电源的存在时,确定与服务器不存在联机,无需执行后续同步服务器的电源状态的操作。Based on this, the expansion system judges whether there is a connection with the server based on the S5 power detection of the server. Specifically, when the S5 power supply of the server is detected, it is determined that there is a connection with the server, and the subsequent operation of synchronizing the power state of the server needs to be performed; When the presence of the server S5 power supply is not detected, it is determined that there is no connection with the server, and there is no need to perform subsequent operations to synchronize the power status of the server.
步骤S2:获取服务器的S0电源侦测讯号,并当S0电源侦测讯号满足预设开机讯号条件时,控制自身系统进入开机状态;当S0电源侦测讯号满足预设关机讯号条件时,控制自身系统进入关机状态。Step S2: Obtain the S0 power detection signal of the server, and when the S0 power detection signal meets the preset power-on signal condition, control its own system to enter the power-on state; when the S0 power detection signal meets the preset power-off signal condition, control itself The system enters the shutdown state.
需要说明的是,本申请的预设是提前设置好的,只需要设置一次,除非根据实际情况需要修改,否则不需要重新设置。It should be noted that the presets in this application are set in advance and only need to be set once. Unless they need to be modified according to the actual situation, they do not need to be reset.
具体地,服务器S0电源为供服务器系统启动开机的电源,服务器S0电源的电源状态由服务器上设置的操作按钮控制。当通过操作按钮开启服务器S0电源时,服务器系统得以启动开机;当通过操作按钮关闭服务器S0电源时,服务器系统得以关闭。Specifically, the power supply of the server S0 is a power supply for starting the server system, and the power state of the power supply of the server S0 is controlled by an operation button set on the server. When the power of the server S0 is turned on by operating the button, the server system can be turned on; when the power of the server S0 is turned off by the operating button, the server system can be turned off.
基于此,本申请可通过侦测服务器S0电源的电源信号来判断服务器系统是否启动开机,并同步扩充系统的电源状态,即服务器系统启动开机时,扩充系统需开启自身电源,使自身系统进入开机状态;服务器系统关闭后,扩充系统需关闭自身电源,使自身系统进入关机状态。具体地,同步扩充系统的电源状态的技术手段为:扩充系统在检测到服务器S5电源存在后,获取服务器的S0电源侦测讯号,并当S0电源侦测讯号满足预设开机讯号条件时,开启自身电源以控制自身系统进入开机状态,即在S0电源侦测讯号满足预设开机讯号条件后,扩充系统即刻开机;当S0电源侦测讯号满足预设关机讯号条件时,关闭自身电源以控制自身系统进入关机状态,即在S0电源侦测讯号满足预设关机讯号条件后,扩充系统才关机。Based on this, this application can determine whether the server system is booted up by detecting the power signal of the server S0 power supply, and synchronize the power state of the expansion system, that is, when the server system starts up, the expansion system needs to turn on its own power to make its own system boot up Status: After the server system is shut down, the expansion system needs to turn off its own power to make its own system enter the shutdown state. Specifically, the technical means of synchronizing the power status of the expansion system is: after the expansion system detects the presence of the server S5 power supply, it obtains the S0 power detection signal of the server, and turns on when the S0 power detection signal meets the preset power-on signal conditions. The self power supply controls its own system to enter the boot state, that is, when the S0 power detection signal meets the preset power-on signal conditions, the expansion system is immediately turned on; when the S0 power detection signal meets the preset power-off signal conditions, the self power is turned off to control itself The system enters the shutdown state, that is, after the S0 power detection signal meets the preset shutdown signal conditions, the expansion system will shut down.
本发明提供了一种服务器扩充系统的电源控制方法,应用于在系统联机时与服务器的S0电源侦测端和S5电源侦测端连接的扩充系统。扩充系统根据S5电源侦测情况判断与服务器是否存在联机;若存在联机,则当S0电源侦测讯号满足预设开机/关机讯号条件时,相应控制自身系统进入开机/关机状态。可见,操作人员只需对服务器的电源按钮进行操作,而扩充系统能够通过侦测服务器电源讯号自动同步服务器的电源状态,从而简化了系统电源操作过程,避免了人为误操作导致的系统联机异常情况;而且,由于扩充系统侦测到服务器电源开机讯号后会即刻开机、侦测到服务器电源关机讯号后才执行关机,不会存在扩充系统与服务器联机失效及联机突发中断的问题。The invention provides a power control method for a server expansion system, which is applied to an expansion system connected with the S0 power detection terminal and the S5 power detection terminal of the server when the system is online. The expansion system judges whether there is a connection with the server according to the S5 power detection situation; if there is a connection, when the S0 power detection signal meets the preset power-on/off signal conditions, it controls its own system to enter the power-on/off state accordingly. It can be seen that the operator only needs to operate the power button of the server, and the expansion system can automatically synchronize the power status of the server by detecting the server power signal, thereby simplifying the system power operation process and avoiding abnormal system connection caused by human misoperation. ; Moreover, since the expansion system will start immediately after detecting the server power-on signal, and shut down after detecting the server power-off signal, there will be no problems with the expansion system and the server connection failure and sudden connection interruption.
在上述实施例的基础上:On the basis of the above embodiment:
作为一种可选的实施例,S0电源侦测讯号满足预设关机讯号条件的确定过程,包括:As an optional embodiment, the process of determining that the S0 power detection signal satisfies the preset shutdown signal condition includes:
从首次检测到S0电源侦测讯号从高电平转为低电平时开始,若在预设关机时间阈值内S0电源侦测讯号均为低电平,则确定S0电源侦测讯号满足预设关机讯号条件。From the first detection of the S0 power detection signal from high to low level, if the S0 power detection signal is low within the preset shutdown time threshold, it is determined that the S0 power detection signal meets the preset shutdown Signal conditions.
具体地,服务器S0电源开启时,服务器S0电源输出高电平;服务器S0电源关闭时,服务器S0电源输出低电平。也就是说,当服务器S0电源的输出电平从高电平转为低电平时,说明服务器S0电源被关闭。Specifically, when the power supply of the server S0 is turned on, the power supply of the server S0 outputs a high level; when the power supply of the server S0 is turned off, the power supply of the server S0 outputs a low level. In other words, when the output level of the power supply of the server S0 changes from a high level to a low level, it indicates that the power supply of the server S0 is turned off.
与此同时,考虑到服务器S0电源的输出电平从高电平缓慢下降至低电平的过程中,扩充系统对于S0电源侦测讯号的检测结果不够准确,可能检测到的结果是低电平,也可能检测到的结果是高电平,从而造成系统误动作,所以本申请在确定服务器S0电源关闭一段时间后才关闭扩充系统内电源,具体是扩充系统在首次检测到S0电源侦测讯号从高电平转为低电平时,并不执行关机操作,而是在之后的预设关机时间阈值内检测到的S0电源侦测讯号均为低电平时,才执行关机操作,从而避免系统误动作。At the same time, considering that the output level of the S0 power supply of the server slowly drops from high to low, the detection result of the S0 power detection signal of the expansion system is not accurate enough, and the detected result may be low. , It may also be detected that the result is a high level, which causes the system to malfunction. Therefore, this application turns off the power supply in the expansion system only after it is determined that the power supply of the server S0 is turned off for a period of time. Specifically, the expansion system detects the S0 power detection signal for the first time When changing from high level to low level, the shutdown operation is not performed, but when the S0 power detection signal detected within the preset shutdown time threshold is low, the shutdown operation is performed, thereby avoiding system errors. action.
作为一种可选的实施例,S0电源侦测讯号满足预设开机讯号条件的确定过程,包括:As an optional embodiment, the process of determining that the S0 power detection signal satisfies the preset power-on signal condition includes:
当首次检测到S0电源侦测讯号从低电平转为高电平时,直接确定S0电源侦测讯号满足预设开机讯号条件。When it is detected for the first time that the S0 power detection signal changes from a low level to a high level, it is directly determined that the S0 power detection signal meets the preset power-on signal condition.
具体地,考虑到一旦扩充系统开机的时间晚于服务器在初始化PCIe通道的时间,服务器便无法与扩充系统实现正确联机,所以本申请在确定服务器S0电源开启后即刻开启扩充系统内电源,具体是扩充系统在首次检测到S0电源侦测讯号从低电平转为高电平时,便立即执行开机操作,以保证服务器与扩充系统的正确联机。Specifically, considering that once the expansion system is powered on later than the time when the server initializes the PCIe channel, the server cannot properly connect with the expansion system. Therefore, this application turns on the power supply in the expansion system immediately after confirming that the server S0 is powered on. The specifics are When the expansion system detects that the S0 power detection signal changes from low to high for the first time, it will immediately perform the boot operation to ensure the correct connection between the server and the expansion system.
作为一种可选的实施例,当S0电源侦测讯号满足预设开机讯号条件时,控制自身系统进入开机状态;当S0电源侦测讯号满足预设关机讯号条件时,控制自身系统进入关机状态的过程,包括:As an optional embodiment, when the S0 power detection signal meets the preset power-on signal condition, control the own system to enter the power-on state; when the S0 power detection signal meets the preset power-off signal condition, control the own system to enter the power-off state The process includes:
根据S0电源侦测讯号的电平值,求取预设或门关系式Y(n)=X(n)+X(n-1)+…+X(n-k)的或门输出值;其中,Y(n)为或门输出值,X(n)为当前时刻获取的S0电源侦测讯号的电平值,X(n-k)与X(n-k+1)的获取时间间隔=预设关机时间阈值/k,n>k,n、k均为正整数;According to the level value of the S0 power detection signal, obtain the OR gate output value of the preset OR relation Y(n)=X(n)+X(n-1)+...+X(nk); among them, Y(n) is the output value of the OR gate, X(n) is the level value of the S0 power detection signal acquired at the current moment, the acquisition time interval of X(nk) and X(n-k+1) = preset shutdown Time threshold /k, n>k, n and k are both positive integers;
当或门输出值由低电平转为高电平时,控制自身系统进入开机状态;当或门输出值由高电平转为低电平时,控制自身系统进入关机状态。When the output value of the OR gate changes from low level to high level, it controls its own system to enter the power-on state; when the output value of the OR gate changes from high level to low level, it controls its own system to enter the shutdown state.
具体地,根据S0电源侦测讯号判定扩充系统关机的具体原理为:扩充系统每隔预设时间(预设关机时间阈值/k),均获取S0电源侦测讯号的当前电平值,只有在连续k+1次获取到的S0电源侦测讯号为低电平时,才执行关机操作。也就是说,根据S0电源侦测讯号判定扩充系统关机的原理符合或门逻辑,如图4所示,只有当或门的输入值全为低电平时,或门输出值才为低电平,否则为高电平。Specifically, the specific principle of determining the shutdown of the expansion system based on the S0 power detection signal is: the expansion system obtains the current level of the S0 power detection signal every preset time (preset shutdown time threshold/k), and only when When the S0 power detection signal obtained continuously k+1 times is low, the shutdown operation is performed. In other words, according to the S0 power detection signal, it is determined that the principle of shutdown of the expansion system conforms to the OR gate logic. As shown in Figure 4, only when the input values of the OR gate are all low, the output value of the OR gate is low. Otherwise, it is high level.
基于此,扩充系统根据S0电源侦测讯号的电平值,求取预设或门关系式Y(n)=X(n)+X(n-1)+…+X(n-k)的或门输出值,当或门输出值由低电平转为高电平时,控制自身系统进入开机状态;当或门输出值由高电平转为低电平时,控制自身系统进入关机状态。Based on this, the expansion system calculates the default OR gate relation Y(n)=X(n)+X(n-1)+…+X(nk) according to the level value of the S0 power detection signal Output value. When the output value of the OR gate changes from low level to high level, it controls its own system to enter the power-on state; when the output value of the OR gate changes from high level to low level, it controls its own system to enter the shutdown state.
作为一种可选的实施例,当扩充系统上设有电源按钮时,电源控制方法还包括:As an optional embodiment, when a power button is provided on the expansion system, the power control method further includes:
若与服务器存在联机,则忽略电源按钮的按钮讯号;If there is a connection with the server, the button signal of the power button is ignored;
若与服务器不存在联机,则根据电源按钮的按钮讯号,相应控制自身系统开关机。If there is no connection with the server, it will control its own system on and off according to the button signal of the power button.
进一步地,当扩充系统上设有电源按钮时,若扩充系统与服务器存在联机,则忽略电源按钮的按钮讯号,即此情况下操作扩充系统的电源按钮不起作用。若扩充系统与服务器不存在联机,则此情况下操作扩充系统的电源按钮有效,即扩充系统根据自身电源按钮的按钮讯号,相应控制自身系统开关机。Further, when a power button is provided on the expansion system, if the expansion system is connected to the server, the button signal of the power button is ignored, that is, the power button of the expansion system does not work in this case. If there is no connection between the expansion system and the server, the power button for operating the expansion system is valid in this case, that is, the expansion system controls its own system to power on and off according to the button signal of its own power button.
作为一种可选的实施例,当扩充系统上未设有电源按钮时,电源控制方法还包括:As an optional embodiment, when there is no power button on the expansion system, the power control method further includes:
若与服务器不存在联机,则将自身系统保持在关机状态。If there is no connection with the server, keep its own system in the shutdown state.
进一步地,当扩充系统上未设有电源按钮时,若扩充系统与服务器不存在联机,则扩充系统将自身系统保持在关机状态,以节约扩充系统的电源电能。Further, when there is no power button on the expansion system, if the expansion system is not connected to the server, the expansion system keeps its own system in a shutdown state to save the power supply of the expansion system.
本申请还提供了一种服务器扩充系统,包括:This application also provides a server expansion system, including:
存储器,用于存储计算机程序;Memory, used to store computer programs;
在系统联机时与服务器的S0电源侦测端和S5电源侦测端连接的处理器,用于在执行计算机程序时实现上述任一种服务器扩充系统的电源控制方法的步骤。The processor connected to the S0 power detection terminal and the S5 power detection terminal of the server when the system is online is used to implement the steps of any one of the power control methods of the server expansion system when the computer program is executed.
具体地,本申请的服务器扩充系统包括存储器和处理器,如图3所示,其介绍请参考上述电源控制方法的实施例,本申请在此不再赘述。Specifically, the server expansion system of the present application includes a memory and a processor, as shown in FIG. 3, for its introduction, please refer to the embodiment of the above-mentioned power control method, which is not repeated in this application.
作为一种可选的实施例,处理器在系统联机时,通过OCP Mezz接口或PCIe接口与服务器上的S0电源侦测端和S5电源侦测端连接。As an optional embodiment, the processor is connected to the S0 power detection terminal and the S5 power detection terminal on the server through an OCP Mezz interface or a PCIe interface when the system is online.
具体地,扩充系统与服务器联机时,处理器可通过OCP Mezz(一种接口类型)接口或PCIe接口与服务器上的S0电源侦测端和S5电源侦测端连接,本申请在此不做特别地限定,根据实际情况选定接口连接。Specifically, when the expansion system is connected to the server, the processor can be connected to the S0 power detection terminal and S5 power detection terminal on the server through the OCP Mezz (an interface type) interface or the PCIe interface. Ground limit, select the interface connection according to the actual situation.
作为一种可选的实施例,处理器具体为CPLD或FPGA或MCU;As an optional embodiment, the processor is specifically a CPLD or FPGA or MCU;
相应的,服务器扩充系统还包括:Correspondingly, the server expansion system also includes:
设于处理器和服务器之间的分压电路,用于将服务器的电源侦测讯号进行分压以将其降至处理器能够侦测到的电压值。The voltage divider circuit between the processor and the server is used to divide the power detection signal of the server to reduce it to a voltage value that the processor can detect.
具体地,本申请的处理器可选用CPLD(Complex Programmable Logic Device,复杂可编程逻辑器件),也可选用FPGA(Field-Programmable Gate Array,现场可编程门阵列),也可选用MCU(Microcontroller Unit,微控制单元),本申请在此不做特别地限定,根据实际情况选用。Specifically, the processor of this application can choose CPLD (Complex Programmable Logic Device), FPGA (Field-Programmable Gate Array, Field Programmable Gate Array), or MCU (Microcontroller Unit, Micro control unit), this application is not specifically limited here, and it is selected according to actual conditions.
对于这些选用的处理器(CPLD或FPGA或MCU)来说,服务器的电源侦测讯号的电压较高,处理器无法侦测到,所以本申请还在处理器和服务器的连接线上增设分压电路,分压电路的作用是将服务器的电源侦测讯号进行分压后输入至处理器中,以使服务器的电源侦测讯号降低至处理器能够侦测到的电压值大小。For these selected processors (CPLD or FPGA or MCU), the voltage of the server's power detection signal is relatively high, and the processor cannot detect it, so this application also adds a voltage divider on the connection line between the processor and the server Circuit, the function of the voltage divider circuit is to divide the power detection signal of the server and input it into the processor, so that the power detection signal of the server is reduced to a voltage value that the processor can detect.
还需要说明的是,在本说明书中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素, 而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should also be noted that in this specification, relational 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 these entities or operations. There is any such actual relationship or sequence between operations. Moreover, the terms "including", "including" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device that includes a series of elements includes not only those elements, but also includes those that are not explicitly listed Other elements of, or also include elements inherent to this process, method, article or equipment. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, article, or equipment that includes the element.
对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本发明。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其他实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be obvious to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown in this document, but should conform to the widest scope consistent with the principles and novel features disclosed in this document.

Claims (9)

  1. 一种服务器扩充系统的电源控制方法,其特征在于,应用于在系统联机时与服务器的S0电源侦测端和S5电源侦测端连接的扩充系统,包括:A power control method for a server expansion system is characterized in that it is applied to an expansion system connected to the S0 power detection terminal and S5 power detection terminal of the server when the system is online, and includes:
    根据所述服务器的S5电源侦测情况,判断与所述服务器是否存在联机;Determine whether there is a connection with the server according to the S5 power detection situation of the server;
    若存在联机,则获取所述服务器的S0电源侦测讯号,并当所述S0电源侦测讯号满足预设开机讯号条件时,控制自身系统进入开机状态;当所述S0电源侦测讯号满足预设关机讯号条件时,控制自身系统进入关机状态。If there is a connection, the S0 power detection signal of the server is obtained, and when the S0 power detection signal meets the preset power-on signal condition, the system is controlled to enter the power-on state; when the S0 power detection signal meets the predetermined power-on signal condition, When the shutdown signal condition is set, control its own system to enter the shutdown state.
  2. 如权利要求1所述的服务器扩充系统的电源控制方法,其特征在于,所述S0电源侦测讯号满足预设关机讯号条件的确定过程,包括:3. The power control method of a server expansion system according to claim 1, wherein the process of determining that the S0 power detection signal satisfies a preset shutdown signal condition comprises:
    从首次检测到所述S0电源侦测讯号从高电平转为低电平时开始,若在预设关机时间阈值内所述S0电源侦测讯号均为低电平,则确定所述S0电源侦测讯号满足预设关机讯号条件。Starting from the first detection that the S0 power detection signal changes from a high level to a low level, if the S0 power detection signal is low within the preset shutdown time threshold, the S0 power detection signal is determined The test signal meets the preset shutdown signal condition.
  3. 如权利要求2所述的服务器扩充系统的电源控制方法,其特征在于,所述S0电源侦测讯号满足预设开机讯号条件的确定过程,包括:3. The power control method of the server expansion system according to claim 2, wherein the determination process that the S0 power detection signal satisfies a preset power-on signal condition includes:
    当首次检测到所述S0电源侦测讯号从低电平转为高电平时,直接确定所述S0电源侦测讯号满足预设开机讯号条件。When it is detected for the first time that the S0 power detection signal changes from a low level to a high level, it is directly determined that the S0 power detection signal meets the preset power-on signal condition.
  4. 如权利要求3所述的服务器扩充系统的电源控制方法,其特征在于,当所述S0电源侦测讯号满足预设开机讯号条件时,控制自身系统进入开机状态;当所述S0电源侦测讯号满足预设关机讯号条件时,控制自身系统进入关机状态的过程,包括:The power control method of the server expansion system of claim 3, wherein when the S0 power detection signal meets the preset power-on signal condition, the system is controlled to enter the power-on state; when the S0 power detection signal When the preset shutdown signal conditions are met, the process of controlling its own system to enter the shutdown state includes:
    根据所述S0电源侦测讯号的电平值,求取预设或门关系式Y(n)=X(n)+X(n-1)+…+X(n-k)的或门输出值;其中,Y(n)为或门输出值,X(n)为当前时刻获取的S0电源侦测讯号的电平值,X(n-k)与X(n-k+1)的获取时间间隔=预设关机时间阈值/k,n>k,n、k均为正整数;According to the level value of the S0 power detection signal, obtain the OR gate output value of the preset OR relationship Y(n)=X(n)+X(n-1)+...+X(nk); Among them, Y(n) is the output value of the OR gate, X(n) is the level value of the S0 power detection signal acquired at the current moment, and the acquisition time interval between X(nk) and X(n-k+1)=pre Set shutdown time threshold /k, n>k, n and k are both positive integers;
    当所述或门输出值由低电平转为高电平时,控制自身系统进入开机状态;当所述或门输出值由高电平转为低电平时,控制自身系统进入关机状态。When the output value of the OR gate changes from a low level to a high level, the own system is controlled to enter the on state; when the output value of the OR gate changes from a high level to a low level, the own system is controlled to enter the off state.
  5. 如权利要求1所述的服务器扩充系统的电源控制方法,其特征在于,当所述扩充系统上设有电源按钮时,所述电源控制方法还包括:3. The power control method of the server expansion system of claim 1, wherein when a power button is provided on the expansion system, the power control method further comprises:
    若与所述服务器存在联机,则忽略所述电源按钮的按钮讯号;If there is a connection with the server, ignore the button signal of the power button;
    若与所述服务器不存在联机,则根据所述电源按钮的按钮讯号,相应控制自身系统开关机。If there is no connection with the server, then according to the button signal of the power button, control the power on and off of the own system accordingly.
  6. 如权利要求1所述的服务器扩充系统的电源控制方法,其特征在于,当所述扩充系统上未设有电源按钮时,所述电源控制方法还包括:3. The power control method of the server expansion system of claim 1, wherein when the expansion system is not provided with a power button, the power control method further comprises:
    若与所述服务器不存在联机,则将自身系统保持在关机状态。If there is no connection with the server, keep the own system in the shutdown state.
  7. 一种服务器扩充系统,其特征在于,包括:A server expansion system is characterized by comprising:
    存储器,用于存储计算机程序;Memory, used to store computer programs;
    在系统联机时与服务器的S0电源侦测端和S5电源侦测端连接的处理器,用于在执行所述计算机程序时实现如权利要求1-6任一项所述的服务器扩充系统的电源控制方法的步骤。A processor connected to the S0 power detection terminal and S5 power detection terminal of the server when the system is online, and is used to implement the power supply of the server expansion system according to any one of claims 1-6 when the computer program is executed. Steps of the control method.
  8. 如权利要求7所述的服务器扩充系统,其特征在于,所述处理器在系统联机时,通过OCP Mezz接口或PCIe接口与所述服务器上的S0电源侦测端和S5电源侦测端连接。7. The server expansion system of claim 7, wherein the processor is connected to the SO power detection terminal and the S5 power detection terminal on the server through an OCP Mezz interface or a PCIe interface when the system is online.
  9. 如权利要求7所述的服务器扩充系统,其特征在于,所述处理器具体为CPLD或FPGA或MCU;The server expansion system according to claim 7, wherein the processor is specifically a CPLD, FPGA, or MCU;
    相应的,所述服务器扩充系统还包括:Correspondingly, the server expansion system further includes:
    设于所述处理器和所述服务器之间的分压电路,用于将所述服务器的电源侦测讯号进行分压以将其降至所述处理器能够侦测到的电压值。A voltage divider circuit provided between the processor and the server is used to divide the power detection signal of the server to reduce it to a voltage value that the processor can detect.
PCT/CN2020/134724 2020-02-29 2020-12-09 Server expansion system, and power control method for same WO2021169476A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010132404.1A CN111414066A (en) 2020-02-29 2020-02-29 Server expansion system and power supply control method thereof
CN202010132404.1 2020-02-29

Publications (1)

Publication Number Publication Date
WO2021169476A1 true WO2021169476A1 (en) 2021-09-02

Family

ID=71489001

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/134724 WO2021169476A1 (en) 2020-02-29 2020-12-09 Server expansion system, and power control method for same

Country Status (2)

Country Link
CN (1) CN111414066A (en)
WO (1) WO2021169476A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111414066A (en) * 2020-02-29 2020-07-14 苏州浪潮智能科技有限公司 Server expansion system and power supply control method thereof

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030093602A1 (en) * 2001-11-13 2003-05-15 Inventec Corporation Method of shutting down a server in safety
CN107179709A (en) * 2017-05-22 2017-09-19 郑州云海信息技术有限公司 An a kind of key realizes the storage system sequence switch machine device with extension cabinet
CN107526663A (en) * 2017-08-31 2017-12-29 郑州云海信息技术有限公司 A kind of method for testing open/close machine cooperateed with based on outband management with operating system and system
CN108829448A (en) * 2018-06-20 2018-11-16 郑州云海信息技术有限公司 Control method, system and the readable storage medium storing program for executing of N grades of PCIE extension box
CN109446001A (en) * 2018-10-17 2019-03-08 郑州云海信息技术有限公司 A kind of control method and system of server switching on and shutting down
CN110704253A (en) * 2019-08-31 2020-01-17 苏州浪潮智能科技有限公司 Method and system for sequentially switching on and switching off servers in split type or association dependency mode
CN111414066A (en) * 2020-02-29 2020-07-14 苏州浪潮智能科技有限公司 Server expansion system and power supply control method thereof

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100531299C (en) * 2006-08-25 2009-08-19 上海文广互动电视有限公司 Method of controlling security of terminal set top box applied under environment of living broadcast and broadcast on demand
CN101266468B (en) * 2008-04-17 2010-07-14 中国铁路通信信号上海工程有限公司 On-off system automatic control system and control method
CN101576765B (en) * 2008-05-09 2011-08-10 华硕电脑股份有限公司 Method, element and circuit board for controlling electronic device to shut down
CN101877640A (en) * 2009-11-30 2010-11-03 英业达股份有限公司 Power control system of server
CN102253703B (en) * 2010-05-20 2013-09-11 英业达科技有限公司 Switch-on and switch-off system of motherboards
CN102375699A (en) * 2010-08-23 2012-03-14 英业达股份有限公司 Storage system
TWI454092B (en) * 2011-09-29 2014-09-21 Quanta Comp Inc Server cluster and control mechanism
CN103793302A (en) * 2012-10-31 2014-05-14 英业达科技有限公司 Debugging device
CN105005363B (en) * 2015-07-14 2019-01-22 深圳市英飞云智能技术有限公司 Server platform based on universal ARM framework
CN106774763A (en) * 2016-11-30 2017-05-31 郑州云海信息技术有限公司 A kind of method for controlling the upper electricity of multi-node server system start
CN109325599A (en) * 2018-08-14 2019-02-12 重庆邂智科技有限公司 A kind of data processing method, server and computer-readable medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030093602A1 (en) * 2001-11-13 2003-05-15 Inventec Corporation Method of shutting down a server in safety
CN107179709A (en) * 2017-05-22 2017-09-19 郑州云海信息技术有限公司 An a kind of key realizes the storage system sequence switch machine device with extension cabinet
CN107526663A (en) * 2017-08-31 2017-12-29 郑州云海信息技术有限公司 A kind of method for testing open/close machine cooperateed with based on outband management with operating system and system
CN108829448A (en) * 2018-06-20 2018-11-16 郑州云海信息技术有限公司 Control method, system and the readable storage medium storing program for executing of N grades of PCIE extension box
CN109446001A (en) * 2018-10-17 2019-03-08 郑州云海信息技术有限公司 A kind of control method and system of server switching on and shutting down
CN110704253A (en) * 2019-08-31 2020-01-17 苏州浪潮智能科技有限公司 Method and system for sequentially switching on and switching off servers in split type or association dependency mode
CN111414066A (en) * 2020-02-29 2020-07-14 苏州浪潮智能科技有限公司 Server expansion system and power supply control method thereof

Also Published As

Publication number Publication date
CN111414066A (en) 2020-07-14

Similar Documents

Publication Publication Date Title
US6625761B1 (en) Fault tolerant USB method and apparatus
EP2372491B1 (en) Power lock-up setting method and electronic apparatus using the same
CN111488233A (en) Method and system for processing bandwidth loss problem of PCIe device
US6671831B1 (en) Fault tolerant USB method and apparatus
US20080215868A1 (en) Bios management device and method for manging bios setting value
US10250325B2 (en) Network switching system
US8726088B2 (en) Method for processing booting errors
US11175715B2 (en) Method of supplying electric power to a computer system
WO2022111048A1 (en) Power supply control method and apparatus, and server and non-volatile storage medium
US10235185B2 (en) Computer and controlling method thereof
WO2021169476A1 (en) Server expansion system, and power control method for same
CN104156289A (en) Synchronous control method and system based on detection circuit
US10025595B2 (en) Computer system and operating method
US9501113B2 (en) Voltage detection system and controlling method of the same
CN101303655B (en) Device and method for managing basic input/output system
CN108710037B (en) OPS state detection method, system and equipment
US10921875B2 (en) Computer system, operational method for a microcontroller, and computer program product
WO2004003714A2 (en) Circuit for detection of internal microprocessor watchdog device execution and method for resetting microprocessor system
US9411704B2 (en) Computer systems and methods of detecting AC failure
CN108388481B (en) Intelligent watchdog circuit system of OLT equipment
JP5422426B2 (en) Information processing device
WO2014112039A1 (en) Information processing device, method for controlling information processing device and information processing device control program
CN112115000B (en) Remote resetting method and system of system component power supply and BMC remote device
TWI834147B (en) Hot plug method,server system and computer-readable storage medium
TWI551983B (en) Failure detection and switch method for multi-cpu system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20921754

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20921754

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 20921754

Country of ref document: EP

Kind code of ref document: A1