CN114490209A - Method, system and server for testing compatibility of USB interface - Google Patents

Method, system and server for testing compatibility of USB interface Download PDF

Info

Publication number
CN114490209A
CN114490209A CN202111660342.2A CN202111660342A CN114490209A CN 114490209 A CN114490209 A CN 114490209A CN 202111660342 A CN202111660342 A CN 202111660342A CN 114490209 A CN114490209 A CN 114490209A
Authority
CN
China
Prior art keywords
usb interface
tested
compatibility
transmission rate
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111660342.2A
Other languages
Chinese (zh)
Other versions
CN114490209B (en
Inventor
赵肖
刘传彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202111660342.2A priority Critical patent/CN114490209B/en
Publication of CN114490209A publication Critical patent/CN114490209A/en
Application granted granted Critical
Publication of CN114490209B publication Critical patent/CN114490209B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test buses, lines or interfaces, e.g. stuck-at or open line faults
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2289Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by configuration test

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)
  • Power Sources (AREA)

Abstract

The application discloses a method, a system and a server for testing the compatibility of a USB interface, wherein in the scheme, the information of each device connected with a deconcentrator is called from a preset storage area, and the information comprises the identification of the device and the transmission rate of a baseband signal of the device; determining a type of the device based on the identity of the device; and judging whether the USB interface to be tested is compatible with the type equipment or not based on the transmission rate and the type of the baseband signal. According to the scheme, the plurality of devices are connected with the USB interface to be tested through the deconcentrator, so that a tester does not need to manually replace different devices in the testing process, and the labor is saved; after the type of the equipment is identified, whether the equipment is compatible or not is judged directly according to the transmission rate of the baseband signal of the equipment, the transmission rate of the baseband signal is not influenced by the material and the service life of the equipment, and the accuracy of judging the compatibility of the USB interface to be tested is improved. In addition, the equipment does not need to be read and written, and the service life of the equipment is not shortened.

Description

Method, system and server for testing compatibility of USB interface
Technical Field
The present invention relates to the field of compatibility testing, and in particular, to a method, a system, and a server for testing compatibility of a USB interface.
Background
The Bus standard of USB (Universal Serial Bus) is continuously updated and changed, and USB has a downward compatible policy, for example, USB2.0 supporting a transmission rate of 480Mbps to USB3.0 supporting a transmission rate of 5Gbps, and USB3.0 is downward compatible with USB2.0, in the prior art, when a compatibility test is performed on a USB3.0 interface of a server, a tester needs to manually replace a USB2.0 USB disk and a USB3.0 USB disk with the same USB3.0 interface, and when a read-write rate of the USB2.0 USB disk inserted into the USB3.0 interface of the server conforms to a transmission rate of a baseband signal of the USB2.0 USB disk, it is determined that the USB3.0 interface of the server can be compatible with the USB2.0 USB disk, and the USB3.0 USB disk is the same. However, the read-write speed of the USB disk may be greatly reduced due to the influence of the material and the service life of the USB disk itself, and at this time, the server may be compatible with the USB disk, but the greatly reduced read-write speed may be mistakenly determined as incompatible, so that the determination of the compatibility of the USB3.0 interface of the server may be affected. In addition, the prior art consumes manpower, and the service life of the USB flash disk can be shortened by reading and writing the USB flash disk.
Disclosure of Invention
The method, the system and the server for testing the compatibility of the USB interface are characterized in that a plurality of devices are connected with the USB interface to be tested through a deconcentrator, and a tester does not need to manually replace different devices in the testing process, so that the labor is saved; after the type of the equipment is identified, whether the equipment is compatible or not is judged directly according to the transmission rate of the baseband signal of the equipment, the transmission rate of the baseband signal is not influenced by the material and the service life of the equipment, and the accuracy of judging the compatibility of the USB interface to be tested is improved. In addition, the equipment does not need to be read and written, and the service life of the equipment is not shortened.
In order to solve the technical problem, the application provides a method for testing the compatibility of a USB interface, which is applied to a processor in a server, wherein the server further comprises a to-be-tested USB interface and a deconcentrator, an uplink interface of the deconcentrator is connected with the to-be-tested USB interface, a plurality of downlink interfaces of the deconcentrator are respectively connected with USB interfaces of a plurality of devices, and the version of the USB interface is not higher than that of the to-be-tested USB interface;
the method for testing the compatibility of the USB interface comprises the following steps:
calling information of each device connected with the deconcentrator from a preset storage area, wherein the information comprises an identifier of the device and a transmission rate of a baseband signal of the device, and the information of each device stored in the preset storage area is information obtained and stored by an operating system of the server through detection of the USB interface to be tested when each device is connected with the server through the deconcentrator;
determining a type of the device based on the identity of the device;
and judging whether the USB interface to be tested is compatible with the equipment of the type or not based on the transmission rate of the baseband signal and the type.
Preferably, retrieving, from a preset storage area, information of each device connected to the splitter, where the information includes an identifier of the device and a transmission rate of a baseband signal of the device, includes:
determining the equipment numbers of the equipment which is connected with the server through the deconcentrator from a preset storage area;
and acquiring the identification of each device and the transmission rate of the baseband signal from a folder with the file name of the device number of each device.
Preferably, the determining whether the USB interface to be tested is compatible with the device of the type based on the transmission rate of the baseband signal and the type includes:
and if the transmission rate of the baseband signal is the transmission rate of the preset baseband signal of the type, judging that the USB interface to be tested is compatible with the equipment of the type, otherwise, judging that the USB interface to be tested is not compatible.
Preferably, the identifier of the device includes a manufacturer identifier and a product identifier of the device.
Preferably, the USB interface to be tested is a USB3.0 interface, and the types include USB2.0 and USB 3.0.
Preferably, the splitter further includes a power logic controller, an input end of the power logic controller is connected to the uplink interface of the splitter, and an output end of the power logic controller is connected to each downlink interface of the splitter, respectively, and is configured to divide a power signal accessed by the uplink interface into a plurality of power signals to supply power to each downlink interface.
In order to solve the technical problem, the application further provides a system for testing the compatibility of the USB interface, which is applied to a server, wherein the server comprises a to-be-tested USB interface and a deconcentrator, an uplink interface of the deconcentrator is connected with the to-be-tested USB interface, a plurality of downlink interfaces of the deconcentrator are respectively connected with USB interfaces of a plurality of devices, and the version of the USB interface is not higher than that of the to-be-tested USB interface; the system for testing the compatibility of the USB interface comprises:
the information acquisition unit is used for calling information of each device connected with the deconcentrator from a preset storage area, wherein the information comprises an identifier of the device and a transmission rate of a baseband signal of the device, and the information of each device stored in the preset storage area is information which is obtained and stored by an operating system of the server through detection of the USB interface to be tested when each device is connected with the server through the deconcentrator;
a type determination unit for determining the type of the device based on the identification of the device;
and the compatibility judging unit is used for judging whether the USB interface to be tested is compatible with the equipment of the type or not based on the transmission rate of the baseband signal and the type.
Preferably, the information acquiring unit includes:
the equipment number acquisition unit is used for determining the equipment numbers of the equipment which are connected with the server through the deconcentrator from a preset storage area;
and the identification and rate acquisition unit is used for acquiring the identification of each device and the transmission rate of the baseband signal from a folder with the file name of the device number of each device.
Preferably, the compatibility judging unit includes:
and the judging unit based on the rate and the type is used for judging that the USB interface to be tested is compatible with the equipment of the type if the transmission rate of the baseband signal is the transmission rate of the preset baseband signal of the type, and otherwise, judging that the USB interface to be tested is not compatible.
For solving the technical problem, the present application further provides a server, including the USB interface and the deconcentrator that await measuring, the ascending interface of deconcentrator with the USB interface connection that awaits measuring, a plurality of down interfaces of deconcentrator respectively with the USB interface connection of a plurality of equipment, the version of USB interface is not higher than the version of the USB interface that awaits measuring, the server still includes:
a memory for storing a computer program;
a processor for executing said computer program to implement the steps of said method of testing the compatibility of a USB interface.
The application provides a method, a system and a server for testing the compatibility of a USB interface, in the scheme, the information of each device connected with a deconcentrator is called from a preset storage area, and the information comprises the identification of the device and the transmission rate of a baseband signal of the device; determining a type of the device based on the identity of the device; and judging whether the USB interface to be tested is compatible with the type equipment or not based on the transmission rate and the type of the baseband signal. According to the scheme, the plurality of devices are connected with the USB interface to be tested through the deconcentrator, so that a tester does not need to manually replace different devices in the testing process, and the labor is saved; after the type of the equipment is identified, whether the equipment is compatible or not is judged directly according to the transmission rate of the baseband signal of the equipment, the transmission rate of the baseband signal is not influenced by the material and the service life of the equipment, and the accuracy of judging the compatibility of the USB interface to be tested is improved. In addition, the equipment does not need to be read and written, and the service life of the equipment is not shortened.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the prior art and the embodiments are briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic flowchart illustrating a method for testing compatibility of a USB interface according to the present application;
fig. 2 is a schematic diagram of a pin structure of a USB3.0 interface provided in the present application;
fig. 3 is a schematic diagram of a pin structure of a USB2.0 device provided in the present application;
fig. 4 is a schematic diagram of a pin structure of a USB3.0 device provided in the present application;
fig. 5 is a schematic structural diagram of a splitter provided in the present application;
FIG. 6 is a schematic structural diagram of a system for testing compatibility of a USB interface according to the present application;
fig. 7 is a schematic structural diagram of a server provided in the present application.
Detailed Description
The core of the application is to provide a method, a system and a server for testing the compatibility of the USB interface, the scheme connects a plurality of devices with the USB interface to be tested through a deconcentrator, and a tester does not need to manually replace different devices in the testing process, so that the labor is saved; after the type of the equipment is identified, whether the equipment is compatible or not is judged directly according to the transmission rate of the baseband signal of the equipment, the transmission rate of the baseband signal is not influenced by the material and the service life of the equipment, and the accuracy of judging the compatibility of the USB interface to be tested is improved. In addition, the equipment does not need to be read and written, and the service life of the equipment is not shortened.
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Fig. 1 is a schematic flowchart of a method for testing compatibility of a USB interface according to the present application, where the method is applied to a processor in a server, the server further includes a USB interface to be tested and a splitter, an uplink interface of the splitter is connected to the USB interface to be tested, a plurality of downlink interfaces of the splitter are respectively connected to USB interfaces of a plurality of devices, and a version of the USB interface is not higher than a version of the USB interface to be tested;
the method for testing the compatibility of the USB interface comprises the following steps:
s11: calling information of each device connected with the deconcentrator from a preset storage area, wherein the information comprises an identifier of the device and a transmission rate of a baseband signal of the device, and the information of each device stored in the preset storage area is information obtained and stored by an operating system of a server through a USB interface to be tested when each device is connected with the server through the deconcentrator;
s12: determining a type of the device based on the identity of the device;
s13: and judging whether the USB interface to be tested is compatible with the type equipment or not based on the transmission rate and the type of the baseband signal.
In the prior art, a USB technology is used as an external bus standard to standardize connection and communication between a computer and external equipment, the USB has the advantages of high transmission speed, convenience in use, hot plugging support, flexibility in connection, independent power supply and the like, and can be connected with various peripheral devices such as a keyboard, a mouse and a large-capacity storage device, and the electronic equipment mainly performs data interaction through a network and a USB interface. Since the launch of USB, USB has successfully replaced serial and parallel ports, becoming one of the standard expansion interfaces and the requisite interfaces for a large number of computers and intelligent devices. With the continuous breakthrough and improvement of technologies and standards, the bus standard of the USB is continuously updated and changed, for example, from USB2.0 supporting 480Mbps high rate to USB3.0 supporting 5Gbps ultrahigh rate, and meanwhile, the USB technology has a policy of compatibility in the first place, that is, USB3.0 is compatible with USB2.0 in the downward direction, and the improvement of the standard is essentially the improvement of signal transmission. In the server and PC (Personal Computer) industry, the USB3.0 interface is widely used, and both achieve downward compatibility, which can ensure the compatibility of peripherals of different clients to the maximum extent.
In the prior art, when testing the compatibility of a USB3.0 interface to be tested, a USB2.0 USB flash disk needs to be manually inserted, and whether the compatibility is realized is judged according to the read-write speed of the USB flash disk; then, manually replacing the USB3.0 USB flash disk, and judging whether the USB flash disk is compatible or not according to the reading and writing speed of the USB flash disk; the sequence of the two USB flash disks can be changed, and the process of replacing the USB flash disks consumes manpower. And the read-write speed of the USB flash disk can be greatly reduced under the influence of the material and the service life of the USB flash disk, so that the condition that the USB3.0 interface to be tested can be compatible with the USB flash disk but is wrongly judged to be incompatible occurs, and the accuracy of judging the compatibility of the USB3.0 interface to be tested is reduced. In addition, the service life of the USB flash disk can be shortened by reading and writing the USB flash disk.
In the application, the plurality of devices are connected with the USB interface to be tested of the server through the deconcentrator, so that the process of manually replacing the devices in the test process is avoided, and the labor is saved; meanwhile, whether the equipment is compatible or not is judged based on the transmission rate of the baseband signal of the equipment, and the accuracy of the compatibility judgment can be improved because the transmission rate of the baseband signal of the equipment is not influenced by the material and the service life of the equipment.
Specifically, when each device is connected with the server through the splitter, the operating system of the server automatically obtains and stores information about each device through the detection of the USB interface to be tested, for example, the operating system detects the identifier of each device and also detects the actual transmission rate of the baseband signal of each device, then generates a folder named as a device number based on the identifier of the device and the actual transmission rate of the baseband signal of the device, and then generates a folder named as a bus number based on each folder named as a device number, and the same USB interface to be tested corresponds to one bus number, the application calls the information of each device by using the characteristics of the complaints, realizes the automatic calling of the information of the device and the transmission rate of the baseband signal, and then can judge the type and compatibility of the device, and can improve the test coverage rate and the automation degree of the USB interface to be tested in the server and PC industries, the efficiency in the aspect of function detection and the accuracy of test are improved.
It should be noted that, the identifier of each device is different, so that the type of the device can be determined by the identifier of the device, and the type may include USB2.0 and USB 3.0. Specifically, in the determining process, for example, when the identifier of the device of USB2.0 stored in advance includes the acquired identifier of the device, it is determined that the type of the device is USB 2.0.
Meanwhile, the judgment result can be finally displayed by printing. In addition, when the standard of USB4.0 is implemented, the compatibility determination may also be made with reference to the present application.
In summary, the present application provides a method for testing compatibility of a USB interface, in the scheme, information of each device connected to a splitter is retrieved from a preset storage area, where the information includes an identifier of the device and a transmission rate of a baseband signal of the device; determining a type of the device based on the identity of the device; and judging whether the USB interface to be tested is compatible with the type equipment or not based on the transmission rate and the type of the baseband signal. According to the scheme, the plurality of devices are connected with the USB interface to be tested through the deconcentrator, so that a tester does not need to manually replace different devices in the testing process, and the manpower is saved; after the type of the equipment is identified, whether the equipment is compatible or not is judged directly according to the transmission rate of the baseband signal of the equipment, the transmission rate of the baseband signal is not influenced by the material and the service life of the equipment, and the accuracy of judging the compatibility of the USB interface to be tested is improved. In addition, the equipment does not need to be read and written, and the service life of the equipment is not shortened.
On the basis of the above-described embodiment:
as a preferred embodiment, retrieving information of each device connected to the splitter from a preset storage area, where the information includes an identifier of the device and a transmission rate of a baseband signal of the device, includes:
determining the equipment number of each equipment which establishes connection with the server through the deconcentrator from a preset storage area;
the identification of each device and the transmission rate of the baseband signal are acquired from a folder whose file name is the device number of each device.
In this embodiment, to extract the identifier of the device and the transmission rate of the baseband signal from the preset storage area, specifically, when each device is connected to the server through the splitter, the operating system of the server may automatically detect and store information about each device through the USB interface to be detected, where the information may be information of a bottom signal of the device, and when extracting the information, the device number of each device is determined from the bus number corresponding to the USB interface to be detected according to a storage rule of the operating system for the device information, for example, from a tree parse/sys/bus/USB/device/directory of the USB under the operating system, and then the actual transmission rate of the baseband signal and a uevent file node of the device are obtained from a directory or a subdirectory of a folder corresponding to the device number, and the identifier of the device is obtained from the file node.
In summary, according to the storage rule of the operating system for the device information, the identification of the device and the transmission rate of the baseband signal are adjusted in steps, and the information of the device is quickly adjusted.
As a preferred embodiment, the apparatus for determining whether the USB interface to be tested is compatible with the type based on the transmission rate and the type of the baseband signal includes:
if the transmission rate of the baseband signal is the transmission rate of the preset baseband signal of the type, judging the equipment with the compatible type of the USB interface to be tested, and otherwise, judging the equipment with the compatible type of the USB interface to be tested is not compatible.
In this embodiment, the transmission rate of the preset baseband signal may be a fixed baseband signal transmission rate of each type of device, for example, the fixed baseband signal transmission rate of the USB2.0 device is 480Mbps, and the fixed baseband signal transmission rate of the USB3.0 device is 5 Gbps. When the type of the device is judged to be USB2.0, if the transmission rate of the obtained baseband signal is 480Mbps, the device with the compatible type of the USB interface to be tested being USB2.0 is judged, and otherwise, the device is judged to be incompatible.
In summary, whether the USB interface to be tested is compatible with the device is determined according to the transmission rate of the baseband signal, and since the transmission rate of the baseband signal is not affected by the material and the service life of the device, the compatibility of the USB interface to be tested can be determined more accurately.
As a preferred embodiment, the identification of the device comprises a manufacturer identification and a product identification of the device.
In this embodiment, the identifier of the device includes a manufacturer identifier and a product identifier of the device, specifically, for example, the manufacturer identifiers of the devices produced by the same manufacturer are the same, but the product identifiers are different; the manufacturer marks of the equipment produced by different manufacturers are different, but the product marks can be the same; therefore, the type of the equipment is judged based on the manufacturer identification and the product identification, the probability of misjudgment is low, and the judgment is more accurate.
As a preferred embodiment, the USB interface to be tested is a USB3.0 interface, and the types include USB2.0 and USB 3.0.
In this embodiment, the USB interface to be tested may be a USB3.0 interface, and the type of the device may include USB2.0 and USB3.0 that are not higher than USB3.0 version, which is not limited herein.
As a preferred embodiment, the splitter further includes a power supply logic controller, an input end of the power supply logic controller is connected with the uplink interface of the splitter, and an output end of the power supply logic controller is connected with each downlink interface of the splitter respectively, and is configured to divide a power supply signal accessed by the uplink interface into a plurality of power supply signals to supply power to each downlink interface.
Referring to fig. 2, fig. 3, fig. 4 and fig. 5, fig. 2 is a schematic pin structure diagram of a USB3.0 interface provided in the present application, fig. 3 is a schematic pin structure diagram of a USB2.0 device provided in the present application, fig. 4 is a schematic pin structure diagram of a USB3.0 device provided in the present application, and fig. 5 is a schematic structure diagram of a splitter provided in the present application.
As shown in fig. 2, the USB3.0 interface has 9 pins, and the standard USB3.0 interface has 9 pins, the 1 st pin to the 4 th pin are pins required for USB2.0 signal points, and the 1 st pin plus the 5 th pin to the 9 th pin are pins required for USB3.0 signal points. VBUS is a power supply signal for USB3.0 and USB2.0, a differential signal pair with D-and D + being USB2.0, GND is a ground signal, SSRX-and SSRX + are USB3.0 overspeed receiving data differential signal pair, and SSTX-and SSTX + are USB3.0 overspeed transmitting data differential signal pair.
Referring to fig. 3, when the USB2.0 device is plugged into the USB3.0 interface, the VBUS power signal, the GND ground signal, and the D + and D-differential signal pairs are required to implement normal signal transmission of the USB2.0 device.
Referring to fig. 4, when the USB3.0 device is plugged into the USB3.0 interface, the VBUS power supply signal, the GND ground signal, the SSRX + and SSRX-super speed receive data differential signal pair, and the SSTX + and SSTX-super speed transmit data differential signal pair are required to implement the super speed signal transmission of the USB 3.0.
In this embodiment, a power supply logic controller is provided to divide a power supply signal in the USB interface to be tested into a plurality of signals to supply power to the devices connected at the downlink interface, so that the power supply signals of the plurality of devices are shared, and additional power supply is avoided.
Specifically, for example, as shown in fig. 5, the USB interface to be tested is a USB3.0 interface, the USB3.0 uplink interface of the splitter is connected to the USB3.0 interface through a USB cable, and the two downlink interfaces of the splitter are respectively connected to the USB2.0 device and the USB3.0 device, where the device may be a USB disk, where the USB2.0 USB disk is connected to the USB2.0 downlink interface, and the USB3.0 USB disk is connected to the USB3.0 downlink interface. With reference to fig. 2, fig. 3, and fig. 4, the VBUS power supply signal in the USB3.0 uplink interface is divided into two paths by the power logic controller, and simultaneously supplies power to the USB2.0 downlink interface and the USB3.0 downlink interface.
In addition, the deconcentrator also independently connects a pin required by a USB2.0 signal point and a pin required by a USB3.0 signal point in the USB3.0 uplink interface to the USB2.0 downlink interface and the USB3.0 downlink interface respectively, namely, the pin required by a D + and D-differential signal pair of the USB2.0 is connected to the USB2.0 downlink interface, the pin required by an SSRX signal and an SSTX signal of the USB3.0 are connected to the USB3.0 downlink interface, the SSRX signal represents an SSRX + and SSRX-superspeed receiving data differential signal pair, and the SSTX signal represents an SSTX + and SSTX-superspeed transmitting data differential signal pair.
In conclusion, the power supply logic controller is used for supplying power to the USB interface to be tested for the plurality of devices connected with the downlink interface, so that extra power supply is avoided.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a system for testing compatibility of a USB interface provided in the present application, where the system for testing compatibility of a USB interface is applied to a server, the server includes a to-be-tested USB interface and a splitter, an uplink interface of the splitter is connected to the to-be-tested USB interface, multiple downlink interfaces of the splitter are respectively connected to USB interfaces of multiple devices, and a version of the USB interface is not higher than a version of the to-be-tested USB interface; the system for testing the compatibility of the USB interface comprises:
the information obtaining unit 21 is configured to retrieve, from a preset storage area, information of each device connected to the splitter, where the information includes an identifier of the device and a transmission rate of a baseband signal of the device, and the information of each device stored in the preset storage area is information obtained and stored by an operating system of the server through detection of a USB interface to be tested when each device establishes connection with the server through the splitter;
a type determining unit 22 for determining a type of the device based on the identification of the device;
and the compatibility judging unit 23 is configured to judge whether the USB interface to be tested is compatible with the type of device based on the transmission rate and the type of the baseband signal.
As a preferred embodiment, the information acquisition unit 21 includes:
the equipment number acquisition unit is used for determining the equipment numbers of the equipment which are connected with the server through the deconcentrator from a preset storage area;
and the identification and rate acquisition unit is used for acquiring the identification of each device and the transmission rate of the baseband signal from a folder with the file name of the device number of each device.
As a preferred embodiment, the compatibility judging unit 23 includes:
and the judging unit based on the rate and the type is used for judging the equipment with the compatible type of the USB interface to be detected if the transmission rate of the baseband signal is the preset transmission rate of the baseband signal of the type, and otherwise, judging the equipment is not compatible.
For an introduction of the system for testing the compatibility of the USB interface provided in the present application, please refer to the foregoing embodiments, which are not described herein again.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a server provided by the present application, where the server includes a USB interface 33 to be tested and a splitter 34, an uplink interface of the splitter 34 is connected to the USB interface 33 to be tested, a plurality of downlink interfaces of the splitter 34 are respectively connected to USB interfaces of a plurality of devices, and a version of the USB interface is not higher than a version of the USB interface 33 to be tested, and the server further includes:
a memory 31 for storing a computer program;
a processor 32 for executing a computer program to implement the steps of the method of testing the compatibility of a USB interface.
For the introduction of a server provided in the present application, please refer to the above embodiments, which are not described herein again.
It should be noted that, in the present specification, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method for testing compatibility of a USB interface is characterized in that the method is applied to a processor in a server, the server further comprises a USB interface to be tested and a deconcentrator, an uplink interface of the deconcentrator is connected with the USB interface to be tested, a plurality of downlink interfaces of the deconcentrator are respectively connected with USB interfaces of a plurality of devices, and the version of the USB interface is not higher than that of the USB interface to be tested;
the method for testing the compatibility of the USB interface comprises the following steps:
calling information of each device connected with the deconcentrator from a preset storage area, wherein the information comprises an identifier of the device and a transmission rate of a baseband signal of the device, and the information of each device stored in the preset storage area is information obtained and stored by an operating system of the server through detection of the USB interface to be tested when each device is connected with the server through the deconcentrator;
determining a type of the device based on the identity of the device;
and judging whether the USB interface to be tested is compatible with the equipment of the type or not based on the transmission rate of the baseband signal and the type.
2. The method for testing the compatibility of the USB interface according to claim 1, wherein retrieving information of each device connected to the splitter from a preset storage area, the information including an identifier of the device and a transmission rate of a baseband signal of the device, comprises:
determining the equipment numbers of the equipment which is connected with the server through the deconcentrator from a preset storage area;
and acquiring the identification of each device and the transmission rate of the baseband signal from a folder with the file name of the device number of each device.
3. The method for testing the compatibility of the USB interface according to claim 1, wherein determining whether the USB interface to be tested is compatible with the type of device based on the transmission rate of the baseband signal and the type comprises:
and if the transmission rate of the baseband signal is the transmission rate of the preset baseband signal of the type, judging that the USB interface to be tested is compatible with the equipment of the type, otherwise, judging that the USB interface to be tested is not compatible.
4. The method of testing the compatibility of a USB interface of claim 2, wherein the identification of the device comprises a vendor identification and a product identification of the device.
5. The method for testing the compatibility of the USB interface according to claim 1, wherein the USB interface under test is a USB3.0 interface, and the types include USB2.0 and USB 3.0.
6. The method for testing the compatibility of the USB interface according to any one of claims 1 to 5, wherein the splitter further includes a power logic controller, an input terminal of the power logic controller is connected to the upstream interface of the splitter, and an output terminal of the power logic controller is connected to each downstream interface of the splitter respectively, for dividing the power signal accessed by the upstream interface into a plurality of power signals to supply power to each downstream interface.
7. A system for testing the compatibility of a USB interface is characterized in that the system is applied to a server, the server comprises a USB interface to be tested and a deconcentrator, an uplink interface of the deconcentrator is connected with the USB interface to be tested, a plurality of downlink interfaces of the deconcentrator are respectively connected with USB interfaces of a plurality of devices, and the version of the USB interface is not higher than that of the USB interface to be tested; the system for testing the compatibility of the USB interface comprises:
the information acquisition unit is used for calling information of each device connected with the deconcentrator from a preset storage area, wherein the information comprises an identifier of the device and a transmission rate of a baseband signal of the device, and the information of each device stored in the preset storage area is information which is obtained and stored by an operating system of the server through detection of the USB interface to be tested when each device is connected with the server through the deconcentrator;
a type determination unit for determining the type of the device based on the identification of the device;
and the compatibility judging unit is used for judging whether the USB interface to be tested is compatible with the equipment of the type or not based on the transmission rate of the baseband signal and the type.
8. The system for testing compatibility of a USB interface according to claim 7, wherein the information acquisition unit includes:
the equipment number acquisition unit is used for determining the equipment numbers of the equipment which are connected with the server through the deconcentrator from a preset storage area;
and the identification and rate acquisition unit is used for acquiring the identification of each device and the transmission rate of the baseband signal from a folder with the file name of the device number of each device.
9. The system for testing the compatibility of a USB interface according to claim 7, wherein the compatibility judging unit includes:
and the judging unit based on the rate and the type is used for judging that the USB interface to be tested is compatible with the equipment of the type if the transmission rate of the baseband signal is the transmission rate of the preset baseband signal of the type, and otherwise, judging that the USB interface to be tested is not compatible.
10. The utility model provides a server, its characterized in that, includes USB interface and deconcentrator that awaits measuring, the ascending interface of deconcentrator with USB interface connection awaits measuring, a plurality of descending interfaces of deconcentrator respectively with the USB interface connection of a plurality of equipment, the version of USB interface is not higher than the version of USB interface awaits measuring, the server still includes:
a memory for storing a computer program;
a processor for executing the computer program to carry out the steps of the method of testing the compatibility of a USB interface according to any one of claims 1 to 6.
CN202111660342.2A 2021-12-30 2021-12-30 Method, system and server for testing compatibility of USB interface Active CN114490209B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111660342.2A CN114490209B (en) 2021-12-30 2021-12-30 Method, system and server for testing compatibility of USB interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111660342.2A CN114490209B (en) 2021-12-30 2021-12-30 Method, system and server for testing compatibility of USB interface

Publications (2)

Publication Number Publication Date
CN114490209A true CN114490209A (en) 2022-05-13
CN114490209B CN114490209B (en) 2023-11-14

Family

ID=81507768

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111660342.2A Active CN114490209B (en) 2021-12-30 2021-12-30 Method, system and server for testing compatibility of USB interface

Country Status (1)

Country Link
CN (1) CN114490209B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101059770A (en) * 2007-06-12 2007-10-24 北京中星微电子有限公司 System for automatic testing USB compatibility
CN205982507U (en) * 2016-08-23 2017-02-22 广州视睿电子科技有限公司 Testing arrangement of USB3. 0 equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101059770A (en) * 2007-06-12 2007-10-24 北京中星微电子有限公司 System for automatic testing USB compatibility
CN205982507U (en) * 2016-08-23 2017-02-22 广州视睿电子科技有限公司 Testing arrangement of USB3. 0 equipment

Also Published As

Publication number Publication date
CN114490209B (en) 2023-11-14

Similar Documents

Publication Publication Date Title
US7743292B2 (en) Apparatus and method for memory card testing
US10503683B2 (en) Service redirect over USB Type-C
CN104850301A (en) Method and system for classifying application icons on system desktop
CN110287696B (en) Detection method, device and equipment for rebound shell process
CN110543404A (en) Server, hard disk lighting method and system and computer readable storage medium
CN101827162B (en) Mobile phone USB interface detection system and method
CN110718264A (en) Method and device for testing information of solid state disk, computer equipment and storage medium
CN110597523A (en) Board card firmware burning method, device and system, board card and terminal equipment
CN112799985B (en) USB interface control method, USB control circuit and intelligent networking equipment mainboard
CN105022694A (en) Test case generation method and system for mobile terminal test
CN104932962A (en) USB (Universal Serial Bus) plug testing system and method thereof
CN104850421A (en) Computer system and detection method of universal sequence bus device thereof
CN113014339A (en) Quality test method, device and equipment for PCIe external plug-in card receiving channel
CN103412838B (en) A kind of expanding system, communication means, address configuration method, equipment and device
CN109885327A (en) A kind of method and device upgrading CPLD
CN113204456A (en) Test method, tool, device and equipment for VPP interface of server
CN220473935U (en) PCIE (peripheral component interface express) expansion system supporting identification detection
CN111651397B (en) Method and equipment for accessing peripheral module of PXIe
CN114490209A (en) Method, system and server for testing compatibility of USB interface
CN108259895A (en) set-top box test method, system and terminal device
CN112866061A (en) NCSI (network control information system) testing method, device, equipment and medium of onboard network port
CN116166486A (en) Chip mass production testing method and system
CN102305906A (en) Chip testing method and device
CN103366830A (en) Testing device of memory card
CN104636228A (en) Electronic device convenient to test and testing method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant