Baseboard management controller chip and CAN data frame processing method and device
By integrating the CAN controller module and the CAN transceiver module in the substrate management controller chip, combined with the ESPI controller, CPLD conversion module and logical switch module, the LPC bus low bandwidth limit is solved, and efficient data communication and processing have been realized , Expand the scope of the chip application.
Patent Information
- Application Number
- CN202411193169.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-28
- Publication Date
- 2025-01-28
- Estimated Expiration
- 2044-08-28
AI Technical Summary
The low bandwidth characteristics of the LPC bus limit the communication efficiency between the substrate management controller chip and external devices, and cannot meet the growing data exchange needs, limiting the application potential of BMC chips in a wider range of scenarios.
A substrate management controller chip is designed, which integrates the CAN controller module and the CAN transceiver module. The CAN data frame is transferred to the shared FIFO module through the system bus, so that the chip core can read and process these data frames. In addition, through the ESPI controller, CPLD conversion module, and logical switch module, process the CAN data frame of large throughput, and transmit it to the server CPU for collaborative processing.
Effectively enhance the communication capabilities of the substrate management controller chip and external equipment, expand its application scope, can directly apply it in the field of industrial control, process industrial control data, improve data processing efficiency, and reduce the burden of processing large throughput data.
Smart Images

Figure CN119383028A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of chip technology, and in particular to a baseboard management controller chip, and a method and device for processing CAN data frames. Background Art
[0002] As a key component integrated on the server motherboard, the Baseboard Management Controller (BMC) chip has an independent firmware system built in, which undertakes multiple functions such as monitoring the server system status, realizing remote control, and assisting the installation of the server host system. This technology is widely used in various server products because of its maturity and stability. However, within the technical framework of the BMC chip, there is a low-speed bus for communicating with the host's low-bandwidth devices - the LPC (Low Pin Count) bus. Since its introduction in 1998, this bus has been an important bridge connecting the BMC chip with external devices.
[0003] With the continuous advancement of technology and the continuous improvement of server performance, the low bandwidth characteristics of the LPC bus have gradually shown their limitations. When facing other high-speed bandwidth devices on the host, the transmission capacity of the LPC bus is insufficient and cannot meet the growing demand for data exchange. This bottleneck affects the communication efficiency between the BMC chip and external high-speed devices, thereby limiting the application potential of the BMC chip in a wider range of scenarios.
[0004] Therefore, how to effectively improve the communication capability between the baseboard management controller chip and external devices and expand the application scope of the baseboard management controller chip is a technical problem that needs to be solved urgently. Summary of the invention
[0005] In view of the above problems existing in the prior art, the present invention provides a baseboard management controller chip, a CAN data frame processing method and a device, so as to effectively improve the communication capability between the baseboard management controller chip and external devices and expand the application scope of the baseboard management controller chip.
[0006] The present invention provides a baseboard management controller chip, comprising a CAN controller module and a CAN transceiver module; wherein the CAN controller module is mounted on a system bus in the baseboard management controller chip, and the CAN controller module is connected to the CAN transceiver module; the CAN transceiver module is used to communicate with a CAN peripheral connected to the baseboard management controller chip to obtain a CAN data frame collected by the CAN peripheral; the CAN controller module is used to obtain the CAN data frame from the CAN transceiver module, and transmit the CAN data frame to a shared FIFO module through the system bus, so that the core of the baseboard management controller chip reads and processes the CAN data frame from the shared FIFO module.
[0007] According to a baseboard management controller chip provided by the present invention, the baseboard management controller chip also includes an ESPI controller, a CPLD conversion module and a logic switch module; wherein the logic switch module is mounted on the system bus, and the ESPI controller and the logic switch module are connected through the CPLD conversion module; the CPLD conversion module is used to convert a CAN data frame into data in an ESPI protocol format; the logic switch module is used to obtain a CAN data frame from the system bus when the size of the CAN data frame transmitted into a shared FIFO module at a single time exceeds a preset threshold, and transmit the obtained CAN data frame to the ESPI controller through the CPLD conversion module; the ESPI controller is used to transmit the received CAN data frame to a server CPU connected to the baseboard management controller chip, so that the server CPU cooperates with the baseboard management controller chip to process the received CAN data frame.
[0008] The present invention provides a method for processing a CAN data frame, comprising the following steps.
[0009] In response to a data receiving request of a CAN transceiver module, a CAN controller module receives a CAN data frame from the CAN transceiver module; the CAN controller module transmits the CAN data frame to a shared FIFO module via a system bus; and the core of the baseboard management controller chip reads and processes the CAN data frame from the shared FIFO module.
[0010] According to a method for processing CAN data frames provided by the present invention, the CAN data frames are industrial control sensor data; the core of the baseboard management controller chip reads and processes the CAN data frames from the shared FIFO module, including: the core of the baseboard management controller chip reads the CAN data frames from the shared FIFO module; the CAN data frames are processed and converted into web page format data, so that a web page end interfaced with the baseboard management controller chip obtains the web page format data and displays it.
[0011] The present invention provides another method for processing a CAN data frame, comprising the following steps.
[0012] In response to a data receiving request of a CAN transceiver module, a CAN controller module receives a CAN data frame from the CAN transceiver module; the CAN controller module transmits the CAN data frame to a shared FIFO module through a system bus; in response to a size of a CAN data frame transmitted into the shared FIFO module at a single time exceeding a preset threshold, a logic switch module obtains the CAN data frame from the system bus, and transmits the obtained CAN data frame to the ESPI controller through the CPLD conversion module; the ESPI controller transmits the received CAN data frame to a server CPU connected to the baseboard management controller chip, so that the server CPU cooperates with the baseboard management controller chip to process the received CAN data frame.
[0013] The present invention provides a CAN data frame processing device, comprising the following modules: An acquisition module is used to respond to a data reception request of a CAN transceiver module, so that a CAN controller module receives a CAN data frame from the CAN transceiver module; a transmission module is used to enable the CAN controller module to transmit the CAN data frame to a shared FIFO module through a system bus; and a processing module is used to enable the core of the baseboard management controller chip to read and process the CAN data frame from the shared FIFO module.
[0014] The present invention also provides another CAN data frame processing device, comprising the following modules: A receiving module is used to respond to a data receiving request of a CAN transceiver module, so that a CAN controller module receives a CAN data frame from the CAN transceiver module; a first transmission module is used to enable the CAN controller module to transmit the CAN data frame to a shared FIFO module through a system bus; a second transmission module is used to enable a logic switch module to obtain a CAN data frame from the system bus in response to a size of a CAN data frame transmitted into the shared FIFO module at a single time exceeding a preset threshold, and to transmit the obtained CAN data frame to the ESPI controller through the CPLD conversion module; a third transmission module is used to enable the ESPI controller to transmit the received CAN data frame to a server CPU connected to the baseboard management controller chip, so that the server CPU cooperates with the baseboard management controller chip to process the received CAN data frame.
[0015] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any of the above-mentioned methods for processing CAN data frames when executing the computer program.
[0016] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the method for processing a CAN data frame as described in any one of the above is implemented.
[0017] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements any of the above-mentioned methods for processing CAN data frames.
[0018] The baseboard management controller chip provided by the present invention includes a CAN controller module and a CAN transceiver module; the CAN controller module is mounted on the system bus in the baseboard management controller chip; the CAN controller module is connected to the CAN transceiver module; the CAN transceiver module is used to communicate with the CAN peripheral connected to the baseboard management controller chip to obtain the CAN data frame collected by the CAN peripheral; the CAN controller module is used to obtain the CAN data frame from the CAN transceiver module, and the CAN data frame is transmitted to the shared FIFO module through the system bus, so that the core of the baseboard management controller chip reads and processes the CAN data frame from the shared FIFO module. Due to the integration of the CAN controller module and the CAN transceiver module, the application scope of the baseboard management controller chip is effectively expanded. The baseboard management controller chip provided by the present invention can be directly applied to the industrial control field, and the baseboard management controller chip is used to process the industrial control data obtained by the CAN transceiver module. Thereby, the communication capability of the baseboard management controller chip with external devices can be effectively improved, and the application scope of the baseboard management controller chip can be expanded. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0020] Figure 1 It is a structural schematic diagram of the baseboard management controller chip provided by the present invention.
[0021] Figure 2 This is one of the flow charts of the method for processing CAN data frames provided by the present invention.
[0022] Figure 3 It is a flow chart of a method for the core of a baseboard management controller chip provided by the present invention to process CAN data frames.
[0023] Figure 4 This is the second flow chart of the method for processing CAN data frames provided by the present invention.
[0024] Figure 5 It is a schematic diagram of the data processing flow of the baseboard management controller chip provided by the present invention.
[0025] Figure 6 It is a schematic diagram of the intelligent driving data processing framework provided by the present invention.
[0026] Figure 7 It is a schematic diagram of the processing process of the intelligent driving data provided by the present invention inside the baseboard management controller chip.
[0027] Figure 8 This is one of the structural schematic diagrams of the CAN data frame processing device provided by the present invention.
[0028] Fig. 9 This is the second structural schematic diagram of the CAN data frame processing device provided by the present invention.
[0029] Fig.10 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0030] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0031] Combine the following Figure 1 The baseboard management controller chip of the present invention is described.
[0032] Figure 1 It is a structural schematic diagram of the baseboard management controller chip provided by the present invention.
[0033] like Figure 1 As shown, the baseboard management controller chip includes a CAN controller module and a CAN transceiver module.
[0034] CAN (Controller Area Network) is a widely used fieldbus. The CAN protocol is a serial asynchronous data communication protocol. It is widely used in the automotive control and industrial control fields because of its high-speed communication and mature mechanisms for error and error frame processing.
[0035] In the specific implementation process, various types of CAN controller modules can be used. As an example, the CAN controller can be a CAN controller of the NXP TJA144x series, which supports the CAN FD protocol and is compatible with the traditional CAN2.0 communication. A single transmission can achieve more data than the ordinary CAN protocol, and the rate can reach up to 5Mbits / s, which is 5 times higher than the traditional CAN controller rate.
[0036] like Figure 1 As shown, the CAN controller module is mounted on the system bus in the baseboard management controller chip, and the CAN controller module is connected to the CAN transceiver module.
[0037] The communication between the CAN controller module and the CAN transceiver module is a highly coordinated process, involving multiple links such as signal generation, transmission, reception, conversion, and error handling. The two modules work closely together to achieve efficient and reliable data transmission on the CAN bus.
[0038] The CAN transceiver module is used to communicate with the CAN peripheral connected to the baseboard management controller chip to obtain the CAN data frames collected by the CAN peripheral.
[0039] The CAN controller module is used to obtain CAN data frames from the CAN transceiver module and transmit the CAN data frames to the shared FIFO module through the system bus, so that the core of the baseboard management controller chip reads and processes the CAN data frames from the shared FIFO module.
[0040] A shared FIFO (First In, First Out) is a mechanism for sharing data between multiple processes or threads, and is often used to implement inter-process communication (IPC) or inter-thread communication. A FIFO is a special type of queue where elements are removed in the order they were added. In a shared FIFO, multiple processes or threads can access the same FIFO queue for writing and reading data. Data written to the FIFO will be stored in the order in which it was written, and will maintain this order when it is subsequently read.
[0041] During the specific implementation process, since the amount of data obtained by the industrial control sensors is small, the baseboard management controller chip can be used to process the industrial control data obtained by the CAN transceiver module, or the CAN controller module can be used to process the industrial control data obtained by the CAN transceiver module, without being limited by the description of this specification.
[0042] In some embodiments, Figure 1 As shown, the baseboard management controller chip also includes an ESPI controller, a CPLD conversion module and a logic switch module.
[0043] like Figure 1 As shown, the logic switch module is mounted on the system bus, and the ESPI controller and the logic switch module are connected through the CPLD conversion module.
[0044] ESPI (Enhanced Serial Peripheral Interface) has higher bandwidth and communication rate than LPC bus, and is compatible with the communication specification of LPC bus. In addition, ESPI bus can convert all GPIO (General Purpose Input / Output) signals of Outof Band and sideband into in-band GPIO. This means that different types of signals that originally required multiple physical lines to transmit can now be transmitted in the form of data packets through ESPI bus. Because ESPI bus adopts a more efficient data transmission method, it reduces the number of physical pins connected between PCH (Platform Controller Hub) and baseboard management controller chip. This not only simplifies hardware design, but also reduces manufacturing costs. By reducing the required electrical devices and physical connections, ESPI bus helps save valuable resources such as PCB board space and power supply. This is especially important for server design, because servers usually need to handle large amounts of data and complex communication tasks.
[0045] The CPLD conversion module is used to realize the data format conversion between the ESPI protocol and the CAN protocol, and convert the CAN data frame from the logic switch module into data in the ESPI protocol format.
[0046] In the specific implementation process, CPLD (Complex Programmable Logic Device) can be used to design CAN receiving logic to receive data frames from the CAN bus; CAN data frames can be parsed to extract the data part that needs to be converted; according to the requirements of the ESPI protocol, the extracted data can be converted into the ESPI protocol format; and ESPI sending logic can be designed to send the converted data through the ESPI interface.
[0047] The logic switch module is used to obtain the CAN data frame from the system bus when the size of the CAN data frame transmitted into the shared FIFO module at a single time exceeds a preset threshold, and transmit the obtained CAN data frame to the ESPI controller through the CPLD conversion module.
[0048] In the specific implementation process, the logic switch module can be implemented through firmware and is not limited by the description of this specification.
[0049] As an example only, the logic switch module may periodically read the status register of the shared FIFO module to obtain the size of the CAN data frame transmitted into the shared FIFO module at a single time, and compare the read data with a preset threshold to determine the throughput of the CAN data frame transmission.
[0050] The ESPI controller is used to transmit the received CAN data frame to the server CPU connected to the baseboard management controller chip, so that the server CPU cooperates with the baseboard management controller chip to process the received CAN data frame.
[0051] In the specific implementation process, Figure 5 As shown in the figure, if the data throughput is too large, the logic switch module can be used to convert the CAN data frame into a protocol format through the CPLD conversion module, and then pass it to the server main CPU through the ESPI bus for shared processing. If the data throughput is small, the logic switch module does not transmit the CAN data frame, and the core of the baseboard management controller chip processes the CAN data frame by itself, thereby realizing flexible processing of the CAN data frame and effectively balancing the data load of the server CPU and the baseboard management controller chip.
[0052] The baseboard management controller chip provided by the present invention integrates an ESPI controller, a CPLD conversion module and a logic switch module while integrating a CAN controller module and a CAN transceiver module into the baseboard management controller chip. When the data throughput of the received CAN data frame is large, the CAN data frame can be sent to the server CPU through the ESPI controller after the protocol conversion is performed by the CPLD conversion module, thereby effectively reducing the burden of the baseboard management controller chip in processing high-throughput CAN data frames, overcoming the difficulty of low-rate communication caused by using an LPC bus, and improving data processing efficiency. In addition, since the security of the CAN bus is relatively high, the server downtime caused by data format errors can also be avoided.
[0053] Combine the following Figure 2-Figure 3 A method for processing a CAN data frame of the present invention is described.
[0054] Figure 2 This is one of the flow charts of the method for processing CAN data frames provided by the present invention.
[0055] In this embodiment, the data throughput of the CAN data frame acquired by the CAN transceiver module is less than a preset threshold, such as Figure 2 As shown, the method includes the following: Step 201: In response to a data receiving request from a CAN transceiver module, a CAN controller module receives a CAN data frame from the CAN transceiver module.
[0056] Step 202: The CAN controller module transmits the CAN data frame to the shared FIFO module via the system bus.
[0057] Step 203: The core of the baseboard management controller chip reads and processes the CAN data frame from the shared FIFO module.
[0058] In the embodiment provided by the present invention, in response to the data receiving request of the CAN transceiver module, the CAN controller module receives the CAN data frame from the CAN transceiver module; the CAN controller module transmits the CAN data frame to the shared FIFO module through the system bus; the core of the baseboard management controller chip reads and processes the CAN data frame from the shared FIFO module. Since the baseboard management controller chip is used to directly process the industrial control data, the communication capability of the baseboard management controller chip and the external device can be effectively improved, and the application scope of the baseboard management controller chip can be expanded.
[0059] Figure 3 It is a flow chart of a method for the core of a baseboard management controller chip provided by the present invention to process CAN data frames.
[0060] In this embodiment, the CAN data frame is industrial control sensor data, such as Figure 3 As shown, the method includes the following: Step 301: The core of the baseboard management controller chip reads a CAN data frame from a shared FIFO module.
[0061] Step 302: Process the CAN data frame and convert it into web page format data, so that the web page end interfaced with the baseboard management controller chip can obtain the web page format data and display it.
[0062] During the specific implementation process, the user can remotely log in to the web page interfaced with the baseboard management controller chip by entering the network address provided by the baseboard management controller chip on the maintenance terminal (for example, a host or a laptop computer), and then monitor the status of the industrial control sensors connected to the baseboard management controller chip through the web page, making it easier for maintenance personnel to monitor and manage the industrial control sensors.
[0063] Combine the following Figure 4-Figure 6 Another method for processing a CAN data frame according to the present invention is described.
[0064] Figure 4 This is the second flow chart of the method for processing CAN data frames provided by the present invention.
[0065] In this embodiment, the data throughput of the CAN data frame obtained by the CAN transceiver module is relatively large, such as Figure 4 As shown, the method includes the following: Step 401: In response to a data receiving request from a CAN transceiver module, a CAN controller module receives a CAN data frame from the CAN transceiver module.
[0066] Step 402: The CAN controller module transmits the CAN data frame to the shared FIFO module via the system bus.
[0067] Step 403, in response to the size of the CAN data frame transmitted into the shared FIFO module in a single time exceeding the preset threshold, the logic switch module obtains the CAN data frame from the system bus, and transmits the obtained CAN data frame to the ESPI controller through the CPLD conversion module.
[0068] Step 404: The ESPI controller transmits the received CAN data frame to the server CPU connected to the baseboard management controller chip, so that the server CPU cooperates with the baseboard management controller chip to process the received CAN data frame.
[0069] The baseboard management controller chip provided by the present invention can be applied to scenarios requiring large-scale data interaction, such as intelligent driving, industrial Internet, and hotel room smart furniture control, because it integrates an ESPI controller, a CPLD conversion module, and a logic switch module.
[0070] In application scenarios with large-scale data throughput, for example, when a CAN controller module is required to process large quantities of data in the industrial Internet, steps 401 to 404 can be used to enable the baseboard management controller chip and the server main CPU to share data, thereby effectively improving data processing efficiency.
[0071] Just as an example, Figure 6 and Figure 7 As shown, in the field of intelligent driving, the baseboard management controller chip provided by the present invention can be applied in large-volume data application scenarios such as monitoring the vehicle computer status of intelligent vehicles, laser radar, data generated by maps, and assisted driving calculations. By utilizing steps 401 to 404, the server CPU and the baseboard management controller chip can be collaboratively processed to obtain the vehicle computer status more quickly and reduce the time required to provide assisted driving calculations.
[0072] In the embodiment provided by the present invention, in response to a data receiving request of a CAN transceiver module, a CAN controller module receives a CAN data frame from the CAN transceiver module; the CAN controller module transmits the CAN data frame to a shared FIFO module through a system bus; in response to the size of a CAN data frame transmitted into the shared FIFO module at a single time exceeding a preset threshold, a logic switch module obtains the CAN data frame from the system bus, and transmits the obtained CAN data frame to an ESPI controller through a CPLD conversion module; the ESPI controller transmits the received CAN data frame to a server CPU connected to a baseboard management controller chip, so that the server CPU cooperates with the baseboard management controller chip to process the received CAN data frame. By using the ESPI controller, the CPLD conversion module and the logic switch module, when the data throughput of the CAN data frame received by the baseboard management controller chip is large, the CAN data frame can be sent to the server CPU through the ESPI controller after the protocol conversion is performed through the CPLD conversion module, thereby effectively reducing the burden of the baseboard management controller chip in processing large-throughput CAN data frames.
[0073] The following is a description of a CAN data frame processing device provided by the present invention. The CAN data frame processing device described below and the CAN data frame processing method described above can be referred to each other.
[0074] Figure 8 FIG. 1 is one of the structural diagrams of the CAN data frame processing device provided by the present invention, such as Figure 8 As shown, the device 800 includes the following modules.
[0075] The acquisition module 810 is used to respond to the data receiving request of the CAN transceiver module and enable the CAN controller module to receive the CAN data frame from the CAN transceiver module.
[0076] The transmission module 820 is used to enable the CAN controller module to transmit the CAN data frame to the shared FIFO module through the system bus.
[0077] The processing module 830 is used to enable the core of the baseboard management controller chip to read and process the CAN data frame from the shared FIFO module.
[0078] Fig. 9 FIG. 2 is a second structural diagram of a CAN data frame processing device provided by the present invention, such as Fig. 9 As shown, the device 900 includes the following modules.
[0079] The receiving module 910 is used to respond to the data receiving request of the CAN transceiver module, so that the CAN controller module receives the CAN data frame from the CAN transceiver module; The first transmission module 920 is used to enable the CAN controller module to transmit the CAN data frame to the shared FIFO module through the system bus.
[0080] The second transmission module 930 is used to enable the logic switch module to obtain the CAN data frame from the system bus in response to the size of the CAN data frame transmitted into the shared FIFO module at a single time exceeding a preset threshold, and transmit the obtained CAN data frame to the ESPI controller through the CPLD conversion module; The third transmission module 940 is used to enable the ESPI controller to transmit the received CAN data frame to the server CPU connected to the baseboard management controller chip, so that the server CPU cooperates with the baseboard management controller chip to process the received CAN data frame.
[0081] Fig.10 An example of a physical structure diagram of an electronic device is shown in FIG. Fig.10 As shown, the electronic device may include: a processor 1010, a communication interface 1020, a memory 1030 and a communication bus 1040, wherein the processor 1010, the communication interface 1020 and the memory 1030 complete mutual communication through the communication bus 1040. The processor 1010 may call the logic instructions in the memory 1030 to execute a method for processing a CAN data frame, the method comprising: in response to a data receiving request of a CAN transceiver module, a CAN controller module receives a CAN data frame from the CAN transceiver module; the CAN controller module transmits the CAN data frame to a shared FIFO module through a system bus; the core of the baseboard management controller chip reads and processes the CAN data frame from the shared FIFO module.
[0082] In addition, the logic instructions in the above-mentioned memory 1030 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0083] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the CAN data frame processing method provided by the above methods, the method including: in response to a data reception request of a CAN transceiver module, a CAN controller module receives a CAN data frame from the CAN transceiver module; the CAN controller module transmits the CAN data frame to a shared FIFO module through a system bus; the core of the baseboard management controller chip reads and processes the CAN data frame from the shared FIFO module.
[0084] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method for processing CAN data frames provided by the above methods is implemented, and the method includes: in response to a data reception request of a CAN transceiver module, a CAN controller module receives a CAN data frame from the CAN transceiver module; the CAN controller module transmits the CAN data frame to a shared FIFO module through a system bus; and the core of the baseboard management controller chip reads and processes the CAN data frame from the shared FIFO module.
[0085] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0086] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0087] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A baseboard management controller chip, characterized in that: It includes a CAN controller module and a CAN transceiver module; wherein the CAN controller module is mounted on the system bus in the baseboard management controller chip, and the CAN controller module is connected to the CAN transceiver module; The CAN transceiver module is used to communicate with a CAN peripheral connected to the baseboard management controller chip to obtain CAN data frames collected by the CAN peripheral; The CAN controller module is used to obtain the CAN data frame from the CAN transceiver module, and transmit the CAN data frame to the shared FIFO module through the system bus, so that the core of the baseboard management controller chip reads and processes the CAN data frame from the shared FIFO module.
2. The baseboard management controller chip according to claim 1, characterized in that: The baseboard management controller chip also includes an ESPI controller, a CPLD conversion module and a logic switch module; wherein the logic switch module is mounted on the system bus, and the ESPI controller and the logic switch module are connected through the CPLD conversion module; The CPLD conversion module is used to convert the CAN data frame into data in the ESPI protocol format; The logic switch module is used to obtain the CAN data frame from the system bus when the size of the CAN data frame transmitted into the shared FIFO module at a single time exceeds a preset threshold, and transmit the obtained CAN data frame to the ESPI controller through the CPLD conversion module; The ESPI controller is used to transmit the received CAN data frame to the server CPU connected to the baseboard management controller chip, so that the server CPU cooperates with the baseboard management controller chip to process the received CAN data frame.
3. A method for processing a CAN data frame, characterized in that: Applied to the baseboard management controller chip as claimed in claim 1, the method comprising: In response to a data reception request of the CAN transceiver module, the CAN controller module receives a CAN data frame from the CAN transceiver module; The CAN controller module transmits the CAN data frame to the shared FIFO module through the system bus; The core of the baseboard management controller chip reads and processes the CAN data frame from the shared FIFO module.
4. The method for processing a CAN data frame according to claim 3, characterized in that: The CAN data frame is industrial control sensor data; The core of the baseboard management controller chip reads and processes the CAN data frame from the shared FIFO module, including: The core of the baseboard management controller chip reads the CAN data frame from the shared FIFO module; The CAN data frame is processed and converted into web page format data, so that the web page end interfaced with the baseboard management controller chip can obtain the web page format data and display it.
5. A method for processing a CAN data frame, characterized in that: Applied to the baseboard management controller chip as claimed in claim 2, the method comprising: In response to a data reception request of the CAN transceiver module, the CAN controller module receives a CAN data frame from the CAN transceiver module; The CAN controller module transmits the CAN data frame to the shared FIFO module through the system bus; In response to the size of the CAN data frame transmitted into the shared FIFO module at a single time exceeding a preset threshold, the logic switch module obtains the CAN data frame from the system bus, and transmits the obtained CAN data frame to the ESPI controller through the CPLD conversion module; The ESPI controller transmits the received CAN data frame to the server CPU connected to the baseboard management controller chip, so that the server CPU cooperates with the baseboard management controller chip to process the received CAN data frame.
6. A CAN data frame processing device, characterized in that: The device is arranged on the baseboard management controller chip as claimed in claim 1, and the device comprises: An acquisition module, configured to respond to a data reception request of the CAN transceiver module and enable the CAN controller module to receive a CAN data frame from the CAN transceiver module; A transmission module, used to enable the CAN controller module to transmit the CAN data frame to the shared FIFO module through a system bus; The processing module is used to enable the core of the baseboard management controller chip to read and process the CAN data frame from the shared FIFO module.
7. A CAN data frame processing device, characterized in that: The baseboard management controller chip as claimed in claim 2, wherein the device comprises: A receiving module, configured to respond to a data receiving request of the CAN transceiver module and enable the CAN controller module to receive a CAN data frame from the CAN transceiver module; A first transmission module, configured to enable the CAN controller module to transmit the CAN data frame to a shared FIFO module via a system bus; A second transmission module is used for causing the logic switch module to obtain the CAN data frame from the system bus in response to the size of the CAN data frame transmitted into the shared FIFO module at a single time exceeding a preset threshold, and transmitting the obtained CAN data frame to the ESPI controller through the CPLD conversion module; The third transmission module is used to enable the ESPI controller to transmit the received CAN data frame to the server CPU connected to the baseboard management controller chip, so that the server CPU cooperates with the baseboard management controller chip to process the received CAN data frame.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the method for processing the CAN data frame according to any one of claims 3 to 5 is implemented.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for processing a CAN data frame as claimed in any one of claims 3 to 5 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method for processing a CAN data frame as claimed in any one of claims 3 to 5 is implemented.
Citation Information
Patent Citations
Server starting device and method based on ESPI bus
CN111966626A
Remote power supply monitoring method and device based on CAN bus
CN112003659A
Data transmission method, device, equipment and medium
CN116701269A
Complex programmable logic device and communication method of complex programmable logic device and substrate management controller
CN117093522A
Board card for converting I2C into CAN and power supply module management system
CN211857463U