CN111371799A - Method, device and equipment for controlling data transmission and reception of MCTP (Multi-channel media processing protocol) controller - Google Patents

Method, device and equipment for controlling data transmission and reception of MCTP (Multi-channel media processing protocol) controller Download PDF

Info

Publication number
CN111371799A
CN111371799A CN202010173417.3A CN202010173417A CN111371799A CN 111371799 A CN111371799 A CN 111371799A CN 202010173417 A CN202010173417 A CN 202010173417A CN 111371799 A CN111371799 A CN 111371799A
Authority
CN
China
Prior art keywords
data
mctp
frame
controller
configuration information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010173417.3A
Other languages
Chinese (zh)
Other versions
CN111371799B (en
Inventor
张贞雷
刘同强
魏红杨
王凯
邹晓峰
吕垣森
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202010173417.3A priority Critical patent/CN111371799B/en
Publication of CN111371799A publication Critical patent/CN111371799A/en
Application granted granted Critical
Publication of CN111371799B publication Critical patent/CN111371799B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/26Special purpose or proprietary protocols or architectures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0061Error detection codes

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Communication Control (AREA)

Abstract

The invention discloses a method for controlling data receiving and transmitting of an MCTP controller, which comprises the following steps: judging whether configuration information sent by a processor is received or a data packet of an MCTP type is detected: if the configuration information is received, reading frame data needing to be sent from the register according to the configuration information, verifying the frame data, and converting the frame data passing the verification into sending data meeting the sending format requirement to carry out sending operation; and if the data packet is detected, reading the data packet and verifying the data packet, converting the data packet passing the verification into the received data meeting the requirement of the receiving format and writing the received data into the preset address. Therefore, the invention brings convenience to the work of platform developers, realizes a full-duplex working mode, and improves the high efficiency and convenience of data receiving and transmitting. In addition, the invention provides a device and equipment for controlling the MCTP controller to transmit and receive data, which correspond to the method.

Description

Method, device and equipment for controlling data transmission and reception of MCTP (Multi-channel media processing protocol) controller
Technical Field
The invention relates to the field of computer control, in particular to a method, a device and equipment for controlling an MCTP controller to receive and transmit data.
Background
Management Component Transport Protocol (MCTP) is a media independent protocol for communicating with intelligent devices within a platform management subsystem of a managed computer system. The protocol is independent of the underlying physical bus and the "data link" layer messages on the bus, i.e., messages that define only the transport layer, and for the underlying transport layer, transport layer messages that are considered to be the protocol itself. The MCTP can solve the problem that a standard interface is lacked among the prior platform management components, so that a platform developer can quickly and economically develop and deploy a platform management subsystem which can be defined and accessed by using a Common Information Model (CIM), and the MCTP plays an important role in the field of computer control.
At present, although the MCTP protocol is disclosed, the design of internal modules of a controller based on the MCTP protocol and how to control the sending and receiving of data through the MCTP controller have not been proposed so far, which brings great inconvenience to the work of platform developers. Therefore, it is seen that a method, an apparatus, and a device for controlling an MCTP controller to transmit and receive data are proposed.
Disclosure of Invention
The invention aims to provide a method, a device and equipment for controlling data transmission and reception of an MCTP controller, which can provide a data transmission and reception process controlled by the controller based on an MCTP protocol and bring convenience to the work of platform developers. Moreover, mutual interference between the received data and the transmitted data is realized, the control of the independent received data or the independent transmitted data can be completed, the data can be transmitted and received simultaneously, a full-duplex working mode is realized, and the high efficiency and the convenience of data transmission and reception are improved.
In order to solve the above technical problem, the present invention provides a method for controlling an MCTP controller to transmit and receive data, comprising:
judging whether configuration information sent by a processor is received or a data packet of an MCTP type is detected:
if the configuration information is received, reading frame data needing to be sent from a register according to the configuration information, verifying the frame data, and converting the frame data passing the verification into sending data meeting the sending format requirement to carry out sending operation;
and if the data packet is detected, reading the data packet, verifying the data packet, converting the data packet passing the verification into the received data meeting the requirement of the receiving format, and writing the received data into a preset address.
Preferably, the determining whether the MCTP type packet is detected specifically includes:
detecting whether a data type field of a received data packet is displayed as an MCTP message type;
if so, it may be determined that an MCTP type packet is detected.
Preferably, the reading, according to the configuration information, frame data that needs to be sent from a register specifically includes:
acquiring a descriptor address of a frame descriptor of the frame data according to the configuration information;
acquiring the frame descriptor from a register according to the descriptor address;
and reading the frame data to be sent from a register according to the address information of the frame data contained in the frame descriptor.
Preferably, the verifying the frame data specifically includes:
and carrying out frame structure check, frame length check and CRC check on the frame data.
Preferably, the converting the frame data passing the verification into the transmission data meeting the requirement of the transmission format for transmission specifically includes:
determining a bus type used for sending frame data, and converting the frame data passing the verification according to the sending format requirement of the bus type;
and transmitting the converted transmission data through the bus.
Preferably, the bus type is specifically: I2C type, SMBus type, PCIe type, or RMII type.
Preferably, the reading, according to the configuration information, frame data that needs to be sent from a register specifically includes:
and establishing connection with the register through a current target interface indicated in the configuration information, and reading the frame data required to be sent.
Preferably, after the reading the data packet and the verifying the data packet, the method further includes:
and performing packet loss operation on the data packet which is not checked.
In order to solve the above technical problem, the present invention further provides a control device for transmitting and receiving data by an MCTP controller, including:
the judging module is used for judging whether the configuration information sent by the processor is received or a data packet of the MCTP type is detected: if the configuration information is received, entering a sending module; if the data packet is detected, entering a receiving module;
the sending module is used for reading frame data needing to be sent from the register according to the configuration information, verifying the frame data, and converting the frame data passing the verification into sending data meeting the sending format requirement to carry out sending operation;
and the receiving module is used for reading the data packet, verifying the data packet and converting the data packet passing the verification into receiving data meeting the receiving format requirement and writing the receiving data into a preset address.
The present invention also provides a control device for transmitting and receiving data by an MCTP controller, which comprises a memory for storing a computer program;
a processor for implementing the steps of the method for controlling data transmission and reception by the MCTP controller as described in any one of the above when the computer program is executed.
The invention provides a method for controlling data transmission and reception of an MCTP controller, which comprises the following steps: judging whether configuration information sent by a processor is received or a data packet of an MCTP type is detected: if the configuration information is received, reading frame data needing to be sent from the register according to the configuration information, verifying the frame data, and converting the frame data passing the verification into sending data meeting the sending format requirement to carry out sending operation; and if the data packet is detected, reading the data packet and verifying the data packet, converting the data packet passing the verification into the received data meeting the requirement of the receiving format and writing the received data into the preset address. Therefore, the invention provides a process of controlling data transceiving by the controller based on the MCTP protocol, and brings convenience to the work of platform developers. In addition, when the invention controls the data receiving and sending, the two processes do not interfere with each other, thus the invention can complete the control of the independent data receiving or sending, and can simultaneously receive and send the data, thereby realizing the full duplex working mode and improving the high efficiency and the convenience of data receiving and sending.
In addition, the MCTP controller data transmitting and receiving control device and the MCTP controller data transmitting and receiving control device provided by the invention correspond to the method and have the same beneficial effects.
Drawings
In order to illustrate the embodiments of the present invention more clearly, the drawings that are needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings can be obtained by those skilled in the art without inventive effort.
Fig. 1 is a flowchart of a method for controlling an MCTP controller to transmit and receive data according to an embodiment of the present invention;
fig. 2 is a structural diagram of a control device for transmitting and receiving data by an MCTP controller according to an embodiment of the present invention;
fig. 3 is a block diagram of a control device for transmitting and receiving data by an MCTP controller according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without any creative work belong to the protection scope of the present invention.
The core of the invention is to provide a method, a device and equipment for controlling data transmission and reception of an MCTP controller, which can provide a data transmission and reception process controlled by the controller based on an MCTP protocol and bring convenience to the work of platform developers. Moreover, mutual interference between received data and transmitted data is realized, independent control of data receiving or data transmitting can be completed, data can be transmitted and received simultaneously, a full-duplex working mode is realized, and the high efficiency and convenience of data transmitting and receiving are improved.
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
Fig. 1 is a flowchart of a method for controlling an MCTP controller to transmit and receive data according to an embodiment of the present invention; as shown in fig. 1, a method for controlling an MCTP controller to transmit and receive data according to an embodiment of the present invention includes steps S101 to S103:
step S101: judging whether configuration information sent by a processor is received or a data packet of an MCTP type is detected: if the configuration information is received, the step S102 is entered; if the data packet is detected, the step S103 is entered;
it will be appreciated that the MCTP controller may receive both configuration information and the type of packet, both of which may be performed simultaneously. Judging whether the configuration information sent by the processor is received or a data packet of the MCTP type is detected, and entering the step S102 when the configuration information is received; when detecting the MCTP type packet, the process proceeds to step S103. It should be noted that, when the configuration information is received and a MCTP type packet is detected, the process goes to step S102 and step S103 at the same time.
In one embodiment, determining whether a packet of MCTP type is detected specifically comprises:
detecting whether a data type field of a received data packet is displayed as an MCTP message type;
if so, it may be determined that an MCTP type packet is detected.
Specifically, the data packet includes a data type field for displaying the type of the data packet, and whether the data packet is of the MCTP type is determined according to the type of the recorded message in the data type field. For example, when a packet is obtained through the PCIe bus, whether the content of the Field is the value of the MCTP VDM Code may be determined according to the PCIe TAG Field of the packet, and if so, it indicates that the packet is of the MCTP type, and then it is determined that the packet of the MCTP type is detected.
Step S102: reading frame data needing to be sent from the register according to the configuration information, verifying the frame data, and converting the frame data passing the verification into sending data meeting the sending format requirement to carry out sending operation;
in a specific implementation, the configuration information includes descriptor addresses of frame descriptors of the frame data. According to the configuration information, reading frame data to be sent from the register specifically includes:
acquiring a descriptor address of a frame descriptor of frame data according to the configuration information;
acquiring a frame descriptor from a register according to the descriptor address;
and reading the frame data to be transmitted from the register according to the address information of the frame data contained in the frame descriptor.
Specifically, the processor configures a descriptor of frame data in a register in advance, and transmits configuration information including a descriptor address of the frame descriptor to the MCTP controller. Acquiring a frame descriptor from a register according to the descriptor address; and analyzing the frame descriptor, and reading the frame data to be sent from the register according to the address information of the frame data contained in the frame descriptor. The processor appoints the address of the frame descriptor stored in the register, so that different frame descriptors can be realized, and the frame descriptors are stored discontinuously in the register, thereby enhancing the flexibility of using the storage space of the register. Furthermore, as the frame data transmission rate is faster than the frame descriptor transmission rate, the acquired frame descriptor can be temporarily stored in order to ensure the continuity of the frame data acquisition process.
It should be noted that the configuration information provided in the embodiment of the present invention may also directly include the address of the frame data, and the register stores the corresponding frame data in advance, and the corresponding frame data is directly acquired through the address of the frame data included in the configuration information. Those skilled in the art may determine the obtaining manner of different frame data according to the actual application, and the embodiment of the present invention is not limited.
In one embodiment, the converting the frame data passing the verification into the transmission data meeting the transmission format requirement for transmission specifically includes:
determining the bus type used for sending the frame data, and converting the frame data passing the verification according to the sending format requirement of the bus type;
and transmitting the converted transmission data through the bus.
Specifically, the transmission format of the frame data may be determined according to the type of the bus used for transmitting the frame data, so that the frame data passing the verification is converted into transmission data meeting the transmission format requirement and transmitted. In a specific implementation, the bus type is specifically an I2C type, an SMBus type, a PCIe type, or an RMII type. Other bus types may be determined by one skilled in the art based on the actual application, and embodiments of the present invention are not limited.
Step S103: and reading the data packet, checking the data packet, converting the data packet passing the checking into received data meeting the requirement of the receiving format, and writing the received data into a preset address.
In one embodiment, when a MCTP type packet is detected, the packet is read and checked. And checking data structure errors, frame length errors and CRC errors of the MCTP type data packet. And converting the data packet passing the verification into received data meeting the requirement of the receiving format, and storing the received data according to a pre-stored preset address. Specifically, the processor sets an address at which the register stores the received data in the MCTP controller as a preset address in advance. Further, the processor may generate a corresponding frame descriptor including the storage address information of the received data according to the received data, control the register to store the frame descriptor, and send the storage address information of the frame descriptor to the MCTP controller, the MCTP controller obtains the frame descriptor according to the storage address information, and obtains the storage address of the received data by analyzing the frame descriptor. Since the storage address of the received data is specified by the processor, the flexibility of storing the received data is increased.
In one embodiment, after the received data is stored to the predetermined address, an interrupt message is generated and sent to the processor to feed back that the received data is stored in the register, thereby prompting the processor to perform a read operation.
The invention provides a method for controlling data transmission and reception of an MCTP controller, which comprises the following steps: judging whether configuration information sent by a processor is received or a data packet of an MCTP type is detected: if the configuration information is received, reading frame data needing to be sent from the register according to the configuration information, verifying the frame data, and converting the frame data passing the verification into sending data meeting the sending format requirement to carry out sending operation; and if the data packet is detected, reading the data packet and verifying the data packet, converting the data packet passing the verification into the received data meeting the requirement of the receiving format and writing the received data into the preset address. Therefore, the invention provides a process of controlling data transceiving by the controller based on the MCTP protocol, and brings convenience to the work of platform developers. In addition, when the invention controls the data receiving and sending, the two processes do not interfere with each other, thus the invention can complete the control of the independent data receiving or sending, and can simultaneously receive and send the data, thereby realizing the full duplex working mode and improving the high efficiency and the convenience of data receiving and sending.
In one embodiment, the verifying the frame data specifically includes:
and carrying out frame structure check, frame length check and CRC check on the frame data.
Specifically, frame structure error, frame length error, CRC error, and other check operations may be performed on the frame data. It is understood that, one or more of the verification operations may be selected by those skilled in the art to verify the frame data according to the actual application, and the embodiment of the present invention is not limited thereto. When the error of the check is found, the interrupt is reported to the processor, the retransmission mechanism is started, and new frame data is newly acquired, so that the transmission of error frame data is avoided.
In one embodiment, according to the configuration information, reading frame data to be transmitted from the register specifically includes:
and establishing connection with the register through the current target interface indicated in the configuration information, and reading frame data needing to be sent.
In particular, the processor may determine a current target interface that is currently available from a plurality of interfaces provided by the registers. For example, the register is provided with a DMA interface and an AXI interface, and when the DMA interface is transferring video data having a large data volume, the processor may indicate in the configuration information that the current target interface is the AXI interface. The MCTP controller establishes connection with the register through the current target interface so as to read the frame data needing to be transmitted. The flexibility of reading the frame data is ensured, and the processor can continuously send down the related information of the frame data. Further, when the received data is written into the preset address, the processor may also determine the target interface, and establish a connection with the target interface so as to write the received data into the preset address.
In one embodiment, after reading the data packet and checking the data packet, the method further includes:
and performing packet loss operation on the data packet which is not checked.
Specifically, for a data packet which fails to pass the verification, the packet loss operation is not performed; according to different errors of the data packet in the checking process, different packet loss operations can be performed, including discarding the current frame or discarding all the data packets. And when the packet loss operation is finished, generating loss information and feeding the loss information back to the sending end, and requiring the sending end to resend the loss information.
The invention also provides a control device for transmitting and receiving data by the MCTP controller and a corresponding embodiment of a control device for transmitting and receiving data by the MCTP controller. It should be noted that the present invention describes the embodiments from two perspectives, one is based on the functional module, and the other is based on the hardware.
Fig. 2 is a structural diagram of a control device for transmitting and receiving data by an MCTP controller according to an embodiment of the present invention; as shown in fig. 2, an MCTP controller according to an embodiment of the present invention includes:
a judging module 10, configured to judge whether configuration information sent by a processor is received or a data packet of an MCTP type is detected: if the configuration information is received, entering a sending module; if the data packet is detected, entering a receiving module;
the sending module 11 is configured to read frame data to be sent from the register according to the configuration information, verify the frame data, and convert the frame data passing the verification into sending data meeting the sending format requirement to perform sending operation;
and the receiving module 12 is configured to read the data packet, verify the data packet, convert the data packet passing the verification into received data meeting the requirement of the receiving format, and write the received data into a preset address.
In one embodiment, the apparatus for controlling the MCTP controller to transmit and receive data according to the present invention further includes:
and the packet loss module is used for performing packet loss operation on the data packet which is not verified after the data packet is read and verified.
Since the embodiments of this section correspond to the embodiments of the method section, reference is made to the description of the embodiments of the method section for the embodiments of this section, and details are not repeated here.
The invention provides a control device for transmitting and receiving data by an MCTP controller, which judges whether configuration information sent by a processor is received or a data packet of an MCTP type is detected: if the configuration information is received, reading frame data needing to be sent from the register according to the configuration information, verifying the frame data, and converting the frame data passing the verification into sending data meeting the sending format requirement to carry out sending operation; and if the data packet is detected, reading the data packet and verifying the data packet, converting the data packet passing the verification into the received data meeting the requirement of the receiving format and writing the received data into the preset address. Therefore, the invention provides a process of controlling data transceiving by the controller based on the MCTP protocol, and brings convenience to the work of platform developers. In addition, when the invention controls the data receiving and sending, the two processes do not interfere with each other, thus the invention can complete the control of the independent data receiving or sending, and can simultaneously receive and send the data, thereby realizing the full duplex working mode and improving the high efficiency and the convenience of data receiving and sending.
Fig. 3 is a block diagram of a control device for transmitting and receiving data by an MCTP controller according to an embodiment of the present invention. As shown in fig. 3, the control device for transmitting and receiving data by an MCTP controller according to the present invention comprises a memory 20 for storing a computer program;
a processor 21 for implementing the steps of the control method for transmitting and receiving data by the MCTP controller as described in any one of the above when executing a computer program.
The processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 21 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 21 may also include a main processor and a coprocessor, where the main processor is a processor for processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 21 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, the processor 21 may further include an AI (Artificial Intelligence) processor for processing a calculation operation related to machine learning.
The memory 20 may include one or more computer-readable storage media, which may be non-transitory. Memory 20 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used for storing a computer program 201, wherein after being loaded and executed by the processor 21, the computer program can implement relevant steps in the control method for transmitting and receiving data by an MCTP controller disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202, data 203, and the like, and the storage manner may be a transient storage manner or a permanent storage manner. Operating system 202 may include, among others, Windows, Unix, Linux, and the like.
In some embodiments, the control device that the MCTP controller transmits and receives data may also include an input-output interface 22, a communication interface 23, a power supply 24, and a communication bus 25.
Those skilled in the art will appreciate that the architecture shown in figure 3 does not constitute a limitation of the control device that the MCTP controller transmits and receives data and may include more or fewer components than those shown.
Since the embodiment of the device portion and the embodiment of the method portion correspond to each other, please refer to the description of the embodiment of the method portion for the embodiment of the device portion, which is not repeated here. In some embodiments of the invention, the processor and memory may be connected by a bus or other means.
The invention provides a control device for transmitting and receiving data by an MCTP controller, which can realize the following method: judging whether configuration information sent by a processor is received or a data packet of an MCTP type is detected: if the configuration information is received, reading frame data needing to be sent from the register according to the configuration information, verifying the frame data, and converting the frame data passing the verification into sending data meeting the sending format requirement to carry out sending operation; and if the data packet is detected, reading the data packet and verifying the data packet, converting the data packet passing the verification into the received data meeting the requirement of the receiving format and writing the received data into the preset address. Therefore, the invention provides a process of controlling data transceiving by the controller based on the MCTP protocol, and brings convenience to the work of platform developers. In addition, when the invention controls the data receiving and sending, the two processes do not interfere with each other, thus the invention can complete the control of the independent data receiving or sending, and can simultaneously receive and send the data, thereby realizing the full duplex working mode and improving the high efficiency and the convenience of data receiving and sending.
Finally, the invention also provides a corresponding embodiment of the computer readable storage medium. The computer-readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps as set forth in the above-mentioned method embodiments.
It is to be understood that if the method in the above embodiments is implemented in the form of software functional units and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and performs all or part of the steps of the methods according to the embodiments of the present invention, or all or part of the technical solution. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above detailed description describes a method, an apparatus and a device for controlling the MCTP controller to transmit and receive data according to the present invention. The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A method for controlling data transmission and reception of an MCTP controller is characterized by comprising the following steps:
judging whether configuration information sent by a processor is received or a data packet of an MCTP type is detected:
if the configuration information is received, reading frame data needing to be sent from a register according to the configuration information, verifying the frame data, and converting the frame data passing the verification into sending data meeting the sending format requirement to carry out sending operation;
and if the data packet is detected, reading the data packet, verifying the data packet, converting the data packet passing the verification into the received data meeting the requirement of the receiving format, and writing the received data into a preset address.
2. The MCTP controller as claimed in claim 1, wherein the determining whether the MCTP type packet is detected comprises:
detecting whether a data type field of a received data packet is displayed as an MCTP message type;
if so, it may be determined that an MCTP type packet is detected.
3. The MCTP controller of claim 1, wherein the reading, according to the configuration information, frame data to be transmitted from a register specifically comprises:
acquiring a descriptor address of a frame descriptor of the frame data according to the configuration information;
acquiring the frame descriptor from a register according to the descriptor address;
and reading the frame data to be sent from a register according to the address information of the frame data contained in the frame descriptor.
4. The MCTP controller as claimed in claim 1, wherein the checking of the frame data comprises:
and carrying out frame structure check, frame length check and CRC check on the frame data.
5. The MCTP controller as claimed in claim 1, wherein the step of converting the checked frame data into the transmission data meeting the requirement of the transmission format for transmission comprises:
determining a bus type used for sending frame data, and converting the frame data passing the verification according to the sending format requirement of the bus type;
and transmitting the converted transmission data through the bus.
6. The MCTP controller data transmission and reception control method according to claim 5 wherein the bus type is specifically: I2C type, SMBus type, PCIe type, or RMII type.
7. The MCTP controller of claim 1, wherein the reading, according to the configuration information, frame data to be transmitted from a register specifically comprises:
and establishing connection with the register through a current target interface indicated in the configuration information, and reading the frame data required to be sent.
8. The MCTP controller as claimed in claim 1, wherein after reading and verifying the data packet, the MCTP controller further comprises:
and performing packet loss operation on the data packet which is not checked.
9. A control apparatus for transmitting and receiving data by an MCTP controller, comprising:
the judging module is used for judging whether the configuration information sent by the processor is received or a data packet of the MCTP type is detected: if the configuration information is received, entering a sending module; if the data packet is detected, entering a receiving module;
the sending module is used for reading frame data needing to be sent from the register according to the configuration information, verifying the frame data, and converting the frame data passing the verification into sending data meeting the sending format requirement to carry out sending operation;
and the receiving module is used for reading the data packet, verifying the data packet and converting the data packet passing the verification into receiving data meeting the receiving format requirement and writing the receiving data into a preset address.
10. A control apparatus for transmitting and receiving data by an MCTP controller, comprising a memory for storing a computer program;
a processor for implementing the steps of the method for controlling the MCTP controller to transmit and receive data according to any one of claims 1 to 8 when executing the computer program.
CN202010173417.3A 2020-03-12 2020-03-12 Method, device and equipment for controlling data receiving and transmitting of MCTP (Multi-channel media Port) controller Active CN111371799B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010173417.3A CN111371799B (en) 2020-03-12 2020-03-12 Method, device and equipment for controlling data receiving and transmitting of MCTP (Multi-channel media Port) controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010173417.3A CN111371799B (en) 2020-03-12 2020-03-12 Method, device and equipment for controlling data receiving and transmitting of MCTP (Multi-channel media Port) controller

Publications (2)

Publication Number Publication Date
CN111371799A true CN111371799A (en) 2020-07-03
CN111371799B CN111371799B (en) 2022-12-23

Family

ID=71206741

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010173417.3A Active CN111371799B (en) 2020-03-12 2020-03-12 Method, device and equipment for controlling data receiving and transmitting of MCTP (Multi-channel media Port) controller

Country Status (1)

Country Link
CN (1) CN111371799B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114465966A (en) * 2022-01-23 2022-05-10 山东云海国创云计算装备产业创新中心有限公司 Data packet recombination control system and data packet recombination method

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109165177A (en) * 2018-09-21 2019-01-08 郑州云海信息技术有限公司 A kind of communication means and relevant apparatus of PCIE interface

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109165177A (en) * 2018-09-21 2019-01-08 郑州云海信息技术有限公司 A kind of communication means and relevant apparatus of PCIE interface

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114465966A (en) * 2022-01-23 2022-05-10 山东云海国创云计算装备产业创新中心有限公司 Data packet recombination control system and data packet recombination method
CN114465966B (en) * 2022-01-23 2024-05-28 山东云海国创云计算装备产业创新中心有限公司 Data packet reorganization control system and data packet reorganization method

Also Published As

Publication number Publication date
CN111371799B (en) 2022-12-23

Similar Documents

Publication Publication Date Title
CN102866971B (en) Device, the system and method for transmission data
CN106598632B (en) Firmware upgrading method and device for optical module
CN114138700B (en) Flow control method, device, equipment and storage medium for serial port data transmission
WO2022032990A1 (en) Command information transmission method, system, and apparatus, and readable storage medium
CN112422485B (en) Communication method and device of transmission control protocol
CN116561030A (en) Data transmission method, device, equipment and medium
CN109684152B (en) RISC-V processor instruction downloading method and device
CN111371799B (en) Method, device and equipment for controlling data receiving and transmitting of MCTP (Multi-channel media Port) controller
CN109800202B (en) PCIE (peripheral component interface express) -based data transmission system, method and device
CN114567445B (en) Method, device, equipment and medium for transmitting signature verification data
CN116089124A (en) Communication method, device and medium of simulation system
CN115454896A (en) SMBUS-based SSD MCTP control message verification method and device, computer equipment and storage medium
CN115604070A (en) Message transmission method, device, equipment and medium based on MCTP (Multi-function peripheral protocol)
CN112732606A (en) Information interaction method, system, equipment and computer readable storage medium
CN109976778B (en) Software updating method and system of vehicle electronic product, upper computer and storage medium
CN111930582A (en) System management bus detection platform, processor and system management bus detection method
CN111124987B (en) PCIE-based data transmission control system and method
CN102455970B (en) Multi-peripheral-equipment boot implementation method, equipment and system with reliability detection function
CN117170704B (en) Remote upgrading method and device based on hardware IIC
CN112988202B (en) System and method for upgrading FC (fiber channel) module
CN109284243B (en) FPGA communication control device and method based on USB
CN108231131A (en) A kind of eMMC test methods and device
CN114995206A (en) Cloud measurement service control method and device, electronic equipment and computer readable medium
CN115599408A (en) Data burning method and device of processor and storage medium
CN115881208A (en) Storage device testing method and device

Legal Events

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