CN1504887A - Testing device and method for universal serial bus port - Google Patents
Testing device and method for universal serial bus port Download PDFInfo
- 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
Links
Images
Landscapes
- Information Transfer Systems (AREA)
Abstract
The invention discloses a USB port testing method, testing working situation of USB port for computer, making the USB port communicate with a testing chip by an interface circuit, firstly loading USB drive program; then searching USB device and determining the number; then read configuration information of USB device in turn; finally according to the configuration information, justifying the working situation. It uses simple hardware circuit without USB unit to test working situation of integrated computers.
Description
Technical field
The present invention relates to a kind of devices and methods therefor that comes test computer USB (universal serial bus) (USB) port quality by simple circuit arrangement.
Background technology
USB (universal serial bus) (Universal Serial Bus, USB) be the peripheral interface of a new generation, it be by the tame software and hardware of Intel, Compaq, NEC, DEC (Digital), IBM, Northern Telecom, Microsoft etc. seven manufacturer common the formulation, the transfer rate of this interface has 1.5Mbps and two kinds of forms of 12Mbps, because its transfer rate is all fast many compared with employed parallel port of personal computer or serial port, so USB has significant lifting for the transfer efficiency of computer equipment and peripheral interface.
USB is made up of four line D+, D-, Ground and VCC.Difference according to the connected mode of D+, D-can connect high, low speed equipment.USB port is the expansion port of computer standard, most extension facility must could provide the function of this equipment through this port to computing machine, pass through USB, dissimilar peripherals can be connected with computing machine, as: USB mouse, USB keyboard, USB loudspeaker, USB rocking bar, USB CD-ROM drive, USB scanner etc.
Present employed method of testing is: to the test of this port, adopt the USB device of high, low speed to carry out respectively at present, with a kind of USB device (as: USB hard disk), directly be inserted on the USB port of personal computer, determine on line state on the USB port by detecting USB device, but there are many shortcomings in this kind technology.Expensive as price comparison, complex structure is tested cumbersome.Therefore, in the face of this situation, be starved of one simple and easy, method solves this problem easily.
Summary of the invention
The purpose of this invention is to provide a kind of simple and effective proving installation and method thereof of testing the online quality of USB port on the personal computer motherboard, by can successfully judge the quality of computing machine USB port to the accessing operation of proving installation.
To achieve these goals, the invention provides a kind of USB port method of testing, be used for the working condition of the USB port of Test Host, at first, load the USB device driver, then, search USB device, and definite its number, then, read this device configuration information successively, last, read the result according to this, judge the working condition of USB port.
The present invention also provides a kind of USB port proving installation, the working condition that is used for the USB port of Test Host, it comprises an interface circuit, this interface circuit links to each other with the USB port of main frame, one test circuit links to each other with this interface circuit, and it is made up of test chip and peripheral assembly thereof, wherein, the USB port of this main frame is by the mutual communication of test chip in this interface circuit and this test circuit.
The invention has the beneficial effects as follows, replace USB device of the prior art by test circuit, judge the quality of computing machine USB port by the configuration information that reads this test circuit, use simple hardware circuit to come the quality of testing USB port, avoided the complexity of prior art method of testing, need not use the USB device, can save cost greatly, also avoid because of the mistake in the undesired judgement that causes of USB device work simultaneously.The present invention is simple in structure, with low cost, the communication of automatically testing main frame and proving installation, and the present invention provides a kind of simple effective method for the online test of USB port, this method has overcome the drawbacks such as cost height in the former method of testing, hardware is more reliable, and corresponding software is also more succinct thereupon.
Relevant detailed content of the present invention, below the explanation of conjunction with figs. and embodiment as after.
Description of drawings
Fig. 1 is the process flow diagram of USB port method of testing of the present invention; And
Fig. 2 is the structural drawing of USB port proving installation of the present invention.
Embodiment
The present invention sees also Fig. 1 with the concrete feasibility of preferred embodiment explanation device and method proposed by the invention, and this figure is the process flow diagram of USB port method of testing provided by the present invention.At first load the USB device driver by computing machine in step 100; Search USB device in step 110 then, and determine its number; Read this device configuration information successively in step 120 again; Read the result in step 130 according to this at last, judge the working condition of USB port.In said method, this USB device is meant and links to each other with the computing machine USB port, the proving installation that is provided by this case.
USB port is connected to four lines altogether, and they are respectively: VCC, and GND, D+, D-, wherein, VCC and GND are power lead; D+ and D-are pair twist (twist paired) signal wire, and have D+Line Status position and D-LineStatus position among the Port Status/Control Register in the usb host controller.These two states that reflect D+ and this two signal line of D-on the USB port, when connecing noble potential on the signal wire, the relevant position in the buffer is 1, otherwise is changed to 0.The devices and methods therefor of the testing USB port that proposes according to the present invention adopts the chip AN2136SC chip of ez-usb company in the present embodiment.When carrying out the USB port test, at first carry out the test macro initialization, this process comprises mainly whether detection exists usb host controller, and reads the base address (BaseAddress) of the I/O of usb host controller, loads the USB device driver.Then, search proving installation and whether exist, judge the number of this device, read the configuration information of this proving installation then successively, read finish after, determine whether operate as normal of USB port, if read the configuration information success of this proving installation, then this USB port operate as normal.If described configuration information failure of reading this proving installation, then this USB port has damage.Show test results at last.Through above-mentioned a series of testing procedure,, illustrate that then USB port is online normal, continues to test next USB port is online if all do not show short circuit information in the test.
As shown in Figure 2, Fig. 2 is the structural drawing of USB port proving installation of the present invention.USB port proving installation provided by the invention comprises an interface circuit and a test circuit, and interface circuit links to each other with the USB port of main frame, and test circuit links to each other with interface circuit, and test circuit is made up of test chip 220 and peripheral assembly thereof.Wherein, the USB port of this main frame is by the test chip 220 mutual communications in this interface circuit and this test circuit.USB port is connected with the AN2136SC chip of test circuit.The signal that is about on the USB port is connected with respective end on the AN2136SC chip.Also can select to have the chip of other model of said function in the practical application, and other electronic package (as resistance, electric capacity etc.) is the standard external circuit connecting mode that this chip provides among the figure.
Can principle of the present invention be the accessory of an energy test computer USB port of design, by successfully judge the quality of USB port to the accessing operation of this accessory.The quality of using simple hardware circuit to come testing USB port has been avoided the complexity of prior art method of testing, need not use the USB device, can save cost greatly, has also avoided because of the mistake in the undesired judgement that causes of USB device work simultaneously.The present invention is simple in structure, with low cost, the communication of automatically testing main frame and proving installation, and the present invention provides a kind of simple effective method for the online test of USB port, this method has overcome the drawbacks such as cost height in the former method of testing, hardware is more reliable, and corresponding software is also more succinct thereupon.
Though the present invention discloses as above with aforesaid preferred embodiment, be not in order to qualification the present invention, those skilled in the art, without departing from the spirit and scope of the present invention, the equivalent transformation of being made all is included in the claim of the present invention.
Claims (5)
1. USB port method of testing is used for the working condition of the USB port of Test Host, it is characterized in that, comprises the steps:
Load the USB device driver;
Search USB device, and determine its number;
Read this device configuration information successively; And
Read the result according to this, judge the working condition of USB port.
2. USB port method of testing as claimed in claim 1 is characterized in that, if read this device configuration information success, then this USB port operate as normal.
3. USB port method of testing as claimed in claim 1 is characterized in that, if read this device configuration information failure, then this USB port has damage.
4. USB port proving installation is used for the working condition of the USB port of Test Host, it is characterized in that this USB port proving installation comprises:
One interface circuit links to each other with the USB port of this main frame; And
One test circuit links to each other with this interface circuit, is made up of test chip and peripheral assembly thereof;
Wherein, the USB port of this main frame is by the mutual communication of test chip in this interface circuit and this test circuit.
5. USB port proving installation as claimed in claim 4 is characterized in that, this test chip is the AN2136SC chip.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA021548595A CN1504887A (en) | 2002-12-02 | 2002-12-02 | Testing device and method for universal serial bus port |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA021548595A CN1504887A (en) | 2002-12-02 | 2002-12-02 | Testing device and method for universal serial bus port |
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 | Testing device and method for universal serial bus port |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1504887A (en) |
Cited By (9)
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 | 英业达股份有限公司 | Link detecting device and its method for general serial bus port |
CN101206601B (en) * | 2006-12-19 | 2010-11-10 | 鸿富锦精密工业(深圳)有限公司 | I/o port testing device |
CN101206602B (en) * | 2006-12-22 | 2010-11-10 | 鸿富锦精密工业(深圳)有限公司 | Computer connector tester |
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 |
-
2002
- 2002-12-02 CN CNA021548595A patent/CN1504887A/en active Pending
Cited By (10)
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 | 英业达股份有限公司 | Link detecting device and its method for general serial bus port |
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 | |
CN101599035A (en) | USB port proving installation and method | |
CN101359309A (en) | Status indication apparatus for hard disc of serial connection small computer system interface and method | |
CN102929755B (en) | Fault detection method of CPU (Central Processing Unit) module address and data bus | |
CN1504887A (en) | Testing device and method for universal serial bus port | |
CN111949457A (en) | Server fault chip detection method and device | |
CN102053898A (en) | Method for testing bus interface on PCIE (Peripheral Component Interface Express) slot of host and read-write test method thereof | |
CN102662808A (en) | Method and device for realizing hardware fault detection on PCIE (peripheral component interconnect express) | |
CN114442930A (en) | Method and device for controlling group disk array, electronic equipment and readable storage medium | |
CN112306938A (en) | Hot plug method and device for OCP card and multi-host card | |
CN1955942A (en) | IEEE1394 interface function detection device and method | |
CN106815088A (en) | server and its debugging method | |
CN1154926C (en) | Detection method for system host board and input/output system | |
CN1212558C (en) | Double-interface SD memory card | |
US20060095626A1 (en) | Multifunction adapter | |
CN104123257A (en) | Universal serial bus devices, communication method, and computer readable storage medium | |
TWI223745B (en) | Test method of universal serial bus (USB) port | |
CN1315050C (en) | A method for detecting PC Card interface data wire and address wire | |
US20040210716A1 (en) | Apparatus and method for simulating virtual floppy disk and virtual hard disk | |
CN103049214B (en) | Magnetic disc array card and there is the disc array system of extended function | |
CN107636676B (en) | Card reader | |
CN1299214C (en) | Method of reuse of PCI interface AD bus | |
CN1991742A (en) | Notebook computer system and method of operating the system | |
CN101174236A (en) | Debugging card and computer debugging method | |
CN2726012Y (en) | Adapting card detector |
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 |