Server system and electronic device
By introducing the first and second interfaces into the server system and co-designing them with programmable controllers and analog switches, remote debugging and direct debugging were achieved, solving the problem of low debugging efficiency of server components and improving debugging efficiency and maintainability.
Patent Information
- Application Number
- CN202511559379.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-29
- Publication Date
- 2026-02-17
- Estimated Expiration
- 2045-10-29
AI Technical Summary
The debugging efficiency of various server components is low, requiring multiple adapter cables to adapt to different types of debugging interfaces. During maintenance, power must be cut off, the rack removed, and the cover opened for debugging, resulting in low efficiency.
It adopts a first and second interface in collaboration with programmable controllers and analog switches, and realizes remote debugging through the board management controller. It can directly initiate component debugging without powering off, removing the rack and opening the cover. It uses RJ45 and Type_C interfaces to adapt to remote debugging.
It improves the debugging efficiency of various server components, simplifies the debugging process, reduces complexity, and avoids the difficulty of fault location caused by opening the cover.
Smart Images

Figure CN121029688B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computer hardware, and particularly relates to a server system and an electronic device. BACKGROUND
[0002] A server is composed of multiple components, and the debugging interfaces of the components are various. When the multiple components of the server are debugged, multiple adapter cables need to be provided to adapt to the debugging interfaces of different forms.
[0003] In the maintenance stage after the server is put into operation, if a component fails, the server needs to be powered off and dismounted, and then the cover is opened to debug the components of the server through multiple adapter cables, so that the debugging efficiency of the components of the server is low. SUMMARY
[0004] The present application provides a server system and an electronic device to at least solve the problem of low debugging efficiency of the components of the server in the related art.
[0005] The present application provides a server system, comprising a first interface, a second interface, a programmable control device, an analog switch, a baseboard management controller, and multiple components, wherein:
[0006] The first interface is connected with the baseboard management controller, the baseboard management controller is further connected with the programmable control device, the analog switch is connected with the programmable control device and the multiple components in selection, and the second interface is connected with the programmable control device.
[0007] The baseboard management controller is configured to send a first instruction transmitted through the first interface to the programmable control device, and the first instruction is configured to indicate a component to be debugged.
[0008] The programmable control device is configured to control the analog switch to connect the baseboard management controller and the component to be debugged indicated by the first instruction based on the first instruction.
[0009] The programmable control device is further configured to receive a second instruction transmitted through the second interface, and control the analog switch to connect the second interface and the component to be debugged indicated by the second instruction based on the second instruction.
[0010] The present application further provides an electronic device comprising the server system of any one of the above.
[0011] According to the present application, the remote debugging of the components through the first interface can be realized by relying on the baseboard management controller, and the debugging of the components can be directly initiated through the second interface, without the operation of powering off, dismounting and opening the cover of the server, so that the debugging of the components of the server can be realized, and the debugging efficiency of the components of the server is improved. BRIEF DESCRIPTION OF DRAWINGS
[0012] In order to more clearly illustrate the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiments. Obviously, the drawings described below are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative effort on the basis of these drawings.
[0013] Figure 1 Structure diagram of a server system provided by an embodiment of the present application Figure 1 ;
[0014] Figure 2 Structure diagram of a server system provided by an embodiment of the present application Figure 2 ;
[0015] Figure 3 Structure diagram of a server system provided by an embodiment of the present application Figure 3 ;
[0016] Figure 4 Structure diagram of a server system provided by an embodiment of the present application Figure 4 .
[0017] Among them, the above drawings include the following reference signs:
[0018] 10-first interface; 20-second interface; 30-programmable control device; 40-analog switch; 50-substrate management controller; 60-component;
[0019] 501-first serial port; 502-second serial port; 503-third serial port;
[0020] 401-control end; 402-gating end. DETAILED DESCRIPTION
[0021] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, other embodiments obtained by those skilled in the art without creative effort are within the protection scope of the present application.
[0022] It should be noted that the terms "center", "longitudinal", "transverse", "length", "width", "thickness", "upper", "lower", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", "axial", "radial", "circumferential" and the like indicate the orientation or positional relationship based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the devices or elements referred to must have a particular orientation, be constructed and operated in a particular orientation, and therefore cannot be understood as limiting the present application. The terms "mounting", "connecting", "connecting" should be broadly understood, for example, it can be fixed connection, or detachable connection, or integral connection; it can be mechanical connection, or electrical connection; it can be directly connected, or indirectly connected through intermediate medium, or the communication between two elements. The terms "parallel", "perpendicular", "equal" include the described case and the approximate case of the described case, and the approximate case is within the acceptable deviation range, wherein the acceptable deviation range is determined by the person skilled in the art considering the measurement being discussed and the error related to the measurement of the specific quantity (i.e. the limitation of the measurement system). For example, "parallel" includes absolute parallel and approximate parallel, and the acceptable deviation range of approximate parallel can be, for example, within 5°; "perpendicular" includes absolute perpendicular and approximate perpendicular, and the acceptable deviation range of approximate perpendicular can also be, for example, within 5°. "Equal" includes absolute equality and approximate equality, and the acceptable deviation range of approximate equality can be, for example, that the difference between the two equalities is less than or equal to 5% of either. For the person skilled in the art, the specific meaning of the above terms in the present application can be understood in specific cases.
[0023] The server is composed of multiple components, and the debug interfaces (debug interfaces such as different pitch pin headers, micro_usb, RS232, RS485, USB interfaces, etc.) of each component are in various forms. When debugging multiple components of the server, multiple adapter cables need to be equipped to adapt to different forms of debug interfaces.
[0024] In the maintenance stage after the server goes online, if a component fails, the server needs to be powered off and taken off the shelf, and the cover is opened to debug each component of the server through multiple adapter cables, so that the debugging efficiency of each component of the server is low.
[0025] In view of this, the present application proposes a server system, which comprises a first interface, a second interface, a programmable control device, an analog switch, a baseboard management controller, and a plurality of components, wherein: the first interface is connected with the baseboard management controller, the baseboard management controller is further connected with the programmable control device, the analog switch is connected with the programmable control device and the plurality of components in turn, and the second interface is connected with the programmable control device; the baseboard management controller is configured to send a first instruction transmitted through the first interface to the programmable control device, and the first instruction is configured to indicate a component to be debugged; the programmable control device is configured to control the analog switch to connect the baseboard management controller with the component to be debugged indicated by the first instruction based on the first instruction; and the programmable control device is further configured to receive a second instruction transmitted through the second interface, and control the analog switch to connect the second interface with the component to be debugged indicated by the second instruction based on the second instruction. In the above server system, through the cooperative design of the double interfaces (the first interface and the second interface) and the programmable control device and the analog switch, the remote debugging of the components by the first interface can be realized with the aid of the baseboard management controller, and the debugging of the components by the second interface can be directly initiated, so that the debugging of the components of the server can be realized without the power-off, off-shelf, and opening-cover operation of the server in all stages of the server, and the debugging efficiency of the components of the server is improved.
[0026] In order for those skilled in the art to better understand the present application, the present application will be further described in detail below with reference to the drawings and specific embodiments.
[0027] Figure 1 Structure diagram of a server system provided by an embodiment of the present application Figure 1 As shown in Figure 1 the server system comprises: a first interface 10, a second interface 20, a programmable control device 30, an analog switch 40, a baseboard management controller (BMC) 50, and a plurality of components 60, wherein:
[0028] The first interface 10 is connected with the baseboard management controller 50, the baseboard management controller 50 is further connected with the programmable control device 30, the analog switch 40 is connected with the programmable control device 30 and the plurality of components 60 in turn, and the second interface 20 is connected with the programmable control device 30.
[0029] The baseboard management controller 50 is configured to send a first instruction transmitted through the first interface 10 to the programmable control device 30, and the first instruction is configured to indicate a component 60 to be debugged.
[0030] The programmable control device 30 is configured to control the analog switch 40 to connect the baseboard management controller 50 with the component 60 to be debugged indicated by the first instruction based on the first instruction.
[0031] The programmable control device 30 controls the analog switch 40 to connect the substrate management controller 50 and the component 60 to be debugged indicated by the first instruction based on the first instruction.
[0032] The programmable control device 30 generates a corresponding control signal based on the first instruction, where the control signal indicates that the programmable control device 30 is connected to the component 60 to be debugged indicated by the first instruction, and the control signal is sent to the analog switch 40. After receiving the control signal, the analog switch 40 triggers an internal path switching mechanism to turn on the connection path connected to the programmable control device 30 and the path connected to the component 60 to be debugged. At this time, the path connected to the substrate management controller 50 and the path connected to the programmable control device 30 are turned on, thereby forming a first connection path of the first interface 10 and the component 60 to be debugged. The first connection path sequentially passes through the first interface 10, the substrate management controller 50, the programmable control device 30, the analog switch 40, and the component 60 to be debugged, ensuring that the debug data transmitted by the first interface 10 can be accurately sent to the component 60 to be debugged through the first connection path, and realizing remote debugging of the component 60 to be debugged.
[0033] The programmable control device 30 is also configured to receive a second instruction transmitted through the second interface 20, and control the analog switch 40 to connect the second interface 20 and the component 60 to be debugged indicated by the second instruction based on the second instruction.
[0034] Specifically, the programmable control device 30 controls the analog switch 40 to connect the second interface 20 and the component 60 to be debugged indicated by the second instruction, which can be understood as controlling the analog switch 40 to connect the connection path of the second interface 20 and the component 60 to be debugged. The connection path sequentially passes through the second interface 20, the programmable control device 30, the analog switch 40, and the component 60 to be debugged.
[0035] The first interface 10 can be a registered jack 45 (RJ45) interface located on the panel of the server.
[0036] In the embodiments of the present application, the RJ45 interface as a commonly used Ethernet interface has the characteristics of long transmission distance (can support hundreds of meters of wired transmission) and strong anti-interference capability, and can adapt to the network environment in most remote debugging scenarios. The debugging device can establish a stable connection with the server through a network cable, and remote debugging can be initiated without close contact with the server, thereby improving the operation convenience of the server in the maintenance stage.
[0037] The second interface 20 can be a Type_C interface and is located on a panel of the server.
[0038] In the embodiments of the present application, the Type_C interface meets the requirement of high-speed transmission of debugging data in the debugging process, and is suitable for most debugging devices (such as a notebook computer and a special debugger) with a Type_C interface on the market, thereby reducing the dependence on special cables in the development stage and reducing the complexity of debugging of components of the server.
[0039] The programmable control device 30 controls the analog switch 40 to connect the second interface 20 and the component 60 to be debugged indicated by the second instruction based on the second instruction.
[0040] The programmable control device 30 generates a corresponding control signal based on the second instruction, and at this time, the control signal indicates that the programmable control device 30 is connected to the component 60 to be debugged indicated by the second instruction, and the control signal is sent to the analog switch 40. After receiving the control signal, the analog switch 40 triggers an internal path switching mechanism to switch on the connection path connected between the programmable control device 30 and the analog switch 40 and the path connected between the analog switch 40 and the component 60 to be debugged. At this time, the path connected between the second interface 20 and the programmable control device 30 and the path connected between the programmable control device 30 and the analog switch 40 are switched on, so that a second connection path of the second interface 20 and the component 60 to be debugged can be formed. The second connection path sequentially passes through the second interface 20, the programmable control device 30, the analog switch 40 and the component 60 to be debugged, so that the debugging data transmitted by the second interface 20 can be accurately transmitted to the component 60 to be debugged through the second connection path, and remote debugging of the component 60 to be debugged is realized.
[0041] In some embodiments, the first interface 10 is connected to the baseboard management controller 50, which can be a connection between the first interface 10 and the baseboard management controller 50 through a physical layer (PHY). Specifically, the PHY is connected to the first interface 10 and the baseboard management controller 50, respectively. The PHY is used to transmit the first instruction transmitted through the first interface to the baseboard management controller after processing, and also can transmit the related data of the baseboard management controller through the first interface.
[0042] In some embodiments, the components 60 can be various hardware components in the server system, such as a central processing unit (CPU), a graphics processing unit (GPU), a network interface card (NIC), a redundant array of independent disks (Raid) card, a hard disk, a memory, and the like.
[0043] In some embodiments, the analog switch 40 can be an electronic device capable of switching different paths by instructions.
[0044] In some embodiments, the programmable control device 30 is, for example, a field programmable gate array (FPGA), a complex programmable logic device (CPLD), or a microcontroller unit (MCU), and the like.
[0045] In some embodiments, the programmable control device 30 can be determined based on the server scenario. Among them, the FPGA has high parallel processing capability and flexible logic reconfiguration characteristics, which is suitable for debugging server scenarios with large data volume and complex path switching logic; the CPLD has the advantages of high integration, low power consumption and strong stability, and is suitable for server scenarios with strict control of cost and power consumption; the MCU has low cost and simple programming, and can meet the server scenarios with simple path switching logic and basic debugging requirements.
[0046] The analog switch 40 is connected to the programmable control device 30 and the plurality of components 60, respectively, and can be understood as the analog switch 40 can realize the gating connection between the programmable control device 30 and any component 60.
[0047] In the embodiment of the present application, the server system comprises a first interface, a second interface, a programmable control device, an analog switch, a baseboard management controller and a plurality of components, wherein: the first interface is connected with the baseboard management controller, the baseboard management controller is further connected with the programmable control device, the analog switch is connected with the programmable control device and the plurality of components respectively, and the second interface is connected with the programmable control device; the baseboard management controller is configured to send a first instruction transmitted through the first interface to the programmable control device, and the first instruction is configured to indicate a component to be debugged; the programmable control device is configured to control the analog switch to connect the baseboard management controller with the component to be debugged indicated by the first instruction based on the first instruction; and the programmable control device is further configured to receive a second instruction transmitted through the second interface, and control the analog switch to connect the second interface with the component to be debugged indicated by the second instruction based on the second instruction. In the above server system, through the cooperative design of the double interfaces (the first interface and the second interface) and the programmable control device and the analog switch, the remote debugging of the components by the baseboard management controller through the first interface can be realized, and the debugging of the components through the second interface can be directly initiated, so that the debugging of the components of the server can be realized without the power-off, dismounting and opening of the server in all stages of the server, and thus the debugging efficiency of the components of the server is improved.
[0048] Specifically, in the development stage of the server, only one debugging cable needs to be connected with the second interface, and the debugging of the components is directly initiated through the second interface, so that the operation is simple and convenient, and the debugging efficiency of the components of the server in the development stage of the server is improved. In the maintenance stage of the server, the remote debugging of the components based on the baseboard management controller through the first interface can be realized, and when the baseboard management controller is abnormal, the debugging of the components through the second interface can be realized, so that the debugging of the components of the server can be realized without the power-off, dismounting and opening of the server when the baseboard management controller is abnormal, and thus the debugging efficiency of the components of the server is improved. In addition, without the opening operation of the server, the problem that the opening causes the damage of the fault environment and thus leads to the positioning difficulty of the fault is avoided.
[0049] On the basis of the above Figure 1 The connection between the baseboard management controller 50 and the programmable control device 30 is further described below. Figure 2
[0050] Figure 2 The structure of a server system provided in the embodiment of the present application is shown in Figure 2 As shown in Figure 2 The baseboard management controller 50 comprises a first serial port 501 and a second serial port 502, wherein:
[0051] The first serial port 501 and the second serial port 502 are connected with the programmable control device 30 respectively.
[0052] The substrate management controller 50 is configured to send a first instruction to the programmable control device 30 through the first serial port.
[0053] The programmable control device 30 is configured to control the analog switch 40 to connect the second serial port 502 with the component 60 to be debugged indicated by the first instruction based on the first instruction.
[0054] In some embodiments, the first serial port 501 can be an Inter-Integrated Circuit (I2C) serial port, and the serial port connected to the programmable control device 30 can also be an I2C serial port.
[0055] In some embodiments, the second serial port 502 can be a Universal Asynchronous Receiver / Transmitter (UART) serial port, and the serial port connected to the programmable control device 30 can also be a UART serial port. Through the UART serial port, bidirectional transmission of debugging data between the substrate management controller 50 and the component 60 to be debugged can be realized, meeting the needs of debugging data interaction in the debugging process of the component.
[0056] Specifically, the first connection path of the first interface 10 and the component 60 to be debugged is as follows: the path connected to the substrate management controller 50, the path connected to the second serial port 502 and the programmable control device 30, the path connected to the programmable control device 30 and the analog switch 40, and the connection path connected to the programmable control device 30 and the analog switch 40, and the path connected to the analog switch 40 and the component 60 to be debugged.
[0057] In the embodiments of the present application, the substrate management controller includes a first serial port and a second serial port, wherein: the first serial port and the second serial port are connected to the programmable control device respectively; the substrate management controller is configured to send a first instruction to the programmable control device through the first serial port; and the programmable control device is configured to control the analog switch to connect the second serial port with a component to be debugged indicated by the first instruction based on the first instruction. In the above server system, by configuring the substrate management controller with independent first and second serial ports and connecting them to the programmable control device respectively, the separate transmission of instructions and data is realized: the first serial port is dedicated to sending component gating instructions (i.e. the first instruction), and the second serial port is dedicated to transmitting debugging data, which not only avoids the conflict between instructions and data on a single channel, guarantees the reliable delivery of the first instruction, but also ensures the real-time and integrity of the debugging data interaction in the debugging process, thereby improving the reliability of the debugging of the components of the server.
[0058] Figure 3 A structural diagram of a server system provided by an embodiment of the present application Figure 3 As shown in Figure 4 The baseboard management controller 50 further includes a third serial port 503, wherein:
[0059] The analog switch 40 is further connected to the baseboard management controller 50 in a gating manner.
[0060] The programmable control device 30 is further configured to receive a third instruction transmitted through the second interface 20, and control the analog switch 40 to connect the second interface 20 to the baseboard management controller 50 indicated by the third instruction based on the third instruction.
[0061] Specifically, the analog switch 40 is connected to the third serial port 503 in a gating manner, and the control of the analog switch 40 to connect the second interface 20 to the baseboard management controller 50 indicated by the third instruction is specifically to control the analog switch 40 to connect the second interface 20 to the third serial port 503 of the baseboard management controller 50 indicated by the third instruction.
[0062] The following further describes the control of the programmable control device 30 to the analog switch 40 to connect the second interface 20 to the baseboard management controller 50 indicated by the third instruction based on the third instruction:
[0063] The programmable control device 30 generates a corresponding control signal based on the third instruction, and at this time, the control signal indicates that the programmable control device 30 is connected to the baseboard management controller 50 indicated by the third instruction, and the control signal is sent to the analog switch 40; after receiving the control signal, the analog switch 40 triggers an internal path switching mechanism to switch on a connection path connected between the programmable control device 30 and the analog switch 40 and a path connected between the analog switch 40 and the baseboard management controller 50, at this time, a path connected between the second interface 20 and the programmable control device 30 and a path connected between the programmable control device 30 and the analog switch 40 are switched on, so that a third connection path of the second interface 20 and the baseboard management controller 50 can be formed, the third connection path passes through the second interface 20, the programmable control device 30, the analog switch 40 and the baseboard management controller 50 in sequence, and it is ensured that the debugging data transmitted by the second interface 20 can be accurately sent to the baseboard management controller 50 through the third connection path, so that the remote debugging of the baseboard management controller 50 is realized.
[0064] The path connected between the analog switch 40 and the baseboard management controller 50 is a path connected between the analog switch 40 and the third serial port 503.
[0065] The analog switch 40 is further connected to the baseboard management controller 50 in a gating manner, and it can be understood that the analog switch 40 can realize the gating connection between the programmable control device 30 and the baseboard management controller 50.
[0066] In the embodiment of the present application, the substrate management controller further comprises a third serial port, wherein: the analog switch is further connected with a third serial port of the substrate management controller in a gating manner; and the programmable control device is further configured to receive a third instruction transmitted through the second interface, and control the analog switch to connect the second interface with the third serial port of the substrate management controller indicated by the third instruction based on the third instruction. In the above server system, by adding a third serial port to the substrate management controller and connecting it with the analog switch in a gating manner, and by combining the programmable control device to control the analog switch to turn on the path between the second interface and the third serial port in response to the third instruction transmitted through the second interface, the remote debugging of the substrate management controller itself is realized without the need to separately and additionally configure a dedicated debugging interface for the substrate management controller. When the substrate management controller is abnormal, the debugging of the substrate management controller can be realized through the second interface, the debugging coverage of the server system is expanded, and the maintainability of the server system is thus comprehensively improved.
[0067] Figure 4 Structure diagram of a server system provided by the embodiment of the present application As shown in The analog switch 40 comprises a control end 401 and a plurality of gating ends 402, wherein:
[0068] The control end 401 is connected with the programmable control device 30, and the plurality of gating ends are respectively connected with a plurality of components and the third serial port in a corresponding manner.
[0069] The plurality of gating ends correspond to the plurality of components and the third serial port in a one-to-one manner. For example, when the number of the plurality of components of the server system is N, the number of the plurality of gating ends of the analog switch 40 is N+1, wherein N is an integer greater than or equal to 1.
[0070] The programmable control device 30 is configured to control the analog switch 40 to connect the control end 401 with the gating end 402 corresponding to the component 60 to be debugged based on the first instruction or the second instruction.
[0071] The gating end 402 corresponding to the component 60 can be understood as the gating end 402 connected with the component 60.
[0072] The programmable control device 30 is configured to control the analog switch 40 to connect the control end 401 with the gating end 402 corresponding to the third serial port 503 based on the third instruction.
[0073] The gating end 402 corresponding to the third serial port 503 can be understood as the gating end 402 connected with the third serial port 503.
[0074] The first interface 10 is connected with the debugging device.
[0075] The debugging device is configured to debug the component 60 to be debugged by the baseboard management controller 50 when the control end 401 is connected to the gate end 402 corresponding to the component 60 to be debugged.
[0076] The second interface 20 is connected to the debugging device or the serial port server.
[0077] The debugging device or the serial port server is configured to debug the component 60 to be debugged when the control end 401 is connected to the gate end 402 corresponding to the component 60 to be debugged.
[0078] The debugging device or the serial port server is further configured to debug the baseboard management controller 50 when the control end 401 is connected to the gate end 402 corresponding to the third serial port 503.
[0079] In some embodiments, the programmable controller device can pre-store an association table, the association table including a mapping relationship between identifiers of a plurality of components and an identifier of the baseboard management controller and the gate end of the analog switch.
[0080] In some embodiments, the first instruction includes an identifier of the component to be debugged, the second instruction includes an identifier of the component to be debugged, and the third instruction includes an identifier of the baseboard management controller.
[0081] The programmable controller device is configured to query the association table based on the identifier of the component to be debugged in the first instruction or the second instruction, or the identifier of the baseboard management controller in the third instruction, to determine a target gate end, and to control the analog switch to connect the control end to the target gate end, wherein the target gate end is the corresponding gate end of the component to be debugged in the first instruction or the second instruction, or the corresponding gate end of the baseboard management controller in the third instruction.
[0082] For example, the association table is shown in Table 1 below.
[0083] Table 1 Association table
[0084]
[0085] For example, when the first instruction includes an identifier of the component A, the programmable controller device queries Table 1 based on the identifier of the first instruction to obtain a target gate end as the gate end A, and then controls the analog switch to connect the control end to the gate end A, thereby establishing a connection path between the first interface and the component A.
[0086] Next, a process of debugging a plurality of components of the server through the first interface is described in detail.
[0087] After the debugging device is connected with the first interface, the first interface is sent a first instruction containing the identifier of the component to be debugged. The first instruction is transmitted to the baseboard management controller after being processed by the physical layer. After receiving the first instruction, the baseboard management controller forwards the first instruction to the programmable control device through the first serial port. After receiving the first instruction, the programmable control device extracts the identifier of the component to be debugged, queries the pre-stored association table, and determines the target gating terminal corresponding to the identifier. Then, the programmable control device generates a control signal instructing the analog switch to connect the control terminal with the target gating terminal, and sends the control signal to the analog switch. In response to the control signal, the analog switch triggers the internal path switching and turns on the path between the control terminal and the target gating terminal. At this time, the first connection path of the first interface and the component to be debugged (passing through the first interface, the second serial port of the baseboard management controller, the programmable control device, the analog switch, and the component to be debugged in turn) is formed. The debugging device sends debugging data to the component to be debugged through the first connection path, and the feedback signal of the component to be debugged is also returned to the debugging device through the first connection path, thereby realizing remote debugging of the component.
[0088] If it is necessary to switch the debugging object, the debugging device only needs to send a first instruction containing the identifier of the new component to be debugged, and the above process can be repeated to complete the path switching and realize debugging of other components.
[0089] The following describes the process of debugging multiple components of the server through the second interface:
[0090] After the debugging device or the serial port server is connected with the second interface, the second interface is sent a second instruction containing the identifier of the component to be debugged. The second instruction is transmitted to the programmable control device. After receiving the second instruction, the programmable control device extracts the identifier of the component to be debugged, queries the association table, and determines the target gating terminal. Then, the programmable control device generates a control signal instructing the analog switch to connect the control terminal with the target gating terminal, and sends the control signal to the analog switch. After receiving the control signal, the analog switch turns on the path between the control terminal and the target gating terminal, forming a second connection path of the second interface and the component to be debugged (passing through the second interface, the programmable control device, and the analog switch to the component to be debugged in turn). The debugging device or the serial port server sends debugging data to the component to be debugged through the second connection path, and the feedback signal of the component to be debugged is also returned through the second connection path, thereby completing the debugging operation of the component.
[0091] If it is necessary to debug other components, the debugging device or the serial port server sends a second instruction containing the identifier of the new component to be debugged, and the above process can be repeated to complete the path switching and realize debugging of other components.
[0092] It should be noted that the process of debugging the baseboard management controller through the second interface is similar to the process of debugging the plurality of components of the server through the second interface, and will not be described here.
[0093] In some embodiments, the debugging data includes, but is not limited to, state query instructions, parameter configuration commands, etc.
[0094] In some embodiments, the programmable control device is further configured to: monitor a communication state between the baseboard management controller and the component to be debugged connected through the analog switch; when an abnormality in the communication state is monitored, control the analog switch to disconnect the baseboard management controller and the component to be debugged, and send fault information to the baseboard management controller.
[0095] In some embodiments, the baseboard management controller further includes a storage device, wherein: the baseboard management controller stores the fault information and the debugging log data of the component to be debugged to the storage device.
[0096] The debugging log data is a series of detailed information related to the operation of debugging generated during the debugging through the first interface, including but not limited to:
[0097] Timing instruction record: detailed content, time stamp and source / destination address of the debugging data transmitted by the first connection path and the second connection path.
[0098] System state information: state parameters of the component during the debugging process. For example, when the component is a CPU, the state parameters include utilization rate, current running frequency and power consumption, temperature, etc.
[0099] Communication events and error codes: events such as establishment and disconnection of the first connection path, and warning, error code and exception information generated during the communication process between the debugging device and the component through the first connection path.
[0100] User operation flow: debugging operation commands executed through the first interface or the second interface and their results.
[0101] In the embodiment of the present application, the analog switch comprises a control end and a plurality of gating ends, wherein: the control end is connected with the programmable control device, and the plurality of gating ends are respectively connected with the plurality of components and the third serial port; the programmable control device is configured to control the analog switch to connect the control end with the gating end corresponding to the component to be debugged based on the first instruction or the second instruction; and the programmable control device is configured to control the analog switch to connect the control end with the gating end corresponding to the third serial port based on the third instruction. In the above server system, by adopting the analog switch structure comprising the control end and the plurality of gating ends, and in combination with the programmable control device, flexible gating of the debugging target (including the components and the baseboard management controller) is realized, without the need to separately set control logic for each component or the third serial port, and by unified control of the control end of the analog switch by the programmable control device, the gating end corresponding to the component or the third serial port to be debugged can be flexibly switched based on different instructions (the first instruction, the second instruction or the third instruction), thereby saving the pin resources of the programmable control device and simplifying the complexity of the connection in the server system.
[0102] In addition, the explicit correspondence relationship of the "control end-gating end" can be quickly positioned to the target gating end and complete the path switching in combination with the accurate query of the programmable control device relying on the association table, thereby avoiding the path misconnection problem in the debugging process and ensuring the accuracy and efficiency of the debugging path establishment.
[0103] In addition, after the debugging log data is stored to the storage device by the baseboard management controller, a key data basis is provided for subsequent fault analysis, performance optimization and operation audit. When intermittent abnormalities or performance degradation occur in the components, the state of the server system when the fault occurs can be accurately reproduced through the debugging log data in the storage device, so as to quickly locate the root cause of the fault, and further enhance the maintainability and reliability of the server system.
[0104] The above describes in detail a server system provided by the present application. The principles and implementation modes of the present application are described by applying specific examples in this paper, and the above description of the embodiments is only used to help understand the method of the present application and its core idea. It should be pointed out that, for those skilled in the art, without departing from the principles of the present application, some improvements and modifications can be made to the present application, and these improvements and modifications also fall within the protection scope of the claims of the present application.
Claims
1. A server system, characterized by The application relates to a substrate management controller and a method for debugging a plurality of components. The application comprises a first interface (10), a second interface (20), a programmable control device (30), an analog switch (40), a substrate management controller (50), and a plurality of components (60), wherein: The first interface (10) is connected with the substrate management controller (50), the substrate management controller (50) is further connected with the programmable control device (30), the analog switch (40) is selectively connected with the programmable control device (30) and the plurality of components (60) respectively, and the second interface (20) is connected with the programmable control device (30); The substrate management controller (50) is used for sending a first instruction transmitted through the first interface (10) to the programmable control device (30), and the first instruction is used for indicating a component (60) to be debugged; The programmable control device (30) is used for controlling the analog switch (40) to connect the substrate management controller (50) with the component (60) to be debugged indicated by the first instruction based on the first instruction; The programmable control device (30) is further used for receiving a second instruction transmitted through the second interface (20), and controlling the analog switch (40) to connect the second interface (20) with the component (60) to be debugged indicated by the second instruction based on the second instruction.
2. The server system of claim 1, wherein, The substrate management controller (50) comprises a first serial port (501) and a second serial port (502), wherein: The first serial port (501) and the second serial port (502) are connected with the programmable control device (30) respectively; The substrate management controller (50) is used for sending the first instruction to the programmable control device (30) through the first serial port (501); The programmable control device (30) is used for controlling the analog switch (40) to connect the second serial port (502) with the component (60) to be debugged indicated by the first instruction based on the first instruction.
3. The server system of claim 2, wherein, The substrate management controller (50) further comprises a third serial port (503), wherein: The analog switch (40) is further selectively connected with the third serial port (503) of the substrate management controller (50); The programmable control device (30) is further used for receiving a third instruction transmitted through the second interface (20), and controlling the analog switch (40) to connect the second interface (20) with the third serial port (503) of the substrate management controller (50) indicated by the third instruction based on the third instruction.
4. The server system of claim 3, wherein, The analog switch (40) comprises a control end (401) and a plurality of gating ends (402), wherein: The control end (401) is connected with the programmable control device (30), and the plurality of gating ends (402) are correspondingly connected with the plurality of components (60) and the third serial port (503) respectively; The programmable control device (30) is used for controlling the analog switch (40) to connect the control end (401) with the gating end (402) corresponding to the component (60) to be debugged based on the first instruction or the second instruction. The programmable control device (30) is configured to control the analog switch (40) to connect the control end (401) with a corresponding gate end (402) of the third serial port (503) based on the third instruction. 5.The server system of claim 4, wherein, The first interface (10) is connected with a debugging device. The debugging device is configured to debug the component (60) to be debugged via the baseboard management controller (50) when the control end (401) is connected with the corresponding gate end (402) of the component (60) to be debugged. 6.The server system of claim 5, wherein, The second interface (20) is connected with the debugging device or a serial port server. The debugging device or the serial port server is configured to debug the component (60) to be debugged when the control end (401) is connected with the corresponding gate end (402) of the component (60) to be debugged. The debugging device or the serial port server is further configured to debug the baseboard management controller (50) when the control end (401) is connected with the corresponding gate end (402) of the third serial port (503).
7. The server system of claim 6, wherein, The programmable control device (30) comprises a correlation table, and the correlation table comprises identifiers of the plurality of components (60) and the baseboard management controller (50) and a mapping relationship between the identifiers and gate ends (402) of the analog switch (40). The programmable control device (30) is configured to query the correlation table based on an identifier of the component (60) to be debugged in the first instruction or the second instruction, or an identifier of the baseboard management controller (50) in the third instruction, determine a target gate end (402), and control the analog switch (40) to connect the control end (401) with the target gate end (402).
8. The server system of claim 7, wherein, The programmable control device (30) is further configured to: monitor a communication state between the baseboard management controller (50) and the component (60) to be debugged connected via the analog switch (40); when an abnormal communication state is monitored, control the analog switch (40) to disconnect the baseboard management controller (50) from the component (60) to be debugged, and send fault information to the baseboard management controller (50).
9. The server system of claim 8, wherein, The baseboard management controller (50) further comprises a storage device, and wherein: The baseboard management controller (50) stores the fault information and debugging log data of the component (60) to be debugged into the storage device.
10. An electronic device, comprising: The server system of any one of claims 1 to 9. The server system of any one of claims 1 to 9.
Citation Information
Patent Citations
Server hot plug debugging device and method
CN112069002A
Remote debugging device and server
CN114038181A