CN107065660A - A kind of method of testing and system - Google Patents

A kind of method of testing and system Download PDF

Info

Publication number
CN107065660A
CN107065660A CN201710185906.9A CN201710185906A CN107065660A CN 107065660 A CN107065660 A CN 107065660A CN 201710185906 A CN201710185906 A CN 201710185906A CN 107065660 A CN107065660 A CN 107065660A
Authority
CN
China
Prior art keywords
test
information
test box
target detection
feedback
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.)
Granted
Application number
CN201710185906.9A
Other languages
Chinese (zh)
Other versions
CN107065660B (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.)
Suzhou xinxinteng Technology Co.,Ltd.
Original Assignee
Shenzhen Chinese Mugwort News Beat Science And Technology Ltd
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 Shenzhen Chinese Mugwort News Beat Science And Technology Ltd filed Critical Shenzhen Chinese Mugwort News Beat Science And Technology Ltd
Priority to CN201710185906.9A priority Critical patent/CN107065660B/en
Publication of CN107065660A publication Critical patent/CN107065660A/en
Application granted granted Critical
Publication of CN107065660B publication Critical patent/CN107065660B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24036Test signal generated by microprocessor, for all I-O tests

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Investigating Strength Of Materials By Application Of Mechanical Stress (AREA)
  • Testing Electric Properties And Detecting Electric Faults (AREA)

Abstract

The present invention provides a kind of method of testing and system, wherein, method of testing includes:Set up to shake hands with target detection computer and be connected;Obtain the test case number (CN) of the target detection computer transmission and set up with the test box corresponding to the test case number (CN) and communicated to connect;The target detection computer starting is controlled for the testing process of target product and the target product is verified;If the target product is verified, controls the test box to test the target product and obtain the work state information of the test box feedback;If receiving the request corresponding with the test result that the target detection computer is sent according to the test result of the test box, feedback control is carried out to the test box according to the request corresponding with test result.The present invention can need to select specific calculation machine and test box to test specific product according to user, realize the test to a variety of different products, vdiverse in function, flexibility is good and testing efficiency is high.

Description

A kind of method of testing and system
Technical field
The embodiment of the present invention belongs to technical field of measurement and test, more particularly to a kind of method of testing and system.
Background technology
With the continuous development of scientific technology, various products emerge in an endless stream, and are that the daily production and life of people is brought Great convenience.During the manufacturing of product, in order to ensure that the performance of product meets requirement of dispatching from the factory, it is necessary to be carried out to product Various performance tests, particularly before product export, it usually needs using special product tester or p-wire to production The property indices of product carry out integrated test, and the non-defective unit of test passes could smoothly dispatch from the factory.
However, existing product test mode generally can only be all tested a kind of product, testing sequence can not be changed, Need to be separately provided test device or p-wire for each product, function is single, very flexible and testing efficiency is low.
The content of the invention
The embodiment of the present invention provides a kind of method of testing and system, it is intended to solve existing product test mode generally all only A kind of product can be tested, testing sequence can not be changed, it is necessary to be separately provided test device or test for each product Line, function is single, very flexible and testing efficiency is low.
The embodiment of the present invention provides a kind of on the one hand method of testing, and the method for testing includes:
Set up to shake hands with target detection computer and be connected;
Obtain the test case number (CN) of the target detection computer transmission and built with the test box corresponding to the test case number (CN) Vertical communication connection;
Control the target detection computer starting for the testing process of target product and the target product is carried out Checking;
If the target product is verified, controls the test box to test the target product and obtain institute State the work state information of test box feedback;
If receive that the target detection computer sends according to the test result of the test box ties with the test Really corresponding request, then carry out feedback control according to the request corresponding with test result to the test box.
On the other hand the embodiment of the present invention also provides a kind of test system, and it includes:
Handshake module, is connected for setting up to shake hands with target detection computer;
Communication connection module, for obtain test case number (CN) that the target detection computer sends and with the test case number (CN) Corresponding test box sets up communication connection;
Calculation machine control module, for controlling the target detection computer starting to be directed to the test stream of target product Journey is simultaneously verified to the target product;
Test box control module, if being verified for the target product, controls the test box to the target Product is tested and obtains the work state information of the test box feedback;
Feedback control module, if being sent out for receiving the target detection computer according to the test result of the test box The request corresponding with the test result sent, then carried out anti-according to the request corresponding with test result to the test box Feedback control.
The embodiment of the present invention is connected by setting up to shake hands with target detection computer, obtains the target detection computer hair Testing case number (CN) and being set up with the test box corresponding to test case number (CN) for sending is communicated to connect, while target product is verified, can To be needed to select specific calculation machine and test box to test specific product according to user, realize to a variety of differences The test of product, vdiverse in function, flexibility is good and testing efficiency is high.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, makes required in being described below to embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, for ability For the those of ordinary skill of domain, on the premise of not paying creative work, it can also be obtained according to these accompanying drawings other attached Figure.
Fig. 1 is the FB(flow block) for the method for testing that one embodiment of the present of invention is provided;
Fig. 2 is the FB(flow block) for the step S30 that one embodiment of the present of invention is provided;
Fig. 3 is the FB(flow block) for the step S40 that one embodiment of the present of invention is provided;
Fig. 4 is the FB(flow block) for the step S50 that one embodiment of the present of invention is provided;
Fig. 5 is the structured flowchart for the test system that one embodiment of the present of invention is provided;
Fig. 6 is the structured flowchart for the calculation machine control module that one embodiment of the present of invention is provided;
Fig. 7 is the structured flowchart for the test box control module that one embodiment of the present of invention is provided;
Fig. 8 is the structured flowchart for the feedback control module that one embodiment of the present of invention is provided.
Embodiment
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention Accompanying drawing, the technical scheme in the embodiment of the present invention is explicitly described, it is clear that described embodiment is the present invention one The embodiment divided, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not doing Go out the every other embodiment obtained under the premise of creative work, should all belong to the scope of protection of the invention.
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.

Claims (10)

1. a kind of method of testing, it is characterised in that the method for testing includes:
Set up to shake hands with target detection computer and be connected;
Obtain the test case number (CN) of the target detection computer transmission and set up logical with the test box corresponding to the test case number (CN) Letter connection;
The target detection computer starting is controlled for the testing process of target product and the target product is verified;
If the target product is verified, controls the test box to test the target product and obtain the survey Try the work state information of case feedback;
If to receive the target detection computer sending with the test result pair according to the test result of the test box The request answered, then carry out feedback control according to the request corresponding with test result to the test box.
2. method of testing as claimed in claim 1, it is characterised in that described shaken hands with the foundation of target detection computer is connected it Before, including:
If receiving handshake authentication information, the handshake authentication information is parsed, to verify the handshake authentication information Verify whether to include the first default prefix;
If the handshake authentication Information Authentication includes the described first default prefix, the sender of the handshake authentication information is confirmed Send for target detection computer and to the target detection computer and be verified information, the information that is verified includes institute State the first default prefix.
3. method of testing as claimed in claim 1, it is characterised in that the control target detection computer starting is directed to The testing process of target product simultaneously verifies to the target product, including:
The coding of test initiation command and the target product is sent to the target detection computer, to control the target to survey Examination computer starting for the target product testing process and to it is described coding verify, the test initiation command and The coding, which merges, to be sent and the test detection instruction is that prefix, the coding information are suffix;
If receiving the first feedback information of the target detection computer feedback, the target detection computer success is judged The test initiation command and the coding are received, first feedback information includes the test initiation command;
If receiving the first the result of the target detection computer feedback, judge that the target product is verified simultaneously The second feedback information is sent to the target detection computer, first the result includes the second default prefix and the volume Code, second feedback information includes the described second default prefix and is successfully received first the result for sign;
If receiving the second the result of the target detection computer feedback, judge that the target product checking does not pass through And the 3rd feedback information is sent to the target detection computer, second the result includes the 3rd default prefix and described Coding, the 3rd feedback information includes the described 3rd default prefix and is successfully received the second checking knot for sign Really;
The method of testing also includes:
Calculation machine status inquiry instruction is sent to the target detection computer, to obtain the target detection computer Current operating conditions information;
If receiving the first state information of the target detection computer feedback, working as the target detection computer is judged Preceding is holding state, and the first state information includes the calculation machine status inquiry instruction and first state number;
If receiving the second status information of the target detection computer feedback, working as the target detection computer is judged Preceding is busy condition, and second status information includes the calculation machine status inquiry instruction and state No. the second.
4. method of testing as claimed in claim 1, it is characterised in that the control test box enters to the target product Row is tested and obtains the work state information of the test box feedback, including:
Instruction of unpacking is sent to the test box, to control the test box to unpack and stop the clamping of test fixture in its casing Action;
Unpacked information if receiving the first of test box feedback, judge the target product in the test box and institute State test box to have completed to unpack and stop the operation of the holding action of test fixture in its casing, the described first unpacking information includes The unpacking instruction and the first default suffix;
Unpacked information if receiving the second of test box feedback, judge the target product not in the test box and The test box has completed to unpack and stop the operation of the holding action of test fixture in its casing, the described second unpacking packet Include the unpacking instruction and the second default suffix;
Sent to the test box and close case instruction, to control the test box to close case and start the clamping of test fixture in its casing Action;
If receiving the pass case information of the test box feedback, judge that the test box has been completed to close case and started in its casing The operation of the holding action of test fixture, the pass case information includes the pass case instruction and the 3rd default suffix;
If receiving the fault message of test box feedback, judge that the test box breaks down and controls the test box Alarm sends alarm;
Test box status inquiry instruction is sent to the test box, to obtain the work state information of the test box, the work Making status information includes the described first unpacking information, the described second unpacking information, the pass case information or fault message.
5. method of testing as claimed in claim 1, it is characterised in that if it is described receive the target detection computer according to The request corresponding with the test result that the test result of the test box is sent, then according to described corresponding with test result Request carries out feedback control to the test box, including:
If receive the target detection computer transmission resurveys request, it is anti-to send the 4th to the target detection computer Feedforward information simultaneously resurveys instruction to test box transmission, described to resurvey instruction for controlling the test box to complete once to its case The operation of plug again of test fixture in body, the 4th feedback information, which includes described resurvey, to be asked and is properly received for sign Request is resurveyed to described;
If receive the test box feedback resurveys information, judge that the test box has been completed once to being tested in its casing The operation of plug again of fixture, the information of resurveying resurveys instruction and the 4th default suffix including described.
6. a kind of test system, it is characterised in that the test system includes:
Handshake module, is connected for setting up to shake hands with target detection computer;
Communication connection module, for obtaining test case number (CN) that the target detection computer sends and right with the test case number (CN) institute The test box answered sets up communication connection;
Calculation machine control module, for controlling the target detection computer starting to be directed to the testing process of target product simultaneously The target product is verified;
Test box control module, if being verified for the target product, controls the test box to the target product Tested and obtained the work state information of the test box feedback;
Feedback control module, if sent for receiving the target detection computer according to the test result of the test box Request corresponding with the test result, then carry out feedback control according to the request corresponding with test result to the test box System.
7. test system as claimed in claim 6, it is characterised in that the test system also includes handshake authentication module, is used In:
If receiving handshake authentication information, the handshake authentication information is parsed, to verify the handshake authentication information Verify whether to include the first default prefix;
If the handshake authentication Information Authentication includes the described first default prefix, the sender of the handshake authentication information is confirmed Send for target detection computer and to the target detection computer and be verified information, the information that is verified includes institute State the first default prefix.
8. test system as claimed in claim 6, it is characterised in that the calculation machine control module includes:
Test starting authentication unit, for sending test initiation command and the target product to the target detection computer Coding, to control the target detection computer starting to be tested for the testing process of the target product and to the coding Card, the test initiation command and the coding, which merge, to be sent and the test detection instruction is that prefix, the coding information are Suffix;
First checking judging unit, if the first feedback information for receiving the target detection computer feedback, judges The target detection computer is successfully received the test initiation command and the coding, and first feedback information includes institute State test initiation command;
Second checking judging unit, if the first the result for receiving the target detection computer feedback, judges The target product is verified and sends the second feedback information, the first the result bag to the target detection computer The second default prefix and the coding are included, second feedback information includes the described second default prefix and successfully connect for characterizing Receive first the result;
3rd checking judging unit, if the second the result for receiving the target detection computer feedback, judges The target product checking does not send the 3rd feedback information, second the result by and to the target detection computer Including the 3rd default prefix and the coding, the 3rd feedback information includes the described 3rd default prefix and for characterizing success Receive second the result;
Calculation machine status inquiry unit, refers to for sending calculation machine status inquiry to the target detection computer Order, to obtain the current operating conditions information of the target detection computer;
First calculation machine condition adjudgement unit, if the first state letter for receiving the target detection computer feedback Breath, then judge the current as holding state of the target detection computer, the first state information includes the measuring and calculation Machine status inquiry instruction and first state number;
Second calculation machine condition adjudgement unit, if the second state letter for receiving the target detection computer feedback Breath, then judge the current as busy condition of the target detection computer, second status information includes the measuring and calculation Machine status inquiry instruction and state No. the second.
9. test system as claimed in claim 1, it is characterised in that the test box control module includes:
Unpacking control unit, for sending instruction of unpacking to the test box, to control the test box to unpack and stop its case The holding action of test fixture in body;
First unpacking judging unit, if the first unpacking information for receiving the test box feedback, judges the target Product is in the test box and the test box has completed to unpack and stop the behaviour of the holding action of test fixture in its casing Make, the described first unpacking information includes the unpacking instruction and the first default suffix;
Second unpacking judging unit, if the second unpacking information for receiving the test box feedback, judges the target Product is not in the test box and the test box has completed to unpack and stop the holding action of test fixture in its casing Operation, the described second unpacking information includes the unpacking instruction and the second default suffix;
Case control unit is closed, case instruction is closed for being sent to the test box, to control the test box to close case and start its case The holding action of test fixture in body;
Case judging unit is closed, if the pass case information for receiving the test box feedback, judges that the test box has been completed Close case and 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 Default suffix;
Test box breakdown judge unit, if the fault message for receiving the test box feedback, judges the test box hair Raw failure simultaneously controls the alarm of the test box to send alarm;
Test box status inquiry unit, for sending test box status inquiry instruction to the test box, to obtain the test The work state information of case, the work state information includes the described first unpacking information, the described second unpacking information, pass Case information or the fault message.
10. test system as claimed in claim 6, it is characterised in that the feedback control module includes:
Control unit is resurveyed, if request is resurveyed for receive that the target detection computer sends, to target survey Examination computer, which sends the 4th feedback information and sent to the test box, resurveys instruction, described to resurvey instruction for controlling the survey Try again plug of the case completion once to test fixture in its casing to operate, the 4th feedback information resurveys request including described And be successfully received for sign and described resurvey request;
Judging unit is resurveyed, if resurveying information for receive test box feedback, judges that the test box has been completed Once the plug again to test fixture in its casing is operated, and the information of resurveying resurveys instruction and the 4th predetermined word including described Tail.
CN201710185906.9A 2017-03-24 2017-03-24 Test method and system Active CN107065660B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710185906.9A CN107065660B (en) 2017-03-24 2017-03-24 Test method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710185906.9A CN107065660B (en) 2017-03-24 2017-03-24 Test method and system

