Summary of the invention
In view of this, the embodiment of the present invention provides a kind of parallel test system and method for testing, to solve existing parallel test system, due to the restriction of tester port number, and can not simultaneously to the problem that the Devices to test of more than two is tested.
First aspect, provides a kind of parallel test system, and comprise a tester, a control appliance, described system also comprises:
Multiple stage Devices to test, all Devices to tests access the prevention at radio-frequency port of described tester by power splitter;
An IP transducer, described IP transducer is connected with described control appliance;
Described IP transducer has multiple port, and each port connects a Devices to test;
Described control appliance, carries out concurrent testing for calling described tester to all Devices to tests.
Further, described tester has one, two or more prevention at radio-frequency port;
If described tester only has a prevention at radio-frequency port, then all Devices to tests access the described prevention at radio-frequency port of described tester by power splitter;
If described tester has two or more prevention at radio-frequency port, then all Devices to tests access each prevention at radio-frequency port of described tester respectively by power splitter.
Further, described control appliance comprises:
Devices to test controls thread construction unit, and control thread, each Devices to test control line process control Devices to test for building multiple Devices to test according to the quantity of Devices to test, it is separate that each Devices to test controls thread;
Instrument port controls thread construction unit, and the quantity for the prevention at radio-frequency port according to tester builds one, two or more instrument port control thread, and it is separate that each instrument port controls thread;
First step operation control unit, controls thread for opening described multiple Devices to test simultaneously, controls each Devices to test and controls the operation of the thread synchronization execution first step;
Test item registering unit, for after each Devices to test control thread completes first step operation, controls each Devices to test and controls thread controls thread successively test item queue registration test item to instrument port;
Second step operation control unit, for obtaining first test item of registration from described test item queue, and the operation of control instrument port controlling thread execution second step;
3rd step operation control unit, for complete second step operation at control instrument port controlling thread after, control instrument port controlling thread dispatching tester performs the 3rd step operation;
FOUR EASY STEPS control unit, for complete the 3rd step operation at control instrument port controlling thread after, control instrument port controlling thread execution FOUR EASY STEPS;
Test result returns unit, and for after control instrument port controlling thread completes FOUR EASY STEPS, control instrument port controlling thread controls thread to the Devices to test corresponding with first test item and returns test result;
5th step operation control unit, controls thread execution the 5th step operate for controlling the Devices to test corresponding with first test item;
Cycling control unit, for returning second step operation control unit, obtains the next test item of registration from described test item queue, and all the other operations walked in the next test item of control instrument port controlling thread execution registration;
Wherein, each test item comprises five step operations, and first step operation arranges Devices to test; Second step operation controls Devices to test to start transmitting/receiving; 3rd step operation calls tester to test; FOUR EASY STEPS controls Devices to test to stop transmitting/receiving; 5th step operation is test result feedback.
Further, described control appliance also comprises:
Port lock unit, for control Devices to test control thread to instrument port control thread test item queue registration test item before, latched port is locked, and ensures that Devices to test that the Devices to test that connects on same prevention at radio-frequency port is corresponding controls thread order and performs, does not interfere with each other;
Port releasing unit, after returning test result to Devices to test control thread, release port is locked.
Further, described control appliance also comprises:
Instrument lock lock cell, for perform the 3rd step operation at control instrument port controlling thread dispatching tester before, locking instrument lock, ensures that synchronization only has an instrument port to control thread at the described tester of use;
Instrument lock releasing unit, for perform the 3rd step operation at control instrument port controlling thread dispatching tester after, release instrument lock.
Second aspect, provide a kind of utilize the control appliance in parallel test system as above to call tester carries out concurrent testing method to multiple stage Devices to test, described method comprises:
Build multiple Devices to test according to the quantity of Devices to test and control thread, each Devices to test control line process control Devices to test, it is separate that each Devices to test controls thread;
Build one, two or more instrument port control thread according to the quantity of the prevention at radio-frequency port of tester, it is separate that each instrument port controls thread;
Open described multiple Devices to test simultaneously and control thread, control each Devices to test and control the operation of the thread synchronization execution first step;
After each Devices to test control thread completes first step operation, control each Devices to test and control thread controls thread successively test item queue registration test item to instrument port;
First test item of registration is obtained from described test item queue, and the operation of control instrument port controlling thread execution second step;
After control instrument port controlling thread completes second step operation, control instrument port controlling thread dispatching tester performs the 3rd step operation;
After control instrument port controlling thread completes the 3rd step operation, control instrument port controlling thread execution FOUR EASY STEPS;
After control instrument port controlling thread completes FOUR EASY STEPS, control instrument port controlling thread controls thread to Devices to test and returns test result;
Control Devices to test and control the operation of thread execution the 5th step;
The next test item of registration is obtained from described test item queue, and all the other operations walked in the next test item of control instrument port controlling thread execution registration;
Wherein, each test item comprises five step operations, and first step operation arranges Devices to test; Second step operation controls Devices to test to start transmitting/receiving; 3rd step operation calls tester to test; FOUR EASY STEPS controls Devices to test to stop transmitting/receiving; 5th step operation shows test results.
Further, control before thread to control the test item queue registration test item of thread to instrument port at described control Devices to test, described method also comprises:
Latched port is locked, and ensures that Devices to test that the Devices to test that connects on same prevention at radio-frequency port is corresponding controls thread order and performs, does not interfere with each other;
To control after thread returns after test result to Devices to test described, described method also comprises:
Release port is locked.
Further, before described control instrument port controlling thread dispatching tester performs the 3rd step operation, described method also comprises:
Locking instrument lock, ensures that synchronization only has an instrument port to control thread at the described tester of use;
After described control instrument port controlling thread dispatching tester performs the 3rd step operation, described method also comprises:
Release instrument lock.
In the embodiment of the present invention, multiple stage Devices to test in parallel test system is by the prevention at radio-frequency port of power splitter access tester, by described test macro, under the control of control appliance, tester can carry out concurrent testing to the Devices to test of more than 2 or 2.Solve existing parallel test system, due to the restriction of tester port number, can not simultaneously to the problem that the Devices to test of more than two is tested.
Embodiment one
Fig. 1 shows the structural representation of the parallel test system that the embodiment of the present invention one provides, and for convenience of explanation, illustrate only the part relevant to the embodiment of the present invention.Described parallel test system comprises a tester, a control appliance (control PC).Described parallel test system also comprises an IP transducer and multiple stage Devices to test, and all Devices to tests access the prevention at radio-frequency port of described tester by power splitter.Described IP transducer is connected with described control appliance, described IP transducer has multiple port, each port connects a Devices to test, and the IP address maps of each port can be become a fixing IP address by described IP transducer, makes described control appliance can identify different Devices to tests.Described control appliance is a PC, can call described tester and carry out concurrent testing to all Devices to tests.
Concrete, described tester can have one, two or more prevention at radio-frequency port, if described tester only has a prevention at radio-frequency port, then all Devices to tests access the described prevention at radio-frequency port of described tester by power splitter; If described tester has two or more prevention at radio-frequency port, then all Devices to tests access each prevention at radio-frequency port of described tester respectively by power splitter.Making the tester by only having one or two prevention at radio-frequency port, can walk abreast and the Devices to test of more than 2 or 2 tested.
In parallel test system shown in Fig. 1, have 4 Devices to test DUT1 to DUT4, tester comprises 2 prevention at radio-frequency port, is respectively RF1 port and RF2 port.DUT1 and DUT2 is connected to RF1 port by power splitter, DUT3 and DUT4 is connected to RF2 port by power splitter.DUT1 to DUT4 is connected respectively with 4 port LAN1 to LAN4 of IP transducer.Because the IP address of Devices to test is the same, the connection of direct use switch can produce IP address conflict, Devices to test is accessed the different port of IP transducer, just the IP address maps of this port can be become other IP addresses that fixing, control appliance just can control all Devices to tests simultaneously.By IP transducer connection control equipment and Devices to test, the restriction of Devices to test by IP address can be broken through, simplify building of test topology.
Concrete, be built-in with in control appliance with lower unit, by with the effect of lower unit, control appliance can be realized and call tester concurrent testing is carried out to all Devices to tests.
Concrete, control appliance comprises:
Devices to test controls thread construction unit, and control thread, each Devices to test control line process control Devices to test for building at least two Devices to tests, it is separate that each Devices to test controls thread;
Instrument port controls thread construction unit, and for building one, two or more instrument port control thread, it is separate that each instrument port controls thread;
First step operation control unit, controls threads at least two Devices to tests described in opening simultaneously, controls each Devices to test and controls thread synchronization and perform first step operation;
Test item registering unit, for after each Devices to test control thread completes first step operation, controls each Devices to test and controls thread controls thread successively test item queue registration test item to instrument port;
Second step operation control unit, for obtaining first test item of registration from described test item queue, and the operation of control instrument port controlling thread execution second step, wherein, multiple instrument port controls thread synchronously can perform second step operation;
3rd step operation control unit, for complete second step operation at control instrument port controlling thread after, control instrument port controlling thread dispatching tester performs the 3rd step operation;
FOUR EASY STEPS control unit, for complete the 3rd step operation at control instrument port controlling thread after, control instrument port controlling thread execution FOUR EASY STEPS;
Test result returns unit, and for after control instrument port controlling thread completes FOUR EASY STEPS, control instrument port controlling thread controls thread to the Devices to test corresponding with first test item and returns test result;
5th step operation control unit, controls thread execution the 5th step operate for controlling the Devices to test corresponding with first test item;
Cycling control unit, for returning second step operation control unit, obtains the next test item of registration from described test item queue, and all the other operations walked in the next test item of control instrument port controlling thread execution registration;
Wherein, each test item comprises 5 step operations, and as shown in Figure 2, first step operation arranges Devices to test, comprises the pattern, channel, antenna, speed, power etc. that arrange Devices to test; Second step operation controls Devices to test to start transmitting/receiving; 3rd step operation calls tester to test, and that is to say that controlling tester detects radiofrequency signal that DUT launches/send the radiofrequency signal of certain strength to DUT; FOUR EASY STEPS controls Devices to test to stop transmitting/receiving; 5th step operation shows test results.
Preferably, in order to ensure that each the Devices to test that same prevention at radio-frequency port accesses does not interfere with each other, control appliance also comprises:
Port lock unit, for control Devices to test control thread to instrument port control thread test item queue registration test item before, latched port is locked, and ensures that Devices to test that the Devices to test that connects on same prevention at radio-frequency port is corresponding controls thread order and performs, does not interfere with each other;
Port releasing unit, to controlling after thread returns test result with Devices to test, release port is locked.
Wherein, after the locking of port lock, after needing to wait for other thread release port lock, just can carry out the registration of test item, after having registered, wait for that instrument port thread returns test result.
Preferably, in order to ensure correctly calling of tester, control appliance also comprises:
Instrument lock lock cell, for perform the 3rd step operation at control instrument port controlling thread dispatching tester before, locking instrument lock, ensures that synchronization only has an instrument port to control thread at the described tester of use;
Instrument lock releasing unit, for perform the 3rd step operation at control instrument port controlling thread dispatching tester after, release instrument lock.
Wherein, after the locking of instrument lock, after needing to wait for other thread release instrument lock, the 3rd step operation could be performed.
Fig. 3 shows tester carries out concurrent testing process schematic to 4 DUT, be described for the implementation of DUT1: after executing first step operation, locking RF1 port, after making RF1 port to only have DUT1 can perform second step operation, control DUT1 performs second step operation, execute second step operation, locking instrument lock, make the current DUT1 of only having can perform the 3rd step operation, after the 3rd step has operated, release instrument lock, perform FOUR EASY STEPS again, after FOUR EASY STEPS terminates, release RF1 port, then perform the 5th step operation.
As can be seen from Figure 3, after DUT1 discharges RF1 port, DUT2 could perform second step operation, ensure that and do not interfere with each other between each Devices to test that same RF port accesses, when DUT1 performs the 3rd step operation, other DUT can not perform the 3rd step operation, only after DUT1 discharges instrument lock, other DUT could perform the 3rd step operation, ensure that correctly calling of tester.
The present invention, the multiple stage Devices to test in parallel test system is by the prevention at radio-frequency port of power splitter access tester, and by described test macro, under the control of control appliance, tester can carry out concurrent testing to the Devices to test of more than 2 or 2.Solve existing parallel test system, can not simultaneously to the problem that the Devices to test of more than two is tested.
In addition, parallel test system comprises an IP transducer, by IP transducer connection control equipment and Devices to test, can break through the restriction of Devices to test by IP address, simplify building of test topology.
In addition, control Devices to test control thread to instrument port control thread test item queue registration test item before, latched port is locked, and ensures that Devices to test that the Devices to test that connects on same prevention at radio-frequency port is corresponding controls thread order and performs, does not interfere with each other.
Further, before control instrument port controlling thread dispatching tester performs the 3rd step operation, locking instrument lock, ensures that synchronization only has an instrument port to control thread at the described tester of use, ensure that correctly calling of tester.
Fig. 4 shows utilize the control appliance in the parallel test system shown in Fig. 1 to call tester carries out concurrent testing realization flow to all Devices to tests, and details are as follows:
In step S401, build multiple Devices to test according to the quantity of Devices to test and control thread, each Devices to test control line process control Devices to test, it is separate that each Devices to test controls thread.
In embodiments of the present invention, according to the quantity of Devices to test, the Devices to test that control appliance can build corresponding number controls thread.As there being 4 Devices to tests in Fig. 1, then can build 4 Devices to tests and control thread, each Devices to test control line process control Devices to test, it is separate that each Devices to test controls thread.
In step S402, build one, two or more instrument port control thread according to the quantity of the prevention at radio-frequency port of tester, it is separate that each instrument port controls thread.
In embodiments of the present invention, according to the quantity of the prevention at radio-frequency port of tester, the instrument port that control appliance can build corresponding number controls thread, and described instrument port controls thread and is used for connecting test instrument, and it is separate that each instrument port controls thread.If tester only has a prevention at radio-frequency port, then build an instrument port and control thread, if tester has two prevention at radio-frequency port, then build two instrument port and control thread, the rest may be inferred.As shown in Figure 1, tester has two prevention at radio-frequency port RF1 and RF2, then can build two instrument port and control thread.
In step S403, open described multiple Devices to test simultaneously and control thread, control each Devices to test and control the operation of the thread synchronization execution first step.
In embodiments of the present invention, the corresponding test item of test of a Devices to test, each test item can be divided into 5 steps and perform, as shown in Figure 2; First step operation arranges Devices to test; Second step operation controls Devices to test to start transmitting/receiving; 3rd step operation calls tester to test; FOUR EASY STEPS controls Devices to test to stop transmitting/receiving; 5th step operation shows test results.When each test item performs, the multiple Devices to tests simultaneously can opening structure control thread, control described multiple Devices to test and control the operation of the thread synchronization execution first step.
In step s 404, after each Devices to test control thread completes first step operation, control each Devices to test and control thread controls thread successively test item queue registration test item to instrument port.
In embodiments of the present invention, the Devices to test first completing first step operation controls thread first can control test item queue registration test item from thread to instrument port, and the Devices to test not completing first step operation controls thread, still can perform first step operation, after the first step has operated, then control the test item queue registration test item of thread to instrument port.If multiple Devices to test controls thread and completes first step operation simultaneously, then perform second step operation successively according to the sequencing of registration test item.
Preferably, after WiFi equipment controls the complete first step operation of thread, latched port was also needed to lock control the test item queue registration test item of thread to instrument port before, to ensure that the Devices to test thread order on same port performs, do not interfere with each other, if port lock is locked, after needing to wait for other thread release ports lock, just can carry out test item registration, after having registered, wait for that instrument port controls thread and returns test result.
In step S405, from described test item queue, obtain first test item of registration, and the operation of control instrument port controlling thread execution second step.
In embodiments of the present invention, instrument port controls thread and obtain first test item from test item queue, then performs second step operation, and multiple instrument port controls cross-thread synchronously can perform second step operation, and instrument port controls not interfere with each other between thread.
In step S406, after control instrument port controlling thread completes second step operation, control instrument port controlling thread dispatching tester performs the 3rd step operation.
In embodiments of the present invention, after instrument port controls the operation of thread execution second step, need to call tester and perform the 3rd step operation.
Preferably, before calling tester, need locking instrument lock, to ensure that synchronization only has an instrument port to control thread at use test instrument, if instrument lock is locked, needs to wait for other thread release instrument lock, the 3rd step operation could be performed.
In step S 407, after control instrument port controlling thread completes the 3rd step operation, control instrument port controlling thread execution FOUR EASY STEPS.
In embodiments of the present invention, instrument port first discharges instrument lock, then performs FOUR EASY STEPS after controlling the complete 3rd step operation of thread.
In step S408, after control instrument port controlling thread completes FOUR EASY STEPS, control instrument port controlling thread controls thread to Devices to test and returns test result.
In embodiments of the present invention, after instrument port controls the complete FOUR EASY STEPS of thread, control thread to Devices to test and return test result, then release port lock.
In step S409, control Devices to test and control the operation of thread execution the 5th step.
In embodiments of the present invention, after Devices to test controls thread acquisition test result, perform the 5th step operation, a so far test item test terminates.
In step S410, return the next test item that step S405 obtains registration from described test item queue, and all the other operations walked in the next test item of control instrument port controlling thread execution registration.
The present invention, control Devices to test control thread to instrument port control thread test item queue registration test item before, latched port is locked, and ensures that Devices to test that the Devices to test that connects on same prevention at radio-frequency port is corresponding controls thread order and performs, does not interfere with each other.
In addition, before control instrument port controlling thread dispatching tester performs the 3rd step operation, locking instrument lock, ensures that synchronization only has an instrument port to control thread at the described tester of use, ensure that correctly calling of tester.
Those of ordinary skill in the art can recognize, in conjunction with unit and the algorithm steps of each example of embodiment disclosed herein description, can realize with the combination of electronic hardware or computer software and electronic hardware.These functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can use distinct methods to realize described function to each specifically should being used for, but this realization should not thought and exceeds scope of the present invention.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the specific works process of the system of foregoing description, device and unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
In several embodiments that the application provides, should be understood that disclosed system, apparatus and method can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.
If described function using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, read-only memory (ROM, Read-OnlyMemory), random access memory (RAM, RandomAccessMemory), magnetic disc or CD etc. various can be program code stored medium.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should described be as the criterion with the protection range of claim.