Term " comprising " and their any deformations in description and claims of this specification and above-mentioned accompanying drawing, meaning
Figure is to cover non-exclusive include.Process, method or system, product or equipment for example comprising series of steps or unit do not have
The step of being defined in the step of having listed or unit, but alternatively also include not listing or unit, or alternatively also wrap
Include for the intrinsic other steps of these processes, method, product or equipment or unit.In addition, term " first ", " second " and
" 3rd " etc. is to be used to distinguish different objects, not for description particular order.
One embodiment of the present of invention provides a kind of method of testing, and in a particular application, this method of testing can specifically be answered
, can also for the test device of a variety of test functions can be realized including multiple dismountable test boxs and multiple calculation machines
Applied to the p-wire being made up of this test device or arbitrary common test device.The survey that the embodiment of the present invention is provided
Method for testing can be performed by the main control computer that test box and corresponding calculation machine are managed and controlled, the master control
Computer can be specifically industrial computer or the pc client of equipment management center.
As shown in figure 1, the method for testing that the present embodiment is provided includes:
Step S10:Set up to shake hands with target detection computer and be connected.
In a particular application, because main control computer can be realized to multiple test boxs and corresponding multiple calculation machines
Control, and these test boxs and calculation machine can need disassemble to be changed according to user, if a certain
Test box is disassembled and changed, then main control computer loses the control to the test box and corresponding calculation machine, because
This, when it needs to be controlled a certain test box and its corresponding calculation machine, to realize during a certain item test function, needs
To set up to shake hands with the calculation machine in advance and be connected, to confirm to be controlled the calculation machine and corresponding test box.
In one embodiment of the invention, step S10 includes:
If receiving handshake authentication information, the handshake authentication information is parsed, to verify the handshake authentication
Whether Information Authentication includes the first default prefix;
If the handshake authentication Information Authentication includes the described first default prefix, the hair of the handshake authentication information is confirmed
The side of sending is target detection computer and is verified information to target detection computer transmission, described to be verified packet
Include the described first default prefix.
In a particular application, in order to prevent it not being that the selected calculation machine of user is connected with main control computer foundation,
Connected every calculation machine is recognized and distinguished to main control computer for convenience simultaneously, can be in advance every tester
Calculation machine sets different handshake authentication information, in order to which main control computer verifies the identity of every calculation machine, so as to realize
Difference control to different calculation machines.
In a particular application, can be with by setting corresponding with every calculation machine prefix in checking information of shaking hands
Every calculation machine is quickly identified according to prefix, it is logical to represent to verify by the identical prefix fed back to calculation machine
Cross, it is possible to reduce write the workload of different information, while being also convenient for the implication of calculation machine Recognition feedback information, that is, include
The implication of the information of identical prefix is all related, effectively increases identification and the treatment effeciency of data.
Step S20:Obtain the test case number (CN) of the target detection computer transmission and tested with described corresponding to case number (CN)
Test box sets up communication connection.
In a particular application, each test box can be numbered according to the placement location of each test box, can be by
It is used to be set to port corresponding with different placement locations from the port that test box is connected on main control computer, with each test box
Corresponding calculation machine only needs to corresponding test case number (CN) being sent to main control computer, and main control computer just can be by it
The test box of corresponding port and relevant position sets up communication connection, to realize the control to corresponding test box.
In a particular application, because calculation machine has the function of preserving recall info, when next time positioned at same position
When the test box put needs to be connected with main control computer, if relevant work personnel do not have active manual change connectivity port, write from memory
Recognize and current test box is connected by last port.
As shown in the table one, the port of the exemplary test box numbering for showing six test boxs and main control computer it
Between corresponding relation.
Table one
Test case number (CN) |
Port |
1# |
8901 |
2# |
8902 |
3# |
8903 |
4# |
8904 |
5# |
8905 |
6# |
8906 |
Step S30:The target detection computer starting is controlled for the testing process of target product and to the target
Product is verified.
In a particular application, because main control computer can realize the different test functions to a variety of different products, because
This by target detection computer and corresponding test box to the target product, it is necessary in a selected target product, be surveyed
Examination.
In a particular application, in order to confirm to be currently needed for whether tested product is that target product can be by target
The mode that product is verified confirms, specifically, for having the electronic product of coding and packaging product, directly can pass through phase
Answer the coding of product to verify, confirmation command can be manually entered for the product without coding, can also be obtained by shooting
Product image simultaneously carries out the mode of discriminance analysis to verify.
Step S40:If the target product is verified, the test box is controlled to test the target product
And obtain the work state information of the test box feedback.
In a particular application, before control test box is tested target product also including the corresponding plant equipment of control or
By the step being manually placed on target product in test box, these steps are not defined in the present embodiment;Test box
Work state information specifically refers to the relevant information of running status with test box in itself.
Step S50:If receive that the target detection computer sends according to the test result of the test box with institute
The corresponding request of test result is stated, then feedback control is carried out to the test box according to the request corresponding with test result.
In a particular application, after test box is tested product, test result is sent into target detection computer, mesh
Mark calculation machine further according to test result send ask accordingly to main control computer, for example, when test result for product not
When qualified, then target detection computer, which can be sent, resurveys request, so that main control computer control test box is weighed to product
New test.Taken appropriate measures progress by carrying out the problem that feedback control can be according to after test to test box
Remedy, to improve measuring accuracy, and then improve product quality.
The present embodiment is connected by setting up to shake hands with target detection computer, obtains what the target detection computer was sent
Test case number (CN) and set up with the test box corresponding to test case number (CN) and communicated to connect, while being verified to target product, Ke Yigen
According to needing to select specific calculation machine and test box to test specific product, the survey to a variety of different products is realized
Examination, vdiverse in function, flexibility is good and testing efficiency is high.
As shown in Fig. 2 in one embodiment of the invention, the step S30 in the embodiment corresponding to Fig. 1 is specifically wrapped
Include:
Step S31:The coding of test initiation command and the target product is sent to the target detection computer, to control
The target detection computer starting is made for the testing process of the target product and the coding is verified, it is described to survey
Experimental starting is instructed and the coding merges and sent and the test detection instruction is that prefix, the coding information are suffix.
In a particular application, the coding of target product, the coding tool of target product can be read by industrial code reader
Body refers to International Mobile Equipment Identity the code IMEI, (International Mobile of the electronic products such as mobile phone, tablet personal computer
Equipment Identity), or bar code, the Quick Response Code etc. of wrapped product be used for the coding for identifying different product.
It may determine that whether the product is the product that is currently needed for being tested by verifying the coding of product, to avoid selection mistake
Product is tested.
In a particular application, all instructions mutually sent between main control computer and calculation machine or control signal are equal
The coding for being set in advance as matching with the communication protocol type of communication interface can be needed according to user, for example, it is assumed that communication
Interface type is RJ45 Ethernet interfaces, and protocol type is TCP/IP, then instruction is specifically as follows ascii character coding, instructs lattice
Formula is specifically as follows the form of order numbering, for example, numbering " 00 " presets prefix, numbering " 01 " for the first of handshake authentication information
For test initiation command.
Step S32:If receiving the first feedback information of the target detection computer feedback, judge that the target is surveyed
Examination computer is successfully received the test initiation command and the coding, and first feedback information includes the test starting
Instruction.
In a particular application, the command content included by the first feedback information can be identical with test initiation command, also may be used
With difference, make the two it is identical can improve the recognition efficiency of instruction, reduce the workload that user carries out instructing in advance setting.
Step S33:If receiving the first the result of the target detection computer feedback, the target production is judged
Product are verified and send the second feedback information to the target detection computer, and first the result, which includes second, to be preset
Prefix and the coding, second feedback information include the described second default prefix and are successfully received described for sign
One the result.
In a particular application, the first the result can specifically include the coding that " 02 " adds target product, i.e., " 02;Mesh
Mark the coding of product ", the second feedback information can specifically include " 02 ", wherein, " 02 " is the second default prefix.By for tool
The information of relevant property sets identical prefix, can facilitate and information is identified and judged, while it is pre- advanced to reduce user
The workload that row instruction is set.
Step S34:If receiving the second the result of the target detection computer feedback, the target production is judged
Product checking does not send the 3rd feedback information by and to the target detection computer, and it is pre- that second the result includes the 3rd
If prefix and the coding, the 3rd feedback information includes the described 3rd default prefix and is successfully received for sign described
Second the result.
In a particular application, the second the result can specifically include the coding that " 03 " adds target product, i.e., " 03;Mesh
Mark the coding of product ", the 3rd feedback information can specifically include " 03 ", wherein, " 03 " is the 3rd default prefix.
In one embodiment of the invention, methods described is further comprising the steps of:
Calculation machine status inquiry instruction is sent to the target detection computer, is calculated with obtaining the target detection
The current operating conditions information of machine;
If receiving the first state information of the target detection computer feedback, the target detection computer is judged
Currently be holding state, the first state information include the calculation machine status inquiry instruction and first state number;
If receiving the second status information of the target detection computer feedback, the target detection computer is judged
Currently be busy condition, second status information include the calculation machine status inquiry instruction and state No. the second.
In a particular application, status inquiry instruction can specifically include " 04 ", and first state information can specifically include
" 04 " adds first state number, i.e., " 04;First state number ", first state number can specifically include " 01 ", then first state is believed
Breath is specifically as follows " 04;01”;State No. second can specifically include " 02 ", then the second status information is specifically as follows " 04;
02”。
By setting above-mentioned each instruction according to Arabic numerals order, be conducive to that instruction is identified and distinguished, simultaneously
Reduce workload when user sets instruction.
As shown in following table two, exemplary shows each instruction mutually transmitted between main control computer and calculation machine
Form and implication.
As shown in figure 3, in one embodiment of the invention, the step S40 in the embodiment corresponding to Fig. 1 is specifically wrapped
Include:
Step S41:Instruction of unpacking is sent to the test box, is surveyed with controlling the test box to unpack and stopping in its casing
Try the holding action of fixture.
In a particular application, product test generally all using corresponding tester, in order to prevent different surveys
The test signal that a little testers in examination case are sent interferes with each other or radiation injury is caused to human body, generally will can all survey
Test instrument is placed in the test box of concrete signal shielding action, therefore, and test box is with chamber door, it is necessary to unpack or close
Case is taken in and out product, and test fixture be with tester one, product is clamped in order to test
Mechanically or electrically test probe or corresponding apparatus.Unpacking instruction can specifically include " OPEN ", by the way that instruction is set to
The character approximate with its function, can be in order to identify and distinguish between, while reducing workload when user carries out instruction setting in advance.
Step S42:If receiving the first unpacking information of the test box feedback, judge the target product described
In test box and the test box has completed to unpack and stop the operation of the holding action of test fixture in its casing, described first
Information of unpacking includes the unpacking instruction and the first default suffix.
In a particular application, the first default suffix can specifically include " A ", then the first unpacking information can specifically include
" OPENA ", can be in order to identifying and distinguishing between by representing result of unpacking plus simple suffix directly after instruction of unpacking
Instruction, while reducing workload when user carries out instruction setting in advance.
Step S43:If receiving the second unpacking information of the test box feedback, judge the target product not in institute
State in test box and the test box has completed to unpack and stop the operation of the holding action of test fixture in its casing, described the
Two unpacking information include the unpacking instruction and the second default suffix.
In a particular application, the second default suffix can include " B ", then the second unpacking information can specifically include
“OPENB”。
Step S44:Sent to the test box and close case instruction, surveyed with controlling the test box to close case and start in its casing
Try the holding action of fixture.
In a particular application, can specifically " CLOSE " be included by closing case instruction.
Step S45:If receiving the pass case information of the test box feedback, judge that the test box has completed to close case simultaneously
Start the operation of the holding action of test fixture in its casing, the pass case information includes the pass case instruction and the 3rd predetermined word
Tail.
In a particular application, the 3rd suffix can specifically include " D ", then can specifically " CLOSED " be included by closing case information,
" CLOSED " at the same also just be " CLOSE " completion when, can represent to be turned off, by set this English character implication with
The corresponding English character of Chinese character implication is advance except being easy to identify and distinguish between instruction, reduction user as corresponding instruction
Outside the effect for carrying out workload when instruction is set, Consumer's Experience can also be effectively improved.
Step S46:If receiving the fault message of the test box feedback, judge that the test box breaks down and controlled
The alarm of the test box sends alarm.
In a particular application, alarm is specifically as follows voice guard, visual alarm or audible-visual annunciator, detects
During different failure, alarm can be controlled to send different alarms.Fault message can specifically include " ERROR ", right
" ERROR is specifically could be arranged in different fault messages;01”、“ERROR;Or " ERROR 02 " ...;0n " etc..
Step S47:Test box status inquiry instruction is sent to the test box, to obtain the working condition of the test box
Information, the work state information includes the described first unpacking information, the described second unpacking information, pass case information or described
Fault message.
In a particular application, test box status inquiry instruction can specifically include " STATUS ", and test box is receiving this
After instruction, you can feed back its current operating state information to main control computer, can specifically include above-mentioned " OPENA ",
" OPENB ", " CLOSED ", " ERROR " etc., can also include the information that goes offline " UNDONE " for representing that test box has currently gone offline,
Represent not to be successfully established the status information of communication connection with main control computer.
As shown in following table three, the exemplary lattice for showing each instruction mutually transmitted between main control computer and test box
Formula and implication.
As shown in figure 4, in one embodiment of the invention, the step S50 in the embodiment corresponding to Fig. 1 is specifically wrapped
Include:
Step S51:If receive the target detection computer transmission resurveys request, calculated to the target detection
Machine, which sends the 4th feedback information and sent to the test box, resurveys instruction, described to resurvey instruction for controlling the test box complete
Operated into the plug again once to test fixture in its casing, the 4th feedback information, which includes described resurvey, to be asked and be used for
Sign resurveys request described in being successfully received.
In a particular application, can specifically " 05 " be included by resurveying request, and the 4th feedback information can specifically include with resurveying
Identical instruction " 05 " is asked, as shown in upper table two;Can specifically " RETEST " be included by resurveying instruction, as shown in upper table three.
Step S52:If receive the test box feedback resurveys information, judge that the test box has been completed once right
The operation of plug again of test fixture in its casing, the information of resurveying resurveys instruction and the 4th default suffix including described.
In a particular application, can specifically " RETESTED " be included by resurveying information, as shown in upper table three.
Embodiment corresponding to Fig. 2~Fig. 4 of the present invention, by the way that related instruction or information are set into similar simple word
Symbol, is easy to that different instructions or information are identified and distinguished, while reducing work when user sets instruction or information
Amount, and these instructions or Meaning of Information is simple, very clear unusual hommization, are easy to main control computer to calculation machine
It is controlled and manages with test box, testing efficiency can be effectively improved.
As shown in figure 5, one embodiment of the present of invention provides a kind of test system 100, for performing the reality corresponding to Fig. 1
The method and step in example is applied, it includes:
Handshake module 10, is connected for setting up to shake hands with target detection computer;
Communication connection module 20, for obtain test case number (CN) that the target detection computer sends and with the test box
Test box corresponding to number sets up communication connection;
Calculation machine control module 30, for controlling the target detection computer starting to be directed to the test of target product
Flow is simultaneously verified to the target product;
Test box control module 40, if being verified for the target product, controls the test box to the mesh
Mark product is tested and obtains the work state information of the test box feedback;
Feedback control module 50, if please for receiving the corresponding with test result of target detection computer transmission
Ask, then feedback control is carried out to the test box according to the request corresponding with test result.
In one embodiment of the invention, test system 100 also includes handshake authentication module, is used for:
If receiving handshake authentication information, the handshake authentication information is parsed, to verify the handshake authentication
Whether Information Authentication includes the first default prefix;
If the handshake authentication Information Authentication includes the described first default prefix, the hair of the handshake authentication information is confirmed
The side of sending is target detection computer and is verified information to target detection computer transmission, described to be verified packet
Include the described first default prefix.
The present embodiment is connected by setting up to shake hands with target detection computer, obtains what the target detection computer was sent
Test case number (CN) and set up with the test box corresponding to test case number (CN) and communicated to connect, while being verified to target product, Ke Yigen
According to needing to select specific calculation machine and test box to test specific product, the survey to a variety of different products is realized
Examination, vdiverse in function, flexibility is good and testing efficiency is high.
As shown in fig. 6, in one embodiment of the invention, the calculation machine control in the test system 100 in Fig. 5
Module 30 includes the structure for being used to perform the method and step in the embodiment corresponding to Fig. 2, and it includes:
Test starting authentication unit 31, for sending test initiation command and the target to the target detection computer
The coding of product, to control the target detection computer starting for the testing process of the target product and to the coding
Verified, the test initiation command and coding merging transmission and the test detection are instructed as prefix, the coding
Information is suffix;
First checking judging unit 32, if the first feedback information for receiving the target detection computer feedback,
Then judge that the target detection computer is successfully received the test initiation command and the coding, first feedback information
Including the test initiation command;
Second checking judging unit 33, if the first the result for receiving the target detection computer feedback,
Then judge that the target product is verified and sends the second feedback information, first checking to the target detection computer
As a result the second default prefix and the coding are included, second feedback information includes the described second default prefix and for characterizing
It is successfully received first the result;
3rd checking judging unit 34, if the second the result for receiving the target detection computer feedback,
Then judge that the target product checking does not send the 3rd feedback information by and to the target detection computer, described second tests
Demonstrate,proving result includes the 3rd default prefix and the coding, and the 3rd feedback information includes the described 3rd default prefix and for table
Levy and be successfully received second the result.
In one embodiment of the invention, calculation machine control module 30 also includes:
Calculation machine status inquiry unit, for sending calculation machine status inquiry to the target detection computer
Instruction, to obtain the current operating conditions information of the target detection computer;
First calculation machine condition adjudgement unit, if the first shape for receiving the target detection computer feedback
State information, then judge the current as holding state of the target detection computer, the first state information includes the test
Computer mode query statement and first state number;
Second calculation machine condition adjudgement unit, if the second shape for receiving the target detection computer feedback
State information, then judge the current as busy condition of the target detection computer, second status information includes the test
Computer mode query statement and state No. the second.
As shown in fig. 7, in one embodiment of the invention, the test box control module in test system 100 in Fig. 5
40 include the structure for performing the method and step in the embodiment corresponding to Fig. 3, and it includes:
Unpacking control unit 41, for sending instruction of unpacking to the test box, to control the test box to unpack and stop
Only in its casing test fixture holding action;
First unpacking judging unit 42, if the first unpacking information for receiving the test box feedback, judges institute
Target product is stated in the test box and the test box has completed clamping that is unpacking and stopping test fixture in its casing and moved
The operation of work, the described first unpacking information includes the unpacking instruction and the first default suffix;
Second unpacking judging unit 43, if the second unpacking information for receiving the test box feedback, judges institute
Target product is stated not in the test box and the test box has completed to unpack and stop the clamping of test fixture in its casing
The operation of action, the described second unpacking information includes the unpacking instruction and the second default suffix;
Case control unit 44 is closed, case instruction is closed for being sent to the test box, to control the test box to close case and open
Move the holding action of test fixture in its casing;
Case judging unit 45 is closed, if the pass case information for receiving the test box feedback, judges the test box
Complete to close case and started the operation of the holding action of test fixture in its casing, the pass case information includes the pass case instruction
With the 3rd default suffix;
Test box breakdown judge unit 46, if the fault message for receiving the test box feedback, judges the survey
Examination case breaks down and controls the alarm of the test box to send alarm;
Test box status inquiry unit 47, for sending test box status inquiry instruction to the test box, to obtain
State the work state information of test box, the work state information include described first unpack information, described second unpack information,
The pass case information or the fault message.
As shown in figure 8, in one embodiment of the invention, the feedback control module 50 in test system 100 in Fig. 5
Including the structure for performing the method and step in the embodiment corresponding to Fig. 4, it includes:
Control unit 51 is resurveyed, if resurveying request for receive that the target detection computer sends, to described
Target detection computer, which sends the 4th feedback information and sent to the test box, resurveys instruction, described to resurvey instruction for controlling
The plug again that the test box completes once to test fixture in its casing is operated, and the 4th feedback information includes described heavy
Survey request and for sign be successfully received described in resurvey request;
Judging unit 52 is resurveyed, if resurveying information for receive test box feedback, the test box is judged
Complete the plug again once to test fixture in its casing to operate, the information of resurveying resurveys instruction and the 4th including described
Default suffix.
Embodiment corresponding to Fig. 6~Fig. 8 of the present invention, by the way that related instruction or information are set into similar simple word
Symbol, is easy to that different instructions or information are identified and distinguished, while reducing work when user sets instruction or information
Amount, and these instructions or Meaning of Information is simple, very clear unusual hommization, are easy to main control computer to calculation machine
It is controlled and manages with test box, testing efficiency can be effectively improved.
In one embodiment of the invention, the method in all embodiments of the invention is applied to a kind of test device,
The test device includes at least one dismountable test box and at least one calculation machine, and each test box is corresponded to
Test instrumentation is provided with one calculation machine, each test box, test instrumentation is tested that there should be corresponding test fixture
All test boxs and calculation machine of device are connected with main control computer.
In a particular application, main control computer can be specifically industrial computer.
Step in all embodiments of the invention specifically can also be in the storage medium inside write-in main control computer
Software program, module or unit can be the program module write in the storage medium inside industrial computer, industrial computer
In processor these program modules can be called to perform corresponding software program.
Module or unit in all embodiments of the invention, can pass through universal integrated circuit, such as CPU (Central
Processing Unit, central processing unit), or pass through ASIC (Application Specific Integrated
Circuit, application specific integrated circuit) realize.
Step in present invention method can be sequentially adjusted, merged and deleted according to actual needs.
Module or unit in system of the embodiment of the present invention can be combined, divided and deleted according to actual needs.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with
The hardware of correlation is instructed to complete by computer program, described program can be stored in a computer read/write memory medium
In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
Any modifications, equivalent substitutions and improvements made within refreshing and principle etc., should be included in the scope of the protection.