CN100573466C - The test macro of host interface and method - Google Patents
The test macro of host interface and method Download PDFInfo
- Publication number
- CN100573466C CN100573466C CNB2005100372310A CN200510037231A CN100573466C CN 100573466 C CN100573466 C CN 100573466C CN B2005100372310 A CNB2005100372310 A CN B2005100372310A CN 200510037231 A CN200510037231 A CN 200510037231A CN 100573466 C CN100573466 C CN 100573466C
- Authority
- CN
- China
- Prior art keywords
- interface
- tested
- test
- configuration
- virtual bench
- 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.)
- Expired - Fee Related
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2205—Detection 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/2221—Detection 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 input/output devices or peripheral units
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)
- Information Transfer Systems (AREA)
- Fire Alarms (AREA)
Abstract
The invention provides a kind of test macro and method of host interface, this system comprises: one generates module, is used to generate a configuration files, comprises at least one configuration record in the described configuration files; Described generation module, also be used for when interface to be tested be connected with non-test interface finish after, generate at least one virtual bench, the corresponding interface to be tested of each virtual bench and a non-test interface; One detection module is used to detect each virtual bench of main frame, and confirms the pairing non-test interface of each virtual bench, and the interface to be tested that links to each other with described non-test interface; One judge module is used for judging whether the corresponding relation of the connection state of each non-test interface and corresponding interface to be tested and configuration record is consistent, to determine whether each interface to be tested is normal; One output module is used for all configuration records are output as a configuration files, and outputs test result.Utilize the present invention, can avoid the loss external unit, and improve testing efficiency, saving testing cost.
Description
[technical field]
The present invention relates to a kind of test macro and method of host interface.
[background technology]
Various interface in the host computer can assist to carry out data transmission between computer and other equipment.For example IEEE1394 is the high-speed serial bus that designs in order to strengthen external multimedia equipment and computer switching performance, and its transfer rate can reach 400Mbps.Utilize the IEEE1394 can be easily computer with as video camera, high speed hard-disk, multiple multimedia equipment such as stereo set connects.This IEEE1394 interface can connect 63 distinct devices simultaneously, and the tenaculum electric mortiser is dialled equipment and supported plug and play.
At present, each manufacturer computer is normal for guaranteeing the IEEE1394 interface in its product that dispatches from the factory, and needs usually it to be tested as external hard disk, digital camera, video camera etc. by external unit.When product need be tested in enormous quantities, described external unit was damaged easily, not only make testing cost increase, and the efficient of test also can't improve.
[summary of the invention]
In view of foregoing, be necessary to provide a kind of test macro of host interface, it can be tested fast to the interface on the main frame.
In view of foregoing, also be necessary to provide a kind of method of testing of host interface, it can be tested fast to the interface on the main frame.
Better embodiment of the present invention provides a kind of test macro of host interface, this system is installed in the main frame, whether being used for test interface, whether normally to reach interface good with being connected of mainboard, and it comprises: a detection module, generates module, a judge module and an output module.Generation module is used to generate a configuration files, comprises at least one configuration record in the described configuration files, and described each configuration record comprises the corresponding relation of an interface to be tested and non-test interface; Described generation module, also be used for when interface to be tested be connected with non-test interface finish after, generate at least one virtual bench, the corresponding interface to be tested of each virtual bench and a non-test interface; Detection module is used to detect each virtual bench, confirms the pairing non-test interface of each virtual bench, and the interface to be tested that links to each other with described non-test interface; Judge module is used for judging whether the corresponding relation of the connection state of each non-test interface and corresponding interface to be tested and configuration record is consistent, to determine whether each interface to be tested is normal; Reach output module and be used for all configuration records are output as a configuration files, and output test result.
Better embodiment of the present invention also provides a kind of method of testing of host interface, this method comprises the steps: that (a) generates a configuration files, comprise at least one configuration record in the described configuration files, described each configuration record comprises the corresponding relation of an interface to be tested and non-test interface; (b) all interfaces to be tested of main frame are connected with corresponding non-test interface respectively; (c) generate at least one virtual bench, a corresponding interface to be tested of each virtual bench and a non-test interface; (d) detect each virtual bench, and confirm the pairing non-test interface of each virtual bench, and the interface to be tested that links to each other with described non-test interface; (e) judge whether each non-test interface is consistent with the connection state and the corresponding relation in the configuration record of corresponding interface to be tested, to determine whether each interface to be tested is normal.
In step (a), further comprise the steps: to connect an interface to be tested and another non-test interface on the main frame; Generate a virtual bench; Detect this virtual bench and confirm its pairing non-test interface, and the interface to be tested that links to each other with this non-test interface; Corresponding relation according to non-test interface and interface to be tested generates a configuration record; Number according to the interface to be tested of the number of configuration record and this main frame judges whether to finish all configuration records; If all configuration records are finished all, then described configuration record is output as a configuration files; If the result that step judges whether to finish all configuration records, then returns the step that connects an interface to be tested and non-test interface on the main frame for not.
Compare prior art, the test macro of described host interface and method need not can test host interface by external unit, can avoid the loss to external unit, and improve testing efficiency, saving testing cost.
[description of drawings]
Fig. 1 is the hardware structure figure of the test macro better embodiment of host interface of the present invention.
Fig. 2 is the functional block diagram of the test macro better embodiment of host interface of the present invention.
Fig. 3 is the configuration files product process figure of the method for testing better embodiment of host interface of the present invention.
Fig. 4 is the concrete implementing procedure figure of the method for testing better embodiment of host interface of the present invention.
[embodiment]
As shown in Figure 1, be the hardware structure figure of the test macro better embodiment of host interface of the present invention.This system is installed in the main frame 1, and whether be used to test each interface good, and whether each interface is normal with being connected of mainboard.This main frame 1 built-in mainboard 2, a plurality of IEEE1394 interface 3 and a plurality of USB (Universal Serial Bus, USB (universal serial bus)) interface 4.Described IEEE1394 interface 3 utilizes IEEE1394 connecting line 5 to link to each other with USB interface 4.This main frame 1 also can connect a display 6, is used for showing the various data and the test result of test.
As shown in Figure 2, be the functional block diagram of the test macro better embodiment of host interface of the present invention.The test macro 10 of this host interface comprises four functional modules, is respectively detection module 100, generation module 110, judge module 120 and output module 130.Wherein, detection module 100 is used to detect the connection state of IEEE1394 interface 3 and USB interface 4.Generation module 110 is used for according to the connection state between each interface of above-mentioned detection, generate a virtual USB device and a configuration record, this virtual USB device is that a virtual external unit is connected on the USB interface 4 in the main frame 1, and this configuration record comprises the corresponding relation between the various interface.Detection module 100 is by detecting this virtual USB device to confirm the USB interface corresponding with it.
Judge module 120 is used for the number according to the IEEE1394 interface 3 of main frame 1, judges whether to finish all configuration records, and this configuration record need equate with the number of IEEE1394 interface 3.In addition, judge module 120 is used for also judging whether the related datas such as number of corresponding relation between each interface of testing process and interface are consistent with configuration record.
Output module 130 is used for all configuration records are output as a configuration files, and outputs test result.
As shown in Figure 3, be the configuration files product process figure of the method for testing better embodiment of host interface of the present invention.At first, detection module 100 detects all USB devices (step S1) that are connected with the USB interface 4 of main frame 1.Detection module 100 prompting users connect an IEEE1394 interface 3 and a USB interface 4 (step S2) on the main frame 1 with IEEE1394 connecting line 5.Generation module 110 generates a virtual USB device (step S3).Detection module 100 detects this virtual USB device and confirms its pairing USB interface 4, and the IEEE1394 interface 3 that links to each other with this USB interface 4, comprise 2 IEEE1394 interfaces 3 and 2 USB interface 4 as main frame 1, then detection module 100 confirms that the USB interface 4 of this virtual USB device correspondence is first USB interface 4 or second USB interface 4, and what link to each other with this USB interface 4 is an IEEE1394 interface 3 or the 2nd IEEE1394 interface 3 (step S4).
The USB interface 4 that generation module 110 is confirmed according to step S4 generates a configuration record (step S5) with the corresponding relation of IEEE1394 interface 3.According to the number of configuration record and the number of the IEEE1394 interface 3 on this main frame 1, judge whether to finish all configuration records, if the number of IEEE1394 interface 3 equates that with the number of configuration record then all configuration records have been finished in expression, if all configuration records are not finished in unequal then expression as yet, for example main frame 1 comprises 2 IEEE1394 interfaces 3, then need create 2 configuration records (step S6).If all configuration records are finished all, then all configuration records are output as a configuration files (step S7) by output module 130.Do not finish all configuration records if step S6 judges, then return step S2 and connect next IEEE1394 interface 3 and USB interface 4.
As shown in Figure 4, be the concrete implementing procedure figure of the method for testing better embodiment of host interface of the present invention.At first, according to IEEE1394 interface in the configuration files 3 corresponding relation with USB interface 4, with some IEEE1394 connecting lines 5 with all IEEE1394 interfaces 3 of main frame 1 be connected with each USB interface 4 respectively (step S10).Generation module 110 generates some virtual USB devices (step S11) according to the connection state among the step S10.Detection module 100 detects these some virtual USB devices, and confirms pairing each USB interface 4 of each virtual USB device, and each the IEEE1394 interface 3 that links to each other with described USB interface 4, and can detect the number (step S12) of IEEE1394 interface 3.
According to the configuration record in the configuration files, judge module 120 judges whether the USB interface 4 of above-mentioned steps gained is consistent with the connection state and the corresponding relation in the configuration record of IEEE1394 interface 3, and whether the number that also comprises the number of judging IEEE1394 interface 3 and configuration record consistent (step S13).If USB interface 4 is consistent with the connection state and the corresponding relation in the configuration record of IEEE1394 interface 3, then this IEEE1394 interface 3 is normal, and with the connection state of mainboard 2 well (step S14).If USB interface 4 is inconsistent with the connection state and the corresponding relation in the configuration record of IEEE1394 interface 3, then this IEEE1394 interface 3 is unusual, and with the connection state of mainboard 2 bad (step S15).The test result of output step S14 and S15, and feed back this result to user place (step S16).
Above-mentioned IEEE1394 interface 3 and USB interface 4 only are a better embodiment, and wherein IEEE1394 interface 3 is an interface to be tested, and USB interface 4 is non-test interface, and the test to host interface in the practical application is not limited to IEEE1394 interface 3 and USB interface 4.
Claims (8)
1. the test macro of a host interface is characterized in that, this system comprises:
One generates module, is used to generate a configuration files, comprises at least one configuration record in the described configuration files, and described each configuration record comprises the corresponding relation of an interface to be tested and non-test interface;
Described generation module, also be used for when interface to be tested be connected with non-test interface finish after, generate at least one virtual bench, the corresponding interface to be tested of each virtual bench and a non-test interface;
One detection module is used to detect each virtual bench, and confirms the pairing non-test interface of each virtual bench, and the interface to be tested that links to each other with described non-test interface; And
One judge module is used for judging whether the corresponding relation of the connection state of each non-test interface and corresponding interface to be tested and configuration record is consistent, to determine whether each interface to be tested is normal.
2. the test macro of host interface as claimed in claim 1 is characterized in that, this system also comprises an output module, is used for all configuration records are output as a configuration files, and outputs test result.
3. the test macro of host interface as claimed in claim 1 is characterized in that, described configuration record equates with the number of interface to be tested.
4. the test macro of host interface as claimed in claim 1 is characterized in that, described interface to be tested is the IEEE1394 interface.
5. the method for testing of a host interface is characterized in that, this method comprises the steps:
Generate a configuration files, comprise at least one configuration record in the described configuration files, described each configuration record comprises the corresponding relation of an interface to be tested and non-test interface;
All interfaces to be tested of main frame are connected with corresponding non-test interface respectively;
Generate at least one virtual bench, a corresponding interface to be tested of each virtual bench and a non-test interface;
Detect each virtual bench, and confirm the pairing non-test interface of each virtual bench, and the interface to be tested that links to each other with described non-test interface; And
Judge whether each non-test interface is consistent with the connection state and the corresponding relation in the configuration record of corresponding interface to be tested, to determine whether each interface to be tested is normal.
6. the method for testing of host interface as claimed in claim 5 is characterized in that, described generation one configuration files step comprises:
Connect an interface to be tested and another non-test interface on the main frame;
Generate a virtual bench;
Detect this virtual bench and confirm its pairing non-test interface, and the interface to be tested that links to each other with this non-test interface;
Corresponding relation according to non-test interface and interface to be tested generates a configuration record;
Whether the number according to configuration record equates with the number of the interface to be tested of this main frame, judges whether to finish all configuration records; And
If the number of configuration record equates that with the number of the interface to be tested of this main frame then all configuration records are finished all, described configuration record is output as a configuration files, otherwise, return the step of an interface to be tested and another non-test interface on the connection main frame.
7. the method for testing of host interface as claimed in claim 5 is characterized in that, this method also comprises the steps:
Output test result.
8. the method for testing of host interface as claimed in claim 5 is characterized in that, described interface to be tested is the IEEE1394 interface, and non-test interface is a USB interface.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2005100372310A CN100573466C (en) | 2005-09-09 | 2005-09-09 | The test macro of host interface and method |
US11/309,339 US20070089013A1 (en) | 2005-09-09 | 2006-07-28 | System and method for testing ports of a computer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2005100372310A CN100573466C (en) | 2005-09-09 | 2005-09-09 | The test macro of host interface and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1928835A CN1928835A (en) | 2007-03-14 |
CN100573466C true CN100573466C (en) | 2009-12-23 |
Family
ID=37858807
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2005100372310A Expired - Fee Related CN100573466C (en) | 2005-09-09 | 2005-09-09 | The test macro of host interface and method |
Country Status (2)
Country | Link |
---|---|
US (1) | US20070089013A1 (en) |
CN (1) | CN100573466C (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101398467B (en) * | 2007-09-26 | 2011-01-05 | 鸿富锦精密工业(深圳)有限公司 | Internal integrate circuit bus interface test system and method |
US9471473B1 (en) * | 2009-01-09 | 2016-10-18 | Sprint Communications Company L.P. | Environmental validation tool |
CN102236592A (en) * | 2010-05-07 | 2011-11-09 | 华为终端有限公司 | Computer peripheral and computer compatibility test method, device and system |
CN102346702B (en) * | 2010-08-03 | 2013-10-09 | 鸿富锦精密工业(深圳)有限公司 | IEEE1394 interface testing device |
CN102735953A (en) * | 2011-04-15 | 2012-10-17 | 纬创资通股份有限公司 | Automatic testing device |
CN102750208B (en) * | 2011-04-19 | 2016-08-24 | 中山市云创知识产权服务有限公司 | Test device and the method utilizing its test embedded system device multi-channel serial port |
CN105740109B (en) * | 2016-01-27 | 2019-02-12 | 珠海全志科技股份有限公司 | Interface signal conformance test method and system |
CN106095648B (en) * | 2016-06-25 | 2018-12-28 | 浙江中烟工业有限责任公司 | A kind of virtualization terminal access device condition checkout gear |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6732301B1 (en) * | 2000-03-06 | 2004-05-04 | Hewlett-Packard Development Company, L.P. | Serial bus diagnostic port of a digital system |
CN1595367A (en) * | 2004-07-06 | 2005-03-16 | 天津百维软件科技有限公司 | A method for detecting PC Card interface data wire and address wire |
CN1625271A (en) * | 2003-12-01 | 2005-06-08 | 中兴通讯股份有限公司 | One board testing device of digital user wire equipment |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4839852A (en) * | 1985-09-27 | 1989-06-13 | Allen-Bradley Company, Inc. | Programmable controller with self testing I/O structure |
TW479142B (en) * | 2000-07-14 | 2002-03-11 | Inventec Corp | Method for testing USB port and the device thereof |
US7162407B2 (en) * | 2001-12-03 | 2007-01-09 | Ms1-Microsoft Corporation | Testing a host's support for peripheral devices |
-
2005
- 2005-09-09 CN CNB2005100372310A patent/CN100573466C/en not_active Expired - Fee Related
-
2006
- 2006-07-28 US US11/309,339 patent/US20070089013A1/en not_active Abandoned
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6732301B1 (en) * | 2000-03-06 | 2004-05-04 | Hewlett-Packard Development Company, L.P. | Serial bus diagnostic port of a digital system |
CN1625271A (en) * | 2003-12-01 | 2005-06-08 | 中兴通讯股份有限公司 | One board testing device of digital user wire equipment |
CN1595367A (en) * | 2004-07-06 | 2005-03-16 | 天津百维软件科技有限公司 | A method for detecting PC Card interface data wire and address wire |
Also Published As
Publication number | Publication date |
---|---|
US20070089013A1 (en) | 2007-04-19 |
CN1928835A (en) | 2007-03-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100573466C (en) | The test macro of host interface and method | |
CN108885601B (en) | USB multi-host endpoint reflector hub | |
US6665764B2 (en) | Hubless docking station having USB ports | |
CN108897647B (en) | Test system, test method and device | |
CN101359309A (en) | Status indication apparatus for hard disc of serial connection small computer system interface and method | |
CN102810085A (en) | PCI-E expansion system and method | |
TWI445974B (en) | Test system and method for ports with multi functions | |
US7676707B2 (en) | Device and method for testing SAS channels | |
CN102467431A (en) | SATA interface test device and test method thereof | |
US20090113454A1 (en) | System and method of testing bridge sas channels | |
CN101377754A (en) | Bridging SAS channel test system and method | |
TWI479325B (en) | Universal serial bus devices and communication methods and computer products | |
CN101894091B (en) | Method and system for single board I2C expansion and ID check | |
CN101739323B (en) | Bridge SAS signal channel testing system and testing method thereof | |
CN114116584A (en) | Interface board card, user equipment and CPU test system | |
CN204189089U (en) | A kind of server | |
CN101430637B (en) | Apparatus capable of detecting independent redundancy magnetic disk array initialization | |
US11953549B1 (en) | Detection system for SlimSAS slot and method thereof | |
EP2682872A1 (en) | Interposer and intelligent multiplexer to provide a plurality of peripherial buses | |
CN104598173A (en) | Information processing method and electronic device | |
CN219417926U (en) | Expansion device and test system based on multichannel TYPEC interface | |
US6901538B2 (en) | Method, system, and recording medium of testing a 1394 interface card | |
CN217718670U (en) | Expansion board | |
CN113742146B (en) | Test jig and test device | |
CN101645029A (en) | System and method for testing peripheral component interconnect express |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20091223 Termination date: 20140909 |
|
EXPY | Termination of patent right or utility model |