I2C link detection method, device, equipment, and storage medium

By adding web operation pages and CPLD loopback detection on BMC, automatic detection and report generation of I2C links are realized, which solves the problem of repetitive work caused by motherboard transformation, improves efficiency and reduces costs.

CN115827354BActive Publication Date: 2025-08-29INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211709592.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-29
Publication Date
2025-08-29
Estimated Expiration
2042-12-29

AI Technical Summary

Technical Problem

In hardware project development, multiple I2C links on the motherboard need to be detected, and the existing technology requires the motherboard to be modified, resulting in duplicate work and high costs.

Method used

By adding a web-based operation page on the BMC, the I2C link is automatically detected and the link loopback detection is realized through CPLD, supporting link configuration and automatic report generation.

Benefits of technology

It improves product R&D efficiency, reduces R&D costs, and simplifies the I2C link detection process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115827354B_ABST
    Figure CN115827354B_ABST
Patent Text Reader

Abstract

The present invention belongs to the technical field of I2C link testing and specifically provides a method, apparatus, device, and storage medium for I2C link detection. The method includes the following steps: adding an automatic detection Web-based operation page to the BMC to display all I2C links currently managed by the BMC; configuring the displayed detected link channels through the operation page and setting up transmission of the configuration information to the BMC; after receiving the configuration information, the BMC sends the configuration information to a CPLD to activate the loopback of the corresponding link channel and receives a feedback response from the CPLD after activation; after receiving the response, the BMC sends I2C data to the device connected to the link channel. If the BMC receives the data returned by the CPLD within a set time, the link channel test passes. Different frequencies are automatically sent to test the I2C link and a report is automatically generated. This improves product R&D efficiency and reduces R&D costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of I2C link testing, and in particular to an I2C link detection method, device, equipment, and storage medium. Background Art

[0002] The I2C bus is a simple, bidirectional, two-wire synchronous serial bus developed by Philips. It requires only two wires to transmit information between connected devices. A master device initiates bus data transmission and generates a clock to open the bus for transmission. At this point, any addressed device is considered a slave. The relationship between master and slave, sender and receiver, on the bus is not constant, but depends on the direction of data transmission. To send data to a slave, the master first addresses the slave, then actively sends data to the slave, and finally terminates the data transfer. To receive data from a slave, the master first addresses the slave, then receives the data sent by the slave, and finally terminates the reception process. In this case, the master is responsible for generating the timing clock and terminating the data transfer.

[0003] I2C (Inter-Integrated Circuit), also known as the Integrated Circuit Bus in Chinese, is a serial communication bus using a multi-master-slave architecture. Designed by Philips in the early 1980s, it facilitates communication between motherboards, embedded systems, or mobile phones, and peripheral components. Due to its simplicity, it is widely used for communication between microcontrollers and sensor arrays, displays, IoT devices, EEPROMs, and more. Key features of I2C include: Only two bus lines are required; there are no strict baud rate requirements, such as with RS-232; the master device generates the bus clock; a simple master / slave relationship exists between all components, and each device connected to the bus is software-addressable via a unique address; I2C is a true multi-master bus, providing arbitration and collision detection; and since hardware design uses I2C as the physical link for inter-board monitoring, communication quality is crucial, and signal quality testing of the I2C link is required in all projects.

[0004] When developing a hardware project, all I2C signals need to be tested. There are many I2C links on the motherboard. In order to better test, the motherboard often needs to be modified, which will cause a lot of unnecessary duplication of work. Summary of the Invention

[0005] When developing a hardware project, all I2C signals need to be detected. There are many I2C links on the motherboard. In order to better test, the motherboard often needs to be modified, which will cause a lot of unnecessary duplication of work. In view of this, the present invention provides a method, device, equipment, and storage medium for I2C link detection.

[0006] In a first aspect, the technical solution of the present invention provides a method for detecting an I2C link. When designing a link, one end of all I2C links is connected to the BMC, and the other ends of all links are connected to the device and to the CPLD via a serial link. The method comprises the following steps:

[0007] Add an automatic detection web-based operation page to the BMC to display all I2C links currently managed by the BMC. Use the operation page to configure the displayed detected link channels and set up the transmission of configuration information to the BMC;

[0008] After receiving the configuration information, the BMC sends it to the CPLD to start the loopback of the corresponding link channel and receives a feedback response from the CPLD after startup.

[0009] After receiving the response, the BMC sends I2C data to the device connected to the link channel. If the BMC receives the data returned by the CPLD within the set time, the link channel test passes.

[0010] A web-based operation page is provided for configuring the link being tested. This page allows for full or partial testing. By sending configuration information to the CPLD, the CPLD initiates a loopback link, connecting two I2C links. During testing, different frequencies are automatically sent to test the I2C link. This improves product R&D efficiency and reduces R&D costs.

[0011] As a further limitation of the technical solution of the present invention, the steps of adding an automatic detection web-based operation page on the BMC to display all I2C links currently managed by the BMC, and configuring the displayed detected link channels through the operation page and setting up transmission of the configuration information to the BMC include:

[0012] Generate a custom form for displaying the I2C links managed by the BMC through the BMC front-end web interface;

[0013] The setup form page collects configuration information for form items, converts the collected configuration information, and submits it to the BMC.

[0014] As a further limitation of the technical solution of the present invention, the step of generating a custom form for displaying the I2C link managed by the BMC through the BMC front-end web interface includes:

[0015] Create a front-end form configuration interface, select the corresponding form elements through the front-end interface, and generate a custom form;

[0016] On the web interface, the BMC backend interface is called to return the I2C link information managed by the BMC in the front-end custom form. The I2C link information managed by the BMC is obtained and the corresponding form is rendered and displayed on the web interface.

[0017] As a further limitation of the technical solution of the present invention, after the BMC receives the configuration information, the steps of sending the configuration information to the CPLD for starting the loopback of the corresponding link channel, and receiving the feedback response after the CPLD starts include:

[0018] After receiving the configuration information, the BMC sends it to the CPLD;

[0019] After receiving the configuration information, the CPLD parses the received information to obtain the I2C link channel information;

[0020] According to the parsed I2C link channel information, the device of the corresponding link is selected to connect to the BMC to start the link channel loopback;

[0021] After the startup is complete, the CPLD feeds back a response message to the BMC.

[0022] As a further limitation of the technical solution of the present invention, after the BMC receives the response, the step of sending the I2C data to the device connected to the link channel includes:

[0023] After receiving the response, the BMC starts the data simulation program and sends I2C data to the device connected to the link channel according to the fixed frequency of I2C.

[0024] As a further limitation of the technical solution of the present invention, after the BMC receives the response, it starts a data simulation program, and after the step of sending I2C data to the device connected to the link channel according to the fixed frequency of I2C, it includes:

[0025] The device forwards the received data to the CPLD;

[0026] After receiving the data, the CPLD returns the data to the BMC.

[0027] As a further limitation of the technical solution of the present invention, the method further includes:

[0028] After the test is completed, a test report is automatically generated.

[0029] A web-based operation page is provided for configuring the link being tested. This page allows for full or partial testing. By sending configuration information to the CPLD, the CPLD initiates a loopback link, connecting two I2C links. During testing, different frequencies are automatically sent to test the I2C link and automatically generate a report. This improves product R&D efficiency and reduces R&D costs.

[0030] In a second aspect, the technical solution of the present invention further provides an I2C link detection device. When designing a link, one end of all I2C links is connected to the BMC, and the other ends of all links are respectively connected to the outside of the device and connected to the CPLD via a serial link. The device includes a display setting module, a loopback start setting module, and a detection module.

[0031] The display settings module is used to add an automatic detection web-based operation page on the BMC to display all I2C links currently managed by the BMC. The operation page allows you to configure the displayed detected link channels and set the configuration information to be transmitted to the BMC;

[0032] The loopback startup setting module is used to send the configuration information to the CPLD after the BMC receives it to start the loopback of the corresponding link channel, and receive the feedback response after the CPLD starts;

[0033] The detection module is used to send I2C data to the device connected to the link channel after the BMC receives the response. If the BMC receives the data returned by the CPLD within a set time, the link channel test passes.

[0034] A web-based operation page is provided for configuring the link being tested. This page allows for full or partial testing. By sending configuration information to the CPLD, the CPLD initiates a loopback link, connecting two I2C links. During testing, different frequencies are automatically sent to test the I2C link. This improves product R&D efficiency and reduces R&D costs.

[0035] As a further limitation of the technical solution of the present invention, the display setting module includes a display generation unit and an association setting unit;

[0036] The display generation unit is used to generate a custom form for displaying the I2C link managed by the BMC through the BMC front-end web interface;

[0037] The association setting unit is used to set the form page to collect configuration information of form items on the form page, and convert the collected configuration information and submit it to the BMC.

[0038] As a further limitation of the technical solution of the present invention, the display generation unit includes a creation submodule, a rendering information acquisition submodule, and a display setting submodule;

[0039] Create a submodule to create a front-end form configuration interface, select the corresponding form elements through the front-end interface, and generate a custom form;

[0040] The acquisition submodule is used to return the I2C link information of the BMC management in the front-end custom form by calling the BMC back-end interface on the web interface;

[0041] The display settings submodule is used to obtain the I2C link information managed by the BMC and render the corresponding form to display it on the web interface.

[0042] As a further limitation of the technical solution of the present invention, the loopback start setting module includes a sending setting unit, a parsing setting unit, a loopback start setting unit, and a feedback setting unit;

[0043] The sending setting unit is used to set the BMC to send the configuration information to the CPLD after receiving the configuration information;

[0044] The parsing setting unit is used to set the CPLD to parse the received information to obtain the I2C link channel information after receiving the configuration information;

[0045] The loopback startup setting unit is used to set the CPLD to select the device of the corresponding link and connect it to the BMC to start the loopback of the link channel according to the parsed I2C link channel information;

[0046] The feedback setting unit is used to set the CPLD to feedback response information to the BMC after the startup is completed.

[0047] As a further limitation of the technical solution of the present invention, the detection module includes a sending setting subunit, a forwarding setting subunit and a return setting subunit;

[0048] The sending setting subunit is used to start the data simulation program after the BMC receives the response, and send I2C data to the device connected to the link channel according to the fixed frequency of I2C;

[0049] The forwarding setting subunit is used to set the device to forward the received data to the CPLD;

[0050] The return setting subunit is used to set the CPLD to return data to the BMC after receiving the data.

[0051] As a further limitation of the technical solution of the present invention, the device also includes a test report generation module, which is used to automatically generate a test report after the test is completed.

[0052] A web-based operation page is provided for configuring the link being tested. This page allows for full or partial testing. By sending configuration information to the CPLD, the CPLD initiates a loopback link, connecting two I2C links. During testing, different frequencies are automatically sent to test the I2C link and automatically generate a report. This improves product R&D efficiency and reduces R&D costs.

[0053] In a third aspect, the technical solution of the present invention further provides an electronic device, comprising:

[0054] at least one processor; and,

[0055] a memory communicatively connected to the at least one processor; wherein,

[0056] The memory stores computer program instructions that can be executed by at least one processor, and the computer program instructions are executed by the at least one processor to enable the at least one processor to perform the I2C link detection method as described in the first aspect.

[0057] In a fourth aspect, the technical solution of the present invention further provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions enable the computer to execute the I2C link detection method as described in the first aspect.

[0058] The above technical solution demonstrates the following advantages: a) providing a web-based operation page for configuring the link being tested; b) configurable full and partial testing; c) pairing I2C links; and d) automatically testing I2C links by sending different frequencies and generating reports. This improves product development efficiency and reduces R&D costs.

[0059] In addition, the present invention has a reliable design principle, a simple structure and a very broad application prospect.

[0060] It can be seen that compared with the prior art, the present invention has outstanding substantial features and significant progress, and the beneficial effects of its implementation are also obvious. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0062] Figure 1 is a schematic flow chart of a method according to an embodiment of the present invention.

[0063] Figure 2 is a schematic block diagram of an apparatus according to an embodiment of the present invention. DETAILED DESCRIPTION

[0064] I2C is a true multi-master bus that provides arbitration and collision detection. The service uses I2C as the physical link for inter-board monitoring during hardware design. Therefore, communication quality is crucial, and signal quality testing of the I2C link is required in all projects.

[0065] When developing a hardware project, it is necessary to detect all I2C signals. There are many I2C links on the motherboard. In order to better test, the motherboard often needs to be modified, which will cause a lot of unnecessary duplication of work. In order to enable people in this technical field to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only 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 making creative work should fall within the scope of protection of the present invention.

[0066] like Figure 1 As shown, an embodiment of the present invention provides a method for detecting an I2C link. When designing a link, one end of all I2C links is connected to the BMC, and the other ends of all links are connected to the device and to the CPLD via a serial link. The method includes the following steps:

[0067] Step 1: Add an automatic detection web-based operation page on the BMC to display all I2C links currently managed by the BMC. Use the operation page to configure the displayed detected link channels and set up the transmission of configuration information to the BMC.

[0068] Step 2: After receiving the configuration information, the BMC sends it to the CPLD to start the loopback of the corresponding link channel and receives a feedback response from the CPLD after startup.

[0069] Step 3: After receiving the response, the BMC sends I2C data to the device connected to the link channel. If the BMC receives the data returned by the CPLD within the set time, the link channel test passes.

[0070] The server's I2C link is connected to the BMC at one end and to sensors, VRs, and other devices at the other end. An automatic detection page is added to the BMC. This web-based operation page allows configuration of the detected signals. Upon entering the page, all current I2C links are automatically detected, and you can select all, one, or several I2C links for detection.

[0071] The BMC displays the managed I2C links. The page display effect is shown in Table 1:

[0072] Table 1

[0073]

[0074] When performing a test, you only need to configure the links that need to be tested. This can be configured for full or partial testing. When designing the links, one end of each I2C link is connected to the BMC, and the other end is connected to the device and the CPLD via a serial link.

[0075] At the same time, there is a dedicated link I2C5 between the BMC and CPLD for direct communication between the BMC and CPLD. After receiving the configuration information of the link to be tested, the BMC sends instructions to the CPLD. The CPLD will connect the link to be tested with the device to open the link channel from the BMC to the device to achieve the loopback effect.

[0076] For example, to test the connectivity of Channel 1 on I2C1 (9548), enable Channel 1 testing on the BMC web page. Data from the BMC page is sent to the BMC. After receiving the message, the BMC sends the data to the CPLD via I2C5. The CPLD initiates a loopback on Channel 1 and sends a response back to the BMC. After receiving the response, the BMC starts a data simulation program, sending I2C data to Channel 1 at a fixed I2C frequency (100 MHz or 400 MHz). The CPLD receives the data returned by the device connected to Channel 1 and returns it to the BMC, achieving a data loopback and enabling automatic testing.

[0077] An embodiment of the present invention provides an I2C link detection method. During link design, one end of all I2C links is connected to a BMC, and the other ends of all links are connected to external devices and to a CPLD via a serial link. The method includes the following steps:

[0078] Step 1: Add an automatic detection web-based operation page on the BMC to display all I2C links currently managed by the BMC. Use the operation page to configure the displayed detected link channels and set up the transmission of configuration information to the BMC.

[0079] This step specifically includes: generating a custom form for displaying the I2C link managed by the BMC through the BMC front-end web interface; setting up a form page to collect configuration information for form items on the form page; and converting the collected configuration information and submitting it to the BMC.

[0080] Here, the steps of generating a custom form for displaying the I2C link managed by the BMC through the BMC front-end web interface include: creating a front-end form configuration interface, selecting corresponding form elements through the front-end interface, and generating a custom form; in the web interface, by calling the BMC back-end interface to return the I2C link information managed by the BMC in the front-end custom form, obtaining the I2C link information managed by the BMC, rendering the corresponding form, and displaying it on the web interface.

[0081] Step 2: After receiving the configuration information, the BMC sends it to the CPLD to start the loopback of the corresponding link channel and receives a feedback response from the CPLD after startup.

[0082] Step 3: After receiving the response, the BMC sends I2C data to the device connected to the link channel. If the BMC receives the data returned by the CPLD within the set time, the link channel test passes;

[0083] Step 4: After the test is completed, a test report is automatically generated.

[0084] It should be noted that, in this embodiment, after receiving the configuration information, the BMC sends the configuration information to the CPLD for initiating a loopback of the corresponding link channel, and receives a feedback response from the CPLD after the CPLD is activated. The steps include:

[0085] Step 21: After receiving the configuration information, the BMC sends the configuration information to the CPLD;

