A printed circuit board failure determination method, device, equipment and readable medium

CN117289109BActive Publication Date: 2026-10-27INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311244265.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-25
Publication Date
2026-10-27
Estimated Expiration
2043-09-25

AI Technical Summary

Technical Problem

[0003]本发明实施例提供一种印刷电路板的故障判断方法、装置、设备及可读介质,以至少解决对印刷电路板的故障原因的判断过于繁琐以及当主板不能与印刷电路板实现通信时,无法判断发生故障的是PCIE设备还是用于安装PCIE设备的槽位的问题

Benefits of technology

[0057]本发明提供了一种印刷电路板的故障判断方法、装置、设备及可读介质,应用于服务器中的基板管理控制器;印刷电路板与基板管理控制器相连,印刷电路板上还设置有用于安装PCIE设备的槽位;在槽位安装PCIE设备的情况下,基板管理控制器采集印刷电路板上预设的第一通电引脚的电信号;基板管理控制器基于第一通电引脚的电信号判断印刷电路板是否发生故障;在印刷电路板正常的情况下,基板管理控制器采集槽位上预设的第二通电引脚的电信号;基板管理控制器基于第二通电引脚的电信号判断槽位是否发生故障。在本发明实施例中,基板管理控制器通过采集印刷电路板上的第一通电引脚的电信号判断印刷电路板是否发生故障,通过采集槽位上的第二通电引脚的电信号判断槽位是否发生故障,提升了印刷电路板的故障判断效率。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117289109B_ABST
    Figure CN117289109B_ABST
Patent Text Reader

Abstract

The application provides a printed circuit board fault judgment method, device, equipment and readable medium, which is applied to a baseboard management controller in a server; a printed circuit board is connected with the baseboard management controller, and a slot for mounting a PCIE device is further arranged on the printed circuit board; in the case that the PCIE device is mounted on the slot, the baseboard management controller collects an electric signal of a preset first power-on pin on the printed circuit board; the baseboard management controller judges whether the printed circuit board is faulty based on the electric signal of the first power-on pin; in the case that the printed circuit board is normal, the baseboard management controller collects an electric signal of a preset second power-on pin on the slot; and the baseboard management controller judges whether the slot is faulty based on the electric signal of the second power-on pin; and the application improves the efficiency of judging whether the printed circuit board is faulty and the cause of the fault of the printed circuit board.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of server technology, and in particular to a method, apparatus, device, and readable medium for diagnosing faults in printed circuit boards. Background Technology

[0002] In the current technology, printed circuit boards (PCBs) communicate with the motherboard via PCIe devices. PCBs have multiple slots for installing PCIe devices. When a PCB malfunctions, users can only locate the cause by measuring the PCB's voltage signal with a voltmeter or measuring the signal waveform with an oscilloscope, a cumbersome process. Furthermore, when the motherboard cannot communicate with the PCB, users cannot determine whether the fault lies with the PCIe device itself or the slot where it is installed. Summary of the Invention

[0003] This invention provides a method, apparatus, device, and readable medium for fault diagnosis of printed circuit boards, which at least solves the problems of overly cumbersome fault diagnosis of printed circuit boards and the inability to determine whether the fault is caused by a PCIe device or a slot used to install a PCIe device when the motherboard cannot communicate with the printed circuit board.

[0004] This invention discloses a method for fault diagnosis of a printed circuit board (PCB), applied to a baseboard management controller in a server; the PCB is connected to the baseboard management controller, and the PCB also has slots for installing PCIe devices; the method includes:

[0005] When a PCIe device is installed in the slot, the substrate management controller acquires the electrical signal of a preset first power-on pin on the printed circuit board;

[0006] The substrate management controller determines whether the printed circuit board has malfunctioned based on the electrical signal of the first power-on pin;

[0007] When the printed circuit board is functioning normally, the substrate management controller acquires the electrical signal of the preset second power-on pin on the slot;

[0008] The substrate management controller determines whether the slot has malfunctioned based on the electrical signal of the second power-on pin.

[0009] Optionally, the printed circuit board is further provided with a complex programmable logic device; the complex programmable logic device is connected to the substrate management controller; the method further includes:

[0010] When no PCIe device is installed in the slot, the baseboard management controller sends an instruction to the complex programmable logic device; the instruction is used to instruct the complex programmable logic device to send an analog signal to the second power pin; the analog signal is used to instruct the second power pin to simulate the electrical signal of a PCIe device installed in the slot;

[0011] The complex programmable logic device receives the instruction and sends an analog signal to the second power-on pin based on the instruction;

[0012] The second power-on pin receives the analog signal and simulates the electrical signal of the PCIe device installed in the slot based on the analog signal;

[0013] The slot sends a return message of the analog signal to the baseboard management controller; the return message is used to indicate whether the analog signal indicating that the slot is successfully equipped with a PCIe device is successfully transmitted.

[0014] The substrate management controller receives the returned information and determines whether the slot has malfunctioned based on the returned information.

[0015] Optionally, the slot is further provided with a fault pin; the method further includes:

[0016] If the electrical signal simulating the installation of a PCIe device in the slot is successful, the baseboard management controller acquires the electrical signal of the fault pin and determines whether the slot has malfunctioned based on the electrical signal of the fault pin.

[0017] Optionally, the method further includes:

[0018] In the event of a fault in the slot, the substrate management controller sends a refresh command to the slot;

[0019] The slot receives the refresh command and refreshes the slot based on the refresh command.

[0020] Optionally, the server is further provided with a power supply; the printed circuit board is connected to the power supply; the method further includes:

[0021] In the event of a slot failure, the substrate management controller sends a slot shutdown command to the complex programmable logic device.

[0022] The complex programmable logic device receives the slot shutdown command and controls the power supply to pause supplying power to the slot based on the slot shutdown command.

[0023] Optionally, the server is also equipped with an indicator light corresponding to the slot; after the step of pausing power supply to the slot, the method further includes:

[0024] The substrate management controller acquires the electrical signal from the second power-on pin;

[0025] When the electrical signal on the second power-on pin is at a low level, the substrate management controller controls the indicator light to turn gray.

[0026] Optionally, the method further includes:

[0027] In the event of a malfunction in the slot, the substrate management controller controls the indicator light to turn red.

[0028] This invention also discloses a fault diagnosis device for a printed circuit board, applied to a baseboard management controller in a server; the printed circuit board is connected to the baseboard management controller, and the printed circuit board is further provided with a slot for installing PCIe devices; the device includes:

[0029] The substrate management controller is used to acquire the electrical signal of a preset first power-on pin on the printed circuit board when a PCIe device is installed in the slot.

[0030] The substrate management controller is used to determine whether the printed circuit board has malfunctioned based on the electrical signal of the first power-on pin;

[0031] The substrate management controller is used to acquire the electrical signal of the preset second power-on pin on the slot when the printed circuit board is normal.

[0032] The substrate management controller is used to determine whether the slot has malfunctioned based on the electrical signal of the second power-on pin.

[0033] Optionally, the printed circuit board is further provided with a complex programmable logic device; the complex programmable logic device is connected to the substrate management controller; the device further includes:

[0034] The baseboard management controller is used to send instructions to the complex programmable logic device when no PCIe device is installed in the slot; the instructions are used to instruct the complex programmable logic device to send an analog signal to the second power pin; the analog signal is used to instruct the second power pin to simulate the electrical signal when a PCIe device is installed in the slot;

[0035] The complex programmable logic device is used to receive the instruction and send an analog signal to the second power-on pin based on the instruction;

[0036] The second power-on pin is used to receive the analog signal and to simulate the electrical signal of the PCIe device installed in the slot based on the analog signal;

[0037] The slot is used to send the return information of the analog signal to the baseboard management controller; the return information is used to indicate whether the analog signal of installing a PCIe device in the slot is successful.

[0038] The substrate management controller is used to receive the returned information and determine whether the slot has malfunctioned based on the returned information.

[0039] Optionally, the slot is further provided with a fault pin; the device further includes:

[0040] The baseboard management controller is used to acquire the electrical signal of the fault pin when the electrical signal simulating the installation of a PCIe device in the slot is successful, and to determine whether the slot has malfunctioned based on the electrical signal of the fault pin.

[0041] Optionally, the device further includes:

[0042] The substrate management controller is used to send a refresh command to the slot in the event of a fault in the slot.

[0043] The slot is used to receive the refresh command and refresh the slot based on the refresh command.

[0044] Optionally, the server also includes a power supply; the printed circuit board is connected to the power supply; the device further includes:

[0045] The substrate management controller is used to send a slot shutdown command to the complex programmable logic device in the event of a slot failure.

[0046] The complex programmable logic device is used to receive the slot shutdown command and control the power supply to pause supplying power to the slot based on the slot shutdown command.

[0047] Optionally, the server is further provided with indicator lights corresponding to the slots; the device also includes:

[0048] The substrate management controller is used to acquire the electrical signal of the second power-on pin;

[0049] The substrate management controller is used to control the indicator light to turn gray when the electrical signal on the second power-on pin is at a low level.

[0050] Optionally, the device further includes:

[0051] The substrate management controller is used to control the indicator light to turn red in the event of a malfunction in the slot.

[0052] This invention also discloses an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;

[0053] The memory is used to store computer programs;

[0054] When the processor executes a program stored in the memory, it implements the method described in the embodiments of the present invention.

[0055] This invention also discloses one or more computer-readable media storing instructions that, when executed by one or more processors, cause the processors to perform the methods described in this invention.

[0056] The embodiments of the present invention have the following advantages:

[0057] This invention provides a method, apparatus, device, and readable medium for fault diagnosis of printed circuit boards (PCBs), applied to a baseboard management controller in a server. The PCB is connected to the baseboard management controller and has slots for installing PCIe devices. When a PCIe device is installed in a slot, the baseboard management controller acquires an electrical signal from a preset first power-on pin on the PCB. The baseboard management controller determines whether the PCB is faulty based on the electrical signal from the first power-on pin. When the PCB is functioning normally, the baseboard management controller acquires an electrical signal from a preset second power-on pin on the slot. The baseboard management controller determines whether the slot is faulty based on the electrical signal from the second power-on pin. In this embodiment, the baseboard management controller determines whether the PCB is faulty by acquiring the electrical signal from the first power-on pin on the PCB and whether the slot is faulty by acquiring the electrical signal from the second power-on pin on the slot, thus improving the efficiency of PCB fault diagnosis. Attached Figure Description

[0058] Figure 1 This is a flowchart of the steps of a fault diagnosis method for a printed circuit board provided in an embodiment of the present invention;

[0059] Figure 2 This is a flowchart illustrating another method for determining faults in a printed circuit board provided in an embodiment of the present invention.

[0060] Figure 3 A structural block diagram of a fault diagnosis device for printed circuit boards provided in an embodiment of the present invention;

[0061] Figure 4This is a block diagram of an electronic device provided in an embodiment of the present invention;

[0062] Figure 5 This is a schematic diagram of a computer-readable medium provided in an embodiment of the present invention. Detailed Implementation

[0063] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0064] To facilitate understanding of the technical solutions and effects of the embodiments of the present invention, the prior art of this application will be briefly described below.

[0065] Artificial intelligence (AI) servers primarily employ two architectures: a hybrid architecture, which stores data locally, and a cloud-based architecture, which utilizes remote storage and hybrid cloud storage technologies. Hybrid cloud storage combines local and cloud storage. From a hardware architecture perspective, AI servers are heterogeneous. This heterogeneity allows for different combinations of CPUs and GPUs depending on the application, such as CPUs and Tensor Processing Units (TPUs), or CPUs with other accelerator cards. AI servers typically use a CPU and GPU combination. GPUs employ parallel computing, excelling at handling intensive data processing such as graphics rendering and machine learning. The communication between the GPU and the motherboard in an AI server via a PCIe interface primarily occurs in two ways: a direct connection to the GPU on a printed circuit board, or a switch board configuration.

[0066] Printed circuit boards (PCBs) containing graphics processors typically have slots for mounting PCIe devices. The motherboard's Basic Input / Output System (BIOS) can detect PCIe devices. PCBs usually do not have indicator lights, so if a power supply failure or a circuit malfunction causes the BIOS to fail to detect a PCIe device, the user cannot determine the cause of the problem.

[0067] When a PCIe device is installed in a slot on a printed circuit board (PCB), the Basic Input / Output System (BIOS) can detect the presence of the PCIe device and transmit its information to the Baseboard Management Controller (BMC) on the server. The BMC can then display this information on the server's screen. When the server screen displays fault information related to a PCIe device, the user cannot determine whether the fault lies with the PCIe device itself or the slot where it is installed. The user must replace the PCIe device to determine the cause of the fault. However, frequent plugging and unplugging of PCIe devices can damage them, resulting in unnecessary costs. When no PCIe device is installed in a slot on the PCB, the BIOS cannot detect either the PCIe device or the slot, thus failing to determine the cause of the PCB fault.

[0068] Reference Figure 1 This diagram illustrates a flowchart of a fault diagnosis method for a printed circuit board (PCB) according to an embodiment of the present invention. The method is applied to a baseboard management controller in a server, and the PCB is connected to the baseboard management controller. The PCB also has slots for installing PCIe devices, and the method specifically includes the following steps:

[0069] Step 101: When a PCIe device is installed in the slot, the substrate management controller acquires the electrical signal of the preset first power-on pin on the printed circuit board.

[0070] In this embodiment of the invention, the server includes a baseboard management controller and a printed circuit board (PCB). The baseboard management controller is connected to the PCB, which also has a first power-on pin and a slot. The first power-on pin transmits current to the PCB, and the slot is used to mount PCIe devices. PCIe is a high-speed serial computer expansion bus standard.

[0071] When a PCIe device is installed in the slot, the baseboard management controller can acquire the electrical signal of the first power-on pin when the server is powered on. In a specific example, a complex programmable logic device (CPLD) is disposed on the printed circuit board. When the server is powered on, the baseboard management controller can acquire the electrical signal of the power-on pin of the CPLD.

[0072] Step 102: The substrate management controller determines whether the printed circuit board has malfunctioned based on the electrical signal of the first power-on pin;

[0073] In this embodiment of the invention, when the substrate management controller detects a low-level electrical signal from the first power-on pin on the printed circuit board, the substrate management controller confirms that the printed circuit board has malfunctioned and cannot function properly, and outputs the log: "GPU board not present". When the substrate management controller detects a high-level electrical signal from the first power-on pin, the substrate management controller confirms that the printed circuit board is powered normally and has not malfunctioned, and outputs the log: "GPU board present".

[0074] Step 103: When the printed circuit board is functioning normally, the substrate management controller acquires the electrical signal of the preset second power-on pin on the slot.

