A kind of test device and terminal device of shared USB3.0 interface
Technical field
The utility model belongs to the field of test technology more particularly to a kind of test device and terminal of shared USB3.0 interface
Equipment.
Background technique
With the development of hardware technology, the design area of mainboard is smaller and smaller, and because of the frequency of use of com port and USB2.0
It is lower and lower, so com port and USB2.0 also fewer and fewer on the mainboard of mainstream
Currently, what is installed on the mainboard of terminal device is usually that USB3.0 still at hardware design initial stage, is generally required
Carry out com port or the test job of USB2.0.And if on mainboard be added com port either USB2.0 interface, then can occupy
The design area of mainboard.
Utility model content
The purpose of this utility model is to provide the test devices and terminal device of a kind of shared USB3.0 interface, it is intended to base
USB2.0 or com port test are realized in USB3.0 interface, are not take up additional board area.
To achieve the above object, the utility model embodiment provides the following technical solutions:
In a first aspect, the utility model embodiment provides a kind of test device of shared USB3.0 interface, comprising:
USB3.0 interface;
It is connect with the USB3.0 interface, for testing the first controller of USB2.0 function;
It is all connected with first controller, the USB3.0 interface, for the USB3.0 interface assignment to be multiplexed into
The second controller of USB2.0 or serial ports;
It is connect with the second controller, for testing the third controller of serial port function.
Optionally, the second controller is CPLD or FPGA.
Optionally, first controller is integrated south bridge PCH, and the third controller is baseboard management controller
BMC。
It optionally, further include the alarm module being connect with the second controller.
Optionally, the alarm module is buzzer or indicator light.
Optionally, the power supply of the test device is rechargeable battery.
Optionally, the rechargeable battery is solar battery.
It optionally, further include being connect with the second controller, for sending USB3.0 interface assignment multiplex instruction
BIOS module.
Second aspect, the utility model embodiment provide a kind of terminal device, including above-mentioned first aspect any one
The test device of the shared USB3.0 interface.
Optionally, the terminal device is server or computer.
A kind of test device and terminal device of shared USB3.0 interface provided by the utility model embodiment pass through
USB3.0 interface assignment is multiplexed into USB2.0 or com port by two controllers, is surveyed respectively using the first controller and third controller
USB2.0 function and COM function are tried, to realize the test for carrying out USB2.0 or com port based on USB3.0 interface.
Detailed description of the invention
Fig. 1 is a kind of structural representation frame of the test device of shared USB3.0 interface provided by the embodiment of the utility model
Figure;
Fig. 2 is a kind of another structural representation of the test device of shared USB3.0 interface provided by the embodiment of the utility model
Block diagram;
Fig. 3 is a kind of structural schematic block diagram of terminal device provided by the embodiment of the utility model.
Specific embodiment
In order to make the purpose of the utility model, technical solutions and advantages more clearly understood, below in conjunction with attached drawing and implementation
Example, the present invention will be further described in detail.It should be appreciated that specific embodiment described herein is only used to explain
The utility model is not used to limit the utility model.
In order to illustrate the technical solution of the utility model, explanation is introduced below by embodiment.
Embodiment one
It referring to Figure 1, is a kind of structure of the test device of shared USB3.0 interface provided by the embodiment of the utility model
Schematic block diagram, the test device may include: USB3.0 interface 11;It is connect with the USB3.0 interface 11, for testing
First controller 12 of USB2.0 function;It is all connected with first controller 12, the USB3.0 interface 11, being used for will be described
USB3.0 interface assignment is multiplexed into the second controller 13 of USB2.0 or serial ports;It is connect with the second controller 13, for surveying
Try the third controller 14 of serial port function.
It is appreciated that USB3.0 interface assignment can be multiplexed into USB2.0 according to distribution instruction by above-mentioned second controller,
Or serial ports COM.And the principle for specifically distributing multiplexing can be with are as follows: USB2.0 needs 4Pin, respectively VCC ,-D ,+D, GND;And
Com port needs 3Pin, respectively RXD, TXD, GND.According to testing requirement, corresponding pin is connected, by USB3.0 interface point
With being multiplexed with USB2.0 or com port.Wherein, it can be BIOS module to second controller transmission distribution control signal,
It can be other control modules.
The signal transmitted between first controller and USB3.0 interface is USB3.0 signal, the first controller and second controller
Between the signal that transmits be USB2.0 signal, the signal transmitted between third controller and second controller is com port signal, the
Two controllers with distribute the signal that multiplexed USB2.0 functional module or com port module are transmitted mutually should be USB2.0 signal or
COM signal.That is, the first controller can test USB2.0 function by second controller, third controller can be by the
Two controller test com port functions.
In the utility model embodiment, USB3.0 interface assignment is multiplexed by USB2.0 or com port by second controller,
USB2.0 function and COM function are tested respectively using the first controller and third controller, are connect to realize based on USB3.0
Mouth carries out the test of USB2.0 or com port.
Embodiment two
Fig. 2 is referred to, is another structure of the test device of shared USB3.0 interface provided by the embodiment of the utility model
Schematic block diagram, the apparatus may include USB3.0 interfaces 21;It is connect with USB3.0 interface 21, for testing the collection of USB2.0 function
At south bridge (Platform Controller Hub, PCH) 22;It is equal with the integrated south bridge PCH22, the USB3.0 interface 21
Connection, for the USB3.0 interface assignment to be multiplexed into the CPLD23 of USB2.0 or serial ports;It is connect with the CPLD23,
For testing the baseboard management controller (Baseboard Management Controller, BMC) 24 of serial port function.
Wherein, signal is transmitted between PCH and USB2.0 and com port is USB3.0, and signal is transmitted between PCH and CPLD is
It is com port signal, CPLD and the multiplexed USB2.0 functional module of distribution or COM that signal is transmitted between USB2.0, BMC and CPLD
It is USB2.0 signal or com port signal that signal is transmitted between functional module.
It is understood that above-mentioned CPLD also can use other controller substitutions, for example, FPGA, is not limited thereto.
Wherein, CPLD can receive the distribution multiplex instruction of BIOS sending, and USB3.0 interface is distributed into COM accordingly
Mouth or USB2.0.Specifically, after the booting of setting default, BIOS issues control signal to CPLD, and CPLD cuts USB3.0 interface
Com port or USB2.0 are changed to, if test process terminates, USB device is extracted, restores USB3.0.
Further, above-mentioned apparatus can also include the alarm module 25 connecting with the CPLD, connect, be used for CPLD
Send the BIOS module 26 of USB3.0 interface assignment multiplex instruction.And the power supply of test device can be rechargeable battery, it can be with
For non-rechargeable battery, or alternating current also or is other types of power supply, is not limited thereto.
Further, above-mentioned rechargeable battery is solar battery, can save the energy in this way.And above-mentioned quote module
It then can be specially buzzer either indicator light, corresponding actuation of an alarm is then carried out in test crash.
In the utility model embodiment, USB3.0 interface assignment is multiplexed by USB2.0 or com port by second controller,
USB2.0 function and COM function are tested respectively using the first controller and third controller, are connect to realize based on USB3.0
Mouth carries out the test of USB2.0 or com port.
Embodiment three
Fig. 3 is referred to, is a kind of structural schematic block diagram of terminal device provided by the embodiment of the utility model, which sets
The standby test device including any one shared USB3.0 interface of above-described embodiment one or embodiment two.More specifically, above-mentioned end
End equipment is that server, desktop computer, laptop etc. have USB3.0 interface, and need USB2.0 either COM debugging
Equipment.
It is to be appreciated that the same or similar place between the present embodiment and other embodiments, may refer to other embodiments,
This is repeated no more.
A kind of terminal device provided by the utility model embodiment is answered USB3.0 interface assignment by second controller
With at USB2.0 or com port, USB2.0 function and COM function are tested respectively using the first controller and third controller, thus
Realize the test that USB2.0 or com port are carried out based on USB3.0 interface.
The above is only the preferred embodiment of the utility model only, is not intended to limit the utility model, all at this
Made any modifications, equivalent replacements, and improvements etc., should be included in the utility model within the spirit and principle of utility model
Protection scope within.