Detection circuit and detection method of connector

By setting resistors and comparison modules on both sides of the male and female connectors, the connection direction is detected and the signal transmission path is automatically adjusted, solving the problem of needing to confirm the insertion direction in the prior art. This achieves adaptive connection of the connector in both directions, improving production efficiency and safety.

CN121276401APending Publication Date: 2026-01-06CHINA FAW CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511700927.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-19
Publication Date
2026-01-06

AI Technical Summary

Technical Problem

Existing board-to-board connectors require confirmation of the male and female orientations before insertion, resulting in low production efficiency and a high risk of reverse connection leading to circuit damage.

Method used

By setting resistors and comparison modules on both sides of the male and female connectors, the connection direction is detected, and the signal transmission path is automatically adjusted by the switching module to achieve adaptive connection of the connector in either direction.

Benefits of technology

It enables "blind mating" without distinguishing the connector orientation during insertion, greatly improving production and assembly efficiency and avoiding circuit damage caused by reverse connection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121276401A_ABST
    Figure CN121276401A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a detection circuit and a detection method of a connector, the detection circuit comprises a male head connector module and a female head connector module, the male head connector module comprises a male head connector, a first resistor and a second resistor, and the male head connector is connected with the first resistor and the second resistor; the female connector module comprises a female connector, a third resistor, a fourth resistor, a switching module and a comparison module. The female connector is connected with the third resistor, the fourth resistor, the comparison module and the switching module. Under the condition that the male head connector is connected with the female head connector, the comparison module is used for comparing the voltage of the same-direction input end and the voltage of the reverse-direction input end to obtain an output result, the switching module is controlled to switch according to the output result, the plugging directions of the male head and the female head of the connector do not need to be distinguished when the connector is plugged, blind plugging can be realized, and the plugging efficiency is improved. And the production and assembly efficiency of products is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of hardware circuit technology, and more specifically, to a detection circuit and detection method for a connector. Background Technology

[0002] In modern electronic circuits, connectors typically play a crucial role as the physical carriers of electrical signals. Taking the commonly used board-to-board connector as an example, it allows two independent hardware circuit boards to be stacked together, enabling the miniaturization of electronic products. A board-to-board connector generally consists of two parts: a male and a female connector, which are soldered onto the two circuit boards respectively, and the required electrical signals are led out to their corresponding pins. When the male and female connectors are mated, the corresponding signals between the two circuit boards can be interconnected.

[0003] In practical applications, the male and female connectors of board-to-board connectors must be connected in a specific orientation, such as pin 1 of the male connector corresponding to pin 1 of the female connector, to ensure that all pins of the connector correspond one-to-one. If either the male or female connector is rotated 180° before insertion, the male and female connectors will be reversed. In this case, not only will the original signal transmission on the connector be unable to be satisfied, but it may also cause two signals with different voltage domains to connect to each other, resulting in damage to circuit components.

[0004] Currently, board-to-board connectors with directional limits are used. These connectors use structural limits on the male and female connector housings to ensure that they can only be inserted when the male and female connectors are correctly aligned. If the alignment is incorrect, the connector limits will cause assembly interference, preventing the male and female connectors from being inserted. For connectors without directional limits, the insertion direction is usually indicated on the circuit board or an assembly guide mechanism is added to the product structure. While these methods can prevent reverse connection to some extent, the orientation of the male and female connectors must be confirmed before insertion, which significantly increases product assembly time and affects production efficiency. Summary of the Invention

[0005] The purpose of some embodiments of this application is to provide a connector detection circuit and detection method. Through the technical solutions of the embodiments of this application, the connector detection circuit includes a male connector module and a female connector module. The male connector module includes a male connector, a first resistor, and a second resistor, with the male connector connected to both the first and second resistors. The female connector module includes a female connector, a third resistor, a fourth resistor, a switching module, and a comparison module, with the female connector connected to the third resistor, the fourth resistor, the comparison module, and the switching module. When the female connector is connected, the comparison module is used to compare the voltages of the non-inverting input terminal and the reverse input terminal to obtain the output result. Based on the output result, the switching module is controlled to switch. In this embodiment, by setting corresponding driving and control circuits on both sides of the male and female connectors, the connector insertion direction can be detected after the male and female connectors are plugged in, and the signal switching switch is controlled to switch the signal to the corresponding connector pin, realizing adaptive connection of the connector in both directions. When the connector is plugged in, there is no need to distinguish the insertion direction of the male and female connectors, which can realize "blind plugging", which greatly improves the efficiency of product production and assembly.