[0086] Step 22: After receiving the configuration information, the CPLD parses the received information to obtain the I2C link channel information;

[0087] Step 23: Select the device of the corresponding link based on the parsed I2C link channel information and connect it to the BMC to start the loopback of the link channel;

[0088] Step 24: After the startup is complete, the CPLD feeds back a response message to the BMC.

[0089] Accordingly, after receiving the response, the BMC sends the I2C data to the device connected to the link channel, including the following steps:

[0090] Step 31: After receiving the response, the BMC starts the data simulation program and sends I2C data to the device connected to the link channel according to the fixed frequency of I2C.

[0091] Step 32: The device forwards the received data to the CPLD;

[0092] Step 33: After receiving the data, the CPLD returns the data to the BMC.

[0093] The method provided in this application provides a web-based operation page for configuring the link being tested. Configuration on this page allows for either full or partial testing. By sending configuration information to the CPLD, the CPLD initiates a loopback link, connecting two I2C links. During testing, different frequencies are automatically sent to test the I2C link and automatically generate a report. This improves product R&D efficiency and reduces R&D costs.

[0094] like Figure 2 As shown, an embodiment of the present invention further provides an I2C link detection device. When designing a link, one end of all I2C links is connected to the BMC, and the other ends of all links are respectively connected to the outside of the device and also connected to the CPLD through a serial link. The device includes a display setting module, a loopback start setting module, and a detection module.

[0095] The display settings module is used to add an automatic detection web-based operation page on the BMC to display all I2C links currently managed by the BMC. The operation page allows you to configure the displayed detected link channels and set the configuration information to be transmitted to the BMC;

[0096] The loopback startup setting module is used to send the configuration information to the CPLD after the BMC receives it to start the loopback of the corresponding link channel, and receive the feedback response after the CPLD starts;

[0097] The detection module is used to send I2C data to the device connected to the link channel after the BMC receives the response. If the BMC receives the data returned by the CPLD within a set time, the link channel test passes.

[0098] A web-based operation page is provided for configuring the link being tested. This page allows for full or partial testing. By sending configuration information to the CPLD, the CPLD initiates a loopback link, connecting two I2C links. During testing, different frequencies are automatically sent to test the I2C link. This improves product R&D efficiency and reduces R&D costs.

[0099] An embodiment of the present invention further provides an I2C link detection device. When designing a link, one end of all I2C links is connected to the BMC, and the other ends of all links are connected to the outside of the device and to the CPLD via a serial link. The device includes a display setting module, a loopback start setting module, a detection module, and a test report generation module.

[0100] The display settings module is used to add an automatic detection web-based operation page on the BMC to display all I2C links currently managed by the BMC. The operation page allows you to configure the displayed detected link channels and set the configuration information to be transmitted to the BMC;

[0101] The loopback startup setting module is used to send the configuration information to the CPLD after the BMC receives it to start the loopback of the corresponding link channel, and receive the feedback response after the CPLD starts;

[0102] The detection module is used to send I2C data to the device connected to the link channel after the BMC receives the response. If the BMC receives the data returned by the CPLD within a set time, the link channel test passes.

[0103] The test report generation module is used to automatically generate a test report after the test is completed.

[0104] It should be noted that the display setting module includes a display generation unit and an association setting unit;

[0105] The display generation unit is used to generate a custom form for displaying the I2C link managed by the BMC through the BMC front-end web interface;

[0106] The association setting unit is used to set the form page to collect configuration information of form items on the form page, and convert the collected configuration information and submit it to the BMC.

[0107] The display generation unit includes a creation submodule, a rendering information acquisition submodule, and a display setting submodule;

[0108] Create a submodule to create a front-end form configuration interface, select the corresponding form elements through the front-end interface, and generate a custom form;

[0109] The acquisition submodule is used to return the I2C link information of the BMC management in the front-end custom form by calling the BMC back-end interface on the web interface;

[0110] The display settings submodule is used to obtain the I2C link information managed by the BMC and render the corresponding form to display it on the web interface.

[0111] The loopback start setting module includes a sending setting unit, a parsing setting unit, a loopback start setting unit, and a feedback setting unit;

[0112] The sending setting unit is used to set the BMC to send the configuration information to the CPLD after receiving the configuration information;

[0113] The parsing setting unit is used to set the CPLD to parse the received information to obtain the I2C link channel information after receiving the configuration information;

[0114] The loopback startup setting unit is used to set the CPLD to select the device of the corresponding link and connect it to the BMC to start the loopback of the link channel according to the parsed I2C link channel information;

[0115] The feedback setting unit is used to set the CPLD to feedback response information to the BMC after the startup is completed.

[0116] The detection module includes a sending setting subunit, a forwarding setting subunit and a return setting subunit;

[0117] The sending setting subunit is used to start the data simulation program after the BMC receives the response, and send I2C data to the device connected to the link channel according to the fixed frequency of I2C;

[0118] The forwarding setting subunit is used to set the device to forward the received data to the CPLD;

[0119] The return setting subunit is used to set the CPLD to return data to the BMC after receiving the data.

[0120] A web-based operation page is provided for configuring the link being tested. This page allows for full or partial testing. By sending configuration information to the CPLD, the CPLD initiates a loopback link, connecting two I2C links. During testing, different frequencies are automatically sent to test the I2C link and automatically generate a report. This improves product R&D efficiency and reduces R&D costs.

[0121] An embodiment of the present invention also provides an electronic device comprising: a processor, a communication interface, a memory, and a bus, wherein the processor, the communication interface, and the memory communicate with each other via the bus. The bus can be used to transmit information between the electronic device and a sensor. The processor can call logic instructions in the memory to execute the following method: Step 1: Add an automatic detection web-based operation page to the BMC to display all I2C links currently managed by the BMC. Configure the displayed detected link channels through the operation page and set the configuration information to be transmitted to the BMC; Step 2: After receiving the configuration information, the BMC sends the configuration information to the CPLD to activate the loopback of the corresponding link channel and receives a feedback response from the CPLD after activation; Step 3: After receiving the response, the BMC sends I2C data to the device connected to the link channel. If the BMC receives the data returned by the CPLD within a set time, the link channel test passes; Step 4: After the test is completed, a test report is automatically generated. A web-based operation page is provided for configuring the link being tested. This page allows for full or partial testing. By sending configuration information to the CPLD, the CPLD initiates a loopback link, connecting two I2C links. During testing, different frequencies are automatically sent to test the I2C link and automatically generate a report. This improves product R&D efficiency and reduces R&D costs.

[0122] Furthermore, the logical instructions in the aforementioned memory can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the portion that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage media include various media capable of storing program code, such as USB flash drives, mobile hard drives, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical disks.

[0123] An embodiment of the present invention provides a non-transitory computer-readable storage medium storing computer instructions. The computer instructions cause a computer to execute the method provided by the above method embodiment, for example, including: Step 1: Adding an automatic detection Web-based operation page to the BMC for displaying all I2C links currently managed by the BMC, configuring the displayed detected link channels through the operation page and setting up to transmit the configuration information to the BMC; Step 2: After receiving the configuration information, the BMC sends the configuration information to the CPLD for initiating a loopback of the corresponding link channel, and receives a feedback response after the CPLD is started; Step 3: After receiving the response, the BMC sends I2C data to the device connected to the link channel. If the BMC receives the data returned by the CPLD within a set time, the link channel test passes; Step 4: After the test is completed, a test report is automatically generated. A web-based operation page is provided for configuring the link being tested. This page allows for full or partial testing. By sending configuration information to the CPLD, the CPLD initiates a loopback link, connecting two I2C links. During testing, different frequencies are automatically sent to test the I2C link and automatically generate a report. This improves product R&D efficiency and reduces R&D costs.

[0124] Although the present invention has been described in detail with reference to the accompanying drawings and in conjunction with preferred embodiments, the present invention is not limited thereto. Without departing from the spirit and essence of the present invention, a person of ordinary skill in the art may make various equivalent modifications or substitutions to the embodiments of the present invention, and such modifications or substitutions shall be within the scope of the present invention. Any person skilled in the art who can easily conceive of changes or substitutions within the technical scope disclosed in the present invention shall be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be based on the scope of protection of the claims.

Claims

1. A method for detecting an I2C link, characterized in that: When designing a link, one end of all I2C links is connected to the BMC, and the other ends of all links are connected to the device and to the CPLD via a serial link. The method includes the following steps: Add an automatic detection web-based operation page to the BMC to display all I2C links currently managed by the BMC. Use the operation page to configure the displayed detected link channels and set up the transmission of configuration information to the BMC; After receiving the configuration information, the BMC sends it to the CPLD to start the loopback of the corresponding link channel and receives a feedback response from the CPLD after startup. After receiving the response, the BMC sends I2C data to the device connected to the link channel. If the BMC receives the data returned by the CPLD within the set time, the link channel test passes; After receiving the configuration information, the BMC sends the configuration information to the CPLD to start the loopback of the corresponding link channel and receives a feedback response from the CPLD after the CPLD starts. The steps include: After receiving the configuration information, the BMC sends it to the CPLD; After receiving the configuration information, the CPLD parses the received information to obtain the I2C link channel information; According to the parsed I2C link channel information, the device of the corresponding link is selected to connect to the BMC to start the link channel loopback; After the startup is complete, the CPLD feeds back a response message to the BMC.

2. The method for detecting an I2C link according to claim 1, wherein: Add an automatic detection web-based operation page to the BMC to display all I2C links currently managed by the BMC. The steps for configuring the displayed detected link channels and setting up the transmission of configuration information to the BMC include: Generate a custom form for displaying the I2C links managed by the BMC through the BMC front-end web interface; The setup form page collects configuration information for form items, converts the collected configuration information, and submits it to the BMC.

3. The method for I2C link detection according to claim 2, wherein: To create a custom form for displaying the I2C links managed by the BMC through the BMC front-end web interface, follow these steps: Create a front-end form configuration interface, select the corresponding form elements through the front-end interface, and generate a custom form; On the web interface, the BMC backend interface is called to return the I2C link information managed by the BMC in the front-end custom form. The I2C link information managed by the BMC is obtained and the corresponding form is rendered and displayed on the web interface.

4. The method for detecting an I2C link according to claim 3, wherein: After the BMC receives the response, the steps of sending I2C data to the device connected to the link channel include: After receiving the response, the BMC starts the data simulation program and sends I2C data to the device connected to the link channel according to the fixed frequency of I2C.

5. The method for detecting an I2C link according to claim 4, wherein: After receiving the response, the BMC starts the data simulation program. The steps of sending I2C data to the device connected to the link channel according to the fixed frequency of I2C include: The device forwards the received data to the CPLD; After receiving the data, the CPLD returns the data to the BMC.

6. The method for detecting an I2C link according to claim 1, wherein: The method further includes: After the test is completed, a test report is automatically generated.

7. An I2C link detection device, characterized in that: When designing the link, one end of all I2C links is connected to the BMC, and the other ends of all links are connected to the device and connected to the CPLD through a serial link. The device includes a display setting module, a loopback start setting module, and a detection module; The display settings module is used to add an automatic detection web-based operation page on the BMC to display all I2C links currently managed by the BMC. The operation page allows you to configure the displayed detected link channels and set the configuration information to be transmitted to the BMC; The loopback startup setting module is used to send the configuration information to the CPLD after the BMC receives it, so as to start the loopback of the corresponding link channel and receive the feedback response after the CPLD starts. Specifically, the BMC sends the configuration information to the CPLD after receiving it; after the CPLD receives the configuration information, it parses the received information to obtain the I2C link channel information. According to the parsed I2C link channel information, the device of the corresponding link is selected to connect to the BMC to start the link channel loopback; After the startup is complete, the CPLD feeds back the response information to the BMC; The detection module is used to send I2C data to the device connected to the link channel after the BMC receives the response. If the BMC receives the data returned by the CPLD within a set time, the link channel test passes.

8. An electronic device, characterized in that: The electronic device includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores computer program instructions executable by the at least one processor, and the computer program instructions are executed by the at least one processor to enable the at least one processor to perform the I2C link detection method according to any one of claims 1 to 6.

9. A non-transitory computer-readable storage medium, characterized in that The non-transitory computer-readable storage medium stores computer instructions, and the computer instructions enable the computer to execute the I2C link detection method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Method and system for testing network card, equipment and medium

    CN113608935A

  • Method and system for acquiring link information by BMC, equipment and medium

    CN113867812A