[0075] In this embodiment of the invention, a second power-on pin is provided on the slot of the printed circuit board. The second power-on pin can transmit the current of the slot.

[0076] When the substrate management controller confirms that the printed circuit board is not faulty and is in normal condition, the substrate management controller acquires the electrical signal of the second power-on pin.

[0077] Step 104: The substrate management controller determines whether the slot has malfunctioned based on the electrical signal of the second power-on pin.

[0078] In this embodiment of the invention, when the substrate management controller detects that the electrical signal of the second power-on pin is high, the substrate management controller confirms that the power supply of the slot is normal and the slot has not failed; when the substrate management controller detects that the electrical signal of the second power-on pin is low, the substrate management controller confirms that the power supply of the slot is abnormal and the slot has failed.

[0079] The server is also equipped with a screen that can display the web interface of the baseboard management controller. The baseboard management controller's web interface is a web browser-based remote control interface. The baseboard management controller can display information about slots that are not malfunctioning on the web interface, while information about malfunctioning slots is not displayed.

[0080] In this embodiment of the invention, the substrate management controller determines whether the printed circuit board is faulty by collecting the electrical signal of the first power-on pin on the printed circuit board, and determines whether the slot is faulty by collecting the electrical signal of the second power-on pin on the slot, thereby improving the fault diagnosis efficiency of the printed circuit board.

[0081] Furthermore, in any of the above embodiments, a complex programmable logic device is further disposed on the printed circuit board, and the complex programmable logic device is connected to the substrate management controller; the method includes:

[0082] When no PCIe device is installed in the slot, the baseboard management controller sends an instruction to the complex programmable logic device (CPLD); the instruction instructs the CPLD to send an analog signal to the second power pin; the analog signal instructs the second power pin to simulate the electrical signal when a PCIe device is installed in the slot.

[0083] The complex programmable logic device receives the instruction and sends an analog signal to the second power-on pin based on the instruction;

[0084] The second power-on pin receives the analog signal and simulates the electrical signal of the PCIe device installed in the slot based on the analog signal;

[0085] The slot sends a return message of the analog signal to the baseboard management controller; the return message is used to indicate whether the analog signal indicating that the slot is successfully equipped with a PCIe device is successfully transmitted.

[0086] The substrate management controller receives the returned information and determines whether the slot has malfunctioned based on the returned information.

[0087] In this embodiment of the invention, a complex programmable logic device (CPLD) is also disposed on the printed circuit board. The CPLD is connected to the substrate management controller. A slot detection button is provided on the web interface of the substrate management controller on the server screen.

[0088] When no PCIe device is installed in the slot, the user can press the slot detection button to check for a slot malfunction. When the user presses the slot detection button, the board management controller sends a command to the complex programmable logic device (CPL). This command instructs the CPL to send an analog signal to the second power-on pin. The CPL receives the command and sends a present signal (the analog signal) to the second power-on pin. This analog signal simulates the electrical signal of the second power-on pin when a PCIe device is installed in the slot. The second power-on pin receives the analog signal and, based on the analog signal, simulates the electrical signal of the second power-on pin when a PCIe device is installed in the slot. The second power-on pin can also send the return value of the analog signal to the board management controller. When the return value is false, the second power-on pin fails to simulate the electrical signal of the second power-on pin when a PCIe device is installed in the slot, and the board management controller confirms a slot malfunction.

[0089] In this embodiment of the invention, when no PCIe device is installed in the slot, the electrical signal of the second power-on pin when a PCIe device is installed in the slot is simulated, and the slot is judged based on the return information of the simulated signal, thus solving the problem that it is impossible to determine whether the slot is faulty when no PCIe device is installed in the slot.

[0090] Furthermore, in any of the above embodiments, the slot is also provided with a fault pin; the method further includes:

[0091] If the electrical signal simulating the installation of a PCIe device in the slot is successful, the baseboard management controller acquires the electrical signal of the fault pin and determines whether the slot has malfunctioned based on the electrical signal of the fault pin.

[0092] In this embodiment of the invention, the slot is also provided with a fault pin. The second power-on pin can simulate the electrical signal of the second power-on pin when a PCIe device is installed in the slot and send the return value of the simulated signal to the board management controller. When the return value is true, the second power-on pin successfully simulates the electrical signal of the second power-on pin when a PCIe device is installed in the slot, and the board management controller acquires the electrical signal of the fault pin.

[0093] When the electrical signal of the fault pin is low, the board management controller confirms that the slot has failed; when the electrical signal of the fault pin is high, the board management controller confirms that the slot has not failed and the slot is normal.

[0094] In this embodiment of the invention, when no PCIe device is installed in the slot, and the electrical signal of the second power-on pin is successful when a PCIe device is installed in the simulated slot, the electrical signal of the fault pin is collected to determine whether the slot has failed. This solves the problem that it is impossible to determine whether the slot has failed when no PCIe device is installed in the slot.

[0095] Furthermore, in any of the above embodiments, the method further includes:

