A motherboard fault diagnosis method, device, equipment and readable storage medium

By acquiring motherboard status information and displaying fault codes through an embedded controller chip, the problem of low efficiency in motherboard fault detection is solved, and efficient fault location and detection are achieved.

CN123178182APending Publication Date: 2026-11-27INSPUR (SHANDONG) COMPUTER TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611415774.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-11
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies have low efficiency in motherboard fault detection, and manual troubleshooting is inefficient and not conducive to maintenance, especially when the signal test points are on the back of the board, requiring the motherboard to be disassembled.

Method used

The embedded controller chip acquires the status information of the motherboard during power-on and operation. It uses interfaces such as analog-to-digital converters and general-purpose input/output pins to obtain status information such as power supply voltage, temperature, and reset signals, determines fault codes, and displays the fault codes through a digital tube.

Benefits of technology

It enables intuitive display and efficient detection of motherboard fault diagnosis, reduces the need for individual measurement of signal points, and improves fault location and detection efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178182A_ABST
    Figure CN123178182A_ABST
Patent Text Reader

Abstract

The application discloses a kind of mainboard fault diagnosis method, device, equipment and readable storage medium, applied to computer technology field, comprising: based on the interface connected with the mainboard to be diagnosed obtains the state information of mainboard to be diagnosed;Wherein, state information is the information generated in the process of power-on and running of mainboard to be diagnosed;Based on state information, fault diagnosis is carried out, and the fault code corresponding to mainboard to be diagnosed is determined;Based on fault code, utilize the general input and output pin of chip to drive nixie tube to display fault code.Compared with current manual detection fault, and cannot directly see mainboard fault reason, the chip is used to detect relevant signal in the application, fault monitoring is realized by interface, and chip can work independently of central processing unit, and according to actual fault, let nixie tube display corresponding fault code, since fault code can be directly displayed, the efficiency of mainboard fault diagnosis can be improved, and all faults can be displayed, so the comprehensiveness of fault detection can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer technology, and in particular to a motherboard fault diagnosis method, apparatus, device, and readable storage medium. Background Technology

[0002] There are many reasons why a host computer might fail to power on, such as a basic input / output system crash, an OS crash, a power failure on a certain part of the machine, or a lack of clock reset signal. Manually troubleshooting each cause is inefficient and hinders maintenance. Furthermore, some signal measurement points are located on the back of the circuit board, requiring motherboard disassembly to measure these signals.

[0003] It is evident that improving the efficiency of motherboard fault detection is a technical problem that urgently needs to be solved by those skilled in the art. Summary of the Invention

[0004] In view of this, the purpose of the present invention is to provide a motherboard fault diagnosis method, apparatus, device and readable storage medium, which solves the technical problem of low motherboard fault detection efficiency in the prior art.

[0005] To solve the above-mentioned technical problems, the present invention provides a motherboard fault diagnosis method, comprising: The status information of the motherboard under diagnosis is obtained through the interface connected to it; wherein, the status information is the information generated by the motherboard under diagnosis during power-on and operation. Based on the status information, fault diagnosis is performed to determine the fault code corresponding to the motherboard to be diagnosed. Based on the fault code, the chip's general-purpose input / output pins are used to drive the digital tube to display the fault code.

[0006] In some embodiments, displaying the fault code using a digital tube driven by the chip's general-purpose input / output pins includes: Two digital tubes are controlled using a preset number of general-purpose input / output pins; wherein each digital tube includes a first number of common cathode light-emitting diodes and a second number of common anode light-emitting diodes; The cathodes of the light-emitting diodes in the two digital tubes are controlled by the first number of general-purpose input / output pins, and the anodes of the two digital tubes are controlled by the other second number of general-purpose input / output pins respectively. Based on the fault code, the two digital tubes are driven by the preset number of the general-purpose input / output pins to display the fault code.

[0007] In some embodiments, the chip is an embedded controller chip that operates independently of the central processing unit, and the embedded controller chip is connected to the motherboard to be diagnosed via an interface.

[0008] In some embodiments, fault diagnosis is performed based on the status information to determine the fault code corresponding to the motherboard to be diagnosed, including: The analog-to-digital converter of the chip is used to collect the power supply voltage of the central processing unit. When the collected power supply voltage of the central processing unit is 0, it is determined that the power supply of the central processing unit is abnormal, and the corresponding fault code is identified as the first fault code identifier. The temperature of the temperature detection point is obtained. When the detected temperature exceeds the preset maximum temperature threshold, the temperature is determined to be abnormal, and the corresponding fault code is identified as the second fault code identifier. The chip's general purpose input / output pins are used to detect the reset signal. When a reset signal remains low for a set duration, a reset abnormality is identified, and the corresponding fault code is identified as the third fault code identifier. The general purpose input / output pins of the chip are used to detect the normal power supply signal of the memory. When the normal power supply signal of the memory is low, it is determined that the memory power supply is abnormal and the corresponding fault code is identified as the fourth fault code identifier. The chip's general purpose input / output pins are used to detect the normal power supply signals corresponding to power supplies other than the CPU and memory on the motherboard to be diagnosed. When the normal power supply signals corresponding to power supplies other than the CPU and memory are low, it is determined that the power supply other than the CPU and memory is abnormal, and the corresponding fault code is identified as the fifth fault code identifier. The serial presence detection information of the memory is read using the system management bus of the chip. When an abnormality is detected based on the serial presence detection information of the memory, the memory is determined to be abnormal, and the corresponding fault code is identified as the sixth fault code identifier. The system detects the BIOS power-on self-test completion signal output by the central processing unit. If the BIOS power-on self-test completion signal does not go low, the system is determined to be down, and the corresponding fault code is identified as the seventh fault code.

[0009] In some embodiments, before detecting the BIOS power-on self-test completion signal output by the central processing unit, and determining that the BIOS has crashed and the corresponding fault code is the seventh fault code identifier when the BIOS power-on self-test completion signal is not pulled low, the method further includes: When the motherboard under diagnosis is powered on or restarted, the peripheral component interconnect standard reset signal output by the central processing unit is detected, and the motherboard under diagnosis is determined to be powered on normally when the peripheral component interconnect standard reset signal is high. After the reset is completed, check whether the PI phase completion signal is low within a preset detection time. When the PI phase completion signal is low within the preset detection time, it is determined that the PI phase of the basic input / output system has been successfully completed. When the PI stage completion signal is not low within the preset detection time, a power-off process is performed, and the general-purpose input / output pins of the chip are used to control the multiplexer corresponding to the serial peripheral interface of the basic input / output system, and the serial peripheral interface is switched from the first basic input / output system flash memory to the second basic input / output system flash memory before powering on again. After restarting, the system performs a basic input / output system power-on self-test (POST) to detect the output of the central processing unit (CPU) and complete the POST signal.

[0010] In some embodiments, after displaying the fault code using the general-purpose input / output pins of the chip to drive the digital tube, the method further includes: When the fault code is the first fault code identifier, determine whether the motherboard to be diagnosed has a short circuit or overcurrent protection and overvoltage protection. When the fault code is a second fault code identifier, the fan corresponding to the motherboard to be diagnosed is adjusted based on the detection temperature corresponding to the determination of the second fault code identifier. When the fault code is a third fault code identifier, determine to check the reset link; When the fault code is the fourth fault code identifier, determine to check the memory power supply line; When the fault code is the fifth fault code identifier, determine to check the device on the motherboard to be diagnosed; When the fault code is the sixth fault code identifier, it is determined that the memory should be replaced; When the fault code is the seventh fault code identifier, a system reset signal is triggered.

[0011] In some embodiments, after triggering the system reset signal when the fault code is the seventh fault code identifier, the method further includes: When the basic input / output system is not powered on, it receives the CPU serial port information sent by the CPU through the low pin count bus; The CPU serial port information is parsed and output through a Universal Asynchronous Receiver / Transmitter (UART) serial port to obtain the Basic Input / Output System (BIOS) debug log, which is then used for fault analysis.

[0012] This invention also provides a motherboard fault diagnosis device, applied to a chip, comprising: The status information determination module is used to obtain the status information of the motherboard to be diagnosed based on the interface connected to the motherboard to be diagnosed; wherein, the status information is the information generated by the motherboard to be diagnosed during power-on and operation. The fault code determination module is used to perform fault diagnosis based on the status information and determine the fault code corresponding to the motherboard to be diagnosed. The fault code display module is used to drive a digital tube to display the fault code based on the fault code using the general-purpose input / output pins of the chip.

[0013] The present invention also provides a motherboard fault diagnosis device, comprising: Memory, used to store computer programs; A processor is used to execute the computer program to implement the steps of the motherboard fault diagnosis method described above.

[0014] The present invention also provides a readable storage medium (i.e., a computer-readable storage medium) on which a computer program is stored, wherein when the computer program is executed by a processor, it implements the steps of the motherboard fault diagnosis method described above.

[0015] The present invention also provides a computer program product, including a computer program / instructions that, when executed by a processor, implement the steps of the above-described method.

[0016] To address the aforementioned technical problems, embodiments of the present invention provide a motherboard fault diagnosis method, applied to a chip, which may include: acquiring the status information of the motherboard to be diagnosed based on an interface connected to the motherboard to be diagnosed; wherein the status information is information generated by the motherboard to be diagnosed during power-on and operation; performing fault diagnosis based on the status information to determine the fault code corresponding to the motherboard to be diagnosed; and displaying the fault code using a digital tube driven by the chip's general-purpose input / output pins.

[0017] As can be seen from the above technical solution, the beneficial effects of the present invention are as follows: Compared with the current manual fault detection and the inability to intuitively see the cause of motherboard faults, the present invention uses a chip to detect relevant signals, realizes fault monitoring through an interface, and the chip can work independently of the central processing unit, and make the digital tube display the corresponding fault code according to the actual fault. Since the fault code can be displayed intuitively, the efficiency of motherboard fault diagnosis can be improved. Attached Figure Description

[0018] To more clearly illustrate the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 A flowchart of a motherboard fault diagnosis method provided in an embodiment of the present invention; Figure 2A schematic diagram illustrating the output of a seventh fault code identifier, provided as an embodiment of the present invention; Figure 3 This is a structural framework diagram of a motherboard fault detection method provided in an embodiment of the present invention; Figure 4 This is a schematic diagram of a motherboard fault diagnosis device provided in an embodiment of the present invention; Figure 5 This is a schematic diagram of a motherboard fault diagnosis method provided in an embodiment of the present invention. Detailed Implementation

[0020] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of the present invention.

[0021] The terms "comprising" and "having," and any variations thereof, in the specification and accompanying drawings of this invention are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the steps or units listed, but may include steps or units not listed.

[0022] Some terms that appear in the description of the embodiments of the present invention are subject to the following interpretation: EC: Embedded Controller; LPC: Low Pin Count bus; GPIO: General Purpose Input / Output; CPU: Central Processing Unit; UART: Universal Asynchronous Receiver / Transmitter; BIOS: Basic Input Output System.

[0023] To enable those skilled in the art to better understand the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0024] Next, a motherboard fault diagnosis method provided by an embodiment of the present invention will be described in detail. Figure 1 A flowchart of a motherboard fault diagnosis method provided in an embodiment of the present invention, the method may include: S101, obtain the status information of the motherboard to be diagnosed based on the interface connected to the motherboard to be diagnosed; wherein, the status information is the information generated by the motherboard to be diagnosed during power-on and operation.

[0025] The execution entity in this embodiment is a chip, which connects to the motherboard to be diagnosed via an interface. This embodiment is not limited to a specific chip; any programmable chip is acceptable. For example, the chip in this embodiment can be an EC (embedded controller) chip, an MCU (microcontroller unit), a CPLD (complex programmable logic device), an FPGA (field-programmable gate array), etc. In this embodiment, the chip can connect to the power supply circuit, reset link, memory, central processing unit (CPU), basic input / output system (PIS) related signals, and other objects to be tested in the motherboard to be diagnosed through different types of interfaces, and acquire corresponding status information. The status information in this embodiment is information formed during the power-on and operation of the motherboard to be diagnosed and can be acquired by the chip; it is not limited to a specific physical quantity or a specific signal. In one embodiment, the status information can originate from the motherboard power-on process, such as CPU power supply voltage, reset signal, power supply normal signal, memory power supply normal signal, etc. In another embodiment, the status information can originate from the motherboard operation process, such as temperature detection, memory serial presence detection information, or PIS power-on self-test completion signal, etc. This embodiment does not limit the interface to a single type. In one embodiment, analog status information, such as power supply voltage or temperature, can be acquired through the sampling interface corresponding to the analog-to-digital converter (ADC). In another implementation, digital status or bus information can be obtained through general purpose input / output pins, the system management bus, or the signal connection between the central processing unit and the chip. In this way, the states distributed at different locations or stages of the motherboard to be diagnosed can be converted into status information that the chip can acquire, providing a processing basis for subsequent fault diagnosis.

[0026] S102, perform fault diagnosis based on status information, and determine the fault code corresponding to the motherboard to be diagnosed.

[0027] In this embodiment, fault codes can be used to distinguish different fault types. In one implementation, different fault codes can be configured for CPU power supply, temperature, reset, memory power supply, other power supplies, memory, and basic input / output systems. In another implementation, the corresponding fault code can be determined based on the motherboard fault location corresponding to the obtained status information, thus establishing a mapping relationship between the fault code and the corresponding fault object. For example, a CPU power supply abnormality can correspond to 00, a temperature abnormality to 01, and a reset abnormality to 03. By converting the abnormal results corresponding to different status information into different fault codes, the subsequent display terminal can directly output the corresponding fault diagnosis results without directly displaying the underlying status signals.

[0028] S103 uses the chip's general-purpose input / output pins to drive the digital tube to display the fault code.

[0029] In this embodiment, the fault code can consist of two numbers. For example, the first fault code identifier can specifically correspond to 00, and the seventh fault code identifier can specifically correspond to 06. The chip controls the general-purpose input / output pins according to the combination of light-emitting diodes corresponding to the numbers, so that the digital tube forms the corresponding numbers. When the fault code changes, the chip can re-control the corresponding general-purpose input / output pins according to the currently determined fault code, thereby updating the content displayed on the digital tube. Thus, maintenance personnel or other external observers can directly obtain the fault code from the digital tube without first measuring the status signals at different locations on the motherboard. The motherboard fault diagnosis method provided by this embodiment of the invention may include: S101, obtaining the status information of the motherboard to be diagnosed based on the interface connected to the motherboard to be diagnosed, wherein the status information is the information generated by the motherboard to be diagnosed during power-on and operation; S102, performing fault diagnosis based on the status information to determine the fault code corresponding to the motherboard to be diagnosed; S103, using the chip's general-purpose input / output pins to drive the digital tube to display the fault code based on the fault code. This invention acquires status information from the motherboard under diagnosis via a chip, allowing the actual operating status of the motherboard to directly enter the fault diagnosis process. Furthermore, it determines the fault code based on the status information and drives a digital display via general-purpose input / output pins, converting different motherboard faults into a unified and directly readable fault code. Therefore, it reduces the scope of measuring multiple signal points individually during on-site repair, improving the efficiency of motherboard fault location and detection.

[0030] It should be further noted that, based on any of the above embodiments, displaying fault codes using the general-purpose input / output pins of the chip to drive the digital tube can include: S1031 uses a preset number of general purpose input / output pins to control two digital tubes; wherein each digital tube includes a first number of common cathode light-emitting diodes and a second number of common anode light-emitting diodes.

[0031] This embodiment does not limit the specific preset quantity. For example, the preset quantity in this embodiment can be 1 to 9, the first preset quantity is 7, and the second preset quantity is 2. The two digital tubes in this embodiment can jointly form a two-digit fault code display area. Each digital tube is formed by 7 cathode ray tubes and 2 anode ray tubes; different combinations of ray tubes illuminate different numbers. For example, when displaying 00 corresponding to the first fault code, both digital tubes form the illumination combination corresponding to the number 0; when displaying 06 corresponding to the seventh fault code, the first digital tube forms the illumination combination corresponding to the number 0, and the second digital tube forms the illumination combination corresponding to the number 6. By cooperating with the two digital tubes, fault codes 00 to 06 can be directly displayed.

[0032] S1032, using a first number of general-purpose input / output pins to control the cathodes of the light-emitting diodes in the two digital tubes, and using another second number of general-purpose input / output pins to control the anodes of the two digital tubes respectively.

[0033] In this embodiment, the corresponding LEDs in the two digital tubes can share seven cathode control signals. The chip controls the conduction state of the corresponding LEDs through seven general-purpose input / output pins, and controls the anodes of the two digital tubes through two other general-purpose input / output pins. For example, when displaying 00, the anodes of the two digital tubes can be controlled separately, and the seven cathode control signals can form the state corresponding to the number 0; when displaying 06, the cathode state corresponding to the number 0 can be formed when controlling the anode of the first digital tube, and the cathode state corresponding to the number 6 can be formed when controlling the anode of the second digital tube.

[0034] S1033, based on the fault code, uses a preset number of general-purpose input / output pins to drive two digital tubes to display the fault code.

[0035] In this embodiment, the chip can pre-establish a correspondence between fault codes and the illumination status of the digital tubes. After determining the fault code, it controls nine general-purpose input / output (GPIO) pins based on the fault code. For example, when the first fault code corresponds to 00, the two digital tubes are driven to display 00; when the second fault code corresponds to 01, the two digital tubes are driven to display 01. Other fault codes can be displayed in the same way. This embodiment of the invention utilizes seven GPIO pins to control the segment states of two digital tubes, and uses two additional GPIO pins to control the two digital tubes respectively, enabling the nine GPIO pins to display two-digit fault codes on the two digital tubes, thus achieving intuitive output of fault codes despite a limited number of control pins.

[0036] It should be further noted that, based on any of the above embodiments, the chip can be an embedded controller chip that operates independently of the central processing unit (CPU). The embedded controller chip connects to the motherboard under test via an interface. Operating independently of the CPU in these embodiments means that the embedded controller chip has its own operational capabilities. Even when the CPU has not started normally or the basic input / output system (BIOS) has not completed startup, it can still acquire relevant status information connected to the motherboard under test and execute corresponding controls. In one embodiment, the embedded controller chip can connect to the motherboard under test via the corresponding interface of an analog-to-digital converter (ADC) and general-purpose input / output pins, thereby acquiring the power supply voltage and digital signals such as power-on normal signal and reset signal. In another embodiment, the embedded controller chip can also connect to the memory via the system management bus to read the serial presence detection information of the memory and acquire the PI (Platform Initialization) stage completion signal or the BIOS power-on self-test completion signal via the signal line connected to the CPU. For example, if the CPU fails to enter the normal startup process due to a power supply failure on a certain power line, the embedded controller chip can still obtain the power supply status through the corresponding interface. Alternatively, if an anomaly occurs during the startup phase of the Elementary Input / Output System (PIOS), the embedded controller chip can still determine the current startup status through the PI completion signal or the PIOS power-on self-test completion signal. This embodiment considers that the EC's ADC (Analog-to-Digital Converter) module can support motherboard voltage sampling, temperature reading, and fan control; therefore, using the EC can improve the accuracy of fault detection without requiring additional programming. By employing an embedded controller chip that operates independently of the CPU, the fault diagnosis process can be made independent of the premise that the CPU or operating system has already started normally, thus covering some motherboard faults that occur before the traditional PIOS power-on self-test.

[0037] It should be further explained that, based on any of the above embodiments, S102, based on the status information, performs fault diagnosis to determine the fault code corresponding to the motherboard to be diagnosed, which may include: S1021 uses the chip's analog-to-digital converter to collect the power supply voltage of the central processing unit. When the collected power supply voltage of the central processing unit is 0, it is determined that the power supply of the central processing unit is abnormal, and the corresponding fault code is identified as the first fault code identifier.

[0038] In this embodiment, the analog-to-digital converter (ADC) can convert the analog voltage corresponding to the CPU power supply into a digital sampling result that the chip can process. This embodiment can perform voltage sampling based on the EC's ADC module, and the voltage to be sampled can be the CPU's (Central Processing Unit) power supply. When a CPU power supply detects a voltage of 0, a fault code 00 is output, indicating a problem with the VR (voltage regulator / stabilizer) output of a CPU power supply on the motherboard. The focus should be on checking for short circuits or OCP (overcurrent protection) and OVP (overvoltage protection) protection on the motherboard. The first fault code identifier can correspond to fault code 00 in specific implementations. This fault code points to a CPU power supply-related fault and can be further used to determine the direction of troubleshooting, such as motherboard short circuits, overcurrent protection, or overvoltage protection.

[0039] S1022, acquire the detected temperature of the temperature detection point, and when the detected temperature exceeds the preset maximum temperature threshold, determine that the temperature is abnormal and identify the corresponding fault code as the second fault code identifier.

[0040] This embodiment uses a temperature-sensing transistor or sensor with an ADC to achieve temperature detection. If the temperature at a certain detection point exceeds the set maximum threshold, fault code 01 is output. In this case, it's crucial to investigate the machine's heat dissipation to prevent the CPU from triggering overheat protection and shutting down, or the PCIe (PCIe Interconnect) devices from throttling. The second fault code can correspond to fault code 01 in specific implementations. This method distinguishes abnormal temperatures from other causes of power failure or malfunction.

[0041] S1023 uses the chip's general-purpose input / output pins to detect the reset signal. When a reset signal that is low for a set duration is found, a reset abnormality is determined, and the corresponding fault code is identified as the third fault code identifier.

[0042] This embodiment utilizes the EC's GPIO module to detect whether each reset signal in the system has been properly reset. If a reset signal remains low, affecting the system's normal power-on sequence, fault code 02 is output. In this case, it's necessary to check whether each reset link is functioning correctly. The set duration in this embodiment is used to distinguish between the normal reset holding phase and the abnormal reset state. In one implementation, the set duration can be set according to the time required for the corresponding reset link to normally reset; in another implementation, it can be set according to the expected time requirement for the corresponding reset signal to become non-low in the power-on sequence of the motherboard to be diagnosed. For example, if the first reset signal remains low for more than the set duration after the corresponding power-on phase is completed, the first reset link is abnormal; or, if any of the multiple reset signals meets this condition, a reset abnormality is determined. The third fault code identifier can correspond to fault code 02, distinguishing the reset link abnormality from power supply abnormalities, temperature abnormalities, and other faults.

[0043] S1024 uses the chip's general-purpose input / output pins to detect the memory power supply normal signal. When the memory power supply normal signal is low, it determines that the memory power supply is abnormal and identifies the corresponding fault code as the fourth fault code identifier.

[0044] This embodiment utilizes the EC's GPIO module to detect a low memory power OK signal, indicating that the memory voltage is not rising, and outputs fault code 03, requiring inspection of the memory power supply line. The fourth fault code identifier can correspond to fault code 03 in specific implementations. This allows memory power supply problems to be distinguished from ordinary memory information anomalies.

[0045] S1025 uses the chip's general purpose input / output pins to detect the normal power supply signals corresponding to other power supplies on the motherboard to be diagnosed, excluding the central processing unit and memory. When the corresponding normal power supply signal is low, it determines that the corresponding power supply is abnormal and identifies the corresponding fault code as the fifth fault code identifier.

[0046] This embodiment can detect power "good" signals on the motherboard other than the CPU (Central Processing Unit) and memory. If a power "good" signal is detected to be missing, the digital display will output fault code 04. It is necessary to check if any device on the motherboard has a short circuit fault. "Non-CPU" refers to signals other than the CPU and memory, such as the power supply to EC (External Electronic Control Unit), PCIe devices, and hard drives.

[0047] In this embodiment, the fifth fault code identifier can correspond to fault code 04 in specific implementations. This fault code is used to prompt further inspection of the power supply and short circuit conditions of devices other than the central processing unit and memory.

[0048] S1026 uses the chip's system management bus to read the serial presence detection information of the memory. When the serial presence detection information of the memory indicates the presence of abnormal information, the memory is identified as abnormal, and the corresponding fault code is identified as the sixth fault code identifier.

[0049] In this embodiment, the EC's SMBUS (System Management Bus) can read memory SPD information (serial presence detection information) to obtain memory hardware information and MEM (memory) bus communication status. If abnormal information is read, the digital tube is driven to output fault code 05. The corresponding fault handling method is to replace the memory. In this embodiment, the abnormal information is not limited to a pre-set fixed abnormal field in the serial presence detection information, but refers to the abnormal situation that occurs in the reading result based on the serial presence detection information. In one embodiment, the serial presence detection information can be read, but the obtained memory hardware information is abnormal, so the reading result can be determined to be abnormal. In another embodiment, if an abnormality is found in the memory-related bus communication status during the reading of the serial presence detection information, causing the serial presence detection information to be unable to be obtained normally, the reading result can also be determined to be abnormal. For example, it can be determined whether the memory hardware information can be obtained normally based on the serial presence detection information; or it can be determined whether the memory-related communication is normal based on the communication results obtained during the reading of the system management bus. When any of the above abnormal situations occur in the reading result, the memory is determined to be abnormal. The sixth fault code identifier can correspond to fault code 05 in specific implementations.

[0050] S1027 detects the BIOS power-on self-test completion signal output by the central processing unit. If the BIOS power-on self-test completion signal does not go low, it is determined that the BIOS has crashed and the corresponding fault code is identified as the seventh fault code.

[0051] In this embodiment, the EC determines whether the BIOS has crashed by checking if the BIOS post-complete (BIOS Power-On Self-Test) signal is pulled low. If the signal is not pulled low, fault code 06 is output, and the sysrst (system reset signal, input to the CPU) signal is triggered to reset the CPU. In one implementation scenario, if the chip detects that the signal changes from high to low, it indicates that the BIOS has completed the corresponding power-on self-test process, and the seventh fault code is not determined based on this signal. In another implementation scenario, if the signal remains high and does not change to low, it is determined that the BIOS has not completed the power-on self-test properly, and the BIOS has crashed. In this embodiment, the seventh fault code may correspond to fault code 06 in specific implementations.

[0052] Through steps S1021 to S1027, this embodiment of the invention utilizes different interfaces to obtain the corresponding states of the central processing unit power supply, temperature, reset, memory power supply, other power supplies, memory, and basic input / output system, and generates first to seventh fault code identifiers respectively, enabling the chip to distinguish different fault sources. Therefore, compared to fault diagnosis methods that only display the basic input / output system's power-on self-test node, this method can expand the fault detection coverage and further narrow down the scope of specific fault investigation.

[0053] It should be further noted that, based on any of the above embodiments, before S1027 detects the basic input / output system power-on self-test completion signal output by the central processing unit, the following processing can also be performed.

[0054] S10271 detects the peripheral interconnect standard reset signal output by the central processing unit when the motherboard under diagnosis is powered on or restarted, and determines that the motherboard under diagnosis is powered on normally when the peripheral interconnect standard reset signal is high.

[0055] In this embodiment, the chip can detect the peripheral interconnect standard reset signal corresponding to the central processing unit to confirm whether the motherboard under diagnosis has entered a normal power-on state. In one implementation scenario, the motherboard under diagnosis powers on normally, and the peripheral interconnect standard reset signal switches from the reset state to a high level, which the chip uses to determine that the motherboard is powered on normally. In another implementation scenario, the motherboard under diagnosis performs a restart operation, and the chip can also determine that it has re-entered a normal power-on state after the signal returns to a high level.

[0056] S10272 detects whether the PI phase completion signal is low within a preset detection time after the reset is released.

[0057] In this embodiment, the PI phase completion signal can be output to the chip from the corresponding pin of the central processing unit and set to a default pull-up state. When the PI phase of the basic input / output system ends, the PI phase completion signal can be controlled to a low level. In one implementation, the preset detection duration can be set to 3 minutes. In another implementation, the preset detection duration can be set according to the actual time required for the basic input / output system to complete the PI phase. The chip starts detecting the PI phase completion signal after the reset is released, so that the PI phase completion judgment corresponds to the current motherboard startup process.

[0058] S10273: When the PI phase completion signal is low within a preset detection time, it is determined that the PI phase of the basic input / output system has been successfully completed.

[0059] In one implementation scenario, the PI phase completion signal changes from its default state to a low level within 3 minutes, indicating that the chip has determined that the basic input / output system has successfully completed the PI phase. In another implementation scenario, a detection time determined based on the actual duration of the basic input / output system's PI phase is used; as long as the PI phase completion signal goes low within this detection time, the PI phase is also considered successfully completed. After the PI phase is successfully completed, the chip can proceed to the detection process for the basic input / output system's power-on self-test (POST) completion signal.

[0060] S10274 When the PI stage completion signal is not low within the preset detection time, the power-off process is executed, and the multiplexer corresponding to the serial peripheral interface of the basic input / output system is controlled by the chip's general-purpose input / output pins to switch the serial peripheral interface from the first basic input / output system flash memory to the second basic input / output system flash memory before powering on again.

[0061] If the PI phase completion signal fails to go low within the preset detection time, the current basic input / output system (PI) startup process is considered to have failed to complete the PI phase correctly. After the chip performs a shutdown process, it controls the selection state of the multiplexer via general-purpose input / output pins. In one implementation scenario, if the motherboard under test boots from the first PI flash memory for the first time and the PI phase completion signal fails to go low, the multiplexer is switched, connecting subsequent serial peripheral interfaces to the second PI flash memory. In another implementation scenario, the chip can output a corresponding BIOS selection signal to control the multiplexer to complete the above connection switching. After the switching is completed, the system is restarted, allowing the central processing unit to re-execute the startup process based on the PI system in the second PI flash memory.

[0062] S10275, after restarting, executes the basic input / output system power-on self-test completion signal output by the central processing unit.

[0063] After restarting, the chip continues to monitor the BIOS POST (Power-On Self-Test) completion signal. In one implementation, this signal normally goes low, indicating that the BIOS has completed its POST after switching the second BIOS flash memory. In another implementation, if the signal does not go low, the BIOS is determined to have crashed according to S1027, and a seventh fault code is identified. The above embodiment confirms the motherboard's power-on status using the peripheral interconnect standard reset signal, and then uses the PI (Phase I / O) completion signal to determine the early startup status of the BIOS. If the PI phase is not completed, the startup is restarted by switching between the first and second BIOS flash memory, and the BIOS POST completion signal is further used to determine the restart result. This forms a continuous processing chain from power-on confirmation, PI phase detection, flash memory switching to POST completion detection, allowing some BIOS startup failures to undergo recovery attempts before the final fault code is output.

[0064] For details, please refer to Figure 2 , Figure 2This is a schematic diagram of an output of the seventh fault code identifier provided in an embodiment of the present invention. This embodiment may include: (1) The CPU selects a pin to output the PI_Complete signal to the EC to indicate whether the PI stage of the BIOS is completed. An external default pull-up is added to this signal. If the BIOS PI (the default external level of PI is high, and the output level is low after it ends) ends, the BIOS controls the output level of this signal to be low. After the BIOS post is completed, the CPU will output a BIOS post complete (BIOS power-on self-test completion signal) signal (default is high) to the EC to indicate that the BIOS post is over. During normal power-on or reboot, the EC will determine that the motherboard is powered on normally based on the high PCIRST (Peripheral Component Interconnect Standard Reset Signal) signal of the CPU. Then it will check whether the PI_Complete signal is pulled low within 3 minutes (this time can be set according to the actual PI completion time of the BIOS). It will check the change of the PI_Complete signal from the reset to the present. If it is pulled low normally, it will determine that the BIOS is alive at this time. If the signal is not pulled low, a shutdown will be performed. Then, a GPIOx will be used to switch the BIOS SPI MUX, switching the SPI from flash0 to flash1. If the signal does not pull low after 3 minutes of power-on, there is a problem with the flash memory, and the EC will switch to flash1. Subsequently, the EC checks if the BIOS post-complete signal is pulled low to determine if the BIOS has crashed. If this signal is not pulled low, fault code 06 is output, and the sysrst (system reset signal, input to the CPU) signal is triggered to reset the CPU. If the system still fails to boot, the technician needs to update the debug BIOS and capture the BIOS debug log. The CPU transmits CPU serial port information to the EC via LPC, and the EC then parses the LPC signal and outputs it to the UART serial port. The serial port log is then used to further analyze where the BIOS is currently crashing.

[0065] It should be further explained that after the S103 displays the fault code on the digital tube based on the fault code, the corresponding handling can be determined according to different fault codes.

[0066] S1041, when the fault code is the first fault code identifier, determine whether the motherboard to be diagnosed has a short circuit or overcurrent protection and overvoltage protection.

[0067] In this embodiment, the first fault code indicates that the CPU power supply voltage detection result is 0. Based on this fault code, the chip can determine the scope of subsequent fault checks to the CPU-related power supply. For example, it can determine whether there is a short circuit in the corresponding motherboard power supply; or it can determine whether the corresponding power supply has triggered overcurrent or overvoltage protection. The above-mentioned determination of checks indicates that the subsequent troubleshooting object or direction is determined based on the fault code; the actual physical inspection can be performed by repair equipment or repair personnel.

[0068] S1042, when the fault code is the second fault code identifier, adjust the speed of the fan corresponding to the motherboard to be diagnosed based on the detection temperature corresponding to the second fault code identifier.

[0069] The chip in this embodiment can incorporate a heat dissipation strategy and adjust the fan speed based on the detected temperature. In one implementation, when the detected temperature just exceeds a preset maximum temperature threshold, the corresponding fan speed can be increased according to the heat dissipation strategy. In another implementation, when the detected temperature changes further, the fan speed can continue to be adjusted based on the current detected temperature and the heat dissipation strategy. By continuing to use the detected temperature corresponding to the second fault code as the basis for fan control, the heat dissipation status can be adjusted while outputting an abnormal temperature fault code.

[0070] S1043, when the fault code is the third fault code identifier, determine to check the reset link.

[0071] In this embodiment, the third fault code indicates the presence of a reset signal that was not cleared as expected. For example, when the first reset signal corresponds to the third fault code, it can be determined that the link corresponding to the first reset signal needs to be checked; when another reset signal exhibits the same anomaly, it can be determined that the link corresponding to that reset signal needs to be checked. This narrows the troubleshooting scope from the entire motherboard to the corresponding reset link.

[0072] S1044, when the fault code is the fourth fault code identifier, determine to check the memory power supply line.

[0073] The fourth fault code in this embodiment indicates that the normal memory power supply signal is low. In one implementation scenario, the memory power supply line can be identified as the object of inspection; in another implementation scenario, the part of the memory power supply line that affects the power supply establishment can be checked in conjunction with the result that the memory voltage has not been properly established.

[0074] S1045, when the fault code is the fifth fault code identifier, determine to check the device on the motherboard to be diagnosed.

[0075] In this embodiment, the fifth fault code indicates a power supply abnormality other than that of the central processing unit and memory.

[0076] For example, when the first power supply normal signal is low, it can be determined that the device corresponding to the first power supply normal signal is to be checked; when the nth power supply normal signal is low, it can be determined that the device corresponding to the nth power supply normal signal is to be checked, and further investigation can be conducted to determine whether the corresponding device has a short circuit.

[0077] S1046, when the fault code is the sixth fault code, determine to replace the memory.

[0078] In this embodiment, the sixth fault code indicates an abnormal reading result of the memory serial presence detection information. In one implementation scenario, when the memory hardware information reading is abnormal, it can be determined that the memory needs to be replaced; in another implementation scenario, when the memory-related bus communication status is abnormal and determined to be a memory fault, it can also be determined that the memory needs to be replaced.

[0079] S1047, when the fault code is the seventh fault code, a system reset signal is triggered.

[0080] In this embodiment, the seventh fault code corresponds to a basic input / output system (BIS) failure. The chip can trigger a system reset signal to reset the central processing unit (CPU). In one implementation scenario, after triggering the system reset signal, the CPU re-enters the startup process and resumes normal power-on; in another implementation scenario, if the motherboard still fails to start normally after triggering the system reset signal, the subsequent BIS debugging information acquisition process can continue.

[0081] Through the above processing, different fault codes in this embodiment of the invention can not only display the fault type, but also correspond to different fault troubleshooting directions, so that the fault diagnosis results can continue to be used to execute automatic control.

[0082] It should be further explained that, when the fault code is the seventh fault code, after triggering the system reset signal, the process may further include: when the Basic Input / Output System (BIOS) is still not powered on, receiving CPU serial port information sent by the CPU via the low pin count bus; parsing the CPU serial port information and outputting the CPU serial port information via a Universal Asynchronous Receiver / Transmitter (PART) serial port to obtain the BIOS debug log, and performing fault analysis based on the BIOS debug log. In this embodiment, "BIOS still not powered on" can be understood as the BIOS startup process of the motherboard under diagnosis not returning to normal after resetting the CPU based on the system reset signal. In one implementation, before entering the further debugging process, the debug version of the BIOS can be updated to obtain debugging information for analyzing the startup process. In another implementation scenario, the serial port information acquisition process can be directly entered when the motherboard under diagnosis is already running the debug version of the BIOS. The chip receives CPU serial port information sent by the CPU via the low pin count bus. The CPU serial port information may contain debugging content generated during the BIOS startup process. For example, when the Basic Input / Output System (BIOS) stops executing at a certain startup node, the CPU can send the corresponding serial port information of the current startup process to the chip via a low-pin-count bus. Alternatively, when anomalies occur at different startup nodes, the CPU can send the serial port information generated by the corresponding node to the chip. After receiving the CPU's serial port information, the chip can parse the received serial port-related information and output it externally via a Universal Asynchronous Receiver / Transmitter (UART) serial port. The information output from the serial port forms the BIOS debug log, and the node where the BIOS stopped running can be further analyzed based on the BIOS debug log. In this embodiment of the invention, when the seventh fault code and system reset are insufficient to restore startup, the serial port debug information from the CPU side is transmitted to the chip via a low-pin-count bus, and then the chip outputs it externally via a UART serial port, so that the debug information during the startup process can be obtained externally, thereby providing data basis for further locating the fault node of the BIOS.

[0083] It should be further explained that, based on any of the above embodiments, fault diagnosis based on status information to determine the fault code corresponding to the motherboard to be diagnosed may include: determining the status detection order corresponding to multiple status information and the normal status conditions corresponding to each status information based on the power-on sequence of the motherboard to be diagnosed; sequentially judging whether multiple status information meets the corresponding normal status conditions according to the status detection order, and determining the first status information that does not meet the corresponding normal status conditions as the target abnormal status information; determining the target fault code based on the target abnormal status information, and determining the target fault code as the current fault code of the motherboard to be diagnosed; when the status information following the target abnormal status information does not meet the corresponding normal status conditions, the fault code corresponding to the status information following the target abnormal status information is not determined as the current fault code of the motherboard to be diagnosed. This embodiment of the invention establishes the startup dependency relationship between multiple status information based on the motherboard startup sequence, determines the first abnormal node based on the actual status changes of each status information obtained by EC, and then determines the fault code to be displayed first based on the first abnormal node.

[0084] By leveraging the dependency relationship between the preceding and following stages during the motherboard startup process, multiple subsequent stage anomalies caused by a preceding stage anomaly are identified as cascading anomalies. This allows fault diagnosis to move beyond simply judging whether each signal is abnormal independently, and instead further determine the sequential position of each anomaly in the startup chain. It can identify the earlier anomaly from multiple simultaneously occurring anomaly states and prioritize the output of the corresponding fault code, reducing duplicate fault codes or misleading fault location caused by cascading anomalies. This further narrows down the scope of initial troubleshooting. Moreover, when a preceding stage startup failure has been detected, there is no need to wait for all subsequent stage startup phases to time out before determining the fault, thereby further improving the diagnostic speed of motherboard power-on failures.

[0085] Current motherboard designs rely on buzzer alarms to diagnose motherboard faults. However, buzzer alarms only detect monitor or graphics card errors, faulty or improperly inserted memory modules, and other faults. This makes it difficult to locate a wide range of problems and is relatively inefficient.

[0086] For a clearer understanding of this invention, please refer to the following details. Figure 3 , Figure 3This is a structural framework diagram of a motherboard fault detection method provided in an embodiment of the present invention, wherein Flash 0 represents the first BIOS flash memory; Flash 1 represents the second BIOS flash memory; CPU represents the central processing unit; SPD represents serial presence detection information; SMBUS represents the system management bus; LPC / ESPI represents the low pin count bus / enhanced serial peripheral interface; GPIO represents general purpose input / output; PWRGD1 represents the first power normal signal; PWRGD2 represents the second power normal signal; PWRGDn represents the nth power normal signal; Reset1 represents the first reset signal; Reset2 represents the second reset signal; Resetn represents the nth reset signal; PI_Complete represents the PI stage completion signal; WDT represents the watchdog timer; BIOS_SEL represents the BIOS selection signal; SYS_UART represents the system serial port; VIN represents the voltage input; TEMP represents the temperature signal; PWM represents the pulse width modulation signal; TACH represents the speed feedback signal; DB9 COM represents the DB9 serial communication interface; Level Shift indicates level shifting; LED_80_PORT indicates an 80-port LED display interface; MUX indicates a multiplexer; SEL indicates a select signal; BIOS SPI indicates the BIOS serial peripheral interface; SPI indicates a serial peripheral interface; DQ indicates a data signal; DQS indicates a data strobe signal; Command indicates a command signal; address indicates an address signal; clk indicates a clock signal; SPKR indicates a speaker / buzzer signal; LPC / eSPI indicates a low pin count bus / enhanced serial peripheral interface; AK2001 indicates a device. You can check the BIOS for problems by analyzing the LPC. Figure 3As shown, the EC's ADC (Analog-to-Digital Converter) module supports motherboard voltage sampling, temperature reading, and fan control. It detects the PWRGD (Power Normal / Power Ready) signal and the reset signal. It can also determine if the BIOS has been reset based on the CPU's PI complete signal. The EC uses the GPIO module to drive two digital tubes to display fault codes based on detected faults. Nine GPIO pins control the digital tube display; each digital tube consists of seven LEDs, which are common-cathode diodes. Seven GPIO pins on the EC control the cathodes of these diodes, and the other two GPIO pins control the anodes of the two digital tubes respectively. The EC will drive the digital tubes to display the corresponding fault code based on the detected fault information (generally, a low level indicates an abnormality, so a low level is considered an abnormal level). Specific motherboard fault detection includes: (1) CPU voltage abnormality, output fault code 00; (2) if abnormal temperature is detected, output fault code 01; (3) if Reset signal is abnormal, output fault code 02; (4) if memory power OK is not detected, output fault code 03; (5) if other electrical power good signals (excluding CPU and memory) are not detected, output fault code 04; (6) if memory SPD information is abnormal, output fault code 05; (7) if BIOS crash is detected, output fault code 06. In addition to the above fault types, other encountered fault types can also be automatically monitored through EC, which is more flexible and adaptable.

[0087] This invention achieves automatic motherboard fault diagnosis through an EC management module independent of the CPU, increasing the automatic diagnosis of various motherboard fault conditions. These include, but are not limited to, BIOS post-test codes (POST diagnostic codes), monitor or graphics card errors, improperly inserted or damaged memory modules, etc. It can automatically diagnose fault types, narrow down the causes of motherboard faults, facilitate fault analysis by repair personnel, improve problem detection and resolution efficiency, enhance the comprehensiveness of detection, and offer high operability. It displays fault codes, allowing repair personnel to determine which motherboard module is faulty based on the fault codes, narrowing the scope of analysis and facilitating rapid problem location and resolution.

[0088] The motherboard fault diagnosis device provided in the embodiments of the present invention will be described below. The motherboard fault diagnosis device described below can be referred to in correspondence with the motherboard fault diagnosis method described above.

[0089] Figure 4 A schematic diagram of a motherboard fault diagnosis device provided in an embodiment of the present invention may include: The status information determination module 100 is used to obtain the status information of the motherboard to be diagnosed based on the interface connected to the motherboard to be diagnosed; wherein, the status information is the information generated by the motherboard to be diagnosed during power-on and operation. The fault code determination module 200 is used to perform fault diagnosis based on the status information and determine the fault code corresponding to the motherboard to be diagnosed. The fault code display module 300 is used to drive a digital tube to display the fault code based on the fault code using the general-purpose input / output pins of the chip.

[0090] Furthermore, based on any of the above embodiments, the fault code display module 300 may include: An anode-cathode design unit is used for the digital tube determination unit, and is used to control two digital tubes using a preset number of general-purpose input / output pins; wherein, each digital tube includes a first number of common-cathode light-emitting diodes and a second number of common-anode light-emitting diodes; The cathodes of the light-emitting diodes in the two digital tubes are controlled by the first number of general-purpose input / output pins, and the anodes of the two digital tubes are controlled by the other second number of general-purpose input / output pins respectively. The fault code display unit is used to drive two digital tubes to display the fault code based on the preset number of the general-purpose input / output pins.

