A multi-interface testing device and server system
By designing a multi-interface test device, using communication modules, control modules, selection modules and test modules, simultaneous testing of multiple I2C interfaces on the server is realized, solving the cumbersome process problems caused by one-by-one detection in the existing technology, and improving the testing efficiency .
Patent Information
- Application Number
- CN202111632171.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-28
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2041-12-28
AI Technical Summary
In the prior art, when detecting multiple I2C interfaces of a server, the test device needs to be connected and removed one by one, resulting in cumbersome testing process and manual operations required, and multiple I2C interfaces cannot be detected simultaneously.
Design a multi-interface testing device, including a communication module, a control module, a selection module and a test module, and connects it to multiple I2C interfaces of the server through a connector. The control module receives the interface signal and generates the control signal. The selection module receives the interface signal when receiving it. When signaling, the preset test signal is sent to the test module. The test module generates a reply signal and returns it to the server to realize simultaneous testing of multiple I2C interfaces.
The test process of multiple I2C interfaces is simplified, the workload of manual dismantling and installation is reduced, and multiple I2C interfaces on the server can be connected and tested at the same time, improving testing efficiency.
Smart Images

Figure CN114443385B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of interface testing, and in particular to a multi-interface testing device and a server system. Background Art
[0002] An I2C (Inter-Integrated Circuit, two-wire serial bus) interface is provided in the server. The server communicates with other devices through the I2C interface. In order to detect whether the I2C interface of the server is normal, it is necessary to perform FCT (Functional Circuit Test) on the I2C interface. In the prior art, when testing the I2C interface, other devices are connected to the I2C interface. When the server sends a preset test signal to other devices through the I2C interface, whether the I2C interface is normal is determined based on whether the other devices can generate a reply signal corresponding to the preset test signal. However, this device can only detect one I2C interface of the server at the same time. When there are multiple I2C interfaces in the server, each I2C interface can only be detected in turn. That is, after testing one I2C interface, the device connected to the I2C interface needs to be removed, and then the device needs to be connected to another I2C interface for testing. There are problems such as cumbersome testing process and multiple manual removal and installation. Summary of the invention
[0003] The purpose of the present invention is to provide a multi-interface testing device and a server system, which can simultaneously connect multiple interfaces to be tested on a server. When the interface to be tested of the server is an I2C interface, multiple or even all I2C interfaces on the server can be connected to a connector at the same time, which simplifies the testing process of multiple I2C interfaces, eliminates the need for multiple manual removal and installation, and reduces the workload.
[0004] In order to solve the above technical problems, the present invention provides a multi-interface testing device, comprising:
[0005] Communication module;
[0006] A control module, configured to receive an interface signal sent by the server through the communication module, and generate a control signal according to the interface signal, wherein the interface signal includes information of a current interface to be tested on the server, and the server includes N interfaces to be tested, where N is an integer not less than 2;
[0007] A connector including N connection interfaces, wherein one end of the N connection interfaces is connected one by one with the N interfaces to be tested;
[0008] A selection module, wherein each first interface of the selection module is connected to the other end of the N connection interfaces in a one-to-one correspondence, and the selection module is used to receive a preset test signal sent by the server through the connection interface corresponding to the current interface to be tested when receiving the control signal, and send the preset test signal to the test module;
[0009] The test module connected to the second interface of the selection module is used to generate a first reply signal according to the preset test signal, and send the first reply signal to the server through the connection interface corresponding to the current interface to be tested, so that the server can determine whether the current interface to be tested is normal according to the first reply signal.
[0010] Preferably, the control module is also used to determine the number of connection interfaces whose levels are flipped among the N connection interfaces when the N connection interfaces are connected one by one to the N interfaces to be tested, and send the flip number to the server, so that the server enters the step of sending an interface signal when it determines that the flip number is equal to the preset number of interfaces to be tested.
[0011] Preferably, the selection module is specifically used to control the connection interface corresponding to the current interface to be tested to be connected to the test module when receiving the control signal, and to control all the connection interfaces except the connection interface corresponding to the current interface to be tested to be disconnected from the test module.
[0012] Preferably, the communication module includes:
[0013] A USB connection interface, one end of which is connected to a USB interface of the server;
[0014] A USB to UART module whose input end is connected to the other end of the USB connection interface and whose output end is connected to the control module is used to receive the interface signal through the USB connection interface, convert the interface signal into an interface signal in UART format, and send the interface signal in UART format to the control module.
[0015] Preferably, the control module is an MCU.
[0016] Preferably, it also includes:
[0017] A power supply module is used to supply power to the communication module, the control module, the selection module and the test module.
[0018] Preferably, the power module is a rechargeable battery.
[0019] Preferably, when there is an external test device connected to the selection module, the selection module is also used to send the preset test signal to the external test device through the connection interface corresponding to the current interface to be tested when the control signal is received, so that the external test device generates a second reply signal according to the preset test signal, and sends the second reply signal to the server through the connection interface corresponding to the current interface to be tested, and the server determines whether the current interface to be tested is normal based on the second reply signal.
[0020] The present application also provides a server system, including a server, and also including the multi-interface testing device as described above;
[0021] The server and the multi-interface testing device are connected in sequence.
[0022] The invention provides a multi-interface test device and a server system, comprising a communication module, a control module, a selection module, a test module and a connector including N connection interfaces, wherein the N connection interfaces are connected one by one to N interfaces to be tested on a server, and when the control module receives an interface signal including a current interface to be tested sent by a server through the communication module, the control module can generate a corresponding control signal and send the control signal to the selection module, and when the selection module receives the control signal, the preset test signal sent by the server can be sent to the test module through a connection interface corresponding to the current interface to be tested, and when the test module receives the preset test signal, the test module can generate a corresponding reply signal and send the reply signal to the server through a connection interface corresponding to the current interface to be tested, so that the server determines whether the current interface to be tested is normal, and when the interface to be tested of the server is an I2C interface, multiple or even all I2C interfaces on the server can be connected to the connector at the same time, that is, one multi-interface test device can be used to complete the test of all I2C interfaces on the server, thereby simplifying the test process of multiple I2C interfaces, eliminating the need for manual removal and installation for multiple times, and reducing the workload. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the prior art and the drawings required for use in the embodiments are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0024] Figure 1 A schematic diagram of the structure of a multi-interface testing device provided by the present invention;
[0025] Figure 2 A schematic diagram of the structure of another multi-interface testing device provided by the present invention;
[0026] Figure 3 A schematic diagram of the structure of a server system provided by the present invention. DETAILED DESCRIPTION
[0027] The core of the present invention is to provide a multi-interface testing device and a server system, which can simultaneously connect multiple interfaces to be tested on a server. When the interface to be tested of the server is an I2C interface, multiple or even all I2C interfaces on the server can be connected to a connector at the same time, which simplifies the testing process of multiple I2C interfaces, eliminates the need for multiple manual removal and installation, and reduces the workload.
[0028] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0029] Please refer to Figure 1 , Figure 1 A schematic diagram of the structure of a multi-interface testing device provided by the present invention, the device comprising:
[0030] Communication module 11;
[0031] The control module 12 is used to receive the interface signal sent by the server through the communication module 11, and generate a control signal according to the interface signal, wherein the interface signal includes information of the current interface to be tested on the server, and the server includes N interfaces to be tested, where N is an integer not less than 2;
[0032] A connector 13 including N connection interfaces, one end of each of the N connection interfaces being connected one by one with the N interfaces to be tested;
[0033] The selection module 14, each first interface of the selection module 14 is connected to the other end of the N connection interfaces in a one-to-one correspondence, and the selection module 14 is used to receive a preset test signal sent by the server through the connection interface corresponding to the current interface to be tested when receiving the control signal, and send the preset test signal to the test module 15;
[0034] The test module 15 connected to the second interface of the selection module 14 is used to generate a first reply signal according to a preset test signal, and send the first reply signal to the server through the connection interface corresponding to the current interface to be tested, so that the server can determine whether the current interface to be tested is normal according to the first reply signal.
[0035] In order to conveniently and quickly test whether the N interfaces to be tested on the server are normal, in this application, a selection module 14 and a connector 13 are first set up. The connector 13 includes N connection interfaces so as to be connected one by one with the N interfaces to be tested on the server. In actual work, considering that the number of interfaces to be tested on servers of different styles is different, in order to be applicable to servers of various styles, the connection interfaces included in the connector 13 can be greater than the number of interfaces to be tested on the server. This application does not limit the number of connection interfaces in the connector 13. The other end of each connection interface is connected to each first interface of the selection module 14, so that the preset test signal sent by the server from any interface to be tested can be sent to the selection module 14 through the corresponding connection interface on the connector 13, so that the selection module 14 sends the preset test signal to the test module 15. In addition, the selection module 14 will not affect the communication protocol of the preset test signal. For example, when the preset test signal sent is a preset test signal of the I2C protocol, the selection module 14 can send the preset test signal of the I2C protocol to the test module 15.
[0036] In order to control the selection module 14 to select the connection interface corresponding to the current interface to be tested, the control module 12 and the communication module 11 are also provided. Specifically, before sending the preset test signal, the server will first send the interface signal to the communication module 11. The interface signal contains the information of the current interface to be tested. After receiving the interface signal, the communication module 11 will convert it into an interface signal in a readable format of the control module 12, and then send the interface signal to the control module 12. The control module 12 will control the selection module 14 to select the connection interface corresponding to the current interface to be tested according to the interface signal, so that the preset test signal can be sent from the connection interface corresponding to the current interface to be tested to the test module 15. That is, before sending the preset test signal, the server will first tell the control module 12 through the communication module 11 which interface to be tested the subsequent preset test signal will come from, and then the control module 12 will control the selection module 14 to select the connection interface corresponding to the interface to be tested, so that when the preset test signal actually comes, it can be sent from the connection interface corresponding to the current interface to be tested to the selection module 14, and then sent from the selection module 14 to the test module 15.
[0037] In order to enable the server to determine whether the current interface to be tested is normal, a test module 15 is provided. The test module 15 can receive a preset test signal and generate a reply signal according to the preset test signal. Specifically, the preset test signal may be a signal corresponding to a certain instruction in the test module 15, and the reply signal is a signal generated according to the signal of the instruction. Since the communication protocol of the preset test signal is related to the type of the interface to be tested of the server, it is necessary to first select the test module 15 actually used according to the communication protocol of the preset test signal in actual work. For example, when the interface to be tested of the server is an I2C interface, the communication protocol of the preset test signal is the I2C protocol. At this time, it can be determined that the test module 15 to be used is a test module 15 that supports the I2C protocol; the preset test signal may be a signal for querying the model of the test module 15. When the test module 15 receives the signal for querying the model, a reply signal containing the model of the test module 15 itself is generated. Then, the test module 15 sends the reply signal to the server through the connection interface corresponding to the current interface to be tested, that is, the reply signal is sent to the server through the original path. After receiving the reply signal, the server will determine whether the model of the test module 15 in the reply signal is consistent with the preset test module 15 model. When they are consistent, the server determines that the current interface to be tested is normal, otherwise, the current interface to be tested is abnormal. In addition, before the server determines whether the test module 15 model in the reply signal is consistent with the preset test module 15 model, it can also first determine whether the current interface to be tested is normal based on whether a reply signal is received within a preset time. If no reply signal is received within the preset time, the current interface to be tested is determined to be abnormal. If a reply signal is received within the preset time, the step of determining whether the test module 15 model in the reply signal is consistent with the preset test module 15 model is performed. The present application does not limit the specific method by which the server determines the current interface to be tested.
[0038] In order to cooperate with the multi-interface testing device, a test script for each interface to be tested can be set in the server. For example, it can be a test script as follows: the server first determines the number of interfaces to be tested that are connected to the corresponding connection interface among the interfaces to be tested. When the number is consistent, the test order of each interface to be tested is determined according to a preset sorting method of the interfaces to be tested. Then, the first interface to be tested is used as the current interface to be tested, an interface signal containing information of the current interface to be tested is generated and the interface signal is sent to the communication module 11. Then, a preset test signal is generated and the preset test signal is sent to the test module 15 through the connection interface corresponding to the current interface to be tested. Then, based on the reply signal generated by the test module 15, determine whether the current interface to be tested is normal; then, if the current interface to be tested is not the last interface to be tested in the preset order of interfaces to be tested, the next interface to be tested of the current interface to be tested is used as the new interface to be tested, and return to the step of generating an interface signal containing the information of the current interface to be tested and sending the interface signal to the communication module 11, until the current interface to be tested is the last interface to be tested; finally, generate a log containing the test results of each interface to be tested, the preset test signal of each interface to be tested, and the corresponding reply signal, so that the staff can view the test results of each interface to be tested. In addition, this application does not limit how the server determines whether the current interface to be tested is the last interface to be tested.
[0039] In summary, by setting up a communication module 11, a control module 12, a selection module 14, a test module 15 and a connector 13 including N connection interfaces, the N connection interfaces and the N interfaces to be tested on the server are connected one by one. When the control module 12 receives the interface signal including the current interface to be tested sent by the server through the communication module 11, it can generate a corresponding control signal and send it to the selection module 14. When the selection module 14 receives the control signal, it can send the preset test signal sent by the server to the test module 15 through the connection interface corresponding to the current interface to be tested. When the test module 15 receives the preset test signal, it can generate a corresponding reply signal and send the reply signal to the server through the connection interface corresponding to the current interface to be tested, so that the server can determine whether the current interface to be tested is normal. When the interface to be tested of the server is an I2C interface, multiple or even all I2C interfaces on the server can be connected to the connector 13 at the same time, that is, a multi-interface testing device can be used to complete the test of all I2C interfaces on the server, which simplifies the test process of multiple I2C interfaces, does not require manual removal and installation for multiple times, and expands the scope of application.
[0040] Based on the above embodiments:
[0041] As a preferred embodiment, the control module 12 is also used to determine the number of connection interfaces whose levels are flipped among the N connection interfaces when the N connection interfaces are connected one by one to the N interfaces to be tested, and send the number of flips to the server, so that the server enters the step of sending the interface signal when it determines that the number of flips is equal to the preset number of interfaces to be tested.
[0042] Since each interface to be tested on the server is connected to each connection interface one by one, considering that the number of interfaces to be tested that are connected to the corresponding connection interface in each interface to be tested is less than the number of interfaces to be tested preset on the server, it means that there is an abnormality in the interface to be tested at this time. For example, when the wire between the interface to be tested and the corresponding connection interface is broken or the interface is short-circuited, the interface to be tested and the corresponding connection interface cannot be connected. In order to determine the number of connected interfaces to be tested, in this application, since each connection interface is connected to each interface to be tested one by one, the server will send a level signal from each interface to be tested to the corresponding connection interface, so the level of each connection interface will be flipped at this time. For example, when the connection interface is not connected to the interface to be tested, the level of the connection interface is low, and when the connection interface is connected to the interface to be tested, the level of the connection interface will flip to high. Since the level flip of the connection interface can indicate that the interface to be tested and the connection interface are normally connected at this time, the control module 12 can determine the number of connection interfaces whose levels have flipped in each connection interface, that is, the flip number, and then send the flip number to the server. When the server receives the flip number, it determines whether the flip number is consistent with the preset number of interfaces to be tested. If they are consistent, it enters the step of sending the interface signal. If they are inconsistent, the staff can be prompted with the specific disconnected interface to be tested so that the staff can repair the disconnected interface to be tested. The present application does not limit the subsequent steps when there is inconsistency.
[0043] As a preferred embodiment, the selection module 14 is specifically used to control the connection interface corresponding to the current interface to be tested to be connected with the test module 15 when receiving a control signal, and to control all connection interfaces except the connection interface corresponding to the current interface to be tested to be disconnected from the test module 15.
[0044] In order to avoid having multiple preset test signals sent to the test module 15 through the connection interfaces corresponding to the multiple interfaces to be tested at the same time, causing the test module 15 to generate logic confusion due to receiving multiple preset test signals, in this application, after receiving the control signal corresponding to the interface signal, the selection module 14 will control the connection interface corresponding to the current interface to be tested and the test module 15 to be connected, and disconnect the other connection interfaces from the test module 15, which is equivalent to that at this time, among the various connection interfaces, only the connection interface corresponding to the current interface to be tested can transmit the preset test signal to the test module 15, and the selection function implemented by the selection module 14 can be regarded as basically the same as the function of the multiplexer. In addition, the selection module 14 can keep the connection interface corresponding to the current interface to be tested and the test module 15 connected after receiving a control signal until the next control signal is received. Since the selection module 14 can only allow one connection interface to be connected to the test module 15, it avoids the situation where multiple preset test signals are sent to the test module 15 through the connection interfaces corresponding to the multiple interfaces to be tested at the same time, thereby avoiding the situation where the test module 15 generates logic confusion due to receiving multiple preset test signals.
[0045] As a preferred embodiment, the communication module 11 includes:
[0046] A USB connection interface, one end of which is connected to a USB interface of a server;
[0047] The USB to UART module, whose input end is connected to the other end of the USB connection interface and whose output end is connected to the control module 12, is used to receive the interface signal through the USB connection interface, convert the interface signal into an interface signal in UART format, and send the interface signal in UART format to the control module 12.
[0048] In order to flexibly receive the interface signal sent by the server, in this application, please refer to Figure 2 , Figure 2A schematic diagram of the structure of another multi-interface test device provided by the present invention, considering that USB (Universal Serial Bus) interfaces are provided on substantially all servers, the instructions of the server can be transmitted to other devices linked to the USB interfaces through the USB interfaces, and since the USB interfaces support hot-swap functions, and the interface volume is small, it has the advantages of convenient plugging and unplugging and small circuit area, a USB connector 13 and a USB to UART (Universal Asynchronous Receiver / Transmitter) module are provided in the communication module 11, one end of the USB connector 13 is connected to the USB interface on the server, and the other end is connected to the USB to UART module, the interface signal sent by the server first enters the USB to UART module through the USB interface, the USB to UART module converts the interface signal in USB format into the interface signal in UART format, and finally sends the interface signal to the control module 12. The selection module 14 can not only flexibly receive the interface signal sent by the server, but also transmit the data through the UART at a faster speed, usually 1Mbps per second, and can transmit the interface signal to the control module 12 faster.
[0049] As a preferred embodiment, the control module 12 is an MCU.
[0050] In order to simply realize the functions of the control module 12, in the present application, the control module 12 is an MCU (MicroControl Unit), which is a highly integrated chip. It not only has a small circuit area, is simple to develop, and has a lower cost than a CPU (Central Processing Unit), but also can realize the functions of the control module 12, that is, it can realize the function of generating corresponding control signals according to interface instructions and sending them to the selection module 14. Therefore, using an MCU as the control module 12 can simply realize the functions of the control module 12.
[0051] As a preferred embodiment, it also includes:
[0052] The power supply module is used to supply power to the communication module 11 , the control module 12 , the selection module 14 and the test module 15 .
[0053] Considering that the communication module 11, the control module 12, the selection module 14 and the test module 15 all need power supply, a power supply module is also provided in the present application. Since these modules need power supply to operate normally, if they are powered by an external power supply device connected to the corresponding power supply interface of each module, not only additional interfaces and wires are required, but also the voltage of the external power supply device may be different from the voltage required by each module, resulting in the module being unable to function normally, and even the module may be burned out due to the excessive voltage of the external power supply device. Therefore, a power supply module can be provided to be connected one by one with other modules. Specifically, the power supply module can determine the size of the working voltage required by each module in advance, and then determine the voltage value of the power supply module according to the required working voltage, so that the supply voltage of the power supply module can be consistent with the voltage required by each module, and the module will not be burned out due to excessive voltage. In addition, the power supply module can be provided with interfaces for outputting different voltages so as to be more flexibly connected to each module.
[0054] As a preferred embodiment, the power module is a rechargeable battery.
[0055] In order to reuse the power module, in this application, the power module is a rechargeable battery. After the rechargeable battery has consumed all its power, it can be put into use again after only charging it for a period of time, without the need to replace a new battery. It can not only be reused, but also avoid environmental pollution caused by frequent replacement of new batteries. Considering the practicality in actual work, the power supply interface of the rechargeable battery can also be connected to the power supply interface on the server, such as a USB interface, so that the power module can be charged while testing the interface to be tested on the server, thereby improving the endurance and practicality of the power module.
[0056] As a preferred embodiment, when there is an external test device connected to the selection module 14, the selection module 14 is also used to send a preset test signal to the external test device through a connection interface corresponding to the current interface to be tested when a control signal is received, so that the external test device generates a second reply signal according to the preset test signal, and sends the second reply signal to the server through the connection interface corresponding to the current interface to be tested, and the server determines whether the current interface to be tested is normal based on the second reply signal.
[0057] In order to be able to flexibly receive preset test signals, in the present application, the selection module 14 can also be connected to an external test device. When there is a connection between the external test device and the selection module 14, when the selection module 14 receives the preset test signal, in addition to sending the preset test signal to the test module 15 through the connection interface corresponding to the current interface to be tested, the preset test signal will also be sent to the external test device through the connection interface corresponding to the current interface to be tested, so that the external test device generates a second reply signal according to the preset test signal, and then sends the second reply signal to the server through the connection interface corresponding to the current interface to be tested. That is, the server can not only judge whether the current interface to be tested is normal according to the reply signal generated by the test module 15, but also judge whether the current interface to be tested is normal according to the reply signal generated by the external test device. Specifically, the type of the external test device will change according to the type of the actual interface to be tested. The external test device can be any device that can generate a second reply signal from a preset test signal. For example, when the interface type to be tested is an I2C interface, the external test device can be an I2C dedicated test fixture, a hard disk backplane, or other test devices that support the I2C protocol, which can generate a second reply signal according to the preset test signal of the I2C protocol such as IPMI (Intelligent Platform Management Interface) related signals. In actual situations, when the test module 15 is damaged, since the external test device is connected, the server can still determine whether the current interface to be tested is normal based on the second reply signal sent by the external test device, and can receive the preset test signal more flexibly. In addition, since the external test device is more diverse and can receive preset test signals that other test modules 15 cannot receive, the server can test a wider range of interfaces to be tested.
[0058] Please refer to Figure 3 , Figure 3 A schematic diagram of the structure of a server system provided by the present invention, the server system comprises a server 21, and also comprises the multi-interface testing device 22 as described above;
[0059] The server 21 and the multi-interface testing device 22 are connected in sequence.
[0060] For a detailed introduction to a server system provided in the present application, please refer to the above-mentioned embodiment of the multi-interface testing device, and the present application will not go into details here.
[0061] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0062] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A multi-interface testing device, characterized in that: include: Communication module; A control module, configured to receive an interface signal sent by the server through the communication module, and generate a control signal according to the interface signal, wherein the interface signal includes information of a current interface to be tested on the server, and the server includes N interfaces to be tested, where N is an integer not less than 2; A connector including N connection interfaces, wherein one end of the N connection interfaces is connected one by one with the N interfaces to be tested; A selection module, wherein each first interface of the selection module is connected to the other end of the N connection interfaces in a one-to-one correspondence, and the selection module is used to receive a preset test signal sent by the server through the connection interface corresponding to the current interface to be tested when receiving the control signal, and send the preset test signal to the test module; The test module connected to the second interface of the selection module is used to generate a first reply signal according to the preset test signal, and send the first reply signal to the server through the connection interface corresponding to the current interface to be tested, so that the server can judge whether the current interface to be tested is normal according to the first reply signal; wherein the test module is a module that supports processing related signals of the communication protocol corresponding to the preset test signal; Wherein, when there is an external test device connected to the selection module, the selection module is also used to send the preset test signal to the external test device through the connection interface corresponding to the current interface to be tested when receiving the control signal, so that the external test device generates a second reply signal according to the preset test signal, and sends the second reply signal to the server through the connection interface corresponding to the current interface to be tested, and the server determines whether the current interface to be tested is normal according to the second reply signal; Before sending the preset test signal, the server sends the interface signal to the communication module, the communication module sends the interface signal to the control module, the control module generates the control signal from the interface signal, and sends the control signal to the selection module, the selection module selects the connection interface corresponding to the current interface to be tested according to the control signal, so that the preset test signal can be sent to the test module from the connection interface corresponding to the current interface to be tested; The communication module comprises: A USB connection interface, one end of which is connected to a USB interface of the server; A USB-to-UART module having an input end connected to the other end of the USB connection interface and an output end connected to the control module, for receiving the interface signal through the USB connection interface, converting the interface signal into an interface signal in a UART format, and sending the interface signal in the UART format to the control module; The control module is also used to determine the number of connection interfaces whose levels are flipped among the N connection interfaces when the N connection interfaces are connected one by one to the N interfaces to be tested, and send the flip number to the server, so that the server enters the step of sending the interface signal when it is determined that the flip number is equal to the number of preset interfaces to be tested; The selection module is specifically used to control the connection interface corresponding to the current interface to be tested to be connected to the test module when receiving the control signal, and control all the connection interfaces except the connection interface corresponding to the current interface to be tested to be disconnected from the test module; A power supply module, used to supply power to the communication module, the control module, the selection module and the test module; The power module is a rechargeable battery.
2. The multi-interface testing device according to claim 1, characterized in that: The control module is MCU.
3. A server system, characterized in that: comprising a server, and further comprising a multi-interface testing device as claimed in any one of claims 1 to 2; The server and the multi-interface testing device are connected in sequence.