[0006] In a first aspect, some embodiments of this application provide a connector detection circuit, including: a male connector module and a female connector module, wherein the male connector module includes a male connector, a first resistor and a second resistor, and the male connector is connected to the first resistor and the second resistor respectively; The female connector module includes a female connector, a third resistor, a fourth resistor, a switching module, and a comparison module. The female connector is connected to the third resistor, the fourth resistor, the comparison module, and the switching module, respectively. When the male connector and the female connector are plugged in, the comparison module is used to compare the voltage at the non-inverting input terminal and the voltage at the inverting input terminal to obtain a control signal, and control the switching module to switch according to the control signal. The voltage at the non-inverting input terminal and the voltage at the inverting input terminal are determined according to the fifth resistor, the sixth resistor, the first resistor, the second resistor, and the fourth resistor.

[0007] Some embodiments of this application provide corresponding drive and control circuits on both sides of the male and female connectors. When the male and female connectors are plugged in, the plugging direction can be detected, and the signal switching switch can be controlled to switch the signal to the corresponding connector pin, so as to realize the adaptive connection of the connector in both directions. When plugging in the connector, there is no need to distinguish the plugging direction of the male and female connectors, which can realize "blind plugging", which greatly improves the efficiency of product production and assembly.

[0008] Optionally, the first end of the first resistor is connected to the first preset end of the male connector, and the second end of the first resistor is connected to the first power supply end; the first end of the second resistor is connected to the second preset end of the male connector, and the second end of the second resistor is connected to the first power supply end. Optionally, the third preset terminal of the female connector is connected to the first terminal of the third resistor, and the second terminal of the third resistor is connected to ground; The fourth preset terminal of the female connector is connected to the first terminal of the fourth resistor, and the second terminal of the fourth resistor is connected to ground. Some embodiments of this application have resistors provided at both ends of the male connector and the female connector to divide the voltage and input it to the comparator.

[0009] Optionally, the fourth preset terminal of the female connector is connected to the inverting input terminal of the comparison module, the non-inverting input terminal of the comparison module is connected to the first terminal of the fifth resistor and the first terminal of the sixth resistor, the second terminal of the fifth resistor is connected to the first voltage source, and the second terminal of the sixth resistor is connected to ground.

[0010] In some embodiments of this application, a comparator connected to a resistor is used to calculate the voltage values ​​at the non-inverting input and the inverting input respectively, output a control signal, and then determine the connection direction of the female connector and the male connector. Optionally, the switching module is a two-to-one switching switch.

[0011] Optionally, the output terminal of the comparison module is connected to the enable terminal of the switching module, the first to nth terminals of the female connector are respectively connected to the first terminals of the multiple switching modules, and the nth to first terminals of the female connector are respectively connected to the second terminals of the multiple switching modules.

[0012] In some embodiments of this application, a two-to-one switch is set, and the middle pins of the female connector are connected to the two-to-one switch respectively. In this way, the connection pins of the female connector can be switched according to the connection method of the female connector and the male connector.

[0013] Optionally, the first end of the third resistor is also connected to a detection end, which is used to determine the connection method of the female connector and the male connector, including forward connection or reverse connection.

[0014] Some embodiments of this application also include a detection terminal, which can determine the connection method of the female connector and the male connector based on the voltage value of the detection terminal.

[0015] Secondly, some embodiments of this application provide a connector detection method, applied to the detection circuit of any of the connectors described in the first aspect, the method comprising: When the male and female connectors are plugged in, the first voltage value at the non-inverting input terminal and the second voltage value at the inverting input terminal of the comparator are acquired. The first voltage value and the second voltage value are judged to obtain a control signal, and the switching module is switched according to the control signal.

[0016] In this embodiment, when the male and female connectors are plugged in, the voltage value at the input of the comparator is collected and compared to obtain a control signal. The switching module is then switched according to the control signal to the corresponding connector pin, realizing adaptive connection of the connector in both directions. There is no need to distinguish the male and female plug directions when plugging in the connectors, which can achieve "blind plugging" and greatly improve the efficiency of product production and assembly.

