Communication method, electronic equipment and computing equipment
By managing the message format of the management device, and using the dual -interface communication capabilities of the control device, the problem of unable to communicate with the upgraded CPU communication with the upgraded CPU after the control of the device, and realizes efficient compatibility and communication capabilities.
Patent Information
- Application Number
- CN202411307071.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-18
- Publication Date
- 2025-01-28
AI Technical Summary
The existing BMC does not have an I3C interface, and cannot communicate with the upgraded CPU, resulting in communication failure.
By setting up a local bus interface in the management device, obtaining the first message generated by the application, converting it into a second message that can be recognized by the local bus interface, and sending the second message to the control device through the local bus interface. After the control device is received, the second message is converted to the first message of the CPU recognizable and sent to the CPU through the i3C interface.
The ability to communicate with the upgraded CPU after the I3C interface is implemented, which improves the compatibility and utilization rate of BMC.
Smart Images

Figure CN119377136A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the technical field of computing devices, and in particular, to a communication method, an electronic device, and a computing device. Background Art
[0002] A baseboard management controller (BMC) can communicate with a central processing unit (CPU) through an inter-integrated circuit (I2C) interface.
[0003] At present, as the amount of communication data between BMC and CPU continues to increase, CPU manufacturers upgrade the I2C interface on the CPU to an improved inter-integrated circuit (I3C) interface. Therefore, how to enable the existing BMC without an I3C interface to communicate with the upgraded CPU is a technical problem that needs to be solved urgently. Summary of the invention
[0004] The embodiments of the present application provide a communication method, an electronic device, and a computing device, which are used to solve the technical problem that a BMC without an I3C interface cannot communicate with an upgraded CPU.
[0005] In a first aspect, an embodiment of the present application provides a communication method, which is applied to a management device, wherein an application is running in the management device, and the management device includes a local bus interface, and the method includes:
[0006] Acquire a first message generated by the application, where the format of the first message is a first data protocol format, and the first data protocol format is a format that is not recognizable by the local bus interface;
[0007] Converting the first message into a second message, wherein the format of the second message is a second data protocol format, and the second data protocol format is a format recognizable by the local bus interface;
[0008] The second message is sent to a control device via the local bus interface.
[0009] In the above scheme, the management device can obtain a first message generated by an application, can convert the first message into a second message, and can send the second message to the control device through a local bus interface. In the above method, the management device can obtain a first message that is not recognizable by the local bus interface, can convert the first message into a second message that is recognizable by the local bus interface, and can send the second message to the control device through the local bus interface. In other words, the management device can send the content of the first message that is not recognizable by the local bus interface through the local bus interface. Through the above method, the compatibility of the management device can be improved.
[0010] In a possible implementation manner, converting the first message into a second message includes:
[0011] parsing the first message to acquire a first message type corresponding to the first message and first data included in the first message, wherein the first message type is used to indicate a data operation type corresponding to the first message, the data operation type corresponding to the first message is a write type or a read type, and the first data is data included in the first message and to be transmitted to the control device;
[0012] The second message is generated according to the first message type and the first data.
[0013] In the above solution, the second message can be generated according to the first message, thereby achieving the purpose of converting the first message into the second message.
[0014] In a possible implementation manner, generating the second message according to the first message type and the first data includes:
[0015] Determine, according to a conversion protocol, the first message type and the first data, a second message type corresponding to the first message type and second data corresponding to the first data, wherein the second message type is used to indicate a data operation type corresponding to the second message, the data operation type corresponding to the second message is the same as the data operation type corresponding to the first message, and the second data is used to characterize the data included in the first message and to be transmitted to the control device; wherein the conversion protocol is used to convert a message in the first data protocol format into a message in the second data protocol format;
[0016] The second message is generated according to the conversion protocol, the second message type and the second data.
[0017] In the above solution, the first message can be converted into the second message according to the conversion protocol, thereby achieving the purpose of generating the second message.
[0018] In a possible implementation manner, sending the second message to the control device through the local bus interface includes:
[0019] Determine, based on the second message, a data operation type corresponding to the second message and second data included in the second message, wherein the data operation type corresponding to the second message is a write type or a read type;
[0020] The second message is sent to the control device according to the data operation type corresponding to the second message.
[0021] In the above solution, the management device may send a second message to the control device so as to facilitate communication with the central processor through the control device.
[0022] In a possible implementation, the data operation type corresponding to the second message is a read type, the second data includes a to-be-read address corresponding to the to-be-read data, the local bus interface includes a plurality of pins, and the plurality of pins include a transmission pin and an address pin; sending the second message to the control device according to the data operation type corresponding to the second message includes:
[0023] The address pin is set to an enabled state, and when the address pin is in the enabled state, the to-be-read address corresponding to the to-be-read data is sent to the control device through the transmission pin.
[0024] In the above solution, the management device can send the to-be-read address corresponding to the to-be-read data to the control device through the transmission pin when the address pin is in the enabled state, thereby achieving the purpose of sending the second message to the control device.
[0025] In a possible implementation, the data operation type corresponding to the second message is a write type, the second data includes data to be written and an address to be written corresponding to the data to be written, and the multiple pins also include a write data pin; and sending the second message to the control device according to the data operation type corresponding to the second message includes:
[0026] Setting the address pin to an enabled state, and sending the to-be-written address corresponding to the to-be-written data to the control device through the transmission pin when the address pin is in the enabled state;
[0027] The write data pin is set to an enabled state, and when the write data pin is in the enabled state, the to-be-written data is sent to the control device through the transmission pin.
[0028] In the above scheme, the management device can send the address to be written corresponding to the data to be written to the control device through the transmission pin when the address pin is in the enabled state, and can send the data to be written to the control device through the transmission pin when the write data pin is in the enabled state, thereby achieving the purpose of sending a second message to the control device.
[0029] In a possible implementation, the first data protocol format is an improved inter-integrated circuit communication bus I3C format, and the second data protocol format is a local bus format.
[0030] In the above scheme, the purpose of converting the message in I3C format into the message in local bus format can be achieved.
[0031] In a second aspect, an embodiment of the present application provides a communication method, which is applied to a control device, wherein the control device includes a local bus interface and an I3C interface, and the method includes:
[0032] receiving, through the local bus interface, a second message sent by the management device, wherein the format of the second message is a second data protocol format, and the second data protocol format is a format that is not recognizable by the central processing unit;
[0033] Converting the second message into a first message, wherein the format of the first message is a first data protocol format, and the first data protocol format is a format recognizable by the central processor;
[0034] The first message is sent to the central processing unit through the I3C interface.
[0035] In the above scheme, the control device can receive the second message sent by the management device through the local bus interface; the second message can be converted into a first message, the format of the first message is the first data protocol format; the first message can be sent to the central processing unit through the I3C interface. In the above method, the control device can receive the second message sent by the management device that cannot be recognized by the central processing unit, can convert the second message into a first message that can be recognized by the central processing unit, and can send the first message to the central processing unit. Through the above method, the purpose of communication between the management device and the central processing unit can be achieved.
[0036] In a possible implementation, the local bus interface includes a write data pin and a transmission pin, the second message includes a second message type corresponding to the second message, and second data; and receiving the second message sent by the management device through the local bus interface includes:
[0037] receiving the second data through the transmission pin, where the second data includes a to-be-read address corresponding to the to-be-read data, or the second data includes to-be-written data and a to-be-written address corresponding to the to-be-written data;
[0038] The second message type is determined by the state of the write data pin, the state of the write data pin is an enabled state or a disabled state, and the second message type indicates a data operation type corresponding to the second message.
[0039] In the above solution, the control device can receive the second message through the local bus interface, thereby achieving the purpose of receiving the second message.
[0040] In a possible implementation, the second data includes a to-be-read address corresponding to the to-be-read data, and the local bus interface further includes an address pin; and receiving the second data through the transmission pin includes:
[0041] When the address pin is in an enabled state, the address to be read corresponding to the data to be read and sent by the management device is received through the transmission pin.
[0042] In the above solution, the control device can receive the to-be-read address corresponding to the to-be-read data through the transmission pin when the address pin is in the enabled state, thereby achieving the purpose of receiving the second message.
[0043] In a possible implementation, the second data includes data to be written and an address to be written corresponding to the data to be written, and the local bus interface further includes an address pin; and receiving the second data through the transmission pin includes:
[0044] When the address pin is in an enabled state, receiving the address to be written corresponding to the data to be written and sent by the management device through the transmission pin;
[0045] When the write data pin is in an enabled state, the to-be-written data sent by the management device is received through the transmission pin.
[0046] In the above scheme, the control device can receive the address to be written corresponding to the data to be written through the transmission pin when the address pin is enabled, and can receive the data to be written through the transmission pin when the write data pin is enabled, thereby achieving the purpose of receiving the second message.
[0047] In a possible implementation, determining the second message type according to the state of the write data pin includes:
[0048] If the write data pin is in an enabled state, determining that the second message type is a write type;
[0049] If the write data pin is in a disabled state, it is determined that the second message type is a read type.
[0050] In the above solution, the second message type can be determined according to the state of the write data pin, thereby achieving the purpose of determining the second message type.
[0051] In a possible implementation manner, the second message includes a second message type and second data; and converting the second message into the first message includes:
[0052] storing the second message type as a first message type corresponding to the second message type, where the first message type is used to indicate a data operation type corresponding to the first message, and the data operation type corresponding to the first message is the same as the data operation type corresponding to the second message;
[0053] The second data is stored as first data corresponding to the second data, where the first data is used to represent data to be obtained from the second message.
[0054] In the above solution, the second message type can be converted into the first message type, and the second data can be converted into the first data, thereby achieving the purpose of converting the second message into the first message.
[0055] In a third aspect, an embodiment of the present application provides a communication device, which is applied to a management device, an application is running in the management device, the management device includes a local bus interface, and the communication device includes an acquisition module, a conversion module and a sending module, wherein:
[0056] The acquisition module is used to acquire a first message generated by the application, where the format of the first message is a first format, and the first format is a format that is not recognizable by the local bus interface;
[0057] The conversion module is used for converting the first message into a second message, the format of the second message is a second format, and the second format is a format recognizable by the local bus interface;
[0058] The sending module is used to send the second message to the control device through the local bus interface.
[0059] In the above scheme, the communication device can obtain a first message generated by an application, can convert the first message into a second message, and can send the second message to the control device through a local bus interface. In the above method, the communication device can obtain a first message that is not recognizable by the local bus interface, can convert the first message into a second message that is recognizable by the local bus interface, and can send the second message to the control device through the local bus interface. In other words, the communication device can send the content in the first message that is not recognizable by the local bus interface through the local bus interface. Through the above method, the compatibility of the communication device can be improved.
[0060] In a possible implementation, the conversion module is specifically used to:
[0061] parsing the first message to acquire a first message type corresponding to the first message and first data included in the first message, wherein the first message type is used to indicate a data operation type corresponding to the first message, the data operation type corresponding to the first message is a write type or a read type, and the first data is data included in the first message and to be transmitted to the control device;
[0062] The second message is generated according to the first message type and the first data.
[0063] In the above solution, the second message can be generated according to the first message, thereby achieving the purpose of converting the first message into the second message.
[0064] In a possible implementation, the conversion module is specifically used to:
[0065] Determine, according to a conversion protocol, the first message type and the first data, a second message type corresponding to the first message type and second data corresponding to the first data, wherein the second message type is used to indicate a data operation type corresponding to the second message, the data operation type corresponding to the second message is the same as the data operation type corresponding to the first message, and the second data is used to characterize the data included in the first message and to be transmitted to the control device; wherein the conversion protocol is used to convert a message in the first data protocol format into a message in the second data protocol format;
[0066] The second message is generated according to the conversion protocol, the second message type and the second data.
[0067] In the above solution, the first message can be converted into the second message according to the conversion protocol, thereby achieving the purpose of generating the second message.
[0068] In a possible implementation, the sending module is specifically used to:
[0069] Determine, based on the second message, a data operation type corresponding to the second message and second data included in the second message, wherein the data operation type corresponding to the second message is a write type or a read type;
[0070] The second message is sent to the control device according to the data operation type corresponding to the second message.
[0071] In the above solution, the communication device may send a second message to the control device to facilitate communication with the central processing unit through the control device.
[0072] In a possible implementation, the data operation type corresponding to the second message is a read type, the second data includes a to-be-read address corresponding to the to-be-read data, the local bus interface includes a plurality of pins, and the plurality of pins include a transmission pin and an address pin; the sending module is specifically configured to:
[0073] The address pin is set to an enabled state, and when the address pin is in the enabled state, the to-be-read address corresponding to the to-be-read data is sent to the control device through the transmission pin.
[0074] In the above solution, when the address pin is in the enabled state, the communication device can send the to-be-read address corresponding to the to-be-read data to the control device through the transmission pin, thereby achieving the purpose of sending the second message to the control device.
[0075] In a possible implementation, the data operation type corresponding to the second message is a write type, the second data includes data to be written and an address to be written corresponding to the data to be written, and the plurality of pins further includes a write data pin; the sending module is specifically configured to:
[0076] Setting the address pin to an enabled state, and sending the to-be-written address corresponding to the to-be-written data to the control device through the transmission pin when the address pin is in the enabled state;
[0077] The write data pin is set to an enabled state, and when the write data pin is in the enabled state, the to-be-written data is sent to the control device through the transmission pin.
[0078] In the above scheme, the communication device can send the address to be written corresponding to the data to be written to the control device through the transmission pin when the address pin is in the enabled state, and can send the data to be written to the control device through the transmission pin when the write data pin is in the enabled state, thereby achieving the purpose of sending a second message to the control device.
[0079] In a possible implementation, the first data protocol format is an improved inter-integrated circuit communication bus I3C format, and the second data protocol format is a local bus format.
[0080] In the above scheme, the purpose of converting the message in I3C format into the message in local bus format can be achieved.
[0081] In a fourth aspect, an embodiment of the present application provides a communication device, which is applied to a control device, wherein the control device includes a local bus interface and an I3C interface, and the communication device includes a receiving module, a conversion module and a sending module, wherein:
[0082] The receiving module is used to receive a second message sent by the management device through the local bus interface, the format of the second message is a second data protocol format, and the second data protocol format is a format that is not recognizable by the central processing unit;
[0083] The conversion module is used to convert the second message into a first message, the format of the first message is a first data protocol format, and the first data protocol format is a format recognizable by the central processing unit;
[0084] The sending module is used to send the first message to the central processing unit through the I3C interface.
[0085] In the above scheme, the communication device can receive the second message sent by the management device through the local bus interface; the second message can be converted into a first message, the format of the first message is the first data protocol format; the first message can be sent to the central processing unit through the I3C interface. In the above method, the communication device can receive the second message sent by the management device that cannot be recognized by the central processing unit, can convert the second message into a first message that can be recognized by the central processing unit, and can send the first message to the central processing unit. Through the above method, the purpose of communication between the management device and the central processing unit can be achieved.
[0086] In a possible implementation, the local bus interface includes a write data pin and a transmission pin, the second message includes a second message type corresponding to the second message, and second data; the receiving module is specifically configured to:
[0087] receiving the second data through the transmission pin, where the second data includes a to-be-read address corresponding to the to-be-read data, or the second data includes to-be-written data and a to-be-written address corresponding to the to-be-written data;
[0088] The second message type is determined by the state of the write data pin, the state of the write data pin is an enabled state or a disabled state, and the second message type indicates a data operation type corresponding to the second message.
[0089] In the above solution, the communication device can receive the second message through the local bus interface, thereby achieving the purpose of receiving the second message.
[0090] In a possible implementation, the second data includes a to-be-read address corresponding to the to-be-read data, and the local bus interface further includes an address pin; the receiving module is specifically configured to:
[0091] When the address pin is in an enabled state, the address to be read corresponding to the data to be read and sent by the management device is received through the transmission pin.
[0092] In the above solution, the communication device can receive the to-be-read address corresponding to the to-be-read data through the transmission pin when the address pin is in the enabled state, thereby achieving the purpose of receiving the second message.
[0093] In a possible implementation, the second data includes data to be written and an address to be written corresponding to the data to be written, and the local bus interface further includes an address pin; the receiving module is specifically configured to:
[0094] When the address pin is in an enabled state, receiving the address to be written corresponding to the data to be written and sent by the management device through the transmission pin;
[0095] When the write data pin is in an enabled state, the to-be-written data sent by the management device is received through the transmission pin.
[0096] In the above scheme, the communication device can receive the address to be written corresponding to the data to be written through the transmission pin when the address pin is enabled, and can receive the data to be written through the transmission pin when the write data pin is enabled, thereby achieving the purpose of receiving the second message.
[0097] In a possible implementation, the receiving module is specifically configured to:
[0098] If the write data pin is in an enabled state, determining that the second message type is a write type;
[0099] If the write data pin is in a disabled state, it is determined that the second message type is a read type.
[0100] In the above solution, the second message type can be determined according to the state of the write data pin, thereby achieving the purpose of determining the second message type.
[0101] In a possible implementation, the second message includes a second message type and second data; and the conversion module is specifically configured to:
[0102] storing the second message type as a first message type corresponding to the second message type, where the first message type is used to indicate a data operation type corresponding to the first message, and the data operation type corresponding to the first message is the same as the data operation type corresponding to the second message;
[0103] The second data is stored as first data corresponding to the second data, where the first data is used to represent data to be obtained from the second message.
[0104] In the above solution, the second message type can be converted into the first message type, and the second data can be converted into the first data, thereby achieving the purpose of converting the second message into the first message.
[0105] In a fifth aspect, an embodiment of the present application provides an electronic device, including: a memory and a processor;
[0106] The memory stores computer-executable instructions;
[0107] The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method described in any one of the first aspects.
[0108] In a sixth aspect, an embodiment of the present application provides an electronic device, including: a memory and a processor;
[0109] The memory stores computer-executable instructions;
[0110] The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method described in any one of the second aspects.
[0111] In a seventh aspect, an embodiment of the present application provides a computing device, including a management device, a control device, and a central processing unit, wherein the management device includes a local bus interface, the control device includes a local bus interface and an I3C interface, and the central processing unit includes an I3C interface, the control device communicates with the management device through the local bus interface, and communicates with the central processing unit through the I3C interface, wherein:
[0112] The management device executes the method described in any one of the first aspects to send a second message to the control device; the control device executes the method described in any one of the second aspects to convert the second message into a first message and send the first message to the central processor;
[0113] Among them, the format of the first message is a first data protocol format, which is a format that is not recognizable by the local bus interface but recognizable by the I3C interface; the format of the second message is a second data protocol format, which is a format that is recognizable by the local bus interface but not recognizable by the I3C interface.
[0114] In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method described in any one of the first aspects.
[0115] In a ninth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method described in any one of the second aspects.
[0116] In a tenth aspect, an embodiment of the present application provides a computer program product, including a computer program, which implements the method shown in any one of the first aspects when executed by a processor.
[0117] In the eleventh aspect, an embodiment of the present application provides a computer program product, including a computer program, which implements the method shown in any one of the second aspects when executed by a processor. BRIEF DESCRIPTION OF THE DRAWINGS
[0118] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0119] Figure 1 A schematic diagram of an application scenario provided in an embodiment of the present application;
[0120] Figure 2 A schematic diagram of a communication method provided in an embodiment of the present application;
[0121] Figure 3 A schematic diagram of a BMC provided in an embodiment of the present application;
[0122] Figure 4 A schematic diagram of a control device provided in an embodiment of the present application;
[0123] Figure 5 A flow chart of a communication method provided in an embodiment of the present application;
[0124] Figure 6 A flowchart of another communication method provided in an embodiment of the present application;
[0125] Fig. 7A A schematic diagram of a second data transmission provided in an embodiment of the present application;
[0126] Figure 7B Another schematic diagram of second data transmission provided in an embodiment of the present application;
[0127] Figure 8 A flowchart of another communication method provided in an embodiment of the present application;
[0128] Fig. 9 A flowchart of another communication method provided in an embodiment of the present application;
[0129] Fig.10 A communication device according to an embodiment of the present invention is provided.
[0130] Fig.11 Another communication device provided in the present invention is intended to be a structure of the present invention;
[0131] Fig.12 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0132] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the embodiments of the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the embodiments of the present application as detailed in the appended claims.
[0133] To facilitate understanding, the technical terms involved in the embodiments of the present application are first explained.
[0134] BMC: A controller used to manage and monitor server hardware. BMC is usually integrated on the server motherboard and works independently of the server's main processor and operating system. This allows BMC to provide management and monitoring functions even when the server operating system crashes or fails to start.
[0135] CPU: refers to the computing and control core of a computer system, and is the final execution unit for information processing and program running.
[0136] I3C: is a communication bus standard for connecting integrated circuits. The I3C standard was developed in collaboration between electronics and computer-related companies under the auspices of the Mobile Industry Processor Interface Alliance (MIPI). I3C enables communication between chips by defining the electrical connections between chips and the transmission protocol to be used.
[0137] Local Bus: In computer architecture, a local bus is a computer data bus that connects directly or indirectly from the CPU to an expansion bus.
[0138] Reusable logic unit (Intellectual Property, IP) core: refers to a program module that combines the logic code of a complex programmable logic device (CPLD) into a functional module to implement a certain function.
[0139] For ease of understanding, the following Figure 1 , the application scenarios involved in the embodiments of the present application are described.
[0140] Figure 1 A schematic diagram of an application scenario provided by an embodiment of the present application. Figure 1 A first interface may be set on the BMC, and a second interface may be set on the CPU. The BMC and the CPU may communicate through the first interface and the second interface.
[0141] It should be noted that BMC is called differently in different computing devices. For example, it is called BMC in some computing devices, integrated lights-out (iLO) in others, and integrated Dell remote access controller (iDRAC) in others. Whether it is BMC, iLO or iDRAC, it can be understood as BMC in the embodiments of the present invention.
[0142] It should be noted that the number of the first interfaces on the BMC and the number of the second interfaces on the CPU can be one or more, wherein the number can be two or more. Figure 1 The example that the number of the first interface on the BMC and the number of the second interface on the CPU are both 1 is used for illustration only, and does not constitute a limitation on the technical solution provided in the embodiment of the present application.
[0143] Both the first interface and the second interface can be I2C interfaces.
[0144] At present, the amount of data communicated between BMC and CPU is increasing, while the transmission bandwidth of I2C interface is low, resulting in that I2C interface cannot meet the communication requirements between BMC and CPU. Therefore, CPU manufacturers upgrade the I2C interface on CPU to I3C interface (hereinafter the upgraded CPU is referred to as target CPU). In order to adapt to the target CPU, I3C interface also needs to be set on BMC so that BMC can communicate with target CPU through I3C interface. However, there are a large number of BMCs that are not equipped with I3C interface (hereinafter BMCs that are not equipped with I3C interface are referred to as stock BMCs), and stock BMCs cannot communicate with target CPU, resulting in a high waste rate of stock BMCs. Therefore, how to make stock BMC communicate with target CPU is a technical problem that needs to be solved urgently.
[0145] In view of this, the embodiment of the present application proposes a communication method for achieving the purpose of enabling the existing BMC to communicate with the target CPU. Figure 2 , the communication method provided in the embodiment of the present application is described.
[0146] Figure 2 A schematic diagram of a communication method provided in an embodiment of the present application. Figure 2 , a local bus interface is set on the stock BMC, an I3C interface is set on the target CPU, and a local bus interface and an I3C interface are set on the control device.
[0147] It should be noted that the local bus interface may be a communication interface that is already set when the existing BMC leaves the factory, rather than a communication interface that is additionally configured to implement the solution provided in the embodiment of the present application.
[0148] The control device may be a complex programmable logic device (CPLD), a field programmable gate array (FPGA), a programmable array logic (PAL), etc.
[0149] The local bus interface and the I3C interface on the control device may be, through the logic code inside the control device and the pins of the control device, a simulated local bus interface and an I3C interface.
[0150] like Figure 2 As shown, the control device can communicate with the stock BMC through the local bus interface, and can communicate with the target CPU through the I3C interface. In this way, the stock BMC can communicate with the target CPU through the control device, achieving the purpose of enabling the stock BMC to communicate with the target CPU.
[0151] During the above communication process, the message received by the control device through the I3C interface may be a message in the first data protocol format, and the message received through the local bus interface may be a message in the second data protocol format. The first data protocol format may be a format recognizable by the I3C interface, and the second data protocol format may be a format recognizable by the local bus interface. The control device may convert a message in the first data protocol format into a message in the second data protocol format, or may convert a message in the second data protocol format into a message in the first data protocol format.
[0152] Figure 2 In the communication method shown, the purpose of enabling the existing BMC to communicate with the target CPU is achieved without hardware improvement of the existing BMC. Through the above method, the existing BMC can be reasonably utilized, so that the waste rate of the existing BMC is low.
[0153] Combine the following Figure 3 , the existing BMC involved in the embodiment of the present application is described.
[0154] Figure 3 A schematic diagram of a BMC provided in an embodiment of the present application. Figure 3 The user layer of the stock BMC can run applications, and the kernel layer of the stock BMC can run local bus drivers, I3C subsystems, and I3C device drivers.
[0155] It should be noted that the user layer of the existing BMC can run one or more applications. Figure 3 The example of running an application in the user layer of the existing BMC is used for illustration only, and does not constitute a limitation on the method provided in the embodiment of the present application. The multiple may be two or more.
[0156] The I3C device driver may be a driver corresponding to the I3C interface.
[0157] The local bus driver may be a driver program corresponding to the local bus interface.
[0158] The I3C device driver can communicate with the application. The I3C device driver can also communicate with the local bus driver through the I3C subsystem.
[0159] The I3C device driver can be used to obtain messages from the application and send messages to the local bus driver through the I3C subsystem. The local bus driver can send messages to the control device through the local bus interface on the existing BMC. The message can be a message to be sent to the processing device.
[0160] Depend on Figure 3 It can be seen that in the solution provided in the embodiment of the present application, the driver of the existing BMC can be updated. The driver update may include: setting an I3C device driver and an I3C subsystem in the kernel layer of the existing BMC, and upgrading the local bus driver so that the local bus driver can communicate with the I3C device driver.
[0161] In the solution provided in the embodiment of the present application, the existing BMC can communicate with the target CPU when only the software level of the existing BMC is updated without hardware improvement. Through the solution provided in the embodiment of the present application, the purpose of the existing BMC communicating with the target CPU can be achieved on the basis of less difficulty and lower update cost for the existing BMC, thereby improving the compatibility of the existing BMC.
[0162] Next, combine Figure 4 , the control device involved in the embodiment of the present application is described.
[0163] Figure 4 A schematic diagram of a control device provided in an embodiment of the present application. Figure 4 The control device may include a local bus interface and an I3C interface, and the control device may also include a configuration register module, an I3C state machine module, a data cache module, and an I3C input and output (IO) control module.
[0164] The local bus interface can be used to communicate with the existing BMC.
[0165] The I3C interface can be used to communicate with the target CPU.
[0166] The configuration register module can be used to store the transmission configuration information input by the existing BMC. For example, the transmission configuration information may include the transmission rate and the transmission bandwidth.
[0167] The I3C state machine module can be used to store the transmission status. For example, the transmission status can be writing data, reading data, or stopping transmission.
[0168] The data cache module may also be called a First In, First Out (FIFO) module. The data cache module may be used to temporarily store data obtained from the stock BMC.
[0169] The I3C IO control module can be used to send I3C format messages through the I3C interface.
[0170] Figure 4 The control device shown can convert a message in the second data protocol format received through the local bus interface into a message in the first data protocol format, and can send the message in the first data protocol format through the I3C interface.
[0171] It should be noted that Figure 4 The software modules in the control device shown may exist in the form of IP Core.
[0172] The technical solutions of the embodiments of the present application are described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0173] Figure 5 The flowchart of a communication method provided in an embodiment of the present application is shown in FIG. The execution subject of the method may be a management device or a communication device arranged in the management device. The management device may be, for example, Figure 3 The communication device can be implemented by software or by a combination of software and hardware. For ease of understanding, the following description will be made by taking the execution subject as a management device as an example. Figure 5 , the method may include:
[0174] S501. Obtain a first message generated by an application.
[0175] The format of the first message is a first data protocol format, and the first data protocol format is a data protocol format that is unrecognizable by the local bus interface.
[0176] In a possible implementation, the first data protocol format may be an I3C format. That is, the first message may be a message in the I3C format.
[0177] In this embodiment, an application program is running in the management device, and the management device may include a local bus interface.
[0178] Specifically, the management device may acquire and manage a first message generated by an application running in the device.
[0179] S502: Convert the first message into a second message.
[0180] The format of the second message is a second data protocol format, and the second data protocol format is a format recognizable by the local bus interface.
[0181] In a possible implementation, the second data protocol format may be a local bus format. That is, the second message may be a message in the local bus format.
[0182] In this embodiment, the management device can obtain the conversion protocol between the first data protocol format and the second data protocol format, and can convert the first message into the second message according to the conversion protocol. The management device can obtain the conversion protocol locally, or the management device can obtain the conversion protocol from other devices.
[0183] The conversion protocol is used to convert a message in a first data protocol format into a message in a second data protocol format.
[0184] S503: Send a second message to the control device through the local bus interface.
[0185] The control device can be CPLD, FPGA or PAL, etc. The structure of the control device can be found in Figure 4 The embodiments are not described in detail here.
[0186] In the communication method provided in this embodiment, the management device can obtain a first message generated by an application, can convert the first message into a second message, and can send the second message to the control device through a local bus interface. In the above method, the management device can obtain a first message that is not recognizable by the local bus interface, can convert the first message into a second message that can be recognized by the local bus interface, and can send the second message to the control device through the local bus interface. In other words, the management device can send the content in the first message that cannot be recognized by the local bus interface through the local bus interface. Through the above method, the compatibility of the management device can be improved.
[0187] Based on any of the above embodiments, Figure 6 , the communication method provided in the embodiment of the present application is further explained.
[0188] Figure 6 The flowchart of another communication method provided in the embodiment of the present application is shown in FIG. The execution subject of the method may be a management device or a communication device arranged in the management device. The management device may be, for example, Figure 3 The communication device can be implemented by software or by a combination of software and hardware. For ease of understanding, the following description will be made by taking the execution subject as a management device as an example. Figure 6 , the method may include:
[0189] S601. Obtain a first message generated by an application.
[0190] It should be noted that the specific implementation of S601 can refer to S501 and will not be repeated here.
[0191] S602: Parse the first message to obtain a first message type corresponding to the first message and first data included in the first message.
[0192] The first message type is used to indicate a data operation type corresponding to the first message, and the data operation type corresponding to the first message is a write type or a read type.
[0193] If the data operation type corresponding to the first message is a write type, the first message is used to instruct writing data to the control device.
[0194] If the data operation type corresponding to the first message is a read type, the first message is used to instruct to read data from the control device.
[0195] The first data is data included in the first message and to be transmitted to the control device.
[0196] In this embodiment, an I3C device driver may be run in the management device, and the management device may parse the first message through the I3C device driver.
[0197] S603: Generate a second message according to the first message type and the first data.
[0198] In this embodiment, when generating the second message, the management device can determine the second message type corresponding to the first message type, and the second data corresponding to the first data based on the conversion protocol, the first message type and the first data, the second message type is used to indicate the data operation type corresponding to the second message, the data operation type corresponding to the second message is the same as the data operation type corresponding to the first message, and the second data is used to characterize the data included in the first message and to be transmitted to the control device, wherein the conversion protocol is used to convert a message in a first data protocol format into a message in a second data protocol format; the second message is generated based on the conversion protocol, the second message type and the second data.
[0199] Specifically, the management device may convert the first message type into the second message type according to the conversion protocol; and may convert the first data into the second data according to the conversion protocol.
[0200] It should be noted that the first message type and the first data may exist in the form of a first data protocol format, and the second message type and the second data may exist in the form of a second data protocol format. However, the data operation type indicated by the first message type is the same as the data operation type indicated by the second message type, and the content represented by the first data is the same as the content represented by the second data.
[0201] Specifically, if the data operation type corresponding to the first message is a write type, the data operation type corresponding to the second message is also a write type; if the data operation type corresponding to the first message is a read type, the data operation type corresponding to the second message is also a read type. The first data and the second data can be the same content displayed in different data formats.
[0202] S604: Based on the second message, determine a data operation type corresponding to the second message and second data included in the second message.
[0203] The data operation type corresponding to the second message is a write type or a read type.
[0204] The second message may be a message in a second data protocol format, and the second data protocol format may be a format recognizable by the local bus interface.
[0205] In this embodiment, according to different types of the second message, the second data may be in at least the following two situations:
[0206] Case 1: the second message type is a read type, and the second data includes a to-be-read address corresponding to the to-be-read data.
[0207] The to-be-read address corresponding to the to-be-read data may be the storage address of the data to be read from the control device in the control device.
[0208] Specifically, if the second message is used to instruct to read data from the control device, the second data may include the data to be read from the control device and the storage address of the data in the control device.
[0209] Case 2: the second message type is a write type, and the second data includes data to be written and an address to be written corresponding to the data to be written.
[0210] The data to be written may be data to be written to the control device.
[0211] The to-be-written address corresponding to the to-be-written data may be a storage address in the control device for storing the to-be-written data.
[0212] Specifically, if the second message is used to instruct writing data to the control device, the second data may include the data to be written to the control device and a storage address in the control device for storing the data to be written.
[0213] S605: Send the second message to the control device according to the data operation type corresponding to the second message.
[0214] In this embodiment, the local bus interface may include a plurality of pins, which may include a transmission pin, an address pin, and a write data pin.
[0215] The transmission pin can be used to transmit the second data to the control device. That is, the transmission pin is used to transmit the to-be-read address corresponding to the to-be-read data to the control device, or the transmission pin is used to transmit the to-be-written data and the to-be-written address corresponding to the to-be-written data to the control device.
[0216] The address pin can be used to indicate that the data transmitted by the transmission pin is a to-be-read address corresponding to the to-be-read data, or a to-be-written address corresponding to the to-be-written data.
[0217] The write data pin can be used to indicate that the data transmitted by the transmission pin is the data to be written.
[0218] In this embodiment, according to different data operation types corresponding to the second message, there are at least the following two situations for sending the second message to the control device:
[0219] Case 1: The data operation type corresponding to the second message is a read type, and the second message is sent to the control device through the transmission pin and the address pin.
[0220] In this case, the second data may include a to-be-read address corresponding to the to-be-read data.
[0221] The management device may set the address pin to an enabled state, and when the address pin is in the enabled state, send the to-be-read address corresponding to the to-be-read data to the control device through the transmission pin.
[0222] It should be understood that after the management device sends the to-be-read address corresponding to the to-be-read data to the control device, the address pin can be set to a non-enabled state.
[0223] This embodiment does not limit the level signal output by the address pin when the address pin is in the enabled state. Optionally, when the address pin outputs a high level signal, the address pin is in the enabled state.
[0224] Below, take the case where the address pin is in the enabled state when it outputs a high level signal. Fig. 7A , a process in which a management device sends a to-be-read address corresponding to to-be-read data to a control device is described.
[0225] Fig. 7A A second data transmission schematic diagram provided in an embodiment of the present application. Fig. 7A , when the address pin is in the enabled state (that is, when the address pin outputs a high level signal), the transmission pin can output the address to be read. After the transmission pin stops outputting the address to be read, the address pin can be in the non-enabled state (that is, the address pin outputs a low level signal).
[0226] Case 2: The data operation type corresponding to the second message is a write type, and the second message is sent to the control device through the transmission pin, the address pin and the write data pin.
[0227] In this case, the second data may include the data to be written and the address to be written corresponding to the data to be written.
[0228] The management device can set the address pin to the enabled state, and when the address pin is in the enabled state, send the address to be written corresponding to the data to be written to the control device through the transmission pin; set the write data pin to the enabled state, and when the write data pin is in the enabled state, send the data to be written to the control device through the transmission pin.
[0229] This embodiment does not limit the level signal output by the write data pin when the write data pin is in the enabled state. Optionally, when the write data pin outputs a low level signal, the write data pin is in the enabled state.
[0230] Below, take the address pin as an enabled state when the address pin outputs a high level signal, and the write data pin as an enabled state when the write data pin outputs a low level signal as an example, combined with Figure 7B , a process in which a management device sends data to be written and an address to be written corresponding to the data to be written to a control device is described.
[0231] Figure 7BAnother second data transmission schematic diagram provided in an embodiment of the present application. Figure 7B , when the address pin is in the enabled state (that is, when the address pin outputs a high-level signal), the transmission pin can output the address to be written. After the transmission pin stops outputting the address to be written, the address pin can be in the non-enabled state (that is, the address pin outputs a low-level signal). When the write data pin is in the enabled state (that is, when the write data pin outputs a low-level signal), the transmission pin can output the data to be written. After the transmission pin stops outputting the data to be written, the write data pin can be in the non-enabled state (that is, the write data pin outputs a high-level signal).
[0232] In the communication method provided in this embodiment, the management device can obtain a first message generated by an application; can parse the first message to obtain a first message type corresponding to the first message and the first data included in the first message; can generate a second message based on the first message type and the first data; can determine the data operation type corresponding to the second message and the second data included in the second message based on the second message; and can send a second message to the control device based on the data operation type corresponding to the second message. In the above method, the management device can obtain a first message that is not recognizable by the local bus interface, can convert the first message into a second message that is recognizable by the local bus interface, and can send the second message to the control device through multiple pins of the local bus interface. In other words, the management device can send the content of the first message that is not recognizable by the local bus interface through the local bus interface. Through the above method, the compatibility of the management device can be improved.
[0233] Based on any of the above embodiments, Figure 8 , the communication method performed by the control device in the embodiment of the present application is described.
[0234] Figure 8 The flowchart of another communication method provided in the embodiment of the present application is shown in FIG. The execution subject of the method may be a control device or a communication device arranged in the control device. The control device may be, for example, Figure 4 The communication device can be implemented by software or by a combination of software and hardware. For ease of understanding, the following description will be made by taking the execution subject as the control device as an example. Figure 8 , the method may include:
[0235] S801. Receive a second message sent by a management device through a local bus interface.
[0236] The format of the second message is a second data protocol format, and the second data protocol format is a format that is unrecognizable by the central processing unit.
[0237] In a possible implementation, the second data protocol format may be a local bus format. That is, the second message may be a message in the local bus format.
[0238] In this embodiment, the central processing unit may be a CPU having an I3C interface.
[0239] S802: Convert the second message into a first message, where the format of the first message is a first data protocol format.
[0240] The first data protocol format is a format recognizable by the central processing unit.
[0241] In a possible implementation, the first data protocol format may be an I3C format. It should be understood that the central processor may identify the first message through the I3C interface.
[0242] In this embodiment, the control device can obtain the conversion protocol between the first data protocol format and the second data protocol format, can determine the first message corresponding to the second message according to the conversion protocol, and can store the first message to achieve the purpose of converting the second message into the first message. The control device can obtain the conversion protocol locally, or the control device can obtain the conversion protocol from other devices.
[0243] S803: Send a first message to the central processing unit through the I3C interface.
[0244] In this embodiment, the control device can receive the second message sent by the management device through the local bus interface; the second message can be converted into a first message, the format of the first message is a first data protocol format; and the first message can be sent to the central processing unit through the I3C interface. In the above method, the control device can receive the second message sent by the management device that cannot be recognized by the central processing unit, can convert the second message into a first message that can be recognized by the central processing unit, and can send the first message to the central processing unit. Through the above method, the purpose of communication between the management device and the central processing unit can be achieved.
[0245] Based on any of the above embodiments, Fig. 9 , the communication method performed by the control device in the embodiment of the present application is further explained.
[0246] Fig. 9 The flowchart of another communication method provided in the embodiment of the present application is shown in FIG. The execution subject of the method may be a control device or a communication device arranged in the control device. The control device may be, for example, Figure 4 The communication device can be implemented by software or by a combination of software and hardware. For ease of understanding, the following description will be made by taking the execution subject as the control device as an example. Fig. 9 , the method may include:
[0247] S901. Receive second data through a transmission pin.
[0248] In this embodiment, a local bus interface may be provided in the control device, and the local bus interface may include a transmission pin, an address pin, and a write data pin.
[0249] There are at least two situations in which the control device receives the second data:
[0250] Case 1: The second data includes the to-be-read address corresponding to the to-be-read data.
[0251] In this case, when the address pin is in the enabled state, the control device can receive the to-be-read address corresponding to the to-be-read data sent by the management device through the transmission pin.
[0252] Specifically, the address pin can be used to indicate that the data transmitted by the transmission pin is the to-be-read address corresponding to the to-be-read data. When the address pin is in an enabled state, the control device can receive the to-be-read address corresponding to the to-be-read data through the transmission pin.
[0253] Case 2: the second data includes the data to be written and the address to be written corresponding to the data to be written.
[0254] In this case, the control device can receive the address to be written corresponding to the data to be written sent by the management device through the transmission pin when the address pin is in the enabled state; and receive the data to be written sent by the management device through the transmission pin when the write data pin is in the enabled state.
[0255] Specifically, the address pin can be used to indicate that the data transmitted by the transmission pin is the address to be written corresponding to the data to be written. The write data pin is used to indicate that the data transmitted by the transmission pin is the data to be written. When the address pin is in an enabled state, the control device can receive the address to be written corresponding to the data to be written through the transmission pin. When the write data pin is in an enabled state, the control device can receive the data to be written through the transmission pin.
[0256] S902: Determine the second message type by writing the state of the data pin.
[0257] The state of the write data pin is an enabled state or a disabled state.
[0258] In this embodiment, if the write data pin is in an enabled state, the control device may determine that the second message type is a write type; if the write data pin is in a disabled state, the control device may determine that the second message type is a read type.
[0259] Specifically, when the control device receives the second data through the transmission pin, if the write data pin is in a disabled state, the control device determines that the second message type is a read type. When the control device receives the second data through the transmission pin, if the write data pin is in an enabled state, the control device determines that the second message type is a write type.
[0260] S903: Convert the second message into the first message.
[0261] In this embodiment, the control device can store the second message type as the first message type corresponding to the second message type, the first message type is used to indicate the data operation type corresponding to the first message, and the data operation type corresponding to the first message is the same as the data operation type corresponding to the second message; and store the second data as the first data corresponding to the second data, the first data is used to represent the data to be obtained from the second message.
[0262] Specifically, the control device can obtain a conversion protocol between a first data protocol format and a second data protocol format; can convert a second message type into a first message type according to the conversion protocol; can convert second data into first data according to the conversion protocol; and can store the first message type and the first data.
[0263] It should be noted that the control device is provided with a storage space for storing the first message type and a storage space for storing the first data. The control device can store the first message type and the first data in the corresponding storage space respectively. Figure 4 For example, the storage space for storing the first message type in the control device may be an I3C state machine module, and the storage space for storing the first data may be a data cache module.
[0264] S904: Send a first message to the central processing unit through the I3C interface.
[0265] In this embodiment, the control device can receive the second data through the transmission pin; determine the second message type through the state of the write data pin; convert the second message into the first message; and send the first message to the central processing unit. Through the above method, the purpose of the manager communicating with the central processing unit can be achieved.
[0266] Fig.10 The communication device is used in a management device, an application program is running in the management device, and the management device includes a local bus interface. Fig.10 The communication device 10 includes an acquisition module 11, a conversion module 12 and a sending module 13, wherein:
[0267] The acquisition module 11 is used to acquire a first message generated by the application, where the format of the first message is a first format, and the first format is a format that is not recognizable by the local bus interface;
[0268] The conversion module 12 is used to convert the first message into a second message, the format of the second message is a second format, and the second format is a format recognizable by the local bus interface;
[0269] The sending module 13 is used to send the second message to the control device through the local bus interface.
[0270] The communication device provided in this embodiment can be used to execute the communication method executed by the management device in the above method embodiment. Its implementation principle and technical effects are similar and will not be described in detail here.
[0271] In a possible implementation, the conversion module 12 is specifically configured to:
[0272] parsing the first message to acquire a first message type corresponding to the first message and first data included in the first message, wherein the first message type is used to indicate a data operation type corresponding to the first message, the data operation type corresponding to the first message is a write type or a read type, and the first data is data included in the first message and to be transmitted to the control device;
[0273] The second message is generated according to the first message type and the first data.
[0274] In a possible implementation, the conversion module 12 is specifically configured to:
[0275] Determine, according to a conversion protocol, the first message type and the first data, a second message type corresponding to the first message type and second data corresponding to the first data, wherein the second message type is used to indicate a data operation type corresponding to the second message, the data operation type corresponding to the second message is the same as the data operation type corresponding to the first message, and the second data is used to characterize the data included in the first message and to be transmitted to the control device; wherein the conversion protocol is used to convert a message in the first data protocol format into a message in the second data protocol format;
[0276] The second message is generated according to the conversion protocol, the second message type and the second data.
[0277] In a possible implementation, the sending module 13 is specifically used to:
[0278] Determine, based on the second message, a data operation type corresponding to the second message and second data included in the second message, wherein the data operation type corresponding to the second message is a write type or a read type;
[0279] The second message is sent to the control device according to the data operation type corresponding to the second message.
[0280] In a possible implementation, the data operation type corresponding to the second message is a read type, the second data includes a to-be-read address corresponding to the to-be-read data, the local bus interface includes a plurality of pins, and the plurality of pins include a transmission pin and an address pin; the sending module 13 is specifically configured to:
[0281] The address pin is set to an enabled state, and when the address pin is in the enabled state, the to-be-read address corresponding to the to-be-read data is sent to the control device through the transmission pin.
[0282] In a possible implementation, the data operation type corresponding to the second message is a write type, the second data includes data to be written and an address to be written corresponding to the data to be written, and the plurality of pins also includes a write data pin; the sending module 13 is specifically configured to:
[0283] Setting the address pin to an enabled state, and sending the to-be-written address corresponding to the to-be-written data to the control device through the transmission pin when the address pin is in the enabled state;
[0284] The write data pin is set to an enabled state, and when the write data pin is in the enabled state, the to-be-written data is sent to the control device through the transmission pin.
[0285] In a possible implementation, the first data protocol format is an improved inter-integrated circuit communication bus I3C format, and the second data protocol format is a local bus format.
[0286] The communication device provided in this embodiment can be used to execute the communication method executed by the management device in the above method embodiment. Its implementation principle and technical effects are similar and will not be described in detail here.
[0287] Fig.11 This is another structural intention of a communication device provided in an embodiment of the present application. The communication device is applied to a control device, and the control device includes a local bus interface and an I3C interface. Fig.11 The communication device 20 includes a receiving module 21, a conversion module 22 and a sending module 23, wherein:
[0288] The receiving module 21 is used to receive a second message sent by the management device through the local bus interface, where the format of the second message is a second data protocol format, and the second data protocol format is a format that is not recognizable by the central processing unit;
[0289] The conversion module 22 is used to convert the second message into a first message, the format of the first message is a first data protocol format, and the first data protocol format is a format recognizable by the central processor;
[0290] The sending module 23 is used to send the first message to the central processing unit through the I3C interface.
[0291] The communication device provided in this embodiment can be used to execute the communication method executed by the control device in the above method embodiment. Its implementation principle and technical effects are similar and will not be described in detail here.
[0292] In a possible implementation, the local bus interface includes a write data pin and a transmission pin, and the second message includes a second message type corresponding to the second message and second data; the receiving module 21 is specifically configured to:
[0293] receiving the second data through the transmission pin, where the second data includes a to-be-read address corresponding to the to-be-read data, or the second data includes to-be-written data and a to-be-written address corresponding to the to-be-written data;
[0294] The second message type is determined by the state of the write data pin, the state of the write data pin is an enabled state or a disabled state, and the second message type indicates a data operation type corresponding to the second message.
[0295] In a possible implementation, the second data includes a to-be-read address corresponding to the to-be-read data, and the local bus interface further includes an address pin; the receiving module 21 is specifically configured to:
[0296] When the address pin is in an enabled state, the address to be read corresponding to the data to be read and sent by the management device is received through the transmission pin.
[0297] In a possible implementation, the second data includes data to be written and an address to be written corresponding to the data to be written, and the local bus interface further includes an address pin; the receiving module 21 is specifically configured to:
[0298] When the address pin is in an enabled state, receiving the address to be written corresponding to the data to be written and sent by the management device through the transmission pin;
[0299] When the write data pin is in an enabled state, the to-be-written data sent by the management device is received through the transmission pin.
[0300] In a possible implementation, the receiving module 21 is specifically configured to:
[0301] If the write data pin is in an enabled state, determining that the second message type is a write type;
[0302] If the write data pin is in a disabled state, it is determined that the second message type is a read type.
[0303] In a possible implementation, the second message includes a second message type and second data; the conversion module 22 is specifically configured to:
[0304] storing the second message type as a first message type corresponding to the second message type, where the first message type is used to indicate a data operation type corresponding to the first message, and the data operation type corresponding to the first message is the same as the data operation type corresponding to the second message;
[0305] The second data is stored as first data corresponding to the second data, where the first data is used to represent data to be obtained from the second message.
[0306] The communication device provided in this embodiment can be used to execute the communication method executed by the control device in the above method embodiment. Its implementation principle and technical effects are similar and will not be described in detail here.
[0307] Fig.12 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Fig.12 As shown, the electronic device 30 may include: a processor 31 and a memory 32, wherein the processor 31 and the memory 32 can communicate; exemplarily, the processor 31 and the memory 32 communicate via a communication bus 33, the memory 32 is used to store computer execution instructions, and the processor 31 is used to call the computer execution instructions in the memory to execute the method shown in any of the above method embodiments.
[0308] Optionally, the electronic device 30 may further include a communication interface, which may include a transmitter and / or a receiver.
[0309] The electronic device 30 may be a management device or a control device as shown in any of the above method embodiments.
[0310] Optionally, the processor may be a central processing unit (CPU), a graphics processing unit (GPU), other general-purpose processors, a digital signal processor (DSP), or an application-specific integrated circuit (ASIC). A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiments of the present application may be directly implemented as being executed by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor.
[0311] The embodiment of the present application provides a computing device, including a management device, a control device and a central processing unit, wherein the management device includes a local bus interface, the control device includes a local bus interface and an I3C interface, the central processing unit includes an I3C interface, the control device communicates with the management device through the local bus interface, and communicates with the central processing unit through the I3C interface, wherein:
[0312] The management device executes the communication method executed by the management device in any of the above method embodiments to send a second message to the control device; the control device executes the communication method executed by the control device in any of the above method embodiments to convert the second message into a first message and send the first message to the central processor;
[0313] Among them, the format of the first message is a first data protocol format, which is a format that is not recognizable by the local bus interface but recognizable by the I3C interface; the format of the second message is a second data protocol format, which is a format that is recognizable by the local bus interface but not recognizable by the I3C interface.
[0314] An embodiment of the present application provides a computer-readable storage medium, on which computer-executable instructions are stored; the computer-executable instructions are used to implement the method described in any of the above embodiments.
[0315] An embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed, the computer executes the method described in any of the above embodiments.
[0316] All or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a readable memory. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned memory (storage medium) includes: read-only memory (English: read-only memory, abbreviated: ROM), RAM, flash memory, hard disk, solid state drive, magnetic tape (English: magnetic tape), floppy disk (English: floppy disk), optical disc (English: optical disc) and any combination thereof.
[0317] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable terminal device to generate a machine, so that the instructions executed by the processing unit of the computer or other programmable terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0318] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0319] These computer program instructions can also be loaded onto a computer or other programmable terminal device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0320] Obviously, those skilled in the art can make various changes and modifications to the embodiments of the present application without departing from the spirit and scope of the embodiments of the present application. Thus, if these modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalents, the embodiments of the present application are also intended to include these modifications and variations.
[0321] In the embodiments of the present application, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "include one..." do not exclude the existence of other identical elements in the process, method, article or device including the element. The term "or" and its variations may refer to "and / or". In the embodiments of the present application, the terms "first", "second", etc. are used to distinguish similar objects, and do not have to be used to describe a specific order or sequence. In the embodiments of the present application, "multiple" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there may be three relationships, for example, A and / or B, which may represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.
[0322] After considering the invention disclosed in the specification and practice, those skilled in the art will easily think of other embodiments of the present application. The embodiments of the present application are intended to cover any variation, use or adaptive change of the embodiments of the present application, which follows the general principles of the embodiments of the present application and includes common knowledge or conventional technical means in the technical field that are not disclosed in the embodiments of the present application.
Claims
1. A communication method, characterized in that: Applied to a management device, wherein an application program is running in the management device, and the management device includes a local bus interface, the method comprising: Acquire a first message generated by the application, where the format of the first message is a first data protocol format, and the first data protocol format is a format that is not recognizable by the local bus interface; Converting the first message into a second message, wherein the format of the second message is a second data protocol format, and the second data protocol format is a format recognizable by the local bus interface; The second message is sent to a control device via the local bus interface.
2. The method according to claim 1, characterized in that The converting the first message into a second message comprises: parsing the first message to acquire a first message type corresponding to the first message and first data included in the first message, wherein the first message type is used to indicate a data operation type corresponding to the first message, the data operation type corresponding to the first message is a write type or a read type, and the first data is data included in the first message and to be transmitted to the control device; The second message is generated according to the first message type and the first data.
3. The method according to claim 2, characterized in that The generating the second message according to the first message type and the first data includes: Determine, according to a conversion protocol, the first message type and the first data, a second message type corresponding to the first message type and second data corresponding to the first data, wherein the second message type is used to indicate a data operation type corresponding to the second message, the data operation type corresponding to the second message is the same as the data operation type corresponding to the first message, and the second data is used to characterize data included in the first message and to be transmitted to the control device; wherein the conversion protocol is used to convert a message in the first data protocol format into a message in the second data protocol format; The second message is generated according to the conversion protocol, the second message type and the second data.
4. The method according to any one of claims 1 to 3, characterized in that: The sending the second message to the control device through the local bus interface includes: Determine, based on the second message, a data operation type corresponding to the second message and second data included in the second message, wherein the data operation type corresponding to the second message is a write type or a read type; The second message is sent to the control device according to the data operation type corresponding to the second message.
5. The method according to claim 4, characterized in that The data operation type corresponding to the second message is a read type, the second data includes a to-be-read address corresponding to the to-be-read data, the local bus interface includes a plurality of pins, and the plurality of pins include a transmission pin and an address pin; and sending the second message to the control device according to the data operation type corresponding to the second message includes: The address pin is set to an enabled state, and when the address pin is in the enabled state, the to-be-read address corresponding to the to-be-read data is sent to the control device through the transmission pin.
6. A communication method, characterized in that: Applied to a control device, the control device includes a local bus interface and an I3C interface, and the method includes: receiving, through the local bus interface, a second message sent by the management device, wherein the format of the second message is a second data protocol format, and the second data protocol format is a format that is not recognizable by the central processing unit; Converting the second message into a first message, wherein the format of the first message is a first data protocol format, and the first data protocol format is a format recognizable by the central processor; The first message is sent to the central processing unit through the I3C interface.
7. The method according to claim 6, characterized in that The local bus interface includes a write data pin and a transmission pin, the second message includes a second message type corresponding to the second message, and second data; and receiving the second message sent by the management device through the local bus interface includes: receiving the second data through the transmission pin, where the second data includes a to-be-read address corresponding to the to-be-read data, or the second data includes to-be-written data and a to-be-written address corresponding to the to-be-written data; The second message type is determined by the state of the write data pin, the state of the write data pin is an enabled state or a disabled state, and the second message type indicates a data operation type corresponding to the second message.
8. The method according to claim 7, characterized in that The second data includes a to-be-read address corresponding to the to-be-read data, and the local bus interface further includes an address pin; and receiving the second data through the transmission pin includes: When the address pin is in an enabled state, the address to be read corresponding to the data to be read and sent by the management device is received through the transmission pin.
9. An electronic device, characterized in that: include: Memory and processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor executes the method according to any one of claims 1 to 5, or executes the method according to any one of claims 6 to 8.
10. A computing device, characterized in that The invention comprises a management device, a control device and a central processing unit, wherein the management device comprises a local bus interface, the control device comprises a local bus interface and an I3C interface, the central processing unit comprises an I3C interface, the control device communicates with the management device via the local bus interface, and communicates with the central processing unit via the I3C interface, wherein: The management device executes the method according to any one of claims 1 to 5 to send a second message to the control device; the control device executes the method according to any one of claims 6 to 8 to convert the second message into a first message and send the first message to the central processor; Among them, the format of the first message is a first data protocol format, which is a format that is not recognizable by the local bus interface but recognizable by the I3C interface; the format of the second message is a second data protocol format, which is a format that is recognizable by the local bus interface but not recognizable by the I3C interface.
Citation Information
Patent Citations
Message processing method and device, storage medium and electronic device
CN112422565A
Graphic processor management method and device and storage medium
CN114968862A
Communication method, conversion circuit and computer equipment
CN117971748A
Data storage device and method, storage medium and electronic equipment
CN118295942A