CN117076356A - Instruction sending method and device, substrate management controller and storage medium - Google Patents

Instruction sending method and device, substrate management controller and storage medium Download PDF

Info

Publication number
CN117076356A
CN117076356A CN202311047672.3A CN202311047672A CN117076356A CN 117076356 A CN117076356 A CN 117076356A CN 202311047672 A CN202311047672 A CN 202311047672A CN 117076356 A CN117076356 A CN 117076356A
Authority
CN
China
Prior art keywords
target
equipment
information
control bus
instruction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311047672.3A
Other languages
Chinese (zh)
Inventor
李倩倩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202311047672.3A priority Critical patent/CN117076356A/en
Publication of CN117076356A publication Critical patent/CN117076356A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/36Handling requests for interconnection or transfer for access to common bus or bus system

Abstract

The embodiment of the application provides a method and a device for sending instructions, a baseboard management controller and a storage medium, wherein the method is applied to the baseboard management controller and comprises the following steps: acquiring a target instruction sent by target equipment; responding to the target instruction and sending target information matched with the current demand information to target equipment through a first control bus under the condition that the target instruction is an instruction of a first type so as to instruct the target equipment to execute operation according to the target information; and in the process of transmitting the target information to the target equipment through the first control bus, acquiring other instructions sent by other equipment through the second control bus. The application solves the problem that the baseboard management controller in the related technology can not timely acquire the operation information of the equipment in the server, and achieves the effect that the baseboard management controller can timely and effectively acquire the operation information of the equipment in the server.

Description