Publications (2)

Publication Number Publication Date
CN107065660A true CN107065660A (en) 2017-08-18
CN107065660B CN107065660B (en) 2019-12-31

Family

ID=59620560

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710185906.9A Active CN107065660B (en) 2017-03-24 2017-03-24 Test method and system

Country Status (1)

Country Link
CN (1) CN107065660B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107943005A (en) * 2017-12-06 2018-04-20 广东中科瑞泰智能科技有限公司 Detection method and detection device, unmanned plane
CN114740332A (en) * 2022-04-13 2022-07-12 深圳友讯达科技股份有限公司 Automatic single board detection platform and method based on RT-thread

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003043086A (en) * 2001-07-30 2003-02-13 Seiko Epson Corp Device and system for inspecting electronic device
CN201637771U (en) * 2009-11-06 2010-11-17 中国北车股份有限公司大连电力牵引研发中心 Test box and test system
CN203278879U (en) * 2012-12-20 2013-11-06 广州视源电子科技股份有限公司 Multistage cascading transmission system of LVDS signal and LVDS signal selection switch unit
CN105572563A (en) * 2015-12-16 2016-05-11 深圳訾岽科技有限公司 Functional circuit test (FCT) method and system
CN105738721A (en) * 2014-12-12 2016-07-06 富泰华工业(深圳)有限公司 Test box

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003043086A (en) * 2001-07-30 2003-02-13 Seiko Epson Corp Device and system for inspecting electronic device
CN201637771U (en) * 2009-11-06 2010-11-17 中国北车股份有限公司大连电力牵引研发中心 Test box and test system
CN203278879U (en) * 2012-12-20 2013-11-06 广州视源电子科技股份有限公司 Multistage cascading transmission system of LVDS signal and LVDS signal selection switch unit
CN105738721A (en) * 2014-12-12 2016-07-06 富泰华工业(深圳)有限公司 Test box
CN105572563A (en) * 2015-12-16 2016-05-11 深圳訾岽科技有限公司 Functional circuit test (FCT) method and system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107943005A (en) * 2017-12-06 2018-04-20 广东中科瑞泰智能科技有限公司 Detection method and detection device, unmanned plane
CN114740332A (en) * 2022-04-13 2022-07-12 深圳友讯达科技股份有限公司 Automatic single board detection platform and method based on RT-thread
CN114740332B (en) * 2022-04-13 2024-03-15 深圳友讯达科技股份有限公司 Automatic single board detection platform based on RT-thread