[0096] In the event of a fault in the slot, the substrate management controller sends a refresh command to the slot;

[0097] The slot receives the refresh command and refreshes the slot based on the refresh command.

[0098] In this embodiment of the invention, in the event of a failure of the baseboard management controller (BMD), the BMD can send a refresh command to the slot. The slot receives the refresh command and performs a self-refresh based on it. After the slot performs a self-refresh, it sends a log to the BMD, indicating whether the self-refresh was successful. If the slot successfully performs a self-refresh, the BMD sends a command again to the complex programmable logic device (CPLD), which sends an analog signal to a second power pin based on the command. The second power pin simulates the electrical signal of a PCIe device installed in the slot based on the analog signal and sends the return value of the analog signal to the BMD. If the simulation of the PCIe device's electrical signal fails, the BMD confirms a slot failure. If the simulation of the PCIe device's electrical signal is successful, the BMD acquires the electrical signal of the faulty pin; if the faulty pin's electrical signal is low, the BMD confirms a slot failure. The BMD can then send a refresh command to the slot again. The slot can receive the refresh command again and perform a self-refresh. After the slot performs three self-refreshes, the board management controller confirms that the slot is still faulty and stops sending refresh commands to the slot.

[0099] After the slot on the printed circuit board containing the graphics processor performed three self-refreshes, the board management controller confirmed that the slot was still faulty and output the following log: CPUx_PCIEx has fatal errors.

[0100] Furthermore, in any of the above embodiments, the server is further provided with a power supply; the printed circuit board is connected to the power supply; the method further includes:

[0101] In the event of a slot failure, the substrate management controller sends a slot shutdown command to the complex programmable logic device.

[0102] The complex programmable logic device receives the slot shutdown command and controls the power supply to pause supplying power to the slot based on the slot shutdown command.

[0103] In this embodiment of the invention, the server also includes a power supply. The power supply is connected to the printed circuit board and is used to supply power to the printed circuit board. The web interface of the baseboard management controller on the server screen is provided with an on button and an off button corresponding to the slot; the on button is used to control the power supply to start supplying power to the slot, and the off button is used to control the power supply to stop supplying power to the slot.

[0104] If the board management controller confirms a slot malfunction, it sends a shutdown command to the complex programmable logic device (CPL). Upon receiving the shutdown command, the CPL controls the power supply to stop supplying power to the slot.

[0105] When a user wants to close an unused slot, they can press the corresponding close button. The board management controller then sends a close command to the complex programmable logic device (CPL). The CPL receives the close command and controls the power supply to pause supplying power to the slot.

[0106] When a user needs to activate a slot, they can press the corresponding activation button. The board management controller then sends an activation command to the complex programmable logic device (CPL). The CPL receives the activation command and controls the power supply to begin supplying power to the slot.

[0107] Furthermore, in any of the above embodiments, the server is also provided with an indicator light corresponding to the slot, and after the step of pausing power supply to the slot, the method further includes:

[0108] The substrate management controller acquires the electrical signal from the second power-on pin;

[0109] When the electrical signal on the second power-on pin is at a low level, the substrate management controller controls the indicator light to turn gray.

[0110] In this embodiment of the invention, the web interface of the baseboard management controller on the server screen is also equipped with indicator lights, which can indicate the status of the slot.

[0111] If the board management controller confirms a slot malfunction or after the user presses the corresponding power-off button for the slot, the board management controller sends a power-off command to the complex programmable logic device (CPL). The CPL receives the power-off command and controls the power supply to stop supplying power to the slot. The board management controller acquires the electrical signal from the second power-on pin; if the signal from the second power-on pin is low, the board management controller's indicator light turns gray.

[0112] After the user presses the power button corresponding to the slot, the board management controller sends a power command to the complex programmable logic device (CPL). The CPL receives the power command and controls the power supply to begin supplying power to the slot. The board management controller acquires the electrical signal from the second power-on pin; if the electrical signal from the second power-on pin is high, the board management controller controls the indicator light to turn green.

[0113] Furthermore, in any of the above embodiments, the method further includes:

[0114] In the event of a malfunction in the slot, the substrate management controller controls the indicator light to turn red.

[0115] In this embodiment of the invention, the web interface of the baseboard management controller on the server screen is also equipped with indicator lights, which can indicate the status of the slot.

[0116] In this embodiment of the invention, when a slot malfunctions, the indicator light turns red to indicate that the slot has malfunctioned. For example, in this embodiment of the invention, if the substrate management controller malfunctions, the substrate management controller can send a refresh command to the slot. The slot receives the refresh command and performs a self-refresh based on the refresh command. After the slot performs a self-refresh, if the substrate management controller still confirms that the slot is malfunctioning, the substrate management controller controls the indicator light to turn red to indicate that the slot has malfunctioned.

[0117] In this embodiment of the invention, the server is equipped with indicator lights corresponding to the slots. Users can use the indicator lights to determine the status of the slots and whether a fault has occurred in the slots, which provides convenience for users to determine the cause of the printed circuit board failure.

[0118] It should be noted that, for the sake of simplicity, the method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments of the present invention are not limited to the described order of actions, because according to the embodiments of the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions involved are not necessarily essential to the embodiments of the present invention.

[0119] See Figure 2 The diagram shows a flowchart of another method for fault diagnosis of printed circuit boards provided in an embodiment of the present invention.

[0120] Step 201: Power on the server.

[0121] Step 202: The substrate management controller detects whether the printed circuit board containing the graphics processor has malfunctioned. If the printed circuit board containing the graphics processor malfunctions, the substrate management controller's web interface outputs the log: GPUboard not present.

[0122] Step 203: If the printed circuit board with the graphics processor is not faulty, the web interface of the board management controller outputs the log: GPU board present.

[0123] Step 204: The substrate management controller detects whether a slot on the printed circuit board containing the graphics processor has malfunctioned. If a slot on the printed circuit board containing the graphics processor malfunctions, the malfunctioning slot is not displayed on the web interface of the substrate management controller.

[0124] Step 205: If the slots on the printed circuit board with the graphics processor are not faulty, the fault-free slots are displayed on the web interface of the board management controller.

[0125] Step 206: The user presses the slot detection button.

[0126] Step 207: The substrate management controller checks three times whether a slot on the printed circuit board containing the graphics processor has malfunctioned.

[0127] Step 208: The substrate management controller determines whether a slot on the printed circuit board containing the graphics processor is faulty; if the slot on the printed circuit board containing the graphics processor is not faulty, the substrate management controller controls the indicator light to turn green.

[0128] Step 209: If a slot on a printed circuit board containing a graphics processor malfunctions, the malfunctioning slot refreshes itself three times.

[0129] Step 2010: The substrate management controller determines whether the faulty slot has been repaired; if the faulty slot has been repaired, the substrate management controller controls the indicator light to turn green.

[0130] Step 2011: If the faulty slot is not repaired, the control indicator light of the board management controller will turn red.

[0131] Step 2012, Baseboard Management Controller output log: CPUx_PCIEx has fatal errors.

[0132] Step 2013: The user presses the close button.

[0133] In step 2014, the control indicator light of the substrate management controller turns gray.

[0134] In step 2015, the user presses the power button, and the control indicator light of the board management controller turns green.

[0135] Reference Figure 3 This diagram illustrates a structural block diagram of a fault diagnosis device for a printed circuit board 300 provided in an embodiment of the present invention, applied to a baseboard management controller 301 in a server; the printed circuit board 300 is connected to the baseboard management controller 301, and the printed circuit board 300 is also provided with a slot for installing PCIe devices; specifically, it may include the following modules:

[0136] The substrate management controller 301 is used to collect the electrical signal of the preset first power-on pin on the printed circuit board when a PCIe device is installed in the slot.

[0137] The substrate management controller 301 is used to determine whether the printed circuit board has malfunctioned based on the electrical signal of the first power-on pin;

[0138] The substrate management controller 301 is used to collect the electrical signal of the preset second power-on pin on the slot when the printed circuit board is normal.

[0139] The substrate management controller 301 is used to determine whether the slot has malfunctioned based on the electrical signal of the second power-on pin.

[0140] In an optional embodiment of the present invention, a complex programmable logic device is further disposed on the printed circuit board; the complex programmable logic device is connected to the substrate management controller; the device further includes:

[0141] The substrate management controller is used to send instructions to the complex programmable logic device when no PCIe device is installed in the slot; the instructions are used to instruct the complex programmable logic device to send an analog signal to the second power pin; the analog signal is used to instruct the second power pin to simulate the electrical signal when a PCIe device is installed in the slot;

[0142] The complex programmable logic device is used to receive the instruction and send an analog signal to the second power-on pin based on the instruction;

[0143] The second power-on pin is used to receive the analog signal and to simulate the electrical signal of the PCIe device installed in the slot based on the analog signal;

[0144] The slot is used to send the return information of the analog signal to the baseboard management controller; the return information is used to indicate whether the analog signal of installing a PCIe device in the slot is successful.

[0145] The substrate management controller is used to receive the returned information and determine whether the slot has malfunctioned based on the returned information.

[0146] In an optional embodiment of the present invention, the slot is further provided with a fault pin; the device further includes:

[0147] The baseboard management controller is used to acquire the electrical signal of the fault pin when the electrical signal simulating the installation of a PCIe device in the slot is successful, and to determine whether the slot has malfunctioned based on the electrical signal of the fault pin.

[0148] In an optional embodiment of the present invention, the device further includes:

[0149] The substrate management controller is used to send a refresh command to the slot in the event of a fault in the slot.

[0150] The slot is used to receive the refresh command and refresh the slot based on the refresh command.

[0151] In an optional embodiment of the present invention, the server is further provided with a power supply; the printed circuit board is connected to the power supply; the device further includes:

[0152] The substrate management controller is used to send a slot shutdown command to the complex programmable logic device in the event of a slot failure.

[0153] The complex programmable logic device is used to receive the slot shutdown command and control the power supply to pause supplying power to the slot based on the slot shutdown command.

[0154] In an optional embodiment of the present invention, the server is further provided with an indicator light corresponding to the slot; the device further includes:

[0155] The substrate management controller is used to acquire the electrical signal of the second power-on pin;

[0156] The substrate management controller is used to control the indicator light to turn gray when the electrical signal on the second power-on pin is at a low level.

[0157] In an optional embodiment of the present invention, the device further includes:

[0158] The substrate management controller is used to control the indicator light to turn red in the event of a malfunction in the slot.

[0159] As the device embodiment is basically similar to the method embodiment, the description is relatively simple, and relevant parts can be found in the description of the method embodiment.

[0160] In addition, embodiments of the present invention also provide an electronic device, such as... Figure 4 As shown, it includes a processor 401, a communication interface 402, a memory 403, and a communication bus 404, wherein the processor 401, the communication interface 402, and the memory 403 communicate with each other through the communication bus 404.

[0161] Memory 403 is used to store computer programs;

[0162] When processor 401 executes the program stored in memory 403, it performs the following steps:

[0163] When a PCIe device is installed in the slot, the substrate management controller acquires the electrical signal of a preset first power-on pin on the printed circuit board;

[0164] The substrate management controller determines whether the printed circuit board has malfunctioned based on the electrical signal of the first power-on pin;

[0165] When the printed circuit board is functioning normally, the substrate management controller acquires the electrical signal of the preset second power-on pin on the slot;

[0166] The substrate management controller determines whether the slot has malfunctioned based on the electrical signal of the second power-on pin.

[0167] In an optional embodiment of the present invention, a complex programmable logic device is further disposed on the printed circuit board; the complex programmable logic device is connected to the substrate management controller; the method further includes:

[0168] When no PCIe device is installed in the slot, the baseboard management controller sends an instruction to the complex programmable logic device; the instruction is used to instruct the complex programmable logic device to send an analog signal to the second power pin; the analog signal is used to instruct the second power pin to simulate the electrical signal of a PCIe device installed in the slot;

[0169] The complex programmable logic device receives the instruction and sends an analog signal to the second power-on pin based on the instruction;

[0170] The second power-on pin receives the analog signal and simulates the electrical signal of the PCIe device installed in the slot based on the analog signal;

[0171] The slot sends a return message of the analog signal to the baseboard management controller; the return message is used to indicate whether the analog signal indicating that the slot is successfully equipped with a PCIe device is successfully transmitted.

[0172] The substrate management controller receives the returned information and determines whether the slot has malfunctioned based on the returned information.

[0173] In an optional embodiment of the present invention, the slot is further provided with a fault pin; the method further includes:

[0174] If the electrical signal simulating the installation of a PCIe device in the slot is successful, the baseboard management controller acquires the electrical signal of the fault pin and determines whether the slot has malfunctioned based on the electrical signal of the fault pin.

[0175] In an optional embodiment of the present invention, the method further includes:

[0176] In the event of a fault in the slot, the substrate management controller sends a refresh command to the slot;

[0177] The slot receives the refresh command and refreshes the slot based on the refresh command.

[0178] In an optional embodiment of the present invention, the server is further provided with a power supply; the printed circuit board is connected to the power supply; the method further includes:

[0179] In the event of a slot failure, the substrate management controller sends a slot shutdown command to the complex programmable logic device.

[0180] The complex programmable logic device receives the slot shutdown command and controls the power supply to pause supplying power to the slot based on the slot shutdown command.

[0181] In an optional embodiment of the present invention, the server is further provided with an indicator light corresponding to the slot; after the step of pausing power supply to the slot, the method further includes:

[0182] The substrate management controller acquires the electrical signal from the second power-on pin;

[0183] When the electrical signal on the second power-on pin is at a low level, the substrate management controller controls the indicator light to turn gray.

[0184] In an optional embodiment of the present invention, the method further includes:

[0185] In the event of a malfunction in the slot, the substrate management controller controls the indicator light to turn red.

[0186] The communication bus mentioned above can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into address bus, data bus, control bus, etc. For ease of illustration, only one thick line is used to represent it in the diagram, but this does not mean that there is only one bus or one type of bus.

[0187] The communication interface is used for communication between the aforementioned terminal and other devices.

[0188] The memory may include random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor.

[0189] The processors mentioned above can be general-purpose processors, including central processing units (CPUs), network processors (NPs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0190] like Figure 5 As shown, in another embodiment of the present invention, a computer-readable storage medium 501 is also provided, which stores instructions that, when executed on a computer, cause the computer to execute a fault diagnosis method for a printed circuit board as described in the above embodiment.

[0191] In another embodiment of the present invention, a computer program product containing instructions is also provided, which, when run on a computer, causes the computer to execute a fault diagnosis method for a printed circuit board as described in the above embodiments.

[0192] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk (SSD)).

[0193] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0194] The various embodiments in this specification are described in a related manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the system embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.

[0195] The above description is merely a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention are included within the scope of protection of the present invention.

Claims

1. A method for diagnosing faults in a printed circuit board, characterized in that, Baseboard management controller used in servers; The printed circuit board is connected to the substrate management controller, and the printed circuit board is also provided with a slot for installing PCIe devices; The method includes: When a PCIe device is installed in the slot, the substrate management controller collects the electrical signal of the preset first power-on pin on the printed circuit board; The substrate management controller determines whether the printed circuit board has malfunctioned based on the electrical signal of the first power-on pin; When the printed circuit board is functioning normally, the substrate management controller acquires the electrical signal of the preset second power-on pin on the slot; The substrate management controller determines whether the slot has malfunctioned based on the electrical signal of the second power-on pin; The printed circuit board is also provided with a complex programmable logic device; the complex programmable logic device is connected to the substrate management controller; the method further includes: When no PCIe device is installed in the slot, the baseboard management controller sends an instruction to the complex programmable logic device; the instruction is used to instruct the complex programmable logic device to send an analog signal to the second power pin; the analog signal is used to instruct the second power pin to simulate the electrical signal of a PCIe device installed in the slot; The complex programmable logic device receives the instruction and sends an analog signal to the second power-on pin based on the instruction; The second power-on pin receives the analog signal and simulates the electrical signal of the PCIe device installed in the slot based on the analog signal; The slot sends a return message of the analog signal to the baseboard management controller; the return message is used to indicate whether the analog signal indicating that the slot is successfully equipped with a PCIe device is successfully transmitted. The substrate management controller receives the returned information and determines whether the slot has malfunctioned based on the returned information.

2. The method according to claim 1, characterized in that, The slot is also equipped with a fault pin; the method further includes: If the electrical signal simulating the installation of a PCIe device in the slot is successful, the baseboard management controller acquires the electrical signal of the fault pin and determines whether the slot has malfunctioned based on the electrical signal of the fault pin.

3. The method according to claim 2, characterized in that, The method further includes: In the event of a fault in the slot, the substrate management controller sends a refresh command to the slot; The slot receives the refresh command and refreshes the slot based on the refresh command.

4. The method according to claim 1, characterized in that, The server is also equipped with a power supply; the printed circuit board is connected to the power supply; the method further includes: In the event of a slot failure, the substrate management controller sends a slot shutdown command to the complex programmable logic device. The complex programmable logic device receives the slot shutdown command and controls the power supply to pause supplying power to the slot based on the slot shutdown command.

5. The method according to claim 4, characterized in that, The server is also equipped with indicator lights corresponding to the slots; after the step of pausing power supply to the slots, the following steps are also included: The substrate management controller acquires the electrical signal from the second power-on pin; When the electrical signal on the second power-on pin is at a low level, the substrate management controller controls the indicator light to turn gray.

6. The method according to claim 5, characterized in that, The method further includes: In the event of a malfunction in the slot, the substrate management controller controls the indicator light to turn red.

7. A fault diagnosis device for printed circuit boards, characterized in that, A baseboard management controller for use in servers; the printed circuit board is connected to the baseboard management controller, and the printed circuit board is also provided with slots for installing PCIe devices; the device includes: The substrate management controller is used to acquire the electrical signal of a preset first power-on pin on the printed circuit board when a PCIe device is installed in the slot. The substrate management controller is used to determine whether the printed circuit board has malfunctioned based on the electrical signal of the first power-on pin; The substrate management controller is used to acquire the electrical signal of the preset second power-on pin on the slot when the printed circuit board is normal. The substrate management controller is used to determine whether the slot has malfunctioned based on the electrical signal of the second power-on pin; The printed circuit board is also equipped with a complex programmable logic device; the complex programmable logic device is connected to the substrate management controller; the device further includes: The substrate management controller is used to send instructions to the complex programmable logic device when no PCIe device is installed in the slot; the instructions are used to instruct the complex programmable logic device to send an analog signal to the second power pin; the analog signal is used to instruct the second power pin to simulate the electrical signal when a PCIe device is installed in the slot; The complex programmable logic device is used to receive the instruction and send an analog signal to the second power-on pin based on the instruction; The second power-on pin is used to receive the analog signal and to simulate the electrical signal of the PCIe device installed in the slot based on the analog signal; The slot is used to send the return information of the analog signal to the baseboard management controller; the return information is used to indicate whether the analog signal of installing a PCIe device in the slot is successful. The substrate management controller is used to receive the returned information and determine whether the slot has malfunctioned based on the returned information.

8. An electronic device, characterized in that, It includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; The memory is used to store computer programs; When the processor executes a program stored in the memory, it implements the method as described in any one of claims 1-6.

9. One or more computer-readable media having instructions stored thereon that, when executed by one or more processors, cause the processors to perform the method as described in any one of claims 1-6.

Citation Information

Patent Citations

  • Mobile terminal and method for controlling the same

    CN108512954A

  • A PCIE equipment fault processing method and device

    CN109947585A