CN114490209B - 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
CN114490209B
CN114490209B CN202111660342.2A CN202111660342A CN114490209B CN 114490209 B CN114490209 B CN 114490209B CN 202111660342 A CN202111660342 A CN 202111660342A CN 114490209 B CN114490209 B CN 114490209B
Authority
CN
China
Prior art keywords
usb interface
deconcentrator
tested
type
transmission rate
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.)
Active
Application number
CN202111660342.2A
Other languages
Chinese (zh)
Other versions
CN114490209A (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

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)
  • Power Sources (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The application discloses a method, a system and a server for testing the compatibility of a USB interface, wherein in the scheme, information of each device connected with a deconcentrator is fetched 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 device based on the identification of the device; and judging whether the USB interface to be tested is compatible with the type of 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; meanwhile, after the type of the equipment is identified, whether the equipment is compatible 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 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 application 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 the USB (Universal Serial Bus ) is continuously updated and changed, and meanwhile, downward compatible strategies exist in the USB, for example, from USB2.0 supporting a transmission rate of 480Mbps to USB3.0 supporting a transmission rate of 5Gbps, the USB3.0 is downward compatible with the USB2.0, in the prior art, when compatibility test is conducted 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 in the same USB3.0 interface, and when the USB3.0 USB disk is inserted into the USB3.0 interface of the server, the USB3.0 interface of the server is judged to be compatible with the USB2.0 USB disk when the read-write rate of the USB2.0 USB disk accords with the transmission rate of a baseband signal of 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 service life of the USB disk itself, and at this time, there may be a case that the server is compatible with the USB disk, but the greatly reduced read-write speed may be misjudged as incompatible, so that the judgment of the compatibility of the USB3.0 interface of the server may be affected. In addition, the prior art can consume manpower, and the read-write of the USB flash disk can shorten the service life of the USB flash disk.
Disclosure of Invention
The application aims to provide a method, a system and a server for testing the compatibility of a USB interface, and the scheme is that a plurality of devices are connected with the USB interface to be tested through a deconcentrator, so that a tester is not required to manually replace different devices in the testing process, and the labor is saved; meanwhile, after the type of the equipment is identified, whether the equipment is compatible 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 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 problems, 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 also 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:
retrieving 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 detected and stored by an operating system of the server through the USB interface to be detected when each device is connected with the server through the deconcentrator;
determining a type of the device based on the identification of the device;
and judging whether the USB interface to be tested is compatible with the type of equipment or not based on the transmission rate of the baseband signal and the type.
Preferably, the information of each device connected to the splitter is fetched 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, and the method includes:
determining the device number of each device 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 obtained 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 type of device based on the transmission rate of the baseband signal and the type of device includes:
if the transmission rate of the baseband signal is the transmission rate of the type of preset baseband signal, the USB interface to be tested is judged to be compatible with the type of equipment, otherwise, the USB interface to be tested is judged to be incompatible.
Preferably, the identification of the device includes a manufacturer identification and a product identification of the device.
Preferably, the USB interface to be tested is a USB3.0 interface, and the types include USB2.0 and USB3.0.
Preferably, the deconcentrator further comprises a power logic controller, an input end of the power logic controller is connected with an uplink interface of the deconcentrator, and an output end of the power logic controller is respectively connected with each downlink interface of the deconcentrator, and is used for dividing a power signal accessed by the uplink interface into a plurality of power signals so as to supply power for each downlink interface.
In order to solve the technical problems, the application also provides a system for testing the compatibility of the USB interface, which is applied to a server, wherein 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 retrieving 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 detected and stored by an operating system of the server through the USB interface to be detected when the devices are connected with the server through the deconcentrator;
a type determining unit configured to determine a type of the device based on an identification of the device;
and the compatibility judging unit is used for judging whether the USB interface to be tested is compatible with the type of equipment or not based on the transmission rate of the baseband signal and the type of the baseband signal.
Preferably, the information acquisition unit includes:
a device number acquisition unit configured to determine, from a preset storage area, a device number of each device that establishes a connection with the server through the splitter;
an identification and rate obtaining unit, configured to obtain, from a folder having a file name of a device number of each device, an identification of each device and a transmission rate of a baseband signal.
Preferably, the compatibility judgment 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 type of equipment if the transmission rate of the baseband signal is the preset transmission rate of the type of baseband signal, and judging that the USB interface to be tested is incompatible if the USB interface to be tested is not compatible with the type of equipment.
In order to solve the technical problem, the present application further provides a server, including a USB interface to be tested and a deconcentrator, where an uplink interface of the deconcentrator is connected with the USB interface to be tested, and a plurality of downlink interfaces of the deconcentrator are respectively connected with 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, and the server further includes:
a memory for storing a computer program;
and a processor for executing the computer program to implement the steps of the method for testing the compatibility of the USB interface.
The application provides a method, a system and a server for testing the compatibility of a USB interface, wherein in the scheme, information of each device connected with a deconcentrator is fetched 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 device based on the identification of the device; and judging whether the USB interface to be tested is compatible with the type of 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; meanwhile, after the type of the equipment is identified, whether the equipment is compatible 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 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 of the embodiments of the present application, the drawings required in the prior art and the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for testing the 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 according to the present application;
FIG. 3 is a schematic diagram of a pin structure of a USB2.0 device according to the present application;
FIG. 4 is a schematic diagram of a pin structure of a USB3.0 device according to the present application;
FIG. 5 is a schematic diagram of a deconcentrator according to the present application;
FIG. 6 is a schematic diagram of a system for testing USB interface compatibility according to the present application;
fig. 7 is a schematic structural diagram of a server according to the present application.
Detailed Description
The application has the core of providing a method, a system and a server for testing the compatibility of the USB interface, and the scheme connects a plurality of devices 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; meanwhile, after the type of the equipment is identified, whether the equipment is compatible 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 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.
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Fig. 1 is a flow chart of a method for testing compatibility of a USB interface, which is provided by the present application, and the method is applied to a processor in a server, the server further includes 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 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: retrieving information of each device connected with the deconcentrator from a preset storage area, wherein the information comprises the identification of the device and the transmission rate of a baseband signal of the device, and the information of each device stored in the preset storage area is detected and stored by an operating system of the server through a USB interface to be detected when the device is connected with the server through the deconcentrator;
s12: determining a type of device based on the identification of the device;
s13: and judging whether the USB interface to be tested is compatible with the type of equipment or not based on the transmission rate and the type of the baseband signal.
In the prior art, the USB technology is used as an external bus standard to standardize the connection and communication between a computer and external equipment, and the USB has the advantages of high transmission speed, convenience in use, support of hot plug, flexible connection, independent power supply and the like, can be connected with various peripheral equipment such as a keyboard, a mouse, a mass storage device and the like, and performs data interaction mainly through a network and a USB interface. Since the push, USB has successfully replaced serial ports and parallel ports, and has become one of the standard expansion interfaces and necessary interfaces for a large number of computers and intelligent devices. With the continuous breakthrough and improvement of technology and standards, the bus standard of the USB is continuously updated and changed, for example, from USB2.0 supporting 480Mbps high speed to USB3.0 supporting 5Gbps ultra-high speed, and meanwhile, the USB technology has a downward compatible strategy, namely, the USB3.0 is downward compatible with the USB2.0, and the improvement of the standard is essentially the improvement of signal transmission. In the server and PC (Personal Computer ) industries, the USB3.0 interface is widely used, and downward compatibility is achieved, so that compatibility of peripheral devices of different clients can be guaranteed to the greatest extent.
In the prior art, when testing the compatibility of a USB3.0 interface to be tested, a USB flash disk of USB2.0 is manually inserted, and whether the USB flash disk is compatible or not is judged according to the read-write speed of the USB flash disk; then, the USB3.0 USB flash disk is manually replaced, and whether the USB flash disk is compatible is judged according to the read-write speed of the USB flash disk; here, the sequence of the two USB flash disks can be exchanged, and the process of replacing the USB flash disk consumes manpower. And the read-write speed of the USB flash disk can be greatly reduced due to the influence of the material and the service life of the USB flash disk, so that the situation that the USB3.0 interface to be tested can be compatible with the USB flash disk but the USB flash disk is misjudged to be incompatible is caused, 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 reduced due to the reading and writing of the USB flash disk.
In the application, a plurality of devices are connected with the USB interface to be at the side 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 base band signals of the equipment are compatible is judged based on the transmission rate of the base band signals of the equipment, and the accuracy of judging the compatibility can be improved because the transmission rate of the base band signals of the equipment is not influenced by the material and the service life of the base band signals of the equipment.
Specifically, when each device is connected with a server through a deconcentrator, an operating system of the server automatically detects and stores information about each device through a USB interface to be tested, for example, the operating system detects the identity of each device and detects the actual transmission rate of a baseband signal of each device, then a folder named as a device number is generated based on the identity of the device and the actual transmission rate of the baseband signal of the device, and then a folder named as a bus number is generated based on each folder named as the device number.
It should also be noted that the identity of each device is different, so that the type of device may be determined by the identity of the device, and the type may include USB2.0 and USB3.0. In a specific determination process, for example, when the identifier of the device of USB2.0 stored in advance contains the acquired identifier of the device, the type of the device is determined to be USB2.0.
Meanwhile, the judgment result may be finally displayed by printing. In addition, after the standard of USB4.0 is executed, the compatibility determination may also be performed with reference to the present application.
In summary, the present application provides a method for testing compatibility of a USB interface, in this scheme, information of each device connected to a deconcentrator 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 device based on the identification of the device; and judging whether the USB interface to be tested is compatible with the type of 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; meanwhile, after the type of the equipment is identified, whether the equipment is compatible 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 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.
Based on the above embodiments:
as a preferred embodiment, retrieving information of each device connected to the splitter from a preset storage area, the information including an identification of the device and a transmission rate of a baseband signal of the device, including:
determining the device number of each device 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 obtained from a folder with a file name of 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 establishes a connection with the server through the deconcentrator, the operating system of the server will automatically detect and store information about each device through the USB interface to be tested, where the information may be information of the bottom signal of the device, and when extracting information, according to the storage rule of the operating system for the device information, for example, in the tree analysis/sys/bus/USB/device/directory of the USB under the operating system, the device number of each device is determined from the bus number corresponding to the USB interface to be tested, and then the actual transmission rate of the baseband signal and the uevent file node of the device are obtained from the directory or the subdirectory of the 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 equipment information, the identification of the equipment and the transmission rate of the baseband signal are extracted in steps, so that the information of the equipment is quickly extracted.
As a preferred embodiment, the device for determining whether a USB interface to be tested is compatible with a type based on a transmission rate and a type of a baseband signal includes:
if the transmission rate of the baseband signal is the preset transmission rate of the baseband signal, judging that the USB interface to be tested is compatible with the type of equipment, otherwise, judging that the USB interface to be tested is incompatible with the type of equipment.
In this embodiment, the transmission rate of the preset baseband signal may be the transmission rate of the baseband signal fixed by each type of device, for example, the transmission rate of the baseband signal fixed by the USB2.0 device is 480mbps, and the transmission rate of the baseband signal fixed by the USB3.0 device is 5Gbps. 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 USB interface compatible type to be tested is judged to be USB2.0, otherwise, the device is judged to be incompatible.
In conclusion, whether the USB interface to be tested is compatible with the equipment is judged through the transmission rate of the baseband signal, and the compatibility of the USB interface to be tested can be judged more accurately because the transmission rate of the baseband signal is not influenced by the material and the service life of the equipment.
As a preferred embodiment, the identification of the device includes a vendor 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 device manufactured by the same manufacturer has the same manufacturer identifier, but different product identifiers; equipment produced by different manufacturers has different manufacturer identifiers, but the product identifiers may 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 lower, 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 USB3.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 which are not higher than the version of USB3.0, which is not particularly limited herein.
As a preferred embodiment, the deconcentrator further comprises a power logic controller, an input end of the power logic controller is connected with an uplink interface of the deconcentrator, and an output end of the power logic controller is respectively connected with each downlink interface of the deconcentrator, and is used for dividing a power signal accessed by the uplink interface into a plurality of power signals so as to supply power for each downlink interface.
Referring to fig. 2, fig. 3, fig. 4 and fig. 5, fig. 2 is a schematic diagram of a pin structure of a USB3.0 interface provided by the present application, fig. 3 is a schematic diagram of a pin structure of a USB2.0 device provided by the present application, fig. 4 is a schematic diagram of a pin structure of a USB3.0 device provided by the present application, and fig. 5 is a schematic diagram of a deconcentrator provided by the present application.
As shown in fig. 2, the USB3.0 interface has 9 pins, and the standard USB3.0 interface has 9 pins, and the 1 st pin to the 4 th pin are pins required by USB2.0 signal points, and the 1 st pin plus the 5 th pin to the 9 th pin are pins required by USB3.0 signal points. VBUS is the power signal for USB3.0 and USB2.0, D-and D+ is the differential signal pair for USB2.0, GND is the ground signal, SSRX-and SSRX+ is the differential signal pair for USB3.0 overspeed receive data, SSTX-and SSTX+ is the differential signal pair for USB3.0 overspeed transmit data.
As shown in fig. 3, when the USB2.0 device is plugged into the USB3.0 interface, the VBUS power supply signal, the GND ground signal, the d+ and D-differential signal pair are required to implement normal signal transmission of the USB2.0 device.
As shown in 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-ultra-high speed receive data differential signal pairs, and the sstx+ and SSTX-ultra-high speed transmit data differential signal pairs are required to implement ultra-high speed signal transmission of the USB3.0.
In this embodiment, the power logic controller is configured to divide the power supply signal in the USB interface to be tested into a plurality of power supply signals for powering the devices connected to the downstream interface, so that the power supply signals of the plurality of devices are shared, and additional power supply is avoided.
Specifically, for example, in fig. 5, the USB interface to be tested is a USB3.0 interface, a USB3.0 uplink interface of the deconcentrator is connected to the USB3.0 interface through a USB cable, and two downlink interfaces of the deconcentrator are respectively connected to a USB2.0 device and a USB3.0 device, where the devices may be USB discs, where the USB disc of the USB2.0 is connected to the USB2.0 downlink interface, and the USB disc of the USB3.0 is connected to the USB3.0 downlink interface. With reference to fig. 2, 3 and 4, the VBUS power supply signal in the USB3.0 uplink interface is split into two paths by the power logic controller, and simultaneously supplies power for 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, a pin required by a D+ and D-differential signal pair of USB2.0 is connected to the USB2.0 downlink interface, and a pin required by an SSRX signal and an SSTX signal of USB3.0 is connected to the USB3.0 downlink interface, wherein the SSRX signal represents an SSRX+ and SSRX-ultra-high speed received data differential signal pair, and the SSTX signal represents an SSTX+ and SSTX-ultra-high speed transmitted data differential signal pair.
In conclusion, the power logic controller is used for realizing that the USB interface to be tested supplies power for a plurality of devices connected with the downlink interface, so that additional power supply is avoided.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a system for testing the compatibility of a USB interface, which is provided by the present application, and the system for testing the compatibility of a USB interface is applied to a server, wherein the server includes 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 a 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:
an information obtaining unit 21, configured to retrieve, from a preset storage area, information of each device connected to the deconcentrator, where the information includes an identifier of the device and a transmission rate of a baseband signal of the device, where the information of each device stored in the preset storage area is information detected and stored by an operating system of the server through a USB interface to be detected when each device establishes a connection with the server through the deconcentrator;
a type determining unit 22 for determining the type of the device based on the identification of the device;
and a compatibility judging unit 23, configured to judge whether the USB interface to be tested is compatible with the type of device based on the transmission rate and type of the baseband signal.
As a preferred embodiment, the information acquisition unit 21 includes:
the device number acquisition unit is used for determining the device number of each device which is connected with the server through the deconcentrator from the preset storage area;
an identification and rate acquisition unit for acquiring the identification of each device and the transmission rate of the baseband signal from a folder having a file name of the device number of each device.
As a preferred embodiment, the compatibility judgment unit 23 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 type of equipment if the transmission rate of the baseband signal is the preset transmission rate of the baseband signal of the type, and judging that the USB interface to be tested is incompatible if the USB interface to be tested is not compatible with the type of equipment.
For an introduction of a system for testing compatibility of a USB interface provided by the present application, please refer to the above embodiment, and the description of the system is omitted herein.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a server provided by the present application, the server includes a USB interface 33 to be tested and a deconcentrator 34, an uplink interface of the deconcentrator 34 is connected with the USB interface 33 to be tested, a plurality of downlink interfaces of the deconcentrator 34 are respectively connected with USB interfaces of a plurality of devices, 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 carry out the steps of the method of testing the compatibility of the USB interface.
For an introduction of a server provided by the present application, please refer to the above embodiment, and the description of the present application is omitted here.
It should be noted that in this 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 one … …" does not exclude the presence of other like 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 (8)

1. The method for testing the compatibility of the USB interface is characterized by being applied to a processor in a server, wherein 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:
retrieving 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 detected and stored by an operating system of the server through the USB interface to be detected when each device is connected with the server through the deconcentrator;
determining a type of the device based on the identification of the device;
judging whether the USB interface to be tested is compatible with the type of equipment or not based on the transmission rate of the baseband signal and the type;
retrieving information of each device connected with the deconcentrator from a preset storage area, wherein the information comprises the identification of the device and the transmission rate of a baseband signal of the device, and the method comprises the following steps:
determining the device number of each device 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 obtained from a folder with the file name of the device number of each device.
2. The method of testing the compatibility of a USB interface of claim 1, wherein determining whether the USB interface under test is compatible with the type of device based on the transmission rate of the baseband signal and the type comprises:
if the transmission rate of the baseband signal is the transmission rate of the type of preset baseband signal, the USB interface to be tested is judged to be compatible with the type of equipment, otherwise, the USB interface to be tested is judged to be incompatible.
3. A method of testing the compatibility of a USB interface as claimed in claim 1, wherein the identification of the device includes a vendor identification and a product identification of the device.
4. The method of claim 1, wherein the USB interface under test is a USB3.0 interface, and the types include USB2.0 and USB3.0.
5. A method of testing the compatibility of a USB interface as claimed in any one of claims 1 to 4 wherein the splitter further comprises a power logic controller, an input of the power logic controller being connected to an upstream interface of the splitter, an output of the power logic controller being connected to each downstream interface of the splitter, respectively, for splitting a power signal accessed by the upstream interface into a plurality of power signals for powering each of the downstream interfaces.
6. The system for testing the compatibility of the USB interface is characterized by being applied to a server, wherein 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 retrieving 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 detected and stored by an operating system of the server through the USB interface to be detected when the devices are connected with the server through the deconcentrator;
a type determining unit configured to determine a type of the device based on an identification of the device;
a compatibility judging unit, configured to judge 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 of device;
the information acquisition unit includes:
a device number acquisition unit configured to determine, from a preset storage area, a device number of each device that establishes a connection with the server through the splitter;
an identification and rate obtaining unit, configured to obtain, from a folder having a file name of a device number of each device, an identification of each device and a transmission rate of a baseband signal.
7. The system for testing compatibility of a USB interface of claim 6, wherein the compatibility determination 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 type of equipment if the transmission rate of the baseband signal is the preset transmission rate of the type of baseband signal, and judging that the USB interface to be tested is incompatible if the USB interface to be tested is not compatible with the type of equipment.
8. The utility model provides a server, its characterized in that includes USB interface and deconcentrator that awaits measuring, deconcentrator's ascending interface with the USB interface connection that awaits measuring, deconcentrator's a plurality of descending interfaces are connected with the USB interface of a plurality of devices respectively, the version of USB interface is not higher than the version of USB interface that awaits measuring, the server still includes:
a memory for storing a computer program;
a processor for executing the computer program to implement the steps of the method of testing the compatibility of a USB interface as claimed in any one of claims 1 to 5.
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 CN114490209A (en) 2022-05-13
CN114490209B true 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
CN114490209A (en) 2022-05-13

Similar Documents

Publication Publication Date Title
US8458384B2 (en) Automatically launching a measurement application in response to measurement device connection
US7293204B2 (en) Computer peripheral connecting interface system configuration debugging method and system
CN110718264A (en) Method and device for testing information of solid state disk, computer equipment and storage medium
CN110543404A (en) Server, hard disk lighting method and system and computer readable storage medium
CN109960678B (en) Naming processing method and computer processing device
CN105183388B (en) A kind of acquisition methods, device and the system of hard disc physical sequence number
CN111124775A (en) Power-on time sequence abnormality detection method and device, MCU and storage medium
CN110891000B (en) GPU bandwidth performance detection method, system and related device
CN111653307A (en) Method, system, equipment and storage medium for detecting data integrity of solid state disk
WO2022037686A1 (en) Program download method for intelligent terminal and intelligent terminal
CN105022694A (en) Test case generation method and system for mobile terminal test
CN104850421A (en) Computer system and detection method of universal sequence bus device thereof
CN111400154A (en) Performance test method and related device for solid state disk
CN114490209B (en) Method, system and server for testing compatibility of USB interface
CN113312322B (en) STDF file reading and writing method, medium, 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
CN109101435A (en) The multi partition recognition methods of movable storage device and system, car-mounted terminal
CN101714113A (en) Testing method of virtual equipment
CN102305906A (en) Chip testing method and device
CN111737072B (en) Eye pattern testing system and method for hard disk TX signal
CN104636228A (en) Electronic device convenient to test and testing method
CN104978273B (en) The automatic testing method and automatic detection unit of pad name
CN113010388B (en) USB flash disk detection method and system
CN106484579B (en) A kind of test method and device for adapter

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