Instruction sending method and device, substrate management controller and storage medium
Technical Field
The embodiment of the application relates to the field of computers, in particular to a method and a device for sending instructions, a baseboard management controller and a storage medium.
Background
With the explosion of short video and social software, chat GPT (chat robot based on the GPT (generated Pre-trained Transformer) model) concepts are increasing in popularity, which all present new challenges to the server industry. In order to make the server operate at a higher rate and have a larger memory space, the server is provided with a larger number of high-performance central processing units (Central Processing Unit, abbreviated as CPUs), graphics processors (Graphics Processing Unit, abbreviated as GPUs), hard disks, and the like. The more high power consumption devices, the more complex the architecture, and the more critical the monitoring of the operation of the device. The operation information of each device can be accurately obtained in real time, corresponding operation can be effectively performed based on the operation information, and the device is prevented from being failed (for example, the system is down or even is shut down due to over-temperature). Is a problem which needs to be solved at present.
In the current hardware design, a baseboard management controller (Board Management Controller, abbreviated as BMC) acquires real-time operation information of each device through an I2C bus, and under normal conditions, the BMC can acquire the operation information (for example, temperature) of each device in real time; however, there are special cases where the BMC cannot acquire information in real time. For example, when a device is performing a complex operation (e.g., performing a software upgrade), the I2C bus under the same bus is occupied within a few minutes of its performing the complex operation, resulting in an inability to read the operation information of other devices.
Disclosure of Invention
The embodiment of the application provides a method and a device for sending instructions, a baseboard management controller and a storage medium, which at least solve the problem that the baseboard management controller in the related art cannot acquire operation information of equipment in a server in time.
According to an embodiment of the present application, there is provided an instruction transmitting method including: acquiring a target instruction sent by target equipment, wherein the target instruction comprises running information of the target equipment and current demand information of the target equipment; responding to the target instruction and sending target information matched with the current demand information to the target equipment through a first control bus under the condition that the target instruction is an instruction of a first type so as to instruct the target equipment to execute operation according to the target information; and in the process of transmitting the target information to the target device through the first control bus, acquiring other instructions sent by other devices through a second control bus, wherein the other instructions are of a second type, the other instructions comprise operation information of the other devices and current demand information of the other devices, and the other devices and the target device are devices connected to the same bus.
According to an embodiment of the present application, there is provided an instruction transmitting apparatus including: the first acquisition module is used for acquiring a target instruction sent by target equipment, wherein the target instruction comprises the running information of the target equipment and the current demand information of the target equipment; the response module is used for responding to the target instruction and sending target information matched with the current demand information to the target equipment through a first control bus so as to instruct the target equipment to execute operation according to the target information when the target instruction is an instruction of a first type; and the second acquisition module is used for acquiring other instructions sent by other devices through a second control bus in the process of transmitting the target information to the target device through the first control bus, wherein the other instructions are of a second type, the other instructions comprise operation information of the other devices and current demand information of the other devices, and the other devices and the target device are devices connected to the same bus.
In an exemplary embodiment, the response module includes a first response unit, configured to, when the first type of instruction is a software upgrade instruction and the current requirement information of the target device includes upgrading a target application in the target device, obtain, in response to the target instruction, software upgrade information matched with the target application; a first transmitting unit, configured to transmit the software upgrade information to a multiplexer through the first control bus; and a second sending unit, configured to send, through the multiplexer, the software upgrade information to the target device, so as to instruct the target device to perform an upgrade operation on the target application according to the software upgrade information, where after the first control bus transmits the software upgrade information to the target device, the first control bus is in an idle state, and the other devices are allowed to transmit instructions.
In an exemplary embodiment, the above apparatus further includes: the first receiving module is used for receiving an upgrade result instruction sent by the target device through the first control bus or the second control bus after the software upgrade information is sent to the target device through the multiplexer; the first determining module is used for acquiring real-time operation information of the target device through the first control bus or the second control bus when the target device is determined to finish upgrading the target application from the upgrading result instruction; and the second determining module is used for sending the software upgrading information to the target equipment again through the first control bus or sending an abnormality prompt to prompt that the target equipment is in an abnormal state under the condition that the target equipment is determined to upgrade the target application abnormality from the upgrading result instruction.
In an exemplary embodiment, the second obtaining module includes: the first determining unit is used for determining an exception handling mode matched with exception information when the second type of instruction is an instruction for monitoring equipment operation and determining that the operation of the other equipment is abnormal from the operation information of the other equipment; the first sending unit is used for sending the exception handling mode to the multiplexer through the second control bus; and the second sending unit is used for sending the exception handling mode to the other equipment through the multiplexer so as to instruct the other equipment to handle exceptions according to the exception handling mode.
In an exemplary embodiment, the above apparatus further includes: the first processing module is configured to, when the second type of instruction is an instruction for monitoring operation of the device and determining that an abnormality exists in operation of the other device from operation information of the other device, after determining that an abnormality processing mode matched with the abnormality information, allow the abnormality processing mode to be sent to the multiplexer through the first control bus when determining that the first control bus is in an idle state.
In an exemplary embodiment, the above apparatus further includes: a third obtaining module, configured to obtain a device type of each device on the bus before obtaining a target instruction sent by a target device, where the bus is connected to a plurality of devices; the first classification module is used for classifying the plurality of devices according to the device type of each device to obtain a classification result; and the first distribution module is used for distributing a control bus capable of transmitting instructions to each device according to the classification result, wherein the control bus comprises the first control bus and the second control bus.
In an exemplary embodiment, the first control bus and the second control bus are each an I2C bus, and the first control bus and the second control bus are each connected to a multiplexer for establishing a connection between the baseboard management controller and a plurality of devices on the buses, the plurality of devices including the target device and the other devices.
According to an embodiment of the present application, there is provided a baseboard management controller including: a first control bus and a second control bus, wherein the first control bus is connected with a target device through a multiplexer, the target device is a device for transmitting a first type of target instruction, the multiplexer is used for establishing connection between the baseboard management controller and a plurality of devices on the bus, and the plurality of devices comprise the target device and other devices; the second control bus is connected to the other devices through the multiplexer, wherein the other devices are devices transmitting other instructions of a second type.
According to a further embodiment of the application, there is also provided a computer readable storage medium having stored therein a computer program, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
According to a further embodiment of the application there is also provided an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
According to the application, as the corresponding control bus is configured according to the type of the target instruction sent by the target device, in the process of transmitting information to the target device, other devices can transmit information through other control buses, and the information transmission is not lost due to only one bus, so that the baseboard management controller can acquire the device information of all the devices in real time. Therefore, the problem that the baseboard management controller in the related technology cannot timely acquire the operation information of the equipment in the server can be solved, and the effect that the baseboard management controller can timely and effectively acquire the operation information of the equipment in the server is achieved.
Drawings
Fig. 1 is a block diagram of a hardware structure of a mobile terminal of an instruction transmission method according to an embodiment of the present application;
FIG. 2 is a flow chart of an instruction issue method according to an embodiment of the present application;
FIG. 3 is a block diagram of an overall connection structure according to an embodiment of the present application;
FIG. 4 is a schematic diagram of the transmission of information between various devices according to an embodiment of the application;
FIG. 5 is a flow chart of the transmission of long and short instructions according to an embodiment of the present application;
fig. 6 is a block diagram of the structure of an instruction transmitting apparatus according to an embodiment of the present application.
Detailed Description
Embodiments of the present application will be described in detail below with reference to the accompanying drawings in conjunction with the embodiments.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the embodiments of the present application may be performed in a mobile terminal, a computer terminal or similar computing device. Taking the mobile terminal as an example, fig. 1 is a block diagram of a hardware structure of the mobile terminal according to an instruction sending method in an embodiment of the present application. As shown in fig. 1, a mobile terminal may include one or more (only one is shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 for communication functions and an input-output device 108. It will be appreciated by those skilled in the art that the structure shown in fig. 1 is merely illustrative and not limiting of the structure of the mobile terminal described above. For example, the mobile terminal may also include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 1.
The memory 104 may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to an instruction sending method in an embodiment of the present application, and the processor 102 executes the computer program stored in the memory 104, thereby performing various functional applications and data processing, that is, implementing the method described above. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory remotely located relative to the processor 102, which may be connected to the mobile terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, simply referred to as NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is configured to communicate with the internet wirelessly.
In this embodiment, there is provided an instruction sending method, and fig. 2 is a flowchart of the instruction sending method according to an embodiment of the present application, as shown in fig. 2, the flowchart includes the following steps:
step S202, a target instruction sent by target equipment is obtained, wherein the target instruction comprises operation information of the target equipment and current demand information of the target equipment;
step S204, in the case that the target instruction is an instruction of a first type, responding to the target instruction, and sending target information matched with the current demand information to the target equipment through a first control bus so as to instruct the target equipment to execute operation according to the target information;
in step S206, in the process of transmitting the target information to the target device through the first control bus, other instructions sent by other devices are obtained through the second control bus, where the other instructions are the second type of instructions, and the other instructions include operation information of the other devices and current requirement information of the other devices, and the other devices and the target device are devices connected to the same bus.
The main execution body of the steps can be applied to the baseboard management controller.
Through the steps, as the corresponding control buses are configured according to the types of the target instructions sent by the target equipment, in the process of transmitting information to the target equipment, other equipment can transmit information through other control buses, information transmission is not lost due to only one bus, and the baseboard management controller can acquire equipment information of all the equipment in real time. Therefore, the problem that the baseboard management controller in the related technology cannot timely acquire the operation information of the equipment in the server can be solved, and the effect that the baseboard management controller can timely and effectively acquire the operation information of the equipment in the server is achieved.
Alternatively, the target device includes, but is not limited to, various devices running in a server, e.g., a CPU, GPU, storage device, etc. The operation information of the target device includes various information generated during the operation of the target device, for example, temperature information generated during the operation, frequency of the operation, speed of the operation, and the like. The current need information for the target device includes, but is not limited to, the need to upgrade the software applications in the device, the need to transfer larger data, etc.
Optionally, the first type of instruction includes instructions that require transmission of relatively more data, e.g., instructions that transmit software upgrade information, instructions that transmit larger data packets, etc. The second type of instruction includes an instruction to transmit smaller data, for example, an instruction to transmit only temperature information of the device. The software upgrade information includes, but is not limited to, a packet for upgrading the firewall FW in the device, and may be a packet for upgrading other software.
Optionally, the first control bus and the second control bus may be I2C buses, and the first control bus and the second control bus are connected to a multiplexer, where the multiplexer is configured to establish a connection between the baseboard management controller and a plurality of devices on the buses, where the plurality of devices includes a target device and other devices. A multiplexer is a device with multiplexing functions, for example MUX (Multiplexer). The multiplexer is used for distributing different bus interfaces for data transmission based on different instruction types.
Optionally, in a specific embodiment, the connection relationship among the baseboard management controller BMC, the plurality of devices (including the target device and other devices), and the MUX is shown in fig. 3.
BMC may be a control unit such as AST2500 or AST2600 chip. The bus type of the BMC connection is I2C. The BMC outputs 2I 2C (I2C 1 and I2C 2) interfaces with the respective devices (devices). The BMC reads information of each device through the I2C and upgrades FW of each device.
The I2C MUX control unit may be implemented in software. The software aspects may be implemented internally in the BMC or in the programmable logic device CPLD. I2C1 and I2C2 are used as two main channels Master, I2C1 can be used as a long-time command input channel, and I2C2 can be used as a short-time command input channel. When a device needs to perform a long-time command (e.g., device a needs to perform FW upgrade), the BMC defaults to performing FW upgrade on device a through the I2C1 channel, and short-time command inputs of the other 7 devices are performed through the I2C2 channel. Therefore, the problem that the BMC cannot acquire information of other devices due to the fact that the device A occupies a bus channel in the FW upgrading process is avoided.
The number of the devices is increased or decreased according to actual demands by 8 devices marked in fig. 3. However, the slave addresses of 8 devices cannot be repeated, otherwise, there is a problem of information access disorder.
In one exemplary embodiment, in a case where the target instruction is an instruction of a first type, responding to the target instruction and transmitting target information matched with the current demand information to the target device through the first control bus to instruct the target device to perform an operation according to the target information, including: under the condition that the first type of instruction is a software upgrading instruction and the current demand information of the target equipment comprises upgrading the target application in the target equipment, responding to the target instruction and acquiring software upgrading information matched with the target application; transmitting the software upgrade information to the multiplexer through the first control bus; and sending the software upgrading information to the target device through the multiplexer so as to instruct the target device to execute upgrading operation on the target application according to the software upgrading information, wherein after the first control bus transmits the software upgrading information to the target device, the first control bus is in an idle state, and other devices are allowed to transmit instructions. In this embodiment, the software upgrade instruction includes an instruction to upgrade each application program in the device, for example, when an instruction to upgrade the FM in the target device is received, the FM-related software upgrade information is transmitted to the multiplexer through the first control bus, and the multiplexer transmits the software upgrade information to the target device. After the transmission is completed, the first control bus can continue to transmit the operation information of other devices, so that the real-time transmission of the operation information of the devices can be ensured, and the devices are monitored in real time.
Optionally, after the software upgrade information is sent to the target device through the multiplexer, the method further includes: receiving an upgrade result instruction sent by target equipment through a first control bus or a second control bus; under the condition that the target equipment finishes upgrading the target application from the upgrading result instruction, acquiring real-time operation information of the target equipment through the first control bus or the second control bus; and under the condition that the target equipment is determined to upgrade the target application abnormally from the upgrade result instruction, the software upgrade information is sent to the target equipment again through the first control bus, or an abnormality prompt is sent to prompt that the target equipment is in an abnormal state. In this embodiment, the upgrade result instruction includes, but is not limited to, upgrade completion information, and after upgrade is completed, operation information of the device is continuously obtained through the first control bus or the second control bus, so as to monitor the device in real time. And if the upgrade fails, the software upgrade information is sent again through the first control bus, or other control buses are selected for retransmission. Thereby ensuring the effective transmission of the upgrade information.
Optionally, the abnormal prompt can be sent out in a voice mode, and the abnormal information can be transmitted to the display device for display.
Alternatively, as shown in fig. 4, in a specific embodiment of the present embodiment, when the device a needs to perform FM upgrade, FM upgrade information of the device a is transmitted through the I2C 1. The operation information of other devices is transmitted through the I2C 2. The upgrade of device a does not affect the transmission of operational information by other devices.
In an exemplary embodiment, in a process of transmitting target information to a target device through a first control bus, acquiring other instructions sent by other devices through a second control bus, including: determining an exception handling mode matched with exception information under the condition that the second type of instruction is an instruction for monitoring the running of the equipment and the running of other equipment is determined to be abnormal from the running information of other equipment; transmitting the exception handling mode to the multiplexer through a second control bus; and sending the exception handling mode to other equipment through the multiplexer so as to instruct the other equipment to handle the exception according to the exception handling mode. In this embodiment, the exception handling mode includes, but is not limited to, sending an exception handling mode to other devices, or issuing an exception prompt. For example, in the event of an excessive temperature of the device, the fan speed is adjusted, or the operation of the device is shut down. And the system is prevented from being down and even being shut down due to over-temperature of equipment. According to the embodiment, the normal operation of the equipment can be effectively ensured by acquiring the operation information of the equipment in real time and making an abnormal response in real time.
Optionally, after determining the exception handling mode matched with the exception information, in the case that the second type of instruction is an instruction for monitoring the operation of the device and it is determined that the operation of the other device is abnormal from the operation information of the other device, the method further includes: in the event that it is determined that the first control bus is in an idle state, the exception handling mode is allowed to be sent to the multiplexer via the first control bus. In this embodiment, the first control bus has not only a function of transmitting a large data packet but also a function of switching to transmit other device information by control of the MUX.
In an exemplary embodiment, before obtaining the target instruction sent by the target device, the method further includes: acquiring the device type of each device on a bus, wherein a plurality of devices are connected on the bus; classifying the plurality of devices according to the device type of each device to obtain a classification result; and allocating a control bus capable of transmitting instructions to each device according to the classification result, wherein the control bus comprises a first control bus and a second control bus. In this embodiment, the types of devices may be divided by function. For example, the devices that often need to be upgraded are classified into one type by an operator, a controller, a memory, an input device, and an output device, or the devices that are not often used are classified into one type. By classifying the devices, the transmission buses can be accurately distributed, and real-time transmission of data is ensured.
Alternatively, in one embodiment, as shown in fig. 5, the transmission instruction is divided into a long-term instruction and a short-term instruction according to the duration of the transmission instruction. The BMC classifies the equipment which needs to execute the long-term instruction and the equipment which needs to execute the short-term instruction according to the type of the current issued instruction, the equipment which needs to execute the long-term instruction interacts with the BMC through the I2C1, and the equipment which needs to execute the short-term instruction interacts with the BMC through the I2C 2. In any scene, the BMC can classify a plurality of devices according to long commands (FW upgrade) and short commands (read temperature and the like) based on the I2C Switch of double-input and multiple-output of long-short commands, so that the devices of the long commands and the short commands can be accessed under different BUS BUS respectively, and the situation that the short commands cannot be executed when the long commands are being executed is avoided, and machine error reporting is caused. The situation that short-time commands of other devices cannot be executed when a plurality of devices mounted under the same I2C BUS execute the long-time commands can be effectively avoided.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present application.
The embodiment also provides an instruction sending device, which is used for implementing the above embodiment and the preferred implementation manner, and is not described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
Fig. 6 is a block diagram showing the structure of an instruction transmitting apparatus according to an embodiment of the present application, as shown in fig. 6, the apparatus including:
a first obtaining module 62, configured to obtain a target instruction sent by a target device, where the target instruction includes operation information of the target device and current requirement information of the target device;
a response module 64, configured to respond to the target instruction if the target instruction is an instruction of a first type, and send target information matched with the current demand information to the target device through a first control bus, so as to instruct the target device to perform an operation according to the target information;
and a second obtaining module 66, configured to obtain, through a second control bus, other instructions sent by other devices during the process of transmitting the target information to the target device through the first control bus, where the other instructions are instructions of the second type, and the other instructions include operation information of the other devices and current requirement information of the other devices, and the other devices and the target device are devices connected on the same bus.
By the device, the corresponding control buses are configured according to the types of the target instructions sent by the target equipment, and in the process of transmitting information to the target equipment, other equipment can transmit information through other control buses, information transmission is not lost due to only one bus, and the baseboard management controller can acquire equipment information of all equipment in real time. Therefore, the problem that the baseboard management controller in the related technology cannot timely acquire the operation information of the equipment in the server can be solved, and the effect that the baseboard management controller can timely and effectively acquire the operation information of the equipment in the server is achieved.
In an exemplary embodiment, the response module includes a first response unit, configured to, when the first type of instruction is a software upgrade instruction and the current requirement information of the target device includes upgrading a target application in the target device, obtain, in response to the target instruction, software upgrade information matched with the target application; a first transmitting unit, configured to transmit the software upgrade information to a multiplexer through the first control bus; and a second sending unit, configured to send, through the multiplexer, the software upgrade information to the target device, so as to instruct the target device to perform an upgrade operation on the target application according to the software upgrade information, where after the first control bus transmits the software upgrade information to the target device, the first control bus is in an idle state, and the other devices are allowed to transmit instructions.
In an exemplary embodiment, the above apparatus further includes: the first receiving module is used for receiving an upgrade result instruction sent by the target device through the first control bus or the second control bus after the software upgrade information is sent to the target device through the multiplexer; the first determining module is used for acquiring real-time operation information of the target device through the first control bus or the second control bus when the target device is determined to finish upgrading the target application from the upgrading result instruction; and the second determining module is used for sending the software upgrading information to the target equipment again through the first control bus or sending an abnormality prompt to prompt that the target equipment is in an abnormal state under the condition that the target equipment is determined to upgrade the target application abnormality from the upgrading result instruction.
In an exemplary embodiment, the second obtaining module includes: the first determining unit is used for determining an exception handling mode matched with exception information when the second type of instruction is an instruction for monitoring equipment operation and determining that the operation of the other equipment is abnormal from the operation information of the other equipment; the first sending unit is used for sending the exception handling mode to the multiplexer through the second control bus; and the second sending unit is used for sending the exception handling mode to the other equipment through the multiplexer so as to instruct the other equipment to handle exceptions according to the exception handling mode.
In an exemplary embodiment, the above apparatus further includes: the first processing module is configured to, when the second type of instruction is an instruction for monitoring operation of the device and determining that an abnormality exists in operation of the other device from operation information of the other device, after determining that an abnormality processing mode matched with the abnormality information, allow the abnormality processing mode to be sent to the multiplexer through the first control bus when determining that the first control bus is in an idle state.
In an exemplary embodiment, the above apparatus further includes: a third obtaining module, configured to obtain a device type of each device on the bus before obtaining a target instruction sent by a target device, where the bus is connected to a plurality of devices; the first classification module is used for classifying the plurality of devices according to the device type of each device to obtain a classification result; and the first distribution module is used for distributing a control bus capable of transmitting instructions to each device according to the classification result, wherein the control bus comprises the first control bus and the second control bus.
In an exemplary embodiment, the first control bus and the second control bus are each an I2C bus, and the first control bus and the second control bus are each connected to a multiplexer for establishing a connection between the baseboard management controller and a plurality of devices on the buses, the plurality of devices including the target device and the other devices.
According to an embodiment of the present application, there is provided a baseboard management controller including: a first control bus and a second control bus, wherein,
the first control bus is connected with a target device through a multiplexer, wherein the target device is a device for transmitting a first type of target instruction, the multiplexer is used for establishing connection between the baseboard management controller and a plurality of devices on the bus, and the plurality of devices comprise the target device and other devices;
the second control bus is connected to the other devices through the multiplexer, wherein the other devices are devices transmitting other instructions of a second type.
By means of the baseboard management controller, the plurality of control buses are arranged on the basic controller, the corresponding control buses are configured according to the types of target instructions sent by the target equipment, in the process of transmitting information to the target equipment, other equipment can transmit information through other control buses, information transmission loss caused by only one bus is avoided, and the baseboard management controller can acquire equipment information of all the equipment in real time. Therefore, the problem that the baseboard management controller in the related technology cannot timely acquire the operation information of the equipment in the server can be solved, and the effect that the baseboard management controller can timely and effectively acquire the operation information of the equipment in the server is achieved.
It should be noted that each of the above modules may be implemented by software or hardware, and for the latter, it may be implemented by, but not limited to: the modules are all located in the same processor; alternatively, the above modules may be located in different processors in any combination.
Embodiments of the present application also provide a computer readable storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
In one exemplary embodiment, the computer readable storage medium may include, but is not limited to: a usb disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing a computer program.
An embodiment of the application also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
In an exemplary embodiment, the electronic device may further include a transmission device connected to the processor, and an input/output device connected to the processor.
Specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the exemplary implementation, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the application described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may be implemented in program code executable by computing devices, so that they may be stored in a storage device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps of them may be fabricated into a single integrated circuit module. Thus, the present application is not limited to any specific combination of hardware and software.
The above description is only of the preferred embodiments of the present application and is not intended to limit the present application, but various modifications and variations can be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the principle of the present application should be included in the protection scope of the present application.

Claims (11)

1. An instruction sending method applied to a baseboard management controller is characterized by comprising the following steps:
acquiring a target instruction sent by target equipment, wherein the target instruction comprises running information of the target equipment and current demand information of the target equipment;
responding to the target instruction and sending target information matched with the current demand information to the target equipment through a first control bus under the condition that the target instruction is an instruction of a first type so as to instruct the target equipment to execute operation according to the target information;
and in the process of transmitting the target information to the target equipment through the first control bus, acquiring other instructions sent by other equipment through a second control bus, wherein the other instructions are of a second type, the other instructions comprise operation information of the other equipment and current demand information of the other equipment, and the other equipment and the target equipment are equipment connected to the same bus.
2. The method of claim 1, wherein responding to the target instruction and sending target information matching the current demand information to the target device via a first control bus to instruct the target device to perform an operation according to the target information if the target instruction is an instruction of a first type, comprises:
under the condition that the first type of instruction is a software upgrading instruction and the current demand information of the target equipment comprises upgrading the target application in the target equipment, responding to the target instruction and acquiring software upgrading information matched with the target application;
transmitting the software upgrade information to a multiplexer through the first control bus;
and sending the software upgrading information to the target device through the multiplexer so as to instruct the target device to execute upgrading operation on the target application according to the software upgrading information, wherein after the first control bus transmits the software upgrading information to the target device, the first control bus is in an idle state, and the other devices are allowed to transmit instructions.
3. The method of claim 2, wherein after the software upgrade information is sent to the target device by the multiplexer, the method further comprises:
receiving an upgrade result instruction sent by the target device through the first control bus or the second control bus;
under the condition that the target equipment finishes upgrading the target application according to the upgrading result instruction, acquiring real-time operation information of the target equipment through the first control bus or the second control bus;
and under the condition that the target equipment upgrades the abnormality of the target application, the software upgrading information is sent to the target equipment again through the first control bus, or an abnormality prompt is sent to prompt that the target equipment is in an abnormal state.
4. The method of claim 1, wherein during the transmission of the target information to the target device via the first control bus, obtaining further instructions sent by further devices via a second control bus, comprises:
determining an exception handling mode matched with exception information under the condition that the second type of instruction is an instruction for monitoring equipment operation and the operation of other equipment is determined to be abnormal from the operation information of the other equipment;
sending the exception handling mode to a multiplexer through the second control bus;
and sending the exception handling mode to the other equipment through the multiplexer so as to instruct the other equipment to handle the exception according to the exception handling mode.
5. The method according to claim 4, wherein, in the case where the second type of instruction is an instruction for monitoring operation of a device, and it is determined from operation information of the other device that there is an abnormality in operation of the other device, after determining an abnormality processing manner matching with the abnormality information, the method further comprises:
and allowing the exception handling mode to be sent to a multiplexer through the first control bus under the condition that the first control bus is determined to be in an idle state.
6. The method of claim 1, wherein prior to obtaining the target instruction sent by the target device, the method further comprises:
acquiring the device type of each device on the bus, wherein a plurality of devices are connected on the bus;
classifying a plurality of devices according to the device type of each device to obtain a classification result;
and allocating a control bus capable of transmitting instructions to each device according to the classification result, wherein the control bus comprises the first control bus and the second control bus.
7. The method of any of claims 1-6, wherein the first control bus and the second control bus are each an I2C bus, the first control bus and the second control bus each being connected to a multiplexer for establishing a connection between the baseboard management controller and a plurality of devices on the bus, the plurality of devices including the target device and the other device.
8. An instruction transmitting apparatus, comprising:
the first acquisition module is used for acquiring a target instruction sent by target equipment, wherein the target instruction comprises running information of the target equipment and current demand information of the target equipment;
the response module is used for responding to the target instruction and sending target information matched with the current demand information to the target equipment through a first control bus under the condition that the target instruction is an instruction of a first type so as to instruct the target equipment to execute operation according to the target information;
and the second acquisition module is used for acquiring other instructions sent by other equipment through a second control bus in the process of transmitting the target information to the target equipment through the first control bus, wherein the other instructions are of a second type, the other instructions comprise operation information of the other equipment and current demand information of the other equipment, and the other equipment and the target equipment are equipment connected to the same bus.
9. A baseboard management controller, comprising: a first control bus and a second control bus, wherein,
the first control bus is connected with a target device through a multiplexer, wherein the target device is a device for transmitting a first type of target instruction, the multiplexer is used for establishing connection between the baseboard management controller and a plurality of devices on the bus, and the plurality of devices comprise the target device and other devices;
the second control bus is connected to the other devices through the multiplexer, wherein the other devices are devices that transmit other instructions of a second type.
10. A computer readable storage medium, characterized in that a computer program is stored in the computer readable storage medium, wherein the computer program, when being executed by a processor, implements the steps of the method according to any of the claims 1 to 7.
11. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method of any one of claims 1 to 7 when the computer program is executed.
CN202311047672.3A 2023-08-18 2023-08-18 Instruction sending method and device, substrate management controller and storage medium Pending CN117076356A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311047672.3A CN117076356A (en) 2023-08-18 2023-08-18 Instruction sending method and device, substrate management controller and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311047672.3A CN117076356A (en) 2023-08-18 2023-08-18 Instruction sending method and device, substrate management controller and storage medium

Publications (1)

Publication Number Publication Date
CN117076356A true CN117076356A (en) 2023-11-17

Family

ID=88701787

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311047672.3A Pending CN117076356A (en) 2023-08-18 2023-08-18 Instruction sending method and device, substrate management controller and storage medium

Country Status (1)

Country Link
CN (1) CN117076356A (en)

Similar Documents

Publication Publication Date Title
US20210157483A1 (en) Local management console for storage devices
US20210042578A1 (en) Feature engineering orchestration method and apparatus
US20070233833A1 (en) Data transmission system for electronic devices with server units
US11218543B2 (en) System and method to configure, manage, and monitor stacking of Ethernet devices in a software defined network
CN107948097B (en) Bandwidth adjusting method and equipment
CN104899170A (en) Distributed intelligent platform management bus (IPMB) connection method and ATCA (Advanced Telecom Computing Architecture) machine frame
CN105446657A (en) Method for monitoring RAID card
CN110704365A (en) Reconstruction device based on FPGA
CN116166434A (en) Processor allocation method and system, device, storage medium and electronic equipment
CN111581050B (en) Cabinet, cabinet monitoring system and monitoring method
CN115033352A (en) Task scheduling method, device and equipment for multi-core processor and storage medium
CN112860605A (en) Interface extension method and interface extension module
CN112511621B (en) Data transmission method and device, storage medium, and electronic device
CN115543872A (en) Equipment management method and device and computer storage medium
CN116032746B (en) Information processing method and device of resource pool, storage medium and electronic device
CN117331423A (en) Power supply method and device of PCIE equipment, storage medium and electronic device
CN117076356A (en) Instruction sending method and device, substrate management controller and storage medium
CN116192626A (en) Device access method and device, computer readable storage medium and electronic device
CN116166855A (en) Method and device for identifying serial numbers of hard disks
CN115543707A (en) Hard disk fault detection method, system and device, storage medium and electronic device
CN108959026A (en) A kind of method of accurate monitoring RAID card
CN110119111B (en) Communication method and device, storage medium, and electronic device
CN117056275B (en) Communication control method, device and server based on hardware partition system
CN115599311B (en) Polarity inversion method and apparatus, storage medium, and electronic apparatus
CN116527483A (en) Fault detection method and fault detection device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination