The content of the invention
To solve the above problems, the invention provides a kind of quick line inspection method and corresponding line inspection device to tested
Wire harness is fast and accurately detected.
According to an aspect of the invention, there is provided a kind of line inspection method, comprises the following steps:
Send preset instructions;
Receive the preset instructions and produce test signal to export to tested wire harness based on the preset instructions;
Detect the detection signal of the tested wire harness output and be processed into the detection data with certain format;
Judge whether the tested wire harness connects correctly based on preset value and the detection data, wherein the preset value with
The preset instructions are relevant.
According to one embodiment of present invention, the relation between the preset instructions and the preset value is set up by survey line
In the structure design of beam.
According to one embodiment of present invention, the structure design of the tested wire harness includes the design of input pin, described
The input pin of detection ordering and the tested wire harness of the preset instructions based on the tested wire harness is set with according to the detection
Preset instructions described in Sequential output simultaneously make the preset instructions corresponding with the input pin of the tested wire harness.
According to one embodiment of present invention, the structure design of the tested wire harness includes the design of output pin, described
The output of input pin connection of the preset value based on the preset instructions and the tested wire harness corresponding with the preset instructions is drawn
Pin is set so that the output pin of the preset value tested wire harness corresponding with the preset instructions is corresponding.
According to one embodiment of present invention, judge that the tested wire harness is based on the preset value and the detection data
No connection correctly includes:
Preset value is consistent with the detection data as described, then shows that the tested wire harness connection is correct;
Preset value and the detection data are inconsistent as described, then show that the tested wire harness malunion is true.
According to one embodiment of present invention, an input of a preset instructions correspondence tested wire harness is drawn
Pin.
According to one embodiment of present invention, one or many of connection corresponding with an input pin of the tested wire harness
Individual output pin exports the detection signal to form the detection data simultaneously.
According to another aspect of the present invention, a kind of line inspection device is additionally provided, including:
Control module, it sends the preset instructions to store the preset instructions and the preset value;
Several detection modules, the detection module is communicated to connect with the control module respectively,
Wherein, the detection module receives preset instructions that the control module sends and based on the preset instructions
The tested wire harness is detected, the control module receives the detection data of the detection module transmission and based on institute
State preset value and judge whether the tested wire harness connects correctly.
According to one embodiment of present invention, the control module includes:
Memory cell, it is to store the preset instructions and the preset value;
Transmitting element, it is connected with the memory cell, the preset instructions to transfer the memory cell storage
And the preset instructions are sent to the detection module;
Receiving unit, it is to receive the detection data that the detection module is sent;
Comparing unit, it is connected with the memory cell and the receiving unit respectively, the receiving unit to be sent out
Corresponding preset value in the memory cell that the detection data sent and the comparing unit are transferred is compared judgement.
According to one embodiment of present invention, the detection module includes:
Communications processor element, it is to receive and handle the preset instructions that the transmitting element is sent, and to described
Receiving unit sends the detection data;
Output unit, it is connected with the communications processor element, to send test signal to the tested wire harness;
Input block, it is connected with the communications processor element, the detection to receive the tested wire harness output
Signal and by it is described detection signal be sent to the communications processor element with described in shape into detection data.
According to one embodiment of present invention, the line inspection device is connected with display device testing result to be shown
Show.
Present invention offers following beneficial effect:
The present invention can be rapidly and efficiently the tested wire harness of positioning failure line and export testing result, overall process realize from
Dynamicization, improves the detection efficiency and accuracy rate of tested wire harness.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification
Obtain it is clear that or being understood by implementing the present invention.The purpose of the present invention and other advantages can be by specification, rights
Specifically noted structure is realized and obtained in claim and accompanying drawing.
Embodiment
Describe embodiments of the present invention in detail below with reference to drawings and Examples, how the present invention is applied whereby
Technological means solves technical problem, and reaches the implementation process of technique effect and can fully understand and implement according to this.Need explanation
As long as not constituting each embodiment in conflict, the present invention and each feature in each embodiment can be combined with each other,
The technical scheme formed is within protection scope of the present invention.
In addition, the step of the flow of accompanying drawing is illustrated can such as one group computer executable instructions department of computer science
Performed in system, and, although logical order is shown in flow charts, but in some cases, can be with different from herein
Order perform shown or described step.
It is the method flow diagram according to one embodiment of the present of invention as shown in Figure 1.Come below with reference to Fig. 1 to institute of the present invention
The method stated is described in detail.
In step s 110, programming sets preset instructions and preset value in advance.Preset value is relevant with preset instructions, presets and refers to
Relation between order and preset value is set up in the structure design of tested wire harness.Wherein, preset instructions and the input of tested wire harness
The structure design at end is relevant, and preset value is relevant with the structure design of preset instructions and the output end of tested wire harness.
Specifically, preset instructions are relevant with the checkout sequence of tested wire harness and the input pin setting of tested wire harness.Programming
When, preset instructions are set according to the detection ordering of tested wire harness input pin, such as can be according to numbering 1,2,3 ... ...
Or 1,3,5 ... etc. sequence detection be tested wire harness, naturally it is also possible to preset instructions are set otherwise as needed.It is default
The input pin of instruction and the input of tested wire harness is set to correspond, when sending a preset instructions, the default finger
One input pin of the tested wire harness of order correspondence.
Because an input pin of the input for being tested wire harness may connect with one or more output pins of output end
Connect, the different one or several output pins of the different input pins correspondences of the tested wire harness of correspondence, an input pin and with
Its one or several output pin connected constitutes one group of wire harness.When sending a preset instructions, preset instructions control quilt
The a certain input pin of survey line beam, then one or several output pin output signals being connected with the input pin, preset value is
It is relevant with the output pin that the input pin is connected.So, preset value is corresponding by survey line with preset instructions and the preset instructions
The output pin of the input pin connection of beam is relevant.
It is illustrated in figure 2 tested wire harness schematic according to an embodiment of the invention.Such as input of the tested wire harness
The input pin 1 at end is connected with the output pin A and H of output end, the input pin 2 of input and the output pin B of output end,
C and F connections, then when programming sets preset instructions, will respectively be set corresponding to the input pin 1 and input pin 2 of tested wire harness
Preset instructions.The preset instructions of correspondence input pin 1, its corresponding preset value is the output pin A and H of tested wire harness;Correspondence
The preset instructions of input pin 2, its corresponding preset value is output pin B, C and F of tested wire harness.
In the step s 120, when being detected to tested wire harness, produce test signal based on preset instructions and export to quilt
Survey line beam.
When being detected to tested wire harness, the test signal that preset instructions are produced is conveyed to the specified defeated of tested wire harness
Enter pin, the test signal is simultaneously exported to form detection signal by tested wire harness and from corresponding output pin.
In step s 130, the detection signal of tested wire harness output is detected, and is processed into the detection number of certain format
According to.One input pin of the tested wire harness of correspondence, the output pin of the tested wire harness has one or several and input pin to connect
Connect.The detection signal of all output pin outputs of tested wire harness is detected simultaneously, and detection signal transacting formation character, two are entered
The detection data of the certain formats such as data processed.
In this step, when sending test signal to a certain input pin of tested wire harness, it is connected with the input pin
One or several output pins simultaneously export detection signal.It is corresponding with an input pin particularly with there is several output pins
During connection, send a preset instructions can pair several output pins being connected with an input pin while detect, from
And improve the detection speed of tested wire harness.
In step S140, receive detection data and be compared to the detection data and preset value to judge tested wire harness
Whether connect correct.If preset value is consistent with detection data, show that tested wire harness connection is correct;If preset value and detection
Data are inconsistent, then show that tested wire harness malunion is true.
Again by taking Fig. 2 as an example, in the specific embodiment of the present invention, input pin 1 and the output of wire harness are tested
Pin A is connected with H, and input pin 2 is connected with output pin B, C and F.Preset instructions control defeated to tested wire harness input pin 1
Go out high level, while the level of all output pins of the tested wire harness of detection.If pin A and pin H is high level, Qi Tayin
Pin is low level, illustrates that this group of wire harness connection is correct, otherwise connection error.
Then, high level then by the input pin 2 of tested wire harness is put, while all output pins of the tested wire harness of detection
Level, if pin B, pin C and pin F are high level, other pins are low level, illustrate that this group of wire harness connection is correct, no
Then connection error.
The level signal (detection signal) of all output pins of the tested wire harness of detection, and be by these detection signal transactings
The detection data of certain format.Detection data are contrasted with the preset value set in advance, if preset value and detection data one
Cause, then show that tested wire harness connection is correct;If preset value and detection data are inconsistent, show tested wire harness malunion
Really.
The detection process that this method is realized can automatically be performed by software, and whole process is without manpower intervention, so as to improve detection
Accuracy rate.
Fig. 3 show the structural representation of line inspection device according to an embodiment of the invention.
As shown in figure 3, the line inspection device includes control module and detection module.In the case where there is multiple detection modules,
Each detection module is communicated to connect with control module respectively.Preset instructions that detection module receive and control module is sent and based on pre-
If instruction is detected to tested wire harness, meanwhile, control module receives the detection data of detection module transmission and based on preset value
Judge whether tested wire harness connects correctly.
Control module includes memory cell, transmitting element, receiving unit and comparing unit.Wherein, memory cell is to deposit
Preset instructions and preset value that storage programming is set.The memory cell is connected with transmitting element and comparing unit, for single to sending
Member provides preset instructions, and preset value is provided to comparing unit.Meanwhile, the control module also includes receiving unit, the receiving unit
For receiving the detection data for the certain format that detection module is sent and the detection data being sent in comparing unit.Compare list
The detection data that the preset value and receiving unit that member provides memory cell are provided carry out contrast judgement.
Detection module includes communications processor element, output unit and input block.Wherein, communications processor element is to receive
The preset instructions sent with processing transmitting element, and send detection data to receiving unit.The communications processor element is single with output
Member connection, draws preset instructions processing is formed into the corresponding input for being sent to tested wire harness through output unit after test signal
Pin.Meanwhile, the communications processor element is connected with input block, and the inspection that tested wire harness output pin is exported is received by input block
Survey signal and the receiving unit of control module will be sent to after detection signal transacting formation detection data.
Communicated to connect between control module and detection module, its connected mode can be wired forms, or wireless
Form, can be based on specific detection ambient As.
Meanwhile, for the testing result of tested wire harness is intuitively shown, a display device can also be set single with being compared
Member connection, to carry out testing result intuitively to show and preserve, as shown in Figure 3.
, can be integrated in one apparatus by control module and detection module to improve the portability of tested wiring harness test.
At the same time it can also as the part of the line inspection device, regard display device as a display module and control module, detection
Module integrates to form integral type line inspection device, as shown in Figure 4.
It is illustrated in figure 5 tested wiring harness test result according to an embodiment of the invention on the display apparatus directly perceived
Display.One group of wire harness of each input pin connection of the tested wire harness of wire harness correspondence of each numbering of importation in figure.Such as
Some input pin of the tested wire harness of fruit is true with corresponding output pin malunion, then will can just be broken down by the figure
Wire harness is distinguished from normal wire harness and shown, so as to be conducive to quickly positioning failure wire harness.
While it is disclosed that embodiment as above, but described content is only to facilitate understanding the present invention and adopting
Embodiment, is not limited to the present invention.Any those skilled in the art to which this invention pertains, are not departing from this
On the premise of the disclosed spirit and scope of invention, any modification and change can be made in the implementing form and in details,
But the scope of patent protection of the present invention, still should be subject to the scope of the claims as defined in the appended claims.