[go: up one dir, main page]

CN1504887A - Universal serial bus port testing device and method - Google Patents

Universal serial bus port testing device and method Download PDF

Info

Publication number
CN1504887A
CN1504887A CNA021548595A CN02154859A CN1504887A CN 1504887 A CN1504887 A CN 1504887A CN A021548595 A CNA021548595 A CN A021548595A CN 02154859 A CN02154859 A CN 02154859A CN 1504887 A CN1504887 A CN 1504887A
Authority
CN
China
Prior art keywords
usb port
usb
test
testing
port
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.)
Pending
Application number
CNA021548595A
Other languages
Chinese (zh)
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.)
Inventec Corp
Original Assignee
Inventec Corp
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 Inventec Corp filed Critical Inventec Corp
Priority to CNA021548595A priority Critical patent/CN1504887A/en
Publication of CN1504887A publication Critical patent/CN1504887A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Systems (AREA)

Abstract

本发明公开了一种USB端口测试方法,用于测试主机的USB端口的工作情况,主机的USB端口通过一接口电路与一测试电路中的测试芯片相互通讯,首先加载USB设备驱动程序;然后搜寻USB设备,并确定其数目;再依次读取该设备配置信息;最后根据该读取结果,判断USB端口的工作情况,本发明使用简单的硬件电路来测试这些联机的好坏,无须使用USB装置,可大大节约成本,同时也避免了因USB装置工作不正常,而造成的判断上的错误。

Figure 02154859

The invention discloses a USB port testing method, which is used for testing the working condition of the USB port of a host. The USB port of the host communicates with a test chip in a test circuit through an interface circuit. First, a USB device driver is loaded; then the USB devices are searched and their number is determined; then the device configuration information is read in sequence; finally, the working condition of the USB port is judged according to the reading result. The invention uses a simple hardware circuit to test the quality of these connections without using a USB device, which can greatly save costs and also avoids judgment errors caused by abnormal operation of the USB device.

Figure 02154859

Description

通用串行总线端口测试装置及其方法Universal serial bus port testing device and method thereof

技术领域technical field

本发明涉及一种通过简单的电路装置来测试计算机通用串行总线(USB)端口好坏的装置及其方法。The invention relates to a device and method for testing the quality of a computer universal serial bus (USB) port through a simple circuit device.

背景技术Background technique

通用串行总线(Universal Serial Bus,USB)是新一代的外围设备接口,它是由Intel、Compaq、NEC、DEC(Digital)、IBM、Northern Telecom、Microsoft等七家软硬件制造商所共同制定的,这种接口的传输速率有1.5Mbps与12Mbps两种形式,由于它的传输速率比起个人计算机所使用的并行端口或是串行端口都快了许多,因此USB对于计算机设备与外围接口的传输效率会有显著的提升。Universal Serial Bus (Universal Serial Bus, USB) is a new generation of peripheral device interface, which is jointly developed by seven hardware and software manufacturers such as Intel, Compaq, NEC, DEC (Digital), IBM, Northern Telecom, and Microsoft. , the transmission rate of this interface has two forms of 1.5Mbps and 12Mbps, because its transmission rate is much faster than the parallel port or serial port used by personal computers, so USB is very important for the transmission of computer equipment and peripheral interfaces. Efficiency will be significantly improved.

USB由四根线D+、D-、Ground和VCC所组成。根据D+、D-的连接方式的不同,可连接高、低速设备。USB端口是计算机标准的扩充端口,大多数的扩充设备必须经此端口才能向计算机提供本设备的功能,通过USB,可以将不同类型的外围设备与计算机连接,如:USB鼠标、USB键盘、USB喇叭、USB摇杆、USB光驱、USB扫描器等。USB consists of four wires D+, D-, Ground and VCC. According to the different connection methods of D+ and D-, high and low speed devices can be connected. The USB port is a standard computer expansion port. Most expansion devices must pass through this port to provide the functions of the device to the computer. Through USB, different types of peripheral devices can be connected to the computer, such as: USB mouse, USB keyboard, USB Speakers, USB joysticks, USB CD drives, USB scanners, etc.

目前所使用的测试方法为:对该端口的测试,目前采用高、低速的USB设备分别进行,将一种USB设备(如:USB硬盘),直接插在个人计算机的USB端口上,通过检测USB设备来确定USB端口上的联机状态,但是此种技术存在许多缺点。如价格比较贵,结构复杂,测试比较麻烦。因此,面对这种状况,非常需要一个简易、便利的方法来解决此问题。The currently used test method is: the test of the port is currently carried out using high-speed and low-speed USB devices respectively. A USB device (such as: USB hard disk) is directly inserted into the USB port of a personal computer. device to determine the online status on the USB port, but this technique has a number of disadvantages. If the price is more expensive, the structure is complicated, and the test is more troublesome. Therefore, in the face of this situation, there is a great need for an easy and convenient method to solve this problem.

发明内容Contents of the invention

本发明的目的是提供一种测试个人计算机主板上USB端口联机好坏的简单有效的测试装置及其方法,通过对测试装置的存取操作能否成功来判断计算机USB端口的好坏。The purpose of the present invention is to provide a simple and effective test device and method thereof for testing the quality of the USB port connection on the motherboard of a personal computer, and judge whether the computer USB port is good or bad by whether the access operation to the test device can be successful.

为了实现上述目的,本发明提供了一种USB端口测试方法,用于测试主机的USB端口的工作情况,首先,加载USB设备驱动程序,接着,搜寻USB设备,并确定其数目,然后,依次读取该设备配置信息,最后,根据该读取结果,判断USB端口的工作情况。In order to achieve the above object, the present invention provides a USB port testing method, which is used to test the working conditions of the USB port of the host computer. First, load the USB device driver, then search for the USB device, and determine its number, and then read the USB device in turn. Get the configuration information of the device, and finally judge the working condition of the USB port according to the reading result.

本发明还提供了一种USB端口测试装置,用于测试主机的USB端口的工作情况,其包括一接口电路,该接口电路与主机的USB端口相连,一测试电路,与该接口电路相连,其由测试芯片及其外围组件组成,其中,该主机的USB端口通过该接口电路与该测试电路中的测试芯片相互通讯。The present invention also provides a USB port testing device for testing the working condition of the USB port of the host, which includes an interface circuit connected with the USB port of the host, a test circuit connected with the interface circuit, and It consists of a test chip and its peripheral components, wherein the USB port of the host computer communicates with the test chip in the test circuit through the interface circuit.

本发明的有益效果是,由测试电路来代替现有技术中的USB设备,通过读取该测试电路的配置信息来判断计算机USB端口的好坏,使用简单的硬件电路来测试USB端口的好坏,避免了现有技术测试方法的复杂,无须使用USB装置,可大大节约成本,同时也避免了因USB装置工作不正常造成的判断上的错误。本发明结构简单,成本低廉,可自动测试主机与测试装置的通讯,且本发明为USB端口联机的测试提供了一种简单有效的方法,这种方法克服了以前测试方法中的成本高等弊端,硬件更加可靠,随之相应软件也更为简洁。The beneficial effect of the present invention is that the USB device in the prior art is replaced by the test circuit, the quality of the USB port of the computer is judged by reading the configuration information of the test circuit, and the quality of the USB port is tested by using a simple hardware circuit , avoiding the complexity of the testing method in the prior art, without using the USB device, which can greatly save the cost, and also avoid the error in judgment caused by the abnormal operation of the USB device. The present invention has simple structure and low cost, and can automatically test the communication between the host computer and the test device, and the present invention provides a simple and effective method for the online test of the USB port, which overcomes the disadvantages of high cost in previous test methods, The hardware is more reliable, and the corresponding software is also simpler.

有关本发明的详细内容,下面配合附图和具体实施方式说明如后。The details of the present invention will be described below in conjunction with the accompanying drawings and specific embodiments.

附图说明Description of drawings

图1是本发明的USB端口测试方法的流程图;及Fig. 1 is the flowchart of USB port testing method of the present invention; And

图2是本发明的USB端口测试装置的结构图。Fig. 2 is a structural diagram of the USB port testing device of the present invention.

具体实施方式Detailed ways

