A kind of USB3.1 Type-C cable automatic test approach and system
Technical field
The present invention relates to a kind of cable automatic test approach and system, particularly relate to a kind of USB3.1TYPE-C cable automatic test approach and system.
Background technology
Along with the fast development of modern communication equipment, USB3.1TYPE-C is a kind of more advanced high-speed communication cable, in current process of manufacture, mainly by the processing situation of the manual p-wire cable of people, inefficiency and fraction defective are up to more than 10%, simultaneously, because USB3.1TYPE-C cable supports bidirectional power supply, a power supply control chip is there is in it, the testing apparatus of specialty is needed to complete test, because the impact of fraction defective exists, likely cause the damage of USB3.1TYPE-C testing apparatus and USB3.1TYPE-C equipment.
In prior art environment, cross in stroke in the production and processing of USB3.1TYPE-C cable, short circuit can be brought due to the misoperation in welding process or connect tin, in this case, if directly used, the damage of USB3.1 equipment must be caused, even on a production line, also can cause the damage of testing tool.
Existence in view of the above problems, a kind of newly, convenient and effectively provide the invention of a kind of USB3.1TYPE-C cable Auto-Test System and method to be imperative.
Summary of the invention
The shortcoming of prior art in view of the above, the object of the present invention is to provide a kind of USB3.1TYPE-C cable Auto-Test System and method, the feature of chip in its feature for USB3.1TYPE-C cable and cable, a test macro invented targetedly, whether there is short circuit and open circuit with the signal and power lead that effectively test out USB3.1TYPE-C cable, damage can not be caused to testing apparatus again simultaneously.Reduce manually-operated error, improve testing efficiency and first-pass yield.
For achieving the above object and other relevant objects, the invention provides a kind of USB3.1Type-C cable Auto-Test System, it at least comprises:
Main control part, comprises master cpu, is tested USB3.1TYPE-C cable by the operation of program, and by test result display on a display screen, determines whether test result to upload on PC as required simultaneously;
Serial port module, comprises serial ports and additional driving chip that master cpu carries, to communicate with computer;
Interface module, a pluggable separate modular, comprises the male seat module of two USB3.1TYPE-C test interfaces.
In one embodiment of the invention, described USB3.1Type-C cable Auto-Test System, it also comprises display module, shows test results, and uses LCD display or is shown test results by the display of PC; Power module, provides the power supply required for cable Auto-Test System.
In one embodiment of the invention, described USB3.1Type-C cable Auto-Test System, interface module described in it comprises the male seat module of test interface A and test interface B two USB3.1TYPE-C.
For achieving the above object and other relevant objects, the present invention also provides a kind of USB3.1Type-C cable automatic test approach, and it at least comprises the steps:
Cable Auto-Test System is inserted at the two ends of USB3.1TYPE-C cable respectively, starts test and interrupt, cause value corresponding in register to change, triggered interrupts starts test; Described cable Auto-Test System comprises the male seat module of test interface A and test interface B two USB3.1TYPE-C;
After test completes, test result is read from register, according to setting, by test result display on an lcd display, or upload to PC;
Be returned to wait test mode, wait for and testing next time.
In one embodiment of the invention, described USB3.1Type-C cable automatic test approach, it also comprises by reading about after the position change starting to test in register, and beginning starts to test in order.
In one embodiment of the invention, described USB3.1Type-C cable is tested automatically, and test described in it comprises the short circuit of test adjacent leads, whether there is short circuit between test USB3.1TYPE-C cable, then by result stored in register.
In one embodiment of the invention, described USB3.1Type-C cable automatic test approach, tests described in it that also to comprise test connective, whether there is open circuit between test USB3.1TYPE-C cable, then by result stored in register.
In one embodiment of the invention, described USB3.1Type-C cable is tested automatically, test described in it and also comprise energising test, power first to the power pin of USB3.1TYPE-C testing lines interface A, then detect whether normal power supply is successful at USB3.1TYPE-C testing lines interface B; Detect other non-power pin of test interface B port simultaneously and whether receive voltage, have, test and do not pass through, otherwise test is passed through, and by register corresponding for test result write.
In one embodiment of the invention, described USB3.1Type-C cable is tested automatically, test described in it and also comprise energising test: power to the power pin of USB3.1TYPE-C testing lines interface B, then detect whether normal power supply is successful at USB3.1TYPE-C testing lines interface A; Detect other non-power pin of test interface A port simultaneously and whether receive voltage, have, test and do not pass through, otherwise just test is passed through, and by register corresponding for test result write.
In one embodiment of the invention, described USB3.1Type-C cable is tested automatically, and it, when in test process, as long as there is test not pass through, then returns test result.
As mentioned above, USB3.1Type-C cable Auto-Test System of the present invention and method, have following beneficial effect:
The present invention be directed to the feature of chip in the feature of USB3.1TYPE-C cable and cable, a test macro invented targetedly, whether there is short circuit and open circuit with the signal and power lead that effectively test out USB3.1TYPE-C cable, damage can not be caused to testing apparatus again simultaneously.Reduce manually-operated error, improve testing efficiency and first-pass yield.Promote testing efficiency, reduce test error, reduce the damage of USB3.1TYPE-C cable rate test equipment.
Accompanying drawing explanation
Fig. 1 is shown as the framed structure schematic diagram of the USB3.1Type-C cable Auto-Test System described in the embodiment of the present invention.
Fig. 2 is shown as the panel schematic diagram of the modules part of the USB3.1Type-C cable Auto-Test System described in the embodiment of the present invention.
Fig. 3 be shown as power module and serial communication modular in the USB3.1Type-C cable Auto-Test System described in the embodiment of the present invention be positioned at equipment after portion's panel schematic diagram.
Fig. 4 is shown as the process step schematic diagram of the USB3.1Type-C cable automatic test approach described in the embodiment of the present invention.
Element numbers explanation
100 cable Auto-Test Systems
101 main control parts
102 serial port module
103 power modules
104 display modules
105 interface modules
S11-S18 step S11-S18
Embodiment
Below by way of specific instantiation, embodiments of the present invention are described, those skilled in the art the content disclosed by this instructions can understand other advantages of the present invention and effect easily.The present invention can also be implemented or be applied by embodiments different in addition, and the every details in this instructions also can based on different viewpoints and application, carries out various modification or change not deviating under spirit of the present invention.It should be noted that, when not conflicting, the feature in following examples and embodiment can combine mutually.
It should be noted that, the diagram provided in following examples only illustrates basic conception of the present invention in a schematic way, then only the assembly relevant with the present invention is shown in graphic but not component count, shape and size when implementing according to reality is drawn, it is actual when implementing, and the kenel of each assembly, quantity and ratio can be a kind of change arbitrarily, and its assembly layout kenel also may be more complicated.
Refer to shown in Fig. 1 to Fig. 4, the invention provides a kind of UUSB3.1TYPE-C cable Auto-Test System and method, the present invention is only suitable for for USB3.1TYPE-C cable, and the USB type cable of other type is inapplicable.
The invention provides a kind of USB3.1TYPE-C cable Auto-Test System and method is feature for chip in the feature of USB3.1TYPE-C cable and cable, a test macro invented targetedly, whether there is short circuit and open circuit with the signal and power lead that effectively test out USB3.1TYPE-C cable, damage can not be caused to testing apparatus again simultaneously.Reduce manually-operated error, improve testing efficiency and first-pass yield.Promote testing efficiency, reduce test error, reduce the damage of USB3.1TYPE-C cable rate test equipment.
Refer to shown in accompanying drawing 1, a kind of USB3.1Type-C cable Auto-Test System 100 provided by the present invention, mainly comprises following five parts:
Main control part 101: it is as master cpu by the singlechip chip of 51 series, it is the core of test macro of the present invention, the function of described main control part 101 is mainly tested USB3.1TYPE-C cable by the operation of program, and by test result display on a display screen, determine whether as required to need test result to be uploaded on PC by serial port module simultaneously.
Serial port module 102: use the serial ports that CPU carries, additional RS232 driving chip composition, for communicating with computer.
Power module 103, for the invention provides required power supply.Wherein power unit-power module 103 and serial communication-serial port module 102 are positioned at the rear portion of equipment.Specifically refer to shown in accompanying drawing 2 and accompanying drawing 3.
Display module 104: mainly show test results, can use instrument to carry LCD display, certainly, also can be shown test results by the display of PC.
Interface module 105: primarily of the male seat module composition of test interface A and test interface B two USB3.1TYPE-C, because this part often uses, will inevitably damage owing to repeatedly plugging, lose efficacy, so part has made a separate modular that can plug, to facilitate the part in use replacing in time and damage or lost efficacy.
Refer to shown in accompanying drawing 4, the job step of USB3.1Type-C cable automatic test approach of the present invention is as follows:
Perform step S11, USB3.1Type-C cable Auto-Test System provided by the present invention is inserted at the two ends of USB3.1TYPE-C cable to be tested respectively, then Start button is pressed (if there is connection PC, this Start instruction can be sent by the control inerface on PC), interrupt, cause the change of value corresponding in register, triggered interrupts starts test.
Execution step S12, the cpu chip of the main control part 101 in the present invention is by reading about after the position change starting to test in above-mentioned register, and beginning starts to test in order.
Perform step S13, the short circuit of test adjacent leads: between test USB3.1TYPE-C cable, whether there is short circuit, then by result stored in register.
Perform step S14, test is connective: whether there is open circuit between test USB3.1TYPE-C cable, then by result stored in register.
Perform step S15, energising test: present system powers first to the power pin of USB3.1TYPE-C testing lines port A, then detect whether normal power supply is successful at USB3.1TYPE-C testing lines port B; Detect other non-power pin of B port simultaneously and whether receive voltage, have, test not by (Fail), otherwise test is by (OK); And by register corresponding for test result write.
Perform step S16, energising test: under above-mentioned execution step S15 tests successful situation, present system is powered to the power pin of USB3.1TYPE-C testing lines port B, then detects whether normal power supply is successful at USB3.1TYPE-C testing lines port A; Detect other non-power pin of A port simultaneously and whether receive voltage, have, test not by (Fail), otherwise test is by (OK).And by register corresponding for test result write.
In test process, as long as there is test not pass through, then return test result.
Perform step S17, result shows or uploads: after test completes, test result read from register, according to setting, by test result display on an lcd display, or uploads to PC.
Perform step S18, be returned to wait test mode, wait for and testing next time.
In sum, the invention provides a kind of USB3.1TYPE-C cable Auto-Test System and method, it is the feature for chip in the feature of USB3.1TYPE-C cable and cable, a test macro invented targetedly and method, short circuit and open circuit whether is there is with the signal and power lead that effectively test out USB3.1TYPE-C cable, damage can not be caused to testing apparatus again simultaneously, reduce manually-operated error, improve testing efficiency and first-pass yield; Promote testing efficiency, reduce test error, reduce the damage etc. of USB3.1TYPE-C cable rate test equipment.
Above-described embodiment is illustrative principle of the present invention and effect thereof only, but not for limiting the present invention.Any person skilled in the art scholar all without prejudice under spirit of the present invention and category, can modify above-described embodiment or changes.Therefore, such as have in art usually know the knowledgeable do not depart from complete under disclosed spirit and technological thought all equivalence modify or change, must be contained by claim of the present invention.