WO2025201264A1 - Power supply short-circuit detection circuit and detection method - Google Patents

Power supply short-circuit detection circuit and detection method

Info

Publication number
WO2025201264A1
WO2025201264A1 PCT/CN2025/084493 CN2025084493W WO2025201264A1 WO 2025201264 A1 WO2025201264 A1 WO 2025201264A1 CN 2025084493 W CN2025084493 W CN 2025084493W WO 2025201264 A1 WO2025201264 A1 WO 2025201264A1
Authority
WO
WIPO (PCT)
Prior art keywords
circuit
output
power
processing chip
power supply
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
PCT/CN2025/084493
Other languages
French (fr)
Chinese (zh)
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 Metabrain Intelligent Technology Co Ltd
Original Assignee
Suzhou Metabrain 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 Metabrain Intelligent Technology Co Ltd filed Critical Suzhou Metabrain Intelligent Technology Co Ltd
Publication of WO2025201264A1 publication Critical patent/WO2025201264A1/en
Pending legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/40Testing power supplies
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/50Testing of electric apparatus, lines, cables or components for short-circuits, continuity, leakage current or incorrect line connections
    • G01R31/52Testing for short-circuits, leakage current or ground faults

Definitions

  • the present application relates to the technical field of electronic circuits, and in particular to a power supply short circuit detection circuit and detection method.
  • another detection method is to remotely power on the server, which may cause burning in the short-circuit area, exacerbating the short circuit and causing damage to the internal circuit of the server.
  • the present application provides a power short circuit detection circuit and detection method for remotely detecting whether a short circuit occurs in the power circuit inside the server, thereby avoiding the need for maintenance engineers to arrive at the site to disassemble the server for inspection.
  • the present application provides a power short circuit detection circuit, the circuit comprising: a processing chip, a charging circuit module, an output loop module and a comparison circuit;
  • the output circuit module is connected between the charging circuit module and the comparison circuit, and the output circuit module is also connected to at least one signal output terminal of the processing chip;
  • the output circuit module includes N control circuits, each of which includes a signal input terminal, a switch tube, and a connection terminal. Each signal input terminal is connected to a signal output terminal of the processing chip to receive a control signal output from the processing chip. Each connection terminal is used to connect to a power circuit inside the server.
  • the switch tube is arranged between the signal input terminal and the connection terminal to control whether the control circuit in which it is located is turned on or off. N ⁇ 1 and is a positive integer.
  • a processing chip is used to start any one of the N control loops as a target control loop for power short circuit detection, and to control other control loops except the target control loop to be in a closed state. After the target control loop is started, power is supplied through the charging circuit module;
  • a comparison circuit is used to receive the output voltage of the target control loop, compare it with the reference voltage, and output a high or low level comparison result to the processing chip;
  • the processing chip is used to receive the comparison result output from the comparison circuit and determine whether a power short circuit fault occurs in the target control loop according to the comparison result.
  • the power short-circuit detection circuit provided in this aspect includes an output circuit module, which includes N control circuits and can be used to connect multiple power circuits inside a server.
  • an output circuit module which includes N control circuits and can be used to connect multiple power circuits inside a server.
  • N control circuits By processing the detection enable signal of the chip and the control signal input to any one of the N control circuits, one of the N control circuits is turned on, and short-circuit detection of the power circuit of the server connected to the control circuit is started.
  • the output voltage collected by the comparison circuit is compared with the reference voltage to obtain a comparison result of a high-level or low-level signal, thereby realizing remote short-circuit detection of the power circuit, improving detection efficiency, and saving labor costs.
  • this detection circuit is used to remotely control the output circuit module to start short-circuit detection inside the server before the server is powered on or when the server cannot be powered on, so as to promptly detect whether a short circuit has occurred in the power circuit, avoiding the maintenance engineer from disassembling the server on site to detect whether a fault has occurred, and also avoiding damage to the server caused by restarting the server again after a short circuit.
  • the comparison circuit is specifically used to: output a high-level signal to the processing chip when the comparison output voltage is greater than or equal to the reference voltage; and output a low-level signal to the processing chip when the comparison output voltage is less than the reference voltage.
  • the g-pole of the MOS transistor Q100 is connected to the detection enable signal, the d-pole of the MOS transistor Q100 is connected to the non-inverting input of the operational amplifier U1, and the s-pole of the MOS transistor Q100 is grounded.
  • the non-inverting input of the operational amplifier U1 is also connected to the first resistor R1 and the second resistor R2.
  • the inverting input of the operational amplifier U1 is grounded via the third resistor R3.
  • the output of the operational amplifier U1 is connected to the g-pole of the MOS transistor Q101.
  • the d-pole of the MOS transistor Q101 outputs current to the output circuit via a mirror current source.
  • the node voltage V102 (i.e., the first voltage V1) can be calculated by the relationship (1).
  • the first relationship is:
  • the charging circuit module further includes a fourth resistor R4 and a fifth resistor R5, wherein the fourth resistor R4 is connected between the DC power supply and the transistor Q102, and the fifth resistor R5 is connected between the DC power supply and the transistor Q103.
  • the DC power supply outputs a third current I3 through the fourth resistor R4, and the DC power supply outputs a fourth current I4 through the fifth resistor R5.
  • node 104 i.e., the output terminal of operational amplifier U1
  • MOS transistor Q101 operates in the variable resistance range, and Q102 and Q103 are turned on.
  • Q102 and Q103 form a mirrored current source.
  • a constant current output charging circuit module which can control the switch through a signal, and uses key components such as an operational amplifier U1, a MOS tube and two transistors to achieve constant current output.
  • the output current size can be set as needed.
  • the comparison circuit includes an operational amplifier U2, a sixth resistor R6, and a seventh resistor R7, wherein the sixth resistor R6 and the seventh resistor R7 are voltage divider resistors.
  • Relationship (3) is:
  • the comparison circuit is further configured to collect the output voltage corresponding to the xth power circuit after a delay of T2 when the charging circuit module is started to supply power to the xth power circuit, where T2>2 ⁇ T1, and T1 is the charging time for the capacitor CL of the xth power circuit.
  • N MOS tubes are connected in series with N control loops.
  • Each control loop contains a MOS tube, which is used to control any specified loop to access the short-circuit detection circuit and perform short-circuit detection in sequence, so as to traverse and detect all power circuits on the server and conduct a comprehensive detection to see if a short-circuit fault occurs inside the server.
  • FIG6 is a flow chart of a power short circuit detection method according to an embodiment of the present application. As shown in FIG6 , the method includes:
  • Step S101 When the output circuit module in the power short circuit detection circuit is connected to N power circuits inside the server, the processing chip controls the input high-level signals to the 1st to Nth power circuits one by one, and controls the detection enable signal in the charging circuit module to take effect, and starts the charging circuit module to supply power to the xth power circuit, 1 ⁇ x ⁇ N, where N is a positive integer.
  • Step S102 Calculating the time taken for the voltage of the xth power circuit to rise to a set detection threshold based on the current value output by the charging circuit module and the total capacitance value of the xth power circuit;
  • Step S103 When the time reaches the preset duration, the processing chip determines whether it receives the high level signal output by the comparison circuit.
  • Step S104 If yes, that is, the processing chip receives the high-level signal output by the comparison circuit, it is determined that no power short circuit fault occurs in the xth power supply loop.
  • Step S105 If not, that is, the processing chip receives the low-level signal output by the comparison circuit, it is determined that a short circuit fault occurs in the xth power supply loop.
  • Step 3 CPLD pulls up the control signal x and outputs a high-level signal. At this time, the x power supply circuit is connected to the inspection main circuit.
  • Step 4 The CPLD controls the detection enable signal in the charging circuit module to take effect. At this time, the charging circuit module starts to charge the xth power supply circuit connected to the inspection circuit and outputs the second current I2.
  • Step 5 Based on the current value I2 output by the charging circuit module and the total capacitance value CL of the x-th loop, calculate the time T(x) required for the loop voltage to climb to the set detection threshold Vth. After the timing reaches time T(x), the comparison circuit outputs a high-level or low-level signal.
  • Step 6 The CPLD compares the value of x to see if it is equal to n, where n is the total number of power loops.
  • the method provided by this aspect is that the processing chip controls the conduction of any one of N control loops, starts short-circuit detection of the power circuit of the server connected to the control loop, and compares the output voltage collected by the comparison circuit with the reference voltage to achieve remote short-circuit detection of the power circuit. Therefore, before the server is powered on or when the server cannot be powered on, remote control and detection of whether the power circuit has a short circuit are possible. This avoids the maintenance engineer from disassembling the server on site to detect whether a fault has occurred, and also avoids damage to the server caused by restarting the server again after a short circuit.
  • An embodiment of the present application further provides a computer device having the detection circuit shown in FIG. 1 to FIG. 5 .
  • Figure 8 is a structural diagram of a computer device provided by an optional embodiment of the present application.
  • the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces.
  • the various components are connected to each other using different buses and can be installed on a common motherboard or installed in other ways as needed.
  • the processor can process instructions executed within the computer device, including instructions stored in or on the memory to display graphical information of the GUI on an external input/output device (such as a display device coupled to the interface).
  • an external input/output device such as a display device coupled to the interface.
  • multiple processors and/or multiple buses can be used together with multiple memories and multiple memories.
  • multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system).
  • Figure 8 takes a processor 10 as an example.
  • the memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created based on the use of a computer device for displaying a small program landing page, etc.
  • the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device.
  • the memory 20 may optionally include a memory remotely located relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.
  • the computer device further includes an input device 30 and an output device 40.
  • the processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means, and FIG8 takes the bus connection as an example.
  • the embodiment of the present application also provides a non-volatile readable storage medium.
  • the above-mentioned method according to the embodiment of the present application can be implemented in hardware, firmware, or implemented as a computer code that can be recorded in a storage medium, or implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and downloaded through a network and will be stored in a local storage medium, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Measurement Of Current Or Voltage (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

A power supply short-circuit detection circuit and detection method. The circuit comprises a processing chip, a charging circuit module, an output loop module and a comparison circuit, wherein the output loop module is connected between the charging circuit module and the comparison circuit, and the output loop module is further connected to the processing chip; the output loop module comprises N control loops, each of which comprises a signal input end, a switching transistor and a connection end; the processing chip is used for activating any one of the N control loops as a target control loop to perform power supply short-circuit detection; the comparison circuit is used for receiving an output voltage of the target control loop and comparing same with a reference voltage, and outputting a high-level or low-level comparison result to the processing chip; and the processing chip is used for receiving the comparison result outputted from the comparison circuit and determining, on the basis of the comparison result, whether the target control loop has a power supply short-circuit fault. The detection circuit implements remote short-circuit detection for a power supply loop, thereby improving detection efficiency and reducing labor costs.

Description

一种电源短路检测电路和检测方法Power supply short circuit detection circuit and detection method

相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS

本申请要求于2024年3月29日提交中国专利局,申请号为202410374196.4,申请名称为“一种电源短路检测电路和检测方法”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application filed with the Patent Office of China on March 29, 2024, with application number 202410374196.4 and application name “A Power Short Circuit Detection Circuit and Detection Method”, the entire contents of which are incorporated herein by reference.

技术领域Technical Field

本申请涉及电子电路技术领域,尤其是涉及一种电源短路检测电路和检测方法。The present application relates to the technical field of electronic circuits, and in particular to a power supply short circuit detection circuit and detection method.

背景技术Background Art

随着大型数据中心建立的数量增多,数据中心内部包含的服务器数量也越来越多,相应地,服务器发生故障的概率也随之增大,因此对服务器的故障检测和维护成为一项重要工作任务。当一台服务器开机发生异常时,可能是多种原因导致,其中之一可能是服务器内部发生短路问题。一种检测方法是,通过现场拆机的方式来检查服务器内部是否发生短路,但需要工程师抵达现场操作,对于大量数据中心分布位置广泛,且可能发生短路故障的服务器预先未可知的情况下,采用现场拆机服务器内部,检查是否发生短路的方式效率低、成本高。As the number of large data centers increases, the number of servers contained within them also increases. Consequently, the probability of server failure also increases, making server fault detection and maintenance a critical task. When a server experiences an abnormality upon startup, it could be due to a variety of reasons, one of which could be a short circuit within the server. One detection method involves on-site disassembly to check for a short circuit within the server, but this requires an engineer to be present on-site. Given the widespread distribution of data centers, where the potential for short circuits is unknown, disassembling the server on-site to check for a short circuit is inefficient and costly.

此外,另一种检测方法是对服务器采用远程上电处理,这可能会导致短路区域发生烧毁现象,反而加剧短路导致服务器内部电路破坏。In addition, another detection method is to remotely power on the server, which may cause burning in the short-circuit area, exacerbating the short circuit and causing damage to the internal circuit of the server.

发明内容Summary of the Invention

有鉴于此,本申请提供了一种电源短路检测电路和检测方法,用以远程检测服务器内部的电源回路是否发生短路,避免维护工程师抵达现场拆机检查。In view of this, the present application provides a power short circuit detection circuit and detection method for remotely detecting whether a short circuit occurs in the power circuit inside the server, thereby avoiding the need for maintenance engineers to arrive at the site to disassemble the server for inspection.

第一方面,本申请提供了一种电源短路检测电路,电路包括:处理芯片、充电电路模块、输出回路模块和比较电路;In a first aspect, the present application provides a power short circuit detection circuit, the circuit comprising: a processing chip, a charging circuit module, an output loop module and a comparison circuit;

输出回路模块连接在充电电路模块和比较电路之间,并且输出回路模块还与处理芯片的至少一个信号输出端相连接;The output circuit module is connected between the charging circuit module and the comparison circuit, and the output circuit module is also connected to at least one signal output terminal of the processing chip;

输出回路模块包括N个控制回路,每个控制回路包括一个信号输入端、一个开关管和一个连接端,其中每个信号输入端与处理芯片的一个信号输出端连接,用于接收来自处理芯片输出的一路控制信号,每个连接端用于连接服务器内部的一个电源回路,开关管设置在信号输入端和连接端之间,用于控制其所在的控制回路导通或者断开,N≥1且为正整数;The output circuit module includes N control circuits, each of which includes a signal input terminal, a switch tube, and a connection terminal. Each signal input terminal is connected to a signal output terminal of the processing chip to receive a control signal output from the processing chip. Each connection terminal is used to connect to a power circuit inside the server. The switch tube is arranged between the signal input terminal and the connection terminal to control whether the control circuit in which it is located is turned on or off. N ≥ 1 and is a positive integer.

处理芯片,用于启动N个控制回路中的任一个,作为目标控制回路进行电源短路检测,以及控制除了目标控制回路之外的其他控制回路处于关闭状态,目标控制回路启动后通过充电电路模块供电;A processing chip is used to start any one of the N control loops as a target control loop for power short circuit detection, and to control other control loops except the target control loop to be in a closed state. After the target control loop is started, power is supplied through the charging circuit module;

比较电路,用于接收目标控制回路的输出电压,并与基准电压进行比较,输出高电平或低电平的比较结果给处理芯片;A comparison circuit is used to receive the output voltage of the target control loop, compare it with the reference voltage, and output a high or low level comparison result to the processing chip;

处理芯片,用于接收来自比较电路输出的比较结果,并根据比较结果确定目标控制回路是否发生电源短路故障。The processing chip is used to receive the comparison result output from the comparison circuit and determine whether a power short circuit fault occurs in the target control loop according to the comparison result.

本方面提供的电源短路检测电路,包括输出回路模块,该输出回路模块中包括N个控制回路,可用于连接服务器内部的多个电源回路,并通过处理芯片的检测使能信号和输入至N个控制回路中任一路控制信号,使N个控制回路中的一个导通,启动对该控制回路连接的服务器的电源回路的短路检测,并通过比较电路采集的输出电压与基准电压相比较,得到高电平或低电平信号的比较结果,实现远程对电源回路的短路检测,提高检测效率,节约人工成本。The power short-circuit detection circuit provided in this aspect includes an output circuit module, which includes N control circuits and can be used to connect multiple power circuits inside a server. By processing the detection enable signal of the chip and the control signal input to any one of the N control circuits, one of the N control circuits is turned on, and short-circuit detection of the power circuit of the server connected to the control circuit is started. The output voltage collected by the comparison circuit is compared with the reference voltage to obtain a comparison result of a high-level or low-level signal, thereby realizing remote short-circuit detection of the power circuit, improving detection efficiency, and saving labor costs.

此外,本检测电路用于在服务器上电前、或者服务器无法开机时,远程控制输出回路模块开启对服务器内部的短路检测,及时发现电源回路是否发生短路,避免维护工程师现场拆机检测是否发生故障,并且还避免了短路后二次开机给服务器内部带来的破坏。In addition, this detection circuit is used to remotely control the output circuit module to start short-circuit detection inside the server before the server is powered on or when the server cannot be powered on, so as to promptly detect whether a short circuit has occurred in the power circuit, avoiding the maintenance engineer from disassembling the server on site to detect whether a fault has occurred, and also avoiding damage to the server caused by restarting the server again after a short circuit.

结合第一方面,在一些可能的实施方式中,比较电路具体用于:当比较输出电压大于等于基准电压时,输出高电平信号给处理芯片;当比较输出电压小于基准电压时,输出低电平信号给处理芯片。In combination with the first aspect, in some possible implementations, the comparison circuit is specifically used to: output a high-level signal to the processing chip when the comparison output voltage is greater than or equal to the reference voltage; and output a low-level signal to the processing chip when the comparison output voltage is less than the reference voltage.

结合第一方面,在一些可能的实施方式中,处理芯片具体用于:当接收比较电路输出的高电平信号时,确定目标控制回路未发生电源短路故障;当接收比较电路输出的低电平信号时,确定目标控制回路发生电源短路故障。本实施方式通过比较电路实现对服务器内部某一电源回路的短路检测,避免维护工程师抵达现场拆机检测,本实施方式提高检测效率,节约人工成本。In conjunction with the first aspect, in some possible implementations, the processing chip is specifically configured to: determine that a power short circuit has not occurred in the target control circuit upon receiving a high-level signal from the comparison circuit; and determine that a power short circuit has occurred in the target control circuit upon receiving a low-level signal from the comparison circuit. This implementation utilizes a comparison circuit to detect a short circuit in a power circuit within the server, eliminating the need for maintenance engineers to arrive on-site for disassembly and inspection. This improves detection efficiency and saves labor costs.

结合第一方面,在一些可能的实施方式中,每个控制回路的开关管为MOS管,MOS管的g极连接信号输入端,MOS管的d极连接充电电路模块的电源输出端,MOS管的s极连接连接端;In conjunction with the first aspect, in some possible implementations, the switch tube of each control loop is a MOS tube, the g pole of the MOS tube is connected to the signal input terminal, the d pole of the MOS tube is connected to the power output terminal of the charging circuit module, and the s pole of the MOS tube is connected to the connection terminal;

处理芯片在向N个控制回路的N个信号输入端均输入低电平信号时,每个控制回路的MOS管断开,每个控制回路处于关闭状态;When the processing chip inputs low-level signals to the N signal input terminals of the N control loops, the MOS transistor of each control loop is disconnected, and each control loop is in a closed state;

当处理芯片向N个信号输入端中的一个输出高电平信号时,与信号输入端连接的MOS管导通,导通的MOS管所在的控制回路启动,输出回路模块向控制回路供电,比较电路启动采集控制回路的输出电压。When the processing chip outputs a high-level signal to one of the N signal input terminals, the MOS transistor connected to the signal input terminal is turned on, the control loop where the turned-on MOS transistor is located is started, the output loop module supplies power to the control loop, and the comparison circuit starts to collect the output voltage of the control loop.

本实施方式中通过在控制回路中设置MOS管,从而实现对N个控制回路中任一回路指定接入控制回路的短路检测,当N个控制回路全部轮询检测后,完成对服务器内部电源回路的检测操作。In this embodiment, a MOS tube is provided in the control loop to implement short-circuit detection of any one of the N control loops. When all the N control loops are polled and tested, the detection operation of the internal power supply circuit of the server is completed.

结合第一方面,在一些可能的实施方式中,充电电路模块与直流电源相连接;In combination with the first aspect, in some possible implementations, the charging circuit module is connected to a DC power supply;

充电电路模块包括:MOS管Q100、MOS管Q101、三极管Q102、三极管Q103,运算放大器U1和多个电阻,其中,三极管Q102和三极管Q103组成镜像电流源;The charging circuit module includes: MOS transistor Q100, MOS transistor Q101, transistor Q102, transistor Q103, operational amplifier U1 and multiple resistors, wherein transistor Q102 and transistor Q103 form a mirror current source;

MOS管Q100的g极连接检测使能信号,MOS管Q100的d极连接运算放大器U1的同相输入端、MOS管Q100的s极连接接地;The g-pole of the MOS transistor Q100 is connected to the detection enable signal, the d-pole of the MOS transistor Q100 is connected to the non-inverting input terminal of the operational amplifier U1, and the s-pole of the MOS transistor Q100 is connected to the ground;

运算放大器U1的同相输入端还与第一电阻R1和第二电阻R2相连接,运算放大器U1的反相输入端通过第三电阻R3接地,运算放大器U1的输出端与MOS管Q101的g极相连接;MOS管Q101的d极通过镜像电流源,输出电流至输出回路。The non-inverting input terminal of the operational amplifier U1 is also connected to the first resistor R1 and the second resistor R2. The inverting input terminal of the operational amplifier U1 is grounded via the third resistor R3. The output terminal of the operational amplifier U1 is connected to the g-pole of the MOS transistor Q101. The d-pole of the MOS transistor Q101 outputs current to the output circuit via the mirror current source.

结合第一方面,在一些可能的实施方式中,检测使能信号由处理芯片控制输出高电平或低电平;充电电路模块具体用于:In conjunction with the first aspect, in some possible implementations, the detection enable signal is controlled by the processing chip to output a high level or a low level; and the charging circuit module is specifically configured to:

当检测使能信号输出高电平时,MOS管Q100闭合,向运算放大器U1的同相输入端输出低电平,充电电路模块停止向输出回路模块供电;When the detection enable signal outputs a high level, the MOS tube Q100 is closed and outputs a low level to the non-inverting input terminal of the operational amplifier U1, and the charging circuit module stops supplying power to the output loop module;

当检测使能信号输出低电平时,MOS管Q100断开,向运算放大器U1的同相输入端输出第一电压V1,运算放大器U1的输出端输出高电平至MOS管Q101,MOS管Q101的s极在第三电阻R3上输出第一电流I1,MOS管Q101的d极导通镜像电流源的三极管Q102和三极管Q103,充电电路模块通过镜像电流源向输出回路模块输出第二电流I2。When the detection enable signal outputs a low level, the MOS transistor Q100 is disconnected and outputs the first voltage V1 to the non-inverting input terminal of the operational amplifier U1. The output terminal of the operational amplifier U1 outputs a high level to the MOS transistor Q101. The s-pole of the MOS transistor Q101 outputs the first current I1 on the third resistor R3. The d-pole of the MOS transistor Q101 turns on the transistors Q102 and Q103 of the mirror current source. The charging circuit module outputs the second current I2 to the output loop module through the mirror current source.

结合第一方面,在一些可能的实施方式中,第一电压V1通过第一关系式确定,第一关系式为:
In combination with the first aspect, in some possible implementations, the first voltage V1 is determined by a first relationship, which is:

其中,V1为第一电压,V电源为直流电源输出电压,R1为第一电阻、R2为第二电阻。Wherein, V1 is the first voltage, Vpower is the output voltage of the DC power supply, R1 is the first resistor, and R2 is the second resistor.

进一步地,第一电流I1通过第二关系式确定,第二关系式为:
Furthermore, the first current I1 is determined by a second relational expression, which is:

其中,I1为第一电流I1,R3为第三电阻。Wherein, I1 is the first current I1, and R3 is the third resistor.

结合第一方面,在一些可能的实施方式中,充电电路模块还包括:第四电阻R4和第五电阻R5,其中,第四电阻R4连接在直流电源和三极管Q102之间,第五电阻R5连接在直流电源和三极管Q103之间;In combination with the first aspect, in some possible implementations, the charging circuit module further includes: a fourth resistor R4 and a fifth resistor R5, wherein the fourth resistor R4 is connected between the DC power supply and the transistor Q102, and the fifth resistor R5 is connected between the DC power supply and the transistor Q103;

直流电源经过第四电阻R4输出第三电流I3,直流电源经过第五电阻R5输出第四电流I4。The DC power supply outputs a third current I3 through the fourth resistor R4 , and the DC power supply outputs a fourth current I4 through the fifth resistor R5 .

结合第一方面,在一些可能的实施方式中,若R4=R5,则I3=I4;当MOS管Q101的s极在第三电阻R3上输出第一电流I1,镜像电流源向输出回路模块输出第二电流I2时,I1=I3,I2=I4,I2=I1。In combination with the first aspect, in some possible implementations, if R4=R5, then I3=I4; when the s-pole of the MOS transistor Q101 outputs the first current I1 on the third resistor R3 and the mirror current source outputs the second current I2 to the output loop module, I1=I3, I2=I4, and I2=I1.

结合第一方面,在一些可能的实施方式中,比较电路包括运算放大器U2,第六电阻R6和第七电阻R7,其中,第六电阻R6和第七电阻R7为分压电阻;In combination with the first aspect, in some possible implementations, the comparison circuit includes an operational amplifier U2, a sixth resistor R6, and a seventh resistor R7, wherein the sixth resistor R6 and the seventh resistor R7 are voltage divider resistors;

运算放大器U2的同相输入端连接输出回路模块的任一控制回路的电压输出端,用于采集任一控制回路的输出电压;The non-inverting input terminal of the operational amplifier U2 is connected to the voltage output terminal of any control loop of the output loop module, so as to collect the output voltage of any control loop;

运算放大器U2的反相输入端通过第七电阻R7接地;The inverting input terminal of the operational amplifier U2 is grounded via a seventh resistor R7;

运算放大器U2的输出端连接处理芯片,用于向处理芯片输出比较结果。The output end of the operational amplifier U2 is connected to the processing chip for outputting the comparison result to the processing chip.

结合第一方面,在一些可能的实施方式中,服务器内部包括N个电源回路,每个电源回路等效为由一个总的电容CL和一个负载电阻RL组成的并联电路;In combination with the first aspect, in some possible implementations, the server includes N power supply circuits, each of which is equivalent to a parallel circuit consisting of a total capacitor CL and a load resistor RL;

电容CL用于充电储能,负载电阻RL用于分流。The capacitor CL is used to charge and store energy, and the load resistor RL is used to shunt current.

结合第一方面,在一些可能的实施方式中,处理芯片具体用于:In conjunction with the first aspect, in some possible implementations, the processing chip is specifically configured to:

对第1至第N电源回路逐个进行控制输入高电平信号,以及控制检测使能信号生效,启动充电电路模块对第x电源回路进行供电,1≤x≤N;Controlling the input high-level signals to the 1st to Nth power supply circuits one by one, and controlling the detection enable signal to take effect, and starting the charging circuit module to supply power to the xth power supply circuit, 1≤x≤N;

根据充电电路模块输出的电流值、第x电源回路的总电容值,计算第x电源回路电压爬升到设定检测阈值所用的时间T(x);Calculate the time T(x) taken for the voltage of the x-th power circuit to rise to the set detection threshold based on the current value output by the charging circuit module and the total capacitance value of the x-th power circuit;

当时间T(x)达到预设时长后,若接收比较电路输出的高电平信号,则确定第x电源回路未发生电源短路故障;若接收低电平信号,则确定第x电源回路发生短路故障。When the time T(x) reaches the preset duration, if a high-level signal output by the comparison circuit is received, it is determined that no power short circuit fault occurs in the xth power supply circuit; if a low-level signal is received, it is determined that a short circuit fault occurs in the xth power supply circuit.

结合第一方面,在一些可能的实施方式中,比较电路还用于,在启动充电电路模块对第x电源回路进行供电时,延迟时长T2后,采集第x电源回路对应的输出电压,T2>2·T1,T1为对第x电源回路的电容CL充电时间。In combination with the first aspect, in some possible implementations, the comparison circuit is further used to, when the charging circuit module is started to power the xth power supply circuit, collect the output voltage corresponding to the xth power supply circuit after a delay of T2, where T2>2·T1, and T1 is the charging time for the capacitor CL of the xth power supply circuit.

结合第一方面,在一些可能的实施方式中,在启动充电电路模块对第x电源回路进行供电时,供电的充电电压大于基准电压。In combination with the first aspect, in some possible implementations, when the charging circuit module is started to supply power to the xth power supply loop, the charging voltage of the power supply is greater than the reference voltage.

在本申请的一些实施例中,处理芯片为复杂可编程逻辑芯片CPLD。In some embodiments of the present application, the processing chip is a complex programmable logic chip CPLD.

第二方面,本申请还提供了一种电源短路检测方法,应用于前述第一方面的电源短路检测电路,方法包括:In a second aspect, the present application further provides a power short circuit detection method, which is applied to the power short circuit detection circuit of the first aspect, and the method includes:

当电源短路检测电路中的输出回路模块连接服务器内部的N个电源回路时,处理芯片对第1至第N电源回路逐个进行控制输入高电平信号,以及控制充电电路模块中的检测使能信号生效,启动充电电路模块对第x电源回路进行供电,1≤x≤N;When the output circuit module in the power short-circuit detection circuit is connected to N power circuits inside the server, the processing chip controls the input of high-level signals to the first to Nth power circuits one by one, and controls the detection enable signal in the charging circuit module to take effect, thereby starting the charging circuit module to supply power to the xth power circuit, where 1≤x≤N;

根据充电电路模块输出的电流值、第x电源回路的总电容值,计算第x电源回路电压爬升到设定检测阈值所需的时间;Calculate the time required for the voltage of the xth power circuit to rise to a set detection threshold based on the current value output by the charging circuit module and the total capacitance value of the xth power circuit;

当时间达到预设时长后,若处理芯片接收比较电路输出的高电平信号,则确定第x电源回路未发生电源短路故障。When the time reaches the preset time length, if the processing chip receives the high level signal output by the comparison circuit, it is determined that no power short circuit fault occurs in the xth power supply loop.

进一步地,方法还包括:若处理芯片接收比较电路输出的低电平信号,则确定第x电源回路发生短路故障。Furthermore, the method further includes: if the processing chip receives a low-level signal output by the comparison circuit, determining that a short circuit fault occurs in the xth power supply loop.

本方面提供的方法,处理芯片控制N个控制回路中的任一个导通,启动对该控制回路连接的服务器的电源回路的短路检测,并通过比较电路采集的输出电压与基准电压相比较,实现远程对电源回路的短路检测,从而在服务器上电前、或者服务器无法开机时,远程控制和发现电源回路是否发生短路,避免维护工程师现场拆机检测是否发生故障,并且还避免了短路后二次开机给服务器内部带来的破坏。The method provided by this aspect is that the processing chip controls the conduction of any one of N control loops, starts short-circuit detection of the power circuit of the server connected to the control loop, and compares the output voltage collected by the comparison circuit with the reference voltage to achieve remote short-circuit detection of the power circuit. Therefore, before the server is powered on or when the server cannot be powered on, remote control and detection of whether the power circuit has a short circuit are possible. This avoids the maintenance engineer from disassembling the server on site to detect whether a fault has occurred, and also avoids damage to the server caused by restarting the server again after a short circuit.

第三方面,本申请提供了一种计算机设备,包括:存储器和处理器,存储器和处理器之间互相通信连接,存储器中存储有计算机指令,处理器通过执行计算机指令,从而执行上述第二方面或其对应的任一实施方式的电源短路检测方法。In a third aspect, the present application provides a computer device comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, computer instructions being stored in the memory, and the processor executing the power short circuit detection method of the above-mentioned second aspect or any corresponding embodiment thereof by executing the computer instructions.

此外,本申请提供了一种非易失性可读存储介质,该非易失性可读存储介质上存储有计算机指令,计算机指令用于使计算机执行上述第二方面或其对应的任一实施方式的电源短路检测方法。In addition, the present application provides a non-volatile readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the power short circuit detection method of the above-mentioned second aspect or any corresponding embodiment thereof.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本申请具体实施方式或现有技术中的技术方案,下面将对具体实施方式或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施方式,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the specific implementation methods of the present application or the technical solutions in the prior art, the following is a brief introduction to the drawings required for use in the specific implementation methods or the description of the prior art. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

图1是本申请实施例提供的一种电源短路检测电路的电路图;FIG1 is a circuit diagram of a power short circuit detection circuit provided in an embodiment of the present application;

图2是本申请实施例提供的一种电源短路检测电路的示意图;FIG2 is a schematic diagram of a power short circuit detection circuit provided in an embodiment of the present application;

图3是本申请实施例提供的另一种电源短路检测电路的电路图;FIG3 is a circuit diagram of another power short circuit detection circuit provided in an embodiment of the present application;

图4是本申请实施例提供的一种输出回路的局部电路图;FIG4 is a partial circuit diagram of an output circuit provided in an embodiment of the present application;

图5是本申请实施例提供的一种电源回路的等效电路图;FIG5 is an equivalent circuit diagram of a power supply circuit provided in an embodiment of the present application;

图6是本申请实施例提供的一种电源短路检测方法的流程图;FIG6 is a flow chart of a power short circuit detection method provided by an embodiment of the present application;

图7是本申请实施例提供的一种短路检测的流程图;FIG7 is a flow chart of a short circuit detection method provided by an embodiment of the present application;

图8是本申请实施例提供的一种计算机设备的硬件结构示意图。FIG8 is a schematic diagram of the hardware structure of a computer device provided in an embodiment of the present application.

具体实施方式DETAILED DESCRIPTION

为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。To make the purpose, technical solutions, and advantages of the embodiments of the present application more clear, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without making creative efforts shall fall within the scope of protection of this application.

本申请技术方案可应用于电子电路技术领域,主要涉及对服务器等网络设备内部电源回路是否发生短路进行检测。The technical solution of the present application can be applied to the field of electronic circuit technology, and mainly involves detecting whether a short circuit occurs in the internal power supply circuit of a server or other network device.

具体地,在服务器启动异常的情况下,有一定概率是服务内部发生了短路问题,比如某些部件失效、元件失效、线缆脱落或者机构件脱落、PCB(Printed Circuit Board,印刷电路板)内部老化等情况都可能引发短路现象。当各种短路发生时,服务器可能无法得到相关报错的日志,进而维护工程师就无法远程获取到服务器的这些异常信息。Specifically, if a server experiences an abnormal startup, there's a chance that a short circuit has occurred within the server. This can be caused by components, components, cable or component detachment, or aging of the printed circuit board (PCB). When these short circuits occur, the server may not be able to access the relevant error logs, making it impossible for maintenance engineers to remotely obtain information about the server's abnormality.

当服务器第一次上电失败时,维护工程师会首先检查服务器日志是否有相关报错信息,如果有相关报错信息,则会根据报错信息提示进行修复处理。When the server fails to power on for the first time, the maintenance engineer will first check the server log to see if there is any relevant error information. If there is any relevant error information, the maintenance engineer will perform repairs according to the error information prompts.

如果无相关报错信息发生,一般维护工程师会尝试对服务器重新上电一次,若服务器二次依然无法正常上电,则维护工程师会现场检查服务器是否发生异常。检查顺序一般是,先检查服务器外观有无异常,然后再打开机箱检查服务器内部是否有线缆脱落、明显元件或部件损坏等异常现象。If no relevant error message is displayed, the maintenance engineer will generally attempt to power on the server again. If the server still cannot power on normally after the second attempt, the maintenance engineer will conduct an on-site inspection to see if there is any abnormality. The inspection sequence is generally to first check the server's appearance for any abnormalities, then open the chassis and check the server for any abnormalities such as loose cables, obvious damage to components or parts, etc.

在远程检测对服务器二次上电过程中,可能会导致短路区域发生烧毁现象,加剧短路问题导致的破坏。如果维护工程师抵达现场进行故障检查,则需要对服务器开箱检查,才能看到服务器内部,并且需要逐个检查各处电源回路是否有短路情况发生,一方面对维护工程师的经验水平要求较高,另一方面需要维护工程师对各个电路逐一排查分析,检测效率低、成本高。During remote testing, repowering the server can cause burns in the short-circuited area, exacerbating the damage caused by the short-circuit issue. If a maintenance engineer arrives on-site to conduct a fault inspection, they must unpack the server to gain access to the server's interior and individually check each power circuit for short circuits. This requires a high level of experience and requires analysis of each circuit individually, resulting in low detection efficiency and high costs.

基于上述分析,本申请实施例提供一种电源短路检测电路,用于远程检测服务器内部是否发生短路,以及还能具体判断出是哪一个电源回路发生短路,从而提高检测效率,降低人工成本。Based on the above analysis, an embodiment of the present application provides a power short circuit detection circuit for remotely detecting whether a short circuit occurs inside a server, and can also specifically determine which power circuit has a short circuit, thereby improving detection efficiency and reducing labor costs.

下面对本实施例提供的电源短路检测电路进行详细说明。The power short circuit detection circuit provided in this embodiment is described in detail below.

参见图1,为本申请实施例提供的一种电源短路检测电路,该电路包括:处理芯片、充电电路模块、输出回路模块和比较电路。Referring to FIG1 , a power short circuit detection circuit is provided in an embodiment of the present application. The circuit includes: a processing chip, a charging circuit module, an output loop module, and a comparison circuit.

其中,输出回路模块连接在充电电路模块和比较电路之间,并且输出回路模块还与处理芯片的至少一个信号输出端相连接。每个信号输出端与输出回路模块中的一个信号输入端相连接。The output circuit module is connected between the charging circuit module and the comparison circuit, and is also connected to at least one signal output terminal of the processing chip. Each signal output terminal is connected to a signal input terminal of the output circuit module.

输出回路模块包括N个控制回路,每个控制回路包括一个信号输入端、一个开关管和一个连接端,其中每个信号输入端与处理芯片的一个信号输出端连接,用于接收来自处理芯片输出的一路控制信号,每个连接端用于连接服务器内部的一个电源回路,开关管设置在信号输入端和连接端之间,用于控制其所在的控制回路导通或者断开,N≥1且为正整数。The output loop module includes N control loops, each control loop includes a signal input terminal, a switch tube and a connection terminal, wherein each signal input terminal is connected to a signal output terminal of the processing chip, and is used to receive a control signal output from the processing chip. Each connection terminal is used to connect to a power supply circuit inside the server. The switch tube is arranged between the signal input terminal and the connection terminal, and is used to control the conduction or disconnection of the control loop in which it is located. N ≥ 1 and is a positive integer.

处理芯片,用于启动N个控制回路中的任一个,作为目标控制回路进行电源短路检测,以及控制除了目标控制回路之外的其他控制回路处于关闭状态,目标控制回路启动后通过充电电路模块供电。The processing chip is used to start any one of the N control loops as the target control loop for power short circuit detection, and to control other control loops except the target control loop to be in a closed state. After the target control loop is started, power is supplied through the charging circuit module.

比较电路,用于接收目标控制回路的输出电压,并与基准电压进行比较,输出高电平或低电平的比较结果给处理芯片。The comparison circuit is used to receive the output voltage of the target control loop, compare it with the reference voltage, and output a high level or low level comparison result to the processing chip.

具体地,比较电路具体用于当比较输出电压大于等于基准电压时,输出高电平信号给处理芯片;当比较输出电压小于基准电压时,输出低电平信号给处理芯片。Specifically, the comparison circuit is used to output a high-level signal to the processing chip when the comparison output voltage is greater than or equal to the reference voltage; and output a low-level signal to the processing chip when the comparison output voltage is less than the reference voltage.

处理芯片,用于接收来自比较电路输出的比较结果,并根据比较结果确定目标控制回路是否发生电源短路故障。The processing chip is used to receive the comparison result output from the comparison circuit and determine whether a power short circuit fault occurs in the target control loop according to the comparison result.

进一步地,处理芯片具体用于当接收比较电路输出的高电平信号时,确定目标控制回路未发生电源短路故障;当接收比较电路输出的低电平信号时,确定目标控制回路发生电源短路故障。Furthermore, the processing chip is specifically used to determine that a power short circuit fault does not occur in the target control loop when receiving a high-level signal output by the comparison circuit; and to determine that a power short circuit fault occurs in the target control loop when receiving a low-level signal output by the comparison circuit.

在本申请的一些实施例中,处理芯片为复杂可编程逻辑芯片(Complex Programmable Logic Device,CPLD)。In some embodiments of the present application, the processing chip is a complex programmable logic device (CPLD).

本实施例中采用CPLD控制,设计充电电路模块、输出回路模块和比较电路,通过CPLD控制输出回路模块选择任一输出回路,以及控制充电电路模块给选择的输出回路进行充电,检测相关电压通过比较模块比较结果,比如输出高电平或低电平信号给CPLD,最后,CPLD根据该比较结果判断是否发生短路故障,以及CPLD记录异常日志并上报系统。In this embodiment, CPLD control is adopted to design a charging circuit module, an output loop module, and a comparison circuit. The CPLD controls the output loop module to select any output loop and controls the charging circuit module to charge the selected output loop. The comparison module detects the relevant voltage and compares the result, such as outputting a high-level or low-level signal to the CPLD. Finally, the CPLD determines whether a short circuit fault occurs based on the comparison result, and the CPLD records the abnormality log and reports it to the system.

进一步地,如图2所示,各模块的功能和作用如下:Furthermore, as shown in Figure 2, the functions and effects of each module are as follows:

处理芯片,比如CPLD:用于负责控制充电电路模块工作,以及控制输出回路模块选择指定回路,其他未被选择的回路保持关闭状态,同时记录比较电路的比较结果,通过该比较结果判断当前指定回路所在的电源回路是否发生短路故障。Processing chip, such as CPLD: It is responsible for controlling the operation of the charging circuit module and controlling the output circuit module to select a specified circuit. Other unselected circuits remain in a closed state. At the same time, the comparison result of the comparison circuit is recorded. The comparison result is used to determine whether a short circuit fault occurs in the power circuit where the current specified circuit is located.

充电电路模块:用于设计成可以控制的电流源,与处理芯片连接,当处理芯片控制使能信号有效后,充电电路模块开始工作给输出回路模块进行小电流充电,此时该充电电路模块相当于一个恒流源。Charging circuit module: designed as a controllable current source, connected to the processing chip. When the processing chip control enable signal is valid, the charging circuit module starts working to charge the output loop module with a small current. At this time, the charging circuit module is equivalent to a constant current source.

输出回路模块:通过输出回路1~n连接服务器内部或者板卡上需要检测的所有电源回路,每一个回路可通过MOS开关(一种电子开关)控制,CPLD可以控制在同一时间内只有一个输出电源回路接到检测电路的主要回路中,其他输出电源回路则处于关闭状态。Output circuit module: All power circuits that need to be tested inside the server or on the board are connected through output circuits 1 to n. Each circuit can be controlled by a MOS switch (an electronic switch). The CPLD can control that only one output power circuit is connected to the main circuit of the detection circuit at the same time, and the other output power circuits are in the off state.

比较电路,又称短路比较电路:用于采集输出回路的输出电压,并比较该输出电压与基准电压之间大小,当检测输出电压高于基准电压时,输出高电平信号给CPLD,高电平信号用于表示该回路正常,没有发生短路。输出低电平信号发CPLD时,表示回路有短路发生,检测电压会保持低电压/低电平,无法爬升到高于基准电压,输出的短路检测结果始终保持低电平,表示当前电源回路有短路情况发生,并反馈给CPLD进行记录。The comparator circuit, also known as the short-circuit comparator circuit, collects the output voltage of the output circuit and compares it with a reference voltage. When the detected output voltage is higher than the reference voltage, it outputs a high-level signal to the CPLD, indicating that the circuit is normal and there is no short circuit. When a low-level signal is output to the CPLD, it indicates that a short circuit has occurred. The detection voltage remains low and cannot rise above the reference voltage. The short-circuit detection result remains low, indicating that a short circuit has occurred in the current power circuit and is fed back to the CPLD for recording.

此外,处理芯片还用于记录信息,当通过比较电路输出的高电平或低电平信号确定某一输出回路连接的电源电路发生短路时,处理芯片会记录当前检测回路的x值,并生成短路日志,将该短路日志上报到系统,以方便维护工程师查看。当服务器无法开机时,维护工程师可以远程控制处理芯片,发送指令执行相关的短路检查流程,实现对服务器内部所有电源回路的故障检测。The processing chip also records information. When a high-level or low-level signal from a comparison circuit indicates a short circuit in a power circuit connected to an output circuit, the processing chip records the x-value of the current detection circuit and generates a short-circuit log. This log is then reported to the system for easy review by maintenance engineers. If a server fails to boot, maintenance engineers can remotely control the processing chip and send instructions to execute the relevant short-circuit detection process, thereby detecting faults in all power circuits within the server.

在一种可能的实施方式中,如图3和图4所示,上述检测电路中,输出回路模块包括1~N个控制回路,对应1~n个电源回路。具体地,每个控制回路中的开关管为MOS管(MOSFET,Metal-Oxide-Semiconductor Field-Effect Transistor,金属-氧化物-半导体场效应晶体管),比如N个控制回路,包括N个MOS管,分别是Q1、Q2、......、Qn。且这些MOS管都是N沟道MOS管。In one possible implementation, as shown in Figures 3 and 4 , in the detection circuit, the output circuit module includes 1 to N control circuits, corresponding to 1 to n power circuits. Specifically, the switch transistor in each control circuit is a MOSFET (Metal-Oxide-Semiconductor Field-Effect Transistor). For example, N control circuits include N MOSFETs, namely Q1, Q2, ..., Qn. These MOSFETs are all N-channel MOSFETs.

进一步地,每个MOS管的g极(栅极)连接信号输入端,用于接收来自处理芯片输出的控制信号,每个MOS管的d极(漏极)连接充电电路模块的电源输出端,每个MOS管的s极(源极)连接连接端。Furthermore, the g-pole (gate) of each MOS tube is connected to the signal input end for receiving the control signal output from the processing chip, the d-pole (drain) of each MOS tube is connected to the power output end of the charging circuit module, and the s-pole (source) of each MOS tube is connected to the connection end.

如图4所示,MOS管Q1的g极连接控制信号1,d极连接电源输出端对应的节点106,s极连接回路1,回路1的引脚为第一控制回路的连接端,用于连接服务器内部的电源回路1。且由“控制信号输入端1-MOS管Q1-连接端(回路1)”组成第一控制回路。同理地,“控制信号输入端2-MOS管Q2-连接端(回路2)”组成第二控制回路,......、“控制信号输入端n-MOS管Qn-连接端(回路n)”组成第N控制回路。As shown in Figure 4, the g-pole of MOS transistor Q1 is connected to control signal 1, the d-pole is connected to node 106 corresponding to the power output, and the s-pole is connected to loop 1. The pin of loop 1 serves as the connection point for the first control loop, used to connect to power loop 1 within the server. The first control loop consists of "control signal input terminal 1 - MOS transistor Q1 - connection terminal (loop 1)." Similarly, "control signal input terminal 2 - MOS transistor Q2 - connection terminal (loop 2)" forms the second control loop, and finally "control signal input terminal n - MOS transistor Qn - connection terminal (loop n)" forms the Nth control loop.

处理芯片在向N个控制回路的N个信号输入端均输入低电平信号时,每个控制回路的MOS管断开,每个控制回路处于关闭状态;When the processing chip inputs low-level signals to the N signal input terminals of the N control loops, the MOS transistor of each control loop is disconnected, and each control loop is in a closed state;

当处理芯片向N个信号输入端中的一个输出高电平信号时,与信号输入端连接的MOS管导通,导通的MOS管所在的控制回路启动,输出回路模块向控制回路供电,比较电路启动采集控制回路的输出电压。When the processing chip outputs a high-level signal to one of the N signal input terminals, the MOS transistor connected to the signal input terminal is turned on, the control loop where the turned-on MOS transistor is located is started, the output loop module supplies power to the control loop, and the comparison circuit starts to collect the output voltage of the control loop.

具体地,本实施例提供的检测电路,在设计时,选取主板上需要检测的N个电源回路,每个电源回路通过串联一颗MOS管接入到检测回路上,比如电源回路1上串联一颗MOS管Q1接入到节点106上,MOS管的g极是由CPLD输出的“控制信号1”所控制,当CPLD向控制信号1输出高电平时,MOS管Q1开启,回路1连接至接入节点106,MOS管Q1起到开关的作用。第2、3……n回路按照同样的方法接入检查回路节点106上,CPLD根据设定顺序每次只输出一个高电平信号给控制信号1~n中的一个,其他控制信号保持做拉低处理以保证输出低电平,进而实现对MOS管Q1、Q2……Qn中每次只有一个是开启状态,其他的MOS管都是关闭状态。Specifically, during the design of the detection circuit provided in this embodiment, N power circuits to be detected are selected on the motherboard. Each power circuit is connected to the detection circuit via a MOS transistor in series. For example, MOS transistor Q1 is connected to node 106 in power circuit 1. The g-pole of the MOS transistor is controlled by "control signal 1" output by the CPLD. When the CPLD outputs a high level to control signal 1, MOS transistor Q1 turns on, connecting circuit 1 to node 106, and MOS transistor Q1 acts as a switch. The second, third, ..., nth circuits are connected to the detection circuit node 106 in the same manner. The CPLD outputs only a high-level signal to one of control signals 1-n at a time according to the set sequence, while the other control signals are pulled low to ensure low output levels. This ensures that only one of MOS transistors Q1, Q2, ..., Qn is turned on at a time, while the other MOS transistors are turned off.

在开启状态下,该MOS管导通,MOS管所在的控制回路接入到检测回路上,比较电路对该控制回路上的输出电压进行采集和比较。In the on state, the MOS tube is turned on, the control loop where the MOS tube is located is connected to the detection loop, and the comparison circuit collects and compares the output voltage on the control loop.

本实施方式中,提供一种输出回路模块,包括N个控制回路,通过CPLD对每一路的控制信号,选择对服务器内部某一个电源回路进行短路检测,由串联的MOS管接入主要回路,使得CPLD根据规则将某一个回路接入检测主回路的功能,从而实现对服务器内部电源回路的远程检测。In this embodiment, an output circuit module is provided, including N control circuits. The CPLD processes the control signal of each circuit to select a power circuit inside the server for short circuit detection. The MOS tubes connected in series are connected to the main circuit, so that the CPLD can connect a certain circuit to the detection main circuit according to the rules, thereby realizing remote detection of the power circuit inside the server.

在一些实施例中,上述充电电路模块还与直流电源相连接。In some embodiments, the charging circuit module is further connected to a DC power supply.

如图3所示,充电电路模块包括:MOS管Q100、MOS管Q101、三极管Q102、三极管Q103,运算放大器U1和多个电阻,其中,三极管Q102和三极管Q103组成镜像电流源。As shown in FIG3 , the charging circuit module includes: MOS transistor Q100 , MOS transistor Q101 , transistor Q102 , transistor Q103 , operational amplifier U1 , and multiple resistors, wherein transistor Q102 and transistor Q103 form a mirror current source.

其中,MOS管Q100的g极连接检测使能信号,MOS管Q100的d极连接运算放大器U1的同相输入端、MOS管Q100的s极连接接地。运算放大器U1的同相输入端还与第一电阻R1和第二电阻R2相连接,运算放大器U1的反相输入端通过第三电阻R3接地,运算放大器U1的输出端与MOS管Q101的g极相连接;MOS管Q101的d极通过镜像电流源,输出电流至输出回路。The g-pole of the MOS transistor Q100 is connected to the detection enable signal, the d-pole of the MOS transistor Q100 is connected to the non-inverting input of the operational amplifier U1, and the s-pole of the MOS transistor Q100 is grounded. The non-inverting input of the operational amplifier U1 is also connected to the first resistor R1 and the second resistor R2. The inverting input of the operational amplifier U1 is grounded via the third resistor R3. The output of the operational amplifier U1 is connected to the g-pole of the MOS transistor Q101. The d-pole of the MOS transistor Q101 outputs current to the output circuit via a mirror current source.

进一步地,检测使能信号由处理芯片控制输出高电平或低电平;充电电路模块具体用于当检测使能信号输出高电平时,MOS管Q100闭合,向运算放大器U1的同相输入端输出低电平,充电电路模块停止向输出回路模块供电。Furthermore, the detection enable signal is controlled by the processing chip to output a high level or a low level; the charging circuit module is specifically used to close the MOS tube Q100 when the detection enable signal outputs a high level, output a low level to the non-inverting input terminal of the operational amplifier U1, and the charging circuit module stops supplying power to the output loop module.

当检测使能信号输出低电平时,MOS管Q100断开,向运算放大器U1的同相输入端输出第一电压V1,运算放大器U1的输出端输出高电平至MOS管Q101,MOS管Q101的s极在第三电阻R3上输出第一电流I1,MOS管Q101的d极导通镜像电流源的三极管Q102和三极管Q103,充电电路模块通过镜像电流源向输出回路模块输出第二电流I2。When the detection enable signal outputs a low level, the MOS transistor Q100 is disconnected and outputs the first voltage V1 to the non-inverting input terminal of the operational amplifier U1. The output terminal of the operational amplifier U1 outputs a high level to the MOS transistor Q101. The s-pole of the MOS transistor Q101 outputs the first current I1 on the third resistor R3. The d-pole of the MOS transistor Q101 turns on the transistors Q102 and Q103 of the mirror current source. The charging circuit module outputs the second current I2 to the output loop module through the mirror current source.

具体地,如图3所示,节点200是主板的输入电源,一般是12V直流电源。节点101是该模块化部分的输入控制端,当检测使能_N为低电平时该模块启动。检测使能输出高/低电平由CPLD控制。当节点101是高电平时,Q100开启,节点102被拉到低电平,此时充电电路模块不供电。Specifically, as shown in Figure 3, node 200 is the input power supply for the mainboard, typically a 12V DC power supply. Node 101 is the input control terminal for the modular component. When Detect Enable_N is low, the module activates. The Detect Enable output high/low level is controlled by the CPLD. When node 101 is high, Q100 turns on, and node 102 is pulled low, disabling power to the charging circuit module.

当检测使能_N为低电平时,即节点101为低电平,Q100关闭,此时节点102的电压由R1、R2分压得到,节点电压V102(即第一电压V1)可通过关系式(1)计算得到。第一关系式为:
When the detection enable_N is low, that is, the node 101 is low, Q100 is turned off, and the voltage of the node 102 is obtained by the voltage division of R1 and R2. The node voltage V102 (i.e., the first voltage V1) can be calculated by the relationship (1). The first relationship is:

其中,V1为第一电压,V电源为直流电源输出电压,R1为第一电阻、R2为第二电阻。Wherein, V1 is the first voltage, Vpower is the output voltage of the DC power supply, R1 is the first resistor, and R2 is the second resistor.

此时,节点103对地电阻为R3,充电电路模块的恒流输出第一电流I1,该第一电流I1由节点102的电压和R3的阻值共同决定,进一步地,第一电流I1通过第二关系式确定,第二关系式为:
At this time, the resistance of node 103 to ground is R3, and the constant current output of the charging circuit module is a first current I1. The first current I1 is determined by the voltage of node 102 and the resistance value of R3. Furthermore, the first current I1 is determined by a second relationship, which is:

其中,I1为第一电流I1,R3为第三电阻。Wherein, I1 is the first current I1, and R3 is the third resistor.

本实施例中,可根据负载电阻的需要,调整R1、R3和R3的值来确定第一电流I1的大小,通过设置第一电流I1可影响后面检测电流和检测时间等参数。In this embodiment, the values of R1, R3 and R4 can be adjusted according to the requirements of the load resistance to determine the magnitude of the first current I1. Setting the first current I1 can affect subsequent detection parameters such as the detection current and detection time.

进一步地,充电电路模块还包括:第四电阻R4和第五电阻R5,其中第四电阻R4连接在直流电源和三极管Q102之间,第五电阻R5连接在直流电源和三极管Q103之间。直流电源经过第四电阻R4输出第三电流I3,直流电源经过第五电阻R5输出第四电流I4。The charging circuit module further includes a fourth resistor R4 and a fifth resistor R5, wherein the fourth resistor R4 is connected between the DC power supply and the transistor Q102, and the fifth resistor R5 is connected between the DC power supply and the transistor Q103. The DC power supply outputs a third current I3 through the fourth resistor R4, and the DC power supply outputs a fourth current I4 through the fifth resistor R5.

若R4=R5,则I3=I4;当MOS管Q101的s极在第三电阻R3上输出第一电流I1,镜像电流源向输出回路模块输出第二电流I2时,I1=I3,I2=I4,I2=I1。If R4=R5, then I3=I4; when the S-pole of the MOS tube Q101 outputs the first current I1 on the third resistor R3 and the mirror current source outputs the second current I2 to the output loop module, I1=I3, I2=I4, and I2=I1.

具体地,充电电路模块工作时,节点104,即运算放大器U1输出端输出高电平,MOS管Q101工作在可变电阻区,此时Q102和Q103导通。Q102和Q103组成镜像电流源,一般设定R4和R5的电阻值,当R4=R5时,此时I3和I4的电流大小相同,而且I3=I1,又由于节点106的电流I2=I4,所以最后输出到节点106的电流也是I2,此时第二电流I2与第一电流I1相同。Specifically, when the charging circuit module is operating, node 104, i.e., the output terminal of operational amplifier U1, outputs a high level. MOS transistor Q101 operates in the variable resistance range, and Q102 and Q103 are turned on. Q102 and Q103 form a mirrored current source. The resistance values of R4 and R5 are generally set. When R4 = R5, currents I3 and I4 are equal, and I3 = I1. Since the current I2 at node 106 is equal to I4, the final current outputted to node 106 is also I2. At this point, the second current I2 is equal to the first current I1.

本实施例中,增加恒流输出充电电路模块,可通过信号控制开关,并且使用运算放大器U1、MOS管和两颗三极管等关键元件,实现恒定电流的输出,输出电流大小可以根据需要设定。In this embodiment, a constant current output charging circuit module is added, which can control the switch through a signal, and uses key components such as an operational amplifier U1, a MOS tube and two transistors to achieve constant current output. The output current size can be set as needed.

在另一些实施例中,比较电路包括运算放大器U2,第六电阻R6和第七电阻R7,其中,第六电阻R6和第七电阻R7为分压电阻。In some other embodiments, the comparison circuit includes an operational amplifier U2, a sixth resistor R6, and a seventh resistor R7, wherein the sixth resistor R6 and the seventh resistor R7 are voltage divider resistors.

运算放大器U2的同相输入端连接输出回路模块的任一控制回路的电压输出端,用于采集任一控制回路的输出电压。运算放大器U2的反相输入端通过第七电阻R7接地;U2的输出端连接处理芯片,用于向处理芯片输出比较结果。The non-inverting input of operational amplifier U2 is connected to the voltage output of any control loop of the output loop module, for collecting the output voltage of any control loop. The inverting input of operational amplifier U2 is grounded via a seventh resistor R7. The output of U2 is connected to the processing chip, for outputting the comparison result to the processing chip.

具体地,如图3所示,节点107是节点200的电压通过第六电阻R6和第七电阻R7分压后,得到的基准电压Vref,当节点106的电压高于节点107电压时,即控制回路的一个输出电压大于等于基准电压Vref,运算放大器U2输出的节点108是高电平,表明此时接入的回路没有短路现象,节点108由CPLD监控,节点108输出的高电平信号传输给CPLD。Specifically, as shown in FIG3 , node 107 is a reference voltage Vref obtained by dividing the voltage of node 200 by the sixth resistor R6 and the seventh resistor R7. When the voltage of node 106 is higher than the voltage of node 107, that is, an output voltage of the control loop is greater than or equal to the reference voltage Vref, the node 108 output by the operational amplifier U2 is a high level, indicating that there is no short circuit in the connected loop at this time. Node 108 is monitored by the CPLD, and the high-level signal output by node 108 is transmitted to the CPLD.

当节点106电压始终低于节点107电压时,即输出电压小于基准电压Vref,表示回路有短路情况发生。When the voltage at the node 106 is always lower than the voltage at the node 107 , that is, the output voltage is lower than the reference voltage Vref, it indicates that a short circuit has occurred in the loop.

在其中一个控制信号拉高,且节点101输出低电平时,经过延时才能判断节点108的电平是高电平还是低电平,经过延时T需要考虑充电电流I、回路的总输出电容C和节点107设定的基准电压Vref。根据关系式(3),计算的时间T,CPLD的延时时间大于T,再做短路检测。When one of the control signals is pulled high and node 101 outputs a low level, a delay is required to determine whether the level of node 108 is high or low. The delay T needs to take into account the charging current I, the total output capacitance C of the loop, and the reference voltage Vref set at node 107. According to equation (3), the calculated time T is greater than the CPLD delay time T, and then short-circuit detection is performed.

关系式(3)为: Relationship (3) is:

其等效电路如图5所示,在服务器内部包括N个电源回路,每个电源回路等效为由一个总的电容CL和一个负载电阻RL组成的并联电路;电容CL用于充电储能,负载电阻RL用于分流。Its equivalent circuit is shown in Figure 5. The server includes N power circuits inside. Each power circuit is equivalent to a parallel circuit consisting of a total capacitor CL and a load resistor RL. The capacitor CL is used for charging and energy storage, and the load resistor RL is used for current diversion.

进一步地,回路1的等效负载电容是CL1,那么当回路1接入检测电路的节点106后,充电电路模块输出第二电流I2对电容CL1进行充电,充电时间T1=CL1·V基准/I2,由于电阻RL1会起到分流作用,则延时读取的时间是T1的2倍以上,即保证T>2·T1,而且设定T时,考虑所有回路的情况,即保证T要大于T1、T2……Tn中的最大值的2倍。Furthermore, the equivalent load capacitance of loop 1 is CL1. When loop 1 is connected to node 106 of the detection circuit, the charging circuit module outputs a second current I2 to charge capacitor CL1. Charging time T1 = CL1·Vreference/I2. Since resistor RL1 acts as a shunt, the delayed reading time is more than twice T1, ensuring that T>2·T1. Furthermore, when setting T, the conditions of all loops are taken into consideration, ensuring that T is greater than twice the maximum value among T1, T2, ..., Tn.

另外,设定的基准电压Vref时,需要考虑RL的情况,以图5中的回路1为例,当第二电流I2给回路1进行充分充电后,节点106的电压V的最终充电电压可以通过如下公式计算:V1=I2·RL1。In addition, when setting the reference voltage Vref, the condition of RL needs to be considered. Taking loop 1 in FIG5 as an example, after the second current I2 fully charges loop 1, the final charging voltage V at node 106 can be calculated by the following formula: V1 = I2·RL1.

设定基准电压Vref必须小于V1,即Vref<V1,才能有效完成检测。因此,本实施例设定基准电压Vref时要考虑所有n个电源回路的RL不同导致的不同V1、V2……Vn,Vref要小于所有电压值。The reference voltage Vref must be set to be less than V1, that is, Vref<V1, in order to effectively complete the detection. Therefore, when setting the reference voltage Vref in this embodiment, the different RL values of all n power supply circuits (V1, V2...Vn) must be considered, and Vref must be less than all voltage values.

本实施例中,通过设置短路比较电路,通过延时后的回路输出电压与设定基准电压Vref进行比较,实现检测当前接入的回路是否有短路发生。In this embodiment, a short-circuit comparison circuit is provided to compare the delayed loop output voltage with a set reference voltage Vref to detect whether a short circuit occurs in the currently connected loop.

可选的,在另一些实施例中,处理芯片具体用于对第1至第N电源回路逐个进行控制输入高电平信号,以及控制检测使能信号生效,启动充电电路模块对第x电源回路进行供电,1≤x≤N且N为正整数。Optionally, in other embodiments, the processing chip is specifically used to control the input of high-level signals to the 1st to Nth power supply circuits one by one, and to control the detection enable signal to take effect, and to start the charging circuit module to supply power to the xth power supply circuit, where 1≤x≤N and N is a positive integer.

根据充电电路模块输出的电流值、第x电源回路的总电容值,计算第x电源回路电压爬升到设定检测阈值所用的时间T(x);当时间T(x)达到预设时长后,若接收比较电路输出的高电平信号,则确定第x电源回路未发生电源短路故障;若接收低电平信号,则确定第x电源回路发生短路故障。Based on the current value output by the charging circuit module and the total capacitance value of the x-th power supply circuit, the time T(x) taken for the voltage of the x-th power supply circuit to climb to the set detection threshold is calculated. When the time T(x) reaches the preset duration, if a high-level signal is received from the comparison circuit, it is determined that no power short circuit fault has occurred in the x-th power supply circuit; if a low-level signal is received from the comparison circuit, it is determined that a short circuit fault has occurred in the x-th power supply circuit.

进一步地,比较电路还用于,在启动充电电路模块对第x电源回路进行供电时,延迟时长T2后,采集第x电源回路对应的输出电压,T2>2·T1,T1为对第x电源回路的电容CL充电时间。Furthermore, the comparison circuit is further configured to collect the output voltage corresponding to the xth power circuit after a delay of T2 when the charging circuit module is started to supply power to the xth power circuit, where T2>2·T1, and T1 is the charging time for the capacitor CL of the xth power circuit.

上述实施例提供的检测电路,包括一个可以控制的充电电路模块,根据服务器回路电容的总容值,可以输出一个大小可控制的充电电流,为后面输出回路模块中的电源回路供电。The detection circuit provided in the above embodiment includes a controllable charging circuit module, which can output a controllable charging current according to the total capacitance of the server loop capacitor to power the power supply circuit in the subsequent output loop module.

此外,还设置N个MOS管串联N个控制回路,每个控制回路中包含一MOS管,用于控制指定任一个回路接入短路检测电路,并依次顺序进行短路检测,实现遍历检测服务器上所有电源回路,服务器内部是否发生短路故障进行全面检测。In addition, N MOS tubes are connected in series with N control loops. Each control loop contains a MOS tube, which is used to control any specified loop to access the short-circuit detection circuit and perform short-circuit detection in sequence, so as to traverse and detect all power circuits on the server and conduct a comprehensive detection to see if a short-circuit fault occurs inside the server.

本实施例的检测电路中,利用比较电路,通过延时后的检测回路输出电压与设定基准电压Vref进行比较,检测当前接入的回路是否发生短路。实现远程对电源回路的短路检测,提高检测效率,节约人工成本。In the detection circuit of this embodiment, a comparator circuit compares the delayed detection circuit output voltage with a set reference voltage Vref to detect whether a short circuit has occurred in the currently connected circuit. This enables remote short-circuit detection of the power circuit, improves detection efficiency, and saves labor costs.

另外,在服务器上电前或者服务器无法开机时,远程发送指令开启内部短路检测,检测可能存在的电源短路问题,避免维护工程师现场操拆机,也避免了再次尝试开机带来的破坏。In addition, before the server is powered on or when the server cannot be powered on, a remote command is sent to start internal short-circuit detection to detect possible power short-circuit problems, avoiding maintenance engineers from disassembling the server on site and avoiding damage caused by trying to power it on again.

需要说明的是,本技术方案还可以在其他需要远程检测短路的系统中使用,或者在各供电系统上电之前对待检测电路进行健康检查。It should be noted that this technical solution can also be used in other systems that require remote short circuit detection, or to perform health checks on circuits to be detected before powering on each power supply system.

在本实施例中还提供了一种电源短路检测方法,可用于上述实施例的电源短路检测电路,图6是根据本申请实施例的一种电源短路检测方法的流程图,如图6所示,该方法包括:This embodiment further provides a power short circuit detection method, which can be used in the power short circuit detection circuit of the above embodiment. FIG6 is a flow chart of a power short circuit detection method according to an embodiment of the present application. As shown in FIG6 , the method includes:

步骤S101:当电源短路检测电路中的输出回路模块连接服务器内部的N个电源回路时,处理芯片对第1至第N电源回路逐个进行控制输入高电平信号,以及控制充电电路模块中的检测使能信号生效,启动充电电路模块对第x电源回路进行供电,1≤x≤N,N为正整数。Step S101: When the output circuit module in the power short circuit detection circuit is connected to N power circuits inside the server, the processing chip controls the input high-level signals to the 1st to Nth power circuits one by one, and controls the detection enable signal in the charging circuit module to take effect, and starts the charging circuit module to supply power to the xth power circuit, 1≤x≤N, where N is a positive integer.

步骤S102:根据充电电路模块输出的电流值、第x电源回路的总电容值,计算第x电源回路电压爬升到设定检测阈值所用的时间;Step S102: Calculating the time taken for the voltage of the xth power circuit to rise to a set detection threshold based on the current value output by the charging circuit module and the total capacitance value of the xth power circuit;

步骤S103:当时间达到预设时长后,处理芯片判断是否接收比较电路输出的高电平信号。Step S103: When the time reaches the preset duration, the processing chip determines whether it receives the high level signal output by the comparison circuit.

步骤S104:如果是,即处理芯片接收到比较电路输出的高电平信号,则确定第x电源回路未发生电源短路故障。Step S104: If yes, that is, the processing chip receives the high-level signal output by the comparison circuit, it is determined that no power short circuit fault occurs in the xth power supply loop.

步骤S105:如果否,即处理芯片接收比较电路输出的低电平信号,则确定第x电源回路发生短路故障。Step S105: If not, that is, the processing chip receives the low-level signal output by the comparison circuit, it is determined that a short circuit fault occurs in the xth power supply loop.

在一具体实施方式中,如图7所示,上述方法具体包括:In a specific embodiment, as shown in FIG7 , the above method specifically includes:

第1步:检测开始后,CPLD将控制信号x设置为0。Step 1: After the detection starts, the CPLD sets the control signal x to 0.

第2步:CPLD轮询使能控制信号x=x+1,由此初始状态下x值为1,所以x从1开始,代表从第1个电源回路开始进行检测,对应控制信号1的回路1。Step 2: CPLD polling enables control signal x=x+1. Therefore, the initial value of x is 1, so x starts from 1, indicating that detection starts from the first power supply circuit, corresponding to circuit 1 of control signal 1.

第3步:CPLD将控制信号x拉高,输出高电平信号,此时x电源回路接入检查主回路。Step 3: CPLD pulls up the control signal x and outputs a high-level signal. At this time, the x power supply circuit is connected to the inspection main circuit.

第4步:CPLD控制充电电路模块中的检测使能信号生效,此时充电电路模块启动,给接入检查回路的第x电源回路进行充电,输出第二电流I2。Step 4: The CPLD controls the detection enable signal in the charging circuit module to take effect. At this time, the charging circuit module starts to charge the xth power supply circuit connected to the inspection circuit and outputs the second current I2.

第5步:根据充电电路模块输出的电流值I2、第x回路的总电容值CL,计算回路电压爬升到设定检测阈值Vth所需要的时间T(x),计时达到时间T(x)后,比较电路输出高电平还是低电平信号。Step 5: Based on the current value I2 output by the charging circuit module and the total capacitance value CL of the x-th loop, calculate the time T(x) required for the loop voltage to climb to the set detection threshold Vth. After the timing reaches time T(x), the comparison circuit outputs a high-level or low-level signal.

如果比较电路输出高电平给CPLD,则表示无短路情况发生;如果比较电路输出仍然保持低电平给CPLD,则确定当前x回路有短路故障发生。If the comparison circuit outputs a high level to the CPLD, it indicates that no short circuit occurs; if the comparison circuit output still maintains a low level to the CPLD, it is determined that a short circuit fault occurs in the current x loop.

第6步:CPLD比较x的值是否等于n,n为电源回路总数。Step 6: The CPLD compares the value of x to see if it is equal to n, where n is the total number of power loops.

如果x<n,则说明轮询遍历未走完,此时返回“第2步”,执行x=x+1,进行第2、3……电源回路的短路检测,继续循环以上第3步至第5步的方法流程。If x<n, it means that the polling traversal is not completed. At this time, return to "Step 2" and execute x=x+1 to perform short-circuit detection on the 2nd, 3rd, ... power supply circuits, and continue to cycle the above method flow from Step 3 to Step 5.

如果x=n,则表示所有的n个回路均已经完成检查。检查测试完毕。统计记录检测结果,生成检测日志并上报,以供维护工程师查看。If x = n, then all n circuits have been inspected. The inspection and testing are complete. The inspection results are recorded, and a log is generated and reported for review by maintenance engineers.

本方面提供的方法,处理芯片控制N个控制回路中的任一个导通,启动对该控制回路连接的服务器的电源回路的短路检测,并通过比较电路采集的输出电压与基准电压相比较,实现远程对电源回路的短路检测,从而在服务器上电前、或者服务器无法开机时,远程控制和发现电源回路是否发生短路,避免维护工程师现场拆机检测是否发生故障,并且还避免了短路后二次开机给服务器内部带来的破坏。The method provided by this aspect is that the processing chip controls the conduction of any one of N control loops, starts short-circuit detection of the power circuit of the server connected to the control loop, and compares the output voltage collected by the comparison circuit with the reference voltage to achieve remote short-circuit detection of the power circuit. Therefore, before the server is powered on or when the server cannot be powered on, remote control and detection of whether the power circuit has a short circuit are possible. This avoids the maintenance engineer from disassembling the server on site to detect whether a fault has occurred, and also avoids damage to the server caused by restarting the server again after a short circuit.

上述方法步骤的更进一步的功能描述与上述电路结构的实施例相同,可参见前述图1至图5所示的实施例内容,此处不再赘述。The further functional description of the above method steps is the same as that of the embodiment of the above circuit structure, and can be found in the embodiments shown in Figures 1 to 5 above, which will not be repeated here.

本申请实施例还提供一种计算机设备,具有上述图1至图5所示的检测电路。An embodiment of the present application further provides a computer device having the detection circuit shown in FIG. 1 to FIG. 5 .

请参阅图8,是本申请可选实施例提供的一种计算机设备的结构示意图,如图8所示,该计算机设备包括:一个或多个处理器10、存储器20,以及用于连接各部件的接口,包括高速接口和低速接口。各个部件利用不同的总线互相通信连接,并且可以被安装在公共主板上或者根据需要以其它方式安装。处理器可以对在计算机设备内执行的指令进行处理,包括存储在存储器中或者存储器上以在外部输入/输出装置(诸如,耦合至接口的显示设备)上显示GUI的图形信息的指令。在一些可选的实施方式中,若需要,可以将多个处理器和/或多条总线与多个存储器和多个存储器一起使用。同样,可以连接多个计算机设备,各个设备提供部分必要的操作(例如,作为服务器阵列、一组刀片式服务器、或者多处理器系统)。图8中以一个处理器10为例。Please refer to Figure 8, which is a structural diagram of a computer device provided by an optional embodiment of the present application. As shown in Figure 8, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses and can be installed on a common motherboard or installed in other ways as needed. The processor can process instructions executed within the computer device, including instructions stored in or on the memory to display graphical information of the GUI on an external input/output device (such as a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and/or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 8 takes a processor 10 as an example.

处理器10可以是中央处理器,网络处理器或其组合。其中,处理器10还可以进一步包括硬件芯片。上述硬件芯片可以是专用集成电路,可编程逻辑器件或其组合。上述可编程逻辑器件可以是复杂可编程逻辑器件,现场可编程逻辑门阵列,通用阵列逻辑或其任意组合。The processor 10 may be a central processing unit, a network processor, or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit, a programmable logic device, or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic, or any combination thereof.

其中,存储器20存储有可由至少一个处理器10执行的指令,以使至少一个处理器10执行实现上述实施例示出的电源短路检测方法。The memory 20 stores instructions that can be executed by at least one processor 10, so as to enable at least one processor 10 to implement the power short circuit detection method shown in the above embodiment.

存储器20可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据一种小程序落地页的展现的计算机设备的使用所创建的数据等。此外,存储器20可以包括高速随机存取存储器,还可以包括非瞬时存储器,例如至少一个磁盘存储器件、闪存器件、或其他非瞬时固态存储器件。在一些可选的实施方式中,存储器20可选包括相对于处理器10远程设置的存储器,这些远程存储器可以通过网络连接至该计算机设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created based on the use of a computer device for displaying a small program landing page, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely located relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.

存储器20可以包括易失性存储器,例如,随机存取存储器;存储器也可以包括非易失性存储器,例如,快闪存储器,硬盘或固态硬盘;存储器20还可以包括上述种类的存储器的组合。The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid-state drive; the memory 20 may also include a combination of the above types of memory.

该计算机设备还包括输入装置30和输出装置40。处理器10、存储器20、输入装置30和输出装置40可以通过总线或者其他方式连接,图8中以通过总线连接为例。The computer device further includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means, and FIG8 takes the bus connection as an example.

输入装置30可接收输入的数字或字符信息,以及产生与该计算机设备的用户设置以及功能控制有关的键信号输入,例如触摸屏、小键盘、鼠标、轨迹板、触摸板、指示杆、一个或者多个鼠标按钮、轨迹球、操纵杆等。输出装置40可以包括显示设备、辅助照明装置(例如,LED)和触觉反馈装置(例如,振动电机)等。上述显示设备包括但不限于液晶显示器,发光二极管,显示器和等离子体显示器。在一些可选的实施方式中,显示设备可以是触摸屏。The input device 30 can receive input digital or character information and generate key signal input related to user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a trackpad, a touch pad, an indicator stick, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 can include a display device, an auxiliary lighting device (e.g., an LED), and a tactile feedback device (e.g., a vibration motor). The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display, and a plasma display. In some optional embodiments, the display device can be a touch screen.

该计算机设备还包括通信接口,用于该计算机设备与其他设备或通信网络通信。The computer device further includes a communication interface for the computer device to communicate with other devices or a communication network.

本申请实施例还提供了一种非易失性可读存储介质,上述根据本申请实施例的方法可在硬件、固件中实现,或者被实现为可记录在存储介质,或者被实现通过网络下载的原始存储在远程存储介质或非暂时机器可读存储介质中并将被存储在本地存储介质中的计算机代码,从而在此描述的方法可被存储在使用通用计算机、专用处理器或者可编程或专用硬件的存储介质上的这样的软件处理。其中,存储介质可为磁碟、光盘、只读存储记忆体、随机存储记忆体、快闪存储器、硬盘或固态硬盘等;进一步地,存储介质还可以包括上述种类的存储器的组合。可以理解,计算机、处理器、微处理器控制器或可编程硬件包括可存储或接收软件或计算机代码的存储组件,当软件或计算机代码被计算机、处理器或硬件访问且执行时,实现上述实施例示出的电源短路检测方法。The embodiment of the present application also provides a non-volatile readable storage medium. The above-mentioned method according to the embodiment of the present application can be implemented in hardware, firmware, or implemented as a computer code that can be recorded in a storage medium, or implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and downloaded through a network and will be stored in a local storage medium, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state drive, etc.; further, the storage medium can also include a combination of the above-mentioned types of memory. It can be understood that the computer, processor, microprocessor controller or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by the computer, processor or hardware, the power short circuit detection method shown in the above embodiment is implemented.

虽然结合附图描述了本申请的实施例,但是本领域技术人员可以在不脱离本申请的精神和范围的情况下做出各种修改和变型,这样的修改和变型均落入由所附权利要求所限定的范围之内。Although the embodiments of the present application have been described with reference to the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present application, and such modifications and variations shall fall within the scope defined by the appended claims.

Claims (20)

一种电源短路检测电路,其特征在于,所述电路包括:处理芯片、充电电路模块、输出回路模块和比较电路,其中,A power short circuit detection circuit, characterized in that the circuit comprises: a processing chip, a charging circuit module, an output loop module and a comparison circuit, wherein: 所述输出回路模块连接在所述充电电路模块和所述比较电路之间,并且所述输出回路模块还与所述处理芯片的至少一个信号输出端相连接;The output circuit module is connected between the charging circuit module and the comparison circuit, and the output circuit module is also connected to at least one signal output terminal of the processing chip; 所述输出回路模块包括N个控制回路,每个所述控制回路包括一个信号输入端、一个开关管和一个连接端,其中每个所述信号输入端与所述处理芯片的一个信号输出端连接,被配置为接收来自所述处理芯片输出的一路控制信号,每个所述连接端被配置为连接服务器内部的一个电源回路,所述开关管设置在所述信号输入端和所述连接端之间,被配置为控制其所在的控制回路导通或者断开,N≥1且为正整数;The output circuit module includes N control circuits, each of which includes a signal input terminal, a switch tube, and a connection terminal. Each of the signal input terminals is connected to a signal output terminal of the processing chip and is configured to receive a control signal output from the processing chip. Each of the connection terminals is configured to connect to a power supply circuit inside the server. The switch tube is arranged between the signal input terminal and the connection terminal and is configured to control the control circuit in which it is located to be turned on or off. N is ≥ 1 and is a positive integer. 所述处理芯片,被配置为启动所述N个控制回路中的任一个,作为目标控制回路进行电源短路检测,以及控制除了所述目标控制回路之外的其他控制回路处于关闭状态,所述目标控制回路启动后通过所述充电电路模块供电;The processing chip is configured to activate any one of the N control loops as a target control loop for power short circuit detection, and to control other control loops except the target control loop to be in a closed state, wherein the target control loop is powered by the charging circuit module after activation; 所述比较电路,被配置为接收所述目标控制回路的输出电压,并与基准电压进行比较,输出高电平或低电平的比较结果给所述处理芯片;The comparison circuit is configured to receive the output voltage of the target control loop, compare it with a reference voltage, and output a high level or low level comparison result to the processing chip; 所述处理芯片,被配置为接收来自所述比较电路输出的比较结果,并根据比较结果确定所述目标控制回路是否发生电源短路故障。The processing chip is configured to receive a comparison result output from the comparison circuit, and determine whether a power short circuit fault occurs in the target control loop according to the comparison result. 根据权利要求1所述的电路,其特征在于,所述比较电路具体被配置为:The circuit according to claim 1, wherein the comparison circuit is specifically configured to: 当比较所述输出电压大于等于所述基准电压时,输出高电平信号给所述处理芯片;When the output voltage is greater than or equal to the reference voltage, a high level signal is output to the processing chip; 当比较所述输出电压小于所述基准电压时,输出低电平信号给所述处理芯片。When the output voltage is smaller than the reference voltage, a low level signal is output to the processing chip. 根据权利要求2所述的电路,其特征在于,所述处理芯片具体被配置为:The circuit according to claim 2, wherein the processing chip is specifically configured to: 当接收所述比较电路输出的高电平信号时,确定所述目标控制回路未发生电源短路故障;When receiving the high level signal output by the comparison circuit, determining that no power short circuit fault occurs in the target control loop; 当接收所述比较电路输出的低电平信号时,确定所述目标控制回路发生电源短路故障。When a low level signal output by the comparison circuit is received, it is determined that a power short circuit fault occurs in the target control loop. 根据权利要求1所述的电路,其特征在于,每个所述控制回路的所述开关管为MOS管,所述MOS管的g极连接所述信号输入端,所述MOS管的d极连接所述充电电路模块的电源输出端,所述MOS管的s极连接所述连接端;The circuit according to claim 1, wherein the switch tube of each control loop is a MOS tube, the g-pole of the MOS tube is connected to the signal input terminal, the d-pole of the MOS tube is connected to the power output terminal of the charging circuit module, and the s-pole of the MOS tube is connected to the connection terminal; 所述处理芯片在向所述N个控制回路的N个信号输入端均输入低电平信号时,每个所述控制回路的MOS管断开,每个所述控制回路处于关闭状态;When the processing chip inputs low-level signals to the N signal input terminals of the N control loops, the MOS transistor of each control loop is disconnected, and each control loop is in a closed state; 当所述处理芯片向所述N个信号输入端中的一个输出高电平信号时,与所述信号输入端连接的MOS管导通,所述导通的MOS管所在的控制回路启动,所述输出回路模块向所述控制回路供电,所述比较电路启动采集所述控制回路的输出电压。When the processing chip outputs a high-level signal to one of the N signal input terminals, the MOS transistor connected to the signal input terminal is turned on, the control loop where the turned-on MOS transistor is located is started, the output loop module supplies power to the control loop, and the comparison circuit starts to collect the output voltage of the control loop. 根据权利要求4所述的电路,其特征在于,所述充电电路模块与直流电源相连接;The circuit according to claim 4, wherein the charging circuit module is connected to a DC power supply; 所述充电电路模块包括:MOS管Q100、MOS管Q101、三极管Q102、三极管Q103,运算放大器U1和多个电阻,其中,所述三极管Q102和所述三极管Q103组成镜像电流源;The charging circuit module includes: MOS transistor Q100, MOS transistor Q101, transistor Q102, transistor Q103, operational amplifier U1 and multiple resistors, wherein the transistor Q102 and the transistor Q103 form a mirror current source; 所述MOS管Q100的g极连接检测使能信号,所述MOS管Q100的d极连接所述运算放大器U1的同相输入端、所述MOS管Q100的s极连接接地;The g-pole of the MOS transistor Q100 is connected to the detection enable signal, the d-pole of the MOS transistor Q100 is connected to the non-inverting input terminal of the operational amplifier U1, and the s-pole of the MOS transistor Q100 is connected to the ground; 所述运算放大器U1的同相输入端还与第一电阻R1和第二电阻R2相连接,所述运算放大器U1的反相输入端通过第三电阻R3接地,所述运算放大器U1的输出端与所述MOS管Q101的g极相连接;所述MOS管Q101的d极通过所述镜像电流源,输出电流至所述输出回路。The non-inverting input terminal of the operational amplifier U1 is further connected to the first resistor R1 and the second resistor R2. The inverting input terminal of the operational amplifier U1 is grounded via the third resistor R3. The output terminal of the operational amplifier U1 is connected to the g-pole of the MOS transistor Q101. The d-pole of the MOS transistor Q101 outputs current to the output loop via the mirror current source. 根据权利要求5所述的电路,其特征在于,所述检测使能信号由所述处理芯片控制输出高电平或低电平;所述充电电路模块具体被配置为:The circuit according to claim 5, wherein the detection enable signal is controlled by the processing chip to output a high level or a low level; and the charging circuit module is specifically configured as follows: 当所述检测使能信号输出高电平时,所述MOS管Q100闭合,向所述运算放大器U1的同相输入端输出低电平,所述充电电路模块停止向所述输出回路模块供电;When the detection enable signal outputs a high level, the MOS transistor Q100 is closed, outputting a low level to the non-inverting input terminal of the operational amplifier U1, and the charging circuit module stops supplying power to the output loop module; 当所述检测使能信号输出低电平时,所述MOS管Q100断开,向所述运算放大器U1的同相输入端输出第一电压V1,所述运算放大器U1的输出端输出高电平至所述MOS管Q101,所述MOS管Q101的s极在第三电阻R3上输出第一电流I1,所述MOS管Q101的d极导通所述镜像电流源的三极管Q102和三极管Q103,所述充电电路模块通过所述镜像电流源向所述输出回路模块输出第二电流I2。When the detection enable signal outputs a low level, the MOS transistor Q100 is disconnected and outputs the first voltage V1 to the non-inverting input terminal of the operational amplifier U1. The output terminal of the operational amplifier U1 outputs a high level to the MOS transistor Q101. The s-pole of the MOS transistor Q101 outputs the first current I1 on the third resistor R3. The d-pole of the MOS transistor Q101 turns on the transistors Q102 and Q103 of the mirror current source. The charging circuit module outputs the second current I2 to the output loop module through the mirror current source. 根据权利要求6所述的电路,其特征在于,所述第一电压V1通过第一关系式确定,所述第一关系式为:
The circuit according to claim 6, wherein the first voltage V1 is determined by a first relationship, wherein the first relationship is:
其中,V1为第一电压,V电源为直流电源输出电压,R1为第一电阻、R2为第二电阻。Wherein, V1 is the first voltage, Vpower is the output voltage of the DC power supply, R1 is the first resistor, and R2 is the second resistor.
根据权利要求7所述的电路,其特征在于,所述第一电流I1通过第二关系式确定,所述第二关系式为:
The circuit according to claim 7, wherein the first current I1 is determined by a second relationship, wherein the second relationship is:
其中,I1为第一电流,R3为第三电阻。Wherein, I1 is the first current, and R3 is the third resistor.
根据权利要求8所述的电路,其特征在于,所述充电电路模块还包括:第四电阻R4和第五电阻R5,其中,所述第四电阻R4连接在所述直流电源和所述三极管Q102之间,所述第五电阻R5连接在所述直流电源和所述三极管Q103之间;The circuit according to claim 8, characterized in that the charging circuit module further comprises: a fourth resistor R4 and a fifth resistor R5, wherein the fourth resistor R4 is connected between the DC power supply and the transistor Q102, and the fifth resistor R5 is connected between the DC power supply and the transistor Q103; 所述直流电源经过所述第四电阻R4输出第三电流I3,所述直流电源经过所述第五电阻R5输出第四电流I4。The DC power supply outputs a third current I3 through the fourth resistor R4 , and the DC power supply outputs a fourth current I4 through the fifth resistor R5 . 根据权利要求9所述的电路,其特征在于,若R4=R5,则I3=I4;The circuit according to claim 9, wherein if R4=R5, then I3=I4; 当所述MOS管Q101的s极在第三电阻R3上输出第一电流I1,所述镜像电流源向所述输出回路模块输出第二电流I2时,所述I1=I3,所述I2=I4,所述I2=I1。When the S-pole of the MOS transistor Q101 outputs the first current I1 on the third resistor R3 and the mirror current source outputs the second current I2 to the output loop module, I1 = I3, I2 = I4, and I2 = I1. 根据权利要求1-10任一项所述的电路,其特征在于,所述比较电路包括运算放大器U2,第六电阻R6和第七电阻R7,其中,所述第六电阻R6和第七电阻R7为分压电阻,The circuit according to any one of claims 1 to 10, characterized in that the comparison circuit comprises an operational amplifier U2, a sixth resistor R6, and a seventh resistor R7, wherein the sixth resistor R6 and the seventh resistor R7 are voltage divider resistors, 所述运算放大器U2的同相输入端连接所述输出回路模块的任一控制回路的电压输出端,被配置为采集任一控制回路的输出电压;The non-inverting input terminal of the operational amplifier U2 is connected to the voltage output terminal of any control loop of the output loop module, and is configured to collect the output voltage of any control loop; 所述运算放大器U2的反相输入端通过所述第七电阻R7接地;The inverting input terminal of the operational amplifier U2 is grounded through the seventh resistor R7; 所述运算放大器U2的输出端连接所述处理芯片,被配置为向所述处理芯片输出比较结果。The output end of the operational amplifier U2 is connected to the processing chip and is configured to output a comparison result to the processing chip. 根据权利要求5所述的电路,其特征在于,所述服务器内部包括N个电源回路,每个所述电源回路等效为由一个总的电容CL和一个负载电阻RL组成的并联电路;The circuit according to claim 5, wherein the server comprises N power supply circuits, each of which is equivalent to a parallel circuit consisting of a total capacitor CL and a load resistor RL; 所述电容CL被配置为充电储能,所述负载电阻RL被配置为分流。The capacitor CL is configured to charge and store energy, and the load resistor RL is configured to shunt current. 根据权利要求12所述的电路,其特征在于,所述处理芯片具体被配置为:The circuit according to claim 12, wherein the processing chip is specifically configured to: 对第1至第N电源回路逐个进行控制输入高电平信号,以及控制所述检测使能信号生效,启动所述充电电路模块对第x电源回路进行供电,1≤x≤N;Controlling the input of high-level signals to the first to Nth power supply circuits one by one, and controlling the detection enable signal to take effect, and starting the charging circuit module to supply power to the xth power supply circuit, 1≤x≤N; 根据所述充电电路模块输出的电流值、所述第x电源回路的总电容值,计算所述第x电源回路电压爬升到设定检测阈值所用的时间T(x);Calculate the time T(x) taken for the voltage of the xth power supply circuit to climb to a set detection threshold based on the current value output by the charging circuit module and the total capacitance value of the xth power supply circuit; 当所述时间T(x)达到预设时长后,若接收所述比较电路输出的高电平信号,则确定所述第x电源回路未发生电源短路故障;若接收低电平信号,则确定所述第x电源回路发生短路故障。When the time T(x) reaches the preset duration, if a high-level signal is received from the comparison circuit, it is determined that no power short circuit fault occurs in the x-th power supply circuit; if a low-level signal is received, it is determined that a short circuit fault occurs in the x-th power supply circuit. 根据权利要求13所述的电路,其特征在于,所述比较电路还被配置为,在启动所述充电电路模块对第x电源回路进行供电时,延迟时长T2后,采集第x电源回路对应的输出电压,所述T2>2·T1,T1为对所述第x电源回路的电容CL充电时间。The circuit according to claim 13 is characterized in that the comparison circuit is further configured to, when the charging circuit module is started to power the xth power circuit, collect the output voltage corresponding to the xth power circuit after a delay of T2, wherein T2>2·T1, and T1 is the charging time of the capacitor CL of the xth power circuit. 根据权利要求14所述的电路,其特征在于,在启动所述充电电路模块对第x电源回路进行供电时,供电的充电电压大于所述基准电压。The circuit according to claim 14, wherein when the charging circuit module is started to supply power to the xth power supply circuit, the charging voltage of the power supply is greater than the reference voltage. 根据权利要求1-10任一项所述的电路,其特征在于,所述处理芯片为复杂可编程逻辑芯片CPLD。The circuit according to any one of claims 1 to 10, characterized in that the processing chip is a complex programmable logic chip CPLD. 一种电源短路检测方法,其特征在于,所述方法应用于如权利要求1至16中任一项所述的电源短路检测电路,所述方法包括:A power short circuit detection method, characterized in that the method is applied to the power short circuit detection circuit according to any one of claims 1 to 16, and the method comprises: 当所述电源短路检测电路中的输出回路模块连接服务器内部的N个电源回路时,处理芯片对第1至第N电源回路逐个进行控制输入高电平信号,以及控制充电电路模块中的检测使能信号生效,启动所述充电电路模块对第x电源回路进行供电,1≤x≤N,N为正整数;When the output circuit module in the power short circuit detection circuit is connected to N power circuits inside the server, the processing chip controls the input of high-level signals to the first to Nth power circuits one by one, and controls the detection enable signal in the charging circuit module to take effect, thereby starting the charging circuit module to supply power to the xth power circuit, where 1≤x≤N, and N is a positive integer; 根据所述充电电路模块输出的电流值、所述第x电源回路的总电容值,计算所述第x电源回路电压爬升到设定检测阈值所需的时间;Calculating the time required for the voltage of the xth power supply circuit to climb to a set detection threshold based on the current value output by the charging circuit module and the total capacitance value of the xth power supply circuit; 当所述时间达到预设时长后,若所述处理芯片接收比较电路输出的高电平信号,则确定所述第x电源回路未发生电源短路故障。When the time reaches the preset time length, if the processing chip receives a high level signal output by the comparison circuit, it is determined that no power short circuit fault occurs in the xth power supply loop. 根据权利要求17所述的方法,其特征在于,所述方法还包括:The method according to claim 17, further comprising: 若所述处理芯片接收所述比较电路输出的低电平信号,则确定所述第x电源回路发生短路故障。If the processing chip receives the low level signal output by the comparison circuit, it is determined that a short circuit fault occurs in the xth power supply loop. 根据权利要求17所述的方法,其特征在于,所述当所述电源短路检测电路中的输出回路模块连接服务器内部的N个电源回路时,处理芯片对第1至第N电源回路逐个进行控制输入高电平信号,包括:The method according to claim 17, wherein when the output circuit module in the power short circuit detection circuit is connected to N power circuits inside the server, the processing chip controls the first to Nth power circuits one by one to input high-level signals, comprising: 检测开始后,所述处理芯片将控制信号x设置为0;After the detection starts, the processing chip sets the control signal x to 0; 所述处理芯片轮询使能所述控制信号x=x+1,从第1个所述电源回路开始进行检测;The processing chip polls and enables the control signal x=x+1, and starts detecting from the first power supply circuit; 所述处理芯片将所述控制信号拉高,输出高电平信号;The processing chip pulls up the control signal and outputs a high-level signal; 所述第x电源回路接入检查主回路。The xth power supply circuit is connected to the inspection main circuit. 根据权利要求19所述的方法,其特征在于,所述方法还包括:The method according to claim 19, further comprising: 所述处理芯片比较x的值是否等于N,N为电源回路总数;The processing chip compares whether the value of x is equal to N, where N is the total number of power circuits; 如果所述x的值等于N,则统计记录电源短路检测结果;If the value of x is equal to N, the power short circuit detection result is statistically recorded; 根据所述电源短路检测结果生成检测日志并上报。Generate a detection log based on the power short circuit detection result and report it.
PCT/CN2025/084493 2024-03-29 2025-03-24 Power supply short-circuit detection circuit and detection method Pending WO2025201264A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202410374196.4A CN117970169B (en) 2024-03-29 2024-03-29 Power supply short circuit detection circuit and detection method
CN202410374196.4 2024-03-29

Publications (1)

Publication Number Publication Date
WO2025201264A1 true WO2025201264A1 (en) 2025-10-02

Family

ID=90846393

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2025/084493 Pending WO2025201264A1 (en) 2024-03-29 2025-03-24 Power supply short-circuit detection circuit and detection method

Country Status (2)

Country Link
CN (1) CN117970169B (en)
WO (1) WO2025201264A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117970169B (en) * 2024-03-29 2024-06-21 苏州元脑智能科技有限公司 Power supply short circuit detection circuit and detection method

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005218190A (en) * 2004-01-28 2005-08-11 Matsushita Electric Ind Co Ltd Output short circuit protection circuit
CN202696122U (en) * 2012-06-21 2013-01-23 深圳市同洲电子股份有限公司 Short-circuit protection circuit of multiplexed output power and electronic equipment
CN108321762A (en) * 2018-03-09 2018-07-24 深圳市晟瑞科技有限公司 A kind of short-circuit protection circuit
CN110752580A (en) * 2018-07-23 2020-02-04 中国科学院沈阳自动化研究所 A junction box power supply system and method for seabed observation network
CN112134257A (en) * 2020-09-24 2020-12-25 深圳市信锐网科技术有限公司 Short-circuit protection circuit of direct-current power supply
CN115704870A (en) * 2021-08-05 2023-02-17 三美电机株式会社 Semiconductor integrated circuit having a plurality of transistors
US20230127616A1 (en) * 2021-02-05 2023-04-27 Shanghai Xinlong Semiconductor Technology Co., Ltd. Short-circuit protection circuit, chip and system for switched-mode power supply
CN117970169A (en) * 2024-03-29 2024-05-03 苏州元脑智能科技有限公司 Power supply short circuit detection circuit and detection method

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101577419A (en) * 2009-06-22 2009-11-11 安徽摆客动力技术有限公司 Selflocking direct current supply short circuit protection circuit
CN206100262U (en) * 2016-10-10 2017-04-12 Tcl海外电子(惠州)有限公司 Constant current power supply and TV set
CN208112210U (en) * 2018-03-09 2018-11-16 深圳市晟瑞科技有限公司 A kind of short-circuit protection circuit
CN110829358A (en) * 2019-10-12 2020-02-21 浙江凯耀照明有限责任公司 Short-circuit protection circuit
CN112152288B (en) * 2020-09-21 2025-02-07 深圳市创芯微微电子有限公司 A battery protection circuit
CN112993961B (en) * 2021-03-18 2022-11-01 东莞永胜医疗制品有限公司 Heating circuit protection circuit, breathing heating circuit and breathing auxiliary equipment
CN115313590B (en) * 2022-09-06 2025-11-04 湖北亿纬动力有限公司 A battery protection circuit and control method
CN117092549A (en) * 2023-07-28 2023-11-21 上汽英飞凌汽车功率半导体(上海)有限公司 Power module short circuit detection device and detection method
CN117559357A (en) * 2023-09-22 2024-02-13 苏州元脑智能科技有限公司 Method, system and device for protecting server power supply

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005218190A (en) * 2004-01-28 2005-08-11 Matsushita Electric Ind Co Ltd Output short circuit protection circuit
CN202696122U (en) * 2012-06-21 2013-01-23 深圳市同洲电子股份有限公司 Short-circuit protection circuit of multiplexed output power and electronic equipment
CN108321762A (en) * 2018-03-09 2018-07-24 深圳市晟瑞科技有限公司 A kind of short-circuit protection circuit
CN110752580A (en) * 2018-07-23 2020-02-04 中国科学院沈阳自动化研究所 A junction box power supply system and method for seabed observation network
CN112134257A (en) * 2020-09-24 2020-12-25 深圳市信锐网科技术有限公司 Short-circuit protection circuit of direct-current power supply
US20230127616A1 (en) * 2021-02-05 2023-04-27 Shanghai Xinlong Semiconductor Technology Co., Ltd. Short-circuit protection circuit, chip and system for switched-mode power supply
CN115704870A (en) * 2021-08-05 2023-02-17 三美电机株式会社 Semiconductor integrated circuit having a plurality of transistors
CN117970169A (en) * 2024-03-29 2024-05-03 苏州元脑智能科技有限公司 Power supply short circuit detection circuit and detection method

Also Published As

Publication number Publication date
CN117970169A (en) 2024-05-03
CN117970169B (en) 2024-06-21

Similar Documents

Publication Publication Date Title
CN100504801C (en) Method and device for detecting and diagnosing computer hardware failures
CN112199244B (en) Method, system, equipment and medium for detecting power failure of server
CN112732498B (en) Test method, device, equipment and storage medium for simulating single-point power-on and power-off of equipment
CN103455120A (en) Power supply control system and method
WO2024183393A1 (en) Power supply control circuit, method and apparatus for storage system, and storage medium
CN111831498A (en) A kind of power failure testing method, device and equipment
WO2025201264A1 (en) Power supply short-circuit detection circuit and detection method
CN112834898B (en) Method, device and equipment for testing stability of power chip of storage device
US20240264860A1 (en) Double-flash switching device and server
CN118528797A (en) Battery pack power-on fault detection method, device, battery pack, vehicle and medium
CN102999414A (en) Detecting circuit of fan
CN118584389A (en) Power supply testing method, device, equipment and storage medium
CN105929929A (en) Circuit for eliminating electric leakage of device in shutdown state
CN101459531B (en) Baseboard management controller power supply device and method
CN107643817A (en) A kind of server voltage pulsation protection circuit and guard method
CN112269463A (en) A power failure protection circuit, method and electric energy meter
CN107544881B (en) A DEBUG card circuit and method for simulating abnormal input voltage of a server
CN117849661A (en) Fault detection method, device and jig for inductance of transconductor voltage regulator
CN110797841A (en) Power supply management device, electronic apparatus, and management device control method
CN104459562A (en) Startup and shutdown testing device
CN119883751B (en) Detection circuit and detection device
CN119805987B (en) Power-on time sequence control circuit, monitoring method and device thereof and data acquisition board card
CN109557993B (en) Power cycle devices and servers
CN119201583B (en) Cabinet testing method, computer equipment, storage medium and program product
CN114443391B (en) Test method and system for ground bounce

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: 25775908

Country of ref document: EP

Kind code of ref document: A1