[0017] Optionally, the first voltage value at the non-inverting input and the second voltage value at the inverting input of the acquisition comparator include: Determine the first voltage value at the non-inverting input terminal based on the fifth and sixth resistors; The second voltage value at the inverting input terminal is determined based on the second and fourth resistors or based on the first and fourth resistors.

[0018] Optionally, the method further includes: Calculate the voltage value at the detection terminal based on the first resistor, the second resistor, and the third resistor; Based on the voltage value at the detection terminal, the connection status of the female connector and the male connector is determined, and the connection status includes forward connection or reverse connection. Attached Figure Description To more clearly illustrate the technical solutions of some embodiments of this application, the accompanying drawings used in some embodiments of this application will be briefly described below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 A schematic diagram of the structure of a connector detection circuit provided in an embodiment of this application; Figure 2 This is a schematic diagram of the detection circuit of another connector provided in an embodiment of this application. Detailed Implementation

[0020] The technical solutions of some embodiments of this application will now be described with reference to the accompanying drawings.

[0021] It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. Furthermore, in the description of this application, terms such as "first," "second," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0022] In modern electronic circuits, connectors typically play a crucial role as the physical carriers of electrical signals. Taking the commonly used board-to-board connector as an example, it allows two independent hardware circuit boards to be stacked together, enabling the miniaturization of electronic products. A board-to-board connector generally consists of two parts: a male and a female connector, which are soldered onto the two circuit boards respectively, and the required electrical signals are led out to their corresponding pins. When the male and female connectors are mated, the corresponding signals between the two circuit boards can be interconnected.

[0023] In practical applications, the male and female connectors of board-to-board connectors must be connected in a specific orientation, such as pin 1 of the male connector corresponding to pin 1 of the female connector, to ensure that all pins of the connector correspond one-to-one. If either the male or female connector is rotated 180° before insertion, the male and female connectors will be reversed. In this case, not only will the original signal transmission on the connector be unable to be satisfied, but it may also cause two signals with different voltage domains to connect to each other, resulting in damage to circuit components.

[0024] Currently, board-to-board connectors with directional limits are used. These connectors use structural limits on the male and female connector housings to ensure that they can only be inserted when the male and female connectors are correctly aligned. If the alignment is incorrect, the connector limits cause assembly interference, preventing the male and female connectors from being inserted. For connectors without directional limits, insertion direction markings are typically added to the circuit board, or assembly guide mechanisms are added to the product structure. While these methods can prevent reverse connection to some extent, the male and female connector orientations must be confirmed before insertion, which significantly increases product assembly time and affects production efficiency. Therefore, some embodiments of this application provide a connector detection circuit. This connector detection circuit includes a male connector module and a female connector module. The male connector module includes a male connector, a first resistor, and a second resistor; the male connector is connected to the first and second resistors respectively. The female connector module includes a female connector, a third resistor, a fourth resistor, a switching module, and a comparison module. The comparison module and the female connector are respectively connected to the third resistor, the fourth resistor, the comparison module, and the switching module. When the male connector and the female connector are connected, the comparison module is used to compare the voltages of the non-inverting input terminal and the inverting input terminal to obtain the output result. Based on the output result, the switching module is controlled to switch. In this embodiment, by setting corresponding drive and control circuits on both sides of the male and female connectors, when the male and female connectors are plugged in, the connector plugging direction can be detected, and the signal switching switch can be controlled to switch the signal to the corresponding connector pin, realizing the adaptive connection of the connector for both positive and negative plugging. When plugging in the connector, there is no need to distinguish the plugging direction of the male and female connectors, which can realize "blind plugging", which greatly improves the efficiency of product production and assembly.

[0025] like Figure 1 As shown, an embodiment of this application provides a connector detection circuit, which includes a male connector module 10 and a female connector module 20. The male connector module 10 includes a male connector, a first resistor R1 and a second resistor R2, and the male connector is connected to the first resistor and the second resistor respectively. The female connector module 20 includes a female connector, a third resistor R3, a fourth resistor R4, a switching module, and a comparison module. The female connector is connected to the third resistor R3, the fourth resistor R4, the comparison module, and the switching module, respectively. When the male and female connectors are plugged in, the comparison module is used to compare the voltage at the non-inverting input terminal and the voltage at the inverting input terminal to obtain a control signal. The switching module is then controlled to switch according to the control signal. The voltage at the non-inverting input terminal and the voltage at the inverting input terminal are determined based on the fifth resistor R5, the sixth resistor R6, the first resistor R1, the second resistor R2, and the fourth resistor R4.

[0026] Some embodiments of this application provide corresponding drive and control circuits on both sides of the male and female connectors. When the male and female connectors are plugged in, the plugging direction can be detected, and the signal switching switch can be controlled to switch the signal to the corresponding connector pin, so as to realize the adaptive connection of the connector in both directions. When plugging in the connector, there is no need to distinguish the plugging direction of the male and female connectors, which can realize "blind plugging", which greatly improves the efficiency of product production and assembly.

[0027] Another embodiment of this application further illustrates the detection circuit of the connector provided in the above embodiments.

[0028] Optionally, the first end of the first resistor R1 is connected to the first preset end C1 of the male connector, and the second end of the first resistor R1 is connected to the first power supply terminal 3V3; the first end of the second resistor R2 is connected to the second preset end C2 of the male connector, and the second end of the second resistor R2 is connected to the first power supply terminal 3V3. Optionally, the third preset terminal C1 of the female connector is connected to the first terminal of the third resistor R3, and the second terminal of the third resistor R3 is connected to ground; The fourth preset terminal C2 of the female connector is connected to the first terminal of the fourth resistor R4, and the second terminal of the fourth resistor R4 is connected to ground. The connector detection circuit provided in this application embodiment includes two parts: a male connector circuit (male connector module) and a female connector circuit (female connector module). The male connector circuit consists of a male connector, resistors R1 and R2, and the female connector circuit consists of a female connector, resistors R3, R4, R5, R6, a comparator, and a two-to-one selector switch.

[0029] For the male connector circuit, C1 and C2 are the first and last pins of the male connector, respectively. C1 is connected to resistor R1, and C2 is connected to resistor R2, used to output drive signals to the female connector circuit. P1 to Pn are intermediate pins between C1 and C2, which are connected to the circuit signals S1 to Sn to be transmitted, respectively.

[0030] For the female connector circuit, C1 and C2 are the first and last pins of the female connector, respectively. Some embodiments of this application have resistors provided at both ends of the male connector and the female connector to divide the voltage and input it to the comparator.

[0031] Optionally, the fourth preset terminal of the female connector is connected to the inverting input terminal of the comparator module, the non-inverting input terminal of the comparator module is connected to the first terminal of the fifth resistor and the first terminal of the sixth resistor, the second terminal of the fifth resistor is connected to the first voltage source, and the second terminal of the sixth resistor is connected to ground.

[0032] In some embodiments of this application, a comparator connected to a resistor is used to calculate the voltage values ​​at the non-inverting input and the inverting input respectively, output a control signal, and then determine the connection direction of the female connector and the male connector. Optionally, the switching module is a two-to-one toggle switch.

[0033] Optionally, the output terminal of the comparison module is connected to the enable terminal of the switching module, the first to the nth terminals of the female connector are respectively connected to the first terminals of multiple switching modules, and the nth to the first terminals of the female connector are respectively connected to the second terminals of multiple switching modules.

[0034] The male connector's P1 to Pn pins are intermediate pins between C1 and C2, which are connected to the circuit signals S1 to Sn to be transmitted, respectively.

[0035] In the female connector module, C1 is connected to resistor R3, and C2 is connected to resistor R4 and the inverting input of the comparator. The 3.3V power supply is divided by resistors R5 and R6 and then connected to the non-inverting input of the comparator. The output signal of the comparator is connected to the switch control pin oe (enable terminal of the switching module) of the 2-to-1 switch 1 to 2-to-1 switch n. The connector pins P1 to Pn are connected to pins a and b of the 2-to-1 switch 1 to n, and the required transmission signals S1 to Sn are connected to the signal pin c of the 2-to-1 switch 1 to n.

[0036] In other words, when the female and male connectors are plugged in, the default two-way switch pins A and C are as follows: Figure 2 As shown, the comparator simultaneously acquires the first voltage value at the non-inverting input terminal and the second voltage value at the inverting input terminal, compares the first voltage value and the second voltage value, and then determines whether the current connection method is correct. If the female connector circuit cannot acquire the information transmitted by the male connector circuit, it indicates that the current connection method is incorrect. Then the comparator outputs a control signal to control the enable terminal of the two-to-one switch to operate, so that it switches from pin a and pin c to pin b and pin c.

[0037] In some embodiments of this application, a two-to-one switch is set, and the middle pins of the female connector are connected to the two-to-one switch respectively. In this way, the connection pins of the female connector can be switched according to the connection method of the female connector and the male connector.

[0038] Optionally, the first end of the third resistor is also connected to the detection end, which is used to determine the connection method of the female connector and the male connector, including forward connection or reverse connection.

[0039] Some embodiments of this application also include a detection terminal, which can determine the connection method of the female connector and the male connector based on the voltage value of the detection terminal.

[0040] It should be noted that each of the implementable methods in this embodiment can be implemented individually or in any combination without conflict. This application does not limit this.

[0041] Another embodiment of this application provides a connector detection method, applied to the connector detection circuit described above, the method comprising: With the male and female connectors plugged in, the first voltage value V+ at the non-inverting input terminal and the second voltage value V- at the inverting input terminal of the comparator are acquired. The first voltage value and the second voltage value are judged to obtain a control signal, and the switching module is switched according to the control signal.

[0042] In this embodiment, when the male and female connectors are plugged in, the voltage value at the input of the comparator is collected and compared to obtain a control signal. The switching module is then switched according to the control signal to the corresponding connector pin, realizing adaptive connection of the connector in both directions. There is no need to distinguish the male and female plug directions when plugging in the connectors, which can achieve "blind plugging" and greatly improve the efficiency of product production and assembly.

[0043] Regarding the apparatus in this embodiment, the specific manner in which each module performs its operations has been described in detail in the embodiments related to the method, and will not be elaborated upon here.

[0044] Another embodiment of this application further supplements the description of the connector detection method provided in the above embodiments.

[0045] Optionally, acquiring the first voltage value at the non-inverting input terminal and the second voltage value at the inverting input terminal of the comparator includes: Determine the first voltage value at the non-inverting input terminal based on the fifth and sixth resistors; The second voltage value at the inverting input terminal is determined based on the second and fourth resistors or based on the first and fourth resistors.

[0046] The specific connection method is as follows: Let x be a positive integer, and 1≤x≤n. Let PX be any pin of the connector. Pin PX is connected to pin a of the x-th 2-to-1 switch, and PX is also connected to pin b of the (n+1-x)-th 2-to-1 switch.

[0047] The specific working principle is as follows: When the male and female connectors are connected correctly, C1, C2, and P1~Pn of the male and female connectors are connected one-to-one. The voltage at the inverting input of the comparator is:

[0048] When R2=10k and R4=10k, the calculated value is V-=1.65V.

[0049] Comparator non-inverting input voltage:

[0050] When R5=15k and R6=10k, the calculated value is V+=1.32V.

[0051] Since V- > V+, the comparator outputs a low level to the switch pins oe of the 2-to-1 switch 1~n, turning on switches a and c, and turning off switches b and c. At this time, the female connector pins P1~Pn are connected to the corresponding signals S1~Sn of the female connector circuit. After the male and female connectors are correctly connected, the signals S1~Sn required by the male connector circuit and the signals S1~Sn required by the female connector circuit are connected accordingly.

[0052] When the male and female connectors are reversed, male connector C2 is connected to female connector C1, male connector C1 is connected to female connector C2, and signal pins P1~Pn of the male connector are connected to Pn~P1 of the female connector. At this time, the voltage at the inverting input of the comparator is:

[0053] When R1=20k and R4=10k, the calculated value is V-=1.1V.

[0054] Comparator non-inverting input voltage:

[0055] When R5=15k and R6=10k, the calculated value is V-=1.32V.

[0056] Since V- < V+, the comparator outputs a high level to the switch pins oe of the 2-to-1 switch 1~n, causing switches a and c to disconnect and b and c to connect. At this time, the female connector pins P1~Pn are connected to the corresponding signals Sn~S1 of the female connector circuit. After the male and female connectors are reversed, the signals Sn~S1 required by the male connector circuit and the signals Sn~S1 required by the female connector circuit are connected accordingly.

[0057] Optionally, the method further includes: Calculate the voltage value at the detection terminal based on the first resistor, the second resistor, and the third resistor; Based on the voltage value at the detection end, the connection status of the female connector and the male connector is determined, including forward connection or reverse connection.

[0058] This application embodiment can also identify whether the current connection is in a positive or negative orientation by detecting the voltage value of the Sa signal in the female connector circuit. Specifically: When the connector is connected correctly, the voltage Sa = R3 / (R1+R3)*3.3V = 1.1V; When the connector is reversed, the voltage Sa = R2 / (R2+R3)*3.3V = 1.65V; By setting corresponding drive and control circuits on both sides of the male and female connectors, the circuits can detect the connector insertion direction after the male and female connectors are inserted, and control the signal switching switch to switch the signal to the corresponding connector pin, realizing adaptive connection for both forward and reverse insertion. Using the technical solution of this application embodiment, there is no need to distinguish the insertion direction of the male and female connectors during connector insertion, enabling "blind mating," which greatly improves product manufacturing and assembly efficiency.

[0059] Regarding the apparatus in this embodiment, the specific manner in which each module performs its operations has been described in detail in the embodiments related to the method, and will not be elaborated upon here.

[0060] It should be noted that each of the implementable methods in this embodiment can be implemented individually or in any combination without conflict. This application does not limit this.

[0061] The above are merely embodiments of this application and are not intended to limit the scope of protection of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application. It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.

[0062] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

[0063] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

Claims

1. A detection circuit of a connector, characterized by comprising: The detection circuit of the connector comprises a male connector module and a female connector module, wherein the male connector module comprises a male connector, a first resistor and a second resistor, and the male connector is connected with the first resistor and the second resistor respectively; The female connector module comprises a female connector, a third resistor, a fourth resistor, a switching module and a comparison module, and the female connector is connected with the third resistor, the fourth resistor, the comparison module and the switching module respectively; In the case that the male connector and the female connector are plugged, the comparison module is used for comparing a same direction input end voltage and a reverse direction input end voltage to obtain a control signal, and the switching module is controlled to switch according to the control signal, wherein the same direction input end voltage and the reverse direction input end voltage are determined according to a fifth resistor, a sixth resistor, a first resistor, a second resistor and a fourth resistor.

2. The detection circuit of a connector according to claim 1, characterized by A first end of the first resistor is connected with a first preset end of the male connector, and a second end of the first resistor is connected with a first power supply end; a first end of the second resistor is connected with a second preset end of the male connector, and a second end of the second resistor is connected with the first power supply end.

3. The detection circuit of a connector according to claim 2, characterized in that, A third preset end of the female connector is connected with a first end of the third resistor, and a second end of the third resistor is connected with the ground; A fourth preset end of the female connector is connected with a first end of the fourth resistor, and a second end of the fourth resistor is connected with the ground.

4. The detection circuit of a connector according to claim 3, characterized in that, The fourth preset end of the female connector is connected with a reverse direction input end of the comparison module, a same direction input end of the comparison module is connected with a first end of a fifth resistor and a first end of a sixth resistor respectively, a second end of the fifth resistor is connected with a first voltage source, and a second end of the sixth resistor is connected with the ground.

5. The detection circuit of a connector according to claim 4, characterized in that, The switching module is a two-way switch.

6. The detection circuit of a connector according to claim 5, characterized in that, An output end of the comparison module is connected with an enable end of the switching module, a first end to an n-th end of the female connector are connected with a first end of a plurality of switching modules respectively, and an n-th end to a first end of the female connector are connected with a second end of the plurality of switching modules respectively.

7. The detection circuit of a connector according to claim 3, characterized by A first end of the third resistor is also connected with a detection end, and the detection end is used for judging a connection mode of the female connector and the male connector, and the connection mode comprises a forward connection or a reverse connection.

8. A method of detecting a connector, characterized by, The method applied to the detection circuit of the connector as claimed in any one of claims 1-7, the method comprises: In the case that the male connector and the female connector are plugged, a first voltage value of a same direction input end of a comparator and a second voltage value of a reverse direction input end of the comparator are collected; The first voltage value and the second voltage value are judged to obtain a control signal, and the switching module is switched according to the control signal.

9. The detection method of a connector according to claim 8, characterized by, The collection of the first voltage value of the same direction input end of the comparator and the second voltage value of the reverse direction input end of the comparator comprises: The first voltage value of the same direction input end is determined according to a fifth resistor and a sixth resistor; The second voltage value of the reverse direction input end is determined according to a second resistor and a fourth resistor or according to a first resistor and the fourth resistor.

10. The detection method of a connector according to claim 8, wherein The method further comprises: According to the first resistance, the second resistance and the third resistance, a detection end voltage value is calculated; According to the detection end voltage value, a connection state of the female connector and the male connector is determined, and the connection state includes a forward connection or a reverse connection.