Interface function diagnosis system, method and equipment
Through the interface function diagnosis system and method, combined with hardware and software, the protocol compatibility and high-load stability of the RJ45 interface are detected, which solves the accuracy problem of interface diagnosis in multi-machine interconnection scenarios and ensures the stable and efficient operation of the information technology server cluster.
Patent Information
- Application Number
- CN202510884814.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-27
- Publication Date
- 2025-09-26
AI Technical Summary
The existing RJ45 interface diagnostic method is difficult to achieve accurate protocol compatibility and stability detection in multi-machine interconnection scenarios, resulting in communication interruptions and data transmission errors between trusted computing servers, affecting cluster operation efficiency.
Provided is an interface function diagnosis system and method. By cooperating with diagnostic equipment and servers, and using a combination of hardware and software, the system performs protocol compatibility and high-load stability testing of multi-machine interconnection communication interfaces, including test data sending, data reading, protocol processing flow verification and high-load testing.
It realizes comprehensive and in-depth diagnosis of multi-machine interconnection communication interfaces, can detect potential problems, and ensure stable and efficient communication between the information and innovation server clusters.
Smart Images

Figure CN120705060A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of server technology, and in particular to an interface function diagnosis system, method and diagnostic device. Background Art
[0002] RJ45 is a type of information socket connector in a wiring system. It consists of a plug and a socket, with the plug having eight grooves and eight contacts. In scenarios where multiple servers are interconnected, the protocol-based RJ45 interface is widely used to achieve efficient data exchange and collaborative work. The protocol-based RJ45 interface plays a key role in high-speed and stable communication between servers, and its functions differ significantly from those of conventional network RJ45 interfaces.
[0003] Current RJ45 interface diagnostic methods are mostly designed around network interfaces, making them difficult to diagnose across multi-machine communication interfaces. Common diagnostic methods can only detect basic connectivity, which can lead to communication interruptions, data transmission errors, and collaborative work anomalies between trusted computing servers in real-world applications, severely impacting the overall operational efficiency of trusted computing server clusters.
[0004] It can be seen that how to achieve accurate diagnosis of the RJ45 interface based on the protocol in a multi-machine interconnection scenario is a problem that needs to be solved by those skilled in the art. Summary of the Invention
[0005] The present application provides an interface function diagnosis system, method and diagnostic device to at least solve the problem in the related art that it is impossible to accurately diagnose the protocol-based RJ45 interface in a multi-machine interconnection scenario.
[0006] The present application provides an interface function diagnosis system, comprising a server and a diagnostic device; the diagnostic device is connected to the interface to be tested of the server;
[0007] The server is used to detect that a diagnostic device is mounted and send test data to the diagnostic device in accordance with a multi-machine interconnection communication method; read data from a register of the diagnostic device; determine that the interface under test is working normally when the read data is the same as the test data; send various types of communication data to the interface under test in accordance with different communication methods; determine that the communication protocol compatibility of the interface under test meets the requirements when the processing of various types of communication data complies with the serial bus protocol processing flow; continuously apply data traffic to the interface under test according to a set time period; and determine that the stability of the interface under test meets the requirements when no abnormality occurs in the interface under test;
[0008] The diagnostic device is used to send various types of communication data to the interface under test in different communication modes; when the processing of various types of communication data complies with the serial bus protocol processing flow, determine that the communication protocol compatibility of the interface under test meets the requirements; continuously apply data traffic to the interface under test according to the set time; when no abnormality occurs in the interface under test, determine that the stability of the interface under test meets the requirements.
[0009] This application also provides an interface function diagnosis method applicable to a server, the method comprising:
[0010] When the diagnostic device is detected to be mounted, the test data is sent to the diagnostic device in accordance with the multi-machine interconnection communication mode;
[0011] Read data from the register of the diagnostic device;
[0012] When the read data is the same as the test data, it is determined that the interface to be tested is working normally;
[0013] Send various communication data to the interface under test according to different communication methods;
[0014] When the processing of various communication data complies with the serial bus protocol processing flow, it is determined that the communication protocol compatibility of the interface to be tested meets the requirements;
[0015] Continuously apply data traffic to the interface under test according to the set duration;
[0016] When no abnormality occurs in the interface to be tested, it is determined that the stability of the interface to be tested meets the requirements.
[0017] The present application also provides an electronic device, comprising: a memory for storing a computer program; and a processor for implementing the steps of any of the above-mentioned interface function diagnosis methods when executing the computer program.
[0018] The present application also provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned interface function diagnosis methods are implemented.
[0019] The present application also provides a computer program product, including a computer program, which implements the steps of any of the above-mentioned interface function diagnosis methods when executed by a processor.
[0020] The present application also provides a diagnostic device, which is connected to a test interface of a server, and includes a test module, a voltage conversion module, and a built-in battery;
[0021] The input end of the voltage conversion module is connected to the built-in battery, and the output end of the voltage conversion module is connected to the test module, and is used to convert the power supply voltage of the built-in battery into the power supply voltage required by the test module;
[0022] The test module is connected to the interface to be tested, and is used to receive test data transmitted by the interface to be tested; store the test data in its corresponding register; send various types of communication data to the interface to be tested according to different communication methods; when the processing of various types of communication data complies with the serial bus protocol processing flow, determine that the communication protocol compatibility of the interface to be tested meets the requirements; continuously apply data traffic to the interface to be tested according to the set time; when no abnormality occurs in the interface to be tested, determine that the stability of the interface to be tested meets the requirements.
[0023] Through the present application, the diagnostic device and the server cooperate with each other to implement the test of the interface to be tested, and the diagnostic device is connected to the interface to be tested of the server. In order to test whether the interface can work normally, when the server detects that the diagnostic device is mounted, it sends test data to the diagnostic device according to the multi-machine interconnection communication method; and then reads the data from the register of the diagnostic device. If the read data is the same as the test data, it can be determined that the interface to be tested is working normally. In order to test the compatibility of the interface communication protocol, the server can send various types of communication data to the interface to be tested according to different communication methods; when the processing of various types of communication data complies with the serial bus protocol processing flow, it means that the interface to be tested supports the serial bus protocol. At this time, it can be determined that the communication protocol compatibility of the interface to be tested meets the requirements. In order to test the stability of the interface, a high-load test can be performed on it. The server can continuously apply data traffic to the interface to be tested according to the set time; when no abnormality occurs in the interface to be tested, it is determined that the stability of the interface to be tested meets the requirements. The interface to be tested can realize two-way communication between devices. Therefore, for the test of protocol compatibility and high-load stability, in addition to being initiated by the server, the diagnostic device also needs to perform the test. The diagnostic device can send various types of communication data to the interface to be tested in different communication modes; when the processing of various types of communication data complies with the serial bus protocol processing flow, it is determined that the communication protocol compatibility of the interface to be tested meets the requirements; data traffic is continuously applied to the interface to be tested according to the set time; when no abnormality occurs in the interface to be tested, it is determined that the stability of the interface to be tested meets the requirements. The diagnostic device is mainly composed of hardware devices, and a program for interface testing is deployed on the server. Compared with the current single connectivity test, this application realizes the detection of data synchronization accuracy, protocol compatibility, and high-load stability of the interface through a combination of software and hardware. It can meet the diagnostic needs of multi-machine interconnection communication interfaces, comprehensively and in-depth diagnose the interfaces of multi-machine interconnection communication, and can effectively detect various potential problems of the interface in multi-machine interconnection communication, thereby effectively ensuring the stability and efficiency of communication between the trusted server clusters. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0025] Figure 1 A schematic diagram of the structure of an interface function diagnosis system provided in an embodiment of the present application;
[0026] Figure 2 A schematic diagram of the structure of a diagnostic device provided in an embodiment of the present application;
[0027] Figure 3 A flowchart of an interface function diagnosis method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0028] The following will be combined with the accompanying drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0029] It should be noted that, in the description of this application, the terms "comprises," "includes," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. The terms "first," "second," etc., in this application are used to distinguish similar objects, and are not used to describe a particular order or sequence.
[0030] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.
[0031] Figure 1 A structural diagram of an interface function diagnosis system provided in an embodiment of the present application includes a server 1 and a diagnostic device 2; the diagnostic device 2 is connected to the interface to be tested of the server 1.
[0032] In actual applications, the operator may deploy a software program for executing the test of the interface to be tested on the server 1 in advance, and call the software program to implement the test of the interface to be tested.
[0033] When server 1 detects that diagnostic device 2 is mounted, it sends test data to diagnostic device 2 according to the multi-machine interconnection communication mode; reads data from the register of diagnostic device 2; and determines that the interface to be tested is working normally when the read data is the same as the test data.
[0034] In the embodiment of the present application, the interface to be tested can be an RJ45 interface based on the protocol. In order to detect the RJ45 interface used when multiple machines are interconnected, the server 1 can simulate the scenario of multiple machines being interconnected and send test data to the diagnostic device 2 according to the communication mode of the multiple machines being interconnected.
[0035] Server 1 can set the data transmission rate, signal strength, and test duration for the interface to be tested based on the actual situation of the multi-machine interconnected system. For example, the data transmission rate can be set to a value between 100K and 400K, the signal strength can be adjusted to 100%, and the test duration can be set to 3 minutes.
[0036] In order to implement the protocol compatibility test of the interface to be tested, the server 1 may send various communication data to the interface to be tested in different communication modes.
[0037] Various types of communication data may include Ethernet protocol data frames, fieldbus protocol data frames, serial bus protocol data frames, etc.
[0038] Communication data of different protocol types are sent to the interface under test. Only when the protocol type of the communication data belongs to the protocol type used by the interface under test can the communication data corresponding to the protocol type be identified and processed normally.
[0039] In multi-machine interconnection scenarios, RJ45 interfaces use the serial bus protocol, also known as the I2C protocol. Therefore, if the processing of various communication data complies with the serial bus protocol flow, only the communication data corresponding to the serial bus protocol is processed. In this case, the communication protocol compatibility of the interface under test can be determined to meet the requirements.
[0040] The serial bus protocol processing flow is in compliance, including that the communication data of the serial bus protocol can be parsed normally, and the protocol handshake, confirmation and other links are completed smoothly, without any protocol format errors or interaction abnormalities.
[0041] In order to implement a high-load stability test on the interface to be tested, the server 1 may continuously apply data traffic to the interface to be tested according to a set duration; if no abnormality occurs on the interface to be tested, it is determined that the stability of the interface to be tested meets the requirements.
[0042] The detection of protocol compatibility and high-load stability requires that both the server and the diagnostic equipment perform tests, that is, a two-way test. Only when both the two-way tests pass can the protocol compatibility and high-load stability be ensured.
[0043] Therefore, similar to the protocol compatibility and high-load stability tests performed on server 1, diagnostic device 2 can send various communication data to the interface under test using different communication methods. If the processing of various communication data complies with the serial bus protocol processing flow, the interface under test is determined to meet the communication protocol compatibility requirements. Data traffic is continuously applied to the interface under test for a set duration. If no abnormalities are observed on the interface under test, the stability of the interface under test is determined to meet the requirements.
[0044] When server 1 and diagnostic device 2 perform the same test, if either side determines that the communication protocol compatibility of the tested interface does not meet the requirements, it indicates that there is a problem with the protocol compatibility; if either side determines that the stability of the tested interface does not meet the requirements, it indicates that the stability is weak.
[0045] As can be seen from the above technical solution, the interface function diagnostic system includes a server and a diagnostic device. The diagnostic device is connected to the server's interface under test, and the diagnostic device and server cooperate to test the interface under test. To test whether the interface is functioning properly, the server detects that the diagnostic device is attached and sends test data to the diagnostic device using a multi-machine interconnection communication method. The server then reads the data from the diagnostic device's register. If the read data matches the test data, the interface under test is considered functioning properly. To test the compatibility of the interface communication protocol, the server can send various communication data to the interface under test using different communication methods. If the processing of various communication data complies with the serial bus protocol processing flow, the interface under test supports the serial bus protocol, and the interface under test is considered to meet the communication protocol compatibility requirements. To test the stability of the interface, a high-load test can be performed. The server can continuously apply data traffic to the interface under test for a set duration. If no abnormalities occur in the interface under test, the stability of the interface under test is considered to meet the requirements. The interface under test enables two-way communication between devices. Therefore, in addition to the server initiating the test, the diagnostic device also needs to perform the test for protocol compatibility and high-load stability. The diagnostic device can send various types of communication data to the interface to be tested in different communication modes; when the processing of various types of communication data complies with the serial bus protocol processing flow, it is determined that the communication protocol compatibility of the interface to be tested meets the requirements; data traffic is continuously applied to the interface to be tested according to the set time; when no abnormality occurs in the interface to be tested, it is determined that the stability of the interface to be tested meets the requirements. The diagnostic device is mainly composed of hardware devices, and a program for interface testing is deployed on the server. Compared with the current single connectivity test, this application realizes the detection of data synchronization accuracy, protocol compatibility, and high-load stability of the interface through a combination of software and hardware. It can meet the diagnostic needs of multi-machine interconnection communication interfaces, comprehensively and in-depth diagnose the interfaces of multi-machine interconnection communication, and can effectively detect various potential problems of the interface in multi-machine interconnection communication, thereby effectively ensuring the stability and efficiency of communication between the trusted server clusters.
[0046] In a multi-machine interconnection scenario, the RJ45 interface uses a serial bus protocol, which may be an I2C protocol.
[0047] Diagnostic device 2 has its own pre-configured serial bus address. To detect whether diagnostic device 2 is connected to the interface under test, server 1 can scan the serial bus link. If the serial bus address of diagnostic device 2 is scanned, test data is sent to diagnostic device 2 based on the data transmission rate and signal strength of the multi-machine interconnection system. If the serial bus address of diagnostic device 2 is not scanned, a connection abnormality prompt message is provided to the user.
[0048] Taking the I2C protocol as an example, in actual application, the server 1 can first scan the I2C link. If the diagnostic device 2 is mounted, the pre-designed I2C address of the diagnostic device 2 will be scanned during the scan. Otherwise, there is an abnormality that needs to be checked.
[0049] By scanning the I2C address of the diagnostic device, the mounting status of the diagnostic device can be accurately identified to ensure that the diagnostic device is connected correctly before executing subsequent test processes.
[0050] In the embodiment of the present application, according to the functions that the diagnostic device 2 needs to implement, the diagnostic device 2 may include a testing module 21 , a voltage conversion module 22 and a built-in battery 23 .
[0051] Since the interface to be tested does not have a power supply, it cannot power the diagnostic device 2. In order to realize the self-power supply of the diagnostic device 2, a built-in battery 23 can be deployed in the diagnostic device 2.
[0052] The diagnostic device 2 used in the embodiment of the present application is a low-power device. The power supply voltage required by the test module 21 is often different from the power supply voltage provided by the built-in battery 23. In order to better supply power to the test module, a voltage conversion module 22 can be set.
[0053] The input end of the voltage conversion module 22 is connected to the built-in battery 23 , and the output end of the voltage conversion module 22 is connected to the test module 21 , and is used to convert the power supply voltage of the built-in battery 23 into the power supply voltage required by the test module 21 .
[0054] The test module 21 is connected to the interface to be tested, and is used to receive test data transmitted by the interface to be tested; store the test data in its corresponding register; send various types of communication data to the interface to be tested according to different communication methods; when the processing of various types of communication data complies with the serial bus protocol processing flow, determine that the communication protocol compatibility of the interface to be tested meets the requirements; continuously apply data traffic to the interface to be tested according to the set time; when no abnormality occurs in the interface to be tested, determine that the stability of the interface to be tested meets the requirements.
[0055] Considering that the interface under test includes two sets of standard I2C signals, it is necessary to diagnose whether both sets of I2C interfaces can communicate normally when testing the interface under test. Therefore, the testing module 21 can include a first diagnostic chip and a second diagnostic chip; the first diagnostic chip can detect one I2C signal, and the second diagnostic chip can detect the other I2C signal.
[0056] The input end of the voltage conversion module 22 is connected to the built-in battery 23, and the output end of the voltage conversion module 22 is connected to the first diagnostic chip and the second diagnostic chip respectively, for converting the power supply voltage of the built-in battery 23 into the power supply voltage required by the first diagnostic chip and the second diagnostic chip.
[0057] The first diagnostic chip is connected to the first serial bus interface included in the interface to be tested, and is used for receiving first test data transmitted by the first serial bus interface; storing the first test data in its corresponding register; sending various types of communication data to the first serial bus interface according to different communication methods; determining that the communication protocol compatibility of the first serial bus interface meets the requirements when the processing of various types of communication data complies with the serial bus protocol processing flow; continuously applying data traffic to the first serial bus interface according to a set time length; and determining that the stability of the first serial bus interface meets the requirements when no abnormality occurs in the first serial bus interface.
[0058] The second diagnostic chip is connected to the second serial bus interface included in the interface to be tested, and is used for receiving second test data transmitted by the second serial bus interface; storing the second test data in its corresponding register; sending various types of communication data to the second serial bus interface according to different communication methods; when the processing of various types of communication data complies with the serial bus protocol processing flow, determining that the communication protocol compatibility of the second serial bus interface meets the requirements; continuously applying data traffic to the second serial bus interface according to the set time length; when no abnormality occurs in the second serial bus interface, determining that the stability of the second serial bus interface meets the requirements.
[0059] By arranging two diagnostic chips in the diagnostic device, independent detection of the two serial bus interfaces included in the interface to be tested can be achieved, thereby ensuring that the two serial bus interfaces function normally.
[0060] Taking test module 21 as an example, which includes a first diagnostic chip and a second diagnostic chip, server 1 can verify the proper functioning of the interface under test by sending test data (T_DATA) to the first diagnostic chip's register (REG_01) via the first serial bus interface. Server 1 then controls the first serial bus interface to read the data in the first diagnostic chip's register, with the read data marked as R_DATA. T_DATA and R_DATA are then compared. If T_DATA = R_DATA, the read and write data are identical, indicating normal I2C operation and the first serial bus interface is considered normal. Otherwise, the first serial bus interface is considered abnormal. Similarly, the second serial bus interface connected to the second diagnostic chip is tested in the same manner.
[0061] In the embodiment of the present application, in addition to deploying the internal battery 23, an external power source can also be used to power the diagnostic device 2. When the external power source is used to power the diagnostic device 2, the internal battery 23 is no longer needed. To prevent the internal battery 23 from working ineffectively, a control module 24 can be deployed in the diagnostic device 2.
[0062] In order to connect an external power supply, an external power supply interface 25 can be deployed on the diagnostic device. The external power supply interface 25 is used to connect an external power supply. That is, the external power supply is connected to the external power supply interface 25 to power the diagnostic device 2.
[0063] The control module 24 is connected to the internal battery 23 and is used to control the connection and disconnection between the internal battery 23 and the voltage conversion module 22. When an external power source is connected to the external power interface 25 to supply power to the diagnostic device 2, the control module 24 can disconnect the internal battery 23 from the voltage conversion module 22. When no external power source is connected to the external power interface 25, the control module 24 can connect the internal battery 23 to the voltage conversion module 22.
[0064] The input end of the voltage conversion module 22 is connected to the external power supply interface 25 and the control module 24 respectively, and the output end of the voltage conversion module 22 is connected to the first diagnostic chip and the second diagnostic chip respectively. It is used to convert the external power supply voltage into the power supply voltage required by the first diagnostic chip and the second diagnostic chip when the external power supply voltage transmitted by the external power supply is received; when the external power supply voltage transmitted by the external power supply is not received and the internal power supply voltage transmitted by the built-in battery 23 is received, the internal power supply voltage is converted into the power supply voltage required by the first diagnostic chip and the second diagnostic chip.
[0065] In actual applications, to prevent excessive battery discharge when the diagnostic device 2 is not in use, the control module 24 can control the internal battery 23 to be in an operating state when the diagnostic device 2 is connected to the test interface of the server 1; and control the internal battery 23 to be in an inoperative state when the diagnostic device 2 is not connected to the test interface of the server 1. When the diagnostic device 2 is connected to the test interface of the server 1 and no external power supply is detected, the internal battery 23 is controlled to be in a connected state with the voltage conversion module 22.
[0066] The functions required to be implemented by the control module are designed using the interface characteristics of the interface to be tested. When the interface to be tested is detected to be connected to the server, the built-in battery is controlled to work. Otherwise, the built-in battery is in an inoperative state, thereby effectively avoiding excessive discharge of the built-in battery and improving the power supply time of the built-in battery to the diagnostic equipment.
[0067] In an embodiment of the present application, when performing a high-load stability test on an interface under test, high-load data traffic can be continuously applied to the interface under test, including frequent writing, reading, and erasing of data. While continuously applying data traffic to the interface under test, server 1 records high-load status information of the interface under test; if the high-load status information meets the set stability conditions, server 1 determines that the stability of the interface under test meets the requirements.
[0068] The high-load status information may include electrical parameters, supported communication protocols, data transmission packet loss rate, delay time, synchronization deviation, etc. The electrical parameters may include voltage, current, and other parameters.
[0069] Based on the content contained in the high-load status information, the stability conditions may include that the change in electrical parameters is less than the set change threshold, the supported communication protocol is the serial bus protocol, the data transmission packet loss rate is less than the set packet loss rate threshold, the delay time is less than the set time threshold and the synchronization deviation is less than the set deviation threshold.
[0070] The implementation manner of the high-load stability test of the interface to be tested by the diagnostic device 2 is similar to the implementation manner of the high-load stability test of the interface to be tested by the server 1 , and will not be repeated here.
[0071] Figure 2 This is a structural diagram of a diagnostic device provided in an embodiment of the present application, wherein the diagnostic device 2 includes a test module 21, a voltage conversion module 22, a built-in battery 23, a control module 24, and an external power supply interface 25. The test module 21 is used to interact with the server 1 of the interface to be tested to implement testing of the interface to be tested. The control module 24 can be a software module, which is arranged between the voltage conversion module 22 and the built-in battery 23, and is used to control the on-off of the built-in battery 23 and the voltage conversion module 22. The input end of the voltage conversion module 22 is respectively connected to the control module 24 and the external power supply interface 25, and the output end of the voltage conversion module 22 is connected to the test module 21, and is used to convert the voltage provided by the built-in battery 23 or the external power supply connected to the external power supply interface 25 into the power supply voltage required by the test module 21.
[0072] The interface to be tested includes two sets of standard I2C signals, so the test module 21 can include a first diagnostic chip and a second diagnostic chip. The first diagnostic chip is used to connect to the first serial bus interface included in the interface to be tested to detect the first I2C signal; the second diagnostic chip is used to connect to the second serial bus interface included in the interface to be tested to detect the second I2C signal.
[0073] The control module 24 can adjust the state of the internal battery 23 based on the connection between the diagnostic device 2 and the interface under test. When the diagnostic device 2 is connected to the interface under test, the internal battery 23 is adjusted to be in an operating state; when the diagnostic device 2 is not connected to the interface under test, the internal battery 23 is adjusted to be in an inoperative state to prevent excessive discharge of the internal battery 23.
[0074] After completing the test of the interface to be tested, the server 1 may generate a diagnostic report based on the diagnostic results corresponding to the test data, various communication data, and data traffic.
[0075] If the diagnostic results include that the interface to be tested is working properly, the communication protocol compatibility of the interface to be tested meets the requirements, and the stability of the interface to be tested meets the requirements, the generated diagnostic report can show that the function of the interface to be tested is normal, the communication protocol compatibility is good, the data transmission and synchronization accuracy is high, and the high-load stability is strong.
[0076] If a problem occurs in any test, targeted suggestions and solutions can be provided in the diagnostic report for the problem. For example, the diagnostic report may include a prompt message indicating a protocol error or abnormal access location when the supported communication protocol is not a serial bus protocol; and a prompt message indicating poor contact of the interface to be tested when the applied data flow is less than the flow threshold.
[0077] By comprehensively summarizing the test and diagnostic results to generate a detailed diagnostic report, operators can intuitively understand the test status of the interface under test. When problems arise with the interface under test, the diagnostic report provides targeted suggestions and solutions, providing operators with a clear and effective reference, helping to quickly resolve interface problems and improve the operation and maintenance efficiency of the multi-machine interconnected system of the Xinchuang server.
[0078] In the embodiment of the present application, the functional diagnosis of the interface to be tested is realized by combining the server 1 and the diagnostic device 2. Whether the diagnostic device 2 can work normally will directly affect the normal operation of the diagnostic process. Therefore, when the server detects that the diagnostic device 2 is mounted, before sending the test data to the diagnostic device 2 in accordance with the multi-machine interconnection communication mode, it can first send a message to the diagnostic device 2.
[0079] In addition to the above-mentioned tests on the data synchronization accuracy, protocol compatibility, and high-load stability of the interface to be tested, the items to be tested can also be adjusted according to changes in test requirements. For example, new test items can be added. For server 1, the management personnel can adjust the software program deployed on server 1 according to changes in test requirements. For diagnostic device 2, its first diagnostic chip and second diagnostic chip contain processing programs for interface testing. When the test requirements change, the processing programs contained in the first diagnostic chip and the second diagnostic chip can be adjusted to meet the current test requirements.
[0080] By adjusting the programs deployed on the server 1 and the diagnostic device 2, it is possible to better adapt to changes in testing requirements. Furthermore, by adjusting the programs, the interface function diagnostic system can test various types of interfaces, increasing the application scenarios of the interface function diagnostic system.
[0081] Figure 3 A flowchart of an interface function diagnosis method provided in an embodiment of the present application, applicable to a server, includes:
[0082] S301: When it is detected that the diagnostic device is mounted, test data is sent to the diagnostic device according to the multi-machine interconnection communication mode.
[0083] S302: Read data from the register of the diagnostic device.
[0084] S303: When the read data is identical to the test data, it is determined that the interface to be tested is operating normally.
[0085] S304: Send various types of communication data to the interface to be tested according to different communication modes.
[0086] S305: When the processing of various types of communication data complies with the serial bus protocol processing flow, it is determined that the communication protocol compatibility of the interface to be tested meets the requirements.
[0087] S306: Continuously apply data traffic to the interface to be tested according to the set duration.
[0088] S307: If no abnormality occurs in the interface to be tested, determine that the stability of the interface to be tested meets the requirements.
[0089] In some embodiments, when it is detected that a diagnostic device is mounted, sending test data to the diagnostic device in accordance with a multi-machine interconnection communication method includes: scanning the serial bus link; when the serial bus address of the diagnostic device is scanned, sending test data to the diagnostic device in accordance with the multi-machine interconnection communication method based on the data transmission rate and signal strength of the multi-machine interconnection system; when the serial bus address of the diagnostic device is not scanned, providing a user with a prompt message indicating a connection abnormality.
[0090] In some embodiments, when no abnormality occurs in the interface to be tested, determining whether the stability of the interface to be tested meets the requirements includes:
[0091] When data traffic is continuously applied to the interface under test, high-load status information of the interface under test is recorded; the high-load status information includes electrical parameters, supported communication protocols, data transmission packet loss rate, delay time and synchronization deviation;
[0092] When the high-load state information meets the set stability conditions, the stability of the interface to be tested is determined to meet the requirements; wherein, the stability conditions include that the change in electrical parameters is less than the set change threshold, the supported communication protocol is a serial bus protocol, the data transmission packet loss rate is less than the set packet loss rate threshold, the delay time is less than the set time threshold and the synchronization deviation is less than the set deviation threshold.
[0093] In some embodiments, further comprising:
[0094] A diagnostic report is generated based on the diagnostic results corresponding to the test data, various types of communication data, and data traffic. The diagnostic report includes a prompt message indicating a protocol error or abnormal access location when the supported communication protocol is not a serial bus protocol; and a prompt message indicating poor contact of the interface to be tested when the applied data traffic is less than a traffic threshold.
[0095] For the description of the features in the embodiment corresponding to the interface function diagnosis method, please refer to the relevant description of the embodiment corresponding to the interface function diagnosis system, which will not be repeated here.
[0096] It can be seen from the above technical solution that when the server detects that the diagnostic device is mounted, it sends test data to the diagnostic device in accordance with the multi-machine interconnection communication mode. Data is read from the register of the diagnostic device. When the read data is the same as the test data, it is determined that the interface to be tested is working properly. In order to test the compatibility of the interface communication protocol, various types of communication data can be sent to the interface to be tested according to different communication methods. When the processing of various types of communication data complies with the serial bus protocol processing flow, it means that the interface to be tested supports the serial bus protocol. At this time, it can be determined that the communication protocol compatibility of the interface to be tested meets the requirements. In order to test the stability of the interface, a high-load test can be performed on it. The server can continuously apply data traffic to the interface to be tested according to the set time. When no abnormality occurs in the interface to be tested, it is determined that the stability of the interface to be tested meets the requirements. Compared with the current single connectivity test, this application can comprehensively detect the data synchronization accuracy, protocol compatibility, and high-load stability of the interface, which can meet the diagnostic needs of the multi-machine interconnection communication interface, comprehensively and in-depth diagnose the interface of the multi-machine interconnection communication, and effectively detect various potential problems of the interface in the multi-machine interconnection communication, thereby effectively ensuring the stability and efficiency of communication between the information creation server cluster.
[0097] An embodiment of the present application further provides a diagnostic device, which is connected to a test interface of a server, and includes a test module, a voltage conversion module, and a built-in battery;
[0098] The input end of the voltage conversion module is connected to the built-in battery, and the output end of the voltage conversion module is connected to the test module, and is used to convert the power supply voltage of the built-in battery into the power supply voltage required by the test module;
[0099] The test module is connected to the interface to be tested, and is used to receive test data transmitted by the interface to be tested; store the test data in its corresponding register; send various types of communication data to the interface to be tested according to different communication methods; when the processing of various types of communication data complies with the serial bus protocol processing flow, determine that the communication protocol compatibility of the interface to be tested meets the requirements; continuously apply data traffic to the interface to be tested according to the set time; when no abnormality occurs in the interface to be tested, determine that the stability of the interface to be tested meets the requirements.
[0100] In some embodiments, the diagnostic device includes a test module, a voltage conversion module, and a built-in battery;
[0101] The input end of the voltage conversion module is connected to the built-in battery, and the output end of the voltage conversion module is connected to the test module, and is used to convert the power supply voltage of the built-in battery into the power supply voltage required by the test module;
[0102] The test module is connected to the interface to be tested, and is used to receive test data transmitted by the interface to be tested; store the test data in its corresponding register; send various types of communication data to the interface to be tested according to different communication methods; when the processing of various types of communication data complies with the serial bus protocol processing flow, determine that the communication protocol compatibility of the interface to be tested meets the requirements; continuously apply data traffic to the interface to be tested according to the set time; when no abnormality occurs in the interface to be tested, determine that the stability of the interface to be tested meets the requirements.
[0103] In some embodiments, the test module includes a first diagnostic chip and a second diagnostic chip;
[0104] The input end of the voltage conversion module is connected to the built-in battery, and the output end of the voltage conversion module is connected to the first diagnostic chip and the second diagnostic chip respectively, for converting the power supply voltage of the built-in battery into the power supply voltage required by the first diagnostic chip and the second diagnostic chip;
[0105] The first diagnostic chip is connected to a first serial bus interface included in the interface to be tested, and is used to receive first test data transmitted by the first serial bus interface; store the first test data in a corresponding register; send various types of communication data to the first serial bus interface according to different communication modes; determine that the communication protocol compatibility of the first serial bus interface meets the requirements when the processing of the various types of communication data complies with the serial bus protocol processing flow; continuously apply data traffic to the first serial bus interface for a set duration; and determine that the stability of the first serial bus interface meets the requirements when no abnormality occurs in the first serial bus interface;
[0106] The second diagnostic chip is connected to the second serial bus interface included in the interface to be tested, and is used for receiving second test data transmitted by the second serial bus interface; storing the second test data in its corresponding register; sending various types of communication data to the second serial bus interface according to different communication methods; when the processing of various types of communication data complies with the serial bus protocol processing flow, determining that the communication protocol compatibility of the second serial bus interface meets the requirements; continuously applying data traffic to the second serial bus interface according to the set time length; when no abnormality occurs in the second serial bus interface, determining that the stability of the second serial bus interface meets the requirements.
[0107] In some embodiments, the diagnostic device further comprises a control module and an external power interface; wherein the external power interface is used to connect to an external power source;
[0108] The control module is connected to the built-in battery and is used to control the on and off of the built-in battery and the voltage conversion module;
[0109] The input end of the voltage conversion module is connected to the external power supply interface and the control module respectively, and the output end of the voltage conversion module is connected to the first diagnostic chip and the second diagnostic chip respectively. It is used to convert the external power supply voltage into the power supply voltage required by the first diagnostic chip and the second diagnostic chip when the external power supply voltage transmitted by the external power supply is received; and convert the internal power supply voltage into the power supply voltage required by the first diagnostic chip and the second diagnostic chip when the external power supply voltage transmitted by the external power supply is not received and the internal power supply voltage transmitted by the built-in battery is received.
[0110] In some embodiments, the control module is used to control the built-in battery to be in a working state when the diagnostic device is connected to the test interface of the server; to control the built-in battery to be in a non-working state when the diagnostic device is not connected to the test interface of the server; and to control the built-in battery to be connected to the voltage conversion module when the diagnostic device is connected to the test interface of the server and no external power supply is detected.
[0111] As can be seen from the above technical solution, the diagnostic device is connected to the server's interface under test. The diagnostic device includes a test module, a voltage conversion module, and an internal battery. The input of the voltage conversion module is connected to the internal battery, and the output of the voltage conversion module is connected to the test module, which is used to convert the internal battery's supply voltage into the supply voltage required by the test module. By providing the voltage conversion module and the internal battery, the diagnostic device can be self-powered, ensuring the normal operation of the diagnostic device. The test module of the diagnostic device is connected to the interface under test and is used to receive test data transmitted by the interface under test. The test data is stored in its corresponding register, so that the server can read the data in the register. Based on whether the read data matches the written data, the test result is confirmed to be normal. The test module sends various types of communication data to the interface under test according to different communication methods. If the processing of various types of communication data complies with the serial bus protocol processing flow, the communication protocol compatibility of the interface under test can be determined to meet the requirements. To test the stability of the interface, a high-load test can be performed. The test module can continuously apply data traffic to the interface under test for a set period of time. If the interface under test does not exhibit any abnormalities, the stability of the interface under test is determined to meet the requirements. Compared with the current single connectivity test, this application can comprehensively test the data synchronization accuracy, protocol compatibility, and high-load stability of the interface. It can meet the diagnostic needs of multi-machine interconnection communication interfaces, and comprehensively and in-depth diagnose the interfaces of multi-machine interconnection communication. It can effectively detect various potential problems of the interface in multi-machine interconnection communication, thereby effectively ensuring the stability and efficiency of communication between the trusted server clusters.
[0112] For the description of the features in the embodiment corresponding to the diagnostic device, please refer to the relevant description of the embodiment corresponding to the interface function diagnostic system, which will not be repeated here.
[0113] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus the necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method.
[0114] An embodiment of the present application further provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any of the above-mentioned interface function diagnostic method embodiments.
[0115] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above-mentioned interface function diagnosis method embodiments when run.
[0116] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.
[0117] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any of the above-mentioned interface function diagnosis method embodiments are implemented.
[0118] An embodiment of the present application also provides another computer program product, including a non-volatile computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the steps in any of the above-mentioned interface function diagnosis method embodiments.
[0119] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0120] The above is a detailed introduction to the interface function diagnostic system, method and diagnostic equipment provided by the present application. This article uses specific examples to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core ideas of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.
Claims
1. An interface function diagnosis system, characterized in that: It includes a server and a diagnostic device; the diagnostic device is connected to the interface to be tested of the server; The server is configured to send test data to the diagnostic device in a multi-machine interconnection communication manner when detecting that the diagnostic device is mounted; Reading data from the register of the diagnostic device; determining that the interface to be tested is working properly when the read data is the same as the test data; sending various types of communication data to the interface to be tested according to different communication modes; When the processing of various types of communication data complies with the serial bus protocol processing flow, determining whether the communication protocol compatibility of the interface to be tested meets the requirements; Continuously applying data traffic to the interface to be tested according to a set duration; If no abnormality occurs in the interface to be tested, determining that the stability of the interface to be tested meets the requirements; The diagnostic device is used to send various types of communication data to the interface to be tested according to different communication modes; When the processing of various types of communication data complies with the serial bus protocol processing flow, determining whether the communication protocol compatibility of the interface to be tested meets the requirements; Continuously applying data traffic to the interface to be tested according to a set duration; When no abnormality occurs in the interface to be tested, it is determined that the stability of the interface to be tested meets the requirements.
2. The interface function diagnostic system according to claim 1, characterized in that: The server is used to scan the serial bus link; when the serial bus address of the diagnostic device is scanned, the server sends test data to the diagnostic device in a multi-machine interconnection communication mode according to the data transmission rate and signal strength of the multi-machine interconnection system; when the serial bus address of the diagnostic device is not scanned, the server feeds back a prompt message of connection abnormality to the user.
3. The interface function diagnosis system according to claim 1, characterized in that: The diagnostic device includes a test module, a voltage conversion module and a built-in battery; The input end of the voltage conversion module is connected to the built-in battery, and the output end of the voltage conversion module is connected to the test module, and is used to convert the power supply voltage of the built-in battery into the power supply voltage required by the test module; The test module is connected to the interface to be tested, and is used to receive test data transmitted by the interface to be tested; store the test data in its corresponding register; and send various types of communication data to the interface to be tested according to different communication modes; When the processing of various types of communication data complies with the serial bus protocol processing flow, determining whether the communication protocol compatibility of the interface to be tested meets the requirements; Continuously applying data traffic to the interface to be tested according to a set duration; When no abnormality occurs in the interface to be tested, it is determined that the stability of the interface to be tested meets the requirements.
4. The interface function diagnosis system according to claim 3, characterized in that: The test module includes a first diagnostic chip and a second diagnostic chip; The input end of the voltage conversion module is connected to the built-in battery, and the output end of the voltage conversion module is connected to the first diagnostic chip and the second diagnostic chip respectively, for converting the supply voltage of the built-in battery into the supply voltage required by the first diagnostic chip and the second diagnostic chip; The first diagnostic chip is connected to a first serial bus interface included in the interface to be tested, and is configured to receive first test data transmitted by the first serial bus interface; store the first test data in a corresponding register; send various types of communication data to the first serial bus interface according to different communication modes; determine that the communication protocol compatibility of the first serial bus interface meets the requirements when processing of the various types of communication data complies with the serial bus protocol processing flow; and continuously apply data traffic to the first serial bus interface for a set duration; When no abnormality occurs in the first serial bus interface, determining that the stability of the first serial bus interface meets the requirement; The second diagnostic chip is connected to a second serial bus interface included in the interface to be tested, and is configured to receive second test data transmitted by the second serial bus interface; store the second test data in a corresponding register; send various types of communication data to the second serial bus interface according to different communication modes; and determine that the communication protocol compatibility of the second serial bus interface meets the requirements when processing of the various types of communication data complies with the serial bus protocol processing flow; continuously applying data traffic to the second serial bus interface for a set duration; When no abnormality occurs in the second serial bus interface, it is determined that the stability of the second serial bus interface meets the requirement.
5. The interface function diagnosis system according to claim 4, characterized in that: The diagnostic device further includes a control module and an external power supply interface; wherein the external power supply interface is used to connect to an external power supply; The control module is connected to the built-in battery and is used to control the on / off connection between the built-in battery and the voltage conversion module; The input end of the voltage conversion module is connected to the external power supply interface and the control module respectively, and the output end of the voltage conversion module is connected to the first diagnostic chip and the second diagnostic chip respectively. The module is used to convert the external power supply voltage into the power supply voltage required by the first diagnostic chip and the second diagnostic chip when receiving the external power supply voltage transmitted by the external power supply; and convert the internal power supply voltage into the power supply voltage required by the first diagnostic chip and the second diagnostic chip when not receiving the external power supply voltage transmitted by the external power supply and receiving the internal power supply voltage transmitted by the built-in battery.
6. The interface function diagnosis system according to claim 5, characterized in that: The control module is used to control the built-in battery to be in a working state when the diagnostic device is connected to the test interface of the server; to control the built-in battery to be in a non-working state when the diagnostic device is not connected to the test interface of the server; and to control the built-in battery to be connected to the voltage conversion module when the diagnostic device is connected to the test interface of the server and no external power supply is detected.
7. The interface function diagnosis system according to claim 1, characterized in that: The server is used to record high-load status information of the interface to be tested while continuously applying data traffic to the interface to be tested; the high-load status information includes electrical parameters, supported communication protocols, data transmission packet loss rate, delay time and synchronization deviation; when the high-load status information meets the set stability conditions, it is determined that the stability of the interface to be tested meets the requirements; wherein, the stability conditions include the change in electrical parameters being less than a set change threshold, the supported communication protocol being a serial bus protocol, the data transmission packet loss rate being less than a set packet loss rate threshold, the delay time being less than a set time threshold and the synchronization deviation being less than a set deviation threshold.
8. The interface function diagnosis system according to claim 1, characterized in that: The server is used to generate a diagnostic report based on the test data, each type of communication data and the diagnostic results corresponding to the data traffic; wherein, the diagnostic report includes generating a prompt message of protocol error or access location abnormality when the supported communication protocol is not a serial bus protocol; and generating a prompt message of poor contact of the interface to be tested when the applied data traffic is less than a traffic threshold.
9. An interface function diagnosis method, characterized in that: Applicable to a server, the method includes: When detecting that a diagnostic device is mounted, sending test data to the diagnostic device in accordance with a multi-machine interconnection communication method; Reading data from a register of the diagnostic device; When the read data is the same as the test data, it is determined that the interface to be tested is working normally; Sending various communication data to the interface to be tested according to different communication modes; When the processing of various types of communication data complies with the serial bus protocol processing flow, determining whether the communication protocol compatibility of the interface to be tested meets the requirements; Continuously applying data traffic to the interface to be tested according to a set duration; When no abnormality occurs in the interface to be tested, it is determined that the stability of the interface to be tested meets the requirements.
10. A diagnostic device, characterized in that The diagnostic device is connected to the interface to be tested of the server, and the diagnostic device includes a test module, a voltage conversion module and a built-in battery; The input end of the voltage conversion module is connected to the built-in battery, and the output end of the voltage conversion module is connected to the test module, and is used to convert the power supply voltage of the built-in battery into the power supply voltage required by the test module; The test module is connected to the interface to be tested, and is used to receive test data transmitted by the interface to be tested; store the test data in its corresponding register; and send various types of communication data to the interface to be tested according to different communication modes; When the processing of various types of communication data complies with the serial bus protocol processing flow, determining whether the communication protocol compatibility of the interface to be tested meets the requirements; Continuously applying data traffic to the interface to be tested according to a set duration; When no abnormality occurs in the interface to be tested, it is determined that the stability of the interface to be tested meets the requirements.