本发明以一较佳实施例说明本发明所提出的装置及方法的具体可行性,请参阅图1,此图为本发明所提供的USB端口测试方法的流程图。首先在步骤100由计算机加载USB设备驱动程序;然后在步骤110搜寻USB设备,并确定其数目;再在步骤120依次读取该设备配置信息;最后在步骤130根据该读取结果,判断USB端口的工作情况。在上述方法中,该USB设备是指与计算机USB端口相连的,由本案提供的测试装置。The present invention uses a preferred embodiment to illustrate the specific feasibility of the device and method proposed by the present invention. Please refer to FIG. 1 , which is a flow chart of the USB port testing method provided by the present invention. At first in step 100, the USB device driver is loaded by the computer; then in step 110, the USB device is searched, and its number is determined; then in step 120, the device configuration information is read in turn; in step 130, according to the read result, the USB port is judged work situation. In the above method, the USB device refers to the test device provided by the present application, which is connected to the USB port of the computer.

USB端口共接有四条线,它们分别为:VCC,GND,D+,D-,其中,VCC与GND为电源线;D+与D-为对绞(twist paired)信号线,而USB主机控制器中的Port Status/Control Register中存在D+Line Status位,和D-LineStatus位。这两位反应出USB端口上D+和D-这两条信号线的状态,当信号线上接高电位时,缓存器中的相应位置为1,否则置为0。根据本发明提出的测试USB端口的装置及其方法,在本实施例中采用ez-usb公司的芯片AN2136SC芯片。进行USB端口测试时,首先执行测试系统初始化,这个过程主要包括检测是否存在USB主机控制器,并读取USB主机控制器的I/O的基本地址(BaseAddress),加载USB设备驱动程序。接着,搜寻测试装置是否存在,判断该装置的数目,然后依次读取该测试装置的配置信息,读取完成后,确定USB端口是否正常工作,若读取该测试装置的配置信息成功,则该USB端口正常工作。若所述读取该测试装置的配置信息失败,则该USB端口有损坏。最后显示测试结果。经过上述一连串的测试步骤,如果测试中均未显示短路信息,则说明USB端口联机正常,继续对下一USB端口联机进行测试。There are four wires connected to the USB port, they are: VCC, GND, D+, D-, among them, VCC and GND are power wires; D+ and D- are twist paired signal wires, and the USB host controller There are D+Line Status bits and D-LineStatus bits in the Port Status/Control Register. These two bits reflect the state of the two signal lines D+ and D- on the USB port. When the signal line is connected to a high potential, the corresponding position in the register is 1, otherwise it is set to 0. According to the device and method for testing the USB port proposed by the present invention, the chip AN2136SC chip of ez-usb company is used in this embodiment. When carrying out the USB port test, at first execute the test system initialization, this process mainly includes detecting whether there is a USB host controller, and reading the base address (BaseAddress) of the I/O of the USB host controller, and loading the USB device driver. Next, search whether the test device exists, judge the number of the device, then read the configuration information of the test device in turn, after the reading is completed, determine whether the USB port is working normally, if the configuration information of the test device is read successfully, then the The USB port is working normally. If the reading of the configuration information of the test device fails, the USB port is damaged. Finally, the test results are displayed. After a series of test steps above, if no short-circuit information is displayed during the test, it means that the USB port connection is normal, and continue to test the next USB port connection.

如图2所示,图2是本发明USB端口测试装置的结构图。本发明提供的USB端口测试装置,包括一接口电路和一测试电路,接口电路与主机的USB端口相连,测试电路与接口电路相连,测试电路由测试芯片220及其外围组件组成。其中,该主机的USB端口通过该接口电路与该测试电路中的测试芯片220相互通讯。将USB端口与测试电路的AN2136SC芯片相连接。即将USB端口上的信号与AN2136SC芯片上的相应端相连接。实际应用中也可以选择具有同样功能的其它型号的芯片,而图中其它电子组件(如电阻、电容等)是该芯片所提供的标准外部电路连接方式。As shown in FIG. 2, FIG. 2 is a structural diagram of the USB port testing device of the present invention. The USB port testing device provided by the present invention includes an interface circuit and a test circuit, the interface circuit is connected with the USB port of the host computer, the test circuit is connected with the interface circuit, and the test circuit is composed of a test chip 220 and its peripheral components. Wherein, the USB port of the host communicates with the test chip 220 in the test circuit through the interface circuit. Connect the USB port to the AN2136SC chip of the test circuit. That is to connect the signal on the USB port with the corresponding terminal on the AN2136SC chip. In practical applications, other types of chips with the same function can also be selected, and other electronic components (such as resistors, capacitors, etc.) in the figure are the standard external circuit connection methods provided by the chip.

本发明的原理是设计一个能测试计算机USB端口的辅具,通过对该辅具的存取操作能否成功来判断USB端口的好坏。使用简单的硬件电路来测试USB端口的好坏,避免了现有技术测试方法的复杂,无须使用USB装置,可大大节约成本,同时也避免了因USB装置工作不正常造成的判断上的错误。本发明结构简单,成本低廉,可自动测试主机与测试装置的通讯,且本发明为USB端口联机的测试提供了一种简单有效的方法,这种方法克服了以前测试方法中的成本高等弊端,硬件更加可靠,随之相应软件也更为简洁。The principle of the present invention is to design an auxiliary tool capable of testing the USB port of a computer, and judge whether the USB port is good or bad by whether the access operation of the auxiliary tool can be successful. The simple hardware circuit is used to test whether the USB port is good or bad, which avoids the complexity of the prior art test method, does not need to use the USB device, can greatly save costs, and also avoids errors in judgment caused by the abnormal operation of the USB device. The present invention has simple structure and low cost, and can automatically test the communication between the host computer and the test device, and the present invention provides a simple and effective method for the online test of the USB port, which overcomes the disadvantages of high cost in previous test methods, The hardware is more reliable, and the corresponding software is also simpler.

虽然本发明以前述的较佳实施例揭露如上,但是并非用以限定本发明,本技术领域的普通技术人员,在不脱离本发明的精神和范围内,所做出的等效变换,均包含在本发明的专利范围内。Although the present invention is disclosed above with the aforementioned preferred embodiments, it is not intended to limit the present invention. Equivalent transformations made by those skilled in the art without departing from the spirit and scope of the present invention all include Within the patent scope of the present invention.

Claims (5)

1.一种USB端口测试方法,用于测试主机的USB端口的工作情况,其特征在于,包括如下步骤:1. a USB port testing method, for testing the working condition of the USB port of the host, is characterized in that, comprises the steps: 加载USB设备驱动程序;Load the USB device driver; 搜寻USB设备,并确定其数目;Search for USB devices and determine their number; 依次读取该设备配置信息;及sequentially read the device configuration information; and 根据该读取结果,判断USB端口的工作情况。According to the reading result, the working condition of the USB port is judged. 2.如权利要求1所述的USB端口测试方法,其特征在于,若读取该设备配置信息成功,则该USB端口正常工作。2. The USB port testing method according to claim 1, wherein if the device configuration information is read successfully, then the USB port works normally. 3.如权利要求1所述的USB端口测试方法,其特征在于,若读取该设备配置信息失败,则该USB端口有损坏。3. The USB port testing method according to claim 1, wherein if reading the device configuration information fails, the USB port is damaged. 4.一种USB端口测试装置,用于测试主机的USB端口的工作情况,其特征在于,该USB端口测试装置包含:4. a kind of USB port testing device, is used for testing the working situation of the USB port of host computer, is characterized in that, this USB port testing device comprises: 一接口电路,与该主机的USB端口相连;及an interface circuit connected to the USB port of the host; and 一测试电路,与该接口电路相连,由测试芯片及其外围组件组成;A test circuit, connected to the interface circuit, consisting of a test chip and its peripheral components; 其中,该主机的USB端口通过该接口电路与该测试电路中的测试芯片相互通讯。Wherein, the USB port of the host communicates with the test chip in the test circuit through the interface circuit. 5.如权利要求4所述的USB端口测试装置,其特征在于,该测试芯片为AN2136SC芯片。5. The USB port testing device according to claim 4, wherein the testing chip is an AN2136SC chip.
CNA021548595A 2002-12-02 2002-12-02 Universal serial bus port testing device and method Pending CN1504887A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA021548595A CN1504887A (en) 2002-12-02 2002-12-02 Universal serial bus port testing device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA021548595A CN1504887A (en) 2002-12-02 2002-12-02 Universal serial bus port testing device and method

Publications (1)

Publication Number Publication Date
CN1504887A true CN1504887A (en) 2004-06-16

Family

ID=34235576

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA021548595A Pending CN1504887A (en) 2002-12-02 2002-12-02 Universal serial bus port testing device and method

Country Status (1)