Also Published As

Publication number Publication date
CN107065660B (en) 2019-12-31

Similar Documents

Publication Publication Date Title
CN105787364B (en) Automatic testing method, device and system for tasks
CN107302527A (en) A kind of unit exception detection method and device
CN104635722B (en) A kind of abnormal power-down simulating test device
CN112054822B (en) Bluetooth test method and device, electronic equipment and storage medium
CN108446197A (en) A kind of control protection board automatic checkout system and method
CN107065660A (en) A kind of method of testing and system
CN103376411A (en) Apparatus for alarming inverter status and apparatus for analyzing motor status in mobile terminal
CN108111367A (en) Performance test methods and device
CN106547668A (en) Computer system fault alarming method, apparatus and system
JP2010185862A (en) Electric channel self-inspection semiconductor testing system
CN108225659A (en) Tyre pressure sensor information acquisition method, device, storage medium and electronic equipment
CN107608291A (en) A kind of intelligent substation application function linkage rule verification method and system
US20060193444A1 (en) Line testing apparatus and method
CN105489076A (en) Teaching and training malfunction setting and evaluating system and implementing method thereof
CN108123935A (en) Circuit board detection method, device, storage medium and terminal
CN206788633U (en) A kind of test system
CN104808039B (en) The automatic correction system and method for a kind of electronic equipment
CN109103985A (en) The method and apparatus for controlling the execution of operation order
CN107229565A (en) Method of testing and device
CN105320120B (en) Simulate the apparatus and method that compressor of air conditioner starts failure
CN113485157B (en) Wafer simulation test method, device and wafer test method
CN105893203A (en) CEC verification method and device
CN110149641B (en) Analog wireless connection test method
CN109474878A (en) A kind of Carplay Auto-Test System and method
CN115616372A (en) Fault injection test method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP02 Change in the address of a patent holder

Address after: 518000 Room 401, building a, Hongwei Industrial Park, No. 6, liuxiansan Road, Xingdong community, Xin'an street, Bao'an District, Shenzhen City, Guangdong Province

Patentee after: SHENZHEN ITC TECHNOLOGY Co.,Ltd.

Address before: 518000 212-219, building F, huachuangda building, Xinghua 1st Road, 42 District, Bao'an District, Shenzhen City, Guangdong Province

Patentee before: SHENZHEN ITC TECHNOLOGY Co.,Ltd.

CP02 Change in the address of a patent holder
TR01 Transfer of patent right

Effective date of registration: 20211109

Address after: 215200 workshop E01, 1801 pangjin Road, Wujiang Economic and Technological Development Zone, Suzhou City, Jiangsu Province

Patentee after: Suzhou xinxinteng Technology Co.,Ltd.

Address before: 518000 Room 401, building a, Hongwei Industrial Park, No. 6, liuxiansan Road, Xingdong community, Xin'an street, Bao'an District, Shenzhen City, Guangdong Province

Patentee before: SHENZHEN ITC TECHNOLOGY CO.,LTD.

TR01 Transfer of patent right