Device management method and electronic device

By utilizing a control module to form a management link in the baseboard management controller, the problem of remote management function when electronic devices malfunction is solved, and stable management is achieved under abnormal conditions.

CN120892380BActive Publication Date: 2026-01-27INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202511417022.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-09-30
Publication Date
2026-01-27
Estimated Expiration
2045-09-30

AI Technical Summary

Technical Problem

The baseboard management controller has difficulty in remotely managing electronic devices when they malfunction.

Method used

The system obtains remote management commands through the baseboard management controller, identifies the target serial port device and generates switching commands, and uses the control module to locate the communication interface to form a management link to achieve remote management.

Benefits of technology

When electronic devices malfunction, the baseboard management controller can maintain remote management functions, reduce the impact of malfunctions on management functions, and improve reliability and performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120892380B_ABST
    Figure CN120892380B_ABST
Patent Text Reader

Abstract

The application discloses a device management method and an electronic device, and relates to the technical field of computers. The device management method comprises the following steps: a baseboard management controller can be connected to a target serial port device for remote management through a control module; when the electronic device set by the baseboard management controller is in an abnormal state and is difficult to support the remote management function, the baseboard management controller can maintain the remote management function by using the control module, and the influence of the running state of the electronic device on the remote management function of the baseboard management controller can be reduced. The technical problem that the baseboard management controller is difficult to realize the remote management function when the electronic device is abnormal is solved, the performance and generalization of the remote management function of the baseboard management controller can be optimized, and the reliability of the baseboard management controller can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and more particularly to a device management method and an electronic device. Background Technology

[0002] In electronic devices such as servers, switches, storage devices, and PCs (Personal Computers), a baseboard management controller can be installed for remote monitoring and management. The baseboard management controller can access internal serial devices through the electronic device's own serial port (serial port) to remotely manage these devices. However, when the electronic device malfunctions, there is a risk that the baseboard management controller may struggle to effectively manage the serial devices remotely. Summary of the Invention

[0003] This application provides a device management method and an electronic device to at least solve the problem in the related art that the board management controller is difficult to realize remote management function when the electronic device is malfunctioning.

[0004] This application provides a device management method, which includes: a baseboard management controller acquiring a remote management command and identifying a target serial port device to be remotely managed as indicated by the remote management command; the baseboard management controller generating a target switching command carrying information about the target serial port device and sending it to a control module; the control module, in response to acquiring the target switching command, locating the communication interface between the target serial port device and the control module as the target interface, and acquiring the management interface between the target serial port device and the baseboard management controller; wherein, the baseboard management controller is used to implement remote management functions through the management interface; the control module internally connects the target interface and the management interface to form a target management link; the baseboard management controller remotely manages the target serial port device through the target management link.

[0005] This application also provides an electronic device, which includes: a memory and a processor; the memory is used to store a computer program; the processor is used to implement the steps of any of the above-described device management methods when executing the computer program.

[0006] This application addresses the issue that, because the baseboard management controller can connect to a target serial port device for remote management via a control module, it can maintain remote management functionality even when the electronic device configured by the baseboard management controller malfunctions and cannot support remote management. This reduces the impact of the electronic device's operating status on the baseboard management controller's remote management function. Therefore, it solves the technical problem of the baseboard management controller's inability to implement remote management functionality when the electronic device malfunctions, optimizing the performance and generalizability of the baseboard management controller's remote management function, and ultimately improving the reliability of the baseboard management controller. Attached Figure Description

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

[0008] Figure 1 This is a schematic diagram of the structure of an embodiment of the equipment management system of this application;

[0009] Figure 2 This is a schematic diagram of another embodiment of the equipment management system of this application;

[0010] Figure 3 This is a flowchart illustrating an embodiment of the device management method of this application;

[0011] Figure 4 This is a schematic diagram of the structure of an embodiment of the electronic device of this application;

[0012] Figure 5 This is a flowchart illustrating another embodiment of the device management method of this application;

[0013] Figure 6 This is a schematic diagram of another embodiment of the electronic device of this application;

[0014] Figure 7 This is a schematic diagram of the structure of another embodiment of the electronic device of this application. Detailed Implementation

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

[0016] It should be noted that, in the description of this application, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. The terms "first," "second," etc., in this application are used to distinguish similar objects and are not used to describe a specific order or sequence.

[0017] To address the technical problem in related technologies where the baseboard management controller struggles to achieve remote management functions when electronic devices malfunction, this application provides a device management method and an electronic device. The device management method includes: the baseboard management controller acquiring a remote management command and identifying the target serial port device to be remotely managed as indicated by the command; the baseboard management controller generating a target switching command carrying information about the target serial port device and sending it to a control module; the control module, in response to acquiring the target switching command, locating the communication interface connecting the target serial port device and the control module as the target interface, and acquiring the management interface connecting the target serial port device to the baseboard management controller; wherein, the baseboard management controller is used to implement remote management functions through the management interface; the control module internally connects the target interface and the management interface to form a target management link; the baseboard management controller remotely manages the target serial port device through the target management link. The detailed working principle of this application is illustrated below with examples.

[0018] To enable 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 accompanying drawings and specific embodiments.

[0019] The specific application environment architecture or specific hardware architecture on which the execution of the device management method depends is described here.

[0020] Please see Figure 1 , Figure 1 This is a schematic diagram of the structure of an embodiment of the equipment management system of this application.

[0021] In one embodiment, the device management system may include a baseboard management controller 10 and a control module 20, wherein the baseboard management controller 10 and the control module 20 are connected.

[0022] The baseboard management controller 10 is used to acquire remote management commands, identify the target serial port device to be remotely managed as indicated by the remote management commands, and generate a target switching command carrying information about the target serial port device.

[0023] The control module 20 is used to acquire target switching instructions, locate the communication interface between the target serial port device and the control module 20 as the target interface, and acquire the management interface between the target serial port device and the baseboard management controller 10. The baseboard management controller 10 is used to realize remote management functions through the management interface. The control module 20 internally connects the target interface and the management interface to form a target management link.

[0024] If a target management link is formed within the control module 20, the baseboard management control can remotely manage the target serial port device through the target management link.

[0025] In other words, in this embodiment, the device management system may include a baseboard management controller 10 and a control module 20, which together can realize the remote management function of the target serial port device.

[0026] The activation of the remote management function depends on the baseboard management controller 10. The baseboard management controller 10 can obtain remote management instructions, identify the target serial port device that needs to be remotely managed by parsing the content of the remote management instructions, generate a target switching instruction that clearly carries the key information of the target serial port device, and transmit the target switching instruction to the control module 20.

[0027] When the control module 20 receives a target switching command from the baseboard management controller 10, the control module 20 can construct a link. That is, the control module 20 can locate its own (i.e., the control module 20's) communication interface connected to the target serial port device based on the target serial port device information in the target switching command, and define it as the target interface. Simultaneously, the control module 20 can determine its own dedicated remote management interface (i.e., the management interface) connected to the baseboard management controller 10. Thus, the control module 20 can internally connect the target interface and the management interface to form a channel for the baseboard management controller 10 to remotely manage the target serial port device, i.e., a target management link.

[0028] In this way, the baseboard management controller 10 can establish communication with the target serial port device through the target management link to realize the remote management function of the target serial port device.

[0029] Therefore, in this embodiment, the baseboard management controller 10 can be connected to the target serial port device for remote management via the control module 20. Thus, when the electronic device set by the baseboard management controller 10 is abnormally unable to support the remote management function, the baseboard management controller 10 can use the control module 20 to maintain its remote management function, thereby reducing the impact of the operating status of the electronic device on the remote management function of the baseboard management controller 10. This optimizes the performance and generalizability of the remote management function of the baseboard management controller 10, thereby improving the reliability of the baseboard management controller 10.

[0030] Please refer to the following: Figure 1 as well as Figure 2 , Figure 2 This is a schematic diagram of another embodiment of the equipment management system of this application.

[0031] In one embodiment, the baseboard management controller 10 may include a functional serial port group 11 and a device serial port group 12.

[0032] The functional serial port group 11 may include one functional serial port. The device serial port group 12 may include one or more device serial ports. In other words, the number of device serial ports can be one, two, three, four, five, ten, etc. Figure 2 The example shown only includes four device serial ports. The specific number of device serial ports can be determined based on the performance and requirements of the electronic equipment, the baseboard management controller 10 module, and the control module 20, etc.

[0033] In other words, the multiple serial ports of the substrate management controller 10 may include functional serial ports and one or more device serial ports. Among them, the functional serial ports of the substrate management controller 10 are used to implement remote management functions.

[0034] The control module 20 may include a communication interface group 21, which may include a management interface and one or more communication interfaces.

[0035] Optionally, the number of communication interfaces in the control module 20 can match the number of device serial ports in the baseboard management controller 10, or the two numbers may not match. It is possible that at least one of the control module 20 and the baseboard management controller 10 has redundant serial ports / interfaces, which is not limited here.

[0036] Thus, the device serial port of the baseboard management controller 10 can be connected to the communication interface of the control module 20. When the device serial port of the baseboard management controller 10 is connected to the function serial port, it can remotely manage the preset serial port device associated with it, and the target serial port device is one of the preset serial port devices.

[0037] Furthermore, when the preset serial port device includes the substrate management controller 10, the device serial port and the function serial port associated with the substrate management controller 10 are two independent serial ports. Detailed examples will be provided later, and will not be repeated here.

[0038] Understandably, the baseboard management controller 10 may include a functional serial port and a device serial port. The device serial ports are physically connected to the communication interface of the control module 20, serving as a reserved channel for the subsequent remote management of preset serial port devices. This allows for the simultaneous association of multiple preset serial port devices and also facilitates the expansion of adding or replacing preset serial port devices.

[0039] Among them, the functional serial port is configured as a basic function for accessing remote management functions. The device serial port can be connected to the functional serial port through the target management link formed by the control module 20 to realize the connection between the remote management function of the baseboard management controller 10 and the target serial port device. It can also isolate multiple preset serial port devices, trigger the remote management function of the target serial port device through the target management link, and also help improve the accuracy of locating the target serial port device.

[0040] Furthermore, if the preset serial port device includes the baseboard management controller 10 itself, then the device serial port and the function serial port associated with the baseboard management controller 10 remain independent of each other, that is, they are not directly connected. This can significantly reduce the risk of serial port function conflicts of the baseboard management controller 10, and can help ensure that when the baseboard management controller 10 itself is the managed object of the remote management function, it can take into account both the basic remote management capability of the function serial port of the remote management function and the normal operation of its own management link.

[0041] The baseboard management controller 10 and the control module 20 can be located in the electronic device.

[0042] As illustrated in the examples above, electronic devices can be servers, switches, storage devices, PCs, etc. Taking a server as an example, an electronic device includes a processor, memory, network interface, and database connected via a system bus.

[0043] The electronic device's processor provides computing and control capabilities. Its memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores the operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage medium. The electronic device's database stores data. Its network interface allows for communication with external terminals via a network connection. When the computer program is executed by the processor, it implements a device management method.

[0044] For a description of the features in the embodiment corresponding to the equipment management system, please refer to the relevant description in the embodiment corresponding to the equipment management method, which will not be repeated here.

[0045] The embodiments of this application provide a device management method, and the device management method is described in detail in conjunction with the execution flow of the device management method.

[0046] Please see Figure 3 , Figure 3 This is a flowchart illustrating an embodiment of the device management method of this application.

[0047] S101: The baseboard management controller acquires remote management commands and identifies the target serial port device to be remotely managed as indicated by the remote management commands.

[0048] In this embodiment, the remote management command can be transmitted from an external source to the baseboard management controller, or it can be generated by the baseboard management controller itself based on the device operating status of the electronic device it is in, etc., which is not limited here.

[0049] The target serial port device refers to the serial port device that the board management controller needs to remotely manage.

[0050] In other words, the baseboard management controller can acquire remote management commands, identify the remote management commands, and obtain the target serial port device that needs to be remotely managed as indicated by the remote management commands.

[0051] S102: The baseboard management controller generates a target switching command carrying information about the target serial port device and sends it to the control module.

[0052] In this embodiment, the baseboard management controller, in response to identifying a target serial port device, can acquire relevant information about the target serial port device. Therefore, the baseboard management controller can generate a target switching command based on the target serial port device information and transmit the target switching command to the control module. This enables the control module to acquire the target serial port device information and determine its internal link construction method based on the target serial port device information.

[0053] S103: In response to the target switching command, the control module locates the communication interface between the target serial port device and the control module as the target interface, and obtains the management interface between the target serial port device and the baseboard management controller; wherein, the baseboard management controller is used to realize remote management functions through the management interface.

[0054] In this embodiment, the control module can determine the target interface and the management interface by using the target switching command as the trigger condition.

[0055] In other words, the control module can include a communication interface and a management interface. The management interface is associated with the serial port configured for remote management of the baseboard management controller. When the serial port configured for remote management of the baseboard management controller is relatively fixed during the current operation of the electronic device, the management interface can be recorded after the initial determination to reduce the cumbersome operation of subsequent management interface determination. Alternatively, the management interface can be determined after obtaining the target switching command at least a portion of the time to ensure the reliability of the management interface determination. The target interface is the communication interface connecting the control module and the target serial port device.

[0056] S104: The control module internally connects the target interface and the management interface to form a target management link.

[0057] In this embodiment, the control module responds to acquiring the target interface and the management interface. The control module can internally connect the target interface and the management interface to form a connection link between the target interface and the management interface, namely the target management link. The target management link can be a physical link within the control module; in an alternative embodiment, it can also be a virtual link, and this is not limited here.

[0058] The control module can serve as a link construction and connection carrier for realizing remote management functions, providing a connection link for the baseboard management controller to remotely manage the target serial port device.

[0059] S105: The baseboard management controller remotely manages the target serial port device through the target management link.

[0060] In this embodiment, in response to the control module establishing a target management link, it can be considered that a connection link is formed between the baseboard management controller and the target serial port device to realize remote management functions. Therefore, the baseboard management controller can remotely manage the target serial port device through the management interface, the target management link, and the target interface. In other words, the baseboard management controller and the target serial port device can realize data interaction for remote management functions through the management interface, the target management link, and the target interface.

[0061] Therefore, in this embodiment, the baseboard management controller can be connected to the target serial port device for remote management via the control module. Thus, when the electronic device set by the baseboard management controller is abnormally unable to support the remote management function, the baseboard management controller can use the control module to maintain its remote management function, thereby reducing the impact of the electronic device's operating status on the remote management function of the baseboard management controller. This optimizes the performance and generalizability of the baseboard management controller's remote management function, thereby improving the reliability of the baseboard management controller.

[0062] Please see Figure 4 , Figure 4 This is a schematic diagram of the structure of an embodiment of the electronic device of this application.

[0063] In one embodiment, the baseboard management controller obtains a configuration file in response to initializing the remote management function.

[0064] The baseboard management controller reads the serial port corresponding to the remote management function in the configuration file, loads it as the function serial port, initializes the remote management function, and enables the remote management function to acquire data from the function serial port after it starts.

[0065] In other words, the baseboard management controller can obtain the configuration file in advance, read the serial port information corresponding to the remote management function from it, define the serial port represented by the serial port information as the functional serial port and complete the loading, so as to dynamically determine the functional serial port through the configuration file. This can reduce hard-coding restrictions and improve the flexibility of functional serial port configuration. At the same time, the loading operation ensures that the functional serial port is ready, which can provide a basis for data acquisition after the remote management function is started.

[0066] Furthermore, the device serial port can establish a physical connection with the communication interface of the control module, building a basic communication channel for the management of preset serial port devices, thereby supporting the association of multiple preset serial port devices and effectively improving the management and scalability of the device management system for preset serial port devices.

[0067] The following section provides a detailed explanation of the working principles of the target switching command and remote management functions implemented in this embodiment.

[0068] Please continue reading. Figure 4 In one embodiment, as described above, the baseboard management controller may include a functional serial port and one or more device serial ports, the device serial ports being connected to the communication interface of the control module. The functional serial port is used to implement remote management functions, and the device serial ports are used to remotely manage their associated preset serial port devices when connected to the functional serial port, the target serial port being one of the preset serial port devices.

[0069] When the baseboard management controller remotely manages the target serial port device through the target management link, the baseboard management controller generates remote management commands and transmits the remote management commands to the management interface of the control module via the function serial port.

[0070] The control module can acquire remote management commands input from the management interface, transmit them to the target interface via the target management link, and then transmit them to the target device serial port via the target interface, thereby transmitting the remote management commands to the target serial port device. Here, the target device serial port refers to the device serial port associated with both the target interface and the target serial port device.

[0071] In other words, when the baseboard management controller remotely manages the target serial port device through the target management link, it can complete the transmission of remote management commands based on a clear physical path. The baseboard management controller generates specific remote management commands and then, using the pre-loaded and ready functional serial port, transmits the commands to the management interface of the control module. This targeted interface between the functional serial port and the management interface effectively prevents command loss or mistransmission at the transmission origin, thus improving the stability of the initial segment of the link. Upon receiving the remote management commands from the management interface, the control module can accurately forward the commands to the target interface based on the previously established target management link. The commands are then further transmitted to the target serial port device's serial port via the target interface. This precise and direct delivery of remote management commands from the initiator to the target device reduces command confusion between multiple preset serial port devices and helps ensure the real-time performance and effectiveness of remote management operations.

[0072] The control module can be a CPLD (Complex Programmable Logic Device), an FPGA (Field Programmable Gate Array), a PLC (Programmable Logic Controller), etc., and there is no strict limitation here.

[0073] Taking the pre-defined serial port devices, including electronic equipment systems, baseboard management controllers, and other serial port devices such as network cards and graphics processors, as an example, Figure 4 The example illustrates a scenario involving two other serial port devices: a first other serial port device and a second other serial port device.

[0074] like Figure 4 As illustrated in the example, the baseboard management controller may include serial port U01, serial port U02, serial port U03, serial port U04, and serial port U05.

[0075] The control module may include a management interface U11, a communication interface U12, a communication interface U13, a communication interface U14, and a communication interface U15.

[0076] For example, serial port U01 can be a functional serial port, while serial ports U02 to U05 can be device serial ports.

[0077] The functional serial port of the baseboard management controller, namely serial port U01, is connected to the management interface U11 of the control module. Serial port U01 can be configured to be used exclusively for remote management functions such as SOL (Serial Over LAN). Physically, it does not need to be connected to other devices except for the control module. That is, the functional serial port of the baseboard management controller is isolated from other serial port devices.

[0078] The serial port U02 of the baseboard management controller is connected to the management interface U12 of the control module. Serial port U02 can be connected to the control module and the serial port of electronic equipment systems. That is, the preset serial port device associated with serial port U02 can be an electronic equipment system. For example, serial port U02 can be physically connected to the serial port of an electronic equipment system such as PCH (Platform Controller Hub) for accessing the serial port of the electronic equipment system.

[0079] The serial port U03 of the substrate management controller is connected to the management interface U13 of the control module. The serial port U03 can be used as the serial port of the substrate management controller itself. That is, the preset serial port device associated with the serial port U03 can be the substrate management controller. Physically, it does not need to be connected to other devices except for the control module. In other words, the serial port U03 of the substrate management controller is isolated from other serial port devices.

[0080] The serial port U04 of the substrate management controller is connected to the management interface U14 of the control module. Serial port U04 can be connected to the control module and the serial port of the first other serial port device. That is, the preset serial port device associated with serial port U04 can be the first other serial port device. In other words, the serial port U04 of the substrate management controller is used to access the serial port of the first other serial port device.

[0081] The serial port U05 of the substrate management controller is connected to the management interface U15 of the control module. The serial port U04 can be connected to the control module and other second serial port devices. That is, the preset serial port device associated with serial port U05 can be other second serial port devices. In other words, the serial port U05 of the substrate management controller is used to connect to the serial port of other second serial port devices.

[0082] Please continue reading. Figure 4 In one embodiment, the control module may include a preset register, which may include serial port control bits.

[0083] If so, the baseboard management controller can read the serial port control bit of the preset register in the control module through the first bus protocol. The baseboard management controller obtains the target interface of the target serial port device connected to the control module and writes the interface identifier of the target interface into the serial port control bit.

[0084] In layman's terms, the baseboard management controller can read and write the preset registers of the control module and write the interface identifier of the target interface to the serial port control bit. By enabling the control module to recognize the interface identifier of the serial port control bit, it can determine the communication port (target interface) connecting the target serial device to the control module, thus realizing the control of the control module internally to connect the target interface and the management interface.

[0085] Combination Figure 4 The example given is an electronic device, a remote management function called SOL, and a first bus protocol called I2C (Inter-Integrated Circuit, two-wire serial bus).

[0086] If the current electronic device system serial port output is SOL, the baseboard management controller can send commands to the control module via I2C, causing the control module to form a target management link within itself. This physically connects the TX (Transmit, i.e., output) of serial port U01 to the RX (Receive External, i.e., input) of serial port U02, and the RX of serial port U02 to the RX of serial port U01.

[0087] If the current scenario is that the serial port output of the baseboard management controller is SOL, the baseboard management controller can send a command to the control module via I2C, so that the control module can form a target management link inside it, so as to physically connect the TX of serial port U01 to the RX of serial port U03, and the RX of serial port U03 to the TX of serial port U01.

[0088] If the current scenario involves other serial port devices outputting SOL, the baseboard management controller can send commands to the control module via I2C. This allows the control module to internally establish a target management link, physically connecting the TX pin of serial port U01 to the RX pin of serial port U04, and vice versa. The same logic applies to scenarios where other serial port devices output SOL. Further details on this scenario are omitted here.

[0089] Furthermore, the preset serial port device includes one or more of the following: a baseboard management controller, an electronic device system, and other serial port devices. When the electronic device system and other serial port devices are used as preset serial port devices, the associated device serial port is also connected to them.

[0090] Remote management functionality is implemented via a second bus protocol, which communicates through transmit and receive lines. For example, the second bus protocol could be a UART (Universal Asynchronous Receiver / Transmitter).

[0091] In response to the target serial port device being a baseboard management controller, the serial port of the device associated with the baseboard management controller is used as the interface to be accessed. The input terminal of the target interface connected to the interface to be accessed is connected to the output terminal of the management interface, and the output terminal of the target interface connected to the interface to be accessed is connected to the input terminal of the management interface.

[0092] In response to the target serial port device being an electronic device system, the input terminal of the target interface associated with the electronic device system is connected to the output terminal of the management interface, and the output terminal of the target interface associated with the electronic device system is connected to the input terminal of the management interface.

[0093] In response to the target serial port device being another serial port device, the input terminal of the target interface connected to the other serial port device is connected to the output terminal of the management interface, and the output terminal connected to the other serial port device is connected to the input terminal of the management interface.

[0094] In other words, when the target serial port device is a baseboard management controller, the serial port of the device directly associated with the baseboard management controller is used as the interface to be connected. The target interface connected to this interface is located, and its input is connected to the output of the management interface. Conversely, the output of the target interface is connected to the input of the management interface.

[0095] If the target serial port device is an electronic device system, the interface associated with the electronic device system is directly used as the target interface. The input of the target interface is connected to the output of the management interface, and the output of the target interface is connected to the input of the management interface.

[0096] When the target serial port device is a serial port device other than the two types mentioned above, the interface that is directly connected to other serial port devices is used as the target interface, and the connection is completed in the order of connecting the target interface input to the management interface output and the target interface output to the management interface input.

[0097] This design improves the clarity of connection logic and reduces operational errors. It clearly categorizes specific pre-defined serial port devices and matches the send / receive directions of the management interface and target interface, reducing link construction errors caused by chaotic connection rules and facilitating rapid location and reduced debugging time. It also ensures stable bidirectional data transmission. Through cross-connections where target interface input corresponds to management interface output and vice versa, it ensures that the management end can accurately send control commands to the device end, and the device end can promptly send status data back to the management end, reducing data loss and transmission interruptions and improving the reliability of remote management interaction. Furthermore, it facilitates adaptation to multiple pre-defined serial port devices, enhancing compatibility. It can cover baseboard management controllers, electronic equipment systems, and other general-purpose serial port devices, eliminating the need to design differentiated connection logic for different devices and reducing the adaptation cost for managing diverse serial port devices. It can be widely used in scenarios such as server management, industrial control equipment control, and general-purpose serial port module interaction. It can also lower the operating threshold, improve efficiency, and promote simple connection steps without additional complex configuration. Even people who are not familiar with the serial port connection principle can quickly perform wiring operations according to the device type, reduce delays caused by unfamiliarity with operation, and significantly improve the overall efficiency of equipment deployment and maintenance.

[0098] Please see Figure 5 , Figure 5 This is a flowchart illustrating another embodiment of the device management method of this application.

[0099] S201: The substrate management controller receives remote management commands.

[0100] S202: The board management controller identifies the current mode indicated by the remote management command.

[0101] In this embodiment, the baseboard management controller locates the first parameter of the remote management command.

[0102] In response to the first parameter being an automatic mode identifier, the baseboard management controller determines that the current mode is automatic mode.

[0103] In response to the first parameter being a specified mode identifier, the baseboard management controller determines that the current mode is the specified mode, obtains the second parameter of the remote management command, and identifies the target serial port identifier of the second parameter.

[0104] In other words, when processing remote management commands, the baseboard management controller can locate the first parameter in the command, which is used to determine the current management mode. When the first parameter is an automatic mode identifier, the baseboard management controller will directly determine that the current operating mode is automatic mode; if the first parameter is a specified mode identifier, it will determine that the current mode is specified mode, and further obtain the second parameter in the remote management command, and determine the corresponding target serial port identifier by identifying the second parameter. This parameter judgment and mode matching logic enables the baseboard management controller to accurately respond to remote management needs. In automatic mode, it can operate efficiently according to preset rules, and in specified mode, the target serial port is clearly defined through the second parameter, which can reduce the risk of confusion in mode determination, and also help ensure the targeted execution of remote management commands, effectively improving the accuracy and efficiency of remote device management, and ensuring the orderly processing of commands in different management scenarios.

[0105] For example, the automatic mode identifier can be preset to 00, and the specified mode identifier can be preset to 01.

[0106] Remote management and control commands can include configuration commands, which include a first parameter and a second parameter. When the first parameter of the configuration command is the automatic mode identifier 00, the second parameter is disregarded, and the current mode is assumed to be adaptively switching the device's serial port output to SOL based on the scenario. Furthermore, it is also possible to prevent the specification of a fixed device serial port output to SOL.

[0107] When the first parameter of the configuration command is manual mode 01, the second parameter represents the target serial port identifier of the specific preset serial port device for manually configuring SOL out-of-band access. For example, target serial port identifier 00 identifies the electronic device system serial port, target serial port identifier 01 represents the board management controller serial port, target serial port identifier 02 is the serial port of the first other serial port device, and target serial port identifier 03 represents the serial port of the second other serial port device. That is, the specified mode can be used by the user to manually set a fixed preset serial port device serial port output as SOL.

[0108] S203: The substrate management controller performs remote management in automatic mode.

[0109] In this embodiment, the baseboard management controller acquires the device operating status of the electronic devices configured by the baseboard management controller; and selects a target serial port device from preset serial port devices based on the device operating status. The principle of automatically selecting a target serial port device based on the device operating status will be explained in detail later and will not be repeated here.

[0110] Alternatively, the automatic mode may have sub-modes, which may include inspection mode and / or energy-saving mode.

[0111] In other words, the baseboard management controller receives sub-mode instructions for automatic mode.

[0112] In response to the sub-mode command indicating the power-saving mode, the board management controller suspends the remote management function.

[0113] In response to the sub-mode command indicating the inspection mode, the baseboard management controller periodically switches each preset serial port device as the target serial port device at preset inspection intervals.

[0114] Furthermore, in the inspection mode, considering the possibility of abnormal operation of preset serial port devices, this embodiment prioritizes remote management of the abnormal preset serial port devices when abnormal operation occurs. This improves the effectiveness of intervention for abnormal preset serial port devices, thereby reducing the risk of abnormal preset serial port devices affecting the reliability of electronic devices. This further improves the reliability of the remote management function of the board management controller and optimizes its remote management function performance, thereby improving the reliability of the board management controller.

[0115] In other words, in response to the detection of a preset serial port device malfunctioning, the baseboard management controller identifies the malfunctioning preset serial port device as an abnormal serial port device. The baseboard management controller then identifies the abnormal serial port device as the target serial port device and suspends the inspection mode.

[0116] During the automatic inspection process where the baseboard management controller periodically switches between preset serial port devices according to a preset inspection duration, if an abnormal operation is detected in a preset serial port device, it will first mark the device as an abnormal serial port device. Subsequently, the baseboard management controller will directly set this abnormal serial port device as the current target serial port device, while pausing the ongoing inspection mode and ceasing to switch to other preset serial port devices according to the original cycle. This ensures that subsequent management actions are focused on the abnormal device, rather than being scattered across polling multiple normal devices. This processing logic is not isolated but is closely integrated with the entire serial port device management process. From the initial matching of interface connection rules based on device type, electronic equipment system, baseboard management controller, and other serial port devices, to determining the automatic mode and inspection sub-mode through remote management command parameters, and then to pausing the mode and locking the target in case of an abnormality, each step revolves around accurately responding to the device status, forming a complete management chain.

[0117] This anomaly response mechanism complements the previous event detection logic for different devices. Previously, the detection module monitored device-related events such as system crashes and boot failures for electronic equipment systems, management-related events such as watchdog anomalies and service restarts for the baseboard management controller, and serial-related events such as network card anomalies and carrier board component anomalies for other serial port devices. When these events trigger an anomaly determination, the baseboard management controller does not need to wait for the inspection cycle to end but immediately initiates the anomaly handling process. This anomaly-triggered immediate inspection avoids the delays that can occur with conventional inspections that poll in a fixed order. For example, if an abnormal device is at the end of the inspection sequence, continuing the inspection would cause the anomaly to be shelved. Immediately pausing the inspection and locking the abnormal device allows management resources to focus on the problem immediately, buying time for troubleshooting.

[0118] From the perspective of management efficiency and reliability, setting the abnormal serial port device as the target and suspending the inspection operation enables efficient allocation of management resources. The processing power and communication bandwidth of the baseboard management controller are limited. In inspection mode, it needs to simultaneously handle the status acquisition and command interaction of multiple devices. When a device malfunctions, suspending the inspection of other devices avoids resource dispersion, allowing the controller to focus on collecting detailed operational data from the abnormal device, analyzing the cause of the fault, and even executing preliminary fault recovery commands. Compared to manually discovering an anomaly and then manually switching the target device, this automatic locking mechanism significantly reduces the time cost of human intervention. Especially in scenarios with a large number of serial port devices, such as data centers and industrial control systems, it can significantly reduce the maintenance burden on management personnel and prevent the anomaly from escalating due to delays caused by manual operation.

[0119] Furthermore, if switching to other target devices continues after detecting a device malfunction, potential risks must be considered. For example, unstable signals from malfunctioning devices might interfere with the management link of normal devices, causing normal devices to be misjudged as malfunctioning; the controller, handling management tasks for both malfunctioning and normal devices simultaneously, might experience response delays, further exacerbating the problem with the malfunctioning device. Suspending inspections and locking the malfunctioning device can cut off the interference of malfunction signals on the management of other devices, while allowing the controller to handle faults in a more stable state, ensuring the stability of the entire serial port device management system. This approach maintains the systematic nature of the previous management process and improves the speed and reliability of malfunction handling through immediate response and resource focus, enabling the baseboard management controller to manage preset serial port devices with both batch coverage capabilities and the flexibility to handle unexpected problems.

[0120] Alternatively, the baseboard management controller may include a detection module and a switching module.

[0121] The detection module can identify the target serial port device in automatic mode, and the switching module is used to generate specific target switching instructions. The following is an example illustrating the relevant working principles. It should be noted that the detection module's identification of the target serial port device, identification of abnormal serial port devices, and automatic selection of the target serial port device based on the device's operating status can be implemented independently, or at least two of the three can be implemented in combination; no strict limitation is made here.

[0122] As its name suggests, the switching module is used to specifically control the switching of the target interface selected by the control module. The switching module is used to read and write the interface identifier of the target interface to the preset register of the control module, as illustrated in the previous example.

[0123] S204: The detection module checks whether a database event has occurred.

[0124] In this embodiment, when the detection module detects a database event, step S204 can be executed; when the detection module detects no database event, the detection module can select a target serial port device through the aforementioned inspection mode or by automatically selecting a target serial port device based on the device's operating status.

[0125] S205: The detection module uses the preset serial port device associated with the database event as the target serial port device and sends the device identifier of the target serial port device to the switching module.

[0126] S206: The baseboard management controller performs remote management in a specified mode, sending the device identifier of the target serial port device to the switching module.

[0127] In this embodiment, in response to the current mode being the specified mode, the baseboard management controller obtains the preset serial port device specified by the specified mode, uses it as the target serial port device, and sends the device identifier of the target serial port device to the switching module.

[0128] Furthermore, the board management controller can obtain the target serial port identifier carried in the remote management command. The board management controller uses the preset serial port device associated with the device serial port indicated by the target serial port identifier as the target serial port device.

[0129] S207: The switching module generates the target switching instruction.

[0130] In this embodiment, in response to obtaining the device identifier of the target serial port device, the switching module can generate a target switching command carrying information about the target serial port device.

[0131] In this way, the control module can connect the target interface and the management interface internally based on the target switching command to form a target management link.

[0132] like Figure 6The examples shown in the text, Figure 6 This is a schematic diagram of another embodiment of the electronic device of this application. Taking the current target serial port device as the first other serial port device as an example, the control module internally connects its management interface U11 and communication interface U14. Figure 6 The dashed line between the management interface U11 and the communication interface U14 represents the target management link. Thus, the functional serial port (serial port U01) of the substrate management controller is connected and interconnected with the first other control serial port sequentially through the management interface U11 of the control module, the target management link connecting the management interface U11 and the communication interface U14, the communication interface U14, and the device serial port U04 of the substrate management controller connected to the communication interface U14.

[0133] S208: Baseboard Management Controller Maintenance Log File.

[0134] In this embodiment, the baseboard management controller uses data transmitted via the functional serial port as target data. The baseboard management controller redirects the target data to store it as log information in its local log file.

[0135] In layman's terms, the dedicated remote management serial port of the baseboard management controller redirects data from the corresponding device nodes to a log file, allowing all remote management log information to be saved locally on the baseboard management controller in real time. In the automatic mode of the remote management function, when any physical serial interface device (i.e., the preset serial port device) malfunctions or experiences events such as database events, the serial port information of the preset serial port device can be completely saved locally on the baseboard management controller. This significantly and effectively facilitates in-depth analysis and problem localization for development managers and maintenance personnel, thereby further optimizing the performance of the baseboard management controller.

[0136] Therefore, in this embodiment, the detection module first performs database event detection. When the detection module detects a database event, it can proceed to the subsequent target serial port device processing flow for that event. When the detection module does not detect a database event, it can continue with the previous device selection method, that is, periodically switching preset serial port devices according to a preset time interval through a patrol mode, or automatically selecting a suitable target serial port device based on the device's own operating status. This ensures that even without a database event trigger, the selection of the target serial port device remains stable and meets management requirements. In this way, the window period for remote management of preset serial port devices can be reduced, and the preset serial port device selection logic is no longer limited to a single scenario, but can flexibly switch according to the presence or absence of database events, continuing the batch management advantages of the previous patrol mode, and reserving a response channel for special database-related scenarios.

[0137] When the detection module detects a database event, it further identifies the preset serial port device associated with that event as the target serial port device. The device identifier of this target serial port device is then sent to the switching module, providing a clear direction for subsequent device switching and management actions. Simultaneously, the baseboard management controller performs remote management in a designated mode. In this mode, the baseboard management controller also sends the identified target serial port device's device identifier to the switching module. Specifically, when the current management mode is designated mode, the baseboard management controller can obtain the preset serial port device pre-specified in this mode and directly identify it as the target serial port device. Furthermore, the baseboard management controller can also obtain the target serial port identifier carried in the remote management command, and then identify the preset serial port device associated with the device serial port corresponding to the target serial port identifier as the target serial port device. By using two different target device acquisition paths, it ensures that the serial port device to be managed can be accurately located in the designated mode, maintaining consistency with the current mode execution by obtaining the target serial port identifier through the second parameter in the designated mode.

[0138] Furthermore, this embodiment significantly expands the triggering and selection scenarios for target serial port devices. Compared to the management process that solely revolves around periodic polling in the inspection mode and immediate locking of abnormal devices, the addition of database event detection allows for the timely capture and triggering of management actions for device status changes associated with the database. This avoids overlooking database-level device issues due to reliance solely on inspections or abnormal triggers. For example, database events such as device configuration updates and data interaction anomalies can be transformed into specific target device management actions through the detection process, improving the comprehensiveness of remote management functionality. Simultaneously, the two methods for acquiring target serial port devices in the specified mode provide greater flexibility for maintenance personnel. When routine management of fixed devices is required, targets can be quickly determined through pre-specification, reducing the cost of real-time command transmission. When temporary adjustments to the managed object are needed, the target serial port identifier can be dynamically transmitted through remote management commands, allowing target switching without on-site operation, thereby enhancing the convenience of remote management.

[0139] When there are no database events and no device anomalies, the inspection mode ensures batch periodic management of multiple devices. When a device malfunctions, the system pauses the inspection and locks the malfunctioning device. When a database event is detected, the system can quickly locate the associated device through the triggering of the detection module. The designated mode serves as a flexible supplement to meet the precise management needs of specific scenarios. The cooperation of different process links ensures the stability of routine management, responds promptly to anomalies and special database-related situations, and addresses personalized management needs through the designated mode. The multi-scenario coverage and multi-method collaborative management logic reduces the frequency and cost of manual intervention and improves the efficiency and reliability of the baseboard management controller in managing various serial port devices. This allows maintenance personnel to avoid constantly monitoring the status of all devices, as the system automatically triggers corresponding management actions based on different scenarios, improving the orderliness and efficiency of remote management functions and enhancing the adaptability and practicality of the device management system.

[0140] Therefore, the switching mechanism for remote principle functions such as SOL in this embodiment can be widely applied to various baseboard management controllers. It can overcome, to some extent, the situation where the baseboard management controller itself does not support internal second bus protocol routing connections such as UART. Through the combination of the baseboard management controller and the control module, SOL serial port switching can be achieved when multiple preset serial port devices coexist, demonstrating broad compatibility and applicability. Furthermore, in this embodiment, only one remote management service can be started, allowing the remote management of multiple preset serial port devices to be centrally handled within this service. This eliminates the need to separately start the services and configurations corresponding to each preset serial port device's serial port, thereby optimizing the resource utilization of the baseboard management controller and reducing complexity. It also improves the flexibility, convenience, and maintainability of the baseboard management controller in implementing remote management functions, further enhancing the reliability of the baseboard management controller.

[0141] The following section provides a detailed explanation of the principle behind automatically selecting the target serial port device based on the device's operating status.

[0142] The detection module acquires the device's operating status and device logs. Using the device's operating status and device logs as baseline data, the module filters and performs checks to detect whether any database events have occurred.

[0143] For example, in response to a preset serial port device including an electronic device system, the detection module detects whether there is a device-related event in the reference data, so as to determine that there is a data event associated with the electronic device system when a device-related event exists; wherein, the device-related event includes at least one of the following: electronic device crash, electronic device power-on failure, electronic device system power-on, electronic device restart, and basic input / output system update of the electronic device;

[0144] In response to the preset serial port device including the baseboard management controller, the detection module detects whether there is a management attention event in the reference data, so as to determine that there is a data event associated with the electronic device system when a management attention event exists; wherein, the management attention event includes at least one of the following: service restart of the baseboard management controller, watchdog timer of the baseboard management controller anomaly prompt, baseboard management controller startup, baseboard management controller restart, and baseboard management controller update;

[0145] In response to the preset serial port device including other serial port devices, the detection module detects whether there is a serial port attention event in the baseline data, so as to determine that there is a data event associated with other serial port devices when a serial port attention event exists; wherein, the serial port attention event includes at least one of the following: network card abnormality, carrier board system restart of other serial port devices, update of other serial port devices, and carrier board component abnormality.

[0146] In response to a database event, the detection module will use the preset serial port device associated with the database event as the target serial port device.

[0147] The device identifier of the target serial port device is sent to the switching module, which then generates a target switching command. The specific principles governing the determination of database events will be explained in detail later and will not be repeated here.

[0148] If the preset serial port device includes an electronic device system, the detection module will check the baseline data for any device-related events. Once such an event is detected, it will determine that there is a data event associated with the electronic device system. Device-related events include at least one of the following: electronic device crash, electronic device power-on failure, electronic device system power-on, electronic device restart, and electronic device basic input / output system update. When the preset serial port device includes a board management controller, the detection module will check the baseline data for any management-related events. If such an event exists, it will determine that there is a data event associated with the board management controller. Management-related events include at least one of the following: board management controller service restart, board management controller watchdog timer error, board management controller startup, board management controller restart, and board management controller update. If the preset serial port device includes other serial port devices, the detection module will check the baseline data for any serial port-related events. If such an event exists, it will determine that there is a data event associated with other serial port devices. Serial port-related events include at least one of the following: network card malfunction, other serial port device carrier system restart, other serial port device update, and carrier component malfunction.

[0149] By matching specific events of interest to different types of preset serial port devices, the detection module can conduct accurate detection around the core operating scenarios of the devices. For example, for electronic equipment systems, it focuses on key state changes such as power-on and shutdown; for board management controllers, it focuses on management-related anomalies such as service and watchdog timers. This avoids the problem of event omissions or misjudgments that may occur under a unified detection standard. At the same time, the covered events of interest are all in line with the actual operating needs of various devices, and can promptly capture key state changes that affect the normal operation of the devices. This provides accurate data events for subsequent equipment maintenance and troubleshooting, helping managers to quickly grasp the operating status of the devices and improve the timeliness and reliability of serial port device management. It is also compatible with three common types of serial port devices, eliminating the need to design separate detection mechanisms for different devices, thus reducing the complexity and adaptation costs of device monitoring.

[0150] In layman's terms, let's take the remote management function as an example, SOL.

[0151] You can maintain a database event library, which is used to maintain database events that need to be detected to see if they have occurred.

[0152] When the current mode of the remote management function is set to automatic mode, the baseboard management controller can start the detection module. The detection module can perform filtering detection based on the current device operating status (or only the device abnormal status) and device logs. When a database event is detected, it can decide which preset serial port device to switch the remote management function to based on the detection results. That is, it selects which preset serial port device as the target serial port device and transmits the device number and other device identifiers of the target serial port device to the switching module. The switching module can automatically control the switch to the corresponding physical serial port of the device.

[0153] In detail, taking electronic devices as servers as an example, if there are abnormal events related to the server system, such as crashes or boot failures, or if database events such as server system booting, server system restarts, and BIOS (Basic Input Output System) upgrades / updates are detected, the switching module can be instructed to perform a switching action. That is, the baseboard management controller can send instructions to the control module via I2C to connect the serial port of the device associated with the server system (i.e., the serial port of the device connected to the server system) to the functional serial port, so that the server system serial port outputs SOL.

[0154] If abnormal events such as individual service restarts, watchdog alarms, or database events such as baseboard management controller startup, restart, or update / upgrade are detected, the switching module can be instructed to perform a switching action. That is, the baseboard management controller can send a command to the control module via I2C to connect the serial port of the device associated with the baseboard management controller to the functional serial port, so that the physical serial port of the baseboard management controller outputs SOL.

[0155] If a database event is detected in the first other serial port device, such as a smart network card malfunction alarm, a carrier board system restart, component upgrades, or a component failure on the carrier board, the switching module can be instructed to perform a switching action. That is, the baseboard management controller can send a command to the control module via I2C to connect the serial port associated with the first other serial port device to the functional serial port, causing the first other serial port device to output SOL. This process continues in the same manner, and will not be elaborated further here.

[0156] When the electronic device system status monitoring shows no abnormalities and no major database events such as operations, it can selectively enter either energy-saving mode or inspection mode based on user needs, user equipment, adaptive matching, or other methods. Furthermore, in energy-saving mode, while deactivating SOL (stopping SOL from working), the switching of target serial port devices and log recording storage operations are no longer required.

[0157] Furthermore, when multiple preset serial port devices can be used as target serial port devices, the corresponding device serial ports can be switched according to a preset priority order to achieve SOL adaptive switching. The preset priority order can be: electronic device system, other serial port devices, and then the board management controller, in descending order.

[0158] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method.

[0159] Embodiments of this application also provide an electronic device.

[0160] Please see Figure 7 , Figure 7 This is a schematic diagram of the structure of an embodiment of the electronic device of this application.

[0161] In one embodiment, the electronic device may include a memory 31 and a processor 32.

[0162] The memory 31 contains computer programs.

[0163] The processor 32 is configured to run a computer program to perform the steps in any of the above-described embodiments of the device management method.

[0164] In other words, the processor 32 is configured to run a computer program capable of at least executing the baseboard management controller to acquire remote management instructions, identify the target serial port device to be remotely managed as indicated by the remote management instructions; the baseboard management controller generates a target switching instruction carrying information about the target serial port device and sends it to the control module; in response to acquiring the target switching instruction, the control module locates the communication interface between the target serial port device and the control module as the target interface, and acquires the management interface connected to the baseboard management controller; wherein, the baseboard management controller is used to implement remote management functions through the management interface; the control module internally connects the target interface and the management interface to form a target management link; the baseboard management controller remotely manages the target serial port device through the target management link.

[0165] Embodiments of this application also provide a computer-readable storage medium.

[0166] A computer-readable storage medium may store a computer program. This computer program is configured to execute the steps described in any of the above-described device management method embodiments when run.

[0167] In other words, the computer program is configured to at least execute the following at runtime: the baseboard management controller acquires remote management instructions, identifies the target serial port device to be remotely managed as indicated by the remote management instructions; the baseboard management controller generates a target switching instruction carrying information about the target serial port device and sends it to the control module; in response to acquiring the target switching instruction, the control module locates the communication interface between the target serial port device and the control module as the target interface, and acquires the management interface connected to the baseboard management controller; wherein, the baseboard management controller is used to implement remote management functions through the management interface; the control module internally connects the target interface and the management interface to form a target management link; the baseboard management controller remotely manages the target serial port device through the target management link.

[0168] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.

[0169] Embodiments of this application also provide a computer program product.

[0170] The computer program product may include a computer program that, when executed by a processor, implements the steps in any of the above-described device management method embodiments.

[0171] In other words, when the computer program is executed by the processor, it can at least achieve the following: the baseboard management controller obtains remote management instructions and identifies the target serial port device indicated by the remote management instructions for remote management; the baseboard management controller generates a target switching instruction carrying information about the target serial port device and sends it to the control module; in response to obtaining the target switching instruction, the control module locates the communication interface between the target serial port device and the control module as the target interface, and obtains the management interface between the target serial port device and the baseboard management controller; wherein, the baseboard management controller is used to implement remote management functions through the management interface; the control module internally connects the target interface and the management interface to form a target management link; the baseboard management controller remotely manages the target serial port device through the target management link.

[0172] Embodiments of this application also provide another computer program product.

[0173] The computer program product may include a non-volatile computer-readable storage medium that stores a computer program, which, when executed by a processor, implements the steps in any of the above-described device management method embodiments.

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

[0175] The above provides a detailed description of a device management method and electronic device provided in this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the embodiments above are only intended to help understand the method and core ideas of this application. It should be noted that those skilled in the art can make various improvements and modifications to this application without departing from its principles, and these improvements and modifications also fall within the protection scope of this application.

Claims

1. A method for managing equipment, characterized in that, The equipment management method includes: The baseboard management controller acquires remote management commands and identifies the target serial port device to be remotely managed as indicated by the remote management commands; The baseboard management controller generates a target switching command carrying information about the target serial port device and sends it to the control module. In response to receiving the target switching command, the control module locates the communication interface between the target serial port device and the control module as the target interface, and obtains the management interface between the target serial port device and the baseboard management controller; wherein, the baseboard management controller is used to implement remote management functions through the management interface; The control module internally connects the target interface and the management interface to form a target management link; The baseboard management controller remotely manages the target serial port device through the target management link; The baseboard management controller generates a target switching command carrying information about the target serial port device and sends it to the control module, including: The baseboard management controller reads the serial port control bits of the preset register in the control module through the first bus protocol; The baseboard management controller obtains the target interface of the target serial port device connected to the control module and writes the interface identifier of the target interface into the serial port control bit; The baseboard management controller includes a functional serial port and one or more device serial ports. The device serial ports are connected to the communication interface of the control module. The functional serial port is used to implement remote management functions, and the device serial port is used to remotely manage its associated preset serial port devices when it is connected to the functional serial port. The target serial port device is one of the preset serial port devices. The functional serial port is physically isolated from other serial port devices; wherein, the other serial port devices refer to serial port devices other than the control module.

2. The equipment management method according to claim 1, characterized in that, The baseboard management controller remotely manages the target serial port device through the target management link, including: The baseboard management controller generates remote management commands and transmits the remote management commands to the management interface of the control module via the functional serial port; The control module obtains the remote management command input from the management interface, transmits it to the target interface through the target management link, and then transmits it to the target device serial port via the target interface, so as to transmit the remote management command to the target serial port device; wherein, the target device serial port refers to the device serial port associated with the target interface and the target serial port device.

3. The equipment management method according to claim 2, characterized in that, The preset serial port device includes one or more of a baseboard management controller, an electronic device system, and other serial port devices; wherein, when the electronic device system and the other serial port devices are used as the preset serial port device, the associated device serial port is also connected to them; The remote management function is implemented through a second bus protocol, which communicates via a transmit line and a receive line. The control module internally connects the target interface and the management interface to form a target management link, including: In response to the target serial port device being the baseboard management controller, the serial port of the device associated with the baseboard management controller is used as the interface to be accessed, the input terminal of the target interface connected to the interface to be accessed is connected to the output terminal of the management interface, and the output terminal of the target interface connected to the interface to be accessed is connected to the input terminal of the management interface. In response to the target serial port device being the electronic device system, the input terminal of the target interface associated with the electronic device system is connected to the output terminal of the management interface, and the output terminal of the target interface associated with the electronic device system is connected to the input terminal of the management interface; In response to the target serial port device being the other serial port device, the input terminal of the target interface connected to the other serial port device is connected to the output terminal of the management interface, and the output terminal connected to the other serial port device is connected to the input terminal of the management interface.

4. The equipment management method according to claim 1, characterized in that, The baseboard management controller includes a detection module for remote management functions and a switching module; the target serial port device for remote management as indicated by the remote management command includes: The baseboard management controller identifies the current mode indicated by the remote management command; In response to the current mode being automatic mode, the baseboard management controller obtains the device operating status of the electronic device set by the baseboard management controller; The detection module acquires the device's operating status and device logs; The detection module uses the device operating status and the device log as benchmark data to filter and detect whether a database event has occurred. In response to the occurrence of the database event, the detection module uses a preset serial port device associated with the database event as the target serial port device and sends the device identifier of the target serial port device to the switching module, so that the switching module generates the target switching command.

5. The equipment management method according to claim 4, characterized in that, The detection of whether a database event has occurred includes: In response to the preset serial port device including an electronic device system, the detection module detects whether there is a device attention event in the reference data, so as to determine that there is a data event associated with the electronic device system when the device attention event exists; wherein, the device attention event includes at least one of electronic device crash, electronic device power-on failure, electronic device system power-on, electronic device restart, and basic input / output system update of the electronic device; In response to the preset serial port device including the baseboard management controller, the detection module detects whether there is a management concern event in the reference data, so as to determine that there is a data event associated with the electronic device system when the management concern event exists; wherein, the management concern event includes at least one of the following: service restart of the baseboard management controller, watchdog timer error of the baseboard management controller, startup of the baseboard management controller, restart of the baseboard management controller, and update of the baseboard management controller; In response to the preset serial port device including other serial port devices, the detection module detects whether there is a serial port attention event in the reference data, so as to determine that there is a data event associated with the other serial port device when the serial port attention event exists; wherein, the serial port attention event includes at least one of network card abnormality, carrier board system restart of the other serial port device, update of the other serial port device, and carrier board component abnormality.

6. The equipment management method according to claim 4, characterized in that, The response following the current mode being automatic mode further includes: The baseboard management controller acquires the sub-mode instruction of the automatic mode; In response to the sub-mode instruction indicating the inspection mode, the baseboard management controller periodically switches each preset serial port device as the target serial port device at preset inspection intervals.

7. The equipment management method according to claim 6, characterized in that, The response after the current mode is automatic mode also includes: In response to the detection of a preset serial port device with abnormal operation, the baseboard management controller identifies the preset serial port device with abnormal operation as an abnormal serial port device. The baseboard management controller identifies the abnormal serial port device as the target serial port device and suspends the inspection mode.

8. The equipment management method according to claim 4, characterized in that, The response following the current mode being automatic mode further includes: The baseboard management controller acquires the sub-mode instruction of the automatic mode; In response to the sub-mode instruction indicating an energy-saving mode, the baseboard management controller suspends the remote management function.

9. The equipment management method according to claim 1, characterized in that, The target serial port device for remote management as indicated by the remote management command includes: The baseboard management controller identifies the current mode indicated by the remote management command; In response to the current mode being a specified mode, the baseboard management controller obtains the preset serial port device specified by the specified mode and uses it as the target serial port device.

10. The equipment management method according to claim 9, characterized in that, The baseboard management controller includes a device serial port, which is associated with the preset serial port device; The baseboard management controller acquires the preset serial port device specified by the specified mode, including: The baseboard management controller acquires the target serial port identifier carried by the remote management command; The baseboard management controller uses the preset serial port device associated with the device serial port indicated by the target serial port identifier as the target serial port device.

11. The equipment management method according to claim 4 or 9, characterized in that, After the baseboard management controller receives the remote management command, it includes: The baseboard management controller locates the first parameter of the remote management command; In response to the first parameter being an automatic mode identifier, the baseboard management controller determines that the current mode is automatic mode; In response to the first parameter being a specified mode identifier, the baseboard management controller determines that the current mode is the specified mode, obtains the second parameter of the remote management command, and identifies the target serial port identifier of the second parameter.

12. The equipment management method according to claim 1, characterized in that, Before the substrate management controller receives remote management commands, it also includes: The baseboard management controller initializes the remote management function and obtains a configuration file. The baseboard management controller reads the serial port corresponding to the remote management function in the configuration file, loads it as the function serial port, initializes the remote management function, and enables the remote management function to acquire data from the function serial port after it is started.

13. The equipment management method according to claim 1, characterized in that, The baseboard management controller includes a serial port for implementing remote management functions; The baseboard management controller remotely manages the target serial port device through the target management link, including: The baseboard management controller uses the data transmitted through the functional serial port as the target data; The baseboard management controller redirects the target data to store it as log information in a local log file of the baseboard management controller.

14. An electronic device, characterized in that, The electronic device includes: Memory, used to store computer programs; A processor for executing the computer program to implement the steps of the device management method as described in any one of claims 1 to 13.

Citation Information

Patent Citations

  • Implementation method and system for redirecting serial port to far-end equipment, equipment and medium

    CN116932449A