Country Link
CN (1) CN1504887A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100383752C (en) * 2005-11-02 2008-04-23 鸿富锦精密工业(深圳)有限公司 Device for testing RS232 ports
CN100432951C (en) * 2006-10-25 2008-11-12 东莞市步步高教育电子产品有限公司 Monitoring apparatus and method of USB interface
CN100444124C (en) * 2006-12-19 2008-12-17 北京中星微电子有限公司 Serial interface circuit testing method and system
CN100458724C (en) * 2007-02-02 2009-02-04 北京中星微电子有限公司 Test platform and method for testing embedded file system and protocol
CN100458725C (en) * 2005-12-23 2009-02-04 英业达股份有限公司 Method for testing by using universal serial bus port to connect testing device
CN100489804C (en) * 2006-04-11 2009-05-20 广达电脑股份有限公司 Universal serial bus device detection system
CN101206602B (en) * 2006-12-22 2010-11-10 鸿富锦精密工业(深圳)有限公司 Computer connector tester
CN101206601B (en) * 2006-12-19 2010-11-10 鸿富锦精密工业(深圳)有限公司 I/o port testing device
CN102087626A (en) * 2009-12-07 2011-06-08 致伸科技股份有限公司 Automatic test system and automatic test method thereof
WO2012031486A1 (en) * 2010-09-09 2012-03-15 中兴通讯股份有限公司 Mobile terminal

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100383752C (en) * 2005-11-02 2008-04-23 鸿富锦精密工业(深圳)有限公司 Device for testing RS232 ports
CN100458725C (en) * 2005-12-23 2009-02-04 英业达股份有限公司 Method for testing by using universal serial bus port to connect testing device
CN100489804C (en) * 2006-04-11 2009-05-20 广达电脑股份有限公司 Universal serial bus device detection system
CN100432951C (en) * 2006-10-25 2008-11-12 东莞市步步高教育电子产品有限公司 Monitoring apparatus and method of USB interface
CN100444124C (en) * 2006-12-19 2008-12-17 北京中星微电子有限公司 Serial interface circuit testing method and system
CN101206601B (en) * 2006-12-19 2010-11-10 鸿富锦精密工业(深圳)有限公司 I/o port testing device
CN101206602B (en) * 2006-12-22 2010-11-10 鸿富锦精密工业(深圳)有限公司 Computer connector tester
CN100458724C (en) * 2007-02-02 2009-02-04 北京中星微电子有限公司 Test platform and method for testing embedded file system and protocol
CN102087626A (en) * 2009-12-07 2011-06-08 致伸科技股份有限公司 Automatic test system and automatic test method thereof
CN102087626B (en) * 2009-12-07 2013-04-10 致伸科技股份有限公司 Automatic test system and automatic test method thereof
WO2012031486A1 (en) * 2010-09-09 2012-03-15 中兴通讯股份有限公司 Mobile terminal

Similar Documents

Publication Publication Date Title
CN1245687C (en) Method and device for testing USB port
CN101359309B (en) Status indication apparatus for hard disc of serial connection small computer system interface and method
US6813688B2 (en) System and method for efficient data mirroring in a pair of storage devices
JP4886601B2 (en) Apparatus and method for operating USB interface equipment
CN101599035A (en) USB port proving installation and method
CN1504887A (en) Universal serial bus port testing device and method
CN111949457A (en) Server fault chip detection method and device
TWI795886B (en) Hard drive in-position detection device and method
CN110619914A (en) Mass production method for solid state disk with PCIe interface mass production device
CN115480971A (en) A test card, test method, device and medium for NVMe hard disk backplane
CN102053898A (en) Test method for bus interface on PCIE slot of host and read-write test method thereof
CN112306938A (en) Hot plug method and device for OCP card and multi-host card
CN112000536A (en) Memory detection method, system and related equipment
CN113434442A (en) A switch and data access method
US7162565B1 (en) Universal serial bus interface to mass storage device
CN1212558C (en) Data transmission method of dual-interface memory card
CN1315050C (en) A method for detecting PC Card interface data wire and address wire
CN115509981A (en) A storage server and its PCIe expansion system
TWI223745B (en) Test method of universal serial bus (USB) port
CN100458725C (en) Method for testing by using universal serial bus port to connect testing device
US20040210716A1 (en) Apparatus and method for simulating virtual floppy disk and virtual hard disk
CN111143145B (en) Method for manufacturing errors in SATA error processing debugging and electronic equipment
US6892274B2 (en) Method and apparatus for handling data transfers
CN113626230B (en) A method and system to avoid SAS card loss and card locking
CN1328665C (en) IDE channel measuring apparatus and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication