A method, apparatus, device, and medium for detecting motherboard interface status.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-22
- Publication Date
- 2026-08-14
AI Technical Summary
在有些机型中,主板上设计单独的接口来实现NCSI功能,为了检测NCSI接口,传统的方法是将NCSI接口与具备NCSI功能的且相匹配的网卡相连,在系统中通过获取共享口的信息来判断接口正常与否,但是由于一般这种网卡都比较昂贵,加之在长期测试过程中不可避免的损坏,所以大批量测试时将大幅提高测试成本
[0032] As can be seen, this application provides a motherboard interface status detection method, including acquiring a preset interface function detection program for detecting the motherboard interface status, running the preset interface function detection program based on a local programmable system chip to obtain a detection result; sending the detection result to a motherboard connected locally, so that the motherboard generates motherboard interface protocol data based on the detection result; acquiring the motherboard interface protocol data, and determining the motherboard interface status based on the motherboard interface protocol data. This application is applied to a testing fixture to detect the motherboard interface function, sending the detection result to the motherboard, and then the motherboard generates motherboard interface protocol data based on the detection result, and determines the motherboard interface status based on the motherboard interface protocol data, thereby replacing the network card to realize the detection of the NCSI interface and reducing costs.
Smart Images

Figure CN115237695B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and in particular to a method, apparatus, device, and medium for detecting the status of a motherboard interface. Background Technology
[0002] Currently, with the rapid development of computing power, the demand for servers is increasing dramatically. Therefore, the research, development, and iterative updates of servers are particularly important. Every board in a server must undergo power-on verification before leaving the factory. In some models, the motherboard is designed with a separate interface to implement NCSI functionality. The traditional method for testing the NCSI interface is to connect it to a matching network card with NCSI capabilities. The system then determines whether the interface is functioning correctly by obtaining information from the shared port. However, since these network cards are generally expensive, and damage is inevitable during long-term testing, this significantly increases testing costs for large-scale testing.
[0003] As can be seen from the above, how to replace the network card to realize the detection of the NCSI interface in the process of motherboard interface status detection, thereby reducing costs, is a problem that needs to be solved in this field. Summary of the Invention
[0004] In view of this, the purpose of this invention is to provide a motherboard interface status detection method, apparatus, device, and medium that can replace the network card to detect the NCSI interface, thus reducing costs. The specific solution is as follows:
[0005] Firstly, this application discloses a motherboard interface status detection method, including:
[0006] Obtain a preset interface function detection program for detecting the motherboard interface status, and run the preset interface function detection program based on the local programmable system chip to obtain the detection results;
[0007] The detection results are sent to the motherboard connected locally, so that the motherboard can generate motherboard interface protocol data based on the detection results;
[0008] The motherboard interface protocol data is obtained, and the motherboard interface status is determined based on the motherboard interface protocol data.
[0009] Optionally, before obtaining the preset interface function detection program for detecting the motherboard interface status, the method further includes:
[0010] Acquire programmable system-on-a-chip and detection components;
[0011] The detection fixture is generated based on the programmable system chip and the detection component; the detection component includes an NCSI interface and a USB interface.
[0012] Optionally, after generating the detection fixture based on the programmable system chip and the detection component, the method further includes:
[0013] Connect the NCSI interface in the testing fixture to the NCSI interface on the motherboard;
[0014] The USB interface in the testing fixture is disguised as a serial interface and connected to the USB interface in the motherboard.
[0015] Optionally, after generating the detection fixture based on the programmable system chip and the detection component, the method further includes:
[0016] The target pin is determined from all the pins of the programmable system chip;
[0017] Connect the target pin to the NCSI interface in the detection component.
[0018] Optionally, the step of enabling the motherboard to generate motherboard interface protocol data based on the detection result includes:
[0019] After the motherboard obtains the detection result, it generates and executes motherboard interface protocol data instructions based on the detection result to obtain motherboard interface protocol data.
[0020] Optionally, after the motherboard obtains the detection result, the method further includes:
[0021] According to the preset NCSI protocol rules, the target data packet is selected from all local data packets and sent to the motherboard.
[0022] Optionally, after determining the motherboard interface status based on the motherboard interface protocol data, the method further includes:
[0023] If the motherboard interface is in normal condition, information indicating that the motherboard interface is in normal condition will be displayed on the local preset display. If the motherboard interface is in abnormal condition, information indicating that the motherboard interface is in abnormal condition will be displayed on the local preset display.
[0024] Secondly, this application discloses a motherboard interface status detection device, comprising:
[0025] The detection result determination module is used to acquire a preset interface function detection program for detecting the status of the motherboard interface, and run the preset interface function detection program based on the local programmable system single chip to obtain the detection result.
[0026] The motherboard interface protocol data generation module is used to send the detection results to the motherboard connected locally, so that the motherboard can generate motherboard interface protocol data based on the detection results;
[0027] The motherboard interface status determination module is used to acquire the motherboard interface protocol data and determine the motherboard interface status based on the motherboard interface protocol data.
[0028] Thirdly, this application discloses an electronic device, including:
[0029] Memory, used to store computer programs;
[0030] A processor is used to execute the computer program to implement the aforementioned motherboard interface status detection method.
[0031] Fourthly, this application discloses a computer storage medium for storing a computer program; wherein, when the computer program is executed by a processor, it implements the steps of the aforementioned disclosed motherboard interface status detection method.
[0032] As can be seen, this application provides a motherboard interface status detection method, including acquiring a preset interface function detection program for detecting the motherboard interface status, running the preset interface function detection program based on a local programmable system chip to obtain a detection result; sending the detection result to a motherboard connected locally, so that the motherboard generates motherboard interface protocol data based on the detection result; acquiring the motherboard interface protocol data, and determining the motherboard interface status based on the motherboard interface protocol data. This application is applied to a testing fixture to detect the motherboard interface function, sending the detection result to the motherboard, and then the motherboard generates motherboard interface protocol data based on the detection result, and determines the motherboard interface status based on the motherboard interface protocol data, thereby replacing the network card to realize the detection of the NCSI interface and reducing costs. Attached Figure Description
[0033] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0034] Figure 1 This is a flowchart of a motherboard interface status detection method disclosed in this application;
[0035] Figure 2 This is a schematic diagram of a network management structure disclosed in this application;
[0036] Figure 3This is a flowchart of a motherboard interface status detection method disclosed in this application;
[0037] Figure 4 This is a schematic diagram illustrating the main data flow of a fixture disclosed in this application;
[0038] Figure 5 This is a flowchart illustrating the specific operation of a motherboard interface status detection method disclosed in this application.
[0039] Figure 6 This is a schematic diagram of the structure of a motherboard interface status detection device disclosed in this application;
[0040] Figure 7 This application provides a structural diagram of an electronic device. Detailed Implementation
[0041] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0042] Currently, with the rapid development of computing power, the demand for servers is increasing dramatically. Therefore, the research, development, and iterative updates of servers are particularly important, and every board in a server must undergo power-on verification before leaving the factory. In some models, the motherboard is designed with a separate interface to implement NCSI functionality. The traditional method for detecting the NCSI interface is to connect it to a matching network card with NCSI functionality. The system then determines the interface's functionality by obtaining information from the shared port. However, since these network cards are generally expensive, and damage is inevitable during long-term testing, this significantly increases testing costs for large-scale testing. Therefore, how to replace the network card in the process of motherboard interface status detection to implement NCSI interface detection and reduce costs is a problem that needs to be solved in this field.
[0043] This invention utilizes a microcontroller and related peripheral components to develop a small fixture, and develops related firmware to implement NCSI protocol communication with the motherboard BMC to detect the NCSI interface on the motherboard. The problem solved by this invention is that expensive network cards are no longer needed to detect the NCSI interface during motherboard testing, thus reducing testing costs.
[0044] The NCSI (Network Controller Sideband Interface) in this application is an industry-standard interface for a sideband interface network controller that supports out-of-band management of servers, defined by the Distributed Management Task Force (DMTF).
[0045] In this application, corresponding firmware is developed in the PSOC to simulate communication between the NCSI protocol and the motherboard. A USB interface is added to the fixture and simulated as a serial port. It is connected to the motherboard's USB interface via a USB cable. Under the motherboard system, the fixture appears as a serial port. The motherboard then supplies power to the fixture through the power line in the USB port. The PSOC firmware implements the corresponding functions to communicate with the motherboard and sends the test results to the motherboard via the USB interface. The motherboard system executes the command `ipmitool lan print 8`. After receiving the NCSI protocol data, the fixture organizes the corresponding data packets according to the NCSI protocol rules and sends them to the motherboard. If the system returns a normal result, it proves that the NCSI interface is normal. This invention utilizes a microcontroller and related peripheral components to develop a small fixture and develop related firmware to implement NCSI protocol communication with the motherboard BMC to detect the NCSI interface on the motherboard. The problem solved by this invention is that expensive network cards are no longer used to detect the NCSI interface during motherboard testing, reducing testing costs. The innovation of this invention is: using an inexpensive PSOC with corresponding firmware to replace a network card to detect the NCSI interface, thus reducing costs.
[0046] See Figure 1 As shown in the figure, an embodiment of the present invention discloses a motherboard interface status detection method, which may specifically include:
[0047] Step S11: Obtain a preset interface function detection program for detecting the motherboard interface status, and run the preset interface function detection program based on the local programmable system chip to obtain the detection result.
[0048] In this embodiment, before obtaining the preset interface function detection program for detecting the motherboard interface status, the method further includes: obtaining a programmable system chip and a detection component; generating the detection fixture based on the programmable system chip and the detection component; the detection component includes an NCSI interface and a USB interface, then connecting the NCSI interface in the detection fixture to the NCSI interface on the motherboard, disguising the USB interface in the detection fixture as a serial interface and connecting it to the USB interface on the motherboard, and simultaneously determining a target pin from all pins of the programmable system chip and connecting the target pin to the NCSI interface in the detection component.
[0049] Step S12: Send the detection result to the motherboard connected locally, so that the motherboard can generate motherboard interface protocol data based on the detection result.
[0050] Step S13: Obtain the motherboard interface protocol data and determine the motherboard interface status based on the motherboard interface protocol data.
[0051] In this embodiment, if the motherboard interface is in normal condition, information indicating that the motherboard interface is in normal condition is displayed on a local preset display; if the motherboard interface is in abnormal condition, information indicating that the motherboard interface is in abnormal condition is displayed on a local preset display.
[0052] For example, the server's network management structure is as follows Figure 2 As shown, the sideband refers to the NCSI interface. The management controller communicates with the network controller through this interface to implement the NCSI function. This invention enables the interaction between the network controller and the management controller, completing the detection of the motherboard's NCSI interface. The main data flow diagram of the fixture is shown below. Figure 2 As shown, the fixture has a corresponding interface that connects to the NCSI interface of the motherboard and is connected to a suitable pin of the PSOC (System-on-a-Chip). This invention utilizes a microcontroller and related peripheral components to develop a small fixture and develop related firmware to implement the NCSI protocol to communicate with the motherboard BMC (Baseboard Management Controller) to detect the NCSI interface on the motherboard. The problem solved by this invention is that expensive network cards are no longer used to detect the NCSI interface during motherboard testing, thus reducing testing costs.
[0053] In this embodiment, corresponding firmware is developed in the PSOC to simulate communication between the NCSI protocol and the motherboard. A USB interface is added to the fixture and simulated as a serial port. It is connected to the motherboard's USB interface via a USB cable. Under the motherboard system, the fixture appears as a serial port. The motherboard then supplies power to the fixture through the power line in the USB port. The PSOC firmware implements the corresponding functions to communicate with the motherboard and sends the test results to the motherboard via the USB interface. The motherboard system executes the command `ipmitool lan print 8`. After receiving the NCSI protocol data, the fixture organizes the corresponding data packets according to the NCSI protocol rules and sends them to the motherboard. If the system returns a normal result, it proves that the NCSI interface is normal. This invention utilizes a microcontroller and related peripheral components to develop a small fixture and develop related firmware to implement NCSI protocol communication with the motherboard BMC to detect the NCSI interface on the motherboard. The problem solved by this invention is that expensive network cards are no longer used to detect the NCSI interface during motherboard testing, reducing testing costs. The innovation of this invention is: using an inexpensive PSOC with corresponding firmware to replace a network card to detect the NCSI interface, thus reducing costs.
[0054] The specific process of this application is as follows: First, obtain a programmable system chip and a detection component, and generate the detection fixture based on the programmable system chip and the detection component; the detection component includes an NCSI interface and a USB interface. Connect the NCSI interface in the detection fixture to the NCSI interface on the motherboard. Second, disguise the USB interface in the detection fixture as a serial interface and connect it to the USB interface on the motherboard. Determine the target pin from all the pins of the programmable system chip, and then connect the target pin to the NCSI interface in the detection component. Third, obtain a preset interface function detection program for detecting the motherboard interface status, and run the preset interface function detection program based on the local programmable system chip to obtain the detection result, and then send the detection result to the motherboard connected locally. Fourth step: After the motherboard receives the detection result, it generates and executes motherboard interface protocol data instructions based on the detection result to obtain motherboard interface protocol data. Then, according to preset NCSI protocol rules, it filters out target data packets from all local data packets and sends the target data packets to the motherboard. After the motherboard receives the detection result, it generates and executes motherboard interface protocol data instructions based on the detection result to obtain motherboard interface protocol data. Fifth step: It obtains the motherboard interface protocol data and determines the motherboard interface status based on the motherboard interface protocol data. If the motherboard interface status is normal, it displays information indicating a normal motherboard interface status on a local preset display. If the motherboard interface status is abnormal, it displays information indicating an abnormal motherboard interface status on a local preset display.
[0055] In this embodiment, a preset interface function detection program for detecting the motherboard interface status is obtained, and the preset interface function detection program is run on the local programmable system chip to obtain the detection result; the detection result is sent to the motherboard connected locally so that the motherboard can generate motherboard interface protocol data according to the detection result; the motherboard interface protocol data is obtained, and the motherboard interface status is determined based on the motherboard interface protocol data. In this application, corresponding firmware is developed in the PSOC to simulate communication between the NCSI protocol and the motherboard. A USB interface is added to the fixture and simulated as a serial port. It is connected to the motherboard's USB interface via a USB cable. Under the motherboard system, the fixture appears as a serial port. Then, the motherboard supplies power to the fixture through the power line in the USB port. The PSOC firmware implements the corresponding functions to communicate with the motherboard, sending the test result to the motherboard via the USB interface. The `ipmitool lan print 8` command is executed in the motherboard system. After receiving the NCSI protocol data, the fixture organizes the corresponding data packets according to the NCSI protocol rules and sends them to the motherboard. A normal result returned under the system proves that the NCSI interface is normal. This invention utilizes a microcontroller and related peripheral components to develop a small fixture, and develops corresponding firmware to implement NCSI protocol communication with the motherboard BMC to detect the NCSI interface on the motherboard. The problem solved by this invention is that it eliminates the need for expensive network cards to detect the NCSI interface during motherboard testing, thus reducing testing costs. The innovation of this invention lies in using an inexpensive PSOC with corresponding firmware to replace a network card for NCSI interface detection, reducing costs. Furthermore, it is applied to the testing fixture to detect the motherboard interface function and send the detection results to the motherboard. The motherboard then generates motherboard interface protocol data based on the detection results and determines the motherboard interface status based on the motherboard interface protocol data, thereby replacing the network card to detect the NCSI interface.
[0056] See Figure 3 As shown in the figure, an embodiment of the present invention discloses a motherboard interface status detection method, which may specifically include:
[0057] Step S21: Obtain a preset interface function detection program for detecting the motherboard interface status, and run the preset interface function detection program based on the local programmable system chip to obtain the detection result.
[0058] Step S22: Send the detection result to the motherboard connected locally, so that when the motherboard receives the detection result, it can generate and execute motherboard interface protocol data instructions based on the detection result to obtain motherboard interface protocol data.
[0059] In this embodiment, after the motherboard obtains the detection result, the method further includes: the detection fixture filters out the target data packet from all local data packets according to the preset NCSI protocol rules, and sends the target data packet to the motherboard.
[0060] Step S23: Obtain the motherboard interface protocol data and determine the motherboard interface status based on the motherboard interface protocol data.
[0061] In this embodiment, a preset interface function detection program for detecting the motherboard interface status is obtained, and the preset interface function detection program is run based on a local programmable system chip to obtain detection results. The detection results are sent to a motherboard connected locally, so that when the motherboard receives the detection results, it generates and executes motherboard interface protocol data instructions based on the detection results to obtain motherboard interface protocol data. The motherboard interface protocol data is obtained, and the motherboard interface status is determined based on the motherboard interface protocol data. In this embodiment, before obtaining the preset interface function detection program for detecting the motherboard interface status, the method further includes: obtaining a programmable system chip and a detection component; generating a detection fixture based on the programmable system chip and the detection component; the detection component includes an NCSI interface and a USB interface, then connecting the NCSI interface in the detection fixture to the NCSI interface on the motherboard, disguising the USB interface in the detection fixture as a serial interface and connecting it to the USB interface on the motherboard, and simultaneously determining a target pin from all pins of the programmable system chip and connecting the target pin to the NCSI interface in the detection component. This application develops corresponding firmware in the PSOC to simulate NCSI protocol communication with the motherboard. A USB interface is added to the fixture and simulated as a serial port. It is connected to the motherboard's USB interface via a USB cable. Under the motherboard system, the fixture appears as a serial port. The motherboard then supplies power to the fixture through the power line in the USB port. The PSOC firmware implements the corresponding functions to communicate with the motherboard and send test results to the motherboard via the USB interface. The motherboard system executes the command `ipmitool lan print 8`. After receiving NCSI protocol data, the fixture organizes the corresponding data packets according to the NCSI protocol rules and sends them to the motherboard. A normal result returned under the system proves that the NCSI interface is normal. This invention utilizes a microcontroller and related peripheral components to develop a small fixture and develop related firmware to implement NCSI protocol communication with the motherboard BMC to detect the NCSI interface on the motherboard. The problem solved by this invention is that it eliminates the need for expensive network cards to detect the NCSI interface during motherboard testing, thus reducing testing costs. The innovation of this invention is that it uses an inexpensive PSOC with corresponding firmware to replace the network card to realize the detection of the NCSI interface. Furthermore, this application is applied to the testing fixture to test the motherboard interface function and send the test results to the motherboard. Then, the motherboard generates motherboard interface protocol data based on the test results and determines the motherboard interface status based on the motherboard interface protocol data, thereby replacing the network card to realize the detection of the NCSI interface and reducing costs.
[0062] In this embodiment, corresponding firmware is developed in the PSOC to simulate communication between the NCSI protocol and the motherboard. A USB interface is added to the fixture and simulated as a serial port. It is connected to the motherboard's USB interface via a USB cable. Under the motherboard system, the fixture appears as a serial port. The motherboard then supplies power to the fixture through the power line in the USB port. The PSOC firmware implements the corresponding functions to communicate with the motherboard and sends the test results to the motherboard via the USB interface. The motherboard system executes the command `ipmitool lan print 8`. After receiving the NCSI protocol data, the fixture organizes the corresponding data packets according to the NCSI protocol rules and sends them to the motherboard. If the system returns a normal result, it proves that the NCSI interface is normal. This invention utilizes a microcontroller and related peripheral components to develop a small fixture and develop related firmware to implement NCSI protocol communication with the motherboard BMC to detect the NCSI interface on the motherboard. The problem solved by this invention is that expensive network cards are no longer used to detect the NCSI interface during motherboard testing, reducing testing costs. The innovation of this invention is: using an inexpensive PSOC with corresponding firmware to replace a network card to detect the NCSI interface, thus reducing costs.
[0063] For example, such as Figure 4 As shown, the PSOC in the testing fixture is connected to the NCSI interface; the NCSI interface in the testing fixture is also connected to the NCSI interface on the motherboard; the USB interface in the testing fixture is disguised as a serial interface and connected to the USB interface on the motherboard.
[0064] For example, the specific operating procedure is as follows Figure 5As shown, the first step is to set up a board testing environment, obtain a programmable system chip (PSC) and a testing component, and generate a testing fixture based on the PSC and the testing component. The testing component includes an NCSI interface and a USB interface. The NCSI interface in the testing fixture is connected to the NCSI interface on the motherboard. The second step is to connect the fixture to the motherboard's USB port. Specifically, the USB interface in the testing fixture is disguised as a serial interface and connected to the USB interface on the motherboard. A target pin is identified from all the pins of the PSC, and then the target pin is connected to the NCSI interface in the testing component. The third step is to run the testing system. That is, a preset interface function testing program for detecting the motherboard interface status is obtained, and the preset interface function testing program is run based on the local PSC to obtain the testing results. The testing results are then sent to the motherboard connected locally. The fourth step executes the `ipmitool lan print 8` (motherboard interface protocol data) command. That is, after the motherboard receives the detection result, it generates and executes the motherboard interface protocol data command based on the detection result to obtain the motherboard interface protocol data. Then, according to preset NCSI protocol rules, it filters the target data packet from all local data packets and sends the target data packet to the motherboard. After the motherboard receives the detection result, it generates and executes the motherboard interface protocol data command based on the detection result to obtain the motherboard interface protocol data. The fifth step determines the return result. Specifically, it obtains the motherboard interface protocol data and determines the motherboard interface status based on the motherboard interface protocol data. If the motherboard interface status is normal, it displays information indicating a normal motherboard interface status on a local preset display. If the motherboard interface status is abnormal, it displays information indicating an abnormal motherboard interface status on a local preset display.
[0065] See Figure 6 As shown, this embodiment of the invention discloses a motherboard interface status detection device, which may specifically include:
[0066] The detection result determination module 11 is used to obtain a preset interface function detection program for detecting the status of the motherboard interface, and run the preset interface function detection program based on the local programmable system single chip to obtain the detection result.
[0067] The motherboard interface protocol data generation module 12 is used to send the detection result to the motherboard connected locally, so that the motherboard can generate motherboard interface protocol data based on the detection result;
[0068] The motherboard interface status determination module 13 is used to acquire the motherboard interface protocol data and determine the motherboard interface status based on the motherboard interface protocol data.
[0069] The specific process of this application is as follows: First, obtain a programmable system chip and a detection component, and generate the detection fixture based on the programmable system chip and the detection component; the detection component includes an NCSI interface and a USB interface. Connect the NCSI interface in the detection fixture to the NCSI interface on the motherboard. Second, disguise the USB interface in the detection fixture as a serial interface and connect it to the USB interface on the motherboard. Determine the target pin from all the pins of the programmable system chip, and then connect the target pin to the NCSI interface in the detection component. Third, obtain a preset interface function detection program for detecting the motherboard interface status, and run the preset interface function detection program based on the local programmable system chip to obtain the detection result, and then send the detection result to the motherboard connected locally. Fourth step: After the motherboard receives the detection result, it generates and executes motherboard interface protocol data instructions based on the detection result to obtain motherboard interface protocol data. Then, according to preset NCSI protocol rules, it filters out target data packets from all local data packets and sends the target data packets to the motherboard. After the motherboard receives the detection result, it generates and executes motherboard interface protocol data instructions based on the detection result to obtain motherboard interface protocol data. Fifth step: It obtains the motherboard interface protocol data and determines the motherboard interface status based on the motherboard interface protocol data. If the motherboard interface status is normal, it displays information indicating a normal motherboard interface status on a local preset display. If the motherboard interface status is abnormal, it displays information indicating an abnormal motherboard interface status on a local preset display.
[0070] In this application, corresponding firmware is developed in the PSOC to simulate communication between the NCSI protocol and the motherboard. A USB interface is added to the fixture and simulated as a serial port. It is connected to the motherboard's USB interface via a USB cable. Under the motherboard system, the fixture appears as a serial port. The motherboard then supplies power to the fixture through the power line in the USB port. The PSOC firmware implements the corresponding functions to communicate with the motherboard and sends the test results to the motherboard via the USB interface. The motherboard system executes the command `ipmitool lan print 8`. After receiving the NCSI protocol data, the fixture organizes the corresponding data packets according to the NCSI protocol rules and sends them to the motherboard. If the system returns a normal result, it proves that the NCSI interface is normal. This invention utilizes a microcontroller and related peripheral components to develop a small fixture and develop related firmware to implement NCSI protocol communication with the motherboard BMC to detect the NCSI interface on the motherboard. The problem solved by this invention is that expensive network cards are no longer used to detect the NCSI interface during motherboard testing, reducing testing costs. The innovation of this invention is: using an inexpensive PSOC with corresponding firmware to replace a network card to detect the NCSI interface, thus reducing costs.
[0071] In this embodiment, a preset interface function detection program for detecting the motherboard interface status is obtained, and the preset interface function detection program is run on a local programmable system chip to obtain detection results. The detection results are sent to a motherboard connected locally, so that the motherboard generates motherboard interface protocol data based on the detection results. The motherboard interface protocol data is obtained, and the motherboard interface status is determined based on the motherboard interface protocol data. This application is applied to a testing fixture to detect the motherboard interface function, and sends the detection results to the motherboard. Then, the motherboard generates motherboard interface protocol data based on the detection results, and determines the motherboard interface status based on the motherboard interface protocol data, thereby replacing the network card to realize the detection of the NCSI interface and reducing costs.
[0072] Furthermore, the PSOC in the testing fixture of this application is connected to the NCSI interface; the NCSI interface in the testing fixture is also connected to the NCSI interface on the motherboard; the USB interface in the testing fixture is disguised as a serial interface and connected to the USB interface on the motherboard. The management controller communicates with the network controller through this interface to realize the NCSI function. This invention realizes the interaction function between the network controller and the management controller to complete the testing of the motherboard's NCSI interface. The main data flow diagram of the fixture is as follows. Figure 2As shown, the fixture has a corresponding interface that connects to the NCSI interface of the motherboard and is connected to a suitable pin of the PSOC (System-on-a-Chip). This invention utilizes a microcontroller and related peripheral components to develop a small fixture and develop related firmware to implement the NCSI protocol to communicate with the motherboard BMC (Baseboard Management Controller) to detect the NCSI interface on the motherboard. The problem solved by this invention is that expensive network cards are no longer used to detect the NCSI interface during motherboard testing, thus reducing testing costs.
[0073] In some specific embodiments, the detection result determination module 11 may specifically include:
[0074] The chip acquisition module is used to acquire programmable system chips and detection components;
[0075] The testing fixture generation module is used to generate the testing fixture based on the programmable system chip and the testing component; the testing component includes an NCSI interface and a USB interface.
[0076] In some specific embodiments, the detection result determination module 11 may specifically include:
[0077] An NCSI interface connection module is used to connect the NCSI interface in the testing fixture to the NCSI interface on the motherboard.
[0078] The USB interface connection module is used to disguise the USB interface in the testing fixture as a serial interface and connect it to the USB interface in the motherboard.
[0079] In some specific embodiments, the detection result determination module 11 may specifically include:
[0080] A target pin determination module is used to determine a target pin from all the pins of the programmable system chip;
[0081] A target pin connection module is used to connect the target pin to the NCSI interface in the detection component.
[0082] In some specific embodiments, the motherboard interface protocol data generation module 12 may specifically include:
[0083] The motherboard interface protocol data generation module is used to generate and execute motherboard interface protocol data instructions based on the detection results after the motherboard obtains the detection results, so as to obtain motherboard interface protocol data.
[0084] In some specific embodiments, the motherboard interface protocol data generation module 12 may specifically include:
[0085] The target data packet sending module is used to filter out the target data packet from all local data packets according to the preset NCSI protocol rules, and send the target data packet to the motherboard.
[0086] In some specific embodiments, the motherboard interface status determination module 13 may specifically include:
[0087] The information display module is used to display information indicating that the motherboard interface is in normal condition on a local preset display if the motherboard interface is in normal condition, and to display information indicating that the motherboard interface is in abnormal condition on a local preset display if the motherboard interface is in abnormal condition.
[0088] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 stores a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the motherboard interface status detection method performed by the electronic device disclosed in any of the foregoing embodiments.
[0089] In this embodiment, the power supply 23 is used to provide operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and external devices, and the communication protocol it follows can be any communication protocol applicable to the technical solution of this application, and is not specifically limited here; the input / output interface 25 is used to acquire external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs, and is not specifically limited here.
[0090] In addition, the memory 22, as a carrier for resource storage, can be a read-only memory, random access memory, disk or optical disk, etc. The resources stored on it include operating system 221, computer program 222 and data 223, etc., and the storage method can be temporary storage or permanent storage.
[0091] The operating system 221 manages and controls the various hardware devices on the electronic device 20 and the computer program 222 to enable the processor 21 to perform calculations and processing on the data 223 in the memory 22. The operating system 221 can be Windows, Unix, Linux, etc. The computer program 222, in addition to including a computer program capable of performing the motherboard interface status detection method executed by the electronic device 20 as disclosed in any of the foregoing embodiments, may further include computer programs capable of performing other specific tasks. The data 223 may include data received by the motherboard interface status detection device from external devices, as well as data collected by its own input / output interface 25.
[0092] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.
[0093] Furthermore, embodiments of this application also disclose a computer-readable storage medium storing a computer program. When the computer program is loaded and executed by a processor, it implements the steps of the motherboard interface status detection method disclosed in any of the foregoing embodiments.
[0094] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0095] The present invention has provided a detailed description of a motherboard interface status detection method, apparatus, device, and storage medium. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.
Claims
1. A method for detecting the status of a motherboard interface, characterized in that, Applications to testing fixtures include: Obtain a preset interface function detection program for detecting the motherboard interface status, and run the preset interface function detection program based on the local programmable system chip to obtain the detection results; The detection results are sent to the motherboard connected locally, so that the motherboard can generate motherboard interface protocol data based on the detection results; Obtain the motherboard interface protocol data and determine the motherboard interface status based on the motherboard interface protocol data; Before obtaining the preset interface function detection program for detecting the motherboard interface status, the method further includes: obtaining a programmable system chip and a detection component; generating the detection fixture based on the programmable system chip and the detection component; the detection component includes an NCSI interface and a USB interface; After generating the detection fixture based on the programmable system single chip and the detection component, the method further includes: connecting the NCSI interface in the detection fixture to the NCSI interface on the motherboard; disguising the USB interface in the detection fixture as a serial interface and connecting it to the USB interface on the motherboard. After generating the detection fixture based on the programmable system chip and the detection component, the method further includes: determining a target pin from all pins of the programmable system chip; and connecting the target pin to the NCSI interface in the detection component.
2. The motherboard interface status detection method according to claim 1, characterized in that, The process of enabling the motherboard to generate motherboard interface protocol data based on the detection results includes: After the motherboard obtains the detection result, it generates and executes motherboard interface protocol data instructions based on the detection result to obtain motherboard interface protocol data.
3. The motherboard interface status detection method according to claim 2, characterized in that, After the motherboard obtains the detection result, the process further includes: According to the preset NCSI protocol rules, the target data packet is selected from all local data packets and sent to the motherboard.
4. The motherboard interface status detection method according to any one of claims 1 to 3, characterized in that, After determining the motherboard interface status based on the motherboard interface protocol data, the process further includes: If the motherboard interface is in normal condition, information indicating that the motherboard interface is in normal condition will be displayed on the local preset display. If the motherboard interface is in abnormal condition, information indicating that the motherboard interface is in abnormal condition will be displayed on the local preset display.
5. A motherboard interface status detection device, characterized in that, include: The detection result determination module is used to acquire a preset interface function detection program for detecting the status of the motherboard interface, and run the preset interface function detection program based on the local programmable system single chip to obtain the detection result. The motherboard interface protocol data generation module is used to send the detection results to the motherboard connected locally, so that the motherboard can generate motherboard interface protocol data based on the detection results; The motherboard interface status determination module is used to acquire the motherboard interface protocol data and determine the motherboard interface status based on the motherboard interface protocol data. Before obtaining the preset interface function detection program for detecting the motherboard interface status, the method further includes: obtaining a programmable system chip and a detection component; generating a detection fixture based on the programmable system chip and the detection component; the detection component includes an NCSI interface and a USB interface; After generating the detection fixture based on the programmable system single chip and the detection component, the method further includes: connecting the NCSI interface in the detection fixture to the NCSI interface on the motherboard; disguising the USB interface in the detection fixture as a serial interface and connecting it to the USB interface on the motherboard. After generating the detection fixture based on the programmable system chip and the detection component, the method further includes: determining a target pin from all pins of the programmable system chip; and connecting the target pin to the NCSI interface in the detection component.
6. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor for executing the computer program to implement the motherboard interface status detection method as described in any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that, Used to store computer programs; wherein, when the computer program is executed by a processor, it implements the motherboard interface status detection method as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Multifunctional network application equipment and starting and online updating method
CN101039219A
Network card test method
CN101364902A