Cable detection device
By designing a cable detection device including a microcontroller and a 4/16 decoder, the existing automated electrical detection methods have solved the problem of large resource occupation and long detection time, and the detection time is shortened by 60 times and the resource utilization rate is improved.
Patent Information
- Application Number
- CN202011644206.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-31
- Publication Date
- 2025-04-22
- Estimated Expiration
- 2040-12-31
AI Technical Summary
Existing cable or circuit automated electrical detection methods require traversing all output ports, resulting in large resource usage, long detection time, and high cost and low efficiency.
A cable detection device is designed, including a computer, a control module, a driving module and a cable adapter. The relay is controlled through a single-chip computer program control method and a 4/16 decoder to optimize the multi-line automation electrical detection method.
The traversal query detection method has been greatly optimized, shortening the detection time by 60 times that of the original method, and improving the utilization rate of the I/O port of the control circuit and the efficiency of the switch circuit switch tube by 8 times.
Smart Images

Figure CN112611986B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of cables, and in particular to a cable detection device. Background Art
[0002] With the development of highly integrated circuit technology, more and more signal relationships in the defense and civilian fields are connected through dense cables or switching circuits, and the demand for automated electrical testing of cables or circuits is also increasing.
[0003] Automated electrical testing of cables (circuits) is actually an automated "error checking" circuit, which requires judging whether there are "open circuits", "broken circuits" and "wrong connections" between the terminals of the cable (circuit) under test.
[0004] The conventional method is to input the driving signal to the input port of a certain line under test of the cable and circuit under test in turn, and then test all the output ports. The conventional method can undoubtedly give detailed and comprehensive test results, but its disadvantage is that after the driving signal is input to a certain line under test of the cable under test, it is necessary not only to check whether the output port of the line under test receives the driving signal, but also to check whether the line under test has a "short circuit" or "wrong connection" relationship with other lines in the cable, it is necessary to "traverse" all the output ports of the cable under test.
[0005] Conventional "traversal" automated query methods require a large amount of digital resources and consume detection time, resulting in increased automated detection costs and reduced efficiency.
[0006] Therefore, it is necessary to develop a multi-line automated electrical testing equipment with higher control resource utilization and shorter testing reagents. Summary of the invention
[0007] In order to solve the above problems, the present invention proposes a cable detection device, including a host computer, a control module, a drive module and a cable switching device, the control module is connected to the drive module, and the drive module is connected to the cable to be tested through the cable switching device; the control module sends a selection signal to the drive module in turn according to the detection instruction of the host computer; the drive module includes a drive circuit and a plurality of switch circuits, the drive circuit sends and receives the selection signal from the control module to the plurality of switch circuits in turn, the plurality of switch circuits are turned on in turn according to the selection signal and the result signal is fed back to the control circuit through the drive circuit, and the control circuit feeds back the result signal to the host computer.
[0008] Furthermore, the driving module includes a driving circuit and a plurality of switch circuits, the driving circuit sends a selection signal to the switch circuit; each switch circuit includes a MOS tube V3 and a double-contact relay J1, the selection signal is input to the G pole of the MOS tube V3, the G pole of the MOS tube V3 is connected to the resistor R3 and then to the ground GND, the S pole of the MOS tube V3 is connected to the capacitor C1 and then to the power supply VCC, the D pole of the MOS tube V3 is connected to the 1st pin of the double-contact relay J1, the 1st pin and the 8th pin of the double-contact relay J1 are respectively connected to the two ends of the reverse diode V1, and the power supply VCC is connected to the double-contact relay J1 through the resistor R1 and the light-emitting diode V2. Pin 8 of the relay J1 and pin 3 of the double-contact relay J1 are connected to resistor R5, which are connected to voltage VDD and one end of capacitor C3. One end of capacitor C3 is connected to pin 2 of the double-contact relay J1 and analog ground AGND. Pins 4 and 6 of the double-contact relay J1 are respectively connected to port 1 and port 2 of the signal line N of the cable to be tested. The result signal POA and the result signal POB are respectively output from pins 7 and 5 of the double-contact relay J1 to the drive circuit. Pin 8 of the double-contact relay J1 is connected in series with diode V2 and then connected to voltage VCC. Capacitor C3 is connected between resistor R4 and resistor R5. The selection signal is grounded to GND through capacitor C2.
[0009] Furthermore, the driving circuit includes a plurality of switch circuit interfaces, each of which is connected to a single switch circuit, the selection signal and the cable port to be tested are connected to the switch circuit through the switch circuit interface, and the driving circuit supplies power to the switch circuit through the switch circuit interface; the selection signal is input into the G pole of the MOS tube V3 after passing through the resistor R2, the 8th pin of the double-contact relay J1 is connected to the light-emitting diode V2 and then to the power supply VCC, the 8th pin of the double-contact relay J1 is connected in series with the diode V2 and the resistor R1 and then to the voltage VCC; the 2nd pin of the double-contact relay J1 is connected to the resistor R4 and then to the analog ground AGND.
[0010] Furthermore, the control module includes a control single-chip microcomputer, four 4 / 16 decoders, a serial port communicator, and a NOT gate. The control single-chip microcomputer communicates with the host computer software through the serial port communicator, and the communication includes receiving detection instructions and feedback result signals; the control single-chip microcomputer is connected to the 4 / 16 decoder to expand the I / O interface; the 4 / 16 decoder is connected to the NOT gate to isolate and output the selection signal.
[0011] Further, when the result signal POA=0, POB=0, the channel to be tested is open circuit; when the result signal POA=0, POB=1, the channel to be tested is misconnected with other channels; when the result signal POA=0, POB=1, the channel to be tested is normal; when the result signal POA=1, POB=1, the channel to be tested is short-circuited with other paths.
[0012] Compared with the prior art, the present invention has the following beneficial effects:
[0013] 1) It adopts single-chip computer program control mode, the host computer controls through the serial port, and the relatively simple circuit form of controlling the relay through the 4 / 16 decoder optimizes the multi-line automatic electrical detection mode;
[0014] 2) The traversal query detection method is greatly optimized, and the optimized test time is 60 times that of the traversal query method (in the device of this embodiment, 60 is the number of lines to be tested, and the more the number, the more obvious the optimization effect).
[0015] 3) The traversal query detection method has been greatly optimized, and the utilization rate of the control circuit I / O port has been optimized by 8 times;
[0016] 4) The traversal query detection method has been greatly optimized, and the switch circuit switch tube efficiency has been optimized by 2 times;
[0017] 5) The relay integrated module is installed in a plug-in style, which makes it easy to replace the relay board;
[0018] 6) The test results are uploaded in a simple form of 2-bit binary code, providing four status indications (normal, short circuit, open circuit, wrong connection) of the current circuit under test and other circuits under test;
[0019] 7) A switch circuit interface is designed. The repeatability and replaceability of the switch circuit can make the circuit function more modular, and the expansion design can be carried out as needed. It can cope with the automated electrical testing of more dense lines, and has engineering promotion value and broad application. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 Circuit structure diagram of embodiment 1.
[0021] Figure 2 A simple circuit diagram of the control module of the first embodiment.
[0022] Figure 3 A schematic structural diagram of a control module of Embodiment 1.
[0023] Figure 4 Schematic diagram of a driving circuit according to Embodiment 1.
[0024] Figure 5 Schematic diagram of a switch circuit according to Embodiment 1.
[0025] Figure 6 A circuit diagram of one of the results of Example 1.
[0026] Figure 7 A circuit diagram of the second result of the first embodiment.
[0027] Figure 8 Circuit diagram of the third result of the first embodiment.
[0028] Fig. 9 Circuit diagram of result 4 of embodiment 1.
[0029] Fig.10 Embodiment 1 is a wiring diagram of a functional plug-in box.
[0030] Fig.11 Embodiment 1 is a schematic diagram of an interface of a functional plug-in box.
[0031] Fig.12 Schematic diagram of the detection results of Example 1. DETAILED DESCRIPTION
[0032] The cable detection device proposed by the present invention is described in detail below with reference to the accompanying drawings.
[0033] like Figure 1 As shown, the cable detection device of the present invention includes a host computer, a control module, a drive module and a cable adapter, wherein the control module is connected to the drive module, and the drive module is connected to the cable to be tested through the cable adapter. The control module sends a selection signal to the drive module in turn according to the detection instruction of the host computer; the drive module includes a drive circuit and a plurality of switch circuits, the drive circuit sends and receives a selection signal from the control module to the plurality of switch circuits in turn, the plurality of switch circuits are turned on in turn according to the selection signal and the result signal is fed back to the control circuit through the drive circuit, and the control circuit feeds back the result signal to the host computer.
[0034] like Figure 2 and 3 As shown, the control module includes a control microcontroller 87C51, four 4 / 16 decoders D1-D4, a serial port communicator MAX233, a NOT gate and related resistors and capacitors. The control microcontroller 87C51 communicates with the host computer software through the serial port communicator MAX233, and the communication includes receiving detection instructions and feedback result signals; the control microcontroller 87C51 is connected to the 4 / 16 decoder (P00-P03 of the control microcontroller 87C51 are respectively connected to the output ports A, B, C and D of the 4 / 16 decoder) to expand the I / 0 interface; the 4 / 16 decoder is connected to the NOT gate (the output ports of the first three 4 / 16 decoders are connected to the output ports A, B, C and D of the 4 / 16 decoder) to expand the I / O interface; the 4 / 16 decoder is connected to the NOT gate (the output ports of the first three 4 / 16 decoders are connected to the output ports A, B, C and D of the 4 / 16 decoder) to expand the I / O interface. Connect 16 NOT gates respectively, and finally the output port of a 4 / 16 decoder 9 NOT gates are connected respectively) to isolate and output the selection signal; the result signals POA and POB are input to the P25-P26 pins of the control microcontroller 87C51 through the NOT gates.
[0035] The driving module includes a driving circuit and 60 switch circuits, combined with Figure 4The driving circuit includes 60 switch circuit interfaces, which are respectively connected to 60 switch circuits, and the selection signal, the cable port to be tested and the power supply circuit are connected to the switch circuit through the switch circuit interface.
[0036] Combination Figure 5 Each switch circuit includes a MOS tube V3 and a double-contact relay J1. The selection signal is input to the G pole of the MOS tube V3 through the resistor R2. The G pole of the MOS tube V3 is connected to the resistor R3 and then to the ground GND. The S pole of the MOS tube V3 is connected to the capacitor C1 and then to the power supply VCC. The D pole of the MOS tube V3 is connected to the 1st pin of the double-contact relay J1. The 1st and 8th pins of the double-contact relay J1 are respectively connected to the two ends of the reverse diode V1. The power supply VCC is connected to the 8th pin of the double-contact relay J1 through the resistor R1 and the light-emitting diode V2. Pins 2 and 3 of the contact relay J1 are connected to resistors R4 and R5 respectively, and then to analog ground AGND and voltage VDD. Pins 4 and 6 of the double-contact relay J1 are connected to port 1 and port 2 of the signal line N of the cable to be tested respectively. The result signal POA and the result signal POB are output to the drive circuit from pins 7 and 5 of the double-contact relay J1 respectively. Pin 8 of the double-contact relay J1 is connected in series with diode V2 and resistor R1, and then to voltage VCC; capacitor C3 is connected between resistor R4 and resistor R5; and the selection signal is connected to ground GND through capacitor C2.
[0037] The actual working process of the embodiment of the present invention is as follows:
[0038] The control circuit sends out a "select relay 1" signal, and the two contacts of relay 1 are closed at the same time. Figure 6-9 As shown, there are four possible situations:
[0039] a) When the signal channel to be tested is normal, the drive signal is output through the two contacts of relay 1. At this time, POA should be high level (1) and POB should be low level (0);
[0040] b) When the signal channel to be tested is disconnected, the drive signal fails to be output through the relay contact, and both POA and POB output a low level (0);
[0041] c) When the signal channel 1 to be tested is short-circuited with any other channel, both POA and POB outputs are high level (1);
[0042] d) When the signal channel 1 to be tested is connected incorrectly to any other channel, the POA output is low level (0) and the POB output is high level (1).
[0043] Through the binary result signals of POA and POB, the following truth table can be obtained:
[0044] POA POB Representative meaning 0 0 The path to be tested is open 0 1 The path to be tested is connected to other paths incorrectly 1 0 The path to be tested is normal 1 1 The path to be tested is short-circuited with other paths
[0045] After the control circuit sends the selection signal, it receives the result signal provided by POA and POB, and transmits it back to the host computer software to complete a set of tests; the next set of tests starts with the same procedure until all channels are tested.
[0046] Through the selection signal of the control circuit, the detection results of the tested cable (circuit) in each group of "should be connected ports" will be obtained and sent back to the control circuit in the form of a two-bit binary code. The control circuit will give four results of the "should be connected ports" to be tested, namely "normal", "open circuit", "short circuit with other lines" and "wrong connection with other lines" through the truth table of the code.
[0047] The physical object of the embodiment of the present invention is as follows Fig.10 and 11 As shown, it is a functional plug-in box of a certain type of automated testing cabinet.
[0048] The upper computer uses the software interface to count the test results of each group of lines of the tested cable (circuit) as shown in the figure. Fig.12 As shown, the logic judgment software gives the specific open circuit, short circuit, and wrong connection position of the cable (circuit) to be tested, providing information for the subsequent repair of the faulty part under test. Among them, the line to be tested can be selected through the "isSelleted" column on the far left; the 2nd, 3rd, and 4th columns from the left are the signal descriptions of the line to be tested, including the wiring relationship and signal definition; the 5th and 6th columns from the left are the true values of POA and POB, respectively, the 7th column from the left is the test result of each line, and the 9th column from the left is the normal flag; the lower left "Suggestion" button provides a troubleshooting wizard, the lower "Start" button is the start test button of the device, and the lower right "Abort Testing" button is the interrupt detection button, which is used to provide interrupt testing.
[0049] By comparing the present invention with conventional automated electrical detection circuits, it can be seen that: in conventional detection circuits, if the device under test is a group of 60 sets of signal relationships of the cable, and the input and output I / 0 ports are set to 16 conventional I / 0 integrated circuits, 8 integrated circuit chips are required, and 120 switch circuits are required (to select the input and output ports respectively); assuming that the time from the input selection to the end of the output detection of each group of signals is t, the time to complete the detection of 60 sets of signal relationships of the device under test is 3600t.
[0050] Since the circuit of the present invention does not need to perform traversal query on the output and adopts the technology of 4 / 16 decoding expansion, only one chip is needed for the same number of I / 0 chips, and 60 driving switch circuits are needed (the input and output ports are simultaneously gated). Assuming that the time from the input gate to the end of the output detection of each group of signals is t, the time to complete the detection of 60 groups of signal relationships of the device under test is 60t. Therefore, compared with the conventional detection circuit, the present invention optimizes the I / 0 control circuit efficiency by 8 times, optimizes the switch circuit efficiency by 2 times, and optimizes the detection time efficiency by 60 times.
[0051] In principle, if the number of DUT signal relationships continues to increase, for example, expanded to 128 groups (8 4 / 16 decoders) or 256 groups (17 4 / 16 decoders), the optimization effect of the present invention increases exponentially.
[0052] The beneficial effects of the present invention are summarized as follows:
[0053] 1) It adopts single-chip computer program control mode, the host computer controls through the serial port, and the relatively simple circuit form of controlling the relay through the 4 / 16 decoder optimizes the multi-line automatic electrical detection mode;
[0054] 2) The traversal query detection method is greatly optimized, and the optimized test time is 60 times that of the traversal query method (in the device of this embodiment, 60 is the number of lines to be tested, and the more the number, the more obvious the optimization effect).
[0055] 3) The traversal query detection method has been greatly optimized, and the utilization rate of the control circuit I / O port has been optimized by 8 times;
[0056] 4) The traversal query detection method has been greatly optimized, and the switch circuit switch tube efficiency has been optimized by 2 times;
[0057] 5) The relay integrated module is installed in a plug-in style, which makes it easy to replace the relay board;
[0058] 6) The test results are uploaded in a simple form of 2-bit binary code, providing four status indications (normal, short circuit, open circuit, wrong connection) of the current circuit under test and other circuits under test;
[0059] 7) A switch circuit interface is designed. The repeatability and replaceability of the switch circuit can make the circuit function more modular, and the expansion design can be carried out as needed. It can cope with the automated electrical testing of more dense lines, and has engineering promotion value and broad application.
[0060] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A cable detection device, characterized in that: The invention comprises a host computer, a control module, a drive module and a cable adapter, wherein the control module is connected to the drive module, and the drive module is connected to the cable to be tested through the cable adapter; the control module sends a selection signal to the drive module in sequence according to the detection instruction of the host computer; the drive module comprises a drive circuit and a plurality of switch circuits, the drive circuit sends and receives a selection signal from the control module to the plurality of switch circuits in sequence, the plurality of switch circuits are turned on in sequence according to the selection signal and the result signal is fed back to the control circuit through the drive circuit, and the control circuit feeds back the result signal to the host computer; the drive module comprises a drive circuit and a plurality of switch circuits, the drive circuit sends a selection signal to the switch circuit; each switch circuit comprises a MOS tube V3 and a double-contact relay J1, the selection signal is input to the G pole of the MOS tube V3, the G pole of the MOS tube V3 is connected to the resistor R3 and then to the ground GND, the MOS tube The S pole of V3 is connected to the capacitor C1 and then connected to the power supply VCC, the D pole of the MOS tube V3 is connected to the 1st pin of the double-contact relay J1, the 1st pin and the 8th pin of the double-contact relay J1 are respectively connected to the two ends of the reverse diode V1, the power supply VCC is connected to the 8th pin of the double-contact relay J1 through the resistor R1 and the light-emitting diode V2, the 3rd pin of the double-contact relay J1 is connected to the resistor R5 connected to the voltage VDD and one end of the capacitor C3, one end of the capacitor C3 is connected to the 2nd pin of the double-contact relay J1 and the analog ground AGND, the 4th and 6th pins of the double-contact relay J1 are respectively connected to the port 1 and the port 2 of the signal line N of the cable to be tested, the result signal POA and the result signal POB are respectively output from the 7th and 5th pins of the double-contact relay J1 to the drive circuit, the 8th pin of the double-contact relay J1 is connected in series with the diode V2 and then connected to the voltage VCC; the capacitor C3 is connected between the resistor R4 and the resistor R5; The selection signal is connected to ground GND through capacitor C2.
2. The cable detection device according to claim 1, characterized in that: The driving circuit includes a plurality of switch circuit interfaces, each of which is connected to a single switch circuit, a selection signal and a cable port to be tested are connected to the switch circuit via the switch circuit interface, and the driving circuit supplies power to the switch circuit via the switch circuit interface; The selection signal is input into the G pole of MOS tube V3 after passing through resistor R2, the 8th pin of double-contact relay J1 is connected to light-emitting diode V2 and then to power supply VCC, the 8th pin of double-contact relay J1 is connected in series with diode V2 and resistor R1 and then to voltage VCC; the 2nd pin of double-contact relay J1 is connected to resistor R4 and then to analog ground AGND.
3. The cable detection device according to claim 2, characterized in that: The control module includes a control single chip microcomputer, four 4 / 16 decoders, a serial port communicator, and a NOT gate. The control single chip microcomputer communicates with the host computer software through the serial port communicator, and the communication includes receiving detection instructions and feedback result signals; the control single chip microcomputer is connected to the 4 / 16 decoder to expand the I / 0 interface; the 4 / 16 decoder is connected to the NOT gate to isolate and output the selection signal.
4. The cable detection device according to claim 2, characterized in that: When the result signal POA=0, POB=0, the channel to be tested is open circuit; when the result signal POA=0, POB=1, the channel to be tested is misconnected with other channels; when the result signal POA=0, POB=1, the channel to be tested is normal; when the result signal POA=1, POB=1, the channel to be tested is short-circuited with other paths.
Citation Information
Patent Citations
Intelligent detection device and method for electric parameters of cable
CN106645973A
Cable detection device
CN214427590U