Summary of the invention
For solving the problem, the invention provides the line inspection device of a kind of quick line inspection method and correspondence in order to detect fast and accurately tested wire harness.
According to an aspect of the present invention, provide a kind of line inspection method, comprise the following steps:
Send preset instructions;
Receive described preset instructions and produce test signal to export to tested wire harness based on this preset instructions;
Detect the detection signal of described tested wire harness output and be treated to the detection data with certain format;
Judge whether described tested wire harness is connected correctly, and wherein said preset value is relevant with described preset instructions based on preset value and described detection data.
According to one embodiment of present invention, the relation between described preset instructions and described preset value is based upon in the structural design of tested wire harness.
According to one embodiment of present invention, the structural design of described tested wire harness comprises the design of input pin, and described preset instructions is arranged based on the detection ordering of described tested wire harness and the input pin of described tested wire harness to export described preset instructions according to described detection ordering and to make described preset instructions corresponding with the input pin of described tested wire harness.
According to one embodiment of present invention, the structural design of described tested wire harness comprises the design of output pin, and the output pin that described preset value connects based on the input pin of described preset instructions and the described tested wire harness corresponding with this preset instructions arranges with the output pin of the described tested wire harness making described preset value and this preset instructions corresponding corresponding.
According to one embodiment of present invention, judge whether described tested wire harness is connected based on described preset value and described detection data correctly to comprise:
As described in preset value and as described in detection data consistent, then show that described tested wire harness connects correct;
As described in preset value and as described in detection data inconsistent, then show that described tested wire harness malunion is true.
According to one embodiment of present invention, an input pin of a corresponding described tested wire harness of described preset instructions.
According to one embodiment of present invention, the one or more output pins that connect corresponding to an input pin of described tested wire harness export described detection signal to form described detection data simultaneously.
According to another aspect of the present invention, additionally provide a kind of line inspection device, comprising:
Control module, it in order to store described preset instructions and described preset value, and sends described preset instructions;
Several detection modules, described detection module communicates to connect with described control module respectively,
Wherein, described detection module receives described preset instructions that described control module sends and detects described tested wire harness based on described preset instructions, and described control module receives described detection data that described detection module sends and judges whether described tested wire harness connects correctly based on described preset value.
According to one embodiment of present invention, described control module comprises:
Storage unit, it is in order to store described preset instructions and described preset value;
Transmitting element, it is connected with described storage unit, in order to transfer the described preset instructions of described cell stores and described preset instructions is sent to described detection module;
Receiving element, its described detection data sent in order to receive described detection module;
Comparing unit, it is connected with described storage unit and described receiving element respectively, and the corresponding preset value in the described storage unit transferred in order to the described detection data that sent by described receiving element and described comparing unit compares judgement.
According to one embodiment of present invention, described detection module comprises:
Communications processor element, its described preset instructions sent in order to receive and to process described transmitting element, and send described detection data to described receiving element;
Output unit, it is connected with described communications processor element, in order to send test massage to described tested wire harness;
Input block, it is connected with described communications processor element, in order to receive the described detection signal of described tested wire harness output and to be sent to by described detection signal described communications processor element to become to detect data described in shape.
According to one embodiment of present invention, described line inspection device is connected in order to testing result to be shown with display device.
Present invention offers following beneficial effect:
The present invention can the fault line of the tested wire harness in location rapidly and efficiently output detections result, and overall process realizes robotization, improves detection efficiency and the accuracy rate of tested wire harness.
Other features and advantages of the present invention will be set forth in the following description, and, partly become apparent from instructions, or understand by implementing the present invention.Object of the present invention and other advantages realize by structure specifically noted in instructions, claims and accompanying drawing and obtain.
Embodiment
Describe embodiments of the present invention in detail below with reference to drawings and Examples, to the present invention, how application technology means solve technical matters whereby, and the implementation procedure reaching technique effect can fully understand and implement according to this.It should be noted that, only otherwise form conflict, each embodiment in the present invention and each feature in each embodiment can be combined with each other, and the technical scheme formed is all within protection scope of the present invention.
In addition, can perform in the computer system of such as one group of computer executable instructions in the step shown in the process flow diagram of accompanying drawing, and, although show logical order in flow charts, but in some cases, can be different from the step shown or described by order execution herein.
Be illustrated in figure 1 method flow diagram according to an embodiment of the invention.Below with reference to Fig. 1, method of the present invention is described in detail.
In step s 110, programming arranges preset instructions and preset value in advance.Preset value is relevant with preset instructions, and the relation between preset instructions and preset value is based upon in the structural design of tested wire harness.Wherein, preset instructions is relevant with the structural design of the input end of tested wire harness, and the structural design of the output terminal of preset value and preset instructions and tested wire harness is relevant.
Concrete, preset instructions arranges relevant with the checkout sequence of tested wire harness and the input pin of tested wire harness.During programming, the detection ordering according to tested wire harness input pin sets preset instructions, as can according to numbering 1,2,3 ... or 1,3,5 ... etc. the tested wire harness of sequence detection, as required preset instructions can certainly be set according to other modes.The input pin of the input end of preset instructions and tested wire harness is set to one_to_one corresponding, when sending a preset instructions, and an input pin of the corresponding tested wire harness of this preset instructions.
Because an input pin of the input end of tested wire harness may be connected with one or more output pins of output terminal, one or several output pin that the different input pin of corresponding tested wire harness is corresponding different, an input pin and one or several output pin connected form one group of wire harness.When sending a preset instructions, this preset instructions controls a certain input pin of tested wire harness, then one or several output pin be connected with this input pin outputs signal, and preset value is namely relevant with the output pin that this input pin connects.So the output pin that the input pin of preset value and preset instructions and tested wire harness corresponding to this preset instructions connects is relevant.
Be illustrated in figure 2 tested wire harness schematic according to an embodiment of the invention.The input pin 1 of the input end of wire harness as tested in this is connected with output pin A and H of output terminal, the input pin 2 of input end is connected with output pin B, C and F of output terminal, then when programming arranges preset instructions, corresponding to the input pin 1 of tested wire harness and input pin 2, preset instructions to be set respectively.The preset instructions of corresponding input pin 1, the preset value of its correspondence is output pin A and H of tested wire harness; The preset instructions of corresponding input pin 2, the preset value of its correspondence is output pin B, C and F of tested wire harness.
In the step s 120, when detecting tested wire harness, producing test signal based on preset instructions and exporting to tested wire harness.
When detecting tested wire harness, the test signal that preset instructions produces is flowed to the appointment input pin of tested wire harness, this test signal exports to form detection signal by tested wire harness and from the output pin of correspondence simultaneously.
In step s 130, which, detect the detection signal that tested wire harness exports, and be treated to the detection data of certain format.An input pin of corresponding tested wire harness, the output pin of this tested wire harness has one or several to be connected with this input pin.Detect the detection signal that all output pins of tested wire harness export simultaneously, and this detection signal process is formed the detection data of the certain format such as character, binary data.
In this step, when sending test massage to a certain input pin of tested wire harness, one or several output pin be connected with this input pin output detections signal simultaneously.Especially for when having that several output pin is corresponding with input pin to be connected, sending a preset instructions can detect the several output pins be connected with an input pin simultaneously, thus improves the detection speed of tested wire harness.
In step S140, reception detects data and these detection data and preset value is compared and judges whether tested wire harness is connected correctly.If preset value and detection data consistent, then show that tested wire harness connects correct; If preset value is inconsistent with detection data, then show that tested wire harness malunion is true.
Again for Fig. 2, in a specific embodiment of the present invention, the input pin 1 of tested wire harness is communicated with output pin A with H, and input pin 2 is connected with output pin B, C and F.Preset instructions controls to export high level to tested wire harness input pin 1, detects the level of all output pins of tested wire harness simultaneously.If pin A and pin H is high level, other pin is low level, illustrates that this group wire harness connects correct, otherwise connection error.
Then, then the input pin 2 of tested wire harness is set high level, detect the level of all output pins of tested wire harness simultaneously, if pin B, pin C and pin F are high level, other pin is low level, illustrates that this group wire harness connects correct, otherwise connection error.
Detect the level signal (detection signal) of all output pins of tested wire harness, and these detection signals are treated to the detection data of certain format.Detect data to contrast with the preset value arranged in advance, if preset value and detection data consistent, then show that tested wire harness connects correct; If preset value is inconsistent with detection data, then show that tested wire harness malunion is true.
The testing process that this method realizes can be automatically performed by software, omnidistance without the need to manpower intervention, thus improves the accuracy rate of detection.
Figure 3 shows that the structural representation of line inspection device according to an embodiment of the invention.
As shown in Figure 3, this line inspection device comprises control module and detection module.When there being multiple detection module, each detection module communicates to connect with control module respectively.The preset instructions that detection module reception control module sends also detects tested wire harness based on preset instructions, and meanwhile, based on preset value, the detection data that control module receives detection module transmission also judge whether tested wire harness connects correctly.
Control module comprises storage unit, transmitting element, receiving element and comparing unit.Wherein, storage unit is in order to store preset instructions and the preset value of programming setting.This storage unit is connected with transmitting element and comparing unit, for providing preset instructions to transmitting element, provides preset value to comparing unit.Meanwhile, this control module also comprises receiving element, and this receiving element is for receiving the detection data of the certain format of detection module transmission and these detection data being sent in comparing unit.The preset value that storage unit provides by comparing unit and the detection data that receiving element provides are carried out contrast and are judged.
Detection module comprises communications processor element, output unit and input block.Wherein, communications processor element in order to the preset instructions received and process transmitting element sends, and sends detection data to receiving element.This communications processor element is connected with output unit, in order to the corresponding input pin by sending to tested wire harness after preset instructions process formation test signal through output unit.Meanwhile, this communications processor element is connected with input block, receives detection signal that tested wire harness output pin exports and this detection signal process is formed the receiving element detecting and send to control module after data by input block.
Communicate to connect between control module and detection module, its connected mode can be wired forms, also can be wireless, can arrange based on concrete testing environment.
Meanwhile, for the testing result of tested wire harness is intuitively shown, a display device can also be set and be connected with comparing unit, in order to testing result is intuitively shown and preserves, as shown in Figure 3.
For improving the portability of tested wiring harness test, can by control module and detection module in one apparatus integrated.Meanwhile, using the ingredient of display device as this line inspection device, can also integrate as a display module and control module, detection module and form integral type line inspection device, as shown in Figure 4.
Be illustrated in figure 5 tested wiring harness test result according to an embodiment of the invention display directly perceived on the display apparatus.One group of wire harness that in figure, each input pin of the corresponding tested wire harness of the wire harness of each numbering of importation connects.If certain input pin of tested wire harness is true with corresponding output pin malunion, then just the wire harness broken down can be shown from the intrafascicular differentiation of normal line by this figure, thus be conducive to quick position fault wire harness.
Although embodiment disclosed in this invention is as above, the embodiment that described content just adopts for the ease of understanding the present invention, and be not used to limit the present invention.Technician in any the technical field of the invention; under the prerequisite not departing from spirit and scope disclosed in this invention; any amendment and change can be done what implement in form and in details; but scope of patent protection of the present invention, the scope that still must define with appending claims is as the criterion.