CN1609819B - Test method for computer external equipment interface - Google Patents

Test method for computer external equipment interface Download PDF

Info

Publication number
CN1609819B
CN1609819B CN 200310102799 CN200310102799A CN1609819B CN 1609819 B CN1609819 B CN 1609819B CN 200310102799 CN200310102799 CN 200310102799 CN 200310102799 A CN200310102799 A CN 200310102799A CN 1609819 B CN1609819 B CN 1609819B
Authority
CN
China
Prior art keywords
test
server
adapter
equipment
devices
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
Application number
CN 200310102799
Other languages
Chinese (zh)
Other versions
CN1609819A (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.)
Zouzhou Ruoqing Ginkgo Seedling Planting Specialized Cooperative
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 CN 200310102799 priority Critical patent/CN1609819B/en
Publication of CN1609819A publication Critical patent/CN1609819A/en
Application granted granted Critical
Publication of CN1609819B publication Critical patent/CN1609819B/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The equipment with 1394 adaptor is tested via data transmission in the 1394 network comprising test server and equipment with 1394 adaptor. The test includes the following steps: installing successfully 1394 adaptor drive program in the equipment to be tested; connecting the equipment to be tested and the test server with 1394 cable; allocating address for the adaptor, starting TCP/IP services in the server, setting port and maximum connection number, establishing the 1394 connection between the test server and the equipment to be tested; and performing the transmission test of the adaptor in network.

Description

A kind of method of testing of computer peripheral interface
Technical field
The present invention relates to a kind of method of testing of computer peripheral interface, particularly a kind of method of test 1394 equipment.
Background technology
Along with the constantly bringing forth new ideas and develop of computer peripheral interface, the transmission data improve constantly at capacity and temporal requirement between peripherals and the computing machine, and a kind of new peripheral interface 1394 arises at the historic moment.The 1394th, Apple company just is decided to be the IEEE-1394 standard by IEEE association in nineteen ninety-five.IEEE is for providing a new common interface between computer equipment and the household electronic products, it is very high that it has transfer rate, the characteristics of plug and play.For existing various multi-media image files, the transmission of the high capacity of data such as voice is very suitable.And when 1394 equipment are installed, do not need shutdown in 1394 environment and computing machine, behind insertion equipment, need not restart machine yet, can be immediately by computer Recognition and use.In addition, IEEE1394 has point-to-point transmission mode, also possesses simultaneously at a high speed and characteristics timely.
Because its excellent performance all has been equipped with 1394 interfaces at existing many desk-top computer and notebooks.As everyone knows, computing machine production firm need carry out whole detection to computing machine when product turnout, has just comprised wherein whether test 1394 adapters are working properly.According to the theory of 1394 standard design, need an equipment (such as digital camera or the like) that has 1394 interfaces to link to each other during test at least with test machine, carry out the transmission of data (audio files, image file) again.
Yet, in the test of computing machine production firm, impossible complete design concept according to 1394 interfaces, with a concrete equipment that comprises 1394 interfaces, as digital camera, the quality of 1394 adapters of computing machine is tested, doing so not only to increase testing cost, its testing efficiency can not get guaranteeing more, is not suitable for using in large-scale production.
At this moment, the method that just needs a kind of energy advantages of simplicity and high efficiency to test 1394 equipment solves the problems referred to above.
Summary of the invention
In view of this, the present invention addresses the above problem the method that has proposed a kind of test 1394 equipment, its purpose is to form 1394 networks by setting up a testing server with the Devices to test that comprises 1394 adapters, in these transmission over networks file or data, simulated the data transmission between 1394 interfaces of 1394 adapters of computing machine and peripherals, thereby finished test 1394 adapters.
The present invention proposes a kind of method of test 1394 equipment, this method comprises the steps, at first determine 1394 adapter drivers successful installations of a plurality of Devices to tests, connect Devices to test and testing server by 1394 cables then, for this adapter distributes the address, in a plurality of TCP/IP services of this startup of server, set port and port maximum number of connections, 1394 networks of setting up between this testing server and the Devices to test by this address and port connect, and wherein this 1394 network step of connecting comprises the steps: that also this Devices to test obtains the port numbers that server distributes for its adapter; Create socket according to this port numbers, and the address of binding this adapter; Send connection request by this socket to server; This server is determined the connection request of receiving that this adapter sends; And set up this server and be connected with 1394 networks between the Devices to test adapter, connect the test transmission that carries out this adapter by this network at last, wherein the step of this test transmission comprises the steps: that also server reads this Devices to test and transmits test data; These data are returned to this adapter; With this adapter these data of returning are carried out verification.
Compare with existing method, the method of testing of 1394 adapters provided by the invention, the hardware that does not need to provide extra just can be finished test, and the part of manual operation in the test process seldom, thereby avoided being unfavorable in the existing measuring technology large-scale test, the higher and inefficient shortcoming of cost has improved the efficient and the accuracy of test, reduced testing cost, for large-scale test provides effective assurance.
Relevant detailed content of the present invention and method, existing conjunction with figs. is described as follows.
Description of drawings
Fig. 1 is the overview flow chart of the method for test 1394 equipment of the present invention;
Fig. 2 is the process flow diagram that 1394 networks between this testing server and the Devices to test connect of setting up proposed by the invention; And
Fig. 3 is the process flow diagram that this network connects the test transmission that carries out this adapter that passes through proposed by the invention.
Embodiment
The present invention is described in detail below in conjunction with accompanying drawing:
As shown in Figure 1, this figure is the overview flow chart of the method for test 1394 equipment of the present invention, is described as follows:
At first determine 1394 adapter drivers successful installations (step 110) of a plurality of Devices to tests; Connect Devices to test and testing server (step 120) by 1394 cables then; For this adapter distributes address (step 130); In a plurality of TCP/IP services of this startup of server, set port and port maximum number of connections (step 140); 1394 networks of setting up between this testing server and the Devices to test by this address and port connect (step 150); Connect the test transmission (step 160) that carries out this adapter by this network at last.
Wherein, this address can be 1394 adapter virtual MAC address of client to be measured, or 1394 adapter virtual MAC address of client to be measured and for its IP address allocated.Decide according to concrete test case.
In a plurality of TCP/IP services of this startup of server, each service need take a specific port, so this port is corresponding one by one with a plurality of these TCP/IP services of startup.
See also Fig. 2, this figure is the process flow diagram that 1394 networks between this testing server and the Devices to test connect of setting up proposed by the invention, is described as follows:
At first this Devices to test obtains the port numbers (step 210) that server distributes for its adapter; Create socket (Socket) according to this port numbers then, and the address (step 220) of binding this adapter; Send connection request (step 230) by this socket (Socket) to server; This server is determined the connection request (step 240) of receiving that this adapter sends; Set up this server at last and be connected (step 250) with 1394 networks between the Devices to test adapter.
Wherein, this server is that the port numbers of the adapter distribution of Devices to test is the I/O transmission channel between 1394 adapters.
Opened a plurality of ports on this server, the service that the representative of each port is specific connects with different adapter respectively, so this 1394 network connects being connected between certain port of being actually server and the Devices to test adapter.
This server is distributing the address for the adapter of Devices to test, started after the TCP/IP service, the connection request that is sent in order in time to receive this adapter will be intercepted all of the port that this server is set up by circulation, to receive the information that comes from the Devices to test adapter.
See also Fig. 3 and illustrate, this figure is the process flow diagram that this network connects the test transmission that carries out this adapter that passes through proposed by the invention, is described as follows:
At first server reads this Devices to test and transmits test data (step 310); Then these data are returned to this adapter (step 320); This adapter carries out verification (step 330) to these data of returning at last.
Wherein, it is by server each port to be created a supervisory routine that server reads the test data that this Devices to test transmits, and the management corresponding ports is finished, this subroutine is used for the data volume of control transmission and transmission speed, as the parameter index of weighing 1394 interfaces and adapter performance.
In the reality test, to test a computing machine that comprises 1394 interfaces is example, at first need to install the driver of 1394 adapters, be connected with 1394 interfaces of testing server with 1394 interfaces of IEEE1394 cable then this computing machine for this computing machine.The IEEE1394 cable is generally formed (be used for the two pairs of twisted-pair feeders of data transmission and be used for a pair of power lead to outside power devices) by 4 or 6 lines.At this moment should service and 1394 adapters of computing machine will by virtual be the network equipment, and each 1394 adapters distribution MAC Address for fictionalizing.Be two 1394 adapters (Adapter) distributing IP address again, set up network and connect, so just between test computer and testing server, set up one 1394 network.
The process that server is connected with 1394, and IP address assignment is by 1394 ARP (AddressResolution Protocol, AARP, address resolution protocol) and MCAP (MulticastChannel Allocation Protocol, multileaving channel allocation agreement) finishes, utilize IP to carry out the transmission of packet.Minimizing is to 1394 Physical layers, the dependence of the agreement of link layer and system criterion.
Next, just can utilize service and the WinSock technology of this 1394 network, TCP/IP, thereby the transmission data are finished test to 1394 adapters of computing machine to be measured between server and computing machine to be measured.
Start the service of a plurality of TCP/IP on server, each serves corresponding specific port, and the maximum number of connections of port is set.Computing machine to be measured then will obtain by the port numbers of server-assignment to it by 1394 common channel.After obtaining port numbers, create socket (Socket), and the binding IP address allocated.Send connection request to server.Server will constantly be intercepted the information that the port set up is received, determine the request of receiving that computing machine adapter to be measured sends, and beginning is connected with it.After server and the computing machine successful connection to be measured, server will be set up a subroutine that is used for managing the data transmission between them for this connection, and 1394 adapters of computing machine to be measured begin to send to server the data of test then; After server reads this test data, it is sent it back 1394 adapters of computing machine to be measured, this adapter will carry out verification to it after reading the data of returning from server.
So far, finish a data transfer.This process constantly repeats, and just can reach the purpose that 1394 adapters of computing machine to be measured are tested.
Further consider,, certainly will increase the test duration like this if machine of every test just need reconfigure 1394 networks.1394 interfaces are the same with USB1.1 or 2.0 interfaces, it also is a kind of bus control interface, we can utilize the expansion technique of present stage 1394, selected machine is as testing server, 1394HUB or expansion cascading device are installed in the above, testing server just can provide a plurality of 1394 interfaces like this, connects the communication simultaneously of a plurality of computing machines to be measured with IEEE 1394 cables simultaneously.Because IEEE1394 equipment is supported hot plug, so whenever adding or dismounting equipment of test process to the IEEE1394 network, both without the transmission of concern of data, also do not need to carry out any reconfiguring, system can automatically adjust according to the environment that changes.After setting up virtual network between a plurality of 1394 adapters, we can utilize the service of TCP/IP and this mature technology of WinSock and client/server (Client/Server) framework to carry out data transmission test.Its process is the same with 1394 adapters of a computing machine are tested.
Testing server can be managed tested a plurality of 1394 adapters that are connected with its generation, writes down the test mode of current each 1394 adapter.Each 1394 adapter can send data to server simultaneously; Server can be handled the data of sending from each 1394 adapter, and the validity of checking data.Be responsible for again data are sent it back client (Client) end.In communication process, data volume and transmitting speed that server (server) can control transmission, these can be as the parameter index of weighing 1394 interfaces and adapter performance.
The unified test procedure (script) of each 1394 adapters operation.Be responsible for the IP that configuration management local 1394 connects, send test data (file), accept test data (file), check test data (file) or the like from server to server.
In addition, because 1394 interfaces are supported the procotol that NETBEUI and IPX/SPX etc. are commonly used simultaneously, so in 1394 small-sized LAN (Local Area Network), it is simple and easy to utilize the NETBEUI agreement to have an operation, the advantage of efficient quick also can be tested 1394 ports.Because the NETBEUI agreement lacks route and network layer addressing function, do not need the network address that adds and network layer end to end.Be in two machines of same 1394 networks, because with being in a simple network environment, do not need route control and network identity, application layer can be by their machine name separately as the sign that connects, network layer utilizes data link layer media interviews control (MAC) address to carry out communication by the NETBEUI agreement.Its test process is identical with the test process that utilizes ICP/IP protocol.
Example above-mentioned is to utilize the C/S framework to carry out the example that data transmission is provided with, and also can utilize this framework to carry out the test of transfer files simultaneously.Because 1394 communication speed, performance is better than Ethernet card, and is not subjected to interior other connection of LAN (Local Area Network) to take the influence of resource, improves testing efficiency.
Distributed the plurality of sharing file wrapper for each 1394 adapter during server test.Install on the tested machine of 1394 adapters at each, with certain shared document folder of adapter end network reflection driver as it.1394 connections of each client (to-be-detected machine) by having set up, carry out file system operation to its reflection at the shared region of service end, comprise read-only test (Read Test operation), write test (Write Test operation) and readwrite tests (Read/Write Test operation).
The above is preferred embodiment of the present invention only, is not to be used for limiting practical range of the present invention; All equalizations of doing according to this instructions and claims change and modify, and are claim of the present invention and contain.

Claims (8)

1. the method for test 1394 equipment is characterized in that this method comprises the steps:
Determine 1394 adapter drivers successful installations of a plurality of Devices to tests;
Connect Devices to test and testing server by 1394 cables;
For this adapter distributes the address;
In a plurality of TCP/IP services of this startup of server, set port and port maximum number of connections;
1394 networks of setting up between this testing server and the Devices to test by this address and port connect, and wherein this 1394 network step of connecting also comprises the steps:
This Devices to test obtains the port numbers that server distributes for its adapter;
Create socket according to this port numbers, and the address of binding this adapter;
Send connection request by this socket to server;
This server is determined the connection request of receiving that this adapter sends; With
Setting up this server is connected with 1394 networks between the Devices to test adapter; And
Connect the test transmission that carries out this adapter by this network, wherein the step of this test transmission also comprises the steps:
Server reads this Devices to test and transmits test data;
These data are returned to this adapter; With
This adapter carries out verification to these data of returning.
2. the method for test 1394 equipment as claimed in claim 1 is characterized in that, this address is 1394 adapter virtual MAC address of client to be measured.
3. the method for test 1394 equipment as claimed in claim 1 is characterized in that, this address is 1394 adapter virtual MAC address of client to be measured and is its IP address allocated.
4. the method for test 1394 equipment as claimed in claim 1 is characterized in that, this port is corresponding one by one with a plurality of these TCP/IP services of startup.
5. the method for test 1394 equipment as claimed in claim 1 is characterized in that, it is to finish by the common channel between 1394 adapters for the port numbers that its adapter distributes that this Devices to test obtains server.
6. the method for test 1394 equipment as claimed in claim 1 is characterized in that, it is being connected between certain port and the Devices to test adapter of server that this 1394 network connects.
7. the method for test 1394 equipment as claimed in claim 1 is characterized in that, this server determines to receive that connection request that this adapter sends is to intercept all of the port that this server sets up by circulation to finish.
8. the method for test 1394 equipment as claimed in claim 1 is characterized in that, it is by server the management of port to be finished that server reads this Devices to test transmission test data.
CN 200310102799 2003-10-24 2003-10-24 Test method for computer external equipment interface Expired - Fee Related CN1609819B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200310102799 CN1609819B (en) 2003-10-24 2003-10-24 Test method for computer external equipment interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200310102799 CN1609819B (en) 2003-10-24 2003-10-24 Test method for computer external equipment interface

Publications (2)

Publication Number Publication Date
CN1609819A CN1609819A (en) 2005-04-27
CN1609819B true CN1609819B (en) 2010-04-14

Family

ID=34756458

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200310102799 Expired - Fee Related CN1609819B (en) 2003-10-24 2003-10-24 Test method for computer external equipment interface

Country Status (1)

Country Link
CN (1) CN1609819B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100517256C (en) * 2005-10-24 2009-07-22 鸿富锦精密工业(深圳)有限公司 IEEE1394 interface function detection device and method
CN101764794B (en) * 2008-12-23 2012-12-12 中国科学院空间科学与应用研究中心 Programmable IEEE1394 bus monitoring system and monitoring method thereof
CN102195823A (en) * 2010-03-04 2011-09-21 智易科技股份有限公司 Running test method for network communication product
CN104572389A (en) * 2013-10-18 2015-04-29 神讯电脑(昆山)有限公司 Automatic testing method of 1394 interface
CN104539671B (en) * 2014-12-16 2018-05-18 广东侍卫长卫星应用安全股份公司 A kind of distributed data collection method based on big-dipper satellite alignment system
CN106201808A (en) * 2015-05-04 2016-12-07 北京畅游天下网络技术有限公司 The automation interface method of testing of a kind of server end and system
CN110890995B (en) * 2019-05-14 2021-08-13 研祥智能科技股份有限公司 Network port testing method and network port testing device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020186022A1 (en) * 2001-05-29 2002-12-12 Chien-Yi Shih Method, system, and recording medium of testing a 1394 interface card
US20030195716A1 (en) * 2002-04-10 2003-10-16 Chien-Hsu Chen Interface device for product testing

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020186022A1 (en) * 2001-05-29 2002-12-12 Chien-Yi Shih Method, system, and recording medium of testing a 1394 interface card
US20030195716A1 (en) * 2002-04-10 2003-10-16 Chien-Hsu Chen Interface device for product testing

Also Published As

Publication number Publication date
CN1609819A (en) 2005-04-27

Similar Documents

Publication Publication Date Title
US7440415B2 (en) Virtual network addresses
US7433356B2 (en) Methods and apparatus for creating addresses
CN112055096B (en) Method and device for automatically setting communication address of equipment
CN102664918B (en) Blade server control method and console
US10372633B1 (en) Interconnection of peripheral devices on different electronic devices
CN113572634B (en) Method and system for realizing two-layer intercommunication between in-cloud network and out-cloud network
CN111158865A (en) Method for realizing multiplexing virtual serial port
CN115357535A (en) Virtual serial port design method and device
CN1609819B (en) Test method for computer external equipment interface
CN115348126A (en) Network target range entity equipment access method, device and implementation system
CN101022425B (en) ISCSI-based storage resource distributing method
CN105786732A (en) Data access method and apparatus
US6418479B1 (en) I/O pass through for a distributed computer system
CN115454896A (en) SMBUS-based SSD MCTP control message verification method and device, computer equipment and storage medium
CN114201439A (en) Server signal identification optimization method, system and storage medium
CN106993068A (en) A kind of blade server managing intranet IP auto-allocation method
CN109388598A (en) A kind of information processing method and general-purpose serial bus USB cluster server
US10599588B1 (en) Interconnection of peripheral devices on different electronic devices
CN106713008B (en) The method that a kind of pair of EOC local-side device is tested for the property
Mishra et al. Design of EtherCAT Slave Controller using CIFX 90E-RE for HMI Display
CN108132900A (en) Interconnecting device, telecommunication system and data transmission method
CN216930329U (en) Management device
CN114490202B (en) Password equipment testing method and device, electronic equipment and storage medium
CN115766549B (en) Antithetical couplet test method, device, electronic equipment and storage medium
CN107302473B (en) High-frequency data transmission pressure testing method and system

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
TR01 Transfer of patent right

Effective date of registration: 20181207

Address after: Xinhua Village, Guanhu Town, Pizhou City, Jiangsu Province

Patentee after: Zouzhou Ruoqing Ginkgo Seedling Planting Specialized Cooperative

Address before: Taipei City, Taiwan, China

Patentee before: Inventec Corporation

TR01 Transfer of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20100414

Termination date: 20181024

CF01 Termination of patent right due to non-payment of annual fee