Server serial port structure and debugging method thereof, computer equipment and storage medium

By introducing microcontrollers to the server, connecting BMC and BIOS interfaces in parallel, using UART-USB bridges to solve the problem of low serial log acquisition efficiency in the server, and obtaining BMC and BIOS serial logs at the same time, improving positioning time and debugging efficiency .

CN119311449APending Publication Date: 2025-01-14INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411317902.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-20
Publication Date
2025-01-14

AI Technical Summary

Technical Problem

In the server, the board management controller (BMC) and the basic input and output system (BIOS) share the serial port output, which makes it impossible to obtain the serial port log at the same time, resulting in a reduced positioning time; after converting the serial ports of BMC and BIOS into USB signals, USB during debugging The number of data ports is too small, which affects debugging efficiency.

Method used

By introducing a microcontroller to connect the integrated south bridge/central processor, the parallel connection between the BMC and BIOS interfaces is realized, the serial port conversion is used using the UART-USB bridge, and the BMC is suspended through the microcontroller to ensure the normal use of the BIOS serial port. Increase the number of debugging serial ports and realize the complete serial port log storage and download after each power-on or power-on.

Benefits of technology

You can obtain the serial port logs of BMC and BIOS at the same time without reproduction, improve positioning time, increase debugging efficiency, and improve problem positioning efficiency during product development and after-sales maintenance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119311449A_ABST
    Figure CN119311449A_ABST
Patent Text Reader

Abstract

The invention relates to a server serial port structure and a debugging method thereof, computer equipment and a storage medium, and relates to the technical field of servers. The microcontroller is introduced to be connected with the substrate management controller and the integrated south bridge / central processing unit, so that the problem that a serial port of a basic input / output system cannot be acquired possibly due to dependence on the substrate management controller and the problem that a low-probability Bug is difficult to grab a serial port log are solved. The substrate management controller interface and the basic input and output system interface are connected to the microcontroller in parallel through the substrate management controller, serial port logs of the substrate management controller and the basic input and output system can be obtained at the same time, effective serial port logs can be captured without re-reproduction, the positioning timeliness is improved, the number of debugging serial ports is increased, and the debugging efficiency is improved. According to the method, the storage and downloading functions of the last complete serial port log after each startup or power-on are realized, the serial port log collection efficiency is greatly improved, and the problem positioning efficiency in the product development and after-sales maintenance process is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of servers, and in particular to a server serial port structure and a debugging method thereof, a computer device and a computer-readable storage medium. Background Art

[0002] In server products, the serial port is a commonly used peripheral debugging interface in server design and development. The serial port has the advantages of simple protocol and interface, relatively reliable communication, and easy implementation. Only a pair of transmission lines are needed to achieve two-way communication, which greatly reduces the cost. It is usually used in the design and debugging of modules such as baseboard management controller (BMC) and basic input and output system (BIOS) in the server field. For example, during the BIOS development process, the information during the server system startup process can be printed out through the serial port. By analyzing these logs, the location of BIOS-related errors can be accelerated, which is convenient for fast debugging and locating problems.

[0003] At present, in order to meet the product function requirements and take into account the space design, the common design method of the server is to use the BMC and BIOS to share the serial port output. It is necessary to use CPLD to do MUX switching, which can save interface space, but it is impossible to obtain the serial port logs of BMC and BIOS at the same time. Only one of the two can be selected, and it is necessary to reproduce again to capture the effective serial port log, which reduces the positioning time efficiency. Without encryption, the system serial port log is easily exposed. Another structure is to convert the serial port of BMC and BIOS into a universal serial bus (USB) signal and integrate it into the existing USB interface, so as to achieve further integration of the server interface and realize the security processing of the serial port through the switching function. However, the number of USB data ports in the debugging process is too small, which will affect the debugging efficiency. The serial ports of BMC and BIOS are connected through BMC. After the BMC hangs, the system second serial port log cannot be obtained. Summary of the invention

[0004] In order to solve the above technical problems, the present invention provides a server serial port structure and a debugging method thereof, a computer device and a computer-readable storage medium. On the one hand, the problem that the serial port logs of the baseboard management controller (BMC) and the basic input and output system (BIOS) cannot be obtained simultaneously due to the shared serial port output of the current baseboard management controller (BMC) and the basic input and output system (BIOS), and the effective serial port logs need to be reproduced again, resulting in reduced positioning time efficiency; on the other hand, the problem that the serial ports of the baseboard management controller (BMC) and the basic input and output system (BIOS) are converted into USB signals and integrated into the USB interface is solved, resulting in too few USB data ports in the debugging and troubleshooting process, which affects the debugging and troubleshooting efficiency.

[0005] To achieve the above object, the present invention provides a server serial port structure, including an integrated south bridge / central processing unit, a complex programmable logic device, a microcontroller, a baseboard management controller, a baseboard management controller, and an interface connector;

[0006] The integrated south bridge / central processing unit is connected to the complex programmable logic device, the microcontroller and the baseboard management controller, the baseboard management controller is connected to the microcontroller, and the microcontroller is connected to the interface connector;

[0007] The baseboard management controller and the microcontroller are connected to each other via a basic input and output system interface and a baseboard management controller interface.

[0008] In one embodiment of the present invention, the integrated south bridge / central processing unit is connected to the complex programmable logic device through a first control interface; the integrated south bridge / central processing unit is connected to the microcontroller and the baseboard management controller through a second control interface; the integrated south bridge / central processing unit is interconnected with the complex programmable logic device, the microcontroller and the baseboard management controller through an enhanced serial peripheral interface or a communication bus; the microcontroller is connected to the serial port connector through a universal serial bus.

[0009] In one embodiment of the present invention, the baseboard management controller is further connected to the microcontroller via a dog feeding signal interface; the microcontroller is used to determine whether the baseboard management controller is hung through the dog feeding signal.

[0010] In one embodiment of the present invention, the microcontroller includes a control unit, a UART converter unit and a UART-USB bridge;

[0011] The basic input and output system interface and the baseboard management controller interface are both asynchronous transmission interfaces, which are used to convert parallel data and serial data in serial communication; the basic input and output system interface and the baseboard management controller interface are connected to the control unit;

[0012] The enhanced serial peripheral interface or the communication bus is connected to the UART conversion unit, and the control unit and the UART conversion unit are connected to the UART-USB bridge.

[0013] In one embodiment of the present invention, the microcontroller further comprises a first buffer, a second buffer, a third buffer, a first memory and a second memory;

[0014] The dog feeding signal interface and the second control interface are connected to the control unit;

[0015] The control unit is connected to the UART-USB bridge via a first internal forwarding interface UART_MCU;

[0016] The control unit is connected to the UART-USB bridge via a second internal forwarding interface;

[0017] The control unit is connected to the first memory through the first buffer, and the first memory is connected to the UART-USB bridge through a third internal forwarding interface; wherein the third internal forwarding interface is connected to an input data pin of the first buffer, the control unit is connected to an enable pin of the first buffer, and an output data pin of the first buffer is connected to the UART-USB bridge;

[0018] The control unit is connected to the UART converter unit via a third control interface, and the control unit and the UART converter unit are connected to the UART-USB bridge via a fourth internal forwarding interface;

[0019] The control unit is connected to the second memory through the second buffer, the UART conversion unit is connected to the second memory through the third buffer, and the second memory is connected to the UART-USB bridge through the fifth internal forwarding interface; wherein the fourth internal forwarding interface is connected to the input data pin of the second buffer, the control unit is connected to the enable pin of the second buffer, the UART conversion unit is connected to the input data pin and the enable pin of the third buffer, and the output data pin of the second buffer is connected to the third memory in parallel with the output data pin of the third buffer;

[0020] The UART-USB bridge is connected to the interface connector via a universal serial bus, and the serial port connector includes a micro universal serial bus connector.

[0021] On the other hand, a method for debugging a server serial port structure is provided, comprising:

[0022] Detect whether serial port debugging is performed through the interface connector;

[0023] In response to the interface connector receiving a signal for performing serial port debugging, identifying an interface to be debugged;

[0024] When the interface being debugged is a baseboard management controller interface, the interface connector communicates with the control unit to debug the baseboard management controller interface through the second internal forwarding interface, the control unit forms a serial port log with the debugging feedback result of debugging the baseboard management controller interface and stores it in the first memory through the first buffer in a first-in-first-out manner, and the UART-USB bridge receives the serial port log through the third internal forwarding interface;

[0025] When the interface being debugged is a basic input / output system interface, the interface connector is connected to the control unit through the fourth internal forwarding interface to debug the basic input / output system interface, the control unit forms a serial port log with the debugging feedback result of debugging the basic input / output system interface and stores it in the second memory in a first-in-first-out manner through the second buffer, and the UART-USB bridge receives the serial port log through the fifth internal forwarding interface.

[0026] In one embodiment of the present invention, the debugging method of the server serial port structure further includes:

[0027] The microcontroller determines whether the baseboard management controller is hung through the dog feeding signal received by the control unit;

[0028] When the control unit determines that the baseboard management controller is hung, the second control interface signal received by the control unit is transparently transmitted to the UART converter unit, so that the UART converter unit performs serial port conversion so that the basic input and output system interface can be used normally.

[0029] In one embodiment of the present invention, the debugging method of the server serial port structure further includes:

[0030] When the first memory receives the serial port log, the first memory determines whether there is a start string or an end string in the serial port log; when there is a start string, it is determined that the server has just been powered on or turned on, and the serial port log is sent for the first time; when there is an end string, it is determined that the baseboard management controller is initialized and the serial port log is stored, and the first memory entry is closed;

[0031] When the second memory receives the serial port log, the second memory determines whether there is a start string or an end string in the serial port log; when the start string exists, it is determined that the server has just been powered on or turned on, and the serial port log is sent for the first time; when the end string exists, it is determined that the basic input and output system initialization is completed, the serial port log is stored, and the second memory entry is closed;

[0032] When the server is restarted, powered off, or the baseboard management controller is restarted, the first memory is again detected to see whether there is a starting character string in the serial port log received by the first memory, and the second memory is again detected to see whether there is a starting character string in the serial port log received by the second memory;

[0033] When the microcontroller receives the download of the serial port log or the serial port log, it receives the serial port log through the third internal forwarding interface and encrypts the serial port log, or receives the serial port log through the fifth internal forwarding interface and encrypts the serial port log.

[0034] In another aspect, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the following steps are implemented:

[0035] Detect whether serial port debugging is performed through the interface connector;

[0036] In response to the interface connector receiving a signal for performing serial port debugging, identifying an interface to be debugged;

[0037] When the interface being debugged is a baseboard management controller interface, the interface connector communicates with the control unit to debug the baseboard management controller interface through the second internal forwarding interface, the control unit forms a serial port log with the debugging feedback result of debugging the baseboard management controller interface and stores it in the first memory through the first buffer in a first-in-first-out manner, and the UART-USB bridge receives the serial port log through the third internal forwarding interface;

[0038] When the interface being debugged is a basic input / output system interface, the interface connector is connected to the control unit through the fourth internal forwarding interface to debug the basic input / output system interface, the control unit forms a serial port log with the debugging feedback result of debugging the basic input / output system interface and stores it in the second memory in a first-in-first-out manner through the second buffer, and the UART-USB bridge receives the serial port log through the fifth internal forwarding interface.

[0039] In another aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0040] Detect whether serial port debugging is performed through the interface connector;

[0041] In response to the interface connector receiving a signal for performing serial port debugging, identifying an interface to be debugged;

[0042] When the interface being debugged is a baseboard management controller interface, the interface connector communicates with the control unit to debug the baseboard management controller interface through the second internal forwarding interface, the control unit forms a serial port log with the debugging feedback result of debugging the baseboard management controller interface and stores it in the first memory through the first buffer in a first-in-first-out manner, and the UART-USB bridge receives the serial port log through the third internal forwarding interface;

[0043] When the interface being debugged is a basic input / output system interface, the interface connector is connected to the control unit through the fourth internal forwarding interface to debug the basic input / output system interface, the control unit forms a serial port log with the debugging feedback result of debugging the basic input / output system interface and stores it in the second memory in a first-in-first-out manner through the second buffer, and the UART-USB bridge receives the serial port log through the fifth internal forwarding interface.

[0044] The above technical solution of the present invention has the following advantages compared with the prior art:

[0045] The server serial port structure and debugging method thereof, computer equipment and computer-readable storage medium described in the present invention, by introducing a microcontroller to connect the baseboard management controller and the integrated south bridge / central processing unit, avoid the problem that the basic input and output system serial port cannot be obtained when relying on the baseboard management controller, and the problem that the serial port log is not easy to capture due to low-probability bugs. The baseboard management controller interface and the basic input and output system interface are connected to the microcontroller in parallel through the baseboard management controller, and the serial port logs of the baseboard management controller and the basic input and output system can be obtained at the same time, and there is no need to reproduce again to capture the effective serial port log, which improves the positioning time efficiency, and increases the number of debugging serial ports, realizing the storage and download function of the most recent complete serial port log after each startup or power-on, greatly improving the serial port log collection efficiency, and improving the problem positioning efficiency in the product development and after-sales maintenance process. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0047] Figure 1 It is a structural schematic diagram of a server serial port in the prior art where a baseboard management controller and a basic input / output system share a serial port output;

[0048] Figure 2It is a structural schematic diagram of a server serial port in which a baseboard management controller and a basic input and output system serial port are integrated into an interface in the prior art;

[0049] Figure 3 It is a structural schematic diagram of the server serial port structure of the present invention;

[0050] Figure 4 It is a schematic diagram of the structure of the microcontroller of the present invention;

[0051] Figure 5 It is a flow chart of the debugging method of the server serial port structure of the present invention;

[0052] Figure 6 This is a diagram of the internal structure of a computer device in one embodiment of the present application.

[0053] Description of the Figures in the Specification:

[0054] Integrated south bridge PCH, central processing unit CPU, complex programmable logic device CPLD, microcontroller MCU, baseboard management controller BMC, multiplexer MUX, basic input and output system BIOS, basic input and output system interface UART1, baseboard management controller interface UART5, first control interface CS0, second control interface CS1, third control interface CS, enhanced serial peripheral interface eSPI, communication bus LPC, universal serial bus USB, dog feeding signal interface WDT, control unit CTLUNIT, UART transfer unit Trans to UART, UART-USB bridge UARTto USB Bridge, first internal forwarding interface UART_MCU, second internal forwarding interface UARTi_0, third internal forwarding interface UARTi_1, fourth internal forwarding interface UARTi_2, fifth internal forwarding interface UARTi_3. DETAILED DESCRIPTION

[0055] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution in the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is only a part of the embodiment of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0056] At present, in order to meet the functional requirements of products, the server also takes into account the space design, such as Figure 1As shown in the figure, the common serial port output of the baseboard management controller BMC and the basic input and output system BIOS is a common design method at present. UART1 is the basic input and output system (BIOS) serial port, which is the serial port information converted by the baseboard management controller BMC by parsing the eSPI / LPC interface; UART5 is the debug serial port of the baseboard management controller BMC itself. The two are switched through the internal logic of the complex programmable logic device CPLD and output to the external UART interface. The complex programmable logic device CPLD only performs signal connection function. The UART5 signal is forwarded by default when powered on, so if you need to obtain UART1 information, you need to enter the switching command.

[0057] Obviously, under this design, it is impossible to obtain UART1 and UART5 information at the same time, and only one of the two can be selected; the complex programmable logic device CPLD only performs MUX switching, and the serial port information is output by default when powered on; the MUX device, also known as a multiplexer, is mainly used to ensure that the voltage signal received from the sensor terminal to the signal conditioning board is the correct voltage between the terminals. In addition, this design requires the baseboard management controller BMC to be started before the system BIOS serial port information can be collected (eSPI parsed). Once the baseboard management controller BMC crashes, the system serial port information cannot be obtained.

[0058] The serial port is used as a debugging interface. Users can operate the server through the serial port to control the server baseboard management controller BMC and basic input and output system BIOS. Therefore, the baseboard management controller BMC, basic input and output system BIOS and other underlying software can be set through the serial port, or the server software and hardware design can be analyzed at the bottom level by parsing the serial port output. This brings great security risks to end users, and key information of the product system design is easily leaked and mastered by competitors.

[0059] like Figure 1 As shown, using complex programmable logic devices (CPLDs) for MUX switching can save interface space, but it is impossible to capture information from two serial ports at the same time, and without encryption, the system serial port information is easily exposed.

[0060] During the entire cycle of product testing and use, some low-probability problems are often encountered, and it is necessary to capture serial port logs to assist in positioning. However, due to the low probability of reproduction and the difficulty in preserving the on-site environment, it is often necessary to reproduce again to capture effective serial port logs, resulting in reduced positioning timeliness, and even becoming an unsolved case because it cannot be reproduced. Current designs cannot solve such problems.

[0061] like Figure 2As shown, the serial port is converted into a USB signal through a UART-USB bridge (UARTto USB Bridge) and integrated into the existing USB interface, thereby achieving further integration of the server interface and realizing secure processing of the serial port through the switching function.

[0062] Currently, the serial port is usually placed on the back window of the server, using a Mini USB or Micro USB connector, which occupies limited space and does not need to be integrated into the USB data port. On the contrary, the number of USB data ports is too small during the debugging process, which will affect the debugging efficiency. On the other hand, after the baseboard management controller BMC hangs, the basic input and output system BIOS serial port information cannot be obtained.

[0063] In view of the above existing solutions, a debug serial port structure suitable for x86 servers is proposed. By introducing a microcontroller MCU and designing a corresponding code logic architecture, the inherent problem of serial port log capture in the current design is solved, so that the serial port has both convenience and security in use. It is aimed at the problem that the basic input and output system BIOS serial port cannot be obtained when relying on the baseboard management controller BMC, and the problem that the serial port log is not easy to capture due to low probability bugs. The validity of the basic input and output system BIOS serial port is still guaranteed after the baseboard management controller BMC hangs, improving the product's usage experience on the market side. At the same time, in view of the low probability problems that are common in the life cycle of server products, by increasing the number of debug serial ports, the storage and download function of the most recent complete serial port log after each startup or power-on is realized, which greatly improves the efficiency of serial port log collection when encountering similar problems, improves the efficiency of problem location in product development and after-sales maintenance, improves the design quality of products from different scenarios such as test verification and market application, and helps to enhance the competitiveness of server products.

[0064] Reference Figure 3 , Figure 4 As shown, the present invention provides a server serial port structure, including an integrated south bridge PCH / central processing unit CPU, a complex programmable logic device CPLD, a microcontroller MCU, a baseboard management controller BMC and an interface connector;

[0065] The integrated south bridge PCH / central processing unit CPU is connected to the complex programmable logic device CPLD, the microcontroller MCU and the baseboard management controller BMC, the baseboard management controller BMC is connected to the microcontroller MCU, and the microcontroller MCU is connected to the interface connector;

[0066] The baseboard management controller BMC and the microcontroller MCU are connected to each other through a basic input and output system interface UART1 and a baseboard management controller interface UART5.

[0067] This embodiment introduces a microcontroller to connect the baseboard management controller and the integrated south bridge / central processing unit, thereby avoiding the problem that the basic input and output system BIOS serial port cannot be obtained when relying on the baseboard management controller BMC, and the problem that low-probability bugs are difficult to capture serial port logs. The baseboard management controller interface and the basic input and output system interface are connected to the microcontroller in parallel through the baseboard management controller, and the serial port logs of the baseboard management controller BMC and the basic input and output system BIOS can be obtained at the same time. There is no need to reproduce again to capture effective serial port logs, which improves the positioning time efficiency, and increases the number of debugging serial ports. The storage and download function of the most recent complete serial port log is realized after each startup or power-on, which greatly improves the efficiency of serial port log collection and improves the efficiency of problem positioning during product development and after-sales maintenance.

[0068] In this embodiment, the integrated south bridge PCH / central processing unit CPU is connected to the complex programmable logic device CPLD through the first control interface CS0; the integrated south bridge PCH / central processing unit CPU is connected to the microcontroller MCU and the baseboard management controller BMC through the second control interface CS1; the integrated south bridge PCH / central processing unit CPU is interconnected with the complex programmable logic device CPLD, the microcontroller MCU and the baseboard management controller BMC through the enhanced serial peripheral interface eSPI or the communication bus LPC; the microcontroller MCU is connected to the serial port connector through the universal serial bus USB.

[0069] The full name of the eSPI signal in Chinese is Enhanced Serial Peripheral Interface. This is a new generation bus interface launched by Intel in 2016, which is designed to replace the LPC (Low Pin Count) bus. The full name of LPC is Low Pin Count Bus, which means reduced pin bus.

[0070] In this embodiment, the baseboard management controller BMC is also connected to the microcontroller MCU via a dog feeding signal interface WDT; the microcontroller MCU is used to determine whether the baseboard management controller BMC is hung through the dog feeding signal.

[0071] In this embodiment, the microcontroller MCU includes a control unit CTLUNIT, a UART conversion unit (TranstoUART) and a UART-USB bridge;

[0072] The basic input and output system BIOS interface and the baseboard management controller BMC interface are both asynchronous transmission interfaces (also called asynchronous communication interfaces), which are used to convert parallel data and serial data in serial communication; the basic input and output system BIOS interface and the baseboard management controller BMC interface are connected to the control unit CTLUNIT;

[0073] The enhanced serial peripheral interface eSPI or the communication bus LPC is connected to the UART conversion unit, and the control unit CTLUNIT and the UART conversion unit are connected to the UART-USB bridge.

[0074] The microcontroller MCU can determine whether the BMC is hung by feeding the dog signal; when the control unit CTLUNIT determines that the BMC is hung, the CS1 signal is transparently transmitted to the UART unit to enable the backup BIOS serial port conversion function, so that the BIOS system serial port can still be used normally after the BMC is hung.

[0075] In this embodiment, the microcontroller MCU further includes a first buffer, a second buffer, a third buffer, a first memory and a second memory;

[0076] The dog feeding signal interface WDT and the second control interface CS1 are connected to the control unit CTLUNIT;

[0077] The control unit CTLUNIT is connected to the UART-USB bridge via a first internal forwarding interface UART_MCU;

[0078] The control unit CTLUNIT is connected to the UART-USB bridge via the second internal forwarding interface UARTi_0;

[0079] The control unit CTLUNIT is connected to the first memory through the first buffer, and the first memory is connected to the UART-USB bridge through the third internal forwarding interface UARTi_1; wherein the third internal forwarding interface UARTi_1 is connected to the input data pin TX0 of the first buffer, the control unit CTLUNIT is connected to the enable pin EN0 of the first buffer, and the output data pin of the first buffer is connected to the UART-USB bridge;

[0080] The control unit CTLUNIT is connected to the UART transfer unit through the third control interface CS, and the control unit CTLUNIT and the UART transfer unit are connected to the UART-USB bridge through the fourth internal forwarding interface UARTi_2;

[0081] The control unit CTLUNIT is connected to the second memory through the second buffer, the UART conversion unit is connected to the second memory through the third buffer, and the second memory is connected to the UART-USB bridge through the fifth internal forwarding interface UARTi_3; wherein the fourth internal forwarding interface UARTi_2 is connected to the input data pin TX1 of the second buffer, the control unit CTLUNIT is connected to the enable pin EN1 of the second buffer, the UART conversion unit is connected to the input data pin TX2 and the enable pin EN2 of the third buffer, and the output data pin TX3 of the second buffer is connected to the third memory in parallel with the output data pin TX3 of the third buffer;

[0082] The UART-USB bridge is connected to the interface connector via a universal serial bus USB, and the serial port connector includes a micro universal serial bus (Micro USB) connector.

[0083] The microcontroller MCU, such as the STM8A chip, can support 2MB Flash storage space. The first buffer, the second buffer and the third buffer are used to realize the queue storage of interface data, and the first memory and the second memory are first-in-first-out (FIFO) storage units.

[0084] The log temporary storage function is designed based on the FIFO storage rule. Both the BMC serial port and BIOS serial port logs are stored inside the MCU. FIFO log storage rule:

[0085] A. CTL UNIT and Trans to UART units can determine whether the serial port log sent by the server is the starting string while forwarding the UART signal. Based on the starting string, it can be determined that the server has just been powered on and the BMC serial port log has just been sent; or it can be determined that the server has just been powered on and the BIOS serial port has just been sent.

[0086] B. Similarly, by judging the BMC initialization completion log end string or the BIOS Post completion string, it can be judged that a boot is completed and the BIOS serial port log storage is completed; or the BMC initialization is completed and the BMC serial port log storage is completed. Close the FIFO storage unit entrance and keep the data unchanged.

[0087] C. When the server is restarted, powered off, or the BMC is restarted, the starting string will be detected again, and steps A and B will be repeated to ensure that the FIFO storage unit can store the BMC serial port and BIOS serial port logs after the server is most recently started or powered on. Once a problem occurs, the relevant logs can be downloaded through the MCU's internal UARTi_1 / UARTi_3 to assist in locating the problem.

[0088] like Figure 5 As shown, in one embodiment, a debugging method for a server serial port structure is provided, which includes:

[0089] Step S1, detecting whether serial port debugging is performed through the interface connector;

[0090] Step S2, in response to the interface connector receiving a signal for serial port debugging, identifying the interface to be debugged;

[0091] Step S3: Establishing link connectivity according to the interface being debugged, and debugging the interface being debugged.

[0092] Specifically, the link connection is established according to the debugged interface, and the debugging of the debugged interface includes:

[0093] When the interface being debugged is a baseboard management controller interface, the interface connector communicates with the control unit to debug the baseboard management controller interface through the second internal forwarding interface, the control unit forms a first serial port log with the debugging feedback result of debugging the baseboard management controller interface and stores it in the first memory through the first buffer in a first-in-first-out manner, and the UART-USB bridge receives the first serial port log through the third internal forwarding interface;

[0094] When the interface being debugged is a basic input / output system interface, the interface connector is connected to the control unit through the fourth internal forwarding interface to debug the basic input / output system interface, the control unit forms a second serial port log with the debugging feedback result of debugging the basic input / output system interface and stores it in the second memory in a first-in-first-out manner through the second buffer, and the UART-USB bridge receives the second serial port log through the fifth internal forwarding interface.

[0095] It is understandable that the first serial port log is a BMC serial port log, and the second serial port log is a BIOS serial port log. Based on the above server serial port structure, when the debugged interface is a basic input and output system interface, the second serial port log can also be stored in the first memory.

[0096] Specifically, in the debugging method of the server serial port structure, the link connection is established according to the debugged interface, and the debugging of the debugged interface further includes:

[0097] When the interface being debugged is the basic input and output system interface UART1, the interface connector is connected to the control unit CTLUNIT through the second internal forwarding interface UARTi_0 to debug the basic input and output system interface UART1, the control unit CTLUNIT forms a second serial port log with the debugging feedback result of debugging the basic input and output system interface UART1 and stores it in the first memory through the first buffer in a first-in-first-out manner, and the UART-USB bridge receives the second serial port log through the third internal forwarding interface UARTi_1;

[0098] When the interface being debugged is an enhanced serial peripheral interface eSPI or a communication bus LPC, the interface connector is connected to the UART unit through the fourth internal forwarding interface UARTi_2 to debug the enhanced serial peripheral interface eSPI or the communication bus LPC, the UART unit stores the debugging feedback result of debugging the enhanced serial peripheral interface eSPI or the communication bus LPC in the second memory in a first-in-first-out manner through the third buffer to form a third serial port log, and the UART-USB bridge receives the third serial port log through the fifth internal forwarding interface UARTi_3.

[0099] UART interface, full name of Universal Asynchronous Receiver and Transmitter, is a commonly used serial communication interface. It is mainly used for serial transmission of data and adopts full-duplex transmission mode, which means it can receive and send data at the same time.

[0100] Another key point in the MCU code is to design UART_MCU and connect it to the outside through the USB interface. Using this UART_MCU interface, you can send control commands to the MCU to download temporary logs. For example, if you send the command FIFO_RD, the control unit CTLUNIT will open the corresponding FIFO storage unit entrance and fill it with data, so that relevant logs can be received and stored through UARTi_1 / UARTi_3.

[0101] In this embodiment, the debugging method of the server serial port structure also includes:

[0102] The microcontroller determines whether the baseboard management controller is hung through the dog feeding signal received by the control unit;

[0103] When the control unit determines that the baseboard management controller is hung, the second control interface signal received by the control unit is transparently transmitted to the UART converter unit, so that the UART converter unit performs serial port conversion so that the basic input and output system interface can be used normally.

[0104] The microcontroller MCU can determine whether the BMC is hung by feeding the dog signal; when the control unit CTL UNIT determines that the BMC is hung, the CS1 signal is transparently transmitted to the UART unit to enable the backup BIOS serial port conversion function, so that the BIOS system serial port can still be used normally after the BMC is hung.

[0105] In this embodiment, the debugging method of the server serial port structure also includes:

[0106] When the first memory receives the first serial port log, the first memory determines whether there is a start string or an end string in the first serial port log; when there is a start string, it is determined that the server has just been powered on or turned on, and the first serial port log is sent for the first time; when there is an end string, it is determined that the baseboard management controller is initialized and the first serial port log is stored, and the first memory entry is closed;

[0107] When the second memory receives the second serial port log, the second memory determines whether there is a start string or an end string in the second serial port log; when the start string exists, it is determined that the server has just been powered on or turned on, and the second serial port log is sent for the first time; when the end string exists, it is determined that the basic input and output system initialization is completed, the second serial port log is stored, and the second memory entry is closed;

[0108] When the server is restarted, powered off, or the baseboard management controller is restarted, the first memory is again detected to see whether there is a starting string in the serial port log received by the first memory, and the second serial port log received by the second memory is again detected to see whether there is a starting string;

[0109] When the microcontroller receives a request to download the first serial port log or the second serial port log, the microcontroller receives the first serial port log through the third internal forwarding interface and encrypts the first serial port log, or receives the second serial port log through the fifth internal forwarding interface and encrypts the second serial port log.

[0110] The encryption function of the serial port log can also be implemented through UART_MCU. You can design a password or a specific command. Only by entering the correct command can the BMC serial port or BIOS serial port be opened. You can open them at the same time or open one at random. Or through the output log encryption method, the MCU will encrypt the output data to a certain extent, and only by using the appropriate decryption tool can the corresponding log be viewed.

[0111] According to the method, the problems existing in the current serial port design can be effectively solved, the validity of the BIOS serial port can still be guaranteed after the BMC hangs, the problems encountered by some customers can be solved, and the product experience in the market can be improved. At the same time, in response to the low-probability problems that are common in the life cycle of server products, by realizing the storage and download function of the most recent complete serial port log after each boot or power-on, the efficiency of serial port log collection when encountering similar problems is greatly improved, the efficiency of problem location in product development and after-sales maintenance is improved, and the design quality of the product is improved from different scenarios such as test verification and market application, which helps to enhance the competitiveness of the company's server products.

[0112] In the above-mentioned debugging method of the server serial port structure, a microcontroller is introduced to connect the baseboard management controller and the integrated south bridge / central processing unit, thereby avoiding the problem that the basic input and output system BIOS serial port cannot be obtained when relying on the baseboard management controller BMC, and the problem that the serial port log is not easy to capture due to low-probability bugs. The baseboard management controller interface and the basic input and output system interface are connected to the microcontroller in parallel through the baseboard management controller, and the serial port logs of the baseboard management controller (BMC) and the basic input and output system (BIOS) can be obtained at the same time. There is no need to reproduce again to capture the effective serial port log, which improves the positioning time efficiency, and increases the number of debugging serial ports, realizing the storage and download function of the most recent complete serial port log after each startup or power-on, which greatly improves the efficiency of serial port log collection and improves the efficiency of problem positioning during product development and after-sales maintenance.

[0113] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0114] Detect whether serial port debugging is performed through the interface connector;

[0115] In response to the interface connector receiving a signal for performing serial port debugging, identifying an interface to be debugged;

[0116] When the interface being debugged is the baseboard management controller interface UART5, the interface connector is connected to the control unit CTLUNIT through the second internal forwarding interface UARTi_0 to debug the baseboard management controller interface UART5, the control unit CTLUNIT forms a first serial port log with the debugging feedback result of debugging the baseboard management controller interface UART5 and stores it in the first memory through the first buffer in a first-in-first-out manner, and the UART-USB bridge receives the first serial port log through the third internal forwarding interface UARTi_1;

[0117] When the interface being debugged is the basic input and output system interface UART1, the interface connector is connected to the control unit CTLUNIT through the fourth internal forwarding interface UARTi_2 to debug the basic input and output system interface UART1, the control unit CTLUNIT forms a second serial port log with the debugging feedback result of debugging the basic input and output system interface UART1 and stores it in the second memory in a first-in-first-out manner through the second buffer, and the UART-USB bridge receives the second serial port log through the fifth internal forwarding interface UARTi_3.

[0118] In one embodiment, the computer program further implements the following steps when executed by a processor:

[0119] The microcontroller MCU determines whether the baseboard management controller BMC is hung through the dog feeding signal received by the control unit CTL UNIT;

[0120] When the control unit CTL UNIT determines that the baseboard management controller BMC is hung, the second control interface CS1 signal received by the control unit CTL UNIT is transparently transmitted to the UART converter unit, so that the UART converter unit performs serial port conversion so that the basic input and output system interface UART1 can be used normally.

[0121] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0122] When the first memory receives the first serial port log, the first memory determines whether there is a start string or an end string in the first serial port log; when there is a start string, it is determined that the server has just been powered on or turned on, and the first serial port log is sent for the first time; when there is an end string, it is determined that the baseboard management controller BMC is initialized and the first serial port log is stored, and the first memory entry is closed;

[0123] When the second memory receives the second serial port log, the second memory determines whether there is a start string or an end string in the second serial port log; when the start string exists, it is determined that the server has just been powered on or turned on, and the second serial port log is sent for the first time; when the end string exists, it is determined that the basic input and output system BIOS initialization is completed, the second serial port log is stored, and the second memory entry is closed;

[0124] When the server is restarted, powered off, or the baseboard management controller BMC is restarted, the first serial port log received by the first memory is detected again to determine whether there is a starting string, and the second serial port log received by the second memory is detected again to determine whether there is a starting string;

[0125] When the microcontroller MCU receives the download of the first serial port log or the second serial port log, the first serial port log is received through the third internal forwarding interface UARTi_1 and the first serial port log is encrypted, or the second serial port log is received through the fifth internal forwarding interface UARTi_3 and the second serial port log is encrypted.

[0126] For the specific limitations on the steps implemented when the computer program is executed by the processor, please refer to the limitations on the debugging method for the server serial port structure above, which will not be repeated here.

[0127] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 6 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store debugging data of the server serial port structure. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a debugging method for the server serial port structure is implemented.

[0128] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0129] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:

[0130] Detect whether serial port debugging is performed through the interface connector;

[0131] In response to the interface connector receiving a signal for performing serial port debugging, identifying an interface to be debugged;

[0132] When the interface being debugged is the baseboard management controller interface UART5, the interface connector is connected to the control unit CTLUNIT through the second internal forwarding interface UARTi_0 to debug the baseboard management controller interface UART5, the control unit CTLUNIT forms a first serial port log with the debugging feedback result of debugging the baseboard management controller interface UART5 and stores it in the first memory through the first buffer in a first-in-first-out manner, and the UART-USB bridge receives the first serial port log through the third internal forwarding interface UARTi_1;

[0133] When the interface being debugged is the basic input and output system interface UART1, the interface connector is connected to the control unit CTLUNIT through the fourth internal forwarding interface UARTi_2 to debug the basic input and output system interface UART1, the control unit CTLUNIT forms a second serial port log with the debugging feedback result of debugging the basic input and output system interface UART1 and stores it in the second memory in a first-in-first-out manner through the second buffer, and the UART-USB bridge receives the second serial port log through the fifth internal forwarding interface UARTi_3.

[0134] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0135] The microcontroller MCU determines whether the baseboard management controller BMC is hung through the dog feeding signal received by the control unit CTL UNIT;

[0136] When the control unit CTL UNIT determines that the baseboard management controller BMC is hung, the second control interface CS1 signal received by the control unit CTL UNIT is transparently transmitted to the UART converter unit, so that the UART converter unit performs serial port conversion so that the basic input and output system interface UART1 can be used normally.

[0137] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0138] When the first memory receives the first serial port log, the first memory determines whether there is a start string or an end string in the first serial port log; when there is a start string, it is determined that the server has just been powered on or turned on, and the first serial port log is sent for the first time; when there is an end string, it is determined that the baseboard management controller BMC is initialized and the first serial port log is stored, and the first memory entry is closed;

[0139] When the second memory receives the second serial port log, the second memory determines whether there is a start string or an end string in the second serial port log; when the start string exists, it is determined that the server has just been powered on or turned on, and the second serial port log is sent for the first time; when the end string exists, it is determined that the basic input and output system BIOS initialization is completed, the second serial port log is stored, and the second memory entry is closed;

[0140] When the server is restarted, powered off, or the baseboard management controller BMC is restarted, the first serial port log received by the first memory is detected again to determine whether there is a starting string, and the second serial port log received by the second memory is detected again to determine whether there is a starting string;

[0141] When the microcontroller MCU receives the download of the first serial port log or the second serial port log, the first serial port log is received through the third internal forwarding interface UARTi_1 and the first serial port log is encrypted, or the second serial port log is received through the fifth internal forwarding interface UARTi_3 and the second serial port log is encrypted.

[0142] For the specific limitations on the steps implemented when the processor executes the computer program, please refer to the limitations on the debugging method for the server serial port structure in the above text, which will not be repeated here.

[0143] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0144] Detect whether serial port debugging is performed through the interface connector;

[0145] In response to the interface connector receiving a signal for performing serial port debugging, identifying an interface to be debugged;

[0146] When the interface being debugged is the baseboard management controller interface UART5, the interface connector is connected to the control unit CTLUNIT through the second internal forwarding interface UARTi_0 to debug the baseboard management controller interface UART5, the control unit CTLUNIT forms a first serial port log with the debugging feedback result of debugging the baseboard management controller interface UART5 and stores it in the first memory through the first buffer in a first-in-first-out manner, and the UART-USB bridge receives the first serial port log through the third internal forwarding interface UARTi_1;

[0147] When the interface being debugged is the basic input and output system interface UART1, the interface connector is connected to the control unit CTLUNIT through the fourth internal forwarding interface UARTi_2 to debug the basic input and output system interface UART1, the control unit CTLUNIT forms a second serial port log with the debugging feedback result of debugging the basic input and output system interface UART1 and stores it in the second memory in a first-in-first-out manner through the second buffer, and the UART-USB bridge receives the second serial port log through the fifth internal forwarding interface UARTi_3.

[0148] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0149] The microcontroller MCU determines whether the baseboard management controller BMC is hung through the dog feeding signal received by the control unit CTL UNIT;

[0150] When the control unit CTL UNIT determines that the baseboard management controller BMC is hung, the second control interface CS1 signal received by the control unit CTL UNIT is transparently transmitted to the UART converter unit, so that the UART converter unit performs serial port conversion so that the basic input and output system interface UART1 can be used normally.

[0151] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0152] When the first memory receives the first serial port log, the first memory determines whether there is a start string or an end string in the first serial port log; when there is a start string, it is determined that the server has just been powered on or turned on, and the first serial port log is sent for the first time; when there is an end string, it is determined that the baseboard management controller BMC is initialized and the first serial port log is stored, and the first memory entry is closed;

[0153] When the second memory receives the second serial port log, the second memory determines whether there is a start string or an end string in the second serial port log; when the start string exists, it is determined that the server has just been powered on or turned on, and the second serial port log is sent for the first time; when the end string exists, it is determined that the basic input and output system BIOS initialization is completed, the second serial port log is stored, and the second memory entry is closed;

[0154] When the server is restarted, powered off, or the baseboard management controller BMC is restarted, the first serial port log received by the first memory is detected again to determine whether there is a starting string, and the second serial port log received by the second memory is detected again to determine whether there is a starting string;

[0155] When the microcontroller MCU receives the download of the first serial port log or the second serial port log, the first serial port log is received through the third internal forwarding interface UARTi_1 and the first serial port log is encrypted, or the second serial port log is received through the fifth internal forwarding interface UARTi_3 and the second serial port log is encrypted.

[0156] For the specific limitations on the steps implemented when the computer program is executed by the processor, please refer to the limitations on the debugging method for the server serial port structure above, which will not be repeated here.

[0157] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0158] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may also include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A server serial port structure, characterized in that: Includes integrated south bridge / CPU, complex programmable logic device, microcontroller, baseboard management controller and interface connector; The integrated south bridge / central processing unit is connected to the complex programmable logic device, the microcontroller and the baseboard management controller, the baseboard management controller is connected to the microcontroller, and the microcontroller is connected to the interface connector; The baseboard management controller and the microcontroller are connected to each other via a basic input and output system interface and a baseboard management controller interface.

2. The server serial port structure according to claim 1, characterized in that: The integrated south bridge / central processing unit is connected to the complex programmable logic device via a first control interface; the integrated south bridge / central processing unit is connected to the microcontroller and the baseboard management controller via a second control interface; the integrated south bridge / central processing unit is interconnected with the complex programmable logic device, the microcontroller and the baseboard management controller via an enhanced serial peripheral interface or a communication bus; the microcontroller is connected to the serial port connector via a universal serial bus.

3. The server serial port structure according to claim 2, characterized in that: The baseboard management controller is also connected to the microcontroller through a dog feeding signal interface; the microcontroller is used to determine whether the baseboard management controller is hung through the dog feeding signal.

4. The server serial port structure according to claim 3, characterized in that: The microcontroller includes a control unit, a UART conversion unit and a UART-USB bridge; The basic input-output system interface and the baseboard management controller interface are both asynchronous transmission interfaces, used for converting parallel data and serial data in serial communication; the basic input-output system interface and the baseboard management controller interface are connected to the control unit; The enhanced serial peripheral interface or the communication bus is connected to the UART conversion unit, and the control unit and the UART conversion unit are connected to the UART-USB bridge.

5. The server serial port structure according to claim 4, characterized in that: The microcontroller further includes a first buffer, a second buffer, a third buffer, a first memory, and a second memory; The dog feeding signal interface and the second control interface are connected to the control unit; The control unit is connected to the UART-USB bridge via a first internal forwarding interface UART_MCU; The control unit is connected to the UART-USB bridge via a second internal forwarding interface; The control unit is connected to the first memory through the first buffer, and the first memory is connected to the UART-USB bridge through a third internal forwarding interface; wherein the third internal forwarding interface is connected to an input data pin of the first buffer, the control unit is connected to an enable pin of the first buffer, and an output data pin of the first buffer is connected to the UART-USB bridge; The control unit is connected to the UART converter unit via a third control interface, and the control unit and the UART converter unit are connected to the UART-USB bridge via a fourth internal forwarding interface; The control unit is connected to the second memory through the second buffer, the UART conversion unit is connected to the second memory through the third buffer, and the second memory is connected to the UART-USB bridge through the fifth internal forwarding interface; wherein the fourth internal forwarding interface is connected to the input data pin of the second buffer, the control unit is connected to the enable pin of the second buffer, the UART conversion unit is connected to the input data pin and the enable pin of the third buffer, and the output data pin of the second buffer is connected to the third memory in parallel with the output data pin of the third buffer; The UART-USB bridge is connected to the interface connector via a universal serial bus, and the serial port connector includes a micro universal serial bus connector.

6. A method for debugging a server serial port structure according to claim 5, characterized in that: include: Detect whether serial port debugging is performed through the interface connector; In response to the interface connector receiving a signal for performing serial port debugging, identifying an interface to be debugged; When the interface being debugged is a baseboard management controller interface, the interface connector communicates with the control unit to debug the baseboard management controller interface through the second internal forwarding interface, the control unit forms a first serial port log with the debugging feedback result of debugging the baseboard management controller interface and stores it in the first memory through the first buffer in a first-in-first-out manner, and the UART-USB bridge receives the first serial port log through the third internal forwarding interface; When the interface being debugged is a basic input / output system interface, the interface connector is connected to the control unit through the fourth internal forwarding interface to debug the basic input / output system interface, the control unit forms a second serial port log with the debugging feedback result of debugging the basic input / output system interface and stores it in the second memory in a first-in-first-out manner through the second buffer, and the UART-USB bridge receives the second serial port log through the fifth internal forwarding interface.

7. The method for debugging the server serial port structure according to claim 6, characterized in that: Also includes: The microcontroller determines whether the baseboard management controller is hung through the dog feeding signal received by the control unit; When the control unit determines that the baseboard management controller is hung, the second control interface signal received by the control unit is transparently transmitted to the UART converter unit, so that the UART converter unit performs serial port conversion so that the basic input and output system interface can be used normally.

8. The method for debugging the server serial port structure according to claim 6, characterized in that: Also includes: When the first memory receives the first serial port log, the first memory determines whether there is a start string or an end string in the first serial port log; when there is a start string, it is determined that the server has just been powered on or turned on, and the first serial port log is sent for the first time; when there is an end string, it is determined that the baseboard management controller is initialized and the first serial port log is stored, and the first memory entry is closed; When the second memory receives the second serial port log, the second memory determines whether there is a start string or an end string in the second serial port log; when the start string exists, it is determined that the server has just been powered on or turned on, and the second serial port log is sent for the first time; when the end string exists, it is determined that the basic input and output system initialization is completed, the second serial port log is stored, and the second memory entry is closed; When the server is restarted, powered off, or the baseboard management controller is restarted, the first memory is again detected to see whether there is a starting string in the serial port log received by the first memory, and the second serial port log received by the second memory is again detected to see whether there is a starting string; When the microcontroller receives a request to download the first serial port log or the second serial port log, the microcontroller receives the first serial port log through the third internal forwarding interface and encrypts the first serial port log, or receives the second serial port log through the fifth internal forwarding interface and encrypts the second serial port log.

9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 6 to 8 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 6 to 8 are implemented.

Citation Information

Cited By

  • Server

    CN120179584A