Method and apparatus for debugging BMC without opening box

BMC debugging can be achieved without unpacking the product through a USB cable and a serial port switching unit, which solves the inconvenience and safety issues of BMC debugging in the existing technology and provides a convenient and safe debugging method.

CN114817009BActive Publication Date: 2025-10-21SHENZHEN TONGTAIYI INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210376860.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-11
Publication Date
2025-10-21
Estimated Expiration
2042-04-11

AI Technical Summary

Technical Problem

In the prior art, BMC debugging requires opening the chassis or removing the card to connect an external UART serial line, which is inconvenient and detrimental to system security. In addition, the server space is limited and it is impossible to add additional debugging interfaces.

Method used

Connect to the server's USB Host port via a USB cable, use the serial port switching unit to switch the signal from the PCH USB to the interface conversion controller, the external debugging host recognizes the interface conversion controller and communicates with the BMC debugging port, and restores the PCH USB signal after debugging is completed.

Benefits of technology

This allows BMC debugging without opening the chassis, improving operational convenience and system security, and avoiding the need for hardware actions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114817009B_ABST
    Figure CN114817009B_ABST
Patent Text Reader

Abstract

The application belongs to the technical field of computers, and discloses a method and device for debugging BMC without opening a box, which comprises the following steps: an external debugging host is connected with a server USB Host port through a USB connecting line; a serial port switching unit switches a server USB Host port signal from a PCH USB signal to an interface conversion controller signal after receiving a debugging state signal; the external debugging host identifies the interface conversion controller, communicates with a BMC debugging port, and realizes debugging BMC; after the debugging of BMC is completed, the serial port switching unit switches the server USB Host signal from the interface conversion controller signal to the PCH USB signal. The application does not need to increase a special interface, and can start the BMC debugging function through software or using a specific USB connecting line. In the debugging process, the server USB Host port is connected with the USB connecting line, and then the BMC online debugging can be performed without opening the case and taking any hardware action.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of computers and discloses a method and a device for debugging a BMC without unpacking the box. Background Art

[0002] BMCs are widely used in the server industry. Due to their diverse functionality, which varies across different industries, the debug serial port provided by the BMC chip is essential during development and debugging to debug code and quickly locate and analyze issues. Although the BMC OS integrates SSH remote access, it is typically disabled in practice for security reasons. SSH functionality also relies on the network, so if an exception related to the network occurs, the function may fail.

[0003] Typically, a separate BMC debugging interface is provided on the motherboard; when debugging a single board, an external UART serial cable is used. If an anomaly is encountered during full-system testing and the issue needs to be debugged and analyzed, the entire system chassis must be opened, and even some plug-in cards must be removed to connect the external UART serial cable. This is very inconvenient. Certain probabilistic analyses may be difficult to replicate after a power outage, and analysis may be halted if the issue cannot be seen after unpacking and removing the cards. Furthermore, the rear I / O and front panel interface functions of servers in various application scenarios are defined based on industry requirements. Space utilization is already very high, making it difficult to add additional debugging interfaces. Furthermore, servers have certain security requirements. As a critical management function, the server BMC has high security requirements. An independent, unrestricted debug port can be easily exploited, compromising system security.

[0004] Therefore, there is an urgent need for a method and device for debugging the BMC without opening the chassis. This method eliminates the need for adding dedicated interfaces and opening the chassis to debug the BMC. Instead, the BMC debugging function can be enabled through software or a specific USB cable. During the debugging process, the product does not need to open the chassis or perform any hardware operations. Simply connect the USB cable to the server's USB host port to perform online BMC debugging. Summary of the Invention

[0005] The object of the present invention is to provide a method and device for debugging a BMC without unpacking the BMC, so as to solve the problems raised in the above background technology.

[0006] To achieve the above object, the present invention provides the following technical solutions:

[0007] In one aspect, an embodiment of the present application provides a method for debugging a BMC without unpacking the device, including:

[0008] The external debugging host is connected to the server USB Host port via a USB cable;

[0009] The serial port switching unit receives the debugging state signal and switches the server USB Host port signal from the PCH USB signal to the interface conversion controller signal;

[0010] The external debugging host recognizes the interface conversion controller and communicates with the BMC debugging port to debug the BMC;

[0011] After the BMC debugging is completed, the serial port switching unit switches the server USB Host end signal from the interface conversion controller signal to the PCH USB signal.

[0012] In some embodiments, the external debugging host is connected to the USB Host port of the server via a USB cable, including:

[0013] The external debugging host is connected to the server USB Host port via a specific USB connection line, and the power supply line and the ground line at one end of the specific USB connection line connected to the server USB Host port are short-circuited.

[0014] In some embodiments, after the external debugging host is connected to the USB Host port of the server via a specific USB cable, the following steps are included:

[0015] One end of the specific USB connection line where the power line and the ground line are short-circuited is connected to the USB host port of the server, and the other end where the power line and the ground line are not short-circuited is connected to the USB interface of the external debugging host;

[0016] The detection unit of the USB Host port power supply of the server will detect overcurrent, disconnect the external power supply of the USB Host port, and send a debugging status signal to the serial port switching unit.

[0017] In some embodiments, the external debugging host is connected to the USB Host port of the server via a USB cable, further comprising:

[0018] The external debugging host is connected to the server USB Host port through a regular cable.

[0019] In some embodiments, after the external debugging host is connected to the USB host port of the server via a conventional connection cable, the following steps are included:

[0020] The user changes to BMC debug mode through BIOS options or system application layer software settings, making the PCH designated GPIO output low level;

[0021] The GPIO output is designated as a low level based on the PCH, and a debugging status signal is sent to the serial port switching unit.

[0022] In some embodiments, the serial port switching unit receives a debugging status signal and switches the server USB Host port signal from a PCH USB signal to an interface conversion controller signal, including:

[0023] The serial port switching unit receives the debugging state signal and switches the server USB Host port signal from the PCH USB signal to the interface conversion controller;

[0024] The BMC debugging serial port is connected to the interface conversion controller.

[0025] In some embodiments, after the BMC debugging is completed, the serial port switching unit switches the server USB Host end signal from the interface conversion controller signal to the PCH USB signal, including:

[0026] After the BMC debugging is completed, the specific USB connection cable is removed, the detection unit powered by the USB Host port of the server resumes power supply, and a debugging end signal is sent to the serial port switching unit;

[0027] The serial port switching unit obtains the debugging end signal and switches the server USB Host end signal from the interface conversion controller signal to the PCH USB signal.

[0028] In some embodiments, after the BMC debugging is completed, the serial port switching unit switches the server USB Host end signal from the interface conversion controller signal to the PCH USB signal, further comprising:

[0029] After debugging BMC, the user changes to normal mode through BIOS options or system application layer software settings, so that the PCH designated GPIO output is high level;

[0030] Based on PCH, the GPIO output is set to high level and a debugging end signal is sent to the serial port switching unit;

[0031] The serial port switching unit obtains the debugging end signal and switches the server USB Host end signal from the interface conversion controller signal to the PCH USB signal.

[0032] On the other hand, an embodiment of the present application further provides a device for debugging a BMC without unpacking the device, including:

[0033] A signal sending unit, configured to send a debugging status signal to the serial port switching unit;

[0034] A detection unit, configured to detect the current of the USB Host port;

[0035] A serial port switching unit, used for switching the USB Host port signal of the server;

[0036] The setting unit is used by the user to change to BMC debug mode through BIOS options or system application layer software settings, so that the PCH specified GPIO output is low level;

[0037] Interface conversion controller unit, used to connect the BMC debug serial port and the server USB host port;

[0038] The debugging unit is used for the external debugging host to identify the interface conversion controller and communicate with the BMC debugging port to debug the BMC.

[0039] On the other hand, an embodiment of the present application further provides a device for debugging a BMC without unpacking the device, including:

[0040] an identification unit, configured for the external debugging host to identify the interface conversion controller and communicate with the BMC debugging port to debug the BMC;

[0041] The debugging unit is used for the external debugging host to recognize the interface conversion controller and communicate with the BMC debugging port to debug the BMC.

[0042] An embodiment of the present application further provides a storage medium that, when a computer program is executed on a computer, enables the computer to execute the above-mentioned method for debugging a BMC without unpacking the computer.

[0043] In summary, compared with the prior art, the present invention has the following beneficial effects: a method and device for debugging BMC without unpacking, comprising: an external debugging host is connected to the USB Host port of a server via a USB cable; a serial port switching unit receives a debugging status signal and switches the server USB Host port signal from a PCH USB signal to an interface conversion controller signal; the external debugging host recognizes the interface conversion controller and communicates with the BMC debugging port to debug the BMC; after debugging the BMC, the serial port switching unit switches the server USB Host end signal from the interface conversion controller signal to a PCH USB signal. The present invention does not require the addition of a dedicated interface, and the BMC debugging function is started through software or using a specific USB cable. During the debugging process, there is no need to open the chassis or perform any hardware actions. BMC online debugging can be performed by connecting the USB cable to the server USB Host port. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1This is a flowchart of a method for debugging a BMC without unpacking the box, provided in this embodiment;

[0045] Figure 2 This is a flowchart of a method for debugging a BMC without unpacking the box, provided in this embodiment;

[0046] Figure 3 This is a flowchart of a method for debugging a BMC without unpacking the box, provided in this embodiment;

[0047] Figure 4 This is a flowchart of a method for debugging a BMC without unpacking the box, provided in this embodiment;

[0048] Figure 5 This is a flowchart of a method for debugging a BMC without unpacking the box, provided in this embodiment;

[0049] Figure 6 This is a flowchart of a method for debugging a BMC without unpacking the box, provided in this embodiment;

[0050] Figure 7 This is a schematic diagram of the structure of a device for debugging a BMC without unpacking the device provided in this embodiment;

[0051] Figure 8 This is a schematic diagram of the structure of a device for debugging a BMC without unpacking it, provided in this embodiment. DETAILED DESCRIPTION

[0052] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without making creative efforts are within the scope of protection of this application.

[0053] The embodiments of the present application provide a method, apparatus, and computer-readable storage medium for debugging a BMC without unpacking the BMC. Furthermore, the technical features involved in the different embodiments of the present invention described above may be combined with each other as long as they do not conflict with each other.

[0054] Platform management encompasses a series of monitoring and control functions that operate on system hardware. For example, it monitors system temperature, voltage, fans, power supplies, and other parameters, and makes appropriate adjustments to ensure a healthy system. Of course, if the system fails, a reset can be performed to restart it. Platform management also records various hardware information and logs to alert users and troubleshoot subsequent issues. These functions are integrated into a single controller, known as the Baseboard Management Controller (BMC).

[0055] It should be noted that as an independent system, BMC does not rely on other hardware on the system (such as the CPU, memory, etc.), nor does it rely on the BIOS, OS, etc. (However, BMC can interact with BIOS and OS to better manage the platform. System management software under the OS can work with BMC to achieve better management effects).

[0056] Devices with high system requirements, such as servers, utilize a BMC. Because the BMC is an independent system, some embedded devices may not require a separate processor; a BMC alone can handle the job. Computers generally don't have a BMC because it's not very useful; the CPU is sufficient for temperature and power management.

[0057] Ultimately, the BMC itself is a small system with an out-of-band processor (typically an ARM processor), and it can be used independently to handle certain tasks. However, since it is called a BMC here, the focus is generally on platform management. This embodiment of the application provides a method for debugging the BMC without unpacking the box, and the target of the method is the BMC in the server mentioned above.

[0058] It should be noted that the order of the following embodiments is not intended to limit the preferred order of the embodiments.

[0059] The present invention provides a method and device for debugging a BMC without unpacking the BMC. Figures 1-8 ), which include:

[0060] The external debugging host is connected to the server USB Host port via a USB cable; the serial port switching unit (USBMUX) receives a debugging status signal and switches the server USB Host port signal from the PCHUSB signal to the interface conversion controller (USB to UART) signal; the external debugging host recognizes the interface conversion controller (USB to UART) and communicates with the BMC debugging port to debug the BMC; when BMC debugging is completed, the serial port switching unit (USBMUX) switches the server USB Host end signal from the interface conversion controller (USB to UART) signal to the PCH USB signal.

[0061] It should be noted that: (such as Figure 2 and Figure 3 ) The debugging serial port of the BMC is connected to the interface conversion controller (USB to UART) IC. The USB signal of the interface conversion controller (USB to UART) IC and the USB signal of the external expansion of the PCH are respectively connected to the serial port switching unit (USB MUX), and then connected to the USB Host interface for external applications. The power supply of the externally expanded USB Host interface is managed and controlled by eFulse; the eFulse overcurrent detection signal is connected to the OC input pin of the PCH and connected to the logic AND gate at the same time; the GPIO of the PCH is connected to the logic AND gate, and the output of the logic AND gate is connected to the channel selection control pin of the serial port switching unit (USB MUX). The USB Host interface of the external application can be connected to a normal USB device for conventional system applications, and the debugging host is also connected to the USB Host interface of the external application through a USB direct connection cable or a dedicated connection cable to debug the BMC of the server.

[0062] When debugging the BMC, you can choose different connection cables according to different application scenarios. For example, when the host system can work normally (refer to Figure 2 ), you can use the operating system or BIOS to set the software to realize the GPIO specified by PCH to realize the function of USB Host end as a normal USB Host or BMC debug port. In this way, you can directly use the conventional USB pin to connect or extend the line; if the system cannot be set when an abnormality occurs, you can use a specific USB cable (refer to Figure 3), short-circuit the USB power pin and ground pin on the server's USB host. When connected to the USB host, the USB host power eFulse on the server triggers an OC event, switching the server's USB host function to a BMC debug port without requiring additional configuration.

[0063] In some embodiments, the external debugging host is connected to the server USB Host port via a USB cable, including: the external debugging host is connected to the server USB Host port via a specific USB cable, and the power line and the ground line at one end of the specific USB cable connected to the server USB Host port are short-circuited.

[0064] In some embodiments, after the external debugging host is connected to the server USB Host port through a specific USB connection cable, the following steps are performed: one end of the specific USB connection cable, in which the power line and the ground line are short-circuited, is connected to the server USB Host port, and the other end in which the power line and the ground line are not short-circuited is connected to the USB interface of the external debugging host; the detection unit (eFulse) of the power supply of the server USB Host port detects overcurrent, disconnects the external power supply of the USB Host port, and sends a debugging status signal to the serial port switching unit (USB MUX).

[0065] It is important to note that if an exception occurs and the system cannot be set up, you can use a specific USB cable (refer to Figure 3 、 Figure 4 and Figure 5The power and ground wires on one end of a specific USB cable are shorted together and connected to the server's USB host port. The unshorted end is connected to the USB port on the external debugging host. Once connected, the eFulse powering the server's USB host port detects an overcurrent condition and disconnects the USB host port from external power. Simultaneously, an overcurrent signal is issued, and the output OC signal is pulled low. The serial port switching unit (USB MUX) switches the server's USB host signal from the PCH USB signal to the USB signal from the interface conversion controller (USB to UART). The system USB port is disconnected, and the interface conversion controller (USB to UART) is connected externally. The external debugging host system automatically recognizes the interface conversion controller (USB to UART) and communicates with the BMC debug port through its serial terminal to implement BMC debugging. After BMC debugging is complete, remove the USB cable, and eFulse power is restored, eliminating the overcurrent condition. OC returns to a high level. The server host signal is switched back from the interface conversion controller (USB to UART) to the serial port switching unit (USB MUX), and the server USB can resume normal operation.

[0066] In some embodiments, the external debugging host is connected to the USB Host port of the server via a USB cable, further comprising: the external debugging host is connected to the USB Host port of the server via a conventional connection cable (pin to pin).

[0067] In some embodiments, after the external debugging host is connected to the server USBHost port via a conventional pin-to-pin connection cable, the following steps are performed: a user changes the BMC debug mode through a BIOS option or system application layer software setting, so that the PCH specifies the GPIO output to a low level; based on the PCH specifying the GPIO output to a low level, a debugging status signal is sent to the serial port switching unit (USBMUX).

[0068] It is important to note that: when the host system is in normal working condition (refer to Figure 2 and Figure 6), using a regular USB cable (pin-to-pin), change to BMC debug mode through BIOS options or system application software settings, and set the designated PCH GPIO output to a low level. BIOS option configuration requires saving the settings and restarting the system for them to take effect. The GPIO output changes are implemented after the BIOS restarts the system. System application software, after confirming the configuration changes, directly changes the GPIO output without a system restart. The serial port switching unit (USB MUX) switches the server USB host signal from the PCH USB signal to the USB signal of the interface conversion controller (USB to UART). The system USB port is disconnected, and the interface conversion controller (USB to UART) is connected externally. The external debugging host system automatically recognizes the interface conversion controller (USB to UART) and communicates with the BMC debug port through the device's serial terminal to implement BMC debugging. After debugging is complete, simply change the mode back to normal in the BIOS settings or system application software settings.

[0069] In some embodiments, the serial port switching unit (USB MUX) receives a debugging status signal and switches the server USB Host port signal from a PCH USB signal to an interface conversion controller (USB to UART) signal, including: the serial port switching unit (USB MUX) receives a debugging status signal and switches the server USB Host port signal from a PCH USB signal to an interface conversion controller (USB to UART); the BMC debugging serial port is connected to the interface conversion controller (USB to UART).

[0070] In some embodiments, when the debugging of the BMC is completed, the serial port switching unit (USB MUX) switches the server USB Host-side signal from the interface conversion controller (USB to UART) signal to the PCH USB signal, including: when the debugging of the BMC is completed, the specific USB connection cable is removed, the detection unit (eFulse) powered by the server USB Host port resumes power supply, and sends a debugging end signal to the serial port switching unit (USB MUX); the serial port switching unit (USB MUX) obtains the debugging end signal and switches the server USB Host-side signal from the interface conversion controller (USB to UART) signal to the PCH USB signal.

[0071] In some embodiments, when the BMC debugging is completed, the serial port switching unit (USB MUX) switches the server USB Host-side signal from the interface conversion controller (USB to UART) signal to the PCH USB signal, and further includes: when the BMC debugging is completed, the user changes to normal mode through the BIOS option or system application layer software setting, so that the PCH designated GPIO output is a high level; based on the PCH designated GPIO output being a high level, a debugging end signal is sent to the serial port switching unit (USBMUX); the serial port switching unit (USB MUX) obtains the debugging end signal and switches the server USB Host-side signal from the interface conversion controller (USB to UART) signal to the PCH USB signal.

[0072] As can be seen from the above, the embodiment of the present application provides a method and device for debugging BMC without unpacking, which includes: an external debugging host is connected to the USB Host port of the server via a USB cable; a serial port switching unit receives a debugging status signal and switches the server USB Host port signal from a PCH USB signal to an interface conversion controller signal; the external debugging host recognizes the interface conversion controller and communicates with the BMC debugging port to debug the BMC; after debugging the BMC, the serial port switching unit switches the server USB Host end signal from the interface conversion controller signal to a PCHUSB signal. The present invention does not require the addition of a dedicated interface, and the BMC debugging function is started through software or using a specific USB cable. During the debugging process, there is no need to open the chassis or perform any hardware actions. BMC online debugging can be performed by connecting the USB cable to the server USB Host port.

[0073] In order to better implement the above method, the embodiment of the present application also provides a device 200 for debugging BMC without unpacking (such as Figure 7 ), the device can be integrated into an electronic device, which can be a terminal, a server, a personal computer, or other device. For example, in this embodiment, the device may include: a signal sending unit 201, a detection unit 202, a serial port switching unit 203, a setting unit 204, an interface conversion controller unit (USB to UART) 205, and a debugging unit 206, as follows:

[0074] (1) A signal sending unit 201, configured to send a debugging status signal to the serial port switching unit (USB MUX).

[0075] In some embodiments, an external debugging host is connected to a server USB Host port via a USB cable; a serial port switching unit (USB MUX) receives a debugging status signal and switches the server USB Host port signal from a PCHUSB signal to an interface conversion controller (USB to UART) signal; the external debugging host recognizes the interface conversion controller (USB to UART) and communicates with the BMC debugging port to debug the BMC; when debugging the BMC is completed, the serial port switching unit (USBMUX) switches the server USB Host end signal from the interface conversion controller (USB to UART) signal to the PCHUSB signal.

[0076] In some embodiments, the external debugging host is connected to the server USB Host port via a USB cable, including: the external debugging host is connected to the server USB Host port via a specific USB cable, and the power line and the ground line at one end of the specific USB cable connected to the server USB Host port are short-circuited.

[0077] In some embodiments, after the external debugging host is connected to the server USB Host port through a specific USB connection cable, the following steps are performed: one end of the specific USB connection cable, in which the power line and the ground line are short-circuited, is connected to the server USB Host port, and the other end in which the power line and the ground line are not short-circuited is connected to the USB interface of the external debugging host; the detection unit (eFulse) of the power supply of the server USB Host port detects overcurrent, disconnects the external power supply of the USB Host port, and sends a debugging status signal to the serial port switching unit (USB MUX).

[0078] In some embodiments, the external debugging host is connected to the USB Host port of the server via a USB cable, further comprising: the external debugging host is connected to the USB Host port of the server via a conventional connection cable (pin to pin).

[0079] In some embodiments, after the external debugging host is connected to the server USBHost port via a conventional pin-to-pin connection cable, the following steps are performed: a user changes the BMC debug mode through a BIOS option or system application layer software setting, so that the PCH specifies the GPIO output as a low level; based on the PCH specifying the GPIO output as a low level, a debugging status signal is sent to the serial port switching unit (USB MUX).

[0080] (2) A detection unit 202, configured to detect the current of the USB Host port.

[0081] In some embodiments, an external debugging host is connected to a server USB Host port via a USB cable; a serial port switching unit (USB MUX) receives a debugging status signal and switches the server USB Host port signal from a PCHUSB signal to an interface conversion controller (USB to UART) signal; the external debugging host recognizes the interface conversion controller (USB to UART) and communicates with the BMC debugging port to debug the BMC; when debugging the BMC is completed, the serial port switching unit (USBMUX) switches the server USB Host end signal from the interface conversion controller (USB to UART) signal to the PCHUSB signal.

[0082] In some embodiments, the external debugging host is connected to the server USB Host port via a USB cable, including: the external debugging host is connected to the server USB Host port via a specific USB cable, and the power line and ground line at one end of the specific USB cable connected to the server USB Host port are short-circuited.

[0083] In some embodiments, after the external debugging host is connected to the server USB Host port through a specific USB connection cable, the following steps are performed: one end of the specific USB connection cable, in which the power line and the ground line are short-circuited, is connected to the server USB Host port, and the other end in which the power line and the ground line are not short-circuited is connected to the USB interface of the external debugging host; the detection unit (eFulse) of the power supply of the server USB Host port detects overcurrent, disconnects the external power supply of the USB Host port, and sends a debugging status signal to the serial port switching unit (USB MUX).

[0084] (3) A serial port switching unit 203, used to switch the USB Host port signal of the server.

[0085] In some embodiments, an external debugging host is connected to a server USB Host port via a USB cable; a serial port switching unit (USB MUX) receives a debugging status signal and switches the server USB Host port signal from a PCHUSB signal to an interface conversion controller (USB to UART) signal; the external debugging host recognizes the interface conversion controller (USB to UART) and communicates with the BMC debugging port to debug the BMC; when debugging the BMC is completed, the serial port switching unit (USBMUX) switches the server USB Host end signal from the interface conversion controller (USB to UART) signal to the PCHUSB signal.

[0086] In some embodiments, the serial port switching unit (USB MUX) receives a debugging status signal and switches the server USB Host port signal from a PCH USB signal to an interface conversion controller (USB to UART) signal, including: the serial port switching unit (USB MUX) receives a debugging status signal and switches the server USB Host port signal from a PCH USB signal to an interface conversion controller (USB to UART); the BMC debugging serial port is connected to the interface conversion controller (USB to UART).

[0087] In some embodiments, when the debugging of the BMC is completed, the serial port switching unit (USB MUX) switches the server USB Host-side signal from the interface conversion controller (USB to UART) signal to the PCH USB signal, including: when the debugging of the BMC is completed, the specific USB connection cable is removed, the detection unit (eFulse) powered by the server USB Host port resumes power supply, and sends a debugging end signal to the serial port switching unit (USB MUX); the serial port switching unit (USB MUX) obtains the debugging end signal and switches the server USB Host-side signal from the interface conversion controller (USB to UART) signal to the PCH USB signal.

[0088] In some embodiments, when the BMC debugging is completed, the serial port switching unit (USB MUX) switches the server USB Host-side signal from the interface conversion controller (USB to UART) signal to the PCH USB signal, and further includes: when the BMC debugging is completed, the user changes to normal mode through the BIOS option or system application layer software setting, so that the PCH designated GPIO output is a high level; based on the PCH designated GPIO output being a high level, a debugging end signal is sent to the serial port switching unit (USBMUX); the serial port switching unit (USB MUX) obtains the debugging end signal and switches the server USB Host-side signal from the interface conversion controller (USB to UART) signal to the PCH USB signal.

[0089] (4) Setting unit 204, used by the user to change to BMC debug mode through BIOS options or system application layer software settings, so that the PCH designated GPIO output is low level.

[0090] In some embodiments, an external debugging host is connected to a server USB Host port via a USB cable; a serial port switching unit (USB MUX) receives a debugging status signal and switches the server USB Host port signal from a PCHUSB signal to an interface conversion controller (USB to UART) signal; the external debugging host recognizes the interface conversion controller (USB to UART) and communicates with the BMC debugging port to debug the BMC; when debugging the BMC is completed, the serial port switching unit (USBMUX) switches the server USB Host end signal from the interface conversion controller (USB to UART) signal to the PCHUSB signal.

[0091] In some embodiments, after the external debugging host is connected to the server USBHost port via a conventional pin-to-pin connection cable, the following steps are performed: a user changes the BMC debug mode through a BIOS option or system application layer software setting, so that the PCH specifies the GPIO output to a low level; based on the PCH specifying the GPIO output to a low level, a debugging status signal is sent to the serial port switching unit (USBMUX).

[0092] (5) Interface conversion controller unit (USB to UART) 205, used to connect the BMC debug serial port and the server USBHost port.

[0093] In some embodiments, an external debugging host is connected to a server USB Host port via a USB cable; a serial port switching unit (USB MUX) receives a debugging status signal and switches the server USB Host port signal from a PCHUSB signal to an interface conversion controller (USB to UART) signal; the external debugging host recognizes the interface conversion controller (USB to UART) and communicates with the BMC debugging port to debug the BMC; when debugging the BMC is completed, the serial port switching unit (USBMUX) switches the server USB Host end signal from the interface conversion controller (USB to UART) signal to the PCHUSB signal.

[0094] In some embodiments, the external debugging host is connected to the server USB Host port via a USB cable, including: the external debugging host is connected to the server USB Host port via a specific USB cable, and the power line and the ground line at one end of the specific USB cable connected to the server USB Host port are short-circuited.

[0095] In some embodiments, after the external debugging host is connected to the server USB Host port through a specific USB connection cable, the following steps are performed: one end of the specific USB connection cable, in which the power line and the ground line are short-circuited, is connected to the server USB Host port, and the other end in which the power line and the ground line are not short-circuited is connected to the USB interface of the external debugging host; the detection unit (eFulse) of the power supply of the server USB Host port detects overcurrent, disconnects the external power supply of the USB Host port, and sends a debugging status signal to the serial port switching unit (USB MUX).

[0096] In some embodiments, the external debugging host is connected to the USB Host port of the server via a USB cable, further comprising: the external debugging host is connected to the USB Host port of the server via a conventional connection cable (pin to pin).

[0097] In some embodiments, after the external debugging host is connected to the server USBHost port via a conventional pin-to-pin connection cable, the following steps are performed: a user changes the BMC debug mode through a BIOS option or system application layer software setting, so that the PCH specifies the GPIO output to a low level; based on the PCH specifying the GPIO output to a low level, a debugging status signal is sent to the serial port switching unit (USBMUX).

[0098] In some embodiments, the serial port switching unit (USB MUX) receives a debugging status signal and switches the server USB Host port signal from a PCH USB signal to an interface conversion controller (USB to UART) signal, including: the serial port switching unit (USB MUX) receives a debugging status signal and switches the server USB Host port signal from a PCH USB signal to an interface conversion controller (USB to UART); the BMC debugging serial port is connected to the interface conversion controller (USB to UART).

[0099] In some embodiments, when the debugging of the BMC is completed, the serial port switching unit (USB MUX) switches the server USB Host-side signal from the interface conversion controller (USB to UART) signal to the PCH USB signal, including: when the debugging of the BMC is completed, the specific USB connection cable is removed, the detection unit (eFulse) powered by the server USB Host port resumes power supply, and sends a debugging end signal to the serial port switching unit (USB MUX); the serial port switching unit (USB MUX) obtains the debugging end signal and switches the server USB Host-side signal from the interface conversion controller (USB to UART) signal to the PCH USB signal.

[0100] In some embodiments, when the BMC debugging is completed, the serial port switching unit (USB MUX) switches the server USB Host-side signal from the interface conversion controller (USB to UART) signal to the PCH USB signal, and further includes: when the BMC debugging is completed, the user changes to normal mode through the BIOS option or system application layer software setting, so that the PCH designated GPIO output is a high level; based on the PCH designated GPIO output being a high level, a debugging end signal is sent to the serial port switching unit (USBMUX); the serial port switching unit (USB MUX) obtains the debugging end signal and switches the server USB Host-side signal from the interface conversion controller (USB to UART) signal to the PCH USB signal.

[0101] (6) Debugging unit 206, used for the external debugging host to identify the interface conversion controller (USB to UART) and communicate with the BMC debugging port to debug the BMC.

[0102] In some embodiments, an external debugging host is connected to a server USB Host port via a USB cable; a serial port switching unit (USB MUX) receives a debugging status signal and switches the server USB Host port signal from a PCHUSB signal to an interface conversion controller (USB to UART) signal; the external debugging host recognizes the interface conversion controller (USB to UART) and communicates with the BMC debugging port to debug the BMC; when debugging the BMC is completed, the serial port switching unit (USBMUX) switches the server USB Host end signal from the interface conversion controller (USB to UART) signal to the PCHUSB signal.

[0103] The embodiment of the present application also provides a device 300 for debugging a BMC without unpacking the BMC (eg Figure 8), the device can be integrated into an electronic device, which can be a terminal, a server, a personal computer, etc. For example, in this embodiment, the device may include: an identification unit 301 and a debugging unit 302, as follows:

[0104] (1) Identification unit 301, used for the external debugging host to identify the interface conversion controller (USB to UART) and communicate with the BMC debugging port to debug the BMC.

[0105] In some embodiments, an external debugging host is connected to a server USB Host port via a USB cable; a serial port switching unit (USB MUX) receives a debugging status signal and switches the server USB Host port signal from a PCHUSB signal to an interface conversion controller (USB to UART) signal; the external debugging host recognizes the interface conversion controller (USB to UART) and communicates with the BMC debugging port to debug the BMC; when debugging the BMC is completed, the serial port switching unit (USBMUX) switches the server USB Host end signal from the interface conversion controller (USB to UART) signal to the PCHUSB signal.

[0106] (2) The debugging unit 302 is used for the external debugging host to identify the interface conversion controller (USB to UART) and communicate with the BMC debugging port to debug the BMC.

[0107] In some embodiments, an external debugging host is connected to a server USB Host port via a USB cable; a serial port switching unit (USB MUX) receives a debugging status signal and switches the server USB Host port signal from a PCHUSB signal to an interface conversion controller (USB to UART) signal; the external debugging host recognizes the interface conversion controller (USB to UART) and communicates with the BMC debugging port to debug the BMC; when debugging the BMC is completed, the serial port switching unit (USBMUX) switches the server USB Host end signal from the interface conversion controller (USB to UART) signal to the PCHUSB signal.

[0108] In specific implementation, the above units can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above units can be found in the previous method embodiments and will not be repeated here.

[0109] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be accomplished by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0110] To this end, an embodiment of the present application provides a storage medium storing a plurality of instructions that can be loaded by a processor to execute the steps of any of the methods for debugging a BMC without opening the box provided in the embodiment of the present application. For example, the instructions can execute the following steps:

[0111] The external debugging host is connected to the server USB Host port via a USB cable; the serial port switching unit receives a debugging status signal and switches the server USB Host port signal from the PCH USB signal to the interface conversion controller signal; the external debugging host recognizes the interface conversion controller and communicates with the BMC debugging port to debug the BMC; after debugging the BMC, the serial port switching unit switches the server USB Host end signal from the interface conversion controller signal to the PCH USB signal.

[0112] The storage medium may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0113] In summary, compared with the prior art, the present invention has the following beneficial effects: a method and device for debugging BMC without unpacking, comprising: an external debugging host is connected to the USB Host port of a server via a USB cable; a serial port switching unit receives a debugging status signal and switches the USB Host port signal of the server from a PCH USB signal to an interface conversion controller signal; the external debugging host recognizes the interface conversion controller and communicates with the BMC debugging port to debug the BMC; after debugging the BMC, the serial port switching unit switches the USB Host end signal of the server from the interface conversion controller signal to a PCHUSB signal. The present invention does not require the addition of a dedicated interface, and the BMC debugging function is started through software or a specific USB cable. During the debugging process, there is no need to open the chassis or perform any hardware actions. BMC online debugging can be performed by connecting the USB cable to the USB Host port of the server.

[0114] Obviously, the above embodiments are merely examples for clarity of explanation and are not intended to limit the implementation methods. Those skilled in the art will readily appreciate that other variations or modifications based on the above descriptions are possible. It is not necessary and impossible to enumerate all implementation methods here. Obvious variations or modifications arising therefrom remain within the scope of protection of the present invention.

Claims

1. A method for debugging a BMC without unpacking the device, characterized in that: include: The external debugging host is connected to the server USB Host port via a USB cable; The serial port switching unit receives the debugging state signal and switches the server USB Host port signal from the PCH USB signal to the interface conversion controller signal; The external debugging host recognizes the interface conversion controller and communicates with the BMC debugging port to debug the BMC; After the BMC debugging is completed, the serial port switching unit switches the server USB Host end signal from the interface conversion controller signal to the PCH USB signal; The external debugging host is connected to the USB Host port of the server through a USB connection cable, including: the external debugging host is connected to the USB Host port of the server through a specific USB connection cable, and the power line and the ground line of one end of the specific USB connection cable connected to the USB Host port of the server are short-circuited; After the external debugging host is connected to the USB Host port of the server via a specific USB cable, the following steps are performed: one end of the specific USB cable, in which the power supply line and the ground line are short-circuited, is connected to the USB Host port of the server, and the other end of the specific USB cable, in which the power supply line and the ground line are not short-circuited, is connected to the USB interface of the external debugging host; a power supply detection unit of the USB Host port of the server detects an overcurrent, disconnects the external power supply of the USB Host port, and sends a debugging status signal to the serial port switching unit; The serial port switching unit receives the debugging state signal and switches the server USB Host port signal from the PCH USB signal to the interface conversion controller signal, including: the serial port switching unit receives the debugging state signal and switches the server USB Host port signal from the PCH USB signal to the interface conversion controller; the BMC debugging serial port is connected to the interface conversion controller; The serial port switching unit switches the server USB Host-side signal from the interface conversion controller signal to the PCH USB signal, including: after BMC debugging ends, the specific USB connection cable is removed, the detection unit powered by the server USB Host port resumes power supply, and sends a debugging end signal to the serial port switching unit; the serial port switching unit obtains the debugging end signal and switches the server USB Host-side signal from the interface conversion controller signal to the PCH USB signal.

2. A device for debugging BMC without unpacking, characterized in that: include: A signal sending unit, used for sending a debugging status signal to the serial port switching unit; Detection unit, used to detect the current of the USB Host port; Serial port switching unit, used to switch the server USB Host port signal; The setting unit is used by the user to change to BMC debug mode through BIOS options or system application layer software settings, so that the PCH specified GPIO output is low level; Interface conversion controller unit, used to connect the BMC debug serial port and the server USB host port; A debugging unit, configured for an external debugging host to recognize the interface conversion controller and communicate with the BMC debugging port to debug the BMC; in, The serial port switching unit receives the debugging state signal and switches the server USB Host port signal from the PCH USB signal to the interface conversion controller signal; The external debugging host recognizes the interface conversion controller and communicates with the BMC debugging port to debug the BMC; After the BMC debugging is completed, the serial port switching unit switches the server USB Host end signal from the interface conversion controller signal to the PCH USB signal; The external debugging host is connected to the USB Host port of the server through a USB connection cable, including: the external debugging host is connected to the USB Host port of the server through a specific USB connection cable, and the power line and the ground line of one end of the specific USB connection cable connected to the USB Host port of the server are short-circuited; After the external debugging host is connected to the USB Host port of the server via a specific USB cable, the following steps are performed: one end of the specific USB cable, in which the power supply line and the ground line are short-circuited, is connected to the USB Host port of the server, and the other end of the specific USB cable, in which the power supply line and the ground line are not short-circuited, is connected to the USB interface of the external debugging host; a power supply detection unit of the USB Host port of the server detects an overcurrent, disconnects the external power supply of the USB Host port, and sends a debugging status signal to the serial port switching unit; The serial port switching unit receives the debugging state signal and switches the server USB Host port signal from the PCH USB signal to the interface conversion controller signal, including: the serial port switching unit receives the debugging state signal and switches the server USB Host port signal from the PCH USB signal to the interface conversion controller; the BMC debugging serial port is connected to the interface conversion controller; The serial port switching unit switches the server USB Host-side signal from the interface conversion controller signal to the PCH USB signal, including: after BMC debugging ends, the specific USB connection cable is removed, the detection unit powered by the server USB Host port resumes power supply, and sends a debugging end signal to the serial port switching unit; the serial port switching unit obtains the debugging end signal and switches the server USB Host-side signal from the interface conversion controller signal to the PCH USB signal.

3. A storage medium having a computer program stored thereon, characterized in that: When the computer program is run on a computer, the computer is enabled to execute the method for debugging a BMC without unpacking the BMC as claimed in claim 1 .

Citation Information

Patent Citations

  • Serial switching system, server and serial switching method

    CN103455455A

  • Serial port information switching device and server

    CN110659233A