[0091] Furthermore, based on any of the above embodiments, the chip is an embedded controller chip that operates independently of the central processing unit, and the embedded controller chip is connected to the motherboard to be diagnosed through an interface.

[0092] Furthermore, based on any of the above embodiments, the fault code determination module 200 may include: The first fault code determination unit is used to collect the power supply voltage of the central processing unit using the analog-to-digital converter of the chip. When the collected power supply voltage of the central processing unit is 0, it is determined that the power supply of the central processing unit is abnormal, and the corresponding fault code is determined as the first fault code identifier. The second fault code determination unit is used to obtain the detection temperature of the temperature detection point. When the detection temperature exceeds the preset maximum temperature threshold, it determines that the temperature is abnormal and determines the corresponding fault code as the second fault code identifier. The third fault code determination unit is used to detect the reset signal using the general-purpose input / output pins of the chip. When there is a reset signal that is low for a set duration, the reset is determined to be abnormal, and the corresponding fault code is determined as the third fault code identifier. The fourth fault code determination unit is used to detect the normal power supply signal of the memory using the general-purpose input / output pins of the chip. When the normal power supply signal of the memory is low, it determines that the memory power supply is abnormal and determines the corresponding fault code as the fourth fault code identifier. The fifth fault code determination unit is used to detect the normal power supply signals corresponding to other power supplies on the motherboard to be diagnosed, excluding the central processing unit and memory, using the general-purpose input / output pins of the chip. When the normal power supply signals corresponding to other power supplies, excluding the central processing unit and memory, are low, it is determined that other power supplies, excluding the central processing unit and memory, are abnormal, and the corresponding fault code is identified as the fifth fault code identifier. The sixth fault code determination unit is used to read the serial presence detection information of the memory using the system management bus of the chip. When it is determined that there is abnormal information based on the serial presence detection information of the memory, it determines that the memory is abnormal and determines the corresponding fault code as the sixth fault code identifier. The seventh fault code determination unit is used to detect the basic input / output system power-on self-test completion signal output by the central processing unit. When the basic input / output system power-on self-test completion signal does not become low level, it is determined that the basic input / output system has crashed and the corresponding fault code is identified as the seventh fault code identifier.

[0093] Furthermore, based on any of the above embodiments, the motherboard fault detection device may further include: The normal power-on confirmation unit is used to detect the peripheral component interconnect standard reset signal output by the central processing unit when the motherboard under diagnosis is powered on or restarted, and to determine that the motherboard under diagnosis is normally powered on when the peripheral component interconnect standard reset signal is high. The low-level detection unit is used to detect whether the PI stage completion signal is low within a preset detection time after the reset is released. The PI phase completion unit is used to determine that the PI phase of the basic input / output system has been successfully completed when the PI phase completion signal is low within the preset detection time. The restart unit is used to perform a shutdown process when the PI stage completion signal is not low within the preset detection time, and to use the general-purpose input / output pins of the chip to control the multiplexer corresponding to the serial peripheral interface of the basic input / output system, and to switch the serial peripheral interface from the first basic input / output system flash memory to the second basic input / output system flash memory before restarting. The power-on self-test completion signal determination unit is used to detect the basic input / output system power-on self-test completion signal output by the central processing unit after power-on.

[0094] Furthermore, based on any of the above embodiments, the motherboard fault detection device may further include: The first fault location module is used to determine whether the motherboard to be diagnosed has a short circuit or overcurrent protection and overvoltage protection when the fault code is the first fault code identifier. The second fault location module is used to adjust the speed of the fan corresponding to the motherboard to be diagnosed based on the detection temperature when the fault code is a second fault code identifier. The third fault location module is used to determine the check reset link when the fault code is a third fault code identifier; The fourth fault location module is used to determine and check the memory power supply line when the fault code is the fourth fault code identifier; The fifth fault location module is used to determine the device on the motherboard to be diagnosed to be inspected when the fault code is the fifth fault code identifier. The sixth fault location module is used to determine to replace the memory when the fault code is the sixth fault code identifier; The seventh fault location module is used to trigger a system reset signal when the fault code is the seventh fault code identifier.

[0095] Furthermore, based on any of the above embodiments, the motherboard fault detection device may further include: The CPU serial port information determination module is used to receive CPU serial port information sent by the CPU through a low pin count bus when the basic input / output system is not powered on. The debug log analysis module is used to parse the CPU serial port information and output the CPU serial port information through the Universal Asynchronous Receiver / Transmitter serial port to obtain the Basic Input / Output System debug log, so as to perform fault analysis based on the Basic Input / Output System debug log.

[0096] It should be noted that the order of the modules and units in the aforementioned motherboard fault diagnosis device can be changed without affecting the logic.

[0097] Figure 4 For a description of the features in the corresponding embodiments, please refer to Figure 4 The relevant descriptions of the corresponding embodiments will not be repeated here.

[0098] This invention provides a motherboard fault diagnosis device, which may include: a status information determination module 100, used to acquire status information of the motherboard to be diagnosed based on an interface connected to the motherboard to be diagnosed; wherein the status information is information generated by the motherboard to be diagnosed during power-on and operation; a fault code determination module 200, used to perform fault diagnosis based on the status information and determine the fault code corresponding to the motherboard to be diagnosed; and a fault code display module 300, used to drive a digital tube to display the fault code based on the fault code using the general-purpose input / output pins of the chip. Compared with current manual fault detection and the inability to intuitively see the cause of motherboard faults, this invention uses a chip to detect relevant signals, realizes fault monitoring through an interface, and the chip can work independently of the central processing unit, and cause the digital tube to display the corresponding fault code according to the actual fault. Since the fault code can be displayed intuitively, the efficiency of motherboard fault diagnosis can be improved.

[0099] The following is a description of a motherboard fault diagnosis device provided by an embodiment of the present invention. The motherboard fault diagnosis device described below can be referred to in correspondence with the motherboard fault diagnosis method described above.

[0100] Figure 5 This is a schematic diagram of a motherboard fault diagnosis system provided in an embodiment of the present invention, as shown below. Figure 5 As shown, the motherboard fault diagnosis device includes: a memory 60 for storing computer programs; The processor 61 is used to implement the steps of the motherboard fault diagnosis method as described in the above embodiment when executing a computer program.

[0101] The motherboard fault diagnosis device provided in this embodiment may include, but is not limited to, smartphones, tablets, laptops, or desktop computers.

[0102] The processor 61 may include one or more processing cores, such as a quad-core processor or an octa-core processor. The processor 61 may be implemented using at least one hardware form selected from Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 61 may also include a main processor and a coprocessor. The main processor, also known as the Central Processing Unit (CPU), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, the processor 61 may integrate a Graphics Processing Unit (GPU), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, the processor 61 may also include an Artificial Intelligence (AI) processor, which handles computational operations related to machine learning.

[0103] The memory 60 may include one or more computer-readable storage media, which may be non-transitory. The memory 60 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In this embodiment, the memory 60 is used to store at least the following computer program 601, which, after being loaded and executed by the processor 61, is capable of implementing the relevant steps of the motherboard fault diagnosis method disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 60 may also include an operating system 602 and data 603, and the storage method may be temporary storage or permanent storage. The operating system 602 may include Windows, Unix, Linux, etc. The data 603 may include, but is not limited to, data required by the method.

[0104] In some embodiments, the motherboard fault diagnosis device may further include a display screen 62, an input / output interface 63, a communication interface 64, a power supply 65, and a communication bus 66.

[0105] Those skilled in the art will understand that Figure 5 The structure shown does not constitute a limitation on motherboard fault diagnosis and may include more or fewer components than illustrated.

[0106] It is understood that if a motherboard fault diagnosis method in the above embodiments is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the current technology, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and executes all or part of the steps of the methods in the various embodiments of the present invention. The aforementioned storage medium includes: USB flash drive, mobile hard drive, read-only memory (ROM), random access memory (RAM), electrically erasable programmable ROM, register, hard disk, removable disk, CD-ROM, magnetic disk, or optical disk, and other media capable of storing program code.

[0107] Based on this, embodiments of the present invention also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the motherboard fault diagnosis method described above.

[0108] The foregoing has provided a detailed description of a motherboard fault diagnosis method according to embodiments of the present invention. The various embodiments in the specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section.

[0109] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.

[0110] The present invention has provided a detailed description of a motherboard fault diagnosis method, apparatus, device, and readable storage medium. Specific examples have been used to illustrate the principles and implementation methods of the invention. The descriptions of these embodiments are merely illustrative of the method and its core ideas. It should be noted that those skilled in the art can make various improvements and modifications to the invention without departing from its principles, and these improvements and modifications also fall within the scope of protection of the present invention.

Claims

1. A motherboard fault diagnosis method, characterized in that, Applied to chips, including: The status information of the motherboard under diagnosis is obtained through the interface connected to it; wherein, the status information is the information generated by the motherboard under diagnosis during power-on and operation. Based on the status information, fault diagnosis is performed to determine the fault code corresponding to the motherboard to be diagnosed. Based on the fault code, the chip's general-purpose input / output pins are used to drive the digital tube to display the fault code.

2. The motherboard fault diagnosis method according to claim 1, characterized in that, Based on the fault code, the chip's general-purpose input / output pins are used to drive a digital tube to display the fault code, including: Two digital tubes are controlled using a preset number of general-purpose input / output pins; wherein each digital tube includes a first number of common cathode light-emitting diodes and a second number of common anode light-emitting diodes; The cathodes of the light-emitting diodes in the two digital tubes are controlled by the first number of general-purpose input / output pins, and the anodes of the two digital tubes are controlled by the other second number of general-purpose input / output pins respectively. Based on the fault code, the two digital tubes are driven by the preset number of general-purpose input / output pins to display the fault code.

3. The motherboard fault diagnosis method according to claim 1, characterized in that, The chip is an embedded controller chip that operates independently of the central processing unit, and the embedded controller chip is connected to the motherboard to be diagnosed through an interface.

4. The motherboard fault diagnosis method according to any one of claims 1 to 3, characterized in that, Based on the status information, fault diagnosis is performed to determine the fault code corresponding to the motherboard to be diagnosed, including: The analog-to-digital converter of the chip is used to collect the power supply voltage of the central processing unit. When the collected power supply voltage of the central processing unit is 0, it is determined that the power supply of the central processing unit is abnormal, and the corresponding fault code is identified as the first fault code identifier. The temperature of the temperature detection point is obtained. When the detected temperature exceeds the preset maximum temperature threshold, the temperature is determined to be abnormal, and the corresponding fault code is identified as the second fault code identifier. The chip's general purpose input / output pins are used to detect the reset signal. When a reset signal remains low for a set duration, a reset abnormality is identified, and the corresponding fault code is identified as the third fault code identifier. The general purpose input / output pins of the chip are used to detect the normal power supply signal of the memory. When the normal power supply signal of the memory is low, it is determined that the memory power supply is abnormal and the corresponding fault code is identified as the fourth fault code identifier. The chip's general purpose input / output pins are used to detect the normal power supply signals corresponding to power supplies other than the CPU and memory on the motherboard to be diagnosed. When the normal power supply signals corresponding to power supplies other than the CPU and memory are low, it is determined that the power supply other than the CPU and memory is abnormal, and the corresponding fault code is identified as the fifth fault code identifier. The serial presence detection information of the memory is read using the system management bus of the chip. When an abnormality is detected based on the serial presence detection information of the memory, the memory is determined to be abnormal, and the corresponding fault code is identified as the sixth fault code identifier. The system detects the BIOS power-on self-test completion signal output by the central processing unit. If the BIOS power-on self-test completion signal does not go low, the system is determined to be down, and the corresponding fault code is identified as the seventh fault code.

5. The motherboard fault diagnosis method according to claim 4, characterized in that, Before detecting the Basic Input / Output System (BIOS) power-on self-test (POST) completion signal output by the central processing unit (CPU), and determining that the BIOS has crashed and the corresponding fault code is the seventh fault code when the POST completion signal is not pulled low, the process also includes: When the motherboard under diagnosis is powered on or restarted, the peripheral component interconnect standard reset signal output by the central processing unit is detected, and the motherboard under diagnosis is determined to be powered on normally when the peripheral component interconnect standard reset signal is high. After the reset is completed, check whether the PI phase completion signal is low within a preset detection time. When the PI phase completion signal is low within the preset detection time, it is determined that the PI phase of the basic input / output system has been successfully completed. When the PI stage completion signal is not low within the preset detection time, a power-off process is performed, and the general-purpose input / output pins of the chip are used to control the multiplexer corresponding to the serial peripheral interface of the basic input / output system, and the serial peripheral interface is switched from the first basic input / output system flash memory to the second basic input / output system flash memory before powering on again. After restarting, the system performs a basic input / output system power-on self-test (POST) to detect the output of the central processing unit (CPU) and complete the POST signal.

6. The motherboard fault diagnosis method according to claim 4, characterized in that, After displaying the fault code on the digital tube using the chip's general-purpose input / output pins, the process further includes: When the fault code is the first fault code identifier, determine whether the motherboard to be diagnosed has a short circuit or overcurrent protection and overvoltage protection. When the fault code is a second fault code identifier, the fan corresponding to the motherboard to be diagnosed is adjusted based on the detection temperature corresponding to the determination of the second fault code identifier. When the fault code is a third fault code identifier, determine to check the reset link; When the fault code is the fourth fault code identifier, determine to check the memory power supply line; When the fault code is the fifth fault code identifier, determine to check the device on the motherboard to be diagnosed; When the fault code is the sixth fault code identifier, it is determined that the memory should be replaced; When the fault code is the seventh fault code identifier, a system reset signal is triggered.

7. The motherboard fault diagnosis method according to claim 6, characterized in that, When the fault code is the seventh fault code identifier, after triggering the system reset signal, the following is also included: When the basic input / output system is not powered on, it receives the CPU serial port information sent by the CPU through the low pin count bus; The CPU serial port information is parsed and output through a Universal Asynchronous Receiver / Transmitter (UART) serial port to obtain the Basic Input / Output System (BIOS) debug log, which is then used for fault analysis.

8. A motherboard fault diagnosis device, characterized in that, Applied to chips, including: The status information determination module is used to obtain the status information of the motherboard to be diagnosed based on the interface connected to the motherboard to be diagnosed; wherein, the status information is the information generated by the motherboard to be diagnosed during power-on and operation. The fault code determination module is used to perform fault diagnosis based on the status information and determine the fault code corresponding to the motherboard to be diagnosed. The fault code display module is used to drive a digital tube to display the fault code based on the fault code using the general-purpose input / output pins of the chip.

9. A motherboard fault diagnosis device, characterized in that, include: Memory, used to store computer programs; A processor for executing the computer program to implement the steps of the motherboard fault diagnosis method as described in any one of claims 1 to 7.

10. A readable storage medium, characterized in that, The readable storage medium stores a computer program that, when executed by a processor, implements the steps of the motherboard fault diagnosis method as described in any one of claims 1 to 7.