CN112986865B - Cable function detection method, circuit and detector - Google Patents

Cable function detection method, circuit and detector Download PDF

Info

Publication number
CN112986865B
CN112986865B CN202110394150.5A CN202110394150A CN112986865B CN 112986865 B CN112986865 B CN 112986865B CN 202110394150 A CN202110394150 A CN 202110394150A CN 112986865 B CN112986865 B CN 112986865B
Authority
CN
China
Prior art keywords
interface
pin
master controller
cable
correct
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.)
Active
Application number
CN202110394150.5A
Other languages
Chinese (zh)
Other versions
CN112986865A (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.)
Shenzhen Wisepower Innovation Technology Co ltd
Original Assignee
Shenzhen Wisepower Innovation Technology Co 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 Wisepower Innovation Technology Co ltd filed Critical Shenzhen Wisepower Innovation Technology Co ltd
Priority to CN202110394150.5A priority Critical patent/CN112986865B/en
Publication of CN112986865A publication Critical patent/CN112986865A/en
Application granted granted Critical
Publication of CN112986865B publication Critical patent/CN112986865B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/50Testing of electric apparatus, lines, cables or components for short-circuits, continuity, leakage current or incorrect line connections
    • G01R31/58Testing of lines, cables or conductors
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/50Testing of electric apparatus, lines, cables or components for short-circuits, continuity, leakage current or incorrect line connections
    • G01R31/52Testing for short-circuits, leakage current or ground faults
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/50Testing of electric apparatus, lines, cables or components for short-circuits, continuity, leakage current or incorrect line connections
    • G01R31/66Testing of connections, e.g. of plugs or non-disconnectable joints
    • G01R31/68Testing of releasable connections, e.g. of terminals mounted on a printed circuit board
    • G01R31/69Testing of releasable connections, e.g. of terminals mounted on a printed circuit board of terminals at the end of a cable or a wire harness; of plugs; of sockets, e.g. wall sockets or power sockets in appliances

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)
  • Testing Of Short-Circuits, Discontinuities, Leakage, Or Incorrect Line Connections (AREA)

Abstract

The application discloses a cable function detection method, a circuit and a detector, which are used for improving the accuracy of cable detection. The method comprises the following steps: the master controller determines that the first interface is connected with the first output interface; the main controller detects a first pin set of the first interface through the detection unit; the main controller requests the first charging protocol information and applies for different voltage gears; the main controller samples the voltage input to the third interface to obtain a first sampling result; the master controller judges whether the connection between the second pin set of the first interface and the third pin set of the third interface is correct or not; if the charging protocol is correct, the master controller requests a second charging protocol; the main controller samples the voltage input to the third interface to obtain a second sampling result; the main controller judges whether the connection between the CC1_ OUT pin of the first interface and the CC1 pin of the third interface is correct or not; if the correction is correct; the master controller detects whether the second interface set is short-circuited; if not, the master controller determines that the test is completed.

Description

Cable function detection method, circuit and detector
Technical Field
The application relates to the technical field of circuits, in particular to a cable function detection method, a system, a circuit and a detector.
Background
Along with the continuous development of scientific technology, electronic equipment has obtained extensive application in each field, need use the cable when charging electronic equipment, and the charging protocol that different electronic equipment used probably is different, and the cable that supports the multi-protocol is also more and more.
A cable for charging generally includes input interface and output interface, still is provided with the functional circuit board in some multi-interface cables, needs to detect the connectivity of cable when the production cable, and among the scheme that prior art provided, can only detect the connectivity of the cable that input interface and output interface directly link, is difficult to some cables that have the functional circuit board of accurate test, how accurate testing becomes the problem that awaits the solution to the connectivity of the cable of multi-interface.
Disclosure of Invention
In order to solve the above technical problem, a first aspect of the present application provides a method, a circuit and a detector for detecting a cable function.
A first aspect of the present application provides a method for detecting a cable function, where the method is applied to a cable function detector, the cable function detector is provided with a first interface, a second interface, and a third interface, the first interface is connected to the third interface, the first interface is used to connect a first output interface of a cable to be detected, and the second interface is used to connect a second output interface of the cable to be detected, and the method includes:
the master controller determines that the first interface is connected with the first output interface;
the main controller detects a first pin set of the first interface through a detection unit;
when the master controller detects that the first pin set is not short-circuited, the master controller requests first charging protocol information through a D2+ pin, a D2-pin and a CC1 pin in the third interface and applies for different voltage gears;
the main controller samples the voltage input into the third interface through a voltage sampling unit to obtain a first sampling result;
the master controller judges whether the connection between the second pin set of the first interface and the third pin set of the third interface is correct or not according to the first sampling result;
if the charging protocol is correct, the main controller requests a second charging protocol through a CC1 pin in the third interface; applying for different voltage gears;
the main controller samples the voltage input into the third interface through the voltage sampling unit to obtain a second sampling result;
the main controller judges whether the connection between the CC1_ OUT pin of the first interface and the CC1 pin of the third interface is correct or not according to the second sampling result;
if the correction is correct; the master controller detects whether a fourth pin set of the second interface is short-circuited;
if not, the master controller determines that the test is completed.
Optionally, the cable function detector is further provided with a fourth interface, where the fourth interface is used to be connected to a third output interface of the cable to be detected, and when the master controller determines that the fifth pin set is not short-circuited, before the master controller determines that the test is completed, the method further includes:
the master controller requests a third charging protocol through a D0+ pin and a D0-pin in the fourth interface, and samples the voltage input into the fourth interface to obtain a third sampling result;
the master controller judges whether a fifth pin set in the fourth interface is connected correctly according to the third sampling result;
and if the test result is correct, the master controller determines that the test is finished.
Optionally, before the master requests a third charging protocol through the D0+ pin and the D0 pin in the fourth interface, the method further includes:
the main controller closes the Q6 module and the Q7 module, and opens the Q6 module and the Q7 module again after a preset time interval, and the Q6 module and the Q7 module are used for controlling the communication state of the first interface.
Optionally, before the master requests the first charging protocol information through a D2+ pin, a D2-pin, and a CC1 pin in the third interface, the method further includes:
and the master controller controls the first interface to match the adapter connected with the cable to be detected.
Optionally, the first pin set includes: CC1 pin, CC2 pin, D + pin, D-pin, and Vbus pin.
Optionally, the second pin set includes: a D + pin, a D-pin, a Vbus pin and a GND pin; the third pin set includes: a D2+ pin, a D2-pin, a Vbus C1 pin, and a C1-pin.
Optionally, the fourth pin set includes: an L0+ pin, an L _ CC1 pin, a D1+ pin, a D1-pin, and an L-pin.
Optionally, the fifth pin set includes: a D0+ pin, a D0-pin, an M0+ pin, and an M-pin.
The second aspect of the present application provides a cable function detection circuit, including: the device comprises a main controller, a detection unit, a voltage sampling unit, a first interface, a second interface and a third interface which are mutually coupled, wherein the first interface is connected with the third interface, the first interface is used for connecting a first output interface of a cable to be detected, and the second interface is used for connecting a second output interface of the cable to be detected; the master controller is specifically configured to:
the master controller determines that the first interface is connected with the first output interface;
the main controller detects a first pin set of the first interface through a detection unit;
when the master controller detects that the first pin set is not short-circuited, the master controller requests first charging protocol information through a D2+ pin, a D2-pin and a CC1 pin in the third interface and applies for different voltage gears;
the main controller samples the voltage input into the third interface through a voltage sampling unit to obtain a first sampling result;
the master controller judges whether the connection between the second pin set of the first interface and the third pin set of the third interface is correct or not according to the first sampling result;
if the charging protocol is correct, the main controller requests a second charging protocol through a CC1 pin in the third interface; applying for different voltage gears;
the main controller samples the voltage input into the third interface through the voltage sampling unit to obtain a second sampling result;
judging whether the connection between the CC1_ OUT pin of the first interface and the CC1 pin of the third interface is correct or not according to the second sampling result;
if the result is correct; the master controller detects whether a fourth pin set of the second interface is short-circuited;
if not, the master controller determines that the test is completed.
A third party of the present application provides a cable function detector provided with the cable function detection circuit set forth in claim 9.
According to the technical scheme, the method has the following advantages:
according to the cable function detection method, when cables with multiple interfaces are detected, each interface of the cables to be detected can be detected independently, whether short circuit occurs in a circuit is judged, connectivity of pins of each interface can be detected, the accuracy of cable detection can be improved to a great extent, and the detection efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions in the present application, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a schematic flow chart diagram illustrating one embodiment of a cable function detection method provided herein;
FIG. 2 is a schematic flow chart diagram illustrating another embodiment of a cable function detection method provided in the present application;
FIG. 3 is a schematic diagram of an embodiment of a cable function detection circuit provided in the present application;
fig. 4 is a schematic structural diagram of an embodiment of a cable function detector provided in the present application.
Detailed Description
The cable for charging generally comprises an input interface and an output interface, a functional circuit board is further arranged in some multi-interface cables, the connectivity of the cable needs to be detected when the cable is produced, and in the scheme provided by the prior art, the connectivity of the cable directly connected with the input interface and the output interface can only be detected, some cables with the functional circuit board are difficult to accurately test, and how to accurately test the connectivity of the multi-interface cables becomes a problem to be solved urgently.
Based on the above, the application provides a cable function detection method, which is used for improving the accuracy of cable detection and improving the detection efficiency.
Referring to fig. 1, fig. 1 is a schematic flow chart of an embodiment of a cable function detection method provided in the present application, the cable function detection method includes:
101. the master controller determines that the first interface is connected with the first output interface;
the cable function detection method provided by the application is applied to a cable function detector, wherein a first interface, a second interface and a third interface are arranged in the cable function detector, the first interface is connected with the second interface, a plurality of interfaces are arranged in a cable to be detected, the cable to be detected comprises but is not limited to a first output interface and a second output interface, the first interface can be a Type-C4 interface, the second interface can be a lightning interface, and the third interface can be a Type-C1 interface. When treating and detect the cable and examine time measuring, first interface links to each other with first output interface, the second interface links to each other with second output interface, be provided with power supply unit in the cable function detector that this application provided, can independently supply power for the detector, main controller in the detector confirms first interface and first output interface connection back, begin to detect to waiting to detect the cable, it specifically can detect the interrupt through the P17 pin in the main controller, it has equipment to insert to confirm first interface, the main controller closes Q6, Q7, Q3 and Q4 module, when examining, the main controller can control D13 and D14 emitting diode and carry out alternate scintillation.
102. The main controller detects the first pin set of the first interface through the detection unit;
the master controller detects a first pin set of the first interface through a detection unit, and the detection unit is configured to detect whether a short circuit occurs in the first pin set, where the first pin set may include: the pin CC1, the pin CC2, the pin D + and the pin D-and Vbus may be detected through the pin P05, and if a short circuit occurs (NG, no Go), step 111 is executed to stop the test and indicate through the light emitting diodes D13 and D14. If the short circuit does not occur, the connection of the first pin set is normal, and the next detection can be carried out.
103. When the main controller detects that the first pin set is not short-circuited, the main controller requests first charging protocol information through a D2+ pin, a D2-pin and a CC1 pin in a third interface and applies for different voltage gears;
and if the first pin set is not short-circuited, the main controller detects the pins in the third interface, and the main controller requests first charging protocol information through a D2+ pin, a D2-pin and a CC1 pin in the third interface and applies for different voltage gears, so that the cable to be detected inputs different voltages to the third interface. And further detecting the connectivity of the third interface.
Before requesting the first charging protocol, the master controller may further control the first interface to match the adapter connected to the cable to be detected.
104. The main controller samples the voltage input into the third interface through the voltage sampling unit to obtain a first sampling result;
the main controller samples the voltage input to the third interface through the voltage sampling unit to obtain a first sampling result.
105. The main controller judges whether the connection between the second pin set of the first interface and the third pin set of the third interface is correct or not according to the first sampling result; if correct, execute step 106, if incorrect, stop the test;
the master determines whether the connection between the second pin set in the first interface and the third pin set in the third interface is correct according to the first sampling result, where the second pin set may include: a D + pin, a D-pin, a Vbus pin and a GND pin; the third pin set may include: a D2+ pin, a D2-pin, a Vbus C1 pin, and a C1-pin.
If the connection is correct, the next detection is made, and if the connection is incorrect (NG, no Go), step 111 is executed, the test is stopped and indicated by means of the D13 and D14 leds.
106. The main controller requests a second charging protocol through a CC1 pin in a third interface; applying for different voltage gears;
the main controller requests a second charging protocol through a CC1 pin in the third interface, and can apply for different voltage gears, so that the cable to be detected inputs different voltages to the third interface.
107. The main controller samples the voltage input into the third interface through the voltage sampling unit to obtain a second sampling result;
the main controller samples the voltage input to the third interface through the voltage sampling unit to obtain a second sampling result.
108. The main controller judges whether the connection between the CC1_ OUT pin of the first interface and the CC1 pin of the third interface is correct or not according to the second sampling result; if correct, execute step 109, if incorrect, stop the test;
and the main controller judges whether the connection between the CC1 OUT pin of the first interface and the CC1 pin of the third interface is correct or not according to the second sampling result. If it is correct, the next test is performed, and if the connection is incorrect (NG, no Go), step 111 is performed to stop the test.
109. The master controller detects whether a fourth pin set of the second interface is short-circuited; if not, executing step 110, and if short-circuiting, stopping testing;
the master controller simulates to remove the first interface and simulates to insert the second interface by opening G2, and detects whether a short circuit occurs in a fourth pin set of the second, wherein the fourth pin set can comprise an L0+ pin, an L _ CC1 pin, a D1+ pin, a D1-pin and an L-pin.
110. If not, the master controller determines that the test is completed.
If not, the test is determined to be complete.
111. The master controller stops detecting the cable to be detected and controls the indicator light to flicker.
In the process of detecting the cable to be detected, if NG occurs at any stage, the test program can be jumped out, the detection is stopped, and indication is carried out through D13 and D14, or printing is carried out by using a serial port.
According to the cable function detection method, when cables with multiple interfaces are detected, each interface of the cables to be detected can be detected independently, whether short circuit occurs in a circuit is judged, connectivity of pins of each interface can be detected, the accuracy of cable detection can be improved to a great extent, and the detection efficiency is improved.
In practical application, not only two types of interfaces can be detected, but also three or more types of interfaces can be detected, for example, a third output interface is further arranged in the cable to be detected, the third output interface can be a micro interface, and when the detection is performed, the third output interface is connected with a fourth interface in the cable function detector, which will be described in detail below with reference to the attached drawings.
Referring to fig. 2, fig. 2 is a schematic flow chart of an embodiment of a cable function detection method provided in the present application, where the cable function detection method includes:
201. the master controller determines that the first interface is connected with the first output interface;
202. the main controller detects a first pin set of the first interface through the detection unit;
203. when the main controller detects that the first pin set is not short-circuited, the main controller requests first charging protocol information through a D2+ pin, a D2-pin and a CC1 pin in a third interface and applies for different voltage gears;
204. the main controller samples the voltage input into the third interface through the voltage sampling unit to obtain a first sampling result;
205. the main controller judges whether the connection between the second pin set of the first interface and the third pin set of the third interface is correct or not according to the first sampling result;
206. if the charging is correct, the main controller requests a second charging protocol through a CC1 pin in a third interface; applying for different voltage gears;
207. the main controller samples the voltage input to the third interface through the voltage sampling unit to obtain a second sampling result;
208. the main controller judges whether the connection between the CC1_ OUT pin of the first interface and the CC1 pin of the third interface is correct or not according to the second sampling result;
steps 201 to 208 in this embodiment are similar to steps 101 to 108 in the previous embodiment, and are not described again.
209. If the result is correct; the master controller detects whether a fourth pin set of the second interface is short-circuited;
210. the master controller requests a third charging protocol through a D0+ pin and a D0-pin in the fourth interface, and samples the voltage input into the fourth interface to obtain a third sampling result;
211. the main controller judges whether the fifth pin set in the fourth interface is connected correctly according to the third sampling result; if so, go to step 212, and if not, stop the test.
In practical application, the cable to be detected may further include a third output interface, the third output interface is connected to a fourth interface of the cable function detector, the master controller may request a third charging protocol through a D0+ pin and a D0-pin in the fourth interface, and request different voltage steps, so that the cable to be detected inputs different voltages to the fourth interface, the master controller samples the voltage of the fourth interface through the voltage sampling unit to obtain a third sampling result, and then determines whether a fifth pin set in the fourth interface is correctly connected, where the fifth pin set may include the D0+ pin, the D0-pin, the M0+ pin, and the M-pin.
212. If the test is correct, the master controller determines that the test is finished;
213. the test was stopped.
It can be clearly understood by those skilled in the art that, by using the cable function detection method provided in the present application, it is obviously conceivable to apply the method to other tests including more or different types of cables to be detected, and detect each interface of the cables to be detected separately, thereby improving the detection accuracy and the detection efficiency.
The above-mentioned embodiments describe the cable function detection method provided in the present application in detail, and the following describes the cable function detector and the cable function detection circuit provided in the present application.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a cable function detection circuit according to an embodiment of the present application, the cable function detection circuit includes:
the cable detection device comprises a main controller S1, a detection unit S2, a voltage sampling unit S3, a first interface S4, a second interface S5 and a third interface S6 which are mutually coupled, wherein the first interface S4 is connected with the third interface S6, the first interface S4 is used for connecting a first output interface of a cable to be detected, and the second interface is used for connecting a second output interface of the cable to be detected; the master controller S1 is specifically configured to:
the master controller S1 determines that the first interface S4 is connected with the first output interface;
the main controller S1 detects a first pin set of the first interface S4 through a detection unit S2;
when the master controller S1 detects that the first pin set is not short-circuited, the master controller S1 requests first charging protocol information through a D2+ pin, a D2-pin and a CC1 pin in the third interface S6 and applies for different voltage gears;
the main controller S1 samples the voltage input to the third interface S6 through the voltage sampling unit S3 to obtain a first sampling result;
the master controller S1 judges whether the connection between the second pin set of the first interface S4 and the third pin set of the third interface S6 is correct or not according to the first sampling result;
if the charging is correct, the master controller S1 requests a second charging protocol through a CC1 pin in the third interface S6; applying for different voltage gears;
the master controller S1 samples the voltage input into the third interface S6 through the voltage sampling unit S3 to obtain a second sampling result;
judging whether the connection between the CC1_ OUT pin of the first interface S4 and the CC1 pin of the third interface S6 is correct or not according to the second sampling result;
if the correction is correct; the master controller S1 detects whether the fourth pin set of the second interface S5 is short-circuited;
if not, the master controller S1 determines that the test is completed.
Optionally, the cable function detector is further provided with a fourth interface S7, the fourth interface S7 is configured to be connected to a third output interface of the cable to be detected, when the master controller S1 determines that the fifth pin set is not short-circuited, before the master controller S1 determines that the test is completed, the master controller S1 is further configured to:
the master controller S1 requests a third charging protocol through a D0+ pin and a D0-pin in the fourth interface S7, and samples the voltage input into the fourth interface S7 to obtain a third sampling result;
the master controller S1 judges whether the fifth pin set in the fourth interface S7 is connected correctly according to the third sampling result;
and if the test result is correct, the master controller S1 determines that the test is finished.
Optionally, the master controller S1 is further configured to:
the main controller S1 closes the Q6 module Q6 and the Q7 module Q6, and reopens the Q6 module Q6 and the Q7 module Q7 after a preset time interval, and the Q6 module and the Q7 module are used for controlling the communication state of the first interface.
Optionally, the master controller S1 is further configured to:
and the master controller controls the first interface S4 to match the adapter connected with the cable to be detected.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an embodiment of a cable function detector provided in the present application, and the cable function detector is provided with a cable function detection circuit in the embodiment corresponding to fig. 3.
It can be clearly understood by those skilled in the art that, for convenience and simplicity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in the form of hardware, or may also be implemented in the form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like.

Claims (8)

1. A cable function detection method is applied to a cable function detector, the cable function detector is provided with a first interface, a second interface and a third interface, the first interface is connected with the third interface, the first interface is used for connecting a first output interface of a cable to be detected, the second interface is used for connecting a second output interface of the cable to be detected, and the method comprises the following steps:
the master controller determines that the first interface is connected with the first output interface;
the main controller detects a first pin set of the first interface through a detection unit;
when the master controller detects that the first pin set is not short-circuited, the master controller requests first charging protocol information through a D2+ pin, a D2-pin and a CC1 pin in the third interface and applies for different voltage gears;
the main controller samples the voltage input to the third interface through a voltage sampling unit to obtain a first sampling result;
the master controller judges whether the connection between the second pin set of the first interface and the third pin set of the third interface is correct or not according to the first sampling result;
if the charging is correct, the main controller requests a second charging protocol through a CC1 pin in the third interface; applying for different voltage gears;
the main controller samples the voltage input to the third interface through a voltage sampling unit to obtain a second sampling result;
the main controller judges whether the connection between the CC1_ OUT pin of the first interface and the CC1 pin of the third interface is correct or not according to the second sampling result;
if the result is correct; the master controller detects whether a fourth pin set of the second interface is short-circuited;
the cable function detector is also provided with a fourth interface, and the fourth interface is used for being connected with a third output interface of the cable to be detected;
if the short circuit does not occur, the main controller closes the Q6 module and the Q7 module, and reopens the Q6 module and the Q7 module after a preset time interval, wherein the Q6 module and the Q7 module are used for controlling the communication state of the first interface;
the master controller requests a third charging protocol through a D0+ pin and a D0-pin in the fourth interface, and samples the voltage input into the fourth interface to obtain a third sampling result;
the master controller judges whether a fifth pin set in the fourth interface is correctly connected according to the third sampling result;
and if the test result is correct, the master controller determines that the test is finished.
2. The cable function detection method of claim 1, wherein before the master requests the first charging protocol information through a D2+ pin, a D2-pin, and a CC1 pin in the third interface, the method further comprises:
and the master controller controls the first interface to match the adapter connected with the cable to be detected.
3. The cable function detection method of claim 1, wherein the first pin set comprises: CC1 pin, CC2 pin, D + pin, D-pin, and Vbus pin.
4. The cable function detection method of claim 1, wherein the second pin set comprises: a D + pin, a D-pin, a Vbus pin and a GND pin; the third pin set includes: a D2+ pin, a D2-pin, a Vbus C1 pin, and a C1-pin.
5. The cable function detection method of claim 1, wherein the fourth pin set comprises: an L0+ pin, an L _ CC1 pin, a D1+ pin, a D1-pin, and an L-pin.
6. The cable function detection method of claim 1, wherein the fifth set of pins comprises: a D0+ pin, a D0-pin, an M0+ pin, and an M-pin.
7. A cable function detection circuit, comprising: the device comprises a main controller, a detection unit, a voltage sampling unit, a first interface, a second interface and a third interface which are coupled with each other, wherein the first interface is connected with the third interface, the first interface is used for connecting a first output interface of a cable to be detected, and the second interface is used for connecting a second output interface of the cable to be detected; the master controller is specifically configured to:
the master controller determines that the first interface is connected with the first output interface;
the main controller detects a first pin set of the first interface through a detection unit;
when the master controller detects that the first pin set is not short-circuited, the master controller requests first charging protocol information through a D2+ pin, a D2-pin and a CC1 pin in the third interface and applies for different voltage gears;
the main controller samples the voltage input to the third interface through a voltage sampling unit to obtain a first sampling result;
the master controller judges whether the connection between the second pin set of the first interface and the third pin set of the third interface is correct or not according to the first sampling result;
if the charging is correct, the master controller requests a second charging protocol through a CC1 pin in the third interface; applying for different voltage gears;
the main controller samples the voltage input into the third interface through a voltage sampling unit to obtain a second sampling result;
judging whether the connection between the CC1_ OUT pin of the first interface and the CC1 pin of the third interface is correct or not according to the second sampling result;
if the result is correct; the master controller detects whether a fourth pin set of the second interface is short-circuited;
the cable function detector is also provided with a fourth interface, and the fourth interface is used for being connected with a third output interface of the cable to be detected;
if the short circuit does not occur, the main controller closes the Q6 module and the Q7 module, and reopens the Q6 module and the Q7 module after a preset time interval, wherein the Q6 module and the Q7 module are used for controlling the communication state of the first interface;
the master controller requests a third charging protocol through a D0+ pin and a D0-pin in the fourth interface, and samples the voltage input into the fourth interface to obtain a third sampling result;
the master controller judges whether a fifth pin set in the fourth interface is connected correctly according to the third sampling result;
and if the test result is correct, the master controller determines that the test is finished.
8. A cable function detector provided with the cable function detection circuit as claimed in claim 7.
CN202110394150.5A 2021-04-13 2021-04-13 Cable function detection method, circuit and detector Active CN112986865B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110394150.5A CN112986865B (en) 2021-04-13 2021-04-13 Cable function detection method, circuit and detector

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110394150.5A CN112986865B (en) 2021-04-13 2021-04-13 Cable function detection method, circuit and detector

Publications (2)

Publication Number Publication Date
CN112986865A CN112986865A (en) 2021-06-18
CN112986865B true CN112986865B (en) 2023-01-31

Family

ID=76338118

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110394150.5A Active CN112986865B (en) 2021-04-13 2021-04-13 Cable function detection method, circuit and detector

Country Status (1)

Country Link
CN (1) CN112986865B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114624635B (en) * 2022-05-17 2023-07-25 陕西天视致远航空技术有限公司 Plug detection system and method of VGA display interface and electronic equipment

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105071484B (en) * 2015-08-25 2018-11-20 广东欧珀移动通信有限公司 A kind of charging method and device of the terminal with data exchanging function
CN204945296U (en) * 2015-09-08 2016-01-06 长沙市博巨兴电子科技有限公司 A kind of cellular phone data line tester
CN105161941B (en) * 2015-09-10 2017-10-20 深圳玛卡智能系统有限公司 The quick charge cable and quick charger of single input and multi-output
CN105911417A (en) * 2016-06-12 2016-08-31 山东神戎电子股份有限公司 Testing device of testing on and off and correctness of cable and method thereof
CN106154089B (en) * 2016-08-19 2023-06-06 成都智朴思互联科技有限公司 Portable intelligent charging quality testing system and method
CN206248724U (en) * 2016-08-19 2017-06-13 成都智朴思互联科技有限公司 The impedance test system and mancarried device of a kind of USB cable
CN107064682A (en) * 2017-04-20 2017-08-18 北京小米移动软件有限公司 Assembly detection apparatus
CN207965023U (en) * 2018-03-23 2018-10-12 东莞市毅林电线科技有限公司 A kind of All-in-One data line adapter device for quick testing
CN210894648U (en) * 2019-08-27 2020-06-30 成都天衡仪器设备有限公司 Wire rod comprehensive testing machine
CN210894633U (en) * 2019-09-30 2020-06-30 深圳市昂盛达电子有限公司 Power supply function testing device

Also Published As

Publication number Publication date
CN112986865A (en) 2021-06-18

Similar Documents

Publication Publication Date Title
DE60100754T2 (en) SYSTEM AND METHOD FOR TESTING SIGNAL CONNECTIONS USING A BUILT-IN SELF-TEST FUNCTION
CN109143033B (en) Automatic testing system for whole satellite interface
CN104237699B (en) A kind of USB interface communication test system and method
CN109298266B (en) Test system, test method, test apparatus, and storage medium
CN104932962B (en) A kind of USB plugs test system and its method
CN111858197A (en) Device, system and method for supporting multiple SSD tests
CN103698686A (en) Signal testing method and signal testing equipment
CN112986865B (en) Cable function detection method, circuit and detector
CN111044879A (en) Method and system for quickly positioning fault position of physical interface of main board
CN113014339B (en) Quality test method, device and equipment for PCIe external plug-in card receiving channel
CN108346404A (en) A kind of sequence controller and the parameter testing method for shielding driving circuit
CN110579701A (en) Method for detecting pin connectivity of integrated chip
CN110824387B (en) Device and method for detecting cable connection
US20100057393A1 (en) Apparatuses and methods for determining configuration of sas and sata cables
US10613963B2 (en) Intelligent packet analyzer circuits, systems, and methods
CN207318605U (en) Automobile bus radiated immunity test system
CN211123056U (en) Avionics test system
CN111402771A (en) Detection equipment for display driving chip and display module
CN103529285A (en) Test equipment for automatically detecting power consumption of PCIE (Peripheral Component Interface Express) equipment
CN109542710A (en) A kind of signal testing jig and signal testing method
CN116094547A (en) High-speed cable testing system and method
CN115904849A (en) PCIE link signal test method, system, computer equipment and medium
TW202022608A (en) Device and method for testing a computer system
CN103033767A (en) Test method and test device for central processing unit parameters
CN113281639A (en) Board card testing device